@aws-sdk/client-glacier 3.288.0 → 3.290.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 (34) hide show
  1. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +27 -0
  2. package/dist-types/commands/AbortVaultLockCommand.d.ts +26 -0
  3. package/dist-types/commands/AddTagsToVaultCommand.d.ts +33 -0
  4. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +36 -0
  5. package/dist-types/commands/CompleteVaultLockCommand.d.ts +27 -0
  6. package/dist-types/commands/CreateVaultCommand.d.ts +30 -0
  7. package/dist-types/commands/DeleteArchiveCommand.d.ts +27 -0
  8. package/dist-types/commands/DeleteVaultAccessPolicyCommand.d.ts +26 -0
  9. package/dist-types/commands/DeleteVaultCommand.d.ts +26 -0
  10. package/dist-types/commands/DeleteVaultNotificationsCommand.d.ts +26 -0
  11. package/dist-types/commands/DescribeJobCommand.d.ts +40 -0
  12. package/dist-types/commands/DescribeVaultCommand.d.ts +35 -0
  13. package/dist-types/commands/GetDataRetrievalPolicyCommand.d.ts +33 -0
  14. package/dist-types/commands/GetJobOutputCommand.d.ts +36 -0
  15. package/dist-types/commands/GetVaultAccessPolicyCommand.d.ts +33 -0
  16. package/dist-types/commands/GetVaultLockCommand.d.ts +34 -0
  17. package/dist-types/commands/GetVaultNotificationsCommand.d.ts +37 -0
  18. package/dist-types/commands/InitiateJobCommand.d.ts +47 -0
  19. package/dist-types/commands/InitiateMultipartUploadCommand.d.ts +33 -0
  20. package/dist-types/commands/InitiateVaultLockCommand.d.ts +34 -0
  21. package/dist-types/commands/ListJobsCommand.d.ts +58 -0
  22. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +54 -0
  23. package/dist-types/commands/ListPartsCommand.d.ts +47 -0
  24. package/dist-types/commands/ListProvisionedCapacityCommand.d.ts +37 -0
  25. package/dist-types/commands/ListTagsForVaultCommand.d.ts +34 -0
  26. package/dist-types/commands/ListVaultsCommand.d.ts +41 -0
  27. package/dist-types/commands/PurchaseProvisionedCapacityCommand.d.ts +29 -0
  28. package/dist-types/commands/RemoveTagsFromVaultCommand.d.ts +30 -0
  29. package/dist-types/commands/SetDataRetrievalPolicyCommand.d.ts +29 -0
  30. package/dist-types/commands/SetVaultAccessPolicyCommand.d.ts +29 -0
  31. package/dist-types/commands/SetVaultNotificationsCommand.d.ts +33 -0
  32. package/dist-types/commands/UploadArchiveCommand.d.ts +40 -0
  33. package/dist-types/commands/UploadMultipartPartCommand.d.ts +39 -0
  34. package/package.json +35 -35
@@ -70,6 +70,46 @@ export interface UploadArchiveCommandOutput extends ArchiveCreationOutput, __Met
70
70
  * @see {@link UploadArchiveCommandOutput} for command's `response` shape.
71
71
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
72
72
  *
73
+ * @throws {@link InvalidParameterValueException} (client fault)
74
+ * <p>Returned if a parameter of the request is incorrectly specified.</p>
75
+ *
76
+ * @throws {@link MissingParameterValueException} (client fault)
77
+ * <p>Returned if a required header or parameter is missing from the request.</p>
78
+ *
79
+ * @throws {@link RequestTimeoutException} (client fault)
80
+ * <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while receiving the
81
+ * upload.</p>
82
+ *
83
+ * @throws {@link ResourceNotFoundException} (client fault)
84
+ * <p>Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't
85
+ * exist.</p>
86
+ *
87
+ * @throws {@link ServiceUnavailableException} (server fault)
88
+ * <p>Returned if the service cannot complete the request.</p>
89
+ *
90
+ *
91
+ * @example To upload an archive
92
+ * ```javascript
93
+ * // The example adds an archive to a vault.
94
+ * const input = {
95
+ * "accountId": "-",
96
+ * "archiveDescription": "",
97
+ * "body": "example-data-to-upload",
98
+ * "checksum": "",
99
+ * "vaultName": "my-vault"
100
+ * };
101
+ * const command = new UploadArchiveCommand(input);
102
+ * const response = await client.send(command);
103
+ * /* response ==
104
+ * {
105
+ * "archiveId": "kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw",
106
+ * "checksum": "969fb39823836d81f0cc028195fcdbcbbe76cdde932d4646fa7de5f21e18aa67",
107
+ * "location": "/0123456789012/vaults/my-vault/archives/kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw"
108
+ * }
109
+ * *\/
110
+ * // example id: upload-archive-1481668510494
111
+ * ```
112
+ *
73
113
  */
74
114
  export declare class UploadArchiveCommand extends $Command<UploadArchiveCommandInput, UploadArchiveCommandOutput, GlacierClientResolvedConfig> {
75
115
  readonly input: UploadArchiveCommandInput;
@@ -89,6 +89,45 @@ export interface UploadMultipartPartCommandOutput extends UploadMultipartPartOut
89
89
  * @see {@link UploadMultipartPartCommandOutput} for command's `response` shape.
90
90
  * @see {@link GlacierClientResolvedConfig | config} for GlacierClient's `config` shape.
91
91
  *
92
+ * @throws {@link InvalidParameterValueException} (client fault)
93
+ * <p>Returned if a parameter of the request is incorrectly specified.</p>
94
+ *
95
+ * @throws {@link MissingParameterValueException} (client fault)
96
+ * <p>Returned if a required header or parameter is missing from the request.</p>
97
+ *
98
+ * @throws {@link RequestTimeoutException} (client fault)
99
+ * <p>Returned if, when uploading an archive, Amazon S3 Glacier times out while receiving the
100
+ * upload.</p>
101
+ *
102
+ * @throws {@link ResourceNotFoundException} (client fault)
103
+ * <p>Returned if the specified resource (such as a vault, upload ID, or job ID) doesn't
104
+ * exist.</p>
105
+ *
106
+ * @throws {@link ServiceUnavailableException} (server fault)
107
+ * <p>Returned if the service cannot complete the request.</p>
108
+ *
109
+ *
110
+ * @example To upload the first part of an archive
111
+ * ```javascript
112
+ * // The example uploads the first 1 MiB (1024 x 1024 bytes) part of an archive.
113
+ * const input = {
114
+ * "accountId": "-",
115
+ * "body": "part1",
116
+ * "checksum": "c06f7cd4baacb087002a99a5f48bf953",
117
+ * "range": "bytes 0-1048575/*",
118
+ * "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ",
119
+ * "vaultName": "examplevault"
120
+ * };
121
+ * const command = new UploadMultipartPartCommand(input);
122
+ * const response = await client.send(command);
123
+ * /* response ==
124
+ * {
125
+ * "checksum": "c06f7cd4baacb087002a99a5f48bf953"
126
+ * }
127
+ * *\/
128
+ * // example id: to-upload-the-first-part-of-an-archive-1481835899519
129
+ * ```
130
+ *
92
131
  */
93
132
  export declare class UploadMultipartPartCommand extends $Command<UploadMultipartPartCommandInput, UploadMultipartPartCommandOutput, GlacierClientResolvedConfig> {
94
133
  readonly input: UploadMultipartPartCommandInput;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-glacier",
3
3
  "description": "AWS SDK for JavaScript Glacier Client for Node.js, Browser and React Native",
4
- "version": "3.288.0",
4
+ "version": "3.290.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,44 +20,44 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/body-checksum-browser": "3.282.0",
24
- "@aws-sdk/body-checksum-node": "3.282.0",
25
- "@aws-sdk/client-sts": "3.288.0",
26
- "@aws-sdk/config-resolver": "3.287.0",
27
- "@aws-sdk/credential-provider-node": "3.288.0",
28
- "@aws-sdk/fetch-http-handler": "3.282.0",
29
- "@aws-sdk/hash-node": "3.272.0",
30
- "@aws-sdk/invalid-dependency": "3.272.0",
31
- "@aws-sdk/middleware-content-length": "3.282.0",
32
- "@aws-sdk/middleware-endpoint": "3.282.0",
33
- "@aws-sdk/middleware-host-header": "3.282.0",
34
- "@aws-sdk/middleware-logger": "3.288.0",
35
- "@aws-sdk/middleware-recursion-detection": "3.282.0",
36
- "@aws-sdk/middleware-retry": "3.287.0",
37
- "@aws-sdk/middleware-sdk-glacier": "3.282.0",
38
- "@aws-sdk/middleware-serde": "3.272.0",
39
- "@aws-sdk/middleware-signing": "3.282.0",
40
- "@aws-sdk/middleware-stack": "3.272.0",
41
- "@aws-sdk/middleware-user-agent": "3.282.0",
42
- "@aws-sdk/node-config-provider": "3.287.0",
43
- "@aws-sdk/node-http-handler": "3.282.0",
44
- "@aws-sdk/protocol-http": "3.282.0",
45
- "@aws-sdk/smithy-client": "3.279.0",
46
- "@aws-sdk/types": "3.272.0",
47
- "@aws-sdk/url-parser": "3.272.0",
23
+ "@aws-sdk/body-checksum-browser": "3.290.0",
24
+ "@aws-sdk/body-checksum-node": "3.290.0",
25
+ "@aws-sdk/client-sts": "3.290.0",
26
+ "@aws-sdk/config-resolver": "3.290.0",
27
+ "@aws-sdk/credential-provider-node": "3.290.0",
28
+ "@aws-sdk/fetch-http-handler": "3.290.0",
29
+ "@aws-sdk/hash-node": "3.290.0",
30
+ "@aws-sdk/invalid-dependency": "3.290.0",
31
+ "@aws-sdk/middleware-content-length": "3.290.0",
32
+ "@aws-sdk/middleware-endpoint": "3.290.0",
33
+ "@aws-sdk/middleware-host-header": "3.290.0",
34
+ "@aws-sdk/middleware-logger": "3.290.0",
35
+ "@aws-sdk/middleware-recursion-detection": "3.290.0",
36
+ "@aws-sdk/middleware-retry": "3.290.0",
37
+ "@aws-sdk/middleware-sdk-glacier": "3.290.0",
38
+ "@aws-sdk/middleware-serde": "3.290.0",
39
+ "@aws-sdk/middleware-signing": "3.290.0",
40
+ "@aws-sdk/middleware-stack": "3.290.0",
41
+ "@aws-sdk/middleware-user-agent": "3.290.0",
42
+ "@aws-sdk/node-config-provider": "3.290.0",
43
+ "@aws-sdk/node-http-handler": "3.290.0",
44
+ "@aws-sdk/protocol-http": "3.290.0",
45
+ "@aws-sdk/smithy-client": "3.290.0",
46
+ "@aws-sdk/types": "3.290.0",
47
+ "@aws-sdk/url-parser": "3.290.0",
48
48
  "@aws-sdk/util-base64": "3.208.0",
49
49
  "@aws-sdk/util-body-length-browser": "3.188.0",
50
50
  "@aws-sdk/util-body-length-node": "3.208.0",
51
- "@aws-sdk/util-defaults-mode-browser": "3.279.0",
52
- "@aws-sdk/util-defaults-mode-node": "3.287.0",
53
- "@aws-sdk/util-endpoints": "3.272.0",
54
- "@aws-sdk/util-retry": "3.272.0",
55
- "@aws-sdk/util-stream-browser": "3.282.0",
56
- "@aws-sdk/util-stream-node": "3.282.0",
57
- "@aws-sdk/util-user-agent-browser": "3.282.0",
58
- "@aws-sdk/util-user-agent-node": "3.287.0",
51
+ "@aws-sdk/util-defaults-mode-browser": "3.290.0",
52
+ "@aws-sdk/util-defaults-mode-node": "3.290.0",
53
+ "@aws-sdk/util-endpoints": "3.290.0",
54
+ "@aws-sdk/util-retry": "3.290.0",
55
+ "@aws-sdk/util-stream-browser": "3.290.0",
56
+ "@aws-sdk/util-stream-node": "3.290.0",
57
+ "@aws-sdk/util-user-agent-browser": "3.290.0",
58
+ "@aws-sdk/util-user-agent-node": "3.290.0",
59
59
  "@aws-sdk/util-utf8": "3.254.0",
60
- "@aws-sdk/util-waiter": "3.272.0",
60
+ "@aws-sdk/util-waiter": "3.290.0",
61
61
  "tslib": "^2.3.1"
62
62
  },
63
63
  "devDependencies": {