@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-28T21:34:27.539Z")
public abstract class AccessLog
extends software.amazon.jsii.JsiiObject
Example:
Mesh mesh; Vpc vpc = new Vpc(this, "vpc"); PrivateDnsNamespace namespace = PrivateDnsNamespace.Builder.create(this, "test-namespace") .vpc(vpc) .name("domain.local") .build(); Service service = namespace.createService("Svc"); VirtualNode node = mesh.addVirtualNode("virtual-node", VirtualNodeBaseProps.builder() .serviceDiscovery(ServiceDiscovery.cloudMap(service)) .listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder() .port(8081) .healthCheck(HealthCheck.http(HttpHealthCheckOptions.builder() .healthyThreshold(3) .interval(Duration.seconds(5)) // minimum .path("/health-check-path") .timeout(Duration.seconds(2)) // minimum .unhealthyThreshold(2) .build())) .build()))) .accessLog(AccessLog.fromFilePath("/dev/stdout")) .build());
Modifier | Constructor and Description |
---|---|
protected |
AccessLog() |
protected |
AccessLog(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AccessLog(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
abstract AccessLogConfig |
bind(Construct scope)
Called when the AccessLog type is initialized.
|
static AccessLog |
fromFilePath(java.lang.String filePath)
Path to a file to write access logs to.
|
protected AccessLog(software.amazon.jsii.JsiiObjectRef objRef)
protected AccessLog(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected AccessLog()
public static AccessLog fromFilePath(java.lang.String filePath)
Default: - no file based access logging
filePath
- This parameter is required.public abstract AccessLogConfig bind(Construct scope)
Can be used to enforce mutual exclusivity with future properties
scope
- This parameter is required.