Class CfnEventSourceMappingProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnEventSourceMappingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMappingProps>
- Enclosing interface:
CfnEventSourceMappingProps
@Stability(Stable)
public static final class CfnEventSourceMappingProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourceMappingProps>
A builder for
CfnEventSourceMappingProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamazonManagedKafkaEventSourceConfig(IResolvable amazonManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getAmazonManagedKafkaEventSourceConfig()amazonManagedKafkaEventSourceConfig(CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty amazonManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getAmazonManagedKafkaEventSourceConfig()Sets the value ofCfnEventSourceMappingProps.getBatchSize()bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError) Sets the value ofCfnEventSourceMappingProps.getBisectBatchOnFunctionError()bisectBatchOnFunctionError(IResolvable bisectBatchOnFunctionError) Sets the value ofCfnEventSourceMappingProps.getBisectBatchOnFunctionError()build()Builds the configured instance.destinationConfig(IResolvable destinationConfig) Sets the value ofCfnEventSourceMappingProps.getDestinationConfig()destinationConfig(CfnEventSourceMapping.DestinationConfigProperty destinationConfig) Sets the value ofCfnEventSourceMappingProps.getDestinationConfig()documentDbEventSourceConfig(IResolvable documentDbEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getDocumentDbEventSourceConfig()documentDbEventSourceConfig(CfnEventSourceMapping.DocumentDBEventSourceConfigProperty documentDbEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getDocumentDbEventSourceConfig()Sets the value ofCfnEventSourceMappingProps.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnEventSourceMappingProps.getEnabled()eventSourceArn(String eventSourceArn) Sets the value ofCfnEventSourceMappingProps.getEventSourceArn()filterCriteria(IResolvable filterCriteria) Sets the value ofCfnEventSourceMappingProps.getFilterCriteria()filterCriteria(CfnEventSourceMapping.FilterCriteriaProperty filterCriteria) Sets the value ofCfnEventSourceMappingProps.getFilterCriteria()functionName(String functionName) Sets the value ofCfnEventSourceMappingProps.getFunctionName()functionResponseTypes(List<String> functionResponseTypes) Sets the value ofCfnEventSourceMappingProps.getFunctionResponseTypes()Sets the value ofCfnEventSourceMappingProps.getKmsKeyArn()maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds) Sets the value ofCfnEventSourceMappingProps.getMaximumBatchingWindowInSeconds()maximumRecordAgeInSeconds(Number maximumRecordAgeInSeconds) Sets the value ofCfnEventSourceMappingProps.getMaximumRecordAgeInSeconds()maximumRetryAttempts(Number maximumRetryAttempts) Sets the value ofCfnEventSourceMappingProps.getMaximumRetryAttempts()metricsConfig(IResolvable metricsConfig) Sets the value ofCfnEventSourceMappingProps.getMetricsConfig()metricsConfig(CfnEventSourceMapping.MetricsConfigProperty metricsConfig) Sets the value ofCfnEventSourceMappingProps.getMetricsConfig()parallelizationFactor(Number parallelizationFactor) Sets the value ofCfnEventSourceMappingProps.getParallelizationFactor()provisionedPollerConfig(IResolvable provisionedPollerConfig) Sets the value ofCfnEventSourceMappingProps.getProvisionedPollerConfig()provisionedPollerConfig(CfnEventSourceMapping.ProvisionedPollerConfigProperty provisionedPollerConfig) Sets the value ofCfnEventSourceMappingProps.getProvisionedPollerConfig()Sets the value ofCfnEventSourceMappingProps.getQueues()scalingConfig(IResolvable scalingConfig) Sets the value ofCfnEventSourceMappingProps.getScalingConfig()scalingConfig(CfnEventSourceMapping.ScalingConfigProperty scalingConfig) Sets the value ofCfnEventSourceMappingProps.getScalingConfig()selfManagedEventSource(IResolvable selfManagedEventSource) Sets the value ofCfnEventSourceMappingProps.getSelfManagedEventSource()selfManagedEventSource(CfnEventSourceMapping.SelfManagedEventSourceProperty selfManagedEventSource) Sets the value ofCfnEventSourceMappingProps.getSelfManagedEventSource()selfManagedKafkaEventSourceConfig(IResolvable selfManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getSelfManagedKafkaEventSourceConfig()selfManagedKafkaEventSourceConfig(CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty selfManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getSelfManagedKafkaEventSourceConfig()sourceAccessConfigurations(List<? extends Object> sourceAccessConfigurations) Sets the value ofCfnEventSourceMappingProps.getSourceAccessConfigurations()sourceAccessConfigurations(IResolvable sourceAccessConfigurations) Sets the value ofCfnEventSourceMappingProps.getSourceAccessConfigurations()startingPosition(String startingPosition) Sets the value ofCfnEventSourceMappingProps.getStartingPosition()startingPositionTimestamp(Number startingPositionTimestamp) Sets the value ofCfnEventSourceMappingProps.getStartingPositionTimestamp()Sets the value ofCfnEventSourceMappingProps.getTags()Sets the value ofCfnEventSourceMappingProps.getTopics()tumblingWindowInSeconds(Number tumblingWindowInSeconds) Sets the value ofCfnEventSourceMappingProps.getTumblingWindowInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionName
Sets the value ofCfnEventSourceMappingProps.getFunctionName()- Parameters:
functionName- The name of the Lambda function. This parameter is required.- Returns:
this
-
amazonManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder amazonManagedKafkaEventSourceConfig(IResolvable amazonManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getAmazonManagedKafkaEventSourceConfig()- Parameters:
amazonManagedKafkaEventSourceConfig- Specific configuration settings for an MSK event source.- Returns:
this
-
amazonManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder amazonManagedKafkaEventSourceConfig(CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty amazonManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getAmazonManagedKafkaEventSourceConfig()- Parameters:
amazonManagedKafkaEventSourceConfig- Specific configuration settings for an MSK event source.- Returns:
this
-
batchSize
Sets the value ofCfnEventSourceMappingProps.getBatchSize()- Parameters:
batchSize- The maximum number of items to retrieve in a single batch.- Returns:
this
-
bisectBatchOnFunctionError
@Stability(Stable) public CfnEventSourceMappingProps.Builder bisectBatchOnFunctionError(Boolean bisectBatchOnFunctionError) Sets the value ofCfnEventSourceMappingProps.getBisectBatchOnFunctionError()- Parameters:
bisectBatchOnFunctionError- (Streams) If the function returns an error, split the batch in two and retry.- Returns:
this
-
bisectBatchOnFunctionError
@Stability(Stable) public CfnEventSourceMappingProps.Builder bisectBatchOnFunctionError(IResolvable bisectBatchOnFunctionError) Sets the value ofCfnEventSourceMappingProps.getBisectBatchOnFunctionError()- Parameters:
bisectBatchOnFunctionError- (Streams) If the function returns an error, split the batch in two and retry.- Returns:
this
-
destinationConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder destinationConfig(IResolvable destinationConfig) Sets the value ofCfnEventSourceMappingProps.getDestinationConfig()- Parameters:
destinationConfig- A configuration object that specifies the destination of an event after Lambda processes it.- Returns:
this
-
destinationConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder destinationConfig(CfnEventSourceMapping.DestinationConfigProperty destinationConfig) Sets the value ofCfnEventSourceMappingProps.getDestinationConfig()- Parameters:
destinationConfig- A configuration object that specifies the destination of an event after Lambda processes it.- Returns:
this
-
documentDbEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder documentDbEventSourceConfig(IResolvable documentDbEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getDocumentDbEventSourceConfig()- Parameters:
documentDbEventSourceConfig- Document db event source config.- Returns:
this
-
documentDbEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder documentDbEventSourceConfig(CfnEventSourceMapping.DocumentDBEventSourceConfigProperty documentDbEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getDocumentDbEventSourceConfig()- Parameters:
documentDbEventSourceConfig- Document db event source config.- Returns:
this
-
enabled
Sets the value ofCfnEventSourceMappingProps.getEnabled()- Parameters:
enabled- Disables the event source mapping to pause polling and invocation.- Returns:
this
-
enabled
Sets the value ofCfnEventSourceMappingProps.getEnabled()- Parameters:
enabled- Disables the event source mapping to pause polling and invocation.- Returns:
this
-
eventSourceArn
Sets the value ofCfnEventSourceMappingProps.getEventSourceArn()- Parameters:
eventSourceArn- The Amazon Resource Name (ARN) of the event source.- Returns:
this
-
filterCriteria
@Stability(Stable) public CfnEventSourceMappingProps.Builder filterCriteria(IResolvable filterCriteria) Sets the value ofCfnEventSourceMappingProps.getFilterCriteria()- Parameters:
filterCriteria- The filter criteria to control event filtering.- Returns:
this
-
filterCriteria
@Stability(Stable) public CfnEventSourceMappingProps.Builder filterCriteria(CfnEventSourceMapping.FilterCriteriaProperty filterCriteria) Sets the value ofCfnEventSourceMappingProps.getFilterCriteria()- Parameters:
filterCriteria- The filter criteria to control event filtering.- Returns:
this
-
functionResponseTypes
@Stability(Stable) public CfnEventSourceMappingProps.Builder functionResponseTypes(List<String> functionResponseTypes) Sets the value ofCfnEventSourceMappingProps.getFunctionResponseTypes()- Parameters:
functionResponseTypes- (Streams) A list of response types supported by the function.- Returns:
this
-
kmsKeyArn
Sets the value ofCfnEventSourceMappingProps.getKmsKeyArn()- Parameters:
kmsKeyArn- The Amazon Resource Name (ARN) of the KMS key.- Returns:
this
-
maximumBatchingWindowInSeconds
@Stability(Stable) public CfnEventSourceMappingProps.Builder maximumBatchingWindowInSeconds(Number maximumBatchingWindowInSeconds) Sets the value ofCfnEventSourceMappingProps.getMaximumBatchingWindowInSeconds()- Parameters:
maximumBatchingWindowInSeconds- (Streams) The maximum amount of time to gather records before invoking the function, in seconds.- Returns:
this
-
maximumRecordAgeInSeconds
@Stability(Stable) public CfnEventSourceMappingProps.Builder maximumRecordAgeInSeconds(Number maximumRecordAgeInSeconds) Sets the value ofCfnEventSourceMappingProps.getMaximumRecordAgeInSeconds()- Parameters:
maximumRecordAgeInSeconds- (Streams) The maximum age of a record that Lambda sends to a function for processing.- Returns:
this
-
maximumRetryAttempts
@Stability(Stable) public CfnEventSourceMappingProps.Builder maximumRetryAttempts(Number maximumRetryAttempts) Sets the value ofCfnEventSourceMappingProps.getMaximumRetryAttempts()- Parameters:
maximumRetryAttempts- (Streams) The maximum number of times to retry when the function returns an error.- Returns:
this
-
metricsConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder metricsConfig(IResolvable metricsConfig) Sets the value ofCfnEventSourceMappingProps.getMetricsConfig()- Parameters:
metricsConfig- Metrics config for Event Source Mapping Metrics.- Returns:
this
-
metricsConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder metricsConfig(CfnEventSourceMapping.MetricsConfigProperty metricsConfig) Sets the value ofCfnEventSourceMappingProps.getMetricsConfig()- Parameters:
metricsConfig- Metrics config for Event Source Mapping Metrics.- Returns:
this
-
parallelizationFactor
@Stability(Stable) public CfnEventSourceMappingProps.Builder parallelizationFactor(Number parallelizationFactor) Sets the value ofCfnEventSourceMappingProps.getParallelizationFactor()- Parameters:
parallelizationFactor- (Streams) The number of batches to process from each shard concurrently.- Returns:
this
-
provisionedPollerConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder provisionedPollerConfig(IResolvable provisionedPollerConfig) Sets the value ofCfnEventSourceMappingProps.getProvisionedPollerConfig()- Parameters:
provisionedPollerConfig- ProvisionedPollerConfig.- Returns:
this
-
provisionedPollerConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder provisionedPollerConfig(CfnEventSourceMapping.ProvisionedPollerConfigProperty provisionedPollerConfig) Sets the value ofCfnEventSourceMappingProps.getProvisionedPollerConfig()- Parameters:
provisionedPollerConfig- ProvisionedPollerConfig.- Returns:
this
-
queues
Sets the value ofCfnEventSourceMappingProps.getQueues()- Parameters:
queues- (ActiveMQ) A list of ActiveMQ queues.- Returns:
this
-
scalingConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder scalingConfig(IResolvable scalingConfig) Sets the value ofCfnEventSourceMappingProps.getScalingConfig()- Parameters:
scalingConfig- The scaling configuration for the event source.- Returns:
this
-
scalingConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder scalingConfig(CfnEventSourceMapping.ScalingConfigProperty scalingConfig) Sets the value ofCfnEventSourceMappingProps.getScalingConfig()- Parameters:
scalingConfig- The scaling configuration for the event source.- Returns:
this
-
selfManagedEventSource
@Stability(Stable) public CfnEventSourceMappingProps.Builder selfManagedEventSource(IResolvable selfManagedEventSource) Sets the value ofCfnEventSourceMappingProps.getSelfManagedEventSource()- Parameters:
selfManagedEventSource- The configuration used by AWS Lambda to access a self-managed event source.- Returns:
this
-
selfManagedEventSource
@Stability(Stable) public CfnEventSourceMappingProps.Builder selfManagedEventSource(CfnEventSourceMapping.SelfManagedEventSourceProperty selfManagedEventSource) Sets the value ofCfnEventSourceMappingProps.getSelfManagedEventSource()- Parameters:
selfManagedEventSource- The configuration used by AWS Lambda to access a self-managed event source.- Returns:
this
-
selfManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder selfManagedKafkaEventSourceConfig(IResolvable selfManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getSelfManagedKafkaEventSourceConfig()- Parameters:
selfManagedKafkaEventSourceConfig- Specific configuration settings for a Self-Managed Apache Kafka event source.- Returns:
this
-
selfManagedKafkaEventSourceConfig
@Stability(Stable) public CfnEventSourceMappingProps.Builder selfManagedKafkaEventSourceConfig(CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty selfManagedKafkaEventSourceConfig) Sets the value ofCfnEventSourceMappingProps.getSelfManagedKafkaEventSourceConfig()- Parameters:
selfManagedKafkaEventSourceConfig- Specific configuration settings for a Self-Managed Apache Kafka event source.- Returns:
this
-
sourceAccessConfigurations
@Stability(Stable) public CfnEventSourceMappingProps.Builder sourceAccessConfigurations(IResolvable sourceAccessConfigurations) Sets the value ofCfnEventSourceMappingProps.getSourceAccessConfigurations()- Parameters:
sourceAccessConfigurations- A list of SourceAccessConfiguration.- Returns:
this
-
sourceAccessConfigurations
@Stability(Stable) public CfnEventSourceMappingProps.Builder sourceAccessConfigurations(List<? extends Object> sourceAccessConfigurations) Sets the value ofCfnEventSourceMappingProps.getSourceAccessConfigurations()- Parameters:
sourceAccessConfigurations- A list of SourceAccessConfiguration.- Returns:
this
-
startingPosition
@Stability(Stable) public CfnEventSourceMappingProps.Builder startingPosition(String startingPosition) Sets the value ofCfnEventSourceMappingProps.getStartingPosition()- Parameters:
startingPosition- The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams sources.- Returns:
this
-
startingPositionTimestamp
@Stability(Stable) public CfnEventSourceMappingProps.Builder startingPositionTimestamp(Number startingPositionTimestamp) Sets the value ofCfnEventSourceMappingProps.getStartingPositionTimestamp()- Parameters:
startingPositionTimestamp- With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time seconds.- Returns:
this
-
tags
Sets the value ofCfnEventSourceMappingProps.getTags()- Parameters:
tags- A list of tags to apply to event source mapping resource.- Returns:
this
-
topics
Sets the value ofCfnEventSourceMappingProps.getTopics()- Parameters:
topics- (Kafka) A list of Kafka topics.- Returns:
this
-
tumblingWindowInSeconds
@Stability(Stable) public CfnEventSourceMappingProps.Builder tumblingWindowInSeconds(Number tumblingWindowInSeconds) Sets the value ofCfnEventSourceMappingProps.getTumblingWindowInSeconds()- Parameters:
tumblingWindowInSeconds- (Streams) Tumbling window (non-overlapping time window) duration to perform aggregations.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSourceMappingProps>- Returns:
- a new instance of
CfnEventSourceMappingProps - Throws:
NullPointerException- if any required attribute was not provided
-