@gammarers/aws-codepipeline-execution-state-change-detection-event-rule
v1.2.11
Published
This is an AWS CodePipeline execution state change detection event catch rule.
Downloads
1,069
Readme
AWS CodePipeline Execution State Change Detection Event Rule
This an AWS CodePipeline execution state change detection event rule
Install
TypeScript
install by npm
npm install @gammarers/aws-codepipeline-execution-state-change-detection-event-rule
install by yarn
yarn add @gammarers/aws-codepipeline-execution-state-change-detection-event-rule
install by pnpm
pnpm add @gammarers/aws-codepipeline-execution-state-change-detection-event-rule
install by bun
bun add @gammarers/aws-codepipeline-execution-state-change-detection-event-rule
Example
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),
});
License
This project is licensed under the Apache-2.0 License.