Skip to main content

transit_gateway_route_table_attachments

Creates, updates, deletes or gets a transit_gateway_route_table_attachment resource or lists transit_gateway_route_table_attachments in a region

Overview

Nametransit_gateway_route_table_attachments
TypeResource
DescriptionAWS::NetworkManager::TransitGatewayRouteTableAttachment Resource Type definition.
Idaws.networkmanager.transit_gateway_route_table_attachments

Fields

NameDatatypeDescription
peering_idstringThe Id of peering between transit gateway and core network.
transit_gateway_route_table_arnstringThe Arn of transit gateway route table.
core_network_idstringThe ID of a core network where you're creating a site-to-site VPN attachment.
core_network_arnstringThe ARN of a core network for the VPC attachment.
attachment_idstringThe ID of the attachment.
owner_account_idstringOwner account of the attachment.
attachment_typestringThe type of attachment.
statestringThe state of the attachment.
edge_locationstringThe Region where the edge is located.
resource_arnstringThe ARN of the Resource.
attachment_policy_rule_numberintegerThe policy rule number associated with the attachment.
segment_namestringThe name of the segment that attachment is in.
proposed_segment_changeobjectThe attachment to move from one segment to another.
created_atstringCreation time of the attachment.
updated_atstringLast update time of the attachment.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTPeeringId, TransitGatewayRouteTableArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all transit_gateway_route_table_attachments in a region.

SELECT
region,
peering_id,
transit_gateway_route_table_arn,
core_network_id,
core_network_arn,
attachment_id,
owner_account_id,
attachment_type,
state,
edge_location,
resource_arn,
attachment_policy_rule_number,
segment_name,
proposed_segment_change,
created_at,
updated_at,
tags
FROM aws.networkmanager.transit_gateway_route_table_attachments
WHERE region = 'us-east-1';

Gets all properties from an individual transit_gateway_route_table_attachment.

SELECT
region,
peering_id,
transit_gateway_route_table_arn,
core_network_id,
core_network_arn,
attachment_id,
owner_account_id,
attachment_type,
state,
edge_location,
resource_arn,
attachment_policy_rule_number,
segment_name,
proposed_segment_change,
created_at,
updated_at,
tags
FROM aws.networkmanager.transit_gateway_route_table_attachments
WHERE region = 'us-east-1' AND data__Identifier = '<AttachmentId>';

INSERT example

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

/*+ create */
INSERT INTO aws.networkmanager.transit_gateway_route_table_attachments (
PeeringId,
TransitGatewayRouteTableArn,
region
)
SELECT
'{{ PeeringId }}',
'{{ TransitGatewayRouteTableArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.networkmanager.transit_gateway_route_table_attachments
WHERE data__Identifier = '<AttachmentId>'
AND region = 'us-east-1';

Permissions

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

Create

networkmanager:CreateTransitGatewayRouteTableAttachment,
networkmanager:GetTransitGatewayRouteTableAttachment,
networkmanager:TagResource,
iam:CreateServiceLinkedRole,
ec2:DescribeRegions

Read

networkmanager:GetTransitGatewayRouteTableAttachment

Update

networkmanager:GetTransitGatewayRouteTableAttachment,
networkmanager:ListTagsForResource,
networkmanager:TagResource,
networkmanager:UntagResource,
ec2:DescribeRegions

Delete

networkmanager:GetTransitGatewayRouteTableAttachment,
networkmanager:DeleteAttachment,
ec2:DescribeRegions

List

networkmanager:ListAttachments