Class: AWSCDK::Budgets::CfnBudget::TagValuesProperty

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

Overview

The values that are available for a tag.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key: nil, match_options: nil, values: nil) ⇒ TagValuesProperty

Returns a new instance of TagValuesProperty.

Parameters:

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

    The key for the tag.

  • match_options (Array<String>, nil) (defaults to: nil)

    The match options that you can use to filter your results.

  • values (Array<String>, nil) (defaults to: nil)

    The specific value of the tag.



1410
1411
1412
1413
1414
1415
1416
1417
# File 'budgets/cfn_budget.rb', line 1410

def initialize(key: nil, match_options: nil, values: nil)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil?
  @match_options = match_options
  Jsii::Type.check_type(@match_options, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "matchOptions") unless @match_options.nil?
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") unless @values.nil?
end

Instance Attribute Details

#keyString? (readonly)

The key for the tag.



1423
1424
1425
# File 'budgets/cfn_budget.rb', line 1423

def key
  @key
end

#match_optionsArray<String>? (readonly)

The match options that you can use to filter your results.



1428
1429
1430
# File 'budgets/cfn_budget.rb', line 1428

def match_options
  @match_options
end

#valuesArray<String>? (readonly)

The specific value of the tag.



1433
1434
1435
# File 'budgets/cfn_budget.rb', line 1433

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1435
1436
1437
1438
1439
1440
1441
# File 'budgets/cfn_budget.rb', line 1435

def self.jsii_properties
  {
    :key => "key",
    :match_options => "matchOptions",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



1443
1444
1445
1446
1447
1448
1449
1450
1451
# File 'budgets/cfn_budget.rb', line 1443

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "matchOptions" => @match_options,
    "values" => @values,
  })
  result.compact
end