Class: AWSCDK::DevOpsAgent::CfnAssociation::KeyValuePairProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAssociation::KeyValuePairProperty
- Defined in:
- dev_ops_agent/cfn_association.rb
Overview
A key-value pair for tags.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key name of the tag.
-
#value ⇒ String
readonly
The value for the tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ KeyValuePairProperty
constructor
A new instance of KeyValuePairProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ KeyValuePairProperty
Returns a new instance of KeyValuePairProperty.
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
#key ⇒ String (readonly)
The key name of the tag.
951 952 953 |
# File 'dev_ops_agent/cfn_association.rb', line 951 def key @key end |
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |