:doc:`WorkMail <../../workmail>` / Paginator / ListResourceDelegates

*********************
ListResourceDelegates
*********************



.. py:class:: WorkMail.Paginator.ListResourceDelegates

  ::

    
    paginator = client.get_paginator('list_resource_delegates')

  
  

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

    Creates an iterator that will paginate through responses from :py:meth:`WorkMail.Client.list_resource_delegates`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListResourceDelegates>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          OrganizationId='string',
          ResourceId='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type OrganizationId: string
    :param OrganizationId: **[REQUIRED]** 

      The identifier for the organization that contains the resource for which delegates are listed.

      

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

      The identifier for the resource whose delegates are listed.

       

      The identifier can accept *ResourceId*, *Resourcename*, or *email*. The following identity formats are available:

       

      
      * Resource ID: r-0123456789a0123456789b0123456789
       
      * Email address: resource@domain.tld
       
      * Resource name: resource
      

      

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

      
      ::

        {
            'Delegates': [
                {
                    'Id': 'string',
                    'Type': 'GROUP'|'USER'
                },
            ],
            
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **Delegates** *(list) --* 

          One page of the resource's delegates.

          
          

          - *(dict) --* 

            The name of the attribute, which is one of the values defined in the UserAttribute enumeration.

            
            

            - **Id** *(string) --* 

              The identifier for the user or group associated as the resource's delegate.

              
            

            - **Type** *(string) --* 

              The type of the delegate: user or group.

              
        
      
    