class
Amazonite::Lambda::UpdateEventSourceMappingRequest
- Amazonite::Lambda::UpdateEventSourceMappingRequest
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
lambda/update_event_source_mapping_request.crConstructors
- .new(pull : JSON::PullParser)
- .new(uuid : String, function_name : String | Nil = nil, enabled : Bool | Nil = nil, batch_size : Int32 | Nil = nil, filter_criteria : FilterCriteria | Nil = nil, kms_key_arn : String | Nil = nil, metrics_config : EventSourceMappingMetricsConfig | Nil = nil, logging_config : EventSourceMappingLoggingConfig | Nil = nil, scaling_config : ScalingConfig | Nil = nil, maximum_batching_window_in_seconds : Int32 | Nil = nil, parallelization_factor : Int32 | Nil = nil, destination_config : DestinationConfig | Nil = nil, maximum_record_age_in_seconds : Int32 | Nil = nil, bisect_batch_on_function_error : Bool | Nil = nil, maximum_retry_attempts : Int32 | Nil = nil, tumbling_window_in_seconds : Int32 | Nil = nil, source_access_configurations : Array(SourceAccessConfiguration) | Nil = nil, function_response_types : Array(FunctionResponseType) | Nil = nil, amazon_managed_kafka_event_source_config : AmazonManagedKafkaEventSourceConfig | Nil = nil, self_managed_kafka_event_source_config : SelfManagedKafkaEventSourceConfig | Nil = nil, document_db_event_source_config : DocumentDBEventSourceConfig | Nil = nil, provisioned_poller_config : ProvisionedPollerConfig | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. - #amazon_managed_kafka_event_source_config : AmazonManagedKafkaEventSourceConfig | Nil
- #amazon_managed_kafka_event_source_config=(amazon_managed_kafka_event_source_config : AmazonManagedKafkaEventSourceConfig | Nil)
-
#batch_size : Int32 | Nil
The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function.
-
#batch_size=(batch_size : Int32 | Nil)
The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function.
-
#bisect_batch_on_function_error : Bool | Nil
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry.
-
#bisect_batch_on_function_error=(bisect_batch_on_function_error : Bool | Nil)
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry.
-
#destination_config : DestinationConfig | Nil
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.
-
#destination_config=(destination_config : DestinationConfig | Nil)
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.
-
#document_db_event_source_config : DocumentDBEventSourceConfig | Nil
Specific configuration settings for a DocumentDB event source.
-
#document_db_event_source_config=(document_db_event_source_config : DocumentDBEventSourceConfig | Nil)
Specific configuration settings for a DocumentDB event source.
-
#enabled : Bool | Nil
When true, the event source mapping is active.
-
#enabled=(enabled : Bool | Nil)
When true, the event source mapping is active.
-
#filter_criteria : FilterCriteria | Nil
An object that defines the filter criteria that determine whether Lambda should process an event.
-
#filter_criteria=(filter_criteria : FilterCriteria | Nil)
An object that defines the filter criteria that determine whether Lambda should process an event.
-
#function_name : String | Nil
The name or ARN of the Lambda function.
-
#function_name=(function_name : String | Nil)
The name or ARN of the Lambda function.
-
#function_response_types : Array(FunctionResponseType) | Nil
(Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping.
-
#function_response_types=(function_response_types : Array(FunctionResponseType) | Nil)
(Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping.
-
#hash(hasher)
See
Object#hash(hasher) -
#kms_key_arn : String | Nil
The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's filter criteria.
-
#kms_key_arn=(kms_key_arn : String | Nil)
The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's filter criteria.
- #logging_config : EventSourceMappingLoggingConfig | Nil
- #logging_config=(logging_config : EventSourceMappingLoggingConfig | Nil)
-
#maximum_batching_window_in_seconds : Int32 | Nil
The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
-
#maximum_batching_window_in_seconds=(maximum_batching_window_in_seconds : Int32 | Nil)
The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
-
#maximum_record_age_in_seconds : Int32 | Nil
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age.
-
#maximum_record_age_in_seconds=(maximum_record_age_in_seconds : Int32 | Nil)
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age.
-
#maximum_retry_attempts : Int32 | Nil
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries.
-
#maximum_retry_attempts=(maximum_retry_attempts : Int32 | Nil)
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries.
-
#metrics_config : EventSourceMappingMetricsConfig | Nil
The metrics configuration for your event source.
-
#metrics_config=(metrics_config : EventSourceMappingMetricsConfig | Nil)
The metrics configuration for your event source.
-
#parallelization_factor : Int32 | Nil
(Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.
-
#parallelization_factor=(parallelization_factor : Int32 | Nil)
(Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.
-
#provisioned_poller_config : ProvisionedPollerConfig | Nil
(Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source.
-
#provisioned_poller_config=(provisioned_poller_config : ProvisionedPollerConfig | Nil)
(Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source.
-
#scaling_config : ScalingConfig | Nil
(Amazon SQS only) The scaling configuration for the event source.
-
#scaling_config=(scaling_config : ScalingConfig | Nil)
(Amazon SQS only) The scaling configuration for the event source.
- #self_managed_kafka_event_source_config : SelfManagedKafkaEventSourceConfig | Nil
- #self_managed_kafka_event_source_config=(self_managed_kafka_event_source_config : SelfManagedKafkaEventSourceConfig | Nil)
-
#source_access_configurations : Array(SourceAccessConfiguration) | Nil
An array of authentication protocols or VPC components required to secure your event source.
-
#source_access_configurations=(source_access_configurations : Array(SourceAccessConfiguration) | Nil)
An array of authentication protocols or VPC components required to secure your event source.
-
#tumbling_window_in_seconds : Int32 | Nil
(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources.
-
#tumbling_window_in_seconds=(tumbling_window_in_seconds : Int32 | Nil)
(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources.
-
#uuid : String
The identifier of the event source mapping.
-
#uuid=(uuid : String)
The identifier of the event source mapping.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
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.
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.
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry.
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) If the function returns an error, split the batch in two and retry.
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) A configuration object that specifies the destination of an event after Lambda processes it.
Specific configuration settings for a DocumentDB event source.
Specific configuration settings for a DocumentDB event source.
When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
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.
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.
(Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping.
(Kinesis, DynamoDB Streams, Amazon MSK, self-managed Apache Kafka, and Amazon SQS) A list of current response type enums applied to the event source mapping.
The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's filter criteria. By default, Lambda does not encrypt your filter criteria object. Specify this property to encrypt data using your own customer managed key.
The ARN of the Key Management Service (KMS) customer managed key that Lambda uses to encrypt your function's filter criteria. By default, Lambda does not encrypt your filter criteria object. Specify this property to encrypt data using your own customer managed key.
The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the
function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300
seconds in increments of seconds.
For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds.
For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default
batching window is 500 ms. Note that because you can only change
MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms
default batching window after you have changed it. To restore the default batching window, you
must create a new event source mapping.
Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set BatchSize
to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the
function. You can configure MaximumBatchingWindowInSeconds to any value from 0 seconds to 300
seconds in increments of seconds.
For Kinesis, DynamoDB, and Amazon SQS event sources, the default batching window is 0 seconds.
For Amazon MSK, Self-managed Apache Kafka, Amazon MQ, and DocumentDB event sources, the default
batching window is 500 ms. Note that because you can only change
MaximumBatchingWindowInSeconds in increments of seconds, you cannot revert back to the 500 ms
default batching window after you have changed it. To restore the default batching window, you
must create a new event source mapping.
Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources, when you set BatchSize
to a value greater than 10, you must set MaximumBatchingWindowInSeconds to at least 1.
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. The default value is infinite (-1).
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records older than the specified age. The default value is infinite (-1).
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
The metrics configuration for your event source. For more information, see Event source mapping metrics.
The metrics configuration for your event source. For more information, see Event source mapping metrics.
(Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.
(Kinesis and DynamoDB Streams only) The number of batches to process from each shard concurrently.
(Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. For more information, see provisioned mode.
(Amazon SQS, Amazon MSK, and self-managed Apache Kafka only) The provisioned mode configuration for the event source. For more information, see provisioned mode.
(Amazon SQS only) The scaling configuration for the event source. For more information, see Configuring maximum concurrency for Amazon SQS event sources.
(Amazon SQS only) The scaling configuration for the event source. For more information, see Configuring maximum concurrency for Amazon SQS event sources.
An array of authentication protocols or VPC components required to secure your event source.
An array of authentication protocols or VPC components required to secure your event source.
(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.
(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.