libZSservicesZSamazonka-chime-sdk-messagingZSamazonka-chime-sdk-messaging
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data CreateChannelModerator Source #

See: newCreateChannelModerator smart constructor.

Constructors

CreateChannelModerator' 

Fields

Instances

Instances details
Eq CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

Read CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

Show CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

Generic CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

Associated Types

type Rep CreateChannelModerator :: Type -> Type #

NFData CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

Methods

rnf :: CreateChannelModerator -> () #

Hashable CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

ToJSON CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

AWSRequest CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

Associated Types

type AWSResponse CreateChannelModerator #

ToHeaders CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

ToPath CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

ToQuery CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

type Rep CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

type Rep CreateChannelModerator = D1 ('MetaData "CreateChannelModerator" "Amazonka.ChimeSDKMessaging.CreateChannelModerator" "libZSservicesZSamazonka-chime-sdk-messagingZSamazonka-chime-sdk-messaging" 'False) (C1 ('MetaCons "CreateChannelModerator'" 'PrefixI 'True) (S1 ('MetaSel ('Just "channelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "channelModeratorArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "chimeBearer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateChannelModerator Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

newCreateChannelModerator Source #

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:channelArn:CreateChannelModerator', createChannelModerator_channelArn - The ARN of the channel.

$sel:channelModeratorArn:CreateChannelModerator', createChannelModerator_channelModeratorArn - The ARN of the moderator.

$sel:chimeBearer:CreateChannelModerator', createChannelModerator_chimeBearer - The AppInstanceUserArn of the user that makes the API call.

Request Lenses

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

Instances details
Eq CreateChannelModeratorResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

Show CreateChannelModeratorResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

Generic CreateChannelModeratorResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

Associated Types

type Rep CreateChannelModeratorResponse :: Type -> Type #

NFData CreateChannelModeratorResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

type Rep CreateChannelModeratorResponse Source # 
Instance details

Defined in Amazonka.ChimeSDKMessaging.CreateChannelModerator

type Rep CreateChannelModeratorResponse = D1 ('MetaData "CreateChannelModeratorResponse" "Amazonka.ChimeSDKMessaging.CreateChannelModerator" "libZSservicesZSamazonka-chime-sdk-messagingZSamazonka-chime-sdk-messaging" 'False) (C1 ('MetaCons "CreateChannelModeratorResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "channelModerator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Identity)) :*: (S1 ('MetaSel ('Just "channelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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