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 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 -> Text -> ListChannelMemberships
- listChannelMemberships_nextToken :: Lens' ListChannelMemberships (Maybe Text)
- listChannelMemberships_type :: Lens' ListChannelMemberships (Maybe ChannelMembershipType)
- listChannelMemberships_maxResults :: Lens' ListChannelMemberships (Maybe Natural)
- listChannelMemberships_channelArn :: Lens' ListChannelMemberships Text
- listChannelMemberships_chimeBearer :: Lens' ListChannelMemberships Text
- data ListChannelMembershipsResponse = ListChannelMembershipsResponse' {}
- newListChannelMembershipsResponse :: Int -> ListChannelMembershipsResponse
- listChannelMembershipsResponse_channelMemberships :: Lens' ListChannelMembershipsResponse (Maybe [ChannelMembershipSummary])
- listChannelMembershipsResponse_channelArn :: Lens' ListChannelMembershipsResponse (Maybe Text)
- listChannelMembershipsResponse_nextToken :: Lens' ListChannelMembershipsResponse (Maybe Text)
- listChannelMembershipsResponse_httpStatus :: Lens' ListChannelMembershipsResponse Int
Creating a Request
data ListChannelMemberships Source #
See: newListChannelMemberships
smart constructor.
ListChannelMemberships' | |
|
Instances
newListChannelMemberships Source #
:: Text | |
-> 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:nextToken:ListChannelMemberships'
, listChannelMemberships_nextToken
- The token passed by previous API calls until all requested channel
memberships are returned.
$sel:type':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.
$sel:maxResults:ListChannelMemberships'
, listChannelMemberships_maxResults
- The maximum number of channel memberships that you want returned.
$sel:channelArn:ListChannelMemberships'
, listChannelMemberships_channelArn
- The maximum number of channel memberships that you want returned.
$sel:chimeBearer:ListChannelMemberships'
, listChannelMemberships_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
Request Lenses
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_maxResults :: Lens' ListChannelMemberships (Maybe Natural) Source #
The maximum number of channel memberships that you want returned.
listChannelMemberships_channelArn :: Lens' ListChannelMemberships Text Source #
The maximum number of channel memberships that you want returned.
listChannelMemberships_chimeBearer :: Lens' ListChannelMemberships Text Source #
The AppInstanceUserArn
of the user that makes the API call.
Destructuring the Response
data ListChannelMembershipsResponse Source #
See: newListChannelMembershipsResponse
smart constructor.
ListChannelMembershipsResponse' | |
|
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:
$sel:channelMemberships:ListChannelMembershipsResponse'
, listChannelMembershipsResponse_channelMemberships
- The information for the requested channel memberships.
$sel:channelArn:ListChannelMemberships'
, listChannelMembershipsResponse_channelArn
- The ARN of the channel.
$sel:nextToken: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_channelMemberships :: Lens' ListChannelMembershipsResponse (Maybe [ChannelMembershipSummary]) Source #
The information for the requested channel memberships.
listChannelMembershipsResponse_channelArn :: Lens' ListChannelMembershipsResponse (Maybe Text) Source #
The ARN of the channel.
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.