FirelensConfig Struct
Firelens Configuration https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef.
| Source | aws-ecs/lib/firelens-log-router.ts |
|---|
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 firelensConfig: ecs.FirelensConfig = {
type: ecs.FirelensLogRouterType.FLUENTBIT,
// the properties below are optional
options: {
configFileType: ecs.FirelensConfigFileType.S3,
configFileValue: 'configFileValue',
enableECSLogMetadata: false,
},
};
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_config = ecs.FirelensConfig(
type=ecs.FirelensLogRouterType.FLUENTBIT,
# the properties below are optional
options=ecs.FirelensOptions(
config_file_type=ecs.FirelensConfigFileType.S3,
config_file_value="configFileValue",
enable_ecs_log_metadata=False
)
)
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.*;
FirelensConfig firelensConfig = FirelensConfig.builder()
.type(FirelensLogRouterType.FLUENTBIT)
// the properties below are optional
.options(FirelensOptions.builder()
.configFileType(FirelensConfigFileType.S3)
.configFileValue("configFileValue")
.enableECSLogMetadata(false)
.build())
.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 firelensConfig = new FirelensConfig {
Type = FirelensLogRouterType.FLUENTBIT,
// the properties below are optional
Options = new FirelensOptions {
ConfigFileType = FirelensConfigFileType.S3,
ConfigFileValue = "configFileValue",
EnableECSLogMetadata = false
}
};
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"
firelensConfig := &FirelensConfig{
Type: awscdk.Aws_ecs.FirelensLogRouterType_FLUENTBIT,
// the properties below are optional
Options: &FirelensOptions{
ConfigFileType: awscdk.*Aws_ecs.FirelensConfigFileType_S3,
ConfigFileValue: jsii.String("configFileValue"),
EnableECSLogMetadata: jsii.Boolean(false),
},
}
Properties
optionsoptionalFirelensOptionsoptionsoptionalFirelensOptionsoptionsoptionalFirelensOptionsOptionsoptionalFirelensOptionsOptionsoptionalFirelensOptions #Firelens options.
Default: no additional options
typeFirelensLogRouterTypetypeFirelensLogRouterTypetypeFirelensLogRouterTypeTypeFirelensLogRouterTypeTypeFirelensLogRouterType = fluentbit required #The log router to use.