@aws-sdk/client-timestream-query 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
|
@@ -26,16 +26,16 @@ using your favorite package manager:
|
|
|
26
26
|
|
|
27
27
|
The AWS SDK is modulized by clients and commands.
|
|
28
28
|
To send a request, you only need to import the `TimestreamQueryClient` and
|
|
29
|
-
the commands you need, for example `
|
|
29
|
+
the commands you need, for example `ListScheduledQueriesCommand`:
|
|
30
30
|
|
|
31
31
|
```js
|
|
32
32
|
// ES5 example
|
|
33
|
-
const { TimestreamQueryClient,
|
|
33
|
+
const { TimestreamQueryClient, ListScheduledQueriesCommand } = require("@aws-sdk/client-timestream-query");
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
```ts
|
|
37
37
|
// ES6+ example
|
|
38
|
-
import { TimestreamQueryClient,
|
|
38
|
+
import { TimestreamQueryClient, ListScheduledQueriesCommand } from "@aws-sdk/client-timestream-query";
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
### Usage
|
|
@@ -54,7 +54,7 @@ const client = new TimestreamQueryClient({ region: "REGION" });
|
|
|
54
54
|
const params = {
|
|
55
55
|
/** input parameters */
|
|
56
56
|
};
|
|
57
|
-
const command = new
|
|
57
|
+
const command = new ListScheduledQueriesCommand(params);
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
#### Async/await
|
|
@@ -133,7 +133,7 @@ const client = new AWS.TimestreamQuery({ region: "REGION" });
|
|
|
133
133
|
|
|
134
134
|
// async/await.
|
|
135
135
|
try {
|
|
136
|
-
const data = await client.
|
|
136
|
+
const data = await client.listScheduledQueries(params);
|
|
137
137
|
// process data.
|
|
138
138
|
} catch (error) {
|
|
139
139
|
// error handling.
|
|
@@ -141,7 +141,7 @@ try {
|
|
|
141
141
|
|
|
142
142
|
// Promises.
|
|
143
143
|
client
|
|
144
|
-
.
|
|
144
|
+
.listScheduledQueries(params)
|
|
145
145
|
.then((data) => {
|
|
146
146
|
// process data.
|
|
147
147
|
})
|
|
@@ -150,7 +150,7 @@ client
|
|
|
150
150
|
});
|
|
151
151
|
|
|
152
152
|
// callbacks.
|
|
153
|
-
client.
|
|
153
|
+
client.listScheduledQueries(params, (err, data) => {
|
|
154
154
|
// process err and data.
|
|
155
155
|
});
|
|
156
156
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-timestream-query",
|
|
3
3
|
"description": "AWS SDK for JavaScript Timestream Query 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-endpoint-discovery": "3.418.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.418.0",
|