:doc:`CloudFrontKeyValueStore <../../cloudfront-keyvaluestore>` / Client / list_keys

*********
list_keys
*********



.. py:method:: CloudFrontKeyValueStore.Client.list_keys(**kwargs)

  

  Returns a list of key value pairs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/ListKeys>`_  


  **Request Syntax**
  ::

    response = client.list_keys(
        KvsARN='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type KvsARN: string
  :param KvsARN: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Key Value Store.

    

  
  :type NextToken: string
  :param NextToken: 

    If nextToken is returned in the response, there are more results available. Make the next call using the returned token to retrieve the next page.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    Maximum number of results that are returned per call. The default is 10 and maximum allowed page is 50.

    

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

    
    ::

      {
          'NextToken': 'string',
          'Items': [
              {
                  'Key': 'string',
                  'Value': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        If nextToken is returned in the response, there are more results available. Make the next call using the returned token to retrieve the next page.

        
      

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

        Key value pairs

        
        

        - *(dict) --* 

          A key value pair.

          
          

          - **Key** *(string) --* 

            The key of the key value pair.

            
          

          - **Value** *(string) --* 

            The value of the key value pair.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`CloudFrontKeyValueStore.Client.exceptions.ConflictException`

  
  *   :py:class:`CloudFrontKeyValueStore.Client.exceptions.ValidationException`

  
  *   :py:class:`CloudFrontKeyValueStore.Client.exceptions.InternalServerException`

  
  *   :py:class:`CloudFrontKeyValueStore.Client.exceptions.ResourceNotFoundException`

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

  