Class: AWSCDK::Budgets::CfnBudgetsAction::ResourceTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Budgets::CfnBudgetsAction::ResourceTagProperty
- Defined in:
- budgets/cfn_budgets_action.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:) ⇒ ResourceTagProperty
constructor
A new instance of ResourceTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ ResourceTagProperty
Returns a new instance of ResourceTagProperty.
784 785 786 787 788 789 |
# File 'budgets/cfn_budgets_action.rb', line 784 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.
795 796 797 |
# File 'budgets/cfn_budgets_action.rb', line 795 def key @key end |
#value ⇒ String (readonly)
The value that's associated with the tag.
800 801 802 |
# File 'budgets/cfn_budgets_action.rb', line 800 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
802 803 804 805 806 807 |
# File 'budgets/cfn_budgets_action.rb', line 802 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
809 810 811 812 813 814 815 816 |
# File 'budgets/cfn_budgets_action.rb', line 809 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |