Expand description
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 definednat_ips
ordrain_nat_ips
parameters, instead using theinitial_nat_ips
parameter to set at least one IP for the creation of the resource.
To get more information about RouterNatAddress, see:
- API documentation
- How-to Guides
§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}}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments