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 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_nextToken :: Lens' AdminListGroupsForUser (Maybe Text)
- adminListGroupsForUser_limit :: Lens' AdminListGroupsForUser (Maybe Natural)
- 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.
AdminListGroupsForUser' | |
|
Instances
newAdminListGroupsForUser Source #
:: Text | |
-> Text | |
-> AdminListGroupsForUser |
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:nextToken: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.
$sel:limit:AdminListGroupsForUser'
, adminListGroupsForUser_limit
- The limit of the request to list groups.
$sel:username:AdminListGroupsForUser'
, adminListGroupsForUser_username
- The username for the user.
$sel:userPoolId:AdminListGroupsForUser'
, adminListGroupsForUser_userPoolId
- The user pool ID for the user pool.
Request Lenses
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_limit :: Lens' AdminListGroupsForUser (Maybe Natural) Source #
The limit of the request to list groups.
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.
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.
$sel:nextToken: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.