Class: AWSCDK::Budgets::CfnBudget::CostCategoryValuesProperty

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

Overview

The cost category values used for filtering the costs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CostCategoryValuesProperty.

Parameters:

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

    The unique name of the cost category.

  • 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 cost category.



753
754
755
756
757
758
759
760
# File 'budgets/cfn_budget.rb', line 753

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 unique name of the cost category.



766
767
768
# File 'budgets/cfn_budget.rb', line 766

def key
  @key
end

#match_optionsArray<String>? (readonly)

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



771
772
773
# File 'budgets/cfn_budget.rb', line 771

def match_options
  @match_options
end

#valuesArray<String>? (readonly)

The specific value of the cost category.



776
777
778
# File 'budgets/cfn_budget.rb', line 776

def values
  @values
end

Class Method Details

.jsii_propertiesObject



778
779
780
781
782
783
784
# File 'budgets/cfn_budget.rb', line 778

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

Instance Method Details

#to_jsiiObject



786
787
788
789
790
791
792
793
794
# File 'budgets/cfn_budget.rb', line 786

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