@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.657Z") @Stability(value=Stable) public interface UserPoolTriggers extends software.amazon.jsii.JsiiSerializable
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());
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserPoolTriggers.Builder
A builder for
UserPoolTriggers |
static class |
UserPoolTriggers.Jsii$Proxy
An implementation for
UserPoolTriggers |
| Modifier and Type | Method and Description |
|---|---|
static UserPoolTriggers.Builder |
builder() |
default IFunction |
getCreateAuthChallenge()
Creates an authentication challenge.
|
default IFunction |
getCustomEmailSender()
Amazon Cognito invokes this trigger to send email notifications to users.
|
default IFunction |
getCustomMessage()
A custom Message AWS Lambda trigger.
|
default IFunction |
getCustomSmsSender()
Amazon Cognito invokes this trigger to send SMS notifications to users.
|
default IFunction |
getDefineAuthChallenge()
Defines the authentication challenge.
|
default IFunction |
getPostAuthentication()
A post-authentication AWS Lambda trigger.
|
default IFunction |
getPostConfirmation()
A post-confirmation AWS Lambda trigger.
|
default IFunction |
getPreAuthentication()
A pre-authentication AWS Lambda trigger.
|
default IFunction |
getPreSignUp()
A pre-registration AWS Lambda trigger.
|
default IFunction |
getPreTokenGeneration()
A pre-token-generation AWS Lambda trigger.
|
default IFunction |
getUserMigration()
A user-migration AWS Lambda trigger.
|
default IFunction |
getVerifyAuthChallengeResponse()
Verifies the authentication challenge response.
|
@Stability(value=Stable) @Nullable default IFunction getCreateAuthChallenge()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getCustomEmailSender()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getCustomMessage()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getCustomSmsSender()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getDefineAuthChallenge()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getPostAuthentication()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getPostConfirmation()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getPreAuthentication()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getPreSignUp()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getPreTokenGeneration()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getUserMigration()
Default: - no trigger configured
@Stability(value=Stable) @Nullable default IFunction getVerifyAuthChallengeResponse()
Default: - no trigger configured
@Stability(value=Stable) static UserPoolTriggers.Builder builder()
UserPoolTriggers.Builder of UserPoolTriggersCopyright © 2022. All rights reserved.