:doc:`RedshiftServerless <../../redshift-serverless>` / Client / list_managed_workgroups

***********************
list_managed_workgroups
***********************



.. py:method:: RedshiftServerless.Client.list_managed_workgroups(**kwargs)

  

  Returns information about a list of specified managed workgroups in your account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/redshift-serverless-2021-04-21/ListManagedWorkgroups>`_  


  **Request Syntax**
  ::

    response = client.list_managed_workgroups(
        maxResults=123,
        nextToken='string',
        sourceArn='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    An optional parameter that specifies the maximum number of results to return. You can use nextToken to display the next page of results.

    

  
  :type nextToken: string
  :param nextToken: 

    If your initial ListManagedWorkgroups operation returns a nextToken, you can include the returned nextToken in following ListManagedWorkgroups operations, which returns results in the next page.

    

  
  :type sourceArn: string
  :param sourceArn: 

    The Amazon Resource Name (ARN) for the managed workgroup in the Glue Data Catalog.

    

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

    
    ::

      {
          'managedWorkgroups': [
              {
                  'creationDate': datetime(2015, 1, 1),
                  'managedWorkgroupId': 'string',
                  'managedWorkgroupName': 'string',
                  'sourceArn': 'string',
                  'status': 'CREATING'|'DELETING'|'MODIFYING'|'AVAILABLE'|'NOT_AVAILABLE'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **managedWorkgroups** *(list) --* 

        The returned array of managed workgroups.

        
        

        - *(dict) --* 

          A collection of Amazon Redshift compute resources managed by Glue.

          
          

          - **creationDate** *(datetime) --* 

            The creation date of the managed workgroup.

            
          

          - **managedWorkgroupId** *(string) --* 

            The unique identifier of the managed workgroup.

            
          

          - **managedWorkgroupName** *(string) --* 

            The name of the managed workgroup.

            
          

          - **sourceArn** *(string) --* 

            The Amazon Resource Name (ARN) for the managed workgroup in the Glue Data Catalog.

            
          

          - **status** *(string) --* 

            The status of the managed workgroup.

            
      
    
      

      - **nextToken** *(string) --* 

        If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token.

        
  
  **Exceptions**
  
  *   :py:class:`RedshiftServerless.Client.exceptions.InternalServerException`

  
  *   :py:class:`RedshiftServerless.Client.exceptions.AccessDeniedException`

  