aws-cdk-lib.aws_ecs.FluentdLogDriver

class FluentdLogDriver

LanguageType name
.NETAmazon.CDK.AWS.ECS.FluentdLogDriver
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#FluentdLogDriver
Javasoftware.amazon.awscdk.services.ecs.FluentdLogDriver
Pythonaws_cdk.aws_ecs.FluentdLogDriver
TypeScript (source)aws-cdk-lib » aws_ecs » FluentdLogDriver

Extends LogDriver

A log driver that sends log information to journald Logs.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_ecs as ecs } from 'aws-cdk-lib';
const fluentdLogDriver = new ecs.FluentdLogDriver(/* all optional props */ {
  address: 'address',
  asyncConnect: false,
  bufferLimit: 123,
  env: ['env'],
  envRegex: 'envRegex',
  labels: ['labels'],
  maxRetries: 123,
  retryWait: cdk.Duration.minutes(30),
  subSecondPrecision: false,
  tag: 'tag',
});

Initializer

new FluentdLogDriver(props?: FluentdLogDriverProps)

Parameters

  • props FluentdLogDriverProps — the fluentd log driver configuration options.

Constructs a new instance of the FluentdLogDriver class.

Methods

NameDescription
bind(_scope, _containerDefinition)Called when the log driver is configured on a container.

bind(_scope, _containerDefinition)

public bind(_scope: Construct, _containerDefinition: ContainerDefinition): LogDriverConfig

Parameters

  • _scope Construct
  • _containerDefinition ContainerDefinition

Returns

  • LogDriverConfig

Called when the log driver is configured on a container.