Class CfnVirtualGateway.VirtualGatewayFileAccessLogProperty
An object that represents an access log file.
Inheritance
System.Object
CfnVirtualGateway.VirtualGatewayFileAccessLogProperty
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VirtualGatewayFileAccessLogProperty : Object, CfnVirtualGateway.IVirtualGatewayFileAccessLogProperty
Syntax (vb)
Public Class VirtualGatewayFileAccessLogProperty
Inherits Object
Implements CfnVirtualGateway.IVirtualGatewayFileAccessLogProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var virtualGatewayFileAccessLogProperty = new VirtualGatewayFileAccessLogProperty {
Path = "path",
// the properties below are optional
Format = new LoggingFormatProperty {
Json = new [] { new JsonFormatRefProperty {
Key = "key",
Value = "value"
} },
Text = "text"
}
};
Synopsis
Constructors
VirtualGatewayFileAccessLogProperty() |
Properties
Format | The specified format for the virtual gateway access logs. |
Path | The file path to write access logs to. |
Constructors
VirtualGatewayFileAccessLogProperty()
public VirtualGatewayFileAccessLogProperty()
Properties
Format
The specified format for the virtual gateway access logs.
public object Format { get; set; }
Property Value
System.Object
Remarks
It can be either json_format
or text_format
.
Path
The file path to write access logs to.
public string Path { get; set; }
Property Value
System.String
Remarks
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.