:doc:`RedshiftServerless <../../redshift-serverless>` / Paginator / ListManagedWorkgroups

*********************
ListManagedWorkgroups
*********************



.. py:class:: RedshiftServerless.Paginator.ListManagedWorkgroups

  ::

    
    paginator = client.get_paginator('list_managed_workgroups')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`RedshiftServerless.Client.list_managed_workgroups`.

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


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          sourceArn='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type sourceArn: string
    :param sourceArn: 

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

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

      
    
    
    :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) --* 

          A token to resume pagination.

          
    