import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Stream Analytics Reference Input Blob. Reference data (also known as a lookup table) is a finite data set that is static or slowly changing in nature, used to perform a lookup or to correlate with your data stream. Learn more [here](https://docs.microsoft.com/azure/stream-analytics/stream-analytics-use-reference-data#azure-blob-storage). * * ## 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 exampleAccount = new azure.storage.Account("example", { * name: "examplestoracc", * resourceGroupName: exampleResourceGroup.name, * location: exampleResourceGroup.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleContainer = new azure.storage.Container("example", { * name: "example", * storageAccountName: exampleAccount.name, * containerAccessType: "private", * }); * const test = new azure.streamanalytics.ReferenceInputBlob("test", { * name: "blob-reference-input", * streamAnalyticsJobName: example.apply(example => example.name), * resourceGroupName: example.apply(example => example.resourceGroupName), * storageAccountName: exampleAccount.name, * storageAccountKey: exampleAccount.primaryAccessKey, * storageContainerName: exampleContainer.name, * pathPattern: "some-random-pattern", * dateFormat: "yyyy/MM/dd", * timeFormat: "HH", * serialization: { * type: "Json", * encoding: "UTF8", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.StreamAnalytics` - 2020-03-01 * * ## Import * * Stream Analytics Reference Input Blob's can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:streamanalytics/referenceInputBlob:ReferenceInputBlob example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/inputs/input1 * ``` */ export declare class ReferenceInputBlob extends pulumi.CustomResource { /** * Get an existing ReferenceInputBlob 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?: ReferenceInputBlobState, opts?: pulumi.CustomResourceOptions): ReferenceInputBlob; /** * Returns true if the given object is an instance of ReferenceInputBlob. 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 ReferenceInputBlob; /** * The authentication mode for the Stream Analytics Reference Input. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. */ readonly authenticationMode: pulumi.Output; /** * The date format. Wherever `{date}` appears in `pathPattern`, the value of this property is used as the date format instead. */ readonly dateFormat: pulumi.Output; /** * The name of the Reference Input Blob. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. */ readonly pathPattern: 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 Access Key which should be used to connect to this Storage Account. Required if `authenticationMode` is `ConnectionString`. */ readonly storageAccountKey: pulumi.Output; /** * The name of the Storage Account that has the blob container with reference data. */ readonly storageAccountName: pulumi.Output; /** * The name of the Container within the Storage Account. */ readonly storageContainerName: pulumi.Output; /** * The name of the Stream Analytics Job. Changing this forces a new resource to be created. */ readonly streamAnalyticsJobName: pulumi.Output; /** * The time format. Wherever `{time}` appears in `pathPattern`, the value of this property is used as the time format instead. */ readonly timeFormat: pulumi.Output; /** * Create a ReferenceInputBlob 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: ReferenceInputBlobArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ReferenceInputBlob resources. */ export interface ReferenceInputBlobState { /** * The authentication mode for the Stream Analytics Reference Input. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. */ authenticationMode?: pulumi.Input; /** * The date format. Wherever `{date}` appears in `pathPattern`, the value of this property is used as the date format instead. */ dateFormat?: pulumi.Input; /** * The name of the Reference Input Blob. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. */ pathPattern?: 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 Access Key which should be used to connect to this Storage Account. Required if `authenticationMode` is `ConnectionString`. */ storageAccountKey?: pulumi.Input; /** * The name of the Storage Account that has the blob container with reference data. */ storageAccountName?: pulumi.Input; /** * The name of the Container within the Storage Account. */ storageContainerName?: pulumi.Input; /** * The name of the Stream Analytics Job. Changing this forces a new resource to be created. */ streamAnalyticsJobName?: pulumi.Input; /** * The time format. Wherever `{time}` appears in `pathPattern`, the value of this property is used as the time format instead. */ timeFormat?: pulumi.Input; } /** * The set of arguments for constructing a ReferenceInputBlob resource. */ export interface ReferenceInputBlobArgs { /** * The authentication mode for the Stream Analytics Reference Input. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. */ authenticationMode?: pulumi.Input; /** * The date format. Wherever `{date}` appears in `pathPattern`, the value of this property is used as the date format instead. */ dateFormat: pulumi.Input; /** * The name of the Reference Input Blob. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. */ pathPattern: 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 Access Key which should be used to connect to this Storage Account. Required if `authenticationMode` is `ConnectionString`. */ storageAccountKey?: pulumi.Input; /** * The name of the Storage Account that has the blob container with reference data. */ storageAccountName: pulumi.Input; /** * The name of the Container within the Storage Account. */ storageContainerName: pulumi.Input; /** * The name of the Stream Analytics Job. Changing this forces a new resource to be created. */ streamAnalyticsJobName: pulumi.Input; /** * The time format. Wherever `{time}` appears in `pathPattern`, the value of this property is used as the time format instead. */ timeFormat: pulumi.Input; }