interface FirelensConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.CfnTaskDefinition.FirelensConfigurationProperty |
Java | software.amazon.awscdk.services.ecs.CfnTaskDefinition.FirelensConfigurationProperty |
Python | aws_cdk.aws_ecs.CfnTaskDefinition.FirelensConfigurationProperty |
TypeScript | @aws-cdk/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 * as ecs from '@aws-cdk/aws-ecs';
const firelensConfigurationProperty: ecs.CfnTaskDefinition.FirelensConfigurationProperty = {
options: {
optionsKey: 'options',
},
type: 'type',
};
Properties
| Name | Type | Description |
|---|---|---|
| options? | IResolvable | { [string]: string } | The options to use when configuring the log router. |
| type? | string | The 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 betrueorfalseconfig-file-type, which can bes3orfileconfig-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 .

.NET
Java
Python
TypeScript