UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,039 lines (1,038 loc) 1.21 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.LinuxFunctionAppSlotAuthSettingsV2LoginOutputReference = exports.linuxFunctionAppSlotAuthSettingsV2LoginToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2LoginToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2GoogleV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2GoogleV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2GoogleV2ToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2GithubV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2GithubV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2GithubV2ToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2FacebookV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2FacebookV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2FacebookV2ToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2CustomOidcV2List = exports.LinuxFunctionAppSlotAuthSettingsV2CustomOidcV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2CustomOidcV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2CustomOidcV2ToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2AzureStaticWebAppV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2AzureStaticWebAppV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2AzureStaticWebAppV2ToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2AppleV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2AppleV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2AppleV2ToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2ActiveDirectoryV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2ActiveDirectoryV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2ActiveDirectoryV2ToTerraform = exports.LinuxFunctionAppSlotAuthSettingsOutputReference = exports.linuxFunctionAppSlotAuthSettingsToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsToTerraform = exports.LinuxFunctionAppSlotAuthSettingsTwitterOutputReference = exports.linuxFunctionAppSlotAuthSettingsTwitterToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsTwitterToTerraform = exports.LinuxFunctionAppSlotAuthSettingsMicrosoftOutputReference = exports.linuxFunctionAppSlotAuthSettingsMicrosoftToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsMicrosoftToTerraform = exports.LinuxFunctionAppSlotAuthSettingsGoogleOutputReference = exports.linuxFunctionAppSlotAuthSettingsGoogleToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsGoogleToTerraform = exports.LinuxFunctionAppSlotAuthSettingsGithubOutputReference = exports.linuxFunctionAppSlotAuthSettingsGithubToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsGithubToTerraform = exports.LinuxFunctionAppSlotAuthSettingsFacebookOutputReference = exports.linuxFunctionAppSlotAuthSettingsFacebookToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsFacebookToTerraform = exports.LinuxFunctionAppSlotAuthSettingsActiveDirectoryOutputReference = exports.linuxFunctionAppSlotAuthSettingsActiveDirectoryToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsActiveDirectoryToTerraform = exports.LinuxFunctionAppSlotSiteCredentialList = exports.LinuxFunctionAppSlotSiteCredentialOutputReference = exports.linuxFunctionAppSlotSiteCredentialToHclTerraform = exports.linuxFunctionAppSlotSiteCredentialToTerraform = void 0; exports.LinuxFunctionAppSlotSiteConfigScmIpRestrictionOutputReference = exports.linuxFunctionAppSlotSiteConfigScmIpRestrictionToHclTerraform = exports.linuxFunctionAppSlotSiteConfigScmIpRestrictionToTerraform = exports.LinuxFunctionAppSlotSiteConfigScmIpRestrictionHeadersList = exports.LinuxFunctionAppSlotSiteConfigScmIpRestrictionHeadersOutputReference = exports.linuxFunctionAppSlotSiteConfigScmIpRestrictionHeadersToHclTerraform = exports.linuxFunctionAppSlotSiteConfigScmIpRestrictionHeadersToTerraform = exports.LinuxFunctionAppSlotSiteConfigIpRestrictionList = exports.LinuxFunctionAppSlotSiteConfigIpRestrictionOutputReference = exports.linuxFunctionAppSlotSiteConfigIpRestrictionToHclTerraform = exports.linuxFunctionAppSlotSiteConfigIpRestrictionToTerraform = exports.LinuxFunctionAppSlotSiteConfigIpRestrictionHeadersList = exports.LinuxFunctionAppSlotSiteConfigIpRestrictionHeadersOutputReference = exports.linuxFunctionAppSlotSiteConfigIpRestrictionHeadersToHclTerraform = exports.linuxFunctionAppSlotSiteConfigIpRestrictionHeadersToTerraform = exports.LinuxFunctionAppSlotSiteConfigCorsOutputReference = exports.linuxFunctionAppSlotSiteConfigCorsToHclTerraform = exports.linuxFunctionAppSlotSiteConfigCorsToTerraform = exports.LinuxFunctionAppSlotSiteConfigApplicationStackOutputReference = exports.linuxFunctionAppSlotSiteConfigApplicationStackToHclTerraform = exports.linuxFunctionAppSlotSiteConfigApplicationStackToTerraform = exports.LinuxFunctionAppSlotSiteConfigApplicationStackDockerList = exports.LinuxFunctionAppSlotSiteConfigApplicationStackDockerOutputReference = exports.linuxFunctionAppSlotSiteConfigApplicationStackDockerToHclTerraform = exports.linuxFunctionAppSlotSiteConfigApplicationStackDockerToTerraform = exports.LinuxFunctionAppSlotSiteConfigAppServiceLogsOutputReference = exports.linuxFunctionAppSlotSiteConfigAppServiceLogsToHclTerraform = exports.linuxFunctionAppSlotSiteConfigAppServiceLogsToTerraform = exports.LinuxFunctionAppSlotIdentityOutputReference = exports.linuxFunctionAppSlotIdentityToHclTerraform = exports.linuxFunctionAppSlotIdentityToTerraform = exports.LinuxFunctionAppSlotConnectionStringList = exports.LinuxFunctionAppSlotConnectionStringOutputReference = exports.linuxFunctionAppSlotConnectionStringToHclTerraform = exports.linuxFunctionAppSlotConnectionStringToTerraform = exports.LinuxFunctionAppSlotBackupOutputReference = exports.linuxFunctionAppSlotBackupToHclTerraform = exports.linuxFunctionAppSlotBackupToTerraform = exports.LinuxFunctionAppSlotBackupScheduleOutputReference = exports.linuxFunctionAppSlotBackupScheduleToHclTerraform = exports.linuxFunctionAppSlotBackupScheduleToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2ToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2TwitterV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2TwitterV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2TwitterV2ToTerraform = exports.LinuxFunctionAppSlotAuthSettingsV2MicrosoftV2OutputReference = exports.linuxFunctionAppSlotAuthSettingsV2MicrosoftV2ToHclTerraform = exports.linuxFunctionAppSlotAuthSettingsV2MicrosoftV2ToTerraform = void 0; exports.LinuxFunctionAppSlot = exports.LinuxFunctionAppSlotTimeoutsOutputReference = exports.linuxFunctionAppSlotTimeoutsToHclTerraform = exports.linuxFunctionAppSlotTimeoutsToTerraform = exports.LinuxFunctionAppSlotStorageAccountList = exports.LinuxFunctionAppSlotStorageAccountOutputReference = exports.linuxFunctionAppSlotStorageAccountToHclTerraform = exports.linuxFunctionAppSlotStorageAccountToTerraform = exports.LinuxFunctionAppSlotSiteConfigOutputReference = exports.linuxFunctionAppSlotSiteConfigToHclTerraform = exports.linuxFunctionAppSlotSiteConfigToTerraform = exports.LinuxFunctionAppSlotSiteConfigScmIpRestrictionList = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function linuxFunctionAppSlotSiteCredentialToTerraform(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.linuxFunctionAppSlotSiteCredentialToTerraform = linuxFunctionAppSlotSiteCredentialToTerraform; function linuxFunctionAppSlotSiteCredentialToHclTerraform(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.linuxFunctionAppSlotSiteCredentialToHclTerraform = linuxFunctionAppSlotSiteCredentialToHclTerraform; class LinuxFunctionAppSlotSiteCredentialOutputReference 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.LinuxFunctionAppSlotSiteCredentialOutputReference = LinuxFunctionAppSlotSiteCredentialOutputReference; _a = JSII_RTTI_SYMBOL_1; LinuxFunctionAppSlotSiteCredentialOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.linuxFunctionAppSlot.LinuxFunctionAppSlotSiteCredentialOutputReference", version: "12.27.0" }; class LinuxFunctionAppSlotSiteCredentialList 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 LinuxFunctionAppSlotSiteCredentialOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.LinuxFunctionAppSlotSiteCredentialList = LinuxFunctionAppSlotSiteCredentialList; _b = JSII_RTTI_SYMBOL_1; LinuxFunctionAppSlotSiteCredentialList[_b] = { fqn: "@cdktf/provider-azurerm.linuxFunctionAppSlot.LinuxFunctionAppSlotSiteCredentialList", version: "12.27.0" }; function linuxFunctionAppSlotAuthSettingsActiveDirectoryToTerraform(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.linuxFunctionAppSlotAuthSettingsActiveDirectoryToTerraform = linuxFunctionAppSlotAuthSettingsActiveDirectoryToTerraform; function linuxFunctionAppSlotAuthSettingsActiveDirectoryToHclTerraform(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.linuxFunctionAppSlotAuthSettingsActiveDirectoryToHclTerraform = linuxFunctionAppSlotAuthSettingsActiveDirectoryToHclTerraform; class LinuxFunctionAppSlotAuthSettingsActiveDirectoryOutputReference 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.LinuxFunctionAppSlotAuthSettingsActiveDirectoryOutputReference = LinuxFunctionAppSlotAuthSettingsActiveDirectoryOutputReference; _c = JSII_RTTI_SYMBOL_1; LinuxFunctionAppSlotAuthSettingsActiveDirectoryOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.linuxFunctionAppSlot.LinuxFunctionAppSlotAuthSettingsActiveDirectoryOutputReference", version: "12.27.0" }; function linuxFunctionAppSlotAuthSettingsFacebookToTerraform(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.linuxFunctionAppSlotAuthSettingsFacebookToTerraform = linuxFunctionAppSlotAuthSettingsFacebookToTerraform; function linuxFunctionAppSlotAuthSettingsFacebookToHclTerraform(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.linuxFunctionAppSlotAuthSettingsFacebookToHclTerraform = linuxFunctionAppSlotAuthSettingsFacebookToHclTerraform; class LinuxFunctionAppSlotAuthSettingsFacebookOutputReference 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.LinuxFunctionAppSlotAuthSettingsFacebookOutputReference = LinuxFunctionAppSlotAuthSettingsFacebookOutputReference; _d = JSII_RTTI_SYMBOL_1; LinuxFunctionAppSlotAuthSettingsFacebookOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.linuxFunctionAppSlot.LinuxFunctionAppSlotAuthSettingsFacebookOutputReference", version: "12.27.0" }; function linuxFunctionAppSlotAuthSettingsGithubToTerraform(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.linuxFunctionAppSlotAuthSettingsGithubToTerraform = linuxFunctionAppSlotAuthSettingsGithubToTerraform; function linuxFunctionAppSlotAuthSettingsGithubToHclTerraform(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.linuxFunctionAppSlotAuthSettingsGithubToHclTerraform = linuxFunctionAppSlotAuthSettingsGithubToHclTerraform; class LinuxFunctionAppSlotAuthSettingsGithubOutputReference 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.LinuxFunctionAppSlotAuthSettingsGithubOutputReference = LinuxFunctionAppSlotAuthSettingsGithubOutputReference; _e = JSII_RTTI_SYMBOL_1; LinuxFunctionAppSlotAuthSettingsGithubOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.linuxFunctionAppSlot.LinuxFunctionAppSlotAuthSettingsGithubOutputReference", version: "12.27.0" }; function linuxFunctionAppSlotAuthSettingsGoogleToTerraform(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.linuxFunctionAppSlotAuthSettingsGoogleToTerraform = linuxFunctionAppSlotAuthSettingsGoogleToTerraform; function linuxFunctionAppSlotAuthSettingsGoogleToHclTerraform(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.linuxFunctionAppSlotAuthSettingsGoogleToHclTerraform = linuxFunctionAppSlotAuthSettingsGoogleToHclTerraform; class LinuxFunctionAppSlotAuthSettingsGoogleOutputReference 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.LinuxFunctionAppSlotAuthSettingsGoogleOutputReference = LinuxFunctionAppSlotAuthSettingsGoogleOutputReference; _f = JSII_RTTI_SYMBOL_1; LinuxFunctionAppSlotAuthSettingsGoogleOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.linuxFunctionAppSlot.LinuxFunctionAppSlotAuthSettingsGoogleOutputReference", version: "12.27.0" }; function linuxFunctionAppSlotAuthSettingsMicrosoftToTerraform(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.linuxFunctionAppSlotAuthSettingsMicrosoftToTerraform = linuxFunctionAppSlotAuthSettingsMicrosoftToTerraform; function linuxFunctionAppSlotAuthSettingsMicrosoftToHclTerraform(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.linuxFunctionAppSlotAuthSettingsMicrosoftToHclTerraform = linuxFunctionAppSlotAuthSettingsMicrosoftToHclTerraform; class LinuxFunctionAppSlotAuthSettingsMicrosoftOutputReference 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.LinuxFunctionAppSlotAuthSettingsMicrosoftOutputReference = LinuxFunctionAppSlotAuthSettingsMicrosoftOutputReference; _g = JSII_RTTI_SYMBOL_1; LinuxFunctionAppSlotAuthSettingsMicrosoftOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.linuxFunctionAppSlot.LinuxFunctionAppSlotAuthSettingsMicrosoftOutputReference", version: "12.27.0" }; function linuxFunctionAppSlotAuthSettingsTwitterToTerraform(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.linuxFunctionAppSlotAuthSettingsTwitterToTerraform = linuxFunctionAppSlotAuthSettingsTwitterToTerraform; function linuxFunctionAppSlotAuthSettingsTwitterToHclTerraform(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.linuxFunctionAppSlotAuthSettingsTwitterToHclTerraform = linuxFunctionAppSlotAuthSettingsTwitterToHclTerraform; class LinuxFunctionAppSlotAuthSettingsTwitterOutputReference 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.LinuxFunctionAppSlotAuthSettingsTwitterOutputReference = LinuxFunctionAppSlotAuthSettingsTwitterOutputReference; _h = JSII_RTTI_SYMBOL_1; LinuxFunctionAppSlotAuthSettingsTwitterOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.linuxFunctionAppSlot.LinuxFunctionAppSlotAuthSettingsTwitterOutputReference", version: "12.27.0" }; function linuxFunctionAppSlotAuthSettingsToTerraform(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: linuxFunctionAppSlotAuthSettingsActiveDirectoryToTerraform(struct.activeDirectory), facebook: linuxFunctionAppSlotAuthSettingsFacebookToTerraform(struct.facebook), github: linuxFunctionAppSlotAuthSettingsGithubToTerraform(struct.github), google: linuxFunctionAppSlotAuthSettingsGoogleToTerraform(struct.google), microsoft: linuxFunctionAppSlotAuthSettingsMicrosoftToTerraform(struct.microsoft), twitter: linuxFunctionAppSlotAuthSettingsTwitterToTerraform(struct.twitter), }; } exports.linuxFunctionAppSlotAuthSettingsToTerraform = linuxFunctionAppSlotAuthSettingsToTerraform; function linuxFunctionAppSlotAuthSettingsToHclTerraform(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, type: "simple", storageClassType: "string", }, token_refresh_extension_hours: {