HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/cloudfront/get-cloud-front-origin-access-identity-config.rst
**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 its ``ETag``. The OAI ID is
returned in the output of the
`create-cloud-front-origin-access-identity
<create-cloud-front-origin-access-identity.html>`_ and
`list-cloud-front-origin-access-identities
<list-cloud-front-origin-access-identities.html>`_ commands.

::

    aws cloudfront get-cloud-front-origin-access-identity-config --id E74FTE3AEXAMPLE

Output::

    {
        "ETag": "E2QWRUHEXAMPLE",
        "CloudFrontOriginAccessIdentityConfig": {
            "CallerReference": "cli-example",
            "Comment": "Example OAI"
        }
    }