"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileEventTrigger = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Trigger details.
 *
 * Uses Azure REST API version 2023-07-01. In version 2.x of the Azure Native provider, it used API version 2022-03-01.
 */
class FileEventTrigger extends pulumi.CustomResource {
    /**
     * Get an existing FileEventTrigger 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 opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new FileEventTrigger(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of FileEventTrigger.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === FileEventTrigger.__pulumiType;
    }
    /**
     * Create a FileEventTrigger 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, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if (args?.deviceName === undefined && !opts.urn) {
                throw new Error("Missing required property 'deviceName'");
            }
            if (args?.kind === undefined && !opts.urn) {
                throw new Error("Missing required property 'kind'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.sinkInfo === undefined && !opts.urn) {
                throw new Error("Missing required property 'sinkInfo'");
            }
            if (args?.sourceInfo === undefined && !opts.urn) {
                throw new Error("Missing required property 'sourceInfo'");
            }
            resourceInputs["customContextTag"] = args?.customContextTag;
            resourceInputs["deviceName"] = args?.deviceName;
            resourceInputs["kind"] = "FileEvent";
            resourceInputs["name"] = args?.name;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["sinkInfo"] = args?.sinkInfo;
            resourceInputs["sourceInfo"] = args?.sourceInfo;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["customContextTag"] = undefined /*out*/;
            resourceInputs["kind"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["sinkInfo"] = undefined /*out*/;
            resourceInputs["sourceInfo"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:databoxedge/v20190301:FileEventTrigger" }, { type: "azure-native:databoxedge/v20190701:FileEventTrigger" }, { type: "azure-native:databoxedge/v20190801:FileEventTrigger" }, { type: "azure-native:databoxedge/v20200501preview:FileEventTrigger" }, { type: "azure-native:databoxedge/v20200901:FileEventTrigger" }, { type: "azure-native:databoxedge/v20200901preview:FileEventTrigger" }, { type: "azure-native:databoxedge/v20201201:FileEventTrigger" }, { type: "azure-native:databoxedge/v20210201:FileEventTrigger" }, { type: "azure-native:databoxedge/v20210201preview:FileEventTrigger" }, { type: "azure-native:databoxedge/v20210601:FileEventTrigger" }, { type: "azure-native:databoxedge/v20210601preview:FileEventTrigger" }, { type: "azure-native:databoxedge/v20220301:FileEventTrigger" }, { type: "azure-native:databoxedge/v20220401preview:FileEventTrigger" }, { type: "azure-native:databoxedge/v20221201preview:FileEventTrigger" }, { type: "azure-native:databoxedge/v20230101preview:FileEventTrigger" }, { type: "azure-native:databoxedge/v20230101preview:PeriodicTimerEventTrigger" }, { type: "azure-native:databoxedge/v20230701:FileEventTrigger" }, { type: "azure-native:databoxedge/v20230701:PeriodicTimerEventTrigger" }, { type: "azure-native:databoxedge/v20231201:FileEventTrigger" }, { type: "azure-native:databoxedge/v20231201:PeriodicTimerEventTrigger" }, { type: "azure-native:databoxedge:PeriodicTimerEventTrigger" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(FileEventTrigger.__pulumiType, name, resourceInputs, opts);
    }
}
exports.FileEventTrigger = FileEventTrigger;
/** @internal */
FileEventTrigger.__pulumiType = 'azure-native:databoxedge:FileEventTrigger';
//# sourceMappingURL=data:application/json;base64, 