Class: AWSCDK::ECS::CfnDaemonTaskDefinition::FirelensConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnDaemonTaskDefinition::FirelensConfigurationProperty
- Defined in:
- ecs/cfn_daemon_task_definition.rb
Overview
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.
Instance Attribute Summary collapse
-
#options ⇒ AWSCDK::IResolvable, ...
readonly
The options to use when configuring the log router.
-
#type ⇒ String?
readonly
The log router to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options: nil, type: nil) ⇒ FirelensConfigurationProperty
constructor
A new instance of FirelensConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(options: nil, type: nil) ⇒ FirelensConfigurationProperty
Returns a new instance of FirelensConfigurationProperty.
1203 1204 1205 1206 1207 1208 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1203 def initialize(options: nil, type: nil) @options = Jsii::Type.check_type(@options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "options") unless @options.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#options ⇒ AWSCDK::IResolvable, ... (readonly)
The options to use when configuring the log router.
This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is "options":{"enable-ecs-log-metadata":"true|false","config-file-type:"s3|file","config-file-value":"arn:aws:s3:::mybucket/fluent.conf|filepath"}. For more information, see Creating a task definition that uses a FireLens configuration in the Amazon Elastic Container Service Developer Guide.
Tasks hosted on FARGATElong only support the file configuration file type.
1217 1218 1219 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1217 def @options end |
#type ⇒ String? (readonly)
The log router to use.
The valid values are fluentd or fluentbit.
1224 1225 1226 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1224 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1226 1227 1228 1229 1230 1231 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1226 def self.jsii_properties { :options => "options", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
1233 1234 1235 1236 1237 1238 1239 1240 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1233 def to_jsii result = {} result.merge!({ "options" => @options, "type" => @type, }) result.compact end |