Class CfnEventSourceMappingPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin>
- Enclosing class:
CfnEventSourceMappingPropsMixin
CfnEventSourceMappingPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionamazonManagedKafkaEventSourceConfig(CfnEventSourceMappingPropsMixin.AmazonManagedKafkaEventSourceConfigProperty amazonManagedKafkaEventSourceConfig) Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.amazonManagedKafkaEventSourceConfig(IResolvable amazonManagedKafkaEventSourceConfig) Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function.bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError) (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.bisectBatchOnFunctionError(IResolvable bisectBatchOnFunctionError) (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.build()create()create(CfnPropertyMixinOptions options) destinationConfig(CfnEventSourceMappingPropsMixin.DestinationConfigProperty destinationConfig) (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.destinationConfig(IResolvable destinationConfig) (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.documentDbEventSourceConfig(CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty documentDbEventSourceConfig) Specific configuration settings for a DocumentDB event source.documentDbEventSourceConfig(IResolvable documentDbEventSourceConfig) Specific configuration settings for a DocumentDB event source.When true, the event source mapping is active.enabled(IResolvable enabled) When true, the event source mapping is active.eventSourceArn(String eventSourceArn) The Amazon Resource Name (ARN) of the event source.eventSourceArn(IStreamRef eventSourceArn) The Amazon Resource Name (ARN) of the event source.eventSourceArn(IClusterRef eventSourceArn) The Amazon Resource Name (ARN) of the event source.eventSourceArn(IQueueRef eventSourceArn) The Amazon Resource Name (ARN) of the event source.filterCriteria(CfnEventSourceMappingPropsMixin.FilterCriteriaProperty filterCriteria) An object that defines the filter criteria that determine whether Lambda should process an event.filterCriteria(IResolvable filterCriteria) An object that defines the filter criteria that determine whether Lambda should process an event.functionName(String functionName) The name or ARN of the Lambda function.functionName(IFunctionRef functionName) The name or ARN of the Lambda function.functionName(IVersionRef functionName) The name or ARN of the Lambda function.functionResponseTypes(List<String> functionResponseTypes) (Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping.The ARN of the AWS Key Management Service ( AWS ) customer managed key that Lambda uses to encrypt your function's filter criteria .The function's Amazon CloudWatch Logs configuration settings.loggingConfig(IResolvable loggingConfig) The function's Amazon CloudWatch Logs configuration settings.maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds) The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.maximumRecordAgeInSeconds(Number maximumRecordAgeInSeconds) (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age.maximumRetryAttempts(Number maximumRetryAttempts) (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries.The metrics configuration for your event source.metricsConfig(IResolvable metricsConfig) The metrics configuration for your event source.parallelizationFactor(Number parallelizationFactor) (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard.provisionedPollerConfig(CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty provisionedPollerConfig) (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source.provisionedPollerConfig(IResolvable provisionedPollerConfig) (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source.(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.This property is for Amazon SQS event sources only.scalingConfig(IResolvable scalingConfig) This property is for Amazon SQS event sources only.selfManagedEventSource(CfnEventSourceMappingPropsMixin.SelfManagedEventSourceProperty selfManagedEventSource) The self-managed Apache Kafka cluster for your event source.selfManagedEventSource(IResolvable selfManagedEventSource) The self-managed Apache Kafka cluster for your event source.selfManagedKafkaEventSourceConfig(CfnEventSourceMappingPropsMixin.SelfManagedKafkaEventSourceConfigProperty selfManagedKafkaEventSourceConfig) Specific configuration settings for a self-managed Apache Kafka event source.selfManagedKafkaEventSourceConfig(IResolvable selfManagedKafkaEventSourceConfig) Specific configuration settings for a self-managed Apache Kafka event source.sourceAccessConfigurations(List<? extends Object> sourceAccessConfigurations) An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.sourceAccessConfigurations(IResolvable sourceAccessConfigurations) An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.startingPosition(String startingPosition) The position in a stream from which to start reading.startingPositionTimestamp(Number startingPositionTimestamp) WithStartingPositionset toAT_TIMESTAMP, the time from which to start reading, in Unix time seconds.A list of tags to add to the event source mapping.The name of the Kafka topic.tumblingWindowInSeconds(Number tumblingWindowInSeconds) (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources.
-
Method Details
-
create
@Stability(Stable) public static CfnEventSourceMappingPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnEventSourceMappingPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnEventSourceMappingPropsMixin.Builder.
-
amazonManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder amazonManagedKafkaEventSourceConfig(IResolvable amazonManagedKafkaEventSourceConfig) Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.- Parameters:
amazonManagedKafkaEventSourceConfig- Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source. This parameter is required.- Returns:
this- See Also:
-
amazonManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder amazonManagedKafkaEventSourceConfig(CfnEventSourceMappingPropsMixin.AmazonManagedKafkaEventSourceConfigProperty amazonManagedKafkaEventSourceConfig) Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.- Parameters:
amazonManagedKafkaEventSourceConfig- Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source. This parameter is required.- Returns:
this- See Also:
-
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).
- Amazon Kinesis – Default 100. Max 10,000.
- Amazon DynamoDB Streams – Default 100. Max 10,000.
- Amazon Simple Queue Service – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
- Amazon Managed Streaming for Apache Kafka – Default 100. Max 10,000.
- Self-managed Apache Kafka – Default 100. Max 10,000.
- Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000.
- DocumentDB – Default 100. Max 10,000.
- Parameters:
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.- Returns:
this- See Also:
-
bisectBatchOnFunctionError
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError) (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.The default value is false.
When using
BisectBatchOnFunctionError, check theBatchSizeparameter in theOnFailuredestination message's metadata. TheBatchSizecould be greater than 1 since Lambda consolidates failed messages metadata when writing to theOnFailuredestination.- Parameters:
bisectBatchOnFunctionError- (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. This parameter is required.- Returns:
this- See Also:
-
bisectBatchOnFunctionError
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder bisectBatchOnFunctionError(IResolvable bisectBatchOnFunctionError) (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.The default value is false.
When using
BisectBatchOnFunctionError, check theBatchSizeparameter in theOnFailuredestination message's metadata. TheBatchSizecould be greater than 1 since Lambda consolidates failed messages metadata when writing to theOnFailuredestination.- Parameters:
bisectBatchOnFunctionError- (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. This parameter is required.- Returns:
this- See Also:
-
destinationConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder destinationConfig(IResolvable destinationConfig) (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.- Parameters:
destinationConfig- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it. This parameter is required.- Returns:
this- See Also:
-
destinationConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder destinationConfig(CfnEventSourceMappingPropsMixin.DestinationConfigProperty destinationConfig) (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.- Parameters:
destinationConfig- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it. This parameter is required.- Returns:
this- See Also:
-
documentDbEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder documentDbEventSourceConfig(IResolvable documentDbEventSourceConfig) Specific configuration settings for a DocumentDB event source.- Parameters:
documentDbEventSourceConfig- Specific configuration settings for a DocumentDB event source. This parameter is required.- Returns:
this- See Also:
-
documentDbEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder documentDbEventSourceConfig(CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty documentDbEventSourceConfig) Specific configuration settings for a DocumentDB event source.- Parameters:
documentDbEventSourceConfig- Specific configuration settings for a DocumentDB event source. This parameter is required.- Returns:
this- See Also:
-
enabled
When true, the event source mapping is active. When false, Lambda pauses polling and invocation.Default: True
- Parameters:
enabled- When true, the event source mapping is active. When false, Lambda pauses polling and invocation. This parameter is required.- Returns:
this- See Also:
-
enabled
When true, the event source mapping is active. When false, Lambda pauses polling and invocation.Default: True
- Parameters:
enabled- When true, the event source mapping is active. When false, Lambda pauses polling and invocation. This parameter is required.- Returns:
this- See Also:
-
eventSourceArn
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder eventSourceArn(String eventSourceArn) The Amazon Resource Name (ARN) of the event source.- Amazon Kinesis – The ARN of the data stream or a stream consumer.
- Amazon DynamoDB Streams – The ARN of the stream.
- Amazon Simple Queue Service – The ARN of the queue.
- Amazon Managed Streaming for Apache Kafka – The ARN of the cluster or the ARN of the VPC connection (for cross-account event source mappings ).
- Amazon MQ – The ARN of the broker.
- Amazon DocumentDB – The ARN of the DocumentDB change stream.
- Parameters:
eventSourceArn- The Amazon Resource Name (ARN) of the event source. This parameter is required.- Returns:
this- See Also:
-
eventSourceArn
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder eventSourceArn(IStreamRef eventSourceArn) The Amazon Resource Name (ARN) of the event source.- Amazon Kinesis – The ARN of the data stream or a stream consumer.
- Amazon DynamoDB Streams – The ARN of the stream.
- Amazon Simple Queue Service – The ARN of the queue.
- Amazon Managed Streaming for Apache Kafka – The ARN of the cluster or the ARN of the VPC connection (for cross-account event source mappings ).
- Amazon MQ – The ARN of the broker.
- Amazon DocumentDB – The ARN of the DocumentDB change stream.
- Parameters:
eventSourceArn- The Amazon Resource Name (ARN) of the event source. This parameter is required.- Returns:
this- See Also:
-
eventSourceArn
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder eventSourceArn(IClusterRef eventSourceArn) The Amazon Resource Name (ARN) of the event source.- Amazon Kinesis – The ARN of the data stream or a stream consumer.
- Amazon DynamoDB Streams – The ARN of the stream.
- Amazon Simple Queue Service – The ARN of the queue.
- Amazon Managed Streaming for Apache Kafka – The ARN of the cluster or the ARN of the VPC connection (for cross-account event source mappings ).
- Amazon MQ – The ARN of the broker.
- Amazon DocumentDB – The ARN of the DocumentDB change stream.
- Parameters:
eventSourceArn- The Amazon Resource Name (ARN) of the event source. This parameter is required.- Returns:
this- See Also:
-
eventSourceArn
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder eventSourceArn(IQueueRef eventSourceArn) The Amazon Resource Name (ARN) of the event source.- Amazon Kinesis – The ARN of the data stream or a stream consumer.
- Amazon DynamoDB Streams – The ARN of the stream.
- Amazon Simple Queue Service – The ARN of the queue.
- Amazon Managed Streaming for Apache Kafka – The ARN of the cluster or the ARN of the VPC connection (for cross-account event source mappings ).
- Amazon MQ – The ARN of the broker.
- Amazon DocumentDB – The ARN of the DocumentDB change stream.
- Parameters:
eventSourceArn- The Amazon Resource Name (ARN) of the event source. This parameter is required.- Returns:
this- See Also:
-
filterCriteria
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder filterCriteria(IResolvable filterCriteria) An object that defines the filter criteria that determine whether Lambda should process an event.For more information, see Lambda event filtering .
- Parameters:
filterCriteria- An object that defines the filter criteria that determine whether Lambda should process an event. This parameter is required.- Returns:
this- See Also:
-
filterCriteria
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder filterCriteria(CfnEventSourceMappingPropsMixin.FilterCriteriaProperty filterCriteria) An object that defines the filter criteria that determine whether Lambda should process an event.For more information, see Lambda event filtering .
- Parameters:
filterCriteria- An object that defines the filter criteria that determine whether Lambda should process an event. This parameter is required.- Returns:
this- See Also:
-
functionName
The name or ARN of the Lambda function.Name formats - Function name –
MyFunction.- Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Version or Alias ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. - Partial ARN –
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.
- Parameters:
functionName- The name or ARN of the Lambda function. This parameter is required.- Returns:
this- See Also:
- Function ARN –
-
functionName
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder functionName(IFunctionRef functionName) The name or ARN of the Lambda function.Name formats - Function name –
MyFunction.- Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Version or Alias ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. - Partial ARN –
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.
- Parameters:
functionName- The name or ARN of the Lambda function. This parameter is required.- Returns:
this- See Also:
- Function ARN –
-
functionName
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder functionName(IVersionRef functionName) The name or ARN of the Lambda function.Name formats - Function name –
MyFunction.- Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. - Version or Alias ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. - Partial ARN –
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.
- Parameters:
functionName- The name or ARN of the Lambda function. This parameter is required.- Returns:
this- See Also:
- Function ARN –
-
functionResponseTypes
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder functionResponseTypes(List<String> functionResponseTypes) (Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping.Valid Values:
ReportBatchItemFailures- Parameters:
functionResponseTypes- (Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping. This parameter is required.- Returns:
this- See Also:
-
kmsKeyArn
The ARN of the AWS Key Management Service ( AWS ) customer managed key that Lambda uses to encrypt your function's filter criteria .- Parameters:
kmsKeyArn- The ARN of the AWS Key Management Service ( AWS ) customer managed key that Lambda uses to encrypt your function's filter criteria . This parameter is required.- Returns:
this- See Also:
-
loggingConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder loggingConfig(IResolvable loggingConfig) The function's Amazon CloudWatch Logs configuration settings.- Parameters:
loggingConfig- The function's Amazon CloudWatch Logs configuration settings. This parameter is required.- Returns:
this- See Also:
-
loggingConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder loggingConfig(CfnEventSourceMappingPropsMixin.LoggingConfigProperty loggingConfig) The function's Amazon CloudWatch Logs configuration settings.- Parameters:
loggingConfig- The function's Amazon CloudWatch Logs configuration settings. This parameter is required.- Returns:
this- See Also:
-
maximumBatchingWindowInSeconds
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder maximumBatchingWindowInSeconds(Number 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 , Amazon DocumentDB event sources) : 500 ms
Related setting: For Amazon SQS event sources, when you set
BatchSizeto a value greater than 10, you must setMaximumBatchingWindowInSecondsto at least 1.- Parameters:
maximumBatchingWindowInSeconds- The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. This parameter is required.- Returns:
this- See Also:
-
maximumRecordAgeInSeconds
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder maximumRecordAgeInSeconds(Number maximumRecordAgeInSeconds) (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) 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.
The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed
- Parameters:
maximumRecordAgeInSeconds- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. This parameter is required.- Returns:
this- See Also:
-
maximumRetryAttempts
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder maximumRetryAttempts(Number maximumRetryAttempts) (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) 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.
- Parameters:
maximumRetryAttempts- (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. This parameter is required.- Returns:
this- See Also:
-
metricsConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder metricsConfig(IResolvable metricsConfig) The metrics configuration for your event source.For more information, see Event source mapping metrics .
- Parameters:
metricsConfig- The metrics configuration for your event source. This parameter is required.- Returns:
this- See Also:
-
metricsConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder metricsConfig(CfnEventSourceMappingPropsMixin.MetricsConfigProperty metricsConfig) The metrics configuration for your event source.For more information, see Event source mapping metrics .
- Parameters:
metricsConfig- The metrics configuration for your event source. This parameter is required.- Returns:
this- See Also:
-
parallelizationFactor
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder parallelizationFactor(Number parallelizationFactor) (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard.The default value is 1.
- Parameters:
parallelizationFactor- (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. This parameter is required.- Returns:
this- See Also:
-
provisionedPollerConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder provisionedPollerConfig(IResolvable provisionedPollerConfig) (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source.For more information, see provisioned mode .
- Parameters:
provisionedPollerConfig- (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. This parameter is required.- Returns:
this- See Also:
-
provisionedPollerConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder provisionedPollerConfig(CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty provisionedPollerConfig) (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source.For more information, see provisioned mode .
- Parameters:
provisionedPollerConfig- (Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. This parameter is required.- Returns:
this- See Also:
-
queues
(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.- Parameters:
queues- (Amazon MQ) The name of the Amazon MQ broker destination queue to consume. This parameter is required.- Returns:
this- See Also:
-
scalingConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder scalingConfig(IResolvable scalingConfig) This property is for Amazon SQS event sources only.You cannot use
ProvisionedPollerConfigwhile usingScalingConfig. These options are mutually exclusive. To remove the scaling configuration, pass an empty value.- Parameters:
scalingConfig- This property is for Amazon SQS event sources only. This parameter is required.- Returns:
this- See Also:
-
scalingConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder scalingConfig(CfnEventSourceMappingPropsMixin.ScalingConfigProperty scalingConfig) This property is for Amazon SQS event sources only.You cannot use
ProvisionedPollerConfigwhile usingScalingConfig. These options are mutually exclusive. To remove the scaling configuration, pass an empty value.- Parameters:
scalingConfig- This property is for Amazon SQS event sources only. This parameter is required.- Returns:
this- See Also:
-
selfManagedEventSource
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder selfManagedEventSource(IResolvable selfManagedEventSource) The self-managed Apache Kafka cluster for your event source.- Parameters:
selfManagedEventSource- The self-managed Apache Kafka cluster for your event source. This parameter is required.- Returns:
this- See Also:
-
selfManagedEventSource
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder selfManagedEventSource(CfnEventSourceMappingPropsMixin.SelfManagedEventSourceProperty selfManagedEventSource) The self-managed Apache Kafka cluster for your event source.- Parameters:
selfManagedEventSource- The self-managed Apache Kafka cluster for your event source. This parameter is required.- Returns:
this- See Also:
-
selfManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder selfManagedKafkaEventSourceConfig(IResolvable selfManagedKafkaEventSourceConfig) Specific configuration settings for a self-managed Apache Kafka event source.- Parameters:
selfManagedKafkaEventSourceConfig- Specific configuration settings for a self-managed Apache Kafka event source. This parameter is required.- Returns:
this- See Also:
-
selfManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder selfManagedKafkaEventSourceConfig(CfnEventSourceMappingPropsMixin.SelfManagedKafkaEventSourceConfigProperty selfManagedKafkaEventSourceConfig) Specific configuration settings for a self-managed Apache Kafka event source.- Parameters:
selfManagedKafkaEventSourceConfig- Specific configuration settings for a self-managed Apache Kafka event source. This parameter is required.- Returns:
this- See Also:
-
sourceAccessConfigurations
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder sourceAccessConfigurations(IResolvable sourceAccessConfigurations) An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.- Parameters:
sourceAccessConfigurations- An array of the authentication protocol, VPC components, or virtual host to secure and define your event source. This parameter is required.- Returns:
this- See Also:
-
sourceAccessConfigurations
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder sourceAccessConfigurations(List<? extends Object> sourceAccessConfigurations) An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.- Parameters:
sourceAccessConfigurations- An array of the authentication protocol, VPC components, or virtual host to secure and define your event source. This parameter is required.- Returns:
this- See Also:
-
startingPosition
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder startingPosition(String startingPosition) The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.- LATEST - Read only new records.
- TRIM_HORIZON - Process all available records.
- AT_TIMESTAMP - Specify a time from which to start reading records.
- Parameters:
startingPosition- The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB. This parameter is required.- Returns:
this- See Also:
-
startingPositionTimestamp
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder startingPositionTimestamp(Number startingPositionTimestamp) WithStartingPositionset toAT_TIMESTAMP, the time from which to start reading, in Unix time seconds.StartingPositionTimestampcannot be in the future.- Parameters:
startingPositionTimestamp- WithStartingPositionset toAT_TIMESTAMP, the time from which to start reading, in Unix time seconds. This parameter is required.- Returns:
this- See Also:
-
tags
A list of tags to add to the event source mapping.You must have the
lambda:TagResource,lambda:UntagResource, andlambda:ListTagspermissions for your IAM principal to manage the CloudFormation stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.- Parameters:
tags- A list of tags to add to the event source mapping. This parameter is required.- Returns:
this- See Also:
-
topics
The name of the Kafka topic.- Parameters:
topics- The name of the Kafka topic. This parameter is required.- Returns:
this- See Also:
-
tumblingWindowInSeconds
@Stability(Stable) public CfnEventSourceMappingPropsMixin.Builder tumblingWindowInSeconds(Number tumblingWindowInSeconds) (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources.A value of 0 seconds indicates no tumbling window.
- Parameters:
tumblingWindowInSeconds- (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin>- Returns:
- a newly built instance of
CfnEventSourceMappingPropsMixin.
-