All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.bigquery.kotlin.outputs.ConnectionCloudSql.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.bigquery.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property credential Cloud SQL properties.
 * Structure is documented below.
 * @property database Database name.
 * @property instanceId Cloud SQL instance ID in the form project:location:instance.
 * @property serviceAccountId (Output)
 * When the connection is used in the context of an operation in BigQuery, this service account will serve as the identity being used for connecting to the CloudSQL instance specified in this connection.
 * @property type Type of the Cloud SQL database.
 * Possible values are: `DATABASE_TYPE_UNSPECIFIED`, `POSTGRES`, `MYSQL`.
 */
public data class ConnectionCloudSql(
    public val credential: ConnectionCloudSqlCredential,
    public val database: String,
    public val instanceId: String,
    public val serviceAccountId: String? = null,
    public val type: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.ConnectionCloudSql): ConnectionCloudSql = ConnectionCloudSql(
            credential = javaType.credential().let({ args0 ->
                com.pulumi.gcp.bigquery.kotlin.outputs.ConnectionCloudSqlCredential.Companion.toKotlin(args0)
            }),
            database = javaType.database(),
            instanceId = javaType.instanceId(),
            serviceAccountId = javaType.serviceAccountId().map({ args0 -> args0 }).orElse(null),
            type = javaType.type(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy