aws-cdk-lib.aws_ecs.GelfLogDriver

class GelfLogDriver

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

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 gelfLogDriver = new ecs.GelfLogDriver({
  address: 'address',

  // the properties below are optional
  compressionLevel: 123,
  compressionType: ecs.GelfCompressionType.GZIP,
  env: ['env'],
  envRegex: 'envRegex',
  labels: ['labels'],
  tag: 'tag',
  tcpMaxReconnect: 123,
  tcpReconnectDelay: cdk.Duration.minutes(30),
});

Initializer

new GelfLogDriver(props: GelfLogDriverProps)

Parameters

  • props GelfLogDriverProps — the gelf log driver configuration options.

Constructs a new instance of the GelfLogDriver 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.