google_sql_database_instanceNivis 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 tonull)database_center_integration(defaults tonull)deletion_policy(defaults tonull)deletion_protection(defaults tonull)encryption_confidential_mode(defaults tonull)encryption_key_name(defaults tonull)enforce_new_sql_network_architecture(defaults tonull)final_backup_description(defaults tonull)id(defaults tonull)include_replicas_for_major_version_upgrade(defaults tonull)instance_type(defaults tonull)maintenance_version(defaults tonull)master_instance_name(defaults tonull)cfg_name(defaults tonull)node_count(defaults tonull)project(defaults tonull)region(defaults tonull)replica_names(defaults tonull)root_password(defaults tonull)root_password_wo(defaults tonull)root_password_wo_version(defaults tonull)switch_transaction_logs_to_cloud_storage_enabled(defaults tonull)blue_green_deployment(defaults tonull)clone(defaults tonull)point_in_time_restore_context(defaults tonull)replica_configuration(defaults tonull)replication_cluster(defaults tonull)restore_backup_context(defaults tonull)settings(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
available_maintenance_versionsconnection_namedns_namedns_namesfirst_ip_addressip_addressprivate_ip_addresspsc_service_attachment_linkpublic_ip_addressself_linkserver_ca_certservice_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.