Show / Hide Table of Contents

Class GetLocalGateways

Inheritance
System.Object
GetLocalGateways
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 GetLocalGateways

Methods

View Source

InvokeAsync(GetLocalGatewaysArgs, InvokeOptions)

Provides information for multiple EC2 Local Gateways, such as their identifiers.

{{% examples %}}

Example Usage

{{% example %}}

The following example retrieves Local Gateways with a resource tag of service set to production.

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var fooLocalGateways = Output.Create(Aws.Ec2.GetLocalGateways.InvokeAsync(new Aws.Ec2.GetLocalGatewaysArgs
    {
        Tags = 
        {
            { "service", "production" },
        },
    }));
    this.Foo = fooLocalGateways.Apply(fooLocalGateways => fooLocalGateways.Ids);
}

[Output("foo")]
public Output<string> Foo { get; set; }
}

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

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