官术网_书友最值得收藏!

Pagination

Results returned by the CLI tool are limited to 1,000 resources by default.

This is not normally an issue, but at a certain scale, you may run into pagination issues. A common example is files in an S3 bucket.

If you are absolutely sure you should be seeing a particular resource in a response but cannot, check your pagination. The resource may be included in the matching resources, just not in the part of the response that was returned to you.

The following options allow you to control the number and starting point of the results returned to you from the API:

  • --page-size: This limits how many resources will be displayed to you, but does not actually limit the number returned. The default number of items (that is, 1,000) will still be processed and returned to you.
  • --max-items: This sets an upper limit on how many items will actually be returned in the response. You may receive fewer items, but you will not receive more than this number.
  • --starting-token: This changes where the response starts. Use this to display subsequent results, beyond the first page.
aws s3 ls --bucket bucket-name --max-items 100 --starting-token None___100
主站蜘蛛池模板: 汉源县| 肥东县| 镇安县| 驻马店市| 商南县| 合川市| 文水县| 红安县| 阿拉善左旗| 庄河市| 邛崃市| 碌曲县| 额尔古纳市| 枝江市| 商南县| 清徐县| 双鸭山市| 耒阳市| 宜城市| 石棉县| 玉屏| 井陉县| 永吉县| 如皋市| 周口市| 荔波县| 营山县| 宁明县| 右玉县| 黔西| 江口县| 个旧市| 兴安县| 科技| 尼木县| 久治县| 葵青区| 克拉玛依市| 志丹县| 鄱阳县| 河北区|