@Stability(value=Experimental) public static final class LogDriverConfig.Builder extends Object implements software.amazon.jsii.Builder<LogDriverConfig>
LogDriverConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LogDriverConfig |
build()
Builds the configured instance.
|
LogDriverConfig.Builder |
logDriver(String logDriver)
Sets the value of
LogDriverConfig.getLogDriver() |
LogDriverConfig.Builder |
options(Map<String,String> options)
Sets the value of
LogDriverConfig.getOptions() |
@Stability(value=Experimental) public LogDriverConfig.Builder logDriver(String logDriver)
LogDriverConfig.getLogDriver()
logDriver
- The log driver to use for the container. This parameter is required.
The valid values listed for this parameter are log drivers
that the Amazon ECS container agent can communicate with by default.
For tasks using the Fargate launch type, the supported log drivers are awslogs, splunk, and awsfirelens. For tasks using the EC2 launch type, the supported log drivers are awslogs, fluentd, gelf, json-file, journald, logentries,syslog, splunk, and awsfirelens.
For more information about using the awslogs log driver, see Using the awslogs Log Driver in the Amazon Elastic Container Service Developer Guide.
For more information about using the awsfirelens log driver, see Custom Log Routing in the Amazon Elastic Container Service Developer Guide.
this
@Stability(value=Experimental) public LogDriverConfig.Builder options(Map<String,String> options)
LogDriverConfig.getOptions()
options
- The configuration options to send to the log driver.this
@Stability(value=Experimental) public LogDriverConfig build()
build
in interface software.amazon.jsii.Builder<LogDriverConfig>
LogDriverConfig
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.