![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.webpubsub.kotlin.inputs.HubEventHandlerArgs.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.inputs
import com.pulumi.azure.webpubsub.inputs.HubEventHandlerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 HubEventHandlerArgs(
public val auth: Output? = null,
public val systemEvents: Output>? = null,
public val urlTemplate: Output,
public val userEventPattern: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.webpubsub.inputs.HubEventHandlerArgs =
com.pulumi.azure.webpubsub.inputs.HubEventHandlerArgs.builder()
.auth(auth?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.systemEvents(systemEvents?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.urlTemplate(urlTemplate.applyValue({ args0 -> args0 }))
.userEventPattern(userEventPattern?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HubEventHandlerArgs].
*/
@PulumiTagMarker
public class HubEventHandlerArgsBuilder internal constructor() {
private var auth: Output? = null
private var systemEvents: Output>? = null
private var urlTemplate: Output? = null
private var userEventPattern: Output? = null
/**
* @param value An `auth` block as defined below.
*/
@JvmName("oipnqpixylwddeyw")
public suspend fun auth(`value`: Output) {
this.auth = value
}
/**
* @param value Specifies the list of system events. Supported values are `connect`, `connected` and `disconnected`.
*/
@JvmName("yrxoepempuajebjk")
public suspend fun systemEvents(`value`: Output>) {
this.systemEvents = value
}
@JvmName("jccnmkbomehnylnb")
public suspend fun systemEvents(vararg values: Output) {
this.systemEvents = Output.all(values.asList())
}
/**
* @param values Specifies the list of system events. Supported values are `connect`, `connected` and `disconnected`.
*/
@JvmName("gygbpxspkobxrmff")
public suspend fun systemEvents(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy