@aws-sdk/client-backup-gateway 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
@@ -32,16 +32,16 @@ using your favorite package manager:
32
32
 
33
33
  The AWS SDK is modulized by clients and commands.
34
34
  To send a request, you only need to import the `BackupGatewayClient` and
35
- the commands you need, for example `AssociateGatewayToServerCommand`:
35
+ the commands you need, for example `ListGatewaysCommand`:
36
36
 
37
37
  ```js
38
38
  // ES5 example
39
- const { BackupGatewayClient, AssociateGatewayToServerCommand } = require("@aws-sdk/client-backup-gateway");
39
+ const { BackupGatewayClient, ListGatewaysCommand } = require("@aws-sdk/client-backup-gateway");
40
40
  ```
41
41
 
42
42
  ```ts
43
43
  // ES6+ example
44
- import { BackupGatewayClient, AssociateGatewayToServerCommand } from "@aws-sdk/client-backup-gateway";
44
+ import { BackupGatewayClient, ListGatewaysCommand } from "@aws-sdk/client-backup-gateway";
45
45
  ```
46
46
 
47
47
  ### Usage
@@ -60,7 +60,7 @@ const client = new BackupGatewayClient({ region: "REGION" });
60
60
  const params = {
61
61
  /** input parameters */
62
62
  };
63
- const command = new AssociateGatewayToServerCommand(params);
63
+ const command = new ListGatewaysCommand(params);
64
64
  ```
65
65
 
66
66
  #### Async/await
@@ -139,7 +139,7 @@ const client = new AWS.BackupGateway({ region: "REGION" });
139
139
 
140
140
  // async/await.
141
141
  try {
142
- const data = await client.associateGatewayToServer(params);
142
+ const data = await client.listGateways(params);
143
143
  // process data.
144
144
  } catch (error) {
145
145
  // error handling.
@@ -147,7 +147,7 @@ try {
147
147
 
148
148
  // Promises.
149
149
  client
150
- .associateGatewayToServer(params)
150
+ .listGateways(params)
151
151
  .then((data) => {
152
152
  // process data.
153
153
  })
@@ -156,7 +156,7 @@ client
156
156
  });
157
157
 
158
158
  // callbacks.
159
- client.associateGatewayToServer(params, (err, data) => {
159
+ client.listGateways(params, (err, data) => {
160
160
  // process err and data.
161
161
  });
162
162
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-backup-gateway",
3
3
  "description": "AWS SDK for JavaScript Backup Gateway 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",