Class: AWSCDK::Backup::CfnRestoreTestingSelection::KeyValueProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ KeyValueProperty

Returns a new instance of KeyValueProperty.

Parameters:

  • key (String)

    The tag key.

  • value (String)

    The tag value.



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

#keyString (readonly)

The tag key.



611
612
613
# File 'backup/cfn_restore_testing_selection.rb', line 611

def key
  @key
end

#valueString (readonly)

The tag value.



616
617
618
# File 'backup/cfn_restore_testing_selection.rb', line 616

def value
  @value
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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