
com.pulumi.azurenative.streamanalytics.kotlin.inputs.IoTHubStreamInputDataSourceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.streamanalytics.kotlin.inputs
import com.pulumi.azurenative.streamanalytics.inputs.IoTHubStreamInputDataSourceArgs.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
/**
* Describes an IoT Hub input data source that contains stream data.
* @property consumerGroupName The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input uses the Iot Hub’s default consumer group.
* @property endpoint The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.).
* @property iotHubNamespace The name or the URI of the IoT Hub. 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 IoT Hub. This policy must contain at least the Service connect permission. 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.Devices/IotHubs'.
*/
public data class IoTHubStreamInputDataSourceArgs(
public val consumerGroupName: Output? = null,
public val endpoint: Output? = null,
public val iotHubNamespace: 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.IoTHubStreamInputDataSourceArgs =
com.pulumi.azurenative.streamanalytics.inputs.IoTHubStreamInputDataSourceArgs.builder()
.consumerGroupName(consumerGroupName?.applyValue({ args0 -> args0 }))
.endpoint(endpoint?.applyValue({ args0 -> args0 }))
.iotHubNamespace(iotHubNamespace?.applyValue({ args0 -> args0 }))
.sharedAccessPolicyKey(sharedAccessPolicyKey?.applyValue({ args0 -> args0 }))
.sharedAccessPolicyName(sharedAccessPolicyName?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IoTHubStreamInputDataSourceArgs].
*/
@PulumiTagMarker
public class IoTHubStreamInputDataSourceArgsBuilder internal constructor() {
private var consumerGroupName: Output? = null
private var endpoint: Output? = null
private var iotHubNamespace: Output? = null
private var sharedAccessPolicyKey: Output? = null
private var sharedAccessPolicyName: Output? = null
private var type: Output? = null
/**
* @param value The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input uses the Iot Hub’s default consumer group.
*/
@JvmName("fjgtahhxhsvidjmm")
public suspend fun consumerGroupName(`value`: Output) {
this.consumerGroupName = value
}
/**
* @param value The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.).
*/
@JvmName("uvngkeymymungpeb")
public suspend fun endpoint(`value`: Output) {
this.endpoint = value
}
/**
* @param value The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("wdqwwpirlrrocvco")
public suspend fun iotHubNamespace(`value`: Output) {
this.iotHubNamespace = value
}
/**
* @param value The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("lnckxwvsqmxdrjdk")
public suspend fun sharedAccessPolicyKey(`value`: Output) {
this.sharedAccessPolicyKey = value
}
/**
* @param value The shared access policy name for the IoT Hub. This policy must contain at least the Service connect permission. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("ennlaaxgyfvgwkte")
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.Devices/IotHubs'.
*/
@JvmName("cebwydykojxkuasj")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input uses the Iot Hub’s default consumer group.
*/
@JvmName("qnswjdyrshpdwiid")
public suspend fun consumerGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.consumerGroupName = mapped
}
/**
* @param value The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.).
*/
@JvmName("jsoucyuspddxyoaw")
public suspend fun endpoint(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.endpoint = mapped
}
/**
* @param value The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("ayldqupoysvsycxa")
public suspend fun iotHubNamespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iotHubNamespace = mapped
}
/**
* @param value The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("khwlvjumborilbtp")
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 IoT Hub. This policy must contain at least the Service connect permission. Required on PUT (CreateOrReplace) requests.
*/
@JvmName("gfeyejyfesyncolh")
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.Devices/IotHubs'.
*/
@JvmName("tsecdgijgfcdalik")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): IoTHubStreamInputDataSourceArgs = IoTHubStreamInputDataSourceArgs(
consumerGroupName = consumerGroupName,
endpoint = endpoint,
iotHubNamespace = iotHubNamespace,
sharedAccessPolicyKey = sharedAccessPolicyKey,
sharedAccessPolicyName = sharedAccessPolicyName,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy