code: @Override
      public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest request) {
          request = beforeClientExecution(request);
          return executeUpdateEndpoint(request);
      }
docs: <p>
  Deploys the new <code>EndpointConfig</code> specified in the request, switches to using newly created endpoint,
  and then deletes resources provisioned for the endpoint using the previous <code>EndpointConfig</code> (there is
  no availability loss).
  </p>
  <p>
  When Amazon SageMaker receives the request, it sets the endpoint status to <code>Updating</code>. After updating
  the endpoint, it sets the status to <code>InService</code>. To check the status of an endpoint, use the <a
  href="https://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html">DescribeEndpoint</a> API.
  </p>
  <note>
  <p>
  You cannot update an endpoint with the current <code>EndpointConfig</code>. To update an endpoint, you must
  create a new <code>EndpointConfig</code>.
  </p>
  </note>
  
  @param updateEndpointRequest
  @return Result of the UpdateEndpoint operation returned by the service.
  @throws ResourceLimitExceededException
  You have exceeded an Amazon SageMaker resource limit. For example, you might have too many training jobs
  created.
  @sample AmazonSageMaker.UpdateEndpoint
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint" target="_top">AWS API
  Documentation</a>