@aws-sdk/client-iot-events-data 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_restJson1.js +18 -12
- package/dist-es/IoTEventsData.js +50 -57
- package/dist-es/IoTEventsDataClient.js +22 -28
- package/dist-es/commands/BatchAcknowledgeAlarmCommand.js +21 -28
- package/dist-es/commands/BatchDeleteDetectorCommand.js +21 -28
- package/dist-es/commands/BatchDisableAlarmCommand.js +21 -28
- package/dist-es/commands/BatchEnableAlarmCommand.js +21 -28
- package/dist-es/commands/BatchPutMessageCommand.js +21 -28
- package/dist-es/commands/BatchResetAlarmCommand.js +21 -28
- package/dist-es/commands/BatchSnoozeAlarmCommand.js +21 -28
- package/dist-es/commands/BatchUpdateDetectorCommand.js +21 -28
- package/dist-es/commands/DescribeAlarmCommand.js +21 -28
- package/dist-es/commands/DescribeDetectorCommand.js +21 -28
- package/dist-es/commands/ListAlarmsCommand.js +21 -28
- package/dist-es/commands/ListDetectorsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IoTEventsDataServiceException.js +5 -10
- package/dist-es/models/models_0.js +232 -115
- package/dist-es/protocols/Aws_restJson1.js +988 -1314
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
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-iot-events-data
|
|
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-iot-events-data
|
|
@@ -291,7 +291,7 @@ exports.deserializeAws_restJson1BatchAcknowledgeAlarmCommand = deserializeAws_re
|
|
|
291
291
|
const deserializeAws_restJson1BatchAcknowledgeAlarmCommandError = async (output, context) => {
|
|
292
292
|
const parsedOutput = {
|
|
293
293
|
...output,
|
|
294
|
-
body: await
|
|
294
|
+
body: await parseErrorBody(output.body, context),
|
|
295
295
|
};
|
|
296
296
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
297
297
|
switch (errorCode) {
|
|
@@ -334,7 +334,7 @@ exports.deserializeAws_restJson1BatchDeleteDetectorCommand = deserializeAws_rest
|
|
|
334
334
|
const deserializeAws_restJson1BatchDeleteDetectorCommandError = async (output, context) => {
|
|
335
335
|
const parsedOutput = {
|
|
336
336
|
...output,
|
|
337
|
-
body: await
|
|
337
|
+
body: await parseErrorBody(output.body, context),
|
|
338
338
|
};
|
|
339
339
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
340
340
|
switch (errorCode) {
|
|
@@ -377,7 +377,7 @@ exports.deserializeAws_restJson1BatchDisableAlarmCommand = deserializeAws_restJs
|
|
|
377
377
|
const deserializeAws_restJson1BatchDisableAlarmCommandError = async (output, context) => {
|
|
378
378
|
const parsedOutput = {
|
|
379
379
|
...output,
|
|
380
|
-
body: await
|
|
380
|
+
body: await parseErrorBody(output.body, context),
|
|
381
381
|
};
|
|
382
382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
383
383
|
switch (errorCode) {
|
|
@@ -420,7 +420,7 @@ exports.deserializeAws_restJson1BatchEnableAlarmCommand = deserializeAws_restJso
|
|
|
420
420
|
const deserializeAws_restJson1BatchEnableAlarmCommandError = async (output, context) => {
|
|
421
421
|
const parsedOutput = {
|
|
422
422
|
...output,
|
|
423
|
-
body: await
|
|
423
|
+
body: await parseErrorBody(output.body, context),
|
|
424
424
|
};
|
|
425
425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
426
426
|
switch (errorCode) {
|
|
@@ -463,7 +463,7 @@ exports.deserializeAws_restJson1BatchPutMessageCommand = deserializeAws_restJson
|
|
|
463
463
|
const deserializeAws_restJson1BatchPutMessageCommandError = async (output, context) => {
|
|
464
464
|
const parsedOutput = {
|
|
465
465
|
...output,
|
|
466
|
-
body: await
|
|
466
|
+
body: await parseErrorBody(output.body, context),
|
|
467
467
|
};
|
|
468
468
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
469
|
switch (errorCode) {
|
|
@@ -506,7 +506,7 @@ exports.deserializeAws_restJson1BatchResetAlarmCommand = deserializeAws_restJson
|
|
|
506
506
|
const deserializeAws_restJson1BatchResetAlarmCommandError = async (output, context) => {
|
|
507
507
|
const parsedOutput = {
|
|
508
508
|
...output,
|
|
509
|
-
body: await
|
|
509
|
+
body: await parseErrorBody(output.body, context),
|
|
510
510
|
};
|
|
511
511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
512
|
switch (errorCode) {
|
|
@@ -549,7 +549,7 @@ exports.deserializeAws_restJson1BatchSnoozeAlarmCommand = deserializeAws_restJso
|
|
|
549
549
|
const deserializeAws_restJson1BatchSnoozeAlarmCommandError = async (output, context) => {
|
|
550
550
|
const parsedOutput = {
|
|
551
551
|
...output,
|
|
552
|
-
body: await
|
|
552
|
+
body: await parseErrorBody(output.body, context),
|
|
553
553
|
};
|
|
554
554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
555
|
switch (errorCode) {
|
|
@@ -592,7 +592,7 @@ exports.deserializeAws_restJson1BatchUpdateDetectorCommand = deserializeAws_rest
|
|
|
592
592
|
const deserializeAws_restJson1BatchUpdateDetectorCommandError = async (output, context) => {
|
|
593
593
|
const parsedOutput = {
|
|
594
594
|
...output,
|
|
595
|
-
body: await
|
|
595
|
+
body: await parseErrorBody(output.body, context),
|
|
596
596
|
};
|
|
597
597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
598
598
|
switch (errorCode) {
|
|
@@ -635,7 +635,7 @@ exports.deserializeAws_restJson1DescribeAlarmCommand = deserializeAws_restJson1D
|
|
|
635
635
|
const deserializeAws_restJson1DescribeAlarmCommandError = async (output, context) => {
|
|
636
636
|
const parsedOutput = {
|
|
637
637
|
...output,
|
|
638
|
-
body: await
|
|
638
|
+
body: await parseErrorBody(output.body, context),
|
|
639
639
|
};
|
|
640
640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
641
|
switch (errorCode) {
|
|
@@ -681,7 +681,7 @@ exports.deserializeAws_restJson1DescribeDetectorCommand = deserializeAws_restJso
|
|
|
681
681
|
const deserializeAws_restJson1DescribeDetectorCommandError = async (output, context) => {
|
|
682
682
|
const parsedOutput = {
|
|
683
683
|
...output,
|
|
684
|
-
body: await
|
|
684
|
+
body: await parseErrorBody(output.body, context),
|
|
685
685
|
};
|
|
686
686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
687
|
switch (errorCode) {
|
|
@@ -730,7 +730,7 @@ exports.deserializeAws_restJson1ListAlarmsCommand = deserializeAws_restJson1List
|
|
|
730
730
|
const deserializeAws_restJson1ListAlarmsCommandError = async (output, context) => {
|
|
731
731
|
const parsedOutput = {
|
|
732
732
|
...output,
|
|
733
|
-
body: await
|
|
733
|
+
body: await parseErrorBody(output.body, context),
|
|
734
734
|
};
|
|
735
735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
736
|
switch (errorCode) {
|
|
@@ -779,7 +779,7 @@ exports.deserializeAws_restJson1ListDetectorsCommand = deserializeAws_restJson1L
|
|
|
779
779
|
const deserializeAws_restJson1ListDetectorsCommandError = async (output, context) => {
|
|
780
780
|
const parsedOutput = {
|
|
781
781
|
...output,
|
|
782
|
-
body: await
|
|
782
|
+
body: await parseErrorBody(output.body, context),
|
|
783
783
|
};
|
|
784
784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
785
|
switch (errorCode) {
|
|
@@ -1336,6 +1336,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1336
1336
|
}
|
|
1337
1337
|
return {};
|
|
1338
1338
|
});
|
|
1339
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1340
|
+
var _a;
|
|
1341
|
+
const value = await parseBody(errorBody, context);
|
|
1342
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1343
|
+
return value;
|
|
1344
|
+
};
|
|
1339
1345
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1340
1346
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1341
1347
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/IoTEventsData.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { BatchAcknowledgeAlarmCommand, } from "./commands/BatchAcknowledgeAlarmCommand";
|
|
3
2
|
import { BatchDeleteDetectorCommand, } from "./commands/BatchDeleteDetectorCommand";
|
|
4
3
|
import { BatchDisableAlarmCommand, } from "./commands/BatchDisableAlarmCommand";
|
|
@@ -12,179 +11,173 @@ import { DescribeDetectorCommand, } from "./commands/DescribeDetectorCommand";
|
|
|
12
11
|
import { ListAlarmsCommand } from "./commands/ListAlarmsCommand";
|
|
13
12
|
import { ListDetectorsCommand, } from "./commands/ListDetectorsCommand";
|
|
14
13
|
import { IoTEventsDataClient } from "./IoTEventsDataClient";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
-
}
|
|
20
|
-
IoTEventsData.prototype.batchAcknowledgeAlarm = function (args, optionsOrCb, cb) {
|
|
21
|
-
var command = new BatchAcknowledgeAlarmCommand(args);
|
|
14
|
+
export class IoTEventsData extends IoTEventsDataClient {
|
|
15
|
+
batchAcknowledgeAlarm(args, optionsOrCb, cb) {
|
|
16
|
+
const command = new BatchAcknowledgeAlarmCommand(args);
|
|
22
17
|
if (typeof optionsOrCb === "function") {
|
|
23
18
|
this.send(command, optionsOrCb);
|
|
24
19
|
}
|
|
25
20
|
else if (typeof cb === "function") {
|
|
26
21
|
if (typeof optionsOrCb !== "object")
|
|
27
|
-
throw new Error(
|
|
22
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
28
23
|
this.send(command, optionsOrCb || {}, cb);
|
|
29
24
|
}
|
|
30
25
|
else {
|
|
31
26
|
return this.send(command, optionsOrCb);
|
|
32
27
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
}
|
|
29
|
+
batchDeleteDetector(args, optionsOrCb, cb) {
|
|
30
|
+
const command = new BatchDeleteDetectorCommand(args);
|
|
36
31
|
if (typeof optionsOrCb === "function") {
|
|
37
32
|
this.send(command, optionsOrCb);
|
|
38
33
|
}
|
|
39
34
|
else if (typeof cb === "function") {
|
|
40
35
|
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(
|
|
36
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
37
|
this.send(command, optionsOrCb || {}, cb);
|
|
43
38
|
}
|
|
44
39
|
else {
|
|
45
40
|
return this.send(command, optionsOrCb);
|
|
46
41
|
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
}
|
|
43
|
+
batchDisableAlarm(args, optionsOrCb, cb) {
|
|
44
|
+
const command = new BatchDisableAlarmCommand(args);
|
|
50
45
|
if (typeof optionsOrCb === "function") {
|
|
51
46
|
this.send(command, optionsOrCb);
|
|
52
47
|
}
|
|
53
48
|
else if (typeof cb === "function") {
|
|
54
49
|
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(
|
|
50
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
51
|
this.send(command, optionsOrCb || {}, cb);
|
|
57
52
|
}
|
|
58
53
|
else {
|
|
59
54
|
return this.send(command, optionsOrCb);
|
|
60
55
|
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
}
|
|
57
|
+
batchEnableAlarm(args, optionsOrCb, cb) {
|
|
58
|
+
const command = new BatchEnableAlarmCommand(args);
|
|
64
59
|
if (typeof optionsOrCb === "function") {
|
|
65
60
|
this.send(command, optionsOrCb);
|
|
66
61
|
}
|
|
67
62
|
else if (typeof cb === "function") {
|
|
68
63
|
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(
|
|
64
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
65
|
this.send(command, optionsOrCb || {}, cb);
|
|
71
66
|
}
|
|
72
67
|
else {
|
|
73
68
|
return this.send(command, optionsOrCb);
|
|
74
69
|
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
}
|
|
71
|
+
batchPutMessage(args, optionsOrCb, cb) {
|
|
72
|
+
const command = new BatchPutMessageCommand(args);
|
|
78
73
|
if (typeof optionsOrCb === "function") {
|
|
79
74
|
this.send(command, optionsOrCb);
|
|
80
75
|
}
|
|
81
76
|
else if (typeof cb === "function") {
|
|
82
77
|
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(
|
|
78
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
79
|
this.send(command, optionsOrCb || {}, cb);
|
|
85
80
|
}
|
|
86
81
|
else {
|
|
87
82
|
return this.send(command, optionsOrCb);
|
|
88
83
|
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
}
|
|
85
|
+
batchResetAlarm(args, optionsOrCb, cb) {
|
|
86
|
+
const command = new BatchResetAlarmCommand(args);
|
|
92
87
|
if (typeof optionsOrCb === "function") {
|
|
93
88
|
this.send(command, optionsOrCb);
|
|
94
89
|
}
|
|
95
90
|
else if (typeof cb === "function") {
|
|
96
91
|
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(
|
|
92
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
93
|
this.send(command, optionsOrCb || {}, cb);
|
|
99
94
|
}
|
|
100
95
|
else {
|
|
101
96
|
return this.send(command, optionsOrCb);
|
|
102
97
|
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
}
|
|
99
|
+
batchSnoozeAlarm(args, optionsOrCb, cb) {
|
|
100
|
+
const command = new BatchSnoozeAlarmCommand(args);
|
|
106
101
|
if (typeof optionsOrCb === "function") {
|
|
107
102
|
this.send(command, optionsOrCb);
|
|
108
103
|
}
|
|
109
104
|
else if (typeof cb === "function") {
|
|
110
105
|
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(
|
|
106
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
107
|
this.send(command, optionsOrCb || {}, cb);
|
|
113
108
|
}
|
|
114
109
|
else {
|
|
115
110
|
return this.send(command, optionsOrCb);
|
|
116
111
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
}
|
|
113
|
+
batchUpdateDetector(args, optionsOrCb, cb) {
|
|
114
|
+
const command = new BatchUpdateDetectorCommand(args);
|
|
120
115
|
if (typeof optionsOrCb === "function") {
|
|
121
116
|
this.send(command, optionsOrCb);
|
|
122
117
|
}
|
|
123
118
|
else if (typeof cb === "function") {
|
|
124
119
|
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(
|
|
120
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
121
|
this.send(command, optionsOrCb || {}, cb);
|
|
127
122
|
}
|
|
128
123
|
else {
|
|
129
124
|
return this.send(command, optionsOrCb);
|
|
130
125
|
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
}
|
|
127
|
+
describeAlarm(args, optionsOrCb, cb) {
|
|
128
|
+
const command = new DescribeAlarmCommand(args);
|
|
134
129
|
if (typeof optionsOrCb === "function") {
|
|
135
130
|
this.send(command, optionsOrCb);
|
|
136
131
|
}
|
|
137
132
|
else if (typeof cb === "function") {
|
|
138
133
|
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(
|
|
134
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
135
|
this.send(command, optionsOrCb || {}, cb);
|
|
141
136
|
}
|
|
142
137
|
else {
|
|
143
138
|
return this.send(command, optionsOrCb);
|
|
144
139
|
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
}
|
|
141
|
+
describeDetector(args, optionsOrCb, cb) {
|
|
142
|
+
const command = new DescribeDetectorCommand(args);
|
|
148
143
|
if (typeof optionsOrCb === "function") {
|
|
149
144
|
this.send(command, optionsOrCb);
|
|
150
145
|
}
|
|
151
146
|
else if (typeof cb === "function") {
|
|
152
147
|
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(
|
|
148
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
149
|
this.send(command, optionsOrCb || {}, cb);
|
|
155
150
|
}
|
|
156
151
|
else {
|
|
157
152
|
return this.send(command, optionsOrCb);
|
|
158
153
|
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
154
|
+
}
|
|
155
|
+
listAlarms(args, optionsOrCb, cb) {
|
|
156
|
+
const command = new ListAlarmsCommand(args);
|
|
162
157
|
if (typeof optionsOrCb === "function") {
|
|
163
158
|
this.send(command, optionsOrCb);
|
|
164
159
|
}
|
|
165
160
|
else if (typeof cb === "function") {
|
|
166
161
|
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(
|
|
162
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
163
|
this.send(command, optionsOrCb || {}, cb);
|
|
169
164
|
}
|
|
170
165
|
else {
|
|
171
166
|
return this.send(command, optionsOrCb);
|
|
172
167
|
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
}
|
|
169
|
+
listDetectors(args, optionsOrCb, cb) {
|
|
170
|
+
const command = new ListDetectorsCommand(args);
|
|
176
171
|
if (typeof optionsOrCb === "function") {
|
|
177
172
|
this.send(command, optionsOrCb);
|
|
178
173
|
}
|
|
179
174
|
else if (typeof cb === "function") {
|
|
180
175
|
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(
|
|
176
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
177
|
this.send(command, optionsOrCb || {}, cb);
|
|
183
178
|
}
|
|
184
179
|
else {
|
|
185
180
|
return this.send(command, optionsOrCb);
|
|
186
181
|
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
}(IoTEventsDataClient));
|
|
190
|
-
export { IoTEventsData };
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -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 { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class IoTEventsDataClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { IoTEventsDataClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { BatchAcknowledgeAlarmRequestFilterSensitiveLog, BatchAcknowledgeAlarmResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1BatchAcknowledgeAlarmCommand, serializeAws_restJson1BatchAcknowledgeAlarmCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class BatchAcknowledgeAlarmCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "IoTEventsDataClient";
|
|
15
|
+
const commandName = "BatchAcknowledgeAlarmCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: BatchAcknowledgeAlarmRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: BatchAcknowledgeAlarmResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
BatchAcknowledgeAlarmCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1BatchAcknowledgeAlarmCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1BatchAcknowledgeAlarmCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { BatchAcknowledgeAlarmCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { BatchDeleteDetectorRequestFilterSensitiveLog, BatchDeleteDetectorResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1BatchDeleteDetectorCommand, serializeAws_restJson1BatchDeleteDetectorCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class BatchDeleteDetectorCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "IoTEventsDataClient";
|
|
15
|
+
const commandName = "BatchDeleteDetectorCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: BatchDeleteDetectorRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: BatchDeleteDetectorResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
BatchDeleteDetectorCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1BatchDeleteDetectorCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1BatchDeleteDetectorCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { BatchDeleteDetectorCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { BatchDisableAlarmRequestFilterSensitiveLog, BatchDisableAlarmResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1BatchDisableAlarmCommand, serializeAws_restJson1BatchDisableAlarmCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class BatchDisableAlarmCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "IoTEventsDataClient";
|
|
15
|
+
const commandName = "BatchDisableAlarmCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: BatchDisableAlarmRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: BatchDisableAlarmResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
BatchDisableAlarmCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1BatchDisableAlarmCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1BatchDisableAlarmCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { BatchDisableAlarmCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|