From 409f70c6c59f24fc952eafa3dd777459e535efbb Mon Sep 17 00:00:00 2001 From: AsyncAws <61784373+async-aws-bot@users.noreply.github.com> Date: Thu, 14 Nov 2024 23:57:33 -0800 Subject: [PATCH] Update generated code (#1800) update generated code --- CHANGELOG.md | 1 + src/Input/ListBucketsRequest.php | 4 ++++ src/S3Client.php | 10 ++++++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc431de..0041b86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Changed - use strict comparison `null !==` instead of `!` +- AWS enhancement: Documentation updates. ## 2.4.0 diff --git a/src/Input/ListBucketsRequest.php b/src/Input/ListBucketsRequest.php index 09e6418..affda1a 100644 --- a/src/Input/ListBucketsRequest.php +++ b/src/Input/ListBucketsRequest.php @@ -25,6 +25,10 @@ final class ListBucketsRequest extends Input * * Required: No. * + * > If you specify the `bucket-region`, `prefix`, or `continuation-token` query parameters without using `max-buckets` + * > to set the maximum number of buckets returned in the response, Amazon S3 applies a default page size of 10,000 and + * > provides a continuation token if there are more buckets. + * * @var string|null */ private $continuationToken; diff --git a/src/S3Client.php b/src/S3Client.php index b33e6d0..c5f095f 100644 --- a/src/S3Client.php +++ b/src/S3Client.php @@ -112,7 +112,7 @@ class S3Client extends AbstractApi * > - **Directory buckets** - If multipart uploads in a directory bucket are in progress, you can't delete the bucket * > until all the in-progress multipart uploads are aborted or completed. To delete these in-progress multipart * > uploads, use the `ListMultipartUploads` operation to list the in-progress multipart uploads in the bucket and use - * > the `AbortMultupartUpload` operation to abort all the in-progress multipart uploads. + * > the `AbortMultipartUpload` operation to abort all the in-progress multipart uploads. * > - **Directory buckets** - For directory buckets, you must make requests for this API operation to the Zonal * > endpoint. These endpoints support virtual-hosted-style requests in the format * > `https://*bucket_name*.s3express-*az_id*.*region*.amazonaws.com/*key-name*`. Path-style requests are not @@ -1716,6 +1716,12 @@ public function headObject($input): HeadObjectOutput * * For information about Amazon S3 buckets, see Creating, configuring, and working with Amazon S3 buckets [^1]. * + * ! We strongly recommend using only paginated requests. Unpaginated requests are only supported for Amazon Web + * ! Services accounts set to the default general purpose bucket quota of 10,000. If you have an approved general + * ! purpose bucket quota above 10,000, you must send paginated requests to list your account’s buckets. All + * ! unpaginated ListBuckets requests will be rejected for Amazon Web Services accounts with a general purpose bucket + * ! quota greater than 10,000. + * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html * * @see http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTServiceGET.html @@ -1745,7 +1751,7 @@ public function listBuckets($input = []): ListBucketsOutput * > **Directory buckets** - If multipart uploads in a directory bucket are in progress, you can't delete the bucket * > until all the in-progress multipart uploads are aborted or completed. To delete these in-progress multipart * > uploads, use the `ListMultipartUploads` operation to list the in-progress multipart uploads in the bucket and use - * > the `AbortMultupartUpload` operation to abort all the in-progress multipart uploads. + * > the `AbortMultipartUpload` operation to abort all the in-progress multipart uploads. * * The `ListMultipartUploads` operation returns a maximum of 1,000 multipart uploads in the response. The limit of 1,000 * multipart uploads is also the default value. You can further limit the number of uploads in a response by specifying