Class EventSourceMappingArgs.Builder

  • Enclosing class:
    EventSourceMappingArgs

    public static final class EventSourceMappingArgs.Builder
    extends java.lang.Object
    • Method Detail

      • amazonManagedKafkaEventSourceConfig

        public EventSourceMappingArgs.Builder amazonManagedKafkaEventSourceConfig​(@Nullable
                                                                                  com.pulumi.core.Output<EventSourceMappingAmazonManagedKafkaEventSourceConfigArgs> amazonManagedKafkaEventSourceConfig)
        Parameters:
        amazonManagedKafkaEventSourceConfig - Additional configuration block for Amazon Managed Kafka sources. Incompatible with `selfManagedEventSource` and `selfManagedKafkaEventSourceConfig`. See below.
        Returns:
        builder
      • amazonManagedKafkaEventSourceConfig

        public EventSourceMappingArgs.Builder amazonManagedKafkaEventSourceConfig​(EventSourceMappingAmazonManagedKafkaEventSourceConfigArgs amazonManagedKafkaEventSourceConfig)
        Parameters:
        amazonManagedKafkaEventSourceConfig - Additional configuration block for Amazon Managed Kafka sources. Incompatible with `selfManagedEventSource` and `selfManagedKafkaEventSourceConfig`. See below.
        Returns:
        builder
      • batchSize

        public EventSourceMappingArgs.Builder batchSize​(@Nullable
                                                        com.pulumi.core.Output<java.lang.Integer> batchSize)
        Parameters:
        batchSize - Largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to `100` for DynamoDB, Kinesis, MQ and MSK, `10` for SQS.
        Returns:
        builder
      • batchSize

        public EventSourceMappingArgs.Builder batchSize​(java.lang.Integer batchSize)
        Parameters:
        batchSize - Largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to `100` for DynamoDB, Kinesis, MQ and MSK, `10` for SQS.
        Returns:
        builder
      • bisectBatchOnFunctionError

        public EventSourceMappingArgs.Builder bisectBatchOnFunctionError​(@Nullable
                                                                         com.pulumi.core.Output<java.lang.Boolean> bisectBatchOnFunctionError)
        Parameters:
        bisectBatchOnFunctionError - Whether to split the batch in two and retry if the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Defaults to `false`.
        Returns:
        builder
      • bisectBatchOnFunctionError

        public EventSourceMappingArgs.Builder bisectBatchOnFunctionError​(java.lang.Boolean bisectBatchOnFunctionError)
        Parameters:
        bisectBatchOnFunctionError - Whether to split the batch in two and retry if the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Defaults to `false`.
        Returns:
        builder
      • destinationConfig

        public EventSourceMappingArgs.Builder destinationConfig​(@Nullable
                                                                com.pulumi.core.Output<EventSourceMappingDestinationConfigArgs> destinationConfig)
        Parameters:
        destinationConfig - Amazon SQS queue, Amazon SNS topic or Amazon S3 bucket (only available for Kafka sources) destination for failed records. Only available for stream sources (DynamoDB and Kinesis) and Kafka sources (Amazon MSK and Self-managed Apache Kafka). See below.
        Returns:
        builder
      • destinationConfig

        public EventSourceMappingArgs.Builder destinationConfig​(EventSourceMappingDestinationConfigArgs destinationConfig)
        Parameters:
        destinationConfig - Amazon SQS queue, Amazon SNS topic or Amazon S3 bucket (only available for Kafka sources) destination for failed records. Only available for stream sources (DynamoDB and Kinesis) and Kafka sources (Amazon MSK and Self-managed Apache Kafka). See below.
        Returns:
        builder
      • enabled

        public EventSourceMappingArgs.Builder enabled​(@Nullable
                                                      com.pulumi.core.Output<java.lang.Boolean> enabled)
        Parameters:
        enabled - Whether the mapping is enabled. Defaults to `true`.
        Returns:
        builder
      • enabled

        public EventSourceMappingArgs.Builder enabled​(java.lang.Boolean enabled)
        Parameters:
        enabled - Whether the mapping is enabled. Defaults to `true`.
        Returns:
        builder
      • eventSourceArn

        public EventSourceMappingArgs.Builder eventSourceArn​(@Nullable
                                                             com.pulumi.core.Output<java.lang.String> eventSourceArn)
        Parameters:
        eventSourceArn - Event source ARN - required for Kinesis stream, DynamoDB stream, SQS queue, MQ broker, MSK cluster or DocumentDB change stream. Incompatible with Self Managed Kafka source.
        Returns:
        builder
      • eventSourceArn

        public EventSourceMappingArgs.Builder eventSourceArn​(java.lang.String eventSourceArn)
        Parameters:
        eventSourceArn - Event source ARN - required for Kinesis stream, DynamoDB stream, SQS queue, MQ broker, MSK cluster or DocumentDB change stream. Incompatible with Self Managed Kafka source.
        Returns:
        builder
      • filterCriteria

        public EventSourceMappingArgs.Builder filterCriteria​(@Nullable
                                                             com.pulumi.core.Output<EventSourceMappingFilterCriteriaArgs> filterCriteria)
        Parameters:
        filterCriteria - Criteria to use for [event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) Kinesis stream, DynamoDB stream, SQS queue event sources. See below.
        Returns:
        builder
      • filterCriteria

        public EventSourceMappingArgs.Builder filterCriteria​(EventSourceMappingFilterCriteriaArgs filterCriteria)
        Parameters:
        filterCriteria - Criteria to use for [event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) Kinesis stream, DynamoDB stream, SQS queue event sources. See below.
        Returns:
        builder
      • functionName

        public EventSourceMappingArgs.Builder functionName​(com.pulumi.core.Output<java.lang.String> functionName)
        Parameters:
        functionName - Name or ARN of the Lambda function that will be subscribing to events. The following arguments are optional:
        Returns:
        builder
      • functionName

        public EventSourceMappingArgs.Builder functionName​(java.lang.String functionName)
        Parameters:
        functionName - Name or ARN of the Lambda function that will be subscribing to events. The following arguments are optional:
        Returns:
        builder
      • functionResponseTypes

        public EventSourceMappingArgs.Builder functionResponseTypes​(@Nullable
                                                                    com.pulumi.core.Output<java.util.List<java.lang.String>> functionResponseTypes)
        Parameters:
        functionResponseTypes - List of current response type enums applied to the event source mapping for [AWS Lambda checkpointing](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-batchfailurereporting). Only available for SQS and stream sources (DynamoDB and Kinesis). Valid values: `ReportBatchItemFailures`.
        Returns:
        builder
      • functionResponseTypes

        public EventSourceMappingArgs.Builder functionResponseTypes​(java.util.List<java.lang.String> functionResponseTypes)
        Parameters:
        functionResponseTypes - List of current response type enums applied to the event source mapping for [AWS Lambda checkpointing](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-batchfailurereporting). Only available for SQS and stream sources (DynamoDB and Kinesis). Valid values: `ReportBatchItemFailures`.
        Returns:
        builder
      • functionResponseTypes

        public EventSourceMappingArgs.Builder functionResponseTypes​(java.lang.String... functionResponseTypes)
        Parameters:
        functionResponseTypes - List of current response type enums applied to the event source mapping for [AWS Lambda checkpointing](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-batchfailurereporting). Only available for SQS and stream sources (DynamoDB and Kinesis). Valid values: `ReportBatchItemFailures`.
        Returns:
        builder
      • kmsKeyArn

        public EventSourceMappingArgs.Builder kmsKeyArn​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> kmsKeyArn)
        Parameters:
        kmsKeyArn - ARN of the KMS customer managed key that Lambda uses to encrypt your function's filter criteria.
        Returns:
        builder
      • kmsKeyArn

        public EventSourceMappingArgs.Builder kmsKeyArn​(java.lang.String kmsKeyArn)
        Parameters:
        kmsKeyArn - ARN of the KMS customer managed key that Lambda uses to encrypt your function's filter criteria.
        Returns:
        builder
      • maximumBatchingWindowInSeconds

        public EventSourceMappingArgs.Builder maximumBatchingWindowInSeconds​(@Nullable
                                                                             com.pulumi.core.Output<java.lang.Integer> maximumBatchingWindowInSeconds)
        Parameters:
        maximumBatchingWindowInSeconds - Maximum amount of time to gather records before invoking the function, in seconds (between 0 and 300). Records will continue to buffer until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. For streaming event sources, defaults to as soon as records are available in the stream. Only available for stream sources (DynamoDB and Kinesis) and SQS standard queues.
        Returns:
        builder
      • maximumBatchingWindowInSeconds

        public EventSourceMappingArgs.Builder maximumBatchingWindowInSeconds​(java.lang.Integer maximumBatchingWindowInSeconds)
        Parameters:
        maximumBatchingWindowInSeconds - Maximum amount of time to gather records before invoking the function, in seconds (between 0 and 300). Records will continue to buffer until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. For streaming event sources, defaults to as soon as records are available in the stream. Only available for stream sources (DynamoDB and Kinesis) and SQS standard queues.
        Returns:
        builder
      • maximumRecordAgeInSeconds

        public EventSourceMappingArgs.Builder maximumRecordAgeInSeconds​(@Nullable
                                                                        com.pulumi.core.Output<java.lang.Integer> maximumRecordAgeInSeconds)
        Parameters:
        maximumRecordAgeInSeconds - Maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Must be either -1 (forever, and the default value) or between 60 and 604800 (inclusive).
        Returns:
        builder
      • maximumRecordAgeInSeconds

        public EventSourceMappingArgs.Builder maximumRecordAgeInSeconds​(java.lang.Integer maximumRecordAgeInSeconds)
        Parameters:
        maximumRecordAgeInSeconds - Maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Must be either -1 (forever, and the default value) or between 60 and 604800 (inclusive).
        Returns:
        builder
      • maximumRetryAttempts

        public EventSourceMappingArgs.Builder maximumRetryAttempts​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.Integer> maximumRetryAttempts)
        Parameters:
        maximumRetryAttempts - Maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of -1 (forever), maximum of 10000.
        Returns:
        builder
      • maximumRetryAttempts

        public EventSourceMappingArgs.Builder maximumRetryAttempts​(java.lang.Integer maximumRetryAttempts)
        Parameters:
        maximumRetryAttempts - Maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of -1 (forever), maximum of 10000.
        Returns:
        builder
      • metricsConfig

        public EventSourceMappingArgs.Builder metricsConfig​(@Nullable
                                                            com.pulumi.core.Output<EventSourceMappingMetricsConfigArgs> metricsConfig)
        Parameters:
        metricsConfig - CloudWatch metrics configuration of the event source. Only available for stream sources (DynamoDB and Kinesis) and SQS queues. See below.
        Returns:
        builder
      • parallelizationFactor

        public EventSourceMappingArgs.Builder parallelizationFactor​(@Nullable
                                                                    com.pulumi.core.Output<java.lang.Integer> parallelizationFactor)
        Parameters:
        parallelizationFactor - Number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10.
        Returns:
        builder
      • parallelizationFactor

        public EventSourceMappingArgs.Builder parallelizationFactor​(java.lang.Integer parallelizationFactor)
        Parameters:
        parallelizationFactor - Number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10.
        Returns:
        builder
      • provisionedPollerConfig

        public EventSourceMappingArgs.Builder provisionedPollerConfig​(@Nullable
                                                                      com.pulumi.core.Output<EventSourceMappingProvisionedPollerConfigArgs> provisionedPollerConfig)
        Parameters:
        provisionedPollerConfig - Event poller configuration for the event source. Only valid for Amazon MSK or self-managed Apache Kafka sources. See below.
        Returns:
        builder
      • queues

        public EventSourceMappingArgs.Builder queues​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> queues)
        Parameters:
        queues - Name of the Amazon MQ broker destination queue to consume. Only available for MQ sources. The list must contain exactly one queue name.
        Returns:
        builder
      • queues

        public EventSourceMappingArgs.Builder queues​(java.lang.String queues)
        Parameters:
        queues - Name of the Amazon MQ broker destination queue to consume. Only available for MQ sources. The list must contain exactly one queue name.
        Returns:
        builder
      • region

        public EventSourceMappingArgs.Builder region​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public EventSourceMappingArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • selfManagedEventSource

        public EventSourceMappingArgs.Builder selfManagedEventSource​(@Nullable
                                                                     com.pulumi.core.Output<EventSourceMappingSelfManagedEventSourceArgs> selfManagedEventSource)
        Parameters:
        selfManagedEventSource - For Self Managed Kafka sources, the location of the self managed cluster. If set, configuration must also include `sourceAccessConfiguration`. See below.
        Returns:
        builder
      • selfManagedKafkaEventSourceConfig

        public EventSourceMappingArgs.Builder selfManagedKafkaEventSourceConfig​(@Nullable
                                                                                com.pulumi.core.Output<EventSourceMappingSelfManagedKafkaEventSourceConfigArgs> selfManagedKafkaEventSourceConfig)
        Parameters:
        selfManagedKafkaEventSourceConfig - Additional configuration block for Self Managed Kafka sources. Incompatible with `eventSourceArn` and `amazonManagedKafkaEventSourceConfig`. See below.
        Returns:
        builder
      • sourceAccessConfigurations

        public EventSourceMappingArgs.Builder sourceAccessConfigurations​(@Nullable
                                                                         com.pulumi.core.Output<java.util.List<EventSourceMappingSourceAccessConfigurationArgs>> sourceAccessConfigurations)
        Parameters:
        sourceAccessConfigurations - For Self Managed Kafka sources, the access configuration for the source. If set, configuration must also include `selfManagedEventSource`. See below.
        Returns:
        builder
      • sourceAccessConfigurations

        public EventSourceMappingArgs.Builder sourceAccessConfigurations​(java.util.List<EventSourceMappingSourceAccessConfigurationArgs> sourceAccessConfigurations)
        Parameters:
        sourceAccessConfigurations - For Self Managed Kafka sources, the access configuration for the source. If set, configuration must also include `selfManagedEventSource`. See below.
        Returns:
        builder
      • sourceAccessConfigurations

        public EventSourceMappingArgs.Builder sourceAccessConfigurations​(EventSourceMappingSourceAccessConfigurationArgs... sourceAccessConfigurations)
        Parameters:
        sourceAccessConfigurations - For Self Managed Kafka sources, the access configuration for the source. If set, configuration must also include `selfManagedEventSource`. See below.
        Returns:
        builder
      • startingPosition

        public EventSourceMappingArgs.Builder startingPosition​(@Nullable
                                                               com.pulumi.core.Output<java.lang.String> startingPosition)
        Parameters:
        startingPosition - Position in the stream where AWS Lambda should start reading. Must be one of `AT_TIMESTAMP` (Kinesis only), `LATEST` or `TRIM_HORIZON` if getting events from Kinesis, DynamoDB, MSK or Self Managed Apache Kafka. Must not be provided if getting events from SQS. More information about these positions can be found in the [AWS DynamoDB Streams API Reference](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) and [AWS Kinesis API Reference](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType).
        Returns:
        builder
      • startingPosition

        public EventSourceMappingArgs.Builder startingPosition​(java.lang.String startingPosition)
        Parameters:
        startingPosition - Position in the stream where AWS Lambda should start reading. Must be one of `AT_TIMESTAMP` (Kinesis only), `LATEST` or `TRIM_HORIZON` if getting events from Kinesis, DynamoDB, MSK or Self Managed Apache Kafka. Must not be provided if getting events from SQS. More information about these positions can be found in the [AWS DynamoDB Streams API Reference](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) and [AWS Kinesis API Reference](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType).
        Returns:
        builder
      • startingPositionTimestamp

        public EventSourceMappingArgs.Builder startingPositionTimestamp​(@Nullable
                                                                        com.pulumi.core.Output<java.lang.String> startingPositionTimestamp)
        Parameters:
        startingPositionTimestamp - Timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of the data record which to start reading when using `startingPosition` set to `AT_TIMESTAMP`. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen.
        Returns:
        builder
      • startingPositionTimestamp

        public EventSourceMappingArgs.Builder startingPositionTimestamp​(java.lang.String startingPositionTimestamp)
        Parameters:
        startingPositionTimestamp - Timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of the data record which to start reading when using `startingPosition` set to `AT_TIMESTAMP`. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen.
        Returns:
        builder
      • tags

        public EventSourceMappingArgs.Builder tags​(@Nullable
                                                   com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the object. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public EventSourceMappingArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the object. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • topics

        public EventSourceMappingArgs.Builder topics​(@Nullable
                                                     com.pulumi.core.Output<java.util.List<java.lang.String>> topics)
        Parameters:
        topics - Name of the Kafka topics. Only available for MSK sources. A single topic name must be specified.
        Returns:
        builder
      • topics

        public EventSourceMappingArgs.Builder topics​(java.util.List<java.lang.String> topics)
        Parameters:
        topics - Name of the Kafka topics. Only available for MSK sources. A single topic name must be specified.
        Returns:
        builder
      • topics

        public EventSourceMappingArgs.Builder topics​(java.lang.String... topics)
        Parameters:
        topics - Name of the Kafka topics. Only available for MSK sources. A single topic name must be specified.
        Returns:
        builder
      • tumblingWindowInSeconds

        public EventSourceMappingArgs.Builder tumblingWindowInSeconds​(@Nullable
                                                                      com.pulumi.core.Output<java.lang.Integer> tumblingWindowInSeconds)
        Parameters:
        tumblingWindowInSeconds - Duration in seconds of a processing window for [AWS Lambda streaming analytics](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-windows). The range is between 1 second up to 900 seconds. Only available for stream sources (DynamoDB and Kinesis).
        Returns:
        builder
      • tumblingWindowInSeconds

        public EventSourceMappingArgs.Builder tumblingWindowInSeconds​(java.lang.Integer tumblingWindowInSeconds)
        Parameters:
        tumblingWindowInSeconds - Duration in seconds of a processing window for [AWS Lambda streaming analytics](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-windows). The range is between 1 second up to 900 seconds. Only available for stream sources (DynamoDB and Kinesis).
        Returns:
        builder
      • useResourceTimeoutForPropagation

        public EventSourceMappingArgs.Builder useResourceTimeoutForPropagation​(@Nullable
                                                                               com.pulumi.core.Output<java.lang.Boolean> useResourceTimeoutForPropagation)
        Parameters:
        useResourceTimeoutForPropagation - Whether to apply resource level timeout values while retrying eventually consistent API operations. By default the provider uses a 5 minute timeout to allow for propagation in the Lambda service. When set to `true`, this default value is replaced with the configurable resource timeouts. Increased timeout values may be useful in highly active accounts, or regions where propagation delays are inconsistent.
        Returns:
        builder
      • useResourceTimeoutForPropagation

        public EventSourceMappingArgs.Builder useResourceTimeoutForPropagation​(java.lang.Boolean useResourceTimeoutForPropagation)
        Parameters:
        useResourceTimeoutForPropagation - Whether to apply resource level timeout values while retrying eventually consistent API operations. By default the provider uses a 5 minute timeout to allow for propagation in the Lambda service. When set to `true`, this default value is replaced with the configurable resource timeouts. Increased timeout values may be useful in highly active accounts, or regions where propagation delays are inconsistent.
        Returns:
        builder