google_compute_snapshot

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

Constructor
{
  name,
  chain_name ? null,
  deletion_policy ? null,
  description ? null,
  guest_flush ? null,
  id ? null,
  labels ? null,
  cfg_name ? null,
  project ? null,
  snapshot_type ? null,
  source_disk ? null,
  source_instant_snapshot ? null,
  storage_locations ? null,
  zone ? null,
  params ? null,
  snapshot_encryption_key ? null,
  source_disk_encryption_key ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments

_None._

Optional arguments
  • chain_name (defaults to null)
  • deletion_policy (defaults to null)
  • description (defaults to null)
  • guest_flush (defaults to null)
  • id (defaults to null)
  • labels (defaults to null)
  • cfg_name (defaults to null)
  • project (defaults to null)
  • snapshot_type (defaults to null)
  • source_disk (defaults to null)
  • source_instant_snapshot (defaults to null)
  • storage_locations (defaults to null)
  • zone (defaults to null)
  • params (defaults to null)
  • snapshot_encryption_key (defaults to null)
  • source_disk_encryption_key (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • creation_timestamp
  • disk_size_gb
  • effective_labels
  • label_fingerprint
  • licenses
  • self_link
  • snapshot_id
  • storage_bytes
  • terraform_labels
Example
google_compute_snapshot {
  name = "compute_snapshot";
}

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