@Stability(value=Stable) public static final class GenericLogDriver.Builder extends Object implements software.amazon.jsii.Builder<GenericLogDriver>
GenericLogDriver.| Modifier and Type | Method and Description |
|---|---|
GenericLogDriver |
build() |
static GenericLogDriver.Builder |
create() |
GenericLogDriver.Builder |
logDriver(String logDriver)
The log driver to use for the container.
|
GenericLogDriver.Builder |
options(Map<String,String> options)
The configuration options to send to the log driver.
|
GenericLogDriver.Builder |
secretOptions(Map<String,? extends Secret> secretOptions)
The secrets to pass to the log configuration.
|
@Stability(value=Stable) public static GenericLogDriver.Builder create()
GenericLogDriver.Builder.@Stability(value=Stable) public GenericLogDriver.Builder logDriver(String logDriver)
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 and splunk. For tasks using the EC2 launch type, the supported log drivers are awslogs, syslog, gelf, fluentd, splunk, journald, and json-file.
For more information about using the awslogs log driver, see Using the awslogs Log Driver in the Amazon Elastic Container Service Developer Guide.
logDriver - The log driver to use for the container. This parameter is required.this@Stability(value=Stable) public GenericLogDriver.Builder options(Map<String,String> options)
Default: - the log driver options.
options - The configuration options to send to the log driver. This parameter is required.this@Stability(value=Stable) public GenericLogDriver.Builder secretOptions(Map<String,? extends Secret> secretOptions)
Default: - no secret options provided.
secretOptions - The secrets to pass to the log configuration. This parameter is required.this@Stability(value=Stable) public GenericLogDriver build()
build in interface software.amazon.jsii.Builder<GenericLogDriver>Copyright © 2022. All rights reserved.