:doc:`CloudFront <../../cloudfront>` / Client / update_trust_store

******************
update_trust_store
******************



.. py:method:: CloudFront.Client.update_trust_store(**kwargs)

  

  Updates a trust store.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateTrustStore>`_  


  **Request Syntax**
  ::

    response = client.update_trust_store(
        Id='string',
        CaCertificatesBundleSource={
            'CaCertificatesBundleS3Location': {
                'Bucket': 'string',
                'Key': 'string',
                'Region': 'string',
                'Version': 'string'
            }
        },
        IfMatch='string'
    )
    
  :type Id: string
  :param Id: **[REQUIRED]** 

    The trust store ID.

    

  
  :type CaCertificatesBundleSource: dict
  :param CaCertificatesBundleSource: **[REQUIRED]** 

    The CA certificates bundle source.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``CaCertificatesBundleS3Location``. 

  
    - **CaCertificatesBundleS3Location** *(dict) --* 

      The CA certificates bundle location in Amazon S3.

      

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

        The S3 bucket.

        

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

        The location's key.

        

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

        The location's Region.

        

      
      - **Version** *(string) --* 

        The location's version.

        

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

    The current version ( ``ETag`` value) of the trust store you are updating.

    

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

    
    ::

      {
          'TrustStore': {
              'Id': 'string',
              'Arn': 'string',
              'Name': 'string',
              'Status': 'pending'|'active'|'failed',
              'NumberOfCaCertificates': 123,
              'LastModifiedTime': datetime(2015, 1, 1),
              'Reason': 'string'
          },
          'ETag': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TrustStore** *(dict) --* 

        The trust store.

        
        

        - **Id** *(string) --* 

          The trust store's ID.

          
        

        - **Arn** *(string) --* 

          The trust store's Amazon Resource Name (ARN).

          
        

        - **Name** *(string) --* 

          The trust store's name.

          
        

        - **Status** *(string) --* 

          The trust store's status.

          
        

        - **NumberOfCaCertificates** *(integer) --* 

          The trust store's number of CA certificates.

          
        

        - **LastModifiedTime** *(datetime) --* 

          The trust store's last modified time.

          
        

        - **Reason** *(string) --* 

          The trust store's reason.

          
    
      

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

        The version identifier for the current version of the trust store.

        
  
  **Exceptions**
  
  *   :py:class:`CloudFront.Client.exceptions.PreconditionFailed`

  
  *   :py:class:`CloudFront.Client.exceptions.AccessDenied`

  
  *   :py:class:`CloudFront.Client.exceptions.EntityNotFound`

  
  *   :py:class:`CloudFront.Client.exceptions.InvalidArgument`

  
  *   :py:class:`CloudFront.Client.exceptions.InvalidIfMatchVersion`

  