Skip to main content

transit_gateway_connects

Creates, updates, deletes or gets a transit_gateway_connect resource or lists transit_gateway_connects in a region

Overview

Nametransit_gateway_connects
TypeResource
DescriptionThe AWS::EC2::TransitGatewayConnect type
Idawscc.ec2.transit_gateway_connects

Fields

NameDatatypeDescription
transit_gateway_attachment_idstringThe ID of the Connect attachment.
transport_transit_gateway_attachment_idstringThe ID of the attachment from which the Connect attachment was created.
transit_gateway_idstringThe ID of the transit gateway.
statestringThe state of the attachment.
creation_timestringThe creation time.
tagsarrayThe tags for the attachment.
optionsobjectThe Connect attachment options.
regionstringAWS region.

For more information, see AWS::EC2::TransitGatewayConnect.

Methods

NameResourceAccessible byRequired Params
create_resourcetransit_gateway_connectsINSERTTransportTransitGatewayAttachmentId, Options, region
delete_resourcetransit_gateway_connectsDELETEIdentifier, region
update_resourcetransit_gateway_connectsUPDATEIdentifier, PatchDocument, region
list_resourcestransit_gateway_connects_list_onlySELECTregion
get_resourcetransit_gateway_connectsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual transit_gateway_connect.

SELECT
region,
transit_gateway_attachment_id,
transport_transit_gateway_attachment_id,
transit_gateway_id,
state,
creation_time,
tags,
options
FROM awscc.ec2.transit_gateway_connects
WHERE
region = 'us-east-1' AND
Identifier = '{{ transit_gateway_attachment_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.ec2.transit_gateway_connects (
TransportTransitGatewayAttachmentId,
Options,
region
)
SELECT
'{{ transport_transit_gateway_attachment_id }}',
'{{ options }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.ec2.transit_gateway_connects
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ transit_gateway_attachment_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.ec2.transit_gateway_connects
WHERE
Identifier = '{{ transit_gateway_attachment_id }}' AND
region = 'us-east-1';

Permissions

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

ec2:CreateTransitGatewayConnect,
ec2:DescribeTransitGatewayConnects,
ec2:CreateTags,
ec2:DescribeTags