Class LoggingFormat
Configuration for Envoy Access Logging Format for mesh endpoints.
Inheritance
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class LoggingFormat : DeputyBase
Syntax (vb)
Public MustInherit Class LoggingFormat
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Mesh mesh;
Service service;
var node = new VirtualNode(this, "node", new VirtualNodeProps {
Mesh = mesh,
ServiceDiscovery = ServiceDiscovery.CloudMap(service),
Listeners = new [] { VirtualNodeListener.Http(new HttpVirtualNodeListenerOptions {
Port = 8080,
HealthCheck = HealthCheck.Http(new HttpHealthCheckOptions {
HealthyThreshold = 3,
Interval = Duration.Seconds(5),
Path = "/ping",
Timeout = Duration.Seconds(2),
UnhealthyThreshold = 2
}),
Timeout = new HttpTimeout {
Idle = Duration.Seconds(5)
}
}) },
BackendDefaults = new BackendDefaults {
TlsClientPolicy = new TlsClientPolicy {
Validation = new TlsValidation {
Trust = TlsValidationTrust.File("/keys/local_cert_chain.pem")
}
}
},
AccessLog = AccessLog.FromFilePath("/dev/stdout", LoggingFormat.FromJson(new Dictionary<string, string> { { "testKey1", "testValue1" }, { "testKey2", "testValue2" } }))
});
Synopsis
Constructors
LoggingFormat() | |
LoggingFormat(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LoggingFormat(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind() | Called when the Access Log Format is initialized. |
FromJson(IDictionary<String, String>) | Generate logging format from json key pairs. |
FromText(String) | Generate logging format from text pattern. |
Constructors
LoggingFormat()
protected LoggingFormat()
LoggingFormat(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LoggingFormat(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LoggingFormat(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LoggingFormat(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind()
Called when the Access Log Format is initialized.
public abstract ILoggingFormatConfig Bind()
Returns
Remarks
Can be used to enforce mutual exclusivity with future properties
FromJson(IDictionary<String, String>)
Generate logging format from json key pairs.
public static LoggingFormat FromJson(IDictionary<string, string> jsonLoggingFormat)
Parameters
- jsonLoggingFormat System.Collections.Generic.IDictionary<System.String, System.String>
Returns
FromText(String)
Generate logging format from text pattern.
public static LoggingFormat FromText(string text)
Parameters
- text System.String
Returns