aws lambda update-event-source-mapping

Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location. The following error handling options are only available for stream sources (DynamoDB and Kinesis): BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry. DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic. MaximumRecordAgeInSeconds - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires MaximumRetryAttempts - 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. ParallelizationFactor - Process multiple batches from each shard concurrently

Options

NameDescription
--uuid <string>The identifier of the event source mapping
--function-name <string>The name 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
--enabledIf true, the event source mapping is active. Set to false to pause polling and invocation
--no-enabledIf true, the event source mapping is active. Set to false to pause polling and invocation
--batch-size <integer>The maximum number of items to retrieve in a single batch. Amazon Kinesis - Default 100. Max 10,000. Amazon DynamoDB Streams - Default 100. Max 1,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
--maximum-batching-window-in-seconds <integer>(Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds
--destination-config <structure>(Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded records
--maximum-record-age-in-seconds <integer>(Streams) Discard records older than the specified age. The default value is infinite (-1)
--bisect-batch-on-function-error(Streams) If the function returns an error, split the batch in two and retry
--no-bisect-batch-on-function-error(Streams) If the function returns an error, split the batch in two and retry
--maximum-retry-attempts <integer>(Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires
--parallelization-factor <integer>(Streams) The number of batches to process from each shard concurrently
--source-access-configurations <list>An array of the authentication protocol, or the VPC components to secure your event source
--tumbling-window-in-seconds <integer>(Streams) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds
--function-response-types <list...>(Streams) A list of current response type enums applied to the event source mapping
--cli-input-json <string>Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally
--generate-cli-skeleton <string>Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command