protected UpdateComponentResponse updateComponent()

in aws-amplifyuibuilder-component/src/main/java/software/amazon/amplifyuibuilder/component/BaseHandlerStd.java [99:125]


    protected UpdateComponentResponse updateComponent (
        UpdateComponentRequest request,
        ProxyClient < AmplifyUiBuilderClient > client
  ){
      UpdateComponentResponse updateResponse;
      try {
        updateResponse =
            client.injectCredentialsAndInvokeV2(
                request,
                client.client()::updateComponent
            );
        return updateResponse;
      } catch (ResourceNotFoundException e) {
        throw new CfnNotFoundException(ResourceModel.TYPE_NAME, request.id());
      } catch (InternalServerException e) {
        throw new CfnInternalFailureException(e);
      } catch (InvalidParameterException e) {
        throw new CfnInvalidRequestException(e.getMessage(), e);
      } catch (final AmplifyUiBuilderException e) {
        if (e.statusCode() == HttpStatus.SC_NOT_FOUND || e.statusCode() == HttpStatus.SC_BAD_REQUEST) {
          throw new CfnNotFoundException(ResourceModel.TYPE_NAME, e.getMessage());
        }
        throw new CfnGeneralServiceException(ResourceModel.TYPE_NAME, e);
      } catch (final AwsServiceException e) {
        throw new CfnGeneralServiceException(ResourceModel.TYPE_NAME, e);
      }
    }