   GlobalSecondaryIndexDescription
   (as-map [d] {:name       (keyword (.getIndexName d))
                :size       (.getIndexSizeBytes d)
-               :throughput (as-map (.getProvisionedThroughput d))
                :item-count (.getItemCount d)
                :key-schema (as-map (.getKeySchema d))
-               :projection (as-map (.getProjection d))})
+               :projection (as-map (.getProjection d))
+               :throughput (as-map (.getProvisionedThroughput d))})
 
   ProvisionedThroughputDescription
   (as-map [d] {:read                (.getReadCapacityUnits d)

         (.setAttributeType (utils/enum key-type))))
     defs)))

(defn- local-indexes
  "[{:name _ :range-keydef _ :projection _} ...] indexes -> [LocalSecondaryIndex ...]"
  [hash-keydef indexes]
  (if indexes
    (mapv
      (fn [{index-name :name
            :keys      [range-keydef projection]
            :or        {projection :all}
            :as        index}]
        (assert (and index-name range-keydef projection)
                (str "Malformed index: " index))
        (doto (LocalSecondaryIndex.)
          (.setIndexName (name index-name))
          (.setKeySchema (key-schema hash-keydef range-keydef))

                     stitching.
    :return        - e/o #{:all-attributes :all-projected-attributes :count
                           [<attr> ...]}.
    :index         - Name of a local or global secondary index to query.
    :order         - Index scaning order e/o #{:asc :desc}.
    :limit         - Max num >=1 of items to eval (≠ num of matching items).
                     Useful to prevent harmful sudden bursts of read activity.
