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

com.pulumi.azure.apimanagement.kotlin.outputs.LoggerEventhub.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.apimanagement.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 LoggerEventhub(
    public val connectionString: String? = null,
    public val endpointUri: String? = null,
    public val name: String,
    public val userAssignedIdentityClientId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.apimanagement.outputs.LoggerEventhub): LoggerEventhub = LoggerEventhub(
            connectionString = javaType.connectionString().map({ args0 -> args0 }).orElse(null),
            endpointUri = javaType.endpointUri().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            userAssignedIdentityClientId = javaType.userAssignedIdentityClientId().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy