This an AWS CodePipeline execution state change detection event rule
npm install @gammarers/aws-codepipeline-execution-state-change-detection-event-rule
yarn add @gammarers/aws-codepipeline-execution-state-change-detection-event-rule
pnpm add @gammarers/aws-codepipeline-execution-state-change-detection-event-rule
bun add @gammarers/aws-codepipeline-execution-state-change-detection-event-rule
import { CodePipelineExecutionStateChangeDetectionEventRule } from '@gammarers/aws-codepipeline-execution-state-change-detection-event-rule';
const fn = new lambda.Function(this, 'MyFunc', {
runtime: lambda.Runtime.NODEJS_LATEST,
handler: 'index.handler',
code: lambda.Code.fromInline(`exports.handler = handler.toString()`),
});
const rule = new CodePipelineExecutionStateChangeDetectionEventRule(stack, 'CodePipelineStateChangeDetectionEventRule', {
ruleName: 'example-codepipeline-state-change-detection-event-rule',
targets: new targets.LambdaFunction(fn),
});
This project is licensed under the Apache-2.0 License.