GetDatabaseInstancesInstance constructor
- required Input<
List< availableMaintenanceVersions,String> > - required Input<
String> backupdrBackup, - required Input<
List< clones,GetDatabaseInstancesInstanceClone> > - required Input<
String> connectionName, - required Input<
String> databaseVersion, - required Input<
String> deletionPolicy, - required Input<
bool> deletionProtection, - required Input<
String> dnsName, - required Input<
List< dnsNames,GetDatabaseInstancesInstanceDnsName> > - required Input<
String> encryptionKeyName, - required Input<
bool> enforceNewSqlNetworkArchitecture, - required Input<
String> finalBackupDescription, - required Input<
String> firstIpAddress, - required Input<
bool> includeReplicasForMajorVersionUpgrade, - required Input<
String> instanceType, - required Input<
List< ipAddresses,GetDatabaseInstancesInstanceIpAddress> > - required Input<
String> maintenanceVersion, - required Input<
String> masterInstanceName, - required Input<
String> name, - required Input<
int> nodeCount, - required Input<
List< pointInTimeRestoreContexts,GetDatabaseInstancesInstancePointInTimeRestoreContext> > - required Input<
String> privateIpAddress, - required Input<
String> project, - required Input<
String> pscServiceAttachmentLink, - required Input<
String> publicIpAddress, - required Input<
String> region, - required Input<
List< replicaConfigurations,GetDatabaseInstancesInstanceReplicaConfiguration> > - required Input<
List< replicaNames,String> > - required Input<
List< replicationClusters,GetDatabaseInstancesInstanceReplicationCluster> > - required Input<
List< restoreBackupContexts,GetDatabaseInstancesInstanceRestoreBackupContext> > - required Input<
String> rootPassword, - required Input<
String> rootPasswordWo, - required Input<
String> rootPasswordWoVersion, - required Input<
String> selfLink, - required Input<
List< serverCaCerts,GetDatabaseInstancesInstanceServerCaCert> > - required Input<
String> serviceAccountEmailAddress, - required Input<
List< settings,GetDatabaseInstancesInstanceSetting> > - required Input<
bool> switchTransactionLogsToCloudStorageEnabled,
Creates a new GetDatabaseInstancesInstance.
availableMaintenanceVersions Available Maintenance versions.
backupdrBackup The name of the BackupDR backup to restore from.
clones Configuration for creating a new instance as a clone of another instance.
connectionName The connection name of the instance to be used in connection strings. For example, when connecting with Cloud SQL Proxy.
databaseVersion To filter out the Cloud SQL instances which are of the specified database version.
deletionPolicy Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE".
deletionProtection Used to block Terraform from deleting a SQL Instance. Defaults to true.
dnsName The instance-level dns name of the instance for PSC instances or public IP CAS instances.
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 Required.
enforceNewSqlNetworkArchitecture Whether to enforce the new SQL network architecture.
finalBackupDescription The description of final backup if instance enable create final backup during instance deletion.
firstIpAddress The first IPv4 address of any type assigned. This is to support accessing the first address in the list in a terraform output when the resource is configured with a count.
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 'database_version' 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 https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/instances#SqlInstanceType for supported values.
ipAddresses Required.
maintenanceVersion Maintenance version.
masterInstanceName The name of the instance that will act as the master in the replication setup. Note, this requires the master to have binaryLogEnabled set, as well as existing backups.
name The name of the instance. If the name is left blank, Terraform will randomly generate one when the instance is first created. This is done because after a name is used, it cannot be reused for up to one week.
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.
pointInTimeRestoreContexts Configuration for creating a new instance using point-in-time-restore from backupdr backup.
privateIpAddress IPv4 address assigned. This is a workaround for an issue fixed in Terraform 0.12 but also provides a convenient way to access an IP of a specific type without performing filtering in a Terraform config.
project The ID of the project in which the resources belong. If it is not provided, the provider project is used.
pscServiceAttachmentLink The link to service attachment of PSC instance.
publicIpAddress IPv4 address assigned. This is a workaround for an issue fixed in Terraform 0.12 but also provides a convenient way to access an IP of a specific type without performing filtering in a Terraform config.
region To filter out the Cloud SQL instances which are located in the specified region.
replicaConfigurations The configuration for replication.
replicaNames The replicas of the instance.
replicationClusters 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.
restoreBackupContexts Required.
rootPassword Initial root password. Required for MS SQL Server.
rootPasswordWo Initial root password. Required for MS SQL Server.
rootPasswordWoVersion Triggers update of rootPasswordWo write-only. For more info see updating write-only arguments
selfLink The URI of the created resource.
serverCaCerts Required.
serviceAccountEmailAddress The service account email address assigned to the instance.
settings The settings to use for the database. The configuration is detailed below.
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 GetDatabaseInstancesInstance({
required this.availableMaintenanceVersions,
required this.backupdrBackup,
required this.clones,
required this.connectionName,
required this.databaseVersion,
required this.deletionPolicy,
required this.deletionProtection,
required this.dnsName,
required this.dnsNames,
required this.encryptionKeyName,
required this.enforceNewSqlNetworkArchitecture,
required this.finalBackupDescription,
required this.firstIpAddress,
required this.includeReplicasForMajorVersionUpgrade,
required this.instanceType,
required this.ipAddresses,
required this.maintenanceVersion,
required this.masterInstanceName,
required this.name,
required this.nodeCount,
required this.pointInTimeRestoreContexts,
required this.privateIpAddress,
required this.project,
required this.pscServiceAttachmentLink,
required this.publicIpAddress,
required this.region,
required this.replicaConfigurations,
required this.replicaNames,
required this.replicationClusters,
required this.restoreBackupContexts,
required this.rootPassword,
required this.rootPasswordWo,
required this.rootPasswordWoVersion,
required this.selfLink,
required this.serverCaCerts,
required this.serviceAccountEmailAddress,
required this.settings,
required this.switchTransactionLogsToCloudStorageEnabled,
});