FirelensConfigurationProperty Struct
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 .
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs
firelens_configuration_property = ecs.CfnTaskDefinition.FirelensConfigurationProperty(
options={
"options_key": "options"
},
type="type"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
FirelensConfigurationProperty firelensConfigurationProperty = FirelensConfigurationProperty.builder()
.options(Map.of(
"optionsKey", "options"))
.type("type")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var firelensConfigurationProperty = new FirelensConfigurationProperty {
Options = new Dictionary<string, string> {
{ "optionsKey", "options" }
},
Type = "type"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
firelensConfigurationProperty := &FirelensConfigurationProperty{
Options: map[string]*string{
"optionsKey": jsii.String("options"),
},
Type: jsii.String("type"),
}
Properties
optionsoptionalIResolvable | { [key: string]: string }optionsoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]optionsoptionalIResolvableOptionsoptionalIResolvableOptionsoptionalinterface{} #The options to use when configuring the log router.
notes
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
The log router to use.
The valid values are fluentd or fluentbit .