com.pulumi.gcp.databasemigrationservice.kotlin.outputs.ConnectionProfilePostgresql.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.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 Required. 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 Required. 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 Required. 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 Required. 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 ConnectionProfilePostgresql(
public val cloudSqlId: String? = null,
public val host: String,
public val networkArchitecture: String? = null,
public val password: String,
public val passwordSet: Boolean? = null,
public val port: Int,
public val ssl: ConnectionProfilePostgresqlSsl? = null,
public val username: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.databasemigrationservice.outputs.ConnectionProfilePostgresql): ConnectionProfilePostgresql = ConnectionProfilePostgresql(
cloudSqlId = javaType.cloudSqlId().map({ args0 -> args0 }).orElse(null),
host = javaType.host(),
networkArchitecture = javaType.networkArchitecture().map({ args0 -> args0 }).orElse(null),
password = javaType.password(),
passwordSet = javaType.passwordSet().map({ args0 -> args0 }).orElse(null),
port = javaType.port(),
ssl = javaType.ssl().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.databasemigrationservice.kotlin.outputs.ConnectionProfilePostgresqlSsl.Companion.toKotlin(args0)
})
}).orElse(null),
username = javaType.username(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy