com.pulumi.gcp.alloydb.kotlin.outputs.InstanceNetworkConfig.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.alloydb.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property authorizedExternalNetworks A list of external networks authorized to access this instance. This
* field is only allowed to be set when `enable_public_ip` is set to
* true.
* Structure is documented below.
* @property enablePublicIp Enabling public ip for the instance. If a user wishes to disable this,
* please also clear the list of the authorized external networks set on
* the same instance.
*/
public data class InstanceNetworkConfig(
public val authorizedExternalNetworks: List? =
null,
public val enablePublicIp: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.alloydb.outputs.InstanceNetworkConfig): InstanceNetworkConfig = InstanceNetworkConfig(
authorizedExternalNetworks = javaType.authorizedExternalNetworks().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.alloydb.kotlin.outputs.InstanceNetworkConfigAuthorizedExternalNetwork.Companion.toKotlin(args0)
})
}),
enablePublicIp = javaType.enablePublicIp().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy