# ConnectionLogOptionsProperty

Describes the client connection logging options for the Client VPN endpoint.

- Source: Generated code
- Type last changed: v2.275.0 · 26 Oct 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const connectionLogOptionsProperty: ec2.CfnClientVpnEndpoint.ConnectionLogOptionsProperty = {
  enabled: false,

  // the properties below are optional
  cloudwatchLogGroup: 'cloudwatchLogGroup',
  cloudwatchLogStream: 'cloudwatchLogStream',
  includeAuthorizationPolicyContext: false,
};
```

## Properties

- `cloudwatchLogGroup`: string — The name of the CloudWatch Logs log group.

  Required if connection logging is enabled.

- `cloudwatchLogStream`: string — The name of the CloudWatch Logs log stream to which the connection data is published.

- `enabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Indicates whether connection logging is enabled.

- `includeAuthorizationPolicyContext`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html)
