| 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.CreateChannelModerator
Description
Creates a new ChannelModerator. A channel moderator can:
- Add and remove other members of the channel.
- Add and remove other moderators of the channel.
- Add and remove user bans for the channel.
- Redact messages in the channel.
- List messages in the 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 CreateChannelModerator = CreateChannelModerator' {}
- newCreateChannelModerator :: Text -> Text -> Text -> CreateChannelModerator
- createChannelModerator_channelArn :: Lens' CreateChannelModerator Text
- createChannelModerator_channelModeratorArn :: Lens' CreateChannelModerator Text
- createChannelModerator_chimeBearer :: Lens' CreateChannelModerator Text
- data CreateChannelModeratorResponse = CreateChannelModeratorResponse' {}
- newCreateChannelModeratorResponse :: Int -> CreateChannelModeratorResponse
- createChannelModeratorResponse_channelArn :: Lens' CreateChannelModeratorResponse (Maybe Text)
- createChannelModeratorResponse_channelModerator :: Lens' CreateChannelModeratorResponse (Maybe Identity)
- createChannelModeratorResponse_httpStatus :: Lens' CreateChannelModeratorResponse Int
Creating a Request
data CreateChannelModerator Source #
See: newCreateChannelModerator smart constructor.
Constructors
| CreateChannelModerator' | |
Fields
| |
Instances
newCreateChannelModerator Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateChannelModerator |
Create a value of CreateChannelModerator 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:
CreateChannelModerator, createChannelModerator_channelArn - The ARN of the channel.
$sel:channelModeratorArn:CreateChannelModerator', createChannelModerator_channelModeratorArn - The AppInstanceUserArn of the moderator.
$sel:chimeBearer:CreateChannelModerator', createChannelModerator_chimeBearer - The AppInstanceUserArn of the user that makes the API call.
Request Lenses
createChannelModerator_channelArn :: Lens' CreateChannelModerator Text Source #
The ARN of the channel.
createChannelModerator_channelModeratorArn :: Lens' CreateChannelModerator Text Source #
The AppInstanceUserArn of the moderator.
createChannelModerator_chimeBearer :: Lens' CreateChannelModerator Text Source #
The AppInstanceUserArn of the user that makes the API call.
Destructuring the Response
data CreateChannelModeratorResponse Source #
See: newCreateChannelModeratorResponse smart constructor.
Constructors
| CreateChannelModeratorResponse' | |
Fields
| |
Instances
newCreateChannelModeratorResponse Source #
Create a value of CreateChannelModeratorResponse 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:
CreateChannelModerator, createChannelModeratorResponse_channelArn - The ARN of the channel.
$sel:channelModerator:CreateChannelModeratorResponse', createChannelModeratorResponse_channelModerator - The ARNs of the channel and the moderator.
$sel:httpStatus:CreateChannelModeratorResponse', createChannelModeratorResponse_httpStatus - The response's http status code.
Response Lenses
createChannelModeratorResponse_channelArn :: Lens' CreateChannelModeratorResponse (Maybe Text) Source #
The ARN of the channel.
createChannelModeratorResponse_channelModerator :: Lens' CreateChannelModeratorResponse (Maybe Identity) Source #
The ARNs of the channel and the moderator.
createChannelModeratorResponse_httpStatus :: Lens' CreateChannelModeratorResponse Int Source #
The response's http status code.