# DestinationConfigProperty

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

For more information, see [Adding a destination](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-retain-records.html#invocation-async-destinations) .

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

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

- `onFailure`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEventInvokeConfig.OnFailureProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnEventInvokeConfig.OnFailureProperty.html) — The destination configuration for failed invocations.

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

- `onSuccess`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEventInvokeConfig.OnSuccessProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnEventInvokeConfig.OnSuccessProperty.html) — The destination configuration for successful invocations.

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