enum LogDriver
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.LogDriver |
![]() | software.amazon.awscdk.services.batch.LogDriver |
![]() | aws_cdk.aws_batch.LogDriver |
![]() | @aws-cdk/aws-batch » LogDriver |
The log driver to use for the container.
Example
import * as ssm from '@aws-cdk/aws-ssm';
new batch.JobDefinition(this, 'job-def', {
container: {
image: ecs.EcrImage.fromRegistry('docker/whalesay'),
logConfiguration: {
logDriver: batch.LogDriver.AWSLOGS,
options: { 'awslogs-region': 'us-east-1' },
secretOptions: [
batch.ExposedSecret.fromParametersStore('xyz', ssm.StringParameter.fromStringParameterName(this, 'parameter', 'xyz')),
],
},
},
});
Members
Name | Description |
---|---|
AWSLOGS | Specifies the Amazon CloudWatch Logs logging driver. |
FLUENTD | Specifies the Fluentd logging driver. |
GELF | Specifies the Graylog Extended Format (GELF) logging driver. |
JOURNALD | Specifies the journald logging driver. |
LOGENTRIES | Specifies the logentries logging driver. |
JSON_FILE | Specifies the JSON file logging driver. |
SPLUNK | Specifies the Splunk logging driver. |
SYSLOG | Specifies the syslog logging driver. |
AWSLOGS
Specifies the Amazon CloudWatch Logs logging driver.
FLUENTD
Specifies the Fluentd logging driver.
GELF
Specifies the Graylog Extended Format (GELF) logging driver.
JOURNALD
Specifies the journald logging driver.
LOGENTRIES
Specifies the logentries logging driver.
JSON_FILE
Specifies the JSON file logging driver.
SPLUNK
Specifies the Splunk logging driver.
SYSLOG
Specifies the syslog logging driver.