public static final class EventSourceMappingProps.Builder extends Object
EventSourceMappingProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EventSourceMappingProps |
build()
Builds the configured instance.
|
EventSourceMappingProps.Builder |
withBatchSize(Number value)
Sets the value of BatchSize
|
EventSourceMappingProps.Builder |
withEnabled(Boolean value)
Sets the value of Enabled
|
EventSourceMappingProps.Builder |
withEventSourceArn(String value)
Sets the value of EventSourceArn
|
EventSourceMappingProps.Builder |
withStartingPosition(StartingPosition value)
Sets the value of StartingPosition
|
EventSourceMappingProps.Builder |
withTarget(IFunction value)
Sets the value of Target
|
public EventSourceMappingProps.Builder withEventSourceArn(String value)
value - The Amazon Resource Name (ARN) of the event source.thispublic EventSourceMappingProps.Builder withTarget(IFunction value)
value - The target AWS Lambda function.thispublic EventSourceMappingProps.Builder withBatchSize(@Nullable Number value)
value - The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.thispublic EventSourceMappingProps.Builder withEnabled(@Nullable Boolean value)
value - Set to false to disable the event source upon creation.thispublic EventSourceMappingProps.Builder withStartingPosition(@Nullable StartingPosition value)
value - The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading.thispublic EventSourceMappingProps build()
EventSourceMappingPropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.