Show / Hide Table of Contents

Class GetTransitGateway

Inheritance
System.Object
GetTransitGateway
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2TransitGateway
Assembly: Pulumi.Aws.dll
Syntax
public static class GetTransitGateway

Methods

View Source

InvokeAsync(GetTransitGatewayArgs, InvokeOptions)

Get information on an EC2 Transit Gateway.

{{% examples %}}

Example Usage

{{% example %}}

By Filter

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Aws.Ec2TransitGateway.GetTransitGateway.InvokeAsync(new Aws.Ec2TransitGateway.GetTransitGatewayArgs
    {
        Filters = 
        {
            new Aws.Ec2TransitGateway.Inputs.GetTransitGatewayFilterArgs
            {
                Name = "options.amazon-side-asn",
                Values = 
                {
                    "64512",
                },
            },
        },
    }));
}

}

{{% /example %}} {{% example %}}

By Identifier

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Aws.Ec2TransitGateway.GetTransitGateway.InvokeAsync(new Aws.Ec2TransitGateway.GetTransitGatewayArgs
    {
        Id = "tgw-12345678",
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetTransitGatewayResult> InvokeAsync(GetTransitGatewayArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetTransitGatewayArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetTransitGatewayResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.