Class: AWSCDK::AppMesh::CfnVirtualNode::JsonFormatRefProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualNode::JsonFormatRefProperty
- Defined in:
- app_mesh/cfn_virtual_node.rb
Overview
An object that represents the key value pairs for the JSON.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The specified key for the JSON.
-
#value ⇒ String
readonly
The specified value for the JSON.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ JsonFormatRefProperty
constructor
A new instance of JsonFormatRefProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ JsonFormatRefProperty
Returns a new instance of JsonFormatRefProperty.
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
#key ⇒ String (readonly)
The specified key for the JSON.
1342 1343 1344 |
# File 'app_mesh/cfn_virtual_node.rb', line 1342 def key @key end |
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |