Class AccessLog
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appmesh.AccessLog
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:34.110Z")
@Stability(Stable)
public abstract class AccessLog
extends software.amazon.jsii.JsiiObject
Configuration for Envoy Access logs for mesh endpoints.
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());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AccessLogConfigbind(software.constructs.Construct scope) Called when the AccessLog type is initialized.static AccessLogfromFilePath(String filePath) Path to a file to write access logs to.static AccessLogfromFilePath(String filePath, LoggingFormat loggingFormat) Path to a file to write access logs to.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AccessLog
protected AccessLog(software.amazon.jsii.JsiiObjectRef objRef) -
AccessLog
protected AccessLog(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AccessLog
@Stability(Stable) protected AccessLog()
-
-
Method Details
-
fromFilePath
@Stability(Stable) @NotNull public static AccessLog fromFilePath(@NotNull String filePath, @Nullable LoggingFormat loggingFormat) Path to a file to write access logs to.Default: - no file based access logging
- Parameters:
filePath- This parameter is required.loggingFormat-
-
fromFilePath
Path to a file to write access logs to.Default: - no file based access logging
- Parameters:
filePath- This parameter is required.
-
bind
@Stability(Stable) @NotNull public abstract AccessLogConfig bind(@NotNull software.constructs.Construct scope) Called when the AccessLog type is initialized.Can be used to enforce mutual exclusivity with future properties
- Parameters:
scope- This parameter is required.
-