Amazon.IoT.AmazonIoTClient.CancelCertificateTransferAsync C# (CSharp) Метод

CancelCertificateTransferAsync() публичный Метод

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, AWS 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.

/// An unexpected error has occurred. /// /// The request is not valid. /// /// The specified resource does not exist. /// /// The service is temporarily unavailable. /// /// The rate exceeds the limit. /// /// You can't revert the certificate transfer because the transfer is already complete. /// /// You are not authorized to perform this operation. ///
public CancelCertificateTransferAsync ( string certificateId, System cancellationToken = default(CancellationToken) ) : Task
certificateId string The ID of the certificate.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<CancelCertificateTransferResponse> CancelCertificateTransferAsync(string certificateId, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new CancelCertificateTransferRequest();
            request.CertificateId = certificateId;
            return CancelCertificateTransferAsync(request, cancellationToken);
        }

Same methods

AmazonIoTClient::CancelCertificateTransferAsync ( CancelCertificateTransferRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient