Data Source: awsEc2TransitGateway
Get information on an EC2 Transit Gateway.
Example Usage
By Filter
/*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.dataAwsEc2TransitGateway.DataAwsEc2TransitGateway(this, "example", {
filter: [
{
name: "options.amazon-side-asn",
values: ["64512"],
},
],
});
By Identifier
/*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.dataAwsEc2TransitGateway.DataAwsEc2TransitGateway(this, "example", {
id: "tgw-12345678",
});
Argument Reference
The following arguments are supported:
filter
- (Optional) One or more configuration blocks containing name-values filters. Detailed below.id
- (Optional) Identifier of the EC2 Transit Gateway.
filter Argument Reference
name
- (Required) Name of the field to filter by, as defined by the underlying AWS API.values
- (Required) List of one or more values for the filter.
Attribute Reference
In addition to all arguments above, the following attributes are exported:
amazonSideAsn
- Private Autonomous System Number (ASN) for the Amazon side of a BGP sessionarn
- EC2 Transit Gateway ARNassociationDefaultRouteTableId
- Identifier of the default association route tableautoAcceptSharedAttachments
- Whether resource attachment requests are automatically accepteddefaultRouteTableAssociation
- Whether resource attachments are automatically associated with the default association route tabledefaultRouteTablePropagation
- Whether resource attachments automatically propagate routes to the default propagation route tabledescription
- Description of the EC2 Transit GatewaydnsSupport
- Whether DNS support is enabledmulticastSupport
- Whether Multicast support is enabledid
- EC2 Transit Gateway identifierownerId
- Identifier of the AWS account that owns the EC2 Transit GatewaypropagationDefaultRouteTableId
- Identifier of the default propagation route tabletags
- Key-value tags for the EC2 Transit GatewaytransitGatewayCidrBlocks
- The list of associated CIDR blocksvpnEcmpSupport
- Whether VPN Equal Cost Multipath Protocol support is enabled
Timeouts
read
- (Default20M
)