@Stability(value=Stable) public static final class CfnEventSourceMappingProps.Builder extends Object implements software.amazon.jsii.Builder<CfnEventSourceMappingProps>
CfnEventSourceMappingProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnEventSourceMappingProps.Builder functionName(String functionName)
CfnEventSourceMappingProps.getFunctionName()functionName - The name of the Lambda function. This parameter is required.
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.
this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder amazonManagedKafkaEventSourceConfig(CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty amazonManagedKafkaEventSourceConfig)
CfnEventSourceMappingProps.getAmazonManagedKafkaEventSourceConfig()amazonManagedKafkaEventSourceConfig - `AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder amazonManagedKafkaEventSourceConfig(IResolvable amazonManagedKafkaEventSourceConfig)
CfnEventSourceMappingProps.getAmazonManagedKafkaEventSourceConfig()amazonManagedKafkaEventSourceConfig - `AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder batchSize(Number batchSize)
CfnEventSourceMappingProps.getBatchSize()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).
this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError)
CfnEventSourceMappingProps.getBisectBatchOnFunctionError()bisectBatchOnFunctionError - (Streams only) If the function returns an error, split the batch in two and retry.
The default value is false.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder bisectBatchOnFunctionError(IResolvable bisectBatchOnFunctionError)
CfnEventSourceMappingProps.getBisectBatchOnFunctionError()bisectBatchOnFunctionError - (Streams only) If the function returns an error, split the batch in two and retry.
The default value is false.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder destinationConfig(CfnEventSourceMapping.DestinationConfigProperty destinationConfig)
CfnEventSourceMappingProps.getDestinationConfig()destinationConfig - (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder destinationConfig(IResolvable destinationConfig)
CfnEventSourceMappingProps.getDestinationConfig()destinationConfig - (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder enabled(Boolean enabled)
CfnEventSourceMappingProps.getEnabled()enabled - When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: Truethis@Stability(value=Stable) public CfnEventSourceMappingProps.Builder enabled(IResolvable enabled)
CfnEventSourceMappingProps.getEnabled()enabled - When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: Truethis@Stability(value=Stable) public CfnEventSourceMappingProps.Builder eventSourceArn(String eventSourceArn)
CfnEventSourceMappingProps.getEventSourceArn()eventSourceArn - The Amazon Resource Name (ARN) of the event source.
this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder filterCriteria(CfnEventSourceMapping.FilterCriteriaProperty filterCriteria)
CfnEventSourceMappingProps.getFilterCriteria()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@Stability(value=Stable) public CfnEventSourceMappingProps.Builder filterCriteria(IResolvable filterCriteria)
CfnEventSourceMappingProps.getFilterCriteria()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@Stability(value=Stable) public CfnEventSourceMappingProps.Builder functionResponseTypes(List<String> functionResponseTypes)
CfnEventSourceMappingProps.getFunctionResponseTypes()functionResponseTypes - (Streams and SQS) A list of current response type enums applied to the event source mapping.
Valid Values: ReportBatchItemFailuresthis@Stability(value=Stable) public CfnEventSourceMappingProps.Builder maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds)
CfnEventSourceMappingProps.getMaximumBatchingWindowInSeconds()maximumBatchingWindowInSeconds - The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
Default ( Kinesis , DynamoDB , Amazon SQS event sources) : 0
Default ( Amazon MSK , Kafka, Amazon MQ event sources) : 500 ms
this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder maximumRecordAgeInSeconds(Number maximumRecordAgeInSeconds)
CfnEventSourceMappingProps.getMaximumRecordAgeInSeconds()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.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder maximumRetryAttempts(Number maximumRetryAttempts)
CfnEventSourceMappingProps.getMaximumRetryAttempts()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.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder parallelizationFactor(Number parallelizationFactor)
CfnEventSourceMappingProps.getParallelizationFactor()parallelizationFactor - (Streams only) The number of batches to process concurrently from each shard.
The default value is 1.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder queues(List<String> queues)
CfnEventSourceMappingProps.getQueues()queues - (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder selfManagedEventSource(CfnEventSourceMapping.SelfManagedEventSourceProperty selfManagedEventSource)
CfnEventSourceMappingProps.getSelfManagedEventSource()selfManagedEventSource - The self-managed Apache Kafka cluster for your event source.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder selfManagedEventSource(IResolvable selfManagedEventSource)
CfnEventSourceMappingProps.getSelfManagedEventSource()selfManagedEventSource - The self-managed Apache Kafka cluster for your event source.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder selfManagedKafkaEventSourceConfig(CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty selfManagedKafkaEventSourceConfig)
CfnEventSourceMappingProps.getSelfManagedKafkaEventSourceConfig()selfManagedKafkaEventSourceConfig - `AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder selfManagedKafkaEventSourceConfig(IResolvable selfManagedKafkaEventSourceConfig)
CfnEventSourceMappingProps.getSelfManagedKafkaEventSourceConfig()selfManagedKafkaEventSourceConfig - `AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder sourceAccessConfigurations(IResolvable sourceAccessConfigurations)
CfnEventSourceMappingProps.getSourceAccessConfigurations()sourceAccessConfigurations - An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder sourceAccessConfigurations(List<? extends Object> sourceAccessConfigurations)
CfnEventSourceMappingProps.getSourceAccessConfigurations()sourceAccessConfigurations - An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder startingPosition(String startingPosition)
CfnEventSourceMappingProps.getStartingPosition()startingPosition - The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.
this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder startingPositionTimestamp(Number startingPositionTimestamp)
CfnEventSourceMappingProps.getStartingPositionTimestamp()startingPositionTimestamp - With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix time seconds.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder topics(List<String> topics)
CfnEventSourceMappingProps.getTopics()topics - The name of the Kafka topic.this@Stability(value=Stable) public CfnEventSourceMappingProps.Builder tumblingWindowInSeconds(Number tumblingWindowInSeconds)
CfnEventSourceMappingProps.getTumblingWindowInSeconds()tumblingWindowInSeconds - (Streams only) The duration in seconds of a processing window.
The range is between 1 second up to 900 seconds.this@Stability(value=Stable) public CfnEventSourceMappingProps build()
build in interface software.amazon.jsii.Builder<CfnEventSourceMappingProps>CfnEventSourceMappingPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.