@Stability(value=Experimental) public static final class EventSourceMappingProps.Builder extends Object implements software.amazon.jsii.Builder<EventSourceMappingProps>
EventSourceMappingProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public EventSourceMappingProps.Builder target(IFunction target)
EventSourceMappingProps.getTarget()target - The target AWS Lambda function. This parameter is required.this@Stability(value=Experimental) public EventSourceMappingProps.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 EventSourceMappingProps.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 EventSourceMappingProps.Builder enabled(Boolean enabled)
EventSourceMappingOptions.getEnabled()enabled - Set to false to disable the event source upon creation.this@Stability(value=Experimental) public EventSourceMappingProps.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 EventSourceMappingProps.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 EventSourceMappingProps.Builder kafkaTopic(String kafkaTopic)
EventSourceMappingOptions.getKafkaTopic()kafkaTopic - The name of the Kafka topic.this@Stability(value=Experimental) public EventSourceMappingProps.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 EventSourceMappingProps.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 EventSourceMappingProps.Builder onFailure(IEventSourceDlq onFailure)
EventSourceMappingOptions.getOnFailure()onFailure - An Amazon SQS queue or Amazon SNS topic destination for discarded records.this@Stability(value=Experimental) public EventSourceMappingProps.Builder parallelizationFactor(Number parallelizationFactor)
EventSourceMappingOptions.getParallelizationFactor()parallelizationFactor - The number of batches to process from each shard concurrently.
Valid Range:
this@Stability(value=Experimental) public EventSourceMappingProps.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 EventSourceMappingProps.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 EventSourceMappingProps.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 EventSourceMappingProps.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 EventSourceMappingProps build()
build in interface software.amazon.jsii.Builder<EventSourceMappingProps>EventSourceMappingPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.