update_cloud_front_origin_access_identity
(**kwargs)¶Update an origin access identity.
See also: AWS API Documentation
Request Syntax
response = client.update_cloud_front_origin_access_identity(
CloudFrontOriginAccessIdentityConfig={
'CallerReference': 'string',
'Comment': 'string'
},
Id='string',
IfMatch='string'
)
[REQUIRED]
The identity's configuration information.
A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.
If the value of CallerReference
is new (regardless of the content of the CloudFrontOriginAccessIdentityConfig
object), a new origin access identity is created.
If the CallerReference
is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig
is identical to the original request (ignoring white space), the response includes the same information returned to the original request.
If the CallerReference
is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig
is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
error.
A comment to describe the origin access identity. The comment cannot be longer than 128 characters.
[REQUIRED]
The identity's id.
ETag
header that you received when retrieving the identity's configuration. For example: E2QWRUHAPOMQZL
.dict
Response Syntax
{
'CloudFrontOriginAccessIdentity': {
'Id': 'string',
'S3CanonicalUserId': 'string',
'CloudFrontOriginAccessIdentityConfig': {
'CallerReference': 'string',
'Comment': 'string'
}
},
'ETag': 'string'
}
Response Structure
(dict) --
The returned result of the corresponding request.
CloudFrontOriginAccessIdentity (dict) --
The origin access identity's information.
Id (string) --
The ID for the origin access identity, for example, E74FTE3AJFJ256A
.
S3CanonicalUserId (string) --
The Amazon S3 canonical user ID for the origin access identity, used when giving the origin access identity read permission to an object in Amazon S3.
CloudFrontOriginAccessIdentityConfig (dict) --
The current configuration information for the identity.
CallerReference (string) --
A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.
If the value of CallerReference
is new (regardless of the content of the CloudFrontOriginAccessIdentityConfig
object), a new origin access identity is created.
If the CallerReference
is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig
is identical to the original request (ignoring white space), the response includes the same information returned to the original request.
If the CallerReference
is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig
is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
error.
Comment (string) --
A comment to describe the origin access identity. The comment cannot be longer than 128 characters.
ETag (string) --
The current version of the configuration. For example: E2QWRUHAPOMQZL
.
Exceptions
CloudFront.Client.exceptions.AccessDenied
CloudFront.Client.exceptions.IllegalUpdate
CloudFront.Client.exceptions.InvalidIfMatchVersion
CloudFront.Client.exceptions.MissingBody
CloudFront.Client.exceptions.NoSuchCloudFrontOriginAccessIdentity
CloudFront.Client.exceptions.PreconditionFailed
CloudFront.Client.exceptions.InvalidArgument
CloudFront.Client.exceptions.InconsistentQuantities