| 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.CognitoIdentityProvider.ListGroups
Description
Lists the groups associated with a user pool.
Calling this action requires developer credentials.
This operation returns paginated results.
Synopsis
- data ListGroups = ListGroups' {}
- newListGroups :: Text -> ListGroups
- listGroups_limit :: Lens' ListGroups (Maybe Natural)
- listGroups_nextToken :: Lens' ListGroups (Maybe Text)
- listGroups_userPoolId :: Lens' ListGroups Text
- data ListGroupsResponse = ListGroupsResponse' {}
- newListGroupsResponse :: Int -> ListGroupsResponse
- listGroupsResponse_groups :: Lens' ListGroupsResponse (Maybe [GroupType])
- listGroupsResponse_nextToken :: Lens' ListGroupsResponse (Maybe Text)
- listGroupsResponse_httpStatus :: Lens' ListGroupsResponse Int
Creating a Request
data ListGroups Source #
See: newListGroups smart constructor.
Constructors
| ListGroups' | |
Instances
Arguments
| :: Text | |
| -> ListGroups |
Create a value of ListGroups 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:limit:ListGroups', listGroups_limit - The limit of the request to list groups.
ListGroups, listGroups_nextToken - An identifier that was returned from the previous call to this
operation, which can be used to return the next set of items in the
list.
ListGroups, listGroups_userPoolId - The user pool ID for the user pool.
Request Lenses
listGroups_limit :: Lens' ListGroups (Maybe Natural) Source #
The limit of the request to list groups.
listGroups_nextToken :: Lens' ListGroups (Maybe Text) Source #
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
listGroups_userPoolId :: Lens' ListGroups Text Source #
The user pool ID for the user pool.
Destructuring the Response
data ListGroupsResponse Source #
See: newListGroupsResponse smart constructor.
Constructors
| ListGroupsResponse' | |
Instances
newListGroupsResponse Source #
Arguments
| :: Int | |
| -> ListGroupsResponse |
Create a value of ListGroupsResponse 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:groups:ListGroupsResponse', listGroupsResponse_groups - The group objects for the groups.
ListGroups, listGroupsResponse_nextToken - An identifier that was returned from the previous call to this
operation, which can be used to return the next set of items in the
list.
$sel:httpStatus:ListGroupsResponse', listGroupsResponse_httpStatus - The response's http status code.
Response Lenses
listGroupsResponse_groups :: Lens' ListGroupsResponse (Maybe [GroupType]) Source #
The group objects for the groups.
listGroupsResponse_nextToken :: Lens' ListGroupsResponse (Maybe Text) Source #
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
listGroupsResponse_httpStatus :: Lens' ListGroupsResponse Int Source #
The response's http status code.