TaskDefinitionLogConfigurationArgs

data class TaskDefinitionLogConfigurationArgs(val logDriver: Output<String>, val options: Output<Map<String, String>>? = null, val secretOptions: Output<List<TaskDefinitionSecretArgs>>? = null) : ConvertibleToJava<TaskDefinitionLogConfigurationArgs>

The `LogConfiguration` property specifies log configuration options to send to a custom log driver for the container.

Constructors

Link copied to clipboard
constructor(logDriver: Output<String>, options: Output<Map<String, String>>? = null, secretOptions: Output<List<TaskDefinitionSecretArgs>>? = null)

Properties

Link copied to clipboard
val logDriver: Output<String>

The log driver to use for the container. For tasks on FARGATElong, the supported log drivers are `awslogs`, `splunk`, and `awsfirelens`. For tasks hosted on Amazon EC2 instances, the supported log drivers are `awslogs`, `fluentd`, `gelf`, `json-file`, `journald`, `syslog`, `splunk`, and `awsfirelens`. For more information about using the `awslogs` log driver, see Send Amazon ECS logs to CloudWatch in the Amazon Elastic Container Service Developer Guide. For more information about using the `awsfirelens` log driver, see Send Amazon ECS logs to an service or Partner. If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent project that's available on GitHub and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, we don't currently provide support for running modified copies of this software.

Link copied to clipboard
val options: Output<Map<String, String>>? = null

The configuration options to send to the log driver. The options you can specify depend on the log driver. Some of the options you can specify when you use the `awslogs` log driver to route logs to Amazon CloudWatch include the following:

Link copied to clipboard

The secrets to pass to the log configuration. For more information, see Specifying sensitive data in the Amazon Elastic Container Service Developer Guide.

Functions

Link copied to clipboard
open override fun toJava(): TaskDefinitionLogConfigurationArgs