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

***********
update_keys
***********



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

  

  Puts or Deletes multiple key value pairs in a single, all-or-nothing operation.

  

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


  **Request Syntax**
  ::

    response = client.update_keys(
        KvsARN='string',
        IfMatch='string',
        Puts=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ],
        Deletes=[
            {
                'Key': 'string'
            },
        ]
    )
    
  :type KvsARN: string
  :param KvsARN: **[REQUIRED]** 

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

    

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

    The current version (ETag) of the Key Value Store that you are updating keys of, which you can get using DescribeKeyValueStore.

    

  
  :type Puts: list
  :param Puts: 

    List of key value pairs to put.

    

  
    - *(dict) --* 

      List item for key value pair to put.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The key of the key value pair list item to put.

        

      
      - **Value** *(string) --* **[REQUIRED]** 

        The value for the key value pair to put.

        

      
    

  :type Deletes: list
  :param Deletes: 

    List of keys to delete.

    

  
    - *(dict) --* 

      List item for keys to delete.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The key of the key value pair to be deleted.

        

      
    

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

    
    ::

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

    

    - *(dict) --* 

      Metadata information about a Key Value Store.

      
      

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

        Number of key value pairs in the Key Value Store after the successful update.

        
      

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

        Total size of the Key Value Store after the successful update, in bytes.

        
      

      - **ETag** *(string) --* 

        The current version identifier of the Key Value Store after the successful update.

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

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

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

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

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

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

  