com.pulumi.azure.webpubsub.kotlin.outputs.HubEventHandler.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.webpubsub.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property auth An `auth` block as defined below.
* @property systemEvents Specifies the list of system events. Supported values are `connect`, `connected` and `disconnected`.
* @property urlTemplate The Event Handler URL Template. Two predefined parameters `{hub}` and `{event}` are available to use in the template. The value of the EventHandler URL is dynamically calculated when the client request comes in. Example: `http://example.com/api/{hub}/{event}`.
* @property userEventPattern Specifies the matching event names. There are 3 kind of patterns supported: * `*` matches any event name * `,` Combine multiple events with `,` for example `event1,event2`, it matches event `event1` and `event2` * The single event name, for example `event1`, it matches `event1`.
*/
public data class HubEventHandler(
public val auth: HubEventHandlerAuth? = null,
public val systemEvents: List? = null,
public val urlTemplate: String,
public val userEventPattern: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.webpubsub.outputs.HubEventHandler):
HubEventHandler = HubEventHandler(
auth = javaType.auth().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.webpubsub.kotlin.outputs.HubEventHandlerAuth.Companion.toKotlin(args0)
})
}).orElse(null),
systemEvents = javaType.systemEvents().map({ args0 -> args0 }),
urlTemplate = javaType.urlTemplate(),
userEventPattern = javaType.userEventPattern().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy