@aws-sdk/client-s3 3.45.0 → 3.46.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,24 @@
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
12
+
13
+
14
+ ### Features
15
+
16
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
17
+ * **clients:** update clients as of 2021/01/07 ([#3163](https://github.com/aws/aws-sdk-js-v3/issues/3163)) ([6648b07](https://github.com/aws/aws-sdk-js-v3/commit/6648b07ea97691d2fed55eab49831646543b648b))
18
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
19
+
20
+
21
+
22
+
23
+
6
24
  # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
25
 
8
26
 
@@ -18,10 +18,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
18
18
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
19
19
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
20
20
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
21
- const smithy_client_1 = require("@aws-sdk/smithy-client");
22
21
  const getRuntimeConfig = (config) => {
23
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
24
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
25
23
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
26
24
  return {
27
25
  ...clientSharedValues,
@@ -15,10 +15,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
15
15
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
16
16
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
17
17
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
18
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
19
18
  export var getRuntimeConfig = function (config) {
20
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
21
- emitWarningIfUnsupportedVersion(process.version);
22
20
  var clientSharedValues = getSharedRuntimeConfig(config);
23
21
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamSerdeProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _f !== void 0 ? _f : eventStreamSerdeProvider, maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), md5: (_h = config === null || config === void 0 ? void 0 : config.md5) !== null && _h !== void 0 ? _h : Hash.bind(null, "md5"), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttpHandler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : Hash.bind(null, "sha256"), streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : streamCollector, streamHasher: (_p = config === null || config === void 0 ? void 0 : config.streamHasher) !== null && _p !== void 0 ? _p : streamHasher, useArnRegion: (_q = config === null || config === void 0 ? void 0 : config.useArnRegion) !== null && _q !== void 0 ? _q : loadNodeConfig(NODE_USE_ARN_REGION_CONFIG_OPTIONS), useDualstackEndpoint: (_r = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _r !== void 0 ? _r : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_s = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _s !== void 0 ? _s : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_t = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _t !== void 0 ? _t : fromUtf8, utf8Encoder: (_u = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _u !== void 0 ? _u : toUtf8 });
24
22
  };
@@ -471,11 +471,11 @@ export declare class S3 extends S3Client {
471
471
  * <p>When creating a bucket using this operation, you can optionally configure the bucket ACL to specify the accounts or
472
472
  * groups that should be granted specific permissions on the bucket.</p>
473
473
  * <important>
474
- * <p>If your CreateBucket request includes the <code>BucketOwnerEnforced</code> value for
475
- * the <code>x-amz-object-ownership</code> header, your request can either not specify
476
- * an ACL or specify bucket owner full control ACLs, such as the <code>bucket-owner-full-control</code>
477
- * canned ACL or an equivalent ACL expressed in the XML format. For
478
- * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object
474
+ * <p>If your CreateBucket request sets bucket owner enforced for S3 Object Ownership and
475
+ * specifies a bucket ACL that provides access to an external Amazon Web Services account, your request
476
+ * fails with a <code>400</code> error and returns the
477
+ * <code>InvalidBucketAclWithObjectOwnership</code> error code. For more information,
478
+ * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object
479
479
  * ownership</a> in the <i>Amazon S3 User Guide</i>.</p>
480
480
  * </important>
481
481
  * <p>There are two ways to grant the appropriate permissions using the request headers.</p>
@@ -5160,7 +5160,8 @@ export declare class S3 extends S3Client {
5160
5160
  * <p>This action is not supported by Amazon S3 on Outposts.</p>
5161
5161
  * <p>For more information about Amazon S3 Select,
5162
5162
  * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html">Selecting Content from
5163
- * Objects</a> in the <i>Amazon S3 User Guide</i>.</p>
5163
+ * Objects</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html">SELECT
5164
+ * Command</a> in the <i>Amazon S3 User Guide</i>.</p>
5164
5165
  * <p>For more information about using SQL with Amazon S3 Select, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html"> SQL Reference for Amazon S3 Select
5165
5166
  * and S3 Glacier Select</a> in the <i>Amazon S3 User Guide</i>.</p>
5166
5167
  * <p></p>
@@ -33,11 +33,11 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat
33
33
  * <p>When creating a bucket using this operation, you can optionally configure the bucket ACL to specify the accounts or
34
34
  * groups that should be granted specific permissions on the bucket.</p>
35
35
  * <important>
36
- * <p>If your CreateBucket request includes the <code>BucketOwnerEnforced</code> value for
37
- * the <code>x-amz-object-ownership</code> header, your request can either not specify
38
- * an ACL or specify bucket owner full control ACLs, such as the <code>bucket-owner-full-control</code>
39
- * canned ACL or an equivalent ACL expressed in the XML format. For
40
- * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object
36
+ * <p>If your CreateBucket request sets bucket owner enforced for S3 Object Ownership and
37
+ * specifies a bucket ACL that provides access to an external Amazon Web Services account, your request
38
+ * fails with a <code>400</code> error and returns the
39
+ * <code>InvalidBucketAclWithObjectOwnership</code> error code. For more information,
40
+ * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling object
41
41
  * ownership</a> in the <i>Amazon S3 User Guide</i>.</p>
42
42
  * </important>
43
43
  * <p>There are two ways to grant the appropriate permissions using the request headers.</p>
@@ -16,7 +16,8 @@ export interface SelectObjectContentCommandOutput extends SelectObjectContentOut
16
16
  * <p>This action is not supported by Amazon S3 on Outposts.</p>
17
17
  * <p>For more information about Amazon S3 Select,
18
18
  * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html">Selecting Content from
19
- * Objects</a> in the <i>Amazon S3 User Guide</i>.</p>
19
+ * Objects</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html">SELECT
20
+ * Command</a> in the <i>Amazon S3 User Guide</i>.</p>
20
21
  * <p>For more information about using SQL with Amazon S3 Select, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html"> SQL Reference for Amazon S3 Select
21
22
  * and S3 Glacier Select</a> in the <i>Amazon S3 User Guide</i>.</p>
22
23
  * <p></p>
@@ -3864,7 +3864,9 @@ export declare namespace GetBucketCorsRequest {
3864
3864
  /**
3865
3865
  * <p>Describes the default server-side encryption to apply to new objects in the bucket. If a
3866
3866
  * PUT Object request doesn't specify any server-side encryption, this default encryption will
3867
- * be applied. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html">PUT Bucket encryption</a> in
3867
+ * be applied. If you don't specify a customer managed key at configuration, Amazon S3 automatically creates
3868
+ * an Amazon Web Services KMS key in your Amazon Web Services account the first time that you add an object encrypted with
3869
+ * SSE-KMS to a bucket. By default, Amazon S3 uses this KMS key for SSE-KMS. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTencryption.html">PUT Bucket encryption</a> in
3868
3870
  * the <i>Amazon S3 API Reference</i>.</p>
3869
3871
  */
3870
3872
  export interface ServerSideEncryptionByDefault {
@@ -3876,9 +3878,9 @@ export interface ServerSideEncryptionByDefault {
3876
3878
  * <p>Amazon Web Services Key Management Service (KMS) customer Amazon Web Services KMS key ID to use for the default
3877
3879
  * encryption. This parameter is allowed if and only if <code>SSEAlgorithm</code> is set to
3878
3880
  * <code>aws:kms</code>.</p>
3879
- * <p>You can specify the key ID or the Amazon Resource Name (ARN) of the KMS key. However, if you
3880
- * are using encryption with cross-account operations, you must use a fully qualified KMS key ARN.
3881
- * For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy">Using encryption for cross-account operations</a>. </p>
3881
+ * <p>You can specify the key ID or the Amazon Resource Name (ARN) of the KMS key. However, if
3882
+ * you are using encryption with cross-account or Amazon Web Services service operations you must use a fully qualified KMS
3883
+ * key ARN. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy">Using encryption for cross-account operations</a>. </p>
3882
3884
  * <p>
3883
3885
  * <b>For example:</b>
3884
3886
  * </p>
@@ -7200,12 +7202,8 @@ export interface HeadObjectRequest {
7200
7202
  */
7201
7203
  Key: string | undefined;
7202
7204
  /**
7203
- * <p>Downloads the specified range bytes of an object. For more information about the HTTP
7204
- * Range header, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35">http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35</a>.</p>
7205
- * <note>
7206
- * <p>Amazon S3 doesn't support retrieving multiple ranges of data per <code>GET</code>
7207
- * request.</p>
7208
- * </note>
7205
+ * <p>Because <code>HeadObject</code> returns only the metadata for an object, this parameter
7206
+ * has no effect.</p>
7209
7207
  */
7210
7208
  Range?: string;
7211
7209
  /**
package/package.json CHANGED
@@ -1,17 +1,17 @@
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.45.0",
4
+ "version": "3.46.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
12
  "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
+ "clean:dist": "rimraf ./dist-*",
13
14
  "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "test": "yarn test:unit",
16
16
  "test:e2e": "ts-mocha test/**/*.ispec.ts && karma start karma.conf.js",
17
17
  "test:unit": "ts-mocha test/**/*.spec.ts"
@@ -23,66 +23,60 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "2.0.0",
25
25
  "@aws-crypto/sha256-js": "2.0.0",
26
- "@aws-sdk/client-sts": "3.45.0",
27
- "@aws-sdk/config-resolver": "3.45.0",
28
- "@aws-sdk/credential-provider-node": "3.45.0",
29
- "@aws-sdk/eventstream-serde-browser": "3.40.0",
30
- "@aws-sdk/eventstream-serde-config-resolver": "3.40.0",
31
- "@aws-sdk/eventstream-serde-node": "3.40.0",
32
- "@aws-sdk/fetch-http-handler": "3.40.0",
33
- "@aws-sdk/hash-blob-browser": "3.40.0",
34
- "@aws-sdk/hash-node": "3.40.0",
35
- "@aws-sdk/hash-stream-node": "3.45.0",
36
- "@aws-sdk/invalid-dependency": "3.40.0",
37
- "@aws-sdk/md5-js": "3.40.0",
38
- "@aws-sdk/middleware-apply-body-checksum": "3.40.0",
39
- "@aws-sdk/middleware-bucket-endpoint": "3.41.0",
40
- "@aws-sdk/middleware-content-length": "3.40.0",
41
- "@aws-sdk/middleware-expect-continue": "3.40.0",
42
- "@aws-sdk/middleware-host-header": "3.40.0",
43
- "@aws-sdk/middleware-location-constraint": "3.40.0",
44
- "@aws-sdk/middleware-logger": "3.40.0",
45
- "@aws-sdk/middleware-retry": "3.40.0",
46
- "@aws-sdk/middleware-sdk-s3": "3.45.0",
47
- "@aws-sdk/middleware-serde": "3.40.0",
48
- "@aws-sdk/middleware-signing": "3.45.0",
49
- "@aws-sdk/middleware-ssec": "3.40.0",
50
- "@aws-sdk/middleware-stack": "3.40.0",
51
- "@aws-sdk/middleware-user-agent": "3.40.0",
52
- "@aws-sdk/node-config-provider": "3.40.0",
53
- "@aws-sdk/node-http-handler": "3.40.0",
54
- "@aws-sdk/protocol-http": "3.40.0",
55
- "@aws-sdk/smithy-client": "3.41.0",
56
- "@aws-sdk/types": "3.40.0",
57
- "@aws-sdk/url-parser": "3.40.0",
58
- "@aws-sdk/util-base64-browser": "3.37.0",
59
- "@aws-sdk/util-base64-node": "3.37.0",
60
- "@aws-sdk/util-body-length-browser": "3.37.0",
61
- "@aws-sdk/util-body-length-node": "3.37.0",
62
- "@aws-sdk/util-user-agent-browser": "3.40.0",
63
- "@aws-sdk/util-user-agent-node": "3.40.0",
64
- "@aws-sdk/util-utf8-browser": "3.37.0",
65
- "@aws-sdk/util-utf8-node": "3.37.0",
66
- "@aws-sdk/util-waiter": "3.40.0",
67
- "@aws-sdk/xml-builder": "3.37.0",
26
+ "@aws-sdk/client-sts": "3.46.0",
27
+ "@aws-sdk/config-resolver": "3.46.0",
28
+ "@aws-sdk/credential-provider-node": "3.46.0",
29
+ "@aws-sdk/eventstream-serde-browser": "3.46.0",
30
+ "@aws-sdk/eventstream-serde-config-resolver": "3.46.0",
31
+ "@aws-sdk/eventstream-serde-node": "3.46.0",
32
+ "@aws-sdk/fetch-http-handler": "3.46.0",
33
+ "@aws-sdk/hash-blob-browser": "3.46.0",
34
+ "@aws-sdk/hash-node": "3.46.0",
35
+ "@aws-sdk/hash-stream-node": "3.46.0",
36
+ "@aws-sdk/invalid-dependency": "3.46.0",
37
+ "@aws-sdk/md5-js": "3.46.0",
38
+ "@aws-sdk/middleware-apply-body-checksum": "3.46.0",
39
+ "@aws-sdk/middleware-bucket-endpoint": "3.46.0",
40
+ "@aws-sdk/middleware-content-length": "3.46.0",
41
+ "@aws-sdk/middleware-expect-continue": "3.46.0",
42
+ "@aws-sdk/middleware-host-header": "3.46.0",
43
+ "@aws-sdk/middleware-location-constraint": "3.46.0",
44
+ "@aws-sdk/middleware-logger": "3.46.0",
45
+ "@aws-sdk/middleware-retry": "3.46.0",
46
+ "@aws-sdk/middleware-sdk-s3": "3.46.0",
47
+ "@aws-sdk/middleware-serde": "3.46.0",
48
+ "@aws-sdk/middleware-signing": "3.46.0",
49
+ "@aws-sdk/middleware-ssec": "3.46.0",
50
+ "@aws-sdk/middleware-stack": "3.46.0",
51
+ "@aws-sdk/middleware-user-agent": "3.46.0",
52
+ "@aws-sdk/node-config-provider": "3.46.0",
53
+ "@aws-sdk/node-http-handler": "3.46.0",
54
+ "@aws-sdk/protocol-http": "3.46.0",
55
+ "@aws-sdk/smithy-client": "3.46.0",
56
+ "@aws-sdk/types": "3.46.0",
57
+ "@aws-sdk/url-parser": "3.46.0",
58
+ "@aws-sdk/util-base64-browser": "3.46.0",
59
+ "@aws-sdk/util-base64-node": "3.46.0",
60
+ "@aws-sdk/util-body-length-browser": "3.46.0",
61
+ "@aws-sdk/util-body-length-node": "3.46.0",
62
+ "@aws-sdk/util-user-agent-browser": "3.46.0",
63
+ "@aws-sdk/util-user-agent-node": "3.46.0",
64
+ "@aws-sdk/util-utf8-browser": "3.46.0",
65
+ "@aws-sdk/util-utf8-node": "3.46.0",
66
+ "@aws-sdk/util-waiter": "3.46.0",
67
+ "@aws-sdk/xml-builder": "3.46.0",
68
68
  "entities": "2.2.0",
69
69
  "fast-xml-parser": "3.19.0",
70
70
  "tslib": "^2.3.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
73
+ "@aws-sdk/service-client-documentation-generator": "3.46.0",
74
74
  "@types/chai": "^4.2.11",
75
75
  "@types/mocha": "^8.0.4",
76
- "@types/node": "^12.7.5",
77
- "downlevel-dts": "0.7.0",
78
- "jest": "^26.1.0",
79
- "rimraf": "^3.0.0",
80
- "ts-jest": "^26.4.1",
81
- "typedoc": "^0.19.2",
82
- "typescript": "~4.3.5"
76
+ "@types/node": "^12.7.5"
83
77
  },
84
78
  "engines": {
85
- "node": ">=10.0.0"
79
+ "node": ">=12.0.0"
86
80
  },
87
81
  "typesVersions": {
88
82
  "<4.0": {