Class: AWSCDK::Budgets::CfnBudget::ResourceTagProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
budgets/cfn_budget.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: nil) ⇒ ResourceTagProperty

Returns a new instance of ResourceTagProperty.

Parameters:

  • key (String)

    The key that's associated with the tag.

  • value (String, nil) (defaults to: nil)

    The value that's associated with the tag.



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

#keyString (readonly)

The key that's associated with the tag.



1272
1273
1274
# File 'budgets/cfn_budget.rb', line 1272

def key
  @key
end

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



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_jsiiObject



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