@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.734Z") @Stability(value=Stable) public interface JsonFileLogDriverProps extends software.amazon.jsii.JsiiSerializable, BaseLogDriverProps
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
JsonFileLogDriverProps.Builder
A builder for
JsonFileLogDriverProps |
static class |
JsonFileLogDriverProps.Jsii$Proxy
An implementation for
JsonFileLogDriverProps |
| Modifier and Type | Method and Description |
|---|---|
static JsonFileLogDriverProps.Builder |
builder() |
default Boolean |
getCompress()
Toggles compression for rotated logs.
|
default Number |
getMaxFile()
The maximum number of log files that can be present.
|
default String |
getMaxSize()
The maximum size of the log before it is rolled.
|
getEnv, getEnvRegex, getLabels, getTag@Stability(value=Stable) @Nullable default Boolean getCompress()
Default: - false
@Stability(value=Stable) @Nullable default Number getMaxFile()
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
@Stability(value=Stable) @Nullable default String getMaxSize()
A positive integer plus a modifier representing the unit of measure (k, m, or g).
Default: - -1 (unlimited)
@Stability(value=Stable) static JsonFileLogDriverProps.Builder builder()
builder in interface BaseLogDriverPropsJsonFileLogDriverProps.Builder of JsonFileLogDriverPropsCopyright © 2022. All rights reserved.