mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
aws-lambda : Add more Cognito triggerSources according to spec (#22943)
* aws-lambda : Add more triggerSources according to spec * aws-lambda: Add my info in the Definitions by - list * aws-lambda: Cognito triggerSources list failed npm test due to extra semi colon
This commit is contained in:
committed by
Andy
parent
8927b689ac
commit
286bf2a94d
@@ -291,6 +291,13 @@ cognitoUserPoolEvent.triggerSource === "CustomMessage_Authentication";
|
||||
cognitoUserPoolEvent.triggerSource === "DefineAuthChallenge_Authentication";
|
||||
cognitoUserPoolEvent.triggerSource === "CreateAuthChallenge_Authentication";
|
||||
cognitoUserPoolEvent.triggerSource === "VerifyAuthChallengeResponse_Authentication";
|
||||
cognitoUserPoolEvent.triggerSource === "PreSignUp_AdminCreateUser";
|
||||
cognitoUserPoolEvent.triggerSource === "PostConfirmation_ConfirmForgotPassword";
|
||||
cognitoUserPoolEvent.triggerSource === "TokenGeneration_HostedAuth";
|
||||
cognitoUserPoolEvent.triggerSource === "TokenGeneration_Authentication";
|
||||
cognitoUserPoolEvent.triggerSource === "TokenGeneration_NewPasswordChallenge";
|
||||
cognitoUserPoolEvent.triggerSource === "TokenGeneration_AuthenticateDevice";
|
||||
cognitoUserPoolEvent.triggerSource === "TokenGeneration_RefreshTokens";
|
||||
str = cognitoUserPoolEvent.region;
|
||||
str = cognitoUserPoolEvent.userPoolId;
|
||||
str = cognitoUserPoolEvent.userName;
|
||||
|
||||
Vendored
+2
-1
@@ -12,6 +12,7 @@
|
||||
// Daniel Cottone <https://github.com/daniel-cottone>
|
||||
// Kostya Misura <https://github.com/kostya-misura>
|
||||
// Markus Tacker <https://github.com/coderbyheart>
|
||||
// Palmi Valgeirsson <https://github.com/palmithor>
|
||||
// Danilo Raisi <https://github.com/daniloraisi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
@@ -199,7 +200,7 @@ interface S3CreateEvent {
|
||||
*/
|
||||
interface CognitoUserPoolEvent {
|
||||
version: number;
|
||||
triggerSource: "PreSignUp_SignUp" | "PostConfirmation_ConfirmSignUp" | "PreAuthentication_Authentication" | "PostAuthentication_Authentication" | "CustomMessage_SignUp" | "CustomMessage_AdminCreateUser" | "CustomMessage_ResendCode" | "CustomMessage_ForgotPassword" | "CustomMessage_UpdateUserAttribute" | "CustomMessage_VerifyUserAttribute" | "CustomMessage_Authentication" | "DefineAuthChallenge_Authentication" | "CreateAuthChallenge_Authentication" | "VerifyAuthChallengeResponse_Authentication";
|
||||
triggerSource: "PreSignUp_SignUp" | "PostConfirmation_ConfirmSignUp" | "PreAuthentication_Authentication" | "PostAuthentication_Authentication" | "CustomMessage_SignUp" | "CustomMessage_AdminCreateUser" | "CustomMessage_ResendCode" | "CustomMessage_ForgotPassword" | "CustomMessage_UpdateUserAttribute" | "CustomMessage_VerifyUserAttribute" | "CustomMessage_Authentication" | "DefineAuthChallenge_Authentication" | "CreateAuthChallenge_Authentication" | "VerifyAuthChallengeResponse_Authentication" | "PreSignUp_AdminCreateUser" | "PostConfirmation_ConfirmForgotPassword" | "TokenGeneration_HostedAuth" | "TokenGeneration_Authentication" | "TokenGeneration_NewPasswordChallenge" | "TokenGeneration_AuthenticateDevice" | "TokenGeneration_RefreshTokens";
|
||||
region: string;
|
||||
userPoolId: string;
|
||||
userName?: string;
|
||||
|
||||
Reference in New Issue
Block a user