
com.pulumi.azurenative.streamanalytics.kotlin.inputs.EventHubV2StreamInputDataSourceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.streamanalytics.kotlin.inputs
import com.pulumi.azurenative.streamanalytics.inputs.EventHubV2StreamInputDataSourceArgs.builder
import com.pulumi.azurenative.streamanalytics.kotlin.enums.AuthenticationMode
import com.pulumi.core.Either
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
/**
* Describes an Event Hub input data source that contains stream data.
* @property authenticationMode Authentication Mode.
* @property consumerGroupName The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group.
* @property eventHubName The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
* @property serviceBusNamespace The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
* @property sharedAccessPolicyKey The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
* @property sharedAccessPolicyName The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
* @property type Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
* Expected value is 'Microsoft.EventHub/EventHub'.
*/
public data class EventHubV2StreamInputDataSourceArgs(
public val authenticationMode: Output>? = null,
public val consumerGroupName: Output? = null,
public val eventHubName: Output? = null,
public val serviceBusNamespace: Output? = null,
public val sharedAccessPolicyKey: Output? = null,
public val sharedAccessPolicyName: Output? = null,
public val type: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.streamanalytics.inputs.EventHubV2StreamInputDataSourceArgs =
com.pulumi.azurenative.streamanalytics.inputs.EventHubV2StreamInputDataSourceArgs.builder()
.authenticationMode(
authenticationMode?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.consumerGroupName(consumerGroupName?.applyValue({ args0 -> args0 }))
.eventHubName(eventHubName?.applyValue({ args0 -> args0 }))
.serviceBusNamespace(serviceBusNamespace?.applyValue({ args0 -> args0 }))
.sharedAccessPolicyKey(sharedAccessPolicyKey?.applyValue({ args0 -> args0 }))
.sharedAccessPolicyName(sharedAccessPolicyName?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EventHubV2StreamInputDataSourceArgs].
*/
@PulumiTagMarker
public class EventHubV2StreamInputDataSourceArgsBuilder internal constructor() {
private var authenticationMode: Output>? = null
private var consumerGroupName: Output? = null
private var eventHubName: Output? = null
private var serviceBusNamespace: Output? = null
private var sharedAccessPolicyKey: Output? = null
private var sharedAccessPolicyName: Output? = null
private var type: Output? = null
/**
* @param value Authentication Mode.
*/
@JvmName("brxdvsethrimemle")
public suspend fun authenticationMode(`value`: Output>) {
this.authenticationMode = value
}
/**
* @param value The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group.
*/
@JvmName("wjiwxfrccubudoay")
public suspend fun consumerGroupName(`value`: Output) {
this.consumerGroupName = value
}
/**
* @param value The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("trtlqfqpukqbidqj")
public suspend fun eventHubName(`value`: Output) {
this.eventHubName = value
}
/**
* @param value The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("ghqcldlchilaugwq")
public suspend fun serviceBusNamespace(`value`: Output) {
this.serviceBusNamespace = value
}
/**
* @param value The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("dccftwijgpnnbjvb")
public suspend fun sharedAccessPolicyKey(`value`: Output) {
this.sharedAccessPolicyKey = value
}
/**
* @param value The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("rqluvbkfjstoampy")
public suspend fun sharedAccessPolicyName(`value`: Output) {
this.sharedAccessPolicyName = value
}
/**
* @param value Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
* Expected value is 'Microsoft.EventHub/EventHub'.
*/
@JvmName("gaeconoalxeinwkl")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Authentication Mode.
*/
@JvmName("rfqebihclehxwgnq")
public suspend fun authenticationMode(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.authenticationMode = mapped
}
/**
* @param value Authentication Mode.
*/
@JvmName("hshtmcpesjaandod")
public fun authenticationMode(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.authenticationMode = mapped
}
/**
* @param value Authentication Mode.
*/
@JvmName("snjcmqjleehvobtg")
public fun authenticationMode(`value`: AuthenticationMode) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.authenticationMode = mapped
}
/**
* @param value The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group.
*/
@JvmName("ojmvvrycjricqbim")
public suspend fun consumerGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.consumerGroupName = mapped
}
/**
* @param value The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("fvwbumqdfnlpreky")
public suspend fun eventHubName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eventHubName = mapped
}
/**
* @param value The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("wrrixyuvqhuwtlty")
public suspend fun serviceBusNamespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceBusNamespace = mapped
}
/**
* @param value The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("aviktwnissfkxgyn")
public suspend fun sharedAccessPolicyKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sharedAccessPolicyKey = mapped
}
/**
* @param value The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("ifrxhtoqhqcyomky")
public suspend fun sharedAccessPolicyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sharedAccessPolicyName = mapped
}
/**
* @param value Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
* Expected value is 'Microsoft.EventHub/EventHub'.
*/
@JvmName("ngynmqvqteksuqec")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): EventHubV2StreamInputDataSourceArgs = EventHubV2StreamInputDataSourceArgs(
authenticationMode = authenticationMode,
consumerGroupName = consumerGroupName,
eventHubName = eventHubName,
serviceBusNamespace = serviceBusNamespace,
sharedAccessPolicyKey = sharedAccessPolicyKey,
sharedAccessPolicyName = sharedAccessPolicyName,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy