CloudSqlProperties

Cloud SQL connection properties.

JSON representation
{
  "connectionName": string,
  "maxConnections": integer,
  "databaseEngine": enum (DatabaseEngine),

  // Union field credential can be only one of the following:
  "usernamePassword": {
    object (SecretManagerCredential)
  },
  "cloudSqlIam": {
    object (CloudSqlIamCredential)
  }
  // End of list of possible types for union field credential.
}
Fields
connectionName

string

Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated.

It is an error to use a connectionName from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connectionName project-id:us-central1:sql-instance must be created under the parent projects/project-id/locations/us-central1

maxConnections

integer

Required. DLP will limit its connections to maxConnections. Must be 2 or greater.

databaseEngine

enum (DatabaseEngine)

Required. The database engine used by the Cloud SQL instance that this connection configures.

Union field credential. How to authenticate to the instance. credential can be only one of the following:
usernamePassword

object (SecretManagerCredential)

A username and password stored in Secret Manager.

cloudSqlIam

object (CloudSqlIamCredential)

Built-in IAM authentication (must be configured in Cloud SQL).

SecretManagerCredential

A credential consisting of a username and password, where the password is stored in a Secret Manager resource. Note: Secret Manager charges apply.

JSON representation
{
  "username": string,
  "passwordSecretVersionName": string
}
Fields
username

string

Required. The username.

passwordSecretVersionName

string

Required. The name of the Secret Manager resource that stores the password, in the form projects/project-id/secrets/secret-name/versions/version.