Class: AWSCDK::Logs::CfnTransformer::MoveKeyEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::MoveKeyEntryProperty
- Defined in:
- logs/cfn_transformer.rb
Overview
This object defines one key that will be moved with the moveKey processor.
Instance Attribute Summary collapse
-
#overwrite_if_exists ⇒ Boolean, ...
readonly
Specifies whether to overwrite the value if the destination key already exists.
-
#source ⇒ String
readonly
The key to move.
-
#target ⇒ String
readonly
The key to move to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source:, target:, overwrite_if_exists: nil) ⇒ MoveKeyEntryProperty
constructor
A new instance of MoveKeyEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source:, target:, overwrite_if_exists: nil) ⇒ MoveKeyEntryProperty
Returns a new instance of MoveKeyEntryProperty.
1091 1092 1093 1094 1095 1096 1097 1098 |
# File 'logs/cfn_transformer.rb', line 1091 def initialize(source:, target:, overwrite_if_exists: nil) @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") @target = target Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "target") @overwrite_if_exists = overwrite_if_exists Jsii::Type.check_type(@overwrite_if_exists, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "overwriteIfExists") unless @overwrite_if_exists.nil? end |
Instance Attribute Details
#overwrite_if_exists ⇒ Boolean, ... (readonly)
Specifies whether to overwrite the value if the destination key already exists.
If you omit this, the default is false .
1116 1117 1118 |
# File 'logs/cfn_transformer.rb', line 1116 def overwrite_if_exists @overwrite_if_exists end |
#source ⇒ String (readonly)
The key to move.
1104 1105 1106 |
# File 'logs/cfn_transformer.rb', line 1104 def source @source end |
#target ⇒ String (readonly)
The key to move to.
1109 1110 1111 |
# File 'logs/cfn_transformer.rb', line 1109 def target @target end |
Class Method Details
.jsii_properties ⇒ Object
1118 1119 1120 1121 1122 1123 1124 |
# File 'logs/cfn_transformer.rb', line 1118 def self.jsii_properties { :source => "source", :target => "target", :overwrite_if_exists => "overwriteIfExists", } end |
Instance Method Details
#to_jsii ⇒ Object
1126 1127 1128 1129 1130 1131 1132 1133 1134 |
# File 'logs/cfn_transformer.rb', line 1126 def to_jsii result = {} result.merge!({ "source" => @source, "target" => @target, "overwriteIfExists" => @overwrite_if_exists, }) result.compact end |