Skip to main content

connection_groups

Creates, updates, deletes or gets a connection_group resource or lists connection_groups in a region

Overview

Nameconnection_groups
TypeResource
DescriptionThe connection group for your distribution tenants. When you first create a distribution tenant and you don't specify a connection group, CloudFront will automatically create a default connection group for you. When you create a new distribution tenant and don't specify a connection group, the default one will be associated with your distribution tenant.
Idawscc.cloudfront.connection_groups

Fields

NameDatatypeDescription
idstring
namestringThe name of the connection group.
arnstring
created_timestring
last_modified_timestring
tagsarrayA complex type that contains zero or more ``Tag`` elements.
ipv6_enabledbooleanIPv6 is enabled for the connection group.
routing_endpointstring
anycast_ip_list_idstringThe ID of the Anycast static IP list.
statusstring
enabledbooleanWhether the connection group is enabled.
is_defaultboolean
e_tagstring
regionstringAWS region.

For more information, see AWS::CloudFront::ConnectionGroup.

Methods

NameResourceAccessible byRequired Params
create_resourceconnection_groupsINSERTName, region
delete_resourceconnection_groupsDELETEIdentifier, region
update_resourceconnection_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesconnection_groups_list_onlySELECTregion
get_resourceconnection_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual connection_group.

SELECT
region,
id,
name,
arn,
created_time,
last_modified_time,
tags,
ipv6_enabled,
routing_endpoint,
anycast_ip_list_id,
status,
enabled,
is_default,
e_tag
FROM awscc.cloudfront.connection_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.cloudfront.connection_groups (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a connection_group resource, using stack-deploy.

/*+ update */
UPDATE awscc.cloudfront.connection_groups
SET PatchDocument = string('{{ {
"Tags": tags,
"Ipv6Enabled": ipv6_enabled,
"AnycastIpListId": anycast_ip_list_id,
"Enabled": enabled
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.cloudfront.connection_groups
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

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

cloudfront:CreateConnectionGroup,
cloudfront:GetConnectionGroup,
cloudfront:TagResource