# FirelensConfig

Firelens Configuration https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef.

- Source: [`aws-ecs/lib/firelens-log-router.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ecs/lib/firelens-log-router.ts#L81)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    }
};
```

Golang:

```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

- `options`: [FirelensOptions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.FirelensOptions.html) — Firelens options.

  **Default:** no additional options

- `type`: [FirelensLogRouterType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.FirelensLogRouterType.html) (required) = fluentbit — The log router to use.
