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 |
Lists the billing groups you have created.
Requires permission to access the ListBillingGroups action.
This operation returns paginated results.
Synopsis
- data ListBillingGroups = ListBillingGroups' {}
- newListBillingGroups :: ListBillingGroups
- listBillingGroups_namePrefixFilter :: Lens' ListBillingGroups (Maybe Text)
- listBillingGroups_nextToken :: Lens' ListBillingGroups (Maybe Text)
- listBillingGroups_maxResults :: Lens' ListBillingGroups (Maybe Natural)
- data ListBillingGroupsResponse = ListBillingGroupsResponse' {
- nextToken :: Maybe Text
- billingGroups :: Maybe [GroupNameAndArn]
- httpStatus :: Int
- newListBillingGroupsResponse :: Int -> ListBillingGroupsResponse
- listBillingGroupsResponse_nextToken :: Lens' ListBillingGroupsResponse (Maybe Text)
- listBillingGroupsResponse_billingGroups :: Lens' ListBillingGroupsResponse (Maybe [GroupNameAndArn])
- listBillingGroupsResponse_httpStatus :: Lens' ListBillingGroupsResponse Int
Creating a Request
data ListBillingGroups Source #
See: newListBillingGroups
smart constructor.
ListBillingGroups' | |
|
Instances
newListBillingGroups :: ListBillingGroups Source #
Create a value of ListBillingGroups
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:namePrefixFilter:ListBillingGroups'
, listBillingGroups_namePrefixFilter
- Limit the results to billing groups whose names have the given prefix.
$sel:nextToken:ListBillingGroups'
, listBillingGroups_nextToken
- To retrieve the next set of results, the nextToken
value from a
previous response; otherwise null to receive the first set of
results.
$sel:maxResults:ListBillingGroups'
, listBillingGroups_maxResults
- The maximum number of results to return per request.
Request Lenses
listBillingGroups_namePrefixFilter :: Lens' ListBillingGroups (Maybe Text) Source #
Limit the results to billing groups whose names have the given prefix.
listBillingGroups_nextToken :: Lens' ListBillingGroups (Maybe Text) Source #
To retrieve the next set of results, the nextToken
value from a
previous response; otherwise null to receive the first set of
results.
listBillingGroups_maxResults :: Lens' ListBillingGroups (Maybe Natural) Source #
The maximum number of results to return per request.
Destructuring the Response
data ListBillingGroupsResponse Source #
See: newListBillingGroupsResponse
smart constructor.
ListBillingGroupsResponse' | |
|
Instances
newListBillingGroupsResponse Source #
Create a value of ListBillingGroupsResponse
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:ListBillingGroups'
, listBillingGroupsResponse_nextToken
- The token to use to get the next set of results, or null if there
are no additional results.
$sel:billingGroups:ListBillingGroupsResponse'
, listBillingGroupsResponse_billingGroups
- The list of billing groups.
$sel:httpStatus:ListBillingGroupsResponse'
, listBillingGroupsResponse_httpStatus
- The response's http status code.
Response Lenses
listBillingGroupsResponse_nextToken :: Lens' ListBillingGroupsResponse (Maybe Text) Source #
The token to use to get the next set of results, or null if there are no additional results.
listBillingGroupsResponse_billingGroups :: Lens' ListBillingGroupsResponse (Maybe [GroupNameAndArn]) Source #
The list of billing groups.
listBillingGroupsResponse_httpStatus :: Lens' ListBillingGroupsResponse Int Source #
The response's http status code.