All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.ecs.kotlin.outputs.TaskDefinitionFirelensConfiguration.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ecs.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 * The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see [Custom log routing](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html) in the *Amazon Elastic Container Service Developer Guide*.
 * @property options The options to use when configuring the log router. This field is optional and can be used to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event.
 *   If specified, valid option keys are:
 *   +   ``enable-ecs-log-metadata``, which can be ``true`` or ``false``
 *   +   ``config-file-type``, which can be ``s3`` or ``file``
 *   +   ``config-file-value``, which is either an S3 ARN or a file path
 * @property type The log router to use. The valid values are ``fluentd`` or ``fluentbit``.
 */
public data class TaskDefinitionFirelensConfiguration(
    public val options: Map? = null,
    public val type: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.TaskDefinitionFirelensConfiguration): TaskDefinitionFirelensConfiguration = TaskDefinitionFirelensConfiguration(
            options = javaType.options().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            type = javaType.type().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy