@Stability(value=Stable) public static final class CfnEventSourceMapping.Builder extends Object implements software.amazon.jsii.Builder<CfnEventSourceMapping>
CfnEventSourceMapping.| Modifier and Type | Method and Description |
|---|---|
CfnEventSourceMapping.Builder |
amazonManagedKafkaEventSourceConfig(CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty amazonManagedKafkaEventSourceConfig)
`AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`.
|
CfnEventSourceMapping.Builder |
amazonManagedKafkaEventSourceConfig(IResolvable amazonManagedKafkaEventSourceConfig)
`AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`.
|
CfnEventSourceMapping.Builder |
batchSize(Number batchSize)
The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function.
|
CfnEventSourceMapping.Builder |
bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
(Streams only) If the function returns an error, split the batch in two and retry.
|
CfnEventSourceMapping.Builder |
bisectBatchOnFunctionError(IResolvable bisectBatchOnFunctionError)
(Streams only) If the function returns an error, split the batch in two and retry.
|
CfnEventSourceMapping |
build() |
static CfnEventSourceMapping.Builder |
create(software.constructs.Construct scope,
String id) |
CfnEventSourceMapping.Builder |
destinationConfig(CfnEventSourceMapping.DestinationConfigProperty destinationConfig)
(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
CfnEventSourceMapping.Builder |
destinationConfig(IResolvable destinationConfig)
(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
|
CfnEventSourceMapping.Builder |
enabled(Boolean enabled)
When true, the event source mapping is active.
|
CfnEventSourceMapping.Builder |
enabled(IResolvable enabled)
When true, the event source mapping is active.
|
CfnEventSourceMapping.Builder |
eventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
|
CfnEventSourceMapping.Builder |
filterCriteria(CfnEventSourceMapping.FilterCriteriaProperty filterCriteria)
(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event.
|
CfnEventSourceMapping.Builder |
filterCriteria(IResolvable filterCriteria)
(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event.
|
CfnEventSourceMapping.Builder |
functionName(String functionName)
The name of the Lambda function.
|
CfnEventSourceMapping.Builder |
functionResponseTypes(List<String> functionResponseTypes)
(Streams and SQS) A list of current response type enums applied to the event source mapping.
|
CfnEventSourceMapping.Builder |
maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds)
The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
|
CfnEventSourceMapping.Builder |
maximumRecordAgeInSeconds(Number maximumRecordAgeInSeconds)
(Streams only) Discard records older than the specified age.
|
CfnEventSourceMapping.Builder |
maximumRetryAttempts(Number maximumRetryAttempts)
(Streams only) Discard records after the specified number of retries.
|
CfnEventSourceMapping.Builder |
parallelizationFactor(Number parallelizationFactor)
(Streams only) The number of batches to process concurrently from each shard.
|
CfnEventSourceMapping.Builder |
queues(List<String> queues)
(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
|
CfnEventSourceMapping.Builder |
selfManagedEventSource(CfnEventSourceMapping.SelfManagedEventSourceProperty selfManagedEventSource)
The self-managed Apache Kafka cluster for your event source.
|
CfnEventSourceMapping.Builder |
selfManagedEventSource(IResolvable selfManagedEventSource)
The self-managed Apache Kafka cluster for your event source.
|
CfnEventSourceMapping.Builder |
selfManagedKafkaEventSourceConfig(CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty selfManagedKafkaEventSourceConfig)
`AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`.
|
CfnEventSourceMapping.Builder |
selfManagedKafkaEventSourceConfig(IResolvable selfManagedKafkaEventSourceConfig)
`AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`.
|
CfnEventSourceMapping.Builder |
sourceAccessConfigurations(IResolvable sourceAccessConfigurations)
An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
|
CfnEventSourceMapping.Builder |
sourceAccessConfigurations(List<? extends Object> sourceAccessConfigurations)
An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
|
CfnEventSourceMapping.Builder |
startingPosition(String startingPosition)
The position in a stream from which to start reading.
|
CfnEventSourceMapping.Builder |
startingPositionTimestamp(Number startingPositionTimestamp)
With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix time seconds.
|
CfnEventSourceMapping.Builder |
topics(List<String> topics)
The name of the Kafka topic.
|
CfnEventSourceMapping.Builder |
tumblingWindowInSeconds(Number tumblingWindowInSeconds)
(Streams only) The duration in seconds of a processing window.
|
@Stability(value=Stable) public static CfnEventSourceMapping.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty.Builder.@Stability(value=Stable) public CfnEventSourceMapping.Builder functionName(String functionName)
Name formats - Function name - MyFunction .
arn:aws:lambda:us-west-2:123456789012:function:MyFunction .arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD .123456789012:function:MyFunction .The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
functionName - The name of the Lambda function. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder amazonManagedKafkaEventSourceConfig(CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty amazonManagedKafkaEventSourceConfig)
amazonManagedKafkaEventSourceConfig - `AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder amazonManagedKafkaEventSourceConfig(IResolvable amazonManagedKafkaEventSourceConfig)
amazonManagedKafkaEventSourceConfig - `AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder batchSize(Number batchSize)
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).
batchSize - The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
The default value is false.
bisectBatchOnFunctionError - (Streams only) If the function returns an error, split the batch in two and retry. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder bisectBatchOnFunctionError(IResolvable bisectBatchOnFunctionError)
The default value is false.
bisectBatchOnFunctionError - (Streams only) If the function returns an error, split the batch in two and retry. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder destinationConfig(CfnEventSourceMapping.DestinationConfigProperty destinationConfig)
destinationConfig - (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder destinationConfig(IResolvable destinationConfig)
destinationConfig - (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder enabled(Boolean enabled)
Default: True
enabled - When true, the event source mapping is active. When false, Lambda pauses polling and invocation. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder enabled(IResolvable enabled)
Default: True
enabled - When true, the event source mapping is active. When false, Lambda pauses polling and invocation. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder eventSourceArn(String eventSourceArn)
eventSourceArn - The Amazon Resource Name (ARN) of the event source. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder filterCriteria(CfnEventSourceMapping.FilterCriteriaProperty filterCriteria)
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. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder filterCriteria(IResolvable filterCriteria)
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. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder functionResponseTypes(List<String> functionResponseTypes)
Valid Values: ReportBatchItemFailures
functionResponseTypes - (Streams and SQS) A list of current response type enums applied to the event source mapping. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds)
Default ( Kinesis , DynamoDB , Amazon SQS event sources) : 0
Default ( Amazon MSK , Kafka, Amazon MQ event sources) : 500 ms
maximumBatchingWindowInSeconds - The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder maximumRecordAgeInSeconds(Number maximumRecordAgeInSeconds)
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. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder maximumRetryAttempts(Number maximumRetryAttempts)
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. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder parallelizationFactor(Number parallelizationFactor)
The default value is 1.
parallelizationFactor - (Streams only) The number of batches to process concurrently from each shard. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder queues(List<String> queues)
queues - (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder selfManagedEventSource(CfnEventSourceMapping.SelfManagedEventSourceProperty selfManagedEventSource)
selfManagedEventSource - The self-managed Apache Kafka cluster for your event source. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder selfManagedEventSource(IResolvable selfManagedEventSource)
selfManagedEventSource - The self-managed Apache Kafka cluster for your event source. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder selfManagedKafkaEventSourceConfig(CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty selfManagedKafkaEventSourceConfig)
selfManagedKafkaEventSourceConfig - `AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder selfManagedKafkaEventSourceConfig(IResolvable selfManagedKafkaEventSourceConfig)
selfManagedKafkaEventSourceConfig - `AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder sourceAccessConfigurations(IResolvable sourceAccessConfigurations)
sourceAccessConfigurations - An array of the authentication protocol, VPC components, or virtual host to secure and define your event source. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder sourceAccessConfigurations(List<? extends Object> sourceAccessConfigurations)
sourceAccessConfigurations - An array of the authentication protocol, VPC components, or virtual host to secure and define your event source. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder startingPosition(String startingPosition)
startingPosition - The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder startingPositionTimestamp(Number startingPositionTimestamp)
startingPositionTimestamp - With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix time seconds. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder topics(List<String> topics)
topics - The name of the Kafka topic. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping.Builder tumblingWindowInSeconds(Number tumblingWindowInSeconds)
The range is between 1 second up to 900 seconds.
tumblingWindowInSeconds - (Streams only) The duration in seconds of a processing window. This parameter is required.this@Stability(value=Stable) public CfnEventSourceMapping build()
build in interface software.amazon.jsii.Builder<CfnEventSourceMapping>Copyright © 2022. All rights reserved.