UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

988 lines 1.51 MB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39; Object.defineProperty(exports, "__esModule", { value: true }); exports.WindowsWebAppAuthSettingsV2LoginOutputReference = exports.windowsWebAppAuthSettingsV2LoginToHclTerraform = exports.windowsWebAppAuthSettingsV2LoginToTerraform = exports.WindowsWebAppAuthSettingsV2GoogleV2OutputReference = exports.windowsWebAppAuthSettingsV2GoogleV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2GoogleV2ToTerraform = exports.WindowsWebAppAuthSettingsV2GithubV2OutputReference = exports.windowsWebAppAuthSettingsV2GithubV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2GithubV2ToTerraform = exports.WindowsWebAppAuthSettingsV2FacebookV2OutputReference = exports.windowsWebAppAuthSettingsV2FacebookV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2FacebookV2ToTerraform = exports.WindowsWebAppAuthSettingsV2CustomOidcV2List = exports.WindowsWebAppAuthSettingsV2CustomOidcV2OutputReference = exports.windowsWebAppAuthSettingsV2CustomOidcV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2CustomOidcV2ToTerraform = exports.WindowsWebAppAuthSettingsV2AzureStaticWebAppV2OutputReference = exports.windowsWebAppAuthSettingsV2AzureStaticWebAppV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2AzureStaticWebAppV2ToTerraform = exports.WindowsWebAppAuthSettingsV2AppleV2OutputReference = exports.windowsWebAppAuthSettingsV2AppleV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2AppleV2ToTerraform = exports.WindowsWebAppAuthSettingsV2ActiveDirectoryV2OutputReference = exports.windowsWebAppAuthSettingsV2ActiveDirectoryV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2ActiveDirectoryV2ToTerraform = exports.WindowsWebAppAuthSettingsOutputReference = exports.windowsWebAppAuthSettingsToHclTerraform = exports.windowsWebAppAuthSettingsToTerraform = exports.WindowsWebAppAuthSettingsTwitterOutputReference = exports.windowsWebAppAuthSettingsTwitterToHclTerraform = exports.windowsWebAppAuthSettingsTwitterToTerraform = exports.WindowsWebAppAuthSettingsMicrosoftOutputReference = exports.windowsWebAppAuthSettingsMicrosoftToHclTerraform = exports.windowsWebAppAuthSettingsMicrosoftToTerraform = exports.WindowsWebAppAuthSettingsGoogleOutputReference = exports.windowsWebAppAuthSettingsGoogleToHclTerraform = exports.windowsWebAppAuthSettingsGoogleToTerraform = exports.WindowsWebAppAuthSettingsGithubOutputReference = exports.windowsWebAppAuthSettingsGithubToHclTerraform = exports.windowsWebAppAuthSettingsGithubToTerraform = exports.WindowsWebAppAuthSettingsFacebookOutputReference = exports.windowsWebAppAuthSettingsFacebookToHclTerraform = exports.windowsWebAppAuthSettingsFacebookToTerraform = exports.WindowsWebAppAuthSettingsActiveDirectoryOutputReference = exports.windowsWebAppAuthSettingsActiveDirectoryToHclTerraform = exports.windowsWebAppAuthSettingsActiveDirectoryToTerraform = exports.WindowsWebAppSiteCredentialList = exports.WindowsWebAppSiteCredentialOutputReference = exports.windowsWebAppSiteCredentialToHclTerraform = exports.windowsWebAppSiteCredentialToTerraform = void 0; exports.windowsWebAppSiteConfigAutoHealSettingTriggerRequestsToTerraform = exports.WindowsWebAppSiteConfigAutoHealSettingActionOutputReference = exports.windowsWebAppSiteConfigAutoHealSettingActionToHclTerraform = exports.windowsWebAppSiteConfigAutoHealSettingActionToTerraform = exports.WindowsWebAppSiteConfigAutoHealSettingActionCustomActionOutputReference = exports.windowsWebAppSiteConfigAutoHealSettingActionCustomActionToHclTerraform = exports.windowsWebAppSiteConfigAutoHealSettingActionCustomActionToTerraform = exports.WindowsWebAppSiteConfigApplicationStackOutputReference = exports.windowsWebAppSiteConfigApplicationStackToHclTerraform = exports.windowsWebAppSiteConfigApplicationStackToTerraform = exports.WindowsWebAppLogsOutputReference = exports.windowsWebAppLogsToHclTerraform = exports.windowsWebAppLogsToTerraform = exports.WindowsWebAppLogsHttpLogsOutputReference = exports.windowsWebAppLogsHttpLogsToHclTerraform = exports.windowsWebAppLogsHttpLogsToTerraform = exports.WindowsWebAppLogsHttpLogsFileSystemOutputReference = exports.windowsWebAppLogsHttpLogsFileSystemToHclTerraform = exports.windowsWebAppLogsHttpLogsFileSystemToTerraform = exports.WindowsWebAppLogsHttpLogsAzureBlobStorageOutputReference = exports.windowsWebAppLogsHttpLogsAzureBlobStorageToHclTerraform = exports.windowsWebAppLogsHttpLogsAzureBlobStorageToTerraform = exports.WindowsWebAppLogsApplicationLogsOutputReference = exports.windowsWebAppLogsApplicationLogsToHclTerraform = exports.windowsWebAppLogsApplicationLogsToTerraform = exports.WindowsWebAppLogsApplicationLogsAzureBlobStorageOutputReference = exports.windowsWebAppLogsApplicationLogsAzureBlobStorageToHclTerraform = exports.windowsWebAppLogsApplicationLogsAzureBlobStorageToTerraform = exports.WindowsWebAppIdentityOutputReference = exports.windowsWebAppIdentityToHclTerraform = exports.windowsWebAppIdentityToTerraform = exports.WindowsWebAppConnectionStringList = exports.WindowsWebAppConnectionStringOutputReference = exports.windowsWebAppConnectionStringToHclTerraform = exports.windowsWebAppConnectionStringToTerraform = exports.WindowsWebAppBackupOutputReference = exports.windowsWebAppBackupToHclTerraform = exports.windowsWebAppBackupToTerraform = exports.WindowsWebAppBackupScheduleOutputReference = exports.windowsWebAppBackupScheduleToHclTerraform = exports.windowsWebAppBackupScheduleToTerraform = exports.WindowsWebAppAuthSettingsV2OutputReference = exports.windowsWebAppAuthSettingsV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2ToTerraform = exports.WindowsWebAppAuthSettingsV2TwitterV2OutputReference = exports.windowsWebAppAuthSettingsV2TwitterV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2TwitterV2ToTerraform = exports.WindowsWebAppAuthSettingsV2MicrosoftV2OutputReference = exports.windowsWebAppAuthSettingsV2MicrosoftV2ToHclTerraform = exports.windowsWebAppAuthSettingsV2MicrosoftV2ToTerraform = void 0; exports.WindowsWebAppSiteConfigVirtualApplicationList = exports.WindowsWebAppSiteConfigVirtualApplicationOutputReference = exports.windowsWebAppSiteConfigVirtualApplicationToHclTerraform = exports.windowsWebAppSiteConfigVirtualApplicationToTerraform = exports.WindowsWebAppSiteConfigVirtualApplicationVirtualDirectoryList = exports.WindowsWebAppSiteConfigVirtualApplicationVirtualDirectoryOutputReference = exports.windowsWebAppSiteConfigVirtualApplicationVirtualDirectoryToHclTerraform = exports.windowsWebAppSiteConfigVirtualApplicationVirtualDirectoryToTerraform = exports.WindowsWebAppSiteConfigScmIpRestrictionList = exports.WindowsWebAppSiteConfigScmIpRestrictionOutputReference = exports.windowsWebAppSiteConfigScmIpRestrictionToHclTerraform = exports.windowsWebAppSiteConfigScmIpRestrictionToTerraform = exports.WindowsWebAppSiteConfigScmIpRestrictionHeadersList = exports.WindowsWebAppSiteConfigScmIpRestrictionHeadersOutputReference = exports.windowsWebAppSiteConfigScmIpRestrictionHeadersToHclTerraform = exports.windowsWebAppSiteConfigScmIpRestrictionHeadersToTerraform = exports.WindowsWebAppSiteConfigIpRestrictionList = exports.WindowsWebAppSiteConfigIpRestrictionOutputReference = exports.windowsWebAppSiteConfigIpRestrictionToHclTerraform = exports.windowsWebAppSiteConfigIpRestrictionToTerraform = exports.WindowsWebAppSiteConfigIpRestrictionHeadersList = exports.WindowsWebAppSiteConfigIpRestrictionHeadersOutputReference = exports.windowsWebAppSiteConfigIpRestrictionHeadersToHclTerraform = exports.windowsWebAppSiteConfigIpRestrictionHeadersToTerraform = exports.WindowsWebAppSiteConfigHandlerMappingList = exports.WindowsWebAppSiteConfigHandlerMappingOutputReference = exports.windowsWebAppSiteConfigHandlerMappingToHclTerraform = exports.windowsWebAppSiteConfigHandlerMappingToTerraform = exports.WindowsWebAppSiteConfigCorsOutputReference = exports.windowsWebAppSiteConfigCorsToHclTerraform = exports.windowsWebAppSiteConfigCorsToTerraform = exports.WindowsWebAppSiteConfigAutoHealSettingOutputReference = exports.windowsWebAppSiteConfigAutoHealSettingToHclTerraform = exports.windowsWebAppSiteConfigAutoHealSettingToTerraform = exports.WindowsWebAppSiteConfigAutoHealSettingTriggerOutputReference = exports.windowsWebAppSiteConfigAutoHealSettingTriggerToHclTerraform = exports.windowsWebAppSiteConfigAutoHealSettingTriggerToTerraform = exports.WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeList = exports.WindowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeOutputReference = exports.windowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeToHclTerraform = exports.windowsWebAppSiteConfigAutoHealSettingTriggerStatusCodeToTerraform = exports.WindowsWebAppSiteConfigAutoHealSettingTriggerSlowRequestWithPathList = exports.WindowsWebAppSiteConfigAutoHealSettingTriggerSlowRequestWithPathOutputReference = exports.windowsWebAppSiteConfigAutoHealSettingTriggerSlowRequestWithPathToHclTerraform = exports.windowsWebAppSiteConfigAutoHealSettingTriggerSlowRequestWithPathToTerraform = exports.WindowsWebAppSiteConfigAutoHealSettingTriggerSlowRequestOutputReference = exports.windowsWebAppSiteConfigAutoHealSettingTriggerSlowRequestToHclTerraform = exports.windowsWebAppSiteConfigAutoHealSettingTriggerSlowRequestToTerraform = exports.WindowsWebAppSiteConfigAutoHealSettingTriggerRequestsOutputReference = exports.windowsWebAppSiteConfigAutoHealSettingTriggerRequestsToHclTerraform = void 0; exports.WindowsWebApp = exports.WindowsWebAppTimeoutsOutputReference = exports.windowsWebAppTimeoutsToHclTerraform = exports.windowsWebAppTimeoutsToTerraform = exports.WindowsWebAppStorageAccountList = exports.WindowsWebAppStorageAccountOutputReference = exports.windowsWebAppStorageAccountToHclTerraform = exports.windowsWebAppStorageAccountToTerraform = exports.WindowsWebAppStickySettingsOutputReference = exports.windowsWebAppStickySettingsToHclTerraform = exports.windowsWebAppStickySettingsToTerraform = exports.WindowsWebAppSiteConfigOutputReference = exports.windowsWebAppSiteConfigToHclTerraform = exports.windowsWebAppSiteConfigToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function windowsWebAppSiteCredentialToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.windowsWebAppSiteCredentialToTerraform = windowsWebAppSiteCredentialToTerraform; function windowsWebAppSiteCredentialToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.windowsWebAppSiteCredentialToHclTerraform = windowsWebAppSiteCredentialToHclTerraform; class WindowsWebAppSiteCredentialOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // password - computed: true, optional: false, required: false get password() { return this.getStringAttribute('password'); } } exports.WindowsWebAppSiteCredentialOutputReference = WindowsWebAppSiteCredentialOutputReference; _a = JSII_RTTI_SYMBOL_1; WindowsWebAppSiteCredentialOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.windowsWebApp.WindowsWebAppSiteCredentialOutputReference", version: "12.27.0" }; class WindowsWebAppSiteCredentialList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new WindowsWebAppSiteCredentialOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WindowsWebAppSiteCredentialList = WindowsWebAppSiteCredentialList; _b = JSII_RTTI_SYMBOL_1; WindowsWebAppSiteCredentialList[_b] = { fqn: "@cdktf/provider-azurerm.windowsWebApp.WindowsWebAppSiteCredentialList", version: "12.27.0" }; function windowsWebAppAuthSettingsActiveDirectoryToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { allowed_audiences: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedAudiences), client_id: cdktf.stringToTerraform(struct.clientId), client_secret: cdktf.stringToTerraform(struct.clientSecret), client_secret_setting_name: cdktf.stringToTerraform(struct.clientSecretSettingName), }; } exports.windowsWebAppAuthSettingsActiveDirectoryToTerraform = windowsWebAppAuthSettingsActiveDirectoryToTerraform; function windowsWebAppAuthSettingsActiveDirectoryToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { allowed_audiences: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedAudiences), isBlock: false, type: "list", storageClassType: "stringList", }, client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, client_secret: { value: cdktf.stringToHclTerraform(struct.clientSecret), isBlock: false, type: "simple", storageClassType: "string", }, client_secret_setting_name: { value: cdktf.stringToHclTerraform(struct.clientSecretSettingName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.windowsWebAppAuthSettingsActiveDirectoryToHclTerraform = windowsWebAppAuthSettingsActiveDirectoryToHclTerraform; class WindowsWebAppAuthSettingsActiveDirectoryOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._allowedAudiences !== undefined) { hasAnyValues = true; internalValueResult.allowedAudiences = this._allowedAudiences; } if (this._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._clientSecret !== undefined) { hasAnyValues = true; internalValueResult.clientSecret = this._clientSecret; } if (this._clientSecretSettingName !== undefined) { hasAnyValues = true; internalValueResult.clientSecretSettingName = this._clientSecretSettingName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowedAudiences = undefined; this._clientId = undefined; this._clientSecret = undefined; this._clientSecretSettingName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowedAudiences = value.allowedAudiences; this._clientId = value.clientId; this._clientSecret = value.clientSecret; this._clientSecretSettingName = value.clientSecretSettingName; } } get allowedAudiences() { return this.getListAttribute('allowed_audiences'); } set allowedAudiences(value) { this._allowedAudiences = value; } resetAllowedAudiences() { this._allowedAudiences = undefined; } // Temporarily expose input value. Use with caution. get allowedAudiencesInput() { return this._allowedAudiences; } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get clientSecret() { return this.getStringAttribute('client_secret'); } set clientSecret(value) { this._clientSecret = value; } resetClientSecret() { this._clientSecret = undefined; } // Temporarily expose input value. Use with caution. get clientSecretInput() { return this._clientSecret; } get clientSecretSettingName() { return this.getStringAttribute('client_secret_setting_name'); } set clientSecretSettingName(value) { this._clientSecretSettingName = value; } resetClientSecretSettingName() { this._clientSecretSettingName = undefined; } // Temporarily expose input value. Use with caution. get clientSecretSettingNameInput() { return this._clientSecretSettingName; } } exports.WindowsWebAppAuthSettingsActiveDirectoryOutputReference = WindowsWebAppAuthSettingsActiveDirectoryOutputReference; _c = JSII_RTTI_SYMBOL_1; WindowsWebAppAuthSettingsActiveDirectoryOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.windowsWebApp.WindowsWebAppAuthSettingsActiveDirectoryOutputReference", version: "12.27.0" }; function windowsWebAppAuthSettingsFacebookToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { app_id: cdktf.stringToTerraform(struct.appId), app_secret: cdktf.stringToTerraform(struct.appSecret), app_secret_setting_name: cdktf.stringToTerraform(struct.appSecretSettingName), oauth_scopes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.oauthScopes), }; } exports.windowsWebAppAuthSettingsFacebookToTerraform = windowsWebAppAuthSettingsFacebookToTerraform; function windowsWebAppAuthSettingsFacebookToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { app_id: { value: cdktf.stringToHclTerraform(struct.appId), isBlock: false, type: "simple", storageClassType: "string", }, app_secret: { value: cdktf.stringToHclTerraform(struct.appSecret), isBlock: false, type: "simple", storageClassType: "string", }, app_secret_setting_name: { value: cdktf.stringToHclTerraform(struct.appSecretSettingName), isBlock: false, type: "simple", storageClassType: "string", }, oauth_scopes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.oauthScopes), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.windowsWebAppAuthSettingsFacebookToHclTerraform = windowsWebAppAuthSettingsFacebookToHclTerraform; class WindowsWebAppAuthSettingsFacebookOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._appId !== undefined) { hasAnyValues = true; internalValueResult.appId = this._appId; } if (this._appSecret !== undefined) { hasAnyValues = true; internalValueResult.appSecret = this._appSecret; } if (this._appSecretSettingName !== undefined) { hasAnyValues = true; internalValueResult.appSecretSettingName = this._appSecretSettingName; } if (this._oauthScopes !== undefined) { hasAnyValues = true; internalValueResult.oauthScopes = this._oauthScopes; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._appId = undefined; this._appSecret = undefined; this._appSecretSettingName = undefined; this._oauthScopes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._appId = value.appId; this._appSecret = value.appSecret; this._appSecretSettingName = value.appSecretSettingName; this._oauthScopes = value.oauthScopes; } } get appId() { return this.getStringAttribute('app_id'); } set appId(value) { this._appId = value; } // Temporarily expose input value. Use with caution. get appIdInput() { return this._appId; } get appSecret() { return this.getStringAttribute('app_secret'); } set appSecret(value) { this._appSecret = value; } resetAppSecret() { this._appSecret = undefined; } // Temporarily expose input value. Use with caution. get appSecretInput() { return this._appSecret; } get appSecretSettingName() { return this.getStringAttribute('app_secret_setting_name'); } set appSecretSettingName(value) { this._appSecretSettingName = value; } resetAppSecretSettingName() { this._appSecretSettingName = undefined; } // Temporarily expose input value. Use with caution. get appSecretSettingNameInput() { return this._appSecretSettingName; } get oauthScopes() { return this.getListAttribute('oauth_scopes'); } set oauthScopes(value) { this._oauthScopes = value; } resetOauthScopes() { this._oauthScopes = undefined; } // Temporarily expose input value. Use with caution. get oauthScopesInput() { return this._oauthScopes; } } exports.WindowsWebAppAuthSettingsFacebookOutputReference = WindowsWebAppAuthSettingsFacebookOutputReference; _d = JSII_RTTI_SYMBOL_1; WindowsWebAppAuthSettingsFacebookOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.windowsWebApp.WindowsWebAppAuthSettingsFacebookOutputReference", version: "12.27.0" }; function windowsWebAppAuthSettingsGithubToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { client_id: cdktf.stringToTerraform(struct.clientId), client_secret: cdktf.stringToTerraform(struct.clientSecret), client_secret_setting_name: cdktf.stringToTerraform(struct.clientSecretSettingName), oauth_scopes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.oauthScopes), }; } exports.windowsWebAppAuthSettingsGithubToTerraform = windowsWebAppAuthSettingsGithubToTerraform; function windowsWebAppAuthSettingsGithubToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, client_secret: { value: cdktf.stringToHclTerraform(struct.clientSecret), isBlock: false, type: "simple", storageClassType: "string", }, client_secret_setting_name: { value: cdktf.stringToHclTerraform(struct.clientSecretSettingName), isBlock: false, type: "simple", storageClassType: "string", }, oauth_scopes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.oauthScopes), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.windowsWebAppAuthSettingsGithubToHclTerraform = windowsWebAppAuthSettingsGithubToHclTerraform; class WindowsWebAppAuthSettingsGithubOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._clientSecret !== undefined) { hasAnyValues = true; internalValueResult.clientSecret = this._clientSecret; } if (this._clientSecretSettingName !== undefined) { hasAnyValues = true; internalValueResult.clientSecretSettingName = this._clientSecretSettingName; } if (this._oauthScopes !== undefined) { hasAnyValues = true; internalValueResult.oauthScopes = this._oauthScopes; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._clientSecret = undefined; this._clientSecretSettingName = undefined; this._oauthScopes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._clientSecret = value.clientSecret; this._clientSecretSettingName = value.clientSecretSettingName; this._oauthScopes = value.oauthScopes; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get clientSecret() { return this.getStringAttribute('client_secret'); } set clientSecret(value) { this._clientSecret = value; } resetClientSecret() { this._clientSecret = undefined; } // Temporarily expose input value. Use with caution. get clientSecretInput() { return this._clientSecret; } get clientSecretSettingName() { return this.getStringAttribute('client_secret_setting_name'); } set clientSecretSettingName(value) { this._clientSecretSettingName = value; } resetClientSecretSettingName() { this._clientSecretSettingName = undefined; } // Temporarily expose input value. Use with caution. get clientSecretSettingNameInput() { return this._clientSecretSettingName; } get oauthScopes() { return this.getListAttribute('oauth_scopes'); } set oauthScopes(value) { this._oauthScopes = value; } resetOauthScopes() { this._oauthScopes = undefined; } // Temporarily expose input value. Use with caution. get oauthScopesInput() { return this._oauthScopes; } } exports.WindowsWebAppAuthSettingsGithubOutputReference = WindowsWebAppAuthSettingsGithubOutputReference; _e = JSII_RTTI_SYMBOL_1; WindowsWebAppAuthSettingsGithubOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.windowsWebApp.WindowsWebAppAuthSettingsGithubOutputReference", version: "12.27.0" }; function windowsWebAppAuthSettingsGoogleToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { client_id: cdktf.stringToTerraform(struct.clientId), client_secret: cdktf.stringToTerraform(struct.clientSecret), client_secret_setting_name: cdktf.stringToTerraform(struct.clientSecretSettingName), oauth_scopes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.oauthScopes), }; } exports.windowsWebAppAuthSettingsGoogleToTerraform = windowsWebAppAuthSettingsGoogleToTerraform; function windowsWebAppAuthSettingsGoogleToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, client_secret: { value: cdktf.stringToHclTerraform(struct.clientSecret), isBlock: false, type: "simple", storageClassType: "string", }, client_secret_setting_name: { value: cdktf.stringToHclTerraform(struct.clientSecretSettingName), isBlock: false, type: "simple", storageClassType: "string", }, oauth_scopes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.oauthScopes), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.windowsWebAppAuthSettingsGoogleToHclTerraform = windowsWebAppAuthSettingsGoogleToHclTerraform; class WindowsWebAppAuthSettingsGoogleOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._clientSecret !== undefined) { hasAnyValues = true; internalValueResult.clientSecret = this._clientSecret; } if (this._clientSecretSettingName !== undefined) { hasAnyValues = true; internalValueResult.clientSecretSettingName = this._clientSecretSettingName; } if (this._oauthScopes !== undefined) { hasAnyValues = true; internalValueResult.oauthScopes = this._oauthScopes; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._clientSecret = undefined; this._clientSecretSettingName = undefined; this._oauthScopes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._clientSecret = value.clientSecret; this._clientSecretSettingName = value.clientSecretSettingName; this._oauthScopes = value.oauthScopes; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get clientSecret() { return this.getStringAttribute('client_secret'); } set clientSecret(value) { this._clientSecret = value; } resetClientSecret() { this._clientSecret = undefined; } // Temporarily expose input value. Use with caution. get clientSecretInput() { return this._clientSecret; } get clientSecretSettingName() { return this.getStringAttribute('client_secret_setting_name'); } set clientSecretSettingName(value) { this._clientSecretSettingName = value; } resetClientSecretSettingName() { this._clientSecretSettingName = undefined; } // Temporarily expose input value. Use with caution. get clientSecretSettingNameInput() { return this._clientSecretSettingName; } get oauthScopes() { return this.getListAttribute('oauth_scopes'); } set oauthScopes(value) { this._oauthScopes = value; } resetOauthScopes() { this._oauthScopes = undefined; } // Temporarily expose input value. Use with caution. get oauthScopesInput() { return this._oauthScopes; } } exports.WindowsWebAppAuthSettingsGoogleOutputReference = WindowsWebAppAuthSettingsGoogleOutputReference; _f = JSII_RTTI_SYMBOL_1; WindowsWebAppAuthSettingsGoogleOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.windowsWebApp.WindowsWebAppAuthSettingsGoogleOutputReference", version: "12.27.0" }; function windowsWebAppAuthSettingsMicrosoftToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { client_id: cdktf.stringToTerraform(struct.clientId), client_secret: cdktf.stringToTerraform(struct.clientSecret), client_secret_setting_name: cdktf.stringToTerraform(struct.clientSecretSettingName), oauth_scopes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.oauthScopes), }; } exports.windowsWebAppAuthSettingsMicrosoftToTerraform = windowsWebAppAuthSettingsMicrosoftToTerraform; function windowsWebAppAuthSettingsMicrosoftToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, client_secret: { value: cdktf.stringToHclTerraform(struct.clientSecret), isBlock: false, type: "simple", storageClassType: "string", }, client_secret_setting_name: { value: cdktf.stringToHclTerraform(struct.clientSecretSettingName), isBlock: false, type: "simple", storageClassType: "string", }, oauth_scopes: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.oauthScopes), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.windowsWebAppAuthSettingsMicrosoftToHclTerraform = windowsWebAppAuthSettingsMicrosoftToHclTerraform; class WindowsWebAppAuthSettingsMicrosoftOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._clientSecret !== undefined) { hasAnyValues = true; internalValueResult.clientSecret = this._clientSecret; } if (this._clientSecretSettingName !== undefined) { hasAnyValues = true; internalValueResult.clientSecretSettingName = this._clientSecretSettingName; } if (this._oauthScopes !== undefined) { hasAnyValues = true; internalValueResult.oauthScopes = this._oauthScopes; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._clientSecret = undefined; this._clientSecretSettingName = undefined; this._oauthScopes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._clientSecret = value.clientSecret; this._clientSecretSettingName = value.clientSecretSettingName; this._oauthScopes = value.oauthScopes; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get clientSecret() { return this.getStringAttribute('client_secret'); } set clientSecret(value) { this._clientSecret = value; } resetClientSecret() { this._clientSecret = undefined; } // Temporarily expose input value. Use with caution. get clientSecretInput() { return this._clientSecret; } get clientSecretSettingName() { return this.getStringAttribute('client_secret_setting_name'); } set clientSecretSettingName(value) { this._clientSecretSettingName = value; } resetClientSecretSettingName() { this._clientSecretSettingName = undefined; } // Temporarily expose input value. Use with caution. get clientSecretSettingNameInput() { return this._clientSecretSettingName; } get oauthScopes() { return this.getListAttribute('oauth_scopes'); } set oauthScopes(value) { this._oauthScopes = value; } resetOauthScopes() { this._oauthScopes = undefined; } // Temporarily expose input value. Use with caution. get oauthScopesInput() { return this._oauthScopes; } } exports.WindowsWebAppAuthSettingsMicrosoftOutputReference = WindowsWebAppAuthSettingsMicrosoftOutputReference; _g = JSII_RTTI_SYMBOL_1; WindowsWebAppAuthSettingsMicrosoftOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.windowsWebApp.WindowsWebAppAuthSettingsMicrosoftOutputReference", version: "12.27.0" }; function windowsWebAppAuthSettingsTwitterToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { consumer_key: cdktf.stringToTerraform(struct.consumerKey), consumer_secret: cdktf.stringToTerraform(struct.consumerSecret), consumer_secret_setting_name: cdktf.stringToTerraform(struct.consumerSecretSettingName), }; } exports.windowsWebAppAuthSettingsTwitterToTerraform = windowsWebAppAuthSettingsTwitterToTerraform; function windowsWebAppAuthSettingsTwitterToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { consumer_key: { value: cdktf.stringToHclTerraform(struct.consumerKey), isBlock: false, type: "simple", storageClassType: "string", }, consumer_secret: { value: cdktf.stringToHclTerraform(struct.consumerSecret), isBlock: false, type: "simple", storageClassType: "string", }, consumer_secret_setting_name: { value: cdktf.stringToHclTerraform(struct.consumerSecretSettingName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.windowsWebAppAuthSettingsTwitterToHclTerraform = windowsWebAppAuthSettingsTwitterToHclTerraform; class WindowsWebAppAuthSettingsTwitterOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._consumerKey !== undefined) { hasAnyValues = true; internalValueResult.consumerKey = this._consumerKey; } if (this._consumerSecret !== undefined) { hasAnyValues = true; internalValueResult.consumerSecret = this._consumerSecret; } if (this._consumerSecretSettingName !== undefined) { hasAnyValues = true; internalValueResult.consumerSecretSettingName = this._consumerSecretSettingName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._consumerKey = undefined; this._consumerSecret = undefined; this._consumerSecretSettingName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._consumerKey = value.consumerKey; this._consumerSecret = value.consumerSecret; this._consumerSecretSettingName = value.consumerSecretSettingName; } } get consumerKey() { return this.getStringAttribute('consumer_key'); } set consumerKey(value) { this._consumerKey = value; } // Temporarily expose input value. Use with caution. get consumerKeyInput() { return this._consumerKey; } get consumerSecret() { return this.getStringAttribute('consumer_secret'); } set consumerSecret(value) { this._consumerSecret = value; } resetConsumerSecret() { this._consumerSecret = undefined; } // Temporarily expose input value. Use with caution. get consumerSecretInput() { return this._consumerSecret; } get consumerSecretSettingName() { return this.getStringAttribute('consumer_secret_setting_name'); } set consumerSecretSettingName(value) { this._consumerSecretSettingName = value; } resetConsumerSecretSettingName() { this._consumerSecretSettingName = undefined; } // Temporarily expose input value. Use with caution. get consumerSecretSettingNameInput() { return this._consumerSecretSettingName; } } exports.WindowsWebAppAuthSettingsTwitterOutputReference = WindowsWebAppAuthSettingsTwitterOutputReference; _h = JSII_RTTI_SYMBOL_1; WindowsWebAppAuthSettingsTwitterOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.windowsWebApp.WindowsWebAppAuthSettingsTwitterOutputReference", version: "12.27.0" }; function windowsWebAppAuthSettingsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { additional_login_parameters: cdktf.hashMapper(cdktf.stringToTerraform)(struct.additionalLoginParameters), allowed_external_redirect_urls: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedExternalRedirectUrls), default_provider: cdktf.stringToTerraform(struct.defaultProvider), enabled: cdktf.booleanToTerraform(struct.enabled), issuer: cdktf.stringToTerraform(struct.issuer), runtime_version: cdktf.stringToTerraform(struct.runtimeVersion), token_refresh_extension_hours: cdktf.numberToTerraform(struct.tokenRefreshExtensionHours), token_store_enabled: cdktf.booleanToTerraform(struct.tokenStoreEnabled), unauthenticated_client_action: cdktf.stringToTerraform(struct.unauthenticatedClientAction), active_directory: windowsWebAppAuthSettingsActiveDirectoryToTerraform(struct.activeDirectory), facebook: windowsWebAppAuthSettingsFacebookToTerraform(struct.facebook), gi