dqmg80654 2019-02-22 22:38
浏览 52
已采纳

AWS Lambda ListVersionsByFunction返回的版本是否已排序?

When submitting a ListVersionsByFunction request to the AWS REST API is there any guarantee that the results will be sorted in any way?

If not, is there any way to get the most recent N versions without retrieving the entire list?

Without knowing this fact, I used to get the latest 1024 version (based on the assumption that it will take a long time for my code to generate that many versions) and sorted them in reverse order by some custom sorting function.

  • 写回答

1条回答 默认 最新

  • douliu7929 2019-02-23 01:21
    关注

    The first index in the resultset will be $LATEST, with subsequent versions in order from oldest to latest (e.g. sorted by Version, ascending).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 fluent无法启动
  • ¥15 孟德尔随机化r语言运行问题
  • ¥15 pyinstaller编译的时候出现No module named 'imp'
  • ¥15 nirs_kit中打码怎么看(打码文件是csv格式)
  • ¥15 怎么把多于硬盘空间放到根目录下
  • ¥15 Matlab问题解答有两个问题
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架
  • ¥15 有关sql server business intellige安装,包括SSDT、SSMS。