Class CfnUserPool.PreTokenGenerationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.PreTokenGenerationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.PreTokenGenerationConfigProperty>
- Enclosing interface:
CfnUserPool.PreTokenGenerationConfigProperty
@Stability(Stable)
public static final class CfnUserPool.PreTokenGenerationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.PreTokenGenerationConfigProperty>
A builder for
CfnUserPool.PreTokenGenerationConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnUserPool.PreTokenGenerationConfigProperty.getLambdaArn()
lambdaVersion
(String lambdaVersion) Sets the value ofCfnUserPool.PreTokenGenerationConfigProperty.getLambdaVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaArn
@Stability(Stable) public CfnUserPool.PreTokenGenerationConfigProperty.Builder lambdaArn(String lambdaArn) Sets the value ofCfnUserPool.PreTokenGenerationConfigProperty.getLambdaArn()
- Parameters:
lambdaArn
- The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger. This parameter and thePreTokenGeneration
property ofLambdaConfig
have the same value. For new instances of pre token generation triggers, setLambdaArn
.- Returns:
this
-
lambdaVersion
@Stability(Stable) public CfnUserPool.PreTokenGenerationConfigProperty.Builder lambdaVersion(String lambdaVersion) Sets the value ofCfnUserPool.PreTokenGenerationConfigProperty.getLambdaVersion()
- Parameters:
lambdaVersion
- The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPool.PreTokenGenerationConfigProperty>
- Returns:
- a new instance of
CfnUserPool.PreTokenGenerationConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-