Class: AWSCDK::ECS::FireLensLogDriver

Inherits:
LogDriver
  • Object
show all
Defined in:
ecs/fire_lens_log_driver.rb

Overview

FireLens enables you to use task definition parameters to route logs to an AWS service or AWS Partner Network (APN) destination for log storage and analytics.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ FireLensLogDriver

Constructs a new instance of the FireLensLogDriver class.

Parameters:



11
12
13
14
15
# File 'ecs/fire_lens_log_driver.rb', line 11

def initialize(props)
  props = props.is_a?(Hash) ? ::AWSCDK::ECS::FireLensLogDriverProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkZpcmVMZW5zTG9nRHJpdmVyUHJvcHMifQ==")), "props")
  Jsii::Object.instance_method(:initialize).bind(self).call(props)
end

Class Method Details

.jsii_overridable_methodsObject



17
18
19
20
21
# File 'ecs/fire_lens_log_driver.rb', line 17

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(_scope, _container_definition) ⇒ AWSCDK::ECS::LogDriverConfig

Called when the log driver is configured on a container.

Parameters:

Returns:



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

def bind(_scope, _container_definition)
  Jsii::Type.check_type(_scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "_scope")
  Jsii::Type.check_type(_container_definition, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkNvbnRhaW5lckRlZmluaXRpb24ifQ==")), "_containerDefinition")
  jsii_call_method("bind", [_scope, _container_definition])
end