aws-cdk-lib.aws_ecs.FirelensConfig

interface FirelensConfig

LanguageType name
.NETAmazon.CDK.AWS.ECS.FirelensConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#FirelensConfig
Javasoftware.amazon.awscdk.services.ecs.FirelensConfig
Pythonaws_cdk.aws_ecs.FirelensConfig
TypeScript (source)aws-cdk-lib » aws_ecs » FirelensConfig

Firelens Configuration https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef.

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 firelensConfig: ecs.FirelensConfig = {
  type: ecs.FirelensLogRouterType.FLUENTBIT,

  // the properties below are optional
  options: {
    configFileType: ecs.FirelensConfigFileType.S3,
    configFileValue: 'configFileValue',
    enableECSLogMetadata: false,
  },
};

Properties

NameTypeDescription
typeFirelensLogRouterTypeThe log router to use.
options?FirelensOptionsFirelens options.

type

Type: FirelensLogRouterType

The log router to use.


options?

Type: FirelensOptions (optional, default: no additional options)

Firelens options.