Class: AWSCDK::Logs::JsonMutatorProcessor
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Logs::JsonMutatorProcessor
- Includes:
- IProcessor
- Defined in:
- logs/json_mutator_processor.rb
Overview
Processor for JSON mutation operations.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(props) ⇒ JsonMutatorProcessor
constructor
Creates a new JSON mutator processor.
-
#type ⇒ AWSCDK::Logs::JsonMutatorType
The type of JSON mutation operation.
- #type=(value) ⇒ Object
Constructor Details
#initialize(props) ⇒ JsonMutatorProcessor
Creates a new JSON mutator processor.
12 13 14 15 16 |
# File 'logs/json_mutator_processor.rb', line 12 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::Logs::JsonMutatorProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5Kc29uTXV0YXRvclByb3BzIn0=")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 |
# File 'logs/json_mutator_processor.rb', line 18 def self.jsii_overridable_methods { :type => { kind: :property, name: "type", is_optional: false }, } end |
Instance Method Details
#type ⇒ AWSCDK::Logs::JsonMutatorType
The type of JSON mutation operation.
27 28 29 |
# File 'logs/json_mutator_processor.rb', line 27 def type() jsii_get_property("type") end |
#type=(value) ⇒ Object
31 32 33 34 |
# File 'logs/json_mutator_processor.rb', line 31 def type=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5Kc29uTXV0YXRvclR5cGUifQ==")), "type") jsii_set_property("type", value) end |