Class: AWSCDK::Logs::CfnTransformer::RenameKeysProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::RenameKeysProperty
- Defined in:
- logs/cfn_transformer.rb
Overview
Use this processor to rename keys in a log event.
For more information about this processor including examples, see renameKeys in the CloudWatch Logs User Guide .
Instance Attribute Summary collapse
-
#entries ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Logs::CfnTransformer::RenameKeyEntryProperty>
readonly
An array of
RenameKeyEntryobjects, where each object contains the information about a single key to rename.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entries:) ⇒ RenameKeysProperty
constructor
A new instance of RenameKeysProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entries:) ⇒ RenameKeysProperty
Returns a new instance of RenameKeysProperty.
1925 1926 1927 1928 |
# File 'logs/cfn_transformer.rb', line 1925 def initialize(entries:) @entries = entries Jsii::Type.check_type(@entries, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5DZm5UcmFuc2Zvcm1lci5SZW5hbWVLZXlFbnRyeVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "entries") end |
Instance Attribute Details
#entries ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Logs::CfnTransformer::RenameKeyEntryProperty> (readonly)
An array of RenameKeyEntry objects, where each object contains the information about a single key to rename.
1934 1935 1936 |
# File 'logs/cfn_transformer.rb', line 1934 def entries @entries end |
Class Method Details
.jsii_properties ⇒ Object
1936 1937 1938 1939 1940 |
# File 'logs/cfn_transformer.rb', line 1936 def self.jsii_properties { :entries => "entries", } end |
Instance Method Details
#to_jsii ⇒ Object
1942 1943 1944 1945 1946 1947 1948 |
# File 'logs/cfn_transformer.rb', line 1942 def to_jsii result = {} result.merge!({ "entries" => @entries, }) result.compact end |