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
Name | cloud_front_origin_access_identities |
Type | Resource |
Description | Resource Type definition for AWS::CloudFront::CloudFrontOriginAccessIdentity |
Id | aws.cloudfront.cloud_front_origin_access_identities |
Fields
Name | Datatype | Description |
---|---|---|
cloud_front_origin_access_identity_config | object | |
id | string | |
s3_canonical_user_id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | CloudFrontOriginAccessIdentityConfig, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.cloudfront.cloud_front_origin_access_identities (
CloudFrontOriginAccessIdentityConfig,
region
)
SELECT
'{{ CloudFrontOriginAccessIdentityConfig }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.cloudfront.cloud_front_origin_access_identities (
CloudFrontOriginAccessIdentityConfig,
region
)
SELECT
'{{ CloudFrontOriginAccessIdentityConfig }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: cloud_front_origin_access_identity
props:
- name: CloudFrontOriginAccessIdentityConfig
value:
Comment: '{{ Comment }}'
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