Class LogDriver
(experimental) The log driver to use for the container.
Inheritance
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.AWS.Batch.dll
Syntax (csharp)
public sealed class LogDriver : Enum
Syntax (vb)
Public NotInheritable Class LogDriver
Inherits
Enum
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.SSM;
new JobDefinition(this, "job-def", new JobDefinitionProps {
Container = new JobDefinitionContainer {
Image = EcrImage.FromRegistry("docker/whalesay"),
LogConfiguration = new LogConfiguration {
LogDriver = LogDriver.AWSLOGS,
Options = new Dictionary<string, string> { { "awslogs-region", "us-east-1" } },
SecretOptions = new [] { ExposedSecret.FromParametersStore("xyz", StringParameter.FromStringParameterName(this, "parameter", "xyz")) }
}
}
});
Synopsis
Fields
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. |
value__ |
Fields
AWSLOGS
(experimental) Specifies the Amazon CloudWatch Logs logging driver.
public const LogDriver AWSLOGS
Field Value
Type | Description |
---|---|
LogDriver |
Remarks
Stability: Experimental
FLUENTD
(experimental) Specifies the Fluentd logging driver.
public const LogDriver FLUENTD
Field Value
Type | Description |
---|---|
LogDriver |
Remarks
Stability: Experimental
GELF
(experimental) Specifies the Graylog Extended Format (GELF) logging driver.
public const LogDriver GELF
Field Value
Type | Description |
---|---|
LogDriver |
Remarks
Stability: Experimental
JOURNALD
(experimental) Specifies the journald logging driver.
public const LogDriver JOURNALD
Field Value
Type | Description |
---|---|
LogDriver |
Remarks
Stability: Experimental
JSON_FILE
(experimental) Specifies the JSON file logging driver.
public const LogDriver JSON_FILE
Field Value
Type | Description |
---|---|
LogDriver |
Remarks
Stability: Experimental
LOGENTRIES
(experimental) Specifies the logentries logging driver.
public const LogDriver LOGENTRIES
Field Value
Type | Description |
---|---|
LogDriver |
Remarks
Stability: Experimental
SPLUNK
(experimental) Specifies the Splunk logging driver.
public const LogDriver SPLUNK
Field Value
Type | Description |
---|---|
LogDriver |
Remarks
Stability: Experimental
SYSLOG
(experimental) Specifies the syslog logging driver.
public const LogDriver SYSLOG
Field Value
Type | Description |
---|---|
LogDriver |
Remarks
Stability: Experimental
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |