@aws-sdk/client-s3 3.82.0 → 3.86.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.86.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.85.0...v3.86.0) (2022-05-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **middleware-sdk-s3:** improve error message on stream upload ([#3571](https://github.com/aws/aws-sdk-js-v3/issues/3571)) ([c0ed833](https://github.com/aws/aws-sdk-js-v3/commit/c0ed83347f571b3f5d1e41dc91c172abafb44b7b))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.85.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.84.0...v3.85.0) (2022-05-05)
18
+
19
+
20
+ ### Features
21
+
22
+ * **codegen:** add codegen indicator comment to all generated files ([#3592](https://github.com/aws/aws-sdk-js-v3/issues/3592)) ([567a530](https://github.com/aws/aws-sdk-js-v3/commit/567a5304232fcc1f9db3fd3df545054de8336b4b))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.83.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.82.0...v3.83.0) (2022-05-03)
29
+
30
+ **Note:** Version bump only for package @aws-sdk/client-s3
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.82.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.81.0...v3.82.0) (2022-05-02)
7
37
 
8
38
  **Note:** Version bump only for package @aws-sdk/client-s3
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ <!-- generated file, do not edit directly -->
2
+
1
3
  # @aws-sdk/client-s3
2
4
 
3
5
  [![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-s3/latest.svg)](https://www.npmjs.com/package/@aws-sdk/client-s3)
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PutObjectCommand = void 0;
4
4
  const middleware_bucket_endpoint_1 = require("@aws-sdk/middleware-bucket-endpoint");
5
5
  const middleware_flexible_checksums_1 = require("@aws-sdk/middleware-flexible-checksums");
6
+ const middleware_sdk_s3_1 = require("@aws-sdk/middleware-sdk-s3");
6
7
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
8
  const middleware_ssec_1 = require("@aws-sdk/middleware-ssec");
8
9
  const smithy_client_1 = require("@aws-sdk/smithy-client");
@@ -15,6 +16,7 @@ class PutObjectCommand extends smithy_client_1.Command {
15
16
  }
16
17
  resolveMiddleware(clientStack, configuration, options) {
17
18
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
19
+ this.middlewareStack.use((0, middleware_sdk_s3_1.getCheckContentLengthHeaderPlugin)(configuration));
18
20
  this.middlewareStack.use((0, middleware_ssec_1.getSsecPlugin)(configuration));
19
21
  this.middlewareStack.use((0, middleware_bucket_endpoint_1.getBucketEndpointPlugin)(configuration));
20
22
  this.middlewareStack.use((0, middleware_flexible_checksums_1.getFlexibleChecksumsPlugin)(configuration, {
@@ -1,6 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
3
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
4
+ import { getCheckContentLengthHeaderPlugin } from "@aws-sdk/middleware-sdk-s3";
4
5
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
6
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
6
7
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -15,6 +16,7 @@ var PutObjectCommand = (function (_super) {
15
16
  }
16
17
  PutObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
17
18
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
19
+ this.middlewareStack.use(getCheckContentLengthHeaderPlugin(configuration));
18
20
  this.middlewareStack.use(getSsecPlugin(configuration));
19
21
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
20
22
  this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
@@ -3873,8 +3873,9 @@ export declare class S3 extends S3Client {
3873
3873
  * <b>Rules</b>
3874
3874
  * </p>
3875
3875
  * <p>You specify the lifecycle configuration in your request body. The lifecycle
3876
- * configuration is specified as XML consisting of one or more rules. Each rule consists of
3877
- * the following:</p>
3876
+ * configuration is specified as XML consisting of one or more rules. An Amazon S3 Lifecycle
3877
+ * configuration can have up to 1,000 rules. This limit is not adjustable. Each rule consists
3878
+ * of the following:</p>
3878
3879
  *
3879
3880
  * <ul>
3880
3881
  * <li>
@@ -5530,8 +5531,8 @@ export declare class S3 extends S3Client {
5530
5531
  * <p>Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely
5531
5532
  * identifies a part and also defines its position within the object being created. If you
5532
5533
  * upload a new part using the same part number that was used with a previous part, the
5533
- * previously uploaded part is overwritten. Each part must be at least 5 MB in size, except
5534
- * the last part. There is no size limit on the last part of your multipart upload.</p>
5534
+ * previously uploaded part is overwritten.</p>
5535
+ * <p>For information about maximum and minimum part sizes and other multipart upload specifications, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html">Multipart upload limits</a> in the <i>Amazon S3 User Guide</i>.</p>
5535
5536
  * <p>To ensure that data is not corrupted when traversing the network, specify the
5536
5537
  * <code>Content-MD5</code> header in the upload part request. Amazon S3 checks the part data
5537
5538
  * against the provided MD5 value. If they do not match, Amazon S3 returns an error. </p>
@@ -5663,9 +5664,7 @@ export declare class S3 extends S3Client {
5663
5664
  * data source by adding the request header <code>x-amz-copy-source</code> in your request and
5664
5665
  * a byte range by adding the request header <code>x-amz-copy-source-range</code> in your
5665
5666
  * request. </p>
5666
- * <p>The minimum allowable part size for a multipart upload is 5 MB. For more information
5667
- * about multipart upload limits, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/qfacts.html">Quick
5668
- * Facts</a> in the <i>Amazon S3 User Guide</i>. </p>
5667
+ * <p>For information about maximum and minimum part sizes and other multipart upload specifications, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html">Multipart upload limits</a> in the <i>Amazon S3 User Guide</i>. </p>
5669
5668
  * <note>
5670
5669
  * <p>Instead of using an existing object as part data, you might use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
5671
5670
  * action and provide data in your request.</p>
@@ -27,8 +27,9 @@ export interface PutBucketLifecycleConfigurationCommandOutput extends __Metadata
27
27
  * <b>Rules</b>
28
28
  * </p>
29
29
  * <p>You specify the lifecycle configuration in your request body. The lifecycle
30
- * configuration is specified as XML consisting of one or more rules. Each rule consists of
31
- * the following:</p>
30
+ * configuration is specified as XML consisting of one or more rules. An Amazon S3 Lifecycle
31
+ * configuration can have up to 1,000 rules. This limit is not adjustable. Each rule consists
32
+ * of the following:</p>
32
33
  *
33
34
  * <ul>
34
35
  * <li>
@@ -31,8 +31,8 @@ export interface UploadPartCommandOutput extends UploadPartOutput, __MetadataBea
31
31
  * <p>Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely
32
32
  * identifies a part and also defines its position within the object being created. If you
33
33
  * upload a new part using the same part number that was used with a previous part, the
34
- * previously uploaded part is overwritten. Each part must be at least 5 MB in size, except
35
- * the last part. There is no size limit on the last part of your multipart upload.</p>
34
+ * previously uploaded part is overwritten.</p>
35
+ * <p>For information about maximum and minimum part sizes and other multipart upload specifications, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html">Multipart upload limits</a> in the <i>Amazon S3 User Guide</i>.</p>
36
36
  * <p>To ensure that data is not corrupted when traversing the network, specify the
37
37
  * <code>Content-MD5</code> header in the upload part request. Amazon S3 checks the part data
38
38
  * against the provided MD5 value. If they do not match, Amazon S3 returns an error. </p>
@@ -11,9 +11,7 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
11
11
  * data source by adding the request header <code>x-amz-copy-source</code> in your request and
12
12
  * a byte range by adding the request header <code>x-amz-copy-source-range</code> in your
13
13
  * request. </p>
14
- * <p>The minimum allowable part size for a multipart upload is 5 MB. For more information
15
- * about multipart upload limits, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/qfacts.html">Quick
16
- * Facts</a> in the <i>Amazon S3 User Guide</i>. </p>
14
+ * <p>For information about maximum and minimum part sizes and other multipart upload specifications, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html">Multipart upload limits</a> in the <i>Amazon S3 User Guide</i>. </p>
17
15
  * <note>
18
16
  * <p>Instead of using an existing object as part data, you might use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
19
17
  * action and provide data in your request.</p>
@@ -4666,7 +4666,7 @@ export declare namespace LifecycleRuleFilter {
4666
4666
  export interface NoncurrentVersionExpiration {
4667
4667
  /**
4668
4668
  * <p>Specifies the number of days an object is noncurrent before Amazon S3 can perform the
4669
- * associated action. For information about the noncurrent days calculations, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations">How
4669
+ * associated action. The value must be a non-zero positive integer. For information about the noncurrent days calculations, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations">How
4670
4670
  * Amazon S3 Calculates When an Object Became Noncurrent</a> in the <i>Amazon S3 User Guide</i>.</p>
4671
4671
  */
4672
4672
  NoncurrentDays?: number;
@@ -8250,7 +8250,9 @@ export interface _Object {
8250
8250
  * </li>
8251
8251
  * <li>
8252
8252
  * <p>If an object is created by either the Multipart Upload or Part Copy operation, the
8253
- * ETag is not an MD5 digest, regardless of the method of encryption.</p>
8253
+ * ETag is not an MD5 digest, regardless of the method of encryption. If an object
8254
+ * is larger than 16 MB, the Amazon Web Services Management Console will upload or copy that object as a
8255
+ * Multipart Upload, and therefore the ETag will not be an MD5 digest.</p>
8254
8256
  * </li>
8255
8257
  * </ul>
8256
8258
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.82.0",
4
+ "version": "3.86.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,9 +22,9 @@
22
22
  "@aws-crypto/sha1-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-browser": "2.0.0",
24
24
  "@aws-crypto/sha256-js": "2.0.0",
25
- "@aws-sdk/client-sts": "3.82.0",
25
+ "@aws-sdk/client-sts": "3.85.0",
26
26
  "@aws-sdk/config-resolver": "3.80.0",
27
- "@aws-sdk/credential-provider-node": "3.82.0",
27
+ "@aws-sdk/credential-provider-node": "3.85.0",
28
28
  "@aws-sdk/eventstream-serde-browser": "3.78.0",
29
29
  "@aws-sdk/eventstream-serde-config-resolver": "3.78.0",
30
30
  "@aws-sdk/eventstream-serde-node": "3.78.0",
@@ -42,7 +42,7 @@
42
42
  "@aws-sdk/middleware-location-constraint": "3.78.0",
43
43
  "@aws-sdk/middleware-logger": "3.78.0",
44
44
  "@aws-sdk/middleware-retry": "3.80.0",
45
- "@aws-sdk/middleware-sdk-s3": "3.78.0",
45
+ "@aws-sdk/middleware-sdk-s3": "3.86.0",
46
46
  "@aws-sdk/middleware-serde": "3.78.0",
47
47
  "@aws-sdk/middleware-signing": "3.78.0",
48
48
  "@aws-sdk/middleware-ssec": "3.78.0",
@@ -52,15 +52,15 @@
52
52
  "@aws-sdk/node-http-handler": "3.82.0",
53
53
  "@aws-sdk/protocol-http": "3.78.0",
54
54
  "@aws-sdk/signature-v4-multi-region": "3.78.0",
55
- "@aws-sdk/smithy-client": "3.78.0",
55
+ "@aws-sdk/smithy-client": "3.85.0",
56
56
  "@aws-sdk/types": "3.78.0",
57
57
  "@aws-sdk/url-parser": "3.78.0",
58
58
  "@aws-sdk/util-base64-browser": "3.58.0",
59
59
  "@aws-sdk/util-base64-node": "3.55.0",
60
60
  "@aws-sdk/util-body-length-browser": "3.55.0",
61
61
  "@aws-sdk/util-body-length-node": "3.55.0",
62
- "@aws-sdk/util-defaults-mode-browser": "3.78.0",
63
- "@aws-sdk/util-defaults-mode-node": "3.81.0",
62
+ "@aws-sdk/util-defaults-mode-browser": "3.85.0",
63
+ "@aws-sdk/util-defaults-mode-node": "3.85.0",
64
64
  "@aws-sdk/util-stream-browser": "3.78.0",
65
65
  "@aws-sdk/util-stream-node": "3.78.0",
66
66
  "@aws-sdk/util-user-agent-browser": "3.78.0",