FirelensConfig

class aws_cdk.aws_ecs.FirelensConfig(*, type, options=None)

Bases: object

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

Parameters
ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ecs as ecs

firelens_config = ecs.FirelensConfig(
    type=ecs.FirelensLogRouterType.FLUENTBIT,

    # the properties below are optional
    options=ecs.FirelensOptions(
        config_file_value="configFileValue",

        # the properties below are optional
        config_file_type=ecs.FirelensConfigFileType.S3,
        enable_eCSLog_metadata=False
    )
)

Attributes

options

Firelens options.

Default
  • no additional options

Return type

Optional[FirelensOptions]

type

The log router to use.

Default
  • fluentbit

Return type

FirelensLogRouterType