public static final class CfnJobDefinition.LogConfigurationProperty.Builder
extends java.lang.Object
CfnJobDefinition.LogConfigurationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnJobDefinition.LogConfigurationProperty |
build()
Builds the configured instance.
|
CfnJobDefinition.LogConfigurationProperty.Builder |
logDriver(java.lang.String logDriver)
Sets the value of
CfnJobDefinition.LogConfigurationProperty.getLogDriver() |
CfnJobDefinition.LogConfigurationProperty.Builder |
options(java.lang.Object options)
Sets the value of
CfnJobDefinition.LogConfigurationProperty.getOptions() |
CfnJobDefinition.LogConfigurationProperty.Builder |
secretOptions(IResolvable secretOptions)
Sets the value of
CfnJobDefinition.LogConfigurationProperty.getSecretOptions() |
CfnJobDefinition.LogConfigurationProperty.Builder |
secretOptions(java.util.List<? extends java.lang.Object> secretOptions)
Sets the value of
CfnJobDefinition.LogConfigurationProperty.getSecretOptions() |
public CfnJobDefinition.LogConfigurationProperty.Builder logDriver(java.lang.String logDriver)
CfnJobDefinition.LogConfigurationProperty.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.
The supported log drivers are awslogs
, fluentd
, gelf
, json-file
, journald
, logentries
, syslog
, and splunk
.
Jobs that are running on Fargate resources are restricted to the
awslogs
andsplunk
log drivers.
If you have a custom driver that's not listed earlier that you want to work with the Amazon ECS container agent, you can fork the Amazon ECS container agent project that's available on GitHub and customize it to work with that driver. We encourage you to submit pull requests for changes that you want to have included. However, Amazon Web Services doesn't currently support running modified copies of this software.
This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep "Server API version"
this
public CfnJobDefinition.LogConfigurationProperty.Builder options(java.lang.Object options)
CfnJobDefinition.LogConfigurationProperty.getOptions()
options
- The configuration options to send to the log driver.
This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: sudo docker version | grep "Server API version"
this
public CfnJobDefinition.LogConfigurationProperty.Builder secretOptions(IResolvable secretOptions)
CfnJobDefinition.LogConfigurationProperty.getSecretOptions()
secretOptions
- The secrets to pass to the log configuration.
For more information, see Specifying sensitive data in the AWS Batch User Guide .this
public CfnJobDefinition.LogConfigurationProperty.Builder secretOptions(java.util.List<? extends java.lang.Object> secretOptions)
CfnJobDefinition.LogConfigurationProperty.getSecretOptions()
secretOptions
- The secrets to pass to the log configuration.
For more information, see Specifying sensitive data in the AWS Batch User Guide .this
public CfnJobDefinition.LogConfigurationProperty build()
CfnJobDefinition.LogConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided