import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * > **Note:** This resource creates a Stream Input of type `Microsoft.ServiceBus/EventHub`, to create a Stream Input of type `Microsoft.EventHub/EventHub` please use the resource azurerm_stream_analytics_stream_input_eventhub_v2. * * Manages a Stream Analytics Stream Input EventHub. * * ## 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 exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("example", { * name: "example-namespace", * location: exampleResourceGroup.location, * resourceGroupName: exampleResourceGroup.name, * sku: "Standard", * capacity: 1, * }); * const exampleEventHub = new azure.eventhub.EventHub("example", { * name: "example-eventhub", * namespaceName: exampleEventHubNamespace.name, * resourceGroupName: exampleResourceGroup.name, * partitionCount: 2, * messageRetention: 1, * }); * const exampleConsumerGroup = new azure.eventhub.ConsumerGroup("example", { * name: "example-consumergroup", * namespaceName: exampleEventHubNamespace.name, * eventhubName: exampleEventHub.name, * resourceGroupName: exampleResourceGroup.name, * }); * const exampleStreamInputEventHub = new azure.streamanalytics.StreamInputEventHub("example", { * name: "eventhub-stream-input", * streamAnalyticsJobName: example.apply(example => example.name), * resourceGroupName: example.apply(example => example.resourceGroupName), * eventhubConsumerGroupName: exampleConsumerGroup.name, * eventhubName: exampleEventHub.name, * servicebusNamespace: exampleEventHubNamespace.name, * sharedAccessPolicyKey: exampleEventHubNamespace.defaultPrimaryKey, * sharedAccessPolicyName: "RootManageSharedAccessKey", * 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 EventHub's can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:streamanalytics/streamInputEventHub:StreamInputEventHub example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/inputs/input1 * ``` */ export declare class StreamInputEventHub extends pulumi.CustomResource { /** * Get an existing StreamInputEventHub 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?: StreamInputEventHubState, opts?: pulumi.CustomResourceOptions): StreamInputEventHub; /** * Returns true if the given object is an instance of StreamInputEventHub. 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 StreamInputEventHub; /** * The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. */ readonly authenticationMode: 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. If not set the input will use the Event Hub's default consumer group. */ readonly eventhubConsumerGroupName: pulumi.Output; /** * The name of the Event Hub. */ readonly eventhubName: pulumi.Output; /** * The name of the Stream Input EventHub. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The property the input Event Hub has been partitioned by. */ readonly partitionKey: 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 namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. */ readonly servicebusNamespace: pulumi.Output; /** * The shared access policy key for the specified shared access policy. */ 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 StreamInputEventHub 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: StreamInputEventHubArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StreamInputEventHub resources. */ export interface StreamInputEventHubState { /** * The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. */ authenticationMode?: 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. If not set the input will use the Event Hub's default consumer group. */ eventhubConsumerGroupName?: pulumi.Input; /** * The name of the Event Hub. */ eventhubName?: pulumi.Input; /** * The name of the Stream Input EventHub. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The property the input Event Hub has been partitioned by. */ partitionKey?: 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 namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. */ servicebusNamespace?: pulumi.Input; /** * The shared access policy key for the specified shared access policy. */ 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 StreamInputEventHub resource. */ export interface StreamInputEventHubArgs { /** * The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. */ authenticationMode?: 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. If not set the input will use the Event Hub's default consumer group. */ eventhubConsumerGroupName?: pulumi.Input; /** * The name of the Event Hub. */ eventhubName: pulumi.Input; /** * The name of the Stream Input EventHub. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The property the input Event Hub has been partitioned by. */ partitionKey?: 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 namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. */ servicebusNamespace: pulumi.Input; /** * The shared access policy key for the specified shared access policy. */ 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; }