/// <summary> /// Deletes a client. /// </summary> /// <param name="clientArn">The ARN of the client to delete.</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 DeleteLunaClient service method, as returned by CloudHSM.</returns> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmInternalException"> /// Indicates that an internal error occurred. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.CloudHsmServiceException"> /// Indicates that an exception occurred in the AWS CloudHSM service. /// </exception> /// <exception cref="Amazon.CloudHSM.Model.InvalidRequestException"> /// Indicates that one or more of the request parameters are not valid. /// </exception> public Task <DeleteLunaClientResponse> DeleteLunaClientAsync(string clientArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteLunaClientRequest(); request.ClientArn = clientArn; return(DeleteLunaClientAsync(request, cancellationToken)); }
internal DeleteLunaClientResponse DeleteLunaClient(DeleteLunaClientRequest request) { var marshaller = new DeleteLunaClientRequestMarshaller(); var unmarshaller = DeleteLunaClientResponseUnmarshaller.Instance; return(Invoke <DeleteLunaClientRequest, DeleteLunaClientResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteLunaClient operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLunaClient operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <DeleteLunaClientResponse> DeleteLunaClientAsync(DeleteLunaClientRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteLunaClientRequestMarshaller(); var unmarshaller = DeleteLunaClientResponseUnmarshaller.Instance; return(InvokeAsync <DeleteLunaClientRequest, DeleteLunaClientResponse>(request, marshaller, unmarshaller, cancellationToken)); }