com.pulumi.gcp.gkehub.kotlin.inputs.FeatureMembershipConfigmanagementPolicyControllerArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy