@aws-sdk/client-application-insights 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
|
@@ -35,16 +35,16 @@ using your favorite package manager:
|
|
|
35
35
|
|
|
36
36
|
The AWS SDK is modulized by clients and commands.
|
|
37
37
|
To send a request, you only need to import the `ApplicationInsightsClient` and
|
|
38
|
-
the commands you need, for example `
|
|
38
|
+
the commands you need, for example `ListApplicationsCommand`:
|
|
39
39
|
|
|
40
40
|
```js
|
|
41
41
|
// ES5 example
|
|
42
|
-
const { ApplicationInsightsClient,
|
|
42
|
+
const { ApplicationInsightsClient, ListApplicationsCommand } = require("@aws-sdk/client-application-insights");
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
```ts
|
|
46
46
|
// ES6+ example
|
|
47
|
-
import { ApplicationInsightsClient,
|
|
47
|
+
import { ApplicationInsightsClient, ListApplicationsCommand } from "@aws-sdk/client-application-insights";
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
### Usage
|
|
@@ -63,7 +63,7 @@ const client = new ApplicationInsightsClient({ region: "REGION" });
|
|
|
63
63
|
const params = {
|
|
64
64
|
/** input parameters */
|
|
65
65
|
};
|
|
66
|
-
const command = new
|
|
66
|
+
const command = new ListApplicationsCommand(params);
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
#### Async/await
|
|
@@ -142,7 +142,7 @@ const client = new AWS.ApplicationInsights({ region: "REGION" });
|
|
|
142
142
|
|
|
143
143
|
// async/await.
|
|
144
144
|
try {
|
|
145
|
-
const data = await client.
|
|
145
|
+
const data = await client.listApplications(params);
|
|
146
146
|
// process data.
|
|
147
147
|
} catch (error) {
|
|
148
148
|
// error handling.
|
|
@@ -150,7 +150,7 @@ try {
|
|
|
150
150
|
|
|
151
151
|
// Promises.
|
|
152
152
|
client
|
|
153
|
-
.
|
|
153
|
+
.listApplications(params)
|
|
154
154
|
.then((data) => {
|
|
155
155
|
// process data.
|
|
156
156
|
})
|
|
@@ -159,7 +159,7 @@ client
|
|
|
159
159
|
});
|
|
160
160
|
|
|
161
161
|
// callbacks.
|
|
162
|
-
client.
|
|
162
|
+
client.listApplications(params, (err, data) => {
|
|
163
163
|
// process err and data.
|
|
164
164
|
});
|
|
165
165
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-application-insights",
|
|
3
3
|
"description": "AWS SDK for JavaScript Application Insights 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",
|