com.pulumi.gcp.databasemigrationservice.kotlin.outputs.ConnectionProfileAlloydbSettings.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.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property initialUser Required. Input only. Initial user to setup during cluster creation.
* Structure is documented below.
* @property labels Labels for the AlloyDB cluster created by DMS.
* @property primaryInstanceSettings Settings for the cluster's primary instance
* Structure is documented below.
* @property vpcNetwork Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster.
* It is specified in the form: 'projects/{project_number}/global/networks/{network_id}'. This is required to create a cluster.
*/
public data class ConnectionProfileAlloydbSettings(
public val initialUser: ConnectionProfileAlloydbSettingsInitialUser,
public val labels: Map? = null,
public val primaryInstanceSettings: ConnectionProfileAlloydbSettingsPrimaryInstanceSettings? =
null,
public val vpcNetwork: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.databasemigrationservice.outputs.ConnectionProfileAlloydbSettings): ConnectionProfileAlloydbSettings = ConnectionProfileAlloydbSettings(
initialUser = javaType.initialUser().let({ args0 ->
com.pulumi.gcp.databasemigrationservice.kotlin.outputs.ConnectionProfileAlloydbSettingsInitialUser.Companion.toKotlin(args0)
}),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
primaryInstanceSettings = javaType.primaryInstanceSettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.databasemigrationservice.kotlin.outputs.ConnectionProfileAlloydbSettingsPrimaryInstanceSettings.Companion.toKotlin(args0)
})
}).orElse(null),
vpcNetwork = javaType.vpcNetwork(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy