Interface JsonFileLogDriverProps
- All Superinterfaces:
BaseLogDriverProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
JsonFileLogDriverProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:20.334Z")
@Stability(Stable)
public interface JsonFileLogDriverProps
extends software.amazon.jsii.JsiiSerializable, BaseLogDriverProps
Specifies the json-file log driver configuration options.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
JsonFileLogDriverProps jsonFileLogDriverProps = JsonFileLogDriverProps.builder()
.compress(false)
.env(List.of("env"))
.envRegex("envRegex")
.labels(List.of("labels"))
.maxFile(123)
.maxSize("maxSize")
.tag("tag")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forJsonFileLogDriverPropsstatic final classAn implementation forJsonFileLogDriverProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.ecs.BaseLogDriverProps
getEnv, getEnvRegex, getLabels, getTagMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCompress
Toggles compression for rotated logs.Default: - false
-
getMaxFile
The maximum number of log files that can be present.If rolling the logs creates excess files, the oldest file is removed. Only effective when max-size is also set. A positive integer.
Default: - 1
-
getMaxSize
The maximum size of the log before it is rolled.A positive integer plus a modifier representing the unit of measure (k, m, or g).
Default: - -1 (unlimited)
-
builder
- Returns:
- a
JsonFileLogDriverProps.BuilderofJsonFileLogDriverProps
-