The following code examples show how to use GetCloudFrontOriginAccessIdentityConfig
.
- AWS CLI
-
To get a CloudFront origin access identity configuration
The following example gets metadata about the CloudFront origin access identity (OAI) with the ID
E74FTE3AEXAMPLE
, including itsETag
. The OAI ID is returned in the output of the create-cloud-front-origin-access-identity and list-cloud-front-origin-access-identities commands.aws cloudfront get-cloud-front-origin-access-identity-config --id
E74FTE3AEXAMPLE
Output:
{ "ETag": "E2QWRUHEXAMPLE", "CloudFrontOriginAccessIdentityConfig": { "CallerReference": "cli-example", "Comment": "Example OAI" } }
-
For API details, see GetCloudFrontOriginAccessIdentityConfig
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using CloudFront with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.