@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:37:00.654Z") public enum LogDriver extends java.lang.Enum<LogDriver>
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 and Description |
---|
AWSLOGS
(experimental) Specifies the Amazon CloudWatch Logs logging driver.
|
FLUENTD
(experimental) Specifies the Fluentd logging driver.
|
GELF
(experimental) Specifies the Graylog Extended Format (GELF) logging driver.
|
JOURNALD
(experimental) Specifies the journald logging driver.
|
JSON_FILE
(experimental) Specifies the JSON file logging driver.
|
LOGENTRIES
(experimental) Specifies the logentries logging driver.
|
SPLUNK
(experimental) Specifies the Splunk logging driver.
|
SYSLOG
(experimental) Specifies the syslog logging driver.
|
Modifier and Type | Method and Description |
---|---|
static LogDriver |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogDriver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogDriver AWSLOGS
public static final LogDriver FLUENTD
public static final LogDriver GELF
public static final LogDriver JOURNALD
public static final LogDriver LOGENTRIES
public static final LogDriver JSON_FILE
public static final LogDriver SPLUNK
public static final LogDriver SYSLOG
public static LogDriver[] values()
for (LogDriver c : LogDriver.values()) System.out.println(c);
public static LogDriver valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null