LogDriver

class aws_cdk.aws_batch.LogDriver(value)

Bases: Enum

(experimental) The log driver to use for the container.

Stability:

experimental

ExampleMetadata:

infused

Example:

import aws_cdk.aws_ssm as ssm


batch.JobDefinition(self, "job-def",
    container=batch.JobDefinitionContainer(
        image=ecs.EcrImage.from_registry("docker/whalesay"),
        log_configuration=batch.LogConfiguration(
            log_driver=batch.LogDriver.AWSLOGS,
            options={"awslogs-region": "us-east-1"},
            secret_options=[
                batch.ExposedSecret.from_parameters_store("xyz", ssm.StringParameter.from_string_parameter_name(self, "parameter", "xyz"))
            ]
        )
    )
)

Attributes

AWSLOGS

(experimental) Specifies the Amazon CloudWatch Logs logging driver.

Stability:

experimental

FLUENTD

(experimental) Specifies the Fluentd logging driver.

Stability:

experimental

GELF

(experimental) Specifies the Graylog Extended Format (GELF) logging driver.

Stability:

experimental

JOURNALD

(experimental) Specifies the journald logging driver.

Stability:

experimental

JSON_FILE

(experimental) Specifies the JSON file logging driver.

Stability:

experimental

LOGENTRIES

(experimental) Specifies the logentries logging driver.

Stability:

experimental

SPLUNK

(experimental) Specifies the Splunk logging driver.

Stability:

experimental

SYSLOG

(experimental) Specifies the syslog logging driver.

Stability:

experimental