Class GetNatGateway
Inheritance
System.Object
GetNatGateway
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 GetNatGateway
Methods
View SourceInvokeAsync(GetNatGatewayArgs, InvokeOptions)
Provides details about a specific Nat Gateway.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var config = new Config();
var subnetId = config.RequireObject<dynamic>("subnetId");
var @default = Output.Create(Aws.Ec2.GetNatGateway.InvokeAsync(new Aws.Ec2.GetNatGatewayArgs
{
SubnetId = aws_subnet.Public.Id,
}));
}
}
Usage with tags:
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var @default = Output.Create(Aws.Ec2.GetNatGateway.InvokeAsync(new Aws.Ec2.GetNatGatewayArgs
{
SubnetId = aws_subnet.Public.Id,
Tags =
{
{ "Name", "gw NAT" },
},
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetNatGatewayResult> InvokeAsync(GetNatGatewayArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetNatGatewayArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetNatGatewayResult> |