paws.compute (version 0.1.0)

lambda_update_event_source_mapping: Updates an event source mapping

Description

Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location.

Usage

lambda_update_event_source_mapping(UUID, FunctionName, Enabled,
  BatchSize)

Arguments

UUID

[required] The identifier of the event source mapping.

FunctionName

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.

Enabled

Disables the event source mapping to pause polling and invocation.

BatchSize

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. Max 10.

Request syntax

svc$update_event_source_mapping(
  UUID = "string",
  FunctionName = "string",
  Enabled = TRUE|FALSE,
  BatchSize = 123
)

Examples

Run this code
# NOT RUN {
# This operation updates a Lambda function event source mapping
# }
# NOT RUN {
svc$update_event_source_mapping(
  BatchSize = 123L,
  Enabled = TRUE,
  FunctionName = "myFunction",
  UUID = "1234xCy789012"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace