@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.449Z") @Stability(value=Stable) public abstract class AccessLog extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
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(software.constructs.Construct scope)
Called when the AccessLog type is initialized.
|
static AccessLog |
fromFilePath(String filePath)
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=Stable) protected AccessLog()
@Stability(value=Stable) @NotNull public static AccessLog fromFilePath(@NotNull String filePath)
Default: - no file based access logging
filePath - This parameter is required.@Stability(value=Stable) @NotNull public abstract AccessLogConfig bind(@NotNull software.constructs.Construct scope)
Can be used to enforce mutual exclusivity with future properties
scope - This parameter is required.Copyright © 2022. All rights reserved.