

# UpdateKeyValueStore


Specifies the key value store to update.

## Request Syntax


```
PUT /2020-05-31/key-value-store/Name HTTP/1.1
If-Match: IfMatch
<?xml version="1.0" encoding="UTF-8"?>
<UpdateKeyValueStoreRequest xmlns="http://cloudfront.amazonaws.com/doc/2020-05-31/">
   <Comment>string</Comment>
</UpdateKeyValueStoreRequest>
```

## URI Request Parameters


The request uses the following URI parameters.

 ** [If-Match](#API_UpdateKeyValueStore_RequestSyntax) **   <a name="cloudfront-UpdateKeyValueStore-request-IfMatch"></a>
The key value store to update, if a match occurs.  
Required: Yes

 ** [Name](#API_UpdateKeyValueStore_RequestSyntax) **   <a name="cloudfront-UpdateKeyValueStore-request-uri-Name"></a>
The name of the key value store to update.  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[a-zA-Z0-9-_]{1,64}`   
Required: Yes

## Request Body


The request accepts the following data in XML format.

 ** [UpdateKeyValueStoreRequest](#API_UpdateKeyValueStore_RequestSyntax) **   <a name="cloudfront-UpdateKeyValueStore-request-UpdateKeyValueStoreRequest"></a>
Root level tag for the UpdateKeyValueStoreRequest parameters.  
Required: Yes

 ** [Comment](#API_UpdateKeyValueStore_RequestSyntax) **   <a name="cloudfront-UpdateKeyValueStore-request-Comment"></a>
The comment of the key value store to update.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 128.  
Required: Yes

## Response Syntax


```
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<KeyValueStore>
   <ARN>string</ARN>
   <Comment>string</Comment>
   <Id>string</Id>
   <LastModifiedTime>timestamp</LastModifiedTime>
   <Name>string</Name>
   <Status>string</Status>
</KeyValueStore>
```

## Response Elements


If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service.

 ** [KeyValueStore](#API_UpdateKeyValueStore_ResponseSyntax) **   <a name="cloudfront-UpdateKeyValueStore-response-KeyValueStore"></a>
Root level tag for the KeyValueStore parameters.  
Required: Yes

 ** [ARN](#API_UpdateKeyValueStore_ResponseSyntax) **   <a name="cloudfront-UpdateKeyValueStore-response-ARN"></a>
The Amazon Resource Name (ARN) of the key value store.  
Type: String

 ** [Comment](#API_UpdateKeyValueStore_ResponseSyntax) **   <a name="cloudfront-UpdateKeyValueStore-response-Comment"></a>
A comment for the key value store.  
Type: String

 ** [Id](#API_UpdateKeyValueStore_ResponseSyntax) **   <a name="cloudfront-UpdateKeyValueStore-response-Id"></a>
The unique Id for the key value store.  
Type: String

 ** [LastModifiedTime](#API_UpdateKeyValueStore_ResponseSyntax) **   <a name="cloudfront-UpdateKeyValueStore-response-LastModifiedTime"></a>
The last-modified time of the key value store.  
Type: Timestamp

 ** [Name](#API_UpdateKeyValueStore_ResponseSyntax) **   <a name="cloudfront-UpdateKeyValueStore-response-Name"></a>
The name of the key value store.  
Type: String

 ** [Status](#API_UpdateKeyValueStore_ResponseSyntax) **   <a name="cloudfront-UpdateKeyValueStore-response-Status"></a>
The status of the key value store.  
Type: String

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDenied **   
Access denied.  
HTTP Status Code: 403

 ** EntityNotFound **   
The entity was not found.  
HTTP Status Code: 404

 ** InvalidArgument **   
An argument is invalid.  
HTTP Status Code: 400

 ** InvalidIfMatchVersion **   
The `If-Match` version is missing or not valid.  
HTTP Status Code: 400

 ** PreconditionFailed **   
The precondition in one or more of the request fields evaluated to `false`.  
HTTP Status Code: 412

 ** UnsupportedOperation **   
This operation is not supported in this Amazon Web Services Region.  
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon Command Line Interface V2](https://docs.amazonaws.cn/goto/cli2/cloudfront-2020-05-31/UpdateKeyValueStore) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/cloudfront-2020-05-31/UpdateKeyValueStore) 
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/cloudfront-2020-05-31/UpdateKeyValueStore) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/cloudfront-2020-05-31/UpdateKeyValueStore) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/cloudfront-2020-05-31/UpdateKeyValueStore) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/cloudfront-2020-05-31/UpdateKeyValueStore) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/cloudfront-2020-05-31/UpdateKeyValueStore) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/cloudfront-2020-05-31/UpdateKeyValueStore) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/cloudfront-2020-05-31/UpdateKeyValueStore) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/cloudfront-2020-05-31/UpdateKeyValueStore) 