Lambda client

This page contains some example usage for Lambda. There are other resources that explain authentication and configuration.

The Lambda package could be installed with Composer.

composer require async-aws/lambda

Usage

Invoke a function

use AsyncAws\Lambda\LambdaClient; $lambda = new LambdaClient(); // Find the value for FunctionName here: // https://console.aws.amazon.com/lambda/home?region=us-east-1#/functions $result = $lambda->invoke([ 'FunctionName' => 'app-dev-hello_world', 'Payload' => '{"name": "async-aws/lambda"}', ]); echo $result->getPayload();