Class UserPoolOperation
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cognito.UserPoolOperation
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.095Z")
@Stability(Stable)
public class UserPoolOperation
extends software.amazon.jsii.JsiiObject
User pool operations to which lambda triggers can be attached.
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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UserPoolOperationCreates a challenge in a custom auth flow.static final UserPoolOperationAmazon Cognito invokes this trigger to send email notifications to users.static final UserPoolOperationAdvanced customization and localization of messages.static final UserPoolOperationAmazon Cognito invokes this trigger to send email notifications to users.static final UserPoolOperationDetermines the next challenge in a custom auth flow.static final UserPoolOperationEvent logging for custom analytics.static final UserPoolOperationCustom welcome messages or event logging for custom analytics.static final UserPoolOperationCustom validation to accept or deny the sign-in request.static final UserPoolOperationCustom validation to accept or deny the sign-up request.static final UserPoolOperationAdd or remove attributes in Id tokens.static final UserPoolOperationMigrate a user from an existing user directory to user pools.static final UserPoolOperationDetermines if a response is correct in a custom auth flow. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUserPoolOperation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedUserPoolOperation(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe key to use inCfnUserPool.LambdaConfigProperty.static UserPoolOperationA custom user pool operation.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CREATE_AUTH_CHALLENGE
Creates a challenge in a custom auth flow. -
CUSTOM_EMAIL_SENDER
Amazon Cognito invokes this trigger to send email notifications to users. -
CUSTOM_MESSAGE
Advanced customization and localization of messages. -
CUSTOM_SMS_SENDER
Amazon Cognito invokes this trigger to send email notifications to users. -
DEFINE_AUTH_CHALLENGE
Determines the next challenge in a custom auth flow. -
POST_AUTHENTICATION
Event logging for custom analytics. -
POST_CONFIRMATION
Custom welcome messages or event logging for custom analytics. -
PRE_AUTHENTICATION
Custom validation to accept or deny the sign-in request. -
PRE_SIGN_UP
Custom validation to accept or deny the sign-up request. -
PRE_TOKEN_GENERATION
Add or remove attributes in Id tokens. -
USER_MIGRATION
Migrate a user from an existing user directory to user pools. -
VERIFY_AUTH_CHALLENGE_RESPONSE
Determines if a response is correct in a custom auth flow.
-
-
Constructor Details
-
UserPoolOperation
protected UserPoolOperation(software.amazon.jsii.JsiiObjectRef objRef) -
UserPoolOperation
protected UserPoolOperation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
of
A custom user pool operation.- Parameters:
name- This parameter is required.
-
getOperationName
The key to use inCfnUserPool.LambdaConfigProperty.
-