@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
@@ -1,7 +1,7 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
- import { PutBucketReplicationRequest } from "../models/models_0";
4
+ import { PutBucketReplicationRequest } from "../models/models_1";
5
5
  import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
6
6
  /**
7
7
  * @public
@@ -23,7 +23,10 @@ export interface PutBucketReplicationCommandOutput extends __MetadataBearer {
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p> Creates a replication configuration or replaces an existing one. For more information,
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p> Creates a replication configuration or replaces an existing one. For more information,
27
30
  * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html">Replication</a> in the <i>Amazon S3 User Guide</i>. </p>
28
31
  * <p>Specify the replication configuration in the request body. In the replication
29
32
  * configuration, you provide the name of the destination bucket or buckets where you want
@@ -142,7 +145,7 @@ export interface PutBucketReplicationCommandOutput extends __MetadataBearer {
142
145
  * Destination: { // Destination
143
146
  * Bucket: "STRING_VALUE", // required
144
147
  * Account: "STRING_VALUE",
145
- * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW",
148
+ * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW" || "EXPRESS_ONEZONE",
146
149
  * AccessControlTranslation: { // AccessControlTranslation
147
150
  * Owner: "Destination", // required
148
151
  * },
@@ -1,7 +1,7 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
- import { PutBucketRequestPaymentRequest } from "../models/models_0";
4
+ import { PutBucketRequestPaymentRequest } from "../models/models_1";
5
5
  import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
6
6
  /**
7
7
  * @public
@@ -23,7 +23,10 @@ export interface PutBucketRequestPaymentCommandOutput extends __MetadataBearer {
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Sets the request payment configuration for a bucket. By default, the bucket owner pays
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Sets the request payment configuration for a bucket. By default, the bucket owner pays
27
30
  * for downloads from the bucket. This configuration parameter enables the bucket owner (only)
28
31
  * to specify that the person requesting the download will be charged for the download. For
29
32
  * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html">Requester Pays
@@ -1,7 +1,7 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
- import { PutBucketTaggingRequest } from "../models/models_0";
4
+ import { PutBucketTaggingRequest } from "../models/models_1";
5
5
  import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
6
6
  /**
7
7
  * @public
@@ -23,7 +23,10 @@ export interface PutBucketTaggingCommandOutput extends __MetadataBearer {
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Sets the tags for a bucket.</p>
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Sets the tags for a bucket.</p>
27
30
  * <p>Use tags to organize your Amazon Web Services bill to reflect your own cost structure. To do this,
28
31
  * sign up to get your Amazon Web Services account bill with tag key values included. Then, to see the cost
29
32
  * of combined resources, organize your billing information according to resources with the
@@ -1,7 +1,7 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
- import { PutBucketVersioningRequest } from "../models/models_0";
4
+ import { PutBucketVersioningRequest } from "../models/models_1";
5
5
  import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
6
6
  /**
7
7
  * @public
@@ -23,7 +23,10 @@ export interface PutBucketVersioningCommandOutput extends __MetadataBearer {
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Sets the versioning state of an existing bucket.</p>
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Sets the versioning state of an existing bucket.</p>
27
30
  * <p>You can set the versioning state with one of the following values:</p>
28
31
  * <p>
29
32
  * <b>Enabled</b>—Enables versioning for the objects in the
@@ -1,7 +1,7 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
- import { PutBucketWebsiteRequest } from "../models/models_0";
4
+ import { PutBucketWebsiteRequest } from "../models/models_1";
5
5
  import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
6
6
  /**
7
7
  * @public
@@ -23,7 +23,10 @@ export interface PutBucketWebsiteCommandOutput extends __MetadataBearer {
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Sets the configuration of the website that is specified in the <code>website</code>
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Sets the configuration of the website that is specified in the <code>website</code>
27
30
  * subresource. To configure a bucket as a website, you can add this subresource on the bucket
28
31
  * with website configuration information such as the file name of the index document and any
29
32
  * redirect rules. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html">Hosting Websites on Amazon S3</a>.</p>
@@ -23,11 +23,14 @@ export interface PutObjectAclCommandOutput extends PutObjectAclOutput, __Metadat
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Uses the <code>acl</code> subresource to set the access control list (ACL) permissions
27
- * for a new or existing object in an S3 bucket. You must have <code>WRITE_ACP</code>
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Uses the <code>acl</code> subresource to set the access control list (ACL) permissions
30
+ * for a new or existing object in an S3 bucket. You must have the <code>WRITE_ACP</code>
28
31
  * permission to set the ACL of an object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#permissions">What
29
32
  * permissions can I grant?</a> in the <i>Amazon S3 User Guide</i>.</p>
30
- * <p>This action is not supported by Amazon S3 on Outposts.</p>
33
+ * <p>This functionality is not supported for Amazon S3 on Outposts.</p>
31
34
  * <p>Depending on your application needs, you can choose to set the ACL on an object using
32
35
  * either the request body or the headers. For example, if you have an existing application
33
36
  * that updates a bucket ACL using the request body, you can continue to use that approach.
@@ -1,7 +1,7 @@
1
1
  import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack, StreamingBlobPayloadInputTypes } from "@smithy/types";
4
- import { PutObjectOutput, PutObjectRequest } from "../models/models_0";
4
+ import { PutObjectOutput, PutObjectRequest } from "../models/models_1";
5
5
  import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
6
6
  /**
7
7
  * @public
@@ -24,84 +24,121 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
24
24
  }
25
25
  /**
26
26
  * @public
27
- * <p>Adds an object to a bucket. You must have WRITE permissions on a bucket to add an object
28
- * to it.</p>
29
- * <note>
30
- * <p>Amazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the
31
- * entire object to the bucket. You cannot use <code>PutObject</code> to only update a
32
- * single piece of metadata for an existing object. You must put the entire object with
33
- * updated metadata if you want to update some values.</p>
34
- * </note>
35
- * <p>Amazon S3 is a distributed system. If it receives multiple write requests for the same object
36
- * simultaneously, it overwrites all but the last object written. To prevent objects from
37
- * being deleted or overwritten, you can use <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Amazon S3 Object
38
- * Lock</a>.</p>
39
- * <p>To ensure that data is not corrupted traversing the network, use the
40
- * <code>Content-MD5</code> header. When you use this header, Amazon S3 checks the object
41
- * against the provided MD5 value and, if they do not match, returns an error. Additionally,
42
- * you can calculate the MD5 while putting an object to Amazon S3 and compare the returned ETag to
43
- * the calculated MD5 value.</p>
27
+ * <p>Adds an object to a bucket.</p>
44
28
  * <note>
45
29
  * <ul>
46
30
  * <li>
47
- * <p>To successfully complete the <code>PutObject</code> request, you must have the
48
- * <code>s3:PutObject</code> in your IAM permissions.</p>
31
+ * <p>Amazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the
32
+ * entire object to the bucket. You cannot use <code>PutObject</code> to only update a
33
+ * single piece of metadata for an existing object. You must put the entire object with
34
+ * updated metadata if you want to update some values.</p>
49
35
  * </li>
50
36
  * <li>
51
- * <p>To successfully change the objects acl of your <code>PutObject</code> request,
52
- * you must have the <code>s3:PutObjectAcl</code> in your IAM permissions.</p>
37
+ * <p>If your bucket uses the bucket owner enforced setting for Object Ownership, ACLs are disabled and no longer affect permissions. All
38
+ * objects written to the bucket by any account will be owned by the bucket owner.</p>
53
39
  * </li>
54
40
  * <li>
55
- * <p>To successfully set the tag-set with your <code>PutObject</code> request, you
56
- * must have the <code>s3:PutObjectTagging</code> in your IAM permissions.</p>
57
- * </li>
58
- * <li>
59
- * <p> The <code>Content-MD5</code> header is required for any request to upload an
60
- * object with a retention period configured using Amazon S3 Object Lock. For more
61
- * information about Amazon S3 Object Lock, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html">Amazon S3 Object Lock
62
- * Overview</a> in the <i>Amazon S3 User Guide</i>. </p>
41
+ * <p>
42
+ * <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>
43
+ * </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
44
+ * <i>Amazon S3 User Guide</i>.</p>
63
45
  * </li>
64
46
  * </ul>
65
47
  * </note>
66
- * <p>You have four mutually exclusive options to protect data using server-side encryption in
67
- * Amazon S3, depending on how you choose to manage the encryption keys. Specifically, the
68
- * encryption key options are Amazon S3 managed keys (SSE-S3), Amazon Web Services KMS keys (SSE-KMS or
69
- * DSSE-KMS), and customer-provided keys (SSE-C). Amazon S3 encrypts data with server-side
70
- * encryption by using Amazon S3 managed keys (SSE-S3) by default. You can optionally tell Amazon S3 to
71
- * encrypt data at rest by using server-side encryption with other key options. For more
72
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Using Server-Side
73
- * Encryption</a>.</p>
74
- * <p>When adding a new object, you can use headers to grant ACL-based permissions to
75
- * individual Amazon Web Services accounts or to predefined groups defined by Amazon S3. These permissions are
76
- * then added to the ACL on the object. By default, all objects are private. Only the owner
77
- * has full access control. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a>
78
- * and <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html">Managing
79
- * ACLs Using the REST API</a>. </p>
80
- * <p>If the bucket that you're uploading objects to uses the bucket owner enforced setting
81
- * for S3 Object Ownership, ACLs are disabled and no longer affect permissions. Buckets that
82
- * use this setting only accept PUT requests that don't specify an ACL or PUT requests that
83
- * specify bucket owner full control ACLs, such as the <code>bucket-owner-full-control</code>
84
- * canned ACL or an equivalent form of this ACL expressed in the XML format. PUT requests that
85
- * contain other ACLs (for example, custom grants to certain Amazon Web Services accounts) fail and return a
86
- * <code>400</code> error with the error code <code>AccessControlListNotSupported</code>.
87
- * For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html"> Controlling ownership of
88
- * objects and disabling ACLs</a> in the <i>Amazon S3 User Guide</i>.</p>
89
- * <note>
90
- * <p>If your bucket uses the bucket owner enforced setting for Object Ownership, all
91
- * objects written to the bucket by any account will be owned by the bucket owner.</p>
92
- * </note>
93
- * <p>By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects. The
94
- * STANDARD storage class provides high durability and high availability. Depending on
95
- * performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses
96
- * the OUTPOSTS Storage Class. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html">Storage Classes</a> in the
97
- * <i>Amazon S3 User Guide</i>.</p>
98
- * <p>If you enable versioning for a bucket, Amazon S3 automatically generates a unique version ID
99
- * for the object being stored. Amazon S3 returns this ID in the response. When you enable
100
- * versioning for a bucket, if Amazon S3 receives multiple write requests for the same object
101
- * simultaneously, it stores all of the objects. For more information about versioning, see
48
+ * <p>Amazon S3 is a distributed system. If it receives multiple write requests for the same object
49
+ * simultaneously, it overwrites all but the last object written. However, Amazon S3 provides features that can modify this behavior:</p>
50
+ * <ul>
51
+ * <li>
52
+ * <p>
53
+ * <b>S3 Object Lock</b> - To prevent objects from
54
+ * being deleted or overwritten, you can use <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html">Amazon S3 Object
55
+ * Lock</a> in the <i>Amazon S3 User Guide</i>.</p>
56
+ * <note>
57
+ * <p>This functionality is not supported for directory buckets.</p>
58
+ * </note>
59
+ * </li>
60
+ * <li>
61
+ * <p>
62
+ * <b>S3 Versioning</b> - When you enable
63
+ * versioning for a bucket, if Amazon S3 receives multiple write requests for the same object
64
+ * simultaneously, it stores all versions of the objects. For each write request that is made to the same object, Amazon S3 automatically generates a unique version ID
65
+ * of that object being stored in Amazon S3.
66
+ * You can retrieve, replace, or delete any version of the object. For more information about versioning, see
102
67
  * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/AddingObjectstoVersioningEnabledBuckets.html">Adding Objects to
103
- * Versioning-Enabled Buckets</a>. For information about returning the versioning state
104
- * of a bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html">GetBucketVersioning</a>. </p>
68
+ * Versioning-Enabled Buckets</a> in the <i>Amazon S3
69
+ * User Guide</i>. For information about returning the versioning state
70
+ * of a bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html">GetBucketVersioning</a>. </p>
71
+ * <note>
72
+ * <p>This functionality is not supported for directory buckets.</p>
73
+ * </note>
74
+ * </li>
75
+ * </ul>
76
+ * <dl>
77
+ * <dt>Permissions</dt>
78
+ * <dd>
79
+ * <ul>
80
+ * <li>
81
+ * <p>
82
+ * <b>General purpose bucket permissions</b> - The following permissions are required in your policies when your
83
+ * <code>PutObject</code> request includes specific headers.</p>
84
+ * <ul>
85
+ * <li>
86
+ * <p>
87
+ * <b>
88
+ * <code>s3:PutObject</code>
89
+ * </b> - To successfully complete the <code>PutObject</code> request, you must always have the <code>s3:PutObject</code> permission on a bucket to add an object
90
+ * to it.</p>
91
+ * </li>
92
+ * <li>
93
+ * <p>
94
+ * <b>
95
+ * <code>s3:PutObjectAcl</code>
96
+ * </b> - To successfully change the objects ACL of your <code>PutObject</code> request, you must have the <code>s3:PutObjectAcl</code>.</p>
97
+ * </li>
98
+ * <li>
99
+ * <p>
100
+ * <b>
101
+ * <code>s3:PutObjectTagging</code>
102
+ * </b> - To successfully set the tag-set with your <code>PutObject</code> request, you
103
+ * must have the <code>s3:PutObjectTagging</code>.</p>
104
+ * </li>
105
+ * </ul>
106
+ * </li>
107
+ * <li>
108
+ * <p>
109
+ * <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">
110
+ * <code>CreateSession</code>
111
+ * </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.
112
+ * 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">
113
+ * <code>CreateSession</code>
114
+ * </a>.</p>
115
+ * </li>
116
+ * </ul>
117
+ * </dd>
118
+ * <dt>Data integrity with Content-MD5</dt>
119
+ * <dd>
120
+ * <ul>
121
+ * <li>
122
+ * <p>
123
+ * <b>General purpose bucket</b> - To ensure that data is not corrupted traversing the network, use the
124
+ * <code>Content-MD5</code> header. When you use this header, Amazon S3 checks the object
125
+ * against the provided MD5 value and, if they do not match, Amazon S3 returns an error. Alternatively, when the object's ETag is its MD5 digest,
126
+ * you can calculate the MD5 while putting the object to Amazon S3 and compare the returned ETag to
127
+ * the calculated MD5 value.</p>
128
+ * </li>
129
+ * <li>
130
+ * <p>
131
+ * <b>Directory bucket</b> - This functionality is not supported for directory buckets.</p>
132
+ * </li>
133
+ * </ul>
134
+ * </dd>
135
+ * <dt>HTTP Host header syntax</dt>
136
+ * <dd>
137
+ * <p>
138
+ * <b>Directory buckets </b> - The HTTP Host header syntax is <code>
139
+ * <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
140
+ * </dd>
141
+ * </dl>
105
142
  * <p>For more information about related Amazon S3 APIs, see the following:</p>
106
143
  * <ul>
107
144
  * <li>
@@ -147,7 +184,7 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
147
184
  * "<keys>": "STRING_VALUE",
148
185
  * },
149
186
  * ServerSideEncryption: "AES256" || "aws:kms" || "aws:kms:dsse",
150
- * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW",
187
+ * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW" || "EXPRESS_ONEZONE",
151
188
  * WebsiteRedirectLocation: "STRING_VALUE",
152
189
  * SSECustomerAlgorithm: "STRING_VALUE",
153
190
  * SSECustomerKey: "STRING_VALUE",
@@ -192,107 +229,107 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
192
229
  * @throws {@link S3ServiceException}
193
230
  * <p>Base exception class for all service exceptions from S3 service.</p>
194
231
  *
195
- * @example To upload object and specify user-defined metadata
232
+ * @example To upload an object and specify optional tags
196
233
  * ```javascript
197
- * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
234
+ * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
198
235
  * const input = {
199
- * "Body": "filetoupload",
236
+ * "Body": "c:\\HappyFace.jpg",
200
237
  * "Bucket": "examplebucket",
201
- * "Key": "exampleobject",
202
- * "Metadata": {
203
- * "metadata1": "value1",
204
- * "metadata2": "value2"
205
- * }
238
+ * "Key": "HappyFace.jpg",
239
+ * "Tagging": "key1=value1&key2=value2"
206
240
  * };
207
241
  * const command = new PutObjectCommand(input);
208
242
  * const response = await client.send(command);
209
243
  * /* response ==
210
244
  * {
211
245
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
212
- * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
246
+ * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
213
247
  * }
214
248
  * *\/
215
- * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
249
+ * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
216
250
  * ```
217
251
  *
218
- * @example To upload an object (specify optional headers)
252
+ * @example To create an object.
219
253
  * ```javascript
220
- * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
254
+ * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
221
255
  * const input = {
222
- * "Body": "HappyFace.jpg",
256
+ * "Body": "filetoupload",
223
257
  * "Bucket": "examplebucket",
224
- * "Key": "HappyFace.jpg",
225
- * "ServerSideEncryption": "AES256",
226
- * "StorageClass": "STANDARD_IA"
258
+ * "Key": "objectkey"
227
259
  * };
228
260
  * const command = new PutObjectCommand(input);
229
261
  * const response = await client.send(command);
230
262
  * /* response ==
231
263
  * {
232
264
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
233
- * "ServerSideEncryption": "AES256",
234
- * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
265
+ * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
235
266
  * }
236
267
  * *\/
237
- * // example id: to-upload-an-object-(specify-optional-headers)
268
+ * // example id: to-create-an-object-1483147613675
238
269
  * ```
239
270
  *
240
- * @example To upload an object and specify optional tags
271
+ * @example To upload object and specify user-defined metadata
241
272
  * ```javascript
242
- * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
273
+ * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
243
274
  * const input = {
244
- * "Body": "c:\\HappyFace.jpg",
275
+ * "Body": "filetoupload",
245
276
  * "Bucket": "examplebucket",
246
- * "Key": "HappyFace.jpg",
247
- * "Tagging": "key1=value1&key2=value2"
277
+ * "Key": "exampleobject",
278
+ * "Metadata": {
279
+ * "metadata1": "value1",
280
+ * "metadata2": "value2"
281
+ * }
248
282
  * };
249
283
  * const command = new PutObjectCommand(input);
250
284
  * const response = await client.send(command);
251
285
  * /* response ==
252
286
  * {
253
287
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
254
- * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
288
+ * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
255
289
  * }
256
290
  * *\/
257
- * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
291
+ * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
258
292
  * ```
259
293
  *
260
- * @example To create an object.
294
+ * @example To upload an object
261
295
  * ```javascript
262
- * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
296
+ * // 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.
263
297
  * const input = {
264
- * "Body": "filetoupload",
298
+ * "Body": "HappyFace.jpg",
265
299
  * "Bucket": "examplebucket",
266
- * "Key": "objectkey"
300
+ * "Key": "HappyFace.jpg"
267
301
  * };
268
302
  * const command = new PutObjectCommand(input);
269
303
  * const response = await client.send(command);
270
304
  * /* response ==
271
305
  * {
272
306
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
273
- * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
307
+ * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
274
308
  * }
275
309
  * *\/
276
- * // example id: to-create-an-object-1483147613675
310
+ * // example id: to-upload-an-object-1481760101010
277
311
  * ```
278
312
  *
279
- * @example To upload an object
313
+ * @example To upload an object and specify server-side encryption and object tags
280
314
  * ```javascript
281
- * // 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.
315
+ * // 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.
282
316
  * const input = {
283
- * "Body": "HappyFace.jpg",
317
+ * "Body": "filetoupload",
284
318
  * "Bucket": "examplebucket",
285
- * "Key": "HappyFace.jpg"
319
+ * "Key": "exampleobject",
320
+ * "ServerSideEncryption": "AES256",
321
+ * "Tagging": "key1=value1&key2=value2"
286
322
  * };
287
323
  * const command = new PutObjectCommand(input);
288
324
  * const response = await client.send(command);
289
325
  * /* response ==
290
326
  * {
291
327
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
292
- * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
328
+ * "ServerSideEncryption": "AES256",
329
+ * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
293
330
  * }
294
331
  * *\/
295
- * // example id: to-upload-an-object-1481760101010
332
+ * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
296
333
  * ```
297
334
  *
298
335
  * @example To upload an object and specify canned ACL.
@@ -315,15 +352,15 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
315
352
  * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
316
353
  * ```
317
354
  *
318
- * @example To upload an object and specify server-side encryption and object tags
355
+ * @example To upload an object (specify optional headers)
319
356
  * ```javascript
320
- * // 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.
357
+ * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
321
358
  * const input = {
322
- * "Body": "filetoupload",
359
+ * "Body": "HappyFace.jpg",
323
360
  * "Bucket": "examplebucket",
324
- * "Key": "exampleobject",
361
+ * "Key": "HappyFace.jpg",
325
362
  * "ServerSideEncryption": "AES256",
326
- * "Tagging": "key1=value1&key2=value2"
363
+ * "StorageClass": "STANDARD_IA"
327
364
  * };
328
365
  * const command = new PutObjectCommand(input);
329
366
  * const response = await client.send(command);
@@ -331,10 +368,10 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
331
368
  * {
332
369
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
333
370
  * "ServerSideEncryption": "AES256",
334
- * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
371
+ * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
335
372
  * }
336
373
  * *\/
337
- * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
374
+ * // example id: to-upload-an-object-(specify-optional-headers)
338
375
  * ```
339
376
  *
340
377
  */
@@ -23,10 +23,13 @@ export interface PutObjectLegalHoldCommandOutput extends PutObjectLegalHoldOutpu
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Applies a legal hold configuration to the specified object. For more information, see
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Applies a legal hold configuration to the specified object. For more information, see
27
30
  * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking
28
31
  * Objects</a>.</p>
29
- * <p>This action is not supported by Amazon S3 on Outposts.</p>
32
+ * <p>This functionality is not supported for Amazon S3 on Outposts.</p>
30
33
  * @example
31
34
  * Use a bare-bones client and the command you need to make an API call.
32
35
  * ```javascript
@@ -23,7 +23,10 @@ export interface PutObjectLockConfigurationCommandOutput extends PutObjectLockCo
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Places an Object Lock configuration on the specified bucket. The rule specified in the
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Places an Object Lock configuration on the specified bucket. The rule specified in the
27
30
  * Object Lock configuration will be applied by default to every new object placed in the
28
31
  * specified bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>. </p>
29
32
  * <note>
@@ -23,11 +23,14 @@ export interface PutObjectRetentionCommandOutput extends PutObjectRetentionOutpu
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Places an Object Retention configuration on an object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Places an Object Retention configuration on an object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.
27
30
  * Users or accounts require the <code>s3:PutObjectRetention</code> permission in order to
28
31
  * place an Object Retention configuration on objects. Bypassing a Governance Retention
29
32
  * configuration requires the <code>s3:BypassGovernanceRetention</code> permission. </p>
30
- * <p>This action is not supported by Amazon S3 on Outposts.</p>
33
+ * <p>This functionality is not supported for Amazon S3 on Outposts.</p>
31
34
  * @example
32
35
  * Use a bare-bones client and the command you need to make an API call.
33
36
  * ```javascript
@@ -23,7 +23,10 @@ export interface PutObjectTaggingCommandOutput extends PutObjectTaggingOutput, _
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Sets the supplied tag-set to an object that already exists in a bucket. A tag is a
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Sets the supplied tag-set to an object that already exists in a bucket. A tag is a
27
30
  * key-value pair. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-tagging.html">Object Tagging</a>.</p>
28
31
  * <p>You can associate tags with an object by sending a PUT request against the tagging
29
32
  * subresource that is associated with the object. You can retrieve tags by sending a GET
@@ -23,7 +23,10 @@ export interface PutPublicAccessBlockCommandOutput extends __MetadataBearer {
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Creates or modifies the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket.
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Creates or modifies the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket.
27
30
  * To use this operation, you must have the <code>s3:PutBucketPublicAccessBlock</code>
28
31
  * permission. For more information about Amazon S3 permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions in a
29
32
  * Policy</a>.</p>