@aws-sdk/client-wellarchitected 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.
- package/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -29,16 +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 `WellArchitectedClient` and
|
|
32
|
-
the commands you need, for example `
|
|
32
|
+
the commands you need, for example `ListLensesCommand`:
|
|
33
33
|
|
|
34
34
|
```js
|
|
35
35
|
// ES5 example
|
|
36
|
-
const { WellArchitectedClient,
|
|
36
|
+
const { WellArchitectedClient, ListLensesCommand } = require("@aws-sdk/client-wellarchitected");
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
```ts
|
|
40
40
|
// ES6+ example
|
|
41
|
-
import { WellArchitectedClient,
|
|
41
|
+
import { WellArchitectedClient, ListLensesCommand } from "@aws-sdk/client-wellarchitected";
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
### Usage
|
|
@@ -57,7 +57,7 @@ const client = new WellArchitectedClient({ region: "REGION" });
|
|
|
57
57
|
const params = {
|
|
58
58
|
/** input parameters */
|
|
59
59
|
};
|
|
60
|
-
const command = new
|
|
60
|
+
const command = new ListLensesCommand(params);
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
#### Async/await
|
|
@@ -136,7 +136,7 @@ const client = new AWS.WellArchitected({ region: "REGION" });
|
|
|
136
136
|
|
|
137
137
|
// async/await.
|
|
138
138
|
try {
|
|
139
|
-
const data = await client.
|
|
139
|
+
const data = await client.listLenses(params);
|
|
140
140
|
// process data.
|
|
141
141
|
} catch (error) {
|
|
142
142
|
// error handling.
|
|
@@ -144,7 +144,7 @@ try {
|
|
|
144
144
|
|
|
145
145
|
// Promises.
|
|
146
146
|
client
|
|
147
|
-
.
|
|
147
|
+
.listLenses(params)
|
|
148
148
|
.then((data) => {
|
|
149
149
|
// process data.
|
|
150
150
|
})
|
|
@@ -153,7 +153,7 @@ client
|
|
|
153
153
|
});
|
|
154
154
|
|
|
155
155
|
// callbacks.
|
|
156
|
-
client.
|
|
156
|
+
client.listLenses(params, (err, data) => {
|
|
157
157
|
// process err and data.
|
|
158
158
|
});
|
|
159
159
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-wellarchitected",
|
|
3
3
|
"description": "AWS SDK for JavaScript Wellarchitected Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|