Skip to content

ProductAttributeValues

Source code in docs_src/capo_budgets/types/product_attribute_values.py
class ProductAttributeValues(TypedDict, closed=True):
    key: "capo_budgets.types.product_attribute_name.ProductAttributeName"
    """<p>The name of the product attribute to filter on. Valid values are the following:</p> <ul> <li> <p> <code>feature</code> – The feature that was used, such as <code>On-demand Inference</code>.</p> </li> <li> <p> <code>inferenceType</code> – The type of inference usage, such as <code>Input tokens</code> or <code>Output tokens</code>.</p> </li> <li> <p> <code>model</code> – The model, such as <code>Claude Sonnet 5</code> or <code>Claude Haiku 4.5</code>.</p> </li> <li> <p> <code>provider</code> – The model provider, such as <code>Anthropic</code>, <code>Cohere</code>, or <code>Amazon</code>.</p> </li> </ul> <p>Keys are case-sensitive.</p>"""
    values: NotRequired["capo_budgets.types.values.Values"]
    """<p>The specific values of the product attribute, such as <code>Claude Sonnet 5</code> for the <code>model</code> key. Values are matched exactly.</p> <p> <code>Values</code> is required unless <code>MatchOptions</code> is <code>ABSENT</code>. To match costs that have no value for the key, set <code>MatchOptions</code> to <code>ABSENT</code> and omit <code>Values</code>.</p>"""
    match_options: NotRequired["capo_budgets.types.match_options.MatchOptions"]
    """<p>The match options for the <code>ProductAttributes</code> filter. Valid values:</p> <ul> <li> <p> <code>ABSENT</code> – Matches costs that have no value for the attribute.</p> </li> <li> <p> <code>CASE_SENSITIVE</code> – Requires an exact case match.</p> </li> <li> <p> <code>EQUALS</code> – Matches costs where the attribute equals the specified value.</p> </li> </ul> <p>Specify either <code>EQUALS</code> or <code>ABSENT</code>. You can add <code>CASE_SENSITIVE</code> to <code>EQUALS</code>, but you can't use it by itself or with <code>ABSENT</code>.</p>"""

key instance-attribute

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.

match_options instance-attribute

match_options: NotRequired[MatchOptions]

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.

values instance-attribute

values: NotRequired[Values]

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.