@Stability(value=Experimental) public static final class EventSourceMappingOptions.Builder extends Object implements software.amazon.jsii.Builder<EventSourceMappingOptions>
EventSourceMappingOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public EventSourceMappingOptions.Builder batchSize(Number batchSize)
EventSourceMappingOptions.getBatchSize()batchSize - The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
Your function receives an
event with all the retrieved records.
Valid Range: Minimum value of 1. Maximum value of 10000.
this@Stability(value=Experimental) public EventSourceMappingOptions.Builder bisectBatchOnError(Boolean bisectBatchOnError)
EventSourceMappingOptions.getBisectBatchOnError()bisectBatchOnError - If the function returns an error, split the batch in two and retry.this@Stability(value=Experimental) public EventSourceMappingOptions.Builder enabled(Boolean enabled)
EventSourceMappingOptions.getEnabled()enabled - Set to false to disable the event source upon creation.this@Stability(value=Experimental) public EventSourceMappingOptions.Builder eventSourceArn(String eventSourceArn)
EventSourceMappingOptions.getEventSourceArn()eventSourceArn - The Amazon Resource Name (ARN) of the event source.
Any record added to
this stream can invoke the Lambda function.this@Stability(value=Experimental) public EventSourceMappingOptions.Builder kafkaBootstrapServers(List<String> kafkaBootstrapServers)
EventSourceMappingOptions.getKafkaBootstrapServers()kafkaBootstrapServers - A list of host and port pairs that are the addresses of the Kafka brokers in a self managed "bootstrap" Kafka cluster that a Kafka client connects to initially to bootstrap itself.
They are in the format abc.example.com:9096.this@Stability(value=Experimental) public EventSourceMappingOptions.Builder kafkaTopic(String kafkaTopic)
EventSourceMappingOptions.getKafkaTopic()kafkaTopic - The name of the Kafka topic.this@Stability(value=Experimental) public EventSourceMappingOptions.Builder maxBatchingWindow(Duration maxBatchingWindow)
EventSourceMappingOptions.getMaxBatchingWindow()maxBatchingWindow - The maximum amount of time to gather records before invoking the function.
Maximum of Duration.minutes(5)this@Stability(value=Experimental) public EventSourceMappingOptions.Builder maxRecordAge(Duration maxRecordAge)
EventSourceMappingOptions.getMaxRecordAge()maxRecordAge - The maximum age of a record that Lambda sends to a function for processing.
Valid Range:
this@Stability(value=Experimental) public EventSourceMappingOptions.Builder onFailure(IEventSourceDlq onFailure)
EventSourceMappingOptions.getOnFailure()onFailure - An Amazon SQS queue or Amazon SNS topic destination for discarded records.this@Stability(value=Experimental) public EventSourceMappingOptions.Builder parallelizationFactor(Number parallelizationFactor)
EventSourceMappingOptions.getParallelizationFactor()parallelizationFactor - The number of batches to process from each shard concurrently.
Valid Range:
this@Stability(value=Experimental) public EventSourceMappingOptions.Builder retryAttempts(Number retryAttempts)
EventSourceMappingOptions.getRetryAttempts()retryAttempts - The maximum number of times to retry when the function returns an error.
Set to undefined if you want lambda to keep retrying infinitely or until
the record expires.
Valid Range:
this@Stability(value=Experimental) public EventSourceMappingOptions.Builder sourceAccessConfigurations(List<? extends SourceAccessConfiguration> sourceAccessConfigurations)
EventSourceMappingOptions.getSourceAccessConfigurations()sourceAccessConfigurations - Specific settings like the authentication protocol or the VPC components to secure access to your event source.this@Stability(value=Experimental) public EventSourceMappingOptions.Builder startingPosition(StartingPosition startingPosition)
EventSourceMappingOptions.getStartingPosition()startingPosition - The position in the DynamoDB, Kinesis or MSK stream where AWS Lambda should start reading.this@Stability(value=Experimental) public EventSourceMappingOptions.Builder tumblingWindow(Duration tumblingWindow)
EventSourceMappingOptions.getTumblingWindow()tumblingWindow - The size of the tumbling windows to group records sent to DynamoDB or Kinesis.this@Stability(value=Experimental) public EventSourceMappingOptions build()
build in interface software.amazon.jsii.Builder<EventSourceMappingOptions>EventSourceMappingOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.