Enum LogDriver

java.lang.Object
java.lang.Enum<LogDriver>
software.amazon.awscdk.services.batch.LogDriver
All Implemented Interfaces:
Serializable, Comparable<LogDriver>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.671Z") @Stability(Experimental) public enum LogDriver extends Enum<LogDriver>
(experimental) The log driver to use for the container.

Example:

 import software.amazon.awscdk.services.ssm.*;
 JobDefinition.Builder.create(this, "job-def")
         .container(JobDefinitionContainer.builder()
                 .image(EcrImage.fromRegistry("docker/whalesay"))
                 .logConfiguration(LogConfiguration.builder()
                         .logDriver(LogDriver.AWSLOGS)
                         .options(Map.of("awslogs-region", "us-east-1"))
                         .secretOptions(List.of(ExposedSecret.fromParametersStore("xyz", StringParameter.fromStringParameterName(this, "parameter", "xyz"))))
                         .build())
                 .build())
         .build();
 
  • Enum Constant Details

    • AWSLOGS

      @Stability(Experimental) public static final LogDriver AWSLOGS
      (experimental) Specifies the Amazon CloudWatch Logs logging driver.
    • FLUENTD

      @Stability(Experimental) public static final LogDriver FLUENTD
      (experimental) Specifies the Fluentd logging driver.
    • GELF

      @Stability(Experimental) public static final LogDriver GELF
      (experimental) Specifies the Graylog Extended Format (GELF) logging driver.
    • JOURNALD

      @Stability(Experimental) public static final LogDriver JOURNALD
      (experimental) Specifies the journald logging driver.
    • LOGENTRIES

      @Stability(Experimental) public static final LogDriver LOGENTRIES
      (experimental) Specifies the logentries logging driver.
    • JSON_FILE

      @Stability(Experimental) public static final LogDriver JSON_FILE
      (experimental) Specifies the JSON file logging driver.
    • SPLUNK

      @Stability(Experimental) public static final LogDriver SPLUNK
      (experimental) Specifies the Splunk logging driver.
    • SYSLOG

      @Stability(Experimental) public static final LogDriver SYSLOG
      (experimental) Specifies the syslog logging driver.
  • Method Details

    • values

      public static LogDriver[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LogDriver valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null