@aws-sdk/client-s3 3.460.0 → 3.461.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 (340) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/S3.js +4 -0
  3. package/dist-cjs/S3Client.js +3 -1
  4. package/dist-cjs/commands/AbortMultipartUploadCommand.js +1 -0
  5. package/dist-cjs/commands/CompleteMultipartUploadCommand.js +1 -0
  6. package/dist-cjs/commands/CopyObjectCommand.js +1 -0
  7. package/dist-cjs/commands/CreateBucketCommand.js +2 -0
  8. package/dist-cjs/commands/CreateMultipartUploadCommand.js +1 -0
  9. package/dist-cjs/commands/CreateSessionCommand.js +59 -0
  10. package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +2 -0
  11. package/dist-cjs/commands/DeleteBucketCommand.js +2 -0
  12. package/dist-cjs/commands/DeleteBucketCorsCommand.js +2 -0
  13. package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +2 -0
  14. package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +2 -0
  15. package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +2 -0
  16. package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +2 -0
  17. package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +2 -0
  18. package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +2 -0
  19. package/dist-cjs/commands/DeleteBucketPolicyCommand.js +2 -0
  20. package/dist-cjs/commands/DeleteBucketReplicationCommand.js +2 -0
  21. package/dist-cjs/commands/DeleteBucketTaggingCommand.js +2 -0
  22. package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +2 -0
  23. package/dist-cjs/commands/DeleteObjectCommand.js +1 -0
  24. package/dist-cjs/commands/DeleteObjectTaggingCommand.js +1 -0
  25. package/dist-cjs/commands/DeleteObjectsCommand.js +1 -0
  26. package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +2 -0
  27. package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +2 -0
  28. package/dist-cjs/commands/GetBucketAclCommand.js +2 -0
  29. package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +2 -0
  30. package/dist-cjs/commands/GetBucketCorsCommand.js +2 -0
  31. package/dist-cjs/commands/GetBucketEncryptionCommand.js +2 -0
  32. package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +2 -0
  33. package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +2 -0
  34. package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +2 -0
  35. package/dist-cjs/commands/GetBucketLocationCommand.js +2 -0
  36. package/dist-cjs/commands/GetBucketLoggingCommand.js +2 -0
  37. package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +2 -0
  38. package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +2 -0
  39. package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +2 -0
  40. package/dist-cjs/commands/GetBucketPolicyCommand.js +2 -0
  41. package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +2 -0
  42. package/dist-cjs/commands/GetBucketReplicationCommand.js +2 -0
  43. package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +2 -0
  44. package/dist-cjs/commands/GetBucketTaggingCommand.js +2 -0
  45. package/dist-cjs/commands/GetBucketVersioningCommand.js +2 -0
  46. package/dist-cjs/commands/GetBucketWebsiteCommand.js +2 -0
  47. package/dist-cjs/commands/GetObjectAclCommand.js +1 -0
  48. package/dist-cjs/commands/GetObjectAttributesCommand.js +1 -0
  49. package/dist-cjs/commands/GetObjectCommand.js +1 -0
  50. package/dist-cjs/commands/GetObjectLegalHoldCommand.js +1 -0
  51. package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +1 -0
  52. package/dist-cjs/commands/GetObjectRetentionCommand.js +1 -0
  53. package/dist-cjs/commands/GetObjectTaggingCommand.js +1 -0
  54. package/dist-cjs/commands/GetObjectTorrentCommand.js +1 -0
  55. package/dist-cjs/commands/GetPublicAccessBlockCommand.js +2 -0
  56. package/dist-cjs/commands/HeadBucketCommand.js +1 -0
  57. package/dist-cjs/commands/HeadObjectCommand.js +1 -0
  58. package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +2 -0
  59. package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +2 -0
  60. package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +2 -0
  61. package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +1 -0
  62. package/dist-cjs/commands/ListBucketsCommand.js +1 -0
  63. package/dist-cjs/commands/ListDirectoryBucketsCommand.js +58 -0
  64. package/dist-cjs/commands/ListMultipartUploadsCommand.js +1 -0
  65. package/dist-cjs/commands/ListObjectVersionsCommand.js +1 -0
  66. package/dist-cjs/commands/ListObjectsCommand.js +1 -0
  67. package/dist-cjs/commands/ListObjectsV2Command.js +1 -0
  68. package/dist-cjs/commands/ListPartsCommand.js +1 -0
  69. package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +2 -0
  70. package/dist-cjs/commands/PutBucketAclCommand.js +2 -0
  71. package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +2 -0
  72. package/dist-cjs/commands/PutBucketCorsCommand.js +2 -0
  73. package/dist-cjs/commands/PutBucketEncryptionCommand.js +2 -0
  74. package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +2 -0
  75. package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +2 -0
  76. package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +2 -0
  77. package/dist-cjs/commands/PutBucketLoggingCommand.js +2 -0
  78. package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +2 -0
  79. package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +2 -0
  80. package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +2 -0
  81. package/dist-cjs/commands/PutBucketPolicyCommand.js +2 -0
  82. package/dist-cjs/commands/PutBucketReplicationCommand.js +2 -0
  83. package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +2 -0
  84. package/dist-cjs/commands/PutBucketTaggingCommand.js +2 -0
  85. package/dist-cjs/commands/PutBucketVersioningCommand.js +2 -0
  86. package/dist-cjs/commands/PutBucketWebsiteCommand.js +2 -0
  87. package/dist-cjs/commands/PutObjectAclCommand.js +1 -0
  88. package/dist-cjs/commands/PutObjectCommand.js +4 -3
  89. package/dist-cjs/commands/PutObjectLegalHoldCommand.js +1 -0
  90. package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +1 -0
  91. package/dist-cjs/commands/PutObjectRetentionCommand.js +1 -0
  92. package/dist-cjs/commands/PutObjectTaggingCommand.js +1 -0
  93. package/dist-cjs/commands/PutPublicAccessBlockCommand.js +2 -0
  94. package/dist-cjs/commands/RestoreObjectCommand.js +1 -0
  95. package/dist-cjs/commands/SelectObjectContentCommand.js +1 -0
  96. package/dist-cjs/commands/UploadPartCommand.js +1 -0
  97. package/dist-cjs/commands/UploadPartCopyCommand.js +1 -0
  98. package/dist-cjs/commands/WriteGetObjectResponseCommand.js +1 -0
  99. package/dist-cjs/commands/index.js +2 -0
  100. package/dist-cjs/endpoint/ruleset.js +3 -3
  101. package/dist-cjs/models/models_0.js +41 -32
  102. package/dist-cjs/models/models_1.js +18 -1
  103. package/dist-cjs/pagination/ListDirectoryBucketsPaginator.js +29 -0
  104. package/dist-cjs/pagination/index.js +1 -0
  105. package/dist-cjs/protocols/Aws_restXml.js +174 -4
  106. package/dist-cjs/runtimeConfig.js +2 -0
  107. package/dist-es/S3.js +4 -0
  108. package/dist-es/S3Client.js +4 -2
  109. package/dist-es/commands/AbortMultipartUploadCommand.js +1 -0
  110. package/dist-es/commands/CompleteMultipartUploadCommand.js +1 -0
  111. package/dist-es/commands/CopyObjectCommand.js +1 -0
  112. package/dist-es/commands/CreateBucketCommand.js +2 -0
  113. package/dist-es/commands/CreateMultipartUploadCommand.js +1 -0
  114. package/dist-es/commands/CreateSessionCommand.js +55 -0
  115. package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +2 -0
  116. package/dist-es/commands/DeleteBucketCommand.js +2 -0
  117. package/dist-es/commands/DeleteBucketCorsCommand.js +2 -0
  118. package/dist-es/commands/DeleteBucketEncryptionCommand.js +2 -0
  119. package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +2 -0
  120. package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +2 -0
  121. package/dist-es/commands/DeleteBucketLifecycleCommand.js +2 -0
  122. package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +2 -0
  123. package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +2 -0
  124. package/dist-es/commands/DeleteBucketPolicyCommand.js +2 -0
  125. package/dist-es/commands/DeleteBucketReplicationCommand.js +2 -0
  126. package/dist-es/commands/DeleteBucketTaggingCommand.js +2 -0
  127. package/dist-es/commands/DeleteBucketWebsiteCommand.js +2 -0
  128. package/dist-es/commands/DeleteObjectCommand.js +1 -0
  129. package/dist-es/commands/DeleteObjectTaggingCommand.js +1 -0
  130. package/dist-es/commands/DeleteObjectsCommand.js +1 -0
  131. package/dist-es/commands/DeletePublicAccessBlockCommand.js +2 -0
  132. package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +2 -0
  133. package/dist-es/commands/GetBucketAclCommand.js +2 -0
  134. package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +2 -0
  135. package/dist-es/commands/GetBucketCorsCommand.js +2 -0
  136. package/dist-es/commands/GetBucketEncryptionCommand.js +2 -0
  137. package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +2 -0
  138. package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +2 -0
  139. package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +2 -0
  140. package/dist-es/commands/GetBucketLocationCommand.js +2 -0
  141. package/dist-es/commands/GetBucketLoggingCommand.js +2 -0
  142. package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +2 -0
  143. package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +2 -0
  144. package/dist-es/commands/GetBucketOwnershipControlsCommand.js +2 -0
  145. package/dist-es/commands/GetBucketPolicyCommand.js +2 -0
  146. package/dist-es/commands/GetBucketPolicyStatusCommand.js +2 -0
  147. package/dist-es/commands/GetBucketReplicationCommand.js +2 -0
  148. package/dist-es/commands/GetBucketRequestPaymentCommand.js +2 -0
  149. package/dist-es/commands/GetBucketTaggingCommand.js +2 -0
  150. package/dist-es/commands/GetBucketVersioningCommand.js +2 -0
  151. package/dist-es/commands/GetBucketWebsiteCommand.js +2 -0
  152. package/dist-es/commands/GetObjectAclCommand.js +1 -0
  153. package/dist-es/commands/GetObjectAttributesCommand.js +1 -0
  154. package/dist-es/commands/GetObjectCommand.js +1 -0
  155. package/dist-es/commands/GetObjectLegalHoldCommand.js +1 -0
  156. package/dist-es/commands/GetObjectLockConfigurationCommand.js +1 -0
  157. package/dist-es/commands/GetObjectRetentionCommand.js +1 -0
  158. package/dist-es/commands/GetObjectTaggingCommand.js +1 -0
  159. package/dist-es/commands/GetObjectTorrentCommand.js +1 -0
  160. package/dist-es/commands/GetPublicAccessBlockCommand.js +2 -0
  161. package/dist-es/commands/HeadBucketCommand.js +1 -0
  162. package/dist-es/commands/HeadObjectCommand.js +1 -0
  163. package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +2 -0
  164. package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +2 -0
  165. package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +2 -0
  166. package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +1 -0
  167. package/dist-es/commands/ListBucketsCommand.js +1 -0
  168. package/dist-es/commands/ListDirectoryBucketsCommand.js +54 -0
  169. package/dist-es/commands/ListMultipartUploadsCommand.js +1 -0
  170. package/dist-es/commands/ListObjectVersionsCommand.js +1 -0
  171. package/dist-es/commands/ListObjectsCommand.js +1 -0
  172. package/dist-es/commands/ListObjectsV2Command.js +1 -0
  173. package/dist-es/commands/ListPartsCommand.js +1 -0
  174. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +2 -0
  175. package/dist-es/commands/PutBucketAclCommand.js +2 -0
  176. package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +2 -0
  177. package/dist-es/commands/PutBucketCorsCommand.js +2 -0
  178. package/dist-es/commands/PutBucketEncryptionCommand.js +2 -0
  179. package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +2 -0
  180. package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +2 -0
  181. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +2 -0
  182. package/dist-es/commands/PutBucketLoggingCommand.js +2 -0
  183. package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +2 -0
  184. package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +2 -0
  185. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +2 -0
  186. package/dist-es/commands/PutBucketPolicyCommand.js +2 -0
  187. package/dist-es/commands/PutBucketReplicationCommand.js +2 -0
  188. package/dist-es/commands/PutBucketRequestPaymentCommand.js +2 -0
  189. package/dist-es/commands/PutBucketTaggingCommand.js +2 -0
  190. package/dist-es/commands/PutBucketVersioningCommand.js +2 -0
  191. package/dist-es/commands/PutBucketWebsiteCommand.js +2 -0
  192. package/dist-es/commands/PutObjectAclCommand.js +1 -0
  193. package/dist-es/commands/PutObjectCommand.js +2 -1
  194. package/dist-es/commands/PutObjectLegalHoldCommand.js +1 -0
  195. package/dist-es/commands/PutObjectLockConfigurationCommand.js +1 -0
  196. package/dist-es/commands/PutObjectRetentionCommand.js +1 -0
  197. package/dist-es/commands/PutObjectTaggingCommand.js +1 -0
  198. package/dist-es/commands/PutPublicAccessBlockCommand.js +2 -0
  199. package/dist-es/commands/RestoreObjectCommand.js +1 -0
  200. package/dist-es/commands/SelectObjectContentCommand.js +1 -0
  201. package/dist-es/commands/UploadPartCommand.js +1 -0
  202. package/dist-es/commands/UploadPartCopyCommand.js +1 -0
  203. package/dist-es/commands/WriteGetObjectResponseCommand.js +1 -0
  204. package/dist-es/commands/index.js +2 -0
  205. package/dist-es/endpoint/ruleset.js +3 -3
  206. package/dist-es/models/models_0.js +36 -27
  207. package/dist-es/models/models_1.js +15 -0
  208. package/dist-es/pagination/ListDirectoryBucketsPaginator.js +25 -0
  209. package/dist-es/pagination/index.js +1 -0
  210. package/dist-es/protocols/Aws_restXml.js +166 -0
  211. package/dist-es/runtimeConfig.js +2 -0
  212. package/dist-types/S3.d.ts +14 -0
  213. package/dist-types/S3Client.d.ts +4 -2
  214. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +37 -5
  215. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +97 -61
  216. package/dist-types/commands/CopyObjectCommand.d.ts +108 -180
  217. package/dist-types/commands/CreateBucketCommand.d.ts +116 -95
  218. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +146 -224
  219. package/dist-types/commands/CreateSessionCommand.d.ts +145 -0
  220. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +4 -1
  221. package/dist-types/commands/DeleteBucketCommand.d.ts +35 -0
  222. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +4 -1
  223. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +4 -1
  224. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +4 -1
  225. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +4 -1
  226. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +4 -1
  227. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +4 -1
  228. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +4 -1
  229. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +48 -20
  230. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +4 -1
  231. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +4 -1
  232. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +4 -1
  233. package/dist-types/commands/DeleteObjectCommand.d.ts +83 -11
  234. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +15 -12
  235. package/dist-types/commands/DeleteObjectsCommand.d.ts +109 -35
  236. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +4 -1
  237. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +4 -1
  238. package/dist-types/commands/GetBucketAclCommand.d.ts +7 -4
  239. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +4 -1
  240. package/dist-types/commands/GetBucketCorsCommand.d.ts +6 -3
  241. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +4 -1
  242. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +4 -1
  243. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +4 -1
  244. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +3 -0
  245. package/dist-types/commands/GetBucketLocationCommand.d.ts +7 -4
  246. package/dist-types/commands/GetBucketLoggingCommand.d.ts +4 -1
  247. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +4 -1
  248. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +6 -3
  249. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +4 -1
  250. package/dist-types/commands/GetBucketPolicyCommand.d.ts +54 -24
  251. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +4 -1
  252. package/dist-types/commands/GetBucketReplicationCommand.d.ts +5 -2
  253. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +4 -1
  254. package/dist-types/commands/GetBucketTaggingCommand.d.ts +4 -1
  255. package/dist-types/commands/GetBucketVersioningCommand.d.ts +4 -1
  256. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +4 -1
  257. package/dist-types/commands/GetObjectAclCommand.d.ts +5 -2
  258. package/dist-types/commands/GetObjectAttributesCommand.d.ts +113 -76
  259. package/dist-types/commands/GetObjectCommand.d.ts +122 -140
  260. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +5 -2
  261. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +4 -1
  262. package/dist-types/commands/GetObjectRetentionCommand.d.ts +5 -2
  263. package/dist-types/commands/GetObjectTaggingCommand.d.ts +23 -20
  264. package/dist-types/commands/GetObjectTorrentCommand.d.ts +5 -2
  265. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +4 -1
  266. package/dist-types/commands/HeadBucketCommand.d.ts +53 -19
  267. package/dist-types/commands/HeadObjectCommand.d.ts +87 -83
  268. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +4 -1
  269. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +4 -1
  270. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +4 -1
  271. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +4 -1
  272. package/dist-types/commands/ListBucketsCommand.d.ts +4 -1
  273. package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +98 -0
  274. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +85 -17
  275. package/dist-types/commands/ListObjectVersionsCommand.d.ts +4 -1
  276. package/dist-types/commands/ListObjectsCommand.d.ts +5 -2
  277. package/dist-types/commands/ListObjectsV2Command.d.ts +52 -10
  278. package/dist-types/commands/ListPartsCommand.d.ts +47 -14
  279. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +4 -1
  280. package/dist-types/commands/PutBucketAclCommand.d.ts +5 -2
  281. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +4 -1
  282. package/dist-types/commands/PutBucketCorsCommand.d.ts +4 -1
  283. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +4 -1
  284. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +4 -1
  285. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +4 -1
  286. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +4 -1
  287. package/dist-types/commands/PutBucketLoggingCommand.d.ts +4 -1
  288. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +4 -1
  289. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +4 -1
  290. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +4 -1
  291. package/dist-types/commands/PutBucketPolicyCommand.d.ts +54 -19
  292. package/dist-types/commands/PutBucketReplicationCommand.d.ts +6 -3
  293. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +5 -2
  294. package/dist-types/commands/PutBucketTaggingCommand.d.ts +5 -2
  295. package/dist-types/commands/PutBucketVersioningCommand.d.ts +5 -2
  296. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +5 -2
  297. package/dist-types/commands/PutObjectAclCommand.d.ts +6 -3
  298. package/dist-types/commands/PutObjectCommand.d.ts +151 -114
  299. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +5 -2
  300. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +4 -1
  301. package/dist-types/commands/PutObjectRetentionCommand.d.ts +5 -2
  302. package/dist-types/commands/PutObjectTaggingCommand.d.ts +4 -1
  303. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +4 -1
  304. package/dist-types/commands/RestoreObjectCommand.d.ts +6 -3
  305. package/dist-types/commands/SelectObjectContentCommand.d.ts +6 -3
  306. package/dist-types/commands/UploadPartCommand.d.ts +101 -62
  307. package/dist-types/commands/UploadPartCopyCommand.d.ts +121 -114
  308. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +5 -2
  309. package/dist-types/commands/index.d.ts +2 -0
  310. package/dist-types/endpoint/EndpointParameters.d.ts +3 -0
  311. package/dist-types/models/models_0.d.ts +2443 -1104
  312. package/dist-types/models/models_1.d.ts +1189 -81
  313. package/dist-types/pagination/ListDirectoryBucketsPaginator.d.ts +7 -0
  314. package/dist-types/pagination/index.d.ts +1 -0
  315. package/dist-types/protocols/Aws_restXml.d.ts +18 -0
  316. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  317. package/dist-types/runtimeConfig.d.ts +2 -0
  318. package/dist-types/runtimeConfig.native.d.ts +2 -0
  319. package/dist-types/ts3.4/S3.d.ts +34 -0
  320. package/dist-types/ts3.4/S3Client.d.ts +12 -0
  321. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +35 -0
  322. package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +4 -2
  323. package/dist-types/ts3.4/commands/ListDirectoryBucketsCommand.d.ts +42 -0
  324. package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +1 -1
  325. package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  326. package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +1 -1
  327. package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +1 -1
  328. package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +1 -1
  329. package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +1 -1
  330. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  331. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +3 -0
  332. package/dist-types/ts3.4/models/models_0.d.ts +68 -124
  333. package/dist-types/ts3.4/models/models_1.d.ts +127 -1
  334. package/dist-types/ts3.4/pagination/ListDirectoryBucketsPaginator.d.ts +11 -0
  335. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  336. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +24 -0
  337. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -0
  338. package/dist-types/ts3.4/runtimeConfig.d.ts +6 -0
  339. package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -0
  340. package/package.json +7 -7
@@ -23,8 +23,11 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Restores an archived copy of an object back into Amazon S3</p>
27
- * <p>This action is not supported by Amazon S3 on Outposts.</p>
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Restores an archived copy of an object back into Amazon S3</p>
30
+ * <p>This functionality is not supported for Amazon S3 on Outposts.</p>
28
31
  * <p>This action performs the following types of requests: </p>
29
32
  * <ul>
30
33
  * <li>
@@ -371,7 +374,7 @@ export interface RestoreObjectCommandOutput extends RestoreObjectOutput, __Metad
371
374
  * Value: "STRING_VALUE",
372
375
  * },
373
376
  * ],
374
- * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW",
377
+ * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW" || "EXPRESS_ONEZONE",
375
378
  * },
376
379
  * },
377
380
  * },
@@ -23,13 +23,16 @@ export interface SelectObjectContentCommandOutput extends SelectObjectContentOut
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>This action filters the contents of an Amazon S3 object based on a simple structured query
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>This action filters the contents of an Amazon S3 object based on a simple structured query
27
30
  * language (SQL) statement. In the request, along with the SQL expression, you must also
28
31
  * specify a data serialization format (JSON, CSV, or Apache Parquet) of the object. Amazon S3 uses
29
32
  * this format to parse object data into records, and returns only records that match the
30
33
  * specified SQL expression. You must also specify the data serialization format for the
31
34
  * response.</p>
32
- * <p>This action is not supported by Amazon S3 on Outposts.</p>
35
+ * <p>This functionality is not supported for Amazon S3 on Outposts.</p>
33
36
  * <p>For more information about Amazon S3 Select, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html">Selecting Content from
34
37
  * Objects</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html">SELECT
35
38
  * Command</a> in the <i>Amazon S3 User Guide</i>.</p>
@@ -37,7 +40,7 @@ export interface SelectObjectContentCommandOutput extends SelectObjectContentOut
37
40
  * <dl>
38
41
  * <dt>Permissions</dt>
39
42
  * <dd>
40
- * <p>You must have <code>s3:GetObject</code> permission for this operation. Amazon S3
43
+ * <p>You must have the <code>s3:GetObject</code> permission for this operation. Amazon S3
41
44
  * Select does not support anonymous access. For more information about permissions,
42
45
  * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in
43
46
  * a Policy</a> in the <i>Amazon S3 User Guide</i>.</p>
@@ -26,100 +26,139 @@ export interface UploadPartCommandOutput extends UploadPartOutput, __MetadataBea
26
26
  * @public
27
27
  * <p>Uploads a part in a multipart upload.</p>
28
28
  * <note>
29
- * <p>In this operation, you provide part data in your request. However, you have an option
29
+ * <p>In this operation, you provide new data as a part of an object in your request. However, you have an option
30
30
  * to specify your existing Amazon S3 object as a data source for the part you are uploading. To
31
31
  * upload a part from an existing object, you use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> operation.
32
32
  * </p>
33
33
  * </note>
34
34
  * <p>You must initiate a multipart upload (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>)
35
35
  * before you can upload any part. In response to your initiate request, Amazon S3 returns an
36
- * upload ID, a unique identifier, that you must include in your upload part request.</p>
36
+ * upload ID, a unique identifier that you must include in your upload part request.</p>
37
37
  * <p>Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely
38
38
  * identifies a part and also defines its position within the object being created. If you
39
39
  * upload a new part using the same part number that was used with a previous part, the
40
40
  * previously uploaded part is overwritten.</p>
41
41
  * <p>For information about maximum and minimum part sizes and other multipart upload
42
42
  * specifications, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html">Multipart upload limits</a> in the <i>Amazon S3 User Guide</i>.</p>
43
- * <p>To ensure that data is not corrupted when traversing the network, specify the
44
- * <code>Content-MD5</code> header in the upload part request. Amazon S3 checks the part data
45
- * against the provided MD5 value. If they do not match, Amazon S3 returns an error. </p>
46
- * <p>If the upload request is signed with Signature Version 4, then Amazon Web Services S3 uses the
47
- * <code>x-amz-content-sha256</code> header as a checksum instead of
48
- * <code>Content-MD5</code>. For more information see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html">Authenticating
49
- * Requests: Using the Authorization Header (Amazon Web Services Signature Version 4)</a>. </p>
50
- * <p>
51
- * <b>Note:</b> After you initiate multipart upload and upload
43
+ * <note>
44
+ * <p>After you initiate multipart upload and upload
52
45
  * one or more parts, you must either complete or abort multipart upload in order to stop
53
46
  * getting charged for storage of the uploaded parts. Only after you either complete or abort
54
47
  * multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts
55
48
  * storage.</p>
49
+ * </note>
56
50
  * <p>For more information on multipart uploads, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a> in the
57
- * <i>Amazon S3 User Guide </i>.</p>
58
- * <p>For information on the permissions required to use the multipart upload API, go to
59
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart
60
- * Upload and Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
61
- * <p>Server-side encryption is for data encryption at rest. Amazon S3 encrypts your data as it
62
- * writes it to disks in its data centers and decrypts it when you access it. You have three
63
- * mutually exclusive options to protect data using server-side encryption in Amazon S3, depending
64
- * on how you choose to manage the encryption keys. Specifically, the encryption key options
65
- * are Amazon S3 managed keys (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), and Customer-Provided Keys
66
- * (SSE-C). Amazon S3 encrypts data with server-side encryption using Amazon S3 managed keys (SSE-S3) by
67
- * default. You can optionally tell Amazon S3 to encrypt data at rest using server-side encryption
68
- * with other key options. The option you use depends on whether you want to use KMS keys
69
- * (SSE-KMS) or provide your own encryption key (SSE-C). If you choose to provide your own
70
- * encryption key, the request headers you provide in the request must match the headers you
71
- * used in the request to initiate the upload by using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.
72
- * For more information, go to <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Using Server-Side
73
- * Encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
74
- * <p>Server-side encryption is supported by the S3 Multipart Upload actions. Unless you are
75
- * using a customer-provided encryption key (SSE-C), you don't need to specify the encryption
76
- * parameters in each UploadPart request. Instead, you only need to specify the server-side
77
- * encryption parameters in the initial Initiate Multipart request. For more information, see
78
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.</p>
79
- * <p>If you requested server-side encryption using a customer-provided encryption key (SSE-C)
80
- * in your initiate multipart upload request, you must provide identical encryption
81
- * information in each part upload using the following headers.</p>
82
- * <ul>
83
- * <li>
84
- * <p>x-amz-server-side-encryption-customer-algorithm</p>
85
- * </li>
86
- * <li>
87
- * <p>x-amz-server-side-encryption-customer-key</p>
88
- * </li>
89
- * <li>
90
- * <p>x-amz-server-side-encryption-customer-key-MD5</p>
91
- * </li>
92
- * </ul>
93
- * <p>
94
- * <code>UploadPart</code> has the following special errors:</p>
95
- * <ul>
96
- * <li>
51
+ * <i>Amazon S3 User Guide </i>.</p>
52
+ * <note>
53
+ * <p>
54
+ * <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com/<i>key-name</i>
55
+ * </code>. Path-style requests are not supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html">Regional and Zonal endpoints</a> in the
56
+ * <i>Amazon S3 User Guide</i>.</p>
57
+ * </note>
58
+ * <dl>
59
+ * <dt>Permissions</dt>
60
+ * <dd>
97
61
  * <ul>
98
62
  * <li>
99
63
  * <p>
100
- * <i>Code: NoSuchUpload</i>
101
- * </p>
64
+ * <b>General purpose bucket permissions</b> - For information on the permissions required to use the multipart upload API, see
65
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart
66
+ * Upload and Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
102
67
  * </li>
103
68
  * <li>
104
69
  * <p>
105
- * <i>Cause: The specified multipart upload does not exist. The upload
106
- * ID might be invalid, or the multipart upload might have been aborted or
107
- * completed.</i>
108
- * </p>
70
+ * <b>Directory bucket permissions</b> - To grant access to this API operation on a directory bucket, we recommend that you use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html">
71
+ * <code>CreateSession</code>
72
+ * </a> API operation for session-based authorization. Specifically, you grant the <code>s3express:CreateSession</code> permission to the directory bucket in a bucket policy or an IAM identity-based policy. Then, you make the <code>CreateSession</code> API call on the bucket to obtain a session token. With the session token in your request header, you can make API requests to this operation. After the session token expires, you make another <code>CreateSession</code> API call to generate a new session token for use.
73
+ * Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html">
74
+ * <code>CreateSession</code>
75
+ * </a>.</p>
109
76
  * </li>
77
+ * </ul>
78
+ * </dd>
79
+ * <dt>Data integrity</dt>
80
+ * <dd>
81
+ * <p>
82
+ * <b>General purpose bucket</b> - To ensure that data is not corrupted traversing the network, specify the
83
+ * <code>Content-MD5</code> header in the upload part request. Amazon S3 checks the part data against the provided MD5 value. If they do not match, Amazon S3 returns an error. If the upload request is signed with Signature Version 4, then Amazon Web Services S3 uses the
84
+ * <code>x-amz-content-sha256</code> header as a checksum instead of
85
+ * <code>Content-MD5</code>. For more information see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html">Authenticating
86
+ * Requests: Using the Authorization Header (Amazon Web Services Signature Version 4)</a>. </p>
87
+ * <note>
88
+ * <p>
89
+ * <b>Directory buckets</b> - MD5 is not supported by directory buckets. You can use checksum algorithms to check object integrity.</p>
90
+ * </note>
91
+ * </dd>
92
+ * <dt>Encryption</dt>
93
+ * <dd>
94
+ * <ul>
110
95
  * <li>
111
96
  * <p>
112
- * <i> HTTP Status Code: 404 Not Found </i>
113
- * </p>
97
+ * <b>General purpose bucket</b> - Server-side encryption is for data encryption at rest. Amazon S3 encrypts your data as it
98
+ * writes it to disks in its data centers and decrypts it when you access it. You have
99
+ * mutually exclusive options to protect data using server-side encryption in Amazon S3, depending
100
+ * on how you choose to manage the encryption keys. Specifically, the encryption key options
101
+ * are Amazon S3 managed keys (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), and Customer-Provided Keys
102
+ * (SSE-C). Amazon S3 encrypts data with server-side encryption using Amazon S3 managed keys (SSE-S3) by
103
+ * default. You can optionally tell Amazon S3 to encrypt data at rest using server-side encryption
104
+ * with other key options. The option you use depends on whether you want to use KMS keys
105
+ * (SSE-KMS) or provide your own encryption key (SSE-C).</p>
106
+ * <p>Server-side encryption is supported by the S3 Multipart Upload operations. Unless you are
107
+ * using a customer-provided encryption key (SSE-C), you don't need to specify the encryption
108
+ * parameters in each UploadPart request. Instead, you only need to specify the server-side
109
+ * encryption parameters in the initial Initiate Multipart request. For more information, see
110
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>.</p>
111
+ * <p>If you request server-side encryption using a customer-provided encryption key (SSE-C)
112
+ * in your initiate multipart upload request, you must provide identical encryption
113
+ * information in each part upload using the following request headers.</p>
114
+ * <ul>
115
+ * <li>
116
+ * <p>x-amz-server-side-encryption-customer-algorithm</p>
117
+ * </li>
118
+ * <li>
119
+ * <p>x-amz-server-side-encryption-customer-key</p>
120
+ * </li>
121
+ * <li>
122
+ * <p>x-amz-server-side-encryption-customer-key-MD5</p>
123
+ * </li>
124
+ * </ul>
114
125
  * </li>
115
126
  * <li>
116
127
  * <p>
117
- * <i>SOAP Fault Code Prefix: Client</i>
128
+ * <b>Directory bucket</b> - For directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) is supported. </p>
129
+ * </li>
130
+ * </ul>
131
+ * <p>
132
+ * For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Using Server-Side
133
+ * Encryption</a> in the <i>Amazon S3 User Guide</i>.</p>
134
+ * </dd>
135
+ * <dt>Special errors</dt>
136
+ * <dd>
137
+ * <ul>
138
+ * <li>
139
+ * <p>Error Code: <code>NoSuchUpload</code>
118
140
  * </p>
141
+ * <ul>
142
+ * <li>
143
+ * <p>Description: The specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed.</p>
144
+ * </li>
145
+ * <li>
146
+ * <p>HTTP Status Code: 404 Not Found </p>
147
+ * </li>
148
+ * <li>
149
+ * <p>SOAP Fault Code Prefix: Client</p>
150
+ * </li>
151
+ * </ul>
119
152
  * </li>
120
153
  * </ul>
121
- * </li>
122
- * </ul>
154
+ * </dd>
155
+ * <dt>HTTP Host header syntax</dt>
156
+ * <dd>
157
+ * <p>
158
+ * <b>Directory buckets </b> - The HTTP Host header syntax is <code>
159
+ * <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
160
+ * </dd>
161
+ * </dl>
123
162
  * <p>The following operations are related to <code>UploadPart</code>:</p>
124
163
  * <ul>
125
164
  * <li>
@@ -23,143 +23,150 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Uploads a part by copying data from an existing object as data source. You specify the
27
- * data source by adding the request header <code>x-amz-copy-source</code> in your request and
28
- * a byte range by adding the request header <code>x-amz-copy-source-range</code> in your
26
+ * <p>Uploads a part by copying data from an existing object as data source. To specify the
27
+ * data source, you add the request header <code>x-amz-copy-source</code> in your request. To specify
28
+ * a byte range, you add the request header <code>x-amz-copy-source-range</code> in your
29
29
  * request. </p>
30
30
  * <p>For information about maximum and minimum part sizes and other multipart upload
31
31
  * specifications, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html">Multipart upload limits</a> in the <i>Amazon S3 User Guide</i>. </p>
32
32
  * <note>
33
- * <p>Instead of using an existing object as part data, you might use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
34
- * action and provide data in your request.</p>
33
+ * <p>Instead of copying data from an existing object as part data, you might use the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
34
+ * action to upload new data as a part of an object in your request.</p>
35
35
  * </note>
36
36
  * <p>You must initiate a multipart upload before you can upload any part. In response to your
37
- * initiate request. Amazon S3 returns a unique identifier, the upload ID, that you must include in
37
+ * initiate request, Amazon S3 returns the upload ID, a unique identifier that you must include in
38
38
  * your upload part request.</p>
39
- * <p>For more information about using the <code>UploadPartCopy</code> operation, see the
40
- * following:</p>
41
- * <ul>
42
- * <li>
43
- * <p>For conceptual information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading
44
- * Objects Using Multipart Upload</a> in the
45
- * <i>Amazon S3 User Guide</i>.</p>
46
- * </li>
47
- * <li>
48
- * <p>For information about permissions required to use the multipart upload API, see
49
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and Permissions</a> in the
50
- * <i>Amazon S3 User Guide</i>.</p>
51
- * </li>
52
- * <li>
53
- * <p>For information about copying objects using a single atomic action vs. a multipart
54
- * upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html">Operations on Objects</a> in
55
- * the <i>Amazon S3 User Guide</i>.</p>
56
- * </li>
57
- * <li>
58
- * <p>For information about using server-side encryption with customer-provided
59
- * encryption keys with the <code>UploadPartCopy</code> operation, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>.</p>
60
- * </li>
61
- * </ul>
62
- * <p>Note the following additional considerations about the request headers
63
- * <code>x-amz-copy-source-if-match</code>, <code>x-amz-copy-source-if-none-match</code>,
64
- * <code>x-amz-copy-source-if-unmodified-since</code>, and
65
- * <code>x-amz-copy-source-if-modified-since</code>:</p>
66
- * <p> </p>
67
- * <ul>
68
- * <li>
69
- * <p>
70
- * <b>Consideration 1</b> - If both of the
71
- * <code>x-amz-copy-source-if-match</code> and
72
- * <code>x-amz-copy-source-if-unmodified-since</code> headers are present in the
73
- * request as follows:</p>
74
- * <p>
75
- * <code>x-amz-copy-source-if-match</code> condition evaluates to <code>true</code>,
76
- * and;</p>
77
- * <p>
78
- * <code>x-amz-copy-source-if-unmodified-since</code> condition evaluates to
79
- * <code>false</code>;</p>
80
- * <p>Amazon S3 returns <code>200 OK</code> and copies the data.
81
- * </p>
82
- * </li>
83
- * <li>
84
- * <p>
85
- * <b>Consideration 2</b> - If both of the
86
- * <code>x-amz-copy-source-if-none-match</code> and
87
- * <code>x-amz-copy-source-if-modified-since</code> headers are present in the
88
- * request as follows:</p>
89
- * <p>
90
- * <code>x-amz-copy-source-if-none-match</code> condition evaluates to
91
- * <code>false</code>, and;</p>
92
- * <p>
93
- * <code>x-amz-copy-source-if-modified-since</code> condition evaluates to
94
- * <code>true</code>;</p>
95
- * <p>Amazon S3 returns <code>412 Precondition Failed</code> response code.
96
- * </p>
97
- * </li>
98
- * </ul>
39
+ * <p>For conceptual information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading
40
+ * Objects Using Multipart Upload</a> in the
41
+ * <i>Amazon S3 User Guide</i>. For information about copying objects using a single atomic action vs. a multipart
42
+ * upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html">Operations on Objects</a> in
43
+ * the <i>Amazon S3 User Guide</i>.</p>
44
+ * <note>
45
+ * <p>
46
+ * <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com/<i>key-name</i>
47
+ * </code>. Path-style requests are not supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html">Regional and Zonal endpoints</a> in the
48
+ * <i>Amazon S3 User Guide</i>.</p>
49
+ * </note>
99
50
  * <dl>
100
- * <dt>Versioning</dt>
51
+ * <dt>Authentication and authorization</dt>
101
52
  * <dd>
102
- * <p>If your bucket has versioning enabled, you could have multiple versions of the
103
- * same object. By default, <code>x-amz-copy-source</code> identifies the current
104
- * version of the object to copy. If the current version is a delete marker and you
105
- * don't specify a versionId in the <code>x-amz-copy-source</code>, Amazon S3 returns a
106
- * 404 error, because the object does not exist. If you specify versionId in the
107
- * <code>x-amz-copy-source</code> and the versionId is a delete marker, Amazon S3
108
- * returns an HTTP 400 error, because you are not allowed to specify a delete marker
109
- * as a version for the <code>x-amz-copy-source</code>. </p>
110
- * <p>You can optionally specify a specific version of the source object to copy by
111
- * adding the <code>versionId</code> subresource as shown in the following
112
- * example:</p>
53
+ * <p>All <code>UploadPartCopy</code> requests must be authenticated and signed by using IAM credentials (access key ID and secret access key for the IAM identities). All headers with the <code>x-amz-</code> prefix, including
54
+ * <code>x-amz-copy-source</code>, must be signed. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html">REST Authentication</a>.</p>
113
55
  * <p>
114
- * <code>x-amz-copy-source: /bucket/object?versionId=version id</code>
115
- * </p>
56
+ * <b>Directory buckets</b> - You must use IAM credentials to authenticate and authorize your access to the <code>UploadPartCopy</code> API operation, instead of using the
57
+ * temporary security credentials through the <code>CreateSession</code> API operation.</p>
58
+ * <p>Amazon Web Services CLI or SDKs handles authentication and authorization on your behalf.</p>
116
59
  * </dd>
117
- * <dt>Special errors</dt>
60
+ * <dt>Permissions</dt>
118
61
  * <dd>
62
+ * <p>You must have <code>READ</code> access to the source object and <code>WRITE</code>
63
+ * access to the destination bucket.</p>
119
64
  * <ul>
120
65
  * <li>
66
+ * <p>
67
+ * <b>General purpose bucket permissions</b> - You must have the permissions in a policy based on the bucket types of your source bucket and destination bucket in an <code>UploadPartCopy</code> operation.</p>
121
68
  * <ul>
122
69
  * <li>
123
- * <p>
124
- * <i>Code: NoSuchUpload</i>
125
- * </p>
70
+ * <p>If the source object is in a general purpose bucket, you must have the <b>
71
+ * <code>s3:GetObject</code>
72
+ * </b> permission to read the source object that is being copied. </p>
126
73
  * </li>
127
74
  * <li>
128
- * <p>
129
- * <i>Cause: The specified multipart upload does not exist. The
130
- * upload ID might be invalid, or the multipart upload might have been
131
- * aborted or completed.</i>
75
+ * <p>If the destination bucket is a general purpose bucket, you must have the <b>
76
+ * <code>s3:PubObject</code>
77
+ * </b> permission to write the object copy to the destination bucket.
132
78
  * </p>
133
79
  * </li>
80
+ * </ul>
81
+ * <p>For information about permissions required to use the multipart upload API, see
82
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and Permissions</a> in the
83
+ * <i>Amazon S3 User Guide</i>.</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>
87
+ * <b>Directory bucket permissions</b> -
88
+ * You must have permissions in a bucket policy or an IAM identity-based policy based on the source and destination
89
+ * bucket types in an <code>UploadPartCopy</code> operation.</p>
90
+ * <ul>
91
+ * <li>
92
+ * <p>If the source object that you want to copy is in a
93
+ * directory bucket, you must have the <b>
94
+ * <code>s3express:CreateSession</code>
95
+ * </b> permission in
96
+ * the <code>Action</code> element of a policy to read the object
97
+ * .
98
+ * By default, the session is in the <code>ReadWrite</code> mode. If you want to restrict the access, you can explicitly set the <code>s3express:SessionMode</code> condition key to <code>ReadOnly</code> on the copy source bucket.</p>
99
+ * </li>
134
100
  * <li>
135
- * <p>
136
- * <i>HTTP Status Code: 404 Not Found</i>
137
- * </p>
101
+ * <p>If the copy destination is a directory bucket, you must have the
102
+ * <b>
103
+ * <code>s3express:CreateSession</code>
104
+ * </b> permission in the
105
+ * <code>Action</code> element of a policy to write the object
106
+ * to the destination. The <code>s3express:SessionMode</code> condition
107
+ * key cannot be set to <code>ReadOnly</code> on the copy destination. </p>
138
108
  * </li>
139
109
  * </ul>
110
+ * <p>For example policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html">Example bucket policies for S3 Express One Zone</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html">Amazon Web Services Identity and Access Management (IAM) identity-based policies for S3 Express One Zone</a> in the
111
+ * <i>Amazon S3 User Guide</i>.</p>
112
+ * </li>
113
+ * </ul>
114
+ * </dd>
115
+ * <dt>Encryption</dt>
116
+ * <dd>
117
+ * <ul>
118
+ * <li>
119
+ * <p>
120
+ * <b>General purpose buckets </b> -
121
+ *
122
+ * For information about using server-side encryption with customer-provided
123
+ * encryption keys with the <code>UploadPartCopy</code> operation, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>.
124
+ * </p>
125
+ * </li>
126
+ * <li>
127
+ * <p>
128
+ * <b>Directory buckets </b> - For directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) is supported.</p>
140
129
  * </li>
130
+ * </ul>
131
+ * </dd>
132
+ * <dt>Special errors</dt>
133
+ * <dd>
134
+ * <ul>
141
135
  * <li>
136
+ * <p>Error Code: <code>NoSuchUpload</code>
137
+ * </p>
142
138
  * <ul>
143
139
  * <li>
144
- * <p>
145
- * <i>Code: InvalidRequest</i>
146
- * </p>
140
+ * <p>Description: The specified multipart upload does not exist. The
141
+ * upload ID might be invalid, or the multipart upload might have been
142
+ * aborted or completed.</p>
147
143
  * </li>
148
144
  * <li>
149
- * <p>
150
- * <i>Cause: The specified copy source is not supported as a
151
- * byte-range copy source.</i>
152
- * </p>
145
+ * <p>HTTP Status Code: 404 Not Found</p>
153
146
  * </li>
147
+ * </ul>
148
+ * </li>
149
+ * <li>
150
+ * <p>Error Code: <code>InvalidRequest</code>
151
+ * </p>
152
+ * <ul>
154
153
  * <li>
155
- * <p>
156
- * <i>HTTP Status Code: 400 Bad Request</i>
157
- * </p>
154
+ * <p>Description: The specified copy source is not supported as a
155
+ * byte-range copy source.</p>
156
+ * </li>
157
+ * <li>
158
+ * <p>HTTP Status Code: 400 Bad Request</p>
158
159
  * </li>
159
160
  * </ul>
160
161
  * </li>
161
162
  * </ul>
162
163
  * </dd>
164
+ * <dt>HTTP Host header syntax</dt>
165
+ * <dd>
166
+ * <p>
167
+ * <b>Directory buckets </b> - The HTTP Host header syntax is <code>
168
+ * <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
169
+ * </dd>
163
170
  * </dl>
164
171
  * <p>The following operations are related to <code>UploadPartCopy</code>:</p>
165
172
  * <ul>
@@ -252,14 +259,15 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
252
259
  * @throws {@link S3ServiceException}
253
260
  * <p>Base exception class for all service exceptions from S3 service.</p>
254
261
  *
255
- * @example To upload a part by copying data from an existing object as data source
262
+ * @example To upload a part by copying byte range from an existing object as data source
256
263
  * ```javascript
257
- * // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
264
+ * // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
258
265
  * const input = {
259
266
  * "Bucket": "examplebucket",
260
267
  * "CopySource": "/bucketname/sourceobjectkey",
268
+ * "CopySourceRange": "bytes=1-100000",
261
269
  * "Key": "examplelargeobject",
262
- * "PartNumber": "1",
270
+ * "PartNumber": "2",
263
271
  * "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
264
272
  * };
265
273
  * const command = new UploadPartCopyCommand(input);
@@ -267,23 +275,22 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
267
275
  * /* response ==
268
276
  * {
269
277
  * "CopyPartResult": {
270
- * "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
271
- * "LastModified": "2016-12-29T21:24:43.000Z"
278
+ * "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
279
+ * "LastModified": "2016-12-29T21:44:28.000Z"
272
280
  * }
273
281
  * }
274
282
  * *\/
275
- * // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
283
+ * // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
276
284
  * ```
277
285
  *
278
- * @example To upload a part by copying byte range from an existing object as data source
286
+ * @example To upload a part by copying data from an existing object as data source
279
287
  * ```javascript
280
- * // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
288
+ * // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
281
289
  * const input = {
282
290
  * "Bucket": "examplebucket",
283
291
  * "CopySource": "/bucketname/sourceobjectkey",
284
- * "CopySourceRange": "bytes=1-100000",
285
292
  * "Key": "examplelargeobject",
286
- * "PartNumber": "2",
293
+ * "PartNumber": "1",
287
294
  * "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
288
295
  * };
289
296
  * const command = new UploadPartCopyCommand(input);
@@ -291,12 +298,12 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
291
298
  * /* response ==
292
299
  * {
293
300
  * "CopyPartResult": {
294
- * "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
295
- * "LastModified": "2016-12-29T21:44:28.000Z"
301
+ * "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
302
+ * "LastModified": "2016-12-29T21:24:43.000Z"
296
303
  * }
297
304
  * }
298
305
  * *\/
299
- * // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
306
+ * // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
300
307
  * ```
301
308
  *
302
309
  */
@@ -24,7 +24,10 @@ export interface WriteGetObjectResponseCommandOutput extends __MetadataBearer {
24
24
  }
25
25
  /**
26
26
  * @public
27
- * <p>Passes transformed objects to a <code>GetObject</code> operation when using Object Lambda access points. For
27
+ * <note>
28
+ * <p>This operation is not supported by directory buckets.</p>
29
+ * </note>
30
+ * <p>Passes transformed objects to a <code>GetObject</code> operation when using Object Lambda access points. For
28
31
  * information about Object Lambda access points, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html">Transforming objects with
29
32
  * Object Lambda access points</a> in the <i>Amazon S3 User Guide</i>.</p>
30
33
  * <p>This operation supports metadata that can be returned by <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>, in addition to
@@ -103,7 +106,7 @@ export interface WriteGetObjectResponseCommandOutput extends __MetadataBearer {
103
106
  * SSECustomerAlgorithm: "STRING_VALUE",
104
107
  * SSEKMSKeyId: "STRING_VALUE",
105
108
  * SSECustomerKeyMD5: "STRING_VALUE",
106
- * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW",
109
+ * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW" || "EXPRESS_ONEZONE",
107
110
  * TagCount: Number("int"),
108
111
  * VersionId: "STRING_VALUE",
109
112
  * BucketKeyEnabled: true || false,