Class: AWSCDK::Logs::CfnTransformer::DeleteKeysProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::DeleteKeysProperty
- Defined in:
- logs/cfn_transformer.rb
Overview
This processor deletes entries from a log event. These entries are key-value pairs.
For more information about this processor including examples, see deleteKeys in the CloudWatch Logs User Guide .
Instance Attribute Summary collapse
-
#with_keys ⇒ Array<String>
readonly
The list of keys to delete.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(with_keys:) ⇒ DeleteKeysProperty
constructor
A new instance of DeleteKeysProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(with_keys:) ⇒ DeleteKeysProperty
Returns a new instance of DeleteKeysProperty.
879 880 881 882 |
# File 'logs/cfn_transformer.rb', line 879 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)
The list of keys to delete.
888 889 890 |
# File 'logs/cfn_transformer.rb', line 888 def with_keys @with_keys end |
Class Method Details
.jsii_properties ⇒ Object
890 891 892 893 894 |
# File 'logs/cfn_transformer.rb', line 890 def self.jsii_properties { :with_keys => "withKeys", } end |
Instance Method Details
#to_jsii ⇒ Object
896 897 898 899 900 901 902 |
# File 'logs/cfn_transformer.rb', line 896 def to_jsii result = {} result.merge!({ "withKeys" => @with_keys, }) result.compact end |