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

com.pulumi.azure.eventhub.kotlin.outputs.EventHubCaptureDescription.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.eventhub.kotlin.outputs

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

/**
 *
 * @property destination A `destination` block as defined below.
 * @property enabled Specifies if the Capture Description is Enabled.
 * @property encoding Specifies the Encoding used for the Capture Description. Possible values are `Avro` and `AvroDeflate`.
 * @property intervalInSeconds Specifies the time interval in seconds at which the capture will happen. Values can be between `60` and `900` seconds. Defaults to `300` seconds.
 * @property sizeLimitInBytes Specifies the amount of data built up in your EventHub before a Capture Operation occurs. Value should be between `10485760` and `524288000` bytes. Defaults to `314572800` bytes.
 * @property skipEmptyArchives Specifies if empty files should not be emitted if no events occur during the Capture time window. Defaults to `false`.
 */
public data class EventHubCaptureDescription(
    public val destination: EventHubCaptureDescriptionDestination,
    public val enabled: Boolean,
    public val encoding: String,
    public val intervalInSeconds: Int? = null,
    public val sizeLimitInBytes: Int? = null,
    public val skipEmptyArchives: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.eventhub.outputs.EventHubCaptureDescription):
            EventHubCaptureDescription = EventHubCaptureDescription(
            destination = javaType.destination().let({ args0 ->
                com.pulumi.azure.eventhub.kotlin.outputs.EventHubCaptureDescriptionDestination.Companion.toKotlin(args0)
            }),
            enabled = javaType.enabled(),
            encoding = javaType.encoding(),
            intervalInSeconds = javaType.intervalInSeconds().map({ args0 -> args0 }).orElse(null),
            sizeLimitInBytes = javaType.sizeLimitInBytes().map({ args0 -> args0 }).orElse(null),
            skipEmptyArchives = javaType.skipEmptyArchives().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy