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

com.pulumi.gcp.gkehub.kotlin.inputs.FeatureMembershipConfigmanagementPolicyControllerArgs.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.gkehub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkehub.inputs.FeatureMembershipConfigmanagementPolicyControllerArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property auditIntervalSeconds Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
 * @property enabled Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
 * @property exemptableNamespaces The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
 * @property logDeniesEnabled Logs all denies and dry run failures.
 * @property monitoring Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]. Default: ["cloudmonitoring", "prometheus"]
 * @property mutationEnabled Enables mutation in policy controller. If true, mutation CRDs, webhook, and controller deployment will be deployed to the cluster.
 * @property referentialRulesEnabled Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
 * @property templateLibraryInstalled Installs the default template library along with Policy Controller.
 */
public data class FeatureMembershipConfigmanagementPolicyControllerArgs(
    public val auditIntervalSeconds: Output? = null,
    public val enabled: Output? = null,
    public val exemptableNamespaces: Output>? = null,
    public val logDeniesEnabled: Output? = null,
    public val monitoring: Output? =
        null,
    public val mutationEnabled: Output? = null,
    public val referentialRulesEnabled: Output? = null,
    public val templateLibraryInstalled: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkehub.inputs.FeatureMembershipConfigmanagementPolicyControllerArgs =
        com.pulumi.gcp.gkehub.inputs.FeatureMembershipConfigmanagementPolicyControllerArgs.builder()
            .auditIntervalSeconds(auditIntervalSeconds?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .exemptableNamespaces(exemptableNamespaces?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .logDeniesEnabled(logDeniesEnabled?.applyValue({ args0 -> args0 }))
            .monitoring(monitoring?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mutationEnabled(mutationEnabled?.applyValue({ args0 -> args0 }))
            .referentialRulesEnabled(referentialRulesEnabled?.applyValue({ args0 -> args0 }))
            .templateLibraryInstalled(templateLibraryInstalled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FeatureMembershipConfigmanagementPolicyControllerArgs].
 */
@PulumiTagMarker
public class FeatureMembershipConfigmanagementPolicyControllerArgsBuilder internal constructor() {
    private var auditIntervalSeconds: Output? = null

    private var enabled: Output? = null

    private var exemptableNamespaces: Output>? = null

    private var logDeniesEnabled: Output? = null

    private var monitoring: Output? =
        null

    private var mutationEnabled: Output? = null

    private var referentialRulesEnabled: Output? = null

    private var templateLibraryInstalled: Output? = null

    /**
     * @param value Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
     */
    @JvmName("oqokbxqvepnuvkfr")
    public suspend fun auditIntervalSeconds(`value`: Output) {
        this.auditIntervalSeconds = value
    }

    /**
     * @param value Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
     */
    @JvmName("jujtcneqweremvdd")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
     */
    @JvmName("cuujerevutwqruqa")
    public suspend fun exemptableNamespaces(`value`: Output>) {
        this.exemptableNamespaces = value
    }

    @JvmName("mystttiwdtahtltv")
    public suspend fun exemptableNamespaces(vararg values: Output) {
        this.exemptableNamespaces = Output.all(values.asList())
    }

    /**
     * @param values The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
     */
    @JvmName("kqwxqfpymrbiukgp")
    public suspend fun exemptableNamespaces(values: List>) {
        this.exemptableNamespaces = Output.all(values)
    }

    /**
     * @param value Logs all denies and dry run failures.
     */
    @JvmName("okyhtpbcmhcbwjti")
    public suspend fun logDeniesEnabled(`value`: Output) {
        this.logDeniesEnabled = value
    }

    /**
     * @param value Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]. Default: ["cloudmonitoring", "prometheus"]
     */
    @JvmName("pwjfwetsnreafufg")
    public suspend fun monitoring(`value`: Output) {
        this.monitoring = value
    }

    /**
     * @param value Enables mutation in policy controller. If true, mutation CRDs, webhook, and controller deployment will be deployed to the cluster.
     */
    @JvmName("fvjfttvouimyodmo")
    public suspend fun mutationEnabled(`value`: Output) {
        this.mutationEnabled = value
    }

    /**
     * @param value Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
     */
    @JvmName("oqxlmhyacewafucc")
    public suspend fun referentialRulesEnabled(`value`: Output) {
        this.referentialRulesEnabled = value
    }

    /**
     * @param value Installs the default template library along with Policy Controller.
     */
    @JvmName("jexytfvntwvgvrlg")
    public suspend fun templateLibraryInstalled(`value`: Output) {
        this.templateLibraryInstalled = value
    }

    /**
     * @param value Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
     */
    @JvmName("yqiktporuhxwjweh")
    public suspend fun auditIntervalSeconds(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.auditIntervalSeconds = mapped
    }

    /**
     * @param value Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
     */
    @JvmName("fmlrejeglehfpnhi")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
     */
    @JvmName("rqosedyipmukhrmx")
    public suspend fun exemptableNamespaces(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exemptableNamespaces = mapped
    }

    /**
     * @param values The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
     */
    @JvmName("qgelkephgngunpyf")
    public suspend fun exemptableNamespaces(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exemptableNamespaces = mapped
    }

    /**
     * @param value Logs all denies and dry run failures.
     */
    @JvmName("mjdxprosxfwfynby")
    public suspend fun logDeniesEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.logDeniesEnabled = mapped
    }

    /**
     * @param value Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]. Default: ["cloudmonitoring", "prometheus"]
     */
    @JvmName("mrimpspmccmgbgmk")
    public suspend fun monitoring(`value`: FeatureMembershipConfigmanagementPolicyControllerMonitoringArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitoring = mapped
    }

    /**
     * @param argument Specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]. Default: ["cloudmonitoring", "prometheus"]
     */
    @JvmName("skxitbshyhtorqdk")
    public suspend fun monitoring(argument: suspend FeatureMembershipConfigmanagementPolicyControllerMonitoringArgsBuilder.() -> Unit) {
        val toBeMapped =
            FeatureMembershipConfigmanagementPolicyControllerMonitoringArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.monitoring = mapped
    }

    /**
     * @param value Enables mutation in policy controller. If true, mutation CRDs, webhook, and controller deployment will be deployed to the cluster.
     */
    @JvmName("vubqhpuypqgouxqe")
    public suspend fun mutationEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mutationEnabled = mapped
    }

    /**
     * @param value Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
     */
    @JvmName("uhwslatmyexcmluh")
    public suspend fun referentialRulesEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.referentialRulesEnabled = mapped
    }

    /**
     * @param value Installs the default template library along with Policy Controller.
     */
    @JvmName("ggnknqjybghrsrut")
    public suspend fun templateLibraryInstalled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templateLibraryInstalled = mapped
    }

    internal fun build(): FeatureMembershipConfigmanagementPolicyControllerArgs =
        FeatureMembershipConfigmanagementPolicyControllerArgs(
            auditIntervalSeconds = auditIntervalSeconds,
            enabled = enabled,
            exemptableNamespaces = exemptableNamespaces,
            logDeniesEnabled = logDeniesEnabled,
            monitoring = monitoring,
            mutationEnabled = mutationEnabled,
            referentialRulesEnabled = referentialRulesEnabled,
            templateLibraryInstalled = templateLibraryInstalled,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy