import { type CodePipelineCloudWatchPipelineEvent } from "https://deno.land/x/lambda@1.45.1/types.d.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; }