"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.PolicySetDefinitionVersionAtManagementGroup = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * The policy set definition version.
 *
 * Uses Azure REST API version 2025-01-01. In version 2.x of the Azure Native provider, it used API version 2023-04-01.
 *
 * Other available API versions: 2023-04-01, 2024-05-01, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native authorization [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class PolicySetDefinitionVersionAtManagementGroup extends pulumi.CustomResource {
    /**
     * Get an existing PolicySetDefinitionVersionAtManagementGroup 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 PolicySetDefinitionVersionAtManagementGroup(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of PolicySetDefinitionVersionAtManagementGroup.  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'] === PolicySetDefinitionVersionAtManagementGroup.__pulumiType;
    }
    /**
     * Create a PolicySetDefinitionVersionAtManagementGroup 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?.managementGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'managementGroupName'");
            }
            if (args?.policyDefinitions === undefined && !opts.urn) {
                throw new Error("Missing required property 'policyDefinitions'");
            }
            if (args?.policySetDefinitionName === undefined && !opts.urn) {
                throw new Error("Missing required property 'policySetDefinitionName'");
            }
            resourceInputs["description"] = args?.description;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["managementGroupName"] = args?.managementGroupName;
            resourceInputs["metadata"] = args?.metadata;
            resourceInputs["parameters"] = args?.parameters;
            resourceInputs["policyDefinitionGroups"] = args?.policyDefinitionGroups;
            resourceInputs["policyDefinitionVersion"] = args?.policyDefinitionVersion;
            resourceInputs["policyDefinitions"] = args?.policyDefinitions;
            resourceInputs["policySetDefinitionName"] = args?.policySetDefinitionName;
            resourceInputs["policyType"] = args?.policyType;
            resourceInputs["version"] = args?.version;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["displayName"] = undefined /*out*/;
            resourceInputs["metadata"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["parameters"] = undefined /*out*/;
            resourceInputs["policyDefinitionGroups"] = undefined /*out*/;
            resourceInputs["policyDefinitions"] = undefined /*out*/;
            resourceInputs["policyType"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["version"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:authorization/v20230401:PolicySetDefinitionVersionAtManagementGroup" }, { type: "azure-native:authorization/v20240501:PolicySetDefinitionVersionAtManagementGroup" }, { type: "azure-native:authorization/v20250101:PolicySetDefinitionVersionAtManagementGroup" }, { type: "azure-native:authorization/v20250301:PolicySetDefinitionVersionAtManagementGroup" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(PolicySetDefinitionVersionAtManagementGroup.__pulumiType, name, resourceInputs, opts);
    }
}
exports.PolicySetDefinitionVersionAtManagementGroup = PolicySetDefinitionVersionAtManagementGroup;
/** @internal */
PolicySetDefinitionVersionAtManagementGroup.__pulumiType = 'azure-native:authorization:PolicySetDefinitionVersionAtManagementGroup';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9saWN5U2V0RGVmaW5pdGlvblZlcnNpb25BdE1hbmFnZW1lbnRHcm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2F1dGhvcml6YXRpb24vcG9saWN5U2V0RGVmaW5pdGlvblZlcnNpb25BdE1hbmFnZW1lbnRHcm91cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsc0VBQXNFO0FBQ3RFLGlGQUFpRjs7O0FBRWpGLHlDQUF5QztBQUl6QywwQ0FBMEM7QUFFMUM7Ozs7OztHQU1HO0FBQ0gsTUFBYSwyQ0FBNEMsU0FBUSxNQUFNLENBQUMsY0FBYztJQUNsRjs7Ozs7OztPQU9HO0lBQ0ksTUFBTSxDQUFDLEdBQUcsQ0FBQyxJQUFZLEVBQUUsRUFBMkIsRUFBRSxJQUFtQztRQUM1RixPQUFPLElBQUksMkNBQTJDLENBQUMsSUFBSSxFQUFFLFNBQWdCLEVBQUUsRUFBRSxHQUFHLElBQUksRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLENBQUMsQ0FBQztJQUN4RyxDQUFDO0lBS0Q7OztPQUdHO0lBQ0ksTUFBTSxDQUFDLFVBQVUsQ0FBQyxHQUFRO1FBQzdCLElBQUksR0FBRyxLQUFLLFNBQVMsSUFBSSxHQUFHLEtBQUssSUFBSSxFQUFFO1lBQ25DLE9BQU8sS0FBSyxDQUFDO1NBQ2hCO1FBQ0QsT0FBTyxHQUFHLENBQUMsY0FBYyxDQUFDLEtBQUssMkNBQTJDLENBQUMsWUFBWSxDQUFDO0lBQzVGLENBQUM7SUFtREQ7Ozs7OztPQU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