Class: AWSCDK::ResilienceHubv2::CfnService::ResourceTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ResilienceHubv2::CfnService::ResourceTagProperty
- Defined in:
- resilience_hubv2/cfn_service.rb
Overview
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
Tag key.
-
#values ⇒ Array<String>
readonly
Tag values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, values:) ⇒ ResourceTagProperty
constructor
A new instance of ResourceTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, values:) ⇒ ResourceTagProperty
Returns a new instance of ResourceTagProperty.
1137 1138 1139 1140 1141 1142 |
# File 'resilience_hubv2/cfn_service.rb', line 1137 def initialize(key:, values:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") end |
Instance Attribute Details
#key ⇒ String (readonly)
Tag key.
1148 1149 1150 |
# File 'resilience_hubv2/cfn_service.rb', line 1148 def key @key end |
#values ⇒ Array<String> (readonly)
Tag values.
1153 1154 1155 |
# File 'resilience_hubv2/cfn_service.rb', line 1153 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
1155 1156 1157 1158 1159 1160 |
# File 'resilience_hubv2/cfn_service.rb', line 1155 def self.jsii_properties { :key => "key", :values => "values", } end |
Instance Method Details
#to_jsii ⇒ Object
1162 1163 1164 1165 1166 1167 1168 1169 |
# File 'resilience_hubv2/cfn_service.rb', line 1162 def to_jsii result = {} result.merge!({ "key" => @key, "values" => @values, }) result.compact end |