@aws-sdk/client-migrationhubstrategy 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 -13
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -29,22 +29,16 @@ using your favorite package manager:
|
|
|
29
29
|
|
|
30
30
|
The AWS SDK is modulized by clients and commands.
|
|
31
31
|
To send a request, you only need to import the `MigrationHubStrategyClient` and
|
|
32
|
-
the commands you need, for example `
|
|
32
|
+
the commands you need, for example `ListServersCommand`:
|
|
33
33
|
|
|
34
34
|
```js
|
|
35
35
|
// ES5 example
|
|
36
|
-
const {
|
|
37
|
-
MigrationHubStrategyClient,
|
|
38
|
-
GetApplicationComponentDetailsCommand,
|
|
39
|
-
} = require("@aws-sdk/client-migrationhubstrategy");
|
|
36
|
+
const { MigrationHubStrategyClient, ListServersCommand } = require("@aws-sdk/client-migrationhubstrategy");
|
|
40
37
|
```
|
|
41
38
|
|
|
42
39
|
```ts
|
|
43
40
|
// ES6+ example
|
|
44
|
-
import {
|
|
45
|
-
MigrationHubStrategyClient,
|
|
46
|
-
GetApplicationComponentDetailsCommand,
|
|
47
|
-
} from "@aws-sdk/client-migrationhubstrategy";
|
|
41
|
+
import { MigrationHubStrategyClient, ListServersCommand } from "@aws-sdk/client-migrationhubstrategy";
|
|
48
42
|
```
|
|
49
43
|
|
|
50
44
|
### Usage
|
|
@@ -63,7 +57,7 @@ const client = new MigrationHubStrategyClient({ region: "REGION" });
|
|
|
63
57
|
const params = {
|
|
64
58
|
/** input parameters */
|
|
65
59
|
};
|
|
66
|
-
const command = new
|
|
60
|
+
const command = new ListServersCommand(params);
|
|
67
61
|
```
|
|
68
62
|
|
|
69
63
|
#### Async/await
|
|
@@ -142,7 +136,7 @@ const client = new AWS.MigrationHubStrategy({ region: "REGION" });
|
|
|
142
136
|
|
|
143
137
|
// async/await.
|
|
144
138
|
try {
|
|
145
|
-
const data = await client.
|
|
139
|
+
const data = await client.listServers(params);
|
|
146
140
|
// process data.
|
|
147
141
|
} catch (error) {
|
|
148
142
|
// error handling.
|
|
@@ -150,7 +144,7 @@ try {
|
|
|
150
144
|
|
|
151
145
|
// Promises.
|
|
152
146
|
client
|
|
153
|
-
.
|
|
147
|
+
.listServers(params)
|
|
154
148
|
.then((data) => {
|
|
155
149
|
// process data.
|
|
156
150
|
})
|
|
@@ -159,7 +153,7 @@ client
|
|
|
159
153
|
});
|
|
160
154
|
|
|
161
155
|
// callbacks.
|
|
162
|
-
client.
|
|
156
|
+
client.listServers(params, (err, data) => {
|
|
163
157
|
// process err and data.
|
|
164
158
|
});
|
|
165
159
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-migrationhubstrategy",
|
|
3
3
|
"description": "AWS SDK for JavaScript Migrationhubstrategy 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",
|