:doc:`Chatbot <../../chatbot>` / Client / describe_slack_workspaces

*************************
describe_slack_workspaces
*************************



.. py:method:: Chatbot.Client.describe_slack_workspaces(**kwargs)

  

  List all authorized Slack workspaces connected to the AWS Account onboarded with AWS Chatbot.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/DescribeSlackWorkspaces>`_  


  **Request Syntax**
  ::

    response = client.describe_slack_workspaces(
        MaxResults=123,
        NextToken='string'
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

    

  
  :type NextToken: string
  :param NextToken: 

    An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.

    

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

    
    ::

      {
          'SlackWorkspaces': [
              {
                  'SlackTeamId': 'string',
                  'SlackTeamName': 'string',
                  'State': 'string',
                  'StateReason': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SlackWorkspaces** *(list) --* 

        A list of Slack workspaces registered with AWS Chatbot.

        
        

        - *(dict) --* 

          A Slack workspace.

          
          

          - **SlackTeamId** *(string) --* 

            The ID of the Slack workspace authorized with AWS Chatbot.

            
          

          - **SlackTeamName** *(string) --* 

            The name of the Slack workspace.

            
          

          - **State** *(string) --* 

            Either ``ENABLED`` or ``DISABLED``. The resource returns ``DISABLED`` if the organization's AWS Chatbot policy has explicitly denied that configuration. For example, if Amazon Chime is disabled.

            
          

          - **StateReason** *(string) --* 

            Provided if State is ``DISABLED``. Provides context as to why the resource is disabled.

            
      
    
      

      - **NextToken** *(string) --* 

        An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.

        
  
  **Exceptions**
  
  *   :py:class:`Chatbot.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Chatbot.Client.exceptions.DescribeSlackWorkspacesException`

  
  *   :py:class:`Chatbot.Client.exceptions.InvalidRequestException`

  