@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:02.450Z") @Stability(value=Experimental) 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)
(experimental) Called when the AccessLog type is initialized.
|
static AccessLog |
fromFilePath(String filePath)
(experimental) Path to a file to write access logs to.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AccessLog(software.amazon.jsii.JsiiObjectRef objRef)
protected AccessLog(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected AccessLog()
@Stability(value=Experimental) @NotNull public static AccessLog fromFilePath(@NotNull String filePath)
Default: - no file based access logging
filePath - This parameter is required.@Stability(value=Experimental) @NotNull public abstract AccessLogConfig bind(@NotNull Construct scope)
Can be used to enforce mutual exclusivity with future properties
scope - This parameter is required.Copyright © 2022. All rights reserved.