aws-cdk-lib.aws_ecs.CfnTaskDefinition.FirelensConfigurationProperty

interface FirelensConfigurationProperty

LanguageType name
.NETAmazon.CDK.AWS.ECS.CfnTaskDefinition.FirelensConfigurationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnTaskDefinition_FirelensConfigurationProperty
Javasoftware.amazon.awscdk.services.ecs.CfnTaskDefinition.FirelensConfigurationProperty
Pythonaws_cdk.aws_ecs.CfnTaskDefinition.FirelensConfigurationProperty
TypeScript aws-cdk-lib » aws_ecs » CfnTaskDefinition » FirelensConfigurationProperty

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 in the Amazon Elastic Container Service Developer Guide .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const firelensConfigurationProperty: ecs.CfnTaskDefinition.FirelensConfigurationProperty = {
  options: {
    optionsKey: 'options',
  },
  type: 'type',
};

Properties

NameTypeDescription
options?IResolvable | { [string]: string }The options to use when configuring the log router.
type?stringThe log router to use.

options?

Type: IResolvable | { [string]: string } (optional)

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

type?

Type: string (optional)

The log router to use.

The valid values are fluentd or fluentbit .