com.pulumi.gcp.composer.kotlin.inputs.EnvironmentConfigDatabaseConfigArgs.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.composer.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.composer.inputs.EnvironmentConfigDatabaseConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property machineType Optional. Cloud SQL machine type used by Airflow database. It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
* @property zone Optional. Cloud SQL database preferred zone.
*/
public data class EnvironmentConfigDatabaseConfigArgs(
public val machineType: Output? = null,
public val zone: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.composer.inputs.EnvironmentConfigDatabaseConfigArgs =
com.pulumi.gcp.composer.inputs.EnvironmentConfigDatabaseConfigArgs.builder()
.machineType(machineType?.applyValue({ args0 -> args0 }))
.zone(zone?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EnvironmentConfigDatabaseConfigArgs].
*/
@PulumiTagMarker
public class EnvironmentConfigDatabaseConfigArgsBuilder internal constructor() {
private var machineType: Output? = null
private var zone: Output? = null
/**
* @param value Optional. Cloud SQL machine type used by Airflow database. It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
*/
@JvmName("ibyfswboqxlgekdi")
public suspend fun machineType(`value`: Output) {
this.machineType = value
}
/**
* @param value Optional. Cloud SQL database preferred zone.
*/
@JvmName("wfrgswpnbdnjpkif")
public suspend fun zone(`value`: Output) {
this.zone = value
}
/**
* @param value Optional. Cloud SQL machine type used by Airflow database. It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.
*/
@JvmName("udaitfhoilkxyebr")
public suspend fun machineType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.machineType = mapped
}
/**
* @param value Optional. Cloud SQL database preferred zone.
*/
@JvmName("fpwuatfxhlaofamv")
public suspend fun zone(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.zone = mapped
}
internal fun build(): EnvironmentConfigDatabaseConfigArgs = EnvironmentConfigDatabaseConfigArgs(
machineType = machineType,
zone = zone,
)
}