Class CfnEventSourceMappingMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMappingMixinProps>
- Enclosing interface:
CfnEventSourceMappingMixinProps
CfnEventSourceMappingMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamazonManagedKafkaEventSourceConfig(CfnEventSourceMappingPropsMixin.AmazonManagedKafkaEventSourceConfigProperty amazonManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getAmazonManagedKafkaEventSourceConfig()amazonManagedKafkaEventSourceConfig(IResolvable amazonManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getAmazonManagedKafkaEventSourceConfig()Sets the value ofCfnEventSourceMappingMixinProps.getBatchSize()bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError) Sets the value ofCfnEventSourceMappingMixinProps.getBisectBatchOnFunctionError()bisectBatchOnFunctionError(IResolvable bisectBatchOnFunctionError) Sets the value ofCfnEventSourceMappingMixinProps.getBisectBatchOnFunctionError()build()Builds the configured instance.destinationConfig(CfnEventSourceMappingPropsMixin.DestinationConfigProperty destinationConfig) Sets the value ofCfnEventSourceMappingMixinProps.getDestinationConfig()destinationConfig(IResolvable destinationConfig) Sets the value ofCfnEventSourceMappingMixinProps.getDestinationConfig()documentDbEventSourceConfig(CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty documentDbEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getDocumentDbEventSourceConfig()documentDbEventSourceConfig(IResolvable documentDbEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getDocumentDbEventSourceConfig()Sets the value ofCfnEventSourceMappingMixinProps.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnEventSourceMappingMixinProps.getEnabled()eventSourceArn(String eventSourceArn) Sets the value ofCfnEventSourceMappingMixinProps.getEventSourceArn()eventSourceArn(IStreamRef eventSourceArn) Sets the value ofCfnEventSourceMappingMixinProps.getEventSourceArn()eventSourceArn(IClusterRef eventSourceArn) Sets the value ofCfnEventSourceMappingMixinProps.getEventSourceArn()eventSourceArn(IQueueRef eventSourceArn) Sets the value ofCfnEventSourceMappingMixinProps.getEventSourceArn()filterCriteria(CfnEventSourceMappingPropsMixin.FilterCriteriaProperty filterCriteria) Sets the value ofCfnEventSourceMappingMixinProps.getFilterCriteria()filterCriteria(IResolvable filterCriteria) Sets the value ofCfnEventSourceMappingMixinProps.getFilterCriteria()functionName(String functionName) Sets the value ofCfnEventSourceMappingMixinProps.getFunctionName()functionName(IFunctionRef functionName) Sets the value ofCfnEventSourceMappingMixinProps.getFunctionName()functionName(IVersionRef functionName) Sets the value ofCfnEventSourceMappingMixinProps.getFunctionName()functionResponseTypes(List<String> functionResponseTypes) Sets the value ofCfnEventSourceMappingMixinProps.getFunctionResponseTypes()Sets the value ofCfnEventSourceMappingMixinProps.getKmsKeyArn()Sets the value ofCfnEventSourceMappingMixinProps.getLoggingConfig()loggingConfig(IResolvable loggingConfig) Sets the value ofCfnEventSourceMappingMixinProps.getLoggingConfig()maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds) Sets the value ofCfnEventSourceMappingMixinProps.getMaximumBatchingWindowInSeconds()maximumRecordAgeInSeconds(Number maximumRecordAgeInSeconds) Sets the value ofCfnEventSourceMappingMixinProps.getMaximumRecordAgeInSeconds()maximumRetryAttempts(Number maximumRetryAttempts) Sets the value ofCfnEventSourceMappingMixinProps.getMaximumRetryAttempts()Sets the value ofCfnEventSourceMappingMixinProps.getMetricsConfig()metricsConfig(IResolvable metricsConfig) Sets the value ofCfnEventSourceMappingMixinProps.getMetricsConfig()parallelizationFactor(Number parallelizationFactor) Sets the value ofCfnEventSourceMappingMixinProps.getParallelizationFactor()provisionedPollerConfig(CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty provisionedPollerConfig) Sets the value ofCfnEventSourceMappingMixinProps.getProvisionedPollerConfig()provisionedPollerConfig(IResolvable provisionedPollerConfig) Sets the value ofCfnEventSourceMappingMixinProps.getProvisionedPollerConfig()Sets the value ofCfnEventSourceMappingMixinProps.getQueues()Sets the value ofCfnEventSourceMappingMixinProps.getScalingConfig()scalingConfig(IResolvable scalingConfig) Sets the value ofCfnEventSourceMappingMixinProps.getScalingConfig()selfManagedEventSource(CfnEventSourceMappingPropsMixin.SelfManagedEventSourceProperty selfManagedEventSource) Sets the value ofCfnEventSourceMappingMixinProps.getSelfManagedEventSource()selfManagedEventSource(IResolvable selfManagedEventSource) Sets the value ofCfnEventSourceMappingMixinProps.getSelfManagedEventSource()selfManagedKafkaEventSourceConfig(CfnEventSourceMappingPropsMixin.SelfManagedKafkaEventSourceConfigProperty selfManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getSelfManagedKafkaEventSourceConfig()selfManagedKafkaEventSourceConfig(IResolvable selfManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getSelfManagedKafkaEventSourceConfig()sourceAccessConfigurations(List<? extends Object> sourceAccessConfigurations) Sets the value ofCfnEventSourceMappingMixinProps.getSourceAccessConfigurations()sourceAccessConfigurations(IResolvable sourceAccessConfigurations) Sets the value ofCfnEventSourceMappingMixinProps.getSourceAccessConfigurations()startingPosition(String startingPosition) Sets the value ofCfnEventSourceMappingMixinProps.getStartingPosition()startingPositionTimestamp(Number startingPositionTimestamp) Sets the value ofCfnEventSourceMappingMixinProps.getStartingPositionTimestamp()Sets the value ofCfnEventSourceMappingMixinProps.getTags()Sets the value ofCfnEventSourceMappingMixinProps.getTopics()tumblingWindowInSeconds(Number tumblingWindowInSeconds) Sets the value ofCfnEventSourceMappingMixinProps.getTumblingWindowInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amazonManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder amazonManagedKafkaEventSourceConfig(IResolvable amazonManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getAmazonManagedKafkaEventSourceConfig()- Parameters:
amazonManagedKafkaEventSourceConfig- Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.- Returns:
this
-
amazonManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder amazonManagedKafkaEventSourceConfig(CfnEventSourceMappingPropsMixin.AmazonManagedKafkaEventSourceConfigProperty amazonManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getAmazonManagedKafkaEventSourceConfig()- Parameters:
amazonManagedKafkaEventSourceConfig- Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.- Returns:
this
-
batchSize
Sets the value ofCfnEventSourceMappingMixinProps.getBatchSize()- Parameters:
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.
- Returns:
this
-
bisectBatchOnFunctionError
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError) Sets the value ofCfnEventSourceMappingMixinProps.getBisectBatchOnFunctionError()- Parameters:
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.- Returns:
this
-
bisectBatchOnFunctionError
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder bisectBatchOnFunctionError(IResolvable bisectBatchOnFunctionError) Sets the value ofCfnEventSourceMappingMixinProps.getBisectBatchOnFunctionError()- Parameters:
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.- Returns:
this
-
destinationConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder destinationConfig(IResolvable destinationConfig) Sets the value ofCfnEventSourceMappingMixinProps.getDestinationConfig()- 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.- Returns:
this
-
destinationConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder destinationConfig(CfnEventSourceMappingPropsMixin.DestinationConfigProperty destinationConfig) Sets the value ofCfnEventSourceMappingMixinProps.getDestinationConfig()- 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.- Returns:
this
-
documentDbEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder documentDbEventSourceConfig(IResolvable documentDbEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getDocumentDbEventSourceConfig()- Parameters:
documentDbEventSourceConfig- Specific configuration settings for a DocumentDB event source.- Returns:
this
-
documentDbEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder documentDbEventSourceConfig(CfnEventSourceMappingPropsMixin.DocumentDBEventSourceConfigProperty documentDbEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getDocumentDbEventSourceConfig()- Parameters:
documentDbEventSourceConfig- Specific configuration settings for a DocumentDB event source.- Returns:
this
-
enabled
Sets the value ofCfnEventSourceMappingMixinProps.getEnabled()- Parameters:
enabled- When true, the event source mapping is active. When false, Lambda pauses polling and invocation. Default: True- Returns:
this
-
enabled
Sets the value ofCfnEventSourceMappingMixinProps.getEnabled()- Parameters:
enabled- When true, the event source mapping is active. When false, Lambda pauses polling and invocation. Default: True- Returns:
this
-
eventSourceArn
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder eventSourceArn(String eventSourceArn) Sets the value ofCfnEventSourceMappingMixinProps.getEventSourceArn()- Parameters:
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.
- Returns:
this
-
eventSourceArn
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder eventSourceArn(IStreamRef eventSourceArn) Sets the value ofCfnEventSourceMappingMixinProps.getEventSourceArn()- Parameters:
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.
- Returns:
this
-
eventSourceArn
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder eventSourceArn(IClusterRef eventSourceArn) Sets the value ofCfnEventSourceMappingMixinProps.getEventSourceArn()- Parameters:
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.
- Returns:
this
-
eventSourceArn
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder eventSourceArn(IQueueRef eventSourceArn) Sets the value ofCfnEventSourceMappingMixinProps.getEventSourceArn()- Parameters:
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.
- Returns:
this
-
filterCriteria
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder filterCriteria(IResolvable filterCriteria) Sets the value ofCfnEventSourceMappingMixinProps.getFilterCriteria()- Parameters:
filterCriteria- An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering .- Returns:
this
-
filterCriteria
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder filterCriteria(CfnEventSourceMappingPropsMixin.FilterCriteriaProperty filterCriteria) Sets the value ofCfnEventSourceMappingMixinProps.getFilterCriteria()- Parameters:
filterCriteria- An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering .- Returns:
this
-
functionName
Sets the value ofCfnEventSourceMappingMixinProps.getFunctionName()- Parameters:
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.
- Function ARN –
- Returns:
this
-
functionName
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder functionName(IFunctionRef functionName) Sets the value ofCfnEventSourceMappingMixinProps.getFunctionName()- Parameters:
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.
- Function ARN –
- Returns:
this
-
functionName
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder functionName(IVersionRef functionName) Sets the value ofCfnEventSourceMappingMixinProps.getFunctionName()- Parameters:
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.
- Function ARN –
- Returns:
this
-
functionResponseTypes
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder functionResponseTypes(List<String> functionResponseTypes) Sets the value ofCfnEventSourceMappingMixinProps.getFunctionResponseTypes()- Parameters:
functionResponseTypes- (Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping. Valid Values:ReportBatchItemFailures- Returns:
this
-
kmsKeyArn
Sets the value ofCfnEventSourceMappingMixinProps.getKmsKeyArn()- Parameters:
kmsKeyArn- The ARN of the AWS Key Management Service ( AWS ) customer managed key that Lambda uses to encrypt your function's filter criteria .- Returns:
this
-
loggingConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder loggingConfig(IResolvable loggingConfig) Sets the value ofCfnEventSourceMappingMixinProps.getLoggingConfig()- Parameters:
loggingConfig- The function's Amazon CloudWatch Logs configuration settings.- Returns:
this
-
loggingConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder loggingConfig(CfnEventSourceMappingPropsMixin.LoggingConfigProperty loggingConfig) Sets the value ofCfnEventSourceMappingMixinProps.getLoggingConfig()- Parameters:
loggingConfig- The function's Amazon CloudWatch Logs configuration settings.- Returns:
this
-
maximumBatchingWindowInSeconds
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds) Sets the value ofCfnEventSourceMappingMixinProps.getMaximumBatchingWindowInSeconds()- Parameters:
maximumBatchingWindowInSeconds- The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. Default ( Kinesis , DynamoDB , Amazon SQS event sources) : 0Default ( 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.- Returns:
this
-
maximumRecordAgeInSeconds
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder maximumRecordAgeInSeconds(Number maximumRecordAgeInSeconds) Sets the value ofCfnEventSourceMappingMixinProps.getMaximumRecordAgeInSeconds()- Parameters:
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
- Returns:
this
-
maximumRetryAttempts
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder maximumRetryAttempts(Number maximumRetryAttempts) Sets the value ofCfnEventSourceMappingMixinProps.getMaximumRetryAttempts()- Parameters:
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.- Returns:
this
-
metricsConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder metricsConfig(IResolvable metricsConfig) Sets the value ofCfnEventSourceMappingMixinProps.getMetricsConfig()- Parameters:
metricsConfig- The metrics configuration for your event source. For more information, see Event source mapping metrics .- Returns:
this
-
metricsConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder metricsConfig(CfnEventSourceMappingPropsMixin.MetricsConfigProperty metricsConfig) Sets the value ofCfnEventSourceMappingMixinProps.getMetricsConfig()- Parameters:
metricsConfig- The metrics configuration for your event source. For more information, see Event source mapping metrics .- Returns:
this
-
parallelizationFactor
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder parallelizationFactor(Number parallelizationFactor) Sets the value ofCfnEventSourceMappingMixinProps.getParallelizationFactor()- Parameters:
parallelizationFactor- (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.- Returns:
this
-
provisionedPollerConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder provisionedPollerConfig(IResolvable provisionedPollerConfig) Sets the value ofCfnEventSourceMappingMixinProps.getProvisionedPollerConfig()- Parameters:
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 .- Returns:
this
-
provisionedPollerConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder provisionedPollerConfig(CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty provisionedPollerConfig) Sets the value ofCfnEventSourceMappingMixinProps.getProvisionedPollerConfig()- Parameters:
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 .- Returns:
this
-
queues
Sets the value ofCfnEventSourceMappingMixinProps.getQueues()- Parameters:
queues- (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.- Returns:
this
-
scalingConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder scalingConfig(IResolvable scalingConfig) Sets the value ofCfnEventSourceMappingMixinProps.getScalingConfig()- Parameters:
scalingConfig- This property is for Amazon SQS event sources only. You cannot useProvisionedPollerConfigwhile usingScalingConfig. These options are mutually exclusive. To remove the scaling configuration, pass an empty value.- Returns:
this
-
scalingConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder scalingConfig(CfnEventSourceMappingPropsMixin.ScalingConfigProperty scalingConfig) Sets the value ofCfnEventSourceMappingMixinProps.getScalingConfig()- Parameters:
scalingConfig- This property is for Amazon SQS event sources only. You cannot useProvisionedPollerConfigwhile usingScalingConfig. These options are mutually exclusive. To remove the scaling configuration, pass an empty value.- Returns:
this
-
selfManagedEventSource
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder selfManagedEventSource(IResolvable selfManagedEventSource) Sets the value ofCfnEventSourceMappingMixinProps.getSelfManagedEventSource()- Parameters:
selfManagedEventSource- The self-managed Apache Kafka cluster for your event source.- Returns:
this
-
selfManagedEventSource
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder selfManagedEventSource(CfnEventSourceMappingPropsMixin.SelfManagedEventSourceProperty selfManagedEventSource) Sets the value ofCfnEventSourceMappingMixinProps.getSelfManagedEventSource()- Parameters:
selfManagedEventSource- The self-managed Apache Kafka cluster for your event source.- Returns:
this
-
selfManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder selfManagedKafkaEventSourceConfig(IResolvable selfManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getSelfManagedKafkaEventSourceConfig()- Parameters:
selfManagedKafkaEventSourceConfig- Specific configuration settings for a self-managed Apache Kafka event source.- Returns:
this
-
selfManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder selfManagedKafkaEventSourceConfig(CfnEventSourceMappingPropsMixin.SelfManagedKafkaEventSourceConfigProperty selfManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingMixinProps.getSelfManagedKafkaEventSourceConfig()- Parameters:
selfManagedKafkaEventSourceConfig- Specific configuration settings for a self-managed Apache Kafka event source.- Returns:
this
-
sourceAccessConfigurations
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder sourceAccessConfigurations(IResolvable sourceAccessConfigurations) Sets the value ofCfnEventSourceMappingMixinProps.getSourceAccessConfigurations()- Parameters:
sourceAccessConfigurations- An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.- Returns:
this
-
sourceAccessConfigurations
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder sourceAccessConfigurations(List<? extends Object> sourceAccessConfigurations) Sets the value ofCfnEventSourceMappingMixinProps.getSourceAccessConfigurations()- Parameters:
sourceAccessConfigurations- An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.- Returns:
this
-
startingPosition
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder startingPosition(String startingPosition) Sets the value ofCfnEventSourceMappingMixinProps.getStartingPosition()- Parameters:
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.
- Returns:
this
-
startingPositionTimestamp
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder startingPositionTimestamp(Number startingPositionTimestamp) Sets the value ofCfnEventSourceMappingMixinProps.getStartingPositionTimestamp()- Parameters:
startingPositionTimestamp- WithStartingPositionset toAT_TIMESTAMP, the time from which to start reading, in Unix time seconds.StartingPositionTimestampcannot be in the future.- Returns:
this
-
tags
Sets the value ofCfnEventSourceMappingMixinProps.getTags()- Parameters:
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.- Returns:
this
-
topics
Sets the value ofCfnEventSourceMappingMixinProps.getTopics()- Parameters:
topics- The name of the Kafka topic.- Returns:
this
-
tumblingWindowInSeconds
@Stability(Stable) public CfnEventSourceMappingMixinProps.Builder tumblingWindowInSeconds(Number tumblingWindowInSeconds) Sets the value ofCfnEventSourceMappingMixinProps.getTumblingWindowInSeconds()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSourceMappingMixinProps>- Returns:
- a new instance of
CfnEventSourceMappingMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-