public static interface CreateEventSourceMappingResponse.Builder extends LambdaResponse.Builder, SdkPojo, CopyableBuilder<CreateEventSourceMappingResponse.Builder,CreateEventSourceMappingResponse>
Modifier and Type | Method and Description |
---|---|
CreateEventSourceMappingResponse.Builder |
amazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig amazonManagedKafkaEventSourceConfig)
Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
default CreateEventSourceMappingResponse.Builder |
amazonManagedKafkaEventSourceConfig(Consumer<AmazonManagedKafkaEventSourceConfig.Builder> amazonManagedKafkaEventSourceConfig)
Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
CreateEventSourceMappingResponse.Builder |
batchSize(Integer batchSize)
The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your
function.
|
CreateEventSourceMappingResponse.Builder |
bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams only) If the function returns an error, split the batch in two and retry.
|
default CreateEventSourceMappingResponse.Builder |
destinationConfig(Consumer<DestinationConfig.Builder> destinationConfig)
(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
CreateEventSourceMappingResponse.Builder |
destinationConfig(DestinationConfig destinationConfig)
(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
CreateEventSourceMappingResponse.Builder |
eventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
|
default CreateEventSourceMappingResponse.Builder |
filterCriteria(Consumer<FilterCriteria.Builder> filterCriteria)
(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should
process an event.
|
CreateEventSourceMappingResponse.Builder |
filterCriteria(FilterCriteria filterCriteria)
(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should
process an event.
|
CreateEventSourceMappingResponse.Builder |
functionArn(String functionArn)
The ARN of the Lambda function.
|
CreateEventSourceMappingResponse.Builder |
functionResponseTypes(Collection<FunctionResponseType> functionResponseTypes)
(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
|
CreateEventSourceMappingResponse.Builder |
functionResponseTypes(FunctionResponseType... functionResponseTypes)
(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
|
CreateEventSourceMappingResponse.Builder |
functionResponseTypesWithStrings(Collection<String> functionResponseTypes)
(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
|
CreateEventSourceMappingResponse.Builder |
functionResponseTypesWithStrings(String... functionResponseTypes)
(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
|
CreateEventSourceMappingResponse.Builder |
lastModified(Instant lastModified)
The date that the event source mapping was last updated or that its state changed.
|
CreateEventSourceMappingResponse.Builder |
lastProcessingResult(String lastProcessingResult)
The result of the last Lambda invocation of your function.
|
CreateEventSourceMappingResponse.Builder |
maximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering
records before invoking the function.
|
CreateEventSourceMappingResponse.Builder |
maximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams only) Discard records older than the specified age.
|
CreateEventSourceMappingResponse.Builder |
maximumRetryAttempts(Integer maximumRetryAttempts)
(Streams only) Discard records after the specified number of retries.
|
CreateEventSourceMappingResponse.Builder |
parallelizationFactor(Integer parallelizationFactor)
(Streams only) The number of batches to process concurrently from each shard.
|
CreateEventSourceMappingResponse.Builder |
queues(Collection<String> queues)
(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
|
CreateEventSourceMappingResponse.Builder |
queues(String... queues)
(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
|
default CreateEventSourceMappingResponse.Builder |
selfManagedEventSource(Consumer<SelfManagedEventSource.Builder> selfManagedEventSource)
The self-managed Apache Kafka cluster for your event source.
|
CreateEventSourceMappingResponse.Builder |
selfManagedEventSource(SelfManagedEventSource selfManagedEventSource)
The self-managed Apache Kafka cluster for your event source.
|
default CreateEventSourceMappingResponse.Builder |
selfManagedKafkaEventSourceConfig(Consumer<SelfManagedKafkaEventSourceConfig.Builder> selfManagedKafkaEventSourceConfig)
Specific configuration settings for a self-managed Apache Kafka event source.
|
CreateEventSourceMappingResponse.Builder |
selfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig selfManagedKafkaEventSourceConfig)
Specific configuration settings for a self-managed Apache Kafka event source.
|
CreateEventSourceMappingResponse.Builder |
sourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
An array of the authentication protocol, VPC components, or virtual host to secure and define your event
source.
|
CreateEventSourceMappingResponse.Builder |
sourceAccessConfigurations(Consumer<SourceAccessConfiguration.Builder>... sourceAccessConfigurations)
An array of the authentication protocol, VPC components, or virtual host to secure and define your event
source.
|
CreateEventSourceMappingResponse.Builder |
sourceAccessConfigurations(SourceAccessConfiguration... sourceAccessConfigurations)
An array of the authentication protocol, VPC components, or virtual host to secure and define your event
source.
|
CreateEventSourceMappingResponse.Builder |
startingPosition(EventSourcePosition startingPosition)
The position in a stream from which to start reading.
|
CreateEventSourceMappingResponse.Builder |
startingPosition(String startingPosition)
The position in a stream from which to start reading.
|
CreateEventSourceMappingResponse.Builder |
startingPositionTimestamp(Instant startingPositionTimestamp)
With
StartingPosition set to AT_TIMESTAMP , the time from which to start reading. |
CreateEventSourceMappingResponse.Builder |
state(String state)
The state of the event source mapping.
|
CreateEventSourceMappingResponse.Builder |
stateTransitionReason(String stateTransitionReason)
Indicates whether a user or Lambda made the last change to the event source mapping.
|
CreateEventSourceMappingResponse.Builder |
topics(Collection<String> topics)
The name of the Kafka topic.
|
CreateEventSourceMappingResponse.Builder |
topics(String... topics)
The name of the Kafka topic.
|
CreateEventSourceMappingResponse.Builder |
tumblingWindowInSeconds(Integer tumblingWindowInSeconds)
(Streams only) The duration in seconds of a processing window.
|
CreateEventSourceMappingResponse.Builder |
uuid(String uuid)
The identifier of the event source mapping.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateEventSourceMappingResponse.Builder uuid(String uuid)
The identifier of the event source mapping.
uuid
- The identifier of the event source mapping.CreateEventSourceMappingResponse.Builder startingPosition(String startingPosition)
The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and
Amazon MSK stream sources. AT_TIMESTAMP
is supported only for Amazon Kinesis streams.
startingPosition
- The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB,
and Amazon MSK stream sources. AT_TIMESTAMP
is supported only for Amazon Kinesis streams.EventSourcePosition
,
EventSourcePosition
CreateEventSourceMappingResponse.Builder startingPosition(EventSourcePosition startingPosition)
The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and
Amazon MSK stream sources. AT_TIMESTAMP
is supported only for Amazon Kinesis streams.
startingPosition
- The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB,
and Amazon MSK stream sources. AT_TIMESTAMP
is supported only for Amazon Kinesis streams.EventSourcePosition
,
EventSourcePosition
CreateEventSourceMappingResponse.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.CreateEventSourceMappingResponse.Builder batchSize(Integer batchSize)
The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.
Related setting: When you set BatchSize
to a value greater than 10, you must set
MaximumBatchingWindowInSeconds
to at least 1.
batchSize
- The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to
your function. Lambda passes all of the records in the batch to the function in a single call, up to
the payload limit for synchronous invocation (6 MB).
Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.
Related setting: When you set BatchSize
to a value greater than 10, you must set
MaximumBatchingWindowInSeconds
to at least 1.
CreateEventSourceMappingResponse.Builder maximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
Default: 0
Related setting: When you set BatchSize
to a value greater than 10, you must set
MaximumBatchingWindowInSeconds
to at least 1.
maximumBatchingWindowInSeconds
- (Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, that Lambda spends
gathering records before invoking the function.
Default: 0
Related setting: When you set BatchSize
to a value greater than 10, you must set
MaximumBatchingWindowInSeconds
to at least 1.
CreateEventSourceMappingResponse.Builder parallelizationFactor(Integer parallelizationFactor)
(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
parallelizationFactor
- (Streams only) The number of batches to process concurrently from each shard. The default value is 1.CreateEventSourceMappingResponse.Builder eventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
eventSourceArn
- The Amazon Resource Name (ARN) of the event source.CreateEventSourceMappingResponse.Builder filterCriteria(FilterCriteria filterCriteria)
(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
filterCriteria
- (Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda
should process an event. For more information, see Lambda event
filtering.default CreateEventSourceMappingResponse.Builder filterCriteria(Consumer<FilterCriteria.Builder> filterCriteria)
(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
This is a convenience method that creates an instance of theFilterCriteria.Builder
avoiding the need
to create one manually via FilterCriteria.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to filterCriteria(FilterCriteria)
.
filterCriteria
- a consumer that will call methods on FilterCriteria.Builder
filterCriteria(FilterCriteria)
CreateEventSourceMappingResponse.Builder functionArn(String functionArn)
The ARN of the Lambda function.
functionArn
- The ARN of the Lambda function.CreateEventSourceMappingResponse.Builder lastModified(Instant lastModified)
The date that the event source mapping was last updated or that its state changed.
lastModified
- The date that the event source mapping was last updated or that its state changed.CreateEventSourceMappingResponse.Builder lastProcessingResult(String lastProcessingResult)
The result of the last Lambda invocation of your function.
lastProcessingResult
- The result of the last Lambda invocation of your function.CreateEventSourceMappingResponse.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
.CreateEventSourceMappingResponse.Builder stateTransitionReason(String stateTransitionReason)
Indicates whether a user or Lambda made the last change to the event source mapping.
stateTransitionReason
- Indicates whether a user or Lambda made the last change to the event source mapping.CreateEventSourceMappingResponse.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 CreateEventSourceMappingResponse.Builder destinationConfig(Consumer<DestinationConfig.Builder> destinationConfig)
(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
This is a convenience method 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)
CreateEventSourceMappingResponse.Builder topics(Collection<String> topics)
The name of the Kafka topic.
topics
- The name of the Kafka topic.CreateEventSourceMappingResponse.Builder topics(String... topics)
The name of the Kafka topic.
topics
- The name of the Kafka topic.CreateEventSourceMappingResponse.Builder queues(Collection<String> queues)
(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
queues
- (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.CreateEventSourceMappingResponse.Builder queues(String... queues)
(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
queues
- (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.CreateEventSourceMappingResponse.Builder sourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
sourceAccessConfigurations
- An array of the authentication protocol, VPC components, or virtual host to secure and define your
event source.CreateEventSourceMappingResponse.Builder sourceAccessConfigurations(SourceAccessConfiguration... sourceAccessConfigurations)
An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
sourceAccessConfigurations
- An array of the authentication protocol, VPC components, or virtual host to secure and define your
event source.CreateEventSourceMappingResponse.Builder sourceAccessConfigurations(Consumer<SourceAccessConfiguration.Builder>... sourceAccessConfigurations)
An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
This is a convenience method that creates an instance of theSourceAccessConfiguration.Builder
avoiding the need to
create one manually via
SourceAccessConfiguration.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called
immediately and its result is passed to #sourceAccessConfigurations(List
.
sourceAccessConfigurations
- a consumer that will call methods on
SourceAccessConfiguration.Builder
#sourceAccessConfigurations(java.util.Collection)
CreateEventSourceMappingResponse.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 CreateEventSourceMappingResponse.Builder selfManagedEventSource(Consumer<SelfManagedEventSource.Builder> selfManagedEventSource)
The self-managed Apache Kafka cluster for your event source.
This is a convenience method 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)
CreateEventSourceMappingResponse.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.CreateEventSourceMappingResponse.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.CreateEventSourceMappingResponse.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.CreateEventSourceMappingResponse.Builder tumblingWindowInSeconds(Integer tumblingWindowInSeconds)
(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.
tumblingWindowInSeconds
- (Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.CreateEventSourceMappingResponse.Builder functionResponseTypesWithStrings(Collection<String> functionResponseTypes)
(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
functionResponseTypes
- (Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.CreateEventSourceMappingResponse.Builder functionResponseTypesWithStrings(String... functionResponseTypes)
(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
functionResponseTypes
- (Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.CreateEventSourceMappingResponse.Builder functionResponseTypes(Collection<FunctionResponseType> functionResponseTypes)
(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
functionResponseTypes
- (Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.CreateEventSourceMappingResponse.Builder functionResponseTypes(FunctionResponseType... functionResponseTypes)
(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
functionResponseTypes
- (Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.CreateEventSourceMappingResponse.Builder amazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig amazonManagedKafkaEventSourceConfig)
Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
amazonManagedKafkaEventSourceConfig
- Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event
source.default CreateEventSourceMappingResponse.Builder amazonManagedKafkaEventSourceConfig(Consumer<AmazonManagedKafkaEventSourceConfig.Builder> amazonManagedKafkaEventSourceConfig)
Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
This is a convenience method that creates an instance of theAmazonManagedKafkaEventSourceConfig.Builder
avoiding the need to create one manually via
AmazonManagedKafkaEventSourceConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to
amazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig)
.
amazonManagedKafkaEventSourceConfig
- a consumer that will call methods on AmazonManagedKafkaEventSourceConfig.Builder
amazonManagedKafkaEventSourceConfig(AmazonManagedKafkaEventSourceConfig)
CreateEventSourceMappingResponse.Builder selfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig selfManagedKafkaEventSourceConfig)
Specific configuration settings for a self-managed Apache Kafka event source.
selfManagedKafkaEventSourceConfig
- Specific configuration settings for a self-managed Apache Kafka event source.default CreateEventSourceMappingResponse.Builder selfManagedKafkaEventSourceConfig(Consumer<SelfManagedKafkaEventSourceConfig.Builder> selfManagedKafkaEventSourceConfig)
Specific configuration settings for a self-managed Apache Kafka event source.
This is a convenience method that creates an instance of theSelfManagedKafkaEventSourceConfig.Builder
avoiding the need to create one manually via
SelfManagedKafkaEventSourceConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to
selfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig)
.
selfManagedKafkaEventSourceConfig
- a consumer that will call methods on SelfManagedKafkaEventSourceConfig.Builder
selfManagedKafkaEventSourceConfig(SelfManagedKafkaEventSourceConfig)
Copyright © 2022. All rights reserved.