@aws-sdk/client-detective 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
|
@@ -98,16 +98,16 @@ using your favorite package manager:
|
|
|
98
98
|
|
|
99
99
|
The AWS SDK is modulized by clients and commands.
|
|
100
100
|
To send a request, you only need to import the `DetectiveClient` and
|
|
101
|
-
the commands you need, for example `
|
|
101
|
+
the commands you need, for example `ListGraphsCommand`:
|
|
102
102
|
|
|
103
103
|
```js
|
|
104
104
|
// ES5 example
|
|
105
|
-
const { DetectiveClient,
|
|
105
|
+
const { DetectiveClient, ListGraphsCommand } = require("@aws-sdk/client-detective");
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
```ts
|
|
109
109
|
// ES6+ example
|
|
110
|
-
import { DetectiveClient,
|
|
110
|
+
import { DetectiveClient, ListGraphsCommand } from "@aws-sdk/client-detective";
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
### Usage
|
|
@@ -126,7 +126,7 @@ const client = new DetectiveClient({ region: "REGION" });
|
|
|
126
126
|
const params = {
|
|
127
127
|
/** input parameters */
|
|
128
128
|
};
|
|
129
|
-
const command = new
|
|
129
|
+
const command = new ListGraphsCommand(params);
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
#### Async/await
|
|
@@ -205,7 +205,7 @@ const client = new AWS.Detective({ region: "REGION" });
|
|
|
205
205
|
|
|
206
206
|
// async/await.
|
|
207
207
|
try {
|
|
208
|
-
const data = await client.
|
|
208
|
+
const data = await client.listGraphs(params);
|
|
209
209
|
// process data.
|
|
210
210
|
} catch (error) {
|
|
211
211
|
// error handling.
|
|
@@ -213,7 +213,7 @@ try {
|
|
|
213
213
|
|
|
214
214
|
// Promises.
|
|
215
215
|
client
|
|
216
|
-
.
|
|
216
|
+
.listGraphs(params)
|
|
217
217
|
.then((data) => {
|
|
218
218
|
// process data.
|
|
219
219
|
})
|
|
@@ -222,7 +222,7 @@ client
|
|
|
222
222
|
});
|
|
223
223
|
|
|
224
224
|
// callbacks.
|
|
225
|
-
client.
|
|
225
|
+
client.listGraphs(params, (err, data) => {
|
|
226
226
|
// process err and data.
|
|
227
227
|
});
|
|
228
228
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-detective",
|
|
3
3
|
"description": "AWS SDK for JavaScript Detective 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",
|