
com.pulumi.azurenative.timeseriesinsights.kotlin.outputs.GetIoTHubEventSourceResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.timeseriesinsights.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
* An event source that receives its data from an Azure IoTHub.
* @property consumerGroupName The name of the iot hub's consumer group that holds the partitions from which events will be read.
* @property creationTime The time the resource was created.
* @property eventSourceResourceId The resource id of the event source in Azure Resource Manager.
* @property id Resource Id
* @property iotHubName The name of the iot hub.
* @property keyName The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub.
* @property kind The kind of the event source.
* Expected value is 'Microsoft.IoTHub'.
* @property localTimestamp An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.
* @property location Resource location
* @property name Resource name
* @property provisioningState Provisioning state of the resource.
* @property tags Resource tags
* @property time ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed.
* @property timestampPropertyName The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.
* @property type Resource type
*/
public data class GetIoTHubEventSourceResult(
public val consumerGroupName: String,
public val creationTime: String,
public val eventSourceResourceId: String,
public val id: String,
public val iotHubName: String,
public val keyName: String,
public val kind: String,
public val localTimestamp: LocalTimestampResponse? = null,
public val location: String,
public val name: String,
public val provisioningState: String,
public val tags: Map? = null,
public val time: String? = null,
public val timestampPropertyName: String? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.timeseriesinsights.outputs.GetIoTHubEventSourceResult): GetIoTHubEventSourceResult = GetIoTHubEventSourceResult(
consumerGroupName = javaType.consumerGroupName(),
creationTime = javaType.creationTime(),
eventSourceResourceId = javaType.eventSourceResourceId(),
id = javaType.id(),
iotHubName = javaType.iotHubName(),
keyName = javaType.keyName(),
kind = javaType.kind(),
localTimestamp = javaType.localTimestamp().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.timeseriesinsights.kotlin.outputs.LocalTimestampResponse.Companion.toKotlin(args0)
})
}).orElse(null),
location = javaType.location(),
name = javaType.name(),
provisioningState = javaType.provisioningState(),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
time = javaType.time().map({ args0 -> args0 }).orElse(null),
timestampPropertyName = javaType.timestampPropertyName().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy