# AccessLogConfig

All Properties for Envoy Access logs for mesh endpoints.

- Source: [`aws-appmesh/lib/shared-interfaces.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-appmesh/lib/shared-interfaces.ts#L100)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const accessLogConfig: appmesh.AccessLogConfig = {
  virtualGatewayAccessLog: {
    file: {
      path: 'path',

      // the properties below are optional
      format: {
        json: [{
          key: 'key',
          value: 'value',
        }],
        text: 'text',
      },
    },
  },
  virtualNodeAccessLog: {
    file: {
      path: 'path',

      // the properties below are optional
      format: {
        json: [{
          key: 'key',
          value: 'value',
        }],
        text: 'text',
      },
    },
  },
};
```

## Properties

- `virtualGatewayAccessLog`: [CfnVirtualGateway.VirtualGatewayAccessLogProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualGateway.VirtualGatewayAccessLogProperty.html) — VirtualGateway CFN configuration for Access Logging.

  **Default:** no access logging

- `virtualNodeAccessLog`: [CfnVirtualNode.AccessLogProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.AccessLogProperty.html) — VirtualNode CFN configuration for Access Logging.

  **Default:** no access logging
