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

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