From 07030ac4fab7b2835a4a451c25595a25608a6027 Mon Sep 17 00:00:00 2001 From: Salar Nosrati-Ershad Date: Sat, 6 Aug 2022 07:59:19 +0430 Subject: [PATCH] examples/boto3: add ListObjectsV2Request shape to boto3 sdk extras with AllowUnordered as member feat: add ListObjectsV2Request shape to boto3 sdk extras with AllowUnordered as member feat: add list-objects-v2 unordered supports to doc Signed-off-by: Salar Nosrati-Ershad --- examples/boto3/README.md | 5 +++++ examples/boto3/service-2.sdk-extras.json | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/examples/boto3/README.md b/examples/boto3/README.md index 52f43746d98..dde9edf4f10 100644 --- a/examples/boto3/README.md +++ b/examples/boto3/README.md @@ -14,6 +14,11 @@ The standard [AWS CLI](https://docs.aws.amazon.com/cli/latest/) may also be used aws --endpoint-url http://localhost:8000 s3api list-objects --bucket=mybucket --allow-unordered ``` +- Unordered listing (version 2): +``` +aws --endpoint-url http://localhost:8000 s3api list-objects-v2 --bucket=mybucket --allow-unordered +``` + - Topic creation with endpoint: ``` aws --endpoint-url http://localhost:8000 sns create-topic --name=mytopic --attributes='{"push-endpoint": "amqp://localhost:5672", "amqp-exchange": "ex1", "amqp-ack-level": "broker"}' diff --git a/examples/boto3/service-2.sdk-extras.json b/examples/boto3/service-2.sdk-extras.json index 9ee66730e85..d660b6a0242 100644 --- a/examples/boto3/service-2.sdk-extras.json +++ b/examples/boto3/service-2.sdk-extras.json @@ -36,6 +36,16 @@ } } }, + "ListObjectsV2Request": { + "members": { + "AllowUnordered": { + "shape":"AllowUnordered", + "documentation":"

Allow the listing results to be returned in unsorted order. This may be faster when listing very large buckets.

", + "location":"querystring", + "locationName":"allow-unordered" + } + } + }, "AllowUnordered":{"type":"boolean"}, "PutObjectRequest": { "members": { -- 2.39.5