@Stability(value=Stable) @Internal public static final class EventSourceMappingProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EventSourceMappingProps
EventSourceMappingPropssoftware.amazon.jsii.JsiiObject.InitializationModeEventSourceMappingProps.Builder, EventSourceMappingProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(EventSourceMappingProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
EventSourceMappingProps.Builder. |
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(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.
|
List<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.
|
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.
|
Boolean |
getReportBatchItemFailures()
Allow functions to return partially successful responses for a batch of records.
|
Number |
getRetryAttempts()
The maximum number of times to retry when the function returns an error.
|
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.
|
IFunction |
getTarget()
The target AWS Lambda function.
|
Duration |
getTumblingWindow()
The size of the tumbling windows to group records sent to DynamoDB or Kinesis.
|
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(EventSourceMappingProps.Builder builder)
EventSourceMappingProps.Builder.public final IFunction getTarget()
EventSourceMappingPropsgetTarget in interface EventSourceMappingPropspublic 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. 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 EventSourceMappingOptionspublic final Boolean getBisectBatchOnError()
EventSourceMappingOptionsDefault: false
getBisectBatchOnError in interface EventSourceMappingOptionspublic final Boolean getEnabled()
EventSourceMappingOptionsDefault: true
getEnabled in interface EventSourceMappingOptionspublic final String getEventSourceArn()
EventSourceMappingOptionsAny 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 EventSourceMappingOptionspublic final List<String> getKafkaBootstrapServers()
EventSourceMappingOptions
They are in the format abc.example.com:9096.
Default: - none
getKafkaBootstrapServers 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 Boolean getReportBatchItemFailures()
EventSourceMappingOptionsDefault: false
getReportBatchItemFailures 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 List<SourceAccessConfiguration> getSourceAccessConfigurations()
EventSourceMappingOptionsDefault: - none
public final StartingPosition getStartingPosition()
EventSourceMappingOptionsDefault: - Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
public final Duration getTumblingWindow()
EventSourceMappingOptionsDefault: - None
getTumblingWindow in interface EventSourceMappingOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2023. All rights reserved.