@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
@@ -27,268 +27,190 @@ export interface CreateMultipartUploadCommandOutput extends CreateMultipartUploa
27
27
  * used to associate all of the parts in the specific multipart upload. You specify this
28
28
  * upload ID in each of your subsequent upload part requests (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>). You also include this
29
29
  * upload ID in the final request to either complete or abort the multipart upload
30
- * request.</p>
31
- * <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a>.</p>
32
- * <p>If you have configured a lifecycle rule to abort incomplete multipart uploads, the
33
- * upload must complete within the number of days specified in the bucket lifecycle
34
- * configuration. Otherwise, the incomplete multipart upload becomes eligible for an abort
35
- * action and Amazon S3 aborts the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config">Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle
36
- * Configuration</a>.</p>
37
- * <p>For information about the permissions required to use the multipart upload API, see
38
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart
39
- * Upload and Permissions</a>.</p>
40
- * <p>For request signing, multipart upload is just a series of regular requests. You initiate
41
- * a multipart upload, send one or more requests to upload parts, and then complete the
42
- * multipart upload process. You sign each request individually. There is nothing special
43
- * about signing multipart upload requests. For more information about signing, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a>.</p>
30
+ * request. For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a> in the <i>Amazon S3 User Guide</i>.</p>
44
31
  * <note>
45
32
  * <p>After you initiate a multipart upload and upload one or more parts, to stop being
46
33
  * charged for storing the uploaded parts, you must either complete or abort the multipart
47
- * upload. Amazon S3 frees up the space used to store the parts and stop charging you for
34
+ * upload. Amazon S3 frees up the space used to store the parts and stops charging you for
48
35
  * storing them only after you either complete or abort a multipart upload. </p>
49
36
  * </note>
50
- * <p>Server-side encryption is for data encryption at rest. Amazon S3 encrypts your data as it
51
- * writes it to disks in its data centers and decrypts it when you access it. Amazon S3
52
- * automatically encrypts all new objects that are uploaded to an S3 bucket. When doing a
53
- * multipart upload, if you don't specify encryption information in your request, the
54
- * encryption setting of the uploaded parts is set to the default encryption configuration of
55
- * the destination bucket. By default, all buckets have a base level of encryption
56
- * configuration that uses server-side encryption with Amazon S3 managed keys (SSE-S3). If the
57
- * destination bucket has a default encryption configuration that uses server-side encryption
58
- * with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided encryption key (SSE-C),
59
- * Amazon S3 uses the corresponding KMS key, or a customer-provided key to encrypt the uploaded
60
- * parts. When you perform a CreateMultipartUpload operation, if you want to use a different
61
- * type of encryption setting for the uploaded parts, you can request that Amazon S3 encrypts the
62
- * object with a KMS key, an Amazon S3 managed key, or a customer-provided key. If the encryption
63
- * setting in your request is different from the default encryption configuration of the
64
- * destination bucket, the encryption setting in your request takes precedence. If you choose
65
- * to provide your own encryption key, the request headers you provide in <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
66
- * and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> requests must match the headers you used in the request to
67
- * initiate the upload by using <code>CreateMultipartUpload</code>. You can request that Amazon S3
68
- * save the uploaded parts encrypted with server-side encryption with an Amazon S3 managed key
69
- * (SSE-S3), an Key Management Service (KMS) key (SSE-KMS), or a customer-provided encryption key
70
- * (SSE-C). </p>
71
- * <p>To perform a multipart upload with encryption by using an Amazon Web Services KMS key, the requester
72
- * must have permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey*</code>
73
- * actions on the key. These permissions are required because Amazon S3 must decrypt and read data
74
- * from the encrypted file parts before it completes the multipart upload. For more
75
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API
76
- * and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using
77
- * server-side encryption with Amazon Web Services KMS</a> in the
78
- * <i>Amazon S3 User Guide</i>.</p>
79
- * <p>If your Identity and Access Management (IAM) user or role is in the same Amazon Web Services account as the KMS key,
80
- * then you must have these permissions on the key policy. If your IAM user or role belongs
81
- * to a different account than the key, then you must have the permissions on both the key
82
- * policy and your IAM user or role.</p>
83
- * <p> For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html">Protecting Data Using Server-Side
84
- * Encryption</a>.</p>
37
+ * <p>If you have configured a lifecycle rule to abort incomplete multipart uploads, the created multipart
38
+ * upload must be completed within the number of days specified in the bucket lifecycle
39
+ * configuration. Otherwise, the incomplete multipart upload becomes eligible for an abort
40
+ * action and Amazon S3 aborts the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config">Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle
41
+ * Configuration</a>.</p>
42
+ * <note>
43
+ * <ul>
44
+ * <li>
45
+ * <p>
46
+ * <b>Directory buckets </b> - S3 Lifecycle is not supported by directory buckets.</p>
47
+ * </li>
48
+ * <li>
49
+ * <p>
50
+ * <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>
51
+ * </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
52
+ * <i>Amazon S3 User Guide</i>.</p>
53
+ * </li>
54
+ * </ul>
55
+ * </note>
85
56
  * <dl>
86
- * <dt>Access Permissions</dt>
57
+ * <dt>Request signing</dt>
87
58
  * <dd>
88
- * <p>When copying an object, you can optionally specify the accounts or groups that
89
- * should be granted specific permissions on the new object. There are two ways to
90
- * grant the permissions using the request headers:</p>
91
- * <ul>
92
- * <li>
93
- * <p>Specify a canned ACL with the <code>x-amz-acl</code> request header. For
94
- * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned
95
- * ACL</a>.</p>
96
- * </li>
97
- * <li>
98
- * <p>Specify access permissions explicitly with the
99
- * <code>x-amz-grant-read</code>, <code>x-amz-grant-read-acp</code>,
100
- * <code>x-amz-grant-write-acp</code>, and
101
- * <code>x-amz-grant-full-control</code> headers. These parameters map to
102
- * the set of permissions that Amazon S3 supports in an ACL. For more information,
103
- * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL) Overview</a>.</p>
104
- * </li>
105
- * </ul>
106
- * <p>You can use either a canned ACL or specify access permissions explicitly. You
107
- * cannot do both.</p>
59
+ * <p>For request signing, multipart upload is just a series of regular requests. You initiate
60
+ * a multipart upload, send one or more requests to upload parts, and then complete the
61
+ * multipart upload process. You sign each request individually. There is nothing special
62
+ * about signing multipart upload requests. For more information about signing, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 User Guide</i>.</p>
108
63
  * </dd>
109
- * <dt>Server-Side- Encryption-Specific Request Headers</dt>
64
+ * <dt>Permissions</dt>
110
65
  * <dd>
111
- * <p>Amazon S3 encrypts data by using server-side encryption with an Amazon S3 managed key
112
- * (SSE-S3) by default. Server-side encryption is for data encryption at rest. Amazon S3
113
- * encrypts your data as it writes it to disks in its data centers and decrypts it
114
- * when you access it. You can request that Amazon S3 encrypts data at rest by using
115
- * server-side encryption with other key options. The option you use depends on
116
- * whether you want to use KMS keys (SSE-KMS) or provide your own encryption keys
117
- * (SSE-C).</p>
118
66
  * <ul>
119
67
  * <li>
120
- * <p>Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key
121
- * (<code>aws/s3</code>) and KMS customer managed keys stored in Key Management Service (KMS)
122
- * If you want Amazon Web Services to manage the keys used to encrypt data, specify the
123
- * following headers in the request.</p>
124
- * <ul>
125
- * <li>
126
- * <p>
127
- * <code>x-amz-server-side-encryption</code>
128
- * </p>
129
- * </li>
130
- * <li>
131
- * <p>
132
- * <code>x-amz-server-side-encryption-aws-kms-key-id</code>
133
- * </p>
134
- * </li>
135
- * <li>
136
- * <p>
137
- * <code>x-amz-server-side-encryption-context</code>
138
- * </p>
139
- * </li>
140
- * </ul>
141
- * <note>
142
- * <p>If you specify <code>x-amz-server-side-encryption:aws:kms</code>, but
143
- * don't provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>,
144
- * Amazon S3 uses the Amazon Web Services managed key (<code>aws/s3</code> key) in KMS to
145
- * protect the data.</p>
146
- * </note>
147
- * <important>
148
- * <p>All <code>GET</code> and <code>PUT</code> requests for an object
149
- * protected by KMS fail if you don't make them by using Secure Sockets
150
- * Layer (SSL), Transport Layer Security (TLS), or Signature Version
151
- * 4.</p>
152
- * </important>
153
- * <p>For more information about server-side encryption with KMS keys
154
- * (SSE-KMS), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting Data
155
- * Using Server-Side Encryption with KMS keys</a>.</p>
68
+ * <p>
69
+ * <b>General purpose bucket permissions</b> - For information about the permissions required to use the multipart upload API, see
70
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart
71
+ * upload and permissions</a> in the <i>Amazon S3 User Guide</i>. </p>
72
+ * <p>To perform a multipart upload with encryption by using an Amazon Web Services KMS key, the requester
73
+ * must have permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey*</code>
74
+ * actions on the key. These permissions are required because Amazon S3 must decrypt and read data
75
+ * from the encrypted file parts before it completes the multipart upload. For more
76
+ * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API
77
+ * and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using
78
+ * server-side encryption with Amazon Web Services KMS</a> in the
79
+ * <i>Amazon S3 User Guide</i>.</p>
156
80
  * </li>
157
81
  * <li>
158
- * <p>Use customer-provided encryption keys (SSE-C) – If you want to manage
159
- * your own encryption keys, provide all the following headers in the
160
- * request.</p>
161
- * <ul>
162
- * <li>
163
- * <p>
164
- * <code>x-amz-server-side-encryption-customer-algorithm</code>
165
- * </p>
166
- * </li>
167
- * <li>
168
- * <p>
169
- * <code>x-amz-server-side-encryption-customer-key</code>
170
- * </p>
171
- * </li>
172
- * <li>
173
- * <p>
174
- * <code>x-amz-server-side-encryption-customer-key-MD5</code>
175
- * </p>
176
- * </li>
177
- * </ul>
178
- * <p>For more information about server-side encryption with customer-provided
179
- * encryption keys (SSE-C), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">
180
- * Protecting data using server-side encryption with customer-provided
181
- * encryption keys (SSE-C)</a>.</p>
82
+ * <p>
83
+ * <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">
84
+ * <code>CreateSession</code>
85
+ * </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.
86
+ * 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">
87
+ * <code>CreateSession</code>
88
+ * </a>.</p>
182
89
  * </li>
183
90
  * </ul>
184
91
  * </dd>
185
- * <dt>Access-Control-List (ACL)-Specific Request Headers</dt>
92
+ * <dt>Encryption</dt>
186
93
  * <dd>
187
- * <p>You also can use the following access control–related headers with this
188
- * operation. By default, all objects are private. Only the owner has full access
189
- * control. When adding a new object, you can grant permissions to individual
190
- * Amazon Web Services accounts or to predefined groups defined by Amazon S3. These permissions are then
191
- * added to the access control list (ACL) on the object. For more information, see
192
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. With this operation, you can grant access permissions
193
- * using one of the following two methods:</p>
194
94
  * <ul>
195
95
  * <li>
196
- * <p>Specify a canned ACL (<code>x-amz-acl</code>) — Amazon S3 supports a set of
197
- * predefined ACLs, known as <i>canned ACLs</i>. Each canned ACL
198
- * has a predefined set of grantees and permissions. For more information, see
199
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned
200
- * ACL</a>.</p>
201
- * </li>
202
- * <li>
203
- * <p>Specify access permissions explicitly To explicitly grant access
204
- * permissions to specific Amazon Web Services accounts or groups, use the following headers.
205
- * Each header maps to specific permissions that Amazon S3 supports in an ACL. For
206
- * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL)
207
- * Overview</a>. In the header, you specify a list of grantees who get
208
- * the specific permission. To grant permissions explicitly, use:</p>
209
- * <ul>
210
- * <li>
211
- * <p>
212
- * <code>x-amz-grant-read</code>
213
- * </p>
214
- * </li>
215
- * <li>
216
- * <p>
217
- * <code>x-amz-grant-write</code>
218
- * </p>
219
- * </li>
220
- * <li>
221
- * <p>
222
- * <code>x-amz-grant-read-acp</code>
223
- * </p>
224
- * </li>
225
- * <li>
226
- * <p>
227
- * <code>x-amz-grant-write-acp</code>
228
- * </p>
229
- * </li>
230
- * <li>
231
- * <p>
232
- * <code>x-amz-grant-full-control</code>
233
- * </p>
234
- * </li>
235
- * </ul>
236
- * <p>You specify each grantee as a type=value pair, where the type is one of
237
- * the following:</p>
96
+ * <p>
97
+ * <b>General purpose buckets</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. Amazon S3
99
+ * automatically encrypts all new objects that are uploaded to an S3 bucket. When doing a
100
+ * multipart upload, if you don't specify encryption information in your request, the
101
+ * encryption setting of the uploaded parts is set to the default encryption configuration of
102
+ * the destination bucket. By default, all buckets have a base level of encryption
103
+ * configuration that uses server-side encryption with Amazon S3 managed keys (SSE-S3). If the
104
+ * destination bucket has a default encryption configuration that uses server-side encryption
105
+ * with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided encryption key (SSE-C),
106
+ * Amazon S3 uses the corresponding KMS key, or a customer-provided key to encrypt the uploaded
107
+ * parts. When you perform a CreateMultipartUpload operation, if you want to use a different
108
+ * type of encryption setting for the uploaded parts, you can request that Amazon S3 encrypts the
109
+ * object with a different encryption key (such as an Amazon S3 managed key, a KMS key, or a customer-provided key). When the encryption
110
+ * setting in your request is different from the default encryption configuration of the
111
+ * destination bucket, the encryption setting in your request takes precedence. If you choose
112
+ * to provide your own encryption key, the request headers you provide in <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
113
+ * and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> requests must match the headers you used in the <code>CreateMultipartUpload</code> request.</p>
238
114
  * <ul>
239
115
  * <li>
240
- * <p>
241
- * <code>id</code> if the value specified is the canonical user ID
242
- * of an Amazon Web Services account</p>
243
- * </li>
244
- * <li>
245
- * <p>
246
- * <code>uri</code> – if you are granting permissions to a predefined
247
- * group</p>
248
- * </li>
249
- * <li>
250
- * <p>
251
- * <code>emailAddress</code> – if the value specified is the email
252
- * address of an Amazon Web Services account</p>
116
+ * <p>Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key
117
+ * (<code>aws/s3</code>) and KMS customer managed keys stored in Key Management Service (KMS) –
118
+ * If you want Amazon Web Services to manage the keys used to encrypt data, specify the
119
+ * following headers in the request.</p>
120
+ * <ul>
121
+ * <li>
122
+ * <p>
123
+ * <code>x-amz-server-side-encryption</code>
124
+ * </p>
125
+ * </li>
126
+ * <li>
127
+ * <p>
128
+ * <code>x-amz-server-side-encryption-aws-kms-key-id</code>
129
+ * </p>
130
+ * </li>
131
+ * <li>
132
+ * <p>
133
+ * <code>x-amz-server-side-encryption-context</code>
134
+ * </p>
135
+ * </li>
136
+ * </ul>
253
137
  * <note>
254
- * <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: </p>
255
138
  * <ul>
256
139
  * <li>
257
- * <p>US East (N. Virginia)</p>
258
- * </li>
259
- * <li>
260
- * <p>US West (N. California)</p>
261
- * </li>
262
- * <li>
263
- * <p> US West (Oregon)</p>
264
- * </li>
265
- * <li>
266
- * <p> Asia Pacific (Singapore)</p>
267
- * </li>
268
- * <li>
269
- * <p>Asia Pacific (Sydney)</p>
140
+ * <p>If you specify <code>x-amz-server-side-encryption:aws:kms</code>, but
141
+ * don't provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>,
142
+ * Amazon S3 uses the Amazon Web Services managed key (<code>aws/s3</code> key) in KMS to
143
+ * protect the data.</p>
270
144
  * </li>
271
145
  * <li>
272
- * <p>Asia Pacific (Tokyo)</p>
146
+ * <p>To perform a multipart upload with encryption by using an Amazon Web Services KMS key, the requester
147
+ * must have permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey*</code>
148
+ * actions on the key. These permissions are required because Amazon S3 must decrypt and read data
149
+ * from the encrypted file parts before it completes the multipart upload. For more
150
+ * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API
151
+ * and permissions</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting data using
152
+ * server-side encryption with Amazon Web Services KMS</a> in the
153
+ * <i>Amazon S3 User Guide</i>.</p>
273
154
  * </li>
274
155
  * <li>
275
- * <p>Europe (Ireland)</p>
156
+ * <p>If your Identity and Access Management (IAM) user or role is in the same Amazon Web Services account as the KMS key,
157
+ * then you must have these permissions on the key policy. If your IAM user or role is in a different account from the key, then you must have the permissions on both the key
158
+ * policy and your IAM user or role.</p>
276
159
  * </li>
277
160
  * <li>
278
- * <p>South America (São Paulo)</p>
161
+ * <p>All <code>GET</code> and <code>PUT</code> requests for an object
162
+ * protected by KMS fail if you don't make them by using Secure Sockets
163
+ * Layer (SSL), Transport Layer Security (TLS), or Signature Version
164
+ * 4. For information about configuring any of the officially supported Amazon Web Services
165
+ * SDKs and Amazon Web Services CLI, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version">Specifying the Signature Version in Request Authentication</a>
166
+ * in the <i>Amazon S3 User Guide</i>.</p>
279
167
  * </li>
280
168
  * </ul>
281
- * <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
282
169
  * </note>
170
+ * <p>For more information about server-side encryption with KMS keys
171
+ * (SSE-KMS), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html">Protecting Data
172
+ * Using Server-Side Encryption with KMS keys</a> in the <i>Amazon S3 User Guide</i>.</p>
173
+ * </li>
174
+ * <li>
175
+ * <p>Use customer-provided encryption keys (SSE-C) – If you want to manage
176
+ * your own encryption keys, provide all the following headers in the
177
+ * request.</p>
178
+ * <ul>
179
+ * <li>
180
+ * <p>
181
+ * <code>x-amz-server-side-encryption-customer-algorithm</code>
182
+ * </p>
183
+ * </li>
184
+ * <li>
185
+ * <p>
186
+ * <code>x-amz-server-side-encryption-customer-key</code>
187
+ * </p>
188
+ * </li>
189
+ * <li>
190
+ * <p>
191
+ * <code>x-amz-server-side-encryption-customer-key-MD5</code>
192
+ * </p>
193
+ * </li>
194
+ * </ul>
195
+ * <p>For more information about server-side encryption with customer-provided
196
+ * encryption keys (SSE-C), see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html">
197
+ * Protecting data using server-side encryption with customer-provided
198
+ * encryption keys (SSE-C)</a> in the <i>Amazon S3 User Guide</i>.</p>
283
199
  * </li>
284
200
  * </ul>
285
- * <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
201
+ * </li>
202
+ * <li>
286
203
  * <p>
287
- * <code>x-amz-grant-read: id="11112222333", id="444455556666" </code>
288
- * </p>
204
+ * <b>Directory buckets</b> -For directory buckets, only server-side encryption with Amazon S3 managed keys (SSE-S3) (<code>AES256</code>) is supported.</p>
289
205
  * </li>
290
206
  * </ul>
291
207
  * </dd>
208
+ * <dt>HTTP Host header syntax</dt>
209
+ * <dd>
210
+ * <p>
211
+ * <b>Directory buckets </b> - The HTTP Host header syntax is <code>
212
+ * <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
213
+ * </dd>
292
214
  * </dl>
293
215
  * <p>The following operations are related to <code>CreateMultipartUpload</code>:</p>
294
216
  * <ul>
@@ -342,7 +264,7 @@ export interface CreateMultipartUploadCommandOutput extends CreateMultipartUploa
342
264
  * "<keys>": "STRING_VALUE",
343
265
  * },
344
266
  * ServerSideEncryption: "AES256" || "aws:kms" || "aws:kms:dsse",
345
- * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW",
267
+ * StorageClass: "STANDARD" || "REDUCED_REDUNDANCY" || "STANDARD_IA" || "ONEZONE_IA" || "INTELLIGENT_TIERING" || "GLACIER" || "DEEP_ARCHIVE" || "OUTPOSTS" || "GLACIER_IR" || "SNOW" || "EXPRESS_ONEZONE",
346
268
  * WebsiteRedirectLocation: "STRING_VALUE",
347
269
  * SSECustomerAlgorithm: "STRING_VALUE",
348
270
  * SSECustomerKey: "STRING_VALUE",
@@ -0,0 +1,145 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CreateSessionOutput, CreateSessionRequest } from "../models/models_0";
5
+ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateSessionCommand}.
14
+ */
15
+ export interface CreateSessionCommandInput extends CreateSessionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateSessionCommand}.
21
+ */
22
+ export interface CreateSessionCommandOutput extends CreateSessionOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a session that establishes temporary security credentials to support fast authentication and authorization for the Zonal endpoint APIs on directory buckets.
27
+ * For more information about Zonal endpoint APIs that include the Availability Zone in the request endpoint, see
28
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-APIs.html">S3 Express One Zone APIs</a> in the <i>Amazon S3 User Guide</i>.
29
+ * </p>
30
+ * <p>To make Zonal endpoint API requests on a directory bucket, use the <code>CreateSession</code>
31
+ * API operation. Specifically, you grant <code>s3express:CreateSession</code> permission to a
32
+ * bucket in a bucket policy or an IAM identity-based policy. Then, you use IAM credentials to make the
33
+ * <code>CreateSession</code> API request on the bucket, which returns temporary security
34
+ * credentials that include the access key ID, secret access key, session token, and
35
+ * expiration. These credentials have associated permissions to access the Zonal endpoint APIs. After
36
+ * the session is created, you don’t need to use other policies to grant permissions to each
37
+ * Zonal endpoint API individually. Instead, in your Zonal endpoint API requests, you sign your requests by
38
+ * applying the temporary security credentials of the session to the request headers and
39
+ * following the SigV4 protocol for authentication. You also apply the session token to the
40
+ * <code>x-amz-s3session-token</code> request header for authorization. Temporary security
41
+ * credentials are scoped to the bucket and expire after 5 minutes. After the expiration time,
42
+ * any calls that you make with those credentials will fail. You must use IAM credentials
43
+ * again to make a <code>CreateSession</code> API request that generates a new set of
44
+ * temporary credentials for use. Temporary credentials cannot be extended or refreshed beyond
45
+ * the original specified interval.</p>
46
+ * <p>If you use Amazon Web Services SDKs, SDKs handle the session token refreshes automatically to avoid
47
+ * service interruptions when a session expires. We recommend that you use the Amazon Web Services SDKs to
48
+ * initiate and manage requests to the CreateSession API. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-optimizing-performance-guidelines-design-patterns.html#s3-express-optimizing-performance-session-authentication">Performance guidelines and design patterns</a> in the
49
+ * <i>Amazon S3 User Guide</i>.</p>
50
+ * <note>
51
+ * <ul>
52
+ * <li>
53
+ * <p>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</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
54
+ * <i>Amazon S3 User Guide</i>.</p>
55
+ * </li>
56
+ * <li>
57
+ * <p>
58
+ * <b>
59
+ * <code>CopyObject</code> API operation</b> - Unlike other Zonal endpoint APIs, the <code>CopyObject</code> API operation doesn't use the temporary security credentials returned from the <code>CreateSession</code> API operation for authentication and authorization. For information about authentication and authorization of the <code>CopyObject</code> API operation on directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html">CopyObject</a>.</p>
60
+ * </li>
61
+ * <li>
62
+ * <p>
63
+ * <b>
64
+ * <code>HeadBucket</code> API operation</b> - Unlike other Zonal endpoint APIs, the <code>HeadBucket</code> API operation doesn't use the temporary security credentials returned from the <code>CreateSession</code> API operation for authentication and authorization. For information about authentication and authorization of the <code>HeadBucket</code> API operation on directory buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html">HeadBucket</a>.</p>
65
+ * </li>
66
+ * </ul>
67
+ * </note>
68
+ * <dl>
69
+ * <dt>Permissions</dt>
70
+ * <dd>
71
+ * <p>To obtain temporary security credentials, you must create a bucket policy or an IAM identity-based policy that
72
+ * grants <code>s3express:CreateSession</code> permission to the bucket. In a
73
+ * policy, you can have the <code>s3express:SessionMode</code> condition key to
74
+ * control who can create a <code>ReadWrite</code> or <code>ReadOnly</code> session.
75
+ * For more information about <code>ReadWrite</code> or <code>ReadOnly</code>
76
+ * sessions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters">
77
+ * <code>x-amz-create-session-mode</code>
78
+ * </a>. For example policies, see
79
+ * <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
80
+ * <i>Amazon S3 User Guide</i>. </p>
81
+ * <p>To grant cross-account access to Zonal endpoint APIs, the bucket policy should also grant both accounts the <code>s3express:CreateSession</code> permission.</p>
82
+ * </dd>
83
+ * <dt>HTTP Host header syntax</dt>
84
+ * <dd>
85
+ * <p>
86
+ * <b>Directory buckets </b> - The HTTP Host header syntax is <code>
87
+ * <i>Bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com</code>.</p>
88
+ * </dd>
89
+ * </dl>
90
+ * @example
91
+ * Use a bare-bones client and the command you need to make an API call.
92
+ * ```javascript
93
+ * import { S3Client, CreateSessionCommand } from "@aws-sdk/client-s3"; // ES Modules import
94
+ * // const { S3Client, CreateSessionCommand } = require("@aws-sdk/client-s3"); // CommonJS import
95
+ * const client = new S3Client(config);
96
+ * const input = { // CreateSessionRequest
97
+ * SessionMode: "ReadOnly" || "ReadWrite",
98
+ * Bucket: "STRING_VALUE", // required
99
+ * };
100
+ * const command = new CreateSessionCommand(input);
101
+ * const response = await client.send(command);
102
+ * // { // CreateSessionOutput
103
+ * // Credentials: { // SessionCredentials
104
+ * // AccessKeyId: "STRING_VALUE", // required
105
+ * // SecretAccessKey: "STRING_VALUE", // required
106
+ * // SessionToken: "STRING_VALUE", // required
107
+ * // Expiration: new Date("TIMESTAMP"), // required
108
+ * // },
109
+ * // };
110
+ *
111
+ * ```
112
+ *
113
+ * @param CreateSessionCommandInput - {@link CreateSessionCommandInput}
114
+ * @returns {@link CreateSessionCommandOutput}
115
+ * @see {@link CreateSessionCommandInput} for command's `input` shape.
116
+ * @see {@link CreateSessionCommandOutput} for command's `response` shape.
117
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
118
+ *
119
+ * @throws {@link NoSuchBucket} (client fault)
120
+ * <p>The specified bucket does not exist.</p>
121
+ *
122
+ * @throws {@link S3ServiceException}
123
+ * <p>Base exception class for all service exceptions from S3 service.</p>
124
+ *
125
+ */
126
+ export declare class CreateSessionCommand extends $Command<CreateSessionCommandInput, CreateSessionCommandOutput, S3ClientResolvedConfig> {
127
+ readonly input: CreateSessionCommandInput;
128
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
129
+ /**
130
+ * @public
131
+ */
132
+ constructor(input: CreateSessionCommandInput);
133
+ /**
134
+ * @internal
135
+ */
136
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateSessionCommandInput, CreateSessionCommandOutput>;
137
+ /**
138
+ * @internal
139
+ */
140
+ private serialize;
141
+ /**
142
+ * @internal
143
+ */
144
+ private deserialize;
145
+ }
@@ -23,7 +23,10 @@ export interface DeleteBucketAnalyticsConfigurationCommandOutput extends __Metad
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Deletes an analytics configuration for the bucket (specified by the analytics
26
+ * <note>
27
+ * <p>This operation is not supported by directory buckets.</p>
28
+ * </note>
29
+ * <p>Deletes an analytics configuration for the bucket (specified by the analytics
27
30
  * configuration ID).</p>
28
31
  * <p>To use this operation, you must have permissions to perform the
29
32
  * <code>s3:PutAnalyticsConfiguration</code> action. The bucket owner has this permission