:doc:`CloudFront <../../cloudfront>` / Paginator / ListPublicKeys

**************
ListPublicKeys
**************



.. py:class:: CloudFront.Paginator.ListPublicKeys

  ::

    
    paginator = client.get_paginator('list_public_keys')

  
  

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

    Creates an iterator that will paginate through responses from :py:meth:`CloudFront.Client.list_public_keys`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListPublicKeys>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :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**

      
      ::

        {
            'PublicKeyList': {
                'NextMarker': 'string',
                'MaxItems': 123,
                'Quantity': 123,
                'Items': [
                    {
                        'Id': 'string',
                        'Name': 'string',
                        'CreatedTime': datetime(2015, 1, 1),
                        'EncodedKey': 'string',
                        'Comment': 'string'
                    },
                ]
            },
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **PublicKeyList** *(dict) --* 

          Returns a list of all public keys that have been added to CloudFront for this account.

          
          

          - **NextMarker** *(string) --* 

            If there are more elements to be listed, this element is present and contains the value that you can use for the ``Marker`` request parameter to continue listing your public keys where you left off.

            
          

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

            The maximum number of public keys you want in the response.

            
          

          - **Quantity** *(integer) --* 

            The number of public keys in the list.

            
          

          - **Items** *(list) --* 

            A list of public keys.

            
            

            - *(dict) --* 

              Contains information about a public key.

              
              

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

                The identifier of the public key.

                
              

              - **Name** *(string) --* 

                A name to help identify the public key.

                
              

              - **CreatedTime** *(datetime) --* 

                The date and time when the public key was uploaded.

                
              

              - **EncodedKey** *(string) --* 

                The public key.

                
              

              - **Comment** *(string) --* 

                A comment to describe the public key. The comment cannot be longer than 128 characters.

                
          
        
      
        

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

          A token to resume pagination.

          
    