Interface JsonFileLogDriverProps
- All Superinterfaces:
BaseLogDriverProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
JsonFileLogDriverProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.409Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forJsonFileLogDriverProps
static final class
An implementation forJsonFileLogDriverProps
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.ecs.BaseLogDriverProps
getEnv, getEnvRegex, getLabels, getTag
Methods 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.Builder
ofJsonFileLogDriverProps
-