| 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.AdminListGroupsForUser
Description
Lists the groups that the user belongs to.
Calling this action requires developer credentials.
This operation returns paginated results.
Synopsis
- data AdminListGroupsForUser = AdminListGroupsForUser' {}
- newAdminListGroupsForUser :: Text -> Text -> AdminListGroupsForUser
- adminListGroupsForUser_limit :: Lens' AdminListGroupsForUser (Maybe Natural)
- adminListGroupsForUser_nextToken :: Lens' AdminListGroupsForUser (Maybe Text)
- adminListGroupsForUser_username :: Lens' AdminListGroupsForUser Text
- adminListGroupsForUser_userPoolId :: Lens' AdminListGroupsForUser Text
- data AdminListGroupsForUserResponse = AdminListGroupsForUserResponse' {}
- newAdminListGroupsForUserResponse :: Int -> AdminListGroupsForUserResponse
- adminListGroupsForUserResponse_groups :: Lens' AdminListGroupsForUserResponse (Maybe [GroupType])
- adminListGroupsForUserResponse_nextToken :: Lens' AdminListGroupsForUserResponse (Maybe Text)
- adminListGroupsForUserResponse_httpStatus :: Lens' AdminListGroupsForUserResponse Int
Creating a Request
data AdminListGroupsForUser Source #
See: newAdminListGroupsForUser smart constructor.
Constructors
| AdminListGroupsForUser' | |
Fields
| |
Instances
newAdminListGroupsForUser Source #
Create a value of AdminListGroupsForUser 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:AdminListGroupsForUser', adminListGroupsForUser_limit - The limit of the request to list groups.
AdminListGroupsForUser, adminListGroupsForUser_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.
AdminListGroupsForUser, adminListGroupsForUser_username - The username for the user.
AdminListGroupsForUser, adminListGroupsForUser_userPoolId - The user pool ID for the user pool.
Request Lenses
adminListGroupsForUser_limit :: Lens' AdminListGroupsForUser (Maybe Natural) Source #
The limit of the request to list groups.
adminListGroupsForUser_nextToken :: 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.
adminListGroupsForUser_username :: Lens' AdminListGroupsForUser Text Source #
The username for the user.
adminListGroupsForUser_userPoolId :: Lens' AdminListGroupsForUser Text Source #
The user pool ID for the user pool.
Destructuring the Response
data AdminListGroupsForUserResponse Source #
See: newAdminListGroupsForUserResponse smart constructor.
Constructors
| AdminListGroupsForUserResponse' | |
Instances
newAdminListGroupsForUserResponse Source #
Create a value of AdminListGroupsForUserResponse 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:AdminListGroupsForUserResponse', adminListGroupsForUserResponse_groups - The groups that the user belongs to.
AdminListGroupsForUser, adminListGroupsForUserResponse_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:AdminListGroupsForUserResponse', adminListGroupsForUserResponse_httpStatus - The response's http status code.
Response Lenses
adminListGroupsForUserResponse_groups :: Lens' AdminListGroupsForUserResponse (Maybe [GroupType]) Source #
The groups that the user belongs to.
adminListGroupsForUserResponse_nextToken :: 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.
adminListGroupsForUserResponse_httpStatus :: Lens' AdminListGroupsForUserResponse Int Source #
The response's http status code.