@aws-sdk/client-s3 3.36.0 → 3.39.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.
Files changed (231) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/S3.js +0 -3
  3. package/dist-cjs/S3Client.js +0 -8
  4. package/dist-cjs/commands/AbortMultipartUploadCommand.js +0 -62
  5. package/dist-cjs/commands/CompleteMultipartUploadCommand.js +0 -133
  6. package/dist-cjs/commands/CopyObjectCommand.js +0 -193
  7. package/dist-cjs/commands/CreateBucketCommand.js +0 -142
  8. package/dist-cjs/commands/CreateMultipartUploadCommand.js +0 -281
  9. package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +0 -53
  10. package/dist-cjs/commands/DeleteBucketCommand.js +0 -41
  11. package/dist-cjs/commands/DeleteBucketCorsCommand.js +0 -45
  12. package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +0 -47
  13. package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +0 -46
  14. package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +0 -49
  15. package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +0 -49
  16. package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +0 -59
  17. package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +0 -42
  18. package/dist-cjs/commands/DeleteBucketPolicyCommand.js +0 -56
  19. package/dist-cjs/commands/DeleteBucketReplicationCommand.js +0 -49
  20. package/dist-cjs/commands/DeleteBucketTaggingCommand.js +0 -41
  21. package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +0 -50
  22. package/dist-cjs/commands/DeleteObjectCommand.js +0 -54
  23. package/dist-cjs/commands/DeleteObjectTaggingCommand.js +0 -48
  24. package/dist-cjs/commands/DeleteObjectsCommand.js +0 -80
  25. package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +0 -52
  26. package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +0 -50
  27. package/dist-cjs/commands/GetBucketAclCommand.js +0 -39
  28. package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +0 -53
  29. package/dist-cjs/commands/GetBucketCorsCommand.js +0 -44
  30. package/dist-cjs/commands/GetBucketEncryptionCommand.js +0 -45
  31. package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +0 -46
  32. package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +0 -53
  33. package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +0 -79
  34. package/dist-cjs/commands/GetBucketLocationCommand.js +0 -44
  35. package/dist-cjs/commands/GetBucketLoggingCommand.js +0 -39
  36. package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +0 -60
  37. package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +0 -44
  38. package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +0 -41
  39. package/dist-cjs/commands/GetBucketPolicyCommand.js +0 -50
  40. package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +0 -54
  41. package/dist-cjs/commands/GetBucketReplicationCommand.js +0 -58
  42. package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +0 -34
  43. package/dist-cjs/commands/GetBucketTaggingCommand.js +0 -55
  44. package/dist-cjs/commands/GetBucketVersioningCommand.js +0 -48
  45. package/dist-cjs/commands/GetBucketWebsiteCommand.js +0 -44
  46. package/dist-cjs/commands/GetObjectAclCommand.js +0 -50
  47. package/dist-cjs/commands/GetObjectCommand.js +0 -204
  48. package/dist-cjs/commands/GetObjectLegalHoldCommand.js +0 -25
  49. package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +0 -27
  50. package/dist-cjs/commands/GetObjectRetentionCommand.js +0 -25
  51. package/dist-cjs/commands/GetObjectTaggingCommand.js +0 -51
  52. package/dist-cjs/commands/GetObjectTorrentCommand.js +0 -40
  53. package/dist-cjs/commands/GetPublicAccessBlockCommand.js +0 -63
  54. package/dist-cjs/commands/HeadBucketCommand.js +0 -39
  55. package/dist-cjs/commands/HeadObjectCommand.js +0 -135
  56. package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +0 -63
  57. package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +0 -46
  58. package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +0 -62
  59. package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +0 -64
  60. package/dist-cjs/commands/ListBucketsCommand.js +0 -24
  61. package/dist-cjs/commands/ListMultipartUploadsCommand.js +0 -74
  62. package/dist-cjs/commands/ListObjectVersionsCommand.js +0 -62
  63. package/dist-cjs/commands/ListObjectsCommand.js +0 -61
  64. package/dist-cjs/commands/ListObjectsV2Command.js +0 -65
  65. package/dist-cjs/commands/ListPartsCommand.js +0 -68
  66. package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +0 -69
  67. package/dist-cjs/commands/PutBucketAclCommand.js +0 -213
  68. package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +0 -139
  69. package/dist-cjs/commands/PutBucketCorsCommand.js +0 -80
  70. package/dist-cjs/commands/PutBucketEncryptionCommand.js +0 -56
  71. package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +0 -106
  72. package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +0 -124
  73. package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +0 -117
  74. package/dist-cjs/commands/PutBucketLoggingCommand.js +0 -103
  75. package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +0 -74
  76. package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +0 -85
  77. package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +0 -40
  78. package/dist-cjs/commands/PutBucketPolicyCommand.js +0 -53
  79. package/dist-cjs/commands/PutBucketReplicationCommand.js +0 -93
  80. package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +0 -42
  81. package/dist-cjs/commands/PutBucketTaggingCommand.js +0 -102
  82. package/dist-cjs/commands/PutBucketVersioningCommand.js +0 -72
  83. package/dist-cjs/commands/PutBucketWebsiteCommand.js +0 -149
  84. package/dist-cjs/commands/PutObjectAclCommand.js +0 -200
  85. package/dist-cjs/commands/PutObjectCommand.js +0 -118
  86. package/dist-cjs/commands/PutObjectLegalHoldCommand.js +0 -27
  87. package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +0 -44
  88. package/dist-cjs/commands/PutObjectRetentionCommand.js +0 -36
  89. package/dist-cjs/commands/PutObjectTaggingCommand.js +0 -127
  90. package/dist-cjs/commands/PutPublicAccessBlockCommand.js +0 -68
  91. package/dist-cjs/commands/RestoreObjectCommand.js +0 -315
  92. package/dist-cjs/commands/SelectObjectContentCommand.js +0 -140
  93. package/dist-cjs/commands/UploadPartCommand.js +0 -161
  94. package/dist-cjs/commands/UploadPartCopyCommand.js +0 -202
  95. package/dist-cjs/commands/WriteGetObjectResponseCommand.js +0 -46
  96. package/dist-cjs/commands/index.js +95 -0
  97. package/dist-cjs/endpoints.js +6 -1
  98. package/dist-cjs/index.js +5 -101
  99. package/dist-cjs/models/models_0.js +0 -753
  100. package/dist-cjs/models/models_1.js +0 -96
  101. package/dist-cjs/pagination/ListObjectsV2Paginator.js +0 -10
  102. package/dist-cjs/pagination/ListPartsPaginator.js +0 -10
  103. package/dist-cjs/pagination/index.js +6 -0
  104. package/dist-cjs/protocols/Aws_restXml.js +0 -2
  105. package/dist-cjs/runtimeConfig.browser.js +1 -5
  106. package/dist-cjs/runtimeConfig.js +1 -5
  107. package/dist-cjs/runtimeConfig.native.js +0 -3
  108. package/dist-cjs/runtimeConfig.shared.js +0 -3
  109. package/dist-cjs/waiters/index.js +7 -0
  110. package/dist-cjs/waiters/waitForBucketExists.js +0 -9
  111. package/dist-cjs/waiters/waitForBucketNotExists.js +0 -9
  112. package/dist-cjs/waiters/waitForObjectExists.js +0 -9
  113. package/dist-cjs/waiters/waitForObjectNotExists.js +0 -9
  114. package/dist-es/commands/index.js +92 -0
  115. package/dist-es/endpoints.js +6 -1
  116. package/dist-es/index.js +5 -101
  117. package/dist-es/pagination/index.js +3 -0
  118. package/dist-es/waiters/index.js +4 -0
  119. package/dist-types/commands/index.d.ts +92 -0
  120. package/dist-types/index.d.ts +5 -101
  121. package/dist-types/pagination/index.d.ts +3 -0
  122. package/dist-types/ts3.4/S3.d.ts +93 -5172
  123. package/dist-types/ts3.4/S3Client.d.ts +30 -109
  124. package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +2 -58
  125. package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +2 -129
  126. package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +2 -189
  127. package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +2 -138
  128. package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +2 -277
  129. package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -49
  130. package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +2 -37
  131. package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +2 -41
  132. package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +2 -43
  133. package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
  134. package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -45
  135. package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +2 -45
  136. package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -55
  137. package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -38
  138. package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +2 -52
  139. package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +2 -45
  140. package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +2 -37
  141. package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +2 -46
  142. package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +2 -50
  143. package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +2 -44
  144. package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +2 -76
  145. package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +2 -48
  146. package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -46
  147. package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +2 -35
  148. package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -49
  149. package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +2 -40
  150. package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +2 -41
  151. package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
  152. package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -49
  153. package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -75
  154. package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +2 -40
  155. package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +2 -35
  156. package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -56
  157. package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -40
  158. package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +2 -37
  159. package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +2 -46
  160. package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +2 -50
  161. package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +2 -54
  162. package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +2 -30
  163. package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +2 -51
  164. package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +2 -44
  165. package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +2 -40
  166. package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +2 -46
  167. package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +2 -200
  168. package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +2 -21
  169. package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +2 -23
  170. package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +2 -21
  171. package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +2 -47
  172. package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +2 -36
  173. package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +2 -59
  174. package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +2 -35
  175. package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +2 -131
  176. package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -59
  177. package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -42
  178. package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -58
  179. package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -60
  180. package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +2 -20
  181. package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +2 -70
  182. package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +2 -58
  183. package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +2 -57
  184. package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +2 -61
  185. package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +2 -64
  186. package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -65
  187. package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +2 -209
  188. package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -135
  189. package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +2 -76
  190. package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +2 -52
  191. package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -102
  192. package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -120
  193. package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -113
  194. package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +2 -99
  195. package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -70
  196. package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -81
  197. package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +2 -36
  198. package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +2 -49
  199. package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +2 -89
  200. package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +2 -38
  201. package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +2 -98
  202. package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +2 -68
  203. package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +2 -145
  204. package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +2 -196
  205. package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +5 -121
  206. package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +2 -23
  207. package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +2 -40
  208. package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +2 -32
  209. package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +2 -123
  210. package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +2 -64
  211. package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +2 -311
  212. package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +2 -136
  213. package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +5 -164
  214. package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +2 -198
  215. package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +5 -49
  216. package/dist-types/ts3.4/commands/index.d.ts +92 -0
  217. package/dist-types/ts3.4/index.d.ts +5 -101
  218. package/dist-types/ts3.4/models/models_0.d.ts +1305 -7281
  219. package/dist-types/ts3.4/models/models_1.d.ts +223 -956
  220. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  221. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -4
  222. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -4
  223. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -4
  224. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  225. package/dist-types/ts3.4/waiters/index.d.ts +4 -0
  226. package/dist-types/ts3.4/waiters/waitForBucketExists.d.ts +2 -9
  227. package/dist-types/ts3.4/waiters/waitForBucketNotExists.d.ts +2 -9
  228. package/dist-types/ts3.4/waiters/waitForObjectExists.d.ts +2 -9
  229. package/dist-types/ts3.4/waiters/waitForObjectNotExists.d.ts +2 -9
  230. package/dist-types/waiters/index.d.ts +4 -0
  231. package/package.json +46 -46
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
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.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-s3
9
+
10
+
11
+
12
+
13
+
14
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
20
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
21
+
22
+
23
+
24
+
25
+
26
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
27
+
28
+
29
+ ### Features
30
+
31
+ * **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
32
+
33
+
34
+
35
+
36
+
37
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
43
+
44
+
45
+
46
+
47
+
6
48
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
49
 
8
50
 
package/dist-cjs/S3.js CHANGED
@@ -94,9 +94,6 @@ const UploadPartCommand_1 = require("./commands/UploadPartCommand");
94
94
  const UploadPartCopyCommand_1 = require("./commands/UploadPartCopyCommand");
95
95
  const WriteGetObjectResponseCommand_1 = require("./commands/WriteGetObjectResponseCommand");
96
96
  const S3Client_1 = require("./S3Client");
97
- /**
98
- * <p></p>
99
- */
100
97
  class S3 extends S3Client_1.S3Client {
101
98
  abortMultipartUpload(args, optionsOrCb, cb) {
102
99
  const command = new AbortMultipartUploadCommand_1.AbortMultipartUploadCommand(args);
@@ -14,9 +14,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
14
14
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
15
15
  const smithy_client_1 = require("@aws-sdk/smithy-client");
16
16
  const runtimeConfig_1 = require("./runtimeConfig");
17
- /**
18
- * <p></p>
19
- */
20
17
  class S3Client extends smithy_client_1.Client {
21
18
  constructor(configuration) {
22
19
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -40,11 +37,6 @@ class S3Client extends smithy_client_1.Client {
40
37
  this.middlewareStack.use(middleware_expect_continue_1.getAddExpectContinuePlugin(this.config));
41
38
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
42
39
  }
43
- /**
44
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
45
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
46
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
47
- */
48
40
  destroy() {
49
41
  super.destroy();
50
42
  }
@@ -6,73 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>This action aborts a multipart upload. After a multipart upload is aborted, no
11
- * additional parts can be uploaded using that upload ID. The storage consumed by any
12
- * previously uploaded parts will be freed. However, if any part uploads are currently in
13
- * progress, those part uploads might or might not succeed. As a result, it might be necessary
14
- * to abort a given multipart upload multiple times in order to completely free all storage
15
- * consumed by all parts. </p>
16
- * <p>To verify that all parts have been removed, so you don't get charged for the part
17
- * storage, you should call the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a> action and ensure that
18
- * the parts list is empty.</p>
19
- * <p>For information about permissions required to use the multipart upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
20
- * Permissions</a>.</p>
21
- * <p>The following operations are related to <code>AbortMultipartUpload</code>:</p>
22
- * <ul>
23
- * <li>
24
- * <p>
25
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>
26
- * </p>
27
- * </li>
28
- * <li>
29
- * <p>
30
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
31
- * </p>
32
- * </li>
33
- * <li>
34
- * <p>
35
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html">CompleteMultipartUpload</a>
36
- * </p>
37
- * </li>
38
- * <li>
39
- * <p>
40
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a>
41
- * </p>
42
- * </li>
43
- * <li>
44
- * <p>
45
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html">ListMultipartUploads</a>
46
- * </p>
47
- * </li>
48
- * </ul>
49
- * @example
50
- * Use a bare-bones client and the command you need to make an API call.
51
- * ```javascript
52
- * import { S3Client, AbortMultipartUploadCommand } from "@aws-sdk/client-s3"; // ES Modules import
53
- * // const { S3Client, AbortMultipartUploadCommand } = require("@aws-sdk/client-s3"); // CommonJS import
54
- * const client = new S3Client(config);
55
- * const command = new AbortMultipartUploadCommand(input);
56
- * const response = await client.send(command);
57
- * ```
58
- *
59
- * @see {@link AbortMultipartUploadCommandInput} for command's `input` shape.
60
- * @see {@link AbortMultipartUploadCommandOutput} for command's `response` shape.
61
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
62
- *
63
- */
64
9
  class AbortMultipartUploadCommand extends smithy_client_1.Command {
65
- // Start section: command_properties
66
- // End section: command_properties
67
10
  constructor(input) {
68
- // Start section: command_constructor
69
11
  super();
70
12
  this.input = input;
71
- // End section: command_constructor
72
13
  }
73
- /**
74
- * @internal
75
- */
76
14
  resolveMiddleware(clientStack, configuration, options) {
77
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
78
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -7,144 +7,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
10
- /**
11
- * <p>Completes a multipart upload by assembling previously uploaded parts.</p>
12
- * <p>You first initiate the multipart upload and then upload all parts using the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
13
- * operation. After successfully uploading all relevant parts of an upload, you call this
14
- * action to complete the upload. Upon receiving this request, Amazon S3 concatenates all
15
- * the parts in ascending order by part number to create a new object. In the Complete
16
- * Multipart Upload request, you must provide the parts list. You must ensure that the parts
17
- * list is complete. This action concatenates the parts that you provide in the list. For
18
- * each part in the list, you must provide the part number and the <code>ETag</code> value,
19
- * returned after that part was uploaded.</p>
20
- * <p>Processing of a Complete Multipart Upload request could take several minutes to
21
- * complete. After Amazon S3 begins processing the request, it sends an HTTP response header that
22
- * specifies a 200 OK response. While processing is in progress, Amazon S3 periodically sends white
23
- * space characters to keep the connection from timing out. Because a request could fail after
24
- * the initial 200 OK response has been sent, it is important that you check the response body
25
- * to determine whether the request succeeded.</p>
26
- * <p>Note that if <code>CompleteMultipartUpload</code> fails, applications should be prepared
27
- * to retry the failed requests. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html">Amazon S3 Error Best Practices</a>.</p>
28
- * <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
29
- * Upload</a>.</p>
30
- * <p>For information about permissions required to use the multipart upload API, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
31
- * Permissions</a>.</p>
32
- *
33
- *
34
- * <p>
35
- * <code>CompleteMultipartUpload</code> has the following special errors:</p>
36
- * <ul>
37
- * <li>
38
- * <p>Error code: <code>EntityTooSmall</code>
39
- * </p>
40
- * <ul>
41
- * <li>
42
- * <p>Description: Your proposed upload is smaller than the minimum allowed object
43
- * size. Each part must be at least 5 MB in size, except the last part.</p>
44
- * </li>
45
- * <li>
46
- * <p>400 Bad Request</p>
47
- * </li>
48
- * </ul>
49
- * </li>
50
- * <li>
51
- * <p>Error code: <code>InvalidPart</code>
52
- * </p>
53
- * <ul>
54
- * <li>
55
- * <p>Description: One or more of the specified parts could not be found. The part
56
- * might not have been uploaded, or the specified entity tag might not have
57
- * matched the part's entity tag.</p>
58
- * </li>
59
- * <li>
60
- * <p>400 Bad Request</p>
61
- * </li>
62
- * </ul>
63
- * </li>
64
- * <li>
65
- * <p>Error code: <code>InvalidPartOrder</code>
66
- * </p>
67
- * <ul>
68
- * <li>
69
- * <p>Description: The list of parts was not in ascending order. The parts list
70
- * must be specified in order by part number.</p>
71
- * </li>
72
- * <li>
73
- * <p>400 Bad Request</p>
74
- * </li>
75
- * </ul>
76
- * </li>
77
- * <li>
78
- * <p>Error code: <code>NoSuchUpload</code>
79
- * </p>
80
- * <ul>
81
- * <li>
82
- * <p>Description: The specified multipart upload does not exist. The upload ID
83
- * might be invalid, or the multipart upload might have been aborted or
84
- * completed.</p>
85
- * </li>
86
- * <li>
87
- * <p>404 Not Found</p>
88
- * </li>
89
- * </ul>
90
- * </li>
91
- * </ul>
92
- *
93
- * <p>The following operations are related to <code>CompleteMultipartUpload</code>:</p>
94
- * <ul>
95
- * <li>
96
- * <p>
97
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>
98
- * </p>
99
- * </li>
100
- * <li>
101
- * <p>
102
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
103
- * </p>
104
- * </li>
105
- * <li>
106
- * <p>
107
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html">AbortMultipartUpload</a>
108
- * </p>
109
- * </li>
110
- * <li>
111
- * <p>
112
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a>
113
- * </p>
114
- * </li>
115
- * <li>
116
- * <p>
117
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html">ListMultipartUploads</a>
118
- * </p>
119
- * </li>
120
- * </ul>
121
- * @example
122
- * Use a bare-bones client and the command you need to make an API call.
123
- * ```javascript
124
- * import { S3Client, CompleteMultipartUploadCommand } from "@aws-sdk/client-s3"; // ES Modules import
125
- * // const { S3Client, CompleteMultipartUploadCommand } = require("@aws-sdk/client-s3"); // CommonJS import
126
- * const client = new S3Client(config);
127
- * const command = new CompleteMultipartUploadCommand(input);
128
- * const response = await client.send(command);
129
- * ```
130
- *
131
- * @see {@link CompleteMultipartUploadCommandInput} for command's `input` shape.
132
- * @see {@link CompleteMultipartUploadCommandOutput} for command's `response` shape.
133
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
134
- *
135
- */
136
10
  class CompleteMultipartUploadCommand extends smithy_client_1.Command {
137
- // Start section: command_properties
138
- // End section: command_properties
139
11
  constructor(input) {
140
- // Start section: command_constructor
141
12
  super();
142
13
  this.input = input;
143
- // End section: command_constructor
144
14
  }
145
- /**
146
- * @internal
147
- */
148
15
  resolveMiddleware(clientStack, configuration, options) {
149
16
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
150
17
  this.middlewareStack.use(middleware_sdk_s3_1.getThrow200ExceptionsPlugin(configuration));
@@ -8,204 +8,11 @@ const middleware_ssec_1 = require("@aws-sdk/middleware-ssec");
8
8
  const smithy_client_1 = require("@aws-sdk/smithy-client");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
11
- /**
12
- * <p>Creates a copy of an object that is already stored in Amazon S3.</p>
13
- * <note>
14
- * <p>You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your
15
- * object up to 5 GB in size in a single atomic action using this API. However, to copy
16
- * an object greater than 5 GB, you must use the multipart upload Upload Part - Copy API.
17
- * For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjctsUsingRESTMPUapi.html">Copy Object Using the REST Multipart Upload API</a>.</p>
18
- * </note>
19
- * <p>All copy requests must be authenticated. Additionally, you must have
20
- * <i>read</i> access to the source object and <i>write</i>
21
- * access to the destination bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>. Both the Region
22
- * that you want to copy the object from and the Region that you want to copy the object to
23
- * must be enabled for your account.</p>
24
- * <p>A copy request might return an error when Amazon S3 receives the copy request or while Amazon S3
25
- * is copying the files. If the error occurs before the copy action starts, you receive a
26
- * standard Amazon S3 error. If the error occurs during the copy operation, the error response is
27
- * embedded in the <code>200 OK</code> response. This means that a <code>200 OK</code>
28
- * response can contain either a success or an error. Design your application to parse the
29
- * contents of the response and handle it appropriately.</p>
30
- * <p>If the copy is successful, you receive a response with information about the copied
31
- * object.</p>
32
- * <note>
33
- * <p>If the request is an HTTP 1.1 request, the response is chunk encoded. If it were not,
34
- * it would not contain the content-length, and you would need to read the entire
35
- * body.</p>
36
- * </note>
37
- * <p>The copy request charge is based on the storage class and Region that you specify for
38
- * the destination object. For pricing information, see <a href="http://aws.amazon.com/s3/pricing/">Amazon S3 pricing</a>.</p>
39
- * <important>
40
- * <p>Amazon S3 transfer acceleration does not support cross-Region copies. If you request a
41
- * cross-Region copy using a transfer acceleration endpoint, you get a 400 <code>Bad
42
- * Request</code> error. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Transfer Acceleration</a>.</p>
43
- * </important>
44
- * <p>
45
- * <b>Metadata</b>
46
- * </p>
47
- * <p>When copying an object, you can preserve all metadata (default) or specify new metadata.
48
- * However, the ACL is not preserved and is set to private for the user making the request. To
49
- * override the default ACL setting, specify a new ACL when generating a copy request. For
50
- * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. </p>
51
- * <p>To specify whether you want the object metadata copied from the source object or
52
- * replaced with metadata provided in the request, you can optionally add the
53
- * <code>x-amz-metadata-directive</code> header. When you grant permissions, you can use
54
- * the <code>s3:x-amz-metadata-directive</code> condition key to enforce certain metadata
55
- * behavior when objects are uploaded. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/amazon-s3-policy-keys.html">Specifying Conditions in a
56
- * Policy</a> in the <i>Amazon S3 User Guide</i>. For a complete list of
57
- * Amazon S3-specific condition keys, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html">Actions, Resources, and Condition Keys for
58
- * Amazon S3</a>.</p>
59
- * <p>
60
- * <b>
61
- * <code>x-amz-copy-source-if</code> Headers</b>
62
- * </p>
63
- * <p>To only copy an object under certain conditions, such as whether the <code>Etag</code>
64
- * matches or whether the object was modified before or after a specified date, use the
65
- * following request parameters:</p>
66
- * <ul>
67
- * <li>
68
- * <p>
69
- * <code>x-amz-copy-source-if-match</code>
70
- * </p>
71
- * </li>
72
- * <li>
73
- * <p>
74
- * <code>x-amz-copy-source-if-none-match</code>
75
- * </p>
76
- * </li>
77
- * <li>
78
- * <p>
79
- * <code>x-amz-copy-source-if-unmodified-since</code>
80
- * </p>
81
- * </li>
82
- * <li>
83
- * <p>
84
- * <code>x-amz-copy-source-if-modified-since</code>
85
- * </p>
86
- * </li>
87
- * </ul>
88
- * <p> If both the <code>x-amz-copy-source-if-match</code> and
89
- * <code>x-amz-copy-source-if-unmodified-since</code> headers are present in the request
90
- * and evaluate as follows, Amazon S3 returns <code>200 OK</code> and copies the data:</p>
91
- * <ul>
92
- * <li>
93
- * <p>
94
- * <code>x-amz-copy-source-if-match</code> condition evaluates to true</p>
95
- * </li>
96
- * <li>
97
- * <p>
98
- * <code>x-amz-copy-source-if-unmodified-since</code> condition evaluates to
99
- * false</p>
100
- * </li>
101
- * </ul>
102
- *
103
- * <p>If both the <code>x-amz-copy-source-if-none-match</code> and
104
- * <code>x-amz-copy-source-if-modified-since</code> headers are present in the request and
105
- * evaluate as follows, Amazon S3 returns the <code>412 Precondition Failed</code> response
106
- * code:</p>
107
- * <ul>
108
- * <li>
109
- * <p>
110
- * <code>x-amz-copy-source-if-none-match</code> condition evaluates to false</p>
111
- * </li>
112
- * <li>
113
- * <p>
114
- * <code>x-amz-copy-source-if-modified-since</code> condition evaluates to
115
- * true</p>
116
- * </li>
117
- * </ul>
118
- *
119
- * <note>
120
- * <p>All headers with the <code>x-amz-</code> prefix, including
121
- * <code>x-amz-copy-source</code>, must be signed.</p>
122
- * </note>
123
- * <p>
124
- * <b>Server-side encryption</b>
125
- * </p>
126
- * <p>When you perform a CopyObject operation, you can optionally use the appropriate encryption-related
127
- * headers to encrypt the object using server-side encryption with Amazon Web Services managed encryption keys
128
- * (SSE-S3 or SSE-KMS) or a customer-provided encryption key. With server-side encryption, Amazon S3
129
- * encrypts your data as it writes it to disks in its data centers and decrypts the data when
130
- * you access it. For more information about server-side encryption, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html">Using
131
- * Server-Side Encryption</a>.</p>
132
- * <p>If a target object uses SSE-KMS, you can enable an S3 Bucket Key for the object. For more
133
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html">Amazon S3 Bucket Keys</a> in the <i>Amazon S3 User Guide</i>.</p>
134
- * <p>
135
- * <b>Access Control List (ACL)-Specific Request
136
- * Headers</b>
137
- * </p>
138
- * <p>When copying an object, you can optionally use headers to grant ACL-based permissions.
139
- * By default, all objects are private. Only the owner has full access control. When adding a
140
- * new object, you can grant permissions to individual Amazon Web Services accounts or to predefined groups
141
- * defined by Amazon S3. These permissions are then added to the ACL on the object. For more
142
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html">Managing ACLs Using the REST
143
- * API</a>. </p>
144
- *
145
- * <p>
146
- * <b>Storage Class Options</b>
147
- * </p>
148
- * <p>You can use the <code>CopyObject</code> action to change the storage class of an
149
- * object that is already stored in Amazon S3 using the <code>StorageClass</code> parameter. For
150
- * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html">Storage
151
- * Classes</a> in the <i>Amazon S3 User Guide</i>.</p>
152
- * <p>
153
- * <b>Versioning</b>
154
- * </p>
155
- * <p>By default, <code>x-amz-copy-source</code> identifies the current version of an object
156
- * to copy. If the current version is a delete marker, Amazon S3 behaves as if the object was
157
- * deleted. To copy a different version, use the <code>versionId</code> subresource.</p>
158
- * <p>If you enable versioning on the target bucket, Amazon S3 generates a unique version ID for
159
- * the object being copied. This version ID is different from the version ID of the source
160
- * object. Amazon S3 returns the version ID of the copied object in the
161
- * <code>x-amz-version-id</code> response header in the response.</p>
162
- * <p>If you do not enable versioning or suspend it on the target bucket, the version ID that
163
- * Amazon S3 generates is always null.</p>
164
- * <p>If the source object's storage class is GLACIER, you must restore a copy of this object
165
- * before you can use it as a source object for the copy operation. For more information, see
166
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>.</p>
167
- * <p>The following operations are related to <code>CopyObject</code>:</p>
168
- * <ul>
169
- * <li>
170
- * <p>
171
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</a>
172
- * </p>
173
- * </li>
174
- * <li>
175
- * <p>
176
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>
177
- * </p>
178
- * </li>
179
- * </ul>
180
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html">Copying
181
- * Objects</a>.</p>
182
- * @example
183
- * Use a bare-bones client and the command you need to make an API call.
184
- * ```javascript
185
- * import { S3Client, CopyObjectCommand } from "@aws-sdk/client-s3"; // ES Modules import
186
- * // const { S3Client, CopyObjectCommand } = require("@aws-sdk/client-s3"); // CommonJS import
187
- * const client = new S3Client(config);
188
- * const command = new CopyObjectCommand(input);
189
- * const response = await client.send(command);
190
- * ```
191
- *
192
- * @see {@link CopyObjectCommandInput} for command's `input` shape.
193
- * @see {@link CopyObjectCommandOutput} for command's `response` shape.
194
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
195
- *
196
- */
197
11
  class CopyObjectCommand extends smithy_client_1.Command {
198
- // Start section: command_properties
199
- // End section: command_properties
200
12
  constructor(input) {
201
- // Start section: command_constructor
202
13
  super();
203
14
  this.input = input;
204
- // End section: command_constructor
205
15
  }
206
- /**
207
- * @internal
208
- */
209
16
  resolveMiddleware(clientStack, configuration, options) {
210
17
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
211
18
  this.middlewareStack.use(middleware_sdk_s3_1.getThrow200ExceptionsPlugin(configuration));