com.pulumi.gcp.alloydb.kotlin.inputs.InstanceNetworkConfigArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.alloydb.inputs.InstanceNetworkConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 InstanceNetworkConfigArgs(
public val authorizedExternalNetworks: Output>? = null,
public val enablePublicIp: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.alloydb.inputs.InstanceNetworkConfigArgs =
com.pulumi.gcp.alloydb.inputs.InstanceNetworkConfigArgs.builder()
.authorizedExternalNetworks(
authorizedExternalNetworks?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.enablePublicIp(enablePublicIp?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceNetworkConfigArgs].
*/
@PulumiTagMarker
public class InstanceNetworkConfigArgsBuilder internal constructor() {
private var authorizedExternalNetworks:
Output>? = null
private var enablePublicIp: Output? = null
/**
* @param value 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.
*/
@JvmName("pduusxktvxmdxsnk")
public suspend fun authorizedExternalNetworks(`value`: Output>) {
this.authorizedExternalNetworks = value
}
@JvmName("xaoibaidrcuwqxpq")
public suspend fun authorizedExternalNetworks(vararg values: Output) {
this.authorizedExternalNetworks = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("umspgsjfngsnydjb")
public suspend fun authorizedExternalNetworks(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy