CloudSqlSettingsArgs

data class CloudSqlSettingsArgs(val activationPolicy: Output<CloudSqlSettingsActivationPolicy>? = null, val autoStorageIncrease: Output<Boolean>? = null, val dataDiskSizeGb: Output<String>? = null, val dataDiskType: Output<CloudSqlSettingsDataDiskType>? = null, val databaseFlags: Output<Map<String, String>>? = null, val databaseVersion: Output<CloudSqlSettingsDatabaseVersion>? = null, val ipConfig: Output<SqlIpConfigArgs>? = null, val rootPassword: Output<String>? = null, val sourceId: Output<String>? = null, val storageAutoResizeLimit: Output<String>? = null, val tier: Output<String>? = null, val userLabels: Output<Map<String, String>>? = null, val zone: Output<String>? = null) : ConvertibleToJava<CloudSqlSettingsArgs>

Settings for creating a Cloud SQL database instance.

Constructors

Link copied to clipboard
fun CloudSqlSettingsArgs(activationPolicy: Output<CloudSqlSettingsActivationPolicy>? = null, autoStorageIncrease: Output<Boolean>? = null, dataDiskSizeGb: Output<String>? = null, dataDiskType: Output<CloudSqlSettingsDataDiskType>? = null, databaseFlags: Output<Map<String, String>>? = null, databaseVersion: Output<CloudSqlSettingsDatabaseVersion>? = null, ipConfig: Output<SqlIpConfigArgs>? = null, rootPassword: Output<String>? = null, sourceId: Output<String>? = null, storageAutoResizeLimit: Output<String>? = null, tier: Output<String>? = null, userLabels: Output<Map<String, String>>? = null, zone: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): CloudSqlSettingsArgs

Properties

Link copied to clipboard

The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains so even in the absence of connection requests. NEVER: The instance is off; it is not activated, even if a connection request arrives.

Link copied to clipboard
val autoStorageIncrease: Output<Boolean>? = null

default: ON If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

Link copied to clipboard
val databaseFlags: Output<Map<String, String>>? = null

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Link copied to clipboard

The database engine type and version.

Link copied to clipboard
val dataDiskSizeGb: Output<String>? = null

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

Link copied to clipboard

The type of storage: PD_SSD (default) or PD_HDD.

Link copied to clipboard
val ipConfig: Output<SqlIpConfigArgs>? = null

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

Link copied to clipboard
val rootPassword: Output<String>? = null

Input only. Initial root password.

Link copied to clipboard
val sourceId: Output<String>? = null

The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID

Link copied to clipboard
val storageAutoResizeLimit: Output<String>? = null

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

Link copied to clipboard
val tier: Output<String>? = null

The tier (or machine type) for this instance, for example: db-n1-standard-1 (MySQL instances). For more information, see Cloud SQL Instance Settings.

Link copied to clipboard
val userLabels: Output<Map<String, String>>? = null

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "18kg", "count": "3" }.

Link copied to clipboard
val zone: Output<String>? = null

The Google Cloud Platform zone where your Cloud SQL database instance is located.