Skip to main content

transit_gateway_policy_tables

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

Overview

Nametransit_gateway_policy_tables
TypeResource
Idaws.ec2.transit_gateway_policy_tables

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestringThe timestamp when the transit gateway policy table was created.
statestringThe state of the transit gateway policy table
tagsstringhe key-value pairs associated with the transit gateway policy table.
transit_gateway_idstringThe ID of the transit gateway.
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
describe_transit_gateway_policy_tablesselectregionTransitGatewayPolicyTableIds, Filter, MaxResults, NextToken, DryRunDescribes one or more transit gateway route policy tables.
create_transit_gateway_policy_tableinsertTransitGatewayId, regionTagSpecifications, DryRunCreates a transit gateway policy table.
associate_transit_gateway_policy_tableupdateTransitGatewayPolicyTableId, TransitGatewayAttachmentId, regionDryRunAssociates the specified transit gateway attachment with a transit gateway policy table.
delete_transit_gateway_policy_tabledeleteTransitGatewayPolicyTableId, regionDryRunDeletes the specified transit gateway policy table.
disassociate_transit_gateway_policy_tableexecTransitGatewayPolicyTableId, TransitGatewayAttachmentId, regionDryRunRemoves the association between an an attachment and a policy 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
TransitGatewayAttachmentIdstringThe ID of the transit gateway attachment to disassociate from the policy table.
TransitGatewayIdstringThe ID of the transit gateway used for the policy table.
TransitGatewayPolicyTableIdstringThe ID of the disassociated 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.
TagSpecificationsarrayThe tags specification for the transit gateway policy table created during the request.
TransitGatewayPolicyTableIdsarrayThe IDs of the transit gateway policy tables.

SELECT examples

Describes one or more transit gateway route policy tables.

SELECT
creation_time,
state,
tags,
transit_gateway_id,
transit_gateway_policy_table_id
FROM aws.ec2.transit_gateway_policy_tables
WHERE region = '{{ region }}' -- required
AND TransitGatewayPolicyTableIds = '{{ TransitGatewayPolicyTableIds }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND DryRun = '{{ DryRun }}'
;

INSERT examples

Creates a transit gateway policy table.

INSERT INTO aws.ec2.transit_gateway_policy_tables (
TransitGatewayId,
region,
TagSpecifications,
DryRun
)
SELECT
'{{ TransitGatewayId }}',
'{{ region }}',
'{{ TagSpecifications }}',
'{{ DryRun }}'
RETURNING
creation_time,
state,
tags,
transit_gateway_id,
transit_gateway_policy_table_id
;

UPDATE examples

Associates the specified transit gateway attachment with a transit gateway policy table.

UPDATE aws.ec2.transit_gateway_policy_tables
SET
-- No updatable properties
WHERE
TransitGatewayPolicyTableId = '{{ TransitGatewayPolicyTableId }}' --required
AND TransitGatewayAttachmentId = '{{ TransitGatewayAttachmentId }}' --required
AND region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
RETURNING
resource_id,
resource_type,
state,
transit_gateway_attachment_id,
transit_gateway_policy_table_id;

DELETE examples

Deletes the specified transit gateway policy table.

DELETE FROM aws.ec2.transit_gateway_policy_tables
WHERE TransitGatewayPolicyTableId = '{{ TransitGatewayPolicyTableId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;

Lifecycle Methods

Removes the association between an an attachment and a policy table.

EXEC aws.ec2.transit_gateway_policy_tables.disassociate_transit_gateway_policy_table
@TransitGatewayPolicyTableId='{{ TransitGatewayPolicyTableId }}' --required,
@TransitGatewayAttachmentId='{{ TransitGatewayAttachmentId }}' --required,
@region='{{ region }}' --required,
@DryRun={{ DryRun }}
;