public static interface CfnTaskDefinition.FirelensConfigurationProperty
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 java.lang.Object |
getOptions()
The options to use when configuring the log router.
|
default java.lang.String |
getType()
The log router to use.
|
default java.lang.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 false
config-file-type
, which can be s3
or file
config-file-value
, which is either an S3 ARN or a file pathdefault java.lang.String getType()
The valid values are fluentd
or fluentbit
.
static CfnTaskDefinition.FirelensConfigurationProperty.Builder builder()