@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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. 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 `CancelKeyDeletionCommand`:
121
+ the commands you need, for example `ListAliasesCommand`:
122
122
 
123
123
  ```js
124
124
  // ES5 example
125
- const { KMSClient, CancelKeyDeletionCommand } = require("@aws-sdk/client-kms");
125
+ const { KMSClient, ListAliasesCommand } = require("@aws-sdk/client-kms");
126
126
  ```
127
127
 
128
128
  ```ts
129
129
  // ES6+ example
130
- import { KMSClient, CancelKeyDeletionCommand } from "@aws-sdk/client-kms";
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 CancelKeyDeletionCommand(params);
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.cancelKeyDeletion(params);
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
- .cancelKeyDeletion(params)
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.cancelKeyDeletion(params, (err, data) => {
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.418.0",
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.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
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",