@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:59.874Z")
public interface 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.*; 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 java.lang.Number |
getBatchSize()
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
|
default java.lang.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.
|
StartingPosition getStartingPosition()
default java.lang.Number getBatchSize()
Your function receives an event with all the retrieved records.
Valid Range:
Default: 100
default java.lang.Boolean getEnabled()
Default: true
default Duration getMaxBatchingWindow()
Maximum of Duration.minutes(5)
Default: Duration.seconds(0)
static BaseStreamEventSourceProps.Builder builder()
BaseStreamEventSourceProps.Builder
of BaseStreamEventSourceProps