Lightsail.Client.download_default_key_pair()¶Downloads the regional Amazon Lightsail default key pair.
This action also creates a Lightsail default key pair if a default key pair does not currently exist in the Amazon Web Services Region.
See also: AWS API Documentation
Request Syntax
response = client.download_default_key_pair()
{
'publicKeyBase64': 'string',
'privateKeyBase64': 'string',
'createdAt': datetime(2015, 1, 1)
}
Response Structure
A base64-encoded public key of the ssh-rsa type.
A base64-encoded RSA private key.
The timestamp when the default key pair was created.
Exceptions
Lightsail.Client.exceptions.ServiceExceptionLightsail.Client.exceptions.InvalidInputExceptionLightsail.Client.exceptions.NotFoundExceptionLightsail.Client.exceptions.OperationFailureExceptionLightsail.Client.exceptions.AccessDeniedExceptionLightsail.Client.exceptions.AccountSetupInProgressExceptionLightsail.Client.exceptions.UnauthenticatedException