Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-cognito/lib/private/ref-utils.js
2026-05-06 18:55:16 -05:00

2 lines
781 B
JavaScript

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toIUserPool=toIUserPool,exports.isIUserPoolIdentityProvider=isIUserPoolIdentityProvider;var core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp};function toIUserPool(ref){if(!isIUserPool(ref))throw new(core_1()).UnscopedValidationError((0,literal_string_1().lit)`UserpoolInstanceShouldImplement`,`'userPool' instance should implement IUserPool, but doesn't: ${ref.constructor.name}`);return ref}function isIUserPool(pool){return"userPoolId"in pool&&"userPoolArn"in pool&&"userPoolProviderName"in pool}function isIUserPoolIdentityProvider(x){return"providerName"in x}