Class: AWSCDK::ECS::FirelensConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/firelens_config.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of FirelensConfig.

Parameters:



9
10
11
12
13
14
# File 'ecs/firelens_config.rb', line 9

def initialize(type:, options: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkZpcmVsZW5zTG9nUm91dGVyVHlwZSJ9")), "type")
  @options = options.is_a?(Hash) ? ::AWSCDK::ECS::FirelensOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(@options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkZpcmVsZW5zT3B0aW9ucyJ9")), "options") unless @options.nil?
end

Instance Attribute Details

#optionsAWSCDK::ECS::FirelensOptions? (readonly)

Note:

Default: - no additional options

Firelens options.



25
26
27
# File 'ecs/firelens_config.rb', line 25

def options
  @options
end

#typeAWSCDK::ECS::FirelensLogRouterType (readonly)

Note:

Default: - fluentbit

The log router to use.



20
21
22
# File 'ecs/firelens_config.rb', line 20

def type
  @type
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'ecs/firelens_config.rb', line 27

def self.jsii_properties
  {
    :type => "type",
    :options => "options",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'ecs/firelens_config.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "options" => @options,
  })
  result.compact
end