@aws-sdk/client-proton 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
|
@@ -151,16 +151,16 @@ using your favorite package manager:
|
|
|
151
151
|
|
|
152
152
|
The AWS SDK is modulized by clients and commands.
|
|
153
153
|
To send a request, you only need to import the `ProtonClient` and
|
|
154
|
-
the commands you need, for example `
|
|
154
|
+
the commands you need, for example `ListComponentsCommand`:
|
|
155
155
|
|
|
156
156
|
```js
|
|
157
157
|
// ES5 example
|
|
158
|
-
const { ProtonClient,
|
|
158
|
+
const { ProtonClient, ListComponentsCommand } = require("@aws-sdk/client-proton");
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
```ts
|
|
162
162
|
// ES6+ example
|
|
163
|
-
import { ProtonClient,
|
|
163
|
+
import { ProtonClient, ListComponentsCommand } from "@aws-sdk/client-proton";
|
|
164
164
|
```
|
|
165
165
|
|
|
166
166
|
### Usage
|
|
@@ -179,7 +179,7 @@ const client = new ProtonClient({ region: "REGION" });
|
|
|
179
179
|
const params = {
|
|
180
180
|
/** input parameters */
|
|
181
181
|
};
|
|
182
|
-
const command = new
|
|
182
|
+
const command = new ListComponentsCommand(params);
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
#### Async/await
|
|
@@ -258,7 +258,7 @@ const client = new AWS.Proton({ region: "REGION" });
|
|
|
258
258
|
|
|
259
259
|
// async/await.
|
|
260
260
|
try {
|
|
261
|
-
const data = await client.
|
|
261
|
+
const data = await client.listComponents(params);
|
|
262
262
|
// process data.
|
|
263
263
|
} catch (error) {
|
|
264
264
|
// error handling.
|
|
@@ -266,7 +266,7 @@ try {
|
|
|
266
266
|
|
|
267
267
|
// Promises.
|
|
268
268
|
client
|
|
269
|
-
.
|
|
269
|
+
.listComponents(params)
|
|
270
270
|
.then((data) => {
|
|
271
271
|
// process data.
|
|
272
272
|
})
|
|
@@ -275,7 +275,7 @@ client
|
|
|
275
275
|
});
|
|
276
276
|
|
|
277
277
|
// callbacks.
|
|
278
|
-
client.
|
|
278
|
+
client.listComponents(params, (err, data) => {
|
|
279
279
|
// process err and data.
|
|
280
280
|
});
|
|
281
281
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-proton",
|
|
3
3
|
"description": "AWS SDK for JavaScript Proton 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",
|