import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Stream Analytics Output to 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: "rg-example", * location: "West Europe", * }); * const example = azure.streamanalytics.getJobOutput({ * name: "example-job", * resourceGroupName: exampleResourceGroup.name, * }); * const exampleAccount = new azure.storage.Account("example", { * name: "examplesa", * 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 exampleOutputBlob = new azure.streamanalytics.OutputBlob("example", { * name: "output-to-blob-storage", * streamAnalyticsJobName: example.apply(example => example.name), * resourceGroupName: example.apply(example => example.resourceGroupName), * storageAccountName: exampleAccount.name, * storageAccountKey: exampleAccount.primaryAccessKey, * storageContainerName: exampleContainer.name, * pathPattern: "some-pattern", * dateFormat: "yyyy-MM-dd", * timeFormat: "HH", * serialization: { * type: "Csv", * encoding: "UTF8", * fieldDelimiter: ",", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.StreamAnalytics` - 2021-10-01-preview * * ## Import * * Stream Analytics Outputs to Blob Storage can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:streamanalytics/outputBlob:OutputBlob example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/outputs/output1 * ``` */ export declare class OutputBlob extends pulumi.CustomResource { /** * Get an existing OutputBlob 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?: OutputBlobState, opts?: pulumi.CustomResourceOptions): OutputBlob; /** * Returns true if the given object is an instance of OutputBlob. 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 OutputBlob; /** * The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. */ readonly authenticationMode: pulumi.Output; /** * The maximum wait time per batch in `hh:mm:ss` e.g. `00:02:00` for two minutes. */ readonly batchMaxWaitTime: pulumi.Output; /** * The minimum number of rows per batch (must be between `0` and `1000000`). */ readonly batchMinRows: pulumi.Output; /** * Determines whether blob blocks are either committed automatically or appended. Possible values are `Append` and `Once`. Defaults to `Append`. */ readonly blobWriteMode: 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 Stream Output. 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. */ readonly storageAccountKey: pulumi.Output; /** * The name of the Storage Account. */ 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 OutputBlob 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: OutputBlobArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OutputBlob resources. */ export interface OutputBlobState { /** * The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. */ authenticationMode?: pulumi.Input; /** * The maximum wait time per batch in `hh:mm:ss` e.g. `00:02:00` for two minutes. */ batchMaxWaitTime?: pulumi.Input; /** * The minimum number of rows per batch (must be between `0` and `1000000`). */ batchMinRows?: pulumi.Input; /** * Determines whether blob blocks are either committed automatically or appended. Possible values are `Append` and `Once`. Defaults to `Append`. */ blobWriteMode?: 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 Stream Output. 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. */ storageAccountKey?: pulumi.Input; /** * The name of the Storage Account. */ 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 OutputBlob resource. */ export interface OutputBlobArgs { /** * The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. */ authenticationMode?: pulumi.Input; /** * The maximum wait time per batch in `hh:mm:ss` e.g. `00:02:00` for two minutes. */ batchMaxWaitTime?: pulumi.Input; /** * The minimum number of rows per batch (must be between `0` and `1000000`). */ batchMinRows?: pulumi.Input; /** * Determines whether blob blocks are either committed automatically or appended. Possible values are `Append` and `Once`. Defaults to `Append`. */ blobWriteMode?: 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 Stream Output. 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. */ storageAccountKey?: pulumi.Input; /** * The name of the Storage Account. */ 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; }