Constructors PropertiesStaticcognito Error Map cognitoErrorMap : Map < new ( ... args : any [] ) => Error , ErrorConfig > = ... MethodsStaticarray2 Object array2Object < T > ( collection : T [] , abacRestrictions ?: string [] , key ?: string , ) : Record < string , T > Parameters collection : T [] OptionalabacRestrictions : string [] key : string = "id" Returns Record < string , T > Staticcreate Response createResponse ( statusCode : number , body : any , ) : { body : string ; headers : { "Access-Control-Allow-Credentials" : boolean ; "Access-Control-Allow-Origin" : string ; "Content-Type" : string ; } ; statusCode : number ; } Parameters statusCode : number body : any Returns { body : string ; headers : { "Access-Control-Allow-Credentials" : boolean ; "Access-Control-Allow-Origin" : string ; "Content-Type" : string ; } ; statusCode : number ; } Statichandle Cognito Error handleCognitoError ( error : unknown ) : never Staticremove Attributes removeAttributes < T > ( collection : T [] , abacRestrictions ?: string [] ) : any [] Parameters collection : T [] OptionalabacRestrictions : string [] Returns any []
transforms an array of resource definitions to a keyed json object by given key (default of id attribute) mutates the response object given context aware attribute access restrictions