@Stability(value=Stable) public static final class SqsEventSourceProps.Builder extends Object implements software.amazon.jsii.Builder<SqsEventSourceProps>
SqsEventSourceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SqsEventSourceProps.Builder |
batchSize(Number batchSize)
Sets the value of
SqsEventSourceProps.getBatchSize() |
SqsEventSourceProps |
build()
Builds the configured instance.
|
SqsEventSourceProps.Builder |
enabled(Boolean enabled)
Sets the value of
SqsEventSourceProps.getEnabled() |
SqsEventSourceProps.Builder |
maxBatchingWindow(Duration maxBatchingWindow)
Sets the value of
SqsEventSourceProps.getMaxBatchingWindow() |
SqsEventSourceProps.Builder |
reportBatchItemFailures(Boolean reportBatchItemFailures)
Sets the value of
SqsEventSourceProps.getReportBatchItemFailures() |
@Stability(value=Stable) public SqsEventSourceProps.Builder batchSize(Number batchSize)
SqsEventSourceProps.getBatchSize()
batchSize
- The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
Your function receives an
event with all the retrieved records.
Valid Range: Minimum value of 1. Maximum value of 10.
If maxBatchingWindow
is configured, this value can go up to 10,000.
this
@Stability(value=Stable) public SqsEventSourceProps.Builder enabled(Boolean enabled)
SqsEventSourceProps.getEnabled()
enabled
- If the SQS event source mapping should be enabled.this
@Stability(value=Stable) public SqsEventSourceProps.Builder maxBatchingWindow(Duration maxBatchingWindow)
SqsEventSourceProps.getMaxBatchingWindow()
maxBatchingWindow
- The maximum amount of time to gather records before invoking the function.
Valid Range: Minimum value of 0 minutes. Maximum value of 5 minutes.this
@Stability(value=Stable) public SqsEventSourceProps.Builder reportBatchItemFailures(Boolean reportBatchItemFailures)
SqsEventSourceProps.getReportBatchItemFailures()
reportBatchItemFailures
- Allow functions to return partially successful responses for a batch of records.this
@Stability(value=Stable) public SqsEventSourceProps build()
build
in interface software.amazon.jsii.Builder<SqsEventSourceProps>
SqsEventSourceProps
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.