UNPKG

@cpmech/az-cdk

Version:
33 lines (32 loc) 1.1 kB
import { Construct } from '@aws-cdk/core'; import { UserVerificationConfig, PasswordPolicy } from '@aws-cdk/aws-cognito'; import { Runtime } from '@aws-cdk/aws-lambda'; import { Iany } from '@cpmech/basic'; export interface ICognitoProps { poolName: string; emailSendingAccount: string; passwordPolicy?: PasswordPolicy; customAttributes?: string[]; domainPrefix?: string; facebookClientId?: string; facebookClientSecret?: string; googleClientId?: string; googleClientSecret?: string; callbackUrls?: string[]; logoutUrls?: string[]; postConfirmTrigger?: boolean; postConfirmSendEmail?: boolean; postConfirmDynamoTable?: string; postConfirmRuntime?: Runtime; noSelfSignUp?: boolean; userVerification?: UserVerificationConfig; useLayers?: boolean; dirLayers?: string; dirDist?: string; envars?: Iany; } export declare class CognitoConstruct extends Construct { readonly poolId: string; readonly clientId: string; constructor(scope: Construct, id: string, props: ICognitoProps); }