Class GenericLogDriverProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.GenericLogDriverProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GenericLogDriverProps>
- Enclosing interface:
GenericLogDriverProps
@Stability(Stable)
public static final class GenericLogDriverProps.Builder
extends Object
implements software.amazon.jsii.Builder<GenericLogDriverProps>
A builder for
GenericLogDriverProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofGenericLogDriverProps.getLogDriver()
Sets the value ofGenericLogDriverProps.getOptions()
secretOptions
(Map<String, ? extends Secret> secretOptions) Sets the value ofGenericLogDriverProps.getSecretOptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logDriver
Sets the value ofGenericLogDriverProps.getLogDriver()
- Parameters:
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 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.
- Returns:
this
-
options
Sets the value ofGenericLogDriverProps.getOptions()
- Parameters:
options
- The configuration options to send to the log driver.- Returns:
this
-
secretOptions
@Stability(Stable) public GenericLogDriverProps.Builder secretOptions(Map<String, ? extends Secret> secretOptions) Sets the value ofGenericLogDriverProps.getSecretOptions()
- Parameters:
secretOptions
- The secrets to pass to the log configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GenericLogDriverProps>
- Returns:
- a new instance of
GenericLogDriverProps
- Throws:
NullPointerException
- if any required attribute was not provided
-