Class: AWSCDK::LicenseManager::CfnLicense::MetadataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
license_manager/cfn_license.rb

Overview

Describes key/value pairs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:) ⇒ MetadataProperty

Returns a new instance of MetadataProperty.

Parameters:

  • name (String)

    The key name.

  • value (String)

    The value.



902
903
904
905
906
907
# File 'license_manager/cfn_license.rb', line 902

def initialize(name:, value:)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#nameString (readonly)

The key name.



913
914
915
# File 'license_manager/cfn_license.rb', line 913

def name
  @name
end

#valueString (readonly)

The value.



918
919
920
# File 'license_manager/cfn_license.rb', line 918

def value
  @value
end

Class Method Details

.jsii_propertiesObject



920
921
922
923
924
925
# File 'license_manager/cfn_license.rb', line 920

def self.jsii_properties
  {
    :name => "name",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



927
928
929
930
931
932
933
934
# File 'license_manager/cfn_license.rb', line 927

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "value" => @value,
  })
  result.compact
end