Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Returns a list of existing resource groups in your account.
This operation returns paginated results.
- listGroups :: ListGroups
- data ListGroups
- lgNextToken :: Lens' ListGroups (Maybe Text)
- lgMaxResults :: Lens' ListGroups (Maybe Natural)
- listGroupsResponse :: Int -> ListGroupsResponse
- data ListGroupsResponse
- lgrsGroups :: Lens' ListGroupsResponse [Group]
- lgrsNextToken :: Lens' ListGroupsResponse (Maybe Text)
- lgrsResponseStatus :: Lens' ListGroupsResponse Int
Creating a Request
listGroups :: ListGroups Source #
Creates a value of ListGroups
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lgNextToken
- The NextToken value that is returned in a paginatedListGroups
request. To get the next page of results, run the call again, add the NextToken parameter, and specify the NextToken value.lgMaxResults
- The maximum number of resource group results that are returned by ListGroups in paginated output. By default, this number is 50.
data ListGroups Source #
See: listGroups
smart constructor.
Request Lenses
lgNextToken :: Lens' ListGroups (Maybe Text) Source #
The NextToken value that is returned in a paginated ListGroups
request. To get the next page of results, run the call again, add the NextToken parameter, and specify the NextToken value.
lgMaxResults :: Lens' ListGroups (Maybe Natural) Source #
The maximum number of resource group results that are returned by ListGroups in paginated output. By default, this number is 50.
Destructuring the Response
Creates a value of ListGroupsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lgrsGroups
- A list of resource groups.lgrsNextToken
- The NextToken value to include in a subsequentListGroups
request, to get more results.lgrsResponseStatus
- -- | The response status code.
data ListGroupsResponse Source #
See: listGroupsResponse
smart constructor.
Response Lenses
lgrsGroups :: Lens' ListGroupsResponse [Group] Source #
A list of resource groups.
lgrsNextToken :: Lens' ListGroupsResponse (Maybe Text) Source #
The NextToken value to include in a subsequent ListGroups
request, to get more results.
lgrsResponseStatus :: Lens' ListGroupsResponse Int Source #
- - | The response status code.