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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTTransportTransitGatewayAttachmentId, Options, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all transit_gateway_connects in a region.

SELECT
region,
transit_gateway_attachment_id,
transport_transit_gateway_attachment_id,
transit_gateway_id,
state,
creation_time,
tags,
options
FROM aws.ec2.transit_gateway_connects
WHERE region = 'us-east-1';

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 aws.ec2.transit_gateway_connects
WHERE region = 'us-east-1' AND data__Identifier = '<TransitGatewayAttachmentId>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.ec2.transit_gateway_connects
WHERE data__Identifier = '<TransitGatewayAttachmentId>'
AND region = 'us-east-1';

Permissions

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

Create

ec2:CreateTransitGatewayConnect,
ec2:DescribeTransitGatewayConnects,
ec2:CreateTags

Read

ec2:DescribeTransitGatewayConnects

Update

ec2:DescribeTransitGatewayConnects,
ec2:DeleteTags,
ec2:CreateTags

Delete

ec2:DeleteTransitGatewayConnect,
ec2:DescribeTransitGatewayConnects,
ec2:DeleteTags

List

ec2:DescribeTransitGatewayConnects