code: private String logAndGetAmazonServiceException(AmazonServiceException ase, String action) {
          String errorMessage = "AmazonServiceException: " + action + ". RequestId: " + ase.getRequestId() +
                                "\nHTTPStatusCode: " + ase.getStatusCode() + " AmazonErrorCode: " +
                                ase.getErrorCode();
          LOG.error(errorMessage, ase);
          return errorMessage;
      }
docs: Create generic error message for <code>AmazonServiceException</code>. Message include
  Action, RequestId, HTTPStatusCode, and AmazonErrorCode.