Giter VIP home page Giter VIP logo

Comments (2)

RyanFitzSimmonsAK avatar RyanFitzSimmonsAK commented on June 4, 2024 1

Hi @iainelder, thanks for reaching out. There's a few different things going on here to result in this behavior.

The AWS CLI documentation generally will hide service pagination parameters in favor of its own parameters ( --max-items being one such parameter). There are plenty of examples of this, such as describe-instances hiding max-results, or list-roles hiding marker. This is done so that pagination using the CLI is normalized across services. However, the CLI doesn't actually stop those parameters from being sent, hence why max-keys is functional for the S3 operations.

As I'm sure you saw in the issues you linked, there's some weird behavior around operations with multiple paginatable keys. list-object-versions has three, seen here. In the event of multiple paginatable keys, --max-items only applies to the first in that list. So that's why we're in situation where this undocumented parameter is sometimes more useful than the pagination parameters we replaced it with.

We do already have a backlog item to better document this behavior by clarifying which response element is affected by --max-items. I've raised this issue with the team. Given that this is a duplicate issue, I'm going to close this in favor of the older issue (#2555). Hope that helps, and please let me know if you have any further questions.

from aws-cli.

github-actions avatar github-actions commented on June 4, 2024

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

from aws-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.