Class CfnTaskDefinition.FirelensConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.FirelensConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.FirelensConfigurationProperty>
- Enclosing interface:
CfnTaskDefinition.FirelensConfigurationProperty
@Stability(Stable)
public static final class CfnTaskDefinition.FirelensConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.FirelensConfigurationProperty>
A builder for
CfnTaskDefinition.FirelensConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTaskDefinition.FirelensConfigurationProperty.getOptions()
options
(IResolvable options) Sets the value ofCfnTaskDefinition.FirelensConfigurationProperty.getOptions()
Sets the value ofCfnTaskDefinition.FirelensConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
options
@Stability(Stable) public CfnTaskDefinition.FirelensConfigurationProperty.Builder options(IResolvable options) Sets the value ofCfnTaskDefinition.FirelensConfigurationProperty.getOptions()
- Parameters:
options
- The options to use when configuring the log router. This field is optional and can be used to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event.If specified, valid option keys are:
enable-ecs-log-metadata
, which can betrue
orfalse
config-file-type
, which can bes3
orfile
config-file-value
, which is either an S3 ARN or a file path
- Returns:
this
-
options
@Stability(Stable) public CfnTaskDefinition.FirelensConfigurationProperty.Builder options(Map<String, String> options) Sets the value ofCfnTaskDefinition.FirelensConfigurationProperty.getOptions()
- Parameters:
options
- The options to use when configuring the log router. This field is optional and can be used to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event.If specified, valid option keys are:
enable-ecs-log-metadata
, which can betrue
orfalse
config-file-type
, which can bes3
orfile
config-file-value
, which is either an S3 ARN or a file path
- Returns:
this
-
type
Sets the value ofCfnTaskDefinition.FirelensConfigurationProperty.getType()
- Parameters:
type
- The log router to use. The valid values arefluentd
orfluentbit
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.FirelensConfigurationProperty>
- Returns:
- a new instance of
CfnTaskDefinition.FirelensConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-