Class: AWSCDK::Logs::MoveKeysProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
logs/move_keys_property.rb

Overview

This processor moves a key from one field to another.

The original key is deleted. For more information about this processor including examples, see moveKeys in the CloudWatch Logs User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entries:) ⇒ MoveKeysProperty

Returns a new instance of MoveKeysProperty.

Parameters:



11
12
13
14
# File 'logs/move_keys_property.rb', line 11

def initialize(entries:)
  @entries = entries.is_a?(Array) ? entries.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::Logs::MoveKeyEntryProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : entries
  Jsii::Type.check_type(@entries, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb2dzLk1vdmVLZXlFbnRyeVByb3BlcnR5In0sImtpbmQiOiJhcnJheSJ9fQ==")), "entries")
end

Instance Attribute Details

#entriesArray<AWSCDK::Logs::MoveKeyEntryProperty> (readonly)

An array of objects, where each object contains information about one key to move.



19
20
21
# File 'logs/move_keys_property.rb', line 19

def entries
  @entries
end

Class Method Details

.jsii_propertiesObject



21
22
23
24
25
# File 'logs/move_keys_property.rb', line 21

def self.jsii_properties
  {
    :entries => "entries",
  }
end

Instance Method Details

#to_jsiiObject



27
28
29
30
31
32
33
# File 'logs/move_keys_property.rb', line 27

def to_jsii
  result = {}
  result.merge!({
    "entries" => @entries,
  })
  result.compact
end