Class: AWSCDK::AppMesh::CfnVirtualNode::AWSCloudMapInstanceAttributeProperty

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

Overview

An object that represents the AWS Cloud Map attribute information for your virtual node.

AWS Cloud Map is not available in the eu-south-1 Region.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ AWSCloudMapInstanceAttributeProperty

Returns a new instance of AWSCloudMapInstanceAttributeProperty.

Parameters:

  • key (String)

    The name of an AWS Cloud Map service instance attribute key.

  • value (String)

    The value of an AWS Cloud Map service instance attribute key.



666
667
668
669
670
671
# File 'app_mesh/cfn_virtual_node.rb', line 666

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 name of an AWS Cloud Map service instance attribute key.

Any AWS Cloud Map service instance that contains the specified key and value is returned.



679
680
681
# File 'app_mesh/cfn_virtual_node.rb', line 679

def key
  @key
end

#valueString (readonly)

The value of an AWS Cloud Map service instance attribute key.

Any AWS Cloud Map service instance that contains the specified key and value is returned.



686
687
688
# File 'app_mesh/cfn_virtual_node.rb', line 686

def value
  @value
end

Class Method Details

.jsii_propertiesObject



688
689
690
691
692
693
# File 'app_mesh/cfn_virtual_node.rb', line 688

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

Instance Method Details

#to_jsiiObject



695
696
697
698
699
700
701
702
# File 'app_mesh/cfn_virtual_node.rb', line 695

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