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 |
Returns an overview of the members of a group. Users and groups can be members of a group.
This operation returns paginated results.
Synopsis
- data ListGroupMembers = ListGroupMembers' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- organizationId :: Text
- groupId :: Text
- newListGroupMembers :: Text -> Text -> ListGroupMembers
- listGroupMembers_nextToken :: Lens' ListGroupMembers (Maybe Text)
- listGroupMembers_maxResults :: Lens' ListGroupMembers (Maybe Natural)
- listGroupMembers_organizationId :: Lens' ListGroupMembers Text
- listGroupMembers_groupId :: Lens' ListGroupMembers Text
- data ListGroupMembersResponse = ListGroupMembersResponse' {}
- newListGroupMembersResponse :: Int -> ListGroupMembersResponse
- listGroupMembersResponse_members :: Lens' ListGroupMembersResponse (Maybe [Member])
- listGroupMembersResponse_nextToken :: Lens' ListGroupMembersResponse (Maybe Text)
- listGroupMembersResponse_httpStatus :: Lens' ListGroupMembersResponse Int
Creating a Request
data ListGroupMembers Source #
See: newListGroupMembers
smart constructor.
ListGroupMembers' | |
|
Instances
:: Text | |
-> Text | |
-> ListGroupMembers |
Create a value of ListGroupMembers
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:ListGroupMembers'
, listGroupMembers_nextToken
- The token to use to retrieve the next page of results. The first call
does not contain any tokens.
$sel:maxResults:ListGroupMembers'
, listGroupMembers_maxResults
- The maximum number of results to return in a single call.
$sel:organizationId:ListGroupMembers'
, listGroupMembers_organizationId
- The identifier for the organization under which the group exists.
$sel:groupId:ListGroupMembers'
, listGroupMembers_groupId
- The identifier for the group to which the members (users or groups) are
associated.
Request Lenses
listGroupMembers_nextToken :: Lens' ListGroupMembers (Maybe Text) Source #
The token to use to retrieve the next page of results. The first call does not contain any tokens.
listGroupMembers_maxResults :: Lens' ListGroupMembers (Maybe Natural) Source #
The maximum number of results to return in a single call.
listGroupMembers_organizationId :: Lens' ListGroupMembers Text Source #
The identifier for the organization under which the group exists.
listGroupMembers_groupId :: Lens' ListGroupMembers Text Source #
The identifier for the group to which the members (users or groups) are associated.
Destructuring the Response
data ListGroupMembersResponse Source #
See: newListGroupMembersResponse
smart constructor.
Instances
newListGroupMembersResponse Source #
Create a value of ListGroupMembersResponse
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:members:ListGroupMembersResponse'
, listGroupMembersResponse_members
- The members associated to the group.
$sel:nextToken:ListGroupMembers'
, listGroupMembersResponse_nextToken
- The token to use to retrieve the next page of results. The first call
does not contain any tokens.
$sel:httpStatus:ListGroupMembersResponse'
, listGroupMembersResponse_httpStatus
- The response's http status code.
Response Lenses
listGroupMembersResponse_members :: Lens' ListGroupMembersResponse (Maybe [Member]) Source #
The members associated to the group.
listGroupMembersResponse_nextToken :: Lens' ListGroupMembersResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. The first call does not contain any tokens.
listGroupMembersResponse_httpStatus :: Lens' ListGroupMembersResponse Int Source #
The response's http status code.