Skip to main content

transit_gateway_connects

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

Overview

Nametransit_gateway_connects
TypeResource
Idaws.ec2.transit_gateway_connects

Fields

The following fields are returned by SELECT queries:

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_transit_gateway_connectsselectregionTransitGatewayAttachmentIds, Filter, MaxResults, NextToken, DryRunDescribes one or more Connect attachments.
create_transit_gateway_connectinsertTransportTransitGatewayAttachmentId, regionOptions, TagSpecification, DryRunCreates a Connect attachment from a specified transit gateway attachment. A Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a transit gateway and an appliance. A Connect attachment uses an existing VPC or Amazon Web Services Direct Connect attachment as the underlying transport mechanism.
delete_transit_gateway_connectdeleteTransitGatewayAttachmentId, regionDryRunDeletes the specified Connect attachment. You must first delete any Connect peers for the attachment.

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
TransitGatewayAttachmentIdstringThe ID of the Connect attachment.
TransportTransitGatewayAttachmentIdstringThe ID of the transit gateway attachment. You can specify a VPC attachment or Amazon Web Services Direct Connect attachment.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayOne or more filters. The possible values are: options.protocol - The tunnel protocol (gre). state - The state of the attachment (initiating | initiatingRequest | pendingAcceptance | rollingBack | pending | available | modifying | deleting | deleted | failed | rejected | rejecting | failing). transit-gateway-attachment-id - The ID of the Connect attachment. transit-gateway-id - The ID of the transit gateway. transport-transit-gateway-attachment-id - The ID of the transit gateway attachment from which the Connect attachment was created.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.
OptionsobjectThe Connect attachment options.
TagSpecificationarrayThe tags to apply to the Connect attachment.
TransitGatewayAttachmentIdsarrayThe IDs of the attachments.

SELECT examples

Describes one or more Connect attachments.

SELECT
creation_time,
options,
state,
tags,
transit_gateway_attachment_id,
transit_gateway_id,
transport_transit_gateway_attachment_id
FROM aws.ec2.transit_gateway_connects
WHERE region = '{{ region }}' -- required
AND TransitGatewayAttachmentIds = '{{ TransitGatewayAttachmentIds }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Creates a Connect attachment from a specified transit gateway attachment. A Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a transit gateway and an appliance. A Connect attachment uses an existing VPC or Amazon Web Services Direct Connect attachment as the underlying transport mechanism.

INSERT INTO aws.ec2.transit_gateway_connects (
TransportTransitGatewayAttachmentId,
region,
Options,
TagSpecification,
DryRun
)
SELECT
'{{ TransportTransitGatewayAttachmentId }}',
'{{ region }}',
'{{ Options }}',
'{{ TagSpecification }}',
'{{ DryRun }}'
RETURNING
creation_time,
options,
state,
tags,
transit_gateway_attachment_id,
transit_gateway_id,
transport_transit_gateway_attachment_id
;

DELETE examples

Deletes the specified Connect attachment. You must first delete any Connect peers for the attachment.

DELETE FROM aws.ec2.transit_gateway_connects
WHERE TransitGatewayAttachmentId = '{{ TransitGatewayAttachmentId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;