Class FluentdLogDriverProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.FluentdLogDriverProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FluentdLogDriverProps>
- Enclosing interface:
FluentdLogDriverProps
@Stability(Stable)
public static final class FluentdLogDriverProps.Builder
extends Object
implements software.amazon.jsii.Builder<FluentdLogDriverProps>
A builder for
FluentdLogDriverProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofFluentdLogDriverProps.getAddress()
asyncConnect
(Boolean asyncConnect) Sets the value ofFluentdLogDriverProps.getAsyncConnect()
bufferLimit
(Number bufferLimit) Sets the value ofFluentdLogDriverProps.getBufferLimit()
build()
Builds the configured instance.Sets the value ofBaseLogDriverProps.getEnv()
Sets the value ofBaseLogDriverProps.getEnvRegex()
Sets the value ofBaseLogDriverProps.getLabels()
maxRetries
(Number maxRetries) Sets the value ofFluentdLogDriverProps.getMaxRetries()
Sets the value ofFluentdLogDriverProps.getRetryWait()
subSecondPrecision
(Boolean subSecondPrecision) Sets the value ofFluentdLogDriverProps.getSubSecondPrecision()
Sets the value ofBaseLogDriverProps.getTag()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
Sets the value ofFluentdLogDriverProps.getAddress()
- Parameters:
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.- Returns:
this
-
asyncConnect
Sets the value ofFluentdLogDriverProps.getAsyncConnect()
- Parameters:
asyncConnect
- Docker connects to Fluentd in the background. Messages are buffered until the connection is established.- Returns:
this
-
bufferLimit
Sets the value ofFluentdLogDriverProps.getBufferLimit()
- Parameters:
bufferLimit
- The amount of data to buffer before flushing to disk.- Returns:
this
-
maxRetries
Sets the value ofFluentdLogDriverProps.getMaxRetries()
- Parameters:
maxRetries
- The maximum number of retries.- Returns:
this
-
retryWait
Sets the value ofFluentdLogDriverProps.getRetryWait()
- Parameters:
retryWait
- How long to wait between retries.- Returns:
this
-
subSecondPrecision
@Stability(Stable) public FluentdLogDriverProps.Builder subSecondPrecision(Boolean subSecondPrecision) Sets the value ofFluentdLogDriverProps.getSubSecondPrecision()
- Parameters:
subSecondPrecision
- Generates event logs in nanosecond resolution.- Returns:
this
-
env
Sets the value ofBaseLogDriverProps.getEnv()
- Parameters:
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.- Returns:
this
-
envRegex
Sets the value ofBaseLogDriverProps.getEnvRegex()
- Parameters:
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.- Returns:
this
-
labels
Sets the value ofBaseLogDriverProps.getLabels()
- Parameters:
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.- Returns:
this
-
tag
Sets the value ofBaseLogDriverProps.getTag()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FluentdLogDriverProps>
- Returns:
- a new instance of
FluentdLogDriverProps
- Throws:
NullPointerException
- if any required attribute was not provided
-