com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.inputs.PolicyPatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.kubernetes.auditregistration.v1alpha1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.PolicyPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Policy defines the configuration of how audit events are logged
* @property level The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required
* @property stages Stages is a list of stages for which events are created.
*/
public data class PolicyPatchArgs(
public val level: Output? = null,
public val stages: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.PolicyPatchArgs =
com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.PolicyPatchArgs.builder()
.level(level?.applyValue({ args0 -> args0 }))
.stages(stages?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [PolicyPatchArgs].
*/
@PulumiTagMarker
public class PolicyPatchArgsBuilder internal constructor() {
private var level: Output? = null
private var stages: Output>? = null
/**
* @param value The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required
*/
@JvmName("vdukyjdxtqamiknq")
public suspend fun level(`value`: Output) {
this.level = value
}
/**
* @param value Stages is a list of stages for which events are created.
*/
@JvmName("yifrpmnuqpoujcwl")
public suspend fun stages(`value`: Output>) {
this.stages = value
}
@JvmName("ucwbmkloheubjfxx")
public suspend fun stages(vararg values: Output) {
this.stages = Output.all(values.asList())
}
/**
* @param values Stages is a list of stages for which events are created.
*/
@JvmName("heppidshernyngfa")
public suspend fun stages(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy