@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.575Z") @Stability(value=Stable) public interface BaseLogDriverProps extends software.amazon.jsii.JsiiSerializable
// 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.*;
BaseLogDriverProps baseLogDriverProps = BaseLogDriverProps.builder()
.env(List.of("env"))
.envRegex("envRegex")
.labels(List.of("labels"))
.tag("tag")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
BaseLogDriverProps.Builder
A builder for
BaseLogDriverProps |
static class |
BaseLogDriverProps.Jsii$Proxy
An implementation for
BaseLogDriverProps |
| Modifier and Type | Method and Description |
|---|---|
static BaseLogDriverProps.Builder |
builder() |
default List<String> |
getEnv()
The env option takes an array of keys.
|
default String |
getEnvRegex()
The env-regex option is similar to and compatible with env.
|
default List<String> |
getLabels()
The labels option takes an array of keys.
|
default String |
getTag()
By default, Docker uses the first 12 characters of the container ID to tag log messages.
|
@Stability(value=Stable) @Nullable default List<String> getEnv()
If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
Default: - No env
@Stability(value=Stable) @Nullable default String getEnvRegex()
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
@Stability(value=Stable) @Nullable default List<String> getLabels()
If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
Default: - No labels
@Stability(value=Stable) @Nullable default String getTag()
Refer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID
@Stability(value=Stable) static BaseLogDriverProps.Builder builder()
BaseLogDriverProps.Builder of BaseLogDriverPropsCopyright © 2022. All rights reserved.