@aws-sdk/client-glacier 3.774.0 → 3.777.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 (40) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  2. package/dist-cjs/index.js +17 -18
  3. package/dist-es/GlacierClient.js +2 -1
  4. package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  5. package/dist-es/endpoint/EndpointParameters.js +2 -3
  6. package/dist-es/runtimeExtensions.js +2 -14
  7. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +9 -6
  8. package/dist-types/commands/AbortVaultLockCommand.d.ts +8 -5
  9. package/dist-types/commands/AddTagsToVaultCommand.d.ts +11 -8
  10. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +11 -11
  11. package/dist-types/commands/CompleteVaultLockCommand.d.ts +9 -6
  12. package/dist-types/commands/CreateVaultCommand.d.ts +6 -6
  13. package/dist-types/commands/DeleteArchiveCommand.d.ts +9 -6
  14. package/dist-types/commands/DeleteVaultAccessPolicyCommand.d.ts +8 -5
  15. package/dist-types/commands/DeleteVaultCommand.d.ts +8 -5
  16. package/dist-types/commands/DeleteVaultNotificationsCommand.d.ts +8 -5
  17. package/dist-types/commands/DescribeJobCommand.d.ts +14 -14
  18. package/dist-types/commands/DescribeVaultCommand.d.ts +10 -10
  19. package/dist-types/commands/GetDataRetrievalPolicyCommand.d.ts +8 -8
  20. package/dist-types/commands/GetJobOutputCommand.d.ts +21 -11
  21. package/dist-types/commands/GetVaultAccessPolicyCommand.d.ts +7 -7
  22. package/dist-types/commands/GetVaultLockCommand.d.ts +9 -9
  23. package/dist-types/commands/GetVaultNotificationsCommand.d.ts +8 -8
  24. package/dist-types/commands/InitiateJobCommand.d.ts +12 -12
  25. package/dist-types/commands/InitiateMultipartUploadCommand.d.ts +8 -8
  26. package/dist-types/commands/InitiateVaultLockCommand.d.ts +8 -8
  27. package/dist-types/commands/ListJobsCommand.d.ts +27 -27
  28. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +22 -22
  29. package/dist-types/commands/ListPartsCommand.d.ts +17 -17
  30. package/dist-types/commands/ListProvisionedCapacityCommand.d.ts +11 -11
  31. package/dist-types/commands/ListTagsForVaultCommand.d.ts +8 -8
  32. package/dist-types/commands/ListVaultsCommand.d.ts +1 -27
  33. package/dist-types/commands/PurchaseProvisionedCapacityCommand.d.ts +5 -5
  34. package/dist-types/commands/RemoveTagsFromVaultCommand.d.ts +9 -6
  35. package/dist-types/commands/SetDataRetrievalPolicyCommand.d.ts +11 -8
  36. package/dist-types/commands/SetVaultAccessPolicyCommand.d.ts +10 -7
  37. package/dist-types/commands/SetVaultNotificationsCommand.d.ts +11 -8
  38. package/dist-types/commands/UploadArchiveCommand.d.ts +11 -11
  39. package/dist-types/commands/UploadMultipartPartCommand.d.ts +10 -10
  40. package/package.json +38 -38
@@ -74,26 +74,29 @@ declare const SetDataRetrievalPolicyCommand_base: {
74
74
  * @throws {@link GlacierServiceException}
75
75
  * <p>Base exception class for all service exceptions from Glacier service.</p>
76
76
  *
77
- * @public
77
+ *
78
78
  * @example To set and then enact a data retrieval policy
79
79
  * ```javascript
80
80
  * // The example sets and then enacts a data retrieval policy.
81
81
  * const input = {
82
- * "Policy": {
83
- * "Rules": [
82
+ * Policy: {
83
+ * Rules: [
84
84
  * {
85
- * "BytesPerHour": 10737418240,
86
- * "Strategy": "BytesPerHour"
85
+ * BytesPerHour: 10737418240,
86
+ * Strategy: "BytesPerHour"
87
87
  * }
88
88
  * ]
89
89
  * },
90
- * "accountId": "-"
90
+ * accountId: "-"
91
91
  * };
92
92
  * const command = new SetDataRetrievalPolicyCommand(input);
93
- * await client.send(command);
94
- * // example id: to-set-and-then-enact-a-data-retrieval-policy--1481928352408
93
+ * const response = await client.send(command);
94
+ * /* response is
95
+ * { /* metadata only *\/ }
96
+ * *\/
95
97
  * ```
96
98
  *
99
+ * @public
97
100
  */
98
101
  export declare class SetDataRetrievalPolicyCommand extends SetDataRetrievalPolicyCommand_base {
99
102
  /** @internal type navigation helper, not in runtime. */
@@ -74,22 +74,25 @@ declare const SetVaultAccessPolicyCommand_base: {
74
74
  * @throws {@link GlacierServiceException}
75
75
  * <p>Base exception class for all service exceptions from Glacier service.</p>
76
76
  *
77
- * @public
77
+ *
78
78
  * @example To set the access-policy on a vault
79
79
  * ```javascript
80
80
  * // The example configures an access policy for the vault named examplevault.
81
81
  * const input = {
82
- * "accountId": "-",
83
- * "policy": {
84
- * "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Define-owner-access-rights\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::999999999999:root\"},\"Action\":\"glacier:DeleteArchive\",\"Resource\":\"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault\"}]}"
82
+ * accountId: "-",
83
+ * policy: {
84
+ * Policy: `{"Version":"2012-10-17","Statement":[{"Sid":"Define-owner-access-rights","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::999999999999:root"},"Action":"glacier:DeleteArchive","Resource":"arn:aws:glacier:us-west-2:999999999999:vaults/examplevault"}]}`
85
85
  * },
86
- * "vaultName": "examplevault"
86
+ * vaultName: "examplevault"
87
87
  * };
88
88
  * const command = new SetVaultAccessPolicyCommand(input);
89
- * await client.send(command);
90
- * // example id: to--set-the-access-policy-on-a-vault-1482185872517
89
+ * const response = await client.send(command);
90
+ * /* response is
91
+ * { /* metadata only *\/ }
92
+ * *\/
91
93
  * ```
92
94
  *
95
+ * @public
93
96
  */
94
97
  export declare class SetVaultAccessPolicyCommand extends SetVaultAccessPolicyCommand_base {
95
98
  /** @internal type navigation helper, not in runtime. */
@@ -109,26 +109,29 @@ declare const SetVaultNotificationsCommand_base: {
109
109
  * @throws {@link GlacierServiceException}
110
110
  * <p>Base exception class for all service exceptions from Glacier service.</p>
111
111
  *
112
- * @public
112
+ *
113
113
  * @example To configure a vault to post a message to an Amazon SNS topic when jobs complete
114
114
  * ```javascript
115
115
  * // The example sets the examplevault notification configuration.
116
116
  * const input = {
117
- * "accountId": "-",
118
- * "vaultName": "examplevault",
119
- * "vaultNotificationConfig": {
120
- * "Events": [
117
+ * accountId: "-",
118
+ * vaultName: "examplevault",
119
+ * vaultNotificationConfig: {
120
+ * Events: [
121
121
  * "ArchiveRetrievalCompleted",
122
122
  * "InventoryRetrievalCompleted"
123
123
  * ],
124
- * "SNSTopic": "arn:aws:sns:us-west-2:012345678901:mytopic"
124
+ * SNSTopic: "arn:aws:sns:us-west-2:012345678901:mytopic"
125
125
  * }
126
126
  * };
127
127
  * const command = new SetVaultNotificationsCommand(input);
128
- * await client.send(command);
129
- * // example id: to-configure-a-vault-to-post-a-message-to-an-amazon-simple-notification-service-amazon-sns-topic-when-jobs-complete-1482186397475
128
+ * const response = await client.send(command);
129
+ * /* response is
130
+ * { /* metadata only *\/ }
131
+ * *\/
130
132
  * ```
131
133
  *
134
+ * @public
132
135
  */
133
136
  export declare class SetVaultNotificationsCommand extends SetVaultNotificationsCommand_base {
134
137
  /** @internal type navigation helper, not in runtime. */
@@ -109,29 +109,29 @@ declare const UploadArchiveCommand_base: {
109
109
  * @throws {@link GlacierServiceException}
110
110
  * <p>Base exception class for all service exceptions from Glacier service.</p>
111
111
  *
112
- * @public
112
+ *
113
113
  * @example To upload an archive
114
114
  * ```javascript
115
115
  * // The example adds an archive to a vault.
116
116
  * const input = {
117
- * "accountId": "-",
118
- * "archiveDescription": "",
119
- * "body": "example-data-to-upload",
120
- * "checksum": "",
121
- * "vaultName": "my-vault"
117
+ * accountId: "-",
118
+ * archiveDescription: "",
119
+ * body: "example-data-to-upload",
120
+ * checksum: "",
121
+ * vaultName: "my-vault"
122
122
  * };
123
123
  * const command = new UploadArchiveCommand(input);
124
124
  * const response = await client.send(command);
125
- * /* response ==
125
+ * /* response is
126
126
  * {
127
- * "archiveId": "kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw",
128
- * "checksum": "969fb39823836d81f0cc028195fcdbcbbe76cdde932d4646fa7de5f21e18aa67",
129
- * "location": "/0123456789012/vaults/my-vault/archives/kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw"
127
+ * archiveId: "kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw",
128
+ * checksum: "969fb39823836d81f0cc028195fcdbcbbe76cdde932d4646fa7de5f21e18aa67",
129
+ * location: "/0123456789012/vaults/my-vault/archives/kKB7ymWJVpPSwhGP6ycSOAekp9ZYe_--zM_mw6k76ZFGEIWQX-ybtRDvc2VkPSDtfKmQrj0IRQLSGsNuDp-AJVlu2ccmDSyDUmZwKbwbpAdGATGDiB3hHO0bjbGehXTcApVud_wyDw"
130
130
  * }
131
131
  * *\/
132
- * // example id: upload-archive-1481668510494
133
132
  * ```
134
133
  *
134
+ * @public
135
135
  */
136
136
  export declare class UploadArchiveCommand extends UploadArchiveCommand_base {
137
137
  /** @internal type navigation helper, not in runtime. */
@@ -127,28 +127,28 @@ declare const UploadMultipartPartCommand_base: {
127
127
  * @throws {@link GlacierServiceException}
128
128
  * <p>Base exception class for all service exceptions from Glacier service.</p>
129
129
  *
130
- * @public
130
+ *
131
131
  * @example To upload the first part of an archive
132
132
  * ```javascript
133
133
  * // The example uploads the first 1 MiB (1024 x 1024 bytes) part of an archive.
134
134
  * const input = {
135
- * "accountId": "-",
136
- * "body": "part1",
137
- * "checksum": "c06f7cd4baacb087002a99a5f48bf953",
138
- * "range": "bytes 0-1048575/*",
139
- * "uploadId": "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ",
140
- * "vaultName": "examplevault"
135
+ * accountId: "-",
136
+ * body: "part1",
137
+ * checksum: "c06f7cd4baacb087002a99a5f48bf953",
138
+ * range: "bytes 0-1048575/*",
139
+ * uploadId: "19gaRezEXAMPLES6Ry5YYdqthHOC_kGRCT03L9yetr220UmPtBYKk-OssZtLqyFu7sY1_lR7vgFuJV6NtcV5zpsJ",
140
+ * vaultName: "examplevault"
141
141
  * };
142
142
  * const command = new UploadMultipartPartCommand(input);
143
143
  * const response = await client.send(command);
144
- * /* response ==
144
+ * /* response is
145
145
  * {
146
- * "checksum": "c06f7cd4baacb087002a99a5f48bf953"
146
+ * checksum: "c06f7cd4baacb087002a99a5f48bf953"
147
147
  * }
148
148
  * *\/
149
- * // example id: to-upload-the-first-part-of-an-archive-1481835899519
150
149
  * ```
151
150
  *
151
+ * @public
152
152
  */
153
153
  export declare class UploadMultipartPartCommand extends UploadMultipartPartCommand_base {
154
154
  /** @internal type navigation helper, not in runtime. */
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.774.0",
4
+ "version": "3.777.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-glacier",
@@ -20,47 +20,47 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/body-checksum-browser": "3.734.0",
24
- "@aws-sdk/body-checksum-node": "3.734.0",
25
- "@aws-sdk/core": "3.774.0",
26
- "@aws-sdk/credential-provider-node": "3.774.0",
27
- "@aws-sdk/middleware-host-header": "3.774.0",
28
- "@aws-sdk/middleware-logger": "3.734.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.772.0",
30
- "@aws-sdk/middleware-sdk-glacier": "3.734.0",
31
- "@aws-sdk/middleware-user-agent": "3.774.0",
32
- "@aws-sdk/region-config-resolver": "3.734.0",
33
- "@aws-sdk/types": "3.734.0",
34
- "@aws-sdk/util-endpoints": "3.743.0",
35
- "@aws-sdk/util-user-agent-browser": "3.734.0",
36
- "@aws-sdk/util-user-agent-node": "3.774.0",
37
- "@smithy/config-resolver": "^4.0.1",
38
- "@smithy/core": "^3.1.5",
39
- "@smithy/fetch-http-handler": "^5.0.1",
40
- "@smithy/hash-node": "^4.0.1",
41
- "@smithy/invalid-dependency": "^4.0.1",
42
- "@smithy/middleware-content-length": "^4.0.1",
43
- "@smithy/middleware-endpoint": "^4.0.6",
44
- "@smithy/middleware-retry": "^4.0.7",
45
- "@smithy/middleware-serde": "^4.0.2",
46
- "@smithy/middleware-stack": "^4.0.1",
47
- "@smithy/node-config-provider": "^4.0.1",
48
- "@smithy/node-http-handler": "^4.0.3",
49
- "@smithy/protocol-http": "^5.0.1",
50
- "@smithy/smithy-client": "^4.1.6",
51
- "@smithy/types": "^4.1.0",
52
- "@smithy/url-parser": "^4.0.1",
23
+ "@aws-sdk/body-checksum-browser": "3.775.0",
24
+ "@aws-sdk/body-checksum-node": "3.775.0",
25
+ "@aws-sdk/core": "3.775.0",
26
+ "@aws-sdk/credential-provider-node": "3.777.0",
27
+ "@aws-sdk/middleware-host-header": "3.775.0",
28
+ "@aws-sdk/middleware-logger": "3.775.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.775.0",
30
+ "@aws-sdk/middleware-sdk-glacier": "3.775.0",
31
+ "@aws-sdk/middleware-user-agent": "3.775.0",
32
+ "@aws-sdk/region-config-resolver": "3.775.0",
33
+ "@aws-sdk/types": "3.775.0",
34
+ "@aws-sdk/util-endpoints": "3.775.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.775.0",
36
+ "@aws-sdk/util-user-agent-node": "3.775.0",
37
+ "@smithy/config-resolver": "^4.1.0",
38
+ "@smithy/core": "^3.2.0",
39
+ "@smithy/fetch-http-handler": "^5.0.2",
40
+ "@smithy/hash-node": "^4.0.2",
41
+ "@smithy/invalid-dependency": "^4.0.2",
42
+ "@smithy/middleware-content-length": "^4.0.2",
43
+ "@smithy/middleware-endpoint": "^4.1.0",
44
+ "@smithy/middleware-retry": "^4.1.0",
45
+ "@smithy/middleware-serde": "^4.0.3",
46
+ "@smithy/middleware-stack": "^4.0.2",
47
+ "@smithy/node-config-provider": "^4.0.2",
48
+ "@smithy/node-http-handler": "^4.0.4",
49
+ "@smithy/protocol-http": "^5.1.0",
50
+ "@smithy/smithy-client": "^4.2.0",
51
+ "@smithy/types": "^4.2.0",
52
+ "@smithy/url-parser": "^4.0.2",
53
53
  "@smithy/util-base64": "^4.0.0",
54
54
  "@smithy/util-body-length-browser": "^4.0.0",
55
55
  "@smithy/util-body-length-node": "^4.0.0",
56
- "@smithy/util-defaults-mode-browser": "^4.0.7",
57
- "@smithy/util-defaults-mode-node": "^4.0.7",
58
- "@smithy/util-endpoints": "^3.0.1",
59
- "@smithy/util-middleware": "^4.0.1",
60
- "@smithy/util-retry": "^4.0.1",
61
- "@smithy/util-stream": "^4.1.2",
56
+ "@smithy/util-defaults-mode-browser": "^4.0.8",
57
+ "@smithy/util-defaults-mode-node": "^4.0.8",
58
+ "@smithy/util-endpoints": "^3.0.2",
59
+ "@smithy/util-middleware": "^4.0.2",
60
+ "@smithy/util-retry": "^4.0.2",
61
+ "@smithy/util-stream": "^4.2.0",
62
62
  "@smithy/util-utf8": "^4.0.0",
63
- "@smithy/util-waiter": "^4.0.2",
63
+ "@smithy/util-waiter": "^4.0.3",
64
64
  "tslib": "^2.6.2"
65
65
  },
66
66
  "devDependencies": {