# DestinationOptions

Options when binding a destination to a function.

- Source: [`aws-lambda/lib/destination.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-lambda/lib/destination.ts#L32)

## 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 destinationOptions: lambda.DestinationOptions = {
  type: lambda.DestinationType.FAILURE,
};
```

## Properties

- `type`: [DestinationType](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.DestinationType.html) (required) — The destination type.
