UNPKG

@cn-shell/aws-utils

Version:
24 lines (23 loc) 799 B
import * as Aws from "./aws-base"; import AWS_CongitoIdentityServiceProvider from "aws-sdk/clients/cognitoidentityserviceprovider"; export interface Opts extends Aws.Opts { poolId: string; } export interface UserAttrib { attribute: string; value: string; } export declare class CognitoUserPool extends Aws.Base { private _poolId; private _userPool; constructor(name: string, opts: Opts); start(): Promise<boolean>; stop(): Promise<void>; healthCheck(): Promise<boolean>; getUsers( paginationToken?: string, ): Promise<AWS_CongitoIdentityServiceProvider.UsersListType>; createUser(userName: string, userAtribs: UserAttrib[]): Promise<boolean>; deleteUser(userName: string): Promise<boolean>; changeUserPassword(userName: string, password: string): Promise<boolean>; }