Class: AWSCDK::Logs::ProcessorDeleteKeysProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::ProcessorDeleteKeysProperty
- Defined in:
- logs/processor_delete_keys_property.rb
Overview
This processor adds new key-value pairs to the log event.
For more information about this processor including examples, see addKeys in the CloudWatch Logs User Guide.
Instance Attribute Summary collapse
-
#with_keys ⇒ Array<String>
readonly
A list of keys to delete.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(with_keys:) ⇒ ProcessorDeleteKeysProperty
constructor
A new instance of ProcessorDeleteKeysProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(with_keys:) ⇒ ProcessorDeleteKeysProperty
Returns a new instance of ProcessorDeleteKeysProperty.
10 11 12 13 |
# File 'logs/processor_delete_keys_property.rb', line 10 def initialize(with_keys:) @with_keys = with_keys Jsii::Type.check_type(@with_keys, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "withKeys") end |
Instance Attribute Details
#with_keys ⇒ Array<String> (readonly)
A list of keys to delete.
18 19 20 |
# File 'logs/processor_delete_keys_property.rb', line 18 def with_keys @with_keys end |
Class Method Details
.jsii_properties ⇒ Object
20 21 22 23 24 |
# File 'logs/processor_delete_keys_property.rb', line 20 def self.jsii_properties { :with_keys => "withKeys", } end |
Instance Method Details
#to_jsii ⇒ Object
26 27 28 29 30 31 32 |
# File 'logs/processor_delete_keys_property.rb', line 26 def to_jsii result = {} result.merge!({ "withKeys" => @with_keys, }) result.compact end |