@aws-sdk/client-backup 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
@@ -28,16 +28,16 @@ using your favorite package manager:
28
28
 
29
29
  The AWS SDK is modulized by clients and commands.
30
30
  To send a request, you only need to import the `BackupClient` and
31
- the commands you need, for example `CancelLegalHoldCommand`:
31
+ the commands you need, for example `ListBackupJobsCommand`:
32
32
 
33
33
  ```js
34
34
  // ES5 example
35
- const { BackupClient, CancelLegalHoldCommand } = require("@aws-sdk/client-backup");
35
+ const { BackupClient, ListBackupJobsCommand } = require("@aws-sdk/client-backup");
36
36
  ```
37
37
 
38
38
  ```ts
39
39
  // ES6+ example
40
- import { BackupClient, CancelLegalHoldCommand } from "@aws-sdk/client-backup";
40
+ import { BackupClient, ListBackupJobsCommand } from "@aws-sdk/client-backup";
41
41
  ```
42
42
 
43
43
  ### Usage
@@ -56,7 +56,7 @@ const client = new BackupClient({ region: "REGION" });
56
56
  const params = {
57
57
  /** input parameters */
58
58
  };
59
- const command = new CancelLegalHoldCommand(params);
59
+ const command = new ListBackupJobsCommand(params);
60
60
  ```
61
61
 
62
62
  #### Async/await
@@ -135,7 +135,7 @@ const client = new AWS.Backup({ region: "REGION" });
135
135
 
136
136
  // async/await.
137
137
  try {
138
- const data = await client.cancelLegalHold(params);
138
+ const data = await client.listBackupJobs(params);
139
139
  // process data.
140
140
  } catch (error) {
141
141
  // error handling.
@@ -143,7 +143,7 @@ try {
143
143
 
144
144
  // Promises.
145
145
  client
146
- .cancelLegalHold(params)
146
+ .listBackupJobs(params)
147
147
  .then((data) => {
148
148
  // process data.
149
149
  })
@@ -152,7 +152,7 @@ client
152
152
  });
153
153
 
154
154
  // callbacks.
155
- client.cancelLegalHold(params, (err, data) => {
155
+ client.listBackupJobs(params, (err, data) => {
156
156
  // process err and data.
157
157
  });
158
158
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-backup",
3
3
  "description": "AWS SDK for JavaScript Backup 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",