@Stability(value=Stable)
public static interface CfnTaskDefinition.FirelensConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
This is used to specify and configure a log router for container logs. For more information, see Custom log routing in the Amazon Elastic Container Service Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
FirelensConfigurationProperty firelensConfigurationProperty = FirelensConfigurationProperty.builder()
.options(Map.of(
"optionsKey", "options"))
.type("type")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTaskDefinition.FirelensConfigurationProperty.Builder
A builder for
CfnTaskDefinition.FirelensConfigurationProperty |
static class |
CfnTaskDefinition.FirelensConfigurationProperty.Jsii$Proxy
An implementation for
CfnTaskDefinition.FirelensConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnTaskDefinition.FirelensConfigurationProperty.Builder |
builder() |
default Object |
getOptions()
The options to use when configuring the log router.
|
default String |
getType()
The log router to use.
|
@Stability(value=Stable) @Nullable default Object getOptions()
This field is optional and can be used to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event.
If specified, valid option keys are:
enable-ecs-log-metadata , which can be true or falseconfig-file-type , which can be s3 or fileconfig-file-value , which is either an S3 ARN or a file path@Stability(value=Stable) @Nullable default String getType()
The valid values are fluentd or fluentbit .
@Stability(value=Stable) static CfnTaskDefinition.FirelensConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.