Class: AWSCDK::Logs::ProcessorDeleteKeysProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(with_keys:) ⇒ ProcessorDeleteKeysProperty

Returns a new instance of ProcessorDeleteKeysProperty.

Parameters:

  • with_keys (Array<String>)

    A list of keys to delete.



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_keysArray<String> (readonly)

A list of keys to delete.

Returns:

  • (Array<String>)


18
19
20
# File 'logs/processor_delete_keys_property.rb', line 18

def with_keys
  @with_keys
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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