"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.Provider = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
 * The provider type for the native Azure package.
 */
class Provider extends pulumi.ProviderResource {
    /**
     * Returns true if the given object is an instance of Provider.  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'] === "pulumi:providers:" + Provider.__pulumiType;
    }
    /**
     * Create a Provider 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 || {};
        {
            resourceInputs["auxiliaryTenantIds"] = pulumi.output(args?.auxiliaryTenantIds).apply(JSON.stringify);
            resourceInputs["clientCertificatePassword"] = args?.clientCertificatePassword ? pulumi.secret(args.clientCertificatePassword) : undefined;
            resourceInputs["clientCertificatePath"] = args?.clientCertificatePath;
            resourceInputs["clientId"] = args?.clientId ? pulumi.secret(args.clientId) : undefined;
            resourceInputs["clientSecret"] = args?.clientSecret ? pulumi.secret(args.clientSecret) : undefined;
            resourceInputs["disableInstanceDiscovery"] = pulumi.output(args?.disableInstanceDiscovery).apply(JSON.stringify);
            resourceInputs["disablePulumiPartnerId"] = pulumi.output(args?.disablePulumiPartnerId).apply(JSON.stringify);
            resourceInputs["environment"] = (args?.environment) ?? "public";
            resourceInputs["location"] = args?.location;
            resourceInputs["metadataHost"] = args?.metadataHost;
            resourceInputs["msiEndpoint"] = args?.msiEndpoint;
            resourceInputs["oidcRequestToken"] = args?.oidcRequestToken;
            resourceInputs["oidcRequestUrl"] = args?.oidcRequestUrl;
            resourceInputs["oidcToken"] = args?.oidcToken;
            resourceInputs["partnerId"] = args?.partnerId;
            resourceInputs["subscriptionId"] = args?.subscriptionId;
            resourceInputs["tenantId"] = args?.tenantId;
            resourceInputs["useDefaultAzureCredential"] = pulumi.output(args?.useDefaultAzureCredential).apply(JSON.stringify);
            resourceInputs["useMsi"] = pulumi.output(args?.useMsi).apply(JSON.stringify);
            resourceInputs["useOidc"] = pulumi.output(args?.useOidc).apply(JSON.stringify);
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Provider.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Provider = Provider;
/** @internal */
Provider.__pulumiType = 'azure-native';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsc0VBQXNFO0FBQ3RFLGlGQUFpRjs7O0FBRWpGLHlDQUF5QztBQUN6Qyx5Q0FBeUM7QUFFekM7O0dBRUc7QUFDSCxNQUFhLFFBQVMsU0FBUSxNQUFNLENBQUMsZ0JBQWdCO0lBSWpEOzs7T0FHRztJQUNJLE1BQU0sQ0FBQyxVQUFVLENBQUMsR0FBUTtRQUM3QixJQUFJLEdBQUcsS0FBSyxTQUFTLElBQUksR0FBRyxLQUFLLElBQUksRUFBRTtZQUNuQyxPQUFPLEtBQUssQ0FBQztTQUNoQjtRQUNELE9BQU8sR0FBRyxDQUFDLGNBQWMsQ0FBQyxLQUFLLG1CQUFtQixHQUFHLFFBQVEsQ0FBQyxZQUFZLENBQUM7SUFDL0UsQ0FBQztJQUdEOzs7Ozs7T0FNRztJQUNILFlBQVksSUFBWSxFQUFFLElBQW1CLEVBQUUsSUFBNkI7UUFDeEUsSUFBSSxjQUFjLEdBQWtCLEVBQUUsQ0FBQztRQUN2QyxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztRQUNsQjtZQUNJLGNBQWMsQ0FBQyxvQk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