@Stability(value=Experimental) @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(IFunction target,
Number batchSize,
Boolean bisectBatchOnError,
Boolean enabled,
String eventSourceArn,
List<String> kafkaBootstrapServers,
String kafkaTopic,
Duration maxBatchingWindow,
Duration maxRecordAge,
IEventSourceDlq onFailure,
Number parallelizationFactor,
Number retryAttempts,
List<? extends SourceAccessConfiguration> sourceAccessConfigurations,
StartingPosition startingPosition,
Duration tumblingWindow)
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()
(experimental) The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
|
Boolean |
getBisectBatchOnError()
(experimental) If the function returns an error, split the batch in two and retry.
|
Boolean |
getEnabled()
(experimental) Set to false to disable the event source upon creation.
|
String |
getEventSourceArn()
(experimental) The Amazon Resource Name (ARN) of the event source.
|
List<String> |
getKafkaBootstrapServers()
(experimental) 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()
(experimental) The name of the Kafka topic.
|
Duration |
getMaxBatchingWindow()
(experimental) The maximum amount of time to gather records before invoking the function.
|
Duration |
getMaxRecordAge()
(experimental) The maximum age of a record that Lambda sends to a function for processing.
|
IEventSourceDlq |
getOnFailure()
(experimental) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
Number |
getParallelizationFactor()
(experimental) The number of batches to process from each shard concurrently.
|
Number |
getRetryAttempts()
(experimental) The maximum number of times to retry when the function returns an error.
|
List<SourceAccessConfiguration> |
getSourceAccessConfigurations()
(experimental) Specific settings like the authentication protocol or the VPC components to secure access to your event source.
|
StartingPosition |
getStartingPosition()
(experimental) The position in the DynamoDB, Kinesis or MSK stream where AWS Lambda should start reading.
|
IFunction |
getTarget()
(experimental) The target AWS Lambda function.
|
Duration |
getTumblingWindow()
(experimental) 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(IFunction target, Number batchSize, Boolean bisectBatchOnError, Boolean enabled, String eventSourceArn, List<String> kafkaBootstrapServers, String kafkaTopic, Duration maxBatchingWindow, Duration maxRecordAge, IEventSourceDlq onFailure, Number parallelizationFactor, Number retryAttempts, List<? extends SourceAccessConfiguration> sourceAccessConfigurations, StartingPosition startingPosition, Duration tumblingWindow)
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. 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 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 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
getSourceAccessConfigurations in interface EventSourceMappingOptionshttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.htmlpublic 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-ShardIteratorTypepublic final Duration getTumblingWindow()
EventSourceMappingOptionsDefault: - None
getTumblingWindow in interface EventSourceMappingOptionsValid Range: 0 - 15 minutes@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.