Class UserPoolTriggers.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolTriggers.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolTriggers>
- Enclosing interface:
UserPoolTriggers
@Stability(Stable)
public static final class UserPoolTriggers.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolTriggers>
A builder for
UserPoolTriggers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.createAuthChallenge
(IFunction createAuthChallenge) Sets the value ofUserPoolTriggers.getCreateAuthChallenge()
customEmailSender
(IFunction customEmailSender) Sets the value ofUserPoolTriggers.getCustomEmailSender()
customMessage
(IFunction customMessage) Sets the value ofUserPoolTriggers.getCustomMessage()
customSmsSender
(IFunction customSmsSender) Sets the value ofUserPoolTriggers.getCustomSmsSender()
defineAuthChallenge
(IFunction defineAuthChallenge) Sets the value ofUserPoolTriggers.getDefineAuthChallenge()
postAuthentication
(IFunction postAuthentication) Sets the value ofUserPoolTriggers.getPostAuthentication()
postConfirmation
(IFunction postConfirmation) Sets the value ofUserPoolTriggers.getPostConfirmation()
preAuthentication
(IFunction preAuthentication) Sets the value ofUserPoolTriggers.getPreAuthentication()
Sets the value ofUserPoolTriggers.getPreSignUp()
preTokenGeneration
(IFunction preTokenGeneration) Sets the value ofUserPoolTriggers.getPreTokenGeneration()
userMigration
(IFunction userMigration) Sets the value ofUserPoolTriggers.getUserMigration()
verifyAuthChallengeResponse
(IFunction verifyAuthChallengeResponse) Sets the value ofUserPoolTriggers.getVerifyAuthChallengeResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
createAuthChallenge
@Stability(Stable) public UserPoolTriggers.Builder createAuthChallenge(IFunction createAuthChallenge) Sets the value ofUserPoolTriggers.getCreateAuthChallenge()
- Parameters:
createAuthChallenge
- Creates an authentication challenge.- Returns:
this
-
customEmailSender
Sets the value ofUserPoolTriggers.getCustomEmailSender()
- Parameters:
customEmailSender
- Amazon Cognito invokes this trigger to send email notifications to users.- Returns:
this
-
customMessage
Sets the value ofUserPoolTriggers.getCustomMessage()
- Parameters:
customMessage
- A custom Message AWS Lambda trigger.- Returns:
this
-
customSmsSender
Sets the value ofUserPoolTriggers.getCustomSmsSender()
- Parameters:
customSmsSender
- Amazon Cognito invokes this trigger to send SMS notifications to users.- Returns:
this
-
defineAuthChallenge
@Stability(Stable) public UserPoolTriggers.Builder defineAuthChallenge(IFunction defineAuthChallenge) Sets the value ofUserPoolTriggers.getDefineAuthChallenge()
- Parameters:
defineAuthChallenge
- Defines the authentication challenge.- Returns:
this
-
postAuthentication
Sets the value ofUserPoolTriggers.getPostAuthentication()
- Parameters:
postAuthentication
- A post-authentication AWS Lambda trigger.- Returns:
this
-
postConfirmation
Sets the value ofUserPoolTriggers.getPostConfirmation()
- Parameters:
postConfirmation
- A post-confirmation AWS Lambda trigger.- Returns:
this
-
preAuthentication
Sets the value ofUserPoolTriggers.getPreAuthentication()
- Parameters:
preAuthentication
- A pre-authentication AWS Lambda trigger.- Returns:
this
-
preSignUp
Sets the value ofUserPoolTriggers.getPreSignUp()
- Parameters:
preSignUp
- A pre-registration AWS Lambda trigger.- Returns:
this
-
preTokenGeneration
Sets the value ofUserPoolTriggers.getPreTokenGeneration()
- Parameters:
preTokenGeneration
- A pre-token-generation AWS Lambda trigger.- Returns:
this
-
userMigration
Sets the value ofUserPoolTriggers.getUserMigration()
- Parameters:
userMigration
- A user-migration AWS Lambda trigger.- Returns:
this
-
verifyAuthChallengeResponse
@Stability(Stable) public UserPoolTriggers.Builder verifyAuthChallengeResponse(IFunction verifyAuthChallengeResponse) Sets the value ofUserPoolTriggers.getVerifyAuthChallengeResponse()
- Parameters:
verifyAuthChallengeResponse
- Verifies the authentication challenge response.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolTriggers>
- Returns:
- a new instance of
UserPoolTriggers
- Throws:
NullPointerException
- if any required attribute was not provided
-