Class: AWSCDK::Budgets::CfnBudget::ResourceTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Budgets::CfnBudget::ResourceTagProperty
- Defined in:
- budgets/cfn_budget.rb
Overview
The tag structure that contains a tag key and value.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key that's associated with the tag.
-
#value ⇒ String?
readonly
The value that's associated with the tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value: nil) ⇒ ResourceTagProperty
constructor
A new instance of ResourceTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value: nil) ⇒ ResourceTagProperty
Returns a new instance of ResourceTagProperty.
1261 1262 1263 1264 1265 1266 |
# File 'budgets/cfn_budget.rb', line 1261 def initialize(key:, value: nil) @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") unless @value.nil? end |
Instance Attribute Details
#key ⇒ String (readonly)
The key that's associated with the tag.
1272 1273 1274 |
# File 'budgets/cfn_budget.rb', line 1272 def key @key end |
#value ⇒ String? (readonly)
The value that's associated with the tag.
1277 1278 1279 |
# File 'budgets/cfn_budget.rb', line 1277 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1279 1280 1281 1282 1283 1284 |
# File 'budgets/cfn_budget.rb', line 1279 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1286 1287 1288 1289 1290 1291 1292 1293 |
# File 'budgets/cfn_budget.rb', line 1286 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |