Skip to content
v2.273.0

DestinationConfigProperty Struct ​

A configuration object that specifies the destination of an event after Lambda processes it.

For more information, see Adding a destination .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const destinationConfigProperty: lambda.CfnEventInvokeConfig.DestinationConfigProperty = {
  onFailure: {
    destination: 'destination',
  },
  onSuccess: {
    destination: 'destination',
  },
};

Properties ​

onFailureIResolvable | CfnEventInvokeConfig.OnFailurePropertyon_failuretyping.Union[IResolvable, OnFailureProperty]onFailureIResolvableOnFailureIResolvableOnFailureinterface{}#
The destination configuration for failed invocations.

When using an Amazon SQS queue as a destination, FIFO queues cannot be used.

onSuccessIResolvable | CfnEventInvokeConfig.OnSuccessPropertyon_successtyping.Union[IResolvable, OnSuccessProperty]onSuccessIResolvableOnSuccessIResolvableOnSuccessinterface{}#
The destination configuration for successful invocations.

When using an Amazon SQS queue as a destination, FIFO queues cannot be used.