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

********************
describe_channel_ban
********************



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

  

  Returns the full details of a channel ban.

   

  .. note::

    

    The ``x-amz-chime-bearer`` request header is mandatory. Use the ARN of the ``AppInstanceUser`` or ``AppInstanceBot`` 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/DescribeChannelBan>`_  


  **Request Syntax**
  ::

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

    The ARN of the channel from which the user is banned.

    

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

    The ``AppInstanceUserArn`` of the member being banned.

    

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

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

    

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

    
    ::

      {
          'ChannelBan': {
              'Member': {
                  'Arn': 'string',
                  'Name': 'string'
              },
              'ChannelArn': 'string',
              'CreatedTimestamp': datetime(2015, 1, 1),
              'CreatedBy': {
                  'Arn': 'string',
                  'Name': 'string'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ChannelBan** *(dict) --* 

        The details of the ban.

        
        

        - **Member** *(dict) --* 

          The member being banned from the channel.

          
          

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

            The ARN in an Identity.

            
          

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

            The name in an Identity.

            
      
        

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

          The ARN of the channel from which a member is being banned.

          
        

        - **CreatedTimestamp** *(datetime) --* 

          The time at which the ban was created.

          
        

        - **CreatedBy** *(dict) --* 

          The ``AppInstanceUser`` who created the ban.

          
          

          - **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.NotFoundException`

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

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

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

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

  