aws.lambda.invoke
The aws.lambda.invoke command is used to invoke an AWS Lambda function.
TR50 Request
{
"1":{
"command":"aws.lambda.invoke",
"params":{
"functionName":"TelitTest",
"replyType":"string",
"region":"us-east-1",
"async":false,
"payload":{"key1":"value1", "key2":"value2", "key3":"value3"}
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
functionName | String | Yes | The name of the AWS Lambda function that needs to be invoked. |
replyType | Object, String or base64 | The request must return any of the
following three types to get
processed.
|
|
region | String | Region of the AWS instance, For example, us-east-1 | |
async | bool | When set
to False, the
function will block until the response
is received and then it continues
execution. If set to True, there will be no reply. |
|
payload | JSON | JSON(data blob) that you want to provide to your Lambda function as input. |
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
TR50 Response
{
"cmd": {
"success": true
}
}