We recommend new projects start with resources from the AWS provider.
aws-native.ec2.getTransitGateway
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::EC2::TransitGateway
Using getTransitGateway
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTransitGateway(args: GetTransitGatewayArgs, opts?: InvokeOptions): Promise<GetTransitGatewayResult>
function getTransitGatewayOutput(args: GetTransitGatewayOutputArgs, opts?: InvokeOptions): Output<GetTransitGatewayResult>
def get_transit_gateway(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTransitGatewayResult
def get_transit_gateway_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTransitGatewayResult]
func LookupTransitGateway(ctx *Context, args *LookupTransitGatewayArgs, opts ...InvokeOption) (*LookupTransitGatewayResult, error)
func LookupTransitGatewayOutput(ctx *Context, args *LookupTransitGatewayOutputArgs, opts ...InvokeOption) LookupTransitGatewayResultOutput
> Note: This function is named LookupTransitGateway
in the Go SDK.
public static class GetTransitGateway
{
public static Task<GetTransitGatewayResult> InvokeAsync(GetTransitGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetTransitGatewayResult> Invoke(GetTransitGatewayInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTransitGatewayResult> getTransitGateway(GetTransitGatewayArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ec2:getTransitGateway
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of the transit gateway.
- Id string
- The ID of the transit gateway.
- id String
- The ID of the transit gateway.
- id string
- The ID of the transit gateway.
- id str
- The ID of the transit gateway.
- id String
- The ID of the transit gateway.
getTransitGateway Result
The following output properties are available:
- Association
Default stringRoute Table Id - The ID of the default association route table.
- string
- Enable or disable automatic acceptance of attachment requests. Disabled by default.
- Default
Route stringTable Association - Enable or disable automatic association with the default association route table. Enabled by default.
- Default
Route stringTable Propagation - Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
- Description string
- The description of the transit gateway.
- Dns
Support string - Enable or disable DNS support. Enabled by default.
- Id string
- The ID of the transit gateway.
- Propagation
Default stringRoute Table Id - The ID of the default propagation route table.
- Security
Group stringReferencing Support Enables you to reference a security group across VPCs attached to a transit gateway (TGW). Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.
For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .
- List<Pulumi.
Aws Native. Outputs. Tag> - The tags for the transit gateway.
- Transit
Gateway stringArn - Transit
Gateway List<string>Cidr Blocks - The transit gateway CIDR blocks.
- Vpn
Ecmp stringSupport - Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
- Association
Default stringRoute Table Id - The ID of the default association route table.
- string
- Enable or disable automatic acceptance of attachment requests. Disabled by default.
- Default
Route stringTable Association - Enable or disable automatic association with the default association route table. Enabled by default.
- Default
Route stringTable Propagation - Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
- Description string
- The description of the transit gateway.
- Dns
Support string - Enable or disable DNS support. Enabled by default.
- Id string
- The ID of the transit gateway.
- Propagation
Default stringRoute Table Id - The ID of the default propagation route table.
- Security
Group stringReferencing Support Enables you to reference a security group across VPCs attached to a transit gateway (TGW). Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.
For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .
- Tag
- The tags for the transit gateway.
- Transit
Gateway stringArn - Transit
Gateway []stringCidr Blocks - The transit gateway CIDR blocks.
- Vpn
Ecmp stringSupport - Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
- association
Default StringRoute Table Id - The ID of the default association route table.
- String
- Enable or disable automatic acceptance of attachment requests. Disabled by default.
- default
Route StringTable Association - Enable or disable automatic association with the default association route table. Enabled by default.
- default
Route StringTable Propagation - Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
- description String
- The description of the transit gateway.
- dns
Support String - Enable or disable DNS support. Enabled by default.
- id String
- The ID of the transit gateway.
- propagation
Default StringRoute Table Id - The ID of the default propagation route table.
- security
Group StringReferencing Support Enables you to reference a security group across VPCs attached to a transit gateway (TGW). Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.
For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .
- List<Tag>
- The tags for the transit gateway.
- transit
Gateway StringArn - transit
Gateway List<String>Cidr Blocks - The transit gateway CIDR blocks.
- vpn
Ecmp StringSupport - Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
- association
Default stringRoute Table Id - The ID of the default association route table.
- string
- Enable or disable automatic acceptance of attachment requests. Disabled by default.
- default
Route stringTable Association - Enable or disable automatic association with the default association route table. Enabled by default.
- default
Route stringTable Propagation - Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
- description string
- The description of the transit gateway.
- dns
Support string - Enable or disable DNS support. Enabled by default.
- id string
- The ID of the transit gateway.
- propagation
Default stringRoute Table Id - The ID of the default propagation route table.
- security
Group stringReferencing Support Enables you to reference a security group across VPCs attached to a transit gateway (TGW). Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.
For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .
- Tag[]
- The tags for the transit gateway.
- transit
Gateway stringArn - transit
Gateway string[]Cidr Blocks - The transit gateway CIDR blocks.
- vpn
Ecmp stringSupport - Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
- association_
default_ strroute_ table_ id - The ID of the default association route table.
- str
- Enable or disable automatic acceptance of attachment requests. Disabled by default.
- default_
route_ strtable_ association - Enable or disable automatic association with the default association route table. Enabled by default.
- default_
route_ strtable_ propagation - Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
- description str
- The description of the transit gateway.
- dns_
support str - Enable or disable DNS support. Enabled by default.
- id str
- The ID of the transit gateway.
- propagation_
default_ strroute_ table_ id - The ID of the default propagation route table.
- security_
group_ strreferencing_ support Enables you to reference a security group across VPCs attached to a transit gateway (TGW). Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.
For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .
- Sequence[root_Tag]
- The tags for the transit gateway.
- transit_
gateway_ strarn - transit_
gateway_ Sequence[str]cidr_ blocks - The transit gateway CIDR blocks.
- vpn_
ecmp_ strsupport - Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
- association
Default StringRoute Table Id - The ID of the default association route table.
- String
- Enable or disable automatic acceptance of attachment requests. Disabled by default.
- default
Route StringTable Association - Enable or disable automatic association with the default association route table. Enabled by default.
- default
Route StringTable Propagation - Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
- description String
- The description of the transit gateway.
- dns
Support String - Enable or disable DNS support. Enabled by default.
- id String
- The ID of the transit gateway.
- propagation
Default StringRoute Table Id - The ID of the default propagation route table.
- security
Group StringReferencing Support Enables you to reference a security group across VPCs attached to a transit gateway (TGW). Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.
For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .
- List<Property Map>
- The tags for the transit gateway.
- transit
Gateway StringArn - transit
Gateway List<String>Cidr Blocks - The transit gateway CIDR blocks.
- vpn
Ecmp StringSupport - Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.