UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,032 lines (1,031 loc) 386 kB
"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; Object.defineProperty(exports, "__esModule", { value: true }); exports.identityPlatformConfigSignInEmailToHclTerraform = exports.identityPlatformConfigSignInEmailToTerraform = exports.IdentityPlatformConfigSignInAnonymousOutputReference = exports.identityPlatformConfigSignInAnonymousToHclTerraform = exports.identityPlatformConfigSignInAnonymousToTerraform = exports.IdentityPlatformConfigSignInHashConfigList = exports.IdentityPlatformConfigSignInHashConfigOutputReference = exports.identityPlatformConfigSignInHashConfigToHclTerraform = exports.identityPlatformConfigSignInHashConfigToTerraform = exports.IdentityPlatformConfigQuotaOutputReference = exports.identityPlatformConfigQuotaToHclTerraform = exports.identityPlatformConfigQuotaToTerraform = exports.IdentityPlatformConfigQuotaSignUpQuotaConfigOutputReference = exports.identityPlatformConfigQuotaSignUpQuotaConfigToHclTerraform = exports.identityPlatformConfigQuotaSignUpQuotaConfigToTerraform = exports.IdentityPlatformConfigMultiTenantOutputReference = exports.identityPlatformConfigMultiTenantToHclTerraform = exports.identityPlatformConfigMultiTenantToTerraform = exports.IdentityPlatformConfigMonitoringOutputReference = exports.identityPlatformConfigMonitoringToHclTerraform = exports.identityPlatformConfigMonitoringToTerraform = exports.IdentityPlatformConfigMonitoringRequestLoggingOutputReference = exports.identityPlatformConfigMonitoringRequestLoggingToHclTerraform = exports.identityPlatformConfigMonitoringRequestLoggingToTerraform = exports.IdentityPlatformConfigMfaOutputReference = exports.identityPlatformConfigMfaToHclTerraform = exports.identityPlatformConfigMfaToTerraform = exports.IdentityPlatformConfigMfaProviderConfigsList = exports.IdentityPlatformConfigMfaProviderConfigsOutputReference = exports.identityPlatformConfigMfaProviderConfigsToHclTerraform = exports.identityPlatformConfigMfaProviderConfigsToTerraform = exports.IdentityPlatformConfigMfaProviderConfigsTotpProviderConfigOutputReference = exports.identityPlatformConfigMfaProviderConfigsTotpProviderConfigToHclTerraform = exports.identityPlatformConfigMfaProviderConfigsTotpProviderConfigToTerraform = exports.IdentityPlatformConfigClientOutputReference = exports.identityPlatformConfigClientToHclTerraform = exports.identityPlatformConfigClientToTerraform = exports.IdentityPlatformConfigClientPermissionsOutputReference = exports.identityPlatformConfigClientPermissionsToHclTerraform = exports.identityPlatformConfigClientPermissionsToTerraform = exports.IdentityPlatformConfigBlockingFunctionsOutputReference = exports.identityPlatformConfigBlockingFunctionsToHclTerraform = exports.identityPlatformConfigBlockingFunctionsToTerraform = exports.IdentityPlatformConfigBlockingFunctionsTriggersList = exports.IdentityPlatformConfigBlockingFunctionsTriggersOutputReference = exports.identityPlatformConfigBlockingFunctionsTriggersToHclTerraform = exports.identityPlatformConfigBlockingFunctionsTriggersToTerraform = exports.IdentityPlatformConfigBlockingFunctionsForwardInboundCredentialsOutputReference = exports.identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToHclTerraform = exports.identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToTerraform = void 0; exports.IdentityPlatformConfig = exports.IdentityPlatformConfigTimeoutsOutputReference = exports.identityPlatformConfigTimeoutsToHclTerraform = exports.identityPlatformConfigTimeoutsToTerraform = exports.IdentityPlatformConfigSmsRegionConfigOutputReference = exports.identityPlatformConfigSmsRegionConfigToHclTerraform = exports.identityPlatformConfigSmsRegionConfigToTerraform = exports.IdentityPlatformConfigSmsRegionConfigAllowlistOnlyOutputReference = exports.identityPlatformConfigSmsRegionConfigAllowlistOnlyToHclTerraform = exports.identityPlatformConfigSmsRegionConfigAllowlistOnlyToTerraform = exports.IdentityPlatformConfigSmsRegionConfigAllowByDefaultOutputReference = exports.identityPlatformConfigSmsRegionConfigAllowByDefaultToHclTerraform = exports.identityPlatformConfigSmsRegionConfigAllowByDefaultToTerraform = exports.IdentityPlatformConfigSignInOutputReference = exports.identityPlatformConfigSignInToHclTerraform = exports.identityPlatformConfigSignInToTerraform = exports.IdentityPlatformConfigSignInPhoneNumberOutputReference = exports.identityPlatformConfigSignInPhoneNumberToHclTerraform = exports.identityPlatformConfigSignInPhoneNumberToTerraform = exports.IdentityPlatformConfigSignInEmailOutputReference = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToTerraform(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 { access_token: cdktf.booleanToTerraform(struct.accessToken), id_token: cdktf.booleanToTerraform(struct.idToken), refresh_token: cdktf.booleanToTerraform(struct.refreshToken), }; } exports.identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToTerraform = identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToTerraform; function identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToHclTerraform(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 = { access_token: { value: cdktf.booleanToHclTerraform(struct.accessToken), isBlock: false, type: "simple", storageClassType: "boolean", }, id_token: { value: cdktf.booleanToHclTerraform(struct.idToken), isBlock: false, type: "simple", storageClassType: "boolean", }, refresh_token: { value: cdktf.booleanToHclTerraform(struct.refreshToken), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToHclTerraform = identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToHclTerraform; class IdentityPlatformConfigBlockingFunctionsForwardInboundCredentialsOutputReference 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._accessToken !== undefined) { hasAnyValues = true; internalValueResult.accessToken = this._accessToken; } if (this._idToken !== undefined) { hasAnyValues = true; internalValueResult.idToken = this._idToken; } if (this._refreshToken !== undefined) { hasAnyValues = true; internalValueResult.refreshToken = this._refreshToken; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._accessToken = undefined; this._idToken = undefined; this._refreshToken = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._accessToken = value.accessToken; this._idToken = value.idToken; this._refreshToken = value.refreshToken; } } get accessToken() { return this.getBooleanAttribute('access_token'); } set accessToken(value) { this._accessToken = value; } resetAccessToken() { this._accessToken = undefined; } // Temporarily expose input value. Use with caution. get accessTokenInput() { return this._accessToken; } get idToken() { return this.getBooleanAttribute('id_token'); } set idToken(value) { this._idToken = value; } resetIdToken() { this._idToken = undefined; } // Temporarily expose input value. Use with caution. get idTokenInput() { return this._idToken; } get refreshToken() { return this.getBooleanAttribute('refresh_token'); } set refreshToken(value) { this._refreshToken = value; } resetRefreshToken() { this._refreshToken = undefined; } // Temporarily expose input value. Use with caution. get refreshTokenInput() { return this._refreshToken; } } exports.IdentityPlatformConfigBlockingFunctionsForwardInboundCredentialsOutputReference = IdentityPlatformConfigBlockingFunctionsForwardInboundCredentialsOutputReference; _a = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigBlockingFunctionsForwardInboundCredentialsOutputReference[_a] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigBlockingFunctionsForwardInboundCredentialsOutputReference", version: "14.12.0" }; function identityPlatformConfigBlockingFunctionsTriggersToTerraform(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 { event_type: cdktf.stringToTerraform(struct.eventType), function_uri: cdktf.stringToTerraform(struct.functionUri), }; } exports.identityPlatformConfigBlockingFunctionsTriggersToTerraform = identityPlatformConfigBlockingFunctionsTriggersToTerraform; function identityPlatformConfigBlockingFunctionsTriggersToHclTerraform(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 = { event_type: { value: cdktf.stringToHclTerraform(struct.eventType), isBlock: false, type: "simple", storageClassType: "string", }, function_uri: { value: cdktf.stringToHclTerraform(struct.functionUri), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigBlockingFunctionsTriggersToHclTerraform = identityPlatformConfigBlockingFunctionsTriggersToHclTerraform; class IdentityPlatformConfigBlockingFunctionsTriggersOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._eventType !== undefined) { hasAnyValues = true; internalValueResult.eventType = this._eventType; } if (this._functionUri !== undefined) { hasAnyValues = true; internalValueResult.functionUri = this._functionUri; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._eventType = undefined; this._functionUri = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._eventType = value.eventType; this._functionUri = value.functionUri; } } get eventType() { return this.getStringAttribute('event_type'); } set eventType(value) { this._eventType = value; } // Temporarily expose input value. Use with caution. get eventTypeInput() { return this._eventType; } get functionUri() { return this.getStringAttribute('function_uri'); } set functionUri(value) { this._functionUri = value; } // Temporarily expose input value. Use with caution. get functionUriInput() { return this._functionUri; } // update_time - computed: true, optional: false, required: false get updateTime() { return this.getStringAttribute('update_time'); } } exports.IdentityPlatformConfigBlockingFunctionsTriggersOutputReference = IdentityPlatformConfigBlockingFunctionsTriggersOutputReference; _b = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigBlockingFunctionsTriggersOutputReference[_b] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigBlockingFunctionsTriggersOutputReference", version: "14.12.0" }; class IdentityPlatformConfigBlockingFunctionsTriggersList 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 IdentityPlatformConfigBlockingFunctionsTriggersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.IdentityPlatformConfigBlockingFunctionsTriggersList = IdentityPlatformConfigBlockingFunctionsTriggersList; _c = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigBlockingFunctionsTriggersList[_c] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigBlockingFunctionsTriggersList", version: "14.12.0" }; function identityPlatformConfigBlockingFunctionsToTerraform(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 { forward_inbound_credentials: identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToTerraform(struct.forwardInboundCredentials), triggers: cdktf.listMapper(identityPlatformConfigBlockingFunctionsTriggersToTerraform, true)(struct.triggers), }; } exports.identityPlatformConfigBlockingFunctionsToTerraform = identityPlatformConfigBlockingFunctionsToTerraform; function identityPlatformConfigBlockingFunctionsToHclTerraform(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 = { forward_inbound_credentials: { value: identityPlatformConfigBlockingFunctionsForwardInboundCredentialsToHclTerraform(struct.forwardInboundCredentials), isBlock: true, type: "list", storageClassType: "IdentityPlatformConfigBlockingFunctionsForwardInboundCredentialsList", }, triggers: { value: cdktf.listMapperHcl(identityPlatformConfigBlockingFunctionsTriggersToHclTerraform, true)(struct.triggers), isBlock: true, type: "set", storageClassType: "IdentityPlatformConfigBlockingFunctionsTriggersList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigBlockingFunctionsToHclTerraform = identityPlatformConfigBlockingFunctionsToHclTerraform; class IdentityPlatformConfigBlockingFunctionsOutputReference 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; // forward_inbound_credentials - computed: false, optional: true, required: false this._forwardInboundCredentials = new IdentityPlatformConfigBlockingFunctionsForwardInboundCredentialsOutputReference(this, "forward_inbound_credentials"); // triggers - computed: false, optional: false, required: true this._triggers = new IdentityPlatformConfigBlockingFunctionsTriggersList(this, "triggers", true); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._forwardInboundCredentials?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.forwardInboundCredentials = this._forwardInboundCredentials?.internalValue; } if (this._triggers?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.triggers = this._triggers?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._forwardInboundCredentials.internalValue = undefined; this._triggers.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._forwardInboundCredentials.internalValue = value.forwardInboundCredentials; this._triggers.internalValue = value.triggers; } } get forwardInboundCredentials() { return this._forwardInboundCredentials; } putForwardInboundCredentials(value) { this._forwardInboundCredentials.internalValue = value; } resetForwardInboundCredentials() { this._forwardInboundCredentials.internalValue = undefined; } // Temporarily expose input value. Use with caution. get forwardInboundCredentialsInput() { return this._forwardInboundCredentials.internalValue; } get triggers() { return this._triggers; } putTriggers(value) { this._triggers.internalValue = value; } // Temporarily expose input value. Use with caution. get triggersInput() { return this._triggers.internalValue; } } exports.IdentityPlatformConfigBlockingFunctionsOutputReference = IdentityPlatformConfigBlockingFunctionsOutputReference; _d = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigBlockingFunctionsOutputReference[_d] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigBlockingFunctionsOutputReference", version: "14.12.0" }; function identityPlatformConfigClientPermissionsToTerraform(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 { disabled_user_deletion: cdktf.booleanToTerraform(struct.disabledUserDeletion), disabled_user_signup: cdktf.booleanToTerraform(struct.disabledUserSignup), }; } exports.identityPlatformConfigClientPermissionsToTerraform = identityPlatformConfigClientPermissionsToTerraform; function identityPlatformConfigClientPermissionsToHclTerraform(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 = { disabled_user_deletion: { value: cdktf.booleanToHclTerraform(struct.disabledUserDeletion), isBlock: false, type: "simple", storageClassType: "boolean", }, disabled_user_signup: { value: cdktf.booleanToHclTerraform(struct.disabledUserSignup), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigClientPermissionsToHclTerraform = identityPlatformConfigClientPermissionsToHclTerraform; class IdentityPlatformConfigClientPermissionsOutputReference 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._disabledUserDeletion !== undefined) { hasAnyValues = true; internalValueResult.disabledUserDeletion = this._disabledUserDeletion; } if (this._disabledUserSignup !== undefined) { hasAnyValues = true; internalValueResult.disabledUserSignup = this._disabledUserSignup; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._disabledUserDeletion = undefined; this._disabledUserSignup = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._disabledUserDeletion = value.disabledUserDeletion; this._disabledUserSignup = value.disabledUserSignup; } } get disabledUserDeletion() { return this.getBooleanAttribute('disabled_user_deletion'); } set disabledUserDeletion(value) { this._disabledUserDeletion = value; } resetDisabledUserDeletion() { this._disabledUserDeletion = undefined; } // Temporarily expose input value. Use with caution. get disabledUserDeletionInput() { return this._disabledUserDeletion; } get disabledUserSignup() { return this.getBooleanAttribute('disabled_user_signup'); } set disabledUserSignup(value) { this._disabledUserSignup = value; } resetDisabledUserSignup() { this._disabledUserSignup = undefined; } // Temporarily expose input value. Use with caution. get disabledUserSignupInput() { return this._disabledUserSignup; } } exports.IdentityPlatformConfigClientPermissionsOutputReference = IdentityPlatformConfigClientPermissionsOutputReference; _e = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigClientPermissionsOutputReference[_e] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigClientPermissionsOutputReference", version: "14.12.0" }; function identityPlatformConfigClientToTerraform(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 { permissions: identityPlatformConfigClientPermissionsToTerraform(struct.permissions), }; } exports.identityPlatformConfigClientToTerraform = identityPlatformConfigClientToTerraform; function identityPlatformConfigClientToHclTerraform(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 = { permissions: { value: identityPlatformConfigClientPermissionsToHclTerraform(struct.permissions), isBlock: true, type: "list", storageClassType: "IdentityPlatformConfigClientPermissionsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigClientToHclTerraform = identityPlatformConfigClientToHclTerraform; class IdentityPlatformConfigClientOutputReference 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; // permissions - computed: false, optional: true, required: false this._permissions = new IdentityPlatformConfigClientPermissionsOutputReference(this, "permissions"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._permissions?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.permissions = this._permissions?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._permissions.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._permissions.internalValue = value.permissions; } } // api_key - computed: true, optional: false, required: false get apiKey() { return this.getStringAttribute('api_key'); } // firebase_subdomain - computed: true, optional: false, required: false get firebaseSubdomain() { return this.getStringAttribute('firebase_subdomain'); } get permissions() { return this._permissions; } putPermissions(value) { this._permissions.internalValue = value; } resetPermissions() { this._permissions.internalValue = undefined; } // Temporarily expose input value. Use with caution. get permissionsInput() { return this._permissions.internalValue; } } exports.IdentityPlatformConfigClientOutputReference = IdentityPlatformConfigClientOutputReference; _f = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigClientOutputReference[_f] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigClientOutputReference", version: "14.12.0" }; function identityPlatformConfigMfaProviderConfigsTotpProviderConfigToTerraform(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 { adjacent_intervals: cdktf.numberToTerraform(struct.adjacentIntervals), }; } exports.identityPlatformConfigMfaProviderConfigsTotpProviderConfigToTerraform = identityPlatformConfigMfaProviderConfigsTotpProviderConfigToTerraform; function identityPlatformConfigMfaProviderConfigsTotpProviderConfigToHclTerraform(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 = { adjacent_intervals: { value: cdktf.numberToHclTerraform(struct.adjacentIntervals), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigMfaProviderConfigsTotpProviderConfigToHclTerraform = identityPlatformConfigMfaProviderConfigsTotpProviderConfigToHclTerraform; class IdentityPlatformConfigMfaProviderConfigsTotpProviderConfigOutputReference 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._adjacentIntervals !== undefined) { hasAnyValues = true; internalValueResult.adjacentIntervals = this._adjacentIntervals; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._adjacentIntervals = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._adjacentIntervals = value.adjacentIntervals; } } get adjacentIntervals() { return this.getNumberAttribute('adjacent_intervals'); } set adjacentIntervals(value) { this._adjacentIntervals = value; } resetAdjacentIntervals() { this._adjacentIntervals = undefined; } // Temporarily expose input value. Use with caution. get adjacentIntervalsInput() { return this._adjacentIntervals; } } exports.IdentityPlatformConfigMfaProviderConfigsTotpProviderConfigOutputReference = IdentityPlatformConfigMfaProviderConfigsTotpProviderConfigOutputReference; _g = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigMfaProviderConfigsTotpProviderConfigOutputReference[_g] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigMfaProviderConfigsTotpProviderConfigOutputReference", version: "14.12.0" }; function identityPlatformConfigMfaProviderConfigsToTerraform(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 { state: cdktf.stringToTerraform(struct.state), totp_provider_config: identityPlatformConfigMfaProviderConfigsTotpProviderConfigToTerraform(struct.totpProviderConfig), }; } exports.identityPlatformConfigMfaProviderConfigsToTerraform = identityPlatformConfigMfaProviderConfigsToTerraform; function identityPlatformConfigMfaProviderConfigsToHclTerraform(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 = { state: { value: cdktf.stringToHclTerraform(struct.state), isBlock: false, type: "simple", storageClassType: "string", }, totp_provider_config: { value: identityPlatformConfigMfaProviderConfigsTotpProviderConfigToHclTerraform(struct.totpProviderConfig), isBlock: true, type: "list", storageClassType: "IdentityPlatformConfigMfaProviderConfigsTotpProviderConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigMfaProviderConfigsToHclTerraform = identityPlatformConfigMfaProviderConfigsToHclTerraform; class IdentityPlatformConfigMfaProviderConfigsOutputReference 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; // totp_provider_config - computed: false, optional: true, required: false this._totpProviderConfig = new IdentityPlatformConfigMfaProviderConfigsTotpProviderConfigOutputReference(this, "totp_provider_config"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._state !== undefined) { hasAnyValues = true; internalValueResult.state = this._state; } if (this._totpProviderConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.totpProviderConfig = this._totpProviderConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._state = undefined; this._totpProviderConfig.internalValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._state = value.state; this._totpProviderConfig.internalValue = value.totpProviderConfig; } } get state() { return this.getStringAttribute('state'); } set state(value) { this._state = value; } resetState() { this._state = undefined; } // Temporarily expose input value. Use with caution. get stateInput() { return this._state; } get totpProviderConfig() { return this._totpProviderConfig; } putTotpProviderConfig(value) { this._totpProviderConfig.internalValue = value; } resetTotpProviderConfig() { this._totpProviderConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get totpProviderConfigInput() { return this._totpProviderConfig.internalValue; } } exports.IdentityPlatformConfigMfaProviderConfigsOutputReference = IdentityPlatformConfigMfaProviderConfigsOutputReference; _h = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigMfaProviderConfigsOutputReference[_h] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigMfaProviderConfigsOutputReference", version: "14.12.0" }; class IdentityPlatformConfigMfaProviderConfigsList 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 IdentityPlatformConfigMfaProviderConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.IdentityPlatformConfigMfaProviderConfigsList = IdentityPlatformConfigMfaProviderConfigsList; _j = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigMfaProviderConfigsList[_j] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigMfaProviderConfigsList", version: "14.12.0" }; function identityPlatformConfigMfaToTerraform(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 { enabled_providers: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.enabledProviders), state: cdktf.stringToTerraform(struct.state), provider_configs: cdktf.listMapper(identityPlatformConfigMfaProviderConfigsToTerraform, true)(struct.providerConfigs), }; } exports.identityPlatformConfigMfaToTerraform = identityPlatformConfigMfaToTerraform; function identityPlatformConfigMfaToHclTerraform(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 = { enabled_providers: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.enabledProviders), isBlock: false, type: "list", storageClassType: "stringList", }, state: { value: cdktf.stringToHclTerraform(struct.state), isBlock: false, type: "simple", storageClassType: "string", }, provider_configs: { value: cdktf.listMapperHcl(identityPlatformConfigMfaProviderConfigsToHclTerraform, true)(struct.providerConfigs), isBlock: true, type: "list", storageClassType: "IdentityPlatformConfigMfaProviderConfigsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigMfaToHclTerraform = identityPlatformConfigMfaToHclTerraform; class IdentityPlatformConfigMfaOutputReference 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; // provider_configs - computed: false, optional: true, required: false this._providerConfigs = new IdentityPlatformConfigMfaProviderConfigsList(this, "provider_configs", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._enabledProviders !== undefined) { hasAnyValues = true; internalValueResult.enabledProviders = this._enabledProviders; } if (this._state !== undefined) { hasAnyValues = true; internalValueResult.state = this._state; } if (this._providerConfigs?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.providerConfigs = this._providerConfigs?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enabledProviders = undefined; this._state = undefined; this._providerConfigs.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabledProviders = value.enabledProviders; this._state = value.state; this._providerConfigs.internalValue = value.providerConfigs; } } get enabledProviders() { return this.getListAttribute('enabled_providers'); } set enabledProviders(value) { this._enabledProviders = value; } resetEnabledProviders() { this._enabledProviders = undefined; } // Temporarily expose input value. Use with caution. get enabledProvidersInput() { return this._enabledProviders; } get state() { return this.getStringAttribute('state'); } set state(value) { this._state = value; } resetState() { this._state = undefined; } // Temporarily expose input value. Use with caution. get stateInput() { return this._state; } get providerConfigs() { return this._providerConfigs; } putProviderConfigs(value) { this._providerConfigs.internalValue = value; } resetProviderConfigs() { this._providerConfigs.internalValue = undefined; } // Temporarily expose input value. Use with caution. get providerConfigsInput() { return this._providerConfigs.internalValue; } } exports.IdentityPlatformConfigMfaOutputReference = IdentityPlatformConfigMfaOutputReference; _k = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigMfaOutputReference[_k] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigMfaOutputReference", version: "14.12.0" }; function identityPlatformConfigMonitoringRequestLoggingToTerraform(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 { enabled: cdktf.booleanToTerraform(struct.enabled), }; } exports.identityPlatformConfigMonitoringRequestLoggingToTerraform = identityPlatformConfigMonitoringRequestLoggingToTerraform; function identityPlatformConfigMonitoringRequestLoggingToHclTerraform(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 = { enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigMonitoringRequestLoggingToHclTerraform = identityPlatformConfigMonitoringRequestLoggingToHclTerraform; class IdentityPlatformConfigMonitoringRequestLoggingOutputReference 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._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; } } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } } exports.IdentityPlatformConfigMonitoringRequestLoggingOutputReference = IdentityPlatformConfigMonitoringRequestLoggingOutputReference; _l = JSII_RTTI_SYMBOL_1; IdentityPlatformConfigMonitoringRequestLoggingOutputReference[_l] = { fqn: "@cdktf/provider-google.identityPlatformConfig.IdentityPlatformConfigMonitoringRequestLoggingOutputReference", version: "14.12.0" }; function identityPlatformConfigMonitoringToTerraform(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 { request_logging: identityPlatformConfigMonitoringRequestLoggingToTerraform(struct.requestLogging), }; } exports.identityPlatformConfigMonitoringToTerraform = identityPlatformConfigMonitoringToTerraform; function identityPlatformConfigMonitoringToHclTerraform(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 = { request_logging: { value: identityPlatformConfigMonitoringRequestLoggingToHclTerraform(struct.requestLogging), isBlock: true, type: "list", storageClassType: "IdentityPlatformConfigMonitoringRequestLoggingList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.identityPlatformConfigMonitoringToHclTerraform = identityPlatformConfigMonitoringToHclTerraform; class IdentityPlatformConfigMonitoringOutputReference 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; // request_logging - computed: false, optional: true, required: false this._requestLogging = new IdentityPlatformConfigMonitoringRequestLoggingOutputReference(this, "request_logging"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._requestLogging?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.requestLogging = this._requestLogging?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) {