Interface JsonFileLogDriverProps
- All Superinterfaces:
- BaseLogDriverProps,- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- JsonFileLogDriverProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:39.241Z")
@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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forJsonFileLogDriverPropsstatic final classAn implementation forJsonFileLogDriverProps
- 
Method SummaryMethods inherited from interface software.amazon.awscdk.services.ecs.BaseLogDriverPropsgetEnv, getEnvRegex, getLabels, getTagMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getCompressToggles compression for rotated logs.Default: - false 
- 
getMaxFileThe 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 
- 
getMaxSizeThe 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
 
 
-