CmdID

CmdID / aws / aws cloudfront

aws cloudfront delete-cloud-front-origin-access-identity

Delete an origin access identity. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To delete a CloudFront origin access identity

The following delete-cloud-front-origin-access-identity example deletes the origin access identity (OAI) with the ID E74FTE3AEXAMPLE. To delete an OAI, you must have the OAI's ID and 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. To get the ETag, use the get-cloud-front-origin-access-identity or get-cloud-front-origin-access-identity-config command. Use the --if-match option to provide the OAI's ETag.

aws cloudfront delete-cloud-front-origin-access-identity --id E74FTE3AEXAMPLE --if-match E2QWRUHEXAMPLEIdentify
--idThe origin access identity's ID.
--if-matchThe value of the ETag header you received from a previous GET or PUT request.

This command produces no output.

When successful, this command has no output.

For more information, see Restrict access to an Amazon S3 origin in the Amazon CloudFront Developer Guide.

Options

2 in the AWS CLI reference
--idThe origin access identity's ID.
--if-matchThe value of the ETag header you received from a previous GET or PUT request.