"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.SubscriptionDiagnosticSetting = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * The subscription diagnostic setting resource.
 *
 * Uses Azure REST API version 2021-05-01-preview.
 */
class SubscriptionDiagnosticSetting extends pulumi.CustomResource {
    /**
     * Get an existing SubscriptionDiagnosticSetting 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 SubscriptionDiagnosticSetting(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of SubscriptionDiagnosticSetting.  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'] === SubscriptionDiagnosticSetting.__pulumiType;
    }
    /**
     * Create a SubscriptionDiagnosticSetting 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) {
            resourceInputs["eventHubAuthorizationRuleId"] = args?.eventHubAuthorizationRuleId;
            resourceInputs["eventHubName"] = args?.eventHubName;
            resourceInputs["logs"] = args?.logs;
            resourceInputs["marketplacePartnerId"] = args?.marketplacePartnerId;
            resourceInputs["name"] = args?.name;
            resourceInputs["serviceBusRuleId"] = args?.serviceBusRuleId;
            resourceInputs["storageAccountId"] = args?.storageAccountId;
            resourceInputs["workspaceId"] = args?.workspaceId;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["eventHubAuthorizationRuleId"] = undefined /*out*/;
            resourceInputs["eventHubName"] = undefined /*out*/;
            resourceInputs["logs"] = undefined /*out*/;
            resourceInputs["marketplacePartnerId"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["serviceBusRuleId"] = undefined /*out*/;
            resourceInputs["storageAccountId"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["workspaceId"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:insights/v20170501preview:SubscriptionDiagnosticSetting" }, { type: "azure-native:insights/v20210501preview:SubscriptionDiagnosticSetting" }, { type: "azure-native:insights:SubscriptionDiagnosticSetting" }, { type: "azure-native:monitor/v20170501preview:SubscriptionDiagnosticSetting" }, { type: "azure-native:monitor/v20210501preview:SubscriptionDiagnosticSetting" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(SubscriptionDiagnosticSetting.__pulumiType, name, resourceInputs, opts);
    }
}
exports.SubscriptionDiagnosticSetting = SubscriptionDiagnosticSetting;
/** @internal */
SubscriptionDiagnosticSetting.__pulumiType = 'azure-native:monitor:SubscriptionDiagnosticSetting';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uRGlhZ25vc3RpY1NldHRpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9tb25pdG9yL3N1YnNjcmlwdGlvbkRpYWdub3N0aWNTZXR0aW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxzRUFBc0U7QUFDdEUsaUZBQWlGOzs7QUFFakYseUNBQXlDO0FBSXpDLDBDQUEwQztBQUUxQzs7OztHQUlHO0FBQ0gsTUFBYSw2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