@Stability(value=Experimental) 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() |
@Stability(value=Experimental) 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.
this@Stability(value=Experimental) public SqsEventSourceProps.Builder enabled(Boolean enabled)
SqsEventSourceProps.getEnabled()enabled - If the SQS event source mapping should be enabled.this@Stability(value=Experimental) 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=Experimental) public SqsEventSourceProps build()
build in interface software.amazon.jsii.Builder<SqsEventSourceProps>SqsEventSourcePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.