@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:19.804Z") @Stability(value=Stable) public interface StreamEventSourceProps extends software.amazon.jsii.JsiiSerializable, BaseStreamEventSourceProps
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.services.lambda.eventsources.*;
import software.amazon.awscdk.core.*;
IEventSourceDlq eventSourceDlq;
StreamEventSourceProps streamEventSourceProps = StreamEventSourceProps.builder()
.startingPosition(StartingPosition.TRIM_HORIZON)
// the properties below are optional
.batchSize(123)
.bisectBatchOnError(false)
.enabled(false)
.maxBatchingWindow(Duration.minutes(30))
.maxRecordAge(Duration.minutes(30))
.onFailure(eventSourceDlq)
.parallelizationFactor(123)
.reportBatchItemFailures(false)
.retryAttempts(123)
.tumblingWindow(Duration.minutes(30))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
StreamEventSourceProps.Builder
A builder for
StreamEventSourceProps |
static class |
StreamEventSourceProps.Jsii$Proxy
An implementation for
StreamEventSourceProps |
| Modifier and Type | Method and Description |
|---|---|
static StreamEventSourceProps.Builder |
builder() |
default Boolean |
getBisectBatchOnError()
If the function returns an error, split the batch in two and retry.
|
default Duration |
getMaxRecordAge()
The maximum age of a record that Lambda sends to a function for processing.
|
default IEventSourceDlq |
getOnFailure()
An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
default Number |
getParallelizationFactor()
The number of batches to process from each shard concurrently.
|
default Boolean |
getReportBatchItemFailures()
Allow functions to return partially successful responses for a batch of records.
|
default Number |
getRetryAttempts()
Maximum number of retry attempts Valid Range: * Minimum value of 0 * Maximum value of 10000.
|
default Duration |
getTumblingWindow()
The size of the tumbling windows to group records sent to DynamoDB or Kinesis Valid Range: 0 - 15 minutes.
|
getBatchSize, getEnabled, getMaxBatchingWindow, getStartingPosition@Stability(value=Stable) @Nullable default Boolean getBisectBatchOnError()
Default: false
@Stability(value=Stable) @Nullable default Duration getMaxRecordAge()
Valid Range:
Default: - the retention period configured on the stream
@Stability(value=Stable) @Nullable default IEventSourceDlq getOnFailure()
Default: - discarded records are ignored
@Stability(value=Stable) @Nullable default Number getParallelizationFactor()
Valid Range:
Default: 1
@Stability(value=Stable) @Nullable default Boolean getReportBatchItemFailures()
Default: false
https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-batchfailurereporting@Stability(value=Stable) @Nullable default Number getRetryAttempts()
Default: - retry until the record expires
@Stability(value=Stable) @Nullable default Duration getTumblingWindow()
Default: - None
@Stability(value=Stable) static StreamEventSourceProps.Builder builder()
builder in interface BaseStreamEventSourcePropsStreamEventSourceProps.Builder of StreamEventSourcePropsCopyright © 2022. All rights reserved.