@Stability(value=Stable) public static final class FireLensLogDriver.Builder extends Object implements software.amazon.jsii.Builder<FireLensLogDriver>
FireLensLogDriver
.Modifier and Type | Method and Description |
---|---|
FireLensLogDriver |
build() |
static FireLensLogDriver.Builder |
create() |
FireLensLogDriver.Builder |
env(List<String> env)
The env option takes an array of keys.
|
FireLensLogDriver.Builder |
envRegex(String envRegex)
The env-regex option is similar to and compatible with env.
|
FireLensLogDriver.Builder |
labels(List<String> labels)
The labels option takes an array of keys.
|
FireLensLogDriver.Builder |
options(Map<String,String> options)
The configuration options to send to the log driver.
|
FireLensLogDriver.Builder |
secretOptions(Map<String,? extends Secret> secretOptions)
The secrets to pass to the log configuration.
|
FireLensLogDriver.Builder |
tag(String tag)
By default, Docker uses the first 12 characters of the container ID to tag log messages.
|
@Stability(value=Stable) public static FireLensLogDriver.Builder create()
FireLensLogDriver.Builder
.@Stability(value=Stable) public FireLensLogDriver.Builder env(List<String> env)
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
env
- The env option takes an array of keys. This parameter is required.this
@Stability(value=Stable) public FireLensLogDriver.Builder envRegex(String envRegex)
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
envRegex
- The env-regex option is similar to and compatible with env. This parameter is required.this
@Stability(value=Stable) public FireLensLogDriver.Builder labels(List<String> labels)
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
labels
- The labels option takes an array of keys. This parameter is required.this
@Stability(value=Stable) public FireLensLogDriver.Builder tag(String tag)
Refer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID
tag
- By default, Docker uses the first 12 characters of the container ID to tag log messages. This parameter is required.this
@Stability(value=Stable) public FireLensLogDriver.Builder options(Map<String,String> options)
Default: - the log driver options
options
- The configuration options to send to the log driver. This parameter is required.this
@Stability(value=Stable) public FireLensLogDriver.Builder secretOptions(Map<String,? extends Secret> secretOptions)
Default: - No secret options provided.
secretOptions
- The secrets to pass to the log configuration. This parameter is required.this
@Stability(value=Stable) public FireLensLogDriver build()
build
in interface software.amazon.jsii.Builder<FireLensLogDriver>
Copyright © 2021. All rights reserved.