aws-cli
aws-cli copied to clipboard
[V2] Add warning for invalid max-items value
Description of changes: Explicitly warn users that we do not support non-positive values for the max-items global pagination argument.
Example output:
aws s3api list-objects --bucket bucket-123 --max-items 0
2024-08-08 12:11:58,993 - awscli.customizations.paginate - CRITICAL - Non-positive values for --max-items are unsupported and may yield undefined behavior.
{
"RequestCharged": null
}
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Iterated on all requested feedback. If this looks good I'll open a V1 version with the same code. @hssyoo
Iterated on all requested feedback. If this looks good I'll open a V1 version with the same code. @hssyoo