"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.DataCollectionRuleAssociation = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Definition of generic ARM proxy resource.
 *
 * Uses Azure REST API version 2022-06-01.
 *
 * Other available API versions: 2024-03-11. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class DataCollectionRuleAssociation extends pulumi.CustomResource {
    /**
     * Get an existing DataCollectionRuleAssociation 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 DataCollectionRuleAssociation(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of DataCollectionRuleAssociation.  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'] === DataCollectionRuleAssociation.__pulumiType;
    }
    /**
     * Create a DataCollectionRuleAssociation 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?.resourceUri === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceUri'");
            }
            resourceInputs["associationName"] = args?.associationName;
            resourceInputs["dataCollectionEndpointId"] = args?.dataCollectionEndpointId;
            resourceInputs["dataCollectionRuleId"] = args?.dataCollectionRuleId;
            resourceInputs["description"] = args?.description;
            resourceInputs["resourceUri"] = args?.resourceUri;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["metadata"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["dataCollectionEndpointId"] = undefined /*out*/;
            resourceInputs["dataCollectionRuleId"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["metadata"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:insights/v20220601:DataCollectionRuleAssociation" }, { type: "azure-native:insights/v20230311:DataCollectionRuleAssociation" }, { type: "azure-native:insights:DataCollectionRuleAssociation" }, { type: "azure-native:monitor/v20191101preview:DataCollectionRuleAssociation" }, { type: "azure-native:monitor/v20210401:DataCollectionRuleAssociation" }, { type: "azure-native:monitor/v20210901preview:DataCollectionRuleAssociation" }, { type: "azure-native:monitor/v20220601:DataCollectionRuleAssociation" }, { type: "azure-native:monitor/v20230311:DataCollectionRuleAssociation" }, { type: "azure-native:monitor/v20240311:DataCollectionRuleAssociation" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(DataCollectionRuleAssociation.__pulumiType, name, resourceInputs, opts);
    }
}
exports.DataCollectionRuleAssociation = DataCollectionRuleAssociation;
/** @internal */
DataCollectionRuleAssociation.__pulumiType = 'azure-native:monitor:DataCollectionRuleAssociation';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YUNvbGxlY3Rpb25SdWxlQXNzb2NpYXRpb24uanMiLCJzb3VyY2VSb290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