AWS CodeSuite State Change Detection Event Rule
This an AWS CodePipeline execution state change detection event rule
Install
TypeScript
install by npm
npm install @gammarers/aws-codesuite-state-change-detection-event-rules
install by yarn
yarn add @gammarers/aws-codesuite-state-change-detection-event-rules
install by pnpm
pnpm add @gammarers/aws-codesuite-state-change-detection-event-rules
install by bun
bun add @gammarers/aws-codesuite-state-change-detection-event-rules
Example
CodePipeline Pipeline Execution State Change Detection Event Rule Handling
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),
});
CodePipeline Stage Execution State Chagen Detection Event Rule Handling
import { CodePipelineStageExecutionStateChangeDetectionEventRule } 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 CodePipelineStageExecutionStateChangeDetectionEventRule(stack, 'CodePipelineStageExecutionStateChangeDetectionEventRule', {
targets: new targets.LambdaFunction(fn),
});
License
This project is licensed under the Apache-2.0 License.