TransitGateway
Manages an EC2 Transit Gateway.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ec2TransitGateway.TransitGateway("example", new Aws.Ec2TransitGateway.TransitGatewayArgs
{
Description = "example",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2transitgateway"
"github.com/pulumi/pulumi/sdk/v2/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
})
}import pulumi
import pulumi_aws as aws
example = aws.ec2transitgateway.TransitGateway("example", description="example")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2transitgateway.TransitGateway("example", {
description: "example",
});Create a TransitGateway Resource
new TransitGateway(name: string, args?: TransitGatewayArgs, opts?: CustomResourceOptions);def TransitGateway(resource_name, opts=None, amazon_side_asn=None, auto_accept_shared_attachments=None, default_route_table_association=None, default_route_table_propagation=None, description=None, dns_support=None, tags=None, vpn_ecmp_support=None, __props__=None);func NewTransitGateway(ctx *Context, name string, args *TransitGatewayArgs, opts ...ResourceOption) (*TransitGateway, error)public TransitGateway(string name, TransitGatewayArgs? args = null, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
TransitGateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
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
64512to65534for 16-bit ASNs and4200000000to4294967294for 32-bit ASNs. Default value:64512.- 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.- Dictionary<string, string>
Key-value tags for the EC2 Transit Gateway.
- 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
64512to65534for 16-bit ASNs and4200000000to4294967294for 32-bit ASNs. Default value:64512.- 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.- map[string]string
Key-value tags for the EC2 Transit Gateway.
- 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
64512to65534for 16-bit ASNs and4200000000to4294967294for 32-bit ASNs. Default value:64512.- 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.- {[key: string]: string}
Key-value tags for the EC2 Transit Gateway.
- vpn
Ecmp stringSupport Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable,enable. Default value:enable.
- amazon_
side_ floatasn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512to65534for 16-bit ASNs and4200000000to4294967294for 32-bit ASNs. Default value:64512.- 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.- Dict[str, str]
Key-value tags for the EC2 Transit Gateway.
- vpn_
ecmp_ strsupport 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
- 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
- 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
- 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
Look up an 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): TransitGatewaystatic get(resource_name, id, opts=None, amazon_side_asn=None, arn=None, association_default_route_table_id=None, auto_accept_shared_attachments=None, default_route_table_association=None, default_route_table_propagation=None, description=None, dns_support=None, owner_id=None, propagation_default_route_table_id=None, tags=None, vpn_ecmp_support=None, __props__=None);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)- 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.
The following state arguments are supported:
- Amazon
Side intAsn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512to65534for 16-bit ASNs and4200000000to4294967294for 32-bit ASNs. Default value:64512.- 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.- 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>
Key-value tags for the EC2 Transit Gateway.
- 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
64512to65534for 16-bit ASNs and4200000000to4294967294for 32-bit ASNs. Default value:64512.- 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.- 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
Key-value tags for the EC2 Transit Gateway.
- 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
64512to65534for 16-bit ASNs and4200000000to4294967294for 32-bit ASNs. Default value:64512.- 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.- 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}
Key-value tags for the EC2 Transit Gateway.
- vpn
Ecmp stringSupport Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable,enable. Default value:enable.
- amazon_
side_ floatasn Private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is
64512to65534for 16-bit ASNs and4200000000to4294967294for 32-bit ASNs. Default value:64512.- 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.- 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
- Dict[str, str]
Key-value tags for the EC2 Transit Gateway.
- vpn_
ecmp_ strsupport Whether VPN Equal Cost Multipath Protocol support is enabled. Valid values:
disable,enable. Default value:enable.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.