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

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

Transfers the specified certificate to the specified AWS account.

You can cancel the transfer until it is acknowledged by the recipient.

No notification is sent to the transfer destination's account. It is up to the caller to notify the transfer target.

The certificate being transferred must not be in the ACTIVE state. You can use the UpdateCertificate API to deactivate it.

The certificate must not have any policies attached to it. You can use the DetachPrincipalPolicy API to detach them.

/// The certificate operation is not allowed. /// /// 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 transfer the certificate because authorization policies are still attached. /// /// You are not authorized to perform this operation. ///
public TransferCertificateAsync ( string certificateId, string targetAwsAccount, System cancellationToken = default(CancellationToken) ) : Task
certificateId string The ID of the certificate.
targetAwsAccount string The AWS account.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<TransferCertificateResponse> TransferCertificateAsync(string certificateId, string targetAwsAccount, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new TransferCertificateRequest();
            request.CertificateId = certificateId;
            request.TargetAwsAccount = targetAwsAccount;
            return TransferCertificateAsync(request, cancellationToken);
        }

Same methods

AmazonIoTClient::TransferCertificateAsync ( TransferCertificateRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIoTClient