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

com.pulumi.azure.eventgrid.kotlin.outputs.SystemTopicEventSubscriptionAzureFunctionEndpoint.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.eventgrid.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property functionId Specifies the ID of the Function where the Event Subscription will receive events. This must be the functions ID in format {function_app.id}/functions/{name}.
 * @property maxEventsPerBatch Maximum number of events per batch.
 * @property preferredBatchSizeInKilobytes Preferred batch size in Kilobytes.
 */
public data class SystemTopicEventSubscriptionAzureFunctionEndpoint(
    public val functionId: String,
    public val maxEventsPerBatch: Int? = null,
    public val preferredBatchSizeInKilobytes: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.eventgrid.outputs.SystemTopicEventSubscriptionAzureFunctionEndpoint): SystemTopicEventSubscriptionAzureFunctionEndpoint =
            SystemTopicEventSubscriptionAzureFunctionEndpoint(
                functionId = javaType.functionId(),
                maxEventsPerBatch = javaType.maxEventsPerBatch().map({ args0 -> args0 }).orElse(null),
                preferredBatchSizeInKilobytes = javaType.preferredBatchSizeInKilobytes().map({ args0 ->
                    args0
                }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy