get Router Nat
To get more information about Snapshot, see:
How-to Guides
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetRouterNatArgs;
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 foo = ComputeFunctions.getRouterNat(GetRouterNatArgs.builder()
.name("my-nat")
.router("my-router")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getRouterNat.
Parameters
argument
A collection of arguments for invoking getRouterNat.
suspend fun getRouterNat(name: String, project: String? = null, region: String? = null, router: String): GetRouterNatResult
Return
A collection of values returned by getRouterNat.
Parameters
name
Name of the NAT service. The name must be 1-63 characters long and comply with RFC1035.
project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region
Region where the router and NAT reside.
router
The name of the Cloud Router in which this NAT will be configured.
See also
suspend fun getRouterNat(argument: suspend GetRouterNatPlainArgsBuilder.() -> Unit): GetRouterNatResult
Return
A collection of values returned by getRouterNat.
Parameters
argument
Builder for com.pulumi.gcp.compute.kotlin.inputs.GetRouterNatPlainArgs.