DatabaseInstanceArgs constructor

const DatabaseInstanceArgs({
  1. Input<String?>? backupdrBackup,
  2. Input<DatabaseInstanceClone?>? clone,
  3. required Input<String> databaseVersion,
  4. Input<String?>? deletionPolicy,
  5. Input<bool?>? deletionProtection,
  6. Input<String?>? encryptionKeyName,
  7. Input<bool?>? enforceNewSqlNetworkArchitecture,
  8. Input<String?>? finalBackupDescription,
  9. Input<bool?>? includeReplicasForMajorVersionUpgrade,
  10. Input<String?>? instanceType,
  11. Input<String?>? maintenanceVersion,
  12. Input<String?>? masterInstanceName,
  13. Input<String?>? name,
  14. Input<int?>? nodeCount,
  15. Input<DatabaseInstancePointInTimeRestoreContext?>? pointInTimeRestoreContext,
  16. Input<String?>? project,
  17. Input<String?>? region,
  18. Input<DatabaseInstanceReplicaConfiguration?>? replicaConfiguration,
  19. Input<List<String>?>? replicaNames,
  20. Input<DatabaseInstanceReplicationCluster?>? replicationCluster,
  21. Input<DatabaseInstanceRestoreBackupContext?>? restoreBackupContext,
  22. Input<String?>? rootPassword,
  23. Input<String?>? rootPasswordWo,
  24. Input<String?>? rootPasswordWoVersion,
  25. Input<DatabaseInstanceSettings?>? settings,
  26. 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,
});