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

com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.inputs.AuditSinkSpecPatchArgs.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.

The 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.kotlin.applySuspend
import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.AuditSinkSpecPatchArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * AuditSinkSpec holds the spec for the audit sink
 * @property policy Policy defines the policy for selecting which events should be sent to the webhook required
 * @property webhook Webhook to send events required
 */
public data class AuditSinkSpecPatchArgs(
    public val policy: Output? = null,
    public val webhook: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.AuditSinkSpecPatchArgs =
        com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.AuditSinkSpecPatchArgs.builder()
            .policy(policy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .webhook(webhook?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AuditSinkSpecPatchArgs].
 */
@PulumiTagMarker
public class AuditSinkSpecPatchArgsBuilder internal constructor() {
    private var policy: Output? = null

    private var webhook: Output? = null

    /**
     * @param value Policy defines the policy for selecting which events should be sent to the webhook required
     */
    @JvmName("lqphgnaxjhkldidh")
    public suspend fun policy(`value`: Output) {
        this.policy = value
    }

    /**
     * @param value Webhook to send events required
     */
    @JvmName("uwnqboacuhhgieca")
    public suspend fun webhook(`value`: Output) {
        this.webhook = value
    }

    /**
     * @param value Policy defines the policy for selecting which events should be sent to the webhook required
     */
    @JvmName("prqkvpwdhropkpok")
    public suspend fun policy(`value`: PolicyPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policy = mapped
    }

    /**
     * @param argument Policy defines the policy for selecting which events should be sent to the webhook required
     */
    @JvmName("ksliktkmdiisydkq")
    public suspend fun policy(argument: suspend PolicyPatchArgsBuilder.() -> Unit) {
        val toBeMapped = PolicyPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.policy = mapped
    }

    /**
     * @param value Webhook to send events required
     */
    @JvmName("vyvybpjxgwhjnmpl")
    public suspend fun webhook(`value`: WebhookPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webhook = mapped
    }

    /**
     * @param argument Webhook to send events required
     */
    @JvmName("rirqfmnahoakvogl")
    public suspend fun webhook(argument: suspend WebhookPatchArgsBuilder.() -> Unit) {
        val toBeMapped = WebhookPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.webhook = mapped
    }

    internal fun build(): AuditSinkSpecPatchArgs = AuditSinkSpecPatchArgs(
        policy = policy,
        webhook = webhook,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy