RouterNatAddress

class RouterNatAddress : KotlinCustomResource

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}}

Properties

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

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 id: Output<String>
Link copied to clipboard
val natIps: Output<List<String>>

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>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val region: Output<String>

Region where the NAT service reside.

Link copied to clipboard
val router: Output<String>

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

Link copied to clipboard
val routerNat: Output<String>

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

Link copied to clipboard
val urn: Output<String>