class
Amazonite::CloudWatchLogs::RenameKeyEntry
- Amazonite::CloudWatchLogs::RenameKeyEntry
- Reference
- Object
Overview
This object defines one key that will be renamed with the renameKey processor.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/rename_key_entry.crConstructors
- .new(key : String, rename_to : String, overwrite_if_exists : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#key : String
The key to rename
-
#key=(key : String)
The key to rename
-
#overwrite_if_exists : Bool | Nil
Specifies whether to overwrite the existing value if the destination key already exists.
-
#overwrite_if_exists=(overwrite_if_exists : Bool | Nil)
Specifies whether to overwrite the existing value if the destination key already exists.
-
#rename_to : String
The string to use for the new key name
-
#rename_to=(rename_to : String)
The string to use for the new key name
- #validate! : Nil
Constructor Detail
def self.new(key : String, rename_to : String, overwrite_if_exists : Bool | Nil = nil)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
def overwrite_if_exists : Bool | Nil
#
Specifies whether to overwrite the existing value if the destination key already exists. The
default is false
def overwrite_if_exists=(overwrite_if_exists : Bool | Nil)
#
Specifies whether to overwrite the existing value if the destination key already exists. The
default is false