@Stability(value=Experimental) public static final class FluentdLogDriverProps.Builder extends Object implements software.amazon.jsii.Builder<FluentdLogDriverProps>
FluentdLogDriverProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public FluentdLogDriverProps.Builder address(String address)
FluentdLogDriverProps.getAddress()address - By default, the logging driver connects to localhost:24224.
Supply the
address option to connect to a different address. tcp(default) and unix
sockets are supported.this@Stability(value=Experimental) public FluentdLogDriverProps.Builder asyncConnect(Boolean asyncConnect)
FluentdLogDriverProps.getAsyncConnect()asyncConnect - Docker connects to Fluentd in the background.
Messages are buffered until
the connection is established.this@Stability(value=Experimental) public FluentdLogDriverProps.Builder bufferLimit(Number bufferLimit)
FluentdLogDriverProps.getBufferLimit()bufferLimit - The amount of data to buffer before flushing to disk.this@Stability(value=Experimental) public FluentdLogDriverProps.Builder maxRetries(Number maxRetries)
FluentdLogDriverProps.getMaxRetries()maxRetries - The maximum number of retries.this@Stability(value=Experimental) public FluentdLogDriverProps.Builder retryWait(Duration retryWait)
FluentdLogDriverProps.getRetryWait()retryWait - How long to wait between retries.this@Stability(value=Experimental) public FluentdLogDriverProps.Builder subSecondPrecision(Boolean subSecondPrecision)
FluentdLogDriverProps.getSubSecondPrecision()subSecondPrecision - Generates event logs in nanosecond resolution.this@Stability(value=Experimental) public FluentdLogDriverProps.Builder env(List<String> env)
BaseLogDriverProps.getEnv()env - The env option takes an array of keys.
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.this@Stability(value=Experimental) public FluentdLogDriverProps.Builder envRegex(String envRegex)
BaseLogDriverProps.getEnvRegex()envRegex - The env-regex option is similar to and compatible with env.
Its value is a regular
expression to match logging-related environment variables. It is used for advanced
log tag options.this@Stability(value=Experimental) public FluentdLogDriverProps.Builder labels(List<String> labels)
BaseLogDriverProps.getLabels()labels - The labels option takes an array of keys.
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.this@Stability(value=Experimental) public FluentdLogDriverProps.Builder tag(String tag)
BaseLogDriverProps.getTag()tag - By default, Docker uses the first 12 characters of the container ID to tag log messages.
Refer to the log tag option documentation for customizing the
log tag format.this@Stability(value=Experimental) public FluentdLogDriverProps build()
build in interface software.amazon.jsii.Builder<FluentdLogDriverProps>FluentdLogDriverPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.