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

com.pulumi.gcp.container.kotlin.inputs.ClusterProtectConfigArgs.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.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterProtectConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property workloadConfig WorkloadConfig defines which actions are enabled for a cluster's workload configurations. Structure is documented below
 * @property workloadVulnerabilityMode Sets which mode to use for Protect workload vulnerability scanning feature. Accepted values are DISABLED, BASIC.
 */
public data class ClusterProtectConfigArgs(
    public val workloadConfig: Output? = null,
    public val workloadVulnerabilityMode: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterProtectConfigArgs =
        com.pulumi.gcp.container.inputs.ClusterProtectConfigArgs.builder()
            .workloadConfig(workloadConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .workloadVulnerabilityMode(workloadVulnerabilityMode?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterProtectConfigArgs].
 */
@PulumiTagMarker
public class ClusterProtectConfigArgsBuilder internal constructor() {
    private var workloadConfig: Output? = null

    private var workloadVulnerabilityMode: Output? = null

    /**
     * @param value WorkloadConfig defines which actions are enabled for a cluster's workload configurations. Structure is documented below
     */
    @JvmName("xqguuasibfonitfq")
    public suspend fun workloadConfig(`value`: Output) {
        this.workloadConfig = value
    }

    /**
     * @param value Sets which mode to use for Protect workload vulnerability scanning feature. Accepted values are DISABLED, BASIC.
     */
    @JvmName("lkoqoblekiqcoyrh")
    public suspend fun workloadVulnerabilityMode(`value`: Output) {
        this.workloadVulnerabilityMode = value
    }

    /**
     * @param value WorkloadConfig defines which actions are enabled for a cluster's workload configurations. Structure is documented below
     */
    @JvmName("ivvwosdyjidfkarf")
    public suspend fun workloadConfig(`value`: ClusterProtectConfigWorkloadConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workloadConfig = mapped
    }

    /**
     * @param argument WorkloadConfig defines which actions are enabled for a cluster's workload configurations. Structure is documented below
     */
    @JvmName("ulpxvkkedmfyjbcu")
    public suspend fun workloadConfig(argument: suspend ClusterProtectConfigWorkloadConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterProtectConfigWorkloadConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.workloadConfig = mapped
    }

    /**
     * @param value Sets which mode to use for Protect workload vulnerability scanning feature. Accepted values are DISABLED, BASIC.
     */
    @JvmName("qovjtqbpbbywbnqp")
    public suspend fun workloadVulnerabilityMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workloadVulnerabilityMode = mapped
    }

    internal fun build(): ClusterProtectConfigArgs = ClusterProtectConfigArgs(
        workloadConfig = workloadConfig,
        workloadVulnerabilityMode = workloadVulnerabilityMode,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy