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

com.pulumi.azurenative.eventgrid.kotlin.inputs.AzureFunctionEventSubscriptionDestinationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azurenative.eventgrid.inputs.AzureFunctionEventSubscriptionDestinationArgs.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 azure function destination for an event subscription.
 * @property deliveryAttributeMappings Delivery attribute details.
 * @property endpointType Type of the endpoint for the event subscription destination.
 * Expected value is 'AzureFunction'.
 * @property maxEventsPerBatch Maximum number of events per batch.
 * @property preferredBatchSizeInKilobytes Preferred batch size in Kilobytes.
 * @property resourceId The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.
 */
public data class AzureFunctionEventSubscriptionDestinationArgs(
    public val deliveryAttributeMappings: Output>>? =
        null,
    public val endpointType: Output,
    public val maxEventsPerBatch: Output? = null,
    public val preferredBatchSizeInKilobytes: Output? = null,
    public val resourceId: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.eventgrid.inputs.AzureFunctionEventSubscriptionDestinationArgs =
        com.pulumi.azurenative.eventgrid.inputs.AzureFunctionEventSubscriptionDestinationArgs.builder()
            .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 }))
            .maxEventsPerBatch(maxEventsPerBatch?.applyValue({ args0 -> args0 }))
            .preferredBatchSizeInKilobytes(preferredBatchSizeInKilobytes?.applyValue({ args0 -> args0 }))
            .resourceId(resourceId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AzureFunctionEventSubscriptionDestinationArgs].
 */
@PulumiTagMarker
public class AzureFunctionEventSubscriptionDestinationArgsBuilder internal constructor() {
    private var deliveryAttributeMappings:
        Output>>? =
        null

    private var endpointType: Output? = null

    private var maxEventsPerBatch: Output? = null

    private var preferredBatchSizeInKilobytes: Output? = null

    private var resourceId: Output? = null

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

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

    /**
     * @param values Delivery attribute details.
     */
    @JvmName("ouninyknwjonsobm")
    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 'AzureFunction'.
     */
    @JvmName("nhjgkohuajrambcl")
    public suspend fun endpointType(`value`: Output) {
        this.endpointType = value
    }

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

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

    /**
     * @param value The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.
     */
    @JvmName("yemxmcjbtsnuxakk")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

    /**
     * @param value Delivery attribute details.
     */
    @JvmName("vmagtbvblahfykff")
    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("mjncipujjwbinnpg")
    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 'AzureFunction'.
     */
    @JvmName("fktwdmsdtrckdtkq")
    public suspend fun endpointType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointType = mapped
    }

    /**
     * @param value Maximum number of events per batch.
     */
    @JvmName("cipdsyhgxxfasfsp")
    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("iclothcoeauptwow")
    public suspend fun preferredBatchSizeInKilobytes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferredBatchSizeInKilobytes = mapped
    }

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

    internal fun build(): AzureFunctionEventSubscriptionDestinationArgs =
        AzureFunctionEventSubscriptionDestinationArgs(
            deliveryAttributeMappings = deliveryAttributeMappings,
            endpointType = endpointType ?: throw PulumiNullFieldException("endpointType"),
            maxEventsPerBatch = maxEventsPerBatch,
            preferredBatchSizeInKilobytes = preferredBatchSizeInKilobytes,
            resourceId = resourceId,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy