Module ec2transitgateway

This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-aws repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-aws repo.

Resources

Functions

Others

Resources

Resource PeeringAttachment

class PeeringAttachment extends CustomResource

Manages an EC2 Transit Gateway Peering Attachment. For examples of custom route table association and propagation, see the EC2 Transit Gateway Networking Examples Guide.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const local = new aws.Provider("local", {region: "us-east-1"});
const peer = new aws.Provider("peer", {region: "us-west-2"});
const peerRegion = aws.getRegion({});
const localTransitGateway = new aws.ec2transitgateway.TransitGateway("localTransitGateway", {tags: {
    Name: "Local TGW",
}});
const peerTransitGateway = new aws.ec2transitgateway.TransitGateway("peerTransitGateway", {tags: {
    Name: "Peer TGW",
}});
const example = new aws.ec2transitgateway.PeeringAttachment("example", {
    peerAccountId: peerTransitGateway.ownerId,
    peerRegion: peerRegion.then(peerRegion => peerRegion.name),
    peerTransitGatewayId: peerTransitGateway.id,
    transitGatewayId: localTransitGateway.id,
    tags: {
        Name: "TGW Peering Requestor",
    },
});

constructor

new PeeringAttachment(name: string, args: PeeringAttachmentArgs, opts?: pulumi.CustomResourceOptions)

Create a PeeringAttachment resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PeeringAttachmentState, opts?: pulumi.CustomResourceOptions): PeeringAttachment

Get an existing PeeringAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is PeeringAttachment

Returns true if the given object is an instance of PeeringAttachment. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property peerAccountId

public peerAccountId: pulumi.Output<string>;

Account ID of EC2 Transit Gateway to peer with. Defaults to the account ID the current provider is currently connected to.

property peerRegion

public peerRegion: pulumi.Output<string>;

Region of EC2 Transit Gateway to peer with.

property peerTransitGatewayId

public peerTransitGatewayId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway to peer with.

property tags

public tags: pulumi.Output<{[key: string]: any} | undefined>;

Key-value tags for the EC2 Transit Gateway Peering Attachment.

property transitGatewayId

public transitGatewayId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource Route

class Route extends CustomResource

Manages an EC2 Transit Gateway Route.

Example Usage

Standard usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.Route("example", {
    destinationCidrBlock: "0.0.0.0/0",
    transitGatewayAttachmentId: aws_ec2_transit_gateway_vpc_attachment_example.id,
    transitGatewayRouteTableId: aws_ec2_transit_gateway_example.associationDefaultRouteTableId,
});
Blackhole route
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.Route("example", {
    blackhole: true,
    destinationCidrBlock: "0.0.0.0/0",
    transitGatewayRouteTableId: aws_ec2_transit_gateway_example.associationDefaultRouteTableId,
});

constructor

new Route(name: string, args: RouteArgs, opts?: pulumi.CustomResourceOptions)

Create a Route resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RouteState, opts?: pulumi.CustomResourceOptions): Route

Get an existing Route resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is Route

Returns true if the given object is an instance of Route. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property blackhole

public blackhole: pulumi.Output<boolean | undefined>;

Indicates whether to drop traffic that matches this route (default to false).

property destinationCidrBlock

public destinationCidrBlock: pulumi.Output<string>;

IPv4 CIDR range used for destination matches. Routing decisions are based on the most specific match.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property transitGatewayAttachmentId

public transitGatewayAttachmentId: pulumi.Output<string | undefined>;

Identifier of EC2 Transit Gateway Attachment (required if blackhole is set to false).

property transitGatewayRouteTableId

public transitGatewayRouteTableId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway Route Table.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource RouteTable

class RouteTable extends CustomResource

Manages an EC2 Transit Gateway Route Table.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.RouteTable("example", {
    transitGatewayId: aws_ec2_transit_gateway_example.id,
});

constructor

new RouteTable(name: string, args: RouteTableArgs, opts?: pulumi.CustomResourceOptions)

Create a RouteTable resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RouteTableState, opts?: pulumi.CustomResourceOptions): RouteTable

Get an existing RouteTable resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is RouteTable

Returns true if the given object is an instance of RouteTable. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property defaultAssociationRouteTable

public defaultAssociationRouteTable: pulumi.Output<boolean>;

Boolean whether this is the default association route table for the EC2 Transit Gateway.

property defaultPropagationRouteTable

public defaultPropagationRouteTable: pulumi.Output<boolean>;

Boolean whether this is the default propagation route table for the EC2 Transit Gateway.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property tags

public tags: pulumi.Output<{[key: string]: any} | undefined>;

Key-value tags for the EC2 Transit Gateway Route Table.

property transitGatewayId

public transitGatewayId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource RouteTableAssociation

class RouteTableAssociation extends CustomResource

Manages an EC2 Transit Gateway Route Table association.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.RouteTableAssociation("example", {
    transitGatewayAttachmentId: aws_ec2_transit_gateway_vpc_attachment_example.id,
    transitGatewayRouteTableId: aws_ec2_transit_gateway_route_table_example.id,
});

constructor

new RouteTableAssociation(name: string, args: RouteTableAssociationArgs, opts?: pulumi.CustomResourceOptions)

Create a RouteTableAssociation resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RouteTableAssociationState, opts?: pulumi.CustomResourceOptions): RouteTableAssociation

Get an existing RouteTableAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is RouteTableAssociation

Returns true if the given object is an instance of RouteTableAssociation. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property resourceId

public resourceId: pulumi.Output<string>;

Identifier of the resource

property resourceType

public resourceType: pulumi.Output<string>;

Type of the resource

property transitGatewayAttachmentId

public transitGatewayAttachmentId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway Attachment.

property transitGatewayRouteTableId

public transitGatewayRouteTableId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway Route Table.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource RouteTablePropagation

class RouteTablePropagation extends CustomResource

Manages an EC2 Transit Gateway Route Table propagation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.RouteTablePropagation("example", {
    transitGatewayAttachmentId: aws_ec2_transit_gateway_vpc_attachment_example.id,
    transitGatewayRouteTableId: aws_ec2_transit_gateway_route_table_example.id,
});

constructor

new RouteTablePropagation(name: string, args: RouteTablePropagationArgs, opts?: pulumi.CustomResourceOptions)

Create a RouteTablePropagation resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RouteTablePropagationState, opts?: pulumi.CustomResourceOptions): RouteTablePropagation

Get an existing RouteTablePropagation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is RouteTablePropagation

Returns true if the given object is an instance of RouteTablePropagation. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property resourceId

public resourceId: pulumi.Output<string>;

Identifier of the resource

property resourceType

public resourceType: pulumi.Output<string>;

Type of the resource

property transitGatewayAttachmentId

public transitGatewayAttachmentId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway Attachment.

property transitGatewayRouteTableId

public transitGatewayRouteTableId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway Route Table.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Resource TransitGateway

class TransitGateway extends CustomResource

Manages an EC2 Transit Gateway.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.TransitGateway("example", {
    description: "example",
});

constructor

new TransitGateway(name: string, args?: TransitGatewayArgs, opts?: pulumi.CustomResourceOptions)

Create a TransitGateway resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TransitGatewayState, opts?: pulumi.CustomResourceOptions): TransitGateway

Get an existing TransitGateway resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is TransitGateway

Returns true if the given object is an instance of TransitGateway. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property amazonSideAsn

public amazonSideAsn: pulumi.Output<number | undefined>;

Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. Default value: 64512.

property arn

public arn: pulumi.Output<ARN>;

EC2 Transit Gateway Amazon Resource Name (ARN)

property associationDefaultRouteTableId

public associationDefaultRouteTableId: pulumi.Output<string>;

Identifier of the default association route table

property autoAcceptSharedAttachments

public autoAcceptSharedAttachments: pulumi.Output<string | undefined>;

Whether resource attachment requests are automatically accepted. Valid values: disable, enable. Default value: disable.

property defaultRouteTableAssociation

public defaultRouteTableAssociation: pulumi.Output<string | undefined>;

Whether resource attachments are automatically associated with the default association route table. Valid values: disable, enable. Default value: enable.

property defaultRouteTablePropagation

public defaultRouteTablePropagation: pulumi.Output<string | undefined>;

Whether resource attachments automatically propagate routes to the default propagation route table. Valid values: disable, enable. Default value: enable.

property description

public description: pulumi.Output<string | undefined>;

Description of the EC2 Transit Gateway.

property dnsSupport

public dnsSupport: pulumi.Output<string | undefined>;

Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property ownerId

public ownerId: pulumi.Output<string>;

Identifier of the AWS account that owns the EC2 Transit Gateway

property propagationDefaultRouteTableId

public propagationDefaultRouteTableId: pulumi.Output<string>;

Identifier of the default propagation route table

property tags

public tags: pulumi.Output<{[key: string]: any} | undefined>;

Key-value tags for the EC2 Transit Gateway.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property vpnEcmpSupport

public vpnEcmpSupport: pulumi.Output<string | undefined>;

Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: disable, enable. Default value: enable.

Resource VpcAttachment

class VpcAttachment extends CustomResource

Manages an EC2 Transit Gateway VPC Attachment. For examples of custom route table association and propagation, see the EC2 Transit Gateway Networking Examples Guide.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.VpcAttachment("example", {
    subnetIds: [aws_subnet_example.id],
    transitGatewayId: aws_ec2_transit_gateway_example.id,
    vpcId: aws_vpc_example.id,
});

constructor

new VpcAttachment(name: string, args: VpcAttachmentArgs, opts?: pulumi.CustomResourceOptions)

Create a VpcAttachment resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VpcAttachmentState, opts?: pulumi.CustomResourceOptions): VpcAttachment

Get an existing VpcAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is VpcAttachment

Returns true if the given object is an instance of VpcAttachment. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property dnsSupport

public dnsSupport: pulumi.Output<string | undefined>;

Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property ipv6Support

public ipv6Support: pulumi.Output<string | undefined>;

Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.

property subnetIds

public subnetIds: pulumi.Output<string[]>;

Identifiers of EC2 Subnets.

property tags

public tags: pulumi.Output<{[key: string]: any} | undefined>;

Key-value tags for the EC2 Transit Gateway VPC Attachment.

property transitGatewayDefaultRouteTableAssociation

public transitGatewayDefaultRouteTableAssociation: pulumi.Output<boolean | undefined>;

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true.

property transitGatewayDefaultRouteTablePropagation

public transitGatewayDefaultRouteTablePropagation: pulumi.Output<boolean | undefined>;

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true.

property transitGatewayId

public transitGatewayId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property vpcId

public vpcId: pulumi.Output<string>;

Identifier of EC2 VPC.

property vpcOwnerId

public vpcOwnerId: pulumi.Output<string>;

Identifier of the AWS account that owns the EC2 VPC.

Resource VpcAttachmentAccepter

class VpcAttachmentAccepter extends CustomResource

Manages the accepter’s side of an EC2 Transit Gateway VPC Attachment.

When a cross-account (requester’s AWS account differs from the accepter’s AWS account) EC2 Transit Gateway VPC Attachment is created, an EC2 Transit Gateway VPC Attachment resource is automatically created in the accepter’s account. The requester can use the aws.ec2transitgateway.VpcAttachment resource to manage its side of the connection and the accepter can use the aws.ec2transitgateway.VpcAttachmentAccepter resource to “adopt” its side of the connection into management.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2transitgateway.VpcAttachmentAccepter("example", {
    tags: {
        Name: "Example cross-account attachment",
    },
    transitGatewayAttachmentId: aws_ec2_transit_gateway_vpc_attachment_example.id,
});

constructor

new VpcAttachmentAccepter(name: string, args: VpcAttachmentAccepterArgs, opts?: pulumi.CustomResourceOptions)

Create a VpcAttachmentAccepter resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VpcAttachmentAccepterState, opts?: pulumi.CustomResourceOptions): VpcAttachmentAccepter

Get an existing VpcAttachmentAccepter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is VpcAttachmentAccepter

Returns true if the given object is an instance of VpcAttachmentAccepter. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property dnsSupport

public dnsSupport: pulumi.Output<string>;

Whether DNS support is enabled. Valid values: disable, enable.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property ipv6Support

public ipv6Support: pulumi.Output<string>;

Whether IPv6 support is enabled. Valid values: disable, enable.

property subnetIds

public subnetIds: pulumi.Output<string[]>;

Identifiers of EC2 Subnets.

property tags

public tags: pulumi.Output<{[key: string]: any} | undefined>;

Key-value tags for the EC2 Transit Gateway VPC Attachment.

property transitGatewayAttachmentId

public transitGatewayAttachmentId: pulumi.Output<string>;

The ID of the EC2 Transit Gateway Attachment to manage.

property transitGatewayDefaultRouteTableAssociation

public transitGatewayDefaultRouteTableAssociation: pulumi.Output<boolean | undefined>;

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

property transitGatewayDefaultRouteTablePropagation

public transitGatewayDefaultRouteTablePropagation: pulumi.Output<boolean | undefined>;

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

property transitGatewayId

public transitGatewayId: pulumi.Output<string>;

Identifier of EC2 Transit Gateway.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property vpcId

public vpcId: pulumi.Output<string>;

Identifier of EC2 VPC.

property vpcOwnerId

public vpcOwnerId: pulumi.Output<string>;

Identifier of the AWS account that owns the EC2 VPC.

Functions

Function getDirectConnectGatewayAttachment

getDirectConnectGatewayAttachment(args?: GetDirectConnectGatewayAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetDirectConnectGatewayAttachmentResult>

Get information on an EC2 Transit Gateway’s attachment to a Direct Connect Gateway.

Example Usage

By Transit Gateway and Direct Connect Gateway Identifiers
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.all([aws_dx_gateway_example.id, aws_ec2_transit_gateway_example.id]).apply(([aws_dx_gateway_exampleId, aws_ec2_transit_gateway_exampleId]) => aws.ec2transitgateway.getDirectConnectGatewayAttachment({
    dxGatewayId: aws_dx_gateway_exampleId,
    transitGatewayId: aws_ec2_transit_gateway_exampleId,
}, { async: true }));

Function getPeeringAttachment

getPeeringAttachment(args?: GetPeeringAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetPeeringAttachmentResult>

Get information on an EC2 Transit Gateway Peering Attachment.

Example Usage

By Filter
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ec2transitgateway.getPeeringAttachment({
    filters: [{
        name: "transit-gateway-attachment-id",
        values: ["tgw-attach-12345678"],
    }],
}, { async: true }));
By Identifier
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const attachment = pulumi.output(aws.ec2transitgateway.getPeeringAttachment({
    id: "tgw-attach-12345678",
}, { async: true }));

Function getRouteTable

getRouteTable(args?: GetRouteTableArgs, opts?: pulumi.InvokeOptions): Promise<GetRouteTableResult>

Get information on an EC2 Transit Gateway Route Table.

Example Usage

By Filter
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ec2transitgateway.getRouteTable({
    filters: [
        {
            name: "default-association-route-table",
            values: ["true"],
        },
        {
            name: "transit-gateway-id",
            values: ["tgw-12345678"],
        },
    ],
}, { async: true }));
By Identifier
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ec2transitgateway.getRouteTable({
    id: "tgw-rtb-12345678",
}, { async: true }));

Function getTransitGateway

getTransitGateway(args?: GetTransitGatewayArgs, opts?: pulumi.InvokeOptions): Promise<GetTransitGatewayResult>

Get information on an EC2 Transit Gateway.

Example Usage

By Filter
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ec2transitgateway.getTransitGateway({
    filters: [{
        name: "options.amazon-side-asn",
        values: ["64512"],
    }],
}, { async: true }));
By Identifier
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ec2transitgateway.getTransitGateway({
    id: "tgw-12345678",
}, { async: true }));

Function getVpcAttachment

getVpcAttachment(args?: GetVpcAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcAttachmentResult>

Get information on an EC2 Transit Gateway VPC Attachment.

Example Usage

By Filter
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ec2transitgateway.getVpcAttachment({
    filters: [{
        name: "vpc-id",
        values: ["vpc-12345678"],
    }],
}, { async: true }));
By Identifier
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.ec2transitgateway.getVpcAttachment({
    id: "tgw-attach-12345678",
}, { async: true }));

Function getVpnAttachment

getVpnAttachment(args?: GetVpnAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetVpnAttachmentResult>

Get information on an EC2 Transit Gateway VPN Attachment.

Example Usage

By Transit Gateway and VPN Connection Identifiers
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.all([aws_ec2_transit_gateway_example.id, aws_vpn_connection_example.id]).apply(([aws_ec2_transit_gateway_exampleId, aws_vpn_connection_exampleId]) => aws.ec2transitgateway.getVpnAttachment({
    transitGatewayId: aws_ec2_transit_gateway_exampleId,
    vpnConnectionId: aws_vpn_connection_exampleId,
}, { async: true }));
Filter
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = pulumi.output(aws.ec2transitgateway.getVpnAttachment({
    filters: [{
        name: "resource-id",
        values: ["some-resource"],
    }],
}, { async: true }));

Others

interface GetDirectConnectGatewayAttachmentArgs

interface GetDirectConnectGatewayAttachmentArgs

A collection of arguments for invoking getDirectConnectGatewayAttachment.

property dxGatewayId

dxGatewayId?: undefined | string;

Identifier of the Direct Connect Gateway.

property filters

filters?: GetDirectConnectGatewayAttachmentFilter[];

Configuration block(s) for filtering. Detailed below.

property tags

tags?: undefined | {[key: string]: any};

A map of tags, each pair of which must exactly match a pair on the desired Transit Gateway Direct Connect Gateway Attachment.

property transitGatewayId

transitGatewayId?: undefined | string;

Identifier of the EC2 Transit Gateway.

interface GetDirectConnectGatewayAttachmentResult

interface GetDirectConnectGatewayAttachmentResult

A collection of values returned by getDirectConnectGatewayAttachment.

property dxGatewayId

dxGatewayId?: undefined | string;

property filters

filters?: GetDirectConnectGatewayAttachmentFilter[];

property id

id: string;

The provider-assigned unique ID for this managed resource.

property tags

tags: {[key: string]: any};

Key-value tags for the EC2 Transit Gateway Attachment

property transitGatewayId

transitGatewayId?: undefined | string;

interface GetPeeringAttachmentArgs

interface GetPeeringAttachmentArgs

A collection of arguments for invoking getPeeringAttachment.

property filters

filters?: GetPeeringAttachmentFilter[];

One or more configuration blocks containing name-values filters. Detailed below.

property id

id?: undefined | string;

Identifier of the EC2 Transit Gateway Peering Attachment.

property tags

tags?: undefined | {[key: string]: any};

A mapping of tags, each pair of which must exactly match a pair on the specific EC2 Transit Gateway Peering Attachment to retrieve.

interface GetPeeringAttachmentResult

interface GetPeeringAttachmentResult

A collection of values returned by getPeeringAttachment.

property filters

filters?: GetPeeringAttachmentFilter[];

property id

id?: undefined | string;

property peerAccountId

peerAccountId: string;

Identifier of the peer AWS account

property peerRegion

peerRegion: string;

Identifier of the peer AWS region

property peerTransitGatewayId

peerTransitGatewayId: string;

Identifier of the peer EC2 Transit Gateway

property tags

tags: {[key: string]: any};

property transitGatewayId

transitGatewayId: string;

Identifier of the local EC2 Transit Gateway

interface GetRouteTableArgs

interface GetRouteTableArgs

A collection of arguments for invoking getRouteTable.

property filters

filters?: GetRouteTableFilter[];

One or more configuration blocks containing name-values filters. Detailed below.

property id

id?: undefined | string;

Identifier of the EC2 Transit Gateway Route Table.

property tags

tags?: undefined | {[key: string]: any};

Key-value tags for the EC2 Transit Gateway Route Table

interface GetRouteTableResult

interface GetRouteTableResult

A collection of values returned by getRouteTable.

property defaultAssociationRouteTable

defaultAssociationRouteTable: boolean;

Boolean whether this is the default association route table for the EC2 Transit Gateway

property defaultPropagationRouteTable

defaultPropagationRouteTable: boolean;

Boolean whether this is the default propagation route table for the EC2 Transit Gateway

property filters

filters?: GetRouteTableFilter[];

property id

id?: undefined | string;

EC2 Transit Gateway Route Table identifier

property tags

tags: {[key: string]: any};

Key-value tags for the EC2 Transit Gateway Route Table

property transitGatewayId

transitGatewayId: string;

EC2 Transit Gateway identifier

interface GetTransitGatewayArgs

interface GetTransitGatewayArgs

A collection of arguments for invoking getTransitGateway.

property filters

filters?: GetTransitGatewayFilter[];

One or more configuration blocks containing name-values filters. Detailed below.

property id

id?: undefined | string;

Identifier of the EC2 Transit Gateway.

property tags

tags?: undefined | {[key: string]: any};

Key-value tags for the EC2 Transit Gateway

interface GetTransitGatewayResult

interface GetTransitGatewayResult

A collection of values returned by getTransitGateway.

property amazonSideAsn

amazonSideAsn: number;

Private Autonomous System Number (ASN) for the Amazon side of a BGP session

property arn

arn: string;

EC2 Transit Gateway Amazon Resource Name (ARN)

property associationDefaultRouteTableId

associationDefaultRouteTableId: string;

Identifier of the default association route table

property autoAcceptSharedAttachments

autoAcceptSharedAttachments: string;

Whether resource attachment requests are automatically accepted.

property defaultRouteTableAssociation

defaultRouteTableAssociation: string;

Whether resource attachments are automatically associated with the default association route table.

property defaultRouteTablePropagation

defaultRouteTablePropagation: string;

Whether resource attachments automatically propagate routes to the default propagation route table.

property description

description: string;

Description of the EC2 Transit Gateway

property dnsSupport

dnsSupport: string;

Whether DNS support is enabled.

property filters

filters?: GetTransitGatewayFilter[];

property id

id?: undefined | string;

EC2 Transit Gateway identifier

property ownerId

ownerId: string;

Identifier of the AWS account that owns the EC2 Transit Gateway

property propagationDefaultRouteTableId

propagationDefaultRouteTableId: string;

Identifier of the default propagation route table.

property tags

tags: {[key: string]: any};

Key-value tags for the EC2 Transit Gateway

property vpnEcmpSupport

vpnEcmpSupport: string;

Whether VPN Equal Cost Multipath Protocol support is enabled.

interface GetVpcAttachmentArgs

interface GetVpcAttachmentArgs

A collection of arguments for invoking getVpcAttachment.

property filters

filters?: GetVpcAttachmentFilter[];

One or more configuration blocks containing name-values filters. Detailed below.

property id

id?: undefined | string;

Identifier of the EC2 Transit Gateway VPC Attachment.

property tags

tags?: undefined | {[key: string]: any};

Key-value tags for the EC2 Transit Gateway VPC Attachment

interface GetVpcAttachmentResult

interface GetVpcAttachmentResult

A collection of values returned by getVpcAttachment.

property dnsSupport

dnsSupport: string;

Whether DNS support is enabled.

property filters

filters?: GetVpcAttachmentFilter[];

property id

id?: undefined | string;

EC2 Transit Gateway VPC Attachment identifier

property ipv6Support

ipv6Support: string;

Whether IPv6 support is enabled.

property subnetIds

subnetIds: string[];

Identifiers of EC2 Subnets.

property tags

tags: {[key: string]: any};

Key-value tags for the EC2 Transit Gateway VPC Attachment

property transitGatewayId

transitGatewayId: string;

EC2 Transit Gateway identifier

property vpcId

vpcId: string;

Identifier of EC2 VPC.

property vpcOwnerId

vpcOwnerId: string;

Identifier of the AWS account that owns the EC2 VPC.

interface GetVpnAttachmentArgs

interface GetVpnAttachmentArgs

A collection of arguments for invoking getVpnAttachment.

property filters

filters?: GetVpnAttachmentFilter[];

Configuration block(s) for filtering. Detailed below.

property tags

tags?: undefined | {[key: string]: any};

A map of tags, each pair of which must exactly match a pair on the desired Transit Gateway VPN Attachment.

property transitGatewayId

transitGatewayId?: undefined | string;

Identifier of the EC2 Transit Gateway.

property vpnConnectionId

vpnConnectionId?: undefined | string;

Identifier of the EC2 VPN Connection.

interface GetVpnAttachmentResult

interface GetVpnAttachmentResult

A collection of values returned by getVpnAttachment.

property filters

filters?: GetVpnAttachmentFilter[];

property id

id: string;

The provider-assigned unique ID for this managed resource.

property tags

tags: {[key: string]: any};

Key-value tags for the EC2 Transit Gateway VPN Attachment

property transitGatewayId

transitGatewayId?: undefined | string;

property vpnConnectionId

vpnConnectionId?: undefined | string;

interface PeeringAttachmentArgs

interface PeeringAttachmentArgs

The set of arguments for constructing a PeeringAttachment resource.

property peerAccountId

peerAccountId?: pulumi.Input<string>;

Account ID of EC2 Transit Gateway to peer with. Defaults to the account ID the current provider is currently connected to.

property peerRegion

peerRegion: pulumi.Input<string>;

Region of EC2 Transit Gateway to peer with.

property peerTransitGatewayId

peerTransitGatewayId: pulumi.Input<string>;

Identifier of EC2 Transit Gateway to peer with.

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway Peering Attachment.

property transitGatewayId

transitGatewayId: pulumi.Input<string>;

Identifier of EC2 Transit Gateway.

interface PeeringAttachmentState

interface PeeringAttachmentState

Input properties used for looking up and filtering PeeringAttachment resources.

property peerAccountId

peerAccountId?: pulumi.Input<string>;

Account ID of EC2 Transit Gateway to peer with. Defaults to the account ID the current provider is currently connected to.

property peerRegion

peerRegion?: pulumi.Input<string>;

Region of EC2 Transit Gateway to peer with.

property peerTransitGatewayId

peerTransitGatewayId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway to peer with.

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway Peering Attachment.

property transitGatewayId

transitGatewayId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway.

interface RouteArgs

interface RouteArgs

The set of arguments for constructing a Route resource.

property blackhole

blackhole?: pulumi.Input<boolean>;

Indicates whether to drop traffic that matches this route (default to false).

property destinationCidrBlock

destinationCidrBlock: pulumi.Input<string>;

IPv4 CIDR range used for destination matches. Routing decisions are based on the most specific match.

property transitGatewayAttachmentId

transitGatewayAttachmentId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Attachment (required if blackhole is set to false).

property transitGatewayRouteTableId

transitGatewayRouteTableId: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Route Table.

interface RouteState

interface RouteState

Input properties used for looking up and filtering Route resources.

property blackhole

blackhole?: pulumi.Input<boolean>;

Indicates whether to drop traffic that matches this route (default to false).

property destinationCidrBlock

destinationCidrBlock?: pulumi.Input<string>;

IPv4 CIDR range used for destination matches. Routing decisions are based on the most specific match.

property transitGatewayAttachmentId

transitGatewayAttachmentId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Attachment (required if blackhole is set to false).

property transitGatewayRouteTableId

transitGatewayRouteTableId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Route Table.

interface RouteTableArgs

interface RouteTableArgs

The set of arguments for constructing a RouteTable resource.

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway Route Table.

property transitGatewayId

transitGatewayId: pulumi.Input<string>;

Identifier of EC2 Transit Gateway.

interface RouteTableAssociationArgs

interface RouteTableAssociationArgs

The set of arguments for constructing a RouteTableAssociation resource.

property transitGatewayAttachmentId

transitGatewayAttachmentId: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Attachment.

property transitGatewayRouteTableId

transitGatewayRouteTableId: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Route Table.

interface RouteTableAssociationState

interface RouteTableAssociationState

Input properties used for looking up and filtering RouteTableAssociation resources.

property resourceId

resourceId?: pulumi.Input<string>;

Identifier of the resource

property resourceType

resourceType?: pulumi.Input<string>;

Type of the resource

property transitGatewayAttachmentId

transitGatewayAttachmentId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Attachment.

property transitGatewayRouteTableId

transitGatewayRouteTableId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Route Table.

interface RouteTablePropagationArgs

interface RouteTablePropagationArgs

The set of arguments for constructing a RouteTablePropagation resource.

property transitGatewayAttachmentId

transitGatewayAttachmentId: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Attachment.

property transitGatewayRouteTableId

transitGatewayRouteTableId: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Route Table.

interface RouteTablePropagationState

interface RouteTablePropagationState

Input properties used for looking up and filtering RouteTablePropagation resources.

property resourceId

resourceId?: pulumi.Input<string>;

Identifier of the resource

property resourceType

resourceType?: pulumi.Input<string>;

Type of the resource

property transitGatewayAttachmentId

transitGatewayAttachmentId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Attachment.

property transitGatewayRouteTableId

transitGatewayRouteTableId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway Route Table.

interface RouteTableState

interface RouteTableState

Input properties used for looking up and filtering RouteTable resources.

property defaultAssociationRouteTable

defaultAssociationRouteTable?: pulumi.Input<boolean>;

Boolean whether this is the default association route table for the EC2 Transit Gateway.

property defaultPropagationRouteTable

defaultPropagationRouteTable?: pulumi.Input<boolean>;

Boolean whether this is the default propagation route table for the EC2 Transit Gateway.

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway Route Table.

property transitGatewayId

transitGatewayId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway.

interface TransitGatewayArgs

interface TransitGatewayArgs

The set of arguments for constructing a TransitGateway resource.

property amazonSideAsn

amazonSideAsn?: pulumi.Input<number>;

Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. Default value: 64512.

property autoAcceptSharedAttachments

autoAcceptSharedAttachments?: pulumi.Input<string>;

Whether resource attachment requests are automatically accepted. Valid values: disable, enable. Default value: disable.

property defaultRouteTableAssociation

defaultRouteTableAssociation?: pulumi.Input<string>;

Whether resource attachments are automatically associated with the default association route table. Valid values: disable, enable. Default value: enable.

property defaultRouteTablePropagation

defaultRouteTablePropagation?: pulumi.Input<string>;

Whether resource attachments automatically propagate routes to the default propagation route table. Valid values: disable, enable. Default value: enable.

property description

description?: pulumi.Input<string>;

Description of the EC2 Transit Gateway.

property dnsSupport

dnsSupport?: pulumi.Input<string>;

Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway.

property vpnEcmpSupport

vpnEcmpSupport?: pulumi.Input<string>;

Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: disable, enable. Default value: enable.

interface TransitGatewayState

interface TransitGatewayState

Input properties used for looking up and filtering TransitGateway resources.

property amazonSideAsn

amazonSideAsn?: pulumi.Input<number>;

Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs. Default value: 64512.

property arn

arn?: pulumi.Input<ARN>;

EC2 Transit Gateway Amazon Resource Name (ARN)

property associationDefaultRouteTableId

associationDefaultRouteTableId?: pulumi.Input<string>;

Identifier of the default association route table

property autoAcceptSharedAttachments

autoAcceptSharedAttachments?: pulumi.Input<string>;

Whether resource attachment requests are automatically accepted. Valid values: disable, enable. Default value: disable.

property defaultRouteTableAssociation

defaultRouteTableAssociation?: pulumi.Input<string>;

Whether resource attachments are automatically associated with the default association route table. Valid values: disable, enable. Default value: enable.

property defaultRouteTablePropagation

defaultRouteTablePropagation?: pulumi.Input<string>;

Whether resource attachments automatically propagate routes to the default propagation route table. Valid values: disable, enable. Default value: enable.

property description

description?: pulumi.Input<string>;

Description of the EC2 Transit Gateway.

property dnsSupport

dnsSupport?: pulumi.Input<string>;

Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.

property ownerId

ownerId?: pulumi.Input<string>;

Identifier of the AWS account that owns the EC2 Transit Gateway

property propagationDefaultRouteTableId

propagationDefaultRouteTableId?: pulumi.Input<string>;

Identifier of the default propagation route table

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway.

property vpnEcmpSupport

vpnEcmpSupport?: pulumi.Input<string>;

Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values: disable, enable. Default value: enable.

interface VpcAttachmentAccepterArgs

interface VpcAttachmentAccepterArgs

The set of arguments for constructing a VpcAttachmentAccepter resource.

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway VPC Attachment.

property transitGatewayAttachmentId

transitGatewayAttachmentId: pulumi.Input<string>;

The ID of the EC2 Transit Gateway Attachment to manage.

property transitGatewayDefaultRouteTableAssociation

transitGatewayDefaultRouteTableAssociation?: pulumi.Input<boolean>;

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

property transitGatewayDefaultRouteTablePropagation

transitGatewayDefaultRouteTablePropagation?: pulumi.Input<boolean>;

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

interface VpcAttachmentAccepterState

interface VpcAttachmentAccepterState

Input properties used for looking up and filtering VpcAttachmentAccepter resources.

property dnsSupport

dnsSupport?: pulumi.Input<string>;

Whether DNS support is enabled. Valid values: disable, enable.

property ipv6Support

ipv6Support?: pulumi.Input<string>;

Whether IPv6 support is enabled. Valid values: disable, enable.

property subnetIds

subnetIds?: pulumi.Input<pulumi.Input<string>[]>;

Identifiers of EC2 Subnets.

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway VPC Attachment.

property transitGatewayAttachmentId

transitGatewayAttachmentId?: pulumi.Input<string>;

The ID of the EC2 Transit Gateway Attachment to manage.

property transitGatewayDefaultRouteTableAssociation

transitGatewayDefaultRouteTableAssociation?: pulumi.Input<boolean>;

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.

property transitGatewayDefaultRouteTablePropagation

transitGatewayDefaultRouteTablePropagation?: pulumi.Input<boolean>;

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.

property transitGatewayId

transitGatewayId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway.

property vpcId

vpcId?: pulumi.Input<string>;

Identifier of EC2 VPC.

property vpcOwnerId

vpcOwnerId?: pulumi.Input<string>;

Identifier of the AWS account that owns the EC2 VPC.

interface VpcAttachmentArgs

interface VpcAttachmentArgs

The set of arguments for constructing a VpcAttachment resource.

property dnsSupport

dnsSupport?: pulumi.Input<string>;

Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.

property ipv6Support

ipv6Support?: pulumi.Input<string>;

Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.

property subnetIds

subnetIds: pulumi.Input<pulumi.Input<string>[]>;

Identifiers of EC2 Subnets.

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway VPC Attachment.

property transitGatewayDefaultRouteTableAssociation

transitGatewayDefaultRouteTableAssociation?: pulumi.Input<boolean>;

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true.

property transitGatewayDefaultRouteTablePropagation

transitGatewayDefaultRouteTablePropagation?: pulumi.Input<boolean>;

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true.

property transitGatewayId

transitGatewayId: pulumi.Input<string>;

Identifier of EC2 Transit Gateway.

property vpcId

vpcId: pulumi.Input<string>;

Identifier of EC2 VPC.

interface VpcAttachmentState

interface VpcAttachmentState

Input properties used for looking up and filtering VpcAttachment resources.

property dnsSupport

dnsSupport?: pulumi.Input<string>;

Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.

property ipv6Support

ipv6Support?: pulumi.Input<string>;

Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.

property subnetIds

subnetIds?: pulumi.Input<pulumi.Input<string>[]>;

Identifiers of EC2 Subnets.

property tags

tags?: pulumi.Input<{[key: string]: any}>;

Key-value tags for the EC2 Transit Gateway VPC Attachment.

property transitGatewayDefaultRouteTableAssociation

transitGatewayDefaultRouteTableAssociation?: pulumi.Input<boolean>;

Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true.

property transitGatewayDefaultRouteTablePropagation

transitGatewayDefaultRouteTablePropagation?: pulumi.Input<boolean>;

Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value: true.

property transitGatewayId

transitGatewayId?: pulumi.Input<string>;

Identifier of EC2 Transit Gateway.

property vpcId

vpcId?: pulumi.Input<string>;

Identifier of EC2 VPC.

property vpcOwnerId

vpcOwnerId?: pulumi.Input<string>;

Identifier of the AWS account that owns the EC2 VPC.