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

com.pulumi.gcp.databasemigrationservice.kotlin.outputs.ConnectionProfileAlloydbSettingsPrimaryInstanceSettings.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.databasemigrationservice.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property databaseFlags Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.
 * @property id The database username.
 * @property labels Labels for the AlloyDB primary instance created by DMS.
 * @property machineConfig Configuration for the machines that host the underlying database engine.
 * Structure is documented below.
 * @property privateIp (Output)
 * Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.
 */
public data class ConnectionProfileAlloydbSettingsPrimaryInstanceSettings(
    public val databaseFlags: Map? = null,
    public val id: String,
    public val labels: Map? = null,
    public val machineConfig: ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsMachineConfig,
    public val privateIp: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.databasemigrationservice.outputs.ConnectionProfileAlloydbSettingsPrimaryInstanceSettings): ConnectionProfileAlloydbSettingsPrimaryInstanceSettings =
            ConnectionProfileAlloydbSettingsPrimaryInstanceSettings(
                databaseFlags = javaType.databaseFlags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
                id = javaType.id(),
                labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
                machineConfig = javaType.machineConfig().let({ args0 ->
                    com.pulumi.gcp.databasemigrationservice.kotlin.outputs.ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsMachineConfig.Companion.toKotlin(args0)
                }),
                privateIp = javaType.privateIp().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy