connection_groups
Creates, updates, deletes or gets a connection_group resource or lists connection_groups in a region
Overview
| Name | connection_groups |
| Type | Resource |
| Description | The 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. |
| Id | awscc.cloudfront.connection_groups |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
id | string | |
name | string | The name of the connection group. |
arn | string | |
created_time | string | |
last_modified_time | string | |
tags | array | A complex type that contains zero or more Tag elements. |
ipv6_enabled | boolean | IPv6 is enabled for the connection group. |
routing_endpoint | string | |
anycast_ip_list_id | string | The ID of the Anycast static IP list. |
status | string | |
enabled | boolean | Whether the connection group is enabled. |
is_default | boolean | |
e_tag | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id | string | |
region | string | AWS region. |
For more information, see AWS::CloudFront::ConnectionGroup.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | connection_groups | INSERT | Name, region |
delete_resource | connection_groups | DELETE | Identifier, region |
update_resource | connection_groups | UPDATE | Identifier, PatchDocument, region |
list_resources | connection_groups_list_only | SELECT | region |
get_resource | connection_groups | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all connection_groups in a region.
SELECT
region,
id
FROM awscc.cloudfront.connection_groups_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new connection_group resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.cloudfront.connection_groups (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.cloudfront.connection_groups (
Name,
Tags,
Ipv6Enabled,
AnycastIpListId,
Enabled,
region
)
SELECT
'{{ name }}',
'{{ tags }}',
'{{ ipv6_enabled }}',
'{{ anycast_ip_list_id }}',
'{{ enabled }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: connection_group
props:
- name: name
value: '{{ name }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: ipv6_enabled
value: '{{ ipv6_enabled }}'
- name: anycast_ip_list_id
value: '{{ anycast_ip_list_id }}'
- name: enabled
value: '{{ enabled }}'
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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.cloudfront.connection_groups
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the connection_groups resource, the following permissions are required:
- Create
- Delete
- List
- Read
- Update
cloudfront:CreateConnectionGroup,
cloudfront:GetConnectionGroup,
cloudfront:TagResource
cloudfront:DeleteConnectionGroup,
cloudfront:GetConnectionGroup,
cloudfront:UpdateConnectionGroup
cloudfront:ListConnectionGroups,
cloudfront:ListTagsForResource
cloudfront:GetConnectionGroup,
cloudfront:ListTagsForResource
cloudfront:GetConnectionGroup,
cloudfront:UpdateConnectionGroup,
cloudfront:ListTagsForResource,
cloudfront:TagResource,
cloudfront:UntagResource