Class CfnJobDefinition.FirelensConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.FirelensConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.FirelensConfigurationProperty>
- Enclosing interface:
CfnJobDefinition.FirelensConfigurationProperty
@Stability(Stable)
public static final class CfnJobDefinition.FirelensConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.FirelensConfigurationProperty>
A builder for
CfnJobDefinition.FirelensConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnJobDefinition.FirelensConfigurationProperty.getOptions()options(IResolvable options) Sets the value ofCfnJobDefinition.FirelensConfigurationProperty.getOptions()Sets the value ofCfnJobDefinition.FirelensConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnJobDefinition.FirelensConfigurationProperty.getType()- Parameters:
type- The log router to use. This parameter is required. The valid values arefluentdorfluentbit.- Returns:
this
-
options
@Stability(Stable) public CfnJobDefinition.FirelensConfigurationProperty.Builder options(Map<String, String> options) Sets the value ofCfnJobDefinition.FirelensConfigurationProperty.getOptions()- Parameters:
options- The options to use when configuring the log router. This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is"options":{"enable-ecs-log-metadata":"true|false","config-file-type:"s3|file","config-file-value":"arn:aws:s3:::mybucket/fluent.conf|filepath"}. For more information, see Creating a task definition that uses a FireLens configuration in the Amazon Elastic Container Service Developer Guide .- Returns:
this
-
options
@Stability(Stable) public CfnJobDefinition.FirelensConfigurationProperty.Builder options(IResolvable options) Sets the value ofCfnJobDefinition.FirelensConfigurationProperty.getOptions()- Parameters:
options- The options to use when configuring the log router. This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is"options":{"enable-ecs-log-metadata":"true|false","config-file-type:"s3|file","config-file-value":"arn:aws:s3:::mybucket/fluent.conf|filepath"}. For more information, see Creating a task definition that uses a FireLens configuration in the Amazon Elastic Container Service Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.FirelensConfigurationProperty>- Returns:
- a new instance of
CfnJobDefinition.FirelensConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-