:doc:`IoT <../../iot>` / Client / cancel_certificate_transfer

***************************
cancel_certificate_transfer
***************************



.. py:method:: IoT.Client.cancel_certificate_transfer(**kwargs)

  

  Cancels a pending transfer for the specified certificate.

   

  **Note** Only the transfer source account can use this operation to cancel a transfer. (Transfer destinations can use  RejectCertificateTransfer instead.) After transfer, IoT returns the certificate to the source account in the INACTIVE state. After the destination account has accepted the transfer, the transfer cannot be cancelled.

   

  After a certificate transfer is cancelled, the status of the certificate changes from PENDING_TRANSFER to INACTIVE.

   

  Requires permission to access the `CancelCertificateTransfer <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/CancelCertificateTransfer>`_  


  **Request Syntax**
  ::

    response = client.cancel_certificate_transfer(
        certificateId='string'
    )
    
  :type certificateId: string
  :param certificateId: **[REQUIRED]** 

    The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`IoT.Client.exceptions.TransferAlreadyCompletedException`

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

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

  
  *   :py:class:`IoT.Client.exceptions.UnauthorizedException`

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

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  