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

com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.inputs.PolicyPatchArgs.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: 4.18.2.0
Show newest version
@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>) {
        this.stages = Output.all(values)
    }

    /**
     * @param value The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required
     */
    @JvmName("jlqngwoguswgebrc")
    public suspend fun level(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.level = mapped
    }

    /**
     * @param value Stages is a list of stages for which events are created.
     */
    @JvmName("bfagarirxsphixth")
    public suspend fun stages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stages = mapped
    }

    /**
     * @param values Stages is a list of stages for which events are created.
     */
    @JvmName("gdpqgkqcrblstiel")
    public suspend fun stages(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.stages = mapped
    }

    internal fun build(): PolicyPatchArgs = PolicyPatchArgs(
        level = level,
        stages = stages,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy