Skip to main content

CDK Destinations Constructs for AWS Lambda

Project description

Amazon Lambda Destinations Library


Stability: Stable

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.


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
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

See also Configuring Destinations for Asynchronous Invocation.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for, version 1.21.1
Filename, size File type Python version Upload date Hashes
Filename, size aws_cdk.aws_lambda_destinations-1.21.1-py3-none-any.whl (22.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size (22.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page