@aws-sdk/client-kms 3.418.0 → 3.423.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
|
@@ -118,16 +118,16 @@ using your favorite package manager:
|
|
|
118
118
|
|
|
119
119
|
The AWS SDK is modulized by clients and commands.
|
|
120
120
|
To send a request, you only need to import the `KMSClient` and
|
|
121
|
-
the commands you need, for example `
|
|
121
|
+
the commands you need, for example `ListAliasesCommand`:
|
|
122
122
|
|
|
123
123
|
```js
|
|
124
124
|
// ES5 example
|
|
125
|
-
const { KMSClient,
|
|
125
|
+
const { KMSClient, ListAliasesCommand } = require("@aws-sdk/client-kms");
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
```ts
|
|
129
129
|
// ES6+ example
|
|
130
|
-
import { KMSClient,
|
|
130
|
+
import { KMSClient, ListAliasesCommand } from "@aws-sdk/client-kms";
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
### Usage
|
|
@@ -146,7 +146,7 @@ const client = new KMSClient({ region: "REGION" });
|
|
|
146
146
|
const params = {
|
|
147
147
|
/** input parameters */
|
|
148
148
|
};
|
|
149
|
-
const command = new
|
|
149
|
+
const command = new ListAliasesCommand(params);
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
#### Async/await
|
|
@@ -225,7 +225,7 @@ const client = new AWS.KMS({ region: "REGION" });
|
|
|
225
225
|
|
|
226
226
|
// async/await.
|
|
227
227
|
try {
|
|
228
|
-
const data = await client.
|
|
228
|
+
const data = await client.listAliases(params);
|
|
229
229
|
// process data.
|
|
230
230
|
} catch (error) {
|
|
231
231
|
// error handling.
|
|
@@ -233,7 +233,7 @@ try {
|
|
|
233
233
|
|
|
234
234
|
// Promises.
|
|
235
235
|
client
|
|
236
|
-
.
|
|
236
|
+
.listAliases(params)
|
|
237
237
|
.then((data) => {
|
|
238
238
|
// process data.
|
|
239
239
|
})
|
|
@@ -242,7 +242,7 @@ client
|
|
|
242
242
|
});
|
|
243
243
|
|
|
244
244
|
// callbacks.
|
|
245
|
-
client.
|
|
245
|
+
client.listAliases(params, (err, data) => {
|
|
246
246
|
// process err and data.
|
|
247
247
|
});
|
|
248
248
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kms",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.423.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",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.423.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.423.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|