"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.WebAppAuthSettings = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Configuration settings for the Azure App Service Authentication / Authorization feature.
 *
 * 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: 2016-08-01, 2018-02-01, 2018-11-01, 2019-08-01, 2020-06-01, 2020-09-01, 2020-10-01, 2020-12-01, 2021-01-01, 2021-01-15, 2021-02-01, 2021-03-01, 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 WebAppAuthSettings extends pulumi.CustomResource {
    /**
     * Get an existing WebAppAuthSettings 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 WebAppAuthSettings(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of WebAppAuthSettings.  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'] === WebAppAuthSettings.__pulumiType;
    }
    /**
     * Create a WebAppAuthSettings 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?.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["aadClaimsAuthorization"] = args?.aadClaimsAuthorization;
            resourceInputs["additionalLoginParams"] = args?.additionalLoginParams;
            resourceInputs["allowedAudiences"] = args?.allowedAudiences;
            resourceInputs["allowedExternalRedirectUrls"] = args?.allowedExternalRedirectUrls;
            resourceInputs["authFilePath"] = args?.authFilePath;
            resourceInputs["clientId"] = args?.clientId;
            resourceInputs["clientSecret"] = args?.clientSecret;
            resourceInputs["clientSecretCertificateThumbprint"] = args?.clientSecretCertificateThumbprint;
            resourceInputs["clientSecretSettingName"] = args?.clientSecretSettingName;
            resourceInputs["configVersion"] = args?.configVersion;
            resourceInputs["defaultProvider"] = args?.defaultProvider;
            resourceInputs["enabled"] = args?.enabled;
            resourceInputs["facebookAppId"] = args?.facebookAppId;
            resourceInputs["facebookAppSecret"] = args?.facebookAppSecret;
            resourceInputs["facebookAppSecretSettingName"] = args?.facebookAppSecretSettingName;
            resourceInputs["facebookOAuthScopes"] = args?.facebookOAuthScopes;
            resourceInputs["gitHubClientId"] = args?.gitHubClientId;
            resourceInputs["gitHubClientSecret"] = args?.gitHubClientSecret;
            resourceInputs["gitHubClientSecretSettingName"] = args?.gitHubClientSecretSettingName;
            resourceInputs["gitHubOAuthScopes"] = args?.gitHubOAuthScopes;
            resourceInputs["googleClientId"] = args?.googleClientId;
            resourceInputs["googleClientSecret"] = args?.googleClientSecret;
            resourceInputs["googleClientSecretSettingName"] = args?.googleClientSecretSettingName;
            resourceInputs["googleOAuthScopes"] = args?.googleOAuthScopes;
            resourceInputs["isAuthFromFile"] = args?.isAuthFromFile;
            resourceInputs["issuer"] = args?.issuer;
            resourceInputs["kind"] = args?.kind;
            resourceInputs["microsoftAccountClientId"] = args?.microsoftAccountClientId;
            resourceInputs["microsoftAccountClientSecret"] = args?.microsoftAccountClientSecret;
            resourceInputs["microsoftAccountClientSecretSettingName"] = args?.microsoftAccountClientSecretSettingName;
            resourceInputs["microsoftAccountOAuthScopes"] = args?.microsoftAccountOAuthScopes;
            resourceInputs["name"] = args?.name;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["runtimeVersion"] = args?.runtimeVersion;
            resourceInputs["tokenRefreshExtensionHours"] = args?.tokenRefreshExtensionHours;
            resourceInputs["tokenStoreEnabled"] = args?.tokenStoreEnabled;
            resourceInputs["twitterConsumerKey"] = args?.twitterConsumerKey;
            resourceInputs["twitterConsumerSecret"] = args?.twitterConsumerSecret;
            resourceInputs["twitterConsumerSecretSettingName"] = args?.twitterConsumerSecretSettingName;
            resourceInputs["unauthenticatedClientAction"] = args?.unauthenticatedClientAction;
            resourceInputs["validateIssuer"] = args?.validateIssuer;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
        }
        else {
            resourceInputs["aadClaimsAuthorization"] = undefined /*out*/;
            resourceInputs["additionalLoginParams"] = undefined /*out*/;
            resourceInputs["allowedAudiences"] = undefined /*out*/;
            resourceInputs["allowedExternalRedirectUrls"] = undefined /*out*/;
            resourceInputs["authFilePath"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["clientId"] = undefined /*out*/;
            resourceInputs["clientSecret"] = undefined /*out*/;
            resourceInputs["clientSecretCertificateThumbprint"] = undefined /*out*/;
            resourceInputs["clientSecretSettingName"] = undefined /*out*/;
            resourceInputs["configVersion"] = undefined /*out*/;
            resourceInputs["defaultProvider"] = undefined /*out*/;
            resourceInputs["enabled"] = undefined /*out*/;
            resourceInputs["facebookAppId"] = undefined /*out*/;
            resourceInputs["facebookAppSecret"] = undefined /*out*/;
            resourceInputs["facebookAppSecretSettingName"] = undefined /*out*/;
            resourceInputs["facebookOAuthScopes"] = undefined /*out*/;
            resourceInputs["gitHubClientId"] = undefined /*out*/;
            resourceInputs["gitHubClientSecret"] = undefined /*out*/;
            resourceInputs["gitHubClientSecretSettingName"] = undefined /*out*/;
            resourceInputs["gitHubOAuthScopes"] = undefined /*out*/;
            resourceInputs["googleClientId"] = undefined /*out*/;
            resourceInputs["googleClientSecret"] = undefined /*out*/;
            resourceInputs["googleClientSecretSettingName"] = undefined /*out*/;
            resourceInputs["googleOAuthScopes"] = undefined /*out*/;
            resourceInputs["isAuthFromFile"] = undefined /*out*/;
            resourceInputs["issuer"] = undefined /*out*/;
            resourceInputs["kind"] = undefined /*out*/;
            resourceInputs["microsoftAccountClientId"] = undefined /*out*/;
            resourceInputs["microsoftAccountClientSecret"] = undefined /*out*/;
            resourceInputs["microsoftAccountClientSecretSettingName"] = undefined /*out*/;
            resourceInputs["microsoftAccountOAuthScopes"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["runtimeVersion"] = undefined /*out*/;
            resourceInputs["tokenRefreshExtensionHours"] = undefined /*out*/;
            resourceInputs["tokenStoreEnabled"] = undefined /*out*/;
            resourceInputs["twitterConsumerKey"] = undefined /*out*/;
            resourceInputs["twitterConsumerSecret"] = undefined /*out*/;
            resourceInputs["twitterConsumerSecretSettingName"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["unauthenticatedClientAction"] = undefined /*out*/;
            resourceInputs["validateIssuer"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:web/v20150801:WebAppAuthSettings" }, { type: "azure-native:web/v20160801:WebAppAuthSettings" }, { type: "azure-native:web/v20180201:WebAppAuthSettings" }, { type: "azure-native:web/v20181101:WebAppAuthSettings" }, { type: "azure-native:web/v20190801:WebAppAuthSettings" }, { type: "azure-native:web/v20200601:WebAppAuthSettings" }, { type: "azure-native:web/v20200901:WebAppAuthSettings" }, { type: "azure-native:web/v20201001:WebAppAuthSettings" }, { type: "azure-native:web/v20201201:WebAppAuthSettings" }, { type: "azure-native:web/v20210101:WebAppAuthSettings" }, { type: "azure-native:web/v20210115:WebAppAuthSettings" }, { type: "azure-native:web/v20210201:WebAppAuthSettings" }, { type: "azure-native:web/v20210301:WebAppAuthSettings" }, { type: "azure-native:web/v20220301:WebAppAuthSettings" }, { type: "azure-native:web/v20220901:WebAppAuthSettings" }, { type: "azure-native:web/v20230101:WebAppAuthSettings" }, { type: "azure-native:web/v20231201:WebAppAuthSettings" }, { type: "azure-native:web/v20240401:WebAppAuthSettings" }, { type: "azure-native:web/v20241101:WebAppAuthSettings" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(WebAppAuthSettings.__pulumiType, name, resourceInputs, opts);
    }
}
exports.WebAppAuthSettings = WebAppAuthSettings;
/** @internal */
WebAppAuthSettings.__pulumiType = 'azure-native:web:WebAppAuthSettings';
//# sourceMappingURL=data:application/json;base64, 