com.pulumi.gcp.databasemigrationservice.kotlin.inputs.ConnectionProfilePostgresqlArgs.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.databasemigrationservice.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfilePostgresqlArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property alloydbClusterId If the connected database is an AlloyDB instance, use this field to provide the AlloyDB cluster ID.
* @property cloudSqlId If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
* @property host The IP or hostname of the source MySQL database.
* @property networkArchitecture (Output)
* Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with.
* @property password Input only. The password for the user that Database Migration Service will be using to connect to the database.
* This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
* **Note**: This property is sensitive and will not be displayed in the plan.
* @property passwordSet (Output)
* Output only. Indicates If this connection profile password is stored.
* @property port The network port of the source MySQL database.
* @property ssl SSL configuration for the destination to connect to the source database.
* Structure is documented below.
* @property username The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
*/
public data class ConnectionProfilePostgresqlArgs(
public val alloydbClusterId: Output? = null,
public val cloudSqlId: Output? = null,
public val host: Output? = null,
public val networkArchitecture: Output? = null,
public val password: Output? = null,
public val passwordSet: Output? = null,
public val port: Output? = null,
public val ssl: Output? = null,
public val username: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfilePostgresqlArgs =
com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfilePostgresqlArgs.builder()
.alloydbClusterId(alloydbClusterId?.applyValue({ args0 -> args0 }))
.cloudSqlId(cloudSqlId?.applyValue({ args0 -> args0 }))
.host(host?.applyValue({ args0 -> args0 }))
.networkArchitecture(networkArchitecture?.applyValue({ args0 -> args0 }))
.password(password?.applyValue({ args0 -> args0 }))
.passwordSet(passwordSet?.applyValue({ args0 -> args0 }))
.port(port?.applyValue({ args0 -> args0 }))
.ssl(ssl?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.username(username?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectionProfilePostgresqlArgs].
*/
@PulumiTagMarker
public class ConnectionProfilePostgresqlArgsBuilder internal constructor() {
private var alloydbClusterId: Output? = null
private var cloudSqlId: Output? = null
private var host: Output? = null
private var networkArchitecture: Output? = null
private var password: Output? = null
private var passwordSet: Output? = null
private var port: Output? = null
private var ssl: Output? = null
private var username: Output? = null
/**
* @param value If the connected database is an AlloyDB instance, use this field to provide the AlloyDB cluster ID.
*/
@JvmName("tusyrfgbrjdgihoq")
public suspend fun alloydbClusterId(`value`: Output) {
this.alloydbClusterId = value
}
/**
* @param value If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
*/
@JvmName("lglgxrgfxjgdhejr")
public suspend fun cloudSqlId(`value`: Output) {
this.cloudSqlId = value
}
/**
* @param value The IP or hostname of the source MySQL database.
*/
@JvmName("qdmvnqxiulahqfvu")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value (Output)
* Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with.
*/
@JvmName("tspaynqweiqskamh")
public suspend fun networkArchitecture(`value`: Output) {
this.networkArchitecture = value
}
/**
* @param value Input only. The password for the user that Database Migration Service will be using to connect to the database.
* This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
@JvmName("ttudhsdabxdhioev")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value (Output)
* Output only. Indicates If this connection profile password is stored.
*/
@JvmName("qssdkwguxuvmhbqm")
public suspend fun passwordSet(`value`: Output) {
this.passwordSet = value
}
/**
* @param value The network port of the source MySQL database.
*/
@JvmName("bnpsrdsbralvmqvm")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value SSL configuration for the destination to connect to the source database.
* Structure is documented below.
*/
@JvmName("xfmtvqjcdlskegdw")
public suspend fun ssl(`value`: Output) {
this.ssl = value
}
/**
* @param value The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
*/
@JvmName("vybfcnvqaurpmmil")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value If the connected database is an AlloyDB instance, use this field to provide the AlloyDB cluster ID.
*/
@JvmName("xobjsqqpsgbfxqnu")
public suspend fun alloydbClusterId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.alloydbClusterId = mapped
}
/**
* @param value If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
*/
@JvmName("gxcftudsfgrcugdc")
public suspend fun cloudSqlId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cloudSqlId = mapped
}
/**
* @param value The IP or hostname of the source MySQL database.
*/
@JvmName("ukowdprndhkittff")
public suspend fun host(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value (Output)
* Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with.
*/
@JvmName("ebfilpebheskpwli")
public suspend fun networkArchitecture(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.networkArchitecture = mapped
}
/**
* @param value Input only. The password for the user that Database Migration Service will be using to connect to the database.
* This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
* **Note**: This property is sensitive and will not be displayed in the plan.
*/
@JvmName("xumgnelfrgnpeovn")
public suspend fun password(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value (Output)
* Output only. Indicates If this connection profile password is stored.
*/
@JvmName("ouhiauimyttsampc")
public suspend fun passwordSet(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.passwordSet = mapped
}
/**
* @param value The network port of the source MySQL database.
*/
@JvmName("bghqfsaqeqrnxoxw")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value SSL configuration for the destination to connect to the source database.
* Structure is documented below.
*/
@JvmName("kromqxnkesjnmukx")
public suspend fun ssl(`value`: ConnectionProfilePostgresqlSslArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ssl = mapped
}
/**
* @param argument SSL configuration for the destination to connect to the source database.
* Structure is documented below.
*/
@JvmName("qehstfvvvwtgljfq")
public suspend fun ssl(argument: suspend ConnectionProfilePostgresqlSslArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionProfilePostgresqlSslArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.ssl = mapped
}
/**
* @param value The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.
*/
@JvmName("pdoghaplgtgdphpf")
public suspend fun username(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): ConnectionProfilePostgresqlArgs = ConnectionProfilePostgresqlArgs(
alloydbClusterId = alloydbClusterId,
cloudSqlId = cloudSqlId,
host = host,
networkArchitecture = networkArchitecture,
password = password,
passwordSet = passwordSet,
port = port,
ssl = ssl,
username = username,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy