:doc:`Transfer <../../transfer>` / Client / update_certificate

******************
update_certificate
******************



.. py:method:: Transfer.Client.update_certificate(**kwargs)

  

  Updates the active and inactive dates for a certificate.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateCertificate>`_  


  **Request Syntax**
  ::

    response = client.update_certificate(
        CertificateId='string',
        ActiveDate=datetime(2015, 1, 1),
        InactiveDate=datetime(2015, 1, 1),
        Description='string'
    )
    
  :type CertificateId: string
  :param CertificateId: **[REQUIRED]** 

    The identifier of the certificate object that you are updating.

    

  
  :type ActiveDate: datetime
  :param ActiveDate: 

    An optional date that specifies when the certificate becomes active. If you do not specify a value, ``ActiveDate`` takes the same value as ``NotBeforeDate``, which is specified by the CA.

    

  
  :type InactiveDate: datetime
  :param InactiveDate: 

    An optional date that specifies when the certificate becomes inactive. If you do not specify a value, ``InactiveDate`` takes the same value as ``NotAfterDate``, which is specified by the CA.

    

  
  :type Description: string
  :param Description: 

    A short description to help identify the certificate.

    

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

    
    ::

      {
          'CertificateId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CertificateId** *(string) --* 

        Returns the identifier of the certificate object that you are updating.

        
  
  **Exceptions**
  
  *   :py:class:`Transfer.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Transfer.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Transfer.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Transfer.Client.exceptions.InternalServiceError`

  
  *   :py:class:`Transfer.Client.exceptions.ServiceUnavailableException`

  