com.pulumi.gcp.bigquery.kotlin.outputs.ConnectionCloudSpanner.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.bigquery.kotlin.outputs
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property database Cloud Spanner database in the form `project/instance/database'.
* @property databaseRole Cloud Spanner database role for fine-grained access control. The Cloud Spanner admin should have provisioned the database role with appropriate permissions, such as `SELECT` and `INSERT`. Other users should only use roles provided by their Cloud Spanner admins. The database role name must start with a letter, and can only contain letters, numbers, and underscores. For more details, see https://cloud.google.com/spanner/docs/fgac-about.
* @property maxParallelism Allows setting max parallelism per query when executing on Spanner independent compute resources. If unspecified, default values of parallelism are chosen that are dependent on the Cloud Spanner instance configuration. `useParallelism` and `useDataBoost` must be set when setting max parallelism.
* @property useDataBoost If set, the request will be executed via Spanner independent compute resources. `use_parallelism` must be set when using data boost.
* @property useParallelism If parallelism should be used when reading from Cloud Spanner.
* @property useServerlessAnalytics (Optional, Deprecated)
* If the serverless analytics service should be used to read data from Cloud Spanner. `useParallelism` must be set when using serverless analytics.
* > **Warning:** `useServerlessAnalytics` is deprecated and will be removed in a future major release. Use `useDataBoost` instead.
*/
public data class ConnectionCloudSpanner(
public val database: String,
public val databaseRole: String? = null,
public val maxParallelism: Int? = null,
public val useDataBoost: Boolean? = null,
public val useParallelism: Boolean? = null,
@Deprecated(
message = """
`useServerlessAnalytics` is deprecated and will be removed in a future major release. Use
`useDataBoost` instead.
""",
)
public val useServerlessAnalytics: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.ConnectionCloudSpanner): ConnectionCloudSpanner = ConnectionCloudSpanner(
database = javaType.database(),
databaseRole = javaType.databaseRole().map({ args0 -> args0 }).orElse(null),
maxParallelism = javaType.maxParallelism().map({ args0 -> args0 }).orElse(null),
useDataBoost = javaType.useDataBoost().map({ args0 -> args0 }).orElse(null),
useParallelism = javaType.useParallelism().map({ args0 -> args0 }).orElse(null),
useServerlessAnalytics = javaType.useServerlessAnalytics().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy