Class: AWSCDK::ECS::JsonFileLogDriver

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

Overview

A log driver that sends log information to json-file Logs.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props = nil) ⇒ JsonFileLogDriver

Constructs a new instance of the JsonFileLogDriver class.

Parameters:



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

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

Class Method Details

.jsii_overridable_methodsObject



17
18
19
20
21
# File 'ecs/json_file_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/json_file_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