Class LogConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.batch.LogConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LogConfiguration>
- Enclosing interface:
- LogConfiguration
@Stability(Experimental)
public static final class LogConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<LogConfiguration>
A builder for
LogConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofLogConfiguration.getLogDriver()
Sets the value ofLogConfiguration.getOptions()
secretOptions
(List<? extends ExposedSecret> secretOptions) Sets the value ofLogConfiguration.getSecretOptions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logDriver
Sets the value ofLogConfiguration.getLogDriver()
- Parameters:
logDriver
- The log driver to use for the container. This parameter is required.- Returns:
this
-
options
Sets the value ofLogConfiguration.getOptions()
- Parameters:
options
- The configuration options to send to the log driver.- Returns:
this
-
secretOptions
@Stability(Experimental) public LogConfiguration.Builder secretOptions(List<? extends ExposedSecret> secretOptions) Sets the value ofLogConfiguration.getSecretOptions()
- Parameters:
secretOptions
- The secrets to pass to the log configuration as options. For more information, see https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data-secrets.html#secrets-logconfig- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LogConfiguration>
- Returns:
- a new instance of
LogConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-