Class: AWSCDK::ECS::CfnTaskDefinition::FirelensConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options: nil, type: nil) ⇒ FirelensConfigurationProperty

Returns a new instance of FirelensConfigurationProperty.

Parameters:

  • options (AWSCDK::IResolvable, Hash{String => String}, nil) (defaults to: nil)

    The options to use when configuring the log router.

  • type (String, nil) (defaults to: nil)

    The log router to use.



1957
1958
1959
1960
1961
1962
# File 'ecs/cfn_task_definition.rb', line 1957

def initialize(options: nil, type: nil)
  @options = 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

#optionsAWSCDK::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 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 path


1976
1977
1978
# File 'ecs/cfn_task_definition.rb', line 1976

def options
  @options
end

#typeString? (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_propertiesObject



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_jsiiObject



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