# AccessLogDestinationConfig

Options when binding a log destination to a HttpApi Stage.

Returned by: [IAccessLogDestination.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.IAccessLogDestination.html#bind)

- Source: [`aws-apigatewayv2/lib/common/access-log.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/common/access-log.ts#L17)
- Type last changed: v2.190.0 · 17 Apr 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const accessLogDestinationConfig: apigatewayv2.AccessLogDestinationConfig = {
  destinationArn: 'destinationArn',
};
```

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_apigatewayv2 as apigatewayv2

access_log_destination_config = apigatewayv2.AccessLogDestinationConfig(
    destination_arn="destinationArn"
)
```

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

AccessLogDestinationConfig accessLogDestinationConfig = AccessLogDestinationConfig.builder()
        .destinationArn("destinationArn")
        .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.Apigatewayv2;

var accessLogDestinationConfig = new AccessLogDestinationConfig {
    DestinationArn = "destinationArn"
};
```

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"

accessLogDestinationConfig := &AccessLogDestinationConfig{
	DestinationArn: jsii.String("destinationArn"),
}
```

## Properties

- `destinationArn`: string (required) — The Amazon Resource Name (ARN) of the destination resource.
