internal CreateHsmResponse CreateHsm(CreateHsmRequest request) { var marshaller = new CreateHsmRequestMarshaller(); var unmarshaller = CreateHsmResponseUnmarshaller.Instance; return(Invoke <CreateHsmRequest, CreateHsmResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Creates a new hardware security module (HSM) in the specified AWS CloudHSM cluster. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateHsm service method.</param> /// /// <returns>The response from the CreateHsm service method, as returned by CloudHSMV2.</returns> /// <exception cref="Amazon.CloudHSMV2.Model.CloudHsmAccessDeniedException"> /// The request was rejected because the requester does not have permission to perform /// the requested operation. /// </exception> /// <exception cref="Amazon.CloudHSMV2.Model.CloudHsmInternalFailureException"> /// The request was rejected because of an AWS CloudHSM internal failure. The request /// can be retried. /// </exception> /// <exception cref="Amazon.CloudHSMV2.Model.CloudHsmInvalidRequestException"> /// The request was rejected because it is not a valid request. /// </exception> /// <exception cref="Amazon.CloudHSMV2.Model.CloudHsmResourceNotFoundException"> /// The request was rejected because it refers to a resource that cannot be found. /// </exception> /// <exception cref="Amazon.CloudHSMV2.Model.CloudHsmServiceException"> /// The request was rejected because an error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsm">REST API Reference for CreateHsm Operation</seealso> public virtual CreateHsmResponse CreateHsm(CreateHsmRequest request) { var marshaller = CreateHsmRequestMarshaller.Instance; var unmarshaller = CreateHsmResponseUnmarshaller.Instance; return(Invoke <CreateHsmRequest, CreateHsmResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the CreateHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateHsm 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 <CreateHsmResponse> CreateHsmAsync(CreateHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateHsmRequestMarshaller(); var unmarshaller = CreateHsmResponseUnmarshaller.Instance; return(InvokeAsync <CreateHsmRequest, CreateHsmResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the CreateHsm operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateHsm 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/CreateHsm">REST API Reference for CreateHsm Operation</seealso> public virtual Task <CreateHsmResponse> CreateHsmAsync(CreateHsmRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance; return(InvokeAsync <CreateHsmResponse>(request, options, cancellationToken)); }
internal virtual CreateHsmResponse CreateHsm(CreateHsmRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHsmRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHsmResponseUnmarshaller.Instance; return(Invoke <CreateHsmResponse>(request, options)); }