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 only) If the function returns an error, split the batch in two and retry.
|
default EventSourceMappingConfiguration.Builder |
destinationConfig(Consumer<DestinationConfig.Builder> destinationConfig)
(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
EventSourceMappingConfiguration.Builder |
destinationConfig(DestinationConfig destinationConfig)
(Streams only) 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 |
functionResponseTypes(Collection<FunctionResponseType> functionResponseTypes)
(Streams only) A list of current response type enums applied to the event source mapping.
|
EventSourceMappingConfiguration.Builder |
functionResponseTypes(FunctionResponseType... functionResponseTypes)
(Streams only) A list of current response type enums applied to the event source mapping.
|
EventSourceMappingConfiguration.Builder |
functionResponseTypesWithStrings(Collection<String> functionResponseTypes)
(Streams only) A list of current response type enums applied to the event source mapping.
|
EventSourceMappingConfiguration.Builder |
functionResponseTypesWithStrings(String... functionResponseTypes)
(Streams only) A list of current response type enums applied to the event source mapping.
|
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 Lambda invocation of your Lambda function.
|
EventSourceMappingConfiguration.Builder |
maximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function,
in seconds.
|
EventSourceMappingConfiguration.Builder |
maximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams only) Discard records older than the specified age.
|
EventSourceMappingConfiguration.Builder |
maximumRetryAttempts(Integer maximumRetryAttempts)
(Streams only) Discard records after the specified number of retries.
|
EventSourceMappingConfiguration.Builder |
parallelizationFactor(Integer parallelizationFactor)
(Streams only) The number of batches to process from each shard concurrently.
|
EventSourceMappingConfiguration.Builder |
queues(Collection<String> queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
|
EventSourceMappingConfiguration.Builder |
queues(String... queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
|
default EventSourceMappingConfiguration.Builder |
selfManagedEventSource(Consumer<SelfManagedEventSource.Builder> selfManagedEventSource)
The Self-Managed Apache Kafka cluster for your event source.
|
EventSourceMappingConfiguration.Builder |
selfManagedEventSource(SelfManagedEventSource selfManagedEventSource)
The Self-Managed Apache Kafka cluster for your event source.
|
EventSourceMappingConfiguration.Builder |
sourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
An array of the authentication protocol, or the VPC components to secure your event source.
|
EventSourceMappingConfiguration.Builder |
sourceAccessConfigurations(Consumer<SourceAccessConfiguration.Builder>... sourceAccessConfigurations)
An array of the authentication protocol, or the VPC components to secure your event source.
|
EventSourceMappingConfiguration.Builder |
sourceAccessConfigurations(SourceAccessConfiguration... sourceAccessConfigurations)
An array of the authentication protocol, or the VPC components to secure your event source.
|
EventSourceMappingConfiguration.Builder |
startingPosition(EventSourcePosition startingPosition)
The position in a stream from which to start reading.
|
EventSourceMappingConfiguration.Builder |
startingPosition(String startingPosition)
The position in a stream from which to start reading.
|
EventSourceMappingConfiguration.Builder |
startingPositionTimestamp(Instant startingPositionTimestamp)
With
StartingPosition set to AT_TIMESTAMP , the time from which to start reading. |
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 |
topics(Collection<String> topics)
The name of the Kafka topic.
|
EventSourceMappingConfiguration.Builder |
topics(String... topics)
The name of the Kafka topic.
|
EventSourceMappingConfiguration.Builder |
tumblingWindowInSeconds(Integer tumblingWindowInSeconds)
(Streams only) The duration in seconds of a processing window.
|
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 startingPosition(String startingPosition)
The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and
Amazon MSK Streams sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.
startingPosition
- The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB,
and Amazon MSK Streams sources. AT_TIMESTAMP
is only supported for Amazon Kinesis
streams.EventSourcePosition
,
EventSourcePosition
EventSourceMappingConfiguration.Builder startingPosition(EventSourcePosition startingPosition)
The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and
Amazon MSK Streams sources. AT_TIMESTAMP
is only supported for Amazon Kinesis streams.
startingPosition
- The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB,
and Amazon MSK Streams sources. AT_TIMESTAMP
is only supported for Amazon Kinesis
streams.EventSourcePosition
,
EventSourcePosition
EventSourceMappingConfiguration.Builder startingPositionTimestamp(Instant startingPositionTimestamp)
With StartingPosition
set to AT_TIMESTAMP
, the time from which to start reading.
startingPositionTimestamp
- With StartingPosition
set to AT_TIMESTAMP
, the time from which to start
reading.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 and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.
maximumBatchingWindowInSeconds
- (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the
function, in seconds. The default value is zero.EventSourceMappingConfiguration.Builder parallelizationFactor(Integer parallelizationFactor)
(Streams only) The number of batches to process from each shard concurrently. The default value is 1.
parallelizationFactor
- (Streams only) The number of batches to process from each shard concurrently. The default value is 1.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 Lambda invocation of your Lambda function.
lastProcessingResult
- The result of the last 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 only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
destinationConfig
- (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.default EventSourceMappingConfiguration.Builder destinationConfig(Consumer<DestinationConfig.Builder> destinationConfig)
(Streams only) 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 topics(Collection<String> topics)
The name of the Kafka topic.
topics
- The name of the Kafka topic.EventSourceMappingConfiguration.Builder topics(String... topics)
The name of the Kafka topic.
topics
- The name of the Kafka topic.EventSourceMappingConfiguration.Builder queues(Collection<String> queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
queues
- (MQ) The name of the Amazon MQ broker destination queue to consume.EventSourceMappingConfiguration.Builder queues(String... queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
queues
- (MQ) The name of the Amazon MQ broker destination queue to consume.EventSourceMappingConfiguration.Builder sourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
An array of the authentication protocol, or the VPC components to secure your event source.
sourceAccessConfigurations
- An array of the authentication protocol, or the VPC components to secure your event source.EventSourceMappingConfiguration.Builder sourceAccessConfigurations(SourceAccessConfiguration... sourceAccessConfigurations)
An array of the authentication protocol, or the VPC components to secure your event source.
sourceAccessConfigurations
- An array of the authentication protocol, or the VPC components to secure your event source.EventSourceMappingConfiguration.Builder sourceAccessConfigurations(Consumer<SourceAccessConfiguration.Builder>... sourceAccessConfigurations)
An array of the authentication protocol, or the VPC components to secure your event source.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #sourceAccessConfigurations(List)
.sourceAccessConfigurations
- a consumer that will call methods on List.Builder
#sourceAccessConfigurations(List)
EventSourceMappingConfiguration.Builder selfManagedEventSource(SelfManagedEventSource selfManagedEventSource)
The Self-Managed Apache Kafka cluster for your event source.
selfManagedEventSource
- The Self-Managed Apache Kafka cluster for your event source.default EventSourceMappingConfiguration.Builder selfManagedEventSource(Consumer<SelfManagedEventSource.Builder> selfManagedEventSource)
The Self-Managed Apache Kafka cluster for your event source.
This is a convenience that creates an instance of theSelfManagedEventSource.Builder
avoiding the
need to create one manually via SelfManagedEventSource.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to selfManagedEventSource(SelfManagedEventSource)
.selfManagedEventSource
- a consumer that will call methods on SelfManagedEventSource.Builder
selfManagedEventSource(SelfManagedEventSource)
EventSourceMappingConfiguration.Builder maximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
maximumRecordAgeInSeconds
- (Streams only) Discard records older than the specified age. The default value is -1, which sets the
maximum age to infinite. When the value is set to infinite, Lambda never discards old records.EventSourceMappingConfiguration.Builder bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
bisectBatchOnFunctionError
- (Streams only) If the function returns an error, split the batch in two and retry. The default value
is false.EventSourceMappingConfiguration.Builder maximumRetryAttempts(Integer maximumRetryAttempts)
(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
maximumRetryAttempts
- (Streams only) Discard records after the specified number of retries. The default value is -1, which
sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries
failed records until the record expires in the event source.EventSourceMappingConfiguration.Builder tumblingWindowInSeconds(Integer tumblingWindowInSeconds)
(Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.
tumblingWindowInSeconds
- (Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900
seconds.EventSourceMappingConfiguration.Builder functionResponseTypesWithStrings(Collection<String> functionResponseTypes)
(Streams only) A list of current response type enums applied to the event source mapping.
functionResponseTypes
- (Streams only) A list of current response type enums applied to the event source mapping.EventSourceMappingConfiguration.Builder functionResponseTypesWithStrings(String... functionResponseTypes)
(Streams only) A list of current response type enums applied to the event source mapping.
functionResponseTypes
- (Streams only) A list of current response type enums applied to the event source mapping.EventSourceMappingConfiguration.Builder functionResponseTypes(Collection<FunctionResponseType> functionResponseTypes)
(Streams only) A list of current response type enums applied to the event source mapping.
functionResponseTypes
- (Streams only) A list of current response type enums applied to the event source mapping.EventSourceMappingConfiguration.Builder functionResponseTypes(FunctionResponseType... functionResponseTypes)
(Streams only) A list of current response type enums applied to the event source mapping.
functionResponseTypes
- (Streams only) A list of current response type enums applied to the event source mapping.Copyright © 2021. All rights reserved.