Class KinesisStreamsToLambdaProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.kinesisstreamslambda.KinesisStreamsToLambdaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KinesisStreamsToLambdaProps>
- Enclosing interface:
KinesisStreamsToLambdaProps
public static final class KinesisStreamsToLambdaProps.Builder
extends Object
implements software.amazon.jsii.Builder<KinesisStreamsToLambdaProps>
A builder for
KinesisStreamsToLambdaProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.createCloudWatchAlarms(Boolean createCloudWatchAlarms) Sets the value ofKinesisStreamsToLambdaProps.getCreateCloudWatchAlarms()deploySqsDlqQueue(Boolean deploySqsDlqQueue) Sets the value ofKinesisStreamsToLambdaProps.getDeploySqsDlqQueue()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofKinesisStreamsToLambdaProps.getExistingLambdaObj()existingStreamObj(software.amazon.awscdk.services.kinesis.Stream existingStreamObj) Sets the value ofKinesisStreamsToLambdaProps.getExistingStreamObj()kinesisEventSourceProps(Object kinesisEventSourceProps) Sets the value ofKinesisStreamsToLambdaProps.getKinesisEventSourceProps()kinesisStreamProps(software.amazon.awscdk.services.kinesis.StreamProps kinesisStreamProps) Sets the value ofKinesisStreamsToLambdaProps.getKinesisStreamProps()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofKinesisStreamsToLambdaProps.getLambdaFunctionProps()sqsDlqQueueProps(software.amazon.awscdk.services.sqs.QueueProps sqsDlqQueueProps) Sets the value ofKinesisStreamsToLambdaProps.getSqsDlqQueueProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
createCloudWatchAlarms
Sets the value ofKinesisStreamsToLambdaProps.getCreateCloudWatchAlarms()- Parameters:
createCloudWatchAlarms- Whether to create recommended CloudWatch alarms.- Returns:
this
-
deploySqsDlqQueue
Sets the value ofKinesisStreamsToLambdaProps.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
-
existingLambdaObj
public KinesisStreamsToLambdaProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofKinesisStreamsToLambdaProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
existingStreamObj
public KinesisStreamsToLambdaProps.Builder existingStreamObj(software.amazon.awscdk.services.kinesis.Stream existingStreamObj) Sets the value ofKinesisStreamsToLambdaProps.getExistingStreamObj()- Parameters:
existingStreamObj- Existing instance of Kinesis Stream, providing both this andkinesisStreamPropswill cause an error.- Returns:
this
-
kinesisEventSourceProps
Sets the value ofKinesisStreamsToLambdaProps.getKinesisEventSourceProps()- Parameters:
kinesisEventSourceProps- Optional user-provided props to override the default props for the Lambda event source mapping.- Returns:
this
-
kinesisStreamProps
public KinesisStreamsToLambdaProps.Builder kinesisStreamProps(software.amazon.awscdk.services.kinesis.StreamProps kinesisStreamProps) Sets the value ofKinesisStreamsToLambdaProps.getKinesisStreamProps()- Parameters:
kinesisStreamProps- Optional user-provided props to override the default props for the Kinesis stream.- Returns:
this
-
lambdaFunctionProps
public KinesisStreamsToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofKinesisStreamsToLambdaProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function.- Returns:
this
-
sqsDlqQueueProps
public KinesisStreamsToLambdaProps.Builder sqsDlqQueueProps(software.amazon.awscdk.services.sqs.QueueProps sqsDlqQueueProps) Sets the value ofKinesisStreamsToLambdaProps.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<KinesisStreamsToLambdaProps>- Returns:
- a new instance of
KinesisStreamsToLambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-