/** @module test */ import { LambdaClient } from "../clients/LambdaClient"; /** * AWS Lambda client used for automated testing. */ export class TestLambdaClient extends LambdaClient { public constructor() { super(); } /** * Calls a AWS Lambda Function action. * * @param cmd an action name to be called. * @param correlationId (optional) transaction id to trace execution through call chain. * @param params (optional) action parameters. * @return {any} action result. */ public async call(cmd: string, correlationId: string, params: any = {}): Promise { return super.call(cmd, correlationId, params); } /** * Calls a AWS Lambda Function action asynchronously without waiting for response. * * @param cmd an action name to be called. * @param correlationId (optional) transaction id to trace execution through call chain. * @param params (optional) action parameters. * @return {any} action result. */ public callOneWay(cmd: string, correlationId: string, params: any = {}): Promise { return super.callOneWay(cmd, correlationId, params); } }