Show / Hide Table of Contents

Class GetLocalGatewayRouteTable

Inheritance
System.Object
GetLocalGatewayRouteTable
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.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public static class GetLocalGatewayRouteTable

Methods

View Source

InvokeAsync(GetLocalGatewayRouteTableArgs, InvokeOptions)

Provides details about an EC2 Local Gateway Route Table.

This data source can prove useful when a module accepts a local gateway route table id as an input variable and needs to, for example, find the associated Outpost or Local Gateway.

{{% examples %}}

Example Usage

{{% example %}}

The following example returns a specific local gateway route table ID

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var config = new Config();
    var awsEc2LocalGatewayRouteTable = config.RequireObject<dynamic>("awsEc2LocalGatewayRouteTable");
    var selected = Output.Create(Aws.Ec2.GetLocalGatewayRouteTable.InvokeAsync(new Aws.Ec2.GetLocalGatewayRouteTableArgs
    {
        LocalGatewayRouteTableId = awsEc2LocalGatewayRouteTable,
    }));
}

}

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

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