Class CfnUserPool.LambdaConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.LambdaConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.LambdaConfigProperty>
- Enclosing interface:
CfnUserPool.LambdaConfigProperty
@Stability(Stable)
public static final class CfnUserPool.LambdaConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.LambdaConfigProperty>
A builder for
CfnUserPool.LambdaConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.createAuthChallenge(String createAuthChallenge) Sets the value ofCfnUserPool.LambdaConfigProperty.getCreateAuthChallenge()customEmailSender(IResolvable customEmailSender) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomEmailSender()customEmailSender(CfnUserPool.CustomEmailSenderProperty customEmailSender) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomEmailSender()customMessage(String customMessage) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomMessage()customSmsSender(IResolvable customSmsSender) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomSmsSender()customSmsSender(CfnUserPool.CustomSMSSenderProperty customSmsSender) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomSmsSender()defineAuthChallenge(String defineAuthChallenge) Sets the value ofCfnUserPool.LambdaConfigProperty.getDefineAuthChallenge()Sets the value ofCfnUserPool.LambdaConfigProperty.getKmsKeyId()postAuthentication(String postAuthentication) Sets the value ofCfnUserPool.LambdaConfigProperty.getPostAuthentication()postConfirmation(String postConfirmation) Sets the value ofCfnUserPool.LambdaConfigProperty.getPostConfirmation()preAuthentication(String preAuthentication) Sets the value ofCfnUserPool.LambdaConfigProperty.getPreAuthentication()Sets the value ofCfnUserPool.LambdaConfigProperty.getPreSignUp()preTokenGeneration(String preTokenGeneration) Sets the value ofCfnUserPool.LambdaConfigProperty.getPreTokenGeneration()userMigration(String userMigration) Sets the value ofCfnUserPool.LambdaConfigProperty.getUserMigration()verifyAuthChallengeResponse(String verifyAuthChallengeResponse) Sets the value ofCfnUserPool.LambdaConfigProperty.getVerifyAuthChallengeResponse()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
createAuthChallenge
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder createAuthChallenge(String createAuthChallenge) Sets the value ofCfnUserPool.LambdaConfigProperty.getCreateAuthChallenge()- Parameters:
createAuthChallenge- Creates an authentication challenge.- Returns:
this
-
customEmailSender
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder customEmailSender(IResolvable customEmailSender) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomEmailSender()- Parameters:
customEmailSender- A custom email sender AWS Lambda trigger.- Returns:
this
-
customEmailSender
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder customEmailSender(CfnUserPool.CustomEmailSenderProperty customEmailSender) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomEmailSender()- Parameters:
customEmailSender- A custom email sender AWS Lambda trigger.- Returns:
this
-
customMessage
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder customMessage(String customMessage) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomMessage()- Parameters:
customMessage- A custom Message AWS Lambda trigger.- Returns:
this
-
customSmsSender
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder customSmsSender(IResolvable customSmsSender) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomSmsSender()- Parameters:
customSmsSender- A custom SMS sender AWS Lambda trigger.- Returns:
this
-
customSmsSender
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder customSmsSender(CfnUserPool.CustomSMSSenderProperty customSmsSender) Sets the value ofCfnUserPool.LambdaConfigProperty.getCustomSmsSender()- Parameters:
customSmsSender- A custom SMS sender AWS Lambda trigger.- Returns:
this
-
defineAuthChallenge
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder defineAuthChallenge(String defineAuthChallenge) Sets the value ofCfnUserPool.LambdaConfigProperty.getDefineAuthChallenge()- Parameters:
defineAuthChallenge- Defines the authentication challenge.- Returns:
this
-
kmsKeyId
Sets the value ofCfnUserPool.LambdaConfigProperty.getKmsKeyId()- Parameters:
kmsKeyId- The Amazon Resource Name of a AWS Key Management Service ( AWS KMS ) key. Amazon Cognito uses the key to encrypt codes and temporary passwords sent toCustomEmailSenderandCustomSMSSender.- Returns:
this
-
postAuthentication
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder postAuthentication(String postAuthentication) Sets the value ofCfnUserPool.LambdaConfigProperty.getPostAuthentication()- Parameters:
postAuthentication- A post-authentication AWS Lambda trigger.- Returns:
this
-
postConfirmation
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder postConfirmation(String postConfirmation) Sets the value ofCfnUserPool.LambdaConfigProperty.getPostConfirmation()- Parameters:
postConfirmation- A post-confirmation AWS Lambda trigger.- Returns:
this
-
preAuthentication
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder preAuthentication(String preAuthentication) Sets the value ofCfnUserPool.LambdaConfigProperty.getPreAuthentication()- Parameters:
preAuthentication- A pre-authentication AWS Lambda trigger.- Returns:
this
-
preSignUp
Sets the value ofCfnUserPool.LambdaConfigProperty.getPreSignUp()- Parameters:
preSignUp- A pre-registration AWS Lambda trigger.- Returns:
this
-
preTokenGeneration
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder preTokenGeneration(String preTokenGeneration) Sets the value ofCfnUserPool.LambdaConfigProperty.getPreTokenGeneration()- Parameters:
preTokenGeneration- The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger. Set this parameter for legacy purposes. If you also set an ARN inPreTokenGenerationConfig, its value must be identical toPreTokenGeneration. For new instances of pre token generation triggers, set theLambdaArnofPreTokenGenerationConfig.You can set ``
- Returns:
this
-
userMigration
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder userMigration(String userMigration) Sets the value ofCfnUserPool.LambdaConfigProperty.getUserMigration()- Parameters:
userMigration- The user migration Lambda config type.- Returns:
this
-
verifyAuthChallengeResponse
@Stability(Stable) public CfnUserPool.LambdaConfigProperty.Builder verifyAuthChallengeResponse(String verifyAuthChallengeResponse) Sets the value ofCfnUserPool.LambdaConfigProperty.getVerifyAuthChallengeResponse()- Parameters:
verifyAuthChallengeResponse- Verifies the authentication challenge response.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPool.LambdaConfigProperty>- Returns:
- a new instance of
CfnUserPool.LambdaConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-