RouterNatAddressArgs

data class RouterNatAddressArgs(val drainNatIps: Output<List<String>>? = null, val natIps: Output<List<String>>? = null, val project: Output<String>? = null, val region: Output<String>? = null, val router: Output<String>? = null, val routerNat: Output<String>? = null) : ConvertibleToJava<RouterNatAddressArgs>

A resource used to set the list of IP addresses to be used in a NAT service and manage the draining of destroyed IPs.

Note: This resource is to be used alongside a gcp.compute.RouterNat resource, the router nat resource must have no defined nat_ips or drain_nat_ips parameters, instead using the initial_nat_ips parameter to set at least one IP for the creation of the resource. To get more information about RouterNatAddress, see:

Example Usage

Import

RouterNatAddress can be imported using any of these accepted formats:

  • projects/{{project}}/regions/{{region}}/routers/{{router}}/{{router_nat}}

  • {{project}}/{{region}}/{{router}}/{{router_nat}}

  • {{region}}/{{router}}/{{router_nat}}

  • {{router}}/{{router_nat}} When using the pulumi import command, RouterNatAddress can be imported using one of the formats above. For example:

$ pulumi import gcp:compute/routerNatAddress:RouterNatAddress default projects/{{project}}/regions/{{region}}/routers/{{router}}/{{router_nat}}
$ pulumi import gcp:compute/routerNatAddress:RouterNatAddress default {{project}}/{{region}}/{{router}}/{{router_nat}}
$ pulumi import gcp:compute/routerNatAddress:RouterNatAddress default {{region}}/{{router}}/{{router_nat}}
$ pulumi import gcp:compute/routerNatAddress:RouterNatAddress default {{router}}/{{router_nat}}

Constructors

Link copied to clipboard
constructor(drainNatIps: Output<List<String>>? = null, natIps: Output<List<String>>? = null, project: Output<String>? = null, region: Output<String>? = null, router: Output<String>? = null, routerNat: Output<String>? = null)

Properties

Link copied to clipboard
val drainNatIps: Output<List<String>>? = null

A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT.

Link copied to clipboard
val natIps: Output<List<String>>? = null

Self-links of NAT IPs to be used in a Nat service. Only valid if the referenced RouterNat natIpAllocateOption is set to MANUAL_ONLY.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val region: Output<String>? = null

Region where the NAT service reside.

Link copied to clipboard
val router: Output<String>? = null

The name of the Cloud Router in which the referenced NAT service is configured.

Link copied to clipboard
val routerNat: Output<String>? = null

The name of the Nat service in which this address will be configured.

Functions

Link copied to clipboard
open override fun toJava(): RouterNatAddressArgs