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

com.pulumi.azurenative.eventgrid.kotlin.inputs.WebHookEventSubscriptionDestinationArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.eventgrid.kotlin.inputs

import com.pulumi.azurenative.eventgrid.inputs.WebHookEventSubscriptionDestinationArgs.builder
import com.pulumi.core.Either
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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Information about the webhook destination for an event subscription.
 * @property azureActiveDirectoryApplicationIdOrUri The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
 * @property azureActiveDirectoryTenantId The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
 * @property deliveryAttributeMappings Delivery attribute details.
 * @property endpointType Type of the endpoint for the event subscription destination.
 * Expected value is 'WebHook'.
 * @property endpointUrl The URL that represents the endpoint of the destination of an event subscription.
 * @property maxEventsPerBatch Maximum number of events per batch.
 * @property preferredBatchSizeInKilobytes Preferred batch size in Kilobytes.
 */
public data class WebHookEventSubscriptionDestinationArgs(
    public val azureActiveDirectoryApplicationIdOrUri: Output? = null,
    public val azureActiveDirectoryTenantId: Output? = null,
    public val deliveryAttributeMappings: Output>>? =
        null,
    public val endpointType: Output,
    public val endpointUrl: Output? = null,
    public val maxEventsPerBatch: Output? = null,
    public val preferredBatchSizeInKilobytes: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.eventgrid.inputs.WebHookEventSubscriptionDestinationArgs =
        com.pulumi.azurenative.eventgrid.inputs.WebHookEventSubscriptionDestinationArgs.builder()
            .azureActiveDirectoryApplicationIdOrUri(
                azureActiveDirectoryApplicationIdOrUri?.applyValue({ args0 ->
                    args0
                }),
            )
            .azureActiveDirectoryTenantId(azureActiveDirectoryTenantId?.applyValue({ args0 -> args0 }))
            .deliveryAttributeMappings(
                deliveryAttributeMappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform({ args0 -> args0.let({ args0 -> args0.toJava() }) }, { args0 ->
                            args0.let({ args0 ->
                                args0.toJava()
                            })
                        })
                    })
                }),
            )
            .endpointType(endpointType.applyValue({ args0 -> args0 }))
            .endpointUrl(endpointUrl?.applyValue({ args0 -> args0 }))
            .maxEventsPerBatch(maxEventsPerBatch?.applyValue({ args0 -> args0 }))
            .preferredBatchSizeInKilobytes(
                preferredBatchSizeInKilobytes?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [WebHookEventSubscriptionDestinationArgs].
 */
@PulumiTagMarker
public class WebHookEventSubscriptionDestinationArgsBuilder internal constructor() {
    private var azureActiveDirectoryApplicationIdOrUri: Output? = null

    private var azureActiveDirectoryTenantId: Output? = null

    private var deliveryAttributeMappings:
        Output>>? =
        null

    private var endpointType: Output? = null

    private var endpointUrl: Output? = null

    private var maxEventsPerBatch: Output? = null

    private var preferredBatchSizeInKilobytes: Output? = null

    /**
     * @param value The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
     */
    @JvmName("jcaxhavmchtxyugh")
    public suspend fun azureActiveDirectoryApplicationIdOrUri(`value`: Output) {
        this.azureActiveDirectoryApplicationIdOrUri = value
    }

    /**
     * @param value The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
     */
    @JvmName("ltvforkndqjvrqpx")
    public suspend fun azureActiveDirectoryTenantId(`value`: Output) {
        this.azureActiveDirectoryTenantId = value
    }

    /**
     * @param value Delivery attribute details.
     */
    @JvmName("gmpmtdwarwvvqnrv")
    public suspend fun deliveryAttributeMappings(`value`: Output>>) {
        this.deliveryAttributeMappings = value
    }

    @JvmName("ibglbbaxeooppqim")
    public suspend fun deliveryAttributeMappings(vararg values: Output>) {
        this.deliveryAttributeMappings = Output.all(values.asList())
    }

    /**
     * @param values Delivery attribute details.
     */
    @JvmName("qunkegguybkfbyoe")
    public suspend fun deliveryAttributeMappings(values: List>>) {
        this.deliveryAttributeMappings = Output.all(values)
    }

    /**
     * @param value Type of the endpoint for the event subscription destination.
     * Expected value is 'WebHook'.
     */
    @JvmName("xqthkxgwejbaahjw")
    public suspend fun endpointType(`value`: Output) {
        this.endpointType = value
    }

    /**
     * @param value The URL that represents the endpoint of the destination of an event subscription.
     */
    @JvmName("rlugyycqdijqtoos")
    public suspend fun endpointUrl(`value`: Output) {
        this.endpointUrl = value
    }

    /**
     * @param value Maximum number of events per batch.
     */
    @JvmName("tiexwyvhkndxgswn")
    public suspend fun maxEventsPerBatch(`value`: Output) {
        this.maxEventsPerBatch = value
    }

    /**
     * @param value Preferred batch size in Kilobytes.
     */
    @JvmName("ouwtdyqamsxefvfh")
    public suspend fun preferredBatchSizeInKilobytes(`value`: Output) {
        this.preferredBatchSizeInKilobytes = value
    }

    /**
     * @param value The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
     */
    @JvmName("wqwoaedmlxbedoqr")
    public suspend fun azureActiveDirectoryApplicationIdOrUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureActiveDirectoryApplicationIdOrUri = mapped
    }

    /**
     * @param value The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
     */
    @JvmName("ithjudeghtvjqslf")
    public suspend fun azureActiveDirectoryTenantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.azureActiveDirectoryTenantId = mapped
    }

    /**
     * @param value Delivery attribute details.
     */
    @JvmName("vwccfagysrvyrsmd")
    public suspend fun deliveryAttributeMappings(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deliveryAttributeMappings = mapped
    }

    /**
     * @param values Delivery attribute details.
     */
    @JvmName("yswdgnopbdetwcpk")
    public suspend fun deliveryAttributeMappings(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deliveryAttributeMappings = mapped
    }

    /**
     * @param value Type of the endpoint for the event subscription destination.
     * Expected value is 'WebHook'.
     */
    @JvmName("xhuxgeogiyoitiqr")
    public suspend fun endpointType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointType = mapped
    }

    /**
     * @param value The URL that represents the endpoint of the destination of an event subscription.
     */
    @JvmName("wblqyyxdisyqivvw")
    public suspend fun endpointUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointUrl = mapped
    }

    /**
     * @param value Maximum number of events per batch.
     */
    @JvmName("dyhttkstlorhahcq")
    public suspend fun maxEventsPerBatch(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxEventsPerBatch = mapped
    }

    /**
     * @param value Preferred batch size in Kilobytes.
     */
    @JvmName("dfordepdblutpqac")
    public suspend fun preferredBatchSizeInKilobytes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferredBatchSizeInKilobytes = mapped
    }

    internal fun build(): WebHookEventSubscriptionDestinationArgs =
        WebHookEventSubscriptionDestinationArgs(
            azureActiveDirectoryApplicationIdOrUri = azureActiveDirectoryApplicationIdOrUri,
            azureActiveDirectoryTenantId = azureActiveDirectoryTenantId,
            deliveryAttributeMappings = deliveryAttributeMappings,
            endpointType = endpointType ?: throw PulumiNullFieldException("endpointType"),
            endpointUrl = endpointUrl,
            maxEventsPerBatch = maxEventsPerBatch,
            preferredBatchSizeInKilobytes = preferredBatchSizeInKilobytes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy