com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.outputs.Webhook.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.outputs
import kotlin.Suppress
/**
* Webhook holds the configuration of the webhook
* @property clientConfig ClientConfig holds the connection parameters for the webhook required
* @property throttle Throttle holds the options for throttling the webhook
*/
public data class Webhook(
public val clientConfig: WebhookClientConfig,
public val throttle: WebhookThrottleConfig? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.Webhook): Webhook = Webhook(
clientConfig = javaType.clientConfig().let({ args0 ->
com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.outputs.WebhookClientConfig.Companion.toKotlin(args0)
}),
throttle = javaType.throttle().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.auditregistration.v1alpha1.kotlin.outputs.WebhookThrottleConfig.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy