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

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

Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE.

To check for pending certificate transfers, call ListCertificates to enumerate your certificates.

This operation can only be called by the transfer destination. After it is called, the certificate will be returned to the source's account in the INACTIVE state.

/// 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 RejectCertificateTransferAsync ( 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<RejectCertificateTransferResponse> RejectCertificateTransferAsync(string certificateId, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new RejectCertificateTransferRequest();
            request.CertificateId = certificateId;
            return RejectCertificateTransferAsync(request, cancellationToken);
        }

Same methods

AmazonIoTClient::RejectCertificateTransferAsync ( RejectCertificateTransferRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient