@aws-sdk/client-s3 3.590.0 → 3.592.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 (200) hide show
  1. package/dist-cjs/endpoint/ruleset.js +1 -1
  2. package/dist-cjs/index.js +3 -96
  3. package/dist-es/commands/CopyObjectCommand.js +2 -0
  4. package/dist-es/endpoint/ruleset.js +1 -1
  5. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +2 -1
  6. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +2 -1
  7. package/dist-types/commands/CopyObjectCommand.d.ts +2 -1
  8. package/dist-types/commands/CreateBucketCommand.d.ts +2 -1
  9. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +2 -1
  10. package/dist-types/commands/CreateSessionCommand.d.ts +2 -1
  11. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -1
  12. package/dist-types/commands/DeleteBucketCommand.d.ts +2 -1
  13. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +2 -1
  14. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +2 -1
  15. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
  16. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -1
  17. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +2 -1
  18. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -1
  19. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -1
  20. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +2 -1
  21. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +2 -1
  22. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +2 -1
  23. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +2 -1
  24. package/dist-types/commands/DeleteObjectCommand.d.ts +2 -1
  25. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +2 -1
  26. package/dist-types/commands/DeleteObjectsCommand.d.ts +24 -23
  27. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +2 -1
  28. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -1
  29. package/dist-types/commands/GetBucketAclCommand.d.ts +2 -1
  30. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -1
  31. package/dist-types/commands/GetBucketCorsCommand.d.ts +2 -1
  32. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +2 -1
  33. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
  34. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -1
  35. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -1
  36. package/dist-types/commands/GetBucketLocationCommand.d.ts +2 -1
  37. package/dist-types/commands/GetBucketLoggingCommand.d.ts +2 -1
  38. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -1
  39. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -1
  40. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +2 -1
  41. package/dist-types/commands/GetBucketPolicyCommand.d.ts +2 -1
  42. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +2 -1
  43. package/dist-types/commands/GetBucketReplicationCommand.d.ts +2 -1
  44. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +2 -1
  45. package/dist-types/commands/GetBucketTaggingCommand.d.ts +2 -1
  46. package/dist-types/commands/GetBucketVersioningCommand.d.ts +2 -1
  47. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +2 -1
  48. package/dist-types/commands/GetObjectAclCommand.d.ts +2 -1
  49. package/dist-types/commands/GetObjectAttributesCommand.d.ts +2 -1
  50. package/dist-types/commands/GetObjectCommand.d.ts +2 -1
  51. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +2 -1
  52. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +2 -1
  53. package/dist-types/commands/GetObjectRetentionCommand.d.ts +2 -1
  54. package/dist-types/commands/GetObjectTaggingCommand.d.ts +2 -1
  55. package/dist-types/commands/GetObjectTorrentCommand.d.ts +2 -1
  56. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +2 -1
  57. package/dist-types/commands/HeadBucketCommand.d.ts +2 -1
  58. package/dist-types/commands/HeadObjectCommand.d.ts +2 -1
  59. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -1
  60. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -1
  61. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -1
  62. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -1
  63. package/dist-types/commands/ListBucketsCommand.d.ts +2 -1
  64. package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +2 -1
  65. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +2 -1
  66. package/dist-types/commands/ListObjectVersionsCommand.d.ts +2 -1
  67. package/dist-types/commands/ListObjectsCommand.d.ts +2 -1
  68. package/dist-types/commands/ListObjectsV2Command.d.ts +2 -1
  69. package/dist-types/commands/ListPartsCommand.d.ts +2 -1
  70. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -1
  71. package/dist-types/commands/PutBucketAclCommand.d.ts +2 -1
  72. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -1
  73. package/dist-types/commands/PutBucketCorsCommand.d.ts +2 -1
  74. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +2 -1
  75. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
  76. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -1
  77. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -1
  78. package/dist-types/commands/PutBucketLoggingCommand.d.ts +2 -1
  79. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -1
  80. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -1
  81. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +2 -1
  82. package/dist-types/commands/PutBucketPolicyCommand.d.ts +2 -1
  83. package/dist-types/commands/PutBucketReplicationCommand.d.ts +2 -1
  84. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +2 -1
  85. package/dist-types/commands/PutBucketTaggingCommand.d.ts +2 -1
  86. package/dist-types/commands/PutBucketVersioningCommand.d.ts +2 -1
  87. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +2 -1
  88. package/dist-types/commands/PutObjectAclCommand.d.ts +2 -1
  89. package/dist-types/commands/PutObjectCommand.d.ts +43 -42
  90. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +2 -1
  91. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +2 -1
  92. package/dist-types/commands/PutObjectRetentionCommand.d.ts +2 -1
  93. package/dist-types/commands/PutObjectTaggingCommand.d.ts +2 -1
  94. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +2 -1
  95. package/dist-types/commands/RestoreObjectCommand.d.ts +2 -1
  96. package/dist-types/commands/SelectObjectContentCommand.d.ts +2 -1
  97. package/dist-types/commands/UploadPartCommand.d.ts +2 -1
  98. package/dist-types/commands/UploadPartCopyCommand.d.ts +2 -1
  99. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +2 -1
  100. package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
  101. package/dist-types/index.d.ts +2 -2
  102. package/dist-types/models/S3ServiceException.d.ts +2 -1
  103. package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +2 -1
  104. package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +2 -1
  105. package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +2 -1
  106. package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +2 -1
  107. package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +2 -1
  108. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +2 -1
  109. package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -1
  110. package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +2 -1
  111. package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +2 -1
  112. package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +2 -1
  113. package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
  114. package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -1
  115. package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +2 -1
  116. package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -1
  117. package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -1
  118. package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +2 -1
  119. package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +2 -1
  120. package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +2 -1
  121. package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +2 -1
  122. package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +2 -1
  123. package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +2 -1
  124. package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +2 -1
  125. package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +2 -1
  126. package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -1
  127. package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +2 -1
  128. package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -1
  129. package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +2 -1
  130. package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +2 -1
  131. package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
  132. package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -1
  133. package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -1
  134. package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +2 -1
  135. package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +2 -1
  136. package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -1
  137. package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -1
  138. package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +2 -1
  139. package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +2 -1
  140. package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +2 -1
  141. package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +2 -1
  142. package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +2 -1
  143. package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +2 -1
  144. package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +2 -1
  145. package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +2 -1
  146. package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +2 -1
  147. package/dist-types/ts3.4/commands/GetObjectAttributesCommand.d.ts +2 -1
  148. package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +2 -1
  149. package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +2 -1
  150. package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +2 -1
  151. package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +2 -1
  152. package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +2 -1
  153. package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +2 -1
  154. package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +2 -1
  155. package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +2 -1
  156. package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +2 -1
  157. package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -1
  158. package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -1
  159. package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -1
  160. package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -1
  161. package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +2 -1
  162. package/dist-types/ts3.4/commands/ListDirectoryBucketsCommand.d.ts +2 -1
  163. package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +2 -1
  164. package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +2 -1
  165. package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +2 -1
  166. package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +2 -1
  167. package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +2 -1
  168. package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -1
  169. package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +2 -1
  170. package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -1
  171. package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +2 -1
  172. package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +2 -1
  173. package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
  174. package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -1
  175. package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -1
  176. package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +2 -1
  177. package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -1
  178. package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -1
  179. package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +2 -1
  180. package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +2 -1
  181. package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +2 -1
  182. package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +2 -1
  183. package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +2 -1
  184. package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +2 -1
  185. package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +2 -1
  186. package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +2 -1
  187. package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +2 -1
  188. package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +2 -1
  189. package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +2 -1
  190. package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +2 -1
  191. package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +2 -1
  192. package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +2 -1
  193. package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +2 -1
  194. package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +2 -1
  195. package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +2 -1
  196. package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +2 -1
  197. package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +2 -1
  198. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
  199. package/dist-types/ts3.4/models/S3ServiceException.d.ts +2 -1
  200. package/package.json +6 -6
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -233,27 +234,45 @@ declare const PutObjectCommand_base: {
233
234
  * <p>Base exception class for all service exceptions from S3 service.</p>
234
235
  *
235
236
  * @public
236
- * @example To upload object and specify user-defined metadata
237
+ * @example To upload an object and specify server-side encryption and object tags
237
238
  * ```javascript
238
- * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
239
+ * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
239
240
  * const input = {
240
241
  * "Body": "filetoupload",
241
242
  * "Bucket": "examplebucket",
242
243
  * "Key": "exampleobject",
243
- * "Metadata": {
244
- * "metadata1": "value1",
245
- * "metadata2": "value2"
246
- * }
244
+ * "ServerSideEncryption": "AES256",
245
+ * "Tagging": "key1=value1&key2=value2"
247
246
  * };
248
247
  * const command = new PutObjectCommand(input);
249
248
  * const response = await client.send(command);
250
249
  * /* response ==
251
250
  * {
252
251
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
253
- * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
252
+ * "ServerSideEncryption": "AES256",
253
+ * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
254
254
  * }
255
255
  * *\/
256
- * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
256
+ * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
257
+ * ```
258
+ *
259
+ * @example To create an object.
260
+ * ```javascript
261
+ * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
262
+ * const input = {
263
+ * "Body": "filetoupload",
264
+ * "Bucket": "examplebucket",
265
+ * "Key": "objectkey"
266
+ * };
267
+ * const command = new PutObjectCommand(input);
268
+ * const response = await client.send(command);
269
+ * /* response ==
270
+ * {
271
+ * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
272
+ * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
273
+ * }
274
+ * *\/
275
+ * // example id: to-create-an-object-1483147613675
257
276
  * ```
258
277
  *
259
278
  * @example To upload an object (specify optional headers)
@@ -298,42 +317,27 @@ declare const PutObjectCommand_base: {
298
317
  * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
299
318
  * ```
300
319
  *
301
- * @example To create an object.
320
+ * @example To upload object and specify user-defined metadata
302
321
  * ```javascript
303
- * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
322
+ * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
304
323
  * const input = {
305
324
  * "Body": "filetoupload",
306
325
  * "Bucket": "examplebucket",
307
- * "Key": "objectkey"
308
- * };
309
- * const command = new PutObjectCommand(input);
310
- * const response = await client.send(command);
311
- * /* response ==
312
- * {
313
- * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
314
- * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
315
- * }
316
- * *\/
317
- * // example id: to-create-an-object-1483147613675
318
- * ```
319
- *
320
- * @example To upload an object
321
- * ```javascript
322
- * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
323
- * const input = {
324
- * "Body": "HappyFace.jpg",
325
- * "Bucket": "examplebucket",
326
- * "Key": "HappyFace.jpg"
326
+ * "Key": "exampleobject",
327
+ * "Metadata": {
328
+ * "metadata1": "value1",
329
+ * "metadata2": "value2"
330
+ * }
327
331
  * };
328
332
  * const command = new PutObjectCommand(input);
329
333
  * const response = await client.send(command);
330
334
  * /* response ==
331
335
  * {
332
336
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
333
- * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
337
+ * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
334
338
  * }
335
339
  * *\/
336
- * // example id: to-upload-an-object-1481760101010
340
+ * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
337
341
  * ```
338
342
  *
339
343
  * @example To upload an object and specify canned ACL.
@@ -356,26 +360,23 @@ declare const PutObjectCommand_base: {
356
360
  * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
357
361
  * ```
358
362
  *
359
- * @example To upload an object and specify server-side encryption and object tags
363
+ * @example To upload an object
360
364
  * ```javascript
361
- * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
365
+ * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
362
366
  * const input = {
363
- * "Body": "filetoupload",
367
+ * "Body": "HappyFace.jpg",
364
368
  * "Bucket": "examplebucket",
365
- * "Key": "exampleobject",
366
- * "ServerSideEncryption": "AES256",
367
- * "Tagging": "key1=value1&key2=value2"
369
+ * "Key": "HappyFace.jpg"
368
370
  * };
369
371
  * const command = new PutObjectCommand(input);
370
372
  * const response = await client.send(command);
371
373
  * /* response ==
372
374
  * {
373
375
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
374
- * "ServerSideEncryption": "AES256",
375
- * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
376
+ * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
376
377
  * }
377
378
  * *\/
378
- * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
379
+ * // example id: to-upload-an-object-1481760101010
379
380
  * ```
380
381
  *
381
382
  */
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -74,6 +74,7 @@ export interface EndpointParameters extends __EndpointParameters {
74
74
  UseObjectLambdaEndpoint?: boolean;
75
75
  Key?: string;
76
76
  Prefix?: string;
77
+ CopySource?: string;
77
78
  DisableAccessPoints?: boolean;
78
79
  DisableMultiRegionAccessPoints?: boolean;
79
80
  UseArnRegion?: boolean;
@@ -6,8 +6,8 @@
6
6
  export * from "./S3Client";
7
7
  export * from "./S3";
8
8
  export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
- export { RuntimeExtension } from "./runtimeExtensions";
10
- export { S3ExtensionConfiguration } from "./extensionConfiguration";
9
+ export type { RuntimeExtension } from "./runtimeExtensions";
10
+ export type { S3ExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
13
  export * from "./waiters";
@@ -1,5 +1,6 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
- export { __ServiceException, __ServiceExceptionOptions };
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
3
4
  /**
4
5
  * @public
5
6
  *
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface AbortMultipartUploadCommandInput
14
15
  extends AbortMultipartUploadRequest {}
15
16
  export interface AbortMultipartUploadCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface CompleteMultipartUploadCommandInput
14
15
  extends CompleteMultipartUploadRequest {}
15
16
  export interface CompleteMultipartUploadCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface CopyObjectCommandInput extends CopyObjectRequest {}
11
12
  export interface CopyObjectCommandOutput
12
13
  extends CopyObjectOutput,
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface CreateBucketCommandInput extends CreateBucketRequest {}
11
12
  export interface CreateBucketCommandOutput
12
13
  extends CreateBucketOutput,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface CreateMultipartUploadCommandInput
14
15
  extends CreateMultipartUploadRequest {}
15
16
  export interface CreateMultipartUploadCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface CreateSessionCommandInput extends CreateSessionRequest {}
11
12
  export interface CreateSessionCommandOutput
12
13
  extends CreateSessionOutput,
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketAnalyticsConfigurationCommandInput
11
12
  extends DeleteBucketAnalyticsConfigurationRequest {}
12
13
  export interface DeleteBucketAnalyticsConfigurationCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketCommandInput extends DeleteBucketRequest {}
11
12
  export interface DeleteBucketCommandOutput extends __MetadataBearer {}
12
13
  declare const DeleteBucketCommand_base: {
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketCorsCommandInput extends DeleteBucketCorsRequest {}
11
12
  export interface DeleteBucketCorsCommandOutput extends __MetadataBearer {}
12
13
  declare const DeleteBucketCorsCommand_base: {
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketEncryptionCommandInput
11
12
  extends DeleteBucketEncryptionRequest {}
12
13
  export interface DeleteBucketEncryptionCommandOutput extends __MetadataBearer {}
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketIntelligentTieringConfigurationCommandInput
11
12
  extends DeleteBucketIntelligentTieringConfigurationRequest {}
12
13
  export interface DeleteBucketIntelligentTieringConfigurationCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketInventoryConfigurationCommandInput
11
12
  extends DeleteBucketInventoryConfigurationRequest {}
12
13
  export interface DeleteBucketInventoryConfigurationCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketLifecycleCommandInput
11
12
  extends DeleteBucketLifecycleRequest {}
12
13
  export interface DeleteBucketLifecycleCommandOutput extends __MetadataBearer {}
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketMetricsConfigurationCommandInput
11
12
  extends DeleteBucketMetricsConfigurationRequest {}
12
13
  export interface DeleteBucketMetricsConfigurationCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketOwnershipControlsCommandInput
11
12
  extends DeleteBucketOwnershipControlsRequest {}
12
13
  export interface DeleteBucketOwnershipControlsCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketPolicyCommandInput
11
12
  extends DeleteBucketPolicyRequest {}
12
13
  export interface DeleteBucketPolicyCommandOutput extends __MetadataBearer {}
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketReplicationCommandInput
11
12
  extends DeleteBucketReplicationRequest {}
12
13
  export interface DeleteBucketReplicationCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketTaggingCommandInput
11
12
  extends DeleteBucketTaggingRequest {}
12
13
  export interface DeleteBucketTaggingCommandOutput extends __MetadataBearer {}
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteBucketWebsiteCommandInput
11
12
  extends DeleteBucketWebsiteRequest {}
12
13
  export interface DeleteBucketWebsiteCommandOutput extends __MetadataBearer {}
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteObjectCommandInput extends DeleteObjectRequest {}
11
12
  export interface DeleteObjectCommandOutput
12
13
  extends DeleteObjectOutput,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface DeleteObjectTaggingCommandInput
14
15
  extends DeleteObjectTaggingRequest {}
15
16
  export interface DeleteObjectTaggingCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteObjectsCommandInput extends DeleteObjectsRequest {}
11
12
  export interface DeleteObjectsCommandOutput
12
13
  extends DeleteObjectsOutput,
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeletePublicAccessBlockCommandInput
11
12
  extends DeletePublicAccessBlockRequest {}
12
13
  export interface DeletePublicAccessBlockCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface GetBucketAccelerateConfigurationCommandInput
14
15
  extends GetBucketAccelerateConfigurationRequest {}
15
16
  export interface GetBucketAccelerateConfigurationCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface GetBucketAclCommandInput extends GetBucketAclRequest {}
11
12
  export interface GetBucketAclCommandOutput
12
13
  extends GetBucketAclOutput,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface GetBucketAnalyticsConfigurationCommandInput
14
15
  extends GetBucketAnalyticsConfigurationRequest {}
15
16
  export interface GetBucketAnalyticsConfigurationCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../S3Client";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface GetBucketCorsCommandInput extends GetBucketCorsRequest {}
11
12
  export interface GetBucketCorsCommandOutput
12
13
  extends GetBucketCorsOutput,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface GetBucketEncryptionCommandInput
14
15
  extends GetBucketEncryptionRequest {}
15
16
  export interface GetBucketEncryptionCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface GetBucketIntelligentTieringConfigurationCommandInput
14
15
  extends GetBucketIntelligentTieringConfigurationRequest {}
15
16
  export interface GetBucketIntelligentTieringConfigurationCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface GetBucketInventoryConfigurationCommandInput
14
15
  extends GetBucketInventoryConfigurationRequest {}
15
16
  export interface GetBucketInventoryConfigurationCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../S3Client";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface GetBucketLifecycleConfigurationCommandInput
14
15
  extends GetBucketLifecycleConfigurationRequest {}
15
16
  export interface GetBucketLifecycleConfigurationCommandOutput