google_compute_router_nats resource
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 google_compute_router_nat for more detailed information.
names: an array ofgoogle_compute_router_natnamenat_ip_allocate_options: an array ofgoogle_compute_router_natnat_ip_allocate_optionnat_ips: an array ofgoogle_compute_router_natnat_ipsdrain_nat_ips: an array ofgoogle_compute_router_natdrain_nat_ipssource_subnetwork_ip_ranges_to_nats: an array ofgoogle_compute_router_natsource_subnetwork_ip_ranges_to_natsubnetworks: an array ofgoogle_compute_router_natsubnetworkmin_ports_per_vms: an array ofgoogle_compute_router_natmin_ports_per_vmudp_idle_timeout_secs: an array ofgoogle_compute_router_natudp_idle_timeout_secicmp_idle_timeout_secs: an array ofgoogle_compute_router_naticmp_idle_timeout_sectcp_established_idle_timeout_secs: an array ofgoogle_compute_router_nattcp_established_idle_timeout_sectcp_transitory_idle_timeout_secs: an array ofgoogle_compute_router_nattcp_transitory_idle_timeout_seclog_configs: an array ofgoogle_compute_router_natlog_configenable_endpoint_independent_mappings: an array ofgoogle_compute_router_natenable_endpoint_independent_mappingrouters: an array ofgoogle_compute_router_natrouterregions: an array ofgoogle_compute_router_natregion
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.