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

*******
get_key
*******



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

  

  Returns a key value pair.

  

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


  **Request Syntax**
  ::

    response = client.get_key(
        KvsARN='string',
        Key='string'
    )
    
  :type KvsARN: string
  :param KvsARN: **[REQUIRED]** 

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

    

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

    The key to get.

    

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

    
    ::

      {
          'Key': 'string',
          'Value': 'string',
          'ItemCount': 123,
          'TotalSizeInBytes': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 

      A key value pair.

      
      

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

        The key of the key value pair.

        
      

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

        The value of the key value pair.

        
      

      - **ItemCount** *(integer) --* 

        Number of key value pairs in the Key Value Store.

        
      

      - **TotalSizeInBytes** *(integer) --* 

        Total size of the Key Value Store in bytes.

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

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

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

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

  