Class: AWSCDK::Budgets::CfnBudgetsAction::ResourceTagProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
budgets/cfn_budgets_action.rb

Overview

The tag structure that contains a tag key and value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ ResourceTagProperty

Returns a new instance of ResourceTagProperty.

Parameters:

  • key (String)

    The key that's associated with the tag.

  • value (String)

    The value that's associated with the tag.



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

#keyString (readonly)

The key that's associated with the tag.



795
796
797
# File 'budgets/cfn_budgets_action.rb', line 795

def key
  @key
end

#valueString (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_propertiesObject



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_jsiiObject



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