| Copyright | (c) 2013-2017 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 |
Network.AWS.CognitoIdentityProvider.AdminListGroupsForUser
Description
Lists the groups that the user belongs to.
Requires developer credentials.
- adminListGroupsForUser :: Text -> Text -> AdminListGroupsForUser
- data AdminListGroupsForUser
- algfuNextToken :: Lens' AdminListGroupsForUser (Maybe Text)
- algfuLimit :: Lens' AdminListGroupsForUser (Maybe Natural)
- algfuUsername :: Lens' AdminListGroupsForUser Text
- algfuUserPoolId :: Lens' AdminListGroupsForUser Text
- adminListGroupsForUserResponse :: Int -> AdminListGroupsForUserResponse
- data AdminListGroupsForUserResponse
- algfursGroups :: Lens' AdminListGroupsForUserResponse [GroupType]
- algfursNextToken :: Lens' AdminListGroupsForUserResponse (Maybe Text)
- algfursResponseStatus :: Lens' AdminListGroupsForUserResponse Int
Creating a Request
adminListGroupsForUser Source #
Arguments
| :: Text | |
| -> Text | |
| -> AdminListGroupsForUser |
Creates a value of AdminListGroupsForUser with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
algfuNextToken- 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.algfuLimit- The limit of the request to list groups.algfuUsername- The username for the user.algfuUserPoolId- The user pool ID for the user pool.
data AdminListGroupsForUser Source #
See: adminListGroupsForUser smart constructor.
Instances
Request Lenses
algfuNextToken :: Lens' AdminListGroupsForUser (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.
algfuLimit :: Lens' AdminListGroupsForUser (Maybe Natural) Source #
The limit of the request to list groups.
algfuUsername :: Lens' AdminListGroupsForUser Text Source #
The username for the user.
algfuUserPoolId :: Lens' AdminListGroupsForUser Text Source #
The user pool ID for the user pool.
Destructuring the Response
adminListGroupsForUserResponse Source #
Arguments
| :: Int | |
| -> AdminListGroupsForUserResponse |
Creates a value of AdminListGroupsForUserResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
algfursGroups- The groups that the user belongs to.algfursNextToken- 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.algfursResponseStatus- -- | The response status code.
data AdminListGroupsForUserResponse Source #
See: adminListGroupsForUserResponse smart constructor.
Instances
Response Lenses
algfursGroups :: Lens' AdminListGroupsForUserResponse [GroupType] Source #
The groups that the user belongs to.
algfursNextToken :: Lens' AdminListGroupsForUserResponse (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.
algfursResponseStatus :: Lens' AdminListGroupsForUserResponse Int Source #
- - | The response status code.