/// <summary> /// Updates a specified host with the provided configurations. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateHost 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 UpdateHost service method, as returned by CodeStarconnections.</returns> /// <exception cref="Amazon.CodeStarconnections.Model.ConflictException"> /// Two conflicting operations have been made on the same resource. /// </exception> /// <exception cref="Amazon.CodeStarconnections.Model.ResourceNotFoundException"> /// Resource not found. Verify the connection resource ARN and try again. /// </exception> /// <exception cref="Amazon.CodeStarconnections.Model.ResourceUnavailableException"> /// Resource not found. Verify the ARN for the host resource and try again. /// </exception> /// <exception cref="Amazon.CodeStarconnections.Model.UnsupportedOperationException"> /// The operation is not supported. Check the connection status and try again. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateHost">REST API Reference for UpdateHost Operation</seealso> public virtual Task <UpdateHostResponse> UpdateHostAsync(UpdateHostRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateHostRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateHostResponseUnmarshaller.Instance; return(InvokeAsync <UpdateHostResponse>(request, options, cancellationToken)); }
internal virtual UpdateHostResponse UpdateHost(UpdateHostRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateHostRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateHostResponseUnmarshaller.Instance; return(Invoke <UpdateHostResponse>(request, options)); }