Skip to main content

transit_gateway_route_table_attachments

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

Overview

Nametransit_gateway_route_table_attachments
TypeResource
Idaws.networkmanager.transit_gateway_route_table_attachments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attachmentobjectDescribes a core network attachment.
peering_idstringThe ID of the peering attachment. (pattern: <code>^peering-([0-9a-f]{8,17})$</code>)
transit_gateway_route_table_arnstringThe ARN of the transit gateway attachment route table. For example, "TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456". (pattern: <code>[\s\S]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_transit_gateway_route_table_attachmentselectattachment_id, regionReturns information about a transit gateway route table attachment.
create_transit_gateway_route_table_attachmentinsertregion, PeeringId, TransitGatewayRouteTableArnCreates a transit gateway route table 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
attachment_idstringThe ID of the transit gateway route table attachment.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a transit gateway route table attachment.

SELECT
attachment,
peering_id,
transit_gateway_route_table_arn
FROM aws.networkmanager.transit_gateway_route_table_attachments
WHERE attachment_id = '{{ attachment_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a transit gateway route table attachment.

INSERT INTO aws.networkmanager.transit_gateway_route_table_attachments (
PeeringId,
TransitGatewayRouteTableArn,
RoutingPolicyLabel,
Tags,
ClientToken,
region
)
SELECT
'{{ PeeringId }}' /* required */,
'{{ TransitGatewayRouteTableArn }}' /* required */,
'{{ RoutingPolicyLabel }}',
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
transit_gateway_route_table_attachment
;