@aws-sdk/client-s3 3.36.1 → 3.40.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/dist-cjs/index.js CHANGED
@@ -1,105 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./S3Client"), exports);
5
4
  tslib_1.__exportStar(require("./S3"), exports);
6
- tslib_1.__exportStar(require("./commands/AbortMultipartUploadCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/CompleteMultipartUploadCommand"), exports);
8
- tslib_1.__exportStar(require("./commands/CopyObjectCommand"), exports);
9
- tslib_1.__exportStar(require("./commands/CreateBucketCommand"), exports);
10
- tslib_1.__exportStar(require("./commands/CreateMultipartUploadCommand"), exports);
11
- tslib_1.__exportStar(require("./commands/DeleteBucketCommand"), exports);
12
- tslib_1.__exportStar(require("./commands/DeleteBucketAnalyticsConfigurationCommand"), exports);
13
- tslib_1.__exportStar(require("./commands/DeleteBucketCorsCommand"), exports);
14
- tslib_1.__exportStar(require("./commands/DeleteBucketEncryptionCommand"), exports);
15
- tslib_1.__exportStar(require("./commands/DeleteBucketIntelligentTieringConfigurationCommand"), exports);
16
- tslib_1.__exportStar(require("./commands/DeleteBucketInventoryConfigurationCommand"), exports);
17
- tslib_1.__exportStar(require("./commands/DeleteBucketLifecycleCommand"), exports);
18
- tslib_1.__exportStar(require("./commands/DeleteBucketMetricsConfigurationCommand"), exports);
19
- tslib_1.__exportStar(require("./commands/DeleteBucketOwnershipControlsCommand"), exports);
20
- tslib_1.__exportStar(require("./commands/DeleteBucketPolicyCommand"), exports);
21
- tslib_1.__exportStar(require("./commands/DeleteBucketReplicationCommand"), exports);
22
- tslib_1.__exportStar(require("./commands/DeleteBucketTaggingCommand"), exports);
23
- tslib_1.__exportStar(require("./commands/DeleteBucketWebsiteCommand"), exports);
24
- tslib_1.__exportStar(require("./commands/DeleteObjectCommand"), exports);
25
- tslib_1.__exportStar(require("./commands/DeleteObjectsCommand"), exports);
26
- tslib_1.__exportStar(require("./commands/DeleteObjectTaggingCommand"), exports);
27
- tslib_1.__exportStar(require("./commands/DeletePublicAccessBlockCommand"), exports);
28
- tslib_1.__exportStar(require("./commands/GetBucketAccelerateConfigurationCommand"), exports);
29
- tslib_1.__exportStar(require("./commands/GetBucketAclCommand"), exports);
30
- tslib_1.__exportStar(require("./commands/GetBucketAnalyticsConfigurationCommand"), exports);
31
- tslib_1.__exportStar(require("./commands/GetBucketCorsCommand"), exports);
32
- tslib_1.__exportStar(require("./commands/GetBucketEncryptionCommand"), exports);
33
- tslib_1.__exportStar(require("./commands/GetBucketIntelligentTieringConfigurationCommand"), exports);
34
- tslib_1.__exportStar(require("./commands/GetBucketInventoryConfigurationCommand"), exports);
35
- tslib_1.__exportStar(require("./commands/GetBucketLifecycleConfigurationCommand"), exports);
36
- tslib_1.__exportStar(require("./commands/GetBucketLocationCommand"), exports);
37
- tslib_1.__exportStar(require("./commands/GetBucketLoggingCommand"), exports);
38
- tslib_1.__exportStar(require("./commands/GetBucketMetricsConfigurationCommand"), exports);
39
- tslib_1.__exportStar(require("./commands/GetBucketNotificationConfigurationCommand"), exports);
40
- tslib_1.__exportStar(require("./commands/GetBucketOwnershipControlsCommand"), exports);
41
- tslib_1.__exportStar(require("./commands/GetBucketPolicyCommand"), exports);
42
- tslib_1.__exportStar(require("./commands/GetBucketPolicyStatusCommand"), exports);
43
- tslib_1.__exportStar(require("./commands/GetBucketReplicationCommand"), exports);
44
- tslib_1.__exportStar(require("./commands/GetBucketRequestPaymentCommand"), exports);
45
- tslib_1.__exportStar(require("./commands/GetBucketTaggingCommand"), exports);
46
- tslib_1.__exportStar(require("./commands/GetBucketVersioningCommand"), exports);
47
- tslib_1.__exportStar(require("./commands/GetBucketWebsiteCommand"), exports);
48
- tslib_1.__exportStar(require("./commands/GetObjectCommand"), exports);
49
- tslib_1.__exportStar(require("./commands/GetObjectAclCommand"), exports);
50
- tslib_1.__exportStar(require("./commands/GetObjectLegalHoldCommand"), exports);
51
- tslib_1.__exportStar(require("./commands/GetObjectLockConfigurationCommand"), exports);
52
- tslib_1.__exportStar(require("./commands/GetObjectRetentionCommand"), exports);
53
- tslib_1.__exportStar(require("./commands/GetObjectTaggingCommand"), exports);
54
- tslib_1.__exportStar(require("./commands/GetObjectTorrentCommand"), exports);
55
- tslib_1.__exportStar(require("./commands/GetPublicAccessBlockCommand"), exports);
56
- tslib_1.__exportStar(require("./commands/HeadBucketCommand"), exports);
57
- tslib_1.__exportStar(require("./waiters/waitForBucketExists"), exports);
58
- tslib_1.__exportStar(require("./waiters/waitForBucketNotExists"), exports);
59
- tslib_1.__exportStar(require("./commands/HeadObjectCommand"), exports);
60
- tslib_1.__exportStar(require("./waiters/waitForObjectExists"), exports);
61
- tslib_1.__exportStar(require("./waiters/waitForObjectNotExists"), exports);
62
- tslib_1.__exportStar(require("./commands/ListBucketAnalyticsConfigurationsCommand"), exports);
63
- tslib_1.__exportStar(require("./commands/ListBucketIntelligentTieringConfigurationsCommand"), exports);
64
- tslib_1.__exportStar(require("./commands/ListBucketInventoryConfigurationsCommand"), exports);
65
- tslib_1.__exportStar(require("./commands/ListBucketMetricsConfigurationsCommand"), exports);
66
- tslib_1.__exportStar(require("./commands/ListBucketsCommand"), exports);
67
- tslib_1.__exportStar(require("./commands/ListMultipartUploadsCommand"), exports);
68
- tslib_1.__exportStar(require("./commands/ListObjectsCommand"), exports);
69
- tslib_1.__exportStar(require("./commands/ListObjectsV2Command"), exports);
70
- tslib_1.__exportStar(require("./pagination/ListObjectsV2Paginator"), exports);
71
- tslib_1.__exportStar(require("./commands/ListObjectVersionsCommand"), exports);
72
- tslib_1.__exportStar(require("./commands/ListPartsCommand"), exports);
73
- tslib_1.__exportStar(require("./pagination/ListPartsPaginator"), exports);
74
- tslib_1.__exportStar(require("./commands/PutBucketAccelerateConfigurationCommand"), exports);
75
- tslib_1.__exportStar(require("./commands/PutBucketAclCommand"), exports);
76
- tslib_1.__exportStar(require("./commands/PutBucketAnalyticsConfigurationCommand"), exports);
77
- tslib_1.__exportStar(require("./commands/PutBucketCorsCommand"), exports);
78
- tslib_1.__exportStar(require("./commands/PutBucketEncryptionCommand"), exports);
79
- tslib_1.__exportStar(require("./commands/PutBucketIntelligentTieringConfigurationCommand"), exports);
80
- tslib_1.__exportStar(require("./commands/PutBucketInventoryConfigurationCommand"), exports);
81
- tslib_1.__exportStar(require("./commands/PutBucketLifecycleConfigurationCommand"), exports);
82
- tslib_1.__exportStar(require("./commands/PutBucketLoggingCommand"), exports);
83
- tslib_1.__exportStar(require("./commands/PutBucketMetricsConfigurationCommand"), exports);
84
- tslib_1.__exportStar(require("./commands/PutBucketNotificationConfigurationCommand"), exports);
85
- tslib_1.__exportStar(require("./commands/PutBucketOwnershipControlsCommand"), exports);
86
- tslib_1.__exportStar(require("./commands/PutBucketPolicyCommand"), exports);
87
- tslib_1.__exportStar(require("./commands/PutBucketReplicationCommand"), exports);
88
- tslib_1.__exportStar(require("./commands/PutBucketRequestPaymentCommand"), exports);
89
- tslib_1.__exportStar(require("./commands/PutBucketTaggingCommand"), exports);
90
- tslib_1.__exportStar(require("./commands/PutBucketVersioningCommand"), exports);
91
- tslib_1.__exportStar(require("./commands/PutBucketWebsiteCommand"), exports);
92
- tslib_1.__exportStar(require("./commands/PutObjectCommand"), exports);
93
- tslib_1.__exportStar(require("./commands/PutObjectAclCommand"), exports);
94
- tslib_1.__exportStar(require("./commands/PutObjectLegalHoldCommand"), exports);
95
- tslib_1.__exportStar(require("./commands/PutObjectLockConfigurationCommand"), exports);
96
- tslib_1.__exportStar(require("./commands/PutObjectRetentionCommand"), exports);
97
- tslib_1.__exportStar(require("./commands/PutObjectTaggingCommand"), exports);
98
- tslib_1.__exportStar(require("./commands/PutPublicAccessBlockCommand"), exports);
99
- tslib_1.__exportStar(require("./commands/RestoreObjectCommand"), exports);
100
- tslib_1.__exportStar(require("./commands/SelectObjectContentCommand"), exports);
101
- tslib_1.__exportStar(require("./commands/UploadPartCommand"), exports);
102
- tslib_1.__exportStar(require("./commands/UploadPartCopyCommand"), exports);
103
- tslib_1.__exportStar(require("./commands/WriteGetObjectResponseCommand"), exports);
104
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
105
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./S3Client"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./waiters"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListObjectsV2Paginator"), exports);
6
+ tslib_1.__exportStar(require("./ListPartsPaginator"), exports);
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const eventstream_serde_browser_1 = require("@aws-sdk/eventstream-serde-browser");
8
9
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
10
  const hash_blob_browser_1 = require("@aws-sdk/hash-blob-browser");
@@ -16,7 +17,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
16
17
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
17
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
19
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
20
21
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
22
  return {
22
23
  ...clientSharedValues,
@@ -36,8 +37,10 @@ const getRuntimeConfig = (config) => {
36
37
  sha256: (_m = config === null || config === void 0 ? void 0 : config.sha256) !== null && _m !== void 0 ? _m : sha256_browser_1.Sha256,
37
38
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : fetch_http_handler_1.streamCollector,
38
39
  streamHasher: (_p = config === null || config === void 0 ? void 0 : config.streamHasher) !== null && _p !== void 0 ? _p : hash_blob_browser_1.blobHasher,
39
- utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.fromUtf8,
40
- utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_browser_1.toUtf8,
40
+ useDualstackEndpoint: (_q = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _q !== void 0 ? _q : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
41
+ useFipsEndpoint: (_r = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _r !== void 0 ? _r : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
42
+ utf8Decoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _s !== void 0 ? _s : util_utf8_browser_1.fromUtf8,
43
+ utf8Encoder: (_t = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _t !== void 0 ? _t : util_utf8_browser_1.toUtf8,
41
44
  };
42
45
  };
43
46
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -20,7 +20,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
20
20
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
21
21
  const smithy_client_1 = require("@aws-sdk/smithy-client");
22
22
  const getRuntimeConfig = (config) => {
23
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
23
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
24
24
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
25
25
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
26
26
  return {
@@ -42,8 +42,10 @@ const getRuntimeConfig = (config) => {
42
42
  streamCollector: (_o = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _o !== void 0 ? _o : node_http_handler_1.streamCollector,
43
43
  streamHasher: (_p = config === null || config === void 0 ? void 0 : config.streamHasher) !== null && _p !== void 0 ? _p : hash_stream_node_1.fileStreamHasher,
44
44
  useArnRegion: (_q = config === null || config === void 0 ? void 0 : config.useArnRegion) !== null && _q !== void 0 ? _q : node_config_provider_1.loadConfig(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS),
45
- utf8Decoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.fromUtf8,
46
- utf8Encoder: (_s = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _s !== void 0 ? _s : util_utf8_node_1.toUtf8,
45
+ useDualstackEndpoint: (_r = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _r !== void 0 ? _r : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
+ useFipsEndpoint: (_s = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _s !== void 0 ? _s : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
47
+ utf8Decoder: (_t = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _t !== void 0 ? _t : util_utf8_node_1.fromUtf8,
48
+ utf8Encoder: (_u = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _u !== void 0 ? _u : util_utf8_node_1.toUtf8,
47
49
  };
48
50
  };
49
51
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForBucketExists"), exports);
5
+ tslib_1.__exportStar(require("./waitForBucketNotExists"), exports);
6
+ tslib_1.__exportStar(require("./waitForObjectExists"), exports);
7
+ tslib_1.__exportStar(require("./waitForObjectNotExists"), exports);
@@ -0,0 +1,92 @@
1
+ export * from "./AbortMultipartUploadCommand";
2
+ export * from "./CompleteMultipartUploadCommand";
3
+ export * from "./CopyObjectCommand";
4
+ export * from "./CreateBucketCommand";
5
+ export * from "./CreateMultipartUploadCommand";
6
+ export * from "./DeleteBucketAnalyticsConfigurationCommand";
7
+ export * from "./DeleteBucketCommand";
8
+ export * from "./DeleteBucketCorsCommand";
9
+ export * from "./DeleteBucketEncryptionCommand";
10
+ export * from "./DeleteBucketIntelligentTieringConfigurationCommand";
11
+ export * from "./DeleteBucketInventoryConfigurationCommand";
12
+ export * from "./DeleteBucketLifecycleCommand";
13
+ export * from "./DeleteBucketMetricsConfigurationCommand";
14
+ export * from "./DeleteBucketOwnershipControlsCommand";
15
+ export * from "./DeleteBucketPolicyCommand";
16
+ export * from "./DeleteBucketReplicationCommand";
17
+ export * from "./DeleteBucketTaggingCommand";
18
+ export * from "./DeleteBucketWebsiteCommand";
19
+ export * from "./DeleteObjectCommand";
20
+ export * from "./DeleteObjectTaggingCommand";
21
+ export * from "./DeleteObjectsCommand";
22
+ export * from "./DeletePublicAccessBlockCommand";
23
+ export * from "./GetBucketAccelerateConfigurationCommand";
24
+ export * from "./GetBucketAclCommand";
25
+ export * from "./GetBucketAnalyticsConfigurationCommand";
26
+ export * from "./GetBucketCorsCommand";
27
+ export * from "./GetBucketEncryptionCommand";
28
+ export * from "./GetBucketIntelligentTieringConfigurationCommand";
29
+ export * from "./GetBucketInventoryConfigurationCommand";
30
+ export * from "./GetBucketLifecycleConfigurationCommand";
31
+ export * from "./GetBucketLocationCommand";
32
+ export * from "./GetBucketLoggingCommand";
33
+ export * from "./GetBucketMetricsConfigurationCommand";
34
+ export * from "./GetBucketNotificationConfigurationCommand";
35
+ export * from "./GetBucketOwnershipControlsCommand";
36
+ export * from "./GetBucketPolicyCommand";
37
+ export * from "./GetBucketPolicyStatusCommand";
38
+ export * from "./GetBucketReplicationCommand";
39
+ export * from "./GetBucketRequestPaymentCommand";
40
+ export * from "./GetBucketTaggingCommand";
41
+ export * from "./GetBucketVersioningCommand";
42
+ export * from "./GetBucketWebsiteCommand";
43
+ export * from "./GetObjectAclCommand";
44
+ export * from "./GetObjectCommand";
45
+ export * from "./GetObjectLegalHoldCommand";
46
+ export * from "./GetObjectLockConfigurationCommand";
47
+ export * from "./GetObjectRetentionCommand";
48
+ export * from "./GetObjectTaggingCommand";
49
+ export * from "./GetObjectTorrentCommand";
50
+ export * from "./GetPublicAccessBlockCommand";
51
+ export * from "./HeadBucketCommand";
52
+ export * from "./HeadObjectCommand";
53
+ export * from "./ListBucketAnalyticsConfigurationsCommand";
54
+ export * from "./ListBucketIntelligentTieringConfigurationsCommand";
55
+ export * from "./ListBucketInventoryConfigurationsCommand";
56
+ export * from "./ListBucketMetricsConfigurationsCommand";
57
+ export * from "./ListBucketsCommand";
58
+ export * from "./ListMultipartUploadsCommand";
59
+ export * from "./ListObjectVersionsCommand";
60
+ export * from "./ListObjectsCommand";
61
+ export * from "./ListObjectsV2Command";
62
+ export * from "./ListPartsCommand";
63
+ export * from "./PutBucketAccelerateConfigurationCommand";
64
+ export * from "./PutBucketAclCommand";
65
+ export * from "./PutBucketAnalyticsConfigurationCommand";
66
+ export * from "./PutBucketCorsCommand";
67
+ export * from "./PutBucketEncryptionCommand";
68
+ export * from "./PutBucketIntelligentTieringConfigurationCommand";
69
+ export * from "./PutBucketInventoryConfigurationCommand";
70
+ export * from "./PutBucketLifecycleConfigurationCommand";
71
+ export * from "./PutBucketLoggingCommand";
72
+ export * from "./PutBucketMetricsConfigurationCommand";
73
+ export * from "./PutBucketNotificationConfigurationCommand";
74
+ export * from "./PutBucketOwnershipControlsCommand";
75
+ export * from "./PutBucketPolicyCommand";
76
+ export * from "./PutBucketReplicationCommand";
77
+ export * from "./PutBucketRequestPaymentCommand";
78
+ export * from "./PutBucketTaggingCommand";
79
+ export * from "./PutBucketVersioningCommand";
80
+ export * from "./PutBucketWebsiteCommand";
81
+ export * from "./PutObjectAclCommand";
82
+ export * from "./PutObjectCommand";
83
+ export * from "./PutObjectLegalHoldCommand";
84
+ export * from "./PutObjectLockConfigurationCommand";
85
+ export * from "./PutObjectRetentionCommand";
86
+ export * from "./PutObjectTaggingCommand";
87
+ export * from "./PutPublicAccessBlockCommand";
88
+ export * from "./RestoreObjectCommand";
89
+ export * from "./SelectObjectContentCommand";
90
+ export * from "./UploadPartCommand";
91
+ export * from "./UploadPartCopyCommand";
92
+ export * from "./WriteGetObjectResponseCommand";