@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.725Z") @Stability(value=Stable) 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 |
|---|---|
|
GenericLogDriver(GenericLogDriverProps props)
Constructs a new instance of the GenericLogDriver class.
|
protected |
GenericLogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GenericLogDriver(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
LogDriverConfig |
bind(software.constructs.Construct _scope,
ContainerDefinition _containerDefinition)
Called when the log driver is configured on a container.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected GenericLogDriver(software.amazon.jsii.JsiiObjectRef objRef)
protected GenericLogDriver(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public GenericLogDriver(@NotNull
GenericLogDriverProps props)
props - the generic log driver configuration options. This parameter is required.@Stability(value=Stable) @NotNull public LogDriverConfig bind(@NotNull software.constructs.Construct _scope, @NotNull ContainerDefinition _containerDefinition)
Copyright © 2022. All rights reserved.