Class: AWSCDK::DevOpsAgent::CfnAssociation::KeyValuePairProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_association.rb

Overview

A key-value pair for tags.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ KeyValuePairProperty

Returns a new instance of KeyValuePairProperty.

Parameters:

  • key (String)

    The key name of the tag.

  • value (String)

    The value for the tag.



940
941
942
943
944
945
# File 'dev_ops_agent/cfn_association.rb', line 940

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 key name of the tag.



951
952
953
# File 'dev_ops_agent/cfn_association.rb', line 951

def key
  @key
end

#valueString (readonly)

The value for the tag.



956
957
958
# File 'dev_ops_agent/cfn_association.rb', line 956

def value
  @value
end

Class Method Details

.jsii_propertiesObject



958
959
960
961
962
963
# File 'dev_ops_agent/cfn_association.rb', line 958

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

Instance Method Details

#to_jsiiObject



965
966
967
968
969
970
971
972
# File 'dev_ops_agent/cfn_association.rb', line 965

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