Class: AWSCDK::ECS::CfnTaskDefinition::FirelensConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnTaskDefinition::FirelensConfigurationProperty
- Defined in:
- ecs/cfn_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.
1957 1958 1959 1960 1961 1962 |
# File 'ecs/cfn_task_definition.rb', line 1957 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 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 betrueorfalseconfig-file-type, which can bes3orfileconfig-file-value, which is either an S3 ARN or a file path
1976 1977 1978 |
# File 'ecs/cfn_task_definition.rb', line 1976 def @options end |
#type ⇒ String? (readonly)
The log router to use.
The valid values are fluentd or fluentbit .
1983 1984 1985 |
# File 'ecs/cfn_task_definition.rb', line 1983 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1985 1986 1987 1988 1989 1990 |
# File 'ecs/cfn_task_definition.rb', line 1985 def self.jsii_properties { :options => "options", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
1992 1993 1994 1995 1996 1997 1998 1999 |
# File 'ecs/cfn_task_definition.rb', line 1992 def to_jsii result = {} result.merge!({ "options" => @options, "type" => @type, }) result.compact end |