All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigEndpointConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigEndpointConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property enableHttpPortAccess The flag to enable http access to specific ports
 * on the cluster from external sources (aka Component Gateway). Defaults to false.
 * @property httpPorts The map of port descriptions to URLs. Will only be populated if
 * `enable_http_port_access` is true.
 */
public data class ClusterClusterConfigEndpointConfigArgs(
    public val enableHttpPortAccess: Output,
    public val httpPorts: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigEndpointConfigArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigEndpointConfigArgs.builder()
            .enableHttpPortAccess(enableHttpPortAccess.applyValue({ args0 -> args0 }))
            .httpPorts(
                httpPorts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ClusterClusterConfigEndpointConfigArgs].
 */
@PulumiTagMarker
public class ClusterClusterConfigEndpointConfigArgsBuilder internal constructor() {
    private var enableHttpPortAccess: Output? = null

    private var httpPorts: Output>? = null

    /**
     * @param value The flag to enable http access to specific ports
     * on the cluster from external sources (aka Component Gateway). Defaults to false.
     */
    @JvmName("vppjymecnhdsknxx")
    public suspend fun enableHttpPortAccess(`value`: Output) {
        this.enableHttpPortAccess = value
    }

    /**
     * @param value The map of port descriptions to URLs. Will only be populated if
     * `enable_http_port_access` is true.
     */
    @JvmName("qfsiwgokumiadkdm")
    public suspend fun httpPorts(`value`: Output>) {
        this.httpPorts = value
    }

    /**
     * @param value The flag to enable http access to specific ports
     * on the cluster from external sources (aka Component Gateway). Defaults to false.
     */
    @JvmName("fwmtjmgrftrikamr")
    public suspend fun enableHttpPortAccess(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableHttpPortAccess = mapped
    }

    /**
     * @param value The map of port descriptions to URLs. Will only be populated if
     * `enable_http_port_access` is true.
     */
    @JvmName("qmcsfhjsigqyyahf")
    public suspend fun httpPorts(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpPorts = mapped
    }

    /**
     * @param values The map of port descriptions to URLs. Will only be populated if
     * `enable_http_port_access` is true.
     */
    @JvmName("kohkpirkjtcebqhl")
    public fun httpPorts(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.httpPorts = mapped
    }

    internal fun build(): ClusterClusterConfigEndpointConfigArgs =
        ClusterClusterConfigEndpointConfigArgs(
            enableHttpPortAccess = enableHttpPortAccess ?: throw
                PulumiNullFieldException("enableHttpPortAccess"),
            httpPorts = httpPorts,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy