@Stability(value=Stable) @Internal public static final class EventSourceMappingOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EventSourceMappingOptions
EventSourceMappingOptionssoftware.amazon.jsii.JsiiObject.InitializationModeEventSourceMappingOptions.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.
|
protected |
Jsii$Proxy(String eventSourceArn,
Number batchSize,
Boolean bisectBatchOnError,
Boolean enabled,
String kafkaTopic,
Duration maxBatchingWindow,
Duration maxRecordAge,
IEventSourceDlq onFailure,
Number parallelizationFactor,
Number retryAttempts,
StartingPosition startingPosition)
Constructor that initializes the object based on literal property values passed by the
EventSourceMappingOptions.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Number |
getBatchSize()
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
|
Boolean |
getBisectBatchOnError()
If the function returns an error, split the batch in two and retry.
|
Boolean |
getEnabled()
Set to false to disable the event source upon creation.
|
String |
getEventSourceArn()
The Amazon Resource Name (ARN) of the event source.
|
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.
|
Number |
getParallelizationFactor()
The number of batches to process from each shard concurrently.
|
Number |
getRetryAttempts()
The maximum number of times to retry when the function returns an error.
|
StartingPosition |
getStartingPosition()
The position in the DynamoDB, Kinesis or MSK stream where AWS Lambda should start reading.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(String eventSourceArn, Number batchSize, Boolean bisectBatchOnError, Boolean enabled, String kafkaTopic, Duration maxBatchingWindow, Duration maxRecordAge, IEventSourceDlq onFailure, Number parallelizationFactor, Number retryAttempts, StartingPosition startingPosition)
EventSourceMappingOptions.Builder.public final String getEventSourceArn()
EventSourceMappingOptionsAny record added to this stream can invoke the Lambda function.
getEventSourceArn in interface EventSourceMappingOptionspublic final Number getBatchSize()
EventSourceMappingOptionsYour 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. Both the default and maximum for Amazon SQS are 10 messages.
getBatchSize in interface EventSourceMappingOptionspublic final Boolean getBisectBatchOnError()
EventSourceMappingOptionsDefault: false
getBisectBatchOnError in interface EventSourceMappingOptionspublic final Boolean getEnabled()
EventSourceMappingOptionsDefault: true
getEnabled in interface EventSourceMappingOptionspublic final String getKafkaTopic()
EventSourceMappingOptionsDefault: - no topic
getKafkaTopic in interface EventSourceMappingOptionspublic final Duration getMaxBatchingWindow()
EventSourceMappingOptionsMaximum of Duration.minutes(5)
Default: Duration.seconds(0)
getMaxBatchingWindow in interface EventSourceMappingOptionspublic final Duration getMaxRecordAge()
EventSourceMappingOptionsValid Range:
Default: - infinite or until the record expires.
getMaxRecordAge in interface EventSourceMappingOptionspublic final IEventSourceDlq getOnFailure()
EventSourceMappingOptionsDefault: discarded records are ignored
getOnFailure in interface EventSourceMappingOptionspublic final Number getParallelizationFactor()
EventSourceMappingOptionsValid Range:
Default: 1
getParallelizationFactor in interface EventSourceMappingOptionspublic final 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 EventSourceMappingOptionspublic final StartingPosition getStartingPosition()
EventSourceMappingOptionsDefault: - Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
getStartingPosition in interface EventSourceMappingOptionshttps://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.