export async function startPipelineExecution()

in lib/apitools.ts [77:84]


export async function startPipelineExecution(pipeline: string): Promise<StartPipelineExecutionCommandOutput> {
  const client = new CodePipelineClient({ region: process.env.AWS_REGION });
  const input: StartPipelineExecutionCommandInput = { name: pipeline };
  const command = new StartPipelineExecutionCommand(input);

  const result = await client.send(command);
  return result;
}