Class: AWSCDK::Backup::CfnRestoreTestingSelection::KeyValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Backup::CfnRestoreTestingSelection::KeyValueProperty
- Defined in:
- backup/cfn_restore_testing_selection.rb
Overview
Pair of two related strings.
Allowed characters are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The tag key.
-
#value ⇒ String
readonly
The tag value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ KeyValueProperty
constructor
A new instance of KeyValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ KeyValueProperty
Returns a new instance of KeyValueProperty.
600 601 602 603 604 605 |
# File 'backup/cfn_restore_testing_selection.rb', line 600 def initialize(key:, value:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#key ⇒ String (readonly)
The tag key.
611 612 613 |
# File 'backup/cfn_restore_testing_selection.rb', line 611 def key @key end |
#value ⇒ String (readonly)
The tag value.
616 617 618 |
# File 'backup/cfn_restore_testing_selection.rb', line 616 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
618 619 620 621 622 623 |
# File 'backup/cfn_restore_testing_selection.rb', line 618 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
625 626 627 628 629 630 631 632 |
# File 'backup/cfn_restore_testing_selection.rb', line 625 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |