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