Skip to main content

connection_groups

Creates, updates, deletes, gets or lists a connection_groups resource.

Overview

Nameconnection_groups
TypeResource
Idaws.cloudfront.connection_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
anycast_ip_list_idstringThe ID of the Anycast static IP list.
arnstringThe Amazon Resource Name (ARN) of the connection group.
created_timestringThe date and time when the connection group was created.
enabledbooleanWhether the connection group is enabled.
idstringThe ID of the connection group.
ipv_6_enabledbooleanIPv6 is enabled for the connection group.
is_defaultbooleanWhether the connection group is the default connection group for the distribution tenants.
last_modified_timestringThe date and time when the connection group was updated.
namestringThe name of the connection group.
routing_endpointstringThe routing endpoint (also known as the DNS name) that is assigned to the connection group, such as d111111abcdef8.cloudfront.net.
statusstringThe status of the connection group.
tagsstringA complex type that contains zero or more Tag elements.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connection_groupselectidentifier, regionGets information about a connection group.
list_connection_groupsselectregionLists the connection groups in your Amazon Web Services account.
create_connection_groupinsertregionCreates a connection group.
update_connection_groupupdateid, If-Match, regionUpdates a connection group.
delete_connection_groupdeleteid, If-Match, regionDeletes a connection group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
If-MatchstringThe value of the ETag header that you received when retrieving the connection group to delete.
idstringThe ID of the connection group to delete.
identifierstringThe ID, name, or Amazon Resource Name (ARN) of the connection group.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about a connection group.

SELECT
anycast_ip_list_id,
arn,
created_time,
enabled,
id,
ipv_6_enabled,
is_default,
last_modified_time,
name,
routing_endpoint,
status,
tags
FROM aws.cloudfront.connection_groups
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a connection group.

INSERT INTO aws.cloudfront.connection_groups (
Name,
Ipv6Enabled,
Tags,
AnycastIpListId,
Enabled,
region
)
SELECT
'{{ Name }}',
{{ Ipv6Enabled }},
'{{ Tags }}',
'{{ AnycastIpListId }}',
{{ Enabled }},
'{{ region }}'
RETURNING
anycast_ip_list_id,
arn,
created_time,
enabled,
id,
ipv_6_enabled,
is_default,
last_modified_time,
name,
routing_endpoint,
status,
tags
;

UPDATE examples

Updates a connection group.

UPDATE aws.cloudfront.connection_groups
SET
Ipv6Enabled = {{ Ipv6Enabled }},
AnycastIpListId = '{{ AnycastIpListId }}',
Enabled = {{ Enabled }}
WHERE
id = '{{ id }}' --required
AND `If-Match` = '{{ If-Match }}' --required
AND region = '{{ region }}' --required
RETURNING
anycast_ip_list_id,
arn,
created_time,
enabled,
id,
ipv_6_enabled,
is_default,
last_modified_time,
name,
routing_endpoint,
status,
tags;

DELETE examples

Deletes a connection group.

DELETE FROM aws.cloudfront.connection_groups
WHERE id = '{{ id }}' --required
AND `If-Match` = '{{ If-Match }}' --required
AND region = '{{ region }}' --required
;