@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:29:10.677Z") public class GenericLogDriver extends LogDriver
Example:
// Create a Task Definition for the container to start Ec2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, "TaskDef"); taskDefinition.addContainer("TheContainer", ContainerDefinitionOptions.builder() .image(ContainerImage.fromRegistry("example-image")) .memoryLimitMiB(256) .logging(GenericLogDriver.Builder.create() .logDriver("fluentd") .options(Map.of( "tag", "example-tag")) .build()) .build());
Modifier and Type | Class and Description |
---|---|
static class |
GenericLogDriver.Builder
A fluent builder for
GenericLogDriver . |
Modifier | Constructor and Description |
---|---|
protected |
GenericLogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GenericLogDriver(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
LogDriverConfig |
bind(Construct _scope,
ContainerDefinition _containerDefinition)
Called when the log driver is configured on a container.
|
protected GenericLogDriver(software.amazon.jsii.JsiiObjectRef objRef)
protected GenericLogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public LogDriverConfig bind(Construct _scope, ContainerDefinition _containerDefinition)