UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,053 lines (1,052 loc) 1.18 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.WindowsFunctionAppAuthSettingsV2LoginOutputReference = exports.windowsFunctionAppAuthSettingsV2LoginToHclTerraform = exports.windowsFunctionAppAuthSettingsV2LoginToTerraform = exports.WindowsFunctionAppAuthSettingsV2GoogleV2OutputReference = exports.windowsFunctionAppAuthSettingsV2GoogleV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2GoogleV2ToTerraform = exports.WindowsFunctionAppAuthSettingsV2GithubV2OutputReference = exports.windowsFunctionAppAuthSettingsV2GithubV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2GithubV2ToTerraform = exports.WindowsFunctionAppAuthSettingsV2FacebookV2OutputReference = exports.windowsFunctionAppAuthSettingsV2FacebookV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2FacebookV2ToTerraform = exports.WindowsFunctionAppAuthSettingsV2CustomOidcV2List = exports.WindowsFunctionAppAuthSettingsV2CustomOidcV2OutputReference = exports.windowsFunctionAppAuthSettingsV2CustomOidcV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2CustomOidcV2ToTerraform = exports.WindowsFunctionAppAuthSettingsV2AzureStaticWebAppV2OutputReference = exports.windowsFunctionAppAuthSettingsV2AzureStaticWebAppV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2AzureStaticWebAppV2ToTerraform = exports.WindowsFunctionAppAuthSettingsV2AppleV2OutputReference = exports.windowsFunctionAppAuthSettingsV2AppleV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2AppleV2ToTerraform = exports.WindowsFunctionAppAuthSettingsV2ActiveDirectoryV2OutputReference = exports.windowsFunctionAppAuthSettingsV2ActiveDirectoryV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2ActiveDirectoryV2ToTerraform = exports.WindowsFunctionAppAuthSettingsOutputReference = exports.windowsFunctionAppAuthSettingsToHclTerraform = exports.windowsFunctionAppAuthSettingsToTerraform = exports.WindowsFunctionAppAuthSettingsTwitterOutputReference = exports.windowsFunctionAppAuthSettingsTwitterToHclTerraform = exports.windowsFunctionAppAuthSettingsTwitterToTerraform = exports.WindowsFunctionAppAuthSettingsMicrosoftOutputReference = exports.windowsFunctionAppAuthSettingsMicrosoftToHclTerraform = exports.windowsFunctionAppAuthSettingsMicrosoftToTerraform = exports.WindowsFunctionAppAuthSettingsGoogleOutputReference = exports.windowsFunctionAppAuthSettingsGoogleToHclTerraform = exports.windowsFunctionAppAuthSettingsGoogleToTerraform = exports.WindowsFunctionAppAuthSettingsGithubOutputReference = exports.windowsFunctionAppAuthSettingsGithubToHclTerraform = exports.windowsFunctionAppAuthSettingsGithubToTerraform = exports.WindowsFunctionAppAuthSettingsFacebookOutputReference = exports.windowsFunctionAppAuthSettingsFacebookToHclTerraform = exports.windowsFunctionAppAuthSettingsFacebookToTerraform = exports.WindowsFunctionAppAuthSettingsActiveDirectoryOutputReference = exports.windowsFunctionAppAuthSettingsActiveDirectoryToHclTerraform = exports.windowsFunctionAppAuthSettingsActiveDirectoryToTerraform = exports.WindowsFunctionAppSiteCredentialList = exports.WindowsFunctionAppSiteCredentialOutputReference = exports.windowsFunctionAppSiteCredentialToHclTerraform = exports.windowsFunctionAppSiteCredentialToTerraform = void 0; exports.WindowsFunctionAppSiteConfigOutputReference = exports.windowsFunctionAppSiteConfigToHclTerraform = exports.windowsFunctionAppSiteConfigToTerraform = exports.WindowsFunctionAppSiteConfigScmIpRestrictionList = exports.WindowsFunctionAppSiteConfigScmIpRestrictionOutputReference = exports.windowsFunctionAppSiteConfigScmIpRestrictionToHclTerraform = exports.windowsFunctionAppSiteConfigScmIpRestrictionToTerraform = exports.WindowsFunctionAppSiteConfigScmIpRestrictionHeadersList = exports.WindowsFunctionAppSiteConfigScmIpRestrictionHeadersOutputReference = exports.windowsFunctionAppSiteConfigScmIpRestrictionHeadersToHclTerraform = exports.windowsFunctionAppSiteConfigScmIpRestrictionHeadersToTerraform = exports.WindowsFunctionAppSiteConfigIpRestrictionList = exports.WindowsFunctionAppSiteConfigIpRestrictionOutputReference = exports.windowsFunctionAppSiteConfigIpRestrictionToHclTerraform = exports.windowsFunctionAppSiteConfigIpRestrictionToTerraform = exports.WindowsFunctionAppSiteConfigIpRestrictionHeadersList = exports.WindowsFunctionAppSiteConfigIpRestrictionHeadersOutputReference = exports.windowsFunctionAppSiteConfigIpRestrictionHeadersToHclTerraform = exports.windowsFunctionAppSiteConfigIpRestrictionHeadersToTerraform = exports.WindowsFunctionAppSiteConfigCorsOutputReference = exports.windowsFunctionAppSiteConfigCorsToHclTerraform = exports.windowsFunctionAppSiteConfigCorsToTerraform = exports.WindowsFunctionAppSiteConfigApplicationStackOutputReference = exports.windowsFunctionAppSiteConfigApplicationStackToHclTerraform = exports.windowsFunctionAppSiteConfigApplicationStackToTerraform = exports.WindowsFunctionAppSiteConfigAppServiceLogsOutputReference = exports.windowsFunctionAppSiteConfigAppServiceLogsToHclTerraform = exports.windowsFunctionAppSiteConfigAppServiceLogsToTerraform = exports.WindowsFunctionAppIdentityOutputReference = exports.windowsFunctionAppIdentityToHclTerraform = exports.windowsFunctionAppIdentityToTerraform = exports.WindowsFunctionAppConnectionStringList = exports.WindowsFunctionAppConnectionStringOutputReference = exports.windowsFunctionAppConnectionStringToHclTerraform = exports.windowsFunctionAppConnectionStringToTerraform = exports.WindowsFunctionAppBackupOutputReference = exports.windowsFunctionAppBackupToHclTerraform = exports.windowsFunctionAppBackupToTerraform = exports.WindowsFunctionAppBackupScheduleOutputReference = exports.windowsFunctionAppBackupScheduleToHclTerraform = exports.windowsFunctionAppBackupScheduleToTerraform = exports.WindowsFunctionAppAuthSettingsV2OutputReference = exports.windowsFunctionAppAuthSettingsV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2ToTerraform = exports.WindowsFunctionAppAuthSettingsV2TwitterV2OutputReference = exports.windowsFunctionAppAuthSettingsV2TwitterV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2TwitterV2ToTerraform = exports.WindowsFunctionAppAuthSettingsV2MicrosoftV2OutputReference = exports.windowsFunctionAppAuthSettingsV2MicrosoftV2ToHclTerraform = exports.windowsFunctionAppAuthSettingsV2MicrosoftV2ToTerraform = void 0; exports.WindowsFunctionApp = exports.WindowsFunctionAppTimeoutsOutputReference = exports.windowsFunctionAppTimeoutsToHclTerraform = exports.windowsFunctionAppTimeoutsToTerraform = exports.WindowsFunctionAppStorageAccountList = exports.WindowsFunctionAppStorageAccountOutputReference = exports.windowsFunctionAppStorageAccountToHclTerraform = exports.windowsFunctionAppStorageAccountToTerraform = exports.WindowsFunctionAppStickySettingsOutputReference = exports.windowsFunctionAppStickySettingsToHclTerraform = exports.windowsFunctionAppStickySettingsToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function windowsFunctionAppSiteCredentialToTerraform(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.windowsFunctionAppSiteCredentialToTerraform = windowsFunctionAppSiteCredentialToTerraform; function windowsFunctionAppSiteCredentialToHclTerraform(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.windowsFunctionAppSiteCredentialToHclTerraform = windowsFunctionAppSiteCredentialToHclTerraform; class WindowsFunctionAppSiteCredentialOutputReference 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.WindowsFunctionAppSiteCredentialOutputReference = WindowsFunctionAppSiteCredentialOutputReference; _a = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSiteCredentialOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.windowsFunctionApp.WindowsFunctionAppSiteCredentialOutputReference", version: "12.27.0" }; class WindowsFunctionAppSiteCredentialList 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 WindowsFunctionAppSiteCredentialOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.WindowsFunctionAppSiteCredentialList = WindowsFunctionAppSiteCredentialList; _b = JSII_RTTI_SYMBOL_1; WindowsFunctionAppSiteCredentialList[_b] = { fqn: "@cdktf/provider-azurerm.windowsFunctionApp.WindowsFunctionAppSiteCredentialList", version: "12.27.0" }; function windowsFunctionAppAuthSettingsActiveDirectoryToTerraform(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.windowsFunctionAppAuthSettingsActiveDirectoryToTerraform = windowsFunctionAppAuthSettingsActiveDirectoryToTerraform; function windowsFunctionAppAuthSettingsActiveDirectoryToHclTerraform(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.windowsFunctionAppAuthSettingsActiveDirectoryToHclTerraform = windowsFunctionAppAuthSettingsActiveDirectoryToHclTerraform; class WindowsFunctionAppAuthSettingsActiveDirectoryOutputReference 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.WindowsFunctionAppAuthSettingsActiveDirectoryOutputReference = WindowsFunctionAppAuthSettingsActiveDirectoryOutputReference; _c = JSII_RTTI_SYMBOL_1; WindowsFunctionAppAuthSettingsActiveDirectoryOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.windowsFunctionApp.WindowsFunctionAppAuthSettingsActiveDirectoryOutputReference", version: "12.27.0" }; function windowsFunctionAppAuthSettingsFacebookToTerraform(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.windowsFunctionAppAuthSettingsFacebookToTerraform = windowsFunctionAppAuthSettingsFacebookToTerraform; function windowsFunctionAppAuthSettingsFacebookToHclTerraform(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.windowsFunctionAppAuthSettingsFacebookToHclTerraform = windowsFunctionAppAuthSettingsFacebookToHclTerraform; class WindowsFunctionAppAuthSettingsFacebookOutputReference 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.WindowsFunctionAppAuthSettingsFacebookOutputReference = WindowsFunctionAppAuthSettingsFacebookOutputReference; _d = JSII_RTTI_SYMBOL_1; WindowsFunctionAppAuthSettingsFacebookOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.windowsFunctionApp.WindowsFunctionAppAuthSettingsFacebookOutputReference", version: "12.27.0" }; function windowsFunctionAppAuthSettingsGithubToTerraform(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.windowsFunctionAppAuthSettingsGithubToTerraform = windowsFunctionAppAuthSettingsGithubToTerraform; function windowsFunctionAppAuthSettingsGithubToHclTerraform(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.windowsFunctionAppAuthSettingsGithubToHclTerraform = windowsFunctionAppAuthSettingsGithubToHclTerraform; class WindowsFunctionAppAuthSettingsGithubOutputReference 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.WindowsFunctionAppAuthSettingsGithubOutputReference = WindowsFunctionAppAuthSettingsGithubOutputReference; _e = JSII_RTTI_SYMBOL_1; WindowsFunctionAppAuthSettingsGithubOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.windowsFunctionApp.WindowsFunctionAppAuthSettingsGithubOutputReference", version: "12.27.0" }; function windowsFunctionAppAuthSettingsGoogleToTerraform(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.windowsFunctionAppAuthSettingsGoogleToTerraform = windowsFunctionAppAuthSettingsGoogleToTerraform; function windowsFunctionAppAuthSettingsGoogleToHclTerraform(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.windowsFunctionAppAuthSettingsGoogleToHclTerraform = windowsFunctionAppAuthSettingsGoogleToHclTerraform; class WindowsFunctionAppAuthSettingsGoogleOutputReference 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.WindowsFunctionAppAuthSettingsGoogleOutputReference = WindowsFunctionAppAuthSettingsGoogleOutputReference; _f = JSII_RTTI_SYMBOL_1; WindowsFunctionAppAuthSettingsGoogleOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.windowsFunctionApp.WindowsFunctionAppAuthSettingsGoogleOutputReference", version: "12.27.0" }; function windowsFunctionAppAuthSettingsMicrosoftToTerraform(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.windowsFunctionAppAuthSettingsMicrosoftToTerraform = windowsFunctionAppAuthSettingsMicrosoftToTerraform; function windowsFunctionAppAuthSettingsMicrosoftToHclTerraform(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.windowsFunctionAppAuthSettingsMicrosoftToHclTerraform = windowsFunctionAppAuthSettingsMicrosoftToHclTerraform; class WindowsFunctionAppAuthSettingsMicrosoftOutputReference 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.WindowsFunctionAppAuthSettingsMicrosoftOutputReference = WindowsFunctionAppAuthSettingsMicrosoftOutputReference; _g = JSII_RTTI_SYMBOL_1; WindowsFunctionAppAuthSettingsMicrosoftOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.windowsFunctionApp.WindowsFunctionAppAuthSettingsMicrosoftOutputReference", version: "12.27.0" }; function windowsFunctionAppAuthSettingsTwitterToTerraform(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.windowsFunctionAppAuthSettingsTwitterToTerraform = windowsFunctionAppAuthSettingsTwitterToTerraform; function windowsFunctionAppAuthSettingsTwitterToHclTerraform(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.windowsFunctionAppAuthSettingsTwitterToHclTerraform = windowsFunctionAppAuthSettingsTwitterToHclTerraform; class WindowsFunctionAppAuthSettingsTwitterOutputReference 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.WindowsFunctionAppAuthSettingsTwitterOutputReference = WindowsFunctionAppAuthSettingsTwitterOutputReference; _h = JSII_RTTI_SYMBOL_1; WindowsFunctionAppAuthSettingsTwitterOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.windowsFunctionApp.WindowsFunctionAppAuthSettingsTwitterOutputReference", version: "12.27.0" }; function windowsFunctionAppAuthSettingsToTerraform(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: windowsFunctionAppAuthSettingsActiveDirectoryToTerraform(struct.activeDirectory), facebook: windowsFunctionAppAuthSettingsFacebookToTerraform(struct.facebook), github: windowsFunctionAppAuthSettingsGithubToTerraform(struct.github), google: windowsFunctionAppAuthSettingsGoogleToTerraform(struct.google), microsoft: windowsFunctionAppAuthSettingsMicrosoftToTerraform(struct.microsoft), twitter: windowsFunctionAppAuthSettingsTwitterToTerraform(struct.twitter), }; } exports.windowsFunctionAppAuthSettingsToTerraform = windowsFunctionAppAuthSettingsToTerraform; function windowsFunctionAppAuthSettingsToHclTerraform(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: { value: cdktf.numberToHclTerraform(struct.tokenRefreshExtensionHours), isBlock: false, type: "simple", storageClassType: "number", }, token_store_enabled: { value: cdktf.booleanToHclTerraform(struct.tokenStoreEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, unauthenticated_client_action: { value: cdktf.stringToHclTerraform(struct.unauthenticatedClientAction), isBlock: false,