@Stability(value=Stable) public static final class GenericLogDriverProps.Builder extends Object implements software.amazon.jsii.Builder<GenericLogDriverProps>
GenericLogDriverProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GenericLogDriverProps |
build()
Builds the configured instance.
|
GenericLogDriverProps.Builder |
logDriver(String logDriver)
Sets the value of
GenericLogDriverProps.getLogDriver() |
GenericLogDriverProps.Builder |
options(Map<String,String> options)
Sets the value of
GenericLogDriverProps.getOptions() |
GenericLogDriverProps.Builder |
secretOptions(Map<String,? extends Secret> secretOptions)
Sets the value of
GenericLogDriverProps.getSecretOptions() |
@Stability(value=Stable) public GenericLogDriverProps.Builder logDriver(String logDriver)
GenericLogDriverProps.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 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.
this
@Stability(value=Stable) public GenericLogDriverProps.Builder options(Map<String,String> options)
GenericLogDriverProps.getOptions()
options
- The configuration options to send to the log driver.this
@Stability(value=Stable) public GenericLogDriverProps.Builder secretOptions(Map<String,? extends Secret> secretOptions)
GenericLogDriverProps.getSecretOptions()
secretOptions
- The secrets to pass to the log configuration.this
@Stability(value=Stable) public GenericLogDriverProps build()
build
in interface software.amazon.jsii.Builder<GenericLogDriverProps>
GenericLogDriverProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.