create_public_key
(**kwargs)¶Uploads a public key to CloudFront that you can use with signed URLs and signed cookies, or with field-level encryption.
See also: AWS API Documentation
Request Syntax
response = client.create_public_key(
PublicKeyConfig={
'CallerReference': 'string',
'Name': 'string',
'EncodedKey': 'string',
'Comment': 'string'
}
)
[REQUIRED]
A CloudFront public key configuration.
A string included in the request to help make sure that the request can't be replayed.
A name to help identify the public key.
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
A comment to describe the public key. The comment cannot be longer than 128 characters.
{
'PublicKey': {
'Id': 'string',
'CreatedTime': datetime(2015, 1, 1),
'PublicKeyConfig': {
'CallerReference': 'string',
'Name': 'string',
'EncodedKey': 'string',
'Comment': 'string'
}
},
'Location': 'string',
'ETag': 'string'
}
Response Structure
The public key.
The identifier of the public key.
The date and time when the public key was uploaded.
Configuration information about a public key that you can use with signed URLs and signed cookies, or with field-level encryption.
A string included in the request to help make sure that the request can't be replayed.
A name to help identify the public key.
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
A comment to describe the public key. The comment cannot be longer than 128 characters.
The URL of the public key.
The identifier for this version of the public key.
Exceptions
CloudFront.Client.exceptions.PublicKeyAlreadyExists
CloudFront.Client.exceptions.InvalidArgument
CloudFront.Client.exceptions.TooManyPublicKeys