Class: Aws::Budgets::Types::ProductAttributeValues

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb

Overview

The product attribute values used for filtering the costs by key and value pairs. Product attributes are supported for Amazon Bedrock only.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#key ⇒ String

The name of the product attribute to filter on. Valid values are the following:

  • feature – The feature that was used, such as On-demand Inference.

  • inferenceType – The type of inference usage, such as Input tokens or Output tokens.

  • model – The model, such as Claude Sonnet 5 or Claude Haiku 4.5.

  • provider – The model provider, such as Anthropic, Cohere, or Amazon.

Keys are case-sensitive.

Returns:

  • (String)


1923
1924
1925
1926
1927
1928
1929
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 1923

class ProductAttributeValues < Struct.new(
  :key,
  :values,
  :match_options)
  SENSITIVE = []
  include Aws::Structure
end

#match_options ⇒ Array<String>

The match options for the ProductAttributes filter. Valid values:

  • ABSENT – Matches costs that have no value for the attribute.

  • CASE_SENSITIVE – Requires an exact case match.

  • EQUALS – Matches costs where the attribute equals the specified value.

Specify either EQUALS or ABSENT. You can add CASE_SENSITIVE to EQUALS, but you can't use it by itself or with ABSENT.

Returns:

  • (Array<String>)


1923
1924
1925
1926
1927
1928
1929
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 1923

class ProductAttributeValues < Struct.new(
  :key,
  :values,
  :match_options)
  SENSITIVE = []
  include Aws::Structure
end

#values ⇒ Array<String>

The specific values of the product attribute, such as Claude Sonnet 5 for the model key. Values are matched exactly.

Values is required unless MatchOptions is ABSENT. To match costs that have no value for the key, set MatchOptions to ABSENT and omit Values.

Returns:

  • (Array<String>)


1923
1924
1925
1926
1927
1928
1929
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 1923

class ProductAttributeValues < Struct.new(
  :key,
  :values,
  :match_options)
  SENSITIVE = []
  include Aws::Structure
end