get Nat Gateway
Provides details about a specific Nat Gateway.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetNatGatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = Ec2Functions.getNatGateway(GetNatGatewayArgs.builder()
.subnetId(aws_subnet.public().id())
.build());
}
}
Return
A collection of values returned by getNatGateway.
Parameters
A collection of arguments for invoking getNatGateway.
Return
A collection of values returned by getNatGateway.
Parameters
Custom filter block as described below. More complex filters can be expressed using one or more filter
sub-blocks, which take the following arguments:
ID of the specific Nat Gateway to retrieve.
State of the NAT gateway (pending | failed | available | deleting | deleted ).
ID of subnet that the Nat Gateway resides in.
Map of tags, each pair of which must exactly match a pair on the desired Nat Gateway.
ID of the VPC that the Nat Gateway resides in.
See also
Return
A collection of values returned by getNatGateway.
Parameters
Builder for com.pulumi.aws.ec2.kotlin.inputs.GetNatGatewayPlainArgs.