# DestinationOptions

Options when binding a destination to a function.

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

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

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_options = lambda.DestinationOptions(
    type=lambda_.DestinationType.FAILURE
)
```

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.*;

DestinationOptions destinationOptions = DestinationOptions.builder()
        .type(DestinationType.FAILURE)
        .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 destinationOptions = new DestinationOptions {
    Type = DestinationType.FAILURE
};
```

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"

destinationOptions := &DestinationOptions{
	Type: awscdk.Aws_lambda.DestinationType_FAILURE,
}
```

## Properties

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