Class: AWSCDK::ECS::GelfLogDriver
- Inherits:
-
LogDriver
- Object
- LogDriver
- AWSCDK::ECS::GelfLogDriver
- Defined in:
- ecs/gelf_log_driver.rb
Overview
A log driver that sends log information to journald Logs.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(_scope, _container_definition) ⇒ AWSCDK::ECS::LogDriverConfig
Called when the log driver is configured on a container.
-
#initialize(props) ⇒ GelfLogDriver
constructor
Constructs a new instance of the GelfLogDriver class.
Constructor Details
#initialize(props) ⇒ GelfLogDriver
Constructs a new instance of the GelfLogDriver class.
11 12 13 14 15 |
# File 'ecs/gelf_log_driver.rb', line 11 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::ECS::GelfLogDriverProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkdlbGZMb2dEcml2ZXJQcm9wcyJ9")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 |
# File 'ecs/gelf_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.
28 29 30 31 32 |
# File 'ecs/gelf_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 |