describe_budgets
async
¶
describe_budgets(
account_id: AccountId,
*,
config_overrides: Optional[AsyncBudgetsClientConfig] = None,
max_results: Optional[MaxResultsDescribeBudgets] = None,
next_token: Optional[GenericString] = None,
show_filter_expression: Optional[NullableBoolean] = None,
metrics: Optional[MetricsFilter] = None,
) -> DescribeBudgetsResponse
Lists the budgets that are associated with an account.
The Request Syntax section shows the BudgetLimit syntax. For PlannedBudgetLimits, see the Examples section.
Parameters:
-
account_id(AccountId) –The
accountIdthat is associated with the budgets that you want to describe. -
max_results(Optional[MaxResultsDescribeBudgets], default:None) –An integer that represents how many budgets a paginated response contains. The default is 100.
-
next_token(Optional[GenericString], default:None) –The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
-
show_filter_expression(Optional[NullableBoolean], default:None) –Specifies whether the response includes the filter expression associated with the budgets. By showing the filter expression, you can see detailed filtering logic applied to the budgets, such as Amazon Web Services services or tags that are being tracked.
-
metrics(Optional[MetricsFilter], default:None) –The metrics to filter by. If you specify this parameter, the response includes only budgets that use one of the specified metrics.
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.
-
NotFoundException–We can’t locate the resource that you specified.
-
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/async_budgets.py
1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 | |