key_value_stores
Creates, updates, deletes or gets a key_value_store
resource or lists key_value_stores
in a region
Overview
Name | key_value_stores |
Type | Resource |
Description | Resource Type definition for AWS::CloudFront::KeyValueStore |
Id | aws.cloudfront.key_value_stores |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | |
id | string | |
status | string | |
name | string | |
comment | string | |
import_source | object | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, 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 key_value_stores
in a region.
SELECT
region,
arn,
id,
status,
name,
comment,
import_source
FROM aws.cloudfront.key_value_stores
;
Gets all properties from an individual key_value_store
.
SELECT
region,
arn,
id,
status,
name,
comment,
import_source
FROM aws.cloudfront.key_value_stores
WHERE data__Identifier = '<Name>';
INSERT
example
Use the following StackQL query and manifest file to create a new key_value_store
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.cloudfront.key_value_stores (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.cloudfront.key_value_stores (
Name,
Comment,
ImportSource,
region
)
SELECT
'{{ Name }}',
'{{ Comment }}',
'{{ ImportSource }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: key_value_store
props:
- name: Name
value: '{{ Name }}'
- name: Comment
value: '{{ Comment }}'
- name: ImportSource
value:
SourceType: '{{ SourceType }}'
SourceArn: '{{ SourceArn }}'
DELETE
example
/*+ delete */
DELETE FROM aws.cloudfront.key_value_stores
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';
Permissions
To operate on the key_value_stores
resource, the following permissions are required:
Create
cloudfront:CreateKeyValueStore,
cloudfront:DescribeKeyValueStore,
s3:GetObject,
s3:HeadObject,
s3:GetBucketLocation
Delete
cloudfront:DeleteKeyValueStore,
cloudfront:DescribeKeyValueStore
List
cloudfront:ListKeyValueStores
Read
cloudfront:DescribeKeyValueStore
Update
cloudfront:UpdateKeyValueStore,
cloudfront:DescribeKeyValueStore