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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45769c49514e23f08e324fd4bdf959c9fcc9564689e0c31fd31adff1cb3b0ac1 |
|
MD5 | 46ee2b65fea4d75fcf3b3248f47c7778 |
|
BLAKE2b-256 | 9c51a034e29d9fecb13d585b78e836e1a900d9d0ff2ea64b36b656dfe703ce5b |
Close
Hashes for aws_cdk.aws_lambda_destinations-1.21.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecf6823952f944573ea44be5d847a53db2b19b0a82f101f64046e27c8e91ab96 |
|
MD5 | 20d121681b3b834ab28170d6e45dbcc0 |
|
BLAKE2b-256 | c72ff49c8e83028eb8c8c2c7be36c4a4e44dda8aedda5539d77f16ce0c486b81 |