@aws-sdk/client-kinesis-analytics-v2 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 -13
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -25,22 +25,16 @@ using your favorite package manager:
|
|
|
25
25
|
|
|
26
26
|
The AWS SDK is modulized by clients and commands.
|
|
27
27
|
To send a request, you only need to import the `KinesisAnalyticsV2Client` and
|
|
28
|
-
the commands you need, for example `
|
|
28
|
+
the commands you need, for example `ListApplicationsCommand`:
|
|
29
29
|
|
|
30
30
|
```js
|
|
31
31
|
// ES5 example
|
|
32
|
-
const {
|
|
33
|
-
KinesisAnalyticsV2Client,
|
|
34
|
-
AddApplicationCloudWatchLoggingOptionCommand,
|
|
35
|
-
} = require("@aws-sdk/client-kinesis-analytics-v2");
|
|
32
|
+
const { KinesisAnalyticsV2Client, ListApplicationsCommand } = require("@aws-sdk/client-kinesis-analytics-v2");
|
|
36
33
|
```
|
|
37
34
|
|
|
38
35
|
```ts
|
|
39
36
|
// ES6+ example
|
|
40
|
-
import {
|
|
41
|
-
KinesisAnalyticsV2Client,
|
|
42
|
-
AddApplicationCloudWatchLoggingOptionCommand,
|
|
43
|
-
} from "@aws-sdk/client-kinesis-analytics-v2";
|
|
37
|
+
import { KinesisAnalyticsV2Client, ListApplicationsCommand } from "@aws-sdk/client-kinesis-analytics-v2";
|
|
44
38
|
```
|
|
45
39
|
|
|
46
40
|
### Usage
|
|
@@ -59,7 +53,7 @@ const client = new KinesisAnalyticsV2Client({ region: "REGION" });
|
|
|
59
53
|
const params = {
|
|
60
54
|
/** input parameters */
|
|
61
55
|
};
|
|
62
|
-
const command = new
|
|
56
|
+
const command = new ListApplicationsCommand(params);
|
|
63
57
|
```
|
|
64
58
|
|
|
65
59
|
#### Async/await
|
|
@@ -138,7 +132,7 @@ const client = new AWS.KinesisAnalyticsV2({ region: "REGION" });
|
|
|
138
132
|
|
|
139
133
|
// async/await.
|
|
140
134
|
try {
|
|
141
|
-
const data = await client.
|
|
135
|
+
const data = await client.listApplications(params);
|
|
142
136
|
// process data.
|
|
143
137
|
} catch (error) {
|
|
144
138
|
// error handling.
|
|
@@ -146,7 +140,7 @@ try {
|
|
|
146
140
|
|
|
147
141
|
// Promises.
|
|
148
142
|
client
|
|
149
|
-
.
|
|
143
|
+
.listApplications(params)
|
|
150
144
|
.then((data) => {
|
|
151
145
|
// process data.
|
|
152
146
|
})
|
|
@@ -155,7 +149,7 @@ client
|
|
|
155
149
|
});
|
|
156
150
|
|
|
157
151
|
// callbacks.
|
|
158
|
-
client.
|
|
152
|
+
client.listApplications(params, (err, data) => {
|
|
159
153
|
// process err and data.
|
|
160
154
|
});
|
|
161
155
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis-analytics-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Analytics V2 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",
|