@aws-sdk/client-glacier 3.418.0 → 3.421.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.
- package/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -60,16 +60,16 @@ using your favorite package manager:
|
|
|
60
60
|
|
|
61
61
|
The AWS SDK is modulized by clients and commands.
|
|
62
62
|
To send a request, you only need to import the `GlacierClient` and
|
|
63
|
-
the commands you need, for example `
|
|
63
|
+
the commands you need, for example `ListVaultsCommand`:
|
|
64
64
|
|
|
65
65
|
```js
|
|
66
66
|
// ES5 example
|
|
67
|
-
const { GlacierClient,
|
|
67
|
+
const { GlacierClient, ListVaultsCommand } = require("@aws-sdk/client-glacier");
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
```ts
|
|
71
71
|
// ES6+ example
|
|
72
|
-
import { GlacierClient,
|
|
72
|
+
import { GlacierClient, ListVaultsCommand } from "@aws-sdk/client-glacier";
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### Usage
|
|
@@ -88,7 +88,7 @@ const client = new GlacierClient({ region: "REGION" });
|
|
|
88
88
|
const params = {
|
|
89
89
|
/** input parameters */
|
|
90
90
|
};
|
|
91
|
-
const command = new
|
|
91
|
+
const command = new ListVaultsCommand(params);
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
#### Async/await
|
|
@@ -167,7 +167,7 @@ const client = new AWS.Glacier({ region: "REGION" });
|
|
|
167
167
|
|
|
168
168
|
// async/await.
|
|
169
169
|
try {
|
|
170
|
-
const data = await client.
|
|
170
|
+
const data = await client.listVaults(params);
|
|
171
171
|
// process data.
|
|
172
172
|
} catch (error) {
|
|
173
173
|
// error handling.
|
|
@@ -175,7 +175,7 @@ try {
|
|
|
175
175
|
|
|
176
176
|
// Promises.
|
|
177
177
|
client
|
|
178
|
-
.
|
|
178
|
+
.listVaults(params)
|
|
179
179
|
.then((data) => {
|
|
180
180
|
// process data.
|
|
181
181
|
})
|
|
@@ -184,7 +184,7 @@ client
|
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
// callbacks.
|
|
187
|
-
client.
|
|
187
|
+
client.listVaults(params, (err, data) => {
|
|
188
188
|
// process err and data.
|
|
189
189
|
});
|
|
190
190
|
```
|
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.
|
|
4
|
+
"version": "3.421.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",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
24
|
"@aws-sdk/body-checksum-browser": "3.418.0",
|
|
25
25
|
"@aws-sdk/body-checksum-node": "3.418.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/client-sts": "3.421.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.421.0",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|