
com.pulumi.gcp.managedkafka.kotlin.inputs.ClusterGcpConfigAccessConfigNetworkConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.managedkafka.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.managedkafka.inputs.ClusterGcpConfigAccessConfigNetworkConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property subnet Name of the VPC subnet from which the cluster is accessible. Both broker and bootstrap server IP addresses and DNS entries are automatically created in the subnet. The subnet must be located in the same region as the cluster. The project may differ. The name of the subnet must be in the format `projects/PROJECT_ID/regions/REGION/subnetworks/SUBNET`.
*/
public data class ClusterGcpConfigAccessConfigNetworkConfigArgs(
public val subnet: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.managedkafka.inputs.ClusterGcpConfigAccessConfigNetworkConfigArgs =
com.pulumi.gcp.managedkafka.inputs.ClusterGcpConfigAccessConfigNetworkConfigArgs.builder()
.subnet(subnet.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterGcpConfigAccessConfigNetworkConfigArgs].
*/
@PulumiTagMarker
public class ClusterGcpConfigAccessConfigNetworkConfigArgsBuilder internal constructor() {
private var subnet: Output? = null
/**
* @param value Name of the VPC subnet from which the cluster is accessible. Both broker and bootstrap server IP addresses and DNS entries are automatically created in the subnet. The subnet must be located in the same region as the cluster. The project may differ. The name of the subnet must be in the format `projects/PROJECT_ID/regions/REGION/subnetworks/SUBNET`.
*/
@JvmName("ootdfnvoodnqtwgf")
public suspend fun subnet(`value`: Output) {
this.subnet = value
}
/**
* @param value Name of the VPC subnet from which the cluster is accessible. Both broker and bootstrap server IP addresses and DNS entries are automatically created in the subnet. The subnet must be located in the same region as the cluster. The project may differ. The name of the subnet must be in the format `projects/PROJECT_ID/regions/REGION/subnetworks/SUBNET`.
*/
@JvmName("anjnptvidlesgtvy")
public suspend fun subnet(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.subnet = mapped
}
internal fun build(): ClusterGcpConfigAccessConfigNetworkConfigArgs =
ClusterGcpConfigAccessConfigNetworkConfigArgs(
subnet = subnet ?: throw PulumiNullFieldException("subnet"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy