UNPKG

@aws/pdk

Version:

All documentation is located at: https://aws.github.io/aws-pdk

34 lines (33 loc) 1.03 kB
import { IdentityPool, IdentityPoolProps } from "@aws-cdk/aws-cognito-identitypool-alpha"; import { UserPool, UserPoolClient } from "aws-cdk-lib/aws-cognito"; import { Construct } from "constructs"; /** * Properties which configures the Identity Pool. */ export interface UserIdentityProps { /** * Allow self sign up * * @default - false */ readonly allowSignup?: boolean; /** * User provided Cognito UserPool. * * @default - a userpool with mfa will be created. */ readonly userPool?: UserPool; /** * Configuration for the Identity Pool. */ readonly identityPoolOptions?: IdentityPoolProps; } /** * Creates a UserPool and Identity Pool with sane defaults configured intended for usage from a web client. */ export declare class UserIdentity extends Construct { readonly identityPool: IdentityPool; readonly userPool: UserPool; readonly userPoolClient: UserPoolClient; constructor(scope: Construct, id: string, props?: UserIdentityProps); }