diff --git a/manifest.json b/manifest.json index a23d5a2cd..1ce811749 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "variables": { - "${LATEST}": "3.339.11" + "${LATEST}": "3.339.14" }, "endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json", "services": { diff --git a/src/Service/RdsDataService/CHANGELOG.md b/src/Service/RdsDataService/CHANGELOG.md index 9f50c1a54..087a6a846 100644 --- a/src/Service/RdsDataService/CHANGELOG.md +++ b/src/Service/RdsDataService/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: Addded InvalidResourceStateException. + ## 2.2.1 ### Changed diff --git a/src/Service/RdsDataService/composer.json b/src/Service/RdsDataService/composer.json index 43b6f0cf7..02d24b6ff 100644 --- a/src/Service/RdsDataService/composer.json +++ b/src/Service/RdsDataService/composer.json @@ -29,7 +29,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.2-dev" + "dev-master": "2.3-dev" } } } diff --git a/src/Service/RdsDataService/src/Exception/DatabaseResumingException.php b/src/Service/RdsDataService/src/Exception/DatabaseResumingException.php index 9da115f8f..136a5c5ea 100644 --- a/src/Service/RdsDataService/src/Exception/DatabaseResumingException.php +++ b/src/Service/RdsDataService/src/Exception/DatabaseResumingException.php @@ -5,8 +5,8 @@ use AsyncAws\Core\Exception\Http\ClientException; /** - * A request was canceled because the Aurora Serverless v2 DB instance was in a paused state. The Data API request - * automatically causes the DB instance to begin resuming. Wait a few seconds and try again. + * A request was cancelled because the Aurora Serverless v2 DB instance was paused. The Data API request automatically + * resumes the DB instance. Wait a few seconds and try again. */ final class DatabaseResumingException extends ClientException { diff --git a/src/Service/RdsDataService/src/Exception/InvalidResourceStateException.php b/src/Service/RdsDataService/src/Exception/InvalidResourceStateException.php new file mode 100644 index 000000000..5f6ae0384 --- /dev/null +++ b/src/Service/RdsDataService/src/Exception/InvalidResourceStateException.php @@ -0,0 +1,12 @@ + DatabaseUnavailableException::class, 'TransactionNotFoundException' => TransactionNotFoundException::class, 'InvalidSecretException' => InvalidSecretException::class, + 'InvalidResourceStateException' => InvalidResourceStateException::class, 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, 'ForbiddenException' => ForbiddenException::class, 'DatabaseNotFoundException' => DatabaseNotFoundException::class, @@ -138,6 +141,7 @@ public function batchExecuteStatement($input): BatchExecuteStatementResponse * @throws DatabaseUnavailableException * @throws TransactionNotFoundException * @throws InvalidSecretException + * @throws InvalidResourceStateException * @throws ServiceUnavailableErrorException * @throws ForbiddenException * @throws DatabaseNotFoundException @@ -157,6 +161,7 @@ public function beginTransaction($input): BeginTransactionResponse 'DatabaseUnavailableException' => DatabaseUnavailableException::class, 'TransactionNotFoundException' => TransactionNotFoundException::class, 'InvalidSecretException' => InvalidSecretException::class, + 'InvalidResourceStateException' => InvalidResourceStateException::class, 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, 'ForbiddenException' => ForbiddenException::class, 'DatabaseNotFoundException' => DatabaseNotFoundException::class, @@ -188,6 +193,7 @@ public function beginTransaction($input): BeginTransactionResponse * @throws DatabaseUnavailableException * @throws TransactionNotFoundException * @throws InvalidSecretException + * @throws InvalidResourceStateException * @throws ServiceUnavailableErrorException * @throws ForbiddenException * @throws DatabaseNotFoundException @@ -207,6 +213,7 @@ public function commitTransaction($input): CommitTransactionResponse 'DatabaseUnavailableException' => DatabaseUnavailableException::class, 'TransactionNotFoundException' => TransactionNotFoundException::class, 'InvalidSecretException' => InvalidSecretException::class, + 'InvalidResourceStateException' => InvalidResourceStateException::class, 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, 'ForbiddenException' => ForbiddenException::class, 'DatabaseNotFoundException' => DatabaseNotFoundException::class, @@ -253,6 +260,7 @@ public function commitTransaction($input): CommitTransactionResponse * @throws DatabaseUnavailableException * @throws TransactionNotFoundException * @throws InvalidSecretException + * @throws InvalidResourceStateException * @throws ServiceUnavailableErrorException * @throws ForbiddenException * @throws DatabaseNotFoundException @@ -273,6 +281,7 @@ public function executeStatement($input): ExecuteStatementResponse 'DatabaseUnavailableException' => DatabaseUnavailableException::class, 'TransactionNotFoundException' => TransactionNotFoundException::class, 'InvalidSecretException' => InvalidSecretException::class, + 'InvalidResourceStateException' => InvalidResourceStateException::class, 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, 'ForbiddenException' => ForbiddenException::class, 'DatabaseNotFoundException' => DatabaseNotFoundException::class, @@ -305,6 +314,7 @@ public function executeStatement($input): ExecuteStatementResponse * @throws DatabaseUnavailableException * @throws TransactionNotFoundException * @throws InvalidSecretException + * @throws InvalidResourceStateException * @throws ServiceUnavailableErrorException * @throws ForbiddenException * @throws DatabaseNotFoundException @@ -324,6 +334,7 @@ public function rollbackTransaction($input): RollbackTransactionResponse 'DatabaseUnavailableException' => DatabaseUnavailableException::class, 'TransactionNotFoundException' => TransactionNotFoundException::class, 'InvalidSecretException' => InvalidSecretException::class, + 'InvalidResourceStateException' => InvalidResourceStateException::class, 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, 'ForbiddenException' => ForbiddenException::class, 'DatabaseNotFoundException' => DatabaseNotFoundException::class, diff --git a/src/Service/S3/CHANGELOG.md b/src/Service/S3/CHANGELOG.md index b5f83485e..4a901076e 100644 --- a/src/Service/S3/CHANGELOG.md +++ b/src/Service/S3/CHANGELOG.md @@ -7,6 +7,7 @@ - AWS api-change: This change enhances integrity protections for new SDK requests to S3. S3 SDKs now support the CRC64NVME checksum algorithm, full object checksums for multipart S3 objects, and new default integrity protections for S3 requests. - AWS api-change: Added `us-isof-east-1` and `us-isof-south-1` regions - AWS api-change: Updated list of the valid AWS Region values for the LocationConstraint parameter for general purpose buckets. +- AWS api-change: Added support for Content-Range header in HeadObject response. ## 2.7.0 diff --git a/src/Service/S3/src/Input/CompleteMultipartUploadRequest.php b/src/Service/S3/src/Input/CompleteMultipartUploadRequest.php index c24c15207..6debc5666 100644 --- a/src/Service/S3/src/Input/CompleteMultipartUploadRequest.php +++ b/src/Service/S3/src/Input/CompleteMultipartUploadRequest.php @@ -74,7 +74,7 @@ final class CompleteMultipartUploadRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 32-bit `CRC-32` checksum of the object. For more + * originally sent. This header specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -85,7 +85,7 @@ final class CompleteMultipartUploadRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 32-bit `CRC-32C` checksum of the object. For more + * originally sent. This header specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -96,9 +96,9 @@ final class CompleteMultipartUploadRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 64-bit `CRC-64NVME` checksum of the object. The - * `CRC-64NVME` checksum is always a full object checksum. For more information, see Checking object integrity in the - * Amazon S3 User Guide [^1]. + * originally sent. This header specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the object. The `CRC64NVME` + * checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User + * Guide [^1]. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -108,8 +108,8 @@ final class CompleteMultipartUploadRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 160-bit `SHA-1` digest of the object. For more - * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. + * originally sent. This header specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For more information, + * see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -119,7 +119,7 @@ final class CompleteMultipartUploadRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 256-bit `SHA-256` digest of the object. For more + * originally sent. This header specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html diff --git a/src/Service/S3/src/Input/DeleteObjectsRequest.php b/src/Service/S3/src/Input/DeleteObjectsRequest.php index ad9f65ab9..c95bb1fb3 100644 --- a/src/Service/S3/src/Input/DeleteObjectsRequest.php +++ b/src/Service/S3/src/Input/DeleteObjectsRequest.php @@ -107,11 +107,11 @@ final class DeleteObjectsRequest extends Input * For the `x-amz-checksum-*algorithm*` header, replace `*algorithm*` with the supported algorithm from the following * list: * - * - `CRC-32` - * - `CRC-32C` - * - `CRC-64NVME` - * - `SHA-1` - * - `SHA-256` + * - `CRC32` + * - `CRC32C` + * - `CRC64NVME` + * - `SHA1` + * - `SHA256` * * For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * diff --git a/src/Service/S3/src/Input/PutObjectRequest.php b/src/Service/S3/src/Input/PutObjectRequest.php index 1873a89d7..4dc831b0e 100644 --- a/src/Service/S3/src/Input/PutObjectRequest.php +++ b/src/Service/S3/src/Input/PutObjectRequest.php @@ -173,11 +173,11 @@ final class PutObjectRequest extends Input * For the `x-amz-checksum-*algorithm*` header, replace `*algorithm*` with the supported algorithm from the following * list: * - * - `CRC-32` - * - `CRC-32C` - * - `CRC-64NVME` - * - `SHA-1` - * - `SHA-256` + * - `CRC32` + * - `CRC32C` + * - `CRC64NVME` + * - `SHA1` + * - `SHA256` * * For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * @@ -200,7 +200,7 @@ final class PutObjectRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 32-bit `CRC-32` checksum of the object. For more + * originally sent. This header specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -211,7 +211,7 @@ final class PutObjectRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 32-bit `CRC-32C` checksum of the object. For more + * originally sent. This header specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -222,9 +222,9 @@ final class PutObjectRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 64-bit `CRC-64NVME` checksum of the object. The - * `CRC-64NVME` checksum is always a full object checksum. For more information, see Checking object integrity in the - * Amazon S3 User Guide [^1]. + * originally sent. This header specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the object. The `CRC64NVME` + * checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User + * Guide [^1]. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -234,8 +234,8 @@ final class PutObjectRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 160-bit `SHA-1` digest of the object. For more - * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. + * originally sent. This header specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For more information, + * see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -245,7 +245,7 @@ final class PutObjectRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 256-bit `SHA-256` digest of the object. For more + * originally sent. This header specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html diff --git a/src/Service/S3/src/Input/UploadPartRequest.php b/src/Service/S3/src/Input/UploadPartRequest.php index 398874235..38cb29a1a 100644 --- a/src/Service/S3/src/Input/UploadPartRequest.php +++ b/src/Service/S3/src/Input/UploadPartRequest.php @@ -89,7 +89,7 @@ final class UploadPartRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 32-bit `CRC-32` checksum of the object. For more + * originally sent. This header specifies the Base64 encoded, 32-bit `CRC32` checksum of the object. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -100,7 +100,7 @@ final class UploadPartRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 32-bit `CRC-32C` checksum of the object. For more + * originally sent. This header specifies the Base64 encoded, 32-bit `CRC32C` checksum of the object. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -111,7 +111,7 @@ final class UploadPartRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 64-bit `CRC-64NVME` checksum of the part. For more + * originally sent. This header specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the part. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -122,8 +122,8 @@ final class UploadPartRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 160-bit `SHA-1` digest of the object. For more - * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. + * originally sent. This header specifies the Base64 encoded, 160-bit `SHA1` digest of the object. For more information, + * see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -133,7 +133,7 @@ final class UploadPartRequest extends Input /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 256-bit `SHA-256` digest of the object. For more + * originally sent. This header specifies the Base64 encoded, 256-bit `SHA256` digest of the object. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html diff --git a/src/Service/S3/src/Result/CompleteMultipartUploadOutput.php b/src/Service/S3/src/Result/CompleteMultipartUploadOutput.php index a6ea96ffa..769f4ffb1 100644 --- a/src/Service/S3/src/Result/CompleteMultipartUploadOutput.php +++ b/src/Service/S3/src/Result/CompleteMultipartUploadOutput.php @@ -58,7 +58,7 @@ class CompleteMultipartUploadOutput extends Result private $etag; /** - * The Base64 encoded, 32-bit `CRC-32 checksum` of the object. This checksum is only be present if the checksum was + * The Base64 encoded, 32-bit `CRC32 checksum` of the object. This checksum is only be present if the checksum was * uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this * value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values * of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking @@ -71,7 +71,7 @@ class CompleteMultipartUploadOutput extends Result private $checksumCrc32; /** - * The Base64 encoded, 32-bit `CRC-32C` checksum of the object. This checksum is only present if the checksum was + * The Base64 encoded, 32-bit `CRC32C` checksum of the object. This checksum is only present if the checksum was * uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this * value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values * of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking @@ -85,9 +85,9 @@ class CompleteMultipartUploadOutput extends Result /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 64-bit `CRC-64NVME` checksum of the object. The - * `CRC-64NVME` checksum is always a full object checksum. For more information, see Checking object integrity in the - * Amazon S3 User Guide [^1]. + * originally sent. This header specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the object. The `CRC64NVME` + * checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User + * Guide [^1]. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -96,7 +96,7 @@ class CompleteMultipartUploadOutput extends Result private $checksumCrc64Nvme; /** - * The Base64 encoded, 160-bit `SHA-1` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 160-bit `SHA1` digest of the object. This will only be present if the object was uploaded with * the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not * be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each * individual part. For more information about how checksums are calculated with multipart uploads, see Checking object @@ -109,7 +109,7 @@ class CompleteMultipartUploadOutput extends Result private $checksumSha1; /** - * The Base64 encoded, 256-bit `SHA-256` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 256-bit `SHA256` digest of the object. This will only be present if the object was uploaded with * the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not * be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each * individual part. For more information about how checksums are calculated with multipart uploads, see Checking object diff --git a/src/Service/S3/src/Result/GetObjectOutput.php b/src/Service/S3/src/Result/GetObjectOutput.php index 25b26f849..451613d2f 100644 --- a/src/Service/S3/src/Result/GetObjectOutput.php +++ b/src/Service/S3/src/Result/GetObjectOutput.php @@ -94,7 +94,7 @@ class GetObjectOutput extends Result private $etag; /** - * The Base64 encoded, 32-bit `CRC-32` checksum of the object. This checksum is only present if the object was uploaded + * The Base64 encoded, 32-bit `CRC32` checksum of the object. This checksum is only present if the object was uploaded * with the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -104,8 +104,8 @@ class GetObjectOutput extends Result private $checksumCrc32; /** - * The Base64 encoded, 32-bit `CRC-32C` checksum of the object. This will only be present if the object was uploaded - * with the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. + * The Base64 encoded, 32-bit `CRC32C` checksum of the object. This will only be present if the object was uploaded with + * the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -114,8 +114,8 @@ class GetObjectOutput extends Result private $checksumCrc32C; /** - * The Base64 encoded, 64-bit `CRC-64NVME` checksum of the object. For more information, see Checking object integrity - * in the Amazon S3 User Guide [^1]. + * The Base64 encoded, 64-bit `CRC64NVME` checksum of the object. For more information, see Checking object integrity in + * the Amazon S3 User Guide [^1]. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -124,7 +124,7 @@ class GetObjectOutput extends Result private $checksumCrc64Nvme; /** - * The Base64 encoded, 160-bit `SHA-1` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 160-bit `SHA1` digest of the object. This will only be present if the object was uploaded with * the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -134,7 +134,7 @@ class GetObjectOutput extends Result private $checksumSha1; /** - * The Base64 encoded, 256-bit `SHA-256` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 256-bit `SHA256` digest of the object. This will only be present if the object was uploaded with * the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html diff --git a/src/Service/S3/src/Result/HeadObjectOutput.php b/src/Service/S3/src/Result/HeadObjectOutput.php index b7922f36b..ead427aa5 100644 --- a/src/Service/S3/src/Result/HeadObjectOutput.php +++ b/src/Service/S3/src/Result/HeadObjectOutput.php @@ -93,7 +93,7 @@ class HeadObjectOutput extends Result private $contentLength; /** - * The Base64 encoded, 32-bit `CRC-32 checksum` of the object. This checksum is only be present if the checksum was + * The Base64 encoded, 32-bit `CRC32 checksum` of the object. This checksum is only be present if the checksum was * uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this * value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values * of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking @@ -106,7 +106,7 @@ class HeadObjectOutput extends Result private $checksumCrc32; /** - * The Base64 encoded, 32-bit `CRC-32C` checksum of the object. This checksum is only present if the checksum was + * The Base64 encoded, 32-bit `CRC32C` checksum of the object. This checksum is only present if the checksum was * uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this * value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values * of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking @@ -119,8 +119,8 @@ class HeadObjectOutput extends Result private $checksumCrc32C; /** - * The Base64 encoded, 64-bit `CRC-64NVME` checksum of the object. For more information, see Checking object integrity - * in the Amazon S3 User Guide [^1]. + * The Base64 encoded, 64-bit `CRC64NVME` checksum of the object. For more information, see Checking object integrity in + * the Amazon S3 User Guide [^1]. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -129,7 +129,7 @@ class HeadObjectOutput extends Result private $checksumCrc64Nvme; /** - * The Base64 encoded, 160-bit `SHA-1` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 160-bit `SHA1` digest of the object. This will only be present if the object was uploaded with * the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not * be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each * individual part. For more information about how checksums are calculated with multipart uploads, see Checking object @@ -142,7 +142,7 @@ class HeadObjectOutput extends Result private $checksumSha1; /** - * The Base64 encoded, 256-bit `SHA-256` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 256-bit `SHA256` digest of the object. This will only be present if the object was uploaded with * the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not * be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each * individual part. For more information about how checksums are calculated with multipart uploads, see Checking object @@ -230,6 +230,13 @@ class HeadObjectOutput extends Result */ private $contentType; + /** + * The portion of the object returned in the response for a `GET` request. + * + * @var string|null + */ + private $contentRange; + /** * The date and time at which the object is no longer cacheable. * @@ -498,6 +505,13 @@ public function getContentLength(): ?int return $this->contentLength; } + public function getContentRange(): ?string + { + $this->initialize(); + + return $this->contentRange; + } + public function getContentType(): ?string { $this->initialize(); @@ -698,6 +712,7 @@ protected function populateResult(Response $response): void $this->contentEncoding = $headers['content-encoding'][0] ?? null; $this->contentLanguage = $headers['content-language'][0] ?? null; $this->contentType = $headers['content-type'][0] ?? null; + $this->contentRange = $headers['content-range'][0] ?? null; $this->expires = isset($headers['expires'][0]) ? new \DateTimeImmutable($headers['expires'][0]) : null; $this->websiteRedirectLocation = $headers['x-amz-website-redirect-location'][0] ?? null; $this->serverSideEncryption = $headers['x-amz-server-side-encryption'][0] ?? null; diff --git a/src/Service/S3/src/Result/PutObjectOutput.php b/src/Service/S3/src/Result/PutObjectOutput.php index d0dbd8e79..7e3314439 100644 --- a/src/Service/S3/src/Result/PutObjectOutput.php +++ b/src/Service/S3/src/Result/PutObjectOutput.php @@ -38,7 +38,7 @@ class PutObjectOutput extends Result private $etag; /** - * The Base64 encoded, 32-bit `CRC-32 checksum` of the object. This checksum is only be present if the checksum was + * The Base64 encoded, 32-bit `CRC32 checksum` of the object. This checksum is only be present if the checksum was * uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this * value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values * of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking @@ -51,7 +51,7 @@ class PutObjectOutput extends Result private $checksumCrc32; /** - * The Base64 encoded, 32-bit `CRC-32C` checksum of the object. This checksum is only present if the checksum was + * The Base64 encoded, 32-bit `CRC32C` checksum of the object. This checksum is only present if the checksum was * uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this * value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values * of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking @@ -64,9 +64,9 @@ class PutObjectOutput extends Result private $checksumCrc32C; /** - * The Base64 encoded, 64-bit `CRC-64NVME` checksum of the object. This header is present if the object was uploaded - * with the `CRC-64NVME` checksum algorithm, or if it was uploaded without a checksum (and Amazon S3 added the default - * checksum, `CRC-64NVME`, to the uploaded object). For more information about how checksums are calculated with + * The Base64 encoded, 64-bit `CRC64NVME` checksum of the object. This header is present if the object was uploaded with + * the `CRC64NVME` checksum algorithm, or if it was uploaded without a checksum (and Amazon S3 added the default + * checksum, `CRC64NVME`, to the uploaded object). For more information about how checksums are calculated with * multipart uploads, see Checking object integrity in the Amazon S3 User Guide [^1]. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -76,7 +76,7 @@ class PutObjectOutput extends Result private $checksumCrc64Nvme; /** - * The Base64 encoded, 160-bit `SHA-1` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 160-bit `SHA1` digest of the object. This will only be present if the object was uploaded with * the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not * be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each * individual part. For more information about how checksums are calculated with multipart uploads, see Checking object @@ -89,7 +89,7 @@ class PutObjectOutput extends Result private $checksumSha1; /** - * The Base64 encoded, 256-bit `SHA-256` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 256-bit `SHA256` digest of the object. This will only be present if the object was uploaded with * the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not * be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each * individual part. For more information about how checksums are calculated with multipart uploads, see Checking object diff --git a/src/Service/S3/src/Result/UploadPartOutput.php b/src/Service/S3/src/Result/UploadPartOutput.php index 776a088af..788e1b290 100644 --- a/src/Service/S3/src/Result/UploadPartOutput.php +++ b/src/Service/S3/src/Result/UploadPartOutput.php @@ -24,7 +24,7 @@ class UploadPartOutput extends Result private $etag; /** - * The Base64 encoded, 32-bit `CRC-32 checksum` of the object. This checksum is only be present if the checksum was + * The Base64 encoded, 32-bit `CRC32 checksum` of the object. This checksum is only be present if the checksum was * uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this * value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values * of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking @@ -37,7 +37,7 @@ class UploadPartOutput extends Result private $checksumCrc32; /** - * The Base64 encoded, 32-bit `CRC-32C` checksum of the object. This checksum is only present if the checksum was + * The Base64 encoded, 32-bit `CRC32C` checksum of the object. This checksum is only present if the checksum was * uploaded with the object. When you use an API operation on an object that was uploaded using multipart uploads, this * value may not be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values * of each individual part. For more information about how checksums are calculated with multipart uploads, see Checking @@ -51,7 +51,7 @@ class UploadPartOutput extends Result /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 64-bit `CRC-64NVME` checksum of the part. For more + * originally sent. This header specifies the Base64 encoded, 64-bit `CRC64NVME` checksum of the part. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -61,7 +61,7 @@ class UploadPartOutput extends Result private $checksumCrc64Nvme; /** - * The Base64 encoded, 160-bit `SHA-1` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 160-bit `SHA1` digest of the object. This will only be present if the object was uploaded with * the object. When you use the API operation on an object that was uploaded using multipart uploads, this value may not * be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each * individual part. For more information about how checksums are calculated with multipart uploads, see Checking object @@ -74,7 +74,7 @@ class UploadPartOutput extends Result private $checksumSha1; /** - * The Base64 encoded, 256-bit `SHA-256` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 256-bit `SHA256` digest of the object. This will only be present if the object was uploaded with * the object. When you use an API operation on an object that was uploaded using multipart uploads, this value may not * be a direct checksum value of the full object. Instead, it's a calculation based on the checksum values of each * individual part. For more information about how checksums are calculated with multipart uploads, see Checking object diff --git a/src/Service/S3/src/ValueObject/CompletedPart.php b/src/Service/S3/src/ValueObject/CompletedPart.php index 19a9dcc86..a32c04107 100644 --- a/src/Service/S3/src/ValueObject/CompletedPart.php +++ b/src/Service/S3/src/ValueObject/CompletedPart.php @@ -15,9 +15,9 @@ final class CompletedPart private $etag; /** - * The Base64 encoded, 32-bit `CRC-32` checksum of the part. This checksum is present if the multipart upload request - * was created with the `CRC-32` checksum algorithm. For more information, see Checking object integrity [^1] in the - * *Amazon S3 User Guide*. + * The Base64 encoded, 32-bit `CRC32` checksum of the part. This checksum is present if the multipart upload request was + * created with the `CRC32` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon + * S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -26,8 +26,8 @@ final class CompletedPart private $checksumCrc32; /** - * The Base64 encoded, 32-bit `CRC-32C` checksum of the part. This checksum is present if the multipart upload request - * was created with the `CRC-32C` checksum algorithm. For more information, see Checking object integrity [^1] in the + * The Base64 encoded, 32-bit `CRC32C` checksum of the part. This checksum is present if the multipart upload request + * was created with the `CRC32C` checksum algorithm. For more information, see Checking object integrity [^1] in the * *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -37,9 +37,9 @@ final class CompletedPart private $checksumCrc32C; /** - * The Base64 encoded, 64-bit `CRC-64NVME` checksum of the part. This checksum is present if the multipart upload - * request was created with the `CRC-64NVME` checksum algorithm to the uploaded object). For more information, see - * Checking object integrity [^1] in the *Amazon S3 User Guide*. + * The Base64 encoded, 64-bit `CRC64NVME` checksum of the part. This checksum is present if the multipart upload request + * was created with the `CRC64NVME` checksum algorithm to the uploaded object). For more information, see Checking + * object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -48,9 +48,9 @@ final class CompletedPart private $checksumCrc64Nvme; /** - * The Base64 encoded, 160-bit `SHA-1` checksum of the part. This checksum is present if the multipart upload request - * was created with the `SHA-1` checksum algorithm. For more information, see Checking object integrity [^1] in the - * *Amazon S3 User Guide*. + * The Base64 encoded, 160-bit `SHA1` checksum of the part. This checksum is present if the multipart upload request was + * created with the `SHA1` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon + * S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -59,8 +59,8 @@ final class CompletedPart private $checksumSha1; /** - * The Base64 encoded, 256-bit `SHA-256` checksum of the part. This checksum is present if the multipart upload request - * was created with the `SHA-256` checksum algorithm. For more information, see Checking object integrity [^1] in the + * The Base64 encoded, 256-bit `SHA256` checksum of the part. This checksum is present if the multipart upload request + * was created with the `SHA256` checksum algorithm. For more information, see Checking object integrity [^1] in the * *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html diff --git a/src/Service/S3/src/ValueObject/CopyObjectResult.php b/src/Service/S3/src/ValueObject/CopyObjectResult.php index 459184d37..f5ee7cb03 100644 --- a/src/Service/S3/src/ValueObject/CopyObjectResult.php +++ b/src/Service/S3/src/ValueObject/CopyObjectResult.php @@ -34,7 +34,7 @@ final class CopyObjectResult private $checksumType; /** - * The Base64 encoded, 32-bit `CRC-32` checksum of the object. This checksum is only present if the object was uploaded + * The Base64 encoded, 32-bit `CRC32` checksum of the object. This checksum is only present if the object was uploaded * with the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -44,8 +44,8 @@ final class CopyObjectResult private $checksumCrc32; /** - * The Base64 encoded, 32-bit `CRC-32C` checksum of the object. This will only be present if the object was uploaded - * with the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. + * The Base64 encoded, 32-bit `CRC32C` checksum of the object. This will only be present if the object was uploaded with + * the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -54,10 +54,10 @@ final class CopyObjectResult private $checksumCrc32C; /** - * The Base64 encoded, 64-bit `CRC-64NVME` checksum of the object. This checksum is present if the object being copied - * was uploaded with the `CRC-64NVME` checksum algorithm, or if the object was uploaded without a checksum (and Amazon - * S3 added the default checksum, `CRC-64NVME`, to the uploaded object). For more information, see Checking object - * integrity [^1] in the *Amazon S3 User Guide*. + * The Base64 encoded, 64-bit `CRC64NVME` checksum of the object. This checksum is present if the object being copied + * was uploaded with the `CRC64NVME` checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 + * added the default checksum, `CRC64NVME`, to the uploaded object). For more information, see Checking object integrity + * [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -66,7 +66,7 @@ final class CopyObjectResult private $checksumCrc64Nvme; /** - * The Base64 encoded, 160-bit `SHA-1` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 160-bit `SHA1` digest of the object. This will only be present if the object was uploaded with * the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -76,7 +76,7 @@ final class CopyObjectResult private $checksumSha1; /** - * The Base64 encoded, 256-bit `SHA-256` digest of the object. This will only be present if the object was uploaded with + * The Base64 encoded, 256-bit `SHA256` digest of the object. This will only be present if the object was uploaded with * the object. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html diff --git a/src/Service/S3/src/ValueObject/CopyPartResult.php b/src/Service/S3/src/ValueObject/CopyPartResult.php index b39b67dc8..386e8e5c3 100644 --- a/src/Service/S3/src/ValueObject/CopyPartResult.php +++ b/src/Service/S3/src/ValueObject/CopyPartResult.php @@ -23,8 +23,8 @@ final class CopyPartResult /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 32-bit `CRC-32` checksum of the part. For more - * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. + * originally sent. This header specifies the Base64 encoded, 32-bit `CRC32` checksum of the part. For more information, + * see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -34,7 +34,7 @@ final class CopyPartResult /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 32-bit `CRC-32C` checksum of the part. For more + * originally sent. This header specifies the Base64 encoded, 32-bit `CRC32C` checksum of the part. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -44,9 +44,9 @@ final class CopyPartResult private $checksumCrc32C; /** - * The Base64 encoded, 64-bit `CRC-64NVME` checksum of the part. This checksum is present if the multipart upload - * request was created with the `CRC-64NVME` checksum algorithm to the uploaded object). For more information, see - * Checking object integrity [^1] in the *Amazon S3 User Guide*. + * The Base64 encoded, 64-bit `CRC64NVME` checksum of the part. This checksum is present if the multipart upload request + * was created with the `CRC64NVME` checksum algorithm to the uploaded object). For more information, see Checking + * object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -56,8 +56,8 @@ final class CopyPartResult /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 160-bit `SHA-1` checksum of the part. For more - * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. + * originally sent. This header specifies the Base64 encoded, 160-bit `SHA1` checksum of the part. For more information, + * see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -67,7 +67,7 @@ final class CopyPartResult /** * This header can be used as a data integrity check to verify that the data received is the same data that was - * originally sent. This header specifies the Base64 encoded, 256-bit `SHA-256` checksum of the part. For more + * originally sent. This header specifies the Base64 encoded, 256-bit `SHA256` checksum of the part. For more * information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html diff --git a/src/Service/S3/src/ValueObject/Part.php b/src/Service/S3/src/ValueObject/Part.php index 231d430de..8dbb598f3 100644 --- a/src/Service/S3/src/ValueObject/Part.php +++ b/src/Service/S3/src/ValueObject/Part.php @@ -36,9 +36,8 @@ final class Part private $size; /** - * The Base64 encoded, 32-bit `CRC-32` checksum of the part. This checksum is present if the object was uploaded with - * the `CRC-32` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon S3 User - * Guide*. + * The Base64 encoded, 32-bit `CRC32` checksum of the part. This checksum is present if the object was uploaded with the + * `CRC32` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -47,8 +46,8 @@ final class Part private $checksumCrc32; /** - * The Base64 encoded, 32-bit `CRC-32C` checksum of the part. This checksum is present if the object was uploaded with - * the `CRC-32C` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon S3 User + * The Base64 encoded, 32-bit `CRC32C` checksum of the part. This checksum is present if the object was uploaded with + * the `CRC32C` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon S3 User * Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html @@ -58,10 +57,10 @@ final class Part private $checksumCrc32C; /** - * The Base64 encoded, 64-bit `CRC-64NVME` checksum of the part. This checksum is present if the multipart upload - * request was created with the `CRC-64NVME` checksum algorithm, or if the object was uploaded without a checksum (and - * Amazon S3 added the default checksum, `CRC-64NVME`, to the uploaded object). For more information, see Checking - * object integrity [^1] in the *Amazon S3 User Guide*. + * The Base64 encoded, 64-bit `CRC64NVME` checksum of the part. This checksum is present if the multipart upload request + * was created with the `CRC64NVME` checksum algorithm, or if the object was uploaded without a checksum (and Amazon S3 + * added the default checksum, `CRC64NVME`, to the uploaded object). For more information, see Checking object integrity + * [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -70,9 +69,8 @@ final class Part private $checksumCrc64Nvme; /** - * The Base64 encoded, 160-bit `SHA-1` checksum of the part. This checksum is present if the object was uploaded with - * the `SHA-1` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon S3 User - * Guide*. + * The Base64 encoded, 160-bit `SHA1` checksum of the part. This checksum is present if the object was uploaded with the + * `SHA1` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon S3 User Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html * @@ -81,8 +79,8 @@ final class Part private $checksumSha1; /** - * The Base64 encoded, 256-bit `SHA-256` checksum of the part. This checksum is present if the object was uploaded with - * the `SHA-256` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon S3 User + * The Base64 encoded, 256-bit `SHA256` checksum of the part. This checksum is present if the object was uploaded with + * the `SHA256` checksum algorithm. For more information, see Checking object integrity [^1] in the *Amazon S3 User * Guide*. * * [^1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html