Execute AWS Lambda handlers during deployments of AWS CDK stacks
Project description
CDK Triggers
This project has graduated from incubation and is now part of the AWS CDK. It is no longer maintained in this repository
Please refer to the official AWS CDK documentation:
Usage
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as triggers from 'aws-cdk-lib/triggers';
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';
declare const stack: Stack;
declare const resource1: Construct;
declare const resource2: Construct;
new triggers.TriggerFunction(stack, 'MyTrigger', {
runtime: lambda.Runtime.NODEJS_12_X,
handler: 'index.handler',
code: lambda.Code.fromAsset(__dirname + '/my-trigger'),
executeAfter: [resource1, resource2],
});
Security
See CONTRIBUTING for more information.
License
This project is licensed under the Apache-2.0 License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdk-triggers-0.1.35.tar.gz
(28.1 kB
view hashes)
Built Distribution
Close
Hashes for cdk_triggers-0.1.35-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3ee84786717f3536736d2bedaaf253227852f97ea796bab2e557f50b58203e |
|
MD5 | ed7497172ecc6ff6fda801caf84e9842 |
|
BLAKE2b-256 | c5a4791e7dd41a98dd413daf11bf785cca596fe6e230accdb959ac8964f5c9a5 |