Class FireLensLogDriverProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.FireLensLogDriverProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FireLensLogDriverProps>
- Enclosing interface:
- FireLensLogDriverProps
@Stability(Stable)
public static final class FireLensLogDriverProps.Builder
extends Object
implements software.amazon.jsii.Builder<FireLensLogDriverProps>
A builder for
FireLensLogDriverProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofBaseLogDriverProps.getEnv()
Sets the value ofBaseLogDriverProps.getEnvRegex()
Sets the value ofBaseLogDriverProps.getLabels()
Sets the value ofFireLensLogDriverProps.getOptions()
secretOptions
(Map<String, ? extends Secret> secretOptions) Sets the value ofFireLensLogDriverProps.getSecretOptions()
Sets the value ofBaseLogDriverProps.getTag()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
options
Sets the value ofFireLensLogDriverProps.getOptions()
- Parameters:
options
- The configuration options to send to the log driver.- Returns:
this
-
secretOptions
@Stability(Stable) public FireLensLogDriverProps.Builder secretOptions(Map<String, ? extends Secret> secretOptions) Sets the value ofFireLensLogDriverProps.getSecretOptions()
- Parameters:
secretOptions
- The secrets to pass to the log configuration.- 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<FireLensLogDriverProps>
- Returns:
- a new instance of
FireLensLogDriverProps
- Throws:
NullPointerException
- if any required attribute was not provided
-