Interface CfnTaskDefinition.FirelensConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTaskDefinition.FirelensConfigurationProperty.Jsii$Proxy
- Enclosing class:
- CfnTaskDefinition
@Stability(Stable)
public static interface CfnTaskDefinition.FirelensConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
The FireLens configuration for the container.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnTaskDefinition.FirelensConfigurationProperty
static final class
An implementation forCfnTaskDefinition.FirelensConfigurationProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOptions
The options to use when configuring the log router.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 betrue
orfalse
config-file-type
, which can bes3
orfile
config-file-value
, which is either an S3 ARN or a file path
-
getType
The log router to use.The valid values are
fluentd
orfluentbit
. -
builder
-