describe_budget_spend_for_principal
¶
describe_budget_spend_for_principal(
account_id: AccountId,
principal: SpendPrincipal,
*,
config_overrides: Optional[BudgetsClientConfig] = None,
max_results: Optional[MaxResultsDescribeBudgets] = None,
next_token: Optional[SpendPaginationToken] = None,
) -> DescribeBudgetSpendForPrincipalResponse
Describes one principal's spend in each user-based budget in the account, for each budget's current period. A user-based budget uses the PublicOnDemandCost or EstimatedContractedCost metric.
Results are paginated. Use the NextToken parameter to retrieve additional results.
Parameters:
-
account_id(AccountId) –The
accountIdthat is associated with the budgets. -
principal(SpendPrincipal) –The principal whose spend you want to describe.
-
max_results(Optional[MaxResultsDescribeBudgets], default:None) –The maximum number of results to return in one page. Valid range is 1 to 1000. If you don't specify
MaxResults, the default is 100. -
next_token(Optional[SpendPaginationToken], default:None) –The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
Raises:
-
AccessDeniedException–You are not authorized to use this operation with the given parameters.
-
ExpiredNextTokenException–The pagination token expired.
-
InternalErrorException–An error on the server occurred during the processing of your request. Try again later.
-
InvalidNextTokenException–The pagination token is invalid.
-
InvalidParameterException–An error on the client occurred. Typically, the cause is an invalid input value.
-
ThrottlingException–The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_budgets/_services/budgets.py
1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 | |