@Generated(value="software.amazon.awssdk:codegen") public final class LogConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LogConfiguration.Builder,LogConfiguration>
Log configuration options to send to a custom log driver for the container.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LogConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LogConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasOptions()
For responses, this returns true if the service returned a value for the Options property.
|
boolean |
hasSecretOptions()
For responses, this returns true if the service returned a value for the SecretOptions property.
|
LogDriver |
logDriver()
The log driver to use for the container.
|
String |
logDriverAsString()
The log driver to use for the container.
|
Map<String,String> |
options()
The configuration options to send to the log driver.
|
List<SdkField<?>> |
sdkFields() |
List<Secret> |
secretOptions()
The secrets to pass to the log configuration.
|
static Class<? extends LogConfiguration.Builder> |
serializableBuilderClass() |
LogConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final LogDriver logDriver()
The log driver to use for the container. The valid values that are 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 and splunk log
drivers.
Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs log driver in the Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation.
Specifies the Fluentd logging driver. For more information including usage and options, see Fluentd logging driver in the Docker documentation.
Specifies the Graylog Extended Format (GELF) logging driver. For more information including usage and options, see Graylog Extended Format logging driver in the Docker documentation.
Specifies the journald logging driver. For more information including usage and options, see Journald logging driver in the Docker documentation.
Specifies the JSON file logging driver. For more information including usage and options, see JSON File logging driver in the Docker documentation.
Specifies the Splunk logging driver. For more information including usage and options, see Splunk logging driver in the Docker documentation.
Specifies the syslog logging driver. For more information including usage and options, see Syslog logging driver in the Docker documentation.
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 in to your container instance and run the following
command: sudo docker version | grep "Server API version"
If the service returns an enum value that is not available in the current SDK version, logDriver will
return LogDriver.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
logDriverAsString().
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 and
splunk log drivers.
Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs log driver in the Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation.
Specifies the Fluentd logging driver. For more information including usage and options, see Fluentd logging driver in the Docker documentation.
Specifies the Graylog Extended Format (GELF) logging driver. For more information including usage and options, see Graylog Extended Format logging driver in the Docker documentation.
Specifies the journald logging driver. For more information including usage and options, see Journald logging driver in the Docker documentation.
Specifies the JSON file logging driver. For more information including usage and options, see JSON File logging driver in the Docker documentation.
Specifies the Splunk logging driver. For more information including usage and options, see Splunk logging driver in the Docker documentation.
Specifies the syslog logging driver. For more information including usage and options, see Syslog logging driver in the Docker documentation.
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 in to your container instance and run
the following command: sudo docker version | grep "Server API version"
LogDriverpublic final String logDriverAsString()
The log driver to use for the container. The valid values that are 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 and splunk log
drivers.
Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs log driver in the Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation.
Specifies the Fluentd logging driver. For more information including usage and options, see Fluentd logging driver in the Docker documentation.
Specifies the Graylog Extended Format (GELF) logging driver. For more information including usage and options, see Graylog Extended Format logging driver in the Docker documentation.
Specifies the journald logging driver. For more information including usage and options, see Journald logging driver in the Docker documentation.
Specifies the JSON file logging driver. For more information including usage and options, see JSON File logging driver in the Docker documentation.
Specifies the Splunk logging driver. For more information including usage and options, see Splunk logging driver in the Docker documentation.
Specifies the syslog logging driver. For more information including usage and options, see Syslog logging driver in the Docker documentation.
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 in to your container instance and run the following
command: sudo docker version | grep "Server API version"
If the service returns an enum value that is not available in the current SDK version, logDriver will
return LogDriver.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
logDriverAsString().
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 and
splunk log drivers.
Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs log driver in the Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation.
Specifies the Fluentd logging driver. For more information including usage and options, see Fluentd logging driver in the Docker documentation.
Specifies the Graylog Extended Format (GELF) logging driver. For more information including usage and options, see Graylog Extended Format logging driver in the Docker documentation.
Specifies the journald logging driver. For more information including usage and options, see Journald logging driver in the Docker documentation.
Specifies the JSON file logging driver. For more information including usage and options, see JSON File logging driver in the Docker documentation.
Specifies the Splunk logging driver. For more information including usage and options, see Splunk logging driver in the Docker documentation.
Specifies the syslog logging driver. For more information including usage and options, see Syslog logging driver in the Docker documentation.
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 in to your container instance and run
the following command: sudo docker version | grep "Server API version"
LogDriverpublic final boolean hasOptions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> 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
in to your container instance and run the following command:
sudo docker version | grep "Server API version"
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOptions() method.
sudo docker version | grep "Server API version"public final boolean hasSecretOptions()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Secret> secretOptions()
The secrets to pass to the log configuration. For more information, see Specifying sensitive data in the Batch User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSecretOptions() method.
public LogConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LogConfiguration.Builder,LogConfiguration>public static LogConfiguration.Builder builder()
public static Class<? extends LogConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.