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 |
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
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 #
See: adminListGroupsForUser
smart constructor.
Instances
Request Lenses
algfuNextToken :: Lens' AdminListGroupsForUser (Maybe Text) #
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) #
The limit of the request to list groups.
algfuUsername :: Lens' AdminListGroupsForUser Text #
The username for the user.
algfuUserPoolId :: Lens' AdminListGroupsForUser Text #
The user pool ID for the user pool.
Destructuring the Response
adminListGroupsForUserResponse #
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 #
See: adminListGroupsForUserResponse
smart constructor.
Response Lenses
algfursGroups :: Lens' AdminListGroupsForUserResponse [GroupType] #
The groups that the user belongs to.
algfursNextToken :: Lens' AdminListGroupsForUserResponse (Maybe Text) #
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 #
- - | The response status code.