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.21.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09784eff09994b70887015c174f0a70548187eeb3c2d3930673efb2946b8c956 |
|
MD5 | 47e4fdd9b43cb502d4d10adb31aa51f1 |
|
BLAKE2b-256 | 487ec9cc69369a65edcb81d37d189b1f8606893320fdecab60999f665e797a48 |
Close
Hashes for aws_cdk.aws_lambda_destinations-1.21.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e71a31a97577228ba90cb12c087510b0d7e2fd3d2c4d2d3dc3f90fe3eb2b4ad |
|
MD5 | 14b5b0616d0f3eca5b6d70ab43c1df12 |
|
BLAKE2b-256 | 53689dc8c5649c5c91e7277316eb9a6199bff839b502b01fd67e6d9fca3825d5 |