import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Stream Analytics Stream Input IoTHub. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const example = azure.streamanalytics.getJobOutput({ * name: "example-job", * resourceGroupName: exampleResourceGroup.name, * }); * const exampleIoTHub = new azure.iot.IoTHub("example", { * name: "example-iothub", * resourceGroupName: exampleResourceGroup.name, * location: exampleResourceGroup.location, * sku: { * name: "S1", * capacity: 1, * }, * }); * const exampleStreamInputIotHub = new azure.streamanalytics.StreamInputIotHub("example", { * name: "example-iothub-input", * streamAnalyticsJobName: example.apply(example => example.name), * resourceGroupName: example.apply(example => example.resourceGroupName), * endpoint: "messages/events", * eventhubConsumerGroupName: "$Default", * iothubNamespace: exampleIoTHub.name, * sharedAccessPolicyKey: exampleIoTHub.sharedAccessPolicies.apply(sharedAccessPolicies => sharedAccessPolicies[0].primaryKey), * sharedAccessPolicyName: "iothubowner", * serialization: { * type: "Json", * encoding: "UTF8", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.StreamAnalytics` - 2020-03-01 * * ## Import * * Stream Analytics Stream Input IoTHub's can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:streamanalytics/streamInputIotHub:StreamInputIotHub example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/inputs/input1 * ``` */ export declare class StreamInputIotHub extends pulumi.CustomResource { /** * Get an existing StreamInputIotHub resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: StreamInputIotHubState, opts?: pulumi.CustomResourceOptions): StreamInputIotHub; /** * Returns true if the given object is an instance of StreamInputIotHub. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is StreamInputIotHub; /** * The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.). */ readonly endpoint: pulumi.Output; /** * 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. */ readonly eventhubConsumerGroupName: pulumi.Output; /** * The name or the URI of the IoT Hub. */ readonly iothubNamespace: pulumi.Output; /** * The name of the Stream Input IoTHub. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A `serialization` block as defined below. */ readonly serialization: pulumi.Output; /** * The shared access policy key for the specified shared access policy. Changing this forces a new resource to be created. */ readonly sharedAccessPolicyKey: pulumi.Output; /** * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. */ readonly sharedAccessPolicyName: pulumi.Output; /** * The name of the Stream Analytics Job. Changing this forces a new resource to be created. */ readonly streamAnalyticsJobName: pulumi.Output; /** * Create a StreamInputIotHub resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: StreamInputIotHubArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StreamInputIotHub resources. */ export interface StreamInputIotHubState { /** * The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.). */ endpoint?: pulumi.Input; /** * 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. */ eventhubConsumerGroupName?: pulumi.Input; /** * The name or the URI of the IoT Hub. */ iothubNamespace?: pulumi.Input; /** * The name of the Stream Input IoTHub. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A `serialization` block as defined below. */ serialization?: pulumi.Input; /** * The shared access policy key for the specified shared access policy. Changing this forces a new resource to be created. */ sharedAccessPolicyKey?: pulumi.Input; /** * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. */ sharedAccessPolicyName?: pulumi.Input; /** * The name of the Stream Analytics Job. Changing this forces a new resource to be created. */ streamAnalyticsJobName?: pulumi.Input; } /** * The set of arguments for constructing a StreamInputIotHub resource. */ export interface StreamInputIotHubArgs { /** * The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.). */ endpoint: pulumi.Input; /** * 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. */ eventhubConsumerGroupName: pulumi.Input; /** * The name or the URI of the IoT Hub. */ iothubNamespace: pulumi.Input; /** * The name of the Stream Input IoTHub. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A `serialization` block as defined below. */ serialization: pulumi.Input; /** * The shared access policy key for the specified shared access policy. Changing this forces a new resource to be created. */ sharedAccessPolicyKey: pulumi.Input; /** * The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. */ sharedAccessPolicyName: pulumi.Input; /** * The name of the Stream Analytics Job. Changing this forces a new resource to be created. */ streamAnalyticsJobName: pulumi.Input; }