Class AppSyncLambdaAuthorizerConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.AppSyncLambdaAuthorizerConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppSyncLambdaAuthorizerConfig>
- Enclosing interface:
AppSyncLambdaAuthorizerConfig
@Stability(Stable)
public static final class AppSyncLambdaAuthorizerConfig.Builder
extends Object
implements software.amazon.jsii.Builder<AppSyncLambdaAuthorizerConfig>
A builder for
AppSyncLambdaAuthorizerConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAppSyncLambdaAuthorizerConfig.getHandler()resultsCacheTtl(Duration resultsCacheTtl) Sets the value ofAppSyncLambdaAuthorizerConfig.getResultsCacheTtl()validationRegex(String validationRegex) Sets the value ofAppSyncLambdaAuthorizerConfig.getValidationRegex()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
handler
Sets the value ofAppSyncLambdaAuthorizerConfig.getHandler()- Parameters:
handler- The authorizer lambda function. This parameter is required.- Returns:
this
-
resultsCacheTtl
@Stability(Stable) public AppSyncLambdaAuthorizerConfig.Builder resultsCacheTtl(Duration resultsCacheTtl) Sets the value ofAppSyncLambdaAuthorizerConfig.getResultsCacheTtl()- Parameters:
resultsCacheTtl- How long the results are cached. Disable caching by setting this to 0.- Returns:
this
-
validationRegex
@Stability(Stable) public AppSyncLambdaAuthorizerConfig.Builder validationRegex(String validationRegex) Sets the value ofAppSyncLambdaAuthorizerConfig.getValidationRegex()- Parameters:
validationRegex- A regular expression for validation of tokens before the Lambda function is called.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AppSyncLambdaAuthorizerConfig>- Returns:
- a new instance of
AppSyncLambdaAuthorizerConfig - Throws:
NullPointerException- if any required attribute was not provided
-