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