@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.725Z") @Stability(value=Stable) public interface GenericLogDriverProps extends software.amazon.jsii.JsiiSerializable
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 | Interface and Description |
|---|---|
static class |
GenericLogDriverProps.Builder
A builder for
GenericLogDriverProps |
static class |
GenericLogDriverProps.Jsii$Proxy
An implementation for
GenericLogDriverProps |
| Modifier and Type | Method and Description |
|---|---|
static GenericLogDriverProps.Builder |
builder() |
String |
getLogDriver()
The log driver to use for the container.
|
default Map<String,String> |
getOptions()
The configuration options to send to the log driver.
|
default Map<String,Secret> |
getSecretOptions()
The secrets to pass to the log configuration.
|
@Stability(value=Stable) @NotNull String getLogDriver()
The valid values listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default.
For tasks using the Fargate launch type, the supported log drivers are awslogs and splunk. For tasks using the EC2 launch type, the supported log drivers are awslogs, syslog, gelf, fluentd, splunk, journald, and json-file.
For more information about using the awslogs log driver, see Using the awslogs Log Driver in the Amazon Elastic Container Service Developer Guide.
@Stability(value=Stable) @Nullable default Map<String,String> getOptions()
Default: - the log driver options.
@Stability(value=Stable) @Nullable default Map<String,Secret> getSecretOptions()
Default: - no secret options provided.
@Stability(value=Stable) static GenericLogDriverProps.Builder builder()
GenericLogDriverProps.Builder of GenericLogDriverPropsCopyright © 2022. All rights reserved.