aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

[V2] Add warning for invalid max-items value

Open aemous opened this issue 1 year ago • 2 comments

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.

aemous avatar Aug 08 '24 16:08 aemous

Iterated on all requested feedback. If this looks good I'll open a V1 version with the same code. @hssyoo

aemous avatar Sep 18 '24 16:09 aemous

Iterated on all requested feedback. If this looks good I'll open a V1 version with the same code. @hssyoo

aemous avatar Sep 18 '24 20:09 aemous