Class: AWSCDK::Logs::CfnTransformer::CopyValueEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::CopyValueEntryProperty
- Defined in:
- logs/cfn_transformer.rb
Overview
This object defines one value to be copied with the copyValue 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 copy.
-
#target ⇒ String
readonly
The key of the field to copy the value to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source:, target:, overwrite_if_exists: nil) ⇒ CopyValueEntryProperty
constructor
A new instance of CopyValueEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source:, target:, overwrite_if_exists: nil) ⇒ CopyValueEntryProperty
Returns a new instance of CopyValueEntryProperty.
611 612 613 614 615 616 617 618 |
# File 'logs/cfn_transformer.rb', line 611 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 .
636 637 638 |
# File 'logs/cfn_transformer.rb', line 636 def overwrite_if_exists @overwrite_if_exists end |
#source ⇒ String (readonly)
The key to copy.
624 625 626 |
# File 'logs/cfn_transformer.rb', line 624 def source @source end |
#target ⇒ String (readonly)
The key of the field to copy the value to.
629 630 631 |
# File 'logs/cfn_transformer.rb', line 629 def target @target end |
Class Method Details
.jsii_properties ⇒ Object
638 639 640 641 642 643 644 |
# File 'logs/cfn_transformer.rb', line 638 def self.jsii_properties { :source => "source", :target => "target", :overwrite_if_exists => "overwriteIfExists", } end |
Instance Method Details
#to_jsii ⇒ Object
646 647 648 649 650 651 652 653 654 |
# File 'logs/cfn_transformer.rb', line 646 def to_jsii result = {} result.merge!({ "source" => @source, "target" => @target, "overwriteIfExists" => @overwrite_if_exists, }) result.compact end |