@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.508Z") @Stability(value=Stable) public interface BaseStreamEventSourceProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.services.lambda.eventsources.*;
BaseStreamEventSourceProps baseStreamEventSourceProps = BaseStreamEventSourceProps.builder()
.startingPosition(StartingPosition.TRIM_HORIZON)
// the properties below are optional
.batchSize(123)
.enabled(false)
.maxBatchingWindow(Duration.minutes(30))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
BaseStreamEventSourceProps.Builder
A builder for
BaseStreamEventSourceProps |
static class |
BaseStreamEventSourceProps.Jsii$Proxy
An implementation for
BaseStreamEventSourceProps |
| Modifier and Type | Method and Description |
|---|---|
static BaseStreamEventSourceProps.Builder |
builder() |
default Number |
getBatchSize()
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
|
default Boolean |
getEnabled()
If the stream event source mapping should be enabled.
|
default Duration |
getMaxBatchingWindow()
The maximum amount of time to gather records before invoking the function.
|
StartingPosition |
getStartingPosition()
Where to begin consuming the stream.
|
@Stability(value=Stable) @NotNull StartingPosition getStartingPosition()
@Stability(value=Stable) @Nullable default Number getBatchSize()
Your function receives an event with all the retrieved records.
Valid Range:
Default: 100
@Stability(value=Stable) @Nullable default Boolean getEnabled()
Default: true
@Stability(value=Stable) @Nullable default Duration getMaxBatchingWindow()
Maximum of Duration.minutes(5).
Default: - Duration.seconds(0) for Kinesis, DynamoDB, and SQS event sources, Duration.millis(500) for MSK, self-managed Kafka, and Amazon MQ.
@Stability(value=Stable) static BaseStreamEventSourceProps.Builder builder()
BaseStreamEventSourceProps.Builder of BaseStreamEventSourcePropsCopyright © 2022. All rights reserved.