DatabaseInstanceArgs constructor
- Input<
String?> ? backupdrBackup, - Input<
DatabaseInstanceClone?> ? clone, - required Input<
String> databaseVersion, - Input<
String?> ? deletionPolicy, - Input<
bool?> ? deletionProtection, - Input<
String?> ? encryptionKeyName, - Input<
bool?> ? enforceNewSqlNetworkArchitecture, - Input<
String?> ? finalBackupDescription, - Input<
bool?> ? includeReplicasForMajorVersionUpgrade, - Input<
String?> ? instanceType, - Input<
String?> ? maintenanceVersion, - Input<
String?> ? masterInstanceName, - Input<
String?> ? name, - Input<
int?> ? nodeCount, - Input<
DatabaseInstancePointInTimeRestoreContext?> ? pointInTimeRestoreContext, - Input<
String?> ? project, - Input<
String?> ? region, - Input<
DatabaseInstanceReplicaConfiguration?> ? replicaConfiguration, - Input<
List< ? replicaNames,String> ?> - Input<
DatabaseInstanceReplicationCluster?> ? replicationCluster, - Input<
DatabaseInstanceRestoreBackupContext?> ? restoreBackupContext, - Input<
String?> ? rootPassword, - Input<
String?> ? rootPasswordWo, - Input<
String?> ? rootPasswordWoVersion, - Input<
DatabaseInstanceSettings?> ? settings, - Input<
bool?> ? switchTransactionLogsToCloudStorageEnabled,
Creates a new DatabaseInstanceArgs.
backupdrBackup The backupdrBackup needed to restore the database to a backup run. This field will
clone The context needed to create this instance as a clone of another instance. When this field is set during
databaseVersion The MySQL, PostgreSQL or
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE".
deletionProtection Whether or not to allow the provider to destroy the instance. Unless this field is set to false
encryptionKeyName The full path to the encryption key used for the CMEK disk encryption. Setting
enforceNewSqlNetworkArchitecture Whether to enforce the new SQL network architecture.
finalBackupDescription The description of final backup. Only set this field when final_backup_config.enabled is true.
includeReplicasForMajorVersionUpgrade When this parameter is set to true, Cloud SQL instances can perform in-place major version upgrades of read replicas along with the primary instance when databaseVersion is updated. This is an input-only field that is not persisted in the API and only takes effect during a major version upgrade.
instanceType The type of the instance. See API reference for SqlInstanceType for supported values.
maintenanceVersion The current software version on the instance. This attribute can not be set during creation. Refer to availableMaintenanceVersions attribute to see what maintenanceVersion are available for upgrade. When this attribute gets updated, it will cause an instance restart. Setting a maintenanceVersion value that is older than the current one on the instance will be ignored.
masterInstanceName The name of the existing instance that will
name The name of the instance. If the name is left
nodeCount For a read pool instance, the number of nodes in the read pool. For read pools with auto scaling enabled, this field is read only.
pointInTimeRestoreContext The pointInTimeRestoreContext needed for performing a point-in-time recovery of an instance managed by Google Cloud Backup and Disaster Recovery. This field will
project The ID of the project in which the resource belongs. If it
region The region the instance will sit in. If a region is not provided in the resource definition,
replicaConfiguration The configuration for replication. The
replicaNames List of replica names. Can be updated.
replicationCluster A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set if the primary has psaWriteEndpoint set or both the primary and replica are created.
restoreBackupContext The context needed to restore the database to a backup run. This field will
rootPassword Initial root password. Can be updated. Required for MS SQL Server.
rootPasswordWo NOTE: This field is write-only and its value will not be updated in state as part of read operations.
rootPasswordWoVersion Triggers update of rootPasswordWo write-only. Increment this value when an update to rootPasswordWo is needed. For more info see updating write-only arguments
settings The settings to use for the database. The
switchTransactionLogsToCloudStorageEnabled When set to true, Cloud SQL instances can switch storing point-in-time recovery transaction logs from a data disk to Cloud Storage, freeing up data disk space and enabling longer retention windows. This is an input-only field that is not persisted in the API.
Implementation
const DatabaseInstanceArgs({
this.backupdrBackup,
this.clone,
required this.databaseVersion,
this.deletionPolicy,
this.deletionProtection,
this.encryptionKeyName,
this.enforceNewSqlNetworkArchitecture,
this.finalBackupDescription,
this.includeReplicasForMajorVersionUpgrade,
this.instanceType,
this.maintenanceVersion,
this.masterInstanceName,
this.name,
this.nodeCount,
this.pointInTimeRestoreContext,
this.project,
this.region,
this.replicaConfiguration,
this.replicaNames,
this.replicationCluster,
this.restoreBackupContext,
this.rootPassword,
this.rootPasswordWo,
this.rootPasswordWoVersion,
this.settings,
this.switchTransactionLogsToCloudStorageEnabled,
});