`iot list-things-in-thing-group` enables pagination with the `--no-paginate` flag
- Dominant language
- Python
- Stars
- 17.3k
- Forks
- 4.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 13
Description
### Describe the bug
Can confirm I am getting the same behavior that was referenced in https://github.com/aws/aws-cli/issues/7529. When `iot list-things-in-thing-group` is called without the `--no-paginate` flag, then all results are returned from the CLI (several thousands in my case). Conversely, when `--no-paginate` is specified, the response is paginated and a `NextToken` is provided.
### Expected Behavior
- When the `--no-paginate` flag is included, the response is not paginated.
- When the `--no-paginate` flag is excluded, the response is paginated as documented
### Current Behavior
When the `--no-paginate flag is included, the response is paginated, as seen below:
```
aws iot list-things-in-thing-group --thing-group-name "ABC-123" --no-paginate
{
"things": [
"THING-123456",
.... 24 more things ....
],
"nextToken": "....."
}
```
Without the --no-paginate flag, it does not paginate and returns several thousand things.
### Reproduction Steps
1. Run `aws iot list-things-in-thing-group --thing-group-name --no-paginate`. Confirm that the result is paginated
2. Run `aws iot list-things-in-thing-group --thing-group-name ` without `--no-paginate`. Confirm that the result is not paginated
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### CLI version used
aws-cli/2.11.27 Python/3.11.3 Darwin/21.6.0 exe/x86_64 prompt/of
### Environment details (OS name and version, etc.)
MacOS Monterey 12.6.3
Contributor guide
Assessment
This issue has not been assessed yet.