google_sql_database_instance

Nivis Nix constructor for the google_sql_database_instance 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,
  database_version,
  backupdr_backup ? null,
  database_center_integration ? null,
  deletion_policy ? null,
  deletion_protection ? null,
  encryption_confidential_mode ? null,
  encryption_key_name ? null,
  enforce_new_sql_network_architecture ? null,
  final_backup_description ? null,
  id ? null,
  include_replicas_for_major_version_upgrade ? null,
  instance_type ? null,
  maintenance_version ? null,
  master_instance_name ? null,
  cfg_name ? null,
  node_count ? null,
  project ? null,
  region ? null,
  replica_names ? null,
  root_password ? null,
  root_password_wo ? null,
  root_password_wo_version ? null,
  switch_transaction_logs_to_cloud_storage_enabled ? null,
  blue_green_deployment ? null,
  clone ? null,
  point_in_time_restore_context ? null,
  replica_configuration ? null,
  replication_cluster ? null,
  restore_backup_context ? null,
  settings ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • database_version
Optional arguments
  • backupdr_backup (defaults to null)
  • database_center_integration (defaults to null)
  • deletion_policy (defaults to null)
  • deletion_protection (defaults to null)
  • encryption_confidential_mode (defaults to null)
  • encryption_key_name (defaults to null)
  • enforce_new_sql_network_architecture (defaults to null)
  • final_backup_description (defaults to null)
  • id (defaults to null)
  • include_replicas_for_major_version_upgrade (defaults to null)
  • instance_type (defaults to null)
  • maintenance_version (defaults to null)
  • master_instance_name (defaults to null)
  • cfg_name (defaults to null)
  • node_count (defaults to null)
  • project (defaults to null)
  • region (defaults to null)
  • replica_names (defaults to null)
  • root_password (defaults to null)
  • root_password_wo (defaults to null)
  • root_password_wo_version (defaults to null)
  • switch_transaction_logs_to_cloud_storage_enabled (defaults to null)
  • blue_green_deployment (defaults to null)
  • clone (defaults to null)
  • point_in_time_restore_context (defaults to null)
  • replica_configuration (defaults to null)
  • replication_cluster (defaults to null)
  • restore_backup_context (defaults to null)
  • settings (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • available_maintenance_versions
  • connection_name
  • dns_name
  • dns_names
  • first_ip_address
  • ip_address
  • private_ip_address
  • psc_service_attachment_link
  • public_ip_address
  • self_link
  • server_ca_cert
  • service_account_email_address
Example
google_sql_database_instance {
  name = "sql_database_instance";
  database_version = …;  # required
}

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