import * as pulumi from "@pulumi/pulumi"; /** * Manages a Stream Analytics Output Function. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "examplestorageaccount", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const examplePlan = new azure.appservice.Plan("example", { * name: "exampleappserviceplan", * location: example.location, * resourceGroupName: example.name, * kind: "FunctionApp", * reserved: true, * sku: { * tier: "Dynamic", * size: "Y1", * }, * }); * const exampleFunctionApp = new azure.appservice.FunctionApp("example", { * name: "examplefunctionapp", * location: example.location, * resourceGroupName: example.name, * appServicePlanId: examplePlan.id, * storageAccountName: exampleAccount.name, * storageAccountAccessKey: exampleAccount.primaryAccessKey, * osType: "linux", * version: "~3", * }); * const exampleJob = new azure.streamanalytics.Job("example", { * name: "examplestreamanalyticsjob", * resourceGroupName: example.name, * location: example.location, * streamingUnits: 3, * transformationQuery: ` SELECT * * INTO [YourOutputAlias] * FROM [YourInputAlias] * `, * }); * const exampleOutputFunction = new azure.streamanalytics.OutputFunction("example", { * name: "exampleoutput", * resourceGroupName: exampleJob.resourceGroupName, * streamAnalyticsJobName: exampleJob.name, * functionApp: exampleFunctionApp.name, * functionName: "examplefunctionname", * apiKey: "exampleapikey", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.StreamAnalytics` - 2021-10-01-preview * * ## Import * * Stream Analytics Output Functions can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:streamanalytics/outputFunction:OutputFunction example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/outputs/output1 * ``` */ export declare class OutputFunction extends pulumi.CustomResource { /** * Get an existing OutputFunction 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?: OutputFunctionState, opts?: pulumi.CustomResourceOptions): OutputFunction; /** * Returns true if the given object is an instance of OutputFunction. 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 OutputFunction; /** * The API key for the Function. */ readonly apiKey: pulumi.Output; /** * The maximum number of events in each batch that's sent to the function. Defaults to `100`. */ readonly batchMaxCount: pulumi.Output; /** * The maximum batch size in bytes that's sent to the function. Defaults to `262144` (256 kB). */ readonly batchMaxInBytes: pulumi.Output; /** * The name of the Function App. */ readonly functionApp: pulumi.Output; /** * The name of the function in the Function App. */ readonly functionName: pulumi.Output; /** * The name which should be used for this Stream Analytics Output. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the Stream Analytics Output should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The name of the Stream Analytics Job. Changing this forces a new resource to be created. */ readonly streamAnalyticsJobName: pulumi.Output; /** * Create a OutputFunction 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: OutputFunctionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OutputFunction resources. */ export interface OutputFunctionState { /** * The API key for the Function. */ apiKey?: pulumi.Input; /** * The maximum number of events in each batch that's sent to the function. Defaults to `100`. */ batchMaxCount?: pulumi.Input; /** * The maximum batch size in bytes that's sent to the function. Defaults to `262144` (256 kB). */ batchMaxInBytes?: pulumi.Input; /** * The name of the Function App. */ functionApp?: pulumi.Input; /** * The name of the function in the Function App. */ functionName?: pulumi.Input; /** * The name which should be used for this Stream Analytics Output. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Stream Analytics Output should exist. Changing this forces a new resource to be created. */ resourceGroupName?: 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 OutputFunction resource. */ export interface OutputFunctionArgs { /** * The API key for the Function. */ apiKey: pulumi.Input; /** * The maximum number of events in each batch that's sent to the function. Defaults to `100`. */ batchMaxCount?: pulumi.Input; /** * The maximum batch size in bytes that's sent to the function. Defaults to `262144` (256 kB). */ batchMaxInBytes?: pulumi.Input; /** * The name of the Function App. */ functionApp: pulumi.Input; /** * The name of the function in the Function App. */ functionName: pulumi.Input; /** * The name which should be used for this Stream Analytics Output. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Stream Analytics Output should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The name of the Stream Analytics Job. Changing this forces a new resource to be created. */ streamAnalyticsJobName: pulumi.Input; }