@aws-sdk/client-synthetics 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
|
@@ -38,16 +38,16 @@ using your favorite package manager:
|
|
|
38
38
|
|
|
39
39
|
The AWS SDK is modulized by clients and commands.
|
|
40
40
|
To send a request, you only need to import the `SyntheticsClient` and
|
|
41
|
-
the commands you need, for example `
|
|
41
|
+
the commands you need, for example `ListGroupsCommand`:
|
|
42
42
|
|
|
43
43
|
```js
|
|
44
44
|
// ES5 example
|
|
45
|
-
const { SyntheticsClient,
|
|
45
|
+
const { SyntheticsClient, ListGroupsCommand } = require("@aws-sdk/client-synthetics");
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
```ts
|
|
49
49
|
// ES6+ example
|
|
50
|
-
import { SyntheticsClient,
|
|
50
|
+
import { SyntheticsClient, ListGroupsCommand } from "@aws-sdk/client-synthetics";
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
### Usage
|
|
@@ -66,7 +66,7 @@ const client = new SyntheticsClient({ region: "REGION" });
|
|
|
66
66
|
const params = {
|
|
67
67
|
/** input parameters */
|
|
68
68
|
};
|
|
69
|
-
const command = new
|
|
69
|
+
const command = new ListGroupsCommand(params);
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
#### Async/await
|
|
@@ -145,7 +145,7 @@ const client = new AWS.Synthetics({ region: "REGION" });
|
|
|
145
145
|
|
|
146
146
|
// async/await.
|
|
147
147
|
try {
|
|
148
|
-
const data = await client.
|
|
148
|
+
const data = await client.listGroups(params);
|
|
149
149
|
// process data.
|
|
150
150
|
} catch (error) {
|
|
151
151
|
// error handling.
|
|
@@ -153,7 +153,7 @@ try {
|
|
|
153
153
|
|
|
154
154
|
// Promises.
|
|
155
155
|
client
|
|
156
|
-
.
|
|
156
|
+
.listGroups(params)
|
|
157
157
|
.then((data) => {
|
|
158
158
|
// process data.
|
|
159
159
|
})
|
|
@@ -162,7 +162,7 @@ client
|
|
|
162
162
|
});
|
|
163
163
|
|
|
164
164
|
// callbacks.
|
|
165
|
-
client.
|
|
165
|
+
client.listGroups(params, (err, data) => {
|
|
166
166
|
// process err and data.
|
|
167
167
|
});
|
|
168
168
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-synthetics",
|
|
3
3
|
"description": "AWS SDK for JavaScript Synthetics 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",
|