Class: AWSCDK::AppMesh::CfnVirtualNode::JsonFormatRefProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_virtual_node.rb

Overview

An object that represents the key value pairs for the JSON.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ JsonFormatRefProperty

Returns a new instance of JsonFormatRefProperty.

Parameters:

  • key (String)

    The specified key for the JSON.

  • value (String)

    The specified value for the JSON.



1331
1332
1333
1334
1335
1336
# File 'app_mesh/cfn_virtual_node.rb', line 1331

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 specified key for the JSON.



1342
1343
1344
# File 'app_mesh/cfn_virtual_node.rb', line 1342

def key
  @key
end

#valueString (readonly)

The specified value for the JSON.



1347
1348
1349
# File 'app_mesh/cfn_virtual_node.rb', line 1347

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1349
1350
1351
1352
1353
1354
# File 'app_mesh/cfn_virtual_node.rb', line 1349

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

Instance Method Details

#to_jsiiObject



1356
1357
1358
1359
1360
1361
1362
1363
# File 'app_mesh/cfn_virtual_node.rb', line 1356

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