transit_gateway_route_tables
Creates, updates, deletes or gets a transit_gateway_route_table
resource or lists transit_gateway_route_tables
in a region
Overview
Name | transit_gateway_route_tables |
Type | Resource |
Description | Resource Type definition for AWS::EC2::TransitGatewayRouteTable |
Id | aws.ec2.transit_gateway_route_tables |
Fields
Name | Datatype | Description |
---|---|---|
transit_gateway_route_table_id | string | Transit Gateway Route Table primary identifier |
transit_gateway_id | string | The ID of the transit gateway. |
tags | array | Tags are composed of a Key/Value pair. You can use tags to categorize and track each parameter group. The tag value null is permitted. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | TransitGatewayId, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all transit_gateway_route_tables
in a region.
SELECT
region,
transit_gateway_route_table_id,
transit_gateway_id,
tags
FROM aws.ec2.transit_gateway_route_tables
WHERE region = 'us-east-1';
Gets all properties from an individual transit_gateway_route_table
.
SELECT
region,
transit_gateway_route_table_id,
transit_gateway_id,
tags
FROM aws.ec2.transit_gateway_route_tables
WHERE region = 'us-east-1' AND data__Identifier = '<TransitGatewayRouteTableId>';
INSERT
example
Use the following StackQL query and manifest file to create a new transit_gateway_route_table
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ec2.transit_gateway_route_tables (
TransitGatewayId,
region
)
SELECT
'{{ TransitGatewayId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ec2.transit_gateway_route_tables (
TransitGatewayId,
Tags,
region
)
SELECT
'{{ TransitGatewayId }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: transit_gateway_route_table
props:
- name: TransitGatewayId
value: '{{ TransitGatewayId }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ec2.transit_gateway_route_tables
WHERE data__Identifier = '<TransitGatewayRouteTableId>'
AND region = 'us-east-1';
Permissions
To operate on the transit_gateway_route_tables
resource, the following permissions are required:
Create
ec2:CreateTransitGatewayRouteTable,
ec2:CreateTags,
ec2:DescribeTransitGatewayRouteTables
Read
ec2:DescribeTransitGatewayRouteTables
Delete
ec2:DeleteTransitGatewayRouteTable,
ec2:DescribeTransitGatewayRouteTables,
ec2:GetTransitGatewayRouteTableAssociations,
ec2:DisassociateTransitGatewayRouteTable
List
ec2:DescribeTransitGatewayRouteTables