| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Budgets.DescribeBudgets
Description
Lists the budgets that are associated with an account.
The Request Syntax section shows the BudgetLimit syntax. For
PlannedBudgetLimits, see the
Examples
section.
This operation returns paginated results.
Synopsis
- data DescribeBudgets = DescribeBudgets' {}
- newDescribeBudgets :: Text -> DescribeBudgets
- describeBudgets_maxResults :: Lens' DescribeBudgets (Maybe Natural)
- describeBudgets_nextToken :: Lens' DescribeBudgets (Maybe Text)
- describeBudgets_accountId :: Lens' DescribeBudgets Text
- data DescribeBudgetsResponse = DescribeBudgetsResponse' {}
- newDescribeBudgetsResponse :: Int -> DescribeBudgetsResponse
- describeBudgetsResponse_budgets :: Lens' DescribeBudgetsResponse (Maybe [Budget])
- describeBudgetsResponse_nextToken :: Lens' DescribeBudgetsResponse (Maybe Text)
- describeBudgetsResponse_httpStatus :: Lens' DescribeBudgetsResponse Int
Creating a Request
data DescribeBudgets Source #
Request of DescribeBudgets
See: newDescribeBudgets smart constructor.
Constructors
| DescribeBudgets' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DescribeBudgets |
Create a value of DescribeBudgets with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maxResults:DescribeBudgets', describeBudgets_maxResults - An optional integer that represents how many entries a paginated
response contains. The maximum is 100.
DescribeBudgets, describeBudgets_nextToken - The pagination token that you include in your request to indicate the
next set of results that you want to retrieve.
$sel:accountId:DescribeBudgets', describeBudgets_accountId - The accountId that is associated with the budgets that you want
descriptions of.
Request Lenses
describeBudgets_maxResults :: Lens' DescribeBudgets (Maybe Natural) Source #
An optional integer that represents how many entries a paginated response contains. The maximum is 100.
describeBudgets_nextToken :: Lens' DescribeBudgets (Maybe Text) Source #
The pagination token that you include in your request to indicate the next set of results that you want to retrieve.
describeBudgets_accountId :: Lens' DescribeBudgets Text Source #
The accountId that is associated with the budgets that you want
descriptions of.
Destructuring the Response
data DescribeBudgetsResponse Source #
Response of DescribeBudgets
See: newDescribeBudgetsResponse smart constructor.
Constructors
| DescribeBudgetsResponse' | |
Instances
newDescribeBudgetsResponse Source #
Create a value of DescribeBudgetsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:budgets:DescribeBudgetsResponse', describeBudgetsResponse_budgets - A list of budgets.
DescribeBudgets, describeBudgetsResponse_nextToken - The pagination token in the service response that indicates the next set
of results that you can retrieve.
$sel:httpStatus:DescribeBudgetsResponse', describeBudgetsResponse_httpStatus - The response's http status code.
Response Lenses
describeBudgetsResponse_budgets :: Lens' DescribeBudgetsResponse (Maybe [Budget]) Source #
A list of budgets.
describeBudgetsResponse_nextToken :: Lens' DescribeBudgetsResponse (Maybe Text) Source #
The pagination token in the service response that indicates the next set of results that you can retrieve.
describeBudgetsResponse_httpStatus :: Lens' DescribeBudgetsResponse Int Source #
The response's http status code.