@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
@@ -1,128 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
15
- import { InitiateMultipartUploadInput, InitiateMultipartUploadOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1InitiateMultipartUploadCommand,
18
- serializeAws_restJson1InitiateMultipartUploadCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface InitiateMultipartUploadCommandInput extends InitiateMultipartUploadInput {}
22
- export interface InitiateMultipartUploadCommandOutput extends InitiateMultipartUploadOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This operation initiates a multipart upload. Amazon S3 Glacier creates a multipart
26
- * upload resource and returns its ID in the response. The multipart upload ID is used in
27
- * subsequent requests to upload parts of an archive (see <a>UploadMultipartPart</a>).</p>
28
- *
29
- * <p>When you initiate a multipart upload, you specify the part size in number of bytes.
30
- * The part size must be a megabyte (1024 KB) multiplied by a power of 2-for example, 1048576
31
- * (1 MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8 MB), and so on. The minimum allowable
32
- * part size is 1 MB, and the maximum is 4 GB.</p>
33
- *
34
- * <p>Every part you upload to this resource (see <a>UploadMultipartPart</a>),
35
- * except the last one, must have the same size. The last one can be the same size or smaller.
36
- * For example, suppose you want to upload a 16.2 MB file. If you initiate the multipart
37
- * upload with a part size of 4 MB, you will upload four parts of 4 MB each and one part of
38
- * 0.2 MB. </p>
39
- *
40
- * <note>
41
- * <p>You don't need to know the size of the archive when you start a multipart upload
42
- * because Amazon S3 Glacier does not require you to specify the overall archive
43
- * size.</p>
44
- * </note>
45
- *
46
- * <p>After you complete the multipart upload, Amazon S3 Glacier (Glacier) removes the multipart upload
47
- * resource referenced by the ID. Glacier also removes the multipart upload resource if
48
- * you cancel the multipart upload or it may be removed if there is no activity for a period
49
- * of 24 hours.</p>
50
- *
51
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
52
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
53
- * grant them explicit permission to perform specific actions. For more information, see
54
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
55
- * AWS Identity and Access Management (IAM)</a>.</p>
56
- * <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
57
- * Parts (Multipart Upload)</a> and <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/api-multipart-initiate-upload.html">Initiate Multipart
58
- * Upload</a> in the <i>Amazon Glacier Developer Guide</i>.</p>
59
- * @example
60
- * Use a bare-bones client and the command you need to make an API call.
61
- * ```javascript
62
- * import { GlacierClient, InitiateMultipartUploadCommand } from "@aws-sdk/client-glacier"; // ES Modules import
63
- * // const { GlacierClient, InitiateMultipartUploadCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
64
- * const client = new GlacierClient(config);
65
- * const command = new InitiateMultipartUploadCommand(input);
66
- * const response = await client.send(command);
67
- * ```
68
- *
69
- * @see {@link InitiateMultipartUploadCommandInput} for command's `input` shape.
70
- * @see {@link InitiateMultipartUploadCommandOutput} for command's `response` shape.
71
- * @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
72
- *
73
- */
74
- export class InitiateMultipartUploadCommand extends $Command<
75
- InitiateMultipartUploadCommandInput,
76
- InitiateMultipartUploadCommandOutput,
77
- GlacierClientResolvedConfig
78
- > {
79
- // Start section: command_properties
80
- // End section: command_properties
81
-
82
- constructor(readonly input: InitiateMultipartUploadCommandInput) {
83
- // Start section: command_constructor
84
- super();
85
- // End section: command_constructor
86
- }
87
-
88
- /**
89
- * @internal
90
- */
91
- resolveMiddleware(
92
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
93
- configuration: GlacierClientResolvedConfig,
94
- options?: __HttpHandlerOptions
95
- ): Handler<InitiateMultipartUploadCommandInput, InitiateMultipartUploadCommandOutput> {
96
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
97
-
98
- const stack = clientStack.concat(this.middlewareStack);
99
-
100
- const { logger } = configuration;
101
- const clientName = "GlacierClient";
102
- const commandName = "InitiateMultipartUploadCommand";
103
- const handlerExecutionContext: HandlerExecutionContext = {
104
- logger,
105
- clientName,
106
- commandName,
107
- inputFilterSensitiveLog: InitiateMultipartUploadInput.filterSensitiveLog,
108
- outputFilterSensitiveLog: InitiateMultipartUploadOutput.filterSensitiveLog,
109
- };
110
- const { requestHandler } = configuration;
111
- return stack.resolve(
112
- (request: FinalizeHandlerArguments<any>) =>
113
- requestHandler.handle(request.request as __HttpRequest, options || {}),
114
- handlerExecutionContext
115
- );
116
- }
117
-
118
- private serialize(input: InitiateMultipartUploadCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
119
- return serializeAws_restJson1InitiateMultipartUploadCommand(input, context);
120
- }
121
-
122
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<InitiateMultipartUploadCommandOutput> {
123
- return deserializeAws_restJson1InitiateMultipartUploadCommand(output, context);
124
- }
125
-
126
- // Start section: command_body_extra
127
- // End section: command_body_extra
128
- }
@@ -1,129 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
15
- import { InitiateVaultLockInput, InitiateVaultLockOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1InitiateVaultLockCommand,
18
- serializeAws_restJson1InitiateVaultLockCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface InitiateVaultLockCommandInput extends InitiateVaultLockInput {}
22
- export interface InitiateVaultLockCommandOutput extends InitiateVaultLockOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This operation initiates the vault locking process by doing the following:</p>
26
- * <ul>
27
- * <li>
28
- * <p>Installing a vault lock policy on the specified vault.</p>
29
- * </li>
30
- * <li>
31
- * <p>Setting the lock state of vault lock to <code>InProgress</code>.</p>
32
- * </li>
33
- * <li>
34
- * <p>Returning a lock ID, which is used to complete the vault locking
35
- * process.</p>
36
- * </li>
37
- * </ul>
38
- *
39
- * <p>You can set one vault lock policy for each vault and this policy can be up to 20 KB
40
- * 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
41
- * Vault Lock Policies</a>. </p>
42
- * <p>You must complete the vault locking process within 24 hours after the vault lock
43
- * enters the <code>InProgress</code> state. After the 24 hour window ends, the lock ID
44
- * expires, the vault automatically exits the <code>InProgress</code> state, and the vault
45
- * lock policy is removed from the vault. You call <a>CompleteVaultLock</a> to
46
- * complete the vault locking process by setting the state of the vault lock to
47
- * <code>Locked</code>. </p>
48
- * <p>After a vault lock is in the <code>Locked</code> state, you cannot initiate a new
49
- * vault lock for the vault.</p>
50
- *
51
- * <p>You can abort the vault locking process by calling <a>AbortVaultLock</a>.
52
- * You can get the state of the vault lock by calling <a>GetVaultLock</a>. For more
53
- * information about the vault locking process, <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/vault-lock.html">Amazon Glacier Vault
54
- * Lock</a>.</p>
55
- *
56
- * <p>If this operation is called when the vault lock is in the <code>InProgress</code>
57
- * state, the operation returns an <code>AccessDeniedException</code> error. When the vault
58
- * lock is in the <code>InProgress</code> state you must call <a>AbortVaultLock</a>
59
- * before you can initiate a new vault lock policy. </p>
60
- * @example
61
- * Use a bare-bones client and the command you need to make an API call.
62
- * ```javascript
63
- * import { GlacierClient, InitiateVaultLockCommand } from "@aws-sdk/client-glacier"; // ES Modules import
64
- * // const { GlacierClient, InitiateVaultLockCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
65
- * const client = new GlacierClient(config);
66
- * const command = new InitiateVaultLockCommand(input);
67
- * const response = await client.send(command);
68
- * ```
69
- *
70
- * @see {@link InitiateVaultLockCommandInput} for command's `input` shape.
71
- * @see {@link InitiateVaultLockCommandOutput} for command's `response` shape.
72
- * @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
73
- *
74
- */
75
- export class InitiateVaultLockCommand extends $Command<
76
- InitiateVaultLockCommandInput,
77
- InitiateVaultLockCommandOutput,
78
- GlacierClientResolvedConfig
79
- > {
80
- // Start section: command_properties
81
- // End section: command_properties
82
-
83
- constructor(readonly input: InitiateVaultLockCommandInput) {
84
- // Start section: command_constructor
85
- super();
86
- // End section: command_constructor
87
- }
88
-
89
- /**
90
- * @internal
91
- */
92
- resolveMiddleware(
93
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
94
- configuration: GlacierClientResolvedConfig,
95
- options?: __HttpHandlerOptions
96
- ): Handler<InitiateVaultLockCommandInput, InitiateVaultLockCommandOutput> {
97
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
98
-
99
- const stack = clientStack.concat(this.middlewareStack);
100
-
101
- const { logger } = configuration;
102
- const clientName = "GlacierClient";
103
- const commandName = "InitiateVaultLockCommand";
104
- const handlerExecutionContext: HandlerExecutionContext = {
105
- logger,
106
- clientName,
107
- commandName,
108
- inputFilterSensitiveLog: InitiateVaultLockInput.filterSensitiveLog,
109
- outputFilterSensitiveLog: InitiateVaultLockOutput.filterSensitiveLog,
110
- };
111
- const { requestHandler } = configuration;
112
- return stack.resolve(
113
- (request: FinalizeHandlerArguments<any>) =>
114
- requestHandler.handle(request.request as __HttpRequest, options || {}),
115
- handlerExecutionContext
116
- );
117
- }
118
-
119
- private serialize(input: InitiateVaultLockCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
120
- return serializeAws_restJson1InitiateVaultLockCommand(input, context);
121
- }
122
-
123
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<InitiateVaultLockCommandOutput> {
124
- return deserializeAws_restJson1InitiateVaultLockCommand(output, context);
125
- }
126
-
127
- // Start section: command_body_extra
128
- // End section: command_body_extra
129
- }
@@ -1,130 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
15
- import { ListJobsInput, ListJobsOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1ListJobsCommand,
18
- serializeAws_restJson1ListJobsCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface ListJobsCommandInput extends ListJobsInput {}
22
- export interface ListJobsCommandOutput extends ListJobsOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This operation lists jobs for a vault, including jobs that are in-progress and jobs
26
- * that have recently finished. The List Job operation returns a list of these jobs sorted by job initiation
27
- * time.</p>
28
- *
29
- * <note>
30
- * <p>Amazon Glacier retains recently completed jobs for a period before deleting them;
31
- * however, it eventually removes completed jobs. The output of completed jobs can be
32
- * retrieved. Retaining completed jobs for a period of time after they have completed
33
- * enables you to get a job output in the event you miss the job completion notification or
34
- * your first attempt to download it fails. For example, suppose you start an archive
35
- * retrieval job to download an archive. After the job completes, you start to download the
36
- * archive but encounter a network error. In this scenario, you can retry and download the
37
- * archive while the job exists.</p>
38
- * </note>
39
- *
40
- * <p>The List Jobs operation supports pagination. You should always check the response <code>Marker</code> field.
41
- * 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,
42
- * the <code>Marker</code> field is set to a non-null value, which you can use to continue the pagination of the list.
43
- * To return a list of jobs that begins at a specific job,
44
- * set the marker request parameter to the <code>Marker</code> value for that job that you obtained from a previous List Jobs request.</p>
45
- *
46
- * <p>You can set a maximum limit for the number of jobs returned in the response by
47
- * specifying the <code>limit</code> parameter in the request. The default limit is 50. The
48
- * number of jobs returned might be fewer than the limit, but the number of returned jobs
49
- * never exceeds the limit.</p>
50
- *
51
- * <p>Additionally, you can filter the jobs list returned by specifying the optional
52
- * <code>statuscode</code> parameter or <code>completed</code> parameter, or both. Using
53
- * the <code>statuscode</code> parameter, you can specify to return only jobs that match
54
- * either the <code>InProgress</code>, <code>Succeeded</code>, or <code>Failed</code> status.
55
- * Using the <code>completed</code> parameter, you can specify to return only jobs that were
56
- * completed (<code>true</code>) or jobs that were not completed
57
- * (<code>false</code>).</p>
58
- *
59
- * <p>For more information about using this operation,
60
- * 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>
61
- * @example
62
- * Use a bare-bones client and the command you need to make an API call.
63
- * ```javascript
64
- * import { GlacierClient, ListJobsCommand } from "@aws-sdk/client-glacier"; // ES Modules import
65
- * // const { GlacierClient, ListJobsCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
66
- * const client = new GlacierClient(config);
67
- * const command = new ListJobsCommand(input);
68
- * const response = await client.send(command);
69
- * ```
70
- *
71
- * @see {@link ListJobsCommandInput} for command's `input` shape.
72
- * @see {@link ListJobsCommandOutput} for command's `response` shape.
73
- * @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
74
- *
75
- */
76
- export class ListJobsCommand extends $Command<
77
- ListJobsCommandInput,
78
- ListJobsCommandOutput,
79
- GlacierClientResolvedConfig
80
- > {
81
- // Start section: command_properties
82
- // End section: command_properties
83
-
84
- constructor(readonly input: ListJobsCommandInput) {
85
- // Start section: command_constructor
86
- super();
87
- // End section: command_constructor
88
- }
89
-
90
- /**
91
- * @internal
92
- */
93
- resolveMiddleware(
94
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
95
- configuration: GlacierClientResolvedConfig,
96
- options?: __HttpHandlerOptions
97
- ): Handler<ListJobsCommandInput, ListJobsCommandOutput> {
98
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
99
-
100
- const stack = clientStack.concat(this.middlewareStack);
101
-
102
- const { logger } = configuration;
103
- const clientName = "GlacierClient";
104
- const commandName = "ListJobsCommand";
105
- const handlerExecutionContext: HandlerExecutionContext = {
106
- logger,
107
- clientName,
108
- commandName,
109
- inputFilterSensitiveLog: ListJobsInput.filterSensitiveLog,
110
- outputFilterSensitiveLog: ListJobsOutput.filterSensitiveLog,
111
- };
112
- const { requestHandler } = configuration;
113
- return stack.resolve(
114
- (request: FinalizeHandlerArguments<any>) =>
115
- requestHandler.handle(request.request as __HttpRequest, options || {}),
116
- handlerExecutionContext
117
- );
118
- }
119
-
120
- private serialize(input: ListJobsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
121
- return serializeAws_restJson1ListJobsCommand(input, context);
122
- }
123
-
124
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListJobsCommandOutput> {
125
- return deserializeAws_restJson1ListJobsCommand(output, context);
126
- }
127
-
128
- // Start section: command_body_extra
129
- // End section: command_body_extra
130
- }
@@ -1,120 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
15
- import { ListMultipartUploadsInput, ListMultipartUploadsOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1ListMultipartUploadsCommand,
18
- serializeAws_restJson1ListMultipartUploadsCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface ListMultipartUploadsCommandInput extends ListMultipartUploadsInput {}
22
- export interface ListMultipartUploadsCommandOutput extends ListMultipartUploadsOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This operation lists in-progress multipart uploads for the specified vault. An
26
- * 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.
27
- * The list returned in the List Multipart Upload response has no guaranteed order. </p>
28
- *
29
- * <p>The List Multipart Uploads operation supports pagination. By default, this operation
30
- * returns up to 50 multipart uploads in the response. You should always check the response
31
- * for a <code>marker</code> at which to continue the list; if there are no more items the
32
- * <code>marker</code> is <code>null</code>. To return a list of multipart uploads that
33
- * begins at a specific upload, set the <code>marker</code> request parameter to the value you
34
- * obtained from a previous List Multipart Upload request. You can also limit the number of
35
- * uploads returned in the response by specifying the <code>limit</code> parameter in the
36
- * request.</p>
37
- *
38
- * <p>Note the difference between this operation and listing parts (<a>ListParts</a>). The List Multipart Uploads operation lists all multipart uploads
39
- * for a vault and does not require a multipart upload ID. The List Parts operation requires a
40
- * multipart upload ID since parts are associated with a single upload.</p>
41
- *
42
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
43
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
44
- * grant them explicit permission to perform specific actions. For more information, see
45
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
46
- * AWS Identity and Access Management (IAM)</a>.</p>
47
- *
48
- * <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
49
- * 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
50
- * </a> in the <i>Amazon Glacier Developer Guide</i>.</p>
51
- * @example
52
- * Use a bare-bones client and the command you need to make an API call.
53
- * ```javascript
54
- * import { GlacierClient, ListMultipartUploadsCommand } from "@aws-sdk/client-glacier"; // ES Modules import
55
- * // const { GlacierClient, ListMultipartUploadsCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
56
- * const client = new GlacierClient(config);
57
- * const command = new ListMultipartUploadsCommand(input);
58
- * const response = await client.send(command);
59
- * ```
60
- *
61
- * @see {@link ListMultipartUploadsCommandInput} for command's `input` shape.
62
- * @see {@link ListMultipartUploadsCommandOutput} for command's `response` shape.
63
- * @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
64
- *
65
- */
66
- export class ListMultipartUploadsCommand extends $Command<
67
- ListMultipartUploadsCommandInput,
68
- ListMultipartUploadsCommandOutput,
69
- GlacierClientResolvedConfig
70
- > {
71
- // Start section: command_properties
72
- // End section: command_properties
73
-
74
- constructor(readonly input: ListMultipartUploadsCommandInput) {
75
- // Start section: command_constructor
76
- super();
77
- // End section: command_constructor
78
- }
79
-
80
- /**
81
- * @internal
82
- */
83
- resolveMiddleware(
84
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
85
- configuration: GlacierClientResolvedConfig,
86
- options?: __HttpHandlerOptions
87
- ): Handler<ListMultipartUploadsCommandInput, ListMultipartUploadsCommandOutput> {
88
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
89
-
90
- const stack = clientStack.concat(this.middlewareStack);
91
-
92
- const { logger } = configuration;
93
- const clientName = "GlacierClient";
94
- const commandName = "ListMultipartUploadsCommand";
95
- const handlerExecutionContext: HandlerExecutionContext = {
96
- logger,
97
- clientName,
98
- commandName,
99
- inputFilterSensitiveLog: ListMultipartUploadsInput.filterSensitiveLog,
100
- outputFilterSensitiveLog: ListMultipartUploadsOutput.filterSensitiveLog,
101
- };
102
- const { requestHandler } = configuration;
103
- return stack.resolve(
104
- (request: FinalizeHandlerArguments<any>) =>
105
- requestHandler.handle(request.request as __HttpRequest, options || {}),
106
- handlerExecutionContext
107
- );
108
- }
109
-
110
- private serialize(input: ListMultipartUploadsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
111
- return serializeAws_restJson1ListMultipartUploadsCommand(input, context);
112
- }
113
-
114
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListMultipartUploadsCommandOutput> {
115
- return deserializeAws_restJson1ListMultipartUploadsCommand(output, context);
116
- }
117
-
118
- // Start section: command_body_extra
119
- // End section: command_body_extra
120
- }
@@ -1,116 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { GlacierClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlacierClient";
15
- import { ListPartsInput, ListPartsOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_restJson1ListPartsCommand,
18
- serializeAws_restJson1ListPartsCommand,
19
- } from "../protocols/Aws_restJson1";
20
-
21
- export interface ListPartsCommandInput extends ListPartsInput {}
22
- export interface ListPartsCommandOutput extends ListPartsOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This operation lists the parts of an archive that have been uploaded in a specific
26
- * multipart upload. You can make this request at any time during an in-progress multipart
27
- * upload before you complete the upload (see <a>CompleteMultipartUpload</a>. List
28
- * Parts returns an error for completed uploads. The list returned in the List Parts response
29
- * is sorted by part range. </p>
30
- *
31
- * <p>The List Parts operation supports pagination. By default, this operation returns up
32
- * to 50 uploaded parts in the response. You should always check the response for a
33
- * <code>marker</code> at which to continue the list; if there are no more items the
34
- * <code>marker</code> is <code>null</code>. To return a list of parts that begins at a
35
- * specific part, set the <code>marker</code> request parameter to the value you obtained from
36
- * a previous List Parts request. You can also limit the number of parts returned in the
37
- * response by specifying the <code>limit</code> parameter in the request. </p>
38
- *
39
- * <p>An AWS account has full permission to perform all operations (actions). However, AWS
40
- * Identity and Access Management (IAM) users don't have any permissions by default. You must
41
- * grant them explicit permission to perform specific actions. For more information, see
42
- * <a href="https://docs.aws.amazon.com/amazonglacier/latest/dev/using-iam-with-amazon-glacier.html">Access Control Using
43
- * AWS Identity and Access Management (IAM)</a>.</p>
44
- * <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
45
- * 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
46
- * <i>Amazon Glacier Developer Guide</i>.</p>
47
- * @example
48
- * Use a bare-bones client and the command you need to make an API call.
49
- * ```javascript
50
- * import { GlacierClient, ListPartsCommand } from "@aws-sdk/client-glacier"; // ES Modules import
51
- * // const { GlacierClient, ListPartsCommand } = require("@aws-sdk/client-glacier"); // CommonJS import
52
- * const client = new GlacierClient(config);
53
- * const command = new ListPartsCommand(input);
54
- * const response = await client.send(command);
55
- * ```
56
- *
57
- * @see {@link ListPartsCommandInput} for command's `input` shape.
58
- * @see {@link ListPartsCommandOutput} for command's `response` shape.
59
- * @see {@link GlacierClientResolvedConfig | config} for command's `input` shape.
60
- *
61
- */
62
- export class ListPartsCommand extends $Command<
63
- ListPartsCommandInput,
64
- ListPartsCommandOutput,
65
- GlacierClientResolvedConfig
66
- > {
67
- // Start section: command_properties
68
- // End section: command_properties
69
-
70
- constructor(readonly input: ListPartsCommandInput) {
71
- // Start section: command_constructor
72
- super();
73
- // End section: command_constructor
74
- }
75
-
76
- /**
77
- * @internal
78
- */
79
- resolveMiddleware(
80
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
81
- configuration: GlacierClientResolvedConfig,
82
- options?: __HttpHandlerOptions
83
- ): Handler<ListPartsCommandInput, ListPartsCommandOutput> {
84
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
85
-
86
- const stack = clientStack.concat(this.middlewareStack);
87
-
88
- const { logger } = configuration;
89
- const clientName = "GlacierClient";
90
- const commandName = "ListPartsCommand";
91
- const handlerExecutionContext: HandlerExecutionContext = {
92
- logger,
93
- clientName,
94
- commandName,
95
- inputFilterSensitiveLog: ListPartsInput.filterSensitiveLog,
96
- outputFilterSensitiveLog: ListPartsOutput.filterSensitiveLog,
97
- };
98
- const { requestHandler } = configuration;
99
- return stack.resolve(
100
- (request: FinalizeHandlerArguments<any>) =>
101
- requestHandler.handle(request.request as __HttpRequest, options || {}),
102
- handlerExecutionContext
103
- );
104
- }
105
-
106
- private serialize(input: ListPartsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
107
- return serializeAws_restJson1ListPartsCommand(input, context);
108
- }
109
-
110
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListPartsCommandOutput> {
111
- return deserializeAws_restJson1ListPartsCommand(output, context);
112
- }
113
-
114
- // Start section: command_body_extra
115
- // End section: command_body_extra
116
- }