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

com.pulumi.gcp.container.kotlin.inputs.ClusterDefaultSnatStatusArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterDefaultSnatStatusArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property disabled Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when defaultSnatStatus is disabled.When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic
 * The `cluster_telemetry` block supports
 */
public data class ClusterDefaultSnatStatusArgs(
    public val disabled: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterDefaultSnatStatusArgs =
        com.pulumi.gcp.container.inputs.ClusterDefaultSnatStatusArgs.builder()
            .disabled(disabled.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterDefaultSnatStatusArgs].
 */
@PulumiTagMarker
public class ClusterDefaultSnatStatusArgsBuilder internal constructor() {
    private var disabled: Output? = null

    /**
     * @param value Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when defaultSnatStatus is disabled.When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic
     * The `cluster_telemetry` block supports
     */
    @JvmName("papgresxkkivranl")
    public suspend fun disabled(`value`: Output) {
        this.disabled = value
    }

    /**
     * @param value Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when defaultSnatStatus is disabled.When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic
     * The `cluster_telemetry` block supports
     */
    @JvmName("hkcntjuxjcxolhiq")
    public suspend fun disabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.disabled = mapped
    }

    internal fun build(): ClusterDefaultSnatStatusArgs = ClusterDefaultSnatStatusArgs(
        disabled = disabled ?: throw PulumiNullFieldException("disabled"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy