aws-cdk-lib.aws_appmesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty

interface VirtualGatewayFileAccessLogProperty

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnVirtualGateway_VirtualGatewayFileAccessLogProperty
Javasoftware.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty
Pythonaws_cdk.aws_appmesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty
TypeScript aws-cdk-lib » aws_appmesh » CfnVirtualGateway » VirtualGatewayFileAccessLogProperty

An object that represents an access log file.

Example

// 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 virtualGatewayFileAccessLogProperty: appmesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty = {
  path: 'path',

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

Properties

NameTypeDescription
pathstringThe file path to write access logs to.
format?IResolvable | LoggingFormatPropertyThe specified format for the virtual gateway access logs.

path

Type: string

The file path to write access logs to.

You can use /dev/stdout to send access logs to standard out and configure your Envoy container to use a log driver, such as awslogs , to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk.


format?

Type: IResolvable | LoggingFormatProperty (optional)

The specified format for the virtual gateway access logs.

It can be either json_format or text_format .