Interface UserPoolTriggers
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
UserPoolTriggers.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:07.536Z")
@Stability(Stable)
public interface UserPoolTriggers
extends software.amazon.jsii.JsiiSerializable
Triggers for a user pool.
Example:
Function authChallengeFn = Function.Builder.create(this, "authChallengeFn")
.runtime(Runtime.NODEJS_LATEST)
.handler("index.handler")
.code(Code.fromAsset(join(__dirname, "path/to/asset")))
.build();
UserPool userpool = UserPool.Builder.create(this, "myuserpool")
// ...
.lambdaTriggers(UserPoolTriggers.builder()
.createAuthChallenge(authChallengeFn)
.build())
.build();
userpool.addTrigger(UserPoolOperation.USER_MIGRATION, Function.Builder.create(this, "userMigrationFn")
.runtime(Runtime.NODEJS_LATEST)
.handler("index.handler")
.code(Code.fromAsset(join(__dirname, "path/to/asset")))
.build());
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forUserPoolTriggersstatic final classAn implementation forUserPoolTriggers -
Method Summary
Modifier and TypeMethodDescriptionstatic UserPoolTriggers.Builderbuilder()default IFunctionCreates an authentication challenge.default IFunctionAmazon Cognito invokes this trigger to send email notifications to users.default IFunctionA custom Message AWS Lambda trigger.default IFunctionAmazon Cognito invokes this trigger to send SMS notifications to users.default IFunctionDefines the authentication challenge.default IFunctionA post-authentication AWS Lambda trigger.default IFunctionA post-confirmation AWS Lambda trigger.default IFunctionA pre-authentication AWS Lambda trigger.default IFunctionA pre-registration AWS Lambda trigger.default IFunctionA pre-token-generation AWS Lambda trigger.default IFunctionA user-migration AWS Lambda trigger.default IFunctionVerifies the authentication challenge response.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCreateAuthChallenge
Creates an authentication challenge.Default: - no trigger configured
- See Also:
-
getCustomEmailSender
Amazon Cognito invokes this trigger to send email notifications to users.Default: - no trigger configured
- See Also:
-
getCustomMessage
A custom Message AWS Lambda trigger.Default: - no trigger configured
- See Also:
-
getCustomSmsSender
Amazon Cognito invokes this trigger to send SMS notifications to users.Default: - no trigger configured
- See Also:
-
getDefineAuthChallenge
Defines the authentication challenge.Default: - no trigger configured
- See Also:
-
getPostAuthentication
A post-authentication AWS Lambda trigger.Default: - no trigger configured
- See Also:
-
getPostConfirmation
A post-confirmation AWS Lambda trigger.Default: - no trigger configured
- See Also:
-
getPreAuthentication
A pre-authentication AWS Lambda trigger.Default: - no trigger configured
- See Also:
-
getPreSignUp
A pre-registration AWS Lambda trigger.Default: - no trigger configured
- See Also:
-
getPreTokenGeneration
A pre-token-generation AWS Lambda trigger.Default: - no trigger configured
- See Also:
-
getUserMigration
A user-migration AWS Lambda trigger.Default: - no trigger configured
- See Also:
-
getVerifyAuthChallengeResponse
Verifies the authentication challenge response.Default: - no trigger configured
- See Also:
-
builder
- Returns:
- a
UserPoolTriggers.BuilderofUserPoolTriggers
-