/// <summary> /// Updates an existing component. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</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 UpdateComponent service method, as returned by AmplifyUIBuilder.</returns> /// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException"> /// An internal error has occurred. Please retry your request. /// </exception> /// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException"> /// An invalid or out-of-range value was supplied for the input parameter. /// </exception> /// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException"> /// The resource specified in the request conflicts with an existing resource. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso> public virtual Task <UpdateComponentResponse> UpdateComponentAsync(UpdateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance; return(InvokeAsync <UpdateComponentResponse>(request, options, cancellationToken)); }
internal virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance; return(Invoke <UpdateComponentResponse>(request, options)); }
public async Task <IActionResult> Put([FromBody] UpdateComponentRequest request, Guid id) { var componentDto = _mapper.Map <ComponentDto>(request); componentDto.Id = id; await _componentService.UpdateAsync(componentDto); return(NoContent()); }
public UpdateComponentResponse UpdateComponent(UpdateComponentRequest request) { return(ExecuteAction <UpdateComponentResponse>(request)); }
public UpdateComponentResponse UpdateComponent(UpdateComponentRequest request) { return(Execute(() => InternalService.UpdateComponent(request))); }