import { type CodePipelineCloudWatchPipelineEvent } from "https://deno.land/x/lambda@1.24.3/mod.ts";
CodePipeline CloudWatch Events https://docs.aws.amazon.com/codepipeline/latest/userguide/detect-state-changes-cloudwatch-events.html
The above CodePipelineEvent is when a lambda is invoked by a CodePipeline. These events are when you subscribe to CodePipeline events in CloudWatch.
Their documentation says that detail.version is a string, but it is actually an integer
Properties
detail: { pipeline: string; version: number; state: CodePipelineState; execution-id: string; }