UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,035 lines 1.17 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.WindowsFunctionAppSlotAuthSettingsV2LoginOutputReference = exports.windowsFunctionAppSlotAuthSettingsV2LoginToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2LoginToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2GoogleV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2GoogleV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2GoogleV2ToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2GithubV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2GithubV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2GithubV2ToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2FacebookV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2FacebookV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2FacebookV2ToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2CustomOidcV2List = exports.WindowsFunctionAppSlotAuthSettingsV2CustomOidcV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2CustomOidcV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2CustomOidcV2ToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2AzureStaticWebAppV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2AzureStaticWebAppV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2AzureStaticWebAppV2ToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2AppleV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2AppleV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2AppleV2ToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2ActiveDirectoryV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2ActiveDirectoryV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2ActiveDirectoryV2ToTerraform = exports.WindowsFunctionAppSlotAuthSettingsOutputReference = exports.windowsFunctionAppSlotAuthSettingsToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsToTerraform = exports.WindowsFunctionAppSlotAuthSettingsTwitterOutputReference = exports.windowsFunctionAppSlotAuthSettingsTwitterToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsTwitterToTerraform = exports.WindowsFunctionAppSlotAuthSettingsMicrosoftOutputReference = exports.windowsFunctionAppSlotAuthSettingsMicrosoftToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsMicrosoftToTerraform = exports.WindowsFunctionAppSlotAuthSettingsGoogleOutputReference = exports.windowsFunctionAppSlotAuthSettingsGoogleToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsGoogleToTerraform = exports.WindowsFunctionAppSlotAuthSettingsGithubOutputReference = exports.windowsFunctionAppSlotAuthSettingsGithubToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsGithubToTerraform = exports.WindowsFunctionAppSlotAuthSettingsFacebookOutputReference = exports.windowsFunctionAppSlotAuthSettingsFacebookToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsFacebookToTerraform = exports.WindowsFunctionAppSlotAuthSettingsActiveDirectoryOutputReference = exports.windowsFunctionAppSlotAuthSettingsActiveDirectoryToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsActiveDirectoryToTerraform = exports.WindowsFunctionAppSlotSiteCredentialList = exports.WindowsFunctionAppSlotSiteCredentialOutputReference = exports.windowsFunctionAppSlotSiteCredentialToHclTerraform = exports.windowsFunctionAppSlotSiteCredentialToTerraform = void 0; exports.WindowsFunctionAppSlotSiteConfigOutputReference = exports.windowsFunctionAppSlotSiteConfigToHclTerraform = exports.windowsFunctionAppSlotSiteConfigToTerraform = exports.WindowsFunctionAppSlotSiteConfigScmIpRestrictionList = exports.WindowsFunctionAppSlotSiteConfigScmIpRestrictionOutputReference = exports.windowsFunctionAppSlotSiteConfigScmIpRestrictionToHclTerraform = exports.windowsFunctionAppSlotSiteConfigScmIpRestrictionToTerraform = exports.WindowsFunctionAppSlotSiteConfigScmIpRestrictionHeadersList = exports.WindowsFunctionAppSlotSiteConfigScmIpRestrictionHeadersOutputReference = exports.windowsFunctionAppSlotSiteConfigScmIpRestrictionHeadersToHclTerraform = exports.windowsFunctionAppSlotSiteConfigScmIpRestrictionHeadersToTerraform = exports.WindowsFunctionAppSlotSiteConfigIpRestrictionList = exports.WindowsFunctionAppSlotSiteConfigIpRestrictionOutputReference = exports.windowsFunctionAppSlotSiteConfigIpRestrictionToHclTerraform = exports.windowsFunctionAppSlotSiteConfigIpRestrictionToTerraform = exports.WindowsFunctionAppSlotSiteConfigIpRestrictionHeadersList = exports.WindowsFunctionAppSlotSiteConfigIpRestrictionHeadersOutputReference = exports.windowsFunctionAppSlotSiteConfigIpRestrictionHeadersToHclTerraform = exports.windowsFunctionAppSlotSiteConfigIpRestrictionHeadersToTerraform = exports.WindowsFunctionAppSlotSiteConfigCorsOutputReference = exports.windowsFunctionAppSlotSiteConfigCorsToHclTerraform = exports.windowsFunctionAppSlotSiteConfigCorsToTerraform = exports.WindowsFunctionAppSlotSiteConfigApplicationStackOutputReference = exports.windowsFunctionAppSlotSiteConfigApplicationStackToHclTerraform = exports.windowsFunctionAppSlotSiteConfigApplicationStackToTerraform = exports.WindowsFunctionAppSlotSiteConfigAppServiceLogsOutputReference = exports.windowsFunctionAppSlotSiteConfigAppServiceLogsToHclTerraform = exports.windowsFunctionAppSlotSiteConfigAppServiceLogsToTerraform = exports.WindowsFunctionAppSlotIdentityOutputReference = exports.windowsFunctionAppSlotIdentityToHclTerraform = exports.windowsFunctionAppSlotIdentityToTerraform = exports.WindowsFunctionAppSlotConnectionStringList = exports.WindowsFunctionAppSlotConnectionStringOutputReference = exports.windowsFunctionAppSlotConnectionStringToHclTerraform = exports.windowsFunctionAppSlotConnectionStringToTerraform = exports.WindowsFunctionAppSlotBackupOutputReference = exports.windowsFunctionAppSlotBackupToHclTerraform = exports.windowsFunctionAppSlotBackupToTerraform = exports.WindowsFunctionAppSlotBackupScheduleOutputReference = exports.windowsFunctionAppSlotBackupScheduleToHclTerraform = exports.windowsFunctionAppSlotBackupScheduleToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2ToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2TwitterV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2TwitterV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2TwitterV2ToTerraform = exports.WindowsFunctionAppSlotAuthSettingsV2MicrosoftV2OutputReference = exports.windowsFunctionAppSlotAuthSettingsV2MicrosoftV2ToHclTerraform = exports.windowsFunctionAppSlotAuthSettingsV2MicrosoftV2ToTerraform = void 0; exports.WindowsFunctionAppSlot = exports.WindowsFunctionAppSlotTimeoutsOutputReference = exports.windowsFunctionAppSlotTimeoutsToHclTerraform = exports.windowsFunctionAppSlotTimeoutsToTerraform = exports.WindowsFunctionAppSlotStorageAccountList = exports.WindowsFunctionAppSlotStorageAccountOutputReference = exports.windowsFunctionAppSlotStorageAccountToHclTerraform = exports.windowsFunctionAppSlotStorageAccountToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function windowsFunctionAppSlotSiteCredentialToTerraform(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.windowsFunctionAppSlotSiteCredentialToTerraform = windowsFunctionAppSlotSiteCredentialToTerraform; function windowsFunctionAppSlotSiteCredentialToHclTerraform(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.windowsFunctionAppSlotSiteCredentialToHclTerraform = windowsFunctionAppSlotSiteCredentialToHclTerraform; class WindowsFunctionAppSlotSiteCredentialOutputReference 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.WindowsFunctionAppSlotSiteCredentialOutputReference = WindowsFunctionAppSlotSiteCredentialOutputReference; _a = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSlotSiteCredentialOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.windowsFunctionAppSlot.WindowsFunctionAppSlotSiteCredentialOutputReference", version: "12.27.0" }; class WindowsFunctionAppSlotSiteCredentialList 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 WindowsFunctionAppSlotSiteCredentialOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WindowsFunctionAppSlotSiteCredentialList = WindowsFunctionAppSlotSiteCredentialList; _b = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSlotSiteCredentialList[_b] = { fqn: "@cdktf/provider-azurerm.windowsFunctionAppSlot.WindowsFunctionAppSlotSiteCredentialList", version: "12.27.0" }; function windowsFunctionAppSlotAuthSettingsActiveDirectoryToTerraform(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.windowsFunctionAppSlotAuthSettingsActiveDirectoryToTerraform = windowsFunctionAppSlotAuthSettingsActiveDirectoryToTerraform; function windowsFunctionAppSlotAuthSettingsActiveDirectoryToHclTerraform(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.windowsFunctionAppSlotAuthSettingsActiveDirectoryToHclTerraform = windowsFunctionAppSlotAuthSettingsActiveDirectoryToHclTerraform; class WindowsFunctionAppSlotAuthSettingsActiveDirectoryOutputReference 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.WindowsFunctionAppSlotAuthSettingsActiveDirectoryOutputReference = WindowsFunctionAppSlotAuthSettingsActiveDirectoryOutputReference; _c = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSlotAuthSettingsActiveDirectoryOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.windowsFunctionAppSlot.WindowsFunctionAppSlotAuthSettingsActiveDirectoryOutputReference", version: "12.27.0" }; function windowsFunctionAppSlotAuthSettingsFacebookToTerraform(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.windowsFunctionAppSlotAuthSettingsFacebookToTerraform = windowsFunctionAppSlotAuthSettingsFacebookToTerraform; function windowsFunctionAppSlotAuthSettingsFacebookToHclTerraform(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.windowsFunctionAppSlotAuthSettingsFacebookToHclTerraform = windowsFunctionAppSlotAuthSettingsFacebookToHclTerraform; class WindowsFunctionAppSlotAuthSettingsFacebookOutputReference 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.WindowsFunctionAppSlotAuthSettingsFacebookOutputReference = WindowsFunctionAppSlotAuthSettingsFacebookOutputReference; _d = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSlotAuthSettingsFacebookOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.windowsFunctionAppSlot.WindowsFunctionAppSlotAuthSettingsFacebookOutputReference", version: "12.27.0" }; function windowsFunctionAppSlotAuthSettingsGithubToTerraform(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.windowsFunctionAppSlotAuthSettingsGithubToTerraform = windowsFunctionAppSlotAuthSettingsGithubToTerraform; function windowsFunctionAppSlotAuthSettingsGithubToHclTerraform(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.windowsFunctionAppSlotAuthSettingsGithubToHclTerraform = windowsFunctionAppSlotAuthSettingsGithubToHclTerraform; class WindowsFunctionAppSlotAuthSettingsGithubOutputReference 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.WindowsFunctionAppSlotAuthSettingsGithubOutputReference = WindowsFunctionAppSlotAuthSettingsGithubOutputReference; _e = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSlotAuthSettingsGithubOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.windowsFunctionAppSlot.WindowsFunctionAppSlotAuthSettingsGithubOutputReference", version: "12.27.0" }; function windowsFunctionAppSlotAuthSettingsGoogleToTerraform(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.windowsFunctionAppSlotAuthSettingsGoogleToTerraform = windowsFunctionAppSlotAuthSettingsGoogleToTerraform; function windowsFunctionAppSlotAuthSettingsGoogleToHclTerraform(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.windowsFunctionAppSlotAuthSettingsGoogleToHclTerraform = windowsFunctionAppSlotAuthSettingsGoogleToHclTerraform; class WindowsFunctionAppSlotAuthSettingsGoogleOutputReference 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.WindowsFunctionAppSlotAuthSettingsGoogleOutputReference = WindowsFunctionAppSlotAuthSettingsGoogleOutputReference; _f = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSlotAuthSettingsGoogleOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.windowsFunctionAppSlot.WindowsFunctionAppSlotAuthSettingsGoogleOutputReference", version: "12.27.0" }; function windowsFunctionAppSlotAuthSettingsMicrosoftToTerraform(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.windowsFunctionAppSlotAuthSettingsMicrosoftToTerraform = windowsFunctionAppSlotAuthSettingsMicrosoftToTerraform; function windowsFunctionAppSlotAuthSettingsMicrosoftToHclTerraform(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.windowsFunctionAppSlotAuthSettingsMicrosoftToHclTerraform = windowsFunctionAppSlotAuthSettingsMicrosoftToHclTerraform; class WindowsFunctionAppSlotAuthSettingsMicrosoftOutputReference 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.WindowsFunctionAppSlotAuthSettingsMicrosoftOutputReference = WindowsFunctionAppSlotAuthSettingsMicrosoftOutputReference; _g = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSlotAuthSettingsMicrosoftOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.windowsFunctionAppSlot.WindowsFunctionAppSlotAuthSettingsMicrosoftOutputReference", version: "12.27.0" }; function windowsFunctionAppSlotAuthSettingsTwitterToTerraform(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.windowsFunctionAppSlotAuthSettingsTwitterToTerraform = windowsFunctionAppSlotAuthSettingsTwitterToTerraform; function windowsFunctionAppSlotAuthSettingsTwitterToHclTerraform(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.windowsFunctionAppSlotAuthSettingsTwitterToHclTerraform = windowsFunctionAppSlotAuthSettingsTwitterToHclTerraform; class WindowsFunctionAppSlotAuthSettingsTwitterOutputReference 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.WindowsFunctionAppSlotAuthSettingsTwitterOutputReference = WindowsFunctionAppSlotAuthSettingsTwitterOutputReference; _h = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSlotAuthSettingsTwitterOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.windowsFunctionAppSlot.WindowsFunctionAppSlotAuthSettingsTwitterOutputReference", version: "12.27.0" }; function windowsFunctionAppSlotAuthSettingsToTerraform(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: windowsFunctionAppSlotAuthSettingsActiveDirectoryToTerraform(struct.activeDirectory), facebook: windowsFunctionAppSlotAuthSettingsFacebookToTerraform(struct.facebook), github: windowsFunctionAppSlotAuthSettingsGithubToTerraform(struct.github), google: windowsFunctionAppSlotAuthSettingsGoogleToTerraform(struct.google), microsoft: windowsFunctionAppSlotAuthSettingsMicrosoftToTerraform(struct.microsoft), twitter: windowsFunctionAppSlotAuthSettingsTwitterToTerraform(struct.twitter), }; } exports.windowsFunctionAppSlotAuthSettingsToTerraform = windowsFunctionAppSlotAuthSettingsToTerraform; function windowsFunctionAppSlotAuthSettingsToHclTerraform(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 = { additional_login_parameters: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.additionalLoginParameters), isBlock: false, type: "map", storageClassType: "stringMap", }, allowed_external_redirect_urls: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedExternalRedirectUrls), isBlock: false, type: "list", storageClassType: "stringList", }, default_provider: { value: cdktf.stringToHclTerraform(struct.defaultProvider), isBlock: false, type: "simple", storageClassType: "string", }, enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, issuer: { value: cdktf.stringToHclTerraform(struct.issuer), isBlock: false, type: "simple", storageClassType: "string", }, runtime_version: { value: cdktf.stringToHclTerraform(struct.runtimeVersion), isBlock: false, typ