:doc:`ChimeSDKMessaging <../../chime-sdk-messaging>` / Client / create_channel_moderator

************************
create_channel_moderator
************************



.. py:method:: ChimeSDKMessaging.Client.create_channel_moderator(**kwargs)

  

  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.
  

   

  .. note::

    

    The ``x-amz-chime-bearer`` request header is mandatory. Use the ARN of the ``AppInstanceUser`` or ``AppInstanceBot``of the user that makes the API call as the value in the header.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15/CreateChannelModerator>`_  


  **Request Syntax**
  ::

    response = client.create_channel_moderator(
        ChannelArn='string',
        ChannelModeratorArn='string',
        ChimeBearer='string'
    )
    
  :type ChannelArn: string
  :param ChannelArn: **[REQUIRED]** 

    The ARN of the channel.

    

  
  :type ChannelModeratorArn: string
  :param ChannelModeratorArn: **[REQUIRED]** 

    The ``AppInstanceUserArn`` of the moderator.

    

  
  :type ChimeBearer: string
  :param ChimeBearer: **[REQUIRED]** 

    The ARN of the ``AppInstanceUser`` or ``AppInstanceBot`` that makes the API call.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ChannelArn': 'string',
          'ChannelModerator': {
              'Arn': 'string',
              'Name': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ChannelArn** *(string) --* 

        The ARN of the channel.

        
      

      - **ChannelModerator** *(dict) --* 

        The ARNs of the channel and the moderator.

        
        

        - **Arn** *(string) --* 

          The ARN in an Identity.

          
        

        - **Name** *(string) --* 

          The name in an Identity.

          
    
  
  **Exceptions**
  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.BadRequestException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ForbiddenException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.UnauthorizedClientException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ConflictException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ResourceLimitExceededException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ThrottledClientException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ServiceFailureException`

  