Syntax
A google_compute_router_nats
is used to test a Google RouterNat resource
Beta Resource
This resource has beta fields available. To retrieve these fields, include beta: true
in the constructor for the resource
Examples
describe google_compute_router_nats(project: 'chef-gcp-inspec', region: 'europe-west2', router: 'inspec-gcp-router') do
its('names') { should include 'inspec-router-nat' }
end
Properties
Properties that can be accessed from the google_compute_router_nats
resource:
See googlecomputerouter_nat.md for more detailed information
* names
: an array of google_compute_router_nat
name
* nat_ip_allocate_options
: an array of google_compute_router_nat
natipallocateoption
* `natips: an array of
googlecomputerouternat` natips
* drain_nat_ips
: an array of google_compute_router_nat
drainnatips
* source_subnetwork_ip_ranges_to_nats
: an array of google_compute_router_nat
sourcesubnetworkiprangestonat
* subnetworks
: an array of `googlecomputerouternatsubnetwork
*
minportspervms: an array of
googlecomputerouternatmin_ports_per_vm
*
udpidletimeoutsecs: an array of
googlecomputerouternatudp_idle_timeout_sec
*
icmpidletimeoutsecs: an array of
googlecomputerouternaticmp_idle_timeout_sec
*
tcpestablishedidletimeoutsecs: an array of
googlecomputerouternat` tcpestablishedidletimeoutsec
* `tcptransitoryidletimeoutsecs: an array of
googlecomputerouternattcp_transitory_idle_timeout_sec
*
logconfigs: an array of
googlecomputerouternatlog_config
*
routers: an array of
googlecomputerouternatrouter
*
regions: an array of
googlecomputerouternat` region
Filter Criteria
This resource supports all of the above properties as filter criteria, which can be used
with where
as a block or a method.
GCP Permissions
Ensure the Compute Engine API is enabled for the current project.