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

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

Deletes the specified certificate.

A certificate cannot be deleted if it has a policy attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy API to detach all policies. Next, use the UpdateCertificate API to set the certificate to the INACTIVE status.

/// The certificate operation is not allowed. /// /// You can't delete the resource because it is attached to one or more resources. /// /// 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 are not authorized to perform this operation. ///
public DeleteCertificate ( string certificateId ) : DeleteCertificateResponse
certificateId string The ID of the certificate.
Результат DeleteCertificateResponse
        public DeleteCertificateResponse DeleteCertificate(string certificateId)
        {
            var request = new DeleteCertificateRequest();
            request.CertificateId = certificateId;
            return DeleteCertificate(request);
        }

Same methods

AmazonIoTClient::DeleteCertificate ( DeleteCertificateRequest request ) : DeleteCertificateResponse
AmazonIoTClient