# 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 at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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.CfnEventSourceMapping.DestinationConfigProperty = {
  onFailure: {
    destination: 'destination',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

destination_config_property = lambda.CfnEventSourceMapping.DestinationConfigProperty(
    on_failure=lambda.CfnEventSourceMapping.OnFailureProperty(
        destination="destination"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

DestinationConfigProperty destinationConfigProperty = DestinationConfigProperty.builder()
        .onFailure(OnFailureProperty.builder()
                .destination("destination")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var destinationConfigProperty = new DestinationConfigProperty {
    OnFailure = new OnFailureProperty {
        Destination = "destination"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

destinationConfigProperty := &DestinationConfigProperty{
	OnFailure: &OnFailureProperty{
		Destination: jsii.String("destination"),
	},
}
```

## Properties

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