Class: AWSCDK::AppMesh::CfnVirtualGateway::JsonFormatRefProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualGateway::JsonFormatRefProperty
- Defined in:
- app_mesh/cfn_virtual_gateway.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.
625 626 627 628 629 630 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 625 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.
636 637 638 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 636 def key @key end |
#value ⇒ String (readonly)
The specified value for the JSON.
641 642 643 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 641 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
643 644 645 646 647 648 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 643 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
650 651 652 653 654 655 656 657 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 650 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |