probeLambda

get_function_memory_size

Get the configured memory size of a lambda function

Activity as code

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

Typeprobe
Modulechaosaws.awslambda.probes
Nameget_function_memory_size
Returninteger

The returned memory size is specified in megabytes.

Usage

JSON

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

YAML

name: get-function-memory-size
provider:
  arguments:
    function_name: ""
  func: get_function_memory_size
  module: chaosaws.awslambda.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
function_namestringYesFunction NameName of the function
qualifierstringnullNoQualifier

Signature

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