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 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_nextToken :: Lens' ListGroups (Maybe Text)
- listGroups_limit :: Lens' ListGroups (Maybe Natural)
- 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.
Instances
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:nextToken: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.
$sel:limit:ListGroups'
, listGroups_limit
- The limit of the request to list groups.
$sel:userPoolId:ListGroups'
, listGroups_userPoolId
- The user pool ID for the user pool.
Request Lenses
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_limit :: Lens' ListGroups (Maybe Natural) Source #
The limit of the request to list groups.
listGroups_userPoolId :: Lens' ListGroups Text Source #
The user pool ID for the user pool.
Destructuring the Response
data ListGroupsResponse Source #
See: newListGroupsResponse
smart constructor.
Instances
newListGroupsResponse Source #
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.
$sel:nextToken: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.