@aws-sdk/client-s3 3.95.0 → 3.105.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,33 @@
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.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-s3
20
+
21
+
22
+
23
+
24
+
25
+ # [3.99.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.98.0...v3.99.0) (2022-05-25)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-s3
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-s3
@@ -8,6 +8,7 @@ const middleware_content_length_1 = require("@aws-sdk/middleware-content-length"
8
8
  const middleware_expect_continue_1 = require("@aws-sdk/middleware-expect-continue");
9
9
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
10
10
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
11
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
11
12
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
12
13
  const middleware_sdk_s3_1 = require("@aws-sdk/middleware-sdk-s3");
13
14
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
@@ -31,9 +32,9 @@ class S3Client extends smithy_client_1.Client {
31
32
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
32
33
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
33
34
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
35
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
34
36
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
35
37
  this.middlewareStack.use((0, middleware_sdk_s3_1.getValidateBucketNamePlugin)(this.config));
36
- this.middlewareStack.use((0, middleware_sdk_s3_1.getUseRegionalEndpointPlugin)(this.config));
37
38
  this.middlewareStack.use((0, middleware_expect_continue_1.getAddExpectContinuePlugin)(this.config));
38
39
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
39
40
  }
@@ -21,8 +21,10 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
21
21
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
22
22
  const smithy_client_1 = require("@aws-sdk/smithy-client");
23
23
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
24
+ const smithy_client_2 = require("@aws-sdk/smithy-client");
24
25
  const getRuntimeConfig = (config) => {
25
26
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
27
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
26
28
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
27
29
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
28
30
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -6,8 +6,9 @@ import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
6
6
  import { getAddExpectContinuePlugin } from "@aws-sdk/middleware-expect-continue";
7
7
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
8
8
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
9
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
10
- import { getUseRegionalEndpointPlugin, getValidateBucketNamePlugin } from "@aws-sdk/middleware-sdk-s3";
11
+ import { getValidateBucketNamePlugin } from "@aws-sdk/middleware-sdk-s3";
11
12
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
12
13
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
13
14
  import { Client as __Client, } from "@aws-sdk/smithy-client";
@@ -31,9 +32,9 @@ var S3Client = (function (_super) {
31
32
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
32
33
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
33
34
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
35
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
34
36
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
35
37
  _this.middlewareStack.use(getValidateBucketNamePlugin(_this.config));
36
- _this.middlewareStack.use(getUseRegionalEndpointPlugin(_this.config));
37
38
  _this.middlewareStack.use(getAddExpectContinuePlugin(_this.config));
38
39
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
39
40
  return _this;
@@ -18,8 +18,10 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
18
18
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
19
19
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
20
20
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
21
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
21
22
  export var getRuntimeConfig = function (config) {
22
23
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
24
+ emitWarningIfUnsupportedVersion(process.version);
23
25
  var defaultsMode = resolveDefaultsModeConfig(config);
24
26
  var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
25
27
  var clientSharedValues = getSharedRuntimeConfig(config);
@@ -725,9 +725,7 @@ export interface CopyObjectRequest {
725
725
  /**
726
726
  * <p>A map of metadata to store with the object in S3.</p>
727
727
  */
728
- Metadata?: {
729
- [key: string]: string;
730
- };
728
+ Metadata?: Record<string, string>;
731
729
  /**
732
730
  * <p>Specifies whether the metadata is copied from the source object or replaced with
733
731
  * metadata provided in the request.</p>
@@ -1131,9 +1129,7 @@ export interface CreateMultipartUploadRequest {
1131
1129
  /**
1132
1130
  * <p>A map of metadata to store with the object in S3.</p>
1133
1131
  */
1134
- Metadata?: {
1135
- [key: string]: string;
1136
- };
1132
+ Metadata?: Record<string, string>;
1137
1133
  /**
1138
1134
  * <p>The server-side encryption algorithm used when storing this object in Amazon S3 (for example,
1139
1135
  * AES256, aws:kms).</p>
@@ -6433,9 +6429,7 @@ export interface GetObjectOutput {
6433
6429
  /**
6434
6430
  * <p>A map of metadata to store with the object in S3.</p>
6435
6431
  */
6436
- Metadata?: {
6437
- [key: string]: string;
6438
- };
6432
+ Metadata?: Record<string, string>;
6439
6433
  /**
6440
6434
  * <p>If server-side encryption with a customer-provided encryption key was requested, the
6441
6435
  * response will include this header confirming the encryption algorithm used.</p>
@@ -7548,9 +7542,7 @@ export interface HeadObjectOutput {
7548
7542
  /**
7549
7543
  * <p>A map of metadata to store with the object in S3.</p>
7550
7544
  */
7551
- Metadata?: {
7552
- [key: string]: string;
7553
- };
7545
+ Metadata?: Record<string, string>;
7554
7546
  /**
7555
7547
  * <p>If server-side encryption with a customer-provided encryption key was requested, the
7556
7548
  * response will include this header confirming the encryption algorithm used.</p>
@@ -10015,9 +10007,7 @@ export interface PutObjectRequest {
10015
10007
  /**
10016
10008
  * <p>A map of metadata to store with the object in S3.</p>
10017
10009
  */
10018
- Metadata?: {
10019
- [key: string]: string;
10020
- };
10010
+ Metadata?: Record<string, string>;
10021
10011
  /**
10022
10012
  * <p>The server-side encryption algorithm used when storing this object in Amazon S3 (for example,
10023
10013
  * AES256, aws:kms).</p>
@@ -1671,9 +1671,7 @@ export interface WriteGetObjectResponseRequest {
1671
1671
  /**
1672
1672
  * <p>A map of metadata to store with the object in S3.</p>
1673
1673
  */
1674
- Metadata?: {
1675
- [key: string]: string;
1676
- };
1674
+ Metadata?: Record<string, string>;
1677
1675
  /**
1678
1676
  * <p>Indicates whether an object stored in Amazon S3 has Object Lock enabled. For more
1679
1677
  * information about S3 Object Lock, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Object Lock</a>.</p>
@@ -310,9 +310,7 @@ export interface CopyObjectRequest {
310
310
 
311
311
  Key: string | undefined;
312
312
 
313
- Metadata?: {
314
- [key: string]: string;
315
- };
313
+ Metadata?: Record<string, string>;
316
314
 
317
315
  MetadataDirective?: MetadataDirective | string;
318
316
 
@@ -487,9 +485,7 @@ export interface CreateMultipartUploadRequest {
487
485
 
488
486
  Key: string | undefined;
489
487
 
490
- Metadata?: {
491
- [key: string]: string;
492
- };
488
+ Metadata?: Record<string, string>;
493
489
 
494
490
  ServerSideEncryption?: ServerSideEncryption | string;
495
491
 
@@ -2220,9 +2216,7 @@ export interface GetObjectOutput {
2220
2216
 
2221
2217
  ServerSideEncryption?: ServerSideEncryption | string;
2222
2218
 
2223
- Metadata?: {
2224
- [key: string]: string;
2225
- };
2219
+ Metadata?: Record<string, string>;
2226
2220
 
2227
2221
  SSECustomerAlgorithm?: string;
2228
2222
 
@@ -2727,9 +2721,7 @@ export interface HeadObjectOutput {
2727
2721
 
2728
2722
  ServerSideEncryption?: ServerSideEncryption | string;
2729
2723
 
2730
- Metadata?: {
2731
- [key: string]: string;
2732
- };
2724
+ Metadata?: Record<string, string>;
2733
2725
 
2734
2726
  SSECustomerAlgorithm?: string;
2735
2727
 
@@ -3763,9 +3755,7 @@ export interface PutObjectRequest {
3763
3755
 
3764
3756
  Key: string | undefined;
3765
3757
 
3766
- Metadata?: {
3767
- [key: string]: string;
3768
- };
3758
+ Metadata?: Record<string, string>;
3769
3759
 
3770
3760
  ServerSideEncryption?: ServerSideEncryption | string;
3771
3761
 
@@ -727,9 +727,7 @@ export interface WriteGetObjectResponseRequest {
727
727
 
728
728
  MissingMeta?: number;
729
729
 
730
- Metadata?: {
731
- [key: string]: string;
732
- };
730
+ Metadata?: Record<string, string>;
733
731
 
734
732
  ObjectLockMode?: ObjectLockMode | string;
735
733
 
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.95.0",
4
+ "version": "3.105.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.95.0",
25
+ "@aws-sdk/client-sts": "3.105.0",
26
26
  "@aws-sdk/config-resolver": "3.80.0",
27
- "@aws-sdk/credential-provider-node": "3.95.0",
27
+ "@aws-sdk/credential-provider-node": "3.105.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",
@@ -41,8 +41,9 @@
41
41
  "@aws-sdk/middleware-host-header": "3.78.0",
42
42
  "@aws-sdk/middleware-location-constraint": "3.78.0",
43
43
  "@aws-sdk/middleware-logger": "3.78.0",
44
+ "@aws-sdk/middleware-recursion-detection": "3.105.0",
44
45
  "@aws-sdk/middleware-retry": "3.80.0",
45
- "@aws-sdk/middleware-sdk-s3": "3.86.0",
46
+ "@aws-sdk/middleware-sdk-s3": "3.105.0",
46
47
  "@aws-sdk/middleware-serde": "3.78.0",
47
48
  "@aws-sdk/middleware-signing": "3.78.0",
48
49
  "@aws-sdk/middleware-ssec": "3.78.0",
@@ -52,15 +53,15 @@
52
53
  "@aws-sdk/node-http-handler": "3.94.0",
53
54
  "@aws-sdk/protocol-http": "3.78.0",
54
55
  "@aws-sdk/signature-v4-multi-region": "3.88.0",
55
- "@aws-sdk/smithy-client": "3.85.0",
56
+ "@aws-sdk/smithy-client": "3.99.0",
56
57
  "@aws-sdk/types": "3.78.0",
57
58
  "@aws-sdk/url-parser": "3.78.0",
58
59
  "@aws-sdk/util-base64-browser": "3.58.0",
59
60
  "@aws-sdk/util-base64-node": "3.55.0",
60
61
  "@aws-sdk/util-body-length-browser": "3.55.0",
61
62
  "@aws-sdk/util-body-length-node": "3.55.0",
62
- "@aws-sdk/util-defaults-mode-browser": "3.85.0",
63
- "@aws-sdk/util-defaults-mode-node": "3.85.0",
63
+ "@aws-sdk/util-defaults-mode-browser": "3.99.0",
64
+ "@aws-sdk/util-defaults-mode-node": "3.99.0",
64
65
  "@aws-sdk/util-stream-browser": "3.78.0",
65
66
  "@aws-sdk/util-stream-node": "3.78.0",
66
67
  "@aws-sdk/util-user-agent-browser": "3.78.0",