| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
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_nextToken :: Lens' DescribeBudgets (Maybe Text)
- describeBudgets_maxResults :: Lens' DescribeBudgets (Maybe Natural)
- describeBudgets_accountId :: Lens' DescribeBudgets Text
- data DescribeBudgetsResponse = DescribeBudgetsResponse' {}
- newDescribeBudgetsResponse :: Int -> DescribeBudgetsResponse
- describeBudgetsResponse_nextToken :: Lens' DescribeBudgetsResponse (Maybe Text)
- describeBudgetsResponse_budgets :: Lens' DescribeBudgetsResponse (Maybe [Budget])
- 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:nextToken: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:maxResults:DescribeBudgets', describeBudgets_maxResults - An optional integer that represents how many entries a paginated
response contains. The maximum is 100.
$sel:accountId:DescribeBudgets', describeBudgets_accountId - The accountId that is associated with the budgets that you want
descriptions of.
Request Lenses
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_maxResults :: Lens' DescribeBudgets (Maybe Natural) Source #
An optional integer that represents how many entries a paginated response contains. The maximum is 100.
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:nextToken:DescribeBudgets', describeBudgetsResponse_nextToken - The pagination token in the service response that indicates the next set
of results that you can retrieve.
$sel:budgets:DescribeBudgetsResponse', describeBudgetsResponse_budgets - A list of budgets.
$sel:httpStatus:DescribeBudgetsResponse', describeBudgetsResponse_httpStatus - The response's http status code.
Response Lenses
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_budgets :: Lens' DescribeBudgetsResponse (Maybe [Budget]) Source #
A list of budgets.
describeBudgetsResponse_httpStatus :: Lens' DescribeBudgetsResponse Int Source #
The response's http status code.