Skip to content

SpendGroup

Source code in docs_src/capo_budgets/types/spend_group.py
class SpendGroup(TypedDict, closed=True):
    keys: NotRequired["capo_budgets.types.spend_group_keys.SpendGroupKeys"]
    """<p>The values that identify the row, one for each entry in <code>GroupDefinitions</code>, in the same order. When you group by the budget's <code>SpendAttributions</code> key, the value is the ID of the principal. The list is empty for the total spend of a budget without <code>BudgetLimitDimensions</code>.</p>"""
    spend: NotRequired["capo_budgets.types.spend.Spend"]
    """<p>The spend of the row in the current period.</p>"""
    limit_status: NotRequired["capo_budgets.types.limit_status.LimitStatus"]
    """<p>Specifies whether the spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.</p>"""
    last_usage_time: NotRequired[
        "capo_budgets.types.generic_timestamp.GenericTimestamp"
    ]
    """<p>The time of the most recent usage that counts toward the row. Amazon Web Services Budgets doesn't return this field when the budget has no <code>BudgetLimitDimensions</code> or when the budget has no usage in the current period yet.</p>"""

keys instance-attribute

keys: NotRequired[SpendGroupKeys]

The values that identify the row, one for each entry in GroupDefinitions, in the same order. When you group by the budget's SpendAttributions key, the value is the ID of the principal. The list is empty for the total spend of a budget without BudgetLimitDimensions.

last_usage_time instance-attribute

last_usage_time: NotRequired[GenericTimestamp]

The time of the most recent usage that counts toward the row. Amazon Web Services Budgets doesn't return this field when the budget has no BudgetLimitDimensions or when the budget has no usage in the current period yet.

limit_status instance-attribute

limit_status: NotRequired[LimitStatus]

Specifies whether the spend has reached the budget limit that the row counts toward. That limit is the principal's own limit, or the limit of the whole budget.

spend instance-attribute

spend: NotRequired[Spend]

The spend of the row in the current period.