1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getTransitGateway

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.ec2.getTransitGateway

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    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:

    AssociationDefaultRouteTableId string
    The ID of the default association route table.
    AutoAcceptSharedAttachments string
    Enable or disable automatic acceptance of attachment requests. Disabled by default.
    DefaultRouteTableAssociation string
    Enable or disable automatic association with the default association route table. Enabled by default.
    DefaultRouteTablePropagation string
    Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
    Description string
    The description of the transit gateway.
    DnsSupport string
    Enable or disable DNS support. Enabled by default.
    Id string
    The ID of the transit gateway.
    PropagationDefaultRouteTableId string
    The ID of the default propagation route table.
    SecurityGroupReferencingSupport string

    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 .

    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags for the transit gateway.
    TransitGatewayArn string
    TransitGatewayCidrBlocks List<string>
    The transit gateway CIDR blocks.
    VpnEcmpSupport string
    Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
    AssociationDefaultRouteTableId string
    The ID of the default association route table.
    AutoAcceptSharedAttachments string
    Enable or disable automatic acceptance of attachment requests. Disabled by default.
    DefaultRouteTableAssociation string
    Enable or disable automatic association with the default association route table. Enabled by default.
    DefaultRouteTablePropagation string
    Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
    Description string
    The description of the transit gateway.
    DnsSupport string
    Enable or disable DNS support. Enabled by default.
    Id string
    The ID of the transit gateway.
    PropagationDefaultRouteTableId string
    The ID of the default propagation route table.
    SecurityGroupReferencingSupport string

    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 .

    Tags Tag
    The tags for the transit gateway.
    TransitGatewayArn string
    TransitGatewayCidrBlocks []string
    The transit gateway CIDR blocks.
    VpnEcmpSupport string
    Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
    associationDefaultRouteTableId String
    The ID of the default association route table.
    autoAcceptSharedAttachments String
    Enable or disable automatic acceptance of attachment requests. Disabled by default.
    defaultRouteTableAssociation String
    Enable or disable automatic association with the default association route table. Enabled by default.
    defaultRouteTablePropagation String
    Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
    description String
    The description of the transit gateway.
    dnsSupport String
    Enable or disable DNS support. Enabled by default.
    id String
    The ID of the transit gateway.
    propagationDefaultRouteTableId String
    The ID of the default propagation route table.
    securityGroupReferencingSupport String

    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 .

    tags List<Tag>
    The tags for the transit gateway.
    transitGatewayArn String
    transitGatewayCidrBlocks List<String>
    The transit gateway CIDR blocks.
    vpnEcmpSupport String
    Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
    associationDefaultRouteTableId string
    The ID of the default association route table.
    autoAcceptSharedAttachments string
    Enable or disable automatic acceptance of attachment requests. Disabled by default.
    defaultRouteTableAssociation string
    Enable or disable automatic association with the default association route table. Enabled by default.
    defaultRouteTablePropagation string
    Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
    description string
    The description of the transit gateway.
    dnsSupport string
    Enable or disable DNS support. Enabled by default.
    id string
    The ID of the transit gateway.
    propagationDefaultRouteTableId string
    The ID of the default propagation route table.
    securityGroupReferencingSupport string

    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 .

    tags Tag[]
    The tags for the transit gateway.
    transitGatewayArn string
    transitGatewayCidrBlocks string[]
    The transit gateway CIDR blocks.
    vpnEcmpSupport string
    Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
    association_default_route_table_id str
    The ID of the default association route table.
    auto_accept_shared_attachments str
    Enable or disable automatic acceptance of attachment requests. Disabled by default.
    default_route_table_association str
    Enable or disable automatic association with the default association route table. Enabled by default.
    default_route_table_propagation str
    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_route_table_id str
    The ID of the default propagation route table.
    security_group_referencing_support str

    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 .

    tags Sequence[root_Tag]
    The tags for the transit gateway.
    transit_gateway_arn str
    transit_gateway_cidr_blocks Sequence[str]
    The transit gateway CIDR blocks.
    vpn_ecmp_support str
    Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
    associationDefaultRouteTableId String
    The ID of the default association route table.
    autoAcceptSharedAttachments String
    Enable or disable automatic acceptance of attachment requests. Disabled by default.
    defaultRouteTableAssociation String
    Enable or disable automatic association with the default association route table. Enabled by default.
    defaultRouteTablePropagation String
    Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
    description String
    The description of the transit gateway.
    dnsSupport String
    Enable or disable DNS support. Enabled by default.
    id String
    The ID of the transit gateway.
    propagationDefaultRouteTableId String
    The ID of the default propagation route table.
    securityGroupReferencingSupport String

    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 .

    tags List<Property Map>
    The tags for the transit gateway.
    transitGatewayArn String
    transitGatewayCidrBlocks List<String>
    The transit gateway CIDR blocks.
    vpnEcmpSupport String
    Enable or disable Equal Cost Multipath Protocol support. Enabled by default.

    Supporting Types

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi