| 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.Chime.ListChannelMemberships
Description
Lists all channel memberships in a channel.
The x-amz-chime-bearer request header is mandatory. Use the
AppInstanceUserArn of the user that makes the API call as the value in
the header.
Synopsis
- data ListChannelMemberships = ListChannelMemberships' {}
- newListChannelMemberships :: Text -> ListChannelMemberships
- listChannelMemberships_chimeBearer :: Lens' ListChannelMemberships (Maybe Text)
- listChannelMemberships_maxResults :: Lens' ListChannelMemberships (Maybe Natural)
- listChannelMemberships_nextToken :: Lens' ListChannelMemberships (Maybe Text)
- listChannelMemberships_type :: Lens' ListChannelMemberships (Maybe ChannelMembershipType)
- listChannelMemberships_channelArn :: Lens' ListChannelMemberships Text
- data ListChannelMembershipsResponse = ListChannelMembershipsResponse' {}
- newListChannelMembershipsResponse :: Int -> ListChannelMembershipsResponse
- listChannelMembershipsResponse_channelArn :: Lens' ListChannelMembershipsResponse (Maybe Text)
- listChannelMembershipsResponse_channelMemberships :: Lens' ListChannelMembershipsResponse (Maybe [ChannelMembershipSummary])
- listChannelMembershipsResponse_nextToken :: Lens' ListChannelMembershipsResponse (Maybe Text)
- listChannelMembershipsResponse_httpStatus :: Lens' ListChannelMembershipsResponse Int
Creating a Request
data ListChannelMemberships Source #
See: newListChannelMemberships smart constructor.
Constructors
| ListChannelMemberships' | |
Fields
| |
Instances
newListChannelMemberships Source #
Arguments
| :: Text | |
| -> ListChannelMemberships |
Create a value of ListChannelMemberships 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:chimeBearer:ListChannelMemberships', listChannelMemberships_chimeBearer - The AppInstanceUserArn of the user that makes the API call.
$sel:maxResults:ListChannelMemberships', listChannelMemberships_maxResults - The maximum number of channel memberships that you want returned.
ListChannelMemberships, listChannelMemberships_nextToken - The token passed by previous API calls until all requested channel
memberships are returned.
ListChannelMemberships, listChannelMemberships_type - The membership type of a user, DEFAULT or HIDDEN. Default members
are always returned as part of ListChannelMemberships. Hidden members
are only returned if the type filter in ListChannelMemberships equals
HIDDEN. Otherwise hidden members are not returned.
ListChannelMemberships, listChannelMemberships_channelArn - The maximum number of channel memberships that you want returned.
Request Lenses
listChannelMemberships_chimeBearer :: Lens' ListChannelMemberships (Maybe Text) Source #
The AppInstanceUserArn of the user that makes the API call.
listChannelMemberships_maxResults :: Lens' ListChannelMemberships (Maybe Natural) Source #
The maximum number of channel memberships that you want returned.
listChannelMemberships_nextToken :: Lens' ListChannelMemberships (Maybe Text) Source #
The token passed by previous API calls until all requested channel memberships are returned.
listChannelMemberships_type :: Lens' ListChannelMemberships (Maybe ChannelMembershipType) Source #
The membership type of a user, DEFAULT or HIDDEN. Default members
are always returned as part of ListChannelMemberships. Hidden members
are only returned if the type filter in ListChannelMemberships equals
HIDDEN. Otherwise hidden members are not returned.
listChannelMemberships_channelArn :: Lens' ListChannelMemberships Text Source #
The maximum number of channel memberships that you want returned.
Destructuring the Response
data ListChannelMembershipsResponse Source #
See: newListChannelMembershipsResponse smart constructor.
Constructors
| ListChannelMembershipsResponse' | |
Fields
| |
Instances
newListChannelMembershipsResponse Source #
Create a value of ListChannelMembershipsResponse 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:
ListChannelMemberships, listChannelMembershipsResponse_channelArn - The ARN of the channel.
$sel:channelMemberships:ListChannelMembershipsResponse', listChannelMembershipsResponse_channelMemberships - The information for the requested channel memberships.
ListChannelMemberships, listChannelMembershipsResponse_nextToken - The token passed by previous API calls until all requested channel
memberships are returned.
$sel:httpStatus:ListChannelMembershipsResponse', listChannelMembershipsResponse_httpStatus - The response's http status code.
Response Lenses
listChannelMembershipsResponse_channelArn :: Lens' ListChannelMembershipsResponse (Maybe Text) Source #
The ARN of the channel.
listChannelMembershipsResponse_channelMemberships :: Lens' ListChannelMembershipsResponse (Maybe [ChannelMembershipSummary]) Source #
The information for the requested channel memberships.
listChannelMembershipsResponse_nextToken :: Lens' ListChannelMembershipsResponse (Maybe Text) Source #
The token passed by previous API calls until all requested channel memberships are returned.
listChannelMembershipsResponse_httpStatus :: Lens' ListChannelMembershipsResponse Int Source #
The response's http status code.