DatabaseInstanceState constructor

const DatabaseInstanceState({
  1. Input<List<String>?>? availableMaintenanceVersions,
  2. Input<String?>? backupdrBackup,
  3. Input<DatabaseInstanceClone?>? clone,
  4. Input<String?>? connectionName,
  5. Input<String?>? databaseVersion,
  6. Input<String?>? deletionPolicy,
  7. Input<bool?>? deletionProtection,
  8. Input<String?>? dnsName,
  9. Input<List<DatabaseInstanceDnsName>?>? dnsNames,
  10. Input<String?>? encryptionKeyName,
  11. Input<bool?>? enforceNewSqlNetworkArchitecture,
  12. Input<String?>? finalBackupDescription,
  13. Input<String?>? firstIpAddress,
  14. Input<bool?>? includeReplicasForMajorVersionUpgrade,
  15. Input<String?>? instanceType,
  16. Input<List<DatabaseInstanceIpAddress>?>? ipAddresses,
  17. Input<String?>? maintenanceVersion,
  18. Input<String?>? masterInstanceName,
  19. Input<String?>? name,
  20. Input<int?>? nodeCount,
  21. Input<DatabaseInstancePointInTimeRestoreContext?>? pointInTimeRestoreContext,
  22. Input<String?>? privateIpAddress,
  23. Input<String?>? project,
  24. Input<String?>? pscServiceAttachmentLink,
  25. Input<String?>? publicIpAddress,
  26. Input<String?>? region,
  27. Input<DatabaseInstanceReplicaConfiguration?>? replicaConfiguration,
  28. Input<List<String>?>? replicaNames,
  29. Input<DatabaseInstanceReplicationCluster?>? replicationCluster,
  30. Input<DatabaseInstanceRestoreBackupContext?>? restoreBackupContext,
  31. Input<String?>? rootPassword,
  32. Input<String?>? rootPasswordWo,
  33. Input<String?>? rootPasswordWoVersion,
  34. Input<String?>? selfLink,
  35. Input<List<DatabaseInstanceServerCaCert>?>? serverCaCerts,
  36. Input<String?>? serviceAccountEmailAddress,
  37. Input<DatabaseInstanceSettings?>? settings,
  38. Input<bool?>? switchTransactionLogsToCloudStorageEnabled,
})

Creates a new DatabaseInstanceState. availableMaintenanceVersions The list of all maintenance versions applicable on the instance. 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 connectionName The connection name of the instance to be used in 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 dnsName The DNS name of the instance. See Connect to an instance using Private Service Connect for more details. dnsNames The list of DNS names used by this instance. Different connection types for an instance may have different DNS names. DNS names can apply to an individual instance or a cluster of instances. 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. firstIpAddress The first IPv4 address of any type assigned. 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. ipAddresses Optional. 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 privateIpAddress The first private (PRIVATE) IPv4 address assigned. project The ID of the project in which the resource belongs. If it pscServiceAttachmentLink the URI that points to the service attachment of the instance. publicIpAddress The first public (PRIMARY) IPv4 address assigned. 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 selfLink The URI of the created resource. serverCaCerts Optional. serviceAccountEmailAddress The service account email address assigned to the 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 DatabaseInstanceState({
  this.availableMaintenanceVersions,
  this.backupdrBackup,
  this.clone,
  this.connectionName,
  this.databaseVersion,
  this.deletionPolicy,
  this.deletionProtection,
  this.dnsName,
  this.dnsNames,
  this.encryptionKeyName,
  this.enforceNewSqlNetworkArchitecture,
  this.finalBackupDescription,
  this.firstIpAddress,
  this.includeReplicasForMajorVersionUpgrade,
  this.instanceType,
  this.ipAddresses,
  this.maintenanceVersion,
  this.masterInstanceName,
  this.name,
  this.nodeCount,
  this.pointInTimeRestoreContext,
  this.privateIpAddress,
  this.project,
  this.pscServiceAttachmentLink,
  this.publicIpAddress,
  this.region,
  this.replicaConfiguration,
  this.replicaNames,
  this.replicationCluster,
  this.restoreBackupContext,
  this.rootPassword,
  this.rootPasswordWo,
  this.rootPasswordWoVersion,
  this.selfLink,
  this.serverCaCerts,
  this.serviceAccountEmailAddress,
  this.settings,
  this.switchTransactionLogsToCloudStorageEnabled,
});