Class GenericLogDriver.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.GenericLogDriver.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GenericLogDriver>
- Enclosing class:
GenericLogDriver
@Stability(Stable)
public static final class GenericLogDriver.Builder
extends Object
implements software.amazon.jsii.Builder<GenericLogDriver>
A fluent builder for
GenericLogDriver
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static GenericLogDriver.Builder
create()
The log driver to use for the container.The configuration options to send to the log driver.secretOptions
(Map<String, ? extends Secret> secretOptions) The secrets to pass to the log configuration.
-
Method Details
-
create
- Returns:
- a new instance of
GenericLogDriver.Builder
.
-
logDriver
The log driver to use for the container.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.
- Parameters:
logDriver
- The log driver to use for the container. This parameter is required.- Returns:
this
-
options
The configuration options to send to the log driver.Default: - the log driver options.
- Parameters:
options
- The configuration options to send to the log driver. This parameter is required.- Returns:
this
-
secretOptions
@Stability(Stable) public GenericLogDriver.Builder secretOptions(Map<String, ? extends Secret> secretOptions) The secrets to pass to the log configuration.Default: - no secret options provided.
- Parameters:
secretOptions
- The secrets to pass to the log configuration. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GenericLogDriver>
- Returns:
- a newly built instance of
GenericLogDriver
.
-