TimeSeriesInsightsEventSourceIothubArgs

data class TimeSeriesInsightsEventSourceIothubArgs(val consumerGroupName: Output<String>? = null, val environmentId: Output<String>? = null, val eventSourceResourceId: Output<String>? = null, val iothubName: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val sharedAccessKey: Output<String>? = null, val sharedAccessKeyName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val timestampPropertyName: Output<String>? = null) : ConvertibleToJava<TimeSeriesInsightsEventSourceIothubArgs>

Manages an Azure IoT Time Series Insights IoTHub Event Source.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.iot.IoTHub;
import com.pulumi.azure.iot.IoTHubArgs;
import com.pulumi.azure.iot.inputs.IoTHubSkuArgs;
import com.pulumi.azure.iot.ConsumerGroup;
import com.pulumi.azure.iot.ConsumerGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.iot.TimeSeriesInsightsGen2Environment;
import com.pulumi.azure.iot.TimeSeriesInsightsGen2EnvironmentArgs;
import com.pulumi.azure.iot.inputs.TimeSeriesInsightsGen2EnvironmentStorageArgs;
import com.pulumi.azure.iot.TimeSeriesInsightsEventSourceIothub;
import com.pulumi.azure.iot.TimeSeriesInsightsEventSourceIothubArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example")
.location("West Europe")
.build());
var exampleIoTHub = new IoTHub("exampleIoTHub", IoTHubArgs.builder()
.name("example")
.resourceGroupName(example.name())
.location(example.location())
.sku(IoTHubSkuArgs.builder()
.name("B1")
.capacity("1")
.build())
.build());
var exampleConsumerGroup = new ConsumerGroup("exampleConsumerGroup", ConsumerGroupArgs.builder()
.name("example")
.iothubName(exampleIoTHub.name())
.eventhubEndpointName("events")
.resourceGroupName(example.name())
.build());
var storage = new Account("storage", AccountArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleTimeSeriesInsightsGen2Environment = new TimeSeriesInsightsGen2Environment("exampleTimeSeriesInsightsGen2Environment", TimeSeriesInsightsGen2EnvironmentArgs.builder()
.name("example")
.location(example.location())
.resourceGroupName(example.name())
.skuName("L1")
.idProperties("id")
.storage(TimeSeriesInsightsGen2EnvironmentStorageArgs.builder()
.name(storage.name())
.key(storage.primaryAccessKey())
.build())
.build());
var exampleTimeSeriesInsightsEventSourceIothub = new TimeSeriesInsightsEventSourceIothub("exampleTimeSeriesInsightsEventSourceIothub", TimeSeriesInsightsEventSourceIothubArgs.builder()
.name("example")
.location(example.location())
.environmentId(exampleTimeSeriesInsightsGen2Environment.id())
.iothubName(exampleIoTHub.name())
.sharedAccessKey(exampleIoTHub.sharedAccessPolicies().applyValue(sharedAccessPolicies -> sharedAccessPolicies[0].primaryKey()))
.sharedAccessKeyName(exampleIoTHub.sharedAccessPolicies().applyValue(sharedAccessPolicies -> sharedAccessPolicies[0].keyName()))
.consumerGroupName(exampleConsumerGroup.name())
.eventSourceResourceId(exampleIoTHub.id())
.build());
}
}

Import

Azure IoT Time Series Insights IoTHub Event Source can be imported using the resource id, e.g.

$ pulumi import azure:iot/timeSeriesInsightsEventSourceIothub:TimeSeriesInsightsEventSourceIothub example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.TimeSeriesInsights/environments/environment1/eventSources/example

Constructors

Link copied to clipboard
fun TimeSeriesInsightsEventSourceIothubArgs(consumerGroupName: Output<String>? = null, environmentId: Output<String>? = null, eventSourceResourceId: Output<String>? = null, iothubName: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, sharedAccessKey: Output<String>? = null, sharedAccessKeyName: Output<String>? = null, tags: Output<Map<String, String>>? = null, timestampPropertyName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TimeSeriesInsightsEventSourceIothubArgs

Properties

Link copied to clipboard
val consumerGroupName: Output<String>? = null

Specifies the name of the IotHub Consumer Group that holds the partitions from which events will be read.

Link copied to clipboard
val environmentId: Output<String>? = null

Specifies the id of the IoT Time Series Insights Environment that the Event Source should be associated with. Changing this forces a new resource to created.

Link copied to clipboard
val eventSourceResourceId: Output<String>? = null

Specifies the resource id where events will be coming from.

Link copied to clipboard
val iothubName: Output<String>? = null

Specifies the name of the IotHub which will be associated with this resource.

Link copied to clipboard
val location: Output<String>? = null

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the Azure IoT Time Series Insights IoTHub Event Source. Changing this forces a new resource to be created. Must be globally unique.

Link copied to clipboard
val sharedAccessKey: Output<String>? = null

Specifies the value of the Shared Access Policy key that grants the Time Series Insights service read access to the IotHub.

Link copied to clipboard
val sharedAccessKeyName: Output<String>? = null

Specifies the name of the Shared Access key that grants the Event Source access to the IotHub.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.

Link copied to clipboard
val timestampPropertyName: Output<String>? = null

Specifies the value that will be used as the event source's timestamp. This value defaults to the event creation time.