| 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.ServiceCatalog.ListBudgetsForResource
Description
Lists all the budgets associated to the specified resource.
Synopsis
- data ListBudgetsForResource = ListBudgetsForResource' {}
- newListBudgetsForResource :: Text -> ListBudgetsForResource
- listBudgetsForResource_acceptLanguage :: Lens' ListBudgetsForResource (Maybe Text)
- listBudgetsForResource_pageSize :: Lens' ListBudgetsForResource (Maybe Natural)
- listBudgetsForResource_pageToken :: Lens' ListBudgetsForResource (Maybe Text)
- listBudgetsForResource_resourceId :: Lens' ListBudgetsForResource Text
- data ListBudgetsForResourceResponse = ListBudgetsForResourceResponse' {
- budgets :: Maybe [BudgetDetail]
- nextPageToken :: Maybe Text
- httpStatus :: Int
- newListBudgetsForResourceResponse :: Int -> ListBudgetsForResourceResponse
- listBudgetsForResourceResponse_budgets :: Lens' ListBudgetsForResourceResponse (Maybe [BudgetDetail])
- listBudgetsForResourceResponse_nextPageToken :: Lens' ListBudgetsForResourceResponse (Maybe Text)
- listBudgetsForResourceResponse_httpStatus :: Lens' ListBudgetsForResourceResponse Int
Creating a Request
data ListBudgetsForResource Source #
See: newListBudgetsForResource smart constructor.
Constructors
| ListBudgetsForResource' | |
Fields
| |
Instances
newListBudgetsForResource Source #
Create a value of ListBudgetsForResource 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:acceptLanguage:ListBudgetsForResource', listBudgetsForResource_acceptLanguage - The language code.
en- English (default)jp- Japanesezh- Chinese
$sel:pageSize:ListBudgetsForResource', listBudgetsForResource_pageSize - The maximum number of items to return with this call.
$sel:pageToken:ListBudgetsForResource', listBudgetsForResource_pageToken - The page token for the next set of results. To retrieve the first set of
results, use null.
$sel:resourceId:ListBudgetsForResource', listBudgetsForResource_resourceId - The resource identifier.
Request Lenses
listBudgetsForResource_acceptLanguage :: Lens' ListBudgetsForResource (Maybe Text) Source #
The language code.
en- English (default)jp- Japanesezh- Chinese
listBudgetsForResource_pageSize :: Lens' ListBudgetsForResource (Maybe Natural) Source #
The maximum number of items to return with this call.
listBudgetsForResource_pageToken :: Lens' ListBudgetsForResource (Maybe Text) Source #
The page token for the next set of results. To retrieve the first set of results, use null.
listBudgetsForResource_resourceId :: Lens' ListBudgetsForResource Text Source #
The resource identifier.
Destructuring the Response
data ListBudgetsForResourceResponse Source #
See: newListBudgetsForResourceResponse smart constructor.
Constructors
| ListBudgetsForResourceResponse' | |
Fields
| |
Instances
newListBudgetsForResourceResponse Source #
Create a value of ListBudgetsForResourceResponse 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:ListBudgetsForResourceResponse', listBudgetsForResourceResponse_budgets - Information about the associated budgets.
$sel:nextPageToken:ListBudgetsForResourceResponse', listBudgetsForResourceResponse_nextPageToken - The page token to use to retrieve the next set of results. If there are
no additional results, this value is null.
$sel:httpStatus:ListBudgetsForResourceResponse', listBudgetsForResourceResponse_httpStatus - The response's http status code.
Response Lenses
listBudgetsForResourceResponse_budgets :: Lens' ListBudgetsForResourceResponse (Maybe [BudgetDetail]) Source #
Information about the associated budgets.
listBudgetsForResourceResponse_nextPageToken :: Lens' ListBudgetsForResourceResponse (Maybe Text) Source #
The page token to use to retrieve the next set of results. If there are no additional results, this value is null.
listBudgetsForResourceResponse_httpStatus :: Lens' ListBudgetsForResourceResponse Int Source #
The response's http status code.