diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 619d5739192e..8e06438a2175 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -45,6 +45,7 @@ env: PULUMI_API: https://api.pulumi-staging.io # Feature toggle that's read in provider.go enableAzcoreBackend() PULUMI_ENABLE_AZCORE_BACKEND: ${{ inputs.use_azcore }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # AZURE_CLI_FOLDER is the content of a ~/.azure/ folder, zipped and base64-encoded, for CLI auth. # If/when the contained refresh token expires, someone with access to our subscription needs to # `az login` on their own computer and repeat the steps below. diff --git a/examples/appservice/index.ts b/examples/appservice/index.ts index dfcd4ed60bbc..d2d413e202d7 100644 --- a/examples/appservice/index.ts +++ b/examples/appservice/index.ts @@ -141,9 +141,6 @@ new web.WebAppConnectionStrings("conns", { new web.WebAppAuthSettingsV2("auth", { resourceGroupName: resourceGroup.name, name: app.name, - platform: { - enabled: false, - }, httpSettings: { requireHttps: true, }, diff --git a/provider/pkg/openapi/defaults/defaultResourcesState.go b/provider/pkg/openapi/defaults/defaultResourcesState.go index bfe80d4f48ea..b18aef40921f 100644 --- a/provider/pkg/openapi/defaults/defaultResourcesState.go +++ b/provider/pkg/openapi/defaults/defaultResourcesState.go @@ -159,6 +159,16 @@ var defaultResourcesStateRaw = map[string]map[string]interface{}{ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings": { "enabled": false, }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2": { + "platform": map[string]interface{}{ + "enabled": false, + }, + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2": { + "platform": map[string]interface{}{ + "enabled": false, + }, + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs": { "applicationLogs": map[string]string{}, }, diff --git a/reports/allResourceVersionsByResource.json b/reports/allResourceVersionsByResource.json index 488a3c7ffb3b..6a73e76ad5b0 100644 --- a/reports/allResourceVersionsByResource.json +++ b/reports/allResourceVersionsByResource.json @@ -30589,6 +30589,24 @@ "2021-01-15", "2021-02-01" ], + "WebAppAuthSettingsV2WithoutSecrets": [ + "2021-03-01", + "2022-03-01", + "2022-09-01", + "2023-01-01", + "2023-12-01", + "2024-04-01", + "2024-11-01" + ], + "WebAppAuthSettingsV2WithoutSecretsSlot": [ + "2021-03-01", + "2022-03-01", + "2022-09-01", + "2023-01-01", + "2023-12-01", + "2024-04-01", + "2024-11-01" + ], "WebAppAzureStorageAccounts": [ "2018-02-01", "2018-11-01", diff --git a/reports/allResourcesByVersion.json b/reports/allResourcesByVersion.json index 921e7a024a75..a2e4cae96435 100644 --- a/reports/allResourcesByVersion.json +++ b/reports/allResourcesByVersion.json @@ -157022,6 +157022,18 @@ "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", "RpNamespace": "Microsoft.Web" }, + "WebAppAuthSettingsV2WithoutSecrets": { + "ApiVersion": "2021-03-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2021-03-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, + "WebAppAuthSettingsV2WithoutSecretsSlot": { + "ApiVersion": "2021-03-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2021-03-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, "WebAppAzureStorageAccounts": { "ApiVersion": "2021-03-01", "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2021-03-01/WebApps.json", @@ -157648,6 +157660,18 @@ "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", "RpNamespace": "Microsoft.Web" }, + "WebAppAuthSettingsV2WithoutSecrets": { + "ApiVersion": "2022-03-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2022-03-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, + "WebAppAuthSettingsV2WithoutSecretsSlot": { + "ApiVersion": "2022-03-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2022-03-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, "WebAppAzureStorageAccounts": { "ApiVersion": "2022-03-01", "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2022-03-01/WebApps.json", @@ -158304,6 +158328,18 @@ "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", "RpNamespace": "Microsoft.Web" }, + "WebAppAuthSettingsV2WithoutSecrets": { + "ApiVersion": "2022-09-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2022-09-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, + "WebAppAuthSettingsV2WithoutSecretsSlot": { + "ApiVersion": "2022-09-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2022-09-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, "WebAppAzureStorageAccounts": { "ApiVersion": "2022-09-01", "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2022-09-01/WebApps.json", @@ -158972,6 +159008,18 @@ "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", "RpNamespace": "Microsoft.Web" }, + "WebAppAuthSettingsV2WithoutSecrets": { + "ApiVersion": "2023-01-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2023-01-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, + "WebAppAuthSettingsV2WithoutSecretsSlot": { + "ApiVersion": "2023-01-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2023-01-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, "WebAppAzureStorageAccounts": { "ApiVersion": "2023-01-01", "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2023-01-01/WebApps.json", @@ -159640,6 +159688,18 @@ "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", "RpNamespace": "Microsoft.Web" }, + "WebAppAuthSettingsV2WithoutSecrets": { + "ApiVersion": "2023-12-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2023-12-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, + "WebAppAuthSettingsV2WithoutSecretsSlot": { + "ApiVersion": "2023-12-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2023-12-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, "WebAppAzureStorageAccounts": { "ApiVersion": "2023-12-01", "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2023-12-01/WebApps.json", @@ -160314,6 +160374,18 @@ "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", "RpNamespace": "Microsoft.Web" }, + "WebAppAuthSettingsV2WithoutSecrets": { + "ApiVersion": "2024-04-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2024-04-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, + "WebAppAuthSettingsV2WithoutSecretsSlot": { + "ApiVersion": "2024-04-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2024-04-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, "WebAppAzureStorageAccounts": { "ApiVersion": "2024-04-01", "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2024-04-01/WebApps.json", @@ -160994,6 +161066,18 @@ "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", "RpNamespace": "Microsoft.Web" }, + "WebAppAuthSettingsV2WithoutSecrets": { + "ApiVersion": "2024-11-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2024-11-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, + "WebAppAuthSettingsV2WithoutSecretsSlot": { + "ApiVersion": "2024-11-01", + "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2024-11-01/WebApps.json", + "ResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + "RpNamespace": "Microsoft.Web" + }, "WebAppAzureStorageAccounts": { "ApiVersion": "2024-11-01", "SpecFilePath": "specification/web/resource-manager/Microsoft.Web/AppService/stable/2024-11-01/WebApps.json", diff --git a/reports/tokenPaths.json b/reports/tokenPaths.json index baf6d723e8f8..b9774f1a1266 100644 --- a/reports/tokenPaths.json +++ b/reports/tokenPaths.json @@ -18325,6 +18325,8 @@ "azure-native:web/v20210301:WebAppApplicationSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings", "azure-native:web/v20210301:WebAppAuthSettings": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings", "azure-native:web/v20210301:WebAppAuthSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", + "azure-native:web/v20210301:WebAppAuthSettingsV2WithoutSecrets": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "azure-native:web/v20210301:WebAppAuthSettingsV2WithoutSecretsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", "azure-native:web/v20210301:WebAppAzureStorageAccounts": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", "azure-native:web/v20210301:WebAppAzureStorageAccountsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts", "azure-native:web/v20210301:WebAppBackupConfiguration": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", @@ -18389,6 +18391,8 @@ "azure-native:web/v20220301:WebAppApplicationSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings", "azure-native:web/v20220301:WebAppAuthSettings": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings", "azure-native:web/v20220301:WebAppAuthSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", + "azure-native:web/v20220301:WebAppAuthSettingsV2WithoutSecrets": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "azure-native:web/v20220301:WebAppAuthSettingsV2WithoutSecretsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", "azure-native:web/v20220301:WebAppAzureStorageAccounts": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", "azure-native:web/v20220301:WebAppAzureStorageAccountsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts", "azure-native:web/v20220301:WebAppBackupConfiguration": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", @@ -18455,6 +18459,8 @@ "azure-native:web/v20220901:WebAppApplicationSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings", "azure-native:web/v20220901:WebAppAuthSettings": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings", "azure-native:web/v20220901:WebAppAuthSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", + "azure-native:web/v20220901:WebAppAuthSettingsV2WithoutSecrets": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "azure-native:web/v20220901:WebAppAuthSettingsV2WithoutSecretsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", "azure-native:web/v20220901:WebAppAzureStorageAccounts": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", "azure-native:web/v20220901:WebAppAzureStorageAccountsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts", "azure-native:web/v20220901:WebAppBackupConfiguration": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", @@ -18521,6 +18527,8 @@ "azure-native:web/v20230101:WebAppApplicationSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings", "azure-native:web/v20230101:WebAppAuthSettings": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings", "azure-native:web/v20230101:WebAppAuthSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", + "azure-native:web/v20230101:WebAppAuthSettingsV2WithoutSecrets": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "azure-native:web/v20230101:WebAppAuthSettingsV2WithoutSecretsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", "azure-native:web/v20230101:WebAppAzureStorageAccounts": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", "azure-native:web/v20230101:WebAppAzureStorageAccountsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts", "azure-native:web/v20230101:WebAppBackupConfiguration": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", @@ -18587,6 +18595,8 @@ "azure-native:web/v20231201:WebAppApplicationSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings", "azure-native:web/v20231201:WebAppAuthSettings": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings", "azure-native:web/v20231201:WebAppAuthSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", + "azure-native:web/v20231201:WebAppAuthSettingsV2WithoutSecrets": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "azure-native:web/v20231201:WebAppAuthSettingsV2WithoutSecretsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", "azure-native:web/v20231201:WebAppAzureStorageAccounts": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", "azure-native:web/v20231201:WebAppAzureStorageAccountsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts", "azure-native:web/v20231201:WebAppBackupConfiguration": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", @@ -18654,6 +18664,8 @@ "azure-native:web/v20240401:WebAppApplicationSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings", "azure-native:web/v20240401:WebAppAuthSettings": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings", "azure-native:web/v20240401:WebAppAuthSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", + "azure-native:web/v20240401:WebAppAuthSettingsV2WithoutSecrets": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "azure-native:web/v20240401:WebAppAuthSettingsV2WithoutSecretsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", "azure-native:web/v20240401:WebAppAzureStorageAccounts": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", "azure-native:web/v20240401:WebAppAzureStorageAccountsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts", "azure-native:web/v20240401:WebAppBackupConfiguration": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", @@ -18723,6 +18735,8 @@ "azure-native:web/v20241101:WebAppApplicationSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/appsettings", "azure-native:web/v20241101:WebAppAuthSettings": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettings", "azure-native:web/v20241101:WebAppAuthSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", + "azure-native:web/v20241101:WebAppAuthSettingsV2WithoutSecrets": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "azure-native:web/v20241101:WebAppAuthSettingsV2WithoutSecretsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", "azure-native:web/v20241101:WebAppAzureStorageAccounts": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", "azure-native:web/v20241101:WebAppAzureStorageAccountsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts", "azure-native:web/v20241101:WebAppBackupConfiguration": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", @@ -18797,6 +18811,8 @@ "azure-native:web:WebAppAuthSettingsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettings", "azure-native:web:WebAppAuthSettingsV2": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", "azure-native:web:WebAppAuthSettingsV2Slot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", + "azure-native:web:WebAppAuthSettingsV2WithoutSecrets": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2", + "azure-native:web:WebAppAuthSettingsV2WithoutSecretsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2", "azure-native:web:WebAppAzureStorageAccounts": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/azurestorageaccounts", "azure-native:web:WebAppAzureStorageAccountsSlot": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/azurestorageaccounts", "azure-native:web:WebAppBackupConfiguration": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup", diff --git a/sdk/dotnet/Web/GetWebAppAuthSettingsV2WithoutSecrets.cs b/sdk/dotnet/Web/GetWebAppAuthSettingsV2WithoutSecrets.cs new file mode 100644 index 000000000000..3318957ca5c3 --- /dev/null +++ b/sdk/dotnet/Web/GetWebAppAuthSettingsV2WithoutSecrets.cs @@ -0,0 +1,165 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureNative.Web +{ + public static class GetWebAppAuthSettingsV2WithoutSecrets + { + /// + /// Description for Gets site's Authentication / Authorization settings for apps via the V2 format + /// + /// Uses Azure REST API version 2024-04-01. + /// + /// Other available API versions: 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. + /// + public static Task InvokeAsync(GetWebAppAuthSettingsV2WithoutSecretsArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("azure-native:web:getWebAppAuthSettingsV2WithoutSecrets", args ?? new GetWebAppAuthSettingsV2WithoutSecretsArgs(), options.WithDefaults()); + + /// + /// Description for Gets site's Authentication / Authorization settings for apps via the V2 format + /// + /// Uses Azure REST API version 2024-04-01. + /// + /// Other available API versions: 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. + /// + public static Output Invoke(GetWebAppAuthSettingsV2WithoutSecretsInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("azure-native:web:getWebAppAuthSettingsV2WithoutSecrets", args ?? new GetWebAppAuthSettingsV2WithoutSecretsInvokeArgs(), options.WithDefaults()); + + /// + /// Description for Gets site's Authentication / Authorization settings for apps via the V2 format + /// + /// Uses Azure REST API version 2024-04-01. + /// + /// Other available API versions: 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. + /// + public static Output Invoke(GetWebAppAuthSettingsV2WithoutSecretsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("azure-native:web:getWebAppAuthSettingsV2WithoutSecrets", args ?? new GetWebAppAuthSettingsV2WithoutSecretsInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetWebAppAuthSettingsV2WithoutSecretsArgs : global::Pulumi.InvokeArgs + { + /// + /// Name of the app. + /// + [Input("name", required: true)] + public string Name { get; set; } = null!; + + /// + /// Name of the resource group to which the resource belongs. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + public GetWebAppAuthSettingsV2WithoutSecretsArgs() + { + } + public static new GetWebAppAuthSettingsV2WithoutSecretsArgs Empty => new GetWebAppAuthSettingsV2WithoutSecretsArgs(); + } + + public sealed class GetWebAppAuthSettingsV2WithoutSecretsInvokeArgs : global::Pulumi.InvokeArgs + { + /// + /// Name of the app. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// Name of the resource group to which the resource belongs. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + public GetWebAppAuthSettingsV2WithoutSecretsInvokeArgs() + { + } + public static new GetWebAppAuthSettingsV2WithoutSecretsInvokeArgs Empty => new GetWebAppAuthSettingsV2WithoutSecretsInvokeArgs(); + } + + + [OutputType] + public sealed class GetWebAppAuthSettingsV2WithoutSecretsResult + { + /// + /// The Azure API version of the resource. + /// + public readonly string AzureApiVersion; + /// + /// The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + /// + public readonly Outputs.GlobalValidationResponse? GlobalValidation; + /// + /// The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + /// + public readonly Outputs.HttpSettingsResponse? HttpSettings; + /// + /// Resource Id. + /// + public readonly string Id; + /// + /// The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + /// + public readonly Outputs.IdentityProvidersResponse? IdentityProviders; + /// + /// Kind of resource. + /// + public readonly string? Kind; + /// + /// The configuration settings of the login flow of users using App Service Authentication/Authorization. + /// + public readonly Outputs.LoginResponse? Login; + /// + /// Resource Name. + /// + public readonly string Name; + /// + /// The configuration settings of the platform of App Service Authentication/Authorization. + /// + public readonly Outputs.AuthPlatformResponse? Platform; + /// + /// Resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetWebAppAuthSettingsV2WithoutSecretsResult( + string azureApiVersion, + + Outputs.GlobalValidationResponse? globalValidation, + + Outputs.HttpSettingsResponse? httpSettings, + + string id, + + Outputs.IdentityProvidersResponse? identityProviders, + + string? kind, + + Outputs.LoginResponse? login, + + string name, + + Outputs.AuthPlatformResponse? platform, + + string type) + { + AzureApiVersion = azureApiVersion; + GlobalValidation = globalValidation; + HttpSettings = httpSettings; + Id = id; + IdentityProviders = identityProviders; + Kind = kind; + Login = login; + Name = name; + Platform = platform; + Type = type; + } + } +} diff --git a/sdk/dotnet/Web/GetWebAppAuthSettingsV2WithoutSecretsSlot.cs b/sdk/dotnet/Web/GetWebAppAuthSettingsV2WithoutSecretsSlot.cs new file mode 100644 index 000000000000..521eb7fa8d93 --- /dev/null +++ b/sdk/dotnet/Web/GetWebAppAuthSettingsV2WithoutSecretsSlot.cs @@ -0,0 +1,177 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureNative.Web +{ + public static class GetWebAppAuthSettingsV2WithoutSecretsSlot + { + /// + /// Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + /// + /// Uses Azure REST API version 2024-04-01. + /// + /// Other available API versions: 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. + /// + public static Task InvokeAsync(GetWebAppAuthSettingsV2WithoutSecretsSlotArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("azure-native:web:getWebAppAuthSettingsV2WithoutSecretsSlot", args ?? new GetWebAppAuthSettingsV2WithoutSecretsSlotArgs(), options.WithDefaults()); + + /// + /// Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + /// + /// Uses Azure REST API version 2024-04-01. + /// + /// Other available API versions: 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. + /// + public static Output Invoke(GetWebAppAuthSettingsV2WithoutSecretsSlotInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("azure-native:web:getWebAppAuthSettingsV2WithoutSecretsSlot", args ?? new GetWebAppAuthSettingsV2WithoutSecretsSlotInvokeArgs(), options.WithDefaults()); + + /// + /// Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + /// + /// Uses Azure REST API version 2024-04-01. + /// + /// Other available API versions: 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. + /// + public static Output Invoke(GetWebAppAuthSettingsV2WithoutSecretsSlotInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("azure-native:web:getWebAppAuthSettingsV2WithoutSecretsSlot", args ?? new GetWebAppAuthSettingsV2WithoutSecretsSlotInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetWebAppAuthSettingsV2WithoutSecretsSlotArgs : global::Pulumi.InvokeArgs + { + /// + /// Name of the app. + /// + [Input("name", required: true)] + public string Name { get; set; } = null!; + + /// + /// Name of the resource group to which the resource belongs. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + /// + /// Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + /// + [Input("slot", required: true)] + public string Slot { get; set; } = null!; + + public GetWebAppAuthSettingsV2WithoutSecretsSlotArgs() + { + } + public static new GetWebAppAuthSettingsV2WithoutSecretsSlotArgs Empty => new GetWebAppAuthSettingsV2WithoutSecretsSlotArgs(); + } + + public sealed class GetWebAppAuthSettingsV2WithoutSecretsSlotInvokeArgs : global::Pulumi.InvokeArgs + { + /// + /// Name of the app. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// Name of the resource group to which the resource belongs. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + /// + [Input("slot", required: true)] + public Input Slot { get; set; } = null!; + + public GetWebAppAuthSettingsV2WithoutSecretsSlotInvokeArgs() + { + } + public static new GetWebAppAuthSettingsV2WithoutSecretsSlotInvokeArgs Empty => new GetWebAppAuthSettingsV2WithoutSecretsSlotInvokeArgs(); + } + + + [OutputType] + public sealed class GetWebAppAuthSettingsV2WithoutSecretsSlotResult + { + /// + /// The Azure API version of the resource. + /// + public readonly string AzureApiVersion; + /// + /// The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + /// + public readonly Outputs.GlobalValidationResponse? GlobalValidation; + /// + /// The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + /// + public readonly Outputs.HttpSettingsResponse? HttpSettings; + /// + /// Resource Id. + /// + public readonly string Id; + /// + /// The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + /// + public readonly Outputs.IdentityProvidersResponse? IdentityProviders; + /// + /// Kind of resource. + /// + public readonly string? Kind; + /// + /// The configuration settings of the login flow of users using App Service Authentication/Authorization. + /// + public readonly Outputs.LoginResponse? Login; + /// + /// Resource Name. + /// + public readonly string Name; + /// + /// The configuration settings of the platform of App Service Authentication/Authorization. + /// + public readonly Outputs.AuthPlatformResponse? Platform; + /// + /// Resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetWebAppAuthSettingsV2WithoutSecretsSlotResult( + string azureApiVersion, + + Outputs.GlobalValidationResponse? globalValidation, + + Outputs.HttpSettingsResponse? httpSettings, + + string id, + + Outputs.IdentityProvidersResponse? identityProviders, + + string? kind, + + Outputs.LoginResponse? login, + + string name, + + Outputs.AuthPlatformResponse? platform, + + string type) + { + AzureApiVersion = azureApiVersion; + GlobalValidation = globalValidation; + HttpSettings = httpSettings; + Id = id; + IdentityProviders = identityProviders; + Kind = kind; + Login = login; + Name = name; + Platform = platform; + Type = type; + } + } +} diff --git a/sdk/dotnet/Web/WebAppAuthSettingsV2.cs b/sdk/dotnet/Web/WebAppAuthSettingsV2.cs index cd487d0d9bf5..32593550d422 100644 --- a/sdk/dotnet/Web/WebAppAuthSettingsV2.cs +++ b/sdk/dotnet/Web/WebAppAuthSettingsV2.cs @@ -105,6 +105,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new global::Pulumi.Alias { Type = "azure-native:web/v20210101:WebAppAuthSettingsV2" }, new global::Pulumi.Alias { Type = "azure-native:web/v20210115:WebAppAuthSettingsV2" }, new global::Pulumi.Alias { Type = "azure-native:web/v20210201:WebAppAuthSettingsV2" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210301:WebAppAuthSettingsV2" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20220301:WebAppAuthSettingsV2" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20220901:WebAppAuthSettingsV2" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20230101:WebAppAuthSettingsV2" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20231201:WebAppAuthSettingsV2" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20240401:WebAppAuthSettingsV2" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20241101:WebAppAuthSettingsV2" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Web/WebAppAuthSettingsV2Slot.cs b/sdk/dotnet/Web/WebAppAuthSettingsV2Slot.cs index 6af33d0bdcd8..4870a71d6201 100644 --- a/sdk/dotnet/Web/WebAppAuthSettingsV2Slot.cs +++ b/sdk/dotnet/Web/WebAppAuthSettingsV2Slot.cs @@ -105,6 +105,13 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new global::Pulumi.Alias { Type = "azure-native:web/v20210101:WebAppAuthSettingsV2Slot" }, new global::Pulumi.Alias { Type = "azure-native:web/v20210115:WebAppAuthSettingsV2Slot" }, new global::Pulumi.Alias { Type = "azure-native:web/v20210201:WebAppAuthSettingsV2Slot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210301:WebAppAuthSettingsV2Slot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20220301:WebAppAuthSettingsV2Slot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20220901:WebAppAuthSettingsV2Slot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20230101:WebAppAuthSettingsV2Slot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20231201:WebAppAuthSettingsV2Slot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20240401:WebAppAuthSettingsV2Slot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20241101:WebAppAuthSettingsV2Slot" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Web/WebAppAuthSettingsV2WithoutSecrets.cs b/sdk/dotnet/Web/WebAppAuthSettingsV2WithoutSecrets.cs new file mode 100644 index 000000000000..72aeae4e4fcd --- /dev/null +++ b/sdk/dotnet/Web/WebAppAuthSettingsV2WithoutSecrets.cs @@ -0,0 +1,194 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureNative.Web +{ + /// + /// Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + /// + /// Uses Azure REST API version 2024-04-01. + /// + /// Other available API versions: 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. + /// + [AzureNativeResourceType("azure-native:web:WebAppAuthSettingsV2WithoutSecrets")] + public partial class WebAppAuthSettingsV2WithoutSecrets : global::Pulumi.CustomResource + { + /// + /// The Azure API version of the resource. + /// + [Output("azureApiVersion")] + public Output AzureApiVersion { get; private set; } = null!; + + /// + /// The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + /// + [Output("globalValidation")] + public Output GlobalValidation { get; private set; } = null!; + + /// + /// The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + /// + [Output("httpSettings")] + public Output HttpSettings { get; private set; } = null!; + + /// + /// The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + /// + [Output("identityProviders")] + public Output IdentityProviders { get; private set; } = null!; + + /// + /// Kind of resource. + /// + [Output("kind")] + public Output Kind { get; private set; } = null!; + + /// + /// The configuration settings of the login flow of users using App Service Authentication/Authorization. + /// + [Output("login")] + public Output Login { get; private set; } = null!; + + /// + /// Resource Name. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The configuration settings of the platform of App Service Authentication/Authorization. + /// + [Output("platform")] + public Output Platform { get; private set; } = null!; + + /// + /// Resource type. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a WebAppAuthSettingsV2WithoutSecrets resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public WebAppAuthSettingsV2WithoutSecrets(string name, WebAppAuthSettingsV2WithoutSecretsArgs args, CustomResourceOptions? options = null) + : base("azure-native:web:WebAppAuthSettingsV2WithoutSecrets", name, args ?? new WebAppAuthSettingsV2WithoutSecretsArgs(), MakeResourceOptions(options, "")) + { + } + + private WebAppAuthSettingsV2WithoutSecrets(string name, Input id, CustomResourceOptions? options = null) + : base("azure-native:web:WebAppAuthSettingsV2WithoutSecrets", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + Aliases = + { + new global::Pulumi.Alias { Type = "azure-native:web/v20200601:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20200901:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20201001:WebAppAuthSettingsV2" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20201001:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20201201:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210101:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210115:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210201:WebAppAuthSettingsV2" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210201:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210301:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20220301:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20220901:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20230101:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20231201:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20240401:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20241101:WebAppAuthSettingsV2WithoutSecrets" }, + new global::Pulumi.Alias { Type = "azure-native:web:WebAppAuthSettingsV2" }, + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing WebAppAuthSettingsV2WithoutSecrets resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static WebAppAuthSettingsV2WithoutSecrets Get(string name, Input id, CustomResourceOptions? options = null) + { + return new WebAppAuthSettingsV2WithoutSecrets(name, id, options); + } + } + + public sealed class WebAppAuthSettingsV2WithoutSecretsArgs : global::Pulumi.ResourceArgs + { + /// + /// The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + /// + [Input("globalValidation")] + public Input? GlobalValidation { get; set; } + + /// + /// The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + /// + [Input("httpSettings")] + public Input? HttpSettings { get; set; } + + /// + /// The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + /// + [Input("identityProviders")] + public Input? IdentityProviders { get; set; } + + /// + /// Kind of resource. + /// + [Input("kind")] + public Input? Kind { get; set; } + + /// + /// The configuration settings of the login flow of users using App Service Authentication/Authorization. + /// + [Input("login")] + public Input? Login { get; set; } + + /// + /// Name of web app. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The configuration settings of the platform of App Service Authentication/Authorization. + /// + [Input("platform")] + public Input? Platform { get; set; } + + /// + /// Name of the resource group to which the resource belongs. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + public WebAppAuthSettingsV2WithoutSecretsArgs() + { + } + public static new WebAppAuthSettingsV2WithoutSecretsArgs Empty => new WebAppAuthSettingsV2WithoutSecretsArgs(); + } +} diff --git a/sdk/dotnet/Web/WebAppAuthSettingsV2WithoutSecretsSlot.cs b/sdk/dotnet/Web/WebAppAuthSettingsV2WithoutSecretsSlot.cs new file mode 100644 index 000000000000..c2ae1a6ba01d --- /dev/null +++ b/sdk/dotnet/Web/WebAppAuthSettingsV2WithoutSecretsSlot.cs @@ -0,0 +1,200 @@ +// *** WARNING: this file was generated by pulumi-language-dotnet. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureNative.Web +{ + /// + /// Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + /// + /// Uses Azure REST API version 2024-04-01. + /// + /// Other available API versions: 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. + /// + [AzureNativeResourceType("azure-native:web:WebAppAuthSettingsV2WithoutSecretsSlot")] + public partial class WebAppAuthSettingsV2WithoutSecretsSlot : global::Pulumi.CustomResource + { + /// + /// The Azure API version of the resource. + /// + [Output("azureApiVersion")] + public Output AzureApiVersion { get; private set; } = null!; + + /// + /// The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + /// + [Output("globalValidation")] + public Output GlobalValidation { get; private set; } = null!; + + /// + /// The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + /// + [Output("httpSettings")] + public Output HttpSettings { get; private set; } = null!; + + /// + /// The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + /// + [Output("identityProviders")] + public Output IdentityProviders { get; private set; } = null!; + + /// + /// Kind of resource. + /// + [Output("kind")] + public Output Kind { get; private set; } = null!; + + /// + /// The configuration settings of the login flow of users using App Service Authentication/Authorization. + /// + [Output("login")] + public Output Login { get; private set; } = null!; + + /// + /// Resource Name. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The configuration settings of the platform of App Service Authentication/Authorization. + /// + [Output("platform")] + public Output Platform { get; private set; } = null!; + + /// + /// Resource type. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a WebAppAuthSettingsV2WithoutSecretsSlot resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public WebAppAuthSettingsV2WithoutSecretsSlot(string name, WebAppAuthSettingsV2WithoutSecretsSlotArgs args, CustomResourceOptions? options = null) + : base("azure-native:web:WebAppAuthSettingsV2WithoutSecretsSlot", name, args ?? new WebAppAuthSettingsV2WithoutSecretsSlotArgs(), MakeResourceOptions(options, "")) + { + } + + private WebAppAuthSettingsV2WithoutSecretsSlot(string name, Input id, CustomResourceOptions? options = null) + : base("azure-native:web:WebAppAuthSettingsV2WithoutSecretsSlot", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + Aliases = + { + new global::Pulumi.Alias { Type = "azure-native:web/v20200601:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20200901:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20201001:WebAppAuthSettingsV2Slot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20201001:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20201201:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210101:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210115:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210201:WebAppAuthSettingsV2Slot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210201:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20210301:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20220301:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20220901:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20230101:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20231201:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20240401:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web/v20241101:WebAppAuthSettingsV2WithoutSecretsSlot" }, + new global::Pulumi.Alias { Type = "azure-native:web:WebAppAuthSettingsV2Slot" }, + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing WebAppAuthSettingsV2WithoutSecretsSlot resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static WebAppAuthSettingsV2WithoutSecretsSlot Get(string name, Input id, CustomResourceOptions? options = null) + { + return new WebAppAuthSettingsV2WithoutSecretsSlot(name, id, options); + } + } + + public sealed class WebAppAuthSettingsV2WithoutSecretsSlotArgs : global::Pulumi.ResourceArgs + { + /// + /// The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + /// + [Input("globalValidation")] + public Input? GlobalValidation { get; set; } + + /// + /// The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + /// + [Input("httpSettings")] + public Input? HttpSettings { get; set; } + + /// + /// The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + /// + [Input("identityProviders")] + public Input? IdentityProviders { get; set; } + + /// + /// Kind of resource. + /// + [Input("kind")] + public Input? Kind { get; set; } + + /// + /// The configuration settings of the login flow of users using App Service Authentication/Authorization. + /// + [Input("login")] + public Input? Login { get; set; } + + /// + /// Name of web app. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The configuration settings of the platform of App Service Authentication/Authorization. + /// + [Input("platform")] + public Input? Platform { get; set; } + + /// + /// Name of the resource group to which the resource belongs. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// Name of web app slot. If not specified then will default to production slot. + /// + [Input("slot", required: true)] + public Input Slot { get; set; } = null!; + + public WebAppAuthSettingsV2WithoutSecretsSlotArgs() + { + } + public static new WebAppAuthSettingsV2WithoutSecretsSlotArgs Empty => new WebAppAuthSettingsV2WithoutSecretsSlotArgs(); + } +} diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 970cdc617900..8e658349739f 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -5208,6 +5208,8 @@ "web/getStaticSiteUserProvidedFunctionAppForStaticSite.ts", "web/getStaticSiteUserProvidedFunctionAppForStaticSiteBuild.ts", "web/getWebApp.ts", + "web/getWebAppAuthSettingsV2WithoutSecrets.ts", + "web/getWebAppAuthSettingsV2WithoutSecretsSlot.ts", "web/getWebAppDeployment.ts", "web/getWebAppDeploymentSlot.ts", "web/getWebAppDiagnosticLogsConfiguration.ts", @@ -5311,6 +5313,8 @@ "web/webAppAuthSettingsSlot.ts", "web/webAppAuthSettingsV2.ts", "web/webAppAuthSettingsV2Slot.ts", + "web/webAppAuthSettingsV2WithoutSecrets.ts", + "web/webAppAuthSettingsV2WithoutSecretsSlot.ts", "web/webAppAzureStorageAccounts.ts", "web/webAppAzureStorageAccountsSlot.ts", "web/webAppBackupConfiguration.ts", diff --git a/sdk/nodejs/web/getWebAppAuthSettingsV2WithoutSecrets.ts b/sdk/nodejs/web/getWebAppAuthSettingsV2WithoutSecrets.ts new file mode 100644 index 000000000000..b07ed89cb910 --- /dev/null +++ b/sdk/nodejs/web/getWebAppAuthSettingsV2WithoutSecrets.ts @@ -0,0 +1,105 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as enums from "../types/enums"; +import * as utilities from "../utilities"; + +/** + * Description for Gets site's Authentication / Authorization settings for apps via the V2 format + * + * Uses Azure REST API version 2024-04-01. + * + * Other available API versions: 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. + */ +export function getWebAppAuthSettingsV2WithoutSecrets(args: GetWebAppAuthSettingsV2WithoutSecretsArgs, opts?: pulumi.InvokeOptions): Promise { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("azure-native:web:getWebAppAuthSettingsV2WithoutSecrets", { + "name": args.name, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +export interface GetWebAppAuthSettingsV2WithoutSecretsArgs { + /** + * Name of the app. + */ + name: string; + /** + * Name of the resource group to which the resource belongs. + */ + resourceGroupName: string; +} + +/** + * Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + */ +export interface GetWebAppAuthSettingsV2WithoutSecretsResult { + /** + * The Azure API version of the resource. + */ + readonly azureApiVersion: string; + /** + * The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + */ + readonly globalValidation?: outputs.web.GlobalValidationResponse; + /** + * The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + */ + readonly httpSettings?: outputs.web.HttpSettingsResponse; + /** + * Resource Id. + */ + readonly id: string; + /** + * The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + */ + readonly identityProviders?: outputs.web.IdentityProvidersResponse; + /** + * Kind of resource. + */ + readonly kind?: string; + /** + * The configuration settings of the login flow of users using App Service Authentication/Authorization. + */ + readonly login?: outputs.web.LoginResponse; + /** + * Resource Name. + */ + readonly name: string; + /** + * The configuration settings of the platform of App Service Authentication/Authorization. + */ + readonly platform?: outputs.web.AuthPlatformResponse; + /** + * Resource type. + */ + readonly type: string; +} +/** + * Description for Gets site's Authentication / Authorization settings for apps via the V2 format + * + * Uses Azure REST API version 2024-04-01. + * + * Other available API versions: 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. + */ +export function getWebAppAuthSettingsV2WithoutSecretsOutput(args: GetWebAppAuthSettingsV2WithoutSecretsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("azure-native:web:getWebAppAuthSettingsV2WithoutSecrets", { + "name": args.name, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +export interface GetWebAppAuthSettingsV2WithoutSecretsOutputArgs { + /** + * Name of the app. + */ + name: pulumi.Input; + /** + * Name of the resource group to which the resource belongs. + */ + resourceGroupName: pulumi.Input; +} diff --git a/sdk/nodejs/web/getWebAppAuthSettingsV2WithoutSecretsSlot.ts b/sdk/nodejs/web/getWebAppAuthSettingsV2WithoutSecretsSlot.ts new file mode 100644 index 000000000000..fb4d8e7bf659 --- /dev/null +++ b/sdk/nodejs/web/getWebAppAuthSettingsV2WithoutSecretsSlot.ts @@ -0,0 +1,115 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as enums from "../types/enums"; +import * as utilities from "../utilities"; + +/** + * Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + * + * Uses Azure REST API version 2024-04-01. + * + * Other available API versions: 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. + */ +export function getWebAppAuthSettingsV2WithoutSecretsSlot(args: GetWebAppAuthSettingsV2WithoutSecretsSlotArgs, opts?: pulumi.InvokeOptions): Promise { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("azure-native:web:getWebAppAuthSettingsV2WithoutSecretsSlot", { + "name": args.name, + "resourceGroupName": args.resourceGroupName, + "slot": args.slot, + }, opts); +} + +export interface GetWebAppAuthSettingsV2WithoutSecretsSlotArgs { + /** + * Name of the app. + */ + name: string; + /** + * Name of the resource group to which the resource belongs. + */ + resourceGroupName: string; + /** + * Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + */ + slot: string; +} + +/** + * Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + */ +export interface GetWebAppAuthSettingsV2WithoutSecretsSlotResult { + /** + * The Azure API version of the resource. + */ + readonly azureApiVersion: string; + /** + * The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + */ + readonly globalValidation?: outputs.web.GlobalValidationResponse; + /** + * The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + */ + readonly httpSettings?: outputs.web.HttpSettingsResponse; + /** + * Resource Id. + */ + readonly id: string; + /** + * The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + */ + readonly identityProviders?: outputs.web.IdentityProvidersResponse; + /** + * Kind of resource. + */ + readonly kind?: string; + /** + * The configuration settings of the login flow of users using App Service Authentication/Authorization. + */ + readonly login?: outputs.web.LoginResponse; + /** + * Resource Name. + */ + readonly name: string; + /** + * The configuration settings of the platform of App Service Authentication/Authorization. + */ + readonly platform?: outputs.web.AuthPlatformResponse; + /** + * Resource type. + */ + readonly type: string; +} +/** + * Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + * + * Uses Azure REST API version 2024-04-01. + * + * Other available API versions: 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. + */ +export function getWebAppAuthSettingsV2WithoutSecretsSlotOutput(args: GetWebAppAuthSettingsV2WithoutSecretsSlotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("azure-native:web:getWebAppAuthSettingsV2WithoutSecretsSlot", { + "name": args.name, + "resourceGroupName": args.resourceGroupName, + "slot": args.slot, + }, opts); +} + +export interface GetWebAppAuthSettingsV2WithoutSecretsSlotOutputArgs { + /** + * Name of the app. + */ + name: pulumi.Input; + /** + * Name of the resource group to which the resource belongs. + */ + resourceGroupName: pulumi.Input; + /** + * Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + */ + slot: pulumi.Input; +} diff --git a/sdk/nodejs/web/index.ts b/sdk/nodejs/web/index.ts index 724988c1fc47..874dbe0b6135 100644 --- a/sdk/nodejs/web/index.ts +++ b/sdk/nodejs/web/index.ts @@ -155,6 +155,16 @@ export const getWebApp: typeof import("./getWebApp").getWebApp = null as any; export const getWebAppOutput: typeof import("./getWebApp").getWebAppOutput = null as any; utilities.lazyLoad(exports, ["getWebApp","getWebAppOutput"], () => require("./getWebApp")); +export { GetWebAppAuthSettingsV2WithoutSecretsArgs, GetWebAppAuthSettingsV2WithoutSecretsResult, GetWebAppAuthSettingsV2WithoutSecretsOutputArgs } from "./getWebAppAuthSettingsV2WithoutSecrets"; +export const getWebAppAuthSettingsV2WithoutSecrets: typeof import("./getWebAppAuthSettingsV2WithoutSecrets").getWebAppAuthSettingsV2WithoutSecrets = null as any; +export const getWebAppAuthSettingsV2WithoutSecretsOutput: typeof import("./getWebAppAuthSettingsV2WithoutSecrets").getWebAppAuthSettingsV2WithoutSecretsOutput = null as any; +utilities.lazyLoad(exports, ["getWebAppAuthSettingsV2WithoutSecrets","getWebAppAuthSettingsV2WithoutSecretsOutput"], () => require("./getWebAppAuthSettingsV2WithoutSecrets")); + +export { GetWebAppAuthSettingsV2WithoutSecretsSlotArgs, GetWebAppAuthSettingsV2WithoutSecretsSlotResult, GetWebAppAuthSettingsV2WithoutSecretsSlotOutputArgs } from "./getWebAppAuthSettingsV2WithoutSecretsSlot"; +export const getWebAppAuthSettingsV2WithoutSecretsSlot: typeof import("./getWebAppAuthSettingsV2WithoutSecretsSlot").getWebAppAuthSettingsV2WithoutSecretsSlot = null as any; +export const getWebAppAuthSettingsV2WithoutSecretsSlotOutput: typeof import("./getWebAppAuthSettingsV2WithoutSecretsSlot").getWebAppAuthSettingsV2WithoutSecretsSlotOutput = null as any; +utilities.lazyLoad(exports, ["getWebAppAuthSettingsV2WithoutSecretsSlot","getWebAppAuthSettingsV2WithoutSecretsSlotOutput"], () => require("./getWebAppAuthSettingsV2WithoutSecretsSlot")); + export { GetWebAppDeploymentArgs, GetWebAppDeploymentResult, GetWebAppDeploymentOutputArgs } from "./getWebAppDeployment"; export const getWebAppDeployment: typeof import("./getWebAppDeployment").getWebAppDeployment = null as any; export const getWebAppDeploymentOutput: typeof import("./getWebAppDeployment").getWebAppDeploymentOutput = null as any; @@ -665,6 +675,16 @@ export type WebAppAuthSettingsV2Slot = import("./webAppAuthSettingsV2Slot").WebA export const WebAppAuthSettingsV2Slot: typeof import("./webAppAuthSettingsV2Slot").WebAppAuthSettingsV2Slot = null as any; utilities.lazyLoad(exports, ["WebAppAuthSettingsV2Slot"], () => require("./webAppAuthSettingsV2Slot")); +export { WebAppAuthSettingsV2WithoutSecretsArgs } from "./webAppAuthSettingsV2WithoutSecrets"; +export type WebAppAuthSettingsV2WithoutSecrets = import("./webAppAuthSettingsV2WithoutSecrets").WebAppAuthSettingsV2WithoutSecrets; +export const WebAppAuthSettingsV2WithoutSecrets: typeof import("./webAppAuthSettingsV2WithoutSecrets").WebAppAuthSettingsV2WithoutSecrets = null as any; +utilities.lazyLoad(exports, ["WebAppAuthSettingsV2WithoutSecrets"], () => require("./webAppAuthSettingsV2WithoutSecrets")); + +export { WebAppAuthSettingsV2WithoutSecretsSlotArgs } from "./webAppAuthSettingsV2WithoutSecretsSlot"; +export type WebAppAuthSettingsV2WithoutSecretsSlot = import("./webAppAuthSettingsV2WithoutSecretsSlot").WebAppAuthSettingsV2WithoutSecretsSlot; +export const WebAppAuthSettingsV2WithoutSecretsSlot: typeof import("./webAppAuthSettingsV2WithoutSecretsSlot").WebAppAuthSettingsV2WithoutSecretsSlot = null as any; +utilities.lazyLoad(exports, ["WebAppAuthSettingsV2WithoutSecretsSlot"], () => require("./webAppAuthSettingsV2WithoutSecretsSlot")); + export { WebAppAzureStorageAccountsArgs } from "./webAppAzureStorageAccounts"; export type WebAppAzureStorageAccounts = import("./webAppAzureStorageAccounts").WebAppAzureStorageAccounts; export const WebAppAzureStorageAccounts: typeof import("./webAppAzureStorageAccounts").WebAppAzureStorageAccounts = null as any; @@ -959,6 +979,10 @@ const _module = { return new WebAppAuthSettingsV2(name, undefined, { urn }) case "azure-native:web:WebAppAuthSettingsV2Slot": return new WebAppAuthSettingsV2Slot(name, undefined, { urn }) + case "azure-native:web:WebAppAuthSettingsV2WithoutSecrets": + return new WebAppAuthSettingsV2WithoutSecrets(name, undefined, { urn }) + case "azure-native:web:WebAppAuthSettingsV2WithoutSecretsSlot": + return new WebAppAuthSettingsV2WithoutSecretsSlot(name, undefined, { urn }) case "azure-native:web:WebAppAzureStorageAccounts": return new WebAppAzureStorageAccounts(name, undefined, { urn }) case "azure-native:web:WebAppAzureStorageAccountsSlot": diff --git a/sdk/nodejs/web/webAppAuthSettingsV2.ts b/sdk/nodejs/web/webAppAuthSettingsV2.ts index 0dbab01f4465..010451fc0c72 100644 --- a/sdk/nodejs/web/webAppAuthSettingsV2.ts +++ b/sdk/nodejs/web/webAppAuthSettingsV2.ts @@ -117,7 +117,7 @@ export class WebAppAuthSettingsV2 extends pulumi.CustomResource { resourceInputs["type"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:web/v20200601:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20200901:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20201001:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20201201:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20210101:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20210115:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20210201:WebAppAuthSettingsV2" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:web/v20200601:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20200901:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20201001:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20201201:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20210101:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20210115:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20210201:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20210301:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20220301:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20220901:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20230101:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20231201:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20240401:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20241101:WebAppAuthSettingsV2" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(WebAppAuthSettingsV2.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/nodejs/web/webAppAuthSettingsV2Slot.ts b/sdk/nodejs/web/webAppAuthSettingsV2Slot.ts index 0a79f2536484..5668d2926a96 100644 --- a/sdk/nodejs/web/webAppAuthSettingsV2Slot.ts +++ b/sdk/nodejs/web/webAppAuthSettingsV2Slot.ts @@ -121,7 +121,7 @@ export class WebAppAuthSettingsV2Slot extends pulumi.CustomResource { resourceInputs["type"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "azure-native:web/v20200601:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20200901:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20201001:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20201201:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20210101:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20210115:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20210201:WebAppAuthSettingsV2Slot" }] }; + const aliasOpts = { aliases: [{ type: "azure-native:web/v20200601:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20200901:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20201001:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20201201:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20210101:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20210115:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20210201:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20210301:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20220301:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20220901:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20230101:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20231201:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20240401:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20241101:WebAppAuthSettingsV2Slot" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(WebAppAuthSettingsV2Slot.__pulumiType, name, resourceInputs, opts); } diff --git a/sdk/nodejs/web/webAppAuthSettingsV2WithoutSecrets.ts b/sdk/nodejs/web/webAppAuthSettingsV2WithoutSecrets.ts new file mode 100644 index 000000000000..3c670cdfeceb --- /dev/null +++ b/sdk/nodejs/web/webAppAuthSettingsV2WithoutSecrets.ts @@ -0,0 +1,162 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as enums from "../types/enums"; +import * as utilities from "../utilities"; + +/** + * Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + * + * Uses Azure REST API version 2024-04-01. + * + * Other available API versions: 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. + */ +export class WebAppAuthSettingsV2WithoutSecrets extends pulumi.CustomResource { + /** + * Get an existing WebAppAuthSettingsV2WithoutSecrets 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. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): WebAppAuthSettingsV2WithoutSecrets { + return new WebAppAuthSettingsV2WithoutSecrets(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azure-native:web:WebAppAuthSettingsV2WithoutSecrets'; + + /** + * Returns true if the given object is an instance of WebAppAuthSettingsV2WithoutSecrets. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is WebAppAuthSettingsV2WithoutSecrets { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === WebAppAuthSettingsV2WithoutSecrets.__pulumiType; + } + + /** + * The Azure API version of the resource. + */ + public /*out*/ readonly azureApiVersion!: pulumi.Output; + /** + * The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + */ + public readonly globalValidation!: pulumi.Output; + /** + * The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + */ + public readonly httpSettings!: pulumi.Output; + /** + * The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + */ + public readonly identityProviders!: pulumi.Output; + /** + * Kind of resource. + */ + public readonly kind!: pulumi.Output; + /** + * The configuration settings of the login flow of users using App Service Authentication/Authorization. + */ + public readonly login!: pulumi.Output; + /** + * Resource Name. + */ + public readonly name!: pulumi.Output; + /** + * The configuration settings of the platform of App Service Authentication/Authorization. + */ + public readonly platform!: pulumi.Output; + /** + * Resource type. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a WebAppAuthSettingsV2WithoutSecrets 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: string, args: WebAppAuthSettingsV2WithoutSecretsArgs, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (!opts.id) { + if ((!args || args.name === undefined) && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if ((!args || args.resourceGroupName === undefined) && !opts.urn) { + throw new Error("Missing required property 'resourceGroupName'"); + } + resourceInputs["globalValidation"] = args ? args.globalValidation : undefined; + resourceInputs["httpSettings"] = args ? args.httpSettings : undefined; + resourceInputs["identityProviders"] = args ? args.identityProviders : undefined; + resourceInputs["kind"] = args ? args.kind : undefined; + resourceInputs["login"] = args ? args.login : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["platform"] = args ? args.platform : undefined; + resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + resourceInputs["azureApiVersion"] = undefined /*out*/; + resourceInputs["type"] = undefined /*out*/; + } else { + resourceInputs["azureApiVersion"] = undefined /*out*/; + resourceInputs["globalValidation"] = undefined /*out*/; + resourceInputs["httpSettings"] = undefined /*out*/; + resourceInputs["identityProviders"] = undefined /*out*/; + resourceInputs["kind"] = undefined /*out*/; + resourceInputs["login"] = undefined /*out*/; + resourceInputs["name"] = undefined /*out*/; + resourceInputs["platform"] = undefined /*out*/; + resourceInputs["type"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const aliasOpts = { aliases: [{ type: "azure-native:web/v20200601:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20200901:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20201001:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20201001:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20201201:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20210101:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20210115:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20210201:WebAppAuthSettingsV2" }, { type: "azure-native:web/v20210201:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20210301:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20220301:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20220901:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20230101:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20231201:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20240401:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web/v20241101:WebAppAuthSettingsV2WithoutSecrets" }, { type: "azure-native:web:WebAppAuthSettingsV2" }] }; + opts = pulumi.mergeOptions(opts, aliasOpts); + super(WebAppAuthSettingsV2WithoutSecrets.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * The set of arguments for constructing a WebAppAuthSettingsV2WithoutSecrets resource. + */ +export interface WebAppAuthSettingsV2WithoutSecretsArgs { + /** + * The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + */ + globalValidation?: pulumi.Input; + /** + * The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + */ + httpSettings?: pulumi.Input; + /** + * The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + */ + identityProviders?: pulumi.Input; + /** + * Kind of resource. + */ + kind?: pulumi.Input; + /** + * The configuration settings of the login flow of users using App Service Authentication/Authorization. + */ + login?: pulumi.Input; + /** + * Name of web app. + */ + name: pulumi.Input; + /** + * The configuration settings of the platform of App Service Authentication/Authorization. + */ + platform?: pulumi.Input; + /** + * Name of the resource group to which the resource belongs. + */ + resourceGroupName: pulumi.Input; +} diff --git a/sdk/nodejs/web/webAppAuthSettingsV2WithoutSecretsSlot.ts b/sdk/nodejs/web/webAppAuthSettingsV2WithoutSecretsSlot.ts new file mode 100644 index 000000000000..806ebee55885 --- /dev/null +++ b/sdk/nodejs/web/webAppAuthSettingsV2WithoutSecretsSlot.ts @@ -0,0 +1,170 @@ +// *** WARNING: this file was generated by pulumi-language-nodejs. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../types/input"; +import * as outputs from "../types/output"; +import * as enums from "../types/enums"; +import * as utilities from "../utilities"; + +/** + * Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + * + * Uses Azure REST API version 2024-04-01. + * + * Other available API versions: 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. + */ +export class WebAppAuthSettingsV2WithoutSecretsSlot extends pulumi.CustomResource { + /** + * Get an existing WebAppAuthSettingsV2WithoutSecretsSlot 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. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): WebAppAuthSettingsV2WithoutSecretsSlot { + return new WebAppAuthSettingsV2WithoutSecretsSlot(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azure-native:web:WebAppAuthSettingsV2WithoutSecretsSlot'; + + /** + * Returns true if the given object is an instance of WebAppAuthSettingsV2WithoutSecretsSlot. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is WebAppAuthSettingsV2WithoutSecretsSlot { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === WebAppAuthSettingsV2WithoutSecretsSlot.__pulumiType; + } + + /** + * The Azure API version of the resource. + */ + public /*out*/ readonly azureApiVersion!: pulumi.Output; + /** + * The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + */ + public readonly globalValidation!: pulumi.Output; + /** + * The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + */ + public readonly httpSettings!: pulumi.Output; + /** + * The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + */ + public readonly identityProviders!: pulumi.Output; + /** + * Kind of resource. + */ + public readonly kind!: pulumi.Output; + /** + * The configuration settings of the login flow of users using App Service Authentication/Authorization. + */ + public readonly login!: pulumi.Output; + /** + * Resource Name. + */ + public readonly name!: pulumi.Output; + /** + * The configuration settings of the platform of App Service Authentication/Authorization. + */ + public readonly platform!: pulumi.Output; + /** + * Resource type. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a WebAppAuthSettingsV2WithoutSecretsSlot 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: string, args: WebAppAuthSettingsV2WithoutSecretsSlotArgs, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (!opts.id) { + if ((!args || args.name === undefined) && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + if ((!args || args.resourceGroupName === undefined) && !opts.urn) { + throw new Error("Missing required property 'resourceGroupName'"); + } + if ((!args || args.slot === undefined) && !opts.urn) { + throw new Error("Missing required property 'slot'"); + } + resourceInputs["globalValidation"] = args ? args.globalValidation : undefined; + resourceInputs["httpSettings"] = args ? args.httpSettings : undefined; + resourceInputs["identityProviders"] = args ? args.identityProviders : undefined; + resourceInputs["kind"] = args ? args.kind : undefined; + resourceInputs["login"] = args ? args.login : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["platform"] = args ? args.platform : undefined; + resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + resourceInputs["slot"] = args ? args.slot : undefined; + resourceInputs["azureApiVersion"] = undefined /*out*/; + resourceInputs["type"] = undefined /*out*/; + } else { + resourceInputs["azureApiVersion"] = undefined /*out*/; + resourceInputs["globalValidation"] = undefined /*out*/; + resourceInputs["httpSettings"] = undefined /*out*/; + resourceInputs["identityProviders"] = undefined /*out*/; + resourceInputs["kind"] = undefined /*out*/; + resourceInputs["login"] = undefined /*out*/; + resourceInputs["name"] = undefined /*out*/; + resourceInputs["platform"] = undefined /*out*/; + resourceInputs["type"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + const aliasOpts = { aliases: [{ type: "azure-native:web/v20200601:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20200901:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20201001:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20201001:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20201201:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20210101:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20210115:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20210201:WebAppAuthSettingsV2Slot" }, { type: "azure-native:web/v20210201:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20210301:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20220301:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20220901:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20230101:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20231201:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20240401:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web/v20241101:WebAppAuthSettingsV2WithoutSecretsSlot" }, { type: "azure-native:web:WebAppAuthSettingsV2Slot" }] }; + opts = pulumi.mergeOptions(opts, aliasOpts); + super(WebAppAuthSettingsV2WithoutSecretsSlot.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * The set of arguments for constructing a WebAppAuthSettingsV2WithoutSecretsSlot resource. + */ +export interface WebAppAuthSettingsV2WithoutSecretsSlotArgs { + /** + * The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + */ + globalValidation?: pulumi.Input; + /** + * The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + */ + httpSettings?: pulumi.Input; + /** + * The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + */ + identityProviders?: pulumi.Input; + /** + * Kind of resource. + */ + kind?: pulumi.Input; + /** + * The configuration settings of the login flow of users using App Service Authentication/Authorization. + */ + login?: pulumi.Input; + /** + * Name of web app. + */ + name: pulumi.Input; + /** + * The configuration settings of the platform of App Service Authentication/Authorization. + */ + platform?: pulumi.Input; + /** + * Name of the resource group to which the resource belongs. + */ + resourceGroupName: pulumi.Input; + /** + * Name of web app slot. If not specified then will default to production slot. + */ + slot: pulumi.Input; +} diff --git a/sdk/python/pulumi_azure_native/__init__.py b/sdk/python/pulumi_azure_native/__init__.py index d53c5c6e6df8..61473ddbf2a8 100644 --- a/sdk/python/pulumi_azure_native/__init__.py +++ b/sdk/python/pulumi_azure_native/__init__.py @@ -4620,6 +4620,8 @@ "azure-native:web:WebAppAuthSettingsSlot": "WebAppAuthSettingsSlot", "azure-native:web:WebAppAuthSettingsV2": "WebAppAuthSettingsV2", "azure-native:web:WebAppAuthSettingsV2Slot": "WebAppAuthSettingsV2Slot", + "azure-native:web:WebAppAuthSettingsV2WithoutSecrets": "WebAppAuthSettingsV2WithoutSecrets", + "azure-native:web:WebAppAuthSettingsV2WithoutSecretsSlot": "WebAppAuthSettingsV2WithoutSecretsSlot", "azure-native:web:WebAppAzureStorageAccounts": "WebAppAzureStorageAccounts", "azure-native:web:WebAppAzureStorageAccountsSlot": "WebAppAzureStorageAccountsSlot", "azure-native:web:WebAppBackupConfiguration": "WebAppBackupConfiguration", diff --git a/sdk/python/pulumi_azure_native/web/__init__.py b/sdk/python/pulumi_azure_native/web/__init__.py index ec03e8c7b7d6..ce2821580bd8 100644 --- a/sdk/python/pulumi_azure_native/web/__init__.py +++ b/sdk/python/pulumi_azure_native/web/__init__.py @@ -37,6 +37,8 @@ from .get_static_site_user_provided_function_app_for_static_site import * from .get_static_site_user_provided_function_app_for_static_site_build import * from .get_web_app import * +from .get_web_app_auth_settings_v2_without_secrets import * +from .get_web_app_auth_settings_v2_without_secrets_slot import * from .get_web_app_deployment import * from .get_web_app_deployment_slot import * from .get_web_app_diagnostic_logs_configuration import * @@ -139,6 +141,8 @@ from .web_app_auth_settings_slot import * from .web_app_auth_settings_v2 import * from .web_app_auth_settings_v2_slot import * +from .web_app_auth_settings_v2_without_secrets import * +from .web_app_auth_settings_v2_without_secrets_slot import * from .web_app_azure_storage_accounts import * from .web_app_azure_storage_accounts_slot import * from .web_app_backup_configuration import * diff --git a/sdk/python/pulumi_azure_native/web/get_web_app_auth_settings_v2_without_secrets.py b/sdk/python/pulumi_azure_native/web/get_web_app_auth_settings_v2_without_secrets.py new file mode 100644 index 000000000000..ef6e7ee85ac5 --- /dev/null +++ b/sdk/python/pulumi_azure_native/web/get_web_app_auth_settings_v2_without_secrets.py @@ -0,0 +1,222 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs + +__all__ = [ + 'GetWebAppAuthSettingsV2WithoutSecretsResult', + 'AwaitableGetWebAppAuthSettingsV2WithoutSecretsResult', + 'get_web_app_auth_settings_v2_without_secrets', + 'get_web_app_auth_settings_v2_without_secrets_output', +] + +@pulumi.output_type +class GetWebAppAuthSettingsV2WithoutSecretsResult: + """ + Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + """ + def __init__(__self__, azure_api_version=None, global_validation=None, http_settings=None, id=None, identity_providers=None, kind=None, login=None, name=None, platform=None, type=None): + if azure_api_version and not isinstance(azure_api_version, str): + raise TypeError("Expected argument 'azure_api_version' to be a str") + pulumi.set(__self__, "azure_api_version", azure_api_version) + if global_validation and not isinstance(global_validation, dict): + raise TypeError("Expected argument 'global_validation' to be a dict") + pulumi.set(__self__, "global_validation", global_validation) + if http_settings and not isinstance(http_settings, dict): + raise TypeError("Expected argument 'http_settings' to be a dict") + pulumi.set(__self__, "http_settings", http_settings) + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if identity_providers and not isinstance(identity_providers, dict): + raise TypeError("Expected argument 'identity_providers' to be a dict") + pulumi.set(__self__, "identity_providers", identity_providers) + if kind and not isinstance(kind, str): + raise TypeError("Expected argument 'kind' to be a str") + pulumi.set(__self__, "kind", kind) + if login and not isinstance(login, dict): + raise TypeError("Expected argument 'login' to be a dict") + pulumi.set(__self__, "login", login) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if platform and not isinstance(platform, dict): + raise TypeError("Expected argument 'platform' to be a dict") + pulumi.set(__self__, "platform", platform) + if type and not isinstance(type, str): + raise TypeError("Expected argument 'type' to be a str") + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter(name="azureApiVersion") + def azure_api_version(self) -> builtins.str: + """ + The Azure API version of the resource. + """ + return pulumi.get(self, "azure_api_version") + + @property + @pulumi.getter(name="globalValidation") + def global_validation(self) -> Optional['outputs.GlobalValidationResponse']: + """ + The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "global_validation") + + @property + @pulumi.getter(name="httpSettings") + def http_settings(self) -> Optional['outputs.HttpSettingsResponse']: + """ + The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + """ + return pulumi.get(self, "http_settings") + + @property + @pulumi.getter + def id(self) -> builtins.str: + """ + Resource Id. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter(name="identityProviders") + def identity_providers(self) -> Optional['outputs.IdentityProvidersResponse']: + """ + The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + """ + return pulumi.get(self, "identity_providers") + + @property + @pulumi.getter + def kind(self) -> Optional[builtins.str]: + """ + Kind of resource. + """ + return pulumi.get(self, "kind") + + @property + @pulumi.getter + def login(self) -> Optional['outputs.LoginResponse']: + """ + The configuration settings of the login flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "login") + + @property + @pulumi.getter + def name(self) -> builtins.str: + """ + Resource Name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def platform(self) -> Optional['outputs.AuthPlatformResponse']: + """ + The configuration settings of the platform of App Service Authentication/Authorization. + """ + return pulumi.get(self, "platform") + + @property + @pulumi.getter + def type(self) -> builtins.str: + """ + Resource type. + """ + return pulumi.get(self, "type") + + +class AwaitableGetWebAppAuthSettingsV2WithoutSecretsResult(GetWebAppAuthSettingsV2WithoutSecretsResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetWebAppAuthSettingsV2WithoutSecretsResult( + azure_api_version=self.azure_api_version, + global_validation=self.global_validation, + http_settings=self.http_settings, + id=self.id, + identity_providers=self.identity_providers, + kind=self.kind, + login=self.login, + name=self.name, + platform=self.platform, + type=self.type) + + +def get_web_app_auth_settings_v2_without_secrets(name: Optional[builtins.str] = None, + resource_group_name: Optional[builtins.str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWebAppAuthSettingsV2WithoutSecretsResult: + """ + Description for Gets site's Authentication / Authorization settings for apps via the V2 format + + Uses Azure REST API version 2024-04-01. + + Other available API versions: 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. + + + :param builtins.str name: Name of the app. + :param builtins.str resource_group_name: Name of the resource group to which the resource belongs. + """ + __args__ = dict() + __args__['name'] = name + __args__['resourceGroupName'] = resource_group_name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('azure-native:web:getWebAppAuthSettingsV2WithoutSecrets', __args__, opts=opts, typ=GetWebAppAuthSettingsV2WithoutSecretsResult).value + + return AwaitableGetWebAppAuthSettingsV2WithoutSecretsResult( + azure_api_version=pulumi.get(__ret__, 'azure_api_version'), + global_validation=pulumi.get(__ret__, 'global_validation'), + http_settings=pulumi.get(__ret__, 'http_settings'), + id=pulumi.get(__ret__, 'id'), + identity_providers=pulumi.get(__ret__, 'identity_providers'), + kind=pulumi.get(__ret__, 'kind'), + login=pulumi.get(__ret__, 'login'), + name=pulumi.get(__ret__, 'name'), + platform=pulumi.get(__ret__, 'platform'), + type=pulumi.get(__ret__, 'type')) +def get_web_app_auth_settings_v2_without_secrets_output(name: Optional[pulumi.Input[builtins.str]] = None, + resource_group_name: Optional[pulumi.Input[builtins.str]] = None, + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetWebAppAuthSettingsV2WithoutSecretsResult]: + """ + Description for Gets site's Authentication / Authorization settings for apps via the V2 format + + Uses Azure REST API version 2024-04-01. + + Other available API versions: 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. + + + :param builtins.str name: Name of the app. + :param builtins.str resource_group_name: Name of the resource group to which the resource belongs. + """ + __args__ = dict() + __args__['name'] = name + __args__['resourceGroupName'] = resource_group_name + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('azure-native:web:getWebAppAuthSettingsV2WithoutSecrets', __args__, opts=opts, typ=GetWebAppAuthSettingsV2WithoutSecretsResult) + return __ret__.apply(lambda __response__: GetWebAppAuthSettingsV2WithoutSecretsResult( + azure_api_version=pulumi.get(__response__, 'azure_api_version'), + global_validation=pulumi.get(__response__, 'global_validation'), + http_settings=pulumi.get(__response__, 'http_settings'), + id=pulumi.get(__response__, 'id'), + identity_providers=pulumi.get(__response__, 'identity_providers'), + kind=pulumi.get(__response__, 'kind'), + login=pulumi.get(__response__, 'login'), + name=pulumi.get(__response__, 'name'), + platform=pulumi.get(__response__, 'platform'), + type=pulumi.get(__response__, 'type'))) diff --git a/sdk/python/pulumi_azure_native/web/get_web_app_auth_settings_v2_without_secrets_slot.py b/sdk/python/pulumi_azure_native/web/get_web_app_auth_settings_v2_without_secrets_slot.py new file mode 100644 index 000000000000..93bf1c2e466b --- /dev/null +++ b/sdk/python/pulumi_azure_native/web/get_web_app_auth_settings_v2_without_secrets_slot.py @@ -0,0 +1,228 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs + +__all__ = [ + 'GetWebAppAuthSettingsV2WithoutSecretsSlotResult', + 'AwaitableGetWebAppAuthSettingsV2WithoutSecretsSlotResult', + 'get_web_app_auth_settings_v2_without_secrets_slot', + 'get_web_app_auth_settings_v2_without_secrets_slot_output', +] + +@pulumi.output_type +class GetWebAppAuthSettingsV2WithoutSecretsSlotResult: + """ + Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + """ + def __init__(__self__, azure_api_version=None, global_validation=None, http_settings=None, id=None, identity_providers=None, kind=None, login=None, name=None, platform=None, type=None): + if azure_api_version and not isinstance(azure_api_version, str): + raise TypeError("Expected argument 'azure_api_version' to be a str") + pulumi.set(__self__, "azure_api_version", azure_api_version) + if global_validation and not isinstance(global_validation, dict): + raise TypeError("Expected argument 'global_validation' to be a dict") + pulumi.set(__self__, "global_validation", global_validation) + if http_settings and not isinstance(http_settings, dict): + raise TypeError("Expected argument 'http_settings' to be a dict") + pulumi.set(__self__, "http_settings", http_settings) + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if identity_providers and not isinstance(identity_providers, dict): + raise TypeError("Expected argument 'identity_providers' to be a dict") + pulumi.set(__self__, "identity_providers", identity_providers) + if kind and not isinstance(kind, str): + raise TypeError("Expected argument 'kind' to be a str") + pulumi.set(__self__, "kind", kind) + if login and not isinstance(login, dict): + raise TypeError("Expected argument 'login' to be a dict") + pulumi.set(__self__, "login", login) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if platform and not isinstance(platform, dict): + raise TypeError("Expected argument 'platform' to be a dict") + pulumi.set(__self__, "platform", platform) + if type and not isinstance(type, str): + raise TypeError("Expected argument 'type' to be a str") + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter(name="azureApiVersion") + def azure_api_version(self) -> builtins.str: + """ + The Azure API version of the resource. + """ + return pulumi.get(self, "azure_api_version") + + @property + @pulumi.getter(name="globalValidation") + def global_validation(self) -> Optional['outputs.GlobalValidationResponse']: + """ + The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "global_validation") + + @property + @pulumi.getter(name="httpSettings") + def http_settings(self) -> Optional['outputs.HttpSettingsResponse']: + """ + The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + """ + return pulumi.get(self, "http_settings") + + @property + @pulumi.getter + def id(self) -> builtins.str: + """ + Resource Id. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter(name="identityProviders") + def identity_providers(self) -> Optional['outputs.IdentityProvidersResponse']: + """ + The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + """ + return pulumi.get(self, "identity_providers") + + @property + @pulumi.getter + def kind(self) -> Optional[builtins.str]: + """ + Kind of resource. + """ + return pulumi.get(self, "kind") + + @property + @pulumi.getter + def login(self) -> Optional['outputs.LoginResponse']: + """ + The configuration settings of the login flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "login") + + @property + @pulumi.getter + def name(self) -> builtins.str: + """ + Resource Name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def platform(self) -> Optional['outputs.AuthPlatformResponse']: + """ + The configuration settings of the platform of App Service Authentication/Authorization. + """ + return pulumi.get(self, "platform") + + @property + @pulumi.getter + def type(self) -> builtins.str: + """ + Resource type. + """ + return pulumi.get(self, "type") + + +class AwaitableGetWebAppAuthSettingsV2WithoutSecretsSlotResult(GetWebAppAuthSettingsV2WithoutSecretsSlotResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetWebAppAuthSettingsV2WithoutSecretsSlotResult( + azure_api_version=self.azure_api_version, + global_validation=self.global_validation, + http_settings=self.http_settings, + id=self.id, + identity_providers=self.identity_providers, + kind=self.kind, + login=self.login, + name=self.name, + platform=self.platform, + type=self.type) + + +def get_web_app_auth_settings_v2_without_secrets_slot(name: Optional[builtins.str] = None, + resource_group_name: Optional[builtins.str] = None, + slot: Optional[builtins.str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWebAppAuthSettingsV2WithoutSecretsSlotResult: + """ + Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + + Uses Azure REST API version 2024-04-01. + + Other available API versions: 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. + + + :param builtins.str name: Name of the app. + :param builtins.str resource_group_name: Name of the resource group to which the resource belongs. + :param builtins.str slot: Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + """ + __args__ = dict() + __args__['name'] = name + __args__['resourceGroupName'] = resource_group_name + __args__['slot'] = slot + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('azure-native:web:getWebAppAuthSettingsV2WithoutSecretsSlot', __args__, opts=opts, typ=GetWebAppAuthSettingsV2WithoutSecretsSlotResult).value + + return AwaitableGetWebAppAuthSettingsV2WithoutSecretsSlotResult( + azure_api_version=pulumi.get(__ret__, 'azure_api_version'), + global_validation=pulumi.get(__ret__, 'global_validation'), + http_settings=pulumi.get(__ret__, 'http_settings'), + id=pulumi.get(__ret__, 'id'), + identity_providers=pulumi.get(__ret__, 'identity_providers'), + kind=pulumi.get(__ret__, 'kind'), + login=pulumi.get(__ret__, 'login'), + name=pulumi.get(__ret__, 'name'), + platform=pulumi.get(__ret__, 'platform'), + type=pulumi.get(__ret__, 'type')) +def get_web_app_auth_settings_v2_without_secrets_slot_output(name: Optional[pulumi.Input[builtins.str]] = None, + resource_group_name: Optional[pulumi.Input[builtins.str]] = None, + slot: Optional[pulumi.Input[builtins.str]] = None, + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetWebAppAuthSettingsV2WithoutSecretsSlotResult]: + """ + Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + + Uses Azure REST API version 2024-04-01. + + Other available API versions: 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. + + + :param builtins.str name: Name of the app. + :param builtins.str resource_group_name: Name of the resource group to which the resource belongs. + :param builtins.str slot: Name of the deployment slot. If a slot is not specified, the API will get the settings for the production slot. + """ + __args__ = dict() + __args__['name'] = name + __args__['resourceGroupName'] = resource_group_name + __args__['slot'] = slot + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('azure-native:web:getWebAppAuthSettingsV2WithoutSecretsSlot', __args__, opts=opts, typ=GetWebAppAuthSettingsV2WithoutSecretsSlotResult) + return __ret__.apply(lambda __response__: GetWebAppAuthSettingsV2WithoutSecretsSlotResult( + azure_api_version=pulumi.get(__response__, 'azure_api_version'), + global_validation=pulumi.get(__response__, 'global_validation'), + http_settings=pulumi.get(__response__, 'http_settings'), + id=pulumi.get(__response__, 'id'), + identity_providers=pulumi.get(__response__, 'identity_providers'), + kind=pulumi.get(__response__, 'kind'), + login=pulumi.get(__response__, 'login'), + name=pulumi.get(__response__, 'name'), + platform=pulumi.get(__response__, 'platform'), + type=pulumi.get(__response__, 'type'))) diff --git a/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2.py b/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2.py index fb25a85b438f..1bd59b8df972 100644 --- a/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2.py +++ b/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2.py @@ -246,7 +246,7 @@ def _internal_init(__self__, __props__.__dict__["resource_group_name"] = resource_group_name __props__.__dict__["azure_api_version"] = None __props__.__dict__["type"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:web/v20200601:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20200901:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20201001:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20201201:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20210101:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20210115:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20210201:WebAppAuthSettingsV2")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:web/v20200601:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20200901:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20201001:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20201201:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20210101:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20210115:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20210201:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20210301:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20220301:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20220901:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20230101:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20231201:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20240401:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20241101:WebAppAuthSettingsV2")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(WebAppAuthSettingsV2, __self__).__init__( 'azure-native:web:WebAppAuthSettingsV2', diff --git a/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_slot.py b/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_slot.py index 8e0d4193ea39..4fb90c920bcf 100644 --- a/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_slot.py +++ b/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_slot.py @@ -267,7 +267,7 @@ def _internal_init(__self__, __props__.__dict__["slot"] = slot __props__.__dict__["azure_api_version"] = None __props__.__dict__["type"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:web/v20200601:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20200901:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20201001:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20201201:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20210101:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20210115:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20210201:WebAppAuthSettingsV2Slot")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:web/v20200601:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20200901:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20201001:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20201201:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20210101:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20210115:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20210201:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20210301:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20220301:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20220901:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20230101:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20231201:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20240401:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20241101:WebAppAuthSettingsV2Slot")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(WebAppAuthSettingsV2Slot, __self__).__init__( 'azure-native:web:WebAppAuthSettingsV2Slot', diff --git a/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_without_secrets.py b/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_without_secrets.py new file mode 100644 index 000000000000..838dfb19902d --- /dev/null +++ b/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_without_secrets.py @@ -0,0 +1,355 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs +from ._enums import * +from ._inputs import * + +__all__ = ['WebAppAuthSettingsV2WithoutSecretsArgs', 'WebAppAuthSettingsV2WithoutSecrets'] + +@pulumi.input_type +class WebAppAuthSettingsV2WithoutSecretsArgs: + def __init__(__self__, *, + name: pulumi.Input[builtins.str], + resource_group_name: pulumi.Input[builtins.str], + global_validation: Optional[pulumi.Input['GlobalValidationArgs']] = None, + http_settings: Optional[pulumi.Input['HttpSettingsArgs']] = None, + identity_providers: Optional[pulumi.Input['IdentityProvidersArgs']] = None, + kind: Optional[pulumi.Input[builtins.str]] = None, + login: Optional[pulumi.Input['LoginArgs']] = None, + platform: Optional[pulumi.Input['AuthPlatformArgs']] = None): + """ + The set of arguments for constructing a WebAppAuthSettingsV2WithoutSecrets resource. + :param pulumi.Input[builtins.str] name: Name of web app. + :param pulumi.Input[builtins.str] resource_group_name: Name of the resource group to which the resource belongs. + :param pulumi.Input['GlobalValidationArgs'] global_validation: The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + :param pulumi.Input['HttpSettingsArgs'] http_settings: The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + :param pulumi.Input['IdentityProvidersArgs'] identity_providers: The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + :param pulumi.Input[builtins.str] kind: Kind of resource. + :param pulumi.Input['LoginArgs'] login: The configuration settings of the login flow of users using App Service Authentication/Authorization. + :param pulumi.Input['AuthPlatformArgs'] platform: The configuration settings of the platform of App Service Authentication/Authorization. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "resource_group_name", resource_group_name) + if global_validation is not None: + pulumi.set(__self__, "global_validation", global_validation) + if http_settings is not None: + pulumi.set(__self__, "http_settings", http_settings) + if identity_providers is not None: + pulumi.set(__self__, "identity_providers", identity_providers) + if kind is not None: + pulumi.set(__self__, "kind", kind) + if login is not None: + pulumi.set(__self__, "login", login) + if platform is not None: + pulumi.set(__self__, "platform", platform) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[builtins.str]: + """ + Name of web app. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[builtins.str]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> pulumi.Input[builtins.str]: + """ + Name of the resource group to which the resource belongs. + """ + return pulumi.get(self, "resource_group_name") + + @resource_group_name.setter + def resource_group_name(self, value: pulumi.Input[builtins.str]): + pulumi.set(self, "resource_group_name", value) + + @property + @pulumi.getter(name="globalValidation") + def global_validation(self) -> Optional[pulumi.Input['GlobalValidationArgs']]: + """ + The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "global_validation") + + @global_validation.setter + def global_validation(self, value: Optional[pulumi.Input['GlobalValidationArgs']]): + pulumi.set(self, "global_validation", value) + + @property + @pulumi.getter(name="httpSettings") + def http_settings(self) -> Optional[pulumi.Input['HttpSettingsArgs']]: + """ + The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + """ + return pulumi.get(self, "http_settings") + + @http_settings.setter + def http_settings(self, value: Optional[pulumi.Input['HttpSettingsArgs']]): + pulumi.set(self, "http_settings", value) + + @property + @pulumi.getter(name="identityProviders") + def identity_providers(self) -> Optional[pulumi.Input['IdentityProvidersArgs']]: + """ + The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + """ + return pulumi.get(self, "identity_providers") + + @identity_providers.setter + def identity_providers(self, value: Optional[pulumi.Input['IdentityProvidersArgs']]): + pulumi.set(self, "identity_providers", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[builtins.str]]: + """ + Kind of resource. + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[builtins.str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def login(self) -> Optional[pulumi.Input['LoginArgs']]: + """ + The configuration settings of the login flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "login") + + @login.setter + def login(self, value: Optional[pulumi.Input['LoginArgs']]): + pulumi.set(self, "login", value) + + @property + @pulumi.getter + def platform(self) -> Optional[pulumi.Input['AuthPlatformArgs']]: + """ + The configuration settings of the platform of App Service Authentication/Authorization. + """ + return pulumi.get(self, "platform") + + @platform.setter + def platform(self, value: Optional[pulumi.Input['AuthPlatformArgs']]): + pulumi.set(self, "platform", value) + + +@pulumi.type_token("azure-native:web:WebAppAuthSettingsV2WithoutSecrets") +class WebAppAuthSettingsV2WithoutSecrets(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + global_validation: Optional[pulumi.Input[Union['GlobalValidationArgs', 'GlobalValidationArgsDict']]] = None, + http_settings: Optional[pulumi.Input[Union['HttpSettingsArgs', 'HttpSettingsArgsDict']]] = None, + identity_providers: Optional[pulumi.Input[Union['IdentityProvidersArgs', 'IdentityProvidersArgsDict']]] = None, + kind: Optional[pulumi.Input[builtins.str]] = None, + login: Optional[pulumi.Input[Union['LoginArgs', 'LoginArgsDict']]] = None, + name: Optional[pulumi.Input[builtins.str]] = None, + platform: Optional[pulumi.Input[Union['AuthPlatformArgs', 'AuthPlatformArgsDict']]] = None, + resource_group_name: Optional[pulumi.Input[builtins.str]] = None, + __props__=None): + """ + Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + + Uses Azure REST API version 2024-04-01. + + Other available API versions: 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. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['GlobalValidationArgs', 'GlobalValidationArgsDict']] global_validation: The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + :param pulumi.Input[Union['HttpSettingsArgs', 'HttpSettingsArgsDict']] http_settings: The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + :param pulumi.Input[Union['IdentityProvidersArgs', 'IdentityProvidersArgsDict']] identity_providers: The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + :param pulumi.Input[builtins.str] kind: Kind of resource. + :param pulumi.Input[Union['LoginArgs', 'LoginArgsDict']] login: The configuration settings of the login flow of users using App Service Authentication/Authorization. + :param pulumi.Input[builtins.str] name: Name of web app. + :param pulumi.Input[Union['AuthPlatformArgs', 'AuthPlatformArgsDict']] platform: The configuration settings of the platform of App Service Authentication/Authorization. + :param pulumi.Input[builtins.str] resource_group_name: Name of the resource group to which the resource belongs. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: WebAppAuthSettingsV2WithoutSecretsArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + + Uses Azure REST API version 2024-04-01. + + Other available API versions: 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. + + :param str resource_name: The name of the resource. + :param WebAppAuthSettingsV2WithoutSecretsArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(WebAppAuthSettingsV2WithoutSecretsArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + global_validation: Optional[pulumi.Input[Union['GlobalValidationArgs', 'GlobalValidationArgsDict']]] = None, + http_settings: Optional[pulumi.Input[Union['HttpSettingsArgs', 'HttpSettingsArgsDict']]] = None, + identity_providers: Optional[pulumi.Input[Union['IdentityProvidersArgs', 'IdentityProvidersArgsDict']]] = None, + kind: Optional[pulumi.Input[builtins.str]] = None, + login: Optional[pulumi.Input[Union['LoginArgs', 'LoginArgsDict']]] = None, + name: Optional[pulumi.Input[builtins.str]] = None, + platform: Optional[pulumi.Input[Union['AuthPlatformArgs', 'AuthPlatformArgsDict']]] = None, + resource_group_name: Optional[pulumi.Input[builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = WebAppAuthSettingsV2WithoutSecretsArgs.__new__(WebAppAuthSettingsV2WithoutSecretsArgs) + + __props__.__dict__["global_validation"] = global_validation + __props__.__dict__["http_settings"] = http_settings + __props__.__dict__["identity_providers"] = identity_providers + __props__.__dict__["kind"] = kind + __props__.__dict__["login"] = login + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["platform"] = platform + if resource_group_name is None and not opts.urn: + raise TypeError("Missing required property 'resource_group_name'") + __props__.__dict__["resource_group_name"] = resource_group_name + __props__.__dict__["azure_api_version"] = None + __props__.__dict__["type"] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:web/v20200601:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20200901:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20201001:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20201001:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20201201:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20210101:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20210115:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20210201:WebAppAuthSettingsV2"), pulumi.Alias(type_="azure-native:web/v20210201:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20210301:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20220301:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20220901:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20230101:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20231201:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20240401:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web/v20241101:WebAppAuthSettingsV2WithoutSecrets"), pulumi.Alias(type_="azure-native:web:WebAppAuthSettingsV2")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(WebAppAuthSettingsV2WithoutSecrets, __self__).__init__( + 'azure-native:web:WebAppAuthSettingsV2WithoutSecrets', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'WebAppAuthSettingsV2WithoutSecrets': + """ + Get an existing WebAppAuthSettingsV2WithoutSecrets resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = WebAppAuthSettingsV2WithoutSecretsArgs.__new__(WebAppAuthSettingsV2WithoutSecretsArgs) + + __props__.__dict__["azure_api_version"] = None + __props__.__dict__["global_validation"] = None + __props__.__dict__["http_settings"] = None + __props__.__dict__["identity_providers"] = None + __props__.__dict__["kind"] = None + __props__.__dict__["login"] = None + __props__.__dict__["name"] = None + __props__.__dict__["platform"] = None + __props__.__dict__["type"] = None + return WebAppAuthSettingsV2WithoutSecrets(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="azureApiVersion") + def azure_api_version(self) -> pulumi.Output[builtins.str]: + """ + The Azure API version of the resource. + """ + return pulumi.get(self, "azure_api_version") + + @property + @pulumi.getter(name="globalValidation") + def global_validation(self) -> pulumi.Output[Optional['outputs.GlobalValidationResponse']]: + """ + The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "global_validation") + + @property + @pulumi.getter(name="httpSettings") + def http_settings(self) -> pulumi.Output[Optional['outputs.HttpSettingsResponse']]: + """ + The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + """ + return pulumi.get(self, "http_settings") + + @property + @pulumi.getter(name="identityProviders") + def identity_providers(self) -> pulumi.Output[Optional['outputs.IdentityProvidersResponse']]: + """ + The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + """ + return pulumi.get(self, "identity_providers") + + @property + @pulumi.getter + def kind(self) -> pulumi.Output[Optional[builtins.str]]: + """ + Kind of resource. + """ + return pulumi.get(self, "kind") + + @property + @pulumi.getter + def login(self) -> pulumi.Output[Optional['outputs.LoginResponse']]: + """ + The configuration settings of the login flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "login") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[builtins.str]: + """ + Resource Name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def platform(self) -> pulumi.Output[Optional['outputs.AuthPlatformResponse']]: + """ + The configuration settings of the platform of App Service Authentication/Authorization. + """ + return pulumi.get(self, "platform") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[builtins.str]: + """ + Resource type. + """ + return pulumi.get(self, "type") + diff --git a/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_without_secrets_slot.py b/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_without_secrets_slot.py new file mode 100644 index 000000000000..b1b3e5b7e3e3 --- /dev/null +++ b/sdk/python/pulumi_azure_native/web/web_app_auth_settings_v2_without_secrets_slot.py @@ -0,0 +1,376 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumi-language-python. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import builtins +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities +from . import outputs +from ._enums import * +from ._inputs import * + +__all__ = ['WebAppAuthSettingsV2WithoutSecretsSlotArgs', 'WebAppAuthSettingsV2WithoutSecretsSlot'] + +@pulumi.input_type +class WebAppAuthSettingsV2WithoutSecretsSlotArgs: + def __init__(__self__, *, + name: pulumi.Input[builtins.str], + resource_group_name: pulumi.Input[builtins.str], + slot: pulumi.Input[builtins.str], + global_validation: Optional[pulumi.Input['GlobalValidationArgs']] = None, + http_settings: Optional[pulumi.Input['HttpSettingsArgs']] = None, + identity_providers: Optional[pulumi.Input['IdentityProvidersArgs']] = None, + kind: Optional[pulumi.Input[builtins.str]] = None, + login: Optional[pulumi.Input['LoginArgs']] = None, + platform: Optional[pulumi.Input['AuthPlatformArgs']] = None): + """ + The set of arguments for constructing a WebAppAuthSettingsV2WithoutSecretsSlot resource. + :param pulumi.Input[builtins.str] name: Name of web app. + :param pulumi.Input[builtins.str] resource_group_name: Name of the resource group to which the resource belongs. + :param pulumi.Input[builtins.str] slot: Name of web app slot. If not specified then will default to production slot. + :param pulumi.Input['GlobalValidationArgs'] global_validation: The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + :param pulumi.Input['HttpSettingsArgs'] http_settings: The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + :param pulumi.Input['IdentityProvidersArgs'] identity_providers: The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + :param pulumi.Input[builtins.str] kind: Kind of resource. + :param pulumi.Input['LoginArgs'] login: The configuration settings of the login flow of users using App Service Authentication/Authorization. + :param pulumi.Input['AuthPlatformArgs'] platform: The configuration settings of the platform of App Service Authentication/Authorization. + """ + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "resource_group_name", resource_group_name) + pulumi.set(__self__, "slot", slot) + if global_validation is not None: + pulumi.set(__self__, "global_validation", global_validation) + if http_settings is not None: + pulumi.set(__self__, "http_settings", http_settings) + if identity_providers is not None: + pulumi.set(__self__, "identity_providers", identity_providers) + if kind is not None: + pulumi.set(__self__, "kind", kind) + if login is not None: + pulumi.set(__self__, "login", login) + if platform is not None: + pulumi.set(__self__, "platform", platform) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[builtins.str]: + """ + Name of web app. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[builtins.str]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> pulumi.Input[builtins.str]: + """ + Name of the resource group to which the resource belongs. + """ + return pulumi.get(self, "resource_group_name") + + @resource_group_name.setter + def resource_group_name(self, value: pulumi.Input[builtins.str]): + pulumi.set(self, "resource_group_name", value) + + @property + @pulumi.getter + def slot(self) -> pulumi.Input[builtins.str]: + """ + Name of web app slot. If not specified then will default to production slot. + """ + return pulumi.get(self, "slot") + + @slot.setter + def slot(self, value: pulumi.Input[builtins.str]): + pulumi.set(self, "slot", value) + + @property + @pulumi.getter(name="globalValidation") + def global_validation(self) -> Optional[pulumi.Input['GlobalValidationArgs']]: + """ + The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "global_validation") + + @global_validation.setter + def global_validation(self, value: Optional[pulumi.Input['GlobalValidationArgs']]): + pulumi.set(self, "global_validation", value) + + @property + @pulumi.getter(name="httpSettings") + def http_settings(self) -> Optional[pulumi.Input['HttpSettingsArgs']]: + """ + The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + """ + return pulumi.get(self, "http_settings") + + @http_settings.setter + def http_settings(self, value: Optional[pulumi.Input['HttpSettingsArgs']]): + pulumi.set(self, "http_settings", value) + + @property + @pulumi.getter(name="identityProviders") + def identity_providers(self) -> Optional[pulumi.Input['IdentityProvidersArgs']]: + """ + The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + """ + return pulumi.get(self, "identity_providers") + + @identity_providers.setter + def identity_providers(self, value: Optional[pulumi.Input['IdentityProvidersArgs']]): + pulumi.set(self, "identity_providers", value) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[builtins.str]]: + """ + Kind of resource. + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[builtins.str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def login(self) -> Optional[pulumi.Input['LoginArgs']]: + """ + The configuration settings of the login flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "login") + + @login.setter + def login(self, value: Optional[pulumi.Input['LoginArgs']]): + pulumi.set(self, "login", value) + + @property + @pulumi.getter + def platform(self) -> Optional[pulumi.Input['AuthPlatformArgs']]: + """ + The configuration settings of the platform of App Service Authentication/Authorization. + """ + return pulumi.get(self, "platform") + + @platform.setter + def platform(self, value: Optional[pulumi.Input['AuthPlatformArgs']]): + pulumi.set(self, "platform", value) + + +@pulumi.type_token("azure-native:web:WebAppAuthSettingsV2WithoutSecretsSlot") +class WebAppAuthSettingsV2WithoutSecretsSlot(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + global_validation: Optional[pulumi.Input[Union['GlobalValidationArgs', 'GlobalValidationArgsDict']]] = None, + http_settings: Optional[pulumi.Input[Union['HttpSettingsArgs', 'HttpSettingsArgsDict']]] = None, + identity_providers: Optional[pulumi.Input[Union['IdentityProvidersArgs', 'IdentityProvidersArgsDict']]] = None, + kind: Optional[pulumi.Input[builtins.str]] = None, + login: Optional[pulumi.Input[Union['LoginArgs', 'LoginArgsDict']]] = None, + name: Optional[pulumi.Input[builtins.str]] = None, + platform: Optional[pulumi.Input[Union['AuthPlatformArgs', 'AuthPlatformArgsDict']]] = None, + resource_group_name: Optional[pulumi.Input[builtins.str]] = None, + slot: Optional[pulumi.Input[builtins.str]] = None, + __props__=None): + """ + Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + + Uses Azure REST API version 2024-04-01. + + Other available API versions: 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. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['GlobalValidationArgs', 'GlobalValidationArgsDict']] global_validation: The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + :param pulumi.Input[Union['HttpSettingsArgs', 'HttpSettingsArgsDict']] http_settings: The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + :param pulumi.Input[Union['IdentityProvidersArgs', 'IdentityProvidersArgsDict']] identity_providers: The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + :param pulumi.Input[builtins.str] kind: Kind of resource. + :param pulumi.Input[Union['LoginArgs', 'LoginArgsDict']] login: The configuration settings of the login flow of users using App Service Authentication/Authorization. + :param pulumi.Input[builtins.str] name: Name of web app. + :param pulumi.Input[Union['AuthPlatformArgs', 'AuthPlatformArgsDict']] platform: The configuration settings of the platform of App Service Authentication/Authorization. + :param pulumi.Input[builtins.str] resource_group_name: Name of the resource group to which the resource belongs. + :param pulumi.Input[builtins.str] slot: Name of web app slot. If not specified then will default to production slot. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: WebAppAuthSettingsV2WithoutSecretsSlotArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Configuration settings for the Azure App Service Authentication / Authorization V2 feature. + + Uses Azure REST API version 2024-04-01. + + Other available API versions: 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. + + :param str resource_name: The name of the resource. + :param WebAppAuthSettingsV2WithoutSecretsSlotArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(WebAppAuthSettingsV2WithoutSecretsSlotArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + global_validation: Optional[pulumi.Input[Union['GlobalValidationArgs', 'GlobalValidationArgsDict']]] = None, + http_settings: Optional[pulumi.Input[Union['HttpSettingsArgs', 'HttpSettingsArgsDict']]] = None, + identity_providers: Optional[pulumi.Input[Union['IdentityProvidersArgs', 'IdentityProvidersArgsDict']]] = None, + kind: Optional[pulumi.Input[builtins.str]] = None, + login: Optional[pulumi.Input[Union['LoginArgs', 'LoginArgsDict']]] = None, + name: Optional[pulumi.Input[builtins.str]] = None, + platform: Optional[pulumi.Input[Union['AuthPlatformArgs', 'AuthPlatformArgsDict']]] = None, + resource_group_name: Optional[pulumi.Input[builtins.str]] = None, + slot: Optional[pulumi.Input[builtins.str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = WebAppAuthSettingsV2WithoutSecretsSlotArgs.__new__(WebAppAuthSettingsV2WithoutSecretsSlotArgs) + + __props__.__dict__["global_validation"] = global_validation + __props__.__dict__["http_settings"] = http_settings + __props__.__dict__["identity_providers"] = identity_providers + __props__.__dict__["kind"] = kind + __props__.__dict__["login"] = login + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + __props__.__dict__["platform"] = platform + if resource_group_name is None and not opts.urn: + raise TypeError("Missing required property 'resource_group_name'") + __props__.__dict__["resource_group_name"] = resource_group_name + if slot is None and not opts.urn: + raise TypeError("Missing required property 'slot'") + __props__.__dict__["slot"] = slot + __props__.__dict__["azure_api_version"] = None + __props__.__dict__["type"] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:web/v20200601:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20200901:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20201001:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20201001:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20201201:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20210101:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20210115:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20210201:WebAppAuthSettingsV2Slot"), pulumi.Alias(type_="azure-native:web/v20210201:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20210301:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20220301:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20220901:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20230101:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20231201:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20240401:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web/v20241101:WebAppAuthSettingsV2WithoutSecretsSlot"), pulumi.Alias(type_="azure-native:web:WebAppAuthSettingsV2Slot")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(WebAppAuthSettingsV2WithoutSecretsSlot, __self__).__init__( + 'azure-native:web:WebAppAuthSettingsV2WithoutSecretsSlot', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'WebAppAuthSettingsV2WithoutSecretsSlot': + """ + Get an existing WebAppAuthSettingsV2WithoutSecretsSlot resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = WebAppAuthSettingsV2WithoutSecretsSlotArgs.__new__(WebAppAuthSettingsV2WithoutSecretsSlotArgs) + + __props__.__dict__["azure_api_version"] = None + __props__.__dict__["global_validation"] = None + __props__.__dict__["http_settings"] = None + __props__.__dict__["identity_providers"] = None + __props__.__dict__["kind"] = None + __props__.__dict__["login"] = None + __props__.__dict__["name"] = None + __props__.__dict__["platform"] = None + __props__.__dict__["type"] = None + return WebAppAuthSettingsV2WithoutSecretsSlot(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="azureApiVersion") + def azure_api_version(self) -> pulumi.Output[builtins.str]: + """ + The Azure API version of the resource. + """ + return pulumi.get(self, "azure_api_version") + + @property + @pulumi.getter(name="globalValidation") + def global_validation(self) -> pulumi.Output[Optional['outputs.GlobalValidationResponse']]: + """ + The configuration settings that determines the validation flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "global_validation") + + @property + @pulumi.getter(name="httpSettings") + def http_settings(self) -> pulumi.Output[Optional['outputs.HttpSettingsResponse']]: + """ + The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization. + """ + return pulumi.get(self, "http_settings") + + @property + @pulumi.getter(name="identityProviders") + def identity_providers(self) -> pulumi.Output[Optional['outputs.IdentityProvidersResponse']]: + """ + The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization. + """ + return pulumi.get(self, "identity_providers") + + @property + @pulumi.getter + def kind(self) -> pulumi.Output[Optional[builtins.str]]: + """ + Kind of resource. + """ + return pulumi.get(self, "kind") + + @property + @pulumi.getter + def login(self) -> pulumi.Output[Optional['outputs.LoginResponse']]: + """ + The configuration settings of the login flow of users using App Service Authentication/Authorization. + """ + return pulumi.get(self, "login") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[builtins.str]: + """ + Resource Name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def platform(self) -> pulumi.Output[Optional['outputs.AuthPlatformResponse']]: + """ + The configuration settings of the platform of App Service Authentication/Authorization. + """ + return pulumi.get(self, "platform") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[builtins.str]: + """ + Resource type. + """ + return pulumi.get(self, "type") + diff --git a/versions/v3.yaml b/versions/v3.yaml index 3da499ee5c45..cb6da6fa962e 100644 --- a/versions/v3.yaml +++ b/versions/v3.yaml @@ -13191,6 +13191,16 @@ Web: SpecFilePath: specification/web/resource-manager/Microsoft.Web/AppService/stable/2021-02-01/WebApps.json ResourceUri: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2 RpNamespace: Microsoft.Web + WebAppAuthSettingsV2WithoutSecrets: + ApiVersion: "2024-04-01" + SpecFilePath: specification/web/resource-manager/Microsoft.Web/AppService/stable/2024-04-01/WebApps.json + ResourceUri: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/authsettingsV2 + RpNamespace: Microsoft.Web + WebAppAuthSettingsV2WithoutSecretsSlot: + ApiVersion: "2024-04-01" + SpecFilePath: specification/web/resource-manager/Microsoft.Web/AppService/stable/2024-04-01/WebApps.json + ResourceUri: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2 + RpNamespace: Microsoft.Web WebAppAzureStorageAccounts: ApiVersion: "2024-04-01" SpecFilePath: specification/web/resource-manager/Microsoft.Web/AppService/stable/2024-04-01/WebApps.json