@aws-sdk/client-s3 3.45.0 → 3.47.2

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.
@@ -12,10 +12,6 @@ export var AbortMultipartUploadRequest;
12
12
  (function (AbortMultipartUploadRequest) {
13
13
  AbortMultipartUploadRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
14
  })(AbortMultipartUploadRequest || (AbortMultipartUploadRequest = {}));
15
- export var NoSuchUpload;
16
- (function (NoSuchUpload) {
17
- NoSuchUpload.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
- })(NoSuchUpload || (NoSuchUpload = {}));
19
15
  export var AccelerateConfiguration;
20
16
  (function (AccelerateConfiguration) {
21
17
  AccelerateConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -68,18 +64,6 @@ export var CopyObjectRequest;
68
64
  (function (CopyObjectRequest) {
69
65
  CopyObjectRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING })), (obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING })), (obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING })), (obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }))); };
70
66
  })(CopyObjectRequest || (CopyObjectRequest = {}));
71
- export var ObjectNotInActiveTierError;
72
- (function (ObjectNotInActiveTierError) {
73
- ObjectNotInActiveTierError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
- })(ObjectNotInActiveTierError || (ObjectNotInActiveTierError = {}));
75
- export var BucketAlreadyExists;
76
- (function (BucketAlreadyExists) {
77
- BucketAlreadyExists.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
- })(BucketAlreadyExists || (BucketAlreadyExists = {}));
79
- export var BucketAlreadyOwnedByYou;
80
- (function (BucketAlreadyOwnedByYou) {
81
- BucketAlreadyOwnedByYou.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
- })(BucketAlreadyOwnedByYou || (BucketAlreadyOwnedByYou = {}));
83
67
  export var CreateBucketOutput;
84
68
  (function (CreateBucketOutput) {
85
69
  CreateBucketOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -730,14 +714,6 @@ export var GetObjectRequest;
730
714
  (function (GetObjectRequest) {
731
715
  GetObjectRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }))); };
732
716
  })(GetObjectRequest || (GetObjectRequest = {}));
733
- export var InvalidObjectState;
734
- (function (InvalidObjectState) {
735
- InvalidObjectState.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
736
- })(InvalidObjectState || (InvalidObjectState = {}));
737
- export var NoSuchKey;
738
- (function (NoSuchKey) {
739
- NoSuchKey.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
740
- })(NoSuchKey || (NoSuchKey = {}));
741
717
  export var GetObjectAclOutput;
742
718
  (function (GetObjectAclOutput) {
743
719
  GetObjectAclOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -822,10 +798,6 @@ export var HeadBucketRequest;
822
798
  (function (HeadBucketRequest) {
823
799
  HeadBucketRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
824
800
  })(HeadBucketRequest || (HeadBucketRequest = {}));
825
- export var NotFound;
826
- (function (NotFound) {
827
- NotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
828
- })(NotFound || (NotFound = {}));
829
801
  export var HeadObjectOutput;
830
802
  (function (HeadObjectOutput) {
831
803
  HeadObjectOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }))); };
@@ -918,10 +890,6 @@ export var ListObjectsRequest;
918
890
  (function (ListObjectsRequest) {
919
891
  ListObjectsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
920
892
  })(ListObjectsRequest || (ListObjectsRequest = {}));
921
- export var NoSuchBucket;
922
- (function (NoSuchBucket) {
923
- NoSuchBucket.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
924
- })(NoSuchBucket || (NoSuchBucket = {}));
925
893
  export var ListObjectsV2Output;
926
894
  (function (ListObjectsV2Output) {
927
895
  ListObjectsV2Output.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1122,10 +1090,6 @@ export var PutPublicAccessBlockRequest;
1122
1090
  (function (PutPublicAccessBlockRequest) {
1123
1091
  PutPublicAccessBlockRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1124
1092
  })(PutPublicAccessBlockRequest || (PutPublicAccessBlockRequest = {}));
1125
- export var ObjectAlreadyInActiveTierError;
1126
- (function (ObjectAlreadyInActiveTierError) {
1127
- ObjectAlreadyInActiveTierError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1128
- })(ObjectAlreadyInActiveTierError || (ObjectAlreadyInActiveTierError = {}));
1129
1093
  export var RestoreObjectOutput;
1130
1094
  (function (RestoreObjectOutput) {
1131
1095
  RestoreObjectOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,9 +1,9 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
5
  import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser";
6
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
7
7
  import { blobHasher as streamHasher } from "@aws-sdk/hash-blob-browser";
8
8
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
9
9
  import { Md5 } from "@aws-sdk/md5-js";
@@ -13,8 +13,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
13
13
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
14
14
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
15
15
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
17
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
16
18
  export var getRuntimeConfig = function (config) {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
20
+ var defaultsMode = resolveDefaultsModeConfig(config);
21
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
18
22
  var clientSharedValues = getSharedRuntimeConfig(config);
19
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", 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 : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), 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 : DEFAULT_MAX_ATTEMPTS, md5: (_h = config === null || config === void 0 ? void 0 : config.md5) !== null && _h !== void 0 ? _h : Md5, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new FetchHttpHandler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : 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, useDualstackEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _q !== void 0 ? _q : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_r = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _r !== void 0 ? _r : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _s !== void 0 ? _s : fromUtf8, utf8Encoder: (_t = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _t !== void 0 ? _t : toUtf8 });
23
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, 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 : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), 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 : DEFAULT_MAX_ATTEMPTS, md5: (_h = config === null || config === void 0 ? void 0 : config.md5) !== null && _h !== void 0 ? _h : Md5, region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : invalidProvider("Region is missing"), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new RequestHandler(defaultConfigProvider), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
24
+ switch (_a.label) {
25
+ case 0: return [4, defaultConfigProvider()];
26
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
27
+ }
28
+ }); }); }), sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : 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, useDualstackEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _q !== void 0 ? _q : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_r = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _r !== void 0 ? _r : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _s !== void 0 ? _s : fromUtf8, utf8Encoder: (_t = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _t !== void 0 ? _t : toUtf8 });
20
29
  };
@@ -1,4 +1,4 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -7,18 +7,25 @@ import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
7
7
  import { Hash } from "@aws-sdk/hash-node";
8
8
  import { fileStreamHasher as streamHasher } from "@aws-sdk/hash-stream-node";
9
9
  import { NODE_USE_ARN_REGION_CONFIG_OPTIONS } from "@aws-sdk/middleware-bucket-endpoint";
10
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
10
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
11
11
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
12
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
12
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
13
13
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
14
14
  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";
18
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
19
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
19
20
  export var getRuntimeConfig = function (config) {
20
21
  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
+ var defaultsMode = resolveDefaultsModeConfig(config);
23
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
22
24
  var clientSharedValues = getSharedRuntimeConfig(config);
23
- 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 });
25
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, defaultConfigProvider()];
28
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
29
+ }
30
+ }); }); } })), 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
31
  };
@@ -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>
@@ -7,7 +7,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
7
7
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
8
8
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
9
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
11
11
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, StreamHasher as __StreamHasher, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
12
12
  import { Readable } from "stream";
13
13
  import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } from "./commands/AbortMultipartUploadCommand";
@@ -228,6 +228,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
228
228
  * @internal
229
229
  */
230
230
  md5?: __HashConstructor;
231
+ /**
232
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
233
+ */
234
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
231
235
  }
232
236
  declare type S3ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & BucketEndpointInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
233
237
  /**
@@ -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>
@@ -77,12 +77,6 @@ export interface NoSuchUpload extends __SmithyException, $MetadataBearer {
77
77
  name: "NoSuchUpload";
78
78
  $fault: "client";
79
79
  }
80
- export declare namespace NoSuchUpload {
81
- /**
82
- * @internal
83
- */
84
- const filterSensitiveLog: (obj: NoSuchUpload) => any;
85
- }
86
80
  export declare type BucketAccelerateStatus = "Enabled" | "Suspended";
87
81
  /**
88
82
  * <p>Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see
@@ -708,12 +702,6 @@ export interface ObjectNotInActiveTierError extends __SmithyException, $Metadata
708
702
  name: "ObjectNotInActiveTierError";
709
703
  $fault: "client";
710
704
  }
711
- export declare namespace ObjectNotInActiveTierError {
712
- /**
713
- * @internal
714
- */
715
- const filterSensitiveLog: (obj: ObjectNotInActiveTierError) => any;
716
- }
717
705
  /**
718
706
  * <p>The requested bucket name is not available. The bucket namespace is shared by all users
719
707
  * of the system. Select a different name and try again.</p>
@@ -722,12 +710,6 @@ export interface BucketAlreadyExists extends __SmithyException, $MetadataBearer
722
710
  name: "BucketAlreadyExists";
723
711
  $fault: "client";
724
712
  }
725
- export declare namespace BucketAlreadyExists {
726
- /**
727
- * @internal
728
- */
729
- const filterSensitiveLog: (obj: BucketAlreadyExists) => any;
730
- }
731
713
  /**
732
714
  * <p>The bucket you tried to create already exists, and you own it. Amazon S3 returns this error
733
715
  * in all Amazon Web Services Regions except in the North Virginia Region. For legacy compatibility, if you
@@ -738,12 +720,6 @@ export interface BucketAlreadyOwnedByYou extends __SmithyException, $MetadataBea
738
720
  name: "BucketAlreadyOwnedByYou";
739
721
  $fault: "client";
740
722
  }
741
- export declare namespace BucketAlreadyOwnedByYou {
742
- /**
743
- * @internal
744
- */
745
- const filterSensitiveLog: (obj: BucketAlreadyOwnedByYou) => any;
746
- }
747
723
  export interface CreateBucketOutput {
748
724
  /**
749
725
  * <p>Specifies the Region where the bucket will be created. If you are creating a bucket on
@@ -3864,7 +3840,9 @@ export declare namespace GetBucketCorsRequest {
3864
3840
  /**
3865
3841
  * <p>Describes the default server-side encryption to apply to new objects in the bucket. If a
3866
3842
  * 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
3843
+ * be applied. If you don't specify a customer managed key at configuration, Amazon S3 automatically creates
3844
+ * an Amazon Web Services KMS key in your Amazon Web Services account the first time that you add an object encrypted with
3845
+ * 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
3846
  * the <i>Amazon S3 API Reference</i>.</p>
3869
3847
  */
3870
3848
  export interface ServerSideEncryptionByDefault {
@@ -3876,9 +3854,9 @@ export interface ServerSideEncryptionByDefault {
3876
3854
  * <p>Amazon Web Services Key Management Service (KMS) customer Amazon Web Services KMS key ID to use for the default
3877
3855
  * encryption. This parameter is allowed if and only if <code>SSEAlgorithm</code> is set to
3878
3856
  * <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>
3857
+ * <p>You can specify the key ID or the Amazon Resource Name (ARN) of the KMS key. However, if
3858
+ * you are using encryption with cross-account or Amazon Web Services service operations you must use a fully qualified KMS
3859
+ * 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
3860
  * <p>
3883
3861
  * <b>For example:</b>
3884
3862
  * </p>
@@ -6420,12 +6398,6 @@ export interface InvalidObjectState extends __SmithyException, $MetadataBearer {
6420
6398
  StorageClass?: StorageClass | string;
6421
6399
  AccessTier?: IntelligentTieringAccessTier | string;
6422
6400
  }
6423
- export declare namespace InvalidObjectState {
6424
- /**
6425
- * @internal
6426
- */
6427
- const filterSensitiveLog: (obj: InvalidObjectState) => any;
6428
- }
6429
6401
  /**
6430
6402
  * <p>The specified key does not exist.</p>
6431
6403
  */
@@ -6433,12 +6405,6 @@ export interface NoSuchKey extends __SmithyException, $MetadataBearer {
6433
6405
  name: "NoSuchKey";
6434
6406
  $fault: "client";
6435
6407
  }
6436
- export declare namespace NoSuchKey {
6437
- /**
6438
- * @internal
6439
- */
6440
- const filterSensitiveLog: (obj: NoSuchKey) => any;
6441
- }
6442
6408
  export interface GetObjectAclOutput {
6443
6409
  /**
6444
6410
  * <p> Container for the bucket owner's display name and ID.</p>
@@ -6948,12 +6914,6 @@ export interface NotFound extends __SmithyException, $MetadataBearer {
6948
6914
  name: "NotFound";
6949
6915
  $fault: "client";
6950
6916
  }
6951
- export declare namespace NotFound {
6952
- /**
6953
- * @internal
6954
- */
6955
- const filterSensitiveLog: (obj: NotFound) => any;
6956
- }
6957
6917
  export declare type ArchiveStatus = "ARCHIVE_ACCESS" | "DEEP_ARCHIVE_ACCESS";
6958
6918
  export interface HeadObjectOutput {
6959
6919
  /**
@@ -7200,12 +7160,8 @@ export interface HeadObjectRequest {
7200
7160
  */
7201
7161
  Key: string | undefined;
7202
7162
  /**
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>
7163
+ * <p>Because <code>HeadObject</code> returns only the metadata for an object, this parameter
7164
+ * has no effect.</p>
7209
7165
  */
7210
7166
  Range?: string;
7211
7167
  /**
@@ -7903,12 +7859,6 @@ export interface NoSuchBucket extends __SmithyException, $MetadataBearer {
7903
7859
  name: "NoSuchBucket";
7904
7860
  $fault: "client";
7905
7861
  }
7906
- export declare namespace NoSuchBucket {
7907
- /**
7908
- * @internal
7909
- */
7910
- const filterSensitiveLog: (obj: NoSuchBucket) => any;
7911
- }
7912
7862
  export interface ListObjectsV2Output {
7913
7863
  /**
7914
7864
  * <p>Set to false if all of the results were returned. Set to true if more keys are available
@@ -9735,12 +9685,6 @@ export interface ObjectAlreadyInActiveTierError extends __SmithyException, $Meta
9735
9685
  name: "ObjectAlreadyInActiveTierError";
9736
9686
  $fault: "client";
9737
9687
  }
9738
- export declare namespace ObjectAlreadyInActiveTierError {
9739
- /**
9740
- * @internal
9741
- */
9742
- const filterSensitiveLog: (obj: ObjectAlreadyInActiveTierError) => any;
9743
- }
9744
9688
  export interface RestoreObjectOutput {
9745
9689
  /**
9746
9690
  * <p>If present, indicates that the requester was successfully charged for the
@@ -1,11 +1,12 @@
1
1
  /// <reference types="node" />
2
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
3
3
  import { S3ClientConfig } from "./S3Client";
4
4
  /**
5
5
  * @internal
6
6
  */
7
7
  export declare const getRuntimeConfig: (config: S3ClientConfig) => {
8
8
  runtime: string;
9
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
10
  base64Decoder: import("@aws-sdk/types").Decoder;
10
11
  base64Encoder: import("@aws-sdk/types").Encoder;
11
12
  bodyLengthChecker: (body: any) => number | undefined;
@@ -15,7 +16,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
15
16
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
16
17
  md5: import("@aws-sdk/types").HashConstructor;
17
18
  region: string | import("@aws-sdk/types").Provider<any>;
18
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
19
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
19
20
  retryMode: string | import("@aws-sdk/types").Provider<string>;
20
21
  sha256: import("@aws-sdk/types").HashConstructor;
21
22
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -39,7 +40,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
39
40
  signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
40
41
  systemClockOffset?: number | undefined;
41
42
  signingRegion?: string | undefined;
42
- signerConstructor: typeof import("@aws-sdk/middleware-sdk-s3").S3SignatureV4 | (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner);
43
+ signerConstructor: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | typeof import("@aws-sdk/middleware-sdk-s3").S3SignatureV4;
43
44
  bucketEndpoint?: boolean | undefined;
44
45
  forcePathStyle?: boolean | undefined;
45
46
  useAccelerateEndpoint?: boolean | undefined;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
3
3
  import { HashConstructor as __HashConstructor } from "@aws-sdk/types";
4
4
  import { S3ClientConfig } from "./S3Client";
5
5
  /**
@@ -7,16 +7,17 @@ import { S3ClientConfig } from "./S3Client";
7
7
  */
8
8
  export declare const getRuntimeConfig: (config: S3ClientConfig) => {
9
9
  runtime: string;
10
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
10
11
  base64Decoder: import("@aws-sdk/types").Decoder;
11
12
  base64Encoder: import("@aws-sdk/types").Encoder;
12
13
  bodyLengthChecker: (body: any) => number | undefined;
13
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
14
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
14
15
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
15
16
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
16
17
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
17
18
  md5: __HashConstructor;
18
19
  region: string | import("@aws-sdk/types").Provider<string>;
19
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
20
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
20
21
  retryMode: string | import("@aws-sdk/types").Provider<string>;
21
22
  sha256: __HashConstructor;
22
23
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -40,7 +41,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
40
41
  signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
41
42
  systemClockOffset?: number | undefined;
42
43
  signingRegion?: string | undefined;
43
- signerConstructor: typeof import("@aws-sdk/middleware-sdk-s3").S3SignatureV4 | (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner);
44
+ signerConstructor: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | typeof import("@aws-sdk/middleware-sdk-s3").S3SignatureV4;
44
45
  bucketEndpoint?: boolean | undefined;
45
46
  forcePathStyle?: boolean | undefined;
46
47
  useAccelerateEndpoint?: boolean | undefined;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
31
31
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
32
32
  streamHasher: import("@aws-sdk/types").StreamHasher<import("stream").Readable> | import("@aws-sdk/types").StreamHasher<Blob>;
33
33
  md5: import("@aws-sdk/types").HashConstructor;
34
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
34
35
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
35
36
  tls?: boolean | undefined;
36
37
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -38,7 +39,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
38
39
  signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
39
40
  systemClockOffset?: number | undefined;
40
41
  signingRegion?: string | undefined;
41
- signerConstructor: typeof import("@aws-sdk/middleware-sdk-s3").S3SignatureV4 | (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner);
42
+ signerConstructor: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | typeof import("@aws-sdk/middleware-sdk-s3").S3SignatureV4;
42
43
  bucketEndpoint?: boolean | undefined;
43
44
  forcePathStyle?: boolean | undefined;
44
45
  useAccelerateEndpoint?: boolean | undefined;
@@ -10,7 +10,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
10
10
  logger: __Logger;
11
11
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
12
12
  serviceId: string;
13
- signerConstructor: typeof S3SignatureV4 | (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner);
13
+ signerConstructor: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | typeof S3SignatureV4;
14
14
  signingEscapePath: boolean;
15
15
  urlParser: import("@aws-sdk/types").UrlParser;
16
16
  useArnRegion: boolean | import("@aws-sdk/types").Provider<boolean>;
@@ -7,7 +7,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
7
7
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
8
8
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
9
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
11
11
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, StreamHasher as __StreamHasher, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
12
12
  import { Readable } from "stream";
13
13
  import { AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput } from "./commands/AbortMultipartUploadCommand";
@@ -157,6 +157,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
157
157
  streamHasher?: __StreamHasher<Readable> | __StreamHasher<Blob>;
158
158
 
159
159
  md5?: __HashConstructor;
160
+
161
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
160
162
  }
161
163
  declare type S3ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & BucketEndpointInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
162
164
 
@@ -41,10 +41,6 @@ export interface NoSuchUpload extends __SmithyException, $MetadataBearer {
41
41
  name: "NoSuchUpload";
42
42
  $fault: "client";
43
43
  }
44
- export declare namespace NoSuchUpload {
45
-
46
- const filterSensitiveLog: (obj: NoSuchUpload) => any;
47
- }
48
44
  export declare type BucketAccelerateStatus = "Enabled" | "Suspended";
49
45
 
50
46
  export interface AccelerateConfiguration {
@@ -320,28 +316,16 @@ export interface ObjectNotInActiveTierError extends __SmithyException, $Metadata
320
316
  name: "ObjectNotInActiveTierError";
321
317
  $fault: "client";
322
318
  }
323
- export declare namespace ObjectNotInActiveTierError {
324
-
325
- const filterSensitiveLog: (obj: ObjectNotInActiveTierError) => any;
326
- }
327
319
 
328
320
  export interface BucketAlreadyExists extends __SmithyException, $MetadataBearer {
329
321
  name: "BucketAlreadyExists";
330
322
  $fault: "client";
331
323
  }
332
- export declare namespace BucketAlreadyExists {
333
-
334
- const filterSensitiveLog: (obj: BucketAlreadyExists) => any;
335
- }
336
324
 
337
325
  export interface BucketAlreadyOwnedByYou extends __SmithyException, $MetadataBearer {
338
326
  name: "BucketAlreadyOwnedByYou";
339
327
  $fault: "client";
340
328
  }
341
- export declare namespace BucketAlreadyOwnedByYou {
342
-
343
- const filterSensitiveLog: (obj: BucketAlreadyOwnedByYou) => any;
344
- }
345
329
  export interface CreateBucketOutput {
346
330
 
347
331
  Location?: string;
@@ -2252,19 +2236,11 @@ export interface InvalidObjectState extends __SmithyException, $MetadataBearer {
2252
2236
  StorageClass?: StorageClass | string;
2253
2237
  AccessTier?: IntelligentTieringAccessTier | string;
2254
2238
  }
2255
- export declare namespace InvalidObjectState {
2256
-
2257
- const filterSensitiveLog: (obj: InvalidObjectState) => any;
2258
- }
2259
2239
 
2260
2240
  export interface NoSuchKey extends __SmithyException, $MetadataBearer {
2261
2241
  name: "NoSuchKey";
2262
2242
  $fault: "client";
2263
2243
  }
2264
- export declare namespace NoSuchKey {
2265
-
2266
- const filterSensitiveLog: (obj: NoSuchKey) => any;
2267
- }
2268
2244
  export interface GetObjectAclOutput {
2269
2245
 
2270
2246
  Owner?: Owner;
@@ -2512,10 +2488,6 @@ export interface NotFound extends __SmithyException, $MetadataBearer {
2512
2488
  name: "NotFound";
2513
2489
  $fault: "client";
2514
2490
  }
2515
- export declare namespace NotFound {
2516
-
2517
- const filterSensitiveLog: (obj: NotFound) => any;
2518
- }
2519
2491
  export declare type ArchiveStatus = "ARCHIVE_ACCESS" | "DEEP_ARCHIVE_ACCESS";
2520
2492
  export interface HeadObjectOutput {
2521
2493
 
@@ -2907,10 +2879,6 @@ export interface NoSuchBucket extends __SmithyException, $MetadataBearer {
2907
2879
  name: "NoSuchBucket";
2908
2880
  $fault: "client";
2909
2881
  }
2910
- export declare namespace NoSuchBucket {
2911
-
2912
- const filterSensitiveLog: (obj: NoSuchBucket) => any;
2913
- }
2914
2882
  export interface ListObjectsV2Output {
2915
2883
 
2916
2884
  IsTruncated?: boolean;
@@ -3736,10 +3704,6 @@ export interface ObjectAlreadyInActiveTierError extends __SmithyException, $Meta
3736
3704
  name: "ObjectAlreadyInActiveTierError";
3737
3705
  $fault: "client";
3738
3706
  }
3739
- export declare namespace ObjectAlreadyInActiveTierError {
3740
-
3741
- const filterSensitiveLog: (obj: ObjectAlreadyInActiveTierError) => any;
3742
- }
3743
3707
  export interface RestoreObjectOutput {
3744
3708
 
3745
3709
  RequestCharged?: RequestCharged | string;