Class CfnTaskDefinition.FirelensConfigurationProperty
The FireLens configuration for the container.
Inheritance
System.Object
CfnTaskDefinition.FirelensConfigurationProperty
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FirelensConfigurationProperty : Object, CfnTaskDefinition.IFirelensConfigurationProperty
Syntax (vb)
Public Class FirelensConfigurationProperty
Inherits Object
Implements CfnTaskDefinition.IFirelensConfigurationProperty
Remarks
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 .
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 firelensConfigurationProperty = new FirelensConfigurationProperty {
Options = new Dictionary<string, string> {
{ "optionsKey", "options" }
},
Type = "type"
};
Synopsis
Constructors
FirelensConfigurationProperty() |
Properties
Options | The options to use when configuring the log router. |
Type | The log router to use. |
Constructors
FirelensConfigurationProperty()
public FirelensConfigurationProperty()
Properties
Options
The options to use when configuring the log router.
public object Options { get; set; }
Property Value
System.Object
Remarks
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:
Type
The log router to use.
public string Type { get; set; }
Property Value
System.String
Remarks
The valid values are fluentd
or fluentbit
.