Skip to main content

transit_gateway_route_table_associations

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

Overview

Nametransit_gateway_route_table_associations
TypeResource
Idaws.ec2.transit_gateway_route_table_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resource_idstringThe ID of the resource.
resource_typestringThe resource type. Note that the tgw-peering resource type has been deprecated.
statestringThe state of the association.
transit_gateway_attachment_idstringThe ID of the attachment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_transit_gateway_route_table_associationsselectTransitGatewayRouteTableId, regionFilter, MaxResults, NextToken, DryRunGets information about the associations for the specified transit gateway route table.

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
TransitGatewayRouteTableIdstringThe ID of the transit gateway route table.
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: resource-id - The ID of the resource. resource-type - The resource type. Valid values are vpc | vpn | direct-connect-gateway | peering | connect. transit-gateway-attachment-id - The ID of the attachment.
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.

SELECT examples

Gets information about the associations for the specified transit gateway route table.

SELECT
resource_id,
resource_type,
state,
transit_gateway_attachment_id
FROM aws.ec2.transit_gateway_route_table_associations
WHERE TransitGatewayRouteTableId = '{{ TransitGatewayRouteTableId }}' -- required
AND region = '{{ region }}' -- required
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;