public static interface EventSourceMappingConfiguration.Builder extends SdkPojo, CopyableBuilder<EventSourceMappingConfiguration.Builder,EventSourceMappingConfiguration>
Modifier and Type | Method and Description |
---|---|
EventSourceMappingConfiguration.Builder |
batchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
|
EventSourceMappingConfiguration.Builder |
bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams) If the function returns an error, split the batch in two and retry.
|
default EventSourceMappingConfiguration.Builder |
destinationConfig(Consumer<DestinationConfig.Builder> destinationConfig)
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
EventSourceMappingConfiguration.Builder |
destinationConfig(DestinationConfig destinationConfig)
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
EventSourceMappingConfiguration.Builder |
eventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
|
EventSourceMappingConfiguration.Builder |
functionArn(String functionArn)
The ARN of the Lambda function.
|
EventSourceMappingConfiguration.Builder |
lastModified(Instant lastModified)
The date that the event source mapping was last updated, or its state changed.
|
EventSourceMappingConfiguration.Builder |
lastProcessingResult(String lastProcessingResult)
The result of the last AWS Lambda invocation of your Lambda function.
|
EventSourceMappingConfiguration.Builder |
maximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams) The maximum amount of time to gather records before invoking the function, in seconds.
|
EventSourceMappingConfiguration.Builder |
maximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams) The maximum age of a record that Lambda sends to a function for processing.
|
EventSourceMappingConfiguration.Builder |
maximumRetryAttempts(Integer maximumRetryAttempts)
(Streams) The maximum number of times to retry when the function returns an error.
|
EventSourceMappingConfiguration.Builder |
parallelizationFactor(Integer parallelizationFactor)
(Streams) The number of batches to process from each shard concurrently.
|
EventSourceMappingConfiguration.Builder |
state(String state)
The state of the event source mapping.
|
EventSourceMappingConfiguration.Builder |
stateTransitionReason(String stateTransitionReason)
Indicates whether the last change to the event source mapping was made by a user, or by the Lambda service.
|
EventSourceMappingConfiguration.Builder |
uuid(String uuid)
The identifier of the event source mapping.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
EventSourceMappingConfiguration.Builder uuid(String uuid)
The identifier of the event source mapping.
uuid
- The identifier of the event source mapping.EventSourceMappingConfiguration.Builder batchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
batchSize
- The maximum number of items to retrieve in a single batch.EventSourceMappingConfiguration.Builder maximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams) The maximum amount of time to gather records before invoking the function, in seconds.
maximumBatchingWindowInSeconds
- (Streams) The maximum amount of time to gather records before invoking the function, in seconds.EventSourceMappingConfiguration.Builder parallelizationFactor(Integer parallelizationFactor)
(Streams) The number of batches to process from each shard concurrently.
parallelizationFactor
- (Streams) The number of batches to process from each shard concurrently.EventSourceMappingConfiguration.Builder eventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
eventSourceArn
- The Amazon Resource Name (ARN) of the event source.EventSourceMappingConfiguration.Builder functionArn(String functionArn)
The ARN of the Lambda function.
functionArn
- The ARN of the Lambda function.EventSourceMappingConfiguration.Builder lastModified(Instant lastModified)
The date that the event source mapping was last updated, or its state changed.
lastModified
- The date that the event source mapping was last updated, or its state changed.EventSourceMappingConfiguration.Builder lastProcessingResult(String lastProcessingResult)
The result of the last AWS Lambda invocation of your Lambda function.
lastProcessingResult
- The result of the last AWS Lambda invocation of your Lambda function.EventSourceMappingConfiguration.Builder state(String state)
The state of the event source mapping. It can be one of the following: Creating
,
Enabling
, Enabled
, Disabling
, Disabled
,
Updating
, or Deleting
.
state
- The state of the event source mapping. It can be one of the following: Creating
,
Enabling
, Enabled
, Disabling
, Disabled
,
Updating
, or Deleting
.EventSourceMappingConfiguration.Builder stateTransitionReason(String stateTransitionReason)
Indicates whether the last change to the event source mapping was made by a user, or by the Lambda service.
stateTransitionReason
- Indicates whether the last change to the event source mapping was made by a user, or by the Lambda
service.EventSourceMappingConfiguration.Builder destinationConfig(DestinationConfig destinationConfig)
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
destinationConfig
- (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.default EventSourceMappingConfiguration.Builder destinationConfig(Consumer<DestinationConfig.Builder> destinationConfig)
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
This is a convenience that creates an instance of theDestinationConfig.Builder
avoiding the need to
create one manually via DestinationConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to destinationConfig(DestinationConfig)
.destinationConfig
- a consumer that will call methods on DestinationConfig.Builder
destinationConfig(DestinationConfig)
EventSourceMappingConfiguration.Builder maximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams) The maximum age of a record that Lambda sends to a function for processing.
maximumRecordAgeInSeconds
- (Streams) The maximum age of a record that Lambda sends to a function for processing.EventSourceMappingConfiguration.Builder bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams) If the function returns an error, split the batch in two and retry.
bisectBatchOnFunctionError
- (Streams) If the function returns an error, split the batch in two and retry.EventSourceMappingConfiguration.Builder maximumRetryAttempts(Integer maximumRetryAttempts)
(Streams) The maximum number of times to retry when the function returns an error.
maximumRetryAttempts
- (Streams) The maximum number of times to retry when the function returns an error.Copyright © 2020. All rights reserved.