:doc:`QConnect <../../qconnect>` / Paginator / ListContents

************
ListContents
************



.. py:class:: QConnect.Paginator.ListContents

  ::

    
    paginator = client.get_paginator('list_contents')

  
  

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

    Creates an iterator that will paginate through responses from :py:meth:`QConnect.Client.list_contents`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/qconnect-2020-10-19/ListContents>`_    


    **Request Syntax**
    ::

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

      The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.

      

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

      
      ::

        {
            'contentSummaries': [
                {
                    'contentArn': 'string',
                    'contentId': 'string',
                    'knowledgeBaseArn': 'string',
                    'knowledgeBaseId': 'string',
                    'name': 'string',
                    'revisionId': 'string',
                    'title': 'string',
                    'contentType': 'string',
                    'status': 'CREATE_IN_PROGRESS'|'CREATE_FAILED'|'ACTIVE'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETED'|'UPDATE_FAILED',
                    'metadata': {
                        'string': 'string'
                    },
                    'tags': {
                        'string': 'string'
                    }
                },
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **contentSummaries** *(list) --* 

          Information about the content.

          
          

          - *(dict) --* 

            Summary information about the content.

            
            

            - **contentArn** *(string) --* 

              The Amazon Resource Name (ARN) of the content.

              
            

            - **contentId** *(string) --* 

              The identifier of the content.

              
            

            - **knowledgeBaseArn** *(string) --* 

              The Amazon Resource Name (ARN) of the knowledge base.

              
            

            - **knowledgeBaseId** *(string) --* 

              The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base.

              
            

            - **name** *(string) --* 

              The name of the content.

              
            

            - **revisionId** *(string) --* 

              The identifier of the revision of the content.

              
            

            - **title** *(string) --* 

              The title of the content.

              
            

            - **contentType** *(string) --* 

              The media type of the content.

              
            

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

              The status of the content.

              
            

            - **metadata** *(dict) --* 

              A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q in Connect, you can store an external version identifier as metadata to utilize for determining drift.

              
              

              - *(string) --* 
                

                - *(string) --* 
          
        
            

            - **tags** *(dict) --* 

              The tags used to organize, track, or control access for this resource.

              
              

              - *(string) --* 
                

                - *(string) --* 
          
        
        
      
        

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

          A token to resume pagination.

          
    