Class: AWSCDK::CE::CfnAnomalySubscription::ResourceTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CE::CfnAnomalySubscription::ResourceTagProperty
- Defined in:
- ce/cfn_anomaly_subscription.rb
Overview
The tag structure that contains a tag key and value.
Tagging is supported only for the following Cost Explorer resource types:
AnomalyMonitor,AnomalySubscription,CostCategory.
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:) ⇒ ResourceTagProperty
constructor
A new instance of ResourceTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ ResourceTagProperty
Returns a new instance of ResourceTagProperty.
605 606 607 608 609 610 |
# File 'ce/cfn_anomaly_subscription.rb', line 605 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 that's associated with the tag.
616 617 618 |
# File 'ce/cfn_anomaly_subscription.rb', line 616 def key @key end |
#value ⇒ String (readonly)
The value that's associated with the tag.
621 622 623 |
# File 'ce/cfn_anomaly_subscription.rb', line 621 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
623 624 625 626 627 628 |
# File 'ce/cfn_anomaly_subscription.rb', line 623 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
630 631 632 633 634 635 636 637 |
# File 'ce/cfn_anomaly_subscription.rb', line 630 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |