Class: AWSCDK::AppMesh::CfnVirtualGateway::JsonFormatRefProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_virtual_gateway.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.



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

#keyString (readonly)

The specified key for the JSON.



636
637
638
# File 'app_mesh/cfn_virtual_gateway.rb', line 636

def key
  @key
end

#valueString (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_propertiesObject



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_jsiiObject



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