Class GetLocalGateway
Inheritance
System.Object
GetLocalGateway
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 GetLocalGateway
Methods
View SourceInvokeAsync(GetLocalGatewayArgs, InvokeOptions)
Provides details about an EC2 Local Gateway.
{{% examples %}}
Example Usage
{{% example %}}
The following example shows how one might accept a local gateway id as a variable.
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var config = new Config();
var localGatewayId = config.RequireObject<dynamic>("localGatewayId");
var selected = Output.Create(Aws.Ec2.GetLocalGateway.InvokeAsync(new Aws.Ec2.GetLocalGatewayArgs
{
Id = localGatewayId,
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetLocalGatewayResult> InvokeAsync(GetLocalGatewayArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetLocalGatewayArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetLocalGatewayResult> |