aws.ec2transitgateway.TransitGateway
Explore with Pulumi AI
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"});
import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.TransitGateway("example", description="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2transitgateway.NewTransitGateway(ctx, "example", &ec2transitgateway.TransitGatewayArgs{
Description: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Ec2TransitGateway.TransitGateway("example", new()
{
Description = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.TransitGateway;
import com.pulumi.aws.ec2transitgateway.TransitGatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new TransitGateway("example", TransitGatewayArgs.builder()
.description("example")
.build());
}
}
resources:
example:
type: aws:ec2transitgateway:TransitGateway
properties:
description: example
Create TransitGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TransitGateway(name: string, args?: TransitGatewayArgs, opts?: CustomResourceOptions);
@overload
def TransitGateway(resource_name: str,
args: Optional[TransitGatewayArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TransitGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
amazon_side_asn: Optional[int] = None,
auto_accept_shared_attachments: Optional[str] = None,
default_route_table_association: Optional[str] = None,
default_route_table_propagation: Optional[str] = None,
description: Optional[str] = None,
dns_support: Optional[str] = None,
multicast_support: Optional[str] = None,
security_group_referencing_support: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
transit_gateway_cidr_blocks: Optional[Sequence[str]] = None,
vpn_ecmp_support: Optional[str] = None)
func NewTransitGateway(ctx *Context, name string, args *TransitGatewayArgs, opts ...ResourceOption) (*TransitGateway, error)
public TransitGateway(string name, TransitGatewayArgs? args = null, CustomResourceOptions? opts = null)
public TransitGateway(String name, TransitGatewayArgs args)
public TransitGateway(String name, TransitGatewayArgs args, CustomResourceOptions options)
type: aws:ec2transitgateway:TransitGateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TransitGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TransitGatewayArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TransitGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TransitGatewayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var transitGatewayResource = new Aws.Ec2TransitGateway.TransitGateway("transitGatewayResource", new()
{
AmazonSideAsn = 0,
AutoAcceptSharedAttachments = "string",
DefaultRouteTableAssociation = "string",
DefaultRouteTablePropagation = "string",
Description = "string",
DnsSupport = "string",
MulticastSupport = "string",
SecurityGroupReferencingSupport = "string",
Tags =
{
{ "string", "string" },
},
TransitGatewayCidrBlocks = new[]
{
"string",
},
VpnEcmpSupport = "string",
});
example, err := ec2transitgateway.NewTransitGateway(ctx, "transitGatewayResource", &ec2transitgateway.TransitGatewayArgs{
AmazonSideAsn: pulumi.Int(0),
AutoAcceptSharedAttachments: pulumi.String("string"),
DefaultRouteTableAssociation: pulumi.String("string"),
DefaultRouteTablePropagation: pulumi.String("string"),
Description: pulumi.String("string"),
DnsSupport: pulumi.String("string"),
MulticastSupport: pulumi.String("string"),
SecurityGroupReferencingSupport: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TransitGatewayCidrBlocks: pulumi.StringArray{
pulumi.String("string"),
},
VpnEcmpSupport: pulumi.String("string"),
})
var transitGatewayResource = new TransitGateway("transitGatewayResource", TransitGatewayArgs.builder()
.amazonSideAsn(0)
.autoAcceptSharedAttachments("string")
.defaultRouteTableAssociation("string")
.defaultRouteTablePropagation("string")
.description("string")
.dnsSupport("string")
.multicastSupport("string")
.securityGroupReferencingSupport("string")
.tags(Map.of("string", "string"))
.transitGatewayCidrBlocks("string")
.vpnEcmpSupport("string")
.build());
transit_gateway_resource = aws.ec2transitgateway.TransitGateway("transitGatewayResource",
amazon_side_asn=0,
auto_accept_shared_attachments="string",
default_route_table_association="string",
default_route_table_propagation="string",
description="string",
dns_support="string",
multicast_support="string",
security_group_referencing_support="string",
tags={
"string": "string",
},
transit_gateway_cidr_blocks=["string"],
vpn_ecmp_support="string")
const transitGatewayResource = new aws.ec2transitgateway.TransitGateway("transitGatewayResource", {
amazonSideAsn: 0,
autoAcceptSharedAttachments: "string",
defaultRouteTableAssociation: "string",
defaultRouteTablePropagation: "string",
description: "string",
dnsSupport: "string",
multicastSupport: "string",
securityGroupReferencingSupport: "string",
tags: {
string: "string",
},
transitGatewayCidrBlocks: ["string"],
vpnEcmpSupport: "string",
});
type: aws:ec2transitgateway:TransitGateway
properties:
amazonSideAsn: 0
autoAcceptSharedAttachments: string
defaultRouteTableAssociation: string
defaultRouteTablePropagation: string
description: string
dnsSupport: string
multicastSupport: string
securityGroupReferencingSupport: string
tags:
string: string
transitGatewayCidrBlocks:
- string
vpnEcmpSupport: string
TransitGateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TransitGateway resource accepts the following input properties:
- Amazon
Side intAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- string
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - Default
Route stringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - Default
Route stringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - Description string
- Description of the EC2 Transit Gateway.
- Dns
Support string - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - Multicast
Support string - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - Security
Group stringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - Dictionary<string, string>
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Transit
Gateway List<string>Cidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- Vpn
Ecmp stringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- Amazon
Side intAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- string
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - Default
Route stringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - Default
Route stringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - Description string
- Description of the EC2 Transit Gateway.
- Dns
Support string - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - Multicast
Support string - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - Security
Group stringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - map[string]string
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Transit
Gateway []stringCidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- Vpn
Ecmp stringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- amazon
Side IntegerAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- String
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - default
Route StringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - default
Route StringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - description String
- Description of the EC2 Transit Gateway.
- dns
Support String - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - multicast
Support String - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - security
Group StringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - Map<String,String>
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - transit
Gateway List<String>Cidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- vpn
Ecmp StringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- amazon
Side numberAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- string
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - default
Route stringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - default
Route stringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - description string
- Description of the EC2 Transit Gateway.
- dns
Support string - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - multicast
Support string - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - security
Group stringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - {[key: string]: string}
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - transit
Gateway string[]Cidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- vpn
Ecmp stringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- amazon_
side_ intasn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- str
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - default_
route_ strtable_ association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - default_
route_ strtable_ propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - description str
- Description of the EC2 Transit Gateway.
- dns_
support str - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - multicast_
support str - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - security_
group_ strreferencing_ support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - Mapping[str, str]
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - transit_
gateway_ Sequence[str]cidr_ blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- vpn_
ecmp_ strsupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- amazon
Side NumberAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- String
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - default
Route StringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - default
Route StringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - description String
- Description of the EC2 Transit Gateway.
- dns
Support String - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - multicast
Support String - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - security
Group StringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - Map<String>
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - transit
Gateway List<String>Cidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- vpn
Ecmp StringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransitGateway resource produces the following output properties:
- Arn string
- EC2 Transit Gateway Amazon Resource Name (ARN)
- Association
Default stringRoute Table Id - Identifier of the default association route table
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - Identifier of the AWS account that owns the EC2 Transit Gateway
- Propagation
Default stringRoute Table Id - Identifier of the default propagation route table
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- EC2 Transit Gateway Amazon Resource Name (ARN)
- Association
Default stringRoute Table Id - Identifier of the default association route table
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - Identifier of the AWS account that owns the EC2 Transit Gateway
- Propagation
Default stringRoute Table Id - Identifier of the default propagation route table
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- EC2 Transit Gateway Amazon Resource Name (ARN)
- association
Default StringRoute Table Id - Identifier of the default association route table
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - Identifier of the AWS account that owns the EC2 Transit Gateway
- propagation
Default StringRoute Table Id - Identifier of the default propagation route table
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn ARN
- EC2 Transit Gateway Amazon Resource Name (ARN)
- association
Default stringRoute Table Id - Identifier of the default association route table
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Id string - Identifier of the AWS account that owns the EC2 Transit Gateway
- propagation
Default stringRoute Table Id - Identifier of the default propagation route table
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- EC2 Transit Gateway Amazon Resource Name (ARN)
- association_
default_ strroute_ table_ id - Identifier of the default association route table
- id str
- The provider-assigned unique ID for this managed resource.
- owner_
id str - Identifier of the AWS account that owns the EC2 Transit Gateway
- propagation_
default_ strroute_ table_ id - Identifier of the default propagation route table
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn
- EC2 Transit Gateway Amazon Resource Name (ARN)
- association
Default StringRoute Table Id - Identifier of the default association route table
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - Identifier of the AWS account that owns the EC2 Transit Gateway
- propagation
Default StringRoute Table Id - Identifier of the default propagation route table
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing TransitGateway Resource
Get an existing TransitGateway resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TransitGatewayState, opts?: CustomResourceOptions): TransitGateway
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
amazon_side_asn: Optional[int] = None,
arn: Optional[str] = None,
association_default_route_table_id: Optional[str] = None,
auto_accept_shared_attachments: Optional[str] = None,
default_route_table_association: Optional[str] = None,
default_route_table_propagation: Optional[str] = None,
description: Optional[str] = None,
dns_support: Optional[str] = None,
multicast_support: Optional[str] = None,
owner_id: Optional[str] = None,
propagation_default_route_table_id: Optional[str] = None,
security_group_referencing_support: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
transit_gateway_cidr_blocks: Optional[Sequence[str]] = None,
vpn_ecmp_support: Optional[str] = None) -> TransitGateway
func GetTransitGateway(ctx *Context, name string, id IDInput, state *TransitGatewayState, opts ...ResourceOption) (*TransitGateway, error)
public static TransitGateway Get(string name, Input<string> id, TransitGatewayState? state, CustomResourceOptions? opts = null)
public static TransitGateway get(String name, Output<String> id, TransitGatewayState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Amazon
Side intAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- Arn string
- EC2 Transit Gateway Amazon Resource Name (ARN)
- Association
Default stringRoute Table Id - Identifier of the default association route table
- string
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - Default
Route stringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - Default
Route stringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - Description string
- Description of the EC2 Transit Gateway.
- Dns
Support string - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - Multicast
Support string - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - Owner
Id string - Identifier of the AWS account that owns the EC2 Transit Gateway
- Propagation
Default stringRoute Table Id - Identifier of the default propagation route table
- Security
Group stringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - Dictionary<string, string>
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Transit
Gateway List<string>Cidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- Vpn
Ecmp stringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- Amazon
Side intAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- Arn string
- EC2 Transit Gateway Amazon Resource Name (ARN)
- Association
Default stringRoute Table Id - Identifier of the default association route table
- string
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - Default
Route stringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - Default
Route stringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - Description string
- Description of the EC2 Transit Gateway.
- Dns
Support string - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - Multicast
Support string - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - Owner
Id string - Identifier of the AWS account that owns the EC2 Transit Gateway
- Propagation
Default stringRoute Table Id - Identifier of the default propagation route table
- Security
Group stringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - map[string]string
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Transit
Gateway []stringCidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- Vpn
Ecmp stringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- amazon
Side IntegerAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- arn String
- EC2 Transit Gateway Amazon Resource Name (ARN)
- association
Default StringRoute Table Id - Identifier of the default association route table
- String
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - default
Route StringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - default
Route StringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - description String
- Description of the EC2 Transit Gateway.
- dns
Support String - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - multicast
Support String - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - owner
Id String - Identifier of the AWS account that owns the EC2 Transit Gateway
- propagation
Default StringRoute Table Id - Identifier of the default propagation route table
- security
Group StringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - Map<String,String>
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - transit
Gateway List<String>Cidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- vpn
Ecmp StringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- amazon
Side numberAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- arn ARN
- EC2 Transit Gateway Amazon Resource Name (ARN)
- association
Default stringRoute Table Id - Identifier of the default association route table
- string
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - default
Route stringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - default
Route stringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - description string
- Description of the EC2 Transit Gateway.
- dns
Support string - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - multicast
Support string - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - owner
Id string - Identifier of the AWS account that owns the EC2 Transit Gateway
- propagation
Default stringRoute Table Id - Identifier of the default propagation route table
- security
Group stringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - {[key: string]: string}
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - transit
Gateway string[]Cidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- vpn
Ecmp stringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- amazon_
side_ intasn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- arn str
- EC2 Transit Gateway Amazon Resource Name (ARN)
- association_
default_ strroute_ table_ id - Identifier of the default association route table
- str
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - default_
route_ strtable_ association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - default_
route_ strtable_ propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - description str
- Description of the EC2 Transit Gateway.
- dns_
support str - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - multicast_
support str - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - owner_
id str - Identifier of the AWS account that owns the EC2 Transit Gateway
- propagation_
default_ strroute_ table_ id - Identifier of the default propagation route table
- security_
group_ strreferencing_ support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - Mapping[str, str]
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - transit_
gateway_ Sequence[str]cidr_ blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- vpn_
ecmp_ strsupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
- amazon
Side NumberAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512
to65534
for 16-bit ASNs and4200000000
to4294967294
for 32-bit ASNs. Default value:64512
.NOTE: Modifying
amazon_side_asn
on a Transit Gateway with active BGP sessions is not allowed. You must first delete all Transit Gateway attachments that have BGP configured prior to modifyingamazon_side_asn
.- arn
- EC2 Transit Gateway Amazon Resource Name (ARN)
- association
Default StringRoute Table Id - Identifier of the default association route table
- String
- Whether resource attachment requests are automatically accepted. Valid values:
disable
,enable
. Default value:disable
. - default
Route StringTable Association - Whether resource attachments are automatically associated with the default association route table. Valid values:
disable
,enable
. Default value:enable
. - default
Route StringTable Propagation - Whether resource attachments automatically propagate routes to the default propagation route table. Valid values:
disable
,enable
. Default value:enable
. - description String
- Description of the EC2 Transit Gateway.
- dns
Support String - Whether DNS support is enabled. Valid values:
disable
,enable
. Default value:enable
. - multicast
Support String - Whether Multicast support is enabled. Required to use
ec2_transit_gateway_multicast_domain
. Valid values:disable
,enable
. Default value:disable
. - owner
Id String - Identifier of the AWS account that owns the EC2 Transit Gateway
- propagation
Default StringRoute Table Id - Identifier of the default propagation route table
- security
Group StringReferencing Support - Whether Security Group Referencing Support is enabled. Valid values:
disable
,enable
. Default value:disable
. - Map<String>
- Key-value tags for the EC2 Transit Gateway. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - transit
Gateway List<String>Cidr Blocks - One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.
- vpn
Ecmp StringSupport - Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable
,enable
. Default value:enable
.
Import
Using pulumi import
, import aws_ec2_transit_gateway
using the EC2 Transit Gateway identifier. For example:
$ pulumi import aws:ec2transitgateway/transitGateway:TransitGateway example tgw-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.