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

com.pulumi.azure.apimanagement.kotlin.inputs.LoggerEventhubArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.apimanagement.kotlin.inputs

import com.pulumi.azure.apimanagement.inputs.LoggerEventhubArgs.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 connectionString The connection string of an EventHub Namespace.
 * > **Note:** At least one of `connection_string` or `endpoint_uri` must be specified
 * @property endpointUri The endpoint address of an EventHub Namespace. Required when `client_id` is set.
 * @property name The name of an EventHub.
 * @property userAssignedIdentityClientId The Client Id of the User Assigned Identity with the "Azure Event Hubs Data Sender" role to the target EventHub Namespace. Required when `endpoint_uri` is set. If not specified the System Assigned Identity will be used.
 */
public data class LoggerEventhubArgs(
    public val connectionString: Output? = null,
    public val endpointUri: Output? = null,
    public val name: Output,
    public val userAssignedIdentityClientId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.apimanagement.inputs.LoggerEventhubArgs =
        com.pulumi.azure.apimanagement.inputs.LoggerEventhubArgs.builder()
            .connectionString(connectionString?.applyValue({ args0 -> args0 }))
            .endpointUri(endpointUri?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .userAssignedIdentityClientId(userAssignedIdentityClientId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LoggerEventhubArgs].
 */
@PulumiTagMarker
public class LoggerEventhubArgsBuilder internal constructor() {
    private var connectionString: Output? = null

    private var endpointUri: Output? = null

    private var name: Output? = null

    private var userAssignedIdentityClientId: Output? = null

    /**
     * @param value The connection string of an EventHub Namespace.
     * > **Note:** At least one of `connection_string` or `endpoint_uri` must be specified
     */
    @JvmName("ciadgwxyyunucwdp")
    public suspend fun connectionString(`value`: Output) {
        this.connectionString = value
    }

    /**
     * @param value The endpoint address of an EventHub Namespace. Required when `client_id` is set.
     */
    @JvmName("dycjkyiqpfdxcnqk")
    public suspend fun endpointUri(`value`: Output) {
        this.endpointUri = value
    }

    /**
     * @param value The name of an EventHub.
     */
    @JvmName("rlfyqvuxghdmuurm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The Client Id of the User Assigned Identity with the "Azure Event Hubs Data Sender" role to the target EventHub Namespace. Required when `endpoint_uri` is set. If not specified the System Assigned Identity will be used.
     */
    @JvmName("micjoeiibykitgfw")
    public suspend fun userAssignedIdentityClientId(`value`: Output) {
        this.userAssignedIdentityClientId = value
    }

    /**
     * @param value The connection string of an EventHub Namespace.
     * > **Note:** At least one of `connection_string` or `endpoint_uri` must be specified
     */
    @JvmName("wrnneuibnhwrnbve")
    public suspend fun connectionString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionString = mapped
    }

    /**
     * @param value The endpoint address of an EventHub Namespace. Required when `client_id` is set.
     */
    @JvmName("smcvtkaneuoncdil")
    public suspend fun endpointUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointUri = mapped
    }

    /**
     * @param value The name of an EventHub.
     */
    @JvmName("qkhtfftierpgctns")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The Client Id of the User Assigned Identity with the "Azure Event Hubs Data Sender" role to the target EventHub Namespace. Required when `endpoint_uri` is set. If not specified the System Assigned Identity will be used.
     */
    @JvmName("rxutegmigsfjkjxe")
    public suspend fun userAssignedIdentityClientId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userAssignedIdentityClientId = mapped
    }

    internal fun build(): LoggerEventhubArgs = LoggerEventhubArgs(
        connectionString = connectionString,
        endpointUri = endpointUri,
        name = name ?: throw PulumiNullFieldException("name"),
        userAssignedIdentityClientId = userAssignedIdentityClientId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy