Interface FirelensOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FirelensOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.366Z")
@Stability(Stable)
public interface FirelensOptions
extends software.amazon.jsii.JsiiSerializable
The options for firelens log router https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef-customconfig.
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.*;
FirelensOptions firelensOptions = FirelensOptions.builder()
.configFileType(FirelensConfigFileType.S3)
.configFileValue("configFileValue")
.enableECSLogMetadata(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFirelensOptionsstatic final classAn implementation forFirelensOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic FirelensOptions.Builderbuilder()default FirelensConfigFileTypeCustom configuration file, s3 or file.default StringCustom configuration file, S3 ARN or a file path Both configFileType and configFileValue must be used together to define a custom configuration source.default BooleanBy default, Amazon ECS adds additional fields in your log entries that help identify the source of the logs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConfigFileType
Custom configuration file, s3 or file.Both configFileType and configFileValue must be used together to define a custom configuration source.
Default: - determined by checking configFileValue with S3 ARN.
-
getConfigFileValue
Custom configuration file, S3 ARN or a file path Both configFileType and configFileValue must be used together to define a custom configuration source.Default: - no config file value
-
getEnableECSLogMetadata
By default, Amazon ECS adds additional fields in your log entries that help identify the source of the logs.You can disable this action by setting enable-ecs-log-metadata to false.
Default: - true
-
builder
- Returns:
- a
FirelensOptions.BuilderofFirelensOptions
-