CmdID / aws / aws cloudfront
aws cloudfront get-cloud-front-origin-access-identity-config
Get the configuration information about an origin access identity. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To get a CloudFront origin access identity configuration
The following get-cloud-front-origin-access-identity-config example gets metadata about the CloudFront origin access identity (OAI) with the ID E74FTE3AEXAMPLE, including its ETag. 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 E74FTE3AEXAMPLEIdentify--idThe identity's ID.Its output
{
"ETag": "E2QWRUHEXAMPLE",
"CloudFrontOriginAccessIdentityConfig": {
"CallerReference": "cli-example",
"Comment": "Example OAI"
}
}For more information, see Restrict access to an Amazon S3 origin in the Amazon CloudFront Developer Guide.
Options
--idThe identity's ID.