Class DynamoDBStreamsToLambdaProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.dynamodbstreamslambda.DynamoDBStreamsToLambdaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DynamoDBStreamsToLambdaProps>
- Enclosing interface:
DynamoDBStreamsToLambdaProps
public static final class DynamoDBStreamsToLambdaProps.Builder
extends Object
implements software.amazon.jsii.Builder<DynamoDBStreamsToLambdaProps>
A builder for
DynamoDBStreamsToLambdaProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deploySqsDlqQueue(Boolean deploySqsDlqQueue) Sets the value ofDynamoDBStreamsToLambdaProps.getDeploySqsDlqQueue()dynamoEventSourceProps(Object dynamoEventSourceProps) Sets the value ofDynamoDBStreamsToLambdaProps.getDynamoEventSourceProps()dynamoTableProps(software.amazon.awscdk.services.dynamodb.TableProps dynamoTableProps) Sets the value ofDynamoDBStreamsToLambdaProps.getDynamoTableProps()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofDynamoDBStreamsToLambdaProps.getExistingLambdaObj()existingTableInterface(software.amazon.awscdk.services.dynamodb.ITable existingTableInterface) Sets the value ofDynamoDBStreamsToLambdaProps.getExistingTableInterface()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofDynamoDBStreamsToLambdaProps.getLambdaFunctionProps()sqsDlqQueueProps(software.amazon.awscdk.services.sqs.QueueProps sqsDlqQueueProps) Sets the value ofDynamoDBStreamsToLambdaProps.getSqsDlqQueueProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deploySqsDlqQueue
Sets the value ofDynamoDBStreamsToLambdaProps.getDeploySqsDlqQueue()- Parameters:
deploySqsDlqQueue- Whether to deploy a SQS dead letter queue when a data record reaches the Maximum Retry Attempts or Maximum Record Age, its metadata like shard ID and stream ARN will be sent to an SQS queue.- Returns:
this
-
dynamoEventSourceProps
Sets the value ofDynamoDBStreamsToLambdaProps.getDynamoEventSourceProps()- Parameters:
dynamoEventSourceProps- Optional user provided props to override the default props.- Returns:
this
-
dynamoTableProps
public DynamoDBStreamsToLambdaProps.Builder dynamoTableProps(software.amazon.awscdk.services.dynamodb.TableProps dynamoTableProps) Sets the value ofDynamoDBStreamsToLambdaProps.getDynamoTableProps()- Parameters:
dynamoTableProps- Optional user provided props to override the default props.- Returns:
this
-
existingLambdaObj
public DynamoDBStreamsToLambdaProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofDynamoDBStreamsToLambdaProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
existingTableInterface
public DynamoDBStreamsToLambdaProps.Builder existingTableInterface(software.amazon.awscdk.services.dynamodb.ITable existingTableInterface) Sets the value ofDynamoDBStreamsToLambdaProps.getExistingTableInterface()- Parameters:
existingTableInterface- Existing instance of DynamoDB table object, providing both this anddynamoTablePropswill cause an error.- Returns:
this
-
lambdaFunctionProps
public DynamoDBStreamsToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofDynamoDBStreamsToLambdaProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function.- Returns:
this
-
sqsDlqQueueProps
public DynamoDBStreamsToLambdaProps.Builder sqsDlqQueueProps(software.amazon.awscdk.services.sqs.QueueProps sqsDlqQueueProps) Sets the value ofDynamoDBStreamsToLambdaProps.getSqsDlqQueueProps()- Parameters:
sqsDlqQueueProps- Optional user provided properties for the SQS dead letter queue.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DynamoDBStreamsToLambdaProps>- Returns:
- a new instance of
DynamoDBStreamsToLambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-