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

com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.outputs.AuditSinkSpec.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.outputs

import kotlin.Suppress

/**
 * 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 AuditSinkSpec(
    public val policy: Policy,
    public val webhook: Webhook,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.AuditSinkSpec): AuditSinkSpec = AuditSinkSpec(
            policy = javaType.policy().let({ args0 ->
                com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.outputs.Policy.Companion.toKotlin(args0)
            }),
            webhook = javaType.webhook().let({ args0 ->
                com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.outputs.Webhook.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy