"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.StaticSiteLinkedBackendForBuild = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Static Site Linked Backend ARM resource.
 *
 * Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2022-09-01.
 *
 * Other available API versions: 2022-03-01, 2022-09-01, 2023-01-01, 2023-12-01, 2024-11-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native web [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
class StaticSiteLinkedBackendForBuild extends pulumi.CustomResource {
    /**
     * Get an existing StaticSiteLinkedBackendForBuild 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 StaticSiteLinkedBackendForBuild(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of StaticSiteLinkedBackendForBuild.  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'] === StaticSiteLinkedBackendForBuild.__pulumiType;
    }
    /**
     * Create a StaticSiteLinkedBackendForBuild 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?.environmentName === undefined && !opts.urn) {
                throw new Error("Missing required property 'environmentName'");
            }
            if (args?.name === undefined && !opts.urn) {
                throw new Error("Missing required property 'name'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["backendResourceId"] = args?.backendResourceId;
            resourceInputs["environmentName"] = args?.environmentName;
            resourceInputs["kind"] = args?.kind;
            resourceInputs["linkedBackendName"] = args?.linkedBackendName;
            resourceInputs["name"] = args?.name;
            resourceInputs["region"] = args?.region;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["createdOn"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["backendResourceId"] = undefined /*out*/;
            resourceInputs["createdOn"] = undefined /*out*/;
            resourceInputs["kind"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["region"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:web/v20220301:StaticSiteLinkedBackendForBuild" }, { type: "azure-native:web/v20220901:StaticSiteLinkedBackendForBuild" }, { type: "azure-native:web/v20230101:StaticSiteLinkedBackendForBuild" }, { type: "azure-native:web/v20231201:StaticSiteLinkedBackendForBuild" }, { type: "azure-native:web/v20240401:StaticSiteLinkedBackendForBuild" }, { type: "azure-native:web/v20241101:StaticSiteLinkedBackendForBuild" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(StaticSiteLinkedBackendForBuild.__pulumiType, name, resourceInputs, opts);
    }
}
exports.StaticSiteLinkedBackendForBuild = StaticSiteLinkedBackendForBuild;
/** @internal */
StaticSiteLinkedBackendForBuild.__pulumiType = 'azure-native:web:StaticSiteLinkedBackendForBuild';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdGljU2l0ZUxpbmtlZEJhY2tlbmRGb3JCdWlsZC5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