AWS Lambda client used for automated testing.
Extends: LambdaClient
Description
The TestLambdaClient class allows you to create an AWS Lambda client that can be used for automated testing.
Constructors
Creates an instance of this class.
public
TestLambdaClient()
Instance methods
call
Calls a remote action in AWS Lambda function. The name of the action is added as “cmd” parameter to the action parameters.
public
T call(Class type, String cmd, IContext context, Map<String, Object> params) throws ApplicationException
- type: Class
- the class type of data. - cmd: String - action name to be called.
- context: IContext - (optional) a context to trace execution through a call chain.
- params: Map<String, Object> - (optional) action parameters.
- returns: <T> - action result.
callOneWay
Calls an AWS Lambda Function action asynchronously without waiting for the response.
public
callOneWay(Classtype, String cmd, IContext context, Map<String, Object> params) throws ApplicationException
- type: Class
- the class type of data. - cmd: String - action name to be called.
- context: IContext - (optional) a context to trace execution through a call chain.
- params: Map<String, Object> - (optional) action parameters.
- returns: <T> - action result.