@aws-sdk/client-cloudhsm-v2 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.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -24,16 +24,16 @@ using your favorite package manager:
24
24
 
25
25
  The AWS SDK is modulized by clients and commands.
26
26
  To send a request, you only need to import the `CloudHSMV2Client` and
27
- the commands you need, for example `CopyBackupToRegionCommand`:
27
+ the commands you need, for example `ListTagsCommand`:
28
28
 
29
29
  ```js
30
30
  // ES5 example
31
- const { CloudHSMV2Client, CopyBackupToRegionCommand } = require("@aws-sdk/client-cloudhsm-v2");
31
+ const { CloudHSMV2Client, ListTagsCommand } = require("@aws-sdk/client-cloudhsm-v2");
32
32
  ```
33
33
 
34
34
  ```ts
35
35
  // ES6+ example
36
- import { CloudHSMV2Client, CopyBackupToRegionCommand } from "@aws-sdk/client-cloudhsm-v2";
36
+ import { CloudHSMV2Client, ListTagsCommand } from "@aws-sdk/client-cloudhsm-v2";
37
37
  ```
38
38
 
39
39
  ### Usage
@@ -52,7 +52,7 @@ const client = new CloudHSMV2Client({ region: "REGION" });
52
52
  const params = {
53
53
  /** input parameters */
54
54
  };
55
- const command = new CopyBackupToRegionCommand(params);
55
+ const command = new ListTagsCommand(params);
56
56
  ```
57
57
 
58
58
  #### Async/await
@@ -131,7 +131,7 @@ const client = new AWS.CloudHSMV2({ region: "REGION" });
131
131
 
132
132
  // async/await.
133
133
  try {
134
- const data = await client.copyBackupToRegion(params);
134
+ const data = await client.listTags(params);
135
135
  // process data.
136
136
  } catch (error) {
137
137
  // error handling.
@@ -139,7 +139,7 @@ try {
139
139
 
140
140
  // Promises.
141
141
  client
142
- .copyBackupToRegion(params)
142
+ .listTags(params)
143
143
  .then((data) => {
144
144
  // process data.
145
145
  })
@@ -148,7 +148,7 @@ client
148
148
  });
149
149
 
150
150
  // callbacks.
151
- client.copyBackupToRegion(params, (err, data) => {
151
+ client.listTags(params, (err, data) => {
152
152
  // process err and data.
153
153
  });
154
154
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudhsm-v2",
3
3
  "description": "AWS SDK for JavaScript Cloudhsm V2 Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
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",
@@ -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.421.0",
25
+ "@aws-sdk/credential-provider-node": "3.421.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",