@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:25.424Z") @Stability(value=Experimental) public enum LogDriver extends Enum<LogDriver>
Example:
import software.amazon.awscdk.core.*;
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(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.
|
@Stability(value=Experimental) public static final LogDriver AWSLOGS
@Stability(value=Experimental) public static final LogDriver FLUENTD
@Stability(value=Experimental) public static final LogDriver GELF
@Stability(value=Experimental) public static final LogDriver JOURNALD
@Stability(value=Experimental) public static final LogDriver LOGENTRIES
@Stability(value=Experimental) public static final LogDriver JSON_FILE
@Stability(value=Experimental) public static final LogDriver SPLUNK
@Stability(value=Experimental) public static final LogDriver SYSLOG
public static LogDriver[] values()
for (LogDriver c : LogDriver.values()) System.out.println(c);
public static LogDriver valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.