aws-cdk-lib.aws_ecs.JournaldLogDriver

class JournaldLogDriver

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

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 { aws_ecs as ecs } from 'aws-cdk-lib';
const journaldLogDriver = new ecs.JournaldLogDriver(/* all optional props */ {
  env: ['env'],
  envRegex: 'envRegex',
  labels: ['labels'],
  tag: 'tag',
});

Initializer

new JournaldLogDriver(props?: JournaldLogDriverProps)

Parameters

  • props JournaldLogDriverProps — the journald log driver configuration options.

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