@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.695Z") @Stability(value=Stable) public class UserPoolOperation extends software.amazon.jsii.JsiiObject
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 | Field and Description |
|---|---|
static UserPoolOperation |
CREATE_AUTH_CHALLENGE
Creates a challenge in a custom auth flow.
|
static UserPoolOperation |
CUSTOM_EMAIL_SENDER
Amazon Cognito invokes this trigger to send email notifications to users.
|
static UserPoolOperation |
CUSTOM_MESSAGE
Advanced customization and localization of messages.
|
static UserPoolOperation |
CUSTOM_SMS_SENDER
Amazon Cognito invokes this trigger to send email notifications to users.
|
static UserPoolOperation |
DEFINE_AUTH_CHALLENGE
Determines the next challenge in a custom auth flow.
|
static UserPoolOperation |
POST_AUTHENTICATION
Event logging for custom analytics.
|
static UserPoolOperation |
POST_CONFIRMATION
Custom welcome messages or event logging for custom analytics.
|
static UserPoolOperation |
PRE_AUTHENTICATION
Custom validation to accept or deny the sign-in request.
|
static UserPoolOperation |
PRE_SIGN_UP
Custom validation to accept or deny the sign-up request.
|
static UserPoolOperation |
PRE_TOKEN_GENERATION
Add or remove attributes in Id tokens.
|
static UserPoolOperation |
USER_MIGRATION
Migrate a user from an existing user directory to user pools.
|
static UserPoolOperation |
VERIFY_AUTH_CHALLENGE_RESPONSE
Determines if a response is correct in a custom auth flow.
|
| Modifier | Constructor and Description |
|---|---|
protected |
UserPoolOperation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
UserPoolOperation(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getOperationName()
The key to use in `CfnUserPool.LambdaConfigProperty`.
|
static UserPoolOperation |
of(String name)
A custom user pool operation.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final UserPoolOperation CREATE_AUTH_CHALLENGE
@Stability(value=Stable) public static final UserPoolOperation CUSTOM_EMAIL_SENDER
@Stability(value=Stable) public static final UserPoolOperation CUSTOM_MESSAGE
@Stability(value=Stable) public static final UserPoolOperation CUSTOM_SMS_SENDER
@Stability(value=Stable) public static final UserPoolOperation DEFINE_AUTH_CHALLENGE
@Stability(value=Stable) public static final UserPoolOperation POST_AUTHENTICATION
@Stability(value=Stable) public static final UserPoolOperation POST_CONFIRMATION
@Stability(value=Stable) public static final UserPoolOperation PRE_AUTHENTICATION
@Stability(value=Stable) public static final UserPoolOperation PRE_SIGN_UP
@Stability(value=Stable) public static final UserPoolOperation PRE_TOKEN_GENERATION
@Stability(value=Stable) public static final UserPoolOperation USER_MIGRATION
@Stability(value=Stable) public static final UserPoolOperation VERIFY_AUTH_CHALLENGE_RESPONSE
protected UserPoolOperation(software.amazon.jsii.JsiiObjectRef objRef)
protected UserPoolOperation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static UserPoolOperation of(@NotNull String name)
name - This parameter is required.@Stability(value=Stable) @NotNull public String getOperationName()
Copyright © 2022. All rights reserved.