actionLambda

put_function_concurrency

Throttles Lambda by setting reserved concurrency amount

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.awslambda.actions
Nameput_function_concurrency
Returnmapping

Usage

JSON

{
  "name": "put-function-concurrency",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.awslambda.actions",
    "func": "put_function_concurrency",
    "arguments": {
      "function_name": "",
      "concurrent_executions": 0
    }
  }
}

YAML

name: put-function-concurrency
provider:
  arguments:
    concurrent_executions: 0
    function_name: ""
  func: put_function_concurrency
  module: chaosaws.awslambda.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
function_namestringYesFunction NameName of the function
concurrent_executionsintegerYesConcurrencyNew execution concurrency set on the function

Signature

def put_function_concurrency(
        function_name: str,
        concurrent_executions: int,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass