Skip to content

Resource: awsEc2TransitGatewayPolicyTable

Manages an EC2 Transit Gateway Policy Table.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.ec2TransitGatewayPolicyTable.Ec2TransitGatewayPolicyTable(
  this,
  "example",
  {
    tags: {
      Name: "Example Policy Table",
    },
    transitGatewayId: "${aws_ec2_transit_gateway.example.id}",
  }
);

Argument Reference

The following arguments are supported:

  • transitGatewayId - (Required) EC2 Transit Gateway identifier.
  • tags - (Optional) Key-value tags for the EC2 Transit Gateway Policy Table. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - EC2 Transit Gateway Policy Table Amazon Resource Name (ARN).
  • id - EC2 Transit Gateway Policy Table identifier.
  • state - The state of the EC2 Transit Gateway Policy Table.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

awsEc2TransitGatewayPolicyTable can be imported by using the EC2 Transit Gateway Policy Table identifier, e.g.,

$ terraform import aws_ec2_transit_gateway_policy_table.example tgw-rtb-12345678