actionLambda

put_function_timeout

Sets the function timeout

Activity as code

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

Typeaction
Modulechaosaws.awslambda.actions
Nameput_function_timeout
Returnmapping

Usage

JSON

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

YAML

name: put-function-timeout
provider:
  arguments:
    function_name: ""
    timeout: 0
  func: put_function_timeout
  module: chaosaws.awslambda.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
function_namestringYesFunction NameName of the function
timeoutintegerYesTimeoutNew timeout to set on function

The input timeout argument is specified in seconds.

Signature

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