CDK Destinations Constructs for AWS Lambda
Project description
Amazon Lambda Destinations Library
---This library provides constructs for adding destinations to a Lambda function.
Destinations can be added by specifying the onFailure
or onSuccess
props when creating a function or alias.
Destinations
The following destinations are supported
- Lambda function
- SQS queue
- SNS topic
- EventBridge event bus
Example with a SNS topic for sucessful invocations:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import aws_cdk.aws_lambda as lambda
import aws_cdk.aws_lambda_destinations as destinations
import aws_cdk.aws_sns as sns
my_topic = sns.Topic(self, "Topic")
my_fn = lambda.Function(self, "Fn",
# other props
on_success=destinations.SnsDestionation(my_topic)
)
See also Configuring Destinations for Asynchronous Invocation.
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
Built Distribution
Close
Hashes for aws-cdk.aws-lambda-destinations-1.20.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05af4be2548e3dea1fe26548218f35611772cb6c694d118bbefb1b019cdde842 |
|
MD5 | c5ef2692ce1a3536ccd8712006162903 |
|
BLAKE2b-256 | e053e0d07caba00bfe597193d247006d5391ef5e5e50d5936a768ff74089c76b |
Close
Hashes for aws_cdk.aws_lambda_destinations-1.20.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91c415123084c536983dc3fc8e97b800877aebb6af675ce6c7615312b12bd6b0 |
|
MD5 | 1d87ad1b9cd6d0c137df8e6a05308b95 |
|
BLAKE2b-256 | 8aead07a67d8550d4b0c0c2a5142a2c69fd42f0a6050dd47b19298664dcaf276 |