Interface IFirelensOptions
The options for firelens log router https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef-customconfig.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IFirelensOptions
Syntax (vb)
Public Interface IFirelensOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 firelensOptions = new FirelensOptions {
ConfigFileType = FirelensConfigFileType.S3,
ConfigFileValue = "configFileValue",
EnableECSLogMetadata = false
};
Synopsis
Properties
ConfigFileType | Custom configuration file, s3 or file. |
ConfigFileValue | Custom configuration file, S3 ARN or a file path Both configFileType and configFileValue must be used together to define a custom configuration source. |
EnableECSLogMetadata | By default, Amazon ECS adds additional fields in your log entries that help identify the source of the logs. |
Properties
ConfigFileType
Custom configuration file, s3 or file.
virtual Nullable<FirelensConfigFileType> ConfigFileType { get; }
Property Value
System.Nullable<FirelensConfigFileType>
Remarks
Both configFileType and configFileValue must be used together to define a custom configuration source.
Default: - determined by checking configFileValue with S3 ARN.
ConfigFileValue
Custom configuration file, S3 ARN or a file path Both configFileType and configFileValue must be used together to define a custom configuration source.
virtual string ConfigFileValue { get; }
Property Value
System.String
Remarks
Default: - no config file value
EnableECSLogMetadata
By default, Amazon ECS adds additional fields in your log entries that help identify the source of the logs.
virtual Nullable<bool> EnableECSLogMetadata { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
You can disable this action by setting enable-ecs-log-metadata to false.
Default: - true