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 ofgooglecomputerouternat` 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 ofgooglecomputerouternatmin_ports_per_vm *udpidletimeoutsecs: an array ofgooglecomputerouternatudp_idle_timeout_sec *icmpidletimeoutsecs: an array ofgooglecomputerouternaticmp_idle_timeout_sec *tcpestablishedidletimeoutsecs: an array ofgooglecomputerouternat` tcpestablishedidletimeoutsec * `tcptransitoryidletimeoutsecs: an array ofgooglecomputerouternattcp_transitory_idle_timeout_sec *logconfigs: an array ofgooglecomputerouternatlog_config *routers: an array ofgooglecomputerouternatrouter *regions: an array ofgooglecomputerouternat` 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.