AccessLogConfig Struct
All Properties for Envoy Access logs for mesh endpoints.
| Source | aws-appmesh/lib/shared-interfaces.ts |
|---|
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',
},
},
},
};
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_appmesh as appmesh
access_log_config = appmesh.AccessLogConfig(
virtual_gateway_access_log=appmesh.CfnVirtualGateway.VirtualGatewayAccessLogProperty(
file=appmesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty(
path="path",
# the properties below are optional
format=appmesh.CfnVirtualGateway.LoggingFormatProperty(
json=[appmesh.CfnVirtualGateway.JsonFormatRefProperty(
key="key",
value="value"
)],
text="text"
)
)
),
virtual_node_access_log=appmesh.CfnVirtualNode.AccessLogProperty(
file=appmesh.CfnVirtualNode.FileAccessLogProperty(
path="path",
# the properties below are optional
format=appmesh.CfnVirtualNode.LoggingFormatProperty(
json=[appmesh.CfnVirtualNode.JsonFormatRefProperty(
key="key",
value="value"
)],
text="text"
)
)
)
)
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.appmesh.*;
AccessLogConfig accessLogConfig = AccessLogConfig.builder()
.virtualGatewayAccessLog(VirtualGatewayAccessLogProperty.builder()
.file(VirtualGatewayFileAccessLogProperty.builder()
.path("path")
// the properties below are optional
.format(LoggingFormatProperty.builder()
.json(List.of(JsonFormatRefProperty.builder()
.key("key")
.value("value")
.build()))
.text("text")
.build())
.build())
.build())
.virtualNodeAccessLog(AccessLogProperty.builder()
.file(FileAccessLogProperty.builder()
.path("path")
// the properties below are optional
.format(LoggingFormatProperty.builder()
.json(List.of(JsonFormatRefProperty.builder()
.key("key")
.value("value")
.build()))
.text("text")
.build())
.build())
.build())
.build();
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.AppMesh;
var accessLogConfig = new AccessLogConfig {
VirtualGatewayAccessLog = new VirtualGatewayAccessLogProperty {
File = new VirtualGatewayFileAccessLogProperty {
Path = "path",
// the properties below are optional
Format = new LoggingFormatProperty {
Json = new [] { new JsonFormatRefProperty {
Key = "key",
Value = "value"
} },
Text = "text"
}
}
},
VirtualNodeAccessLog = new AccessLogProperty {
File = new FileAccessLogProperty {
Path = "path",
// the properties below are optional
Format = new LoggingFormatProperty {
Json = new [] { new JsonFormatRefProperty {
Key = "key",
Value = "value"
} },
Text = "text"
}
}
}
};
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"
accessLogConfig := &AccessLogConfig{
VirtualGatewayAccessLog: &VirtualGatewayAccessLogProperty{
File: &VirtualGatewayFileAccessLogProperty{
Path: jsii.String("path"),
// the properties below are optional
Format: &LoggingFormatProperty{
Json: []interface{}{
&JsonFormatRefProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
Text: jsii.String("text"),
},
},
},
VirtualNodeAccessLog: &AccessLogProperty{
File: &FileAccessLogProperty{
Path: jsii.String("path"),
// the properties below are optional
Format: &LoggingFormatProperty{
Json: []interface{}{
&JsonFormatRefProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
Text: jsii.String("text"),
},
},
},
}
Properties
virtualGatewayAccessLogoptionalCfnVirtualGateway.virtual_gateway_access_logoptionalVirtualGatewayAccessLogPropertyvirtualGatewayAccessLogoptionalVirtualGatewayAccessLogPropertyVirtualGatewayAccessLogoptionalVirtualGatewayAccessLogPropertyVirtualGatewayAccessLogoptionalVirtualGatewayAccessLogProperty #VirtualGateway CFN configuration for Access Logging.
Default: no access logging
virtualNodeAccessLogoptionalCfnVirtualNode.AccessLogPropertyvirtual_node_access_logoptionalAccessLogPropertyvirtualNodeAccessLogoptionalAccessLogPropertyVirtualNodeAccessLogoptionalAccessLogPropertyVirtualNodeAccessLogoptionalAccessLogProperty #VirtualNode CFN configuration for Access Logging.
Default: no access logging