@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:47.569Z") @Stability(value=Experimental) 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
(experimental) A fluent builder for
GenericLogDriver. |
| Modifier | Constructor and Description |
|---|---|
|
GenericLogDriver(GenericLogDriverProps props)
(experimental) 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(Construct _scope,
ContainerDefinition _containerDefinition)
(experimental) 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=Experimental)
public GenericLogDriver(@NotNull
GenericLogDriverProps props)
props - the generic log driver configuration options. This parameter is required.@Stability(value=Experimental) @NotNull public LogDriverConfig bind(@NotNull Construct _scope, @NotNull ContainerDefinition _containerDefinition)
Copyright © 2022. All rights reserved.