Class FirelensOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.FirelensOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FirelensOptions>
- Enclosing interface:
FirelensOptions
@Stability(Stable)
public static final class FirelensOptions.Builder
extends Object
implements software.amazon.jsii.Builder<FirelensOptions>
A builder for
FirelensOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.configFileType
(FirelensConfigFileType configFileType) Sets the value ofFirelensOptions.getConfigFileType()
configFileValue
(String configFileValue) Sets the value ofFirelensOptions.getConfigFileValue()
enableEcsLogMetadata
(Boolean enableEcsLogMetadata) Sets the value ofinvalid @link
FirelensOptions#getEnableEcsLogMetadata
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configFileType
@Stability(Stable) public FirelensOptions.Builder configFileType(FirelensConfigFileType configFileType) Sets the value ofFirelensOptions.getConfigFileType()
- Parameters:
configFileType
- Custom configuration file, s3 or file. Both configFileType and configFileValue must be used together to define a custom configuration source.- Returns:
this
-
configFileValue
Sets the value ofFirelensOptions.getConfigFileValue()
- Parameters:
configFileValue
- Custom configuration file, S3 ARN or a file path Both configFileType and configFileValue must be used together to define a custom configuration source.- Returns:
this
-
enableEcsLogMetadata
@Stability(Stable) public FirelensOptions.Builder enableEcsLogMetadata(Boolean enableEcsLogMetadata) Sets the value ofinvalid @link
FirelensOptions#getEnableEcsLogMetadata
- Parameters:
enableEcsLogMetadata
- By default, Amazon ECS adds additional fields in your log entries that help identify the source of the logs. You can disable this action by setting enable-ecs-log-metadata to false.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FirelensOptions>
- Returns:
- a new instance of
FirelensOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-