import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Manages a JavaScript UDA Function within a Stream Analytics Streaming Job.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = azure.core.getResourceGroup({
 *     name: "example-resources",
 * });
 * const exampleGetJob = example.then(example => azure.streamanalytics.getJob({
 *     name: "example-job",
 *     resourceGroupName: example.name,
 * }));
 * const exampleFunctionJavascriptUda = new azure.streamanalytics.FunctionJavascriptUda("example", {
 *     name: "example-javascript-function",
 *     streamAnalyticsJobId: exampleGetJob.then(exampleGetJob => exampleGetJob.id),
 *     script: `function main() {
 *     this.init = function () {
 *         this.state = 0;
 *     }
 *
 *     this.accumulate = function (value, timestamp) {
 *         this.state += value;
 *     }
 *
 *     this.computeResult = function () {
 *         return this.state;
 *     }
 * }
 * `,
 *     inputs: [{
 *         type: "bigint",
 *     }],
 *     output: {
 *         type: "bigint",
 *     },
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.StreamAnalytics` - 2020-03-01
 *
 * ## Import
 *
 * Stream Analytics JavaScript UDA Functions can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:streamanalytics/functionJavascriptUda:FunctionJavascriptUda example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/functions/func1
 * ```
 */
export declare class FunctionJavascriptUda extends pulumi.CustomResource {
    /**
     * Get an existing FunctionJavascriptUda 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<pulumi.ID>, state?: FunctionJavascriptUdaState, opts?: pulumi.CustomResourceOptions): FunctionJavascriptUda;
    /**
     * Returns true if the given object is an instance of FunctionJavascriptUda.  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 FunctionJavascriptUda;
    /**
     * One or more `input` blocks as defined below.
     */
    readonly inputs: pulumi.Output<outputs.streamanalytics.FunctionJavascriptUdaInput[]>;
    /**
     * The name of the JavaScript UDA Function. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * An `output` block as defined below.
     */
    readonly output: pulumi.Output<outputs.streamanalytics.FunctionJavascriptUdaOutput>;
    /**
     * The JavaScript of this UDA Function.
     */
    readonly script: pulumi.Output<string>;
    /**
     * The resource ID of the Stream Analytics Job where this Function should be created. Changing this forces a new resource to be created.
     */
    readonly streamAnalyticsJobId: pulumi.Output<string>;
    /**
     * Create a FunctionJavascriptUda 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: FunctionJavascriptUdaArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering FunctionJavascriptUda resources.
 */
export interface FunctionJavascriptUdaState {
    /**
     * One or more `input` blocks as defined below.
     */
    inputs?: pulumi.Input<pulumi.Input<inputs.streamanalytics.FunctionJavascriptUdaInput>[] | undefined>;
    /**
     * The name of the JavaScript UDA Function. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * An `output` block as defined below.
     */
    output?: pulumi.Input<inputs.streamanalytics.FunctionJavascriptUdaOutput | undefined>;
    /**
     * The JavaScript of this UDA Function.
     */
    script?: pulumi.Input<string | undefined>;
    /**
     * The resource ID of the Stream Analytics Job where this Function should be created. Changing this forces a new resource to be created.
     */
    streamAnalyticsJobId?: pulumi.Input<string | undefined>;
}
/**
 * The set of arguments for constructing a FunctionJavascriptUda resource.
 */
export interface FunctionJavascriptUdaArgs {
    /**
     * One or more `input` blocks as defined below.
     */
    inputs: pulumi.Input<pulumi.Input<inputs.streamanalytics.FunctionJavascriptUdaInput>[]>;
    /**
     * The name of the JavaScript UDA Function. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * An `output` block as defined below.
     */
    output: pulumi.Input<inputs.streamanalytics.FunctionJavascriptUdaOutput>;
    /**
     * The JavaScript of this UDA Function.
     */
    script: pulumi.Input<string>;
    /**
     * The resource ID of the Stream Analytics Job where this Function should be created. Changing this forces a new resource to be created.
     */
    streamAnalyticsJobId: pulumi.Input<string>;
}
//# sourceMappingURL=functionJavascriptUda.d.ts.map