Skip to content
v2.275.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 ​

onFailureoptionalIResolvable | CfnEventInvokeConfig.OnFailurePropertyon_failureoptionaltyping.Union[IResolvable, OnFailureProperty]onFailureoptionalIResolvableOnFailureoptionalIResolvableOnFailureoptionalinterface{}#
The destination configuration for failed invocations.

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

onSuccessoptionalIResolvable | CfnEventInvokeConfig.OnSuccessPropertyon_successoptionaltyping.Union[IResolvable, OnSuccessProperty]onSuccessoptionalIResolvableOnSuccessoptionalIResolvableOnSuccessoptionalinterface{}#
The destination configuration for successful invocations.

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