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 the moderators for 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 ListChannelModerators = ListChannelModerators' {
- nextToken :: Maybe (Sensitive Text)
- maxResults :: Maybe Natural
- channelArn :: Text
- chimeBearer :: Text
- newListChannelModerators :: Text -> Text -> ListChannelModerators
- listChannelModerators_nextToken :: Lens' ListChannelModerators (Maybe Text)
- listChannelModerators_maxResults :: Lens' ListChannelModerators (Maybe Natural)
- listChannelModerators_channelArn :: Lens' ListChannelModerators Text
- listChannelModerators_chimeBearer :: Lens' ListChannelModerators Text
- data ListChannelModeratorsResponse = ListChannelModeratorsResponse' {}
- newListChannelModeratorsResponse :: Int -> ListChannelModeratorsResponse
- listChannelModeratorsResponse_channelArn :: Lens' ListChannelModeratorsResponse (Maybe Text)
- listChannelModeratorsResponse_nextToken :: Lens' ListChannelModeratorsResponse (Maybe Text)
- listChannelModeratorsResponse_channelModerators :: Lens' ListChannelModeratorsResponse (Maybe [ChannelModeratorSummary])
- listChannelModeratorsResponse_httpStatus :: Lens' ListChannelModeratorsResponse Int
Creating a Request
data ListChannelModerators Source #
See: newListChannelModerators
smart constructor.
ListChannelModerators' | |
|
Instances
newListChannelModerators Source #
:: Text | |
-> Text | |
-> ListChannelModerators |
Create a value of ListChannelModerators
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:ListChannelModerators'
, listChannelModerators_nextToken
- The token passed by previous API calls until all requested moderators
are returned.
$sel:maxResults:ListChannelModerators'
, listChannelModerators_maxResults
- The maximum number of moderators that you want returned.
$sel:channelArn:ListChannelModerators'
, listChannelModerators_channelArn
- The ARN of the channel.
$sel:chimeBearer:ListChannelModerators'
, listChannelModerators_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
Request Lenses
listChannelModerators_nextToken :: Lens' ListChannelModerators (Maybe Text) Source #
The token passed by previous API calls until all requested moderators are returned.
listChannelModerators_maxResults :: Lens' ListChannelModerators (Maybe Natural) Source #
The maximum number of moderators that you want returned.
listChannelModerators_channelArn :: Lens' ListChannelModerators Text Source #
The ARN of the channel.
listChannelModerators_chimeBearer :: Lens' ListChannelModerators Text Source #
The AppInstanceUserArn
of the user that makes the API call.
Destructuring the Response
data ListChannelModeratorsResponse Source #
See: newListChannelModeratorsResponse
smart constructor.
ListChannelModeratorsResponse' | |
|
Instances
newListChannelModeratorsResponse Source #
Create a value of ListChannelModeratorsResponse
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:channelArn:ListChannelModerators'
, listChannelModeratorsResponse_channelArn
- The ARN of the channel.
$sel:nextToken:ListChannelModerators'
, listChannelModeratorsResponse_nextToken
- The token passed by previous API calls until all requested moderators
are returned.
$sel:channelModerators:ListChannelModeratorsResponse'
, listChannelModeratorsResponse_channelModerators
- The information about and names of each moderator.
$sel:httpStatus:ListChannelModeratorsResponse'
, listChannelModeratorsResponse_httpStatus
- The response's http status code.
Response Lenses
listChannelModeratorsResponse_channelArn :: Lens' ListChannelModeratorsResponse (Maybe Text) Source #
The ARN of the channel.
listChannelModeratorsResponse_nextToken :: Lens' ListChannelModeratorsResponse (Maybe Text) Source #
The token passed by previous API calls until all requested moderators are returned.
listChannelModeratorsResponse_channelModerators :: Lens' ListChannelModeratorsResponse (Maybe [ChannelModeratorSummary]) Source #
The information about and names of each moderator.
listChannelModeratorsResponse_httpStatus :: Lens' ListChannelModeratorsResponse Int Source #
The response's http status code.