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 |
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 -> CreateChannelModerator
- createChannelModerator_chimeBearer :: Lens' CreateChannelModerator (Maybe Text)
- createChannelModerator_channelArn :: Lens' CreateChannelModerator Text
- createChannelModerator_channelModeratorArn :: Lens' CreateChannelModerator Text
- data CreateChannelModeratorResponse = CreateChannelModeratorResponse' {}
- newCreateChannelModeratorResponse :: Int -> CreateChannelModeratorResponse
- createChannelModeratorResponse_channelModerator :: Lens' CreateChannelModeratorResponse (Maybe Identity)
- createChannelModeratorResponse_channelArn :: Lens' CreateChannelModeratorResponse (Maybe Text)
- createChannelModeratorResponse_httpStatus :: Lens' CreateChannelModeratorResponse Int
Creating a Request
data CreateChannelModerator Source #
See: newCreateChannelModerator
smart constructor.
CreateChannelModerator' | |
|
Instances
newCreateChannelModerator Source #
:: 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:
$sel:chimeBearer:CreateChannelModerator'
, createChannelModerator_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
$sel:channelArn:CreateChannelModerator'
, createChannelModerator_channelArn
- The ARN of the channel.
$sel:channelModeratorArn:CreateChannelModerator'
, createChannelModerator_channelModeratorArn
- The ARN of the moderator.
Request Lenses
createChannelModerator_chimeBearer :: Lens' CreateChannelModerator (Maybe Text) Source #
The AppInstanceUserArn
of the user that makes the API call.
createChannelModerator_channelArn :: Lens' CreateChannelModerator Text Source #
The ARN of the channel.
createChannelModerator_channelModeratorArn :: Lens' CreateChannelModerator Text Source #
The ARN of the moderator.
Destructuring the Response
data CreateChannelModeratorResponse Source #
See: newCreateChannelModeratorResponse
smart constructor.
CreateChannelModeratorResponse' | |
|
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:
$sel:channelModerator:CreateChannelModeratorResponse'
, createChannelModeratorResponse_channelModerator
- The ARNs of the channel and the moderator.
$sel:channelArn:CreateChannelModerator'
, createChannelModeratorResponse_channelArn
- The ARN of the channel.
$sel:httpStatus:CreateChannelModeratorResponse'
, createChannelModeratorResponse_httpStatus
- The response's http status code.
Response Lenses
createChannelModeratorResponse_channelModerator :: Lens' CreateChannelModeratorResponse (Maybe Identity) Source #
The ARNs of the channel and the moderator.
createChannelModeratorResponse_channelArn :: Lens' CreateChannelModeratorResponse (Maybe Text) Source #
The ARN of the channel.
createChannelModeratorResponse_httpStatus :: Lens' CreateChannelModeratorResponse Int Source #
The response's http status code.