LogDriverConfig

class aws_cdk.aws_ecs.LogDriverConfig(*, log_driver, options=None)

Bases: object

__init__(*, log_driver, options=None)

The configuration to use when creating a log driver.

Parameters
  • log_driver (str) – The log driver to use for the container. The valid values listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default. For tasks using the Fargate launch type, the supported log drivers are awslogs and splunk. For tasks using the EC2 launch type, the supported log drivers are awslogs, syslog, gelf, fluentd, splunk, journald, and json-file. For more information about using the awslogs log driver, see Using the awslogs Log Driver in the Amazon Elastic Container Service Developer Guide.

  • options (Optional[Mapping[str, str]]) – The configuration options to send to the log driver.

Attributes

log_driver

The log driver to use for the container.

The valid values listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default.

For tasks using the Fargate launch type, the supported log drivers are awslogs and splunk. For tasks using the EC2 launch type, the supported log drivers are awslogs, syslog, gelf, fluentd, splunk, journald, and json-file.

For more information about using the awslogs log driver, see Using the awslogs Log Driver in the Amazon Elastic Container Service Developer Guide.

Return type

str

options

The configuration options to send to the log driver.

Return type

Optional[Mapping[str, str]]