com.pulumi.gcp.alloydb.kotlin.outputs.InstanceNetworkConfig.kt Maven / Gradle / Ivy
@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),
)
}
}