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. 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.19.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78448bf9f612860374189fcd17de60ccb72e6d8b1079346b2b9fa01126c9dc91 |
|
MD5 | b98b3d4f0d7b6efc6ce6d9273212a500 |
|
BLAKE2b-256 | d9ad972c2febbcba8d364c727abb4690e70c5cac9b69b191587199391d600989 |
Close
Hashes for aws_cdk.aws_lambda_destinations-1.19.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f553f115ba3446373ac5628ffa6792be995f0d9b426dca7cf66fa0ed84908f8 |
|
MD5 | 2874cd29a0b5a891ae343b5d19ae7915 |
|
BLAKE2b-256 | 176da185df318490acfd3826fecc3fd76ec1e276e8855d01b6a31eaac24df144 |