public static final class EventSourceMappingOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EventSourceMappingOptions
EventSourceMappingOptions
EventSourceMappingOptions.Builder, EventSourceMappingOptions.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.Number |
getBatchSize()
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
|
java.lang.Boolean |
getBisectBatchOnError()
If the function returns an error, split the batch in two and retry.
|
java.lang.Boolean |
getEnabled()
Set to false to disable the event source upon creation.
|
java.lang.String |
getEventSourceArn()
The Amazon Resource Name (ARN) of the event source.
|
java.util.List<java.lang.String> |
getKafkaBootstrapServers()
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.
|
java.lang.String |
getKafkaTopic()
The name of the Kafka topic.
|
Duration |
getMaxBatchingWindow()
The maximum amount of time to gather records before invoking the function.
|
Duration |
getMaxRecordAge()
The maximum age of a record that Lambda sends to a function for processing.
|
IEventSourceDlq |
getOnFailure()
An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
java.lang.Number |
getParallelizationFactor()
The number of batches to process from each shard concurrently.
|
java.lang.Boolean |
getReportBatchItemFailures()
Allow functions to return partially successful responses for a batch of records.
|
java.lang.Number |
getRetryAttempts()
The maximum number of times to retry when the function returns an error.
|
java.util.List<SourceAccessConfiguration> |
getSourceAccessConfigurations()
Specific settings like the authentication protocol or the VPC components to secure access to your event source.
|
StartingPosition |
getStartingPosition()
The position in the DynamoDB, Kinesis or MSK stream where AWS Lambda should start reading.
|
Duration |
getTumblingWindow()
The size of the tumbling windows to group records sent to DynamoDB or Kinesis.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.Number getBatchSize()
EventSourceMappingOptions
Your function receives an event with all the retrieved records.
Valid Range: Minimum value of 1. Maximum value of 10000.
Default: - Amazon Kinesis, Amazon DynamoDB, and Amazon MSK is 100 records. The default for Amazon SQS is 10 messages. For standard SQS queues, the maximum is 10,000. For FIFO SQS queues, the maximum is 10.
getBatchSize
in interface EventSourceMappingOptions
public final java.lang.Boolean getBisectBatchOnError()
EventSourceMappingOptions
Default: false
getBisectBatchOnError
in interface EventSourceMappingOptions
public final java.lang.Boolean getEnabled()
EventSourceMappingOptions
Default: true
getEnabled
in interface EventSourceMappingOptions
public final java.lang.String getEventSourceArn()
EventSourceMappingOptions
Any record added to this stream can invoke the Lambda function.
Default: - not set if using a self managed Kafka cluster, throws an error otherwise
getEventSourceArn
in interface EventSourceMappingOptions
public final java.util.List<java.lang.String> getKafkaBootstrapServers()
EventSourceMappingOptions
They are in the format abc.example.com:9096
.
Default: - none
getKafkaBootstrapServers
in interface EventSourceMappingOptions
public final java.lang.String getKafkaTopic()
EventSourceMappingOptions
Default: - no topic
getKafkaTopic
in interface EventSourceMappingOptions
public final Duration getMaxBatchingWindow()
EventSourceMappingOptions
Maximum of Duration.minutes(5)
Default: Duration.seconds(0)
getMaxBatchingWindow
in interface EventSourceMappingOptions
public final Duration getMaxRecordAge()
EventSourceMappingOptions
Valid Range:
Default: - infinite or until the record expires.
getMaxRecordAge
in interface EventSourceMappingOptions
public final IEventSourceDlq getOnFailure()
EventSourceMappingOptions
Default: discarded records are ignored
getOnFailure
in interface EventSourceMappingOptions
public final java.lang.Number getParallelizationFactor()
EventSourceMappingOptions
Valid Range:
Default: 1
getParallelizationFactor
in interface EventSourceMappingOptions
public final java.lang.Boolean getReportBatchItemFailures()
EventSourceMappingOptions
Default: false
getReportBatchItemFailures
in interface EventSourceMappingOptions
public final java.lang.Number getRetryAttempts()
EventSourceMappingOptions
Set to undefined
if you want lambda to keep retrying infinitely or until
the record expires.
Valid Range:
Default: - infinite or until the record expires.
getRetryAttempts
in interface EventSourceMappingOptions
public final java.util.List<SourceAccessConfiguration> getSourceAccessConfigurations()
EventSourceMappingOptions
Default: - none
public final StartingPosition getStartingPosition()
EventSourceMappingOptions
Default: - Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
public final Duration getTumblingWindow()
EventSourceMappingOptions
Default: - None
getTumblingWindow
in interface EventSourceMappingOptions
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()