import { AbstractServiceInvoker } from "./base";

const { STAGE } = process.env;

export class LambdaInvoker extends AbstractServiceInvoker {
  public resolveFunctionName(): string {
    return `openscript-${this.service}-${STAGE}-${this.func}`;
  }

  public resolvePayload(args) {
    return JSON.stringify(args);
  }
}
