Skip to main content

key_groups

Creates, updates, deletes or gets a key_group resource or lists key_groups in a region

Overview

Namekey_groups
TypeResource
DescriptionResource Type definition for AWS::CloudFront::KeyGroup
Idaws.cloudfront.key_groups

Fields

NameDatatypeDescription
idstring
key_group_configobject
last_modified_timestring
regionstringAWS region.

Methods

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

SELECT examples

Gets all key_groups in a region.

SELECT
region,
id,
key_group_config,
last_modified_time
FROM aws.cloudfront.key_groups
;

Gets all properties from an individual key_group.

SELECT
region,
id,
key_group_config,
last_modified_time
FROM aws.cloudfront.key_groups
WHERE data__Identifier = '<Id>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

cloudfront:CreateKeyGroup

Delete

cloudfront:DeleteKeyGroup,
cloudfront:GetKeyGroup

List

cloudfront:ListKeyGroups

Read

cloudfront:GetKeyGroup

Update

cloudfront:UpdateKeyGroup,
cloudfront:GetKeyGroup