

# UpdateTrustStore


Updates a trust store.

## Request Syntax


```
PUT /2020-05-31/trust-store/Id HTTP/1.1
<?xml version="1.0" encoding="UTF-8"?>
<CaCertificatesBundleSource xmlns="http://cloudfront.amazonaws.com/doc/2020-05-31/">
   <CaCertificatesBundleS3Location>
      <Bucket>string</Bucket>
      <Key>string</Key>
      <Region>string</Region>
      <Version>string</Version>
   </CaCertificatesBundleS3Location>
</CaCertificatesBundleSource>
```

## URI Request Parameters


The request does not use any URI parameters.

## Request Body


The request accepts the following data in XML format.

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

 ** [CaCertificatesBundleS3Location](#API_UpdateTrustStore_RequestSyntax) **   <a name="cloudfront-UpdateTrustStore-request-CaCertificatesBundleS3Location"></a>
The CA certificates bundle location in Amazon S3.  
Type: [CaCertificatesBundleS3Location](API_CaCertificatesBundleS3Location.md) object  
Required: No

## Response Syntax


```
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<TrustStore>
   <Arn>string</Arn>
   <Id>string</Id>
   <LastModifiedTime>timestamp</LastModifiedTime>
   <Name>string</Name>
   <NumberOfCaCertificates>integer</NumberOfCaCertificates>
   <Reason>string</Reason>
   <Status>string</Status>
</TrustStore>
```

## 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.

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

 ** [Arn](#API_UpdateTrustStore_ResponseSyntax) **   <a name="cloudfront-UpdateTrustStore-response-Arn"></a>
The trust store's Amazon Resource Name (ARN).  
Type: String

 ** [Id](#API_UpdateTrustStore_ResponseSyntax) **   <a name="cloudfront-UpdateTrustStore-response-Id"></a>
The trust store's ID.  
Type: String

 ** [LastModifiedTime](#API_UpdateTrustStore_ResponseSyntax) **   <a name="cloudfront-UpdateTrustStore-response-LastModifiedTime"></a>
The trust store's last modified time.  
Type: Timestamp

 ** [Name](#API_UpdateTrustStore_ResponseSyntax) **   <a name="cloudfront-UpdateTrustStore-response-Name"></a>
The trust store's name.  
Type: String

 ** [NumberOfCaCertificates](#API_UpdateTrustStore_ResponseSyntax) **   <a name="cloudfront-UpdateTrustStore-response-NumberOfCaCertificates"></a>
The trust store's number of CA certificates.  
Type: Integer

 ** [Reason](#API_UpdateTrustStore_ResponseSyntax) **   <a name="cloudfront-UpdateTrustStore-response-Reason"></a>
The trust store's reason.  
Type: String

 ** [Status](#API_UpdateTrustStore_ResponseSyntax) **   <a name="cloudfront-UpdateTrustStore-response-Status"></a>
The trust store's status.  
Type: String  
Valid Values: `pending | active | failed` 

## 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

## 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/UpdateTrustStore) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/cloudfront-2020-05-31/UpdateTrustStore) 
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/cloudfront-2020-05-31/UpdateTrustStore) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/cloudfront-2020-05-31/UpdateTrustStore) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/cloudfront-2020-05-31/UpdateTrustStore) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/cloudfront-2020-05-31/UpdateTrustStore) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/cloudfront-2020-05-31/UpdateTrustStore) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/cloudfront-2020-05-31/UpdateTrustStore) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/cloudfront-2020-05-31/UpdateTrustStore) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/cloudfront-2020-05-31/UpdateTrustStore) 