Interface UserPoolTriggers
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
UserPoolTriggers.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.106Z")
@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_14_X)
.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_14_X)
.handler("index.handler")
.code(Code.fromAsset(join(__dirname, "path/to/asset")))
.build());
-
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
-
getCustomEmailSender
Amazon Cognito invokes this trigger to send email notifications to users.Default: - no trigger configured
-
getCustomMessage
A custom Message AWS Lambda trigger.Default: - no trigger configured
-
getCustomSmsSender
Amazon Cognito invokes this trigger to send SMS notifications to users.Default: - no trigger configured
-
getDefineAuthChallenge
Defines the authentication challenge.Default: - no trigger configured
-
getPostAuthentication
A post-authentication AWS Lambda trigger.Default: - no trigger configured
-
getPostConfirmation
A post-confirmation AWS Lambda trigger.Default: - no trigger configured
-
getPreAuthentication
A pre-authentication AWS Lambda trigger.Default: - no trigger configured
-
getPreSignUp
A pre-registration AWS Lambda trigger.Default: - no trigger configured
-
getPreTokenGeneration
A pre-token-generation AWS Lambda trigger.Default: - no trigger configured
-
getUserMigration
A user-migration AWS Lambda trigger.Default: - no trigger configured
-
getVerifyAuthChallengeResponse
Verifies the authentication challenge response.Default: - no trigger configured
-
builder
- Returns:
- a
UserPoolTriggers.BuilderofUserPoolTriggers
-