google_compute_subnetwork

Nivis Nix constructor for the google_compute_subnetwork resource (provider google). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  network,
  allow_subnet_cidr_routes_overlap ? null,
  deletion_policy ? null,
  description ? null,
  external_ipv6_prefix ? null,
  id ? null,
  internal_ipv6_prefix ? null,
  ip_cidr_range ? null,
  ip_collection ? null,
  ipv6_access_type ? null,
  cfg_name ? null,
  private_ip_google_access ? null,
  private_ipv6_google_access ? null,
  project ? null,
  purpose ? null,
  region ? null,
  reserved_internal_range ? null,
  resolve_subnet_mask ? null,
  role ? null,
  send_secondary_ip_range_if_empty ? null,
  stack_type ? null,
  log_config ? null,
  params ? null,
  secondary_ip_range ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • network
Optional arguments
  • allow_subnet_cidr_routes_overlap (defaults to null)
  • deletion_policy (defaults to null)
  • description (defaults to null)
  • external_ipv6_prefix (defaults to null)
  • id (defaults to null)
  • internal_ipv6_prefix (defaults to null)
  • ip_cidr_range (defaults to null)
  • ip_collection (defaults to null)
  • ipv6_access_type (defaults to null)
  • cfg_name (defaults to null)
  • private_ip_google_access (defaults to null)
  • private_ipv6_google_access (defaults to null)
  • project (defaults to null)
  • purpose (defaults to null)
  • region (defaults to null)
  • reserved_internal_range (defaults to null)
  • resolve_subnet_mask (defaults to null)
  • role (defaults to null)
  • send_secondary_ip_range_if_empty (defaults to null)
  • stack_type (defaults to null)
  • log_config (defaults to null)
  • params (defaults to null)
  • secondary_ip_range (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • creation_timestamp
  • fingerprint
  • gateway_address
  • ipv6_cidr_range
  • ipv6_gce_endpoint
  • self_link
  • state
  • subnetwork_id
Example
google_compute_subnetwork {
  name = "compute_subnetwork";
  network = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.