Skip to main content

cloud_front_origin_access_identities

Creates, updates, deletes or gets a cloud_front_origin_access_identity resource or lists cloud_front_origin_access_identities in a region

Overview

Namecloud_front_origin_access_identities
TypeResource
DescriptionResource Type definition for AWS::CloudFront::CloudFrontOriginAccessIdentity
Idaws.cloudfront.cloud_front_origin_access_identities

Fields

NameDatatypeDescription
cloud_front_origin_access_identity_configobject
idstring
s3_canonical_user_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTCloudFrontOriginAccessIdentityConfig, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all cloud_front_origin_access_identities in a region.

SELECT
region,
cloud_front_origin_access_identity_config,
id,
s3_canonical_user_id
FROM aws.cloudfront.cloud_front_origin_access_identities
;

Gets all properties from an individual cloud_front_origin_access_identity.

SELECT
region,
cloud_front_origin_access_identity_config,
id,
s3_canonical_user_id
FROM aws.cloudfront.cloud_front_origin_access_identities
WHERE data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new cloud_front_origin_access_identity resource, using stack-deploy.

/*+ create */
INSERT INTO aws.cloudfront.cloud_front_origin_access_identities (
CloudFrontOriginAccessIdentityConfig,
region
)
SELECT
'{{ CloudFrontOriginAccessIdentityConfig }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cloudfront.cloud_front_origin_access_identities
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the cloud_front_origin_access_identities resource, the following permissions are required:

Create

cloudfront:CreateCloudFrontOriginAccessIdentity

Delete

cloudfront:DeleteCloudFrontOriginAccessIdentity,
cloudfront:GetCloudFrontOriginAccessIdentity

List

cloudfront:ListCloudFrontOriginAccessIdentities

Read

cloudfront:GetCloudFrontOriginAccessIdentity

Update

cloudfront:UpdateCloudFrontOriginAccessIdentity,
cloudfront:GetCloudFrontOriginAccessIdentity