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

com.pulumi.gcp.databasemigrationservice.kotlin.outputs.ConnectionProfileMysql.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.12.0.0
Show newest version
@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 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 ConnectionProfileMysql(
    public val cloudSqlId: String? = null,
    public val host: String,
    public val password: String,
    public val passwordSet: Boolean? = null,
    public val port: Int,
    public val ssl: ConnectionProfileMysqlSsl? = null,
    public val username: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.databasemigrationservice.outputs.ConnectionProfileMysql): ConnectionProfileMysql = ConnectionProfileMysql(
            cloudSqlId = javaType.cloudSqlId().map({ args0 -> args0 }).orElse(null),
            host = javaType.host(),
            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.ConnectionProfileMysqlSsl.Companion.toKotlin(args0)
                })
            }).orElse(null),
            username = javaType.username(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy