This an AWS CodePipeline execution state change detection event rule
npm install @gammarers/aws-codesuite-state-change-detection-event-rules
yarn add @gammarers/aws-codesuite-state-change-detection-event-rules
pnpm add @gammarers/aws-codesuite-state-change-detection-event-rules
bun add @gammarers/aws-codesuite-state-change-detection-event-rules
import { CodePipelineExecutionStateChangeDetectionEventRule } from '@gammarers/aws-codesuite-state-change-detection-event-rules';
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-rules',
targets: new targets.LambdaFunction(fn),
});
This project is licensed under the Apache-2.0 License.