@aws-sdk/client-glacier 3.32.0 → 3.36.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 (388) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/Glacier.js +1 -2
  3. package/{dist/cjs → dist-cjs}/GlacierClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/AbortMultipartUploadCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/AbortVaultLockCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/AddTagsToVaultCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/CompleteMultipartUploadCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/commands/CompleteVaultLockCommand.js +2 -3
  9. package/{dist/cjs → dist-cjs}/commands/CreateVaultCommand.js +2 -3
  10. package/{dist/cjs → dist-cjs}/commands/DeleteArchiveCommand.js +2 -3
  11. package/{dist/cjs → dist-cjs}/commands/DeleteVaultAccessPolicyCommand.js +2 -3
  12. package/{dist/cjs → dist-cjs}/commands/DeleteVaultCommand.js +2 -3
  13. package/{dist/cjs → dist-cjs}/commands/DeleteVaultNotificationsCommand.js +2 -3
  14. package/{dist/cjs → dist-cjs}/commands/DescribeJobCommand.js +2 -3
  15. package/{dist/cjs → dist-cjs}/commands/DescribeVaultCommand.js +2 -3
  16. package/{dist/cjs → dist-cjs}/commands/GetDataRetrievalPolicyCommand.js +2 -3
  17. package/{dist/cjs → dist-cjs}/commands/GetJobOutputCommand.js +2 -3
  18. package/{dist/cjs → dist-cjs}/commands/GetVaultAccessPolicyCommand.js +2 -3
  19. package/{dist/cjs → dist-cjs}/commands/GetVaultLockCommand.js +2 -3
  20. package/{dist/cjs → dist-cjs}/commands/GetVaultNotificationsCommand.js +2 -3
  21. package/{dist/cjs → dist-cjs}/commands/InitiateJobCommand.js +2 -3
  22. package/{dist/cjs → dist-cjs}/commands/InitiateMultipartUploadCommand.js +2 -3
  23. package/{dist/cjs → dist-cjs}/commands/InitiateVaultLockCommand.js +2 -3
  24. package/{dist/cjs → dist-cjs}/commands/ListJobsCommand.js +2 -3
  25. package/{dist/cjs → dist-cjs}/commands/ListMultipartUploadsCommand.js +2 -3
  26. package/{dist/cjs → dist-cjs}/commands/ListPartsCommand.js +2 -3
  27. package/{dist/cjs → dist-cjs}/commands/ListProvisionedCapacityCommand.js +2 -3
  28. package/{dist/cjs → dist-cjs}/commands/ListTagsForVaultCommand.js +2 -3
  29. package/{dist/cjs → dist-cjs}/commands/ListVaultsCommand.js +2 -3
  30. package/{dist/cjs → dist-cjs}/commands/PurchaseProvisionedCapacityCommand.js +2 -3
  31. package/{dist/cjs → dist-cjs}/commands/RemoveTagsFromVaultCommand.js +2 -3
  32. package/{dist/cjs → dist-cjs}/commands/SetDataRetrievalPolicyCommand.js +2 -3
  33. package/{dist/cjs → dist-cjs}/commands/SetVaultAccessPolicyCommand.js +2 -3
  34. package/{dist/cjs → dist-cjs}/commands/SetVaultNotificationsCommand.js +2 -3
  35. package/{dist/cjs → dist-cjs}/commands/UploadArchiveCommand.js +2 -3
  36. package/{dist/cjs → dist-cjs}/commands/UploadMultipartPartCommand.js +2 -3
  37. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  38. package/{dist/cjs → dist-cjs}/index.js +0 -1
  39. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  40. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  41. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  42. package/{dist/cjs → dist-cjs}/pagination/ListJobsPaginator.js +1 -2
  43. package/{dist/cjs → dist-cjs}/pagination/ListMultipartUploadsPaginator.js +1 -2
  44. package/{dist/cjs → dist-cjs}/pagination/ListPartsPaginator.js +1 -2
  45. package/{dist/cjs → dist-cjs}/pagination/ListVaultsPaginator.js +1 -2
  46. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -1
  47. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  48. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  49. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  50. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  51. package/{dist/cjs → dist-cjs}/waiters/waitForVaultExists.js +2 -3
  52. package/{dist/cjs → dist-cjs}/waiters/waitForVaultNotExists.js +2 -3
  53. package/{dist/es → dist-es}/Glacier.js +2 -43
  54. package/dist-es/GlacierClient.js +39 -0
  55. package/dist-es/commands/AbortMultipartUploadCommand.js +39 -0
  56. package/dist-es/commands/AbortVaultLockCommand.js +39 -0
  57. package/{dist/es → dist-es}/commands/AddTagsToVaultCommand.js +4 -35
  58. package/dist-es/commands/CompleteMultipartUploadCommand.js +39 -0
  59. package/dist-es/commands/CompleteVaultLockCommand.js +39 -0
  60. package/dist-es/commands/CreateVaultCommand.js +39 -0
  61. package/dist-es/commands/DeleteArchiveCommand.js +39 -0
  62. package/{dist/es → dist-es}/commands/DeleteVaultAccessPolicyCommand.js +4 -36
  63. package/dist-es/commands/DeleteVaultCommand.js +39 -0
  64. package/dist-es/commands/DeleteVaultNotificationsCommand.js +39 -0
  65. package/dist-es/commands/DescribeJobCommand.js +39 -0
  66. package/dist-es/commands/DescribeVaultCommand.js +39 -0
  67. package/{dist/es → dist-es}/commands/GetDataRetrievalPolicyCommand.js +4 -32
  68. package/dist-es/commands/GetJobOutputCommand.js +39 -0
  69. package/{dist/es → dist-es}/commands/GetVaultAccessPolicyCommand.js +4 -35
  70. package/dist-es/commands/GetVaultLockCommand.js +39 -0
  71. package/dist-es/commands/GetVaultNotificationsCommand.js +39 -0
  72. package/{dist/es → dist-es}/commands/InitiateJobCommand.js +4 -34
  73. package/dist-es/commands/InitiateMultipartUploadCommand.js +39 -0
  74. package/dist-es/commands/InitiateVaultLockCommand.js +39 -0
  75. package/dist-es/commands/ListJobsCommand.js +39 -0
  76. package/dist-es/commands/ListMultipartUploadsCommand.js +39 -0
  77. package/dist-es/commands/ListPartsCommand.js +39 -0
  78. package/{dist/es → dist-es}/commands/ListProvisionedCapacityCommand.js +4 -31
  79. package/{dist/es → dist-es}/commands/ListTagsForVaultCommand.js +4 -32
  80. package/dist-es/commands/ListVaultsCommand.js +39 -0
  81. package/{dist/es → dist-es}/commands/PurchaseProvisionedCapacityCommand.js +4 -30
  82. package/{dist/es → dist-es}/commands/RemoveTagsFromVaultCommand.js +4 -33
  83. package/{dist/es → dist-es}/commands/SetDataRetrievalPolicyCommand.js +4 -35
  84. package/{dist/es → dist-es}/commands/SetVaultAccessPolicyCommand.js +4 -35
  85. package/dist-es/commands/SetVaultNotificationsCommand.js +39 -0
  86. package/dist-es/commands/UploadArchiveCommand.js +39 -0
  87. package/dist-es/commands/UploadMultipartPartCommand.js +39 -0
  88. package/{dist/es → dist-es}/endpoints.js +1 -2
  89. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  90. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  91. package/{dist/es → dist-es}/models/models_0.js +0 -247
  92. package/dist-es/pagination/Interfaces.js +1 -0
  93. package/{dist/es → dist-es}/pagination/ListJobsPaginator.js +17 -30
  94. package/{dist/es → dist-es}/pagination/ListMultipartUploadsPaginator.js +17 -30
  95. package/{dist/es → dist-es}/pagination/ListPartsPaginator.js +17 -30
  96. package/{dist/es → dist-es}/pagination/ListVaultsPaginator.js +17 -30
  97. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +840 -846
  98. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  99. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  100. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  101. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  102. package/{dist/es → dist-es}/waiters/waitForVaultExists.js +9 -19
  103. package/{dist/es → dist-es}/waiters/waitForVaultNotExists.js +9 -19
  104. package/{dist/types → dist-types}/Glacier.d.ts +2 -2
  105. package/{dist/types → dist-types}/GlacierClient.d.ts +8 -8
  106. package/{dist/types → dist-types}/commands/AbortMultipartUploadCommand.d.ts +2 -2
  107. package/{dist/types → dist-types}/commands/AbortVaultLockCommand.d.ts +2 -2
  108. package/{dist/types → dist-types}/commands/AddTagsToVaultCommand.d.ts +2 -2
  109. package/{dist/types → dist-types}/commands/CompleteMultipartUploadCommand.d.ts +2 -2
  110. package/{dist/types → dist-types}/commands/CompleteVaultLockCommand.d.ts +2 -2
  111. package/{dist/types → dist-types}/commands/CreateVaultCommand.d.ts +2 -2
  112. package/{dist/types → dist-types}/commands/DeleteArchiveCommand.d.ts +2 -2
  113. package/{dist/types → dist-types}/commands/DeleteVaultAccessPolicyCommand.d.ts +2 -2
  114. package/{dist/types → dist-types}/commands/DeleteVaultCommand.d.ts +2 -2
  115. package/{dist/types → dist-types}/commands/DeleteVaultNotificationsCommand.d.ts +2 -2
  116. package/{dist/types → dist-types}/commands/DescribeJobCommand.d.ts +2 -2
  117. package/{dist/types → dist-types}/commands/DescribeVaultCommand.d.ts +2 -2
  118. package/{dist/types → dist-types}/commands/GetDataRetrievalPolicyCommand.d.ts +2 -2
  119. package/{dist/types → dist-types}/commands/GetJobOutputCommand.d.ts +2 -2
  120. package/{dist/types → dist-types}/commands/GetVaultAccessPolicyCommand.d.ts +2 -2
  121. package/{dist/types → dist-types}/commands/GetVaultLockCommand.d.ts +2 -2
  122. package/{dist/types → dist-types}/commands/GetVaultNotificationsCommand.d.ts +2 -2
  123. package/{dist/types → dist-types}/commands/InitiateJobCommand.d.ts +2 -2
  124. package/{dist/types → dist-types}/commands/InitiateMultipartUploadCommand.d.ts +2 -2
  125. package/{dist/types → dist-types}/commands/InitiateVaultLockCommand.d.ts +2 -2
  126. package/{dist/types → dist-types}/commands/ListJobsCommand.d.ts +2 -2
  127. package/{dist/types → dist-types}/commands/ListMultipartUploadsCommand.d.ts +2 -2
  128. package/{dist/types → dist-types}/commands/ListPartsCommand.d.ts +2 -2
  129. package/{dist/types → dist-types}/commands/ListProvisionedCapacityCommand.d.ts +2 -2
  130. package/{dist/types → dist-types}/commands/ListTagsForVaultCommand.d.ts +2 -2
  131. package/{dist/types → dist-types}/commands/ListVaultsCommand.d.ts +2 -2
  132. package/{dist/types → dist-types}/commands/PurchaseProvisionedCapacityCommand.d.ts +2 -2
  133. package/{dist/types → dist-types}/commands/RemoveTagsFromVaultCommand.d.ts +2 -2
  134. package/{dist/types → dist-types}/commands/SetDataRetrievalPolicyCommand.d.ts +2 -2
  135. package/{dist/types → dist-types}/commands/SetVaultAccessPolicyCommand.d.ts +2 -2
  136. package/{dist/types → dist-types}/commands/SetVaultNotificationsCommand.d.ts +2 -2
  137. package/{dist/types → dist-types}/commands/UploadArchiveCommand.d.ts +2 -2
  138. package/{dist/types → dist-types}/commands/UploadMultipartPartCommand.d.ts +2 -2
  139. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  140. package/{index.ts → dist-types/index.d.ts} +0 -0
  141. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  142. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  143. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  144. package/{dist/types → dist-types}/pagination/ListJobsPaginator.d.ts +1 -1
  145. package/{dist/types → dist-types}/pagination/ListMultipartUploadsPaginator.d.ts +1 -1
  146. package/{dist/types → dist-types}/pagination/ListPartsPaginator.d.ts +1 -1
  147. package/{dist/types → dist-types}/pagination/ListVaultsPaginator.d.ts +1 -1
  148. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  149. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  150. package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -1
  151. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  152. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  153. package/{dist/types → dist-types}/ts3.4/Glacier.d.ts +2 -2
  154. package/{dist/types → dist-types}/ts3.4/GlacierClient.d.ts +8 -8
  155. package/{dist/types → dist-types}/ts3.4/commands/AbortMultipartUploadCommand.d.ts +2 -2
  156. package/{dist/types → dist-types}/ts3.4/commands/AbortVaultLockCommand.d.ts +2 -2
  157. package/{dist/types → dist-types}/ts3.4/commands/AddTagsToVaultCommand.d.ts +2 -2
  158. package/{dist/types → dist-types}/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +2 -2
  159. package/{dist/types → dist-types}/ts3.4/commands/CompleteVaultLockCommand.d.ts +2 -2
  160. package/{dist/types → dist-types}/ts3.4/commands/CreateVaultCommand.d.ts +2 -2
  161. package/{dist/types → dist-types}/ts3.4/commands/DeleteArchiveCommand.d.ts +2 -2
  162. package/{dist/types → dist-types}/ts3.4/commands/DeleteVaultAccessPolicyCommand.d.ts +2 -2
  163. package/{dist/types → dist-types}/ts3.4/commands/DeleteVaultCommand.d.ts +2 -2
  164. package/{dist/types → dist-types}/ts3.4/commands/DeleteVaultNotificationsCommand.d.ts +2 -2
  165. package/{dist/types → dist-types}/ts3.4/commands/DescribeJobCommand.d.ts +2 -2
  166. package/{dist/types → dist-types}/ts3.4/commands/DescribeVaultCommand.d.ts +2 -2
  167. package/{dist/types → dist-types}/ts3.4/commands/GetDataRetrievalPolicyCommand.d.ts +2 -2
  168. package/{dist/types → dist-types}/ts3.4/commands/GetJobOutputCommand.d.ts +2 -2
  169. package/{dist/types → dist-types}/ts3.4/commands/GetVaultAccessPolicyCommand.d.ts +2 -2
  170. package/{dist/types → dist-types}/ts3.4/commands/GetVaultLockCommand.d.ts +2 -2
  171. package/{dist/types → dist-types}/ts3.4/commands/GetVaultNotificationsCommand.d.ts +2 -2
  172. package/{dist/types → dist-types}/ts3.4/commands/InitiateJobCommand.d.ts +2 -2
  173. package/{dist/types → dist-types}/ts3.4/commands/InitiateMultipartUploadCommand.d.ts +2 -2
  174. package/{dist/types → dist-types}/ts3.4/commands/InitiateVaultLockCommand.d.ts +2 -2
  175. package/{dist/types → dist-types}/ts3.4/commands/ListJobsCommand.d.ts +2 -2
  176. package/{dist/types → dist-types}/ts3.4/commands/ListMultipartUploadsCommand.d.ts +2 -2
  177. package/{dist/types → dist-types}/ts3.4/commands/ListPartsCommand.d.ts +2 -2
  178. package/{dist/types → dist-types}/ts3.4/commands/ListProvisionedCapacityCommand.d.ts +2 -2
  179. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForVaultCommand.d.ts +2 -2
  180. package/{dist/types → dist-types}/ts3.4/commands/ListVaultsCommand.d.ts +2 -2
  181. package/{dist/types → dist-types}/ts3.4/commands/PurchaseProvisionedCapacityCommand.d.ts +2 -2
  182. package/{dist/types → dist-types}/ts3.4/commands/RemoveTagsFromVaultCommand.d.ts +2 -2
  183. package/{dist/types → dist-types}/ts3.4/commands/SetDataRetrievalPolicyCommand.d.ts +2 -2
  184. package/{dist/types → dist-types}/ts3.4/commands/SetVaultAccessPolicyCommand.d.ts +2 -2
  185. package/{dist/types → dist-types}/ts3.4/commands/SetVaultNotificationsCommand.d.ts +2 -2
  186. package/{dist/types → dist-types}/ts3.4/commands/UploadArchiveCommand.d.ts +2 -2
  187. package/{dist/types → dist-types}/ts3.4/commands/UploadMultipartPartCommand.d.ts +2 -2
  188. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  189. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  190. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  191. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  192. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  193. package/{dist/types → dist-types}/ts3.4/pagination/ListJobsPaginator.d.ts +1 -1
  194. package/{dist/types → dist-types}/ts3.4/pagination/ListMultipartUploadsPaginator.d.ts +1 -1
  195. package/{dist/types → dist-types}/ts3.4/pagination/ListPartsPaginator.d.ts +1 -1
  196. package/{dist/types → dist-types}/ts3.4/pagination/ListVaultsPaginator.d.ts +1 -1
  197. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  198. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  199. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -1
  200. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  201. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  202. package/{dist/types → dist-types}/ts3.4/waiters/waitForVaultExists.d.ts +2 -2
  203. package/{dist/types → dist-types}/ts3.4/waiters/waitForVaultNotExists.d.ts +2 -2
  204. package/{dist/types → dist-types}/waiters/waitForVaultExists.d.ts +2 -2
  205. package/{dist/types → dist-types}/waiters/waitForVaultNotExists.d.ts +2 -2
  206. package/package.json +56 -53
  207. package/Glacier.ts +0 -1789
  208. package/GlacierClient.ts +0 -431
  209. package/commands/AbortMultipartUploadCommand.ts +0 -111
  210. package/commands/AbortVaultLockCommand.ts +0 -107
  211. package/commands/AddTagsToVaultCommand.ts +0 -99
  212. package/commands/CompleteMultipartUploadCommand.ts +0 -131
  213. package/commands/CompleteVaultLockCommand.ts +0 -107
  214. package/commands/CreateVaultCommand.ts +0 -117
  215. package/commands/DeleteArchiveCommand.ts +0 -120
  216. package/commands/DeleteVaultAccessPolicyCommand.ts +0 -100
  217. package/commands/DeleteVaultCommand.ts +0 -113
  218. package/commands/DeleteVaultNotificationsCommand.ts +0 -106
  219. package/commands/DescribeJobCommand.ts +0 -117
  220. package/commands/DescribeVaultCommand.ts +0 -111
  221. package/commands/GetDataRetrievalPolicyCommand.ts +0 -96
  222. package/commands/GetJobOutputCommand.ts +0 -130
  223. package/commands/GetVaultAccessPolicyCommand.ts +0 -99
  224. package/commands/GetVaultLockCommand.ts +0 -121
  225. package/commands/GetVaultNotificationsCommand.ts +0 -109
  226. package/commands/InitiateJobCommand.ts +0 -98
  227. package/commands/InitiateMultipartUploadCommand.ts +0 -127
  228. package/commands/InitiateVaultLockCommand.ts +0 -128
  229. package/commands/ListJobsCommand.ts +0 -129
  230. package/commands/ListMultipartUploadsCommand.ts +0 -119
  231. package/commands/ListPartsCommand.ts +0 -115
  232. package/commands/ListProvisionedCapacityCommand.ts +0 -95
  233. package/commands/ListTagsForVaultCommand.ts +0 -96
  234. package/commands/ListVaultsCommand.ts +0 -112
  235. package/commands/PurchaseProvisionedCapacityCommand.ts +0 -97
  236. package/commands/RemoveTagsFromVaultCommand.ts +0 -97
  237. package/commands/SetDataRetrievalPolicyCommand.ts +0 -99
  238. package/commands/SetVaultAccessPolicyCommand.ts +0 -99
  239. package/commands/SetVaultNotificationsCommand.ts +0 -131
  240. package/commands/UploadArchiveCommand.ts +0 -134
  241. package/commands/UploadMultipartPartCommand.ts +0 -153
  242. package/dist/cjs/Glacier.js.map +0 -1
  243. package/dist/cjs/GlacierClient.js.map +0 -1
  244. package/dist/cjs/commands/AbortMultipartUploadCommand.js.map +0 -1
  245. package/dist/cjs/commands/AbortVaultLockCommand.js.map +0 -1
  246. package/dist/cjs/commands/AddTagsToVaultCommand.js.map +0 -1
  247. package/dist/cjs/commands/CompleteMultipartUploadCommand.js.map +0 -1
  248. package/dist/cjs/commands/CompleteVaultLockCommand.js.map +0 -1
  249. package/dist/cjs/commands/CreateVaultCommand.js.map +0 -1
  250. package/dist/cjs/commands/DeleteArchiveCommand.js.map +0 -1
  251. package/dist/cjs/commands/DeleteVaultAccessPolicyCommand.js.map +0 -1
  252. package/dist/cjs/commands/DeleteVaultCommand.js.map +0 -1
  253. package/dist/cjs/commands/DeleteVaultNotificationsCommand.js.map +0 -1
  254. package/dist/cjs/commands/DescribeJobCommand.js.map +0 -1
  255. package/dist/cjs/commands/DescribeVaultCommand.js.map +0 -1
  256. package/dist/cjs/commands/GetDataRetrievalPolicyCommand.js.map +0 -1
  257. package/dist/cjs/commands/GetJobOutputCommand.js.map +0 -1
  258. package/dist/cjs/commands/GetVaultAccessPolicyCommand.js.map +0 -1
  259. package/dist/cjs/commands/GetVaultLockCommand.js.map +0 -1
  260. package/dist/cjs/commands/GetVaultNotificationsCommand.js.map +0 -1
  261. package/dist/cjs/commands/InitiateJobCommand.js.map +0 -1
  262. package/dist/cjs/commands/InitiateMultipartUploadCommand.js.map +0 -1
  263. package/dist/cjs/commands/InitiateVaultLockCommand.js.map +0 -1
  264. package/dist/cjs/commands/ListJobsCommand.js.map +0 -1
  265. package/dist/cjs/commands/ListMultipartUploadsCommand.js.map +0 -1
  266. package/dist/cjs/commands/ListPartsCommand.js.map +0 -1
  267. package/dist/cjs/commands/ListProvisionedCapacityCommand.js.map +0 -1
  268. package/dist/cjs/commands/ListTagsForVaultCommand.js.map +0 -1
  269. package/dist/cjs/commands/ListVaultsCommand.js.map +0 -1
  270. package/dist/cjs/commands/PurchaseProvisionedCapacityCommand.js.map +0 -1
  271. package/dist/cjs/commands/RemoveTagsFromVaultCommand.js.map +0 -1
  272. package/dist/cjs/commands/SetDataRetrievalPolicyCommand.js.map +0 -1
  273. package/dist/cjs/commands/SetVaultAccessPolicyCommand.js.map +0 -1
  274. package/dist/cjs/commands/SetVaultNotificationsCommand.js.map +0 -1
  275. package/dist/cjs/commands/UploadArchiveCommand.js.map +0 -1
  276. package/dist/cjs/commands/UploadMultipartPartCommand.js.map +0 -1
  277. package/dist/cjs/endpoints.js.map +0 -1
  278. package/dist/cjs/index.js.map +0 -1
  279. package/dist/cjs/models/index.js.map +0 -1
  280. package/dist/cjs/models/models_0.js.map +0 -1
  281. package/dist/cjs/package.json +0 -95
  282. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  283. package/dist/cjs/pagination/ListJobsPaginator.js.map +0 -1
  284. package/dist/cjs/pagination/ListMultipartUploadsPaginator.js.map +0 -1
  285. package/dist/cjs/pagination/ListPartsPaginator.js.map +0 -1
  286. package/dist/cjs/pagination/ListVaultsPaginator.js.map +0 -1
  287. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  288. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  289. package/dist/cjs/runtimeConfig.js.map +0 -1
  290. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  291. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  292. package/dist/cjs/waiters/waitForVaultExists.js.map +0 -1
  293. package/dist/cjs/waiters/waitForVaultNotExists.js.map +0 -1
  294. package/dist/es/Glacier.js.map +0 -1
  295. package/dist/es/GlacierClient.js +0 -85
  296. package/dist/es/GlacierClient.js.map +0 -1
  297. package/dist/es/commands/AbortMultipartUploadCommand.js +0 -82
  298. package/dist/es/commands/AbortMultipartUploadCommand.js.map +0 -1
  299. package/dist/es/commands/AbortVaultLockCommand.js +0 -78
  300. package/dist/es/commands/AbortVaultLockCommand.js.map +0 -1
  301. package/dist/es/commands/AddTagsToVaultCommand.js.map +0 -1
  302. package/dist/es/commands/CompleteMultipartUploadCommand.js +0 -102
  303. package/dist/es/commands/CompleteMultipartUploadCommand.js.map +0 -1
  304. package/dist/es/commands/CompleteVaultLockCommand.js +0 -78
  305. package/dist/es/commands/CompleteVaultLockCommand.js.map +0 -1
  306. package/dist/es/commands/CreateVaultCommand.js +0 -88
  307. package/dist/es/commands/CreateVaultCommand.js.map +0 -1
  308. package/dist/es/commands/DeleteArchiveCommand.js +0 -91
  309. package/dist/es/commands/DeleteArchiveCommand.js.map +0 -1
  310. package/dist/es/commands/DeleteVaultAccessPolicyCommand.js.map +0 -1
  311. package/dist/es/commands/DeleteVaultCommand.js +0 -84
  312. package/dist/es/commands/DeleteVaultCommand.js.map +0 -1
  313. package/dist/es/commands/DeleteVaultNotificationsCommand.js +0 -77
  314. package/dist/es/commands/DeleteVaultNotificationsCommand.js.map +0 -1
  315. package/dist/es/commands/DescribeJobCommand.js +0 -88
  316. package/dist/es/commands/DescribeJobCommand.js.map +0 -1
  317. package/dist/es/commands/DescribeVaultCommand.js +0 -82
  318. package/dist/es/commands/DescribeVaultCommand.js.map +0 -1
  319. package/dist/es/commands/GetDataRetrievalPolicyCommand.js.map +0 -1
  320. package/dist/es/commands/GetJobOutputCommand.js +0 -101
  321. package/dist/es/commands/GetJobOutputCommand.js.map +0 -1
  322. package/dist/es/commands/GetVaultAccessPolicyCommand.js.map +0 -1
  323. package/dist/es/commands/GetVaultLockCommand.js +0 -92
  324. package/dist/es/commands/GetVaultLockCommand.js.map +0 -1
  325. package/dist/es/commands/GetVaultNotificationsCommand.js +0 -80
  326. package/dist/es/commands/GetVaultNotificationsCommand.js.map +0 -1
  327. package/dist/es/commands/InitiateJobCommand.js.map +0 -1
  328. package/dist/es/commands/InitiateMultipartUploadCommand.js +0 -98
  329. package/dist/es/commands/InitiateMultipartUploadCommand.js.map +0 -1
  330. package/dist/es/commands/InitiateVaultLockCommand.js +0 -99
  331. package/dist/es/commands/InitiateVaultLockCommand.js.map +0 -1
  332. package/dist/es/commands/ListJobsCommand.js +0 -100
  333. package/dist/es/commands/ListJobsCommand.js.map +0 -1
  334. package/dist/es/commands/ListMultipartUploadsCommand.js +0 -90
  335. package/dist/es/commands/ListMultipartUploadsCommand.js.map +0 -1
  336. package/dist/es/commands/ListPartsCommand.js +0 -86
  337. package/dist/es/commands/ListPartsCommand.js.map +0 -1
  338. package/dist/es/commands/ListProvisionedCapacityCommand.js.map +0 -1
  339. package/dist/es/commands/ListTagsForVaultCommand.js.map +0 -1
  340. package/dist/es/commands/ListVaultsCommand.js +0 -83
  341. package/dist/es/commands/ListVaultsCommand.js.map +0 -1
  342. package/dist/es/commands/PurchaseProvisionedCapacityCommand.js.map +0 -1
  343. package/dist/es/commands/RemoveTagsFromVaultCommand.js.map +0 -1
  344. package/dist/es/commands/SetDataRetrievalPolicyCommand.js.map +0 -1
  345. package/dist/es/commands/SetVaultAccessPolicyCommand.js.map +0 -1
  346. package/dist/es/commands/SetVaultNotificationsCommand.js +0 -102
  347. package/dist/es/commands/SetVaultNotificationsCommand.js.map +0 -1
  348. package/dist/es/commands/UploadArchiveCommand.js +0 -96
  349. package/dist/es/commands/UploadArchiveCommand.js.map +0 -1
  350. package/dist/es/commands/UploadMultipartPartCommand.js +0 -115
  351. package/dist/es/commands/UploadMultipartPartCommand.js.map +0 -1
  352. package/dist/es/endpoints.js.map +0 -1
  353. package/dist/es/index.js +0 -44
  354. package/dist/es/index.js.map +0 -1
  355. package/dist/es/models/index.js +0 -2
  356. package/dist/es/models/index.js.map +0 -1
  357. package/dist/es/models/models_0.js.map +0 -1
  358. package/dist/es/package.json +0 -95
  359. package/dist/es/pagination/Interfaces.js +0 -2
  360. package/dist/es/pagination/Interfaces.js.map +0 -1
  361. package/dist/es/pagination/ListJobsPaginator.js.map +0 -1
  362. package/dist/es/pagination/ListMultipartUploadsPaginator.js.map +0 -1
  363. package/dist/es/pagination/ListPartsPaginator.js.map +0 -1
  364. package/dist/es/pagination/ListVaultsPaginator.js.map +0 -1
  365. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  366. package/dist/es/runtimeConfig.browser.js.map +0 -1
  367. package/dist/es/runtimeConfig.js.map +0 -1
  368. package/dist/es/runtimeConfig.native.js.map +0 -1
  369. package/dist/es/runtimeConfig.shared.js.map +0 -1
  370. package/dist/es/waiters/waitForVaultExists.js.map +0 -1
  371. package/dist/es/waiters/waitForVaultNotExists.js.map +0 -1
  372. package/endpoints.ts +0 -91
  373. package/jest.config.js +0 -4
  374. package/models/models_0.ts +0 -2898
  375. package/pagination/Interfaces.ts +0 -7
  376. package/pagination/ListJobsPaginator.ts +0 -54
  377. package/pagination/ListMultipartUploadsPaginator.ts +0 -58
  378. package/pagination/ListPartsPaginator.ts +0 -54
  379. package/pagination/ListVaultsPaginator.ts +0 -54
  380. package/protocols/Aws_restJson1.ts +0 -5188
  381. package/runtimeConfig.browser.ts +0 -42
  382. package/runtimeConfig.native.ts +0 -16
  383. package/runtimeConfig.shared.ts +0 -16
  384. package/runtimeConfig.ts +0 -47
  385. package/tsconfig.es.json +0 -12
  386. package/tsconfig.json +0 -32
  387. package/waiters/waitForVaultExists.ts +0 -42
  388. package/waiters/waitForVaultNotExists.ts +0 -42
package/Glacier.ts DELETED
@@ -1,1789 +0,0 @@
1
- import { GlacierClient } from "./GlacierClient";
2
- import {
3
- AbortMultipartUploadCommand,
4
- AbortMultipartUploadCommandInput,
5
- AbortMultipartUploadCommandOutput,
6
- } from "./commands/AbortMultipartUploadCommand";
7
- import {
8
- AbortVaultLockCommand,
9
- AbortVaultLockCommandInput,
10
- AbortVaultLockCommandOutput,
11
- } from "./commands/AbortVaultLockCommand";
12
- import {
13
- AddTagsToVaultCommand,
14
- AddTagsToVaultCommandInput,
15
- AddTagsToVaultCommandOutput,
16
- } from "./commands/AddTagsToVaultCommand";
17
- import {
18
- CompleteMultipartUploadCommand,
19
- CompleteMultipartUploadCommandInput,
20
- CompleteMultipartUploadCommandOutput,
21
- } from "./commands/CompleteMultipartUploadCommand";
22
- import {
23
- CompleteVaultLockCommand,
24
- CompleteVaultLockCommandInput,
25
- CompleteVaultLockCommandOutput,
26
- } from "./commands/CompleteVaultLockCommand";
27
- import { CreateVaultCommand, CreateVaultCommandInput, CreateVaultCommandOutput } from "./commands/CreateVaultCommand";
28
- import {
29
- DeleteArchiveCommand,
30
- DeleteArchiveCommandInput,
31
- DeleteArchiveCommandOutput,
32
- } from "./commands/DeleteArchiveCommand";
33
- import {
34
- DeleteVaultAccessPolicyCommand,
35
- DeleteVaultAccessPolicyCommandInput,
36
- DeleteVaultAccessPolicyCommandOutput,
37
- } from "./commands/DeleteVaultAccessPolicyCommand";
38
- import { DeleteVaultCommand, DeleteVaultCommandInput, DeleteVaultCommandOutput } from "./commands/DeleteVaultCommand";
39
- import {
40
- DeleteVaultNotificationsCommand,
41
- DeleteVaultNotificationsCommandInput,
42
- DeleteVaultNotificationsCommandOutput,
43
- } from "./commands/DeleteVaultNotificationsCommand";
44
- import { DescribeJobCommand, DescribeJobCommandInput, DescribeJobCommandOutput } from "./commands/DescribeJobCommand";
45
- import {
46
- DescribeVaultCommand,
47
- DescribeVaultCommandInput,
48
- DescribeVaultCommandOutput,
49
- } from "./commands/DescribeVaultCommand";
50
- import {
51
- GetDataRetrievalPolicyCommand,
52
- GetDataRetrievalPolicyCommandInput,
53
- GetDataRetrievalPolicyCommandOutput,
54
- } from "./commands/GetDataRetrievalPolicyCommand";
55
- import {
56
- GetJobOutputCommand,
57
- GetJobOutputCommandInput,
58
- GetJobOutputCommandOutput,
59
- } from "./commands/GetJobOutputCommand";
60
- import {
61
- GetVaultAccessPolicyCommand,
62
- GetVaultAccessPolicyCommandInput,
63
- GetVaultAccessPolicyCommandOutput,
64
- } from "./commands/GetVaultAccessPolicyCommand";
65
- import {
66
- GetVaultLockCommand,
67
- GetVaultLockCommandInput,
68
- GetVaultLockCommandOutput,
69
- } from "./commands/GetVaultLockCommand";
70
- import {
71
- GetVaultNotificationsCommand,
72
- GetVaultNotificationsCommandInput,
73
- GetVaultNotificationsCommandOutput,
74
- } from "./commands/GetVaultNotificationsCommand";
75
- import { InitiateJobCommand, InitiateJobCommandInput, InitiateJobCommandOutput } from "./commands/InitiateJobCommand";
76
- import {
77
- InitiateMultipartUploadCommand,
78
- InitiateMultipartUploadCommandInput,
79
- InitiateMultipartUploadCommandOutput,
80
- } from "./commands/InitiateMultipartUploadCommand";
81
- import {
82
- InitiateVaultLockCommand,
83
- InitiateVaultLockCommandInput,
84
- InitiateVaultLockCommandOutput,
85
- } from "./commands/InitiateVaultLockCommand";
86
- import { ListJobsCommand, ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
87
- import {
88
- ListMultipartUploadsCommand,
89
- ListMultipartUploadsCommandInput,
90
- ListMultipartUploadsCommandOutput,
91
- } from "./commands/ListMultipartUploadsCommand";
92
- import { ListPartsCommand, ListPartsCommandInput, ListPartsCommandOutput } from "./commands/ListPartsCommand";
93
- import {
94
- ListProvisionedCapacityCommand,
95
- ListProvisionedCapacityCommandInput,
96
- ListProvisionedCapacityCommandOutput,
97
- } from "./commands/ListProvisionedCapacityCommand";
98
- import {
99
- ListTagsForVaultCommand,
100
- ListTagsForVaultCommandInput,
101
- ListTagsForVaultCommandOutput,
102
- } from "./commands/ListTagsForVaultCommand";
103
- import { ListVaultsCommand, ListVaultsCommandInput, ListVaultsCommandOutput } from "./commands/ListVaultsCommand";
104
- import {
105
- PurchaseProvisionedCapacityCommand,
106
- PurchaseProvisionedCapacityCommandInput,
107
- PurchaseProvisionedCapacityCommandOutput,
108
- } from "./commands/PurchaseProvisionedCapacityCommand";
109
- import {
110
- RemoveTagsFromVaultCommand,
111
- RemoveTagsFromVaultCommandInput,
112
- RemoveTagsFromVaultCommandOutput,
113
- } from "./commands/RemoveTagsFromVaultCommand";
114
- import {
115
- SetDataRetrievalPolicyCommand,
116
- SetDataRetrievalPolicyCommandInput,
117
- SetDataRetrievalPolicyCommandOutput,
118
- } from "./commands/SetDataRetrievalPolicyCommand";
119
- import {
120
- SetVaultAccessPolicyCommand,
121
- SetVaultAccessPolicyCommandInput,
122
- SetVaultAccessPolicyCommandOutput,
123
- } from "./commands/SetVaultAccessPolicyCommand";
124
- import {
125
- SetVaultNotificationsCommand,
126
- SetVaultNotificationsCommandInput,
127
- SetVaultNotificationsCommandOutput,
128
- } from "./commands/SetVaultNotificationsCommand";
129
- import {
130
- UploadArchiveCommand,
131
- UploadArchiveCommandInput,
132
- UploadArchiveCommandOutput,
133
- } from "./commands/UploadArchiveCommand";
134
- import {
135
- UploadMultipartPartCommand,
136
- UploadMultipartPartCommandInput,
137
- UploadMultipartPartCommandOutput,
138
- } from "./commands/UploadMultipartPartCommand";
139
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
140
-
141
- /**
142
- * <p> Amazon S3 Glacier (Glacier) is a storage solution for "cold data."</p>
143
- *
144
- * <p>Glacier is an extremely low-cost storage service that provides secure,
145
- * durable, and easy-to-use storage for data backup and archival. With Glacier,
146
- * customers can store their data cost effectively for months, years, or decades.
147
- * Glacier also enables customers to offload the administrative burdens of operating and
148
- * scaling storage to AWS, so they don't have to worry about capacity planning, hardware
149
- * provisioning, data replication, hardware failure and recovery, or time-consuming hardware
150
- * migrations.</p>
151
- *
152
- * <p>Glacier is a great storage choice when low storage cost is paramount and your
153
- * data is rarely retrieved. If your
154
- * application requires fast or frequent access to your data, consider using Amazon S3. For
155
- * more information, see <a href="http://aws.amazon.com/s3/">Amazon Simple Storage Service
156
- * (Amazon S3)</a>.</p>
157
- *
158
- * <p>You can store any kind of data in any format. There is no maximum limit on the total
159
- * amount of data you can store in Glacier.</p>
160
- *
161
- * <p>If you are a first-time user of Glacier, we recommend that you begin by
162
- * reading the following sections in the <i>Amazon S3 Glacier Developer
163
- * Guide</i>:</p>
164
- * <ul>
165
- * <li>
166
- * <p>
167
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html">What is
168
- * Amazon S3 Glacier</a> - This section of the Developer Guide describes the
169
- * underlying data model, the operations it supports, and the AWS SDKs that you can use
170
- * to interact with the service.</p>
171
- * </li>
172
- * <li>
173
- * <p>
174
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html">Getting Started
175
- * with Amazon S3 Glacier</a> - The Getting Started section walks you through the
176
- * process of creating a vault, uploading archives, creating jobs to download archives,
177
- * retrieving the job output, and deleting archives.</p>
178
- * </li>
179
- * </ul>
180
- */
181
- export class Glacier extends GlacierClient {
182
- /**
183
- * <p>This operation aborts a multipart upload identified by the upload ID.</p>
184
- *
185
- *
186
- * <p>After the Abort Multipart Upload request succeeds, you cannot upload any more parts
187
- * to the multipart upload or complete the multipart upload. Aborting a completed upload
188
- * fails. However, aborting an already-aborted upload will succeed, for a short time. For more
189
- * information about uploading a part and completing a multipart upload, see <a>UploadMultipartPart</a> and <a>CompleteMultipartUpload</a>.</p>
190
- *
191
- * <p>This operation is idempotent.</p>
192
- *
193
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
194
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
195
- * grant them explicit permission to perform specific actions. For more information, see
196
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
197
- * AWS Identity and Access Management (IAM)</a>.</p>
198
- * <p> For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html">Working with Archives in
199
- * Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-abort-upload.html">Abort Multipart
200
- * Upload</a> in the <i>Amazon Glacier Developer Guide</i>. </p>
201
- */
202
- public abortMultipartUpload(
203
- args: AbortMultipartUploadCommandInput,
204
- options?: __HttpHandlerOptions
205
- ): Promise<AbortMultipartUploadCommandOutput>;
206
- public abortMultipartUpload(
207
- args: AbortMultipartUploadCommandInput,
208
- cb: (err: any, data?: AbortMultipartUploadCommandOutput) => void
209
- ): void;
210
- public abortMultipartUpload(
211
- args: AbortMultipartUploadCommandInput,
212
- options: __HttpHandlerOptions,
213
- cb: (err: any, data?: AbortMultipartUploadCommandOutput) => void
214
- ): void;
215
- public abortMultipartUpload(
216
- args: AbortMultipartUploadCommandInput,
217
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AbortMultipartUploadCommandOutput) => void),
218
- cb?: (err: any, data?: AbortMultipartUploadCommandOutput) => void
219
- ): Promise<AbortMultipartUploadCommandOutput> | void {
220
- const command = new AbortMultipartUploadCommand(args);
221
- if (typeof optionsOrCb === "function") {
222
- this.send(command, optionsOrCb);
223
- } else if (typeof cb === "function") {
224
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
225
- this.send(command, optionsOrCb || {}, cb);
226
- } else {
227
- return this.send(command, optionsOrCb);
228
- }
229
- }
230
-
231
- /**
232
- * <p>This operation aborts the vault locking process if the vault lock is not in the
233
- * <code>Locked</code> state. If the vault lock is in the <code>Locked</code> state when
234
- * this operation is requested, the operation returns an <code>AccessDeniedException</code>
235
- * error. Aborting the vault locking process removes the vault lock policy from the specified
236
- * vault. </p>
237
- * <p>A vault lock is put into the <code>InProgress</code> state by calling <a>InitiateVaultLock</a>. A vault lock is put into the <code>Locked</code> state by
238
- * calling <a>CompleteVaultLock</a>. You can get the state of a vault lock by
239
- * calling <a>GetVaultLock</a>. For more information about the vault locking
240
- * process, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html">Amazon Glacier Vault Lock</a>. For more information about vault lock policies, see
241
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html">Amazon
242
- * Glacier Access Control with Vault Lock Policies</a>. </p>
243
- * <p>This operation is idempotent. You can successfully invoke this operation multiple
244
- * times, if the vault lock is in the <code>InProgress</code> state or if there is no policy
245
- * associated with the vault.</p>
246
- */
247
- public abortVaultLock(
248
- args: AbortVaultLockCommandInput,
249
- options?: __HttpHandlerOptions
250
- ): Promise<AbortVaultLockCommandOutput>;
251
- public abortVaultLock(
252
- args: AbortVaultLockCommandInput,
253
- cb: (err: any, data?: AbortVaultLockCommandOutput) => void
254
- ): void;
255
- public abortVaultLock(
256
- args: AbortVaultLockCommandInput,
257
- options: __HttpHandlerOptions,
258
- cb: (err: any, data?: AbortVaultLockCommandOutput) => void
259
- ): void;
260
- public abortVaultLock(
261
- args: AbortVaultLockCommandInput,
262
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AbortVaultLockCommandOutput) => void),
263
- cb?: (err: any, data?: AbortVaultLockCommandOutput) => void
264
- ): Promise<AbortVaultLockCommandOutput> | void {
265
- const command = new AbortVaultLockCommand(args);
266
- if (typeof optionsOrCb === "function") {
267
- this.send(command, optionsOrCb);
268
- } else if (typeof cb === "function") {
269
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
- this.send(command, optionsOrCb || {}, cb);
271
- } else {
272
- return this.send(command, optionsOrCb);
273
- }
274
- }
275
-
276
- /**
277
- * <p>This operation adds the specified tags to a vault. Each tag is composed of a key and
278
- * a value. Each vault can have up to 10 tags. If your request would cause the tag limit for
279
- * the vault to be exceeded, the operation throws the <code>LimitExceededException</code>
280
- * error. If a tag already exists on the vault under a specified key, the existing key value
281
- * will be overwritten. For more information about tags, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/tagging.html">Tagging Amazon S3 Glacier Resources</a>.
282
- * </p>
283
- */
284
- public addTagsToVault(
285
- args: AddTagsToVaultCommandInput,
286
- options?: __HttpHandlerOptions
287
- ): Promise<AddTagsToVaultCommandOutput>;
288
- public addTagsToVault(
289
- args: AddTagsToVaultCommandInput,
290
- cb: (err: any, data?: AddTagsToVaultCommandOutput) => void
291
- ): void;
292
- public addTagsToVault(
293
- args: AddTagsToVaultCommandInput,
294
- options: __HttpHandlerOptions,
295
- cb: (err: any, data?: AddTagsToVaultCommandOutput) => void
296
- ): void;
297
- public addTagsToVault(
298
- args: AddTagsToVaultCommandInput,
299
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AddTagsToVaultCommandOutput) => void),
300
- cb?: (err: any, data?: AddTagsToVaultCommandOutput) => void
301
- ): Promise<AddTagsToVaultCommandOutput> | void {
302
- const command = new AddTagsToVaultCommand(args);
303
- if (typeof optionsOrCb === "function") {
304
- this.send(command, optionsOrCb);
305
- } else if (typeof cb === "function") {
306
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
307
- this.send(command, optionsOrCb || {}, cb);
308
- } else {
309
- return this.send(command, optionsOrCb);
310
- }
311
- }
312
-
313
- /**
314
- * <p>You call this operation to inform Amazon S3 Glacier (Glacier) that all the archive parts have been
315
- * uploaded and that Glacier can now assemble the archive from the uploaded parts.
316
- * After assembling and saving the archive to the vault, Glacier returns the URI path
317
- * of the newly created archive resource. Using the URI path, you can then access the archive.
318
- * After you upload an archive, you should save the archive ID returned to retrieve the
319
- * archive at a later point. You can also get the vault inventory to obtain a list of archive
320
- * IDs in a vault. For more information, see <a>InitiateJob</a>.</p>
321
- *
322
- * <p>In the request, you must include the computed SHA256 tree hash of the entire archive
323
- * you have uploaded. For information about computing a SHA256 tree hash, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html">Computing
324
- * Checksums</a>. On the server side, Glacier also constructs the SHA256 tree
325
- * hash of the assembled archive. If the values match, Glacier saves the archive to the
326
- * vault; otherwise, it returns an error, and the operation fails. The <a>ListParts</a> operation returns a list of parts uploaded for a specific
327
- * multipart upload. It includes checksum information for each uploaded part that can be used
328
- * to debug a bad checksum issue.</p>
329
- *
330
- * <p>Additionally, Glacier also checks for any missing content ranges when
331
- * assembling the archive, if missing content ranges are found, Glacier returns an
332
- * error and the operation fails.</p>
333
- *
334
- * <p>Complete Multipart Upload is an idempotent operation. After your first successful
335
- * complete multipart upload, if you call the operation again within a short period, the
336
- * operation will succeed and return the same archive ID. This is useful in the event you
337
- * experience a network issue that causes an aborted connection or receive a 500 server error,
338
- * in which case you can repeat your Complete Multipart Upload request and get the same
339
- * archive ID without creating duplicate archives. Note, however, that after the multipart
340
- * upload completes, you cannot call the List Parts operation and the multipart upload will
341
- * not appear in List Multipart Uploads response, even if idempotent complete is
342
- * possible.</p>
343
- *
344
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
345
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
346
- * grant them explicit permission to perform specific actions. For more information, see
347
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
348
- * AWS Identity and Access Management (IAM)</a>.</p>
349
- * <p> For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html">Uploading Large Archives in
350
- * Parts (Multipart Upload)</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-complete-upload.html">Complete Multipart
351
- * Upload</a> in the <i>Amazon Glacier Developer Guide</i>. </p>
352
- */
353
- public completeMultipartUpload(
354
- args: CompleteMultipartUploadCommandInput,
355
- options?: __HttpHandlerOptions
356
- ): Promise<CompleteMultipartUploadCommandOutput>;
357
- public completeMultipartUpload(
358
- args: CompleteMultipartUploadCommandInput,
359
- cb: (err: any, data?: CompleteMultipartUploadCommandOutput) => void
360
- ): void;
361
- public completeMultipartUpload(
362
- args: CompleteMultipartUploadCommandInput,
363
- options: __HttpHandlerOptions,
364
- cb: (err: any, data?: CompleteMultipartUploadCommandOutput) => void
365
- ): void;
366
- public completeMultipartUpload(
367
- args: CompleteMultipartUploadCommandInput,
368
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CompleteMultipartUploadCommandOutput) => void),
369
- cb?: (err: any, data?: CompleteMultipartUploadCommandOutput) => void
370
- ): Promise<CompleteMultipartUploadCommandOutput> | void {
371
- const command = new CompleteMultipartUploadCommand(args);
372
- if (typeof optionsOrCb === "function") {
373
- this.send(command, optionsOrCb);
374
- } else if (typeof cb === "function") {
375
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
- this.send(command, optionsOrCb || {}, cb);
377
- } else {
378
- return this.send(command, optionsOrCb);
379
- }
380
- }
381
-
382
- /**
383
- * <p>This operation completes the vault locking process by transitioning the vault lock
384
- * from the <code>InProgress</code> state to the <code>Locked</code> state, which causes the
385
- * vault lock policy to become unchangeable. A vault lock is put into the
386
- * <code>InProgress</code> state by calling <a>InitiateVaultLock</a>. You can
387
- * obtain the state of the vault lock by calling <a>GetVaultLock</a>. For more
388
- * information about the vault locking process, <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html">Amazon Glacier Vault Lock</a>. </p>
389
- * <p>This operation is idempotent. This request is always successful if the vault lock is
390
- * in the <code>Locked</code> state and the provided lock ID matches the lock ID originally
391
- * used to lock the vault.</p>
392
- * <p>If an invalid lock ID is passed in the request when the vault lock is in the
393
- * <code>Locked</code> state, the operation returns an <code>AccessDeniedException</code>
394
- * error. If an invalid lock ID is passed in the request when the vault lock is in the
395
- * <code>InProgress</code> state, the operation throws an <code>InvalidParameter</code>
396
- * error.</p>
397
- */
398
- public completeVaultLock(
399
- args: CompleteVaultLockCommandInput,
400
- options?: __HttpHandlerOptions
401
- ): Promise<CompleteVaultLockCommandOutput>;
402
- public completeVaultLock(
403
- args: CompleteVaultLockCommandInput,
404
- cb: (err: any, data?: CompleteVaultLockCommandOutput) => void
405
- ): void;
406
- public completeVaultLock(
407
- args: CompleteVaultLockCommandInput,
408
- options: __HttpHandlerOptions,
409
- cb: (err: any, data?: CompleteVaultLockCommandOutput) => void
410
- ): void;
411
- public completeVaultLock(
412
- args: CompleteVaultLockCommandInput,
413
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CompleteVaultLockCommandOutput) => void),
414
- cb?: (err: any, data?: CompleteVaultLockCommandOutput) => void
415
- ): Promise<CompleteVaultLockCommandOutput> | void {
416
- const command = new CompleteVaultLockCommand(args);
417
- if (typeof optionsOrCb === "function") {
418
- this.send(command, optionsOrCb);
419
- } else if (typeof cb === "function") {
420
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
421
- this.send(command, optionsOrCb || {}, cb);
422
- } else {
423
- return this.send(command, optionsOrCb);
424
- }
425
- }
426
-
427
- /**
428
- * <p>This operation creates a new vault with the specified name. The name of the vault
429
- * must be unique within a region for an AWS account. You can create up to 1,000 vaults per
430
- * account. If you need to create more vaults, contact Amazon S3 Glacier.</p>
431
- * <p>You must use the following guidelines when naming a vault.</p>
432
- * <ul>
433
- * <li>
434
- * <p>Names can be between 1 and 255 characters long.</p>
435
- * </li>
436
- * <li>
437
- * <p>Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), and '.'
438
- * (period).</p>
439
- * </li>
440
- * </ul>
441
- *
442
- * <p>This operation is idempotent.</p>
443
- *
444
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
445
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
446
- * grant them explicit permission to perform specific actions. For more information, see
447
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
448
- * AWS Identity and Access Management (IAM)</a>.</p>
449
- * <p> For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/creating-vaults.html">Creating a Vault in Amazon
450
- * Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-put.html">Create Vault </a> in the
451
- * <i>Amazon Glacier Developer Guide</i>. </p>
452
- */
453
- public createVault(args: CreateVaultCommandInput, options?: __HttpHandlerOptions): Promise<CreateVaultCommandOutput>;
454
- public createVault(args: CreateVaultCommandInput, cb: (err: any, data?: CreateVaultCommandOutput) => void): void;
455
- public createVault(
456
- args: CreateVaultCommandInput,
457
- options: __HttpHandlerOptions,
458
- cb: (err: any, data?: CreateVaultCommandOutput) => void
459
- ): void;
460
- public createVault(
461
- args: CreateVaultCommandInput,
462
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateVaultCommandOutput) => void),
463
- cb?: (err: any, data?: CreateVaultCommandOutput) => void
464
- ): Promise<CreateVaultCommandOutput> | void {
465
- const command = new CreateVaultCommand(args);
466
- if (typeof optionsOrCb === "function") {
467
- this.send(command, optionsOrCb);
468
- } else if (typeof cb === "function") {
469
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
470
- this.send(command, optionsOrCb || {}, cb);
471
- } else {
472
- return this.send(command, optionsOrCb);
473
- }
474
- }
475
-
476
- /**
477
- * <p>This operation deletes an archive from a vault. Subsequent requests to initiate a
478
- * retrieval of this archive will fail. Archive retrievals that are in progress for this
479
- * archive ID may or may not succeed according to the following scenarios:</p>
480
- * <ul>
481
- * <li>
482
- * <p>If the archive retrieval job is actively preparing the data for download when
483
- * Amazon S3 Glacier receives the delete archive request, the archival retrieval operation
484
- * might fail.</p>
485
- * </li>
486
- * <li>
487
- * <p>If the archive retrieval job has successfully prepared the archive for download
488
- * when Amazon S3 Glacier receives the delete archive request, you will be able to download
489
- * the output.</p>
490
- * </li>
491
- * </ul>
492
- *
493
- * <p>This operation is idempotent. Attempting to delete an already-deleted archive does
494
- * not result in an error.</p>
495
- *
496
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
497
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
498
- * grant them explicit permission to perform specific actions. For more information, see
499
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
500
- * AWS Identity and Access Management (IAM)</a>.</p>
501
- * <p> For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-an-archive.html">Deleting an Archive in Amazon
502
- * Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-delete.html">Delete Archive</a> in the
503
- * <i>Amazon Glacier Developer Guide</i>. </p>
504
- */
505
- public deleteArchive(
506
- args: DeleteArchiveCommandInput,
507
- options?: __HttpHandlerOptions
508
- ): Promise<DeleteArchiveCommandOutput>;
509
- public deleteArchive(
510
- args: DeleteArchiveCommandInput,
511
- cb: (err: any, data?: DeleteArchiveCommandOutput) => void
512
- ): void;
513
- public deleteArchive(
514
- args: DeleteArchiveCommandInput,
515
- options: __HttpHandlerOptions,
516
- cb: (err: any, data?: DeleteArchiveCommandOutput) => void
517
- ): void;
518
- public deleteArchive(
519
- args: DeleteArchiveCommandInput,
520
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteArchiveCommandOutput) => void),
521
- cb?: (err: any, data?: DeleteArchiveCommandOutput) => void
522
- ): Promise<DeleteArchiveCommandOutput> | void {
523
- const command = new DeleteArchiveCommand(args);
524
- if (typeof optionsOrCb === "function") {
525
- this.send(command, optionsOrCb);
526
- } else if (typeof cb === "function") {
527
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
528
- this.send(command, optionsOrCb || {}, cb);
529
- } else {
530
- return this.send(command, optionsOrCb);
531
- }
532
- }
533
-
534
- /**
535
- * <p>This operation deletes a vault. Amazon S3 Glacier will delete a vault only if there are
536
- * no archives in the vault as of the last inventory and there have been no writes to the
537
- * vault since the last inventory. If either of these conditions is not satisfied, the vault
538
- * deletion fails (that is, the vault is not removed) and Amazon S3 Glacier returns an error. You
539
- * can use <a>DescribeVault</a> to return the number of archives in a vault, and
540
- * you can use <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html">Initiate a Job (POST
541
- * jobs)</a> to initiate a new inventory retrieval for a vault. The inventory contains
542
- * the archive IDs you use to delete archives using <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-delete.html">Delete Archive (DELETE
543
- * archive)</a>.</p>
544
- *
545
- * <p>This operation is idempotent.</p>
546
- *
547
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
548
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
549
- * grant them explicit permission to perform specific actions. For more information, see
550
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
551
- * AWS Identity and Access Management (IAM)</a>.</p>
552
- * <p> For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-vaults.html">Deleting a Vault in Amazon
553
- * Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-delete.html">Delete Vault </a> in the
554
- * <i>Amazon S3 Glacier Developer Guide</i>. </p>
555
- */
556
- public deleteVault(args: DeleteVaultCommandInput, options?: __HttpHandlerOptions): Promise<DeleteVaultCommandOutput>;
557
- public deleteVault(args: DeleteVaultCommandInput, cb: (err: any, data?: DeleteVaultCommandOutput) => void): void;
558
- public deleteVault(
559
- args: DeleteVaultCommandInput,
560
- options: __HttpHandlerOptions,
561
- cb: (err: any, data?: DeleteVaultCommandOutput) => void
562
- ): void;
563
- public deleteVault(
564
- args: DeleteVaultCommandInput,
565
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteVaultCommandOutput) => void),
566
- cb?: (err: any, data?: DeleteVaultCommandOutput) => void
567
- ): Promise<DeleteVaultCommandOutput> | void {
568
- const command = new DeleteVaultCommand(args);
569
- if (typeof optionsOrCb === "function") {
570
- this.send(command, optionsOrCb);
571
- } else if (typeof cb === "function") {
572
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
573
- this.send(command, optionsOrCb || {}, cb);
574
- } else {
575
- return this.send(command, optionsOrCb);
576
- }
577
- }
578
-
579
- /**
580
- * <p>This operation deletes the access policy associated with the specified vault. The
581
- * operation is eventually consistent; that is, it might take some time for Amazon S3 Glacier to
582
- * completely remove the access policy, and you might still see the effect of the policy for a
583
- * short time after you send the delete request.</p>
584
- * <p>This operation is idempotent. You can invoke delete multiple times, even if there is
585
- * no policy associated with the vault. For more information about vault access policies, see
586
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html">Amazon Glacier Access Control with Vault Access Policies</a>. </p>
587
- */
588
- public deleteVaultAccessPolicy(
589
- args: DeleteVaultAccessPolicyCommandInput,
590
- options?: __HttpHandlerOptions
591
- ): Promise<DeleteVaultAccessPolicyCommandOutput>;
592
- public deleteVaultAccessPolicy(
593
- args: DeleteVaultAccessPolicyCommandInput,
594
- cb: (err: any, data?: DeleteVaultAccessPolicyCommandOutput) => void
595
- ): void;
596
- public deleteVaultAccessPolicy(
597
- args: DeleteVaultAccessPolicyCommandInput,
598
- options: __HttpHandlerOptions,
599
- cb: (err: any, data?: DeleteVaultAccessPolicyCommandOutput) => void
600
- ): void;
601
- public deleteVaultAccessPolicy(
602
- args: DeleteVaultAccessPolicyCommandInput,
603
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteVaultAccessPolicyCommandOutput) => void),
604
- cb?: (err: any, data?: DeleteVaultAccessPolicyCommandOutput) => void
605
- ): Promise<DeleteVaultAccessPolicyCommandOutput> | void {
606
- const command = new DeleteVaultAccessPolicyCommand(args);
607
- if (typeof optionsOrCb === "function") {
608
- this.send(command, optionsOrCb);
609
- } else if (typeof cb === "function") {
610
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
611
- this.send(command, optionsOrCb || {}, cb);
612
- } else {
613
- return this.send(command, optionsOrCb);
614
- }
615
- }
616
-
617
- /**
618
- * <p>This operation deletes the notification configuration set for a vault. The operation
619
- * is eventually consistent; that is, it might take some time for Amazon S3 Glacier to completely
620
- * disable the notifications and you might still receive some notifications for a short time
621
- * after you send the delete request.</p>
622
- *
623
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
624
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
625
- * grant them explicit permission to perform specific actions. For more information, see
626
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access
627
- * Control Using AWS Identity and Access Management (IAM)</a>.</p>
628
- * <p> For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html">Configuring Vault
629
- * Notifications in Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-delete.html">Delete Vault
630
- * Notification Configuration </a> in the Amazon S3 Glacier Developer Guide. </p>
631
- */
632
- public deleteVaultNotifications(
633
- args: DeleteVaultNotificationsCommandInput,
634
- options?: __HttpHandlerOptions
635
- ): Promise<DeleteVaultNotificationsCommandOutput>;
636
- public deleteVaultNotifications(
637
- args: DeleteVaultNotificationsCommandInput,
638
- cb: (err: any, data?: DeleteVaultNotificationsCommandOutput) => void
639
- ): void;
640
- public deleteVaultNotifications(
641
- args: DeleteVaultNotificationsCommandInput,
642
- options: __HttpHandlerOptions,
643
- cb: (err: any, data?: DeleteVaultNotificationsCommandOutput) => void
644
- ): void;
645
- public deleteVaultNotifications(
646
- args: DeleteVaultNotificationsCommandInput,
647
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteVaultNotificationsCommandOutput) => void),
648
- cb?: (err: any, data?: DeleteVaultNotificationsCommandOutput) => void
649
- ): Promise<DeleteVaultNotificationsCommandOutput> | void {
650
- const command = new DeleteVaultNotificationsCommand(args);
651
- if (typeof optionsOrCb === "function") {
652
- this.send(command, optionsOrCb);
653
- } else if (typeof cb === "function") {
654
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
655
- this.send(command, optionsOrCb || {}, cb);
656
- } else {
657
- return this.send(command, optionsOrCb);
658
- }
659
- }
660
-
661
- /**
662
- * <p>This operation returns information about a job you previously initiated, including
663
- * the job initiation date, the user who initiated the job, the job status code/message and
664
- * the Amazon SNS topic to notify after Amazon S3 Glacier (Glacier) completes the job. For more information
665
- * about initiating a job, see <a>InitiateJob</a>. </p>
666
- *
667
- * <note>
668
- * <p>This operation enables you to check the status of your job. However, it is
669
- * strongly recommended that you set up an Amazon SNS topic and specify it in your initiate
670
- * job request so that Glacier can notify the topic after it completes the
671
- * job.</p>
672
- * </note>
673
- *
674
- * <p>A job ID will not expire for at least 24 hours after Glacier completes the
675
- * job.</p>
676
- *
677
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
678
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
679
- * grant them explicit permission to perform specific actions. For more information, see
680
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
681
- * AWS Identity and Access Management (IAM)</a>.</p>
682
- *
683
- * <p> For more information about using this operation,
684
- * see the documentation for the underlying REST API <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-describe-job-get.html">Describe Job</a>
685
- * in the <i>Amazon Glacier Developer Guide</i>. </p>
686
- */
687
- public describeJob(args: DescribeJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobCommandOutput>;
688
- public describeJob(args: DescribeJobCommandInput, cb: (err: any, data?: DescribeJobCommandOutput) => void): void;
689
- public describeJob(
690
- args: DescribeJobCommandInput,
691
- options: __HttpHandlerOptions,
692
- cb: (err: any, data?: DescribeJobCommandOutput) => void
693
- ): void;
694
- public describeJob(
695
- args: DescribeJobCommandInput,
696
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeJobCommandOutput) => void),
697
- cb?: (err: any, data?: DescribeJobCommandOutput) => void
698
- ): Promise<DescribeJobCommandOutput> | void {
699
- const command = new DescribeJobCommand(args);
700
- if (typeof optionsOrCb === "function") {
701
- this.send(command, optionsOrCb);
702
- } else if (typeof cb === "function") {
703
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
704
- this.send(command, optionsOrCb || {}, cb);
705
- } else {
706
- return this.send(command, optionsOrCb);
707
- }
708
- }
709
-
710
- /**
711
- * <p>This operation returns information about a vault, including the vault's Amazon
712
- * Resource Name (ARN), the date the vault was created, the number of archives it contains,
713
- * and the total size of all the archives in the vault. The number of archives and their total
714
- * size are as of the last inventory generation. This means that if you add or remove an
715
- * archive from a vault, and then immediately use Describe Vault, the change in contents will
716
- * not be immediately reflected. If you want to retrieve the latest inventory of the vault,
717
- * use <a>InitiateJob</a>. Amazon S3 Glacier generates vault inventories approximately
718
- * daily. For more information, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-inventory.html">Downloading a Vault Inventory in
719
- * Amazon S3 Glacier</a>. </p>
720
- *
721
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
722
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
723
- * grant them explicit permission to perform specific actions. For more information, see
724
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
725
- * AWS Identity and Access Management (IAM)</a>.</p>
726
- * <p>For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/retrieving-vault-info.html">Retrieving Vault Metadata in
727
- * Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-get.html">Describe Vault </a> in the
728
- * <i>Amazon Glacier Developer Guide</i>. </p>
729
- */
730
- public describeVault(
731
- args: DescribeVaultCommandInput,
732
- options?: __HttpHandlerOptions
733
- ): Promise<DescribeVaultCommandOutput>;
734
- public describeVault(
735
- args: DescribeVaultCommandInput,
736
- cb: (err: any, data?: DescribeVaultCommandOutput) => void
737
- ): void;
738
- public describeVault(
739
- args: DescribeVaultCommandInput,
740
- options: __HttpHandlerOptions,
741
- cb: (err: any, data?: DescribeVaultCommandOutput) => void
742
- ): void;
743
- public describeVault(
744
- args: DescribeVaultCommandInput,
745
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeVaultCommandOutput) => void),
746
- cb?: (err: any, data?: DescribeVaultCommandOutput) => void
747
- ): Promise<DescribeVaultCommandOutput> | void {
748
- const command = new DescribeVaultCommand(args);
749
- if (typeof optionsOrCb === "function") {
750
- this.send(command, optionsOrCb);
751
- } else if (typeof cb === "function") {
752
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
753
- this.send(command, optionsOrCb || {}, cb);
754
- } else {
755
- return this.send(command, optionsOrCb);
756
- }
757
- }
758
-
759
- /**
760
- * <p>This operation returns the current data retrieval policy for the account and region
761
- * specified in the GET request. For more information about data retrieval policies, see
762
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/data-retrieval-policy.html">Amazon Glacier Data Retrieval Policies</a>.</p>
763
- */
764
- public getDataRetrievalPolicy(
765
- args: GetDataRetrievalPolicyCommandInput,
766
- options?: __HttpHandlerOptions
767
- ): Promise<GetDataRetrievalPolicyCommandOutput>;
768
- public getDataRetrievalPolicy(
769
- args: GetDataRetrievalPolicyCommandInput,
770
- cb: (err: any, data?: GetDataRetrievalPolicyCommandOutput) => void
771
- ): void;
772
- public getDataRetrievalPolicy(
773
- args: GetDataRetrievalPolicyCommandInput,
774
- options: __HttpHandlerOptions,
775
- cb: (err: any, data?: GetDataRetrievalPolicyCommandOutput) => void
776
- ): void;
777
- public getDataRetrievalPolicy(
778
- args: GetDataRetrievalPolicyCommandInput,
779
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDataRetrievalPolicyCommandOutput) => void),
780
- cb?: (err: any, data?: GetDataRetrievalPolicyCommandOutput) => void
781
- ): Promise<GetDataRetrievalPolicyCommandOutput> | void {
782
- const command = new GetDataRetrievalPolicyCommand(args);
783
- if (typeof optionsOrCb === "function") {
784
- this.send(command, optionsOrCb);
785
- } else if (typeof cb === "function") {
786
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
787
- this.send(command, optionsOrCb || {}, cb);
788
- } else {
789
- return this.send(command, optionsOrCb);
790
- }
791
- }
792
-
793
- /**
794
- * <p>This operation downloads the output of the job you initiated using <a>InitiateJob</a>. Depending on the job type you specified when you initiated the
795
- * job, the output will be either the content of an archive or a vault inventory.</p>
796
- *
797
- * <p>You can download all the job output or download a portion of the output by specifying
798
- * a byte range. In the case of an archive retrieval job, depending on the byte range you
799
- * specify, Amazon S3 Glacier (Glacier) returns the checksum for the portion of the data. You can compute the
800
- * checksum on the client and verify that the values match to ensure the portion you downloaded
801
- * is the correct data.</p>
802
- * <p>A job ID will not expire for at least 24 hours after Glacier completes the job. That
803
- * a byte range. For both archive and inventory retrieval jobs, you should verify the downloaded
804
- * size against the size returned in the headers from the
805
- * <b>Get Job Output</b> response.</p>
806
- * <p>For archive retrieval jobs, you should also verify that the size is what you expected. If
807
- * you download a portion of the output, the expected size is based on the range of bytes
808
- * you specified. For example, if you specify a range of <code>bytes=0-1048575</code>, you should
809
- * verify your download size is 1,048,576 bytes. If you download an entire archive, the
810
- * expected size is the size of the archive when you uploaded it to Amazon S3 Glacier
811
- * The expected size is also returned in the headers from the
812
- * <b>Get Job Output</b> response.</p>
813
- * <p>In the case of an archive retrieval job, depending on the byte range you
814
- * specify, Glacier returns the checksum for the portion of the data. To ensure the portion you downloaded
815
- * is the correct data, compute the checksum on the client, verify that the values match,
816
- * and verify that the size is what you expected.</p>
817
- *
818
- * <p>A job ID does not expire for at least 24 hours after Glacier completes the
819
- * job. That is, you can download the job output within the 24 hours period after Amazon
820
- * Glacier completes the job.</p>
821
- *
822
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
823
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
824
- * grant them explicit permission to perform specific actions. For more information, see
825
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
826
- * AWS Identity and Access Management (IAM)</a>.</p>
827
- * <p>For conceptual information and the underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-inventory.html">Downloading a
828
- * Vault Inventory</a>, <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/downloading-an-archive.html">Downloading an
829
- * Archive</a>, and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-job-output-get.html">Get Job Output </a>
830
- * </p>
831
- */
832
- public getJobOutput(
833
- args: GetJobOutputCommandInput,
834
- options?: __HttpHandlerOptions
835
- ): Promise<GetJobOutputCommandOutput>;
836
- public getJobOutput(args: GetJobOutputCommandInput, cb: (err: any, data?: GetJobOutputCommandOutput) => void): void;
837
- public getJobOutput(
838
- args: GetJobOutputCommandInput,
839
- options: __HttpHandlerOptions,
840
- cb: (err: any, data?: GetJobOutputCommandOutput) => void
841
- ): void;
842
- public getJobOutput(
843
- args: GetJobOutputCommandInput,
844
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetJobOutputCommandOutput) => void),
845
- cb?: (err: any, data?: GetJobOutputCommandOutput) => void
846
- ): Promise<GetJobOutputCommandOutput> | void {
847
- const command = new GetJobOutputCommand(args);
848
- if (typeof optionsOrCb === "function") {
849
- this.send(command, optionsOrCb);
850
- } else if (typeof cb === "function") {
851
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
852
- this.send(command, optionsOrCb || {}, cb);
853
- } else {
854
- return this.send(command, optionsOrCb);
855
- }
856
- }
857
-
858
- /**
859
- * <p>This operation retrieves the <code>access-policy</code> subresource set on the vault;
860
- * for more information on setting this subresource, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-SetVaultAccessPolicy.html">Set Vault Access Policy
861
- * (PUT access-policy)</a>. If there is no access policy set on the vault, the
862
- * operation returns a <code>404 Not found</code> error. For more information about vault
863
- * access policies, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html">Amazon Glacier Access Control
864
- * with Vault Access Policies</a>.</p>
865
- */
866
- public getVaultAccessPolicy(
867
- args: GetVaultAccessPolicyCommandInput,
868
- options?: __HttpHandlerOptions
869
- ): Promise<GetVaultAccessPolicyCommandOutput>;
870
- public getVaultAccessPolicy(
871
- args: GetVaultAccessPolicyCommandInput,
872
- cb: (err: any, data?: GetVaultAccessPolicyCommandOutput) => void
873
- ): void;
874
- public getVaultAccessPolicy(
875
- args: GetVaultAccessPolicyCommandInput,
876
- options: __HttpHandlerOptions,
877
- cb: (err: any, data?: GetVaultAccessPolicyCommandOutput) => void
878
- ): void;
879
- public getVaultAccessPolicy(
880
- args: GetVaultAccessPolicyCommandInput,
881
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetVaultAccessPolicyCommandOutput) => void),
882
- cb?: (err: any, data?: GetVaultAccessPolicyCommandOutput) => void
883
- ): Promise<GetVaultAccessPolicyCommandOutput> | void {
884
- const command = new GetVaultAccessPolicyCommand(args);
885
- if (typeof optionsOrCb === "function") {
886
- this.send(command, optionsOrCb);
887
- } else if (typeof cb === "function") {
888
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
889
- this.send(command, optionsOrCb || {}, cb);
890
- } else {
891
- return this.send(command, optionsOrCb);
892
- }
893
- }
894
-
895
- /**
896
- * <p>This operation retrieves the following attributes from the <code>lock-policy</code>
897
- * subresource set on the specified vault: </p>
898
- * <ul>
899
- * <li>
900
- * <p>The vault lock policy set on the vault.</p>
901
- * </li>
902
- * <li>
903
- * <p>The state of the vault lock, which is either <code>InProgess</code> or
904
- * <code>Locked</code>.</p>
905
- * </li>
906
- * <li>
907
- * <p>When the lock ID expires. The lock ID is used to complete the vault locking
908
- * process.</p>
909
- * </li>
910
- * <li>
911
- * <p>When the vault lock was initiated and put into the <code>InProgress</code>
912
- * state.</p>
913
- * </li>
914
- * </ul>
915
- *
916
- * <p>A vault lock is put into the <code>InProgress</code> state by calling <a>InitiateVaultLock</a>. A vault lock is put into the <code>Locked</code> state by
917
- * calling <a>CompleteVaultLock</a>. You can abort the vault locking process by
918
- * calling <a>AbortVaultLock</a>. For more information about the vault locking
919
- * process, <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html">Amazon
920
- * Glacier Vault Lock</a>. </p>
921
- * <p>If there is no vault lock policy set on the vault, the operation returns a <code>404
922
- * Not found</code> error. For more information about vault lock policies, <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html">Amazon
923
- * Glacier Access Control with Vault Lock Policies</a>. </p>
924
- */
925
- public getVaultLock(
926
- args: GetVaultLockCommandInput,
927
- options?: __HttpHandlerOptions
928
- ): Promise<GetVaultLockCommandOutput>;
929
- public getVaultLock(args: GetVaultLockCommandInput, cb: (err: any, data?: GetVaultLockCommandOutput) => void): void;
930
- public getVaultLock(
931
- args: GetVaultLockCommandInput,
932
- options: __HttpHandlerOptions,
933
- cb: (err: any, data?: GetVaultLockCommandOutput) => void
934
- ): void;
935
- public getVaultLock(
936
- args: GetVaultLockCommandInput,
937
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetVaultLockCommandOutput) => void),
938
- cb?: (err: any, data?: GetVaultLockCommandOutput) => void
939
- ): Promise<GetVaultLockCommandOutput> | void {
940
- const command = new GetVaultLockCommand(args);
941
- if (typeof optionsOrCb === "function") {
942
- this.send(command, optionsOrCb);
943
- } else if (typeof cb === "function") {
944
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
945
- this.send(command, optionsOrCb || {}, cb);
946
- } else {
947
- return this.send(command, optionsOrCb);
948
- }
949
- }
950
-
951
- /**
952
- * <p>This operation retrieves the <code>notification-configuration</code> subresource of
953
- * the specified vault.</p>
954
- *
955
- * <p>For information about setting a notification configuration on a vault, see <a>SetVaultNotifications</a>. If a notification configuration for a vault is not
956
- * set, the operation returns a <code>404 Not Found</code> error. For more information about
957
- * vault notifications, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html">Configuring Vault
958
- * Notifications in Amazon S3 Glacier</a>. </p>
959
- *
960
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
961
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
962
- * grant them explicit permission to perform specific actions. For more information, see
963
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
964
- * AWS Identity and Access Management (IAM)</a>.</p>
965
- * <p>For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html">Configuring Vault
966
- * Notifications in Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-get.html">Get Vault Notification
967
- * Configuration </a> in the <i>Amazon Glacier Developer Guide</i>. </p>
968
- */
969
- public getVaultNotifications(
970
- args: GetVaultNotificationsCommandInput,
971
- options?: __HttpHandlerOptions
972
- ): Promise<GetVaultNotificationsCommandOutput>;
973
- public getVaultNotifications(
974
- args: GetVaultNotificationsCommandInput,
975
- cb: (err: any, data?: GetVaultNotificationsCommandOutput) => void
976
- ): void;
977
- public getVaultNotifications(
978
- args: GetVaultNotificationsCommandInput,
979
- options: __HttpHandlerOptions,
980
- cb: (err: any, data?: GetVaultNotificationsCommandOutput) => void
981
- ): void;
982
- public getVaultNotifications(
983
- args: GetVaultNotificationsCommandInput,
984
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetVaultNotificationsCommandOutput) => void),
985
- cb?: (err: any, data?: GetVaultNotificationsCommandOutput) => void
986
- ): Promise<GetVaultNotificationsCommandOutput> | void {
987
- const command = new GetVaultNotificationsCommand(args);
988
- if (typeof optionsOrCb === "function") {
989
- this.send(command, optionsOrCb);
990
- } else if (typeof cb === "function") {
991
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
992
- this.send(command, optionsOrCb || {}, cb);
993
- } else {
994
- return this.send(command, optionsOrCb);
995
- }
996
- }
997
-
998
- /**
999
- * <p>This operation initiates a job of the specified type, which can be a select, an archival retrieval,
1000
- * or a vault retrieval. For more information about using this operation,
1001
- * see the documentation for the underlying REST API <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-initiate-job-post.html">Initiate
1002
- * a Job</a>.
1003
- * </p>
1004
- */
1005
- public initiateJob(args: InitiateJobCommandInput, options?: __HttpHandlerOptions): Promise<InitiateJobCommandOutput>;
1006
- public initiateJob(args: InitiateJobCommandInput, cb: (err: any, data?: InitiateJobCommandOutput) => void): void;
1007
- public initiateJob(
1008
- args: InitiateJobCommandInput,
1009
- options: __HttpHandlerOptions,
1010
- cb: (err: any, data?: InitiateJobCommandOutput) => void
1011
- ): void;
1012
- public initiateJob(
1013
- args: InitiateJobCommandInput,
1014
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: InitiateJobCommandOutput) => void),
1015
- cb?: (err: any, data?: InitiateJobCommandOutput) => void
1016
- ): Promise<InitiateJobCommandOutput> | void {
1017
- const command = new InitiateJobCommand(args);
1018
- if (typeof optionsOrCb === "function") {
1019
- this.send(command, optionsOrCb);
1020
- } else if (typeof cb === "function") {
1021
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1022
- this.send(command, optionsOrCb || {}, cb);
1023
- } else {
1024
- return this.send(command, optionsOrCb);
1025
- }
1026
- }
1027
-
1028
- /**
1029
- * <p>This operation initiates a multipart upload. Amazon S3 Glacier creates a multipart
1030
- * upload resource and returns its ID in the response. The multipart upload ID is used in
1031
- * subsequent requests to upload parts of an archive (see <a>UploadMultipartPart</a>).</p>
1032
- *
1033
- * <p>When you initiate a multipart upload, you specify the part size in number of bytes.
1034
- * The part size must be a megabyte (1024 KB) multiplied by a power of 2-for example, 1048576
1035
- * (1 MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum allowable
1036
- * part size is 1 MB, and the maximum is 4 GB.</p>
1037
- *
1038
- * <p>Every part you upload to this resource (see <a>UploadMultipartPart</a>),
1039
- * except the last one, must have the same size. The last one can be the same size or smaller.
1040
- * For example, suppose you want to upload a 16.2 MB file. If you initiate the multipart
1041
- * upload with a part size of 4 MB, you will upload four parts of 4 MB each and one part of
1042
- * 0.2 MB. </p>
1043
- *
1044
- * <note>
1045
- * <p>You don't need to know the size of the archive when you start a multipart upload
1046
- * because Amazon S3 Glacier does not require you to specify the overall archive
1047
- * size.</p>
1048
- * </note>
1049
- *
1050
- * <p>After you complete the multipart upload, Amazon S3 Glacier (Glacier) removes the multipart upload
1051
- * resource referenced by the ID. Glacier also removes the multipart upload resource if
1052
- * you cancel the multipart upload or it may be removed if there is no activity for a period
1053
- * of 24 hours.</p>
1054
- *
1055
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
1056
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
1057
- * grant them explicit permission to perform specific actions. For more information, see
1058
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
1059
- * AWS Identity and Access Management (IAM)</a>.</p>
1060
- * <p>For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html">Uploading Large Archives in
1061
- * Parts (Multipart Upload)</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-initiate-upload.html">Initiate Multipart
1062
- * Upload</a> in the <i>Amazon Glacier Developer Guide</i>.</p>
1063
- */
1064
- public initiateMultipartUpload(
1065
- args: InitiateMultipartUploadCommandInput,
1066
- options?: __HttpHandlerOptions
1067
- ): Promise<InitiateMultipartUploadCommandOutput>;
1068
- public initiateMultipartUpload(
1069
- args: InitiateMultipartUploadCommandInput,
1070
- cb: (err: any, data?: InitiateMultipartUploadCommandOutput) => void
1071
- ): void;
1072
- public initiateMultipartUpload(
1073
- args: InitiateMultipartUploadCommandInput,
1074
- options: __HttpHandlerOptions,
1075
- cb: (err: any, data?: InitiateMultipartUploadCommandOutput) => void
1076
- ): void;
1077
- public initiateMultipartUpload(
1078
- args: InitiateMultipartUploadCommandInput,
1079
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: InitiateMultipartUploadCommandOutput) => void),
1080
- cb?: (err: any, data?: InitiateMultipartUploadCommandOutput) => void
1081
- ): Promise<InitiateMultipartUploadCommandOutput> | void {
1082
- const command = new InitiateMultipartUploadCommand(args);
1083
- if (typeof optionsOrCb === "function") {
1084
- this.send(command, optionsOrCb);
1085
- } else if (typeof cb === "function") {
1086
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1087
- this.send(command, optionsOrCb || {}, cb);
1088
- } else {
1089
- return this.send(command, optionsOrCb);
1090
- }
1091
- }
1092
-
1093
- /**
1094
- * <p>This operation initiates the vault locking process by doing the following:</p>
1095
- * <ul>
1096
- * <li>
1097
- * <p>Installing a vault lock policy on the specified vault.</p>
1098
- * </li>
1099
- * <li>
1100
- * <p>Setting the lock state of vault lock to <code>InProgress</code>.</p>
1101
- * </li>
1102
- * <li>
1103
- * <p>Returning a lock ID, which is used to complete the vault locking
1104
- * process.</p>
1105
- * </li>
1106
- * </ul>
1107
- *
1108
- * <p>You can set one vault lock policy for each vault and this policy can be up to 20 KB
1109
- * in size. For more information about vault lock policies, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock-policy.html">Amazon Glacier Access Control with
1110
- * Vault Lock Policies</a>. </p>
1111
- * <p>You must complete the vault locking process within 24 hours after the vault lock
1112
- * enters the <code>InProgress</code> state. After the 24 hour window ends, the lock ID
1113
- * expires, the vault automatically exits the <code>InProgress</code> state, and the vault
1114
- * lock policy is removed from the vault. You call <a>CompleteVaultLock</a> to
1115
- * complete the vault locking process by setting the state of the vault lock to
1116
- * <code>Locked</code>. </p>
1117
- * <p>After a vault lock is in the <code>Locked</code> state, you cannot initiate a new
1118
- * vault lock for the vault.</p>
1119
- *
1120
- * <p>You can abort the vault locking process by calling <a>AbortVaultLock</a>.
1121
- * You can get the state of the vault lock by calling <a>GetVaultLock</a>. For more
1122
- * information about the vault locking process, <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html">Amazon Glacier Vault
1123
- * Lock</a>.</p>
1124
- *
1125
- * <p>If this operation is called when the vault lock is in the <code>InProgress</code>
1126
- * state, the operation returns an <code>AccessDeniedException</code> error. When the vault
1127
- * lock is in the <code>InProgress</code> state you must call <a>AbortVaultLock</a>
1128
- * before you can initiate a new vault lock policy. </p>
1129
- */
1130
- public initiateVaultLock(
1131
- args: InitiateVaultLockCommandInput,
1132
- options?: __HttpHandlerOptions
1133
- ): Promise<InitiateVaultLockCommandOutput>;
1134
- public initiateVaultLock(
1135
- args: InitiateVaultLockCommandInput,
1136
- cb: (err: any, data?: InitiateVaultLockCommandOutput) => void
1137
- ): void;
1138
- public initiateVaultLock(
1139
- args: InitiateVaultLockCommandInput,
1140
- options: __HttpHandlerOptions,
1141
- cb: (err: any, data?: InitiateVaultLockCommandOutput) => void
1142
- ): void;
1143
- public initiateVaultLock(
1144
- args: InitiateVaultLockCommandInput,
1145
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: InitiateVaultLockCommandOutput) => void),
1146
- cb?: (err: any, data?: InitiateVaultLockCommandOutput) => void
1147
- ): Promise<InitiateVaultLockCommandOutput> | void {
1148
- const command = new InitiateVaultLockCommand(args);
1149
- if (typeof optionsOrCb === "function") {
1150
- this.send(command, optionsOrCb);
1151
- } else if (typeof cb === "function") {
1152
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1153
- this.send(command, optionsOrCb || {}, cb);
1154
- } else {
1155
- return this.send(command, optionsOrCb);
1156
- }
1157
- }
1158
-
1159
- /**
1160
- * <p>This operation lists jobs for a vault, including jobs that are in-progress and jobs
1161
- * that have recently finished. The List Job operation returns a list of these jobs sorted by job initiation
1162
- * time.</p>
1163
- *
1164
- * <note>
1165
- * <p>Amazon Glacier retains recently completed jobs for a period before deleting them;
1166
- * however, it eventually removes completed jobs. The output of completed jobs can be
1167
- * retrieved. Retaining completed jobs for a period of time after they have completed
1168
- * enables you to get a job output in the event you miss the job completion notification or
1169
- * your first attempt to download it fails. For example, suppose you start an archive
1170
- * retrieval job to download an archive. After the job completes, you start to download the
1171
- * archive but encounter a network error. In this scenario, you can retry and download the
1172
- * archive while the job exists.</p>
1173
- * </note>
1174
- *
1175
- * <p>The List Jobs operation supports pagination. You should always check the response <code>Marker</code> field.
1176
- * If there are no more jobs to list, the <code>Marker</code> field is set to <code>null</code>. If there are more jobs to list,
1177
- * the <code>Marker</code> field is set to a non-null value, which you can use to continue the pagination of the list.
1178
- * To return a list of jobs that begins at a specific job,
1179
- * set the marker request parameter to the <code>Marker</code> value for that job that you obtained from a previous List Jobs request.</p>
1180
- *
1181
- * <p>You can set a maximum limit for the number of jobs returned in the response by
1182
- * specifying the <code>limit</code> parameter in the request. The default limit is 50. The
1183
- * number of jobs returned might be fewer than the limit, but the number of returned jobs
1184
- * never exceeds the limit.</p>
1185
- *
1186
- * <p>Additionally, you can filter the jobs list returned by specifying the optional
1187
- * <code>statuscode</code> parameter or <code>completed</code> parameter, or both. Using
1188
- * the <code>statuscode</code> parameter, you can specify to return only jobs that match
1189
- * either the <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code> status.
1190
- * Using the <code>completed</code> parameter, you can specify to return only jobs that were
1191
- * completed (<code>true</code>) or jobs that were not completed
1192
- * (<code>false</code>).</p>
1193
- *
1194
- * <p>For more information about using this operation,
1195
- * see the documentation for the underlying REST API <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-jobs-get.html">List Jobs</a>. </p>
1196
- */
1197
- public listJobs(args: ListJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListJobsCommandOutput>;
1198
- public listJobs(args: ListJobsCommandInput, cb: (err: any, data?: ListJobsCommandOutput) => void): void;
1199
- public listJobs(
1200
- args: ListJobsCommandInput,
1201
- options: __HttpHandlerOptions,
1202
- cb: (err: any, data?: ListJobsCommandOutput) => void
1203
- ): void;
1204
- public listJobs(
1205
- args: ListJobsCommandInput,
1206
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListJobsCommandOutput) => void),
1207
- cb?: (err: any, data?: ListJobsCommandOutput) => void
1208
- ): Promise<ListJobsCommandOutput> | void {
1209
- const command = new ListJobsCommand(args);
1210
- if (typeof optionsOrCb === "function") {
1211
- this.send(command, optionsOrCb);
1212
- } else if (typeof cb === "function") {
1213
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1214
- this.send(command, optionsOrCb || {}, cb);
1215
- } else {
1216
- return this.send(command, optionsOrCb);
1217
- }
1218
- }
1219
-
1220
- /**
1221
- * <p>This operation lists in-progress multipart uploads for the specified vault. An
1222
- * in-progress multipart upload is a multipart upload that has been initiated by an <a>InitiateMultipartUpload</a> request, but has not yet been completed or aborted.
1223
- * The list returned in the List Multipart Upload response has no guaranteed order. </p>
1224
- *
1225
- * <p>The List Multipart Uploads operation supports pagination. By default, this operation
1226
- * returns up to 50 multipart uploads in the response. You should always check the response
1227
- * for a <code>marker</code> at which to continue the list; if there are no more items the
1228
- * <code>marker</code> is <code>null</code>. To return a list of multipart uploads that
1229
- * begins at a specific upload, set the <code>marker</code> request parameter to the value you
1230
- * obtained from a previous List Multipart Upload request. You can also limit the number of
1231
- * uploads returned in the response by specifying the <code>limit</code> parameter in the
1232
- * request.</p>
1233
- *
1234
- * <p>Note the difference between this operation and listing parts (<a>ListParts</a>). The List Multipart Uploads operation lists all multipart uploads
1235
- * for a vault and does not require a multipart upload ID. The List Parts operation requires a
1236
- * multipart upload ID since parts are associated with a single upload.</p>
1237
- *
1238
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
1239
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
1240
- * grant them explicit permission to perform specific actions. For more information, see
1241
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
1242
- * AWS Identity and Access Management (IAM)</a>.</p>
1243
- *
1244
- * <p>For conceptual information and the underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html">Working
1245
- * with Archives in Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-list-uploads.html">List Multipart Uploads
1246
- * </a> in the <i>Amazon Glacier Developer Guide</i>.</p>
1247
- */
1248
- public listMultipartUploads(
1249
- args: ListMultipartUploadsCommandInput,
1250
- options?: __HttpHandlerOptions
1251
- ): Promise<ListMultipartUploadsCommandOutput>;
1252
- public listMultipartUploads(
1253
- args: ListMultipartUploadsCommandInput,
1254
- cb: (err: any, data?: ListMultipartUploadsCommandOutput) => void
1255
- ): void;
1256
- public listMultipartUploads(
1257
- args: ListMultipartUploadsCommandInput,
1258
- options: __HttpHandlerOptions,
1259
- cb: (err: any, data?: ListMultipartUploadsCommandOutput) => void
1260
- ): void;
1261
- public listMultipartUploads(
1262
- args: ListMultipartUploadsCommandInput,
1263
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListMultipartUploadsCommandOutput) => void),
1264
- cb?: (err: any, data?: ListMultipartUploadsCommandOutput) => void
1265
- ): Promise<ListMultipartUploadsCommandOutput> | void {
1266
- const command = new ListMultipartUploadsCommand(args);
1267
- if (typeof optionsOrCb === "function") {
1268
- this.send(command, optionsOrCb);
1269
- } else if (typeof cb === "function") {
1270
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1271
- this.send(command, optionsOrCb || {}, cb);
1272
- } else {
1273
- return this.send(command, optionsOrCb);
1274
- }
1275
- }
1276
-
1277
- /**
1278
- * <p>This operation lists the parts of an archive that have been uploaded in a specific
1279
- * multipart upload. You can make this request at any time during an in-progress multipart
1280
- * upload before you complete the upload (see <a>CompleteMultipartUpload</a>. List
1281
- * Parts returns an error for completed uploads. The list returned in the List Parts response
1282
- * is sorted by part range. </p>
1283
- *
1284
- * <p>The List Parts operation supports pagination. By default, this operation returns up
1285
- * to 50 uploaded parts in the response. You should always check the response for a
1286
- * <code>marker</code> at which to continue the list; if there are no more items the
1287
- * <code>marker</code> is <code>null</code>. To return a list of parts that begins at a
1288
- * specific part, set the <code>marker</code> request parameter to the value you obtained from
1289
- * a previous List Parts request. You can also limit the number of parts returned in the
1290
- * response by specifying the <code>limit</code> parameter in the request. </p>
1291
- *
1292
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
1293
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
1294
- * grant them explicit permission to perform specific actions. For more information, see
1295
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
1296
- * AWS Identity and Access Management (IAM)</a>.</p>
1297
- * <p>For conceptual information and the underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/working-with-archives.html">Working
1298
- * with Archives in Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-list-parts.html">List Parts</a> in the
1299
- * <i>Amazon Glacier Developer Guide</i>.</p>
1300
- */
1301
- public listParts(args: ListPartsCommandInput, options?: __HttpHandlerOptions): Promise<ListPartsCommandOutput>;
1302
- public listParts(args: ListPartsCommandInput, cb: (err: any, data?: ListPartsCommandOutput) => void): void;
1303
- public listParts(
1304
- args: ListPartsCommandInput,
1305
- options: __HttpHandlerOptions,
1306
- cb: (err: any, data?: ListPartsCommandOutput) => void
1307
- ): void;
1308
- public listParts(
1309
- args: ListPartsCommandInput,
1310
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPartsCommandOutput) => void),
1311
- cb?: (err: any, data?: ListPartsCommandOutput) => void
1312
- ): Promise<ListPartsCommandOutput> | void {
1313
- const command = new ListPartsCommand(args);
1314
- if (typeof optionsOrCb === "function") {
1315
- this.send(command, optionsOrCb);
1316
- } else if (typeof cb === "function") {
1317
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1318
- this.send(command, optionsOrCb || {}, cb);
1319
- } else {
1320
- return this.send(command, optionsOrCb);
1321
- }
1322
- }
1323
-
1324
- /**
1325
- * <p>This operation lists the provisioned capacity units for the specified AWS
1326
- * account.</p>
1327
- */
1328
- public listProvisionedCapacity(
1329
- args: ListProvisionedCapacityCommandInput,
1330
- options?: __HttpHandlerOptions
1331
- ): Promise<ListProvisionedCapacityCommandOutput>;
1332
- public listProvisionedCapacity(
1333
- args: ListProvisionedCapacityCommandInput,
1334
- cb: (err: any, data?: ListProvisionedCapacityCommandOutput) => void
1335
- ): void;
1336
- public listProvisionedCapacity(
1337
- args: ListProvisionedCapacityCommandInput,
1338
- options: __HttpHandlerOptions,
1339
- cb: (err: any, data?: ListProvisionedCapacityCommandOutput) => void
1340
- ): void;
1341
- public listProvisionedCapacity(
1342
- args: ListProvisionedCapacityCommandInput,
1343
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListProvisionedCapacityCommandOutput) => void),
1344
- cb?: (err: any, data?: ListProvisionedCapacityCommandOutput) => void
1345
- ): Promise<ListProvisionedCapacityCommandOutput> | void {
1346
- const command = new ListProvisionedCapacityCommand(args);
1347
- if (typeof optionsOrCb === "function") {
1348
- this.send(command, optionsOrCb);
1349
- } else if (typeof cb === "function") {
1350
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1351
- this.send(command, optionsOrCb || {}, cb);
1352
- } else {
1353
- return this.send(command, optionsOrCb);
1354
- }
1355
- }
1356
-
1357
- /**
1358
- * <p>This operation lists all the tags attached to a vault. The operation returns an empty
1359
- * map if there are no tags. For more information about tags, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/tagging.html">Tagging Amazon S3 Glacier
1360
- * Resources</a>.</p>
1361
- */
1362
- public listTagsForVault(
1363
- args: ListTagsForVaultCommandInput,
1364
- options?: __HttpHandlerOptions
1365
- ): Promise<ListTagsForVaultCommandOutput>;
1366
- public listTagsForVault(
1367
- args: ListTagsForVaultCommandInput,
1368
- cb: (err: any, data?: ListTagsForVaultCommandOutput) => void
1369
- ): void;
1370
- public listTagsForVault(
1371
- args: ListTagsForVaultCommandInput,
1372
- options: __HttpHandlerOptions,
1373
- cb: (err: any, data?: ListTagsForVaultCommandOutput) => void
1374
- ): void;
1375
- public listTagsForVault(
1376
- args: ListTagsForVaultCommandInput,
1377
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForVaultCommandOutput) => void),
1378
- cb?: (err: any, data?: ListTagsForVaultCommandOutput) => void
1379
- ): Promise<ListTagsForVaultCommandOutput> | void {
1380
- const command = new ListTagsForVaultCommand(args);
1381
- if (typeof optionsOrCb === "function") {
1382
- this.send(command, optionsOrCb);
1383
- } else if (typeof cb === "function") {
1384
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1385
- this.send(command, optionsOrCb || {}, cb);
1386
- } else {
1387
- return this.send(command, optionsOrCb);
1388
- }
1389
- }
1390
-
1391
- /**
1392
- * <p>This operation lists all vaults owned by the calling user's account. The list
1393
- * returned in the response is ASCII-sorted by vault name.</p>
1394
- *
1395
- * <p>By default, this operation returns up to 10 items. If there are more vaults to
1396
- * list, the response <code>marker</code> field contains the vault Amazon Resource Name (ARN)
1397
- * at which to continue the list with a new List Vaults request; otherwise, the
1398
- * <code>marker</code> field is <code>null</code>. To return a list of vaults that begins
1399
- * at a specific vault, set the <code>marker</code> request parameter to the vault ARN you
1400
- * obtained from a previous List Vaults request. You can also limit the number of vaults
1401
- * returned in the response by specifying the <code>limit</code> parameter in the request. </p>
1402
- *
1403
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
1404
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
1405
- * grant them explicit permission to perform specific actions. For more information, see
1406
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
1407
- * AWS Identity and Access Management (IAM)</a>.</p>
1408
- * <p>For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/retrieving-vault-info.html">Retrieving Vault Metadata in
1409
- * Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vaults-get.html">List Vaults </a> in the
1410
- * <i>Amazon Glacier Developer Guide</i>. </p>
1411
- */
1412
- public listVaults(args: ListVaultsCommandInput, options?: __HttpHandlerOptions): Promise<ListVaultsCommandOutput>;
1413
- public listVaults(args: ListVaultsCommandInput, cb: (err: any, data?: ListVaultsCommandOutput) => void): void;
1414
- public listVaults(
1415
- args: ListVaultsCommandInput,
1416
- options: __HttpHandlerOptions,
1417
- cb: (err: any, data?: ListVaultsCommandOutput) => void
1418
- ): void;
1419
- public listVaults(
1420
- args: ListVaultsCommandInput,
1421
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListVaultsCommandOutput) => void),
1422
- cb?: (err: any, data?: ListVaultsCommandOutput) => void
1423
- ): Promise<ListVaultsCommandOutput> | void {
1424
- const command = new ListVaultsCommand(args);
1425
- if (typeof optionsOrCb === "function") {
1426
- this.send(command, optionsOrCb);
1427
- } else if (typeof cb === "function") {
1428
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1429
- this.send(command, optionsOrCb || {}, cb);
1430
- } else {
1431
- return this.send(command, optionsOrCb);
1432
- }
1433
- }
1434
-
1435
- /**
1436
- * <p>This operation purchases a provisioned capacity unit for an AWS account. </p>
1437
- */
1438
- public purchaseProvisionedCapacity(
1439
- args: PurchaseProvisionedCapacityCommandInput,
1440
- options?: __HttpHandlerOptions
1441
- ): Promise<PurchaseProvisionedCapacityCommandOutput>;
1442
- public purchaseProvisionedCapacity(
1443
- args: PurchaseProvisionedCapacityCommandInput,
1444
- cb: (err: any, data?: PurchaseProvisionedCapacityCommandOutput) => void
1445
- ): void;
1446
- public purchaseProvisionedCapacity(
1447
- args: PurchaseProvisionedCapacityCommandInput,
1448
- options: __HttpHandlerOptions,
1449
- cb: (err: any, data?: PurchaseProvisionedCapacityCommandOutput) => void
1450
- ): void;
1451
- public purchaseProvisionedCapacity(
1452
- args: PurchaseProvisionedCapacityCommandInput,
1453
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PurchaseProvisionedCapacityCommandOutput) => void),
1454
- cb?: (err: any, data?: PurchaseProvisionedCapacityCommandOutput) => void
1455
- ): Promise<PurchaseProvisionedCapacityCommandOutput> | void {
1456
- const command = new PurchaseProvisionedCapacityCommand(args);
1457
- if (typeof optionsOrCb === "function") {
1458
- this.send(command, optionsOrCb);
1459
- } else if (typeof cb === "function") {
1460
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1461
- this.send(command, optionsOrCb || {}, cb);
1462
- } else {
1463
- return this.send(command, optionsOrCb);
1464
- }
1465
- }
1466
-
1467
- /**
1468
- * <p>This operation removes one or more tags from the set of tags attached to a vault. For
1469
- * more information about tags, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/tagging.html">Tagging Amazon S3 Glacier Resources</a>.
1470
- * This operation is idempotent. The operation will be successful, even if there are no tags
1471
- * attached to the vault. </p>
1472
- */
1473
- public removeTagsFromVault(
1474
- args: RemoveTagsFromVaultCommandInput,
1475
- options?: __HttpHandlerOptions
1476
- ): Promise<RemoveTagsFromVaultCommandOutput>;
1477
- public removeTagsFromVault(
1478
- args: RemoveTagsFromVaultCommandInput,
1479
- cb: (err: any, data?: RemoveTagsFromVaultCommandOutput) => void
1480
- ): void;
1481
- public removeTagsFromVault(
1482
- args: RemoveTagsFromVaultCommandInput,
1483
- options: __HttpHandlerOptions,
1484
- cb: (err: any, data?: RemoveTagsFromVaultCommandOutput) => void
1485
- ): void;
1486
- public removeTagsFromVault(
1487
- args: RemoveTagsFromVaultCommandInput,
1488
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemoveTagsFromVaultCommandOutput) => void),
1489
- cb?: (err: any, data?: RemoveTagsFromVaultCommandOutput) => void
1490
- ): Promise<RemoveTagsFromVaultCommandOutput> | void {
1491
- const command = new RemoveTagsFromVaultCommand(args);
1492
- if (typeof optionsOrCb === "function") {
1493
- this.send(command, optionsOrCb);
1494
- } else if (typeof cb === "function") {
1495
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1496
- this.send(command, optionsOrCb || {}, cb);
1497
- } else {
1498
- return this.send(command, optionsOrCb);
1499
- }
1500
- }
1501
-
1502
- /**
1503
- * <p>This operation sets and then enacts a data retrieval policy in the region specified
1504
- * in the PUT request. You can set one policy per region for an AWS account. The policy is
1505
- * enacted within a few minutes of a successful PUT operation.</p>
1506
- * <p>The set policy operation does not affect retrieval jobs that were in progress before
1507
- * the policy was enacted. For more information about data retrieval policies, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/data-retrieval-policy.html">Amazon
1508
- * Glacier Data Retrieval Policies</a>. </p>
1509
- */
1510
- public setDataRetrievalPolicy(
1511
- args: SetDataRetrievalPolicyCommandInput,
1512
- options?: __HttpHandlerOptions
1513
- ): Promise<SetDataRetrievalPolicyCommandOutput>;
1514
- public setDataRetrievalPolicy(
1515
- args: SetDataRetrievalPolicyCommandInput,
1516
- cb: (err: any, data?: SetDataRetrievalPolicyCommandOutput) => void
1517
- ): void;
1518
- public setDataRetrievalPolicy(
1519
- args: SetDataRetrievalPolicyCommandInput,
1520
- options: __HttpHandlerOptions,
1521
- cb: (err: any, data?: SetDataRetrievalPolicyCommandOutput) => void
1522
- ): void;
1523
- public setDataRetrievalPolicy(
1524
- args: SetDataRetrievalPolicyCommandInput,
1525
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetDataRetrievalPolicyCommandOutput) => void),
1526
- cb?: (err: any, data?: SetDataRetrievalPolicyCommandOutput) => void
1527
- ): Promise<SetDataRetrievalPolicyCommandOutput> | void {
1528
- const command = new SetDataRetrievalPolicyCommand(args);
1529
- if (typeof optionsOrCb === "function") {
1530
- this.send(command, optionsOrCb);
1531
- } else if (typeof cb === "function") {
1532
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1533
- this.send(command, optionsOrCb || {}, cb);
1534
- } else {
1535
- return this.send(command, optionsOrCb);
1536
- }
1537
- }
1538
-
1539
- /**
1540
- * <p>This operation configures an access policy for a vault and will overwrite an existing
1541
- * policy. To configure a vault access policy, send a PUT request to the
1542
- * <code>access-policy</code> subresource of the vault. An access policy is specific to a
1543
- * vault and is also called a vault subresource. You can set one access policy per vault and
1544
- * the policy can be up to 20 KB in size. For more information about vault access policies,
1545
- * see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-access-policy.html">Amazon Glacier Access Control with Vault Access Policies</a>. </p>
1546
- */
1547
- public setVaultAccessPolicy(
1548
- args: SetVaultAccessPolicyCommandInput,
1549
- options?: __HttpHandlerOptions
1550
- ): Promise<SetVaultAccessPolicyCommandOutput>;
1551
- public setVaultAccessPolicy(
1552
- args: SetVaultAccessPolicyCommandInput,
1553
- cb: (err: any, data?: SetVaultAccessPolicyCommandOutput) => void
1554
- ): void;
1555
- public setVaultAccessPolicy(
1556
- args: SetVaultAccessPolicyCommandInput,
1557
- options: __HttpHandlerOptions,
1558
- cb: (err: any, data?: SetVaultAccessPolicyCommandOutput) => void
1559
- ): void;
1560
- public setVaultAccessPolicy(
1561
- args: SetVaultAccessPolicyCommandInput,
1562
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetVaultAccessPolicyCommandOutput) => void),
1563
- cb?: (err: any, data?: SetVaultAccessPolicyCommandOutput) => void
1564
- ): Promise<SetVaultAccessPolicyCommandOutput> | void {
1565
- const command = new SetVaultAccessPolicyCommand(args);
1566
- if (typeof optionsOrCb === "function") {
1567
- this.send(command, optionsOrCb);
1568
- } else if (typeof cb === "function") {
1569
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1570
- this.send(command, optionsOrCb || {}, cb);
1571
- } else {
1572
- return this.send(command, optionsOrCb);
1573
- }
1574
- }
1575
-
1576
- /**
1577
- * <p>This operation configures notifications that will be sent when specific events happen
1578
- * to a vault. By default, you don't get any notifications.</p>
1579
- *
1580
- * <p>To configure vault notifications, send a PUT request to the
1581
- * <code>notification-configuration</code> subresource of the vault. The request should
1582
- * include a JSON document that provides an Amazon SNS topic and specific events for which you
1583
- * want Amazon S3 Glacier to send notifications to the topic.</p>
1584
- *
1585
- * <p>Amazon SNS topics must grant permission to the vault to be allowed to publish
1586
- * notifications to the topic. You can configure a vault to publish a notification for the
1587
- * following vault events:</p>
1588
- *
1589
- * <ul>
1590
- * <li>
1591
- * <p>
1592
- * <b>ArchiveRetrievalCompleted</b> This event occurs when a
1593
- * job that was initiated for an archive retrieval is completed (<a>InitiateJob</a>). The status of the completed job can be "Succeeded" or
1594
- * "Failed". The notification sent to the SNS topic is the same output as returned from
1595
- * <a>DescribeJob</a>. </p>
1596
- * </li>
1597
- * <li>
1598
- *
1599
- * <p>
1600
- * <b>InventoryRetrievalCompleted</b> This event occurs when a
1601
- * job that was initiated for an inventory retrieval is completed (<a>InitiateJob</a>). The status of the completed job can be "Succeeded" or
1602
- * "Failed". The notification sent to the SNS topic is the same output as returned from
1603
- * <a>DescribeJob</a>. </p>
1604
- * </li>
1605
- * </ul>
1606
- *
1607
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
1608
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
1609
- * grant them explicit permission to perform specific actions. For more information, see
1610
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
1611
- * AWS Identity and Access Management (IAM)</a>.</p>
1612
- * <p>For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/configuring-notifications.html">Configuring Vault
1613
- * Notifications in Amazon S3 Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-vault-notifications-put.html">Set Vault Notification
1614
- * Configuration </a> in the <i>Amazon Glacier Developer Guide</i>. </p>
1615
- */
1616
- public setVaultNotifications(
1617
- args: SetVaultNotificationsCommandInput,
1618
- options?: __HttpHandlerOptions
1619
- ): Promise<SetVaultNotificationsCommandOutput>;
1620
- public setVaultNotifications(
1621
- args: SetVaultNotificationsCommandInput,
1622
- cb: (err: any, data?: SetVaultNotificationsCommandOutput) => void
1623
- ): void;
1624
- public setVaultNotifications(
1625
- args: SetVaultNotificationsCommandInput,
1626
- options: __HttpHandlerOptions,
1627
- cb: (err: any, data?: SetVaultNotificationsCommandOutput) => void
1628
- ): void;
1629
- public setVaultNotifications(
1630
- args: SetVaultNotificationsCommandInput,
1631
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetVaultNotificationsCommandOutput) => void),
1632
- cb?: (err: any, data?: SetVaultNotificationsCommandOutput) => void
1633
- ): Promise<SetVaultNotificationsCommandOutput> | void {
1634
- const command = new SetVaultNotificationsCommand(args);
1635
- if (typeof optionsOrCb === "function") {
1636
- this.send(command, optionsOrCb);
1637
- } else if (typeof cb === "function") {
1638
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1639
- this.send(command, optionsOrCb || {}, cb);
1640
- } else {
1641
- return this.send(command, optionsOrCb);
1642
- }
1643
- }
1644
-
1645
- /**
1646
- * <p>This operation adds an archive to a vault. This is a synchronous operation, and for a
1647
- * successful upload, your data is durably persisted. Amazon S3 Glacier returns the archive ID in
1648
- * the <code>x-amz-archive-id</code> header of the response. </p>
1649
- *
1650
- * <p>You must use the archive ID to access your data in Amazon S3 Glacier. After you upload
1651
- * an archive, you should save the archive ID returned so that you can retrieve or delete the
1652
- * archive later. Besides saving the archive ID, you can also index it and give it a friendly
1653
- * name to allow for better searching. You can also use the optional archive description field
1654
- * to specify how the archive is referred to in an external index of archives, such as you
1655
- * might create in Amazon DynamoDB. You can also get the vault inventory to obtain a list of
1656
- * archive IDs in a vault. For more information, see <a>InitiateJob</a>. </p>
1657
- *
1658
- * <p>You must provide a SHA256 tree hash of the data you are uploading. For information
1659
- * about computing a SHA256 tree hash, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html">Computing Checksums</a>. </p>
1660
- *
1661
- * <p>You can optionally specify an archive description of up to 1,024 printable ASCII
1662
- * characters. You can get the archive description when you either retrieve the archive or get
1663
- * the vault inventory. For more information, see <a>InitiateJob</a>. Amazon
1664
- * Glacier does not interpret the description in any way. An archive description does not need
1665
- * to be unique. You cannot use the description to retrieve or sort the archive list. </p>
1666
- *
1667
- * <p>Archives are immutable. After you upload an archive, you cannot edit the archive or
1668
- * its description.</p>
1669
- *
1670
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
1671
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
1672
- * grant them explicit permission to perform specific actions. For more information, see
1673
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
1674
- * AWS Identity and Access Management (IAM)</a>.</p>
1675
- * <p> For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-an-archive.html">Uploading an Archive in Amazon
1676
- * Glacier</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-archive-post.html">Upload Archive</a> in the
1677
- * <i>Amazon Glacier Developer Guide</i>. </p>
1678
- */
1679
- public uploadArchive(
1680
- args: UploadArchiveCommandInput,
1681
- options?: __HttpHandlerOptions
1682
- ): Promise<UploadArchiveCommandOutput>;
1683
- public uploadArchive(
1684
- args: UploadArchiveCommandInput,
1685
- cb: (err: any, data?: UploadArchiveCommandOutput) => void
1686
- ): void;
1687
- public uploadArchive(
1688
- args: UploadArchiveCommandInput,
1689
- options: __HttpHandlerOptions,
1690
- cb: (err: any, data?: UploadArchiveCommandOutput) => void
1691
- ): void;
1692
- public uploadArchive(
1693
- args: UploadArchiveCommandInput,
1694
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UploadArchiveCommandOutput) => void),
1695
- cb?: (err: any, data?: UploadArchiveCommandOutput) => void
1696
- ): Promise<UploadArchiveCommandOutput> | void {
1697
- const command = new UploadArchiveCommand(args);
1698
- if (typeof optionsOrCb === "function") {
1699
- this.send(command, optionsOrCb);
1700
- } else if (typeof cb === "function") {
1701
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1702
- this.send(command, optionsOrCb || {}, cb);
1703
- } else {
1704
- return this.send(command, optionsOrCb);
1705
- }
1706
- }
1707
-
1708
- /**
1709
- * <p>This operation uploads a part of an archive. You can upload archive parts in any
1710
- * order. You can also upload them in parallel. You can upload up to 10,000 parts for a
1711
- * multipart upload.</p>
1712
- *
1713
- * <p>Amazon Glacier rejects your upload part request if any of the following conditions is
1714
- * true:</p>
1715
- *
1716
- * <ul>
1717
- * <li>
1718
- * <p>
1719
- * <b>SHA256 tree hash does not match</b>To ensure that part
1720
- * data is not corrupted in transmission, you compute a SHA256 tree hash of the part and
1721
- * include it in your request. Upon receiving the part data, Amazon S3 Glacier also
1722
- * computes a SHA256 tree hash. If these hash values don't match, the operation fails.
1723
- * For information about computing a SHA256 tree hash, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/checksum-calculations.html">Computing
1724
- * Checksums</a>.</p>
1725
- * </li>
1726
- * <li>
1727
- * <p>
1728
- * <b>Part size does not match</b>The size of each part except
1729
- * the last must match the size specified in the corresponding <a>InitiateMultipartUpload</a> request. The size of the last part must be the
1730
- * same size as, or smaller than, the specified size.</p>
1731
- * <note>
1732
- * <p>If you upload a part whose size is smaller than the part size you specified
1733
- * in your initiate multipart upload request and that part is not the last part, then
1734
- * the upload part request will succeed. However, the subsequent Complete Multipart
1735
- * Upload request will fail.</p>
1736
- * </note>
1737
- * </li>
1738
- * <li>
1739
- * <p>
1740
- * <b>Range does not align</b>The byte range value in the
1741
- * request does not align with the part size specified in the corresponding initiate
1742
- * request. For example, if you specify a part size of 4194304 bytes (4 MB), then 0 to
1743
- * 4194303 bytes (4 MB - 1) and 4194304 (4 MB) to 8388607 (8 MB - 1) are valid part
1744
- * ranges. However, if you set a range value of 2 MB to 6 MB, the range does not align
1745
- * with the part size and the upload will fail. </p>
1746
- * </li>
1747
- * </ul>
1748
- *
1749
- * <p>This operation is idempotent. If you upload the same part multiple times, the data
1750
- * included in the most recent request overwrites the previously uploaded data.</p>
1751
- *
1752
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
1753
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
1754
- * grant them explicit permission to perform specific actions. For more information, see
1755
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
1756
- * AWS Identity and Access Management (IAM)</a>.</p>
1757
- * <p> For conceptual information and underlying REST API, see <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/uploading-archive-mpu.html">Uploading Large Archives in
1758
- * Parts (Multipart Upload)</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-upload-part.html">Upload Part </a> in the
1759
- * <i>Amazon Glacier Developer Guide</i>.</p>
1760
- */
1761
- public uploadMultipartPart(
1762
- args: UploadMultipartPartCommandInput,
1763
- options?: __HttpHandlerOptions
1764
- ): Promise<UploadMultipartPartCommandOutput>;
1765
- public uploadMultipartPart(
1766
- args: UploadMultipartPartCommandInput,
1767
- cb: (err: any, data?: UploadMultipartPartCommandOutput) => void
1768
- ): void;
1769
- public uploadMultipartPart(
1770
- args: UploadMultipartPartCommandInput,
1771
- options: __HttpHandlerOptions,
1772
- cb: (err: any, data?: UploadMultipartPartCommandOutput) => void
1773
- ): void;
1774
- public uploadMultipartPart(
1775
- args: UploadMultipartPartCommandInput,
1776
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UploadMultipartPartCommandOutput) => void),
1777
- cb?: (err: any, data?: UploadMultipartPartCommandOutput) => void
1778
- ): Promise<UploadMultipartPartCommandOutput> | void {
1779
- const command = new UploadMultipartPartCommand(args);
1780
- if (typeof optionsOrCb === "function") {
1781
- this.send(command, optionsOrCb);
1782
- } else if (typeof cb === "function") {
1783
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1784
- this.send(command, optionsOrCb || {}, cb);
1785
- } else {
1786
- return this.send(command, optionsOrCb);
1787
- }
1788
- }
1789
- }