Skip to main content

transit_gateway_policy_table_associations

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

Overview

Nametransit_gateway_policy_table_associations
TypeResource
Idaws.ec2.transit_gateway_policy_table_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resource_idstringThe resource ID of the transit gateway attachment.
resource_typestringThe resource type for the transit gateway policy table association.
statestringThe state of the transit gateway policy table association.
transit_gateway_attachment_idstringThe ID of the transit gateway attachment.
transit_gateway_policy_table_idstringThe ID of the transit gateway policy table.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_transit_gateway_policy_table_associationsselectTransitGatewayPolicyTableId, regionFilter, MaxResults, NextToken, DryRunGets a list of the transit gateway policy table associations.

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
TransitGatewayPolicyTableIdstringThe ID of the transit gateway policy 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.
FilterarrayThe filters associated with the transit gateway policy table.
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 a list of the transit gateway policy table associations.

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