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.
Idawscc.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.
network_function_group_namestringThe name of the network function group attachment.
proposed_network_function_group_changeobjectThe attachment to move from one network function group 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.

For more information, see AWS::NetworkManager::TransitGatewayRouteTableAttachment.

Methods

NameResourceAccessible byRequired Params
create_resourcetransit_gateway_route_table_attachmentsINSERTPeeringId, TransitGatewayRouteTableArn, region
delete_resourcetransit_gateway_route_table_attachmentsDELETEIdentifier, region
update_resourcetransit_gateway_route_table_attachmentsUPDATEIdentifier, PatchDocument, region
list_resourcestransit_gateway_route_table_attachments_list_onlySELECTregion
get_resourcetransit_gateway_route_table_attachmentsSELECTIdentifier, region

SELECT examples

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,
network_function_group_name,
proposed_network_function_group_change,
created_at,
updated_at,
tags
FROM awscc.networkmanager.transit_gateway_route_table_attachments
WHERE
region = '{{ region }}' AND
Identifier = '{{ attachment_id }}';

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 awscc.networkmanager.transit_gateway_route_table_attachments (
PeeringId,
TransitGatewayRouteTableArn,
region
)
SELECT
'{{ peering_id }}',
'{{ transit_gateway_route_table_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.networkmanager.transit_gateway_route_table_attachments
SET PatchDocument = string('{{ {
"ProposedSegmentChange": proposed_segment_change,
"NetworkFunctionGroupName": network_function_group_name,
"ProposedNetworkFunctionGroupChange": proposed_network_function_group_change,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ attachment_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.networkmanager.transit_gateway_route_table_attachments
WHERE
Identifier = '{{ attachment_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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