@aws-sdk/client-iot-events-data 3.476.0 → 3.477.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.
|
@@ -1,263 +1,175 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_ListDetectorsCommand = exports.de_ListAlarmsCommand = exports.de_DescribeDetectorCommand = exports.de_DescribeAlarmCommand = exports.de_BatchUpdateDetectorCommand = exports.de_BatchSnoozeAlarmCommand = exports.de_BatchResetAlarmCommand = exports.de_BatchPutMessageCommand = exports.de_BatchEnableAlarmCommand = exports.de_BatchDisableAlarmCommand = exports.de_BatchDeleteDetectorCommand = exports.de_BatchAcknowledgeAlarmCommand = exports.se_ListDetectorsCommand = exports.se_ListAlarmsCommand = exports.se_DescribeDetectorCommand = exports.se_DescribeAlarmCommand = exports.se_BatchUpdateDetectorCommand = exports.se_BatchSnoozeAlarmCommand = exports.se_BatchResetAlarmCommand = exports.se_BatchPutMessageCommand = exports.se_BatchEnableAlarmCommand = exports.se_BatchDisableAlarmCommand = exports.se_BatchDeleteDetectorCommand = exports.se_BatchAcknowledgeAlarmCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const IoTEventsDataServiceException_1 = require("../models/IoTEventsDataServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_BatchAcknowledgeAlarmCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
b.bp("/alarms/acknowledge");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
16
|
acknowledgeActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
17
17
|
}));
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hostname,
|
|
21
|
-
port,
|
|
22
|
-
method: "POST",
|
|
23
|
-
headers,
|
|
24
|
-
path: resolvedPath,
|
|
25
|
-
body,
|
|
26
|
-
});
|
|
18
|
+
b.m("POST").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
27
20
|
};
|
|
28
21
|
exports.se_BatchAcknowledgeAlarmCommand = se_BatchAcknowledgeAlarmCommand;
|
|
29
22
|
const se_BatchDeleteDetectorCommand = async (input, context) => {
|
|
30
|
-
const
|
|
23
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
31
24
|
const headers = {
|
|
32
25
|
"content-type": "application/json",
|
|
33
26
|
};
|
|
34
|
-
|
|
27
|
+
b.bp("/detectors/delete");
|
|
35
28
|
let body;
|
|
36
29
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
37
30
|
detectors: (_) => (0, smithy_client_1._json)(_),
|
|
38
31
|
}));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
hostname,
|
|
42
|
-
port,
|
|
43
|
-
method: "POST",
|
|
44
|
-
headers,
|
|
45
|
-
path: resolvedPath,
|
|
46
|
-
body,
|
|
47
|
-
});
|
|
32
|
+
b.m("POST").h(headers).b(body);
|
|
33
|
+
return b.build();
|
|
48
34
|
};
|
|
49
35
|
exports.se_BatchDeleteDetectorCommand = se_BatchDeleteDetectorCommand;
|
|
50
36
|
const se_BatchDisableAlarmCommand = async (input, context) => {
|
|
51
|
-
const
|
|
37
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
52
38
|
const headers = {
|
|
53
39
|
"content-type": "application/json",
|
|
54
40
|
};
|
|
55
|
-
|
|
41
|
+
b.bp("/alarms/disable");
|
|
56
42
|
let body;
|
|
57
43
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
58
44
|
disableActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
59
45
|
}));
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
hostname,
|
|
63
|
-
port,
|
|
64
|
-
method: "POST",
|
|
65
|
-
headers,
|
|
66
|
-
path: resolvedPath,
|
|
67
|
-
body,
|
|
68
|
-
});
|
|
46
|
+
b.m("POST").h(headers).b(body);
|
|
47
|
+
return b.build();
|
|
69
48
|
};
|
|
70
49
|
exports.se_BatchDisableAlarmCommand = se_BatchDisableAlarmCommand;
|
|
71
50
|
const se_BatchEnableAlarmCommand = async (input, context) => {
|
|
72
|
-
const
|
|
51
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
73
52
|
const headers = {
|
|
74
53
|
"content-type": "application/json",
|
|
75
54
|
};
|
|
76
|
-
|
|
55
|
+
b.bp("/alarms/enable");
|
|
77
56
|
let body;
|
|
78
57
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
79
58
|
enableActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
80
59
|
}));
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
hostname,
|
|
84
|
-
port,
|
|
85
|
-
method: "POST",
|
|
86
|
-
headers,
|
|
87
|
-
path: resolvedPath,
|
|
88
|
-
body,
|
|
89
|
-
});
|
|
60
|
+
b.m("POST").h(headers).b(body);
|
|
61
|
+
return b.build();
|
|
90
62
|
};
|
|
91
63
|
exports.se_BatchEnableAlarmCommand = se_BatchEnableAlarmCommand;
|
|
92
64
|
const se_BatchPutMessageCommand = async (input, context) => {
|
|
93
|
-
const
|
|
65
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
94
66
|
const headers = {
|
|
95
67
|
"content-type": "application/json",
|
|
96
68
|
};
|
|
97
|
-
|
|
69
|
+
b.bp("/inputs/messages");
|
|
98
70
|
let body;
|
|
99
71
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
100
72
|
messages: (_) => se_Messages(_, context),
|
|
101
73
|
}));
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
hostname,
|
|
105
|
-
port,
|
|
106
|
-
method: "POST",
|
|
107
|
-
headers,
|
|
108
|
-
path: resolvedPath,
|
|
109
|
-
body,
|
|
110
|
-
});
|
|
74
|
+
b.m("POST").h(headers).b(body);
|
|
75
|
+
return b.build();
|
|
111
76
|
};
|
|
112
77
|
exports.se_BatchPutMessageCommand = se_BatchPutMessageCommand;
|
|
113
78
|
const se_BatchResetAlarmCommand = async (input, context) => {
|
|
114
|
-
const
|
|
79
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
115
80
|
const headers = {
|
|
116
81
|
"content-type": "application/json",
|
|
117
82
|
};
|
|
118
|
-
|
|
83
|
+
b.bp("/alarms/reset");
|
|
119
84
|
let body;
|
|
120
85
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
121
86
|
resetActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
122
87
|
}));
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
hostname,
|
|
126
|
-
port,
|
|
127
|
-
method: "POST",
|
|
128
|
-
headers,
|
|
129
|
-
path: resolvedPath,
|
|
130
|
-
body,
|
|
131
|
-
});
|
|
88
|
+
b.m("POST").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
132
90
|
};
|
|
133
91
|
exports.se_BatchResetAlarmCommand = se_BatchResetAlarmCommand;
|
|
134
92
|
const se_BatchSnoozeAlarmCommand = async (input, context) => {
|
|
135
|
-
const
|
|
93
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
136
94
|
const headers = {
|
|
137
95
|
"content-type": "application/json",
|
|
138
96
|
};
|
|
139
|
-
|
|
97
|
+
b.bp("/alarms/snooze");
|
|
140
98
|
let body;
|
|
141
99
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
142
100
|
snoozeActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
143
101
|
}));
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
hostname,
|
|
147
|
-
port,
|
|
148
|
-
method: "POST",
|
|
149
|
-
headers,
|
|
150
|
-
path: resolvedPath,
|
|
151
|
-
body,
|
|
152
|
-
});
|
|
102
|
+
b.m("POST").h(headers).b(body);
|
|
103
|
+
return b.build();
|
|
153
104
|
};
|
|
154
105
|
exports.se_BatchSnoozeAlarmCommand = se_BatchSnoozeAlarmCommand;
|
|
155
106
|
const se_BatchUpdateDetectorCommand = async (input, context) => {
|
|
156
|
-
const
|
|
107
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
157
108
|
const headers = {
|
|
158
109
|
"content-type": "application/json",
|
|
159
110
|
};
|
|
160
|
-
|
|
111
|
+
b.bp("/detectors");
|
|
161
112
|
let body;
|
|
162
113
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
163
114
|
detectors: (_) => (0, smithy_client_1._json)(_),
|
|
164
115
|
}));
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
hostname,
|
|
168
|
-
port,
|
|
169
|
-
method: "POST",
|
|
170
|
-
headers,
|
|
171
|
-
path: resolvedPath,
|
|
172
|
-
body,
|
|
173
|
-
});
|
|
116
|
+
b.m("POST").h(headers).b(body);
|
|
117
|
+
return b.build();
|
|
174
118
|
};
|
|
175
119
|
exports.se_BatchUpdateDetectorCommand = se_BatchUpdateDetectorCommand;
|
|
176
120
|
const se_DescribeAlarmCommand = async (input, context) => {
|
|
177
|
-
const
|
|
121
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
178
122
|
const headers = {};
|
|
179
|
-
|
|
180
|
-
|
|
123
|
+
b.bp("/alarms/{alarmModelName}/keyValues");
|
|
124
|
+
b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
|
|
181
125
|
const query = (0, smithy_client_1.map)({
|
|
182
|
-
|
|
126
|
+
[_kV]: [, input[_kV]],
|
|
183
127
|
});
|
|
184
128
|
let body;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
hostname,
|
|
188
|
-
port,
|
|
189
|
-
method: "GET",
|
|
190
|
-
headers,
|
|
191
|
-
path: resolvedPath,
|
|
192
|
-
query,
|
|
193
|
-
body,
|
|
194
|
-
});
|
|
129
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
130
|
+
return b.build();
|
|
195
131
|
};
|
|
196
132
|
exports.se_DescribeAlarmCommand = se_DescribeAlarmCommand;
|
|
197
133
|
const se_DescribeDetectorCommand = async (input, context) => {
|
|
198
|
-
const
|
|
134
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
199
135
|
const headers = {};
|
|
200
|
-
|
|
201
|
-
|
|
136
|
+
b.bp("/detectors/{detectorModelName}/keyValues");
|
|
137
|
+
b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
|
|
202
138
|
const query = (0, smithy_client_1.map)({
|
|
203
|
-
|
|
139
|
+
[_kV]: [, input[_kV]],
|
|
204
140
|
});
|
|
205
141
|
let body;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
hostname,
|
|
209
|
-
port,
|
|
210
|
-
method: "GET",
|
|
211
|
-
headers,
|
|
212
|
-
path: resolvedPath,
|
|
213
|
-
query,
|
|
214
|
-
body,
|
|
215
|
-
});
|
|
142
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
143
|
+
return b.build();
|
|
216
144
|
};
|
|
217
145
|
exports.se_DescribeDetectorCommand = se_DescribeDetectorCommand;
|
|
218
146
|
const se_ListAlarmsCommand = async (input, context) => {
|
|
219
|
-
const
|
|
147
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
220
148
|
const headers = {};
|
|
221
|
-
|
|
222
|
-
|
|
149
|
+
b.bp("/alarms/{alarmModelName}");
|
|
150
|
+
b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
|
|
223
151
|
const query = (0, smithy_client_1.map)({
|
|
224
|
-
|
|
225
|
-
|
|
152
|
+
[_nT]: [, input[_nT]],
|
|
153
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
226
154
|
});
|
|
227
155
|
let body;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
hostname,
|
|
231
|
-
port,
|
|
232
|
-
method: "GET",
|
|
233
|
-
headers,
|
|
234
|
-
path: resolvedPath,
|
|
235
|
-
query,
|
|
236
|
-
body,
|
|
237
|
-
});
|
|
156
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
157
|
+
return b.build();
|
|
238
158
|
};
|
|
239
159
|
exports.se_ListAlarmsCommand = se_ListAlarmsCommand;
|
|
240
160
|
const se_ListDetectorsCommand = async (input, context) => {
|
|
241
|
-
const
|
|
161
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
242
162
|
const headers = {};
|
|
243
|
-
|
|
244
|
-
|
|
163
|
+
b.bp("/detectors/{detectorModelName}");
|
|
164
|
+
b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
|
|
245
165
|
const query = (0, smithy_client_1.map)({
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
166
|
+
[_sN]: [, input[_sN]],
|
|
167
|
+
[_nT]: [, input[_nT]],
|
|
168
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
249
169
|
});
|
|
250
170
|
let body;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
hostname,
|
|
254
|
-
port,
|
|
255
|
-
method: "GET",
|
|
256
|
-
headers,
|
|
257
|
-
path: resolvedPath,
|
|
258
|
-
query,
|
|
259
|
-
body,
|
|
260
|
-
});
|
|
171
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
172
|
+
return b.build();
|
|
261
173
|
};
|
|
262
174
|
exports.se_ListDetectorsCommand = se_ListDetectorsCommand;
|
|
263
175
|
const de_BatchAcknowledgeAlarmCommand = async (output, context) => {
|
|
@@ -961,6 +873,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
961
873
|
value !== "" &&
|
|
962
874
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
963
875
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
876
|
+
const _kV = "keyValue";
|
|
877
|
+
const _mR = "maxResults";
|
|
878
|
+
const _nT = "nextToken";
|
|
879
|
+
const _sN = "stateName";
|
|
964
880
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
965
881
|
if (encoded.length) {
|
|
966
882
|
return JSON.parse(encoded);
|
|
@@ -1,249 +1,161 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { IoTEventsDataServiceException as __BaseException } from "../models/IoTEventsDataServiceException";
|
|
4
4
|
import { InternalFailureException, InvalidRequestException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
export const se_BatchAcknowledgeAlarmCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/alarms/acknowledge");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
acknowledgeActionRequests: (_) => _json(_),
|
|
14
14
|
}));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hostname,
|
|
18
|
-
port,
|
|
19
|
-
method: "POST",
|
|
20
|
-
headers,
|
|
21
|
-
path: resolvedPath,
|
|
22
|
-
body,
|
|
23
|
-
});
|
|
15
|
+
b.m("POST").h(headers).b(body);
|
|
16
|
+
return b.build();
|
|
24
17
|
};
|
|
25
18
|
export const se_BatchDeleteDetectorCommand = async (input, context) => {
|
|
26
|
-
const
|
|
19
|
+
const b = rb(input, context);
|
|
27
20
|
const headers = {
|
|
28
21
|
"content-type": "application/json",
|
|
29
22
|
};
|
|
30
|
-
|
|
23
|
+
b.bp("/detectors/delete");
|
|
31
24
|
let body;
|
|
32
25
|
body = JSON.stringify(take(input, {
|
|
33
26
|
detectors: (_) => _json(_),
|
|
34
27
|
}));
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
hostname,
|
|
38
|
-
port,
|
|
39
|
-
method: "POST",
|
|
40
|
-
headers,
|
|
41
|
-
path: resolvedPath,
|
|
42
|
-
body,
|
|
43
|
-
});
|
|
28
|
+
b.m("POST").h(headers).b(body);
|
|
29
|
+
return b.build();
|
|
44
30
|
};
|
|
45
31
|
export const se_BatchDisableAlarmCommand = async (input, context) => {
|
|
46
|
-
const
|
|
32
|
+
const b = rb(input, context);
|
|
47
33
|
const headers = {
|
|
48
34
|
"content-type": "application/json",
|
|
49
35
|
};
|
|
50
|
-
|
|
36
|
+
b.bp("/alarms/disable");
|
|
51
37
|
let body;
|
|
52
38
|
body = JSON.stringify(take(input, {
|
|
53
39
|
disableActionRequests: (_) => _json(_),
|
|
54
40
|
}));
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
hostname,
|
|
58
|
-
port,
|
|
59
|
-
method: "POST",
|
|
60
|
-
headers,
|
|
61
|
-
path: resolvedPath,
|
|
62
|
-
body,
|
|
63
|
-
});
|
|
41
|
+
b.m("POST").h(headers).b(body);
|
|
42
|
+
return b.build();
|
|
64
43
|
};
|
|
65
44
|
export const se_BatchEnableAlarmCommand = async (input, context) => {
|
|
66
|
-
const
|
|
45
|
+
const b = rb(input, context);
|
|
67
46
|
const headers = {
|
|
68
47
|
"content-type": "application/json",
|
|
69
48
|
};
|
|
70
|
-
|
|
49
|
+
b.bp("/alarms/enable");
|
|
71
50
|
let body;
|
|
72
51
|
body = JSON.stringify(take(input, {
|
|
73
52
|
enableActionRequests: (_) => _json(_),
|
|
74
53
|
}));
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
hostname,
|
|
78
|
-
port,
|
|
79
|
-
method: "POST",
|
|
80
|
-
headers,
|
|
81
|
-
path: resolvedPath,
|
|
82
|
-
body,
|
|
83
|
-
});
|
|
54
|
+
b.m("POST").h(headers).b(body);
|
|
55
|
+
return b.build();
|
|
84
56
|
};
|
|
85
57
|
export const se_BatchPutMessageCommand = async (input, context) => {
|
|
86
|
-
const
|
|
58
|
+
const b = rb(input, context);
|
|
87
59
|
const headers = {
|
|
88
60
|
"content-type": "application/json",
|
|
89
61
|
};
|
|
90
|
-
|
|
62
|
+
b.bp("/inputs/messages");
|
|
91
63
|
let body;
|
|
92
64
|
body = JSON.stringify(take(input, {
|
|
93
65
|
messages: (_) => se_Messages(_, context),
|
|
94
66
|
}));
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
hostname,
|
|
98
|
-
port,
|
|
99
|
-
method: "POST",
|
|
100
|
-
headers,
|
|
101
|
-
path: resolvedPath,
|
|
102
|
-
body,
|
|
103
|
-
});
|
|
67
|
+
b.m("POST").h(headers).b(body);
|
|
68
|
+
return b.build();
|
|
104
69
|
};
|
|
105
70
|
export const se_BatchResetAlarmCommand = async (input, context) => {
|
|
106
|
-
const
|
|
71
|
+
const b = rb(input, context);
|
|
107
72
|
const headers = {
|
|
108
73
|
"content-type": "application/json",
|
|
109
74
|
};
|
|
110
|
-
|
|
75
|
+
b.bp("/alarms/reset");
|
|
111
76
|
let body;
|
|
112
77
|
body = JSON.stringify(take(input, {
|
|
113
78
|
resetActionRequests: (_) => _json(_),
|
|
114
79
|
}));
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
hostname,
|
|
118
|
-
port,
|
|
119
|
-
method: "POST",
|
|
120
|
-
headers,
|
|
121
|
-
path: resolvedPath,
|
|
122
|
-
body,
|
|
123
|
-
});
|
|
80
|
+
b.m("POST").h(headers).b(body);
|
|
81
|
+
return b.build();
|
|
124
82
|
};
|
|
125
83
|
export const se_BatchSnoozeAlarmCommand = async (input, context) => {
|
|
126
|
-
const
|
|
84
|
+
const b = rb(input, context);
|
|
127
85
|
const headers = {
|
|
128
86
|
"content-type": "application/json",
|
|
129
87
|
};
|
|
130
|
-
|
|
88
|
+
b.bp("/alarms/snooze");
|
|
131
89
|
let body;
|
|
132
90
|
body = JSON.stringify(take(input, {
|
|
133
91
|
snoozeActionRequests: (_) => _json(_),
|
|
134
92
|
}));
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
hostname,
|
|
138
|
-
port,
|
|
139
|
-
method: "POST",
|
|
140
|
-
headers,
|
|
141
|
-
path: resolvedPath,
|
|
142
|
-
body,
|
|
143
|
-
});
|
|
93
|
+
b.m("POST").h(headers).b(body);
|
|
94
|
+
return b.build();
|
|
144
95
|
};
|
|
145
96
|
export const se_BatchUpdateDetectorCommand = async (input, context) => {
|
|
146
|
-
const
|
|
97
|
+
const b = rb(input, context);
|
|
147
98
|
const headers = {
|
|
148
99
|
"content-type": "application/json",
|
|
149
100
|
};
|
|
150
|
-
|
|
101
|
+
b.bp("/detectors");
|
|
151
102
|
let body;
|
|
152
103
|
body = JSON.stringify(take(input, {
|
|
153
104
|
detectors: (_) => _json(_),
|
|
154
105
|
}));
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
hostname,
|
|
158
|
-
port,
|
|
159
|
-
method: "POST",
|
|
160
|
-
headers,
|
|
161
|
-
path: resolvedPath,
|
|
162
|
-
body,
|
|
163
|
-
});
|
|
106
|
+
b.m("POST").h(headers).b(body);
|
|
107
|
+
return b.build();
|
|
164
108
|
};
|
|
165
109
|
export const se_DescribeAlarmCommand = async (input, context) => {
|
|
166
|
-
const
|
|
110
|
+
const b = rb(input, context);
|
|
167
111
|
const headers = {};
|
|
168
|
-
|
|
169
|
-
|
|
112
|
+
b.bp("/alarms/{alarmModelName}/keyValues");
|
|
113
|
+
b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
|
|
170
114
|
const query = map({
|
|
171
|
-
|
|
115
|
+
[_kV]: [, input[_kV]],
|
|
172
116
|
});
|
|
173
117
|
let body;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
hostname,
|
|
177
|
-
port,
|
|
178
|
-
method: "GET",
|
|
179
|
-
headers,
|
|
180
|
-
path: resolvedPath,
|
|
181
|
-
query,
|
|
182
|
-
body,
|
|
183
|
-
});
|
|
118
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
119
|
+
return b.build();
|
|
184
120
|
};
|
|
185
121
|
export const se_DescribeDetectorCommand = async (input, context) => {
|
|
186
|
-
const
|
|
122
|
+
const b = rb(input, context);
|
|
187
123
|
const headers = {};
|
|
188
|
-
|
|
189
|
-
|
|
124
|
+
b.bp("/detectors/{detectorModelName}/keyValues");
|
|
125
|
+
b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
|
|
190
126
|
const query = map({
|
|
191
|
-
|
|
127
|
+
[_kV]: [, input[_kV]],
|
|
192
128
|
});
|
|
193
129
|
let body;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
hostname,
|
|
197
|
-
port,
|
|
198
|
-
method: "GET",
|
|
199
|
-
headers,
|
|
200
|
-
path: resolvedPath,
|
|
201
|
-
query,
|
|
202
|
-
body,
|
|
203
|
-
});
|
|
130
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
131
|
+
return b.build();
|
|
204
132
|
};
|
|
205
133
|
export const se_ListAlarmsCommand = async (input, context) => {
|
|
206
|
-
const
|
|
134
|
+
const b = rb(input, context);
|
|
207
135
|
const headers = {};
|
|
208
|
-
|
|
209
|
-
|
|
136
|
+
b.bp("/alarms/{alarmModelName}");
|
|
137
|
+
b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
|
|
210
138
|
const query = map({
|
|
211
|
-
|
|
212
|
-
|
|
139
|
+
[_nT]: [, input[_nT]],
|
|
140
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
213
141
|
});
|
|
214
142
|
let body;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
hostname,
|
|
218
|
-
port,
|
|
219
|
-
method: "GET",
|
|
220
|
-
headers,
|
|
221
|
-
path: resolvedPath,
|
|
222
|
-
query,
|
|
223
|
-
body,
|
|
224
|
-
});
|
|
143
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
144
|
+
return b.build();
|
|
225
145
|
};
|
|
226
146
|
export const se_ListDetectorsCommand = async (input, context) => {
|
|
227
|
-
const
|
|
147
|
+
const b = rb(input, context);
|
|
228
148
|
const headers = {};
|
|
229
|
-
|
|
230
|
-
|
|
149
|
+
b.bp("/detectors/{detectorModelName}");
|
|
150
|
+
b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
|
|
231
151
|
const query = map({
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
152
|
+
[_sN]: [, input[_sN]],
|
|
153
|
+
[_nT]: [, input[_nT]],
|
|
154
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
235
155
|
});
|
|
236
156
|
let body;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
hostname,
|
|
240
|
-
port,
|
|
241
|
-
method: "GET",
|
|
242
|
-
headers,
|
|
243
|
-
path: resolvedPath,
|
|
244
|
-
query,
|
|
245
|
-
body,
|
|
246
|
-
});
|
|
157
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
158
|
+
return b.build();
|
|
247
159
|
};
|
|
248
160
|
export const de_BatchAcknowledgeAlarmCommand = async (output, context) => {
|
|
249
161
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -934,6 +846,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
934
846
|
value !== "" &&
|
|
935
847
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
936
848
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
849
|
+
const _kV = "keyValue";
|
|
850
|
+
const _mR = "maxResults";
|
|
851
|
+
const _nT = "nextToken";
|
|
852
|
+
const _sN = "stateName";
|
|
937
853
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
938
854
|
if (encoded.length) {
|
|
939
855
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iot-events-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iot Events Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|