@aws-sdk/client-s3 3.477.0 → 3.481.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 (397) hide show
  1. package/dist-cjs/commands/AbortMultipartUploadCommand.js +20 -49
  2. package/dist-cjs/commands/CompleteMultipartUploadCommand.js +22 -51
  3. package/dist-cjs/commands/CopyObjectCommand.js +22 -50
  4. package/dist-cjs/commands/CreateBucketCommand.js +22 -51
  5. package/dist-cjs/commands/CreateMultipartUploadCommand.js +21 -50
  6. package/dist-cjs/commands/CreateSessionCommand.js +20 -48
  7. package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +20 -49
  8. package/dist-cjs/commands/DeleteBucketCommand.js +20 -49
  9. package/dist-cjs/commands/DeleteBucketCorsCommand.js +20 -49
  10. package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +20 -49
  11. package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +20 -49
  12. package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +20 -49
  13. package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +20 -49
  14. package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +20 -49
  15. package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +20 -49
  16. package/dist-cjs/commands/DeleteBucketPolicyCommand.js +20 -49
  17. package/dist-cjs/commands/DeleteBucketReplicationCommand.js +20 -49
  18. package/dist-cjs/commands/DeleteBucketTaggingCommand.js +20 -49
  19. package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +20 -49
  20. package/dist-cjs/commands/DeleteObjectCommand.js +20 -49
  21. package/dist-cjs/commands/DeleteObjectTaggingCommand.js +19 -48
  22. package/dist-cjs/commands/DeleteObjectsCommand.js +21 -50
  23. package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +20 -49
  24. package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +20 -49
  25. package/dist-cjs/commands/GetBucketAclCommand.js +20 -49
  26. package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +20 -49
  27. package/dist-cjs/commands/GetBucketCorsCommand.js +20 -49
  28. package/dist-cjs/commands/GetBucketEncryptionCommand.js +20 -49
  29. package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +20 -49
  30. package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +20 -49
  31. package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +20 -49
  32. package/dist-cjs/commands/GetBucketLocationCommand.js +20 -49
  33. package/dist-cjs/commands/GetBucketLoggingCommand.js +20 -49
  34. package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +20 -49
  35. package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +20 -49
  36. package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +20 -49
  37. package/dist-cjs/commands/GetBucketPolicyCommand.js +20 -49
  38. package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +20 -49
  39. package/dist-cjs/commands/GetBucketReplicationCommand.js +20 -49
  40. package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +20 -49
  41. package/dist-cjs/commands/GetBucketTaggingCommand.js +20 -49
  42. package/dist-cjs/commands/GetBucketVersioningCommand.js +20 -49
  43. package/dist-cjs/commands/GetBucketWebsiteCommand.js +20 -49
  44. package/dist-cjs/commands/GetObjectAclCommand.js +20 -49
  45. package/dist-cjs/commands/GetObjectAttributesCommand.js +20 -49
  46. package/dist-cjs/commands/GetObjectCommand.js +23 -52
  47. package/dist-cjs/commands/GetObjectLegalHoldCommand.js +19 -48
  48. package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +19 -48
  49. package/dist-cjs/commands/GetObjectRetentionCommand.js +19 -48
  50. package/dist-cjs/commands/GetObjectTaggingCommand.js +19 -48
  51. package/dist-cjs/commands/GetObjectTorrentCommand.js +19 -48
  52. package/dist-cjs/commands/GetPublicAccessBlockCommand.js +20 -49
  53. package/dist-cjs/commands/HeadBucketCommand.js +19 -48
  54. package/dist-cjs/commands/HeadObjectCommand.js +21 -50
  55. package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +20 -49
  56. package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +20 -49
  57. package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +20 -49
  58. package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +19 -48
  59. package/dist-cjs/commands/ListBucketsCommand.js +18 -47
  60. package/dist-cjs/commands/ListDirectoryBucketsCommand.js +19 -48
  61. package/dist-cjs/commands/ListMultipartUploadsCommand.js +20 -49
  62. package/dist-cjs/commands/ListObjectVersionsCommand.js +20 -49
  63. package/dist-cjs/commands/ListObjectsCommand.js +20 -49
  64. package/dist-cjs/commands/ListObjectsV2Command.js +20 -49
  65. package/dist-cjs/commands/ListPartsCommand.js +21 -50
  66. package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +22 -51
  67. package/dist-cjs/commands/PutBucketAclCommand.js +22 -51
  68. package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +20 -49
  69. package/dist-cjs/commands/PutBucketCorsCommand.js +22 -51
  70. package/dist-cjs/commands/PutBucketEncryptionCommand.js +22 -51
  71. package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +20 -49
  72. package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +20 -49
  73. package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +22 -51
  74. package/dist-cjs/commands/PutBucketLoggingCommand.js +22 -51
  75. package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +20 -49
  76. package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +20 -49
  77. package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +21 -50
  78. package/dist-cjs/commands/PutBucketPolicyCommand.js +22 -51
  79. package/dist-cjs/commands/PutBucketReplicationCommand.js +22 -51
  80. package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +22 -51
  81. package/dist-cjs/commands/PutBucketTaggingCommand.js +22 -51
  82. package/dist-cjs/commands/PutBucketVersioningCommand.js +22 -51
  83. package/dist-cjs/commands/PutBucketWebsiteCommand.js +22 -51
  84. package/dist-cjs/commands/PutObjectAclCommand.js +22 -51
  85. package/dist-cjs/commands/PutObjectCommand.js +24 -53
  86. package/dist-cjs/commands/PutObjectLegalHoldCommand.js +21 -50
  87. package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +21 -50
  88. package/dist-cjs/commands/PutObjectRetentionCommand.js +21 -50
  89. package/dist-cjs/commands/PutObjectTaggingCommand.js +21 -50
  90. package/dist-cjs/commands/PutPublicAccessBlockCommand.js +22 -51
  91. package/dist-cjs/commands/RestoreObjectCommand.js +21 -50
  92. package/dist-cjs/commands/SelectObjectContentCommand.js +24 -52
  93. package/dist-cjs/commands/UploadPartCommand.js +23 -52
  94. package/dist-cjs/commands/UploadPartCopyCommand.js +22 -50
  95. package/dist-cjs/commands/WriteGetObjectResponseCommand.js +19 -48
  96. package/dist-cjs/endpoint/EndpointParameters.js +13 -1
  97. package/dist-cjs/pagination/ListDirectoryBucketsPaginator.js +2 -24
  98. package/dist-cjs/pagination/ListObjectsV2Paginator.js +2 -24
  99. package/dist-cjs/pagination/ListPartsPaginator.js +2 -24
  100. package/dist-es/commands/AbortMultipartUploadCommand.js +20 -49
  101. package/dist-es/commands/CompleteMultipartUploadCommand.js +22 -51
  102. package/dist-es/commands/CopyObjectCommand.js +22 -50
  103. package/dist-es/commands/CreateBucketCommand.js +22 -51
  104. package/dist-es/commands/CreateMultipartUploadCommand.js +21 -50
  105. package/dist-es/commands/CreateSessionCommand.js +20 -48
  106. package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +20 -49
  107. package/dist-es/commands/DeleteBucketCommand.js +20 -49
  108. package/dist-es/commands/DeleteBucketCorsCommand.js +20 -49
  109. package/dist-es/commands/DeleteBucketEncryptionCommand.js +20 -49
  110. package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +20 -49
  111. package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +20 -49
  112. package/dist-es/commands/DeleteBucketLifecycleCommand.js +20 -49
  113. package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +20 -49
  114. package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +20 -49
  115. package/dist-es/commands/DeleteBucketPolicyCommand.js +20 -49
  116. package/dist-es/commands/DeleteBucketReplicationCommand.js +20 -49
  117. package/dist-es/commands/DeleteBucketTaggingCommand.js +20 -49
  118. package/dist-es/commands/DeleteBucketWebsiteCommand.js +20 -49
  119. package/dist-es/commands/DeleteObjectCommand.js +20 -49
  120. package/dist-es/commands/DeleteObjectTaggingCommand.js +19 -48
  121. package/dist-es/commands/DeleteObjectsCommand.js +21 -50
  122. package/dist-es/commands/DeletePublicAccessBlockCommand.js +20 -49
  123. package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +20 -49
  124. package/dist-es/commands/GetBucketAclCommand.js +20 -49
  125. package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +20 -49
  126. package/dist-es/commands/GetBucketCorsCommand.js +20 -49
  127. package/dist-es/commands/GetBucketEncryptionCommand.js +20 -49
  128. package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +20 -49
  129. package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +20 -49
  130. package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +20 -49
  131. package/dist-es/commands/GetBucketLocationCommand.js +20 -49
  132. package/dist-es/commands/GetBucketLoggingCommand.js +20 -49
  133. package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +20 -49
  134. package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +20 -49
  135. package/dist-es/commands/GetBucketOwnershipControlsCommand.js +20 -49
  136. package/dist-es/commands/GetBucketPolicyCommand.js +20 -49
  137. package/dist-es/commands/GetBucketPolicyStatusCommand.js +20 -49
  138. package/dist-es/commands/GetBucketReplicationCommand.js +20 -49
  139. package/dist-es/commands/GetBucketRequestPaymentCommand.js +20 -49
  140. package/dist-es/commands/GetBucketTaggingCommand.js +20 -49
  141. package/dist-es/commands/GetBucketVersioningCommand.js +20 -49
  142. package/dist-es/commands/GetBucketWebsiteCommand.js +20 -49
  143. package/dist-es/commands/GetObjectAclCommand.js +20 -49
  144. package/dist-es/commands/GetObjectAttributesCommand.js +20 -49
  145. package/dist-es/commands/GetObjectCommand.js +23 -52
  146. package/dist-es/commands/GetObjectLegalHoldCommand.js +19 -48
  147. package/dist-es/commands/GetObjectLockConfigurationCommand.js +19 -48
  148. package/dist-es/commands/GetObjectRetentionCommand.js +19 -48
  149. package/dist-es/commands/GetObjectTaggingCommand.js +19 -48
  150. package/dist-es/commands/GetObjectTorrentCommand.js +19 -48
  151. package/dist-es/commands/GetPublicAccessBlockCommand.js +20 -49
  152. package/dist-es/commands/HeadBucketCommand.js +19 -48
  153. package/dist-es/commands/HeadObjectCommand.js +21 -50
  154. package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +20 -49
  155. package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +20 -49
  156. package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +20 -49
  157. package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +19 -48
  158. package/dist-es/commands/ListBucketsCommand.js +18 -47
  159. package/dist-es/commands/ListDirectoryBucketsCommand.js +19 -48
  160. package/dist-es/commands/ListMultipartUploadsCommand.js +20 -49
  161. package/dist-es/commands/ListObjectVersionsCommand.js +20 -49
  162. package/dist-es/commands/ListObjectsCommand.js +20 -49
  163. package/dist-es/commands/ListObjectsV2Command.js +20 -49
  164. package/dist-es/commands/ListPartsCommand.js +21 -50
  165. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +22 -51
  166. package/dist-es/commands/PutBucketAclCommand.js +22 -51
  167. package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +20 -49
  168. package/dist-es/commands/PutBucketCorsCommand.js +22 -51
  169. package/dist-es/commands/PutBucketEncryptionCommand.js +22 -51
  170. package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +20 -49
  171. package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +20 -49
  172. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +22 -51
  173. package/dist-es/commands/PutBucketLoggingCommand.js +22 -51
  174. package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +20 -49
  175. package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +20 -49
  176. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +21 -50
  177. package/dist-es/commands/PutBucketPolicyCommand.js +22 -51
  178. package/dist-es/commands/PutBucketReplicationCommand.js +22 -51
  179. package/dist-es/commands/PutBucketRequestPaymentCommand.js +22 -51
  180. package/dist-es/commands/PutBucketTaggingCommand.js +22 -51
  181. package/dist-es/commands/PutBucketVersioningCommand.js +22 -51
  182. package/dist-es/commands/PutBucketWebsiteCommand.js +22 -51
  183. package/dist-es/commands/PutObjectAclCommand.js +22 -51
  184. package/dist-es/commands/PutObjectCommand.js +24 -53
  185. package/dist-es/commands/PutObjectLegalHoldCommand.js +21 -50
  186. package/dist-es/commands/PutObjectLockConfigurationCommand.js +21 -50
  187. package/dist-es/commands/PutObjectRetentionCommand.js +21 -50
  188. package/dist-es/commands/PutObjectTaggingCommand.js +21 -50
  189. package/dist-es/commands/PutPublicAccessBlockCommand.js +22 -51
  190. package/dist-es/commands/RestoreObjectCommand.js +21 -50
  191. package/dist-es/commands/SelectObjectContentCommand.js +24 -52
  192. package/dist-es/commands/UploadPartCommand.js +23 -52
  193. package/dist-es/commands/UploadPartCopyCommand.js +22 -50
  194. package/dist-es/commands/WriteGetObjectResponseCommand.js +19 -48
  195. package/dist-es/endpoint/EndpointParameters.js +12 -0
  196. package/dist-es/pagination/ListDirectoryBucketsPaginator.js +2 -23
  197. package/dist-es/pagination/ListObjectsV2Paginator.js +2 -23
  198. package/dist-es/pagination/ListPartsPaginator.js +2 -23
  199. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +6 -21
  200. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +6 -21
  201. package/dist-types/commands/CopyObjectCommand.d.ts +6 -21
  202. package/dist-types/commands/CreateBucketCommand.d.ts +19 -34
  203. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +6 -21
  204. package/dist-types/commands/CreateSessionCommand.d.ts +6 -21
  205. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +6 -21
  206. package/dist-types/commands/DeleteBucketCommand.d.ts +6 -21
  207. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +6 -21
  208. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +6 -21
  209. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +6 -21
  210. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +6 -21
  211. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +6 -21
  212. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +6 -21
  213. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +6 -21
  214. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +6 -21
  215. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +6 -21
  216. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +6 -21
  217. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +6 -21
  218. package/dist-types/commands/DeleteObjectCommand.d.ts +16 -31
  219. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +6 -21
  220. package/dist-types/commands/DeleteObjectsCommand.d.ts +6 -21
  221. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +6 -21
  222. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +6 -21
  223. package/dist-types/commands/GetBucketAclCommand.d.ts +6 -21
  224. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +6 -21
  225. package/dist-types/commands/GetBucketCorsCommand.d.ts +6 -21
  226. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +6 -21
  227. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +6 -21
  228. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +6 -21
  229. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +6 -21
  230. package/dist-types/commands/GetBucketLocationCommand.d.ts +6 -21
  231. package/dist-types/commands/GetBucketLoggingCommand.d.ts +6 -21
  232. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +6 -21
  233. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +6 -21
  234. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +6 -21
  235. package/dist-types/commands/GetBucketPolicyCommand.d.ts +6 -21
  236. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +6 -21
  237. package/dist-types/commands/GetBucketReplicationCommand.d.ts +6 -21
  238. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +6 -21
  239. package/dist-types/commands/GetBucketTaggingCommand.d.ts +6 -21
  240. package/dist-types/commands/GetBucketVersioningCommand.d.ts +6 -21
  241. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +6 -21
  242. package/dist-types/commands/GetObjectAclCommand.d.ts +6 -21
  243. package/dist-types/commands/GetObjectAttributesCommand.d.ts +6 -21
  244. package/dist-types/commands/GetObjectCommand.d.ts +25 -40
  245. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +6 -21
  246. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +6 -21
  247. package/dist-types/commands/GetObjectRetentionCommand.d.ts +6 -21
  248. package/dist-types/commands/GetObjectTaggingCommand.d.ts +6 -21
  249. package/dist-types/commands/GetObjectTorrentCommand.d.ts +6 -21
  250. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +6 -21
  251. package/dist-types/commands/HeadBucketCommand.d.ts +6 -21
  252. package/dist-types/commands/HeadObjectCommand.d.ts +6 -21
  253. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +6 -21
  254. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +6 -21
  255. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +6 -21
  256. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +6 -21
  257. package/dist-types/commands/ListBucketsCommand.d.ts +6 -21
  258. package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +6 -21
  259. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +38 -53
  260. package/dist-types/commands/ListObjectVersionsCommand.d.ts +6 -21
  261. package/dist-types/commands/ListObjectsCommand.d.ts +6 -21
  262. package/dist-types/commands/ListObjectsV2Command.d.ts +6 -21
  263. package/dist-types/commands/ListPartsCommand.d.ts +6 -21
  264. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +6 -21
  265. package/dist-types/commands/PutBucketAclCommand.d.ts +6 -21
  266. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +6 -21
  267. package/dist-types/commands/PutBucketCorsCommand.d.ts +6 -21
  268. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +6 -21
  269. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +6 -21
  270. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +6 -21
  271. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +6 -21
  272. package/dist-types/commands/PutBucketLoggingCommand.d.ts +6 -21
  273. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +6 -21
  274. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +6 -21
  275. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +6 -21
  276. package/dist-types/commands/PutBucketPolicyCommand.d.ts +6 -21
  277. package/dist-types/commands/PutBucketReplicationCommand.d.ts +6 -21
  278. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +6 -21
  279. package/dist-types/commands/PutBucketTaggingCommand.d.ts +6 -21
  280. package/dist-types/commands/PutBucketVersioningCommand.d.ts +6 -21
  281. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +6 -21
  282. package/dist-types/commands/PutObjectAclCommand.d.ts +6 -21
  283. package/dist-types/commands/PutObjectCommand.d.ts +51 -66
  284. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +6 -21
  285. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +6 -21
  286. package/dist-types/commands/PutObjectRetentionCommand.d.ts +6 -21
  287. package/dist-types/commands/PutObjectTaggingCommand.d.ts +6 -21
  288. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +6 -21
  289. package/dist-types/commands/RestoreObjectCommand.d.ts +6 -21
  290. package/dist-types/commands/SelectObjectContentCommand.d.ts +6 -21
  291. package/dist-types/commands/UploadPartCommand.d.ts +6 -21
  292. package/dist-types/commands/UploadPartCopyCommand.d.ts +6 -21
  293. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +6 -21
  294. package/dist-types/endpoint/EndpointParameters.d.ts +42 -0
  295. package/dist-types/pagination/ListDirectoryBucketsPaginator.d.ts +1 -1
  296. package/dist-types/pagination/ListObjectsV2Paginator.d.ts +1 -1
  297. package/dist-types/pagination/ListPartsPaginator.d.ts +1 -1
  298. package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +12 -24
  299. package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +12 -24
  300. package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +14 -23
  301. package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +14 -23
  302. package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +12 -24
  303. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +14 -23
  304. package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +12 -24
  305. package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +14 -23
  306. package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +14 -23
  307. package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +12 -24
  308. package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +12 -24
  309. package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +12 -24
  310. package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +12 -24
  311. package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +12 -24
  312. package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +12 -24
  313. package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +14 -23
  314. package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +12 -24
  315. package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +14 -23
  316. package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +14 -23
  317. package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +14 -23
  318. package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +14 -23
  319. package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +14 -23
  320. package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +12 -24
  321. package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +12 -24
  322. package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +14 -23
  323. package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +12 -24
  324. package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +14 -23
  325. package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +14 -23
  326. package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +12 -24
  327. package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +12 -24
  328. package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +12 -24
  329. package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +14 -23
  330. package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +14 -23
  331. package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +12 -24
  332. package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +12 -24
  333. package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +12 -24
  334. package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +14 -23
  335. package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +12 -24
  336. package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +12 -24
  337. package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +12 -24
  338. package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +14 -23
  339. package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +14 -23
  340. package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +14 -23
  341. package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +14 -23
  342. package/dist-types/ts3.4/commands/GetObjectAttributesCommand.d.ts +14 -23
  343. package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +13 -20
  344. package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +14 -23
  345. package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +12 -24
  346. package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +14 -23
  347. package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +14 -23
  348. package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +13 -20
  349. package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +12 -24
  350. package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +14 -23
  351. package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +14 -23
  352. package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +12 -24
  353. package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +12 -24
  354. package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +12 -24
  355. package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +12 -24
  356. package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +14 -23
  357. package/dist-types/ts3.4/commands/ListDirectoryBucketsCommand.d.ts +12 -24
  358. package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +12 -24
  359. package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +14 -23
  360. package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +14 -23
  361. package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +14 -23
  362. package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +14 -23
  363. package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +12 -24
  364. package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +14 -23
  365. package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +12 -24
  366. package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +14 -23
  367. package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +14 -23
  368. package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +12 -24
  369. package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +12 -24
  370. package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +12 -24
  371. package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +14 -23
  372. package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +12 -24
  373. package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +12 -24
  374. package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +12 -24
  375. package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +14 -23
  376. package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +12 -24
  377. package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +12 -24
  378. package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +14 -23
  379. package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +14 -23
  380. package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +14 -23
  381. package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +14 -23
  382. package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +13 -20
  383. package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +14 -23
  384. package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +12 -24
  385. package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +14 -23
  386. package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +14 -23
  387. package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +12 -24
  388. package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +14 -23
  389. package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +14 -23
  390. package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +13 -20
  391. package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +14 -23
  392. package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +11 -21
  393. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +42 -0
  394. package/dist-types/ts3.4/pagination/ListDirectoryBucketsPaginator.d.ts +3 -3
  395. package/dist-types/ts3.4/pagination/ListObjectsV2Paginator.d.ts +3 -3
  396. package/dist-types/ts3.4/pagination/ListPartsPaginator.d.ts +3 -3
  397. package/package.json +13 -13
@@ -6,59 +6,31 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
6
  const middleware_serde_1 = require("@smithy/middleware-serde");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
- const types_1 = require("@smithy/types");
9
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
10
10
  const models_1_1 = require("../models/models_1");
11
11
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
12
- class SelectObjectContentCommand extends smithy_client_1.Command {
13
- static getEndpointParameterInstructions() {
14
- return {
15
- Bucket: { type: "contextParams", name: "Bucket" },
16
- ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
17
- UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
18
- DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
19
- Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
20
- DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
21
- UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
22
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
23
- Endpoint: { type: "builtInParams", name: "endpoint" },
24
- Region: { type: "builtInParams", name: "region" },
25
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
26
- };
27
- }
28
- constructor(input) {
29
- super();
30
- this.input = input;
31
- }
32
- resolveMiddleware(clientStack, configuration, options) {
33
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
34
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SelectObjectContentCommand.getEndpointParameterInstructions()));
35
- this.middlewareStack.use((0, middleware_ssec_1.getSsecPlugin)(configuration));
36
- const stack = clientStack.concat(this.middlewareStack);
37
- const { logger } = configuration;
38
- const clientName = "S3Client";
39
- const commandName = "SelectObjectContentCommand";
40
- const handlerExecutionContext = {
41
- logger,
42
- clientName,
43
- commandName,
44
- inputFilterSensitiveLog: models_1_1.SelectObjectContentRequestFilterSensitiveLog,
45
- outputFilterSensitiveLog: models_1_1.SelectObjectContentOutputFilterSensitiveLog,
46
- [types_1.SMITHY_CONTEXT_KEY]: {
47
- service: "AmazonS3",
48
- operation: "SelectObjectContent",
49
- eventStream: {
50
- output: true,
51
- },
52
- },
53
- };
54
- const { requestHandler } = configuration;
55
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
56
- }
57
- serialize(input, context) {
58
- return (0, Aws_restXml_1.se_SelectObjectContentCommand)(input, context);
59
- }
60
- deserialize(output, context) {
61
- return (0, Aws_restXml_1.de_SelectObjectContentCommand)(output, context);
62
- }
12
+ class SelectObjectContentCommand extends smithy_client_1.Command
13
+ .classBuilder()
14
+ .ep({
15
+ ...EndpointParameters_1.commonParams,
16
+ Bucket: { type: "contextParams", name: "Bucket" },
17
+ })
18
+ .m(function (Command, cs, config, o) {
19
+ return [
20
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
21
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
22
+ (0, middleware_ssec_1.getSsecPlugin)(config),
23
+ ];
24
+ })
25
+ .s("AmazonS3", "SelectObjectContent", {
26
+ eventStream: {
27
+ output: true,
28
+ },
29
+ })
30
+ .n("S3Client", "SelectObjectContentCommand")
31
+ .f(models_1_1.SelectObjectContentRequestFilterSensitiveLog, models_1_1.SelectObjectContentOutputFilterSensitiveLog)
32
+ .ser(Aws_restXml_1.se_SelectObjectContentCommand)
33
+ .de(Aws_restXml_1.de_SelectObjectContentCommand)
34
+ .build() {
63
35
  }
64
36
  exports.SelectObjectContentCommand = SelectObjectContentCommand;
@@ -7,62 +7,33 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
7
  const middleware_serde_1 = require("@smithy/middleware-serde");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
- const types_1 = require("@smithy/types");
10
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
11
11
  const models_1_1 = require("../models/models_1");
12
12
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
13
- class UploadPartCommand extends smithy_client_1.Command {
14
- static getEndpointParameterInstructions() {
15
- return {
16
- Bucket: { type: "contextParams", name: "Bucket" },
17
- Key: { type: "contextParams", name: "Key" },
18
- ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
19
- UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
20
- DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
21
- Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
22
- DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
23
- UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
24
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
25
- Endpoint: { type: "builtInParams", name: "endpoint" },
26
- Region: { type: "builtInParams", name: "region" },
27
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
28
- };
29
- }
30
- constructor(input) {
31
- super();
32
- this.input = input;
33
- }
34
- resolveMiddleware(clientStack, configuration, options) {
35
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
36
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UploadPartCommand.getEndpointParameterInstructions()));
37
- this.middlewareStack.use((0, middleware_ssec_1.getSsecPlugin)(configuration));
38
- this.middlewareStack.use((0, middleware_flexible_checksums_1.getFlexibleChecksumsPlugin)(configuration, {
13
+ class UploadPartCommand extends smithy_client_1.Command
14
+ .classBuilder()
15
+ .ep({
16
+ ...EndpointParameters_1.commonParams,
17
+ Bucket: { type: "contextParams", name: "Bucket" },
18
+ Key: { type: "contextParams", name: "Key" },
19
+ })
20
+ .m(function (Command, cs, config, o) {
21
+ return [
22
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
23
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
24
+ (0, middleware_ssec_1.getSsecPlugin)(config),
25
+ (0, middleware_flexible_checksums_1.getFlexibleChecksumsPlugin)(config, {
39
26
  input: this.input,
40
27
  requestAlgorithmMember: "ChecksumAlgorithm",
41
28
  requestChecksumRequired: false,
42
- }));
43
- const stack = clientStack.concat(this.middlewareStack);
44
- const { logger } = configuration;
45
- const clientName = "S3Client";
46
- const commandName = "UploadPartCommand";
47
- const handlerExecutionContext = {
48
- logger,
49
- clientName,
50
- commandName,
51
- inputFilterSensitiveLog: models_1_1.UploadPartRequestFilterSensitiveLog,
52
- outputFilterSensitiveLog: models_1_1.UploadPartOutputFilterSensitiveLog,
53
- [types_1.SMITHY_CONTEXT_KEY]: {
54
- service: "AmazonS3",
55
- operation: "UploadPart",
56
- },
57
- };
58
- const { requestHandler } = configuration;
59
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
60
- }
61
- serialize(input, context) {
62
- return (0, Aws_restXml_1.se_UploadPartCommand)(input, context);
63
- }
64
- deserialize(output, context) {
65
- return (0, Aws_restXml_1.de_UploadPartCommand)(output, context);
66
- }
29
+ }),
30
+ ];
31
+ })
32
+ .s("AmazonS3", "UploadPart", {})
33
+ .n("S3Client", "UploadPartCommand")
34
+ .f(models_1_1.UploadPartRequestFilterSensitiveLog, models_1_1.UploadPartOutputFilterSensitiveLog)
35
+ .ser(Aws_restXml_1.se_UploadPartCommand)
36
+ .de(Aws_restXml_1.de_UploadPartCommand)
37
+ .build() {
67
38
  }
68
39
  exports.UploadPartCommand = UploadPartCommand;
@@ -7,57 +7,29 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
7
7
  const middleware_serde_1 = require("@smithy/middleware-serde");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
10
- const types_1 = require("@smithy/types");
10
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
11
11
  const models_1_1 = require("../models/models_1");
12
12
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
13
- class UploadPartCopyCommand extends smithy_client_1.Command {
14
- static getEndpointParameterInstructions() {
15
- return {
16
- DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
17
- Bucket: { type: "contextParams", name: "Bucket" },
18
- ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
19
- UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
20
- DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
21
- Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
22
- UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
23
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
24
- Endpoint: { type: "builtInParams", name: "endpoint" },
25
- Region: { type: "builtInParams", name: "region" },
26
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
27
- };
28
- }
29
- constructor(input) {
30
- super();
31
- this.input = input;
32
- }
33
- resolveMiddleware(clientStack, configuration, options) {
34
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
35
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UploadPartCopyCommand.getEndpointParameterInstructions()));
36
- this.middlewareStack.use((0, middleware_sdk_s3_1.getThrow200ExceptionsPlugin)(configuration));
37
- this.middlewareStack.use((0, middleware_ssec_1.getSsecPlugin)(configuration));
38
- const stack = clientStack.concat(this.middlewareStack);
39
- const { logger } = configuration;
40
- const clientName = "S3Client";
41
- const commandName = "UploadPartCopyCommand";
42
- const handlerExecutionContext = {
43
- logger,
44
- clientName,
45
- commandName,
46
- inputFilterSensitiveLog: models_1_1.UploadPartCopyRequestFilterSensitiveLog,
47
- outputFilterSensitiveLog: models_1_1.UploadPartCopyOutputFilterSensitiveLog,
48
- [types_1.SMITHY_CONTEXT_KEY]: {
49
- service: "AmazonS3",
50
- operation: "UploadPartCopy",
51
- },
52
- };
53
- const { requestHandler } = configuration;
54
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
55
- }
56
- serialize(input, context) {
57
- return (0, Aws_restXml_1.se_UploadPartCopyCommand)(input, context);
58
- }
59
- deserialize(output, context) {
60
- return (0, Aws_restXml_1.de_UploadPartCopyCommand)(output, context);
61
- }
13
+ class UploadPartCopyCommand extends smithy_client_1.Command
14
+ .classBuilder()
15
+ .ep({
16
+ ...EndpointParameters_1.commonParams,
17
+ DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true },
18
+ Bucket: { type: "contextParams", name: "Bucket" },
19
+ })
20
+ .m(function (Command, cs, config, o) {
21
+ return [
22
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
23
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
24
+ (0, middleware_sdk_s3_1.getThrow200ExceptionsPlugin)(config),
25
+ (0, middleware_ssec_1.getSsecPlugin)(config),
26
+ ];
27
+ })
28
+ .s("AmazonS3", "UploadPartCopy", {})
29
+ .n("S3Client", "UploadPartCopyCommand")
30
+ .f(models_1_1.UploadPartCopyRequestFilterSensitiveLog, models_1_1.UploadPartCopyOutputFilterSensitiveLog)
31
+ .ser(Aws_restXml_1.se_UploadPartCopyCommand)
32
+ .de(Aws_restXml_1.de_UploadPartCopyCommand)
33
+ .build() {
62
34
  }
63
35
  exports.UploadPartCopyCommand = UploadPartCopyCommand;
@@ -5,55 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_1_1 = require("../models/models_1");
10
10
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
11
- class WriteGetObjectResponseCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseObjectLambdaEndpoint: { type: "staticContextParams", value: true },
15
- ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
16
- UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
17
- DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
18
- Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
19
- DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
20
- UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
21
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
22
- Endpoint: { type: "builtInParams", name: "endpoint" },
23
- Region: { type: "builtInParams", name: "region" },
24
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
25
- };
26
- }
27
- constructor(input) {
28
- super();
29
- this.input = input;
30
- }
31
- resolveMiddleware(clientStack, configuration, options) {
32
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
33
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, WriteGetObjectResponseCommand.getEndpointParameterInstructions()));
34
- const stack = clientStack.concat(this.middlewareStack);
35
- const { logger } = configuration;
36
- const clientName = "S3Client";
37
- const commandName = "WriteGetObjectResponseCommand";
38
- const handlerExecutionContext = {
39
- logger,
40
- clientName,
41
- commandName,
42
- inputFilterSensitiveLog: models_1_1.WriteGetObjectResponseRequestFilterSensitiveLog,
43
- outputFilterSensitiveLog: (_) => _,
44
- [types_1.SMITHY_CONTEXT_KEY]: {
45
- service: "AmazonS3",
46
- operation: "WriteGetObjectResponse",
47
- },
48
- };
49
- const { requestHandler } = configuration;
50
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
51
- }
52
- serialize(input, context) {
53
- return (0, Aws_restXml_1.se_WriteGetObjectResponseCommand)(input, context);
54
- }
55
- deserialize(output, context) {
56
- return (0, Aws_restXml_1.de_WriteGetObjectResponseCommand)(output, context);
57
- }
11
+ class WriteGetObjectResponseCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ UseObjectLambdaEndpoint: { type: "staticContextParams", value: true },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("AmazonS3", "WriteGetObjectResponse", {})
24
+ .n("S3Client", "WriteGetObjectResponseCommand")
25
+ .f(models_1_1.WriteGetObjectResponseRequestFilterSensitiveLog, void 0)
26
+ .ser(Aws_restXml_1.se_WriteGetObjectResponseCommand)
27
+ .de(Aws_restXml_1.de_WriteGetObjectResponseCommand)
28
+ .build() {
58
29
  }
59
30
  exports.WriteGetObjectResponseCommand = WriteGetObjectResponseCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -14,3 +14,15 @@ const resolveClientEndpointParameters = (options) => {
14
14
  };
15
15
  };
16
16
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
17
+ exports.commonParams = {
18
+ ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
19
+ UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
20
+ DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
21
+ Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
22
+ DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
23
+ UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
24
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
25
+ Endpoint: { type: "builtInParams", name: "endpoint" },
26
+ Region: { type: "builtInParams", name: "region" },
27
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
28
+ };
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDirectoryBuckets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDirectoryBucketsCommand_1 = require("../commands/ListDirectoryBucketsCommand");
5
6
  const S3Client_1 = require("../S3Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDirectoryBucketsCommand_1.ListDirectoryBucketsCommand(input), ...args);
8
- };
9
- async function* paginateListDirectoryBuckets(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.ContinuationToken = token;
15
- input["MaxDirectoryBuckets"] = config.pageSize;
16
- if (config.client instanceof S3Client_1.S3Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected S3 | S3Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.ContinuationToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDirectoryBuckets = paginateListDirectoryBuckets;
7
+ exports.paginateListDirectoryBuckets = (0, core_1.createPaginator)(S3Client_1.S3Client, ListDirectoryBucketsCommand_1.ListDirectoryBucketsCommand, "ContinuationToken", "ContinuationToken", "MaxDirectoryBuckets");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListObjectsV2 = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListObjectsV2Command_1 = require("../commands/ListObjectsV2Command");
5
6
  const S3Client_1 = require("../S3Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListObjectsV2Command_1.ListObjectsV2Command(input), ...args);
8
- };
9
- async function* paginateListObjectsV2(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.ContinuationToken = token;
15
- input["MaxKeys"] = config.pageSize;
16
- if (config.client instanceof S3Client_1.S3Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected S3 | S3Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextContinuationToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListObjectsV2 = paginateListObjectsV2;
7
+ exports.paginateListObjectsV2 = (0, core_1.createPaginator)(S3Client_1.S3Client, ListObjectsV2Command_1.ListObjectsV2Command, "ContinuationToken", "NextContinuationToken", "MaxKeys");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListParts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPartsCommand_1 = require("../commands/ListPartsCommand");
5
6
  const S3Client_1 = require("../S3Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPartsCommand_1.ListPartsCommand(input), ...args);
8
- };
9
- async function* paginateListParts(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.PartNumberMarker = token;
15
- input["MaxParts"] = config.pageSize;
16
- if (config.client instanceof S3Client_1.S3Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected S3 | S3Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextPartNumberMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListParts = paginateListParts;
7
+ exports.paginateListParts = (0, core_1.createPaginator)(S3Client_1.S3Client, ListPartsCommand_1.ListPartsCommand, "PartNumberMarker", "NextPartNumberMarker", "MaxParts");
@@ -1,55 +1,26 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_AbortMultipartUploadCommand, se_AbortMultipartUploadCommand } from "../protocols/Aws_restXml";
6
6
  export { $Command };
7
- export class AbortMultipartUploadCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- Bucket: { type: "contextParams", name: "Bucket" },
11
- Key: { type: "contextParams", name: "Key" },
12
- ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
13
- UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
14
- DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
15
- Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
16
- DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
17
- UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
18
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
19
- Endpoint: { type: "builtInParams", name: "endpoint" },
20
- Region: { type: "builtInParams", name: "region" },
21
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
22
- };
23
- }
24
- constructor(input) {
25
- super();
26
- this.input = input;
27
- }
28
- resolveMiddleware(clientStack, configuration, options) {
29
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
30
- this.middlewareStack.use(getEndpointPlugin(configuration, AbortMultipartUploadCommand.getEndpointParameterInstructions()));
31
- const stack = clientStack.concat(this.middlewareStack);
32
- const { logger } = configuration;
33
- const clientName = "S3Client";
34
- const commandName = "AbortMultipartUploadCommand";
35
- const handlerExecutionContext = {
36
- logger,
37
- clientName,
38
- commandName,
39
- inputFilterSensitiveLog: (_) => _,
40
- outputFilterSensitiveLog: (_) => _,
41
- [SMITHY_CONTEXT_KEY]: {
42
- service: "AmazonS3",
43
- operation: "AbortMultipartUpload",
44
- },
45
- };
46
- const { requestHandler } = configuration;
47
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
48
- }
49
- serialize(input, context) {
50
- return se_AbortMultipartUploadCommand(input, context);
51
- }
52
- deserialize(output, context) {
53
- return de_AbortMultipartUploadCommand(output, context);
54
- }
7
+ export class AbortMultipartUploadCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ Bucket: { type: "contextParams", name: "Bucket" },
12
+ Key: { type: "contextParams", name: "Key" },
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ ];
19
+ })
20
+ .s("AmazonS3", "AbortMultipartUpload", {})
21
+ .n("S3Client", "AbortMultipartUploadCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_AbortMultipartUploadCommand)
24
+ .de(de_AbortMultipartUploadCommand)
25
+ .build() {
55
26
  }
@@ -3,58 +3,29 @@ import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
3
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
5
5
  import { Command as $Command } from "@smithy/smithy-client";
6
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
6
+ import { commonParams } from "../endpoint/EndpointParameters";
7
7
  import { CompleteMultipartUploadOutputFilterSensitiveLog, CompleteMultipartUploadRequestFilterSensitiveLog, } from "../models/models_0";
8
8
  import { de_CompleteMultipartUploadCommand, se_CompleteMultipartUploadCommand } from "../protocols/Aws_restXml";
9
9
  export { $Command };
10
- export class CompleteMultipartUploadCommand extends $Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- Bucket: { type: "contextParams", name: "Bucket" },
14
- Key: { type: "contextParams", name: "Key" },
15
- ForcePathStyle: { type: "clientContextParams", name: "forcePathStyle" },
16
- UseArnRegion: { type: "clientContextParams", name: "useArnRegion" },
17
- DisableMultiRegionAccessPoints: { type: "clientContextParams", name: "disableMultiregionAccessPoints" },
18
- Accelerate: { type: "clientContextParams", name: "useAccelerateEndpoint" },
19
- DisableS3ExpressSessionAuth: { type: "clientContextParams", name: "disableS3ExpressSessionAuth" },
20
- UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
21
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
22
- Endpoint: { type: "builtInParams", name: "endpoint" },
23
- Region: { type: "builtInParams", name: "region" },
24
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
25
- };
26
- }
27
- constructor(input) {
28
- super();
29
- this.input = input;
30
- }
31
- resolveMiddleware(clientStack, configuration, options) {
32
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
33
- this.middlewareStack.use(getEndpointPlugin(configuration, CompleteMultipartUploadCommand.getEndpointParameterInstructions()));
34
- this.middlewareStack.use(getThrow200ExceptionsPlugin(configuration));
35
- this.middlewareStack.use(getSsecPlugin(configuration));
36
- const stack = clientStack.concat(this.middlewareStack);
37
- const { logger } = configuration;
38
- const clientName = "S3Client";
39
- const commandName = "CompleteMultipartUploadCommand";
40
- const handlerExecutionContext = {
41
- logger,
42
- clientName,
43
- commandName,
44
- inputFilterSensitiveLog: CompleteMultipartUploadRequestFilterSensitiveLog,
45
- outputFilterSensitiveLog: CompleteMultipartUploadOutputFilterSensitiveLog,
46
- [SMITHY_CONTEXT_KEY]: {
47
- service: "AmazonS3",
48
- operation: "CompleteMultipartUpload",
49
- },
50
- };
51
- const { requestHandler } = configuration;
52
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
53
- }
54
- serialize(input, context) {
55
- return se_CompleteMultipartUploadCommand(input, context);
56
- }
57
- deserialize(output, context) {
58
- return de_CompleteMultipartUploadCommand(output, context);
59
- }
10
+ export class CompleteMultipartUploadCommand extends $Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...commonParams,
14
+ Bucket: { type: "contextParams", name: "Bucket" },
15
+ Key: { type: "contextParams", name: "Key" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ getSerdePlugin(config, this.serialize, this.deserialize),
20
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
21
+ getThrow200ExceptionsPlugin(config),
22
+ getSsecPlugin(config),
23
+ ];
24
+ })
25
+ .s("AmazonS3", "CompleteMultipartUpload", {})
26
+ .n("S3Client", "CompleteMultipartUploadCommand")
27
+ .f(CompleteMultipartUploadRequestFilterSensitiveLog, CompleteMultipartUploadOutputFilterSensitiveLog)
28
+ .ser(se_CompleteMultipartUploadCommand)
29
+ .de(de_CompleteMultipartUploadCommand)
30
+ .build() {
60
31
  }