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 details)
Built Distribution
File details
Details for the file cdk-triggers-0.1.35.tar.gz
.
File metadata
- Download URL: cdk-triggers-0.1.35.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c427e176342f3c14ae01ab225812e3f3c0d63e3ffbe0785263719516d8cd3fb8 |
|
MD5 | 51a72f167ea0ac269bc3e0996ce8723d |
|
BLAKE2b-256 | 073ea45272ab738f96f3a7bcbd46b74bdc2ca9733b1404be538c133ba74186e5 |
File details
Details for the file cdk_triggers-0.1.35-py3-none-any.whl
.
File metadata
- Download URL: cdk_triggers-0.1.35-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3ee84786717f3536736d2bedaaf253227852f97ea796bab2e557f50b58203e |
|
MD5 | ed7497172ecc6ff6fda801caf84e9842 |
|
BLAKE2b-256 | c5a4791e7dd41a98dd413daf11bf785cca596fe6e230accdb959ac8964f5c9a5 |