probeLambda

get_function_timeout

Get the configured timeout of a lambda function

Activity as code

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

Typeprobe
Modulechaosaws.awslambda.probes
Nameget_function_timeout
Returninteger

The returned timeout is specified in number of seconds.

Usage

JSON

{
  "name": "get-function-timeout",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosaws.awslambda.probes",
    "func": "get_function_timeout",
    "arguments": {
      "function_name": ""
    }
  }
}

YAML

name: get-function-timeout
provider:
  arguments:
    function_name: ""
  func: get_function_timeout
  module: chaosaws.awslambda.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
function_namestringYesFunction NameName of the function
qualifierstringnullNoQualifier

Signature

def get_function_timeout(function_name: str,
                         qualifier: str = None,
                         configuration: Dict[str, Dict[str, str]] = None,
                         secrets: Dict[str, Dict[str, str]] = None) -> int:
    pass