AWS
get_function_memory_size
Get the configured memory size of a lambda function
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosaws.awslambda.actions |
Name | put_function_memory_size |
Return | mapping |
Usage
JSON
{
"name": "put-function-memory-size",
"type": "action",
"provider": {
"type": "python",
"module": "chaosaws.awslambda.actions",
"func": "put_function_memory_size",
"arguments": {
"function_name": "",
"memory_size": 0
}
}
}
YAML
name: put-function-memory-size
provider:
arguments:
function_name: ""
memory_size: 0
func: put_function_memory_size
module: chaosaws.awslambda.actions
type: python
type: action
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
function_name | string | Yes | Function Name | Name of the function | |
memory_size | integer | Yes | Memory Size | New memory size to set on the function |
Input memory_size argument is specified in megabytes.
Signature
def put_function_memory_size(
function_name: str,
memory_size: int,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass