Skip to content

Put Function Concurrency

lambda_put_function_concurrency R Documentation

Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level

Description

Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.

Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use get_function to see the current setting for a function.

Use get_account_settings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Lambda function scaling.

Usage

lambda_put_function_concurrency(FunctionName,
  ReservedConcurrentExecutions)

Arguments

FunctionName

[required] The name or ARN of the Lambda function.

Name formats

  • Function name⁠my-function⁠.

  • Function ARN⁠arn:aws:lambda:us-west-2:123456789012:function:my-function⁠.

  • Partial ARN⁠123456789012:function:my-function⁠.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

ReservedConcurrentExecutions

[required] The number of simultaneous executions to reserve for the function.

Value

A list with the following syntax:

list(
  ReservedConcurrentExecutions = 123
)

Request syntax

svc$put_function_concurrency(
  FunctionName = "string",
  ReservedConcurrentExecutions = 123
)