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

com.pulumi.azure.eventhub.kotlin.inputs.EventHubCaptureDescriptionDestinationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.eventhub.kotlin.inputs

import com.pulumi.azure.eventhub.inputs.EventHubCaptureDescriptionDestinationArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property archiveNameFormat The Blob naming convention for archiving. e.g. `{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}`. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
 * @property blobContainerName The name of the Container within the Blob Storage Account where messages should be archived.
 * @property name The Name of the Destination where the capture should take place. At this time the only supported value is `EventHubArchive.AzureBlockBlob`.
 * > At this time it's only possible to Capture EventHub messages to Blob Storage. There's [a Feature Request for the Azure SDK to add support for Capturing messages to Azure Data Lake here](https://github.com/Azure/azure-rest-api-specs/issues/2255).
 * @property storageAccountId The ID of the Blob Storage Account where messages should be archived.
 */
public data class EventHubCaptureDescriptionDestinationArgs(
    public val archiveNameFormat: Output,
    public val blobContainerName: Output,
    public val name: Output,
    public val storageAccountId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.eventhub.inputs.EventHubCaptureDescriptionDestinationArgs = com.pulumi.azure.eventhub.inputs.EventHubCaptureDescriptionDestinationArgs.builder()
        .archiveNameFormat(archiveNameFormat.applyValue({ args0 -> args0 }))
        .blobContainerName(blobContainerName.applyValue({ args0 -> args0 }))
        .name(name.applyValue({ args0 -> args0 }))
        .storageAccountId(storageAccountId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EventHubCaptureDescriptionDestinationArgs].
 */
@PulumiTagMarker
public class EventHubCaptureDescriptionDestinationArgsBuilder internal constructor() {
    private var archiveNameFormat: Output? = null

    private var blobContainerName: Output? = null

    private var name: Output? = null

    private var storageAccountId: Output? = null

    /**
     * @param value The Blob naming convention for archiving. e.g. `{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}`. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
     */
    @JvmName("isjybbhxmruqpndi")
    public suspend fun archiveNameFormat(`value`: Output) {
        this.archiveNameFormat = value
    }

    /**
     * @param value The name of the Container within the Blob Storage Account where messages should be archived.
     */
    @JvmName("arasavkvegirevbe")
    public suspend fun blobContainerName(`value`: Output) {
        this.blobContainerName = value
    }

    /**
     * @param value The Name of the Destination where the capture should take place. At this time the only supported value is `EventHubArchive.AzureBlockBlob`.
     * > At this time it's only possible to Capture EventHub messages to Blob Storage. There's [a Feature Request for the Azure SDK to add support for Capturing messages to Azure Data Lake here](https://github.com/Azure/azure-rest-api-specs/issues/2255).
     */
    @JvmName("pxbyqgqummcrsxpe")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID of the Blob Storage Account where messages should be archived.
     */
    @JvmName("mqhwbcrkmcwcdaxj")
    public suspend fun storageAccountId(`value`: Output) {
        this.storageAccountId = value
    }

    /**
     * @param value The Blob naming convention for archiving. e.g. `{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}`. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order
     */
    @JvmName("sududulgttidhtdt")
    public suspend fun archiveNameFormat(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.archiveNameFormat = mapped
    }

    /**
     * @param value The name of the Container within the Blob Storage Account where messages should be archived.
     */
    @JvmName("cgvkhprauipewttl")
    public suspend fun blobContainerName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.blobContainerName = mapped
    }

    /**
     * @param value The Name of the Destination where the capture should take place. At this time the only supported value is `EventHubArchive.AzureBlockBlob`.
     * > At this time it's only possible to Capture EventHub messages to Blob Storage. There's [a Feature Request for the Azure SDK to add support for Capturing messages to Azure Data Lake here](https://github.com/Azure/azure-rest-api-specs/issues/2255).
     */
    @JvmName("qqeeqbvuuspqusfo")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ID of the Blob Storage Account where messages should be archived.
     */
    @JvmName("ghwnbrhfefbxrqev")
    public suspend fun storageAccountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageAccountId = mapped
    }

    internal fun build(): EventHubCaptureDescriptionDestinationArgs =
        EventHubCaptureDescriptionDestinationArgs(
            archiveNameFormat = archiveNameFormat ?: throw PulumiNullFieldException("archiveNameFormat"),
            blobContainerName = blobContainerName ?: throw PulumiNullFieldException("blobContainerName"),
            name = name ?: throw PulumiNullFieldException("name"),
            storageAccountId = storageAccountId ?: throw PulumiNullFieldException("storageAccountId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy