| 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.IoT.ListBillingGroups
Description
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_maxResults :: Lens' ListBillingGroups (Maybe Natural)
- listBillingGroups_namePrefixFilter :: Lens' ListBillingGroups (Maybe Text)
- listBillingGroups_nextToken :: Lens' ListBillingGroups (Maybe Text)
- data ListBillingGroupsResponse = ListBillingGroupsResponse' {
- billingGroups :: Maybe [GroupNameAndArn]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListBillingGroupsResponse :: Int -> ListBillingGroupsResponse
- listBillingGroupsResponse_billingGroups :: Lens' ListBillingGroupsResponse (Maybe [GroupNameAndArn])
- listBillingGroupsResponse_nextToken :: Lens' ListBillingGroupsResponse (Maybe Text)
- listBillingGroupsResponse_httpStatus :: Lens' ListBillingGroupsResponse Int
Creating a Request
data ListBillingGroups Source #
See: newListBillingGroups smart constructor.
Constructors
| ListBillingGroups' | |
Fields
| |
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:maxResults:ListBillingGroups', listBillingGroups_maxResults - The maximum number of results to return per request.
$sel:namePrefixFilter:ListBillingGroups', listBillingGroups_namePrefixFilter - Limit the results to billing groups whose names have the given prefix.
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.
Request Lenses
listBillingGroups_maxResults :: Lens' ListBillingGroups (Maybe Natural) Source #
The maximum number of results to return per request.
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.
Destructuring the Response
data ListBillingGroupsResponse Source #
See: newListBillingGroupsResponse smart constructor.
Constructors
| ListBillingGroupsResponse' | |
Fields
| |
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:billingGroups:ListBillingGroupsResponse', listBillingGroupsResponse_billingGroups - The list of billing groups.
ListBillingGroups, listBillingGroupsResponse_nextToken - The token to use to get the next set of results, or null if there
are no additional results.
$sel:httpStatus:ListBillingGroupsResponse', listBillingGroupsResponse_httpStatus - The response's http status code.
Response Lenses
listBillingGroupsResponse_billingGroups :: Lens' ListBillingGroupsResponse (Maybe [GroupNameAndArn]) Source #
The list of billing groups.
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_httpStatus :: Lens' ListBillingGroupsResponse Int Source #
The response's http status code.