Constants used for properties of type CertificateStatus.
Inheritance: ConstantClass
Esempio n. 1
0
 /// <summary>
 /// Updates the status of the specified certificate. This operation is idempotent.
 /// 
 ///  
 /// <para>
 /// Moving a cert from the ACTIVE state (including REVOKED) will NOT disconnect currently-connected
 /// devices, although these devices will be unable to reconnect.
 /// </para>
 ///  
 /// <para>
 /// The ACTIVE state is required to authenticate devices connecting to AWS IoT using a
 /// certificate.
 /// </para>
 /// </summary>
 /// <param name="certificateId">The ID of the certificate.</param>
 /// <param name="newStatus">The new status. Note: setting the status to PENDING_TRANSFER will result in an exception being thrown. PENDING_TRANSFER is a status used internally by AWS IoT and is not meant to be used by developers.</param>
 /// <param name="cancellationToken">
 ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
 /// </param>
 /// 
 /// <returns>The response from the UpdateCertificate service method, as returned by IoT.</returns>
 /// <exception cref="Amazon.IoT.Model.CertificateStateException">
 /// The certificate operation is not allowed.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.InternalFailureException">
 /// An unexpected error has occurred.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.InvalidRequestException">
 /// The request is not valid.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.ResourceNotFoundException">
 /// The specified resource does not exist.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.ServiceUnavailableException">
 /// The service is temporarily unavailable.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.ThrottlingException">
 /// The rate exceeds the limit.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.UnauthorizedException">
 /// You are not authorized to perform this operation.
 /// </exception>
 public Task<UpdateCertificateResponse> UpdateCertificateAsync(string certificateId, CertificateStatus newStatus, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new UpdateCertificateRequest();
     request.CertificateId = certificateId;
     request.NewStatus = newStatus;
     return UpdateCertificateAsync(request, cancellationToken);
 }
Esempio n. 2
0
 /// <summary>
 /// Updates the status of the specified certificate. This operation is idempotent.
 /// 
 ///  
 /// <para>
 /// Moving a cert from the ACTIVE state (including REVOKED) will NOT disconnect currently-connected
 /// devices, although these devices will be unable to reconnect.
 /// </para>
 ///  
 /// <para>
 /// The ACTIVE state is required to authenticate devices connecting to AWS IoT using a
 /// certificate.
 /// </para>
 /// </summary>
 /// <param name="certificateId">The ID of the certificate.</param>
 /// <param name="newStatus">The new status. Note: setting the status to PENDING_TRANSFER will result in an exception being thrown. PENDING_TRANSFER is a status used internally by AWS IoT and is not meant to be used by developers.</param>
 /// 
 /// <returns>The response from the UpdateCertificate service method, as returned by IoT.</returns>
 /// <exception cref="Amazon.IoT.Model.CertificateStateException">
 /// The certificate operation is not allowed.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.InternalFailureException">
 /// An unexpected error has occurred.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.InvalidRequestException">
 /// The request is not valid.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.ResourceNotFoundException">
 /// The specified resource does not exist.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.ServiceUnavailableException">
 /// The service is temporarily unavailable.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.ThrottlingException">
 /// The rate exceeds the limit.
 /// </exception>
 /// <exception cref="Amazon.IoT.Model.UnauthorizedException">
 /// You are not authorized to perform this operation.
 /// </exception>
 public UpdateCertificateResponse UpdateCertificate(string certificateId, CertificateStatus newStatus)
 {
     var request = new UpdateCertificateRequest();
     request.CertificateId = certificateId;
     request.NewStatus = newStatus;
     return UpdateCertificate(request);
 }