@aws-sdk/client-timestream-query 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_0.js +19 -13
- package/dist-es/TimestreamQuery.js +54 -61
- package/dist-es/TimestreamQueryClient.js +23 -29
- package/dist-es/commands/CancelQueryCommand.js +22 -29
- package/dist-es/commands/CreateScheduledQueryCommand.js +22 -29
- package/dist-es/commands/DeleteScheduledQueryCommand.js +23 -30
- package/dist-es/commands/DescribeEndpointsCommand.js +21 -28
- package/dist-es/commands/DescribeScheduledQueryCommand.js +22 -29
- package/dist-es/commands/ExecuteScheduledQueryCommand.js +23 -30
- package/dist-es/commands/ListScheduledQueriesCommand.js +22 -29
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -29
- package/dist-es/commands/PrepareQueryCommand.js +22 -29
- package/dist-es/commands/QueryCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateScheduledQueryCommand.js +23 -30
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/TimestreamQueryServiceException.js +5 -10
- package/dist-es/models/models_0.js +274 -162
- package/dist-es/pagination/ListScheduledQueriesPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/pagination/QueryPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +1108 -1361
- package/dist-es/runtimeConfig.browser.js +27 -12
- package/dist-es/runtimeConfig.js +31 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-timestream-query
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-timestream-query
|
|
@@ -153,7 +153,7 @@ exports.deserializeAws_json1_0CancelQueryCommand = deserializeAws_json1_0CancelQ
|
|
|
153
153
|
const deserializeAws_json1_0CancelQueryCommandError = async (output, context) => {
|
|
154
154
|
const parsedOutput = {
|
|
155
155
|
...output,
|
|
156
|
-
body: await
|
|
156
|
+
body: await parseErrorBody(output.body, context),
|
|
157
157
|
};
|
|
158
158
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
159
159
|
switch (errorCode) {
|
|
@@ -199,7 +199,7 @@ exports.deserializeAws_json1_0CreateScheduledQueryCommand = deserializeAws_json1
|
|
|
199
199
|
const deserializeAws_json1_0CreateScheduledQueryCommandError = async (output, context) => {
|
|
200
200
|
const parsedOutput = {
|
|
201
201
|
...output,
|
|
202
|
-
body: await
|
|
202
|
+
body: await parseErrorBody(output.body, context),
|
|
203
203
|
};
|
|
204
204
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
205
205
|
switch (errorCode) {
|
|
@@ -248,7 +248,7 @@ exports.deserializeAws_json1_0DeleteScheduledQueryCommand = deserializeAws_json1
|
|
|
248
248
|
const deserializeAws_json1_0DeleteScheduledQueryCommandError = async (output, context) => {
|
|
249
249
|
const parsedOutput = {
|
|
250
250
|
...output,
|
|
251
|
-
body: await
|
|
251
|
+
body: await parseErrorBody(output.body, context),
|
|
252
252
|
};
|
|
253
253
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
254
254
|
switch (errorCode) {
|
|
@@ -297,7 +297,7 @@ exports.deserializeAws_json1_0DescribeEndpointsCommand = deserializeAws_json1_0D
|
|
|
297
297
|
const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, context) => {
|
|
298
298
|
const parsedOutput = {
|
|
299
299
|
...output,
|
|
300
|
-
body: await
|
|
300
|
+
body: await parseErrorBody(output.body, context),
|
|
301
301
|
};
|
|
302
302
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
303
303
|
switch (errorCode) {
|
|
@@ -337,7 +337,7 @@ exports.deserializeAws_json1_0DescribeScheduledQueryCommand = deserializeAws_jso
|
|
|
337
337
|
const deserializeAws_json1_0DescribeScheduledQueryCommandError = async (output, context) => {
|
|
338
338
|
const parsedOutput = {
|
|
339
339
|
...output,
|
|
340
|
-
body: await
|
|
340
|
+
body: await parseErrorBody(output.body, context),
|
|
341
341
|
};
|
|
342
342
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
343
|
switch (errorCode) {
|
|
@@ -383,7 +383,7 @@ exports.deserializeAws_json1_0ExecuteScheduledQueryCommand = deserializeAws_json
|
|
|
383
383
|
const deserializeAws_json1_0ExecuteScheduledQueryCommandError = async (output, context) => {
|
|
384
384
|
const parsedOutput = {
|
|
385
385
|
...output,
|
|
386
|
-
body: await
|
|
386
|
+
body: await parseErrorBody(output.body, context),
|
|
387
387
|
};
|
|
388
388
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
389
389
|
switch (errorCode) {
|
|
@@ -432,7 +432,7 @@ exports.deserializeAws_json1_0ListScheduledQueriesCommand = deserializeAws_json1
|
|
|
432
432
|
const deserializeAws_json1_0ListScheduledQueriesCommandError = async (output, context) => {
|
|
433
433
|
const parsedOutput = {
|
|
434
434
|
...output,
|
|
435
|
-
body: await
|
|
435
|
+
body: await parseErrorBody(output.body, context),
|
|
436
436
|
};
|
|
437
437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
438
438
|
switch (errorCode) {
|
|
@@ -478,7 +478,7 @@ exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
478
478
|
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
479
479
|
const parsedOutput = {
|
|
480
480
|
...output,
|
|
481
|
-
body: await
|
|
481
|
+
body: await parseErrorBody(output.body, context),
|
|
482
482
|
};
|
|
483
483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
484
|
switch (errorCode) {
|
|
@@ -521,7 +521,7 @@ exports.deserializeAws_json1_0PrepareQueryCommand = deserializeAws_json1_0Prepar
|
|
|
521
521
|
const deserializeAws_json1_0PrepareQueryCommandError = async (output, context) => {
|
|
522
522
|
const parsedOutput = {
|
|
523
523
|
...output,
|
|
524
|
-
body: await
|
|
524
|
+
body: await parseErrorBody(output.body, context),
|
|
525
525
|
};
|
|
526
526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
527
527
|
switch (errorCode) {
|
|
@@ -567,7 +567,7 @@ exports.deserializeAws_json1_0QueryCommand = deserializeAws_json1_0QueryCommand;
|
|
|
567
567
|
const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
568
568
|
const parsedOutput = {
|
|
569
569
|
...output,
|
|
570
|
-
body: await
|
|
570
|
+
body: await parseErrorBody(output.body, context),
|
|
571
571
|
};
|
|
572
572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
573
|
switch (errorCode) {
|
|
@@ -619,7 +619,7 @@ exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagReso
|
|
|
619
619
|
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
620
620
|
const parsedOutput = {
|
|
621
621
|
...output,
|
|
622
|
-
body: await
|
|
622
|
+
body: await parseErrorBody(output.body, context),
|
|
623
623
|
};
|
|
624
624
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
625
|
switch (errorCode) {
|
|
@@ -665,7 +665,7 @@ exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0Untag
|
|
|
665
665
|
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
666
666
|
const parsedOutput = {
|
|
667
667
|
...output,
|
|
668
|
-
body: await
|
|
668
|
+
body: await parseErrorBody(output.body, context),
|
|
669
669
|
};
|
|
670
670
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
671
671
|
switch (errorCode) {
|
|
@@ -705,7 +705,7 @@ exports.deserializeAws_json1_0UpdateScheduledQueryCommand = deserializeAws_json1
|
|
|
705
705
|
const deserializeAws_json1_0UpdateScheduledQueryCommandError = async (output, context) => {
|
|
706
706
|
const parsedOutput = {
|
|
707
707
|
...output,
|
|
708
|
-
body: await
|
|
708
|
+
body: await parseErrorBody(output.body, context),
|
|
709
709
|
};
|
|
710
710
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
711
|
switch (errorCode) {
|
|
@@ -1602,6 +1602,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1602
1602
|
}
|
|
1603
1603
|
return {};
|
|
1604
1604
|
});
|
|
1605
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1606
|
+
var _a;
|
|
1607
|
+
const value = await parseBody(errorBody, context);
|
|
1608
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1609
|
+
return value;
|
|
1610
|
+
};
|
|
1605
1611
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1606
1612
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1607
1613
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CancelQueryCommand } from "./commands/CancelQueryCommand";
|
|
3
2
|
import { CreateScheduledQueryCommand, } from "./commands/CreateScheduledQueryCommand";
|
|
4
3
|
import { DeleteScheduledQueryCommand, } from "./commands/DeleteScheduledQueryCommand";
|
|
@@ -13,193 +12,187 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
13
12
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
14
13
|
import { UpdateScheduledQueryCommand, } from "./commands/UpdateScheduledQueryCommand";
|
|
15
14
|
import { TimestreamQueryClient } from "./TimestreamQueryClient";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
20
|
-
}
|
|
21
|
-
TimestreamQuery.prototype.cancelQuery = function (args, optionsOrCb, cb) {
|
|
22
|
-
var command = new CancelQueryCommand(args);
|
|
15
|
+
export class TimestreamQuery extends TimestreamQueryClient {
|
|
16
|
+
cancelQuery(args, optionsOrCb, cb) {
|
|
17
|
+
const command = new CancelQueryCommand(args);
|
|
23
18
|
if (typeof optionsOrCb === "function") {
|
|
24
19
|
this.send(command, optionsOrCb);
|
|
25
20
|
}
|
|
26
21
|
else if (typeof cb === "function") {
|
|
27
22
|
if (typeof optionsOrCb !== "object")
|
|
28
|
-
throw new Error(
|
|
23
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
29
24
|
this.send(command, optionsOrCb || {}, cb);
|
|
30
25
|
}
|
|
31
26
|
else {
|
|
32
27
|
return this.send(command, optionsOrCb);
|
|
33
28
|
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
}
|
|
30
|
+
createScheduledQuery(args, optionsOrCb, cb) {
|
|
31
|
+
const command = new CreateScheduledQueryCommand(args);
|
|
37
32
|
if (typeof optionsOrCb === "function") {
|
|
38
33
|
this.send(command, optionsOrCb);
|
|
39
34
|
}
|
|
40
35
|
else if (typeof cb === "function") {
|
|
41
36
|
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(
|
|
37
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
43
38
|
this.send(command, optionsOrCb || {}, cb);
|
|
44
39
|
}
|
|
45
40
|
else {
|
|
46
41
|
return this.send(command, optionsOrCb);
|
|
47
42
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
}
|
|
44
|
+
deleteScheduledQuery(args, optionsOrCb, cb) {
|
|
45
|
+
const command = new DeleteScheduledQueryCommand(args);
|
|
51
46
|
if (typeof optionsOrCb === "function") {
|
|
52
47
|
this.send(command, optionsOrCb);
|
|
53
48
|
}
|
|
54
49
|
else if (typeof cb === "function") {
|
|
55
50
|
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(
|
|
51
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
57
52
|
this.send(command, optionsOrCb || {}, cb);
|
|
58
53
|
}
|
|
59
54
|
else {
|
|
60
55
|
return this.send(command, optionsOrCb);
|
|
61
56
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
}
|
|
58
|
+
describeEndpoints(args, optionsOrCb, cb) {
|
|
59
|
+
const command = new DescribeEndpointsCommand(args);
|
|
65
60
|
if (typeof optionsOrCb === "function") {
|
|
66
61
|
this.send(command, optionsOrCb);
|
|
67
62
|
}
|
|
68
63
|
else if (typeof cb === "function") {
|
|
69
64
|
if (typeof optionsOrCb !== "object")
|
|
70
|
-
throw new Error(
|
|
65
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
71
66
|
this.send(command, optionsOrCb || {}, cb);
|
|
72
67
|
}
|
|
73
68
|
else {
|
|
74
69
|
return this.send(command, optionsOrCb);
|
|
75
70
|
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
}
|
|
72
|
+
describeScheduledQuery(args, optionsOrCb, cb) {
|
|
73
|
+
const command = new DescribeScheduledQueryCommand(args);
|
|
79
74
|
if (typeof optionsOrCb === "function") {
|
|
80
75
|
this.send(command, optionsOrCb);
|
|
81
76
|
}
|
|
82
77
|
else if (typeof cb === "function") {
|
|
83
78
|
if (typeof optionsOrCb !== "object")
|
|
84
|
-
throw new Error(
|
|
79
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
85
80
|
this.send(command, optionsOrCb || {}, cb);
|
|
86
81
|
}
|
|
87
82
|
else {
|
|
88
83
|
return this.send(command, optionsOrCb);
|
|
89
84
|
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
}
|
|
86
|
+
executeScheduledQuery(args, optionsOrCb, cb) {
|
|
87
|
+
const command = new ExecuteScheduledQueryCommand(args);
|
|
93
88
|
if (typeof optionsOrCb === "function") {
|
|
94
89
|
this.send(command, optionsOrCb);
|
|
95
90
|
}
|
|
96
91
|
else if (typeof cb === "function") {
|
|
97
92
|
if (typeof optionsOrCb !== "object")
|
|
98
|
-
throw new Error(
|
|
93
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
99
94
|
this.send(command, optionsOrCb || {}, cb);
|
|
100
95
|
}
|
|
101
96
|
else {
|
|
102
97
|
return this.send(command, optionsOrCb);
|
|
103
98
|
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
}
|
|
100
|
+
listScheduledQueries(args, optionsOrCb, cb) {
|
|
101
|
+
const command = new ListScheduledQueriesCommand(args);
|
|
107
102
|
if (typeof optionsOrCb === "function") {
|
|
108
103
|
this.send(command, optionsOrCb);
|
|
109
104
|
}
|
|
110
105
|
else if (typeof cb === "function") {
|
|
111
106
|
if (typeof optionsOrCb !== "object")
|
|
112
|
-
throw new Error(
|
|
107
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
113
108
|
this.send(command, optionsOrCb || {}, cb);
|
|
114
109
|
}
|
|
115
110
|
else {
|
|
116
111
|
return this.send(command, optionsOrCb);
|
|
117
112
|
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
}
|
|
114
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
115
|
+
const command = new ListTagsForResourceCommand(args);
|
|
121
116
|
if (typeof optionsOrCb === "function") {
|
|
122
117
|
this.send(command, optionsOrCb);
|
|
123
118
|
}
|
|
124
119
|
else if (typeof cb === "function") {
|
|
125
120
|
if (typeof optionsOrCb !== "object")
|
|
126
|
-
throw new Error(
|
|
121
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
127
122
|
this.send(command, optionsOrCb || {}, cb);
|
|
128
123
|
}
|
|
129
124
|
else {
|
|
130
125
|
return this.send(command, optionsOrCb);
|
|
131
126
|
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
127
|
+
}
|
|
128
|
+
prepareQuery(args, optionsOrCb, cb) {
|
|
129
|
+
const command = new PrepareQueryCommand(args);
|
|
135
130
|
if (typeof optionsOrCb === "function") {
|
|
136
131
|
this.send(command, optionsOrCb);
|
|
137
132
|
}
|
|
138
133
|
else if (typeof cb === "function") {
|
|
139
134
|
if (typeof optionsOrCb !== "object")
|
|
140
|
-
throw new Error(
|
|
135
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
141
136
|
this.send(command, optionsOrCb || {}, cb);
|
|
142
137
|
}
|
|
143
138
|
else {
|
|
144
139
|
return this.send(command, optionsOrCb);
|
|
145
140
|
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
}
|
|
142
|
+
query(args, optionsOrCb, cb) {
|
|
143
|
+
const command = new QueryCommand(args);
|
|
149
144
|
if (typeof optionsOrCb === "function") {
|
|
150
145
|
this.send(command, optionsOrCb);
|
|
151
146
|
}
|
|
152
147
|
else if (typeof cb === "function") {
|
|
153
148
|
if (typeof optionsOrCb !== "object")
|
|
154
|
-
throw new Error(
|
|
149
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
155
150
|
this.send(command, optionsOrCb || {}, cb);
|
|
156
151
|
}
|
|
157
152
|
else {
|
|
158
153
|
return this.send(command, optionsOrCb);
|
|
159
154
|
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
155
|
+
}
|
|
156
|
+
tagResource(args, optionsOrCb, cb) {
|
|
157
|
+
const command = new TagResourceCommand(args);
|
|
163
158
|
if (typeof optionsOrCb === "function") {
|
|
164
159
|
this.send(command, optionsOrCb);
|
|
165
160
|
}
|
|
166
161
|
else if (typeof cb === "function") {
|
|
167
162
|
if (typeof optionsOrCb !== "object")
|
|
168
|
-
throw new Error(
|
|
163
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
169
164
|
this.send(command, optionsOrCb || {}, cb);
|
|
170
165
|
}
|
|
171
166
|
else {
|
|
172
167
|
return this.send(command, optionsOrCb);
|
|
173
168
|
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
169
|
+
}
|
|
170
|
+
untagResource(args, optionsOrCb, cb) {
|
|
171
|
+
const command = new UntagResourceCommand(args);
|
|
177
172
|
if (typeof optionsOrCb === "function") {
|
|
178
173
|
this.send(command, optionsOrCb);
|
|
179
174
|
}
|
|
180
175
|
else if (typeof cb === "function") {
|
|
181
176
|
if (typeof optionsOrCb !== "object")
|
|
182
|
-
throw new Error(
|
|
177
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
183
178
|
this.send(command, optionsOrCb || {}, cb);
|
|
184
179
|
}
|
|
185
180
|
else {
|
|
186
181
|
return this.send(command, optionsOrCb);
|
|
187
182
|
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
}
|
|
184
|
+
updateScheduledQuery(args, optionsOrCb, cb) {
|
|
185
|
+
const command = new UpdateScheduledQueryCommand(args);
|
|
191
186
|
if (typeof optionsOrCb === "function") {
|
|
192
187
|
this.send(command, optionsOrCb);
|
|
193
188
|
}
|
|
194
189
|
else if (typeof cb === "function") {
|
|
195
190
|
if (typeof optionsOrCb !== "object")
|
|
196
|
-
throw new Error(
|
|
191
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
197
192
|
this.send(command, optionsOrCb || {}, cb);
|
|
198
193
|
}
|
|
199
194
|
else {
|
|
200
195
|
return this.send(command, optionsOrCb);
|
|
201
196
|
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
}(TimestreamQueryClient));
|
|
205
|
-
export { TimestreamQuery };
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { resolveEndpointDiscoveryConfig, } from "@aws-sdk/middleware-endpoint-discovery";
|
|
@@ -11,34 +10,29 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
|
|
|
11
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
12
11
|
import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
|
|
13
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
25
|
-
var _config_7 = resolveEndpointDiscoveryConfig(_config_6, {
|
|
13
|
+
export class TimestreamQueryClient extends __Client {
|
|
14
|
+
constructor(configuration) {
|
|
15
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
17
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveEndpointDiscoveryConfig(_config_6, {
|
|
26
23
|
endpointDiscoveryCommandCtor: DescribeEndpointsCommand,
|
|
27
24
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return _this;
|
|
25
|
+
super(_config_7);
|
|
26
|
+
this.config = _config_7;
|
|
27
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
38
34
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
}(__Client));
|
|
44
|
-
export { TimestreamQueryClient };
|
|
35
|
+
destroy() {
|
|
36
|
+
super.destroy();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
4
|
import { CancelQueryRequestFilterSensitiveLog, CancelQueryResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
5
|
import { deserializeAws_json1_0CancelQueryCommand, serializeAws_json1_0CancelQueryCommand, } from "../protocols/Aws_json1_0";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_this.input = input;
|
|
12
|
-
return _this;
|
|
6
|
+
export class CancelQueryCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
13
10
|
}
|
|
14
|
-
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
12
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
16
|
-
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
logger
|
|
23
|
-
clientName
|
|
24
|
-
commandName
|
|
13
|
+
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
|
|
14
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
15
|
+
const { logger } = configuration;
|
|
16
|
+
const clientName = "TimestreamQueryClient";
|
|
17
|
+
const commandName = "CancelQueryCommand";
|
|
18
|
+
const handlerExecutionContext = {
|
|
19
|
+
logger,
|
|
20
|
+
clientName,
|
|
21
|
+
commandName,
|
|
25
22
|
inputFilterSensitiveLog: CancelQueryRequestFilterSensitiveLog,
|
|
26
23
|
outputFilterSensitiveLog: CancelQueryResponseFilterSensitiveLog,
|
|
27
24
|
};
|
|
28
|
-
|
|
29
|
-
return stack.resolve(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
CancelQueryCommand.prototype.serialize = function (input, context) {
|
|
25
|
+
const { requestHandler } = configuration;
|
|
26
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
27
|
+
}
|
|
28
|
+
serialize(input, context) {
|
|
34
29
|
return serializeAws_json1_0CancelQueryCommand(input, context);
|
|
35
|
-
}
|
|
36
|
-
|
|
30
|
+
}
|
|
31
|
+
deserialize(output, context) {
|
|
37
32
|
return deserializeAws_json1_0CancelQueryCommand(output, context);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}($Command));
|
|
41
|
-
export { CancelQueryCommand };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,41 +1,34 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery";
|
|
3
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
4
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
5
4
|
import { CreateScheduledQueryRequestFilterSensitiveLog, CreateScheduledQueryResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
5
|
import { deserializeAws_json1_0CreateScheduledQueryCommand, serializeAws_json1_0CreateScheduledQueryCommand, } from "../protocols/Aws_json1_0";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_this.input = input;
|
|
12
|
-
return _this;
|
|
6
|
+
export class CreateScheduledQueryCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
13
10
|
}
|
|
14
|
-
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
12
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
16
|
-
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
logger
|
|
23
|
-
clientName
|
|
24
|
-
commandName
|
|
13
|
+
this.middlewareStack.use(getEndpointDiscoveryPlugin(configuration, { clientStack, options, isDiscoveredEndpointRequired: true }));
|
|
14
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
15
|
+
const { logger } = configuration;
|
|
16
|
+
const clientName = "TimestreamQueryClient";
|
|
17
|
+
const commandName = "CreateScheduledQueryCommand";
|
|
18
|
+
const handlerExecutionContext = {
|
|
19
|
+
logger,
|
|
20
|
+
clientName,
|
|
21
|
+
commandName,
|
|
25
22
|
inputFilterSensitiveLog: CreateScheduledQueryRequestFilterSensitiveLog,
|
|
26
23
|
outputFilterSensitiveLog: CreateScheduledQueryResponseFilterSensitiveLog,
|
|
27
24
|
};
|
|
28
|
-
|
|
29
|
-
return stack.resolve(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
CreateScheduledQueryCommand.prototype.serialize = function (input, context) {
|
|
25
|
+
const { requestHandler } = configuration;
|
|
26
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
27
|
+
}
|
|
28
|
+
serialize(input, context) {
|
|
34
29
|
return serializeAws_json1_0CreateScheduledQueryCommand(input, context);
|
|
35
|
-
}
|
|
36
|
-
|
|
30
|
+
}
|
|
31
|
+
deserialize(output, context) {
|
|
37
32
|
return deserializeAws_json1_0CreateScheduledQueryCommand(output, context);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}($Command));
|
|
41
|
-
export { CreateScheduledQueryCommand };
|
|
33
|
+
}
|
|
34
|
+
}
|