public static interface CreateEventSourceMappingResponse.Builder extends LambdaResponse.Builder, SdkPojo, CopyableBuilder<CreateEventSourceMappingResponse.Builder,CreateEventSourceMappingResponse>
Modifier and Type | Method and Description |
---|---|
CreateEventSourceMappingResponse.Builder |
batchSize(Integer batchSize)
The maximum number of items to retrieve in a single batch.
|
CreateEventSourceMappingResponse.Builder |
bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams) If the function returns an error, split the batch in two and retry.
|
default CreateEventSourceMappingResponse.Builder |
destinationConfig(Consumer<DestinationConfig.Builder> destinationConfig)
(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
CreateEventSourceMappingResponse.Builder |
destinationConfig(DestinationConfig destinationConfig)
(Streams) 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.
|
CreateEventSourceMappingResponse.Builder |
functionArn(String functionArn)
The ARN of the Lambda function.
|
CreateEventSourceMappingResponse.Builder |
lastModified(Instant lastModified)
The date that the event source mapping was last updated, or its state changed.
|
CreateEventSourceMappingResponse.Builder |
lastProcessingResult(String lastProcessingResult)
The result of the last AWS Lambda invocation of your Lambda function.
|
CreateEventSourceMappingResponse.Builder |
maximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams) The maximum amount of time to gather records before invoking the function, in seconds.
|
CreateEventSourceMappingResponse.Builder |
maximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams) Discard records older than the specified age.
|
CreateEventSourceMappingResponse.Builder |
maximumRetryAttempts(Integer maximumRetryAttempts)
(Streams) Discard records after the specified number of retries.
|
CreateEventSourceMappingResponse.Builder |
parallelizationFactor(Integer parallelizationFactor)
(Streams) The number of batches to process from each shard concurrently.
|
CreateEventSourceMappingResponse.Builder |
queues(Collection<String> queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
|
CreateEventSourceMappingResponse.Builder |
queues(String... queues)
(MQ) The name of the Amazon MQ broker destination queue to consume.
|
CreateEventSourceMappingResponse.Builder |
sourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials.
|
CreateEventSourceMappingResponse.Builder |
sourceAccessConfigurations(Consumer<SourceAccessConfiguration.Builder>... sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials.
|
CreateEventSourceMappingResponse.Builder |
sourceAccessConfigurations(SourceAccessConfiguration... sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials.
|
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 the last change to the event source mapping was made by a user, or by the Lambda service.
|
CreateEventSourceMappingResponse.Builder |
topics(Collection<String> topics)
(MSK) The name of the Kafka topic to consume.
|
CreateEventSourceMappingResponse.Builder |
topics(String... topics)
(MSK) The name of the Kafka topic to consume.
|
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 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
CreateEventSourceMappingResponse.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
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 items to retrieve in a single batch.
batchSize
- The maximum number of items to retrieve in a single batch.CreateEventSourceMappingResponse.Builder maximumBatchingWindowInSeconds(Integer maximumBatchingWindowInSeconds)
(Streams) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.
maximumBatchingWindowInSeconds
- (Streams) The maximum amount of time to gather records before invoking the function, in seconds. The
default value is zero.CreateEventSourceMappingResponse.Builder parallelizationFactor(Integer parallelizationFactor)
(Streams) The number of batches to process from each shard concurrently. The default value is 1.
parallelizationFactor
- (Streams) The number of batches to process from each shard concurrently. 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 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 its state changed.
lastModified
- The date that the event source mapping was last updated, or its state changed.CreateEventSourceMappingResponse.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.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 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.CreateEventSourceMappingResponse.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 CreateEventSourceMappingResponse.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)
CreateEventSourceMappingResponse.Builder topics(Collection<String> topics)
(MSK) The name of the Kafka topic to consume.
topics
- (MSK) The name of the Kafka topic to consume.CreateEventSourceMappingResponse.Builder topics(String... topics)
(MSK) The name of the Kafka topic to consume.
topics
- (MSK) The name of the Kafka topic to consume.CreateEventSourceMappingResponse.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.CreateEventSourceMappingResponse.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.CreateEventSourceMappingResponse.Builder sourceAccessConfigurations(Collection<SourceAccessConfiguration> sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following
format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format:
[ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use customer
or service managed keys. When using a customer managed KMS key, the Lambda execution role requires
kms:Decrypt
permissions.
sourceAccessConfigurations
- (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the
following format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format:
[ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use
customer or service managed keys. When using a customer managed KMS key, the Lambda execution role
requires kms:Decrypt
permissions.
CreateEventSourceMappingResponse.Builder sourceAccessConfigurations(SourceAccessConfiguration... sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following
format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format:
[ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use customer
or service managed keys. When using a customer managed KMS key, the Lambda execution role requires
kms:Decrypt
permissions.
sourceAccessConfigurations
- (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the
following format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format:
[ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use
customer or service managed keys. When using a customer managed KMS key, the Lambda execution role
requires kms:Decrypt
permissions.
CreateEventSourceMappingResponse.Builder sourceAccessConfigurations(Consumer<SourceAccessConfiguration.Builder>... sourceAccessConfigurations)
(MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following
format: { "username": "your username", "password": "your password" }
To reference the secret, use the following format:
[ { "Type": "BASIC_AUTH", "URI": "secretARN" } ]
The value of Type
is always BASIC_AUTH
. To encrypt the secret, you can use customer
or service managed keys. When using a customer managed KMS key, the Lambda execution role requires
kms:Decrypt
permissions.
List.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)
CreateEventSourceMappingResponse.Builder maximumRecordAgeInSeconds(Integer maximumRecordAgeInSeconds)
(Streams) Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
maximumRecordAgeInSeconds
- (Streams) Discard records older than the specified age. The default value is infinite (-1). When set
to infinite (-1), failed records are retried until the record expires.CreateEventSourceMappingResponse.Builder bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams) If the function returns an error, split the batch in two and retry. The default value is false.
bisectBatchOnFunctionError
- (Streams) If the function returns an error, split the batch in two and retry. The default value is
false.CreateEventSourceMappingResponse.Builder maximumRetryAttempts(Integer maximumRetryAttempts)
(Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
maximumRetryAttempts
- (Streams) Discard records after the specified number of retries. The default value is infinite (-1).
When set to infinite (-1), failed records are retried until the record expires.Copyright © 2020. All rights reserved.