@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:05.159Z") @Stability(value=Experimental) public class UserPoolOperation extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
Function authChallengeFn = Function.Builder.create(this, "authChallengeFn")
.runtime(Runtime.NODEJS_12_X)
.handler("index.handler")
.code(Code.fromAsset())
.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_12_X)
.handler("index.handler")
.code(Code.fromAsset())
.build());
| Modifier and Type | Field and Description |
|---|---|
static UserPoolOperation |
CREATE_AUTH_CHALLENGE
(experimental) Creates a challenge in a custom auth flow.
|
static UserPoolOperation |
CUSTOM_EMAIL_SENDER
(experimental) Amazon Cognito invokes this trigger to send email notifications to users.
|
static UserPoolOperation |
CUSTOM_MESSAGE
(experimental) Advanced customization and localization of messages.
|
static UserPoolOperation |
CUSTOM_SMS_SENDER
(experimental) Amazon Cognito invokes this trigger to send email notifications to users.
|
static UserPoolOperation |
DEFINE_AUTH_CHALLENGE
(experimental) Determines the next challenge in a custom auth flow.
|
static UserPoolOperation |
POST_AUTHENTICATION
(experimental) Event logging for custom analytics.
|
static UserPoolOperation |
POST_CONFIRMATION
(experimental) Custom welcome messages or event logging for custom analytics.
|
static UserPoolOperation |
PRE_AUTHENTICATION
(experimental) Custom validation to accept or deny the sign-in request.
|
static UserPoolOperation |
PRE_SIGN_UP
(experimental) Custom validation to accept or deny the sign-up request.
|
static UserPoolOperation |
PRE_TOKEN_GENERATION
(experimental) Add or remove attributes in Id tokens.
|
static UserPoolOperation |
USER_MIGRATION
(experimental) Migrate a user from an existing user directory to user pools.
|
static UserPoolOperation |
VERIFY_AUTH_CHALLENGE_RESPONSE
(experimental) 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()
(experimental) The key to use in `CfnUserPool.LambdaConfigProperty`.
|
static UserPoolOperation |
of(String name)
(experimental) A custom user pool operation.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final UserPoolOperation CREATE_AUTH_CHALLENGE
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-create-auth-challenge.html@Stability(value=Experimental) public static final UserPoolOperation CUSTOM_EMAIL_SENDER
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-email-sender.html@Stability(value=Experimental) public static final UserPoolOperation CUSTOM_MESSAGE
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-message.html@Stability(value=Experimental) public static final UserPoolOperation CUSTOM_SMS_SENDER
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-sms-sender.html@Stability(value=Experimental) public static final UserPoolOperation DEFINE_AUTH_CHALLENGE
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-define-auth-challenge.html@Stability(value=Experimental) public static final UserPoolOperation POST_AUTHENTICATION
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-authentication.html@Stability(value=Experimental) public static final UserPoolOperation POST_CONFIRMATION
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-post-confirmation.html@Stability(value=Experimental) public static final UserPoolOperation PRE_AUTHENTICATION
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html@Stability(value=Experimental) public static final UserPoolOperation PRE_SIGN_UP
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html@Stability(value=Experimental) public static final UserPoolOperation PRE_TOKEN_GENERATION
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html@Stability(value=Experimental) public static final UserPoolOperation USER_MIGRATION
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-migrate-user.html@Stability(value=Experimental) public static final UserPoolOperation VERIFY_AUTH_CHALLENGE_RESPONSE
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-verify-auth-challenge-response.htmlprotected UserPoolOperation(software.amazon.jsii.JsiiObjectRef objRef)
protected UserPoolOperation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static UserPoolOperation of(@NotNull String name)
name - This parameter is required.@Stability(value=Experimental) @NotNull public String getOperationName()
Copyright © 2022. All rights reserved.