com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.outputs.AuditSinkSpecPatch.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.
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 AuditSinkSpecPatch(
public val policy: PolicyPatch? = null,
public val webhook: WebhookPatch? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.AuditSinkSpecPatch): AuditSinkSpecPatch = AuditSinkSpecPatch(
policy = javaType.policy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.outputs.PolicyPatch.Companion.toKotlin(args0)
})
}).orElse(null),
webhook = javaType.webhook().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.outputs.WebhookPatch.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy