CloudFrontKeyValueStore / Client / update_keys
update_keys#
- CloudFrontKeyValueStore.Client.update_keys(**kwargs)#
Puts or Deletes multiple key value pairs in a single, all-or-nothing operation.
See also: AWS API Documentation
Request Syntax
response = client.update_keys( KvsARN='string', IfMatch='string', Puts=[ { 'Key': 'string', 'Value': 'string' }, ], Deletes=[ { 'Key': 'string' }, ] )
- Parameters:
KvsARN (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the Key Value Store.
IfMatch (string) –
[REQUIRED]
The current version (ETag) of the Key Value Store that you are updating keys of, which you can get using DescribeKeyValueStore.
Puts (list) –
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.
Deletes (list) –
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.
- Return type:
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
CloudFrontKeyValueStore.Client.exceptions.ConflictException
CloudFrontKeyValueStore.Client.exceptions.ValidationException
CloudFrontKeyValueStore.Client.exceptions.InternalServerException
CloudFrontKeyValueStore.Client.exceptions.ServiceQuotaExceededException
CloudFrontKeyValueStore.Client.exceptions.ResourceNotFoundException
CloudFrontKeyValueStore.Client.exceptions.AccessDeniedException