@aws-sdk/client-iot-events-data 3.489.0 → 3.495.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/dist-cjs/index.js CHANGED
@@ -1,11 +1,1434 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IoTEventsDataServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./IoTEventsDataClient"), exports);
6
- tslib_1.__exportStar(require("./IoTEventsData"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
- require("@aws-sdk/util-endpoints");
10
- var IoTEventsDataServiceException_1 = require("./models/IoTEventsDataServiceException");
11
- Object.defineProperty(exports, "IoTEventsDataServiceException", { enumerable: true, get: function () { return IoTEventsDataServiceException_1.IoTEventsDataServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AlarmStateName: () => AlarmStateName,
25
+ BatchAcknowledgeAlarmCommand: () => BatchAcknowledgeAlarmCommand,
26
+ BatchDeleteDetectorCommand: () => BatchDeleteDetectorCommand,
27
+ BatchDisableAlarmCommand: () => BatchDisableAlarmCommand,
28
+ BatchEnableAlarmCommand: () => BatchEnableAlarmCommand,
29
+ BatchPutMessageCommand: () => BatchPutMessageCommand,
30
+ BatchResetAlarmCommand: () => BatchResetAlarmCommand,
31
+ BatchSnoozeAlarmCommand: () => BatchSnoozeAlarmCommand,
32
+ BatchUpdateDetectorCommand: () => BatchUpdateDetectorCommand,
33
+ ComparisonOperator: () => ComparisonOperator,
34
+ CustomerActionName: () => CustomerActionName,
35
+ DescribeAlarmCommand: () => DescribeAlarmCommand,
36
+ DescribeDetectorCommand: () => DescribeDetectorCommand,
37
+ ErrorCode: () => ErrorCode,
38
+ EventType: () => EventType,
39
+ InternalFailureException: () => InternalFailureException,
40
+ InvalidRequestException: () => InvalidRequestException,
41
+ IoTEventsData: () => IoTEventsData,
42
+ IoTEventsDataClient: () => IoTEventsDataClient,
43
+ IoTEventsDataServiceException: () => IoTEventsDataServiceException,
44
+ ListAlarmsCommand: () => ListAlarmsCommand,
45
+ ListDetectorsCommand: () => ListDetectorsCommand,
46
+ ResourceNotFoundException: () => ResourceNotFoundException,
47
+ ServiceUnavailableException: () => ServiceUnavailableException,
48
+ ThrottlingException: () => ThrottlingException,
49
+ TriggerType: () => TriggerType,
50
+ __Client: () => import_smithy_client.Client
51
+ });
52
+ module.exports = __toCommonJS(src_exports);
53
+
54
+ // src/IoTEventsDataClient.ts
55
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
56
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
57
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
58
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
59
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
60
+ var import_config_resolver = require("@smithy/config-resolver");
61
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
62
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
63
+ var import_middleware_retry = require("@smithy/middleware-retry");
64
+
65
+
66
+ // src/endpoint/EndpointParameters.ts
67
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
68
+ return {
69
+ ...options,
70
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
71
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
72
+ defaultSigningName: "ioteventsdata"
73
+ };
74
+ }, "resolveClientEndpointParameters");
75
+ var commonParams = {
76
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
77
+ Endpoint: { type: "builtInParams", name: "endpoint" },
78
+ Region: { type: "builtInParams", name: "region" },
79
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
80
+ };
81
+
82
+ // src/IoTEventsDataClient.ts
83
+ var import_runtimeConfig = require("././runtimeConfig");
84
+
85
+ // src/runtimeExtensions.ts
86
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
87
+ var import_protocol_http = require("@smithy/protocol-http");
88
+ var import_smithy_client = require("@smithy/smithy-client");
89
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
90
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
91
+ const extensionConfiguration = {
92
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
93
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
94
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
95
+ };
96
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
97
+ return {
98
+ ...runtimeConfig,
99
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
100
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
101
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
102
+ };
103
+ }, "resolveRuntimeExtensions");
104
+
105
+ // src/IoTEventsDataClient.ts
106
+ var _IoTEventsDataClient = class _IoTEventsDataClient extends import_smithy_client.Client {
107
+ constructor(...[configuration]) {
108
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
109
+ const _config_1 = resolveClientEndpointParameters(_config_0);
110
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
111
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
112
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
113
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
114
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
115
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
116
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
117
+ super(_config_8);
118
+ this.config = _config_8;
119
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
120
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
121
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
122
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
123
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
124
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
125
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
126
+ }
127
+ /**
128
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
129
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
130
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
131
+ */
132
+ destroy() {
133
+ super.destroy();
134
+ }
135
+ };
136
+ __name(_IoTEventsDataClient, "IoTEventsDataClient");
137
+ var IoTEventsDataClient = _IoTEventsDataClient;
138
+
139
+ // src/IoTEventsData.ts
140
+
141
+
142
+ // src/commands/BatchAcknowledgeAlarmCommand.ts
143
+
144
+ var import_middleware_serde = require("@smithy/middleware-serde");
145
+
146
+ var import_types = require("@smithy/types");
147
+
148
+ // src/protocols/Aws_restJson1.ts
149
+ var import_core = require("@smithy/core");
150
+
151
+
152
+ // src/models/IoTEventsDataServiceException.ts
153
+
154
+ var _IoTEventsDataServiceException = class _IoTEventsDataServiceException extends import_smithy_client.ServiceException {
155
+ /**
156
+ * @internal
157
+ */
158
+ constructor(options) {
159
+ super(options);
160
+ Object.setPrototypeOf(this, _IoTEventsDataServiceException.prototype);
161
+ }
162
+ };
163
+ __name(_IoTEventsDataServiceException, "IoTEventsDataServiceException");
164
+ var IoTEventsDataServiceException = _IoTEventsDataServiceException;
165
+
166
+ // src/models/models_0.ts
167
+ var CustomerActionName = {
168
+ ACKNOWLEDGE: "ACKNOWLEDGE",
169
+ DISABLE: "DISABLE",
170
+ ENABLE: "ENABLE",
171
+ RESET: "RESET",
172
+ SNOOZE: "SNOOZE"
173
+ };
174
+ var ComparisonOperator = {
175
+ EQUAL: "EQUAL",
176
+ GREATER: "GREATER",
177
+ GREATER_OR_EQUAL: "GREATER_OR_EQUAL",
178
+ LESS: "LESS",
179
+ LESS_OR_EQUAL: "LESS_OR_EQUAL",
180
+ NOT_EQUAL: "NOT_EQUAL"
181
+ };
182
+ var AlarmStateName = {
183
+ ACKNOWLEDGED: "ACKNOWLEDGED",
184
+ ACTIVE: "ACTIVE",
185
+ DISABLED: "DISABLED",
186
+ LATCHED: "LATCHED",
187
+ NORMAL: "NORMAL",
188
+ SNOOZE_DISABLED: "SNOOZE_DISABLED"
189
+ };
190
+ var EventType = {
191
+ STATE_CHANGE: "STATE_CHANGE"
192
+ };
193
+ var TriggerType = {
194
+ SNOOZE_TIMEOUT: "SNOOZE_TIMEOUT"
195
+ };
196
+ var ErrorCode = {
197
+ InternalFailureException: "InternalFailureException",
198
+ InvalidRequestException: "InvalidRequestException",
199
+ ResourceNotFoundException: "ResourceNotFoundException",
200
+ ServiceUnavailableException: "ServiceUnavailableException",
201
+ ThrottlingException: "ThrottlingException"
202
+ };
203
+ var _InternalFailureException = class _InternalFailureException extends IoTEventsDataServiceException {
204
+ /**
205
+ * @internal
206
+ */
207
+ constructor(opts) {
208
+ super({
209
+ name: "InternalFailureException",
210
+ $fault: "server",
211
+ ...opts
212
+ });
213
+ this.name = "InternalFailureException";
214
+ this.$fault = "server";
215
+ Object.setPrototypeOf(this, _InternalFailureException.prototype);
216
+ }
217
+ };
218
+ __name(_InternalFailureException, "InternalFailureException");
219
+ var InternalFailureException = _InternalFailureException;
220
+ var _InvalidRequestException = class _InvalidRequestException extends IoTEventsDataServiceException {
221
+ /**
222
+ * @internal
223
+ */
224
+ constructor(opts) {
225
+ super({
226
+ name: "InvalidRequestException",
227
+ $fault: "client",
228
+ ...opts
229
+ });
230
+ this.name = "InvalidRequestException";
231
+ this.$fault = "client";
232
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
233
+ }
234
+ };
235
+ __name(_InvalidRequestException, "InvalidRequestException");
236
+ var InvalidRequestException = _InvalidRequestException;
237
+ var _ServiceUnavailableException = class _ServiceUnavailableException extends IoTEventsDataServiceException {
238
+ /**
239
+ * @internal
240
+ */
241
+ constructor(opts) {
242
+ super({
243
+ name: "ServiceUnavailableException",
244
+ $fault: "server",
245
+ ...opts
246
+ });
247
+ this.name = "ServiceUnavailableException";
248
+ this.$fault = "server";
249
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
250
+ }
251
+ };
252
+ __name(_ServiceUnavailableException, "ServiceUnavailableException");
253
+ var ServiceUnavailableException = _ServiceUnavailableException;
254
+ var _ThrottlingException = class _ThrottlingException extends IoTEventsDataServiceException {
255
+ /**
256
+ * @internal
257
+ */
258
+ constructor(opts) {
259
+ super({
260
+ name: "ThrottlingException",
261
+ $fault: "client",
262
+ ...opts
263
+ });
264
+ this.name = "ThrottlingException";
265
+ this.$fault = "client";
266
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
267
+ }
268
+ };
269
+ __name(_ThrottlingException, "ThrottlingException");
270
+ var ThrottlingException = _ThrottlingException;
271
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends IoTEventsDataServiceException {
272
+ /**
273
+ * @internal
274
+ */
275
+ constructor(opts) {
276
+ super({
277
+ name: "ResourceNotFoundException",
278
+ $fault: "client",
279
+ ...opts
280
+ });
281
+ this.name = "ResourceNotFoundException";
282
+ this.$fault = "client";
283
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
284
+ }
285
+ };
286
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
287
+ var ResourceNotFoundException = _ResourceNotFoundException;
288
+
289
+ // src/protocols/Aws_restJson1.ts
290
+ var se_BatchAcknowledgeAlarmCommand = /* @__PURE__ */ __name(async (input, context) => {
291
+ const b = (0, import_core.requestBuilder)(input, context);
292
+ const headers = {
293
+ "content-type": "application/json"
294
+ };
295
+ b.bp("/alarms/acknowledge");
296
+ let body;
297
+ body = JSON.stringify(
298
+ (0, import_smithy_client.take)(input, {
299
+ acknowledgeActionRequests: (_) => (0, import_smithy_client._json)(_)
300
+ })
301
+ );
302
+ b.m("POST").h(headers).b(body);
303
+ return b.build();
304
+ }, "se_BatchAcknowledgeAlarmCommand");
305
+ var se_BatchDeleteDetectorCommand = /* @__PURE__ */ __name(async (input, context) => {
306
+ const b = (0, import_core.requestBuilder)(input, context);
307
+ const headers = {
308
+ "content-type": "application/json"
309
+ };
310
+ b.bp("/detectors/delete");
311
+ let body;
312
+ body = JSON.stringify(
313
+ (0, import_smithy_client.take)(input, {
314
+ detectors: (_) => (0, import_smithy_client._json)(_)
315
+ })
316
+ );
317
+ b.m("POST").h(headers).b(body);
318
+ return b.build();
319
+ }, "se_BatchDeleteDetectorCommand");
320
+ var se_BatchDisableAlarmCommand = /* @__PURE__ */ __name(async (input, context) => {
321
+ const b = (0, import_core.requestBuilder)(input, context);
322
+ const headers = {
323
+ "content-type": "application/json"
324
+ };
325
+ b.bp("/alarms/disable");
326
+ let body;
327
+ body = JSON.stringify(
328
+ (0, import_smithy_client.take)(input, {
329
+ disableActionRequests: (_) => (0, import_smithy_client._json)(_)
330
+ })
331
+ );
332
+ b.m("POST").h(headers).b(body);
333
+ return b.build();
334
+ }, "se_BatchDisableAlarmCommand");
335
+ var se_BatchEnableAlarmCommand = /* @__PURE__ */ __name(async (input, context) => {
336
+ const b = (0, import_core.requestBuilder)(input, context);
337
+ const headers = {
338
+ "content-type": "application/json"
339
+ };
340
+ b.bp("/alarms/enable");
341
+ let body;
342
+ body = JSON.stringify(
343
+ (0, import_smithy_client.take)(input, {
344
+ enableActionRequests: (_) => (0, import_smithy_client._json)(_)
345
+ })
346
+ );
347
+ b.m("POST").h(headers).b(body);
348
+ return b.build();
349
+ }, "se_BatchEnableAlarmCommand");
350
+ var se_BatchPutMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
351
+ const b = (0, import_core.requestBuilder)(input, context);
352
+ const headers = {
353
+ "content-type": "application/json"
354
+ };
355
+ b.bp("/inputs/messages");
356
+ let body;
357
+ body = JSON.stringify(
358
+ (0, import_smithy_client.take)(input, {
359
+ messages: (_) => se_Messages(_, context)
360
+ })
361
+ );
362
+ b.m("POST").h(headers).b(body);
363
+ return b.build();
364
+ }, "se_BatchPutMessageCommand");
365
+ var se_BatchResetAlarmCommand = /* @__PURE__ */ __name(async (input, context) => {
366
+ const b = (0, import_core.requestBuilder)(input, context);
367
+ const headers = {
368
+ "content-type": "application/json"
369
+ };
370
+ b.bp("/alarms/reset");
371
+ let body;
372
+ body = JSON.stringify(
373
+ (0, import_smithy_client.take)(input, {
374
+ resetActionRequests: (_) => (0, import_smithy_client._json)(_)
375
+ })
376
+ );
377
+ b.m("POST").h(headers).b(body);
378
+ return b.build();
379
+ }, "se_BatchResetAlarmCommand");
380
+ var se_BatchSnoozeAlarmCommand = /* @__PURE__ */ __name(async (input, context) => {
381
+ const b = (0, import_core.requestBuilder)(input, context);
382
+ const headers = {
383
+ "content-type": "application/json"
384
+ };
385
+ b.bp("/alarms/snooze");
386
+ let body;
387
+ body = JSON.stringify(
388
+ (0, import_smithy_client.take)(input, {
389
+ snoozeActionRequests: (_) => (0, import_smithy_client._json)(_)
390
+ })
391
+ );
392
+ b.m("POST").h(headers).b(body);
393
+ return b.build();
394
+ }, "se_BatchSnoozeAlarmCommand");
395
+ var se_BatchUpdateDetectorCommand = /* @__PURE__ */ __name(async (input, context) => {
396
+ const b = (0, import_core.requestBuilder)(input, context);
397
+ const headers = {
398
+ "content-type": "application/json"
399
+ };
400
+ b.bp("/detectors");
401
+ let body;
402
+ body = JSON.stringify(
403
+ (0, import_smithy_client.take)(input, {
404
+ detectors: (_) => (0, import_smithy_client._json)(_)
405
+ })
406
+ );
407
+ b.m("POST").h(headers).b(body);
408
+ return b.build();
409
+ }, "se_BatchUpdateDetectorCommand");
410
+ var se_DescribeAlarmCommand = /* @__PURE__ */ __name(async (input, context) => {
411
+ const b = (0, import_core.requestBuilder)(input, context);
412
+ const headers = {};
413
+ b.bp("/alarms/{alarmModelName}/keyValues");
414
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
415
+ const query = (0, import_smithy_client.map)({
416
+ [_kV]: [, input[_kV]]
417
+ });
418
+ let body;
419
+ b.m("GET").h(headers).q(query).b(body);
420
+ return b.build();
421
+ }, "se_DescribeAlarmCommand");
422
+ var se_DescribeDetectorCommand = /* @__PURE__ */ __name(async (input, context) => {
423
+ const b = (0, import_core.requestBuilder)(input, context);
424
+ const headers = {};
425
+ b.bp("/detectors/{detectorModelName}/keyValues");
426
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
427
+ const query = (0, import_smithy_client.map)({
428
+ [_kV]: [, input[_kV]]
429
+ });
430
+ let body;
431
+ b.m("GET").h(headers).q(query).b(body);
432
+ return b.build();
433
+ }, "se_DescribeDetectorCommand");
434
+ var se_ListAlarmsCommand = /* @__PURE__ */ __name(async (input, context) => {
435
+ const b = (0, import_core.requestBuilder)(input, context);
436
+ const headers = {};
437
+ b.bp("/alarms/{alarmModelName}");
438
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
439
+ const query = (0, import_smithy_client.map)({
440
+ [_nT]: [, input[_nT]],
441
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
442
+ });
443
+ let body;
444
+ b.m("GET").h(headers).q(query).b(body);
445
+ return b.build();
446
+ }, "se_ListAlarmsCommand");
447
+ var se_ListDetectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
448
+ const b = (0, import_core.requestBuilder)(input, context);
449
+ const headers = {};
450
+ b.bp("/detectors/{detectorModelName}");
451
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
452
+ const query = (0, import_smithy_client.map)({
453
+ [_sN]: [, input[_sN]],
454
+ [_nT]: [, input[_nT]],
455
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
456
+ });
457
+ let body;
458
+ b.m("GET").h(headers).q(query).b(body);
459
+ return b.build();
460
+ }, "se_ListDetectorsCommand");
461
+ var de_BatchAcknowledgeAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
462
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
463
+ return de_BatchAcknowledgeAlarmCommandError(output, context);
464
+ }
465
+ const contents = (0, import_smithy_client.map)({
466
+ $metadata: deserializeMetadata(output)
467
+ });
468
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
469
+ const doc = (0, import_smithy_client.take)(data, {
470
+ errorEntries: import_smithy_client._json
471
+ });
472
+ Object.assign(contents, doc);
473
+ return contents;
474
+ }, "de_BatchAcknowledgeAlarmCommand");
475
+ var de_BatchAcknowledgeAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
476
+ const parsedOutput = {
477
+ ...output,
478
+ body: await parseErrorBody(output.body, context)
479
+ };
480
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
481
+ switch (errorCode) {
482
+ case "InternalFailureException":
483
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
484
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
485
+ case "InvalidRequestException":
486
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
487
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
488
+ case "ServiceUnavailableException":
489
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
490
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
491
+ case "ThrottlingException":
492
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
493
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
494
+ default:
495
+ const parsedBody = parsedOutput.body;
496
+ return throwDefaultError({
497
+ output,
498
+ parsedBody,
499
+ errorCode
500
+ });
501
+ }
502
+ }, "de_BatchAcknowledgeAlarmCommandError");
503
+ var de_BatchDeleteDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
504
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
505
+ return de_BatchDeleteDetectorCommandError(output, context);
506
+ }
507
+ const contents = (0, import_smithy_client.map)({
508
+ $metadata: deserializeMetadata(output)
509
+ });
510
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
511
+ const doc = (0, import_smithy_client.take)(data, {
512
+ batchDeleteDetectorErrorEntries: import_smithy_client._json
513
+ });
514
+ Object.assign(contents, doc);
515
+ return contents;
516
+ }, "de_BatchDeleteDetectorCommand");
517
+ var de_BatchDeleteDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
518
+ const parsedOutput = {
519
+ ...output,
520
+ body: await parseErrorBody(output.body, context)
521
+ };
522
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
523
+ switch (errorCode) {
524
+ case "InternalFailureException":
525
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
526
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
527
+ case "InvalidRequestException":
528
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
529
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
530
+ case "ServiceUnavailableException":
531
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
532
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
533
+ case "ThrottlingException":
534
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
535
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
536
+ default:
537
+ const parsedBody = parsedOutput.body;
538
+ return throwDefaultError({
539
+ output,
540
+ parsedBody,
541
+ errorCode
542
+ });
543
+ }
544
+ }, "de_BatchDeleteDetectorCommandError");
545
+ var de_BatchDisableAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
546
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
547
+ return de_BatchDisableAlarmCommandError(output, context);
548
+ }
549
+ const contents = (0, import_smithy_client.map)({
550
+ $metadata: deserializeMetadata(output)
551
+ });
552
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
553
+ const doc = (0, import_smithy_client.take)(data, {
554
+ errorEntries: import_smithy_client._json
555
+ });
556
+ Object.assign(contents, doc);
557
+ return contents;
558
+ }, "de_BatchDisableAlarmCommand");
559
+ var de_BatchDisableAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
560
+ const parsedOutput = {
561
+ ...output,
562
+ body: await parseErrorBody(output.body, context)
563
+ };
564
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
565
+ switch (errorCode) {
566
+ case "InternalFailureException":
567
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
568
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
569
+ case "InvalidRequestException":
570
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
571
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
572
+ case "ServiceUnavailableException":
573
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
574
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
575
+ case "ThrottlingException":
576
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
577
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
578
+ default:
579
+ const parsedBody = parsedOutput.body;
580
+ return throwDefaultError({
581
+ output,
582
+ parsedBody,
583
+ errorCode
584
+ });
585
+ }
586
+ }, "de_BatchDisableAlarmCommandError");
587
+ var de_BatchEnableAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
588
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
589
+ return de_BatchEnableAlarmCommandError(output, context);
590
+ }
591
+ const contents = (0, import_smithy_client.map)({
592
+ $metadata: deserializeMetadata(output)
593
+ });
594
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
595
+ const doc = (0, import_smithy_client.take)(data, {
596
+ errorEntries: import_smithy_client._json
597
+ });
598
+ Object.assign(contents, doc);
599
+ return contents;
600
+ }, "de_BatchEnableAlarmCommand");
601
+ var de_BatchEnableAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
602
+ const parsedOutput = {
603
+ ...output,
604
+ body: await parseErrorBody(output.body, context)
605
+ };
606
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
607
+ switch (errorCode) {
608
+ case "InternalFailureException":
609
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
610
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
611
+ case "InvalidRequestException":
612
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
613
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
614
+ case "ServiceUnavailableException":
615
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
616
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
617
+ case "ThrottlingException":
618
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
619
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
620
+ default:
621
+ const parsedBody = parsedOutput.body;
622
+ return throwDefaultError({
623
+ output,
624
+ parsedBody,
625
+ errorCode
626
+ });
627
+ }
628
+ }, "de_BatchEnableAlarmCommandError");
629
+ var de_BatchPutMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
630
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
631
+ return de_BatchPutMessageCommandError(output, context);
632
+ }
633
+ const contents = (0, import_smithy_client.map)({
634
+ $metadata: deserializeMetadata(output)
635
+ });
636
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
637
+ const doc = (0, import_smithy_client.take)(data, {
638
+ BatchPutMessageErrorEntries: import_smithy_client._json
639
+ });
640
+ Object.assign(contents, doc);
641
+ return contents;
642
+ }, "de_BatchPutMessageCommand");
643
+ var de_BatchPutMessageCommandError = /* @__PURE__ */ __name(async (output, context) => {
644
+ const parsedOutput = {
645
+ ...output,
646
+ body: await parseErrorBody(output.body, context)
647
+ };
648
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
649
+ switch (errorCode) {
650
+ case "InternalFailureException":
651
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
652
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
653
+ case "InvalidRequestException":
654
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
655
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
656
+ case "ServiceUnavailableException":
657
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
658
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
659
+ case "ThrottlingException":
660
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
661
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
662
+ default:
663
+ const parsedBody = parsedOutput.body;
664
+ return throwDefaultError({
665
+ output,
666
+ parsedBody,
667
+ errorCode
668
+ });
669
+ }
670
+ }, "de_BatchPutMessageCommandError");
671
+ var de_BatchResetAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
672
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
673
+ return de_BatchResetAlarmCommandError(output, context);
674
+ }
675
+ const contents = (0, import_smithy_client.map)({
676
+ $metadata: deserializeMetadata(output)
677
+ });
678
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
679
+ const doc = (0, import_smithy_client.take)(data, {
680
+ errorEntries: import_smithy_client._json
681
+ });
682
+ Object.assign(contents, doc);
683
+ return contents;
684
+ }, "de_BatchResetAlarmCommand");
685
+ var de_BatchResetAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
686
+ const parsedOutput = {
687
+ ...output,
688
+ body: await parseErrorBody(output.body, context)
689
+ };
690
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
691
+ switch (errorCode) {
692
+ case "InternalFailureException":
693
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
694
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
695
+ case "InvalidRequestException":
696
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
697
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
698
+ case "ServiceUnavailableException":
699
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
700
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
701
+ case "ThrottlingException":
702
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
703
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
704
+ default:
705
+ const parsedBody = parsedOutput.body;
706
+ return throwDefaultError({
707
+ output,
708
+ parsedBody,
709
+ errorCode
710
+ });
711
+ }
712
+ }, "de_BatchResetAlarmCommandError");
713
+ var de_BatchSnoozeAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
714
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
715
+ return de_BatchSnoozeAlarmCommandError(output, context);
716
+ }
717
+ const contents = (0, import_smithy_client.map)({
718
+ $metadata: deserializeMetadata(output)
719
+ });
720
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
721
+ const doc = (0, import_smithy_client.take)(data, {
722
+ errorEntries: import_smithy_client._json
723
+ });
724
+ Object.assign(contents, doc);
725
+ return contents;
726
+ }, "de_BatchSnoozeAlarmCommand");
727
+ var de_BatchSnoozeAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
728
+ const parsedOutput = {
729
+ ...output,
730
+ body: await parseErrorBody(output.body, context)
731
+ };
732
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
733
+ switch (errorCode) {
734
+ case "InternalFailureException":
735
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
736
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
737
+ case "InvalidRequestException":
738
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
739
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
740
+ case "ServiceUnavailableException":
741
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
742
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
743
+ case "ThrottlingException":
744
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
745
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
746
+ default:
747
+ const parsedBody = parsedOutput.body;
748
+ return throwDefaultError({
749
+ output,
750
+ parsedBody,
751
+ errorCode
752
+ });
753
+ }
754
+ }, "de_BatchSnoozeAlarmCommandError");
755
+ var de_BatchUpdateDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
756
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
757
+ return de_BatchUpdateDetectorCommandError(output, context);
758
+ }
759
+ const contents = (0, import_smithy_client.map)({
760
+ $metadata: deserializeMetadata(output)
761
+ });
762
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
763
+ const doc = (0, import_smithy_client.take)(data, {
764
+ batchUpdateDetectorErrorEntries: import_smithy_client._json
765
+ });
766
+ Object.assign(contents, doc);
767
+ return contents;
768
+ }, "de_BatchUpdateDetectorCommand");
769
+ var de_BatchUpdateDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
770
+ const parsedOutput = {
771
+ ...output,
772
+ body: await parseErrorBody(output.body, context)
773
+ };
774
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
775
+ switch (errorCode) {
776
+ case "InternalFailureException":
777
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
778
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
779
+ case "InvalidRequestException":
780
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
781
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
782
+ case "ServiceUnavailableException":
783
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
784
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
785
+ case "ThrottlingException":
786
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
787
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
788
+ default:
789
+ const parsedBody = parsedOutput.body;
790
+ return throwDefaultError({
791
+ output,
792
+ parsedBody,
793
+ errorCode
794
+ });
795
+ }
796
+ }, "de_BatchUpdateDetectorCommandError");
797
+ var de_DescribeAlarmCommand = /* @__PURE__ */ __name(async (output, context) => {
798
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
799
+ return de_DescribeAlarmCommandError(output, context);
800
+ }
801
+ const contents = (0, import_smithy_client.map)({
802
+ $metadata: deserializeMetadata(output)
803
+ });
804
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
805
+ const doc = (0, import_smithy_client.take)(data, {
806
+ alarm: (_) => de_Alarm(_, context)
807
+ });
808
+ Object.assign(contents, doc);
809
+ return contents;
810
+ }, "de_DescribeAlarmCommand");
811
+ var de_DescribeAlarmCommandError = /* @__PURE__ */ __name(async (output, context) => {
812
+ const parsedOutput = {
813
+ ...output,
814
+ body: await parseErrorBody(output.body, context)
815
+ };
816
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
817
+ switch (errorCode) {
818
+ case "InternalFailureException":
819
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
820
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
821
+ case "InvalidRequestException":
822
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
823
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
824
+ case "ResourceNotFoundException":
825
+ case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
826
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
827
+ case "ServiceUnavailableException":
828
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
829
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
830
+ case "ThrottlingException":
831
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
832
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
833
+ default:
834
+ const parsedBody = parsedOutput.body;
835
+ return throwDefaultError({
836
+ output,
837
+ parsedBody,
838
+ errorCode
839
+ });
840
+ }
841
+ }, "de_DescribeAlarmCommandError");
842
+ var de_DescribeDetectorCommand = /* @__PURE__ */ __name(async (output, context) => {
843
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
844
+ return de_DescribeDetectorCommandError(output, context);
845
+ }
846
+ const contents = (0, import_smithy_client.map)({
847
+ $metadata: deserializeMetadata(output)
848
+ });
849
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
850
+ const doc = (0, import_smithy_client.take)(data, {
851
+ detector: (_) => de_Detector(_, context)
852
+ });
853
+ Object.assign(contents, doc);
854
+ return contents;
855
+ }, "de_DescribeDetectorCommand");
856
+ var de_DescribeDetectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
857
+ const parsedOutput = {
858
+ ...output,
859
+ body: await parseErrorBody(output.body, context)
860
+ };
861
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
862
+ switch (errorCode) {
863
+ case "InternalFailureException":
864
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
865
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
866
+ case "InvalidRequestException":
867
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
868
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
869
+ case "ResourceNotFoundException":
870
+ case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
871
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
872
+ case "ServiceUnavailableException":
873
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
874
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
875
+ case "ThrottlingException":
876
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
877
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
878
+ default:
879
+ const parsedBody = parsedOutput.body;
880
+ return throwDefaultError({
881
+ output,
882
+ parsedBody,
883
+ errorCode
884
+ });
885
+ }
886
+ }, "de_DescribeDetectorCommandError");
887
+ var de_ListAlarmsCommand = /* @__PURE__ */ __name(async (output, context) => {
888
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
889
+ return de_ListAlarmsCommandError(output, context);
890
+ }
891
+ const contents = (0, import_smithy_client.map)({
892
+ $metadata: deserializeMetadata(output)
893
+ });
894
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
895
+ const doc = (0, import_smithy_client.take)(data, {
896
+ alarmSummaries: (_) => de_AlarmSummaries(_, context),
897
+ nextToken: import_smithy_client.expectString
898
+ });
899
+ Object.assign(contents, doc);
900
+ return contents;
901
+ }, "de_ListAlarmsCommand");
902
+ var de_ListAlarmsCommandError = /* @__PURE__ */ __name(async (output, context) => {
903
+ const parsedOutput = {
904
+ ...output,
905
+ body: await parseErrorBody(output.body, context)
906
+ };
907
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
908
+ switch (errorCode) {
909
+ case "InternalFailureException":
910
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
911
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
912
+ case "InvalidRequestException":
913
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
914
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
915
+ case "ResourceNotFoundException":
916
+ case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
917
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
918
+ case "ServiceUnavailableException":
919
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
920
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
921
+ case "ThrottlingException":
922
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
923
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
924
+ default:
925
+ const parsedBody = parsedOutput.body;
926
+ return throwDefaultError({
927
+ output,
928
+ parsedBody,
929
+ errorCode
930
+ });
931
+ }
932
+ }, "de_ListAlarmsCommandError");
933
+ var de_ListDetectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
934
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
935
+ return de_ListDetectorsCommandError(output, context);
936
+ }
937
+ const contents = (0, import_smithy_client.map)({
938
+ $metadata: deserializeMetadata(output)
939
+ });
940
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
941
+ const doc = (0, import_smithy_client.take)(data, {
942
+ detectorSummaries: (_) => de_DetectorSummaries(_, context),
943
+ nextToken: import_smithy_client.expectString
944
+ });
945
+ Object.assign(contents, doc);
946
+ return contents;
947
+ }, "de_ListDetectorsCommand");
948
+ var de_ListDetectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
949
+ const parsedOutput = {
950
+ ...output,
951
+ body: await parseErrorBody(output.body, context)
952
+ };
953
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
954
+ switch (errorCode) {
955
+ case "InternalFailureException":
956
+ case "com.amazonaws.ioteventsdata#InternalFailureException":
957
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
958
+ case "InvalidRequestException":
959
+ case "com.amazonaws.ioteventsdata#InvalidRequestException":
960
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
961
+ case "ResourceNotFoundException":
962
+ case "com.amazonaws.ioteventsdata#ResourceNotFoundException":
963
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
964
+ case "ServiceUnavailableException":
965
+ case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
966
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
967
+ case "ThrottlingException":
968
+ case "com.amazonaws.ioteventsdata#ThrottlingException":
969
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
970
+ default:
971
+ const parsedBody = parsedOutput.body;
972
+ return throwDefaultError({
973
+ output,
974
+ parsedBody,
975
+ errorCode
976
+ });
977
+ }
978
+ }, "de_ListDetectorsCommandError");
979
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTEventsDataServiceException);
980
+ var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
981
+ const contents = (0, import_smithy_client.map)({});
982
+ const data = parsedOutput.body;
983
+ const doc = (0, import_smithy_client.take)(data, {
984
+ message: import_smithy_client.expectString
985
+ });
986
+ Object.assign(contents, doc);
987
+ const exception = new InternalFailureException({
988
+ $metadata: deserializeMetadata(parsedOutput),
989
+ ...contents
990
+ });
991
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
992
+ }, "de_InternalFailureExceptionRes");
993
+ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
994
+ const contents = (0, import_smithy_client.map)({});
995
+ const data = parsedOutput.body;
996
+ const doc = (0, import_smithy_client.take)(data, {
997
+ message: import_smithy_client.expectString
998
+ });
999
+ Object.assign(contents, doc);
1000
+ const exception = new InvalidRequestException({
1001
+ $metadata: deserializeMetadata(parsedOutput),
1002
+ ...contents
1003
+ });
1004
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1005
+ }, "de_InvalidRequestExceptionRes");
1006
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1007
+ const contents = (0, import_smithy_client.map)({});
1008
+ const data = parsedOutput.body;
1009
+ const doc = (0, import_smithy_client.take)(data, {
1010
+ message: import_smithy_client.expectString
1011
+ });
1012
+ Object.assign(contents, doc);
1013
+ const exception = new ResourceNotFoundException({
1014
+ $metadata: deserializeMetadata(parsedOutput),
1015
+ ...contents
1016
+ });
1017
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1018
+ }, "de_ResourceNotFoundExceptionRes");
1019
+ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1020
+ const contents = (0, import_smithy_client.map)({});
1021
+ const data = parsedOutput.body;
1022
+ const doc = (0, import_smithy_client.take)(data, {
1023
+ message: import_smithy_client.expectString
1024
+ });
1025
+ Object.assign(contents, doc);
1026
+ const exception = new ServiceUnavailableException({
1027
+ $metadata: deserializeMetadata(parsedOutput),
1028
+ ...contents
1029
+ });
1030
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1031
+ }, "de_ServiceUnavailableExceptionRes");
1032
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1033
+ const contents = (0, import_smithy_client.map)({});
1034
+ const data = parsedOutput.body;
1035
+ const doc = (0, import_smithy_client.take)(data, {
1036
+ message: import_smithy_client.expectString
1037
+ });
1038
+ Object.assign(contents, doc);
1039
+ const exception = new ThrottlingException({
1040
+ $metadata: deserializeMetadata(parsedOutput),
1041
+ ...contents
1042
+ });
1043
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1044
+ }, "de_ThrottlingExceptionRes");
1045
+ var se_Message = /* @__PURE__ */ __name((input, context) => {
1046
+ return (0, import_smithy_client.take)(input, {
1047
+ inputName: [],
1048
+ messageId: [],
1049
+ payload: context.base64Encoder,
1050
+ timestamp: import_smithy_client._json
1051
+ });
1052
+ }, "se_Message");
1053
+ var se_Messages = /* @__PURE__ */ __name((input, context) => {
1054
+ return input.filter((e) => e != null).map((entry) => {
1055
+ return se_Message(entry, context);
1056
+ });
1057
+ }, "se_Messages");
1058
+ var de_Alarm = /* @__PURE__ */ __name((output, context) => {
1059
+ return (0, import_smithy_client.take)(output, {
1060
+ alarmModelName: import_smithy_client.expectString,
1061
+ alarmModelVersion: import_smithy_client.expectString,
1062
+ alarmState: import_smithy_client._json,
1063
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1064
+ keyValue: import_smithy_client.expectString,
1065
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1066
+ severity: import_smithy_client.expectInt32
1067
+ });
1068
+ }, "de_Alarm");
1069
+ var de_AlarmSummaries = /* @__PURE__ */ __name((output, context) => {
1070
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1071
+ return de_AlarmSummary(entry, context);
1072
+ });
1073
+ return retVal;
1074
+ }, "de_AlarmSummaries");
1075
+ var de_AlarmSummary = /* @__PURE__ */ __name((output, context) => {
1076
+ return (0, import_smithy_client.take)(output, {
1077
+ alarmModelName: import_smithy_client.expectString,
1078
+ alarmModelVersion: import_smithy_client.expectString,
1079
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1080
+ keyValue: import_smithy_client.expectString,
1081
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1082
+ stateName: import_smithy_client.expectString
1083
+ });
1084
+ }, "de_AlarmSummary");
1085
+ var de_Detector = /* @__PURE__ */ __name((output, context) => {
1086
+ return (0, import_smithy_client.take)(output, {
1087
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1088
+ detectorModelName: import_smithy_client.expectString,
1089
+ detectorModelVersion: import_smithy_client.expectString,
1090
+ keyValue: import_smithy_client.expectString,
1091
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1092
+ state: (_) => de_DetectorState(_, context)
1093
+ });
1094
+ }, "de_Detector");
1095
+ var de_DetectorState = /* @__PURE__ */ __name((output, context) => {
1096
+ return (0, import_smithy_client.take)(output, {
1097
+ stateName: import_smithy_client.expectString,
1098
+ timers: (_) => de_Timers(_, context),
1099
+ variables: import_smithy_client._json
1100
+ });
1101
+ }, "de_DetectorState");
1102
+ var de_DetectorSummaries = /* @__PURE__ */ __name((output, context) => {
1103
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1104
+ return de_DetectorSummary(entry, context);
1105
+ });
1106
+ return retVal;
1107
+ }, "de_DetectorSummaries");
1108
+ var de_DetectorSummary = /* @__PURE__ */ __name((output, context) => {
1109
+ return (0, import_smithy_client.take)(output, {
1110
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1111
+ detectorModelName: import_smithy_client.expectString,
1112
+ detectorModelVersion: import_smithy_client.expectString,
1113
+ keyValue: import_smithy_client.expectString,
1114
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1115
+ state: import_smithy_client._json
1116
+ });
1117
+ }, "de_DetectorSummary");
1118
+ var de_Timer = /* @__PURE__ */ __name((output, context) => {
1119
+ return (0, import_smithy_client.take)(output, {
1120
+ name: import_smithy_client.expectString,
1121
+ timestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1122
+ });
1123
+ }, "de_Timer");
1124
+ var de_Timers = /* @__PURE__ */ __name((output, context) => {
1125
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1126
+ return de_Timer(entry, context);
1127
+ });
1128
+ return retVal;
1129
+ }, "de_Timers");
1130
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1131
+ httpStatusCode: output.statusCode,
1132
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1133
+ extendedRequestId: output.headers["x-amz-id-2"],
1134
+ cfId: output.headers["x-amz-cf-id"]
1135
+ }), "deserializeMetadata");
1136
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1137
+ var _kV = "keyValue";
1138
+ var _mR = "maxResults";
1139
+ var _nT = "nextToken";
1140
+ var _sN = "stateName";
1141
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1142
+ if (encoded.length) {
1143
+ return JSON.parse(encoded);
1144
+ }
1145
+ return {};
1146
+ }), "parseBody");
1147
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1148
+ const value = await parseBody(errorBody, context);
1149
+ value.message = value.message ?? value.Message;
1150
+ return value;
1151
+ }, "parseErrorBody");
1152
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1153
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1154
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1155
+ let cleanValue = rawValue;
1156
+ if (typeof cleanValue === "number") {
1157
+ cleanValue = cleanValue.toString();
1158
+ }
1159
+ if (cleanValue.indexOf(",") >= 0) {
1160
+ cleanValue = cleanValue.split(",")[0];
1161
+ }
1162
+ if (cleanValue.indexOf(":") >= 0) {
1163
+ cleanValue = cleanValue.split(":")[0];
1164
+ }
1165
+ if (cleanValue.indexOf("#") >= 0) {
1166
+ cleanValue = cleanValue.split("#")[1];
1167
+ }
1168
+ return cleanValue;
1169
+ }, "sanitizeErrorCode");
1170
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1171
+ if (headerKey !== void 0) {
1172
+ return sanitizeErrorCode(output.headers[headerKey]);
1173
+ }
1174
+ if (data.code !== void 0) {
1175
+ return sanitizeErrorCode(data.code);
1176
+ }
1177
+ if (data["__type"] !== void 0) {
1178
+ return sanitizeErrorCode(data["__type"]);
1179
+ }
1180
+ }, "loadRestJsonErrorCode");
1181
+
1182
+ // src/commands/BatchAcknowledgeAlarmCommand.ts
1183
+ var _BatchAcknowledgeAlarmCommand = class _BatchAcknowledgeAlarmCommand extends import_smithy_client.Command.classBuilder().ep({
1184
+ ...commonParams
1185
+ }).m(function(Command, cs, config, o) {
1186
+ return [
1187
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1188
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1189
+ ];
1190
+ }).s("IotColumboDataService", "BatchAcknowledgeAlarm", {}).n("IoTEventsDataClient", "BatchAcknowledgeAlarmCommand").f(void 0, void 0).ser(se_BatchAcknowledgeAlarmCommand).de(de_BatchAcknowledgeAlarmCommand).build() {
1191
+ };
1192
+ __name(_BatchAcknowledgeAlarmCommand, "BatchAcknowledgeAlarmCommand");
1193
+ var BatchAcknowledgeAlarmCommand = _BatchAcknowledgeAlarmCommand;
1194
+
1195
+ // src/commands/BatchDeleteDetectorCommand.ts
1196
+
1197
+
1198
+
1199
+
1200
+ var _BatchDeleteDetectorCommand = class _BatchDeleteDetectorCommand extends import_smithy_client.Command.classBuilder().ep({
1201
+ ...commonParams
1202
+ }).m(function(Command, cs, config, o) {
1203
+ return [
1204
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1205
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1206
+ ];
1207
+ }).s("IotColumboDataService", "BatchDeleteDetector", {}).n("IoTEventsDataClient", "BatchDeleteDetectorCommand").f(void 0, void 0).ser(se_BatchDeleteDetectorCommand).de(de_BatchDeleteDetectorCommand).build() {
1208
+ };
1209
+ __name(_BatchDeleteDetectorCommand, "BatchDeleteDetectorCommand");
1210
+ var BatchDeleteDetectorCommand = _BatchDeleteDetectorCommand;
1211
+
1212
+ // src/commands/BatchDisableAlarmCommand.ts
1213
+
1214
+
1215
+
1216
+
1217
+ var _BatchDisableAlarmCommand = class _BatchDisableAlarmCommand extends import_smithy_client.Command.classBuilder().ep({
1218
+ ...commonParams
1219
+ }).m(function(Command, cs, config, o) {
1220
+ return [
1221
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1222
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1223
+ ];
1224
+ }).s("IotColumboDataService", "BatchDisableAlarm", {}).n("IoTEventsDataClient", "BatchDisableAlarmCommand").f(void 0, void 0).ser(se_BatchDisableAlarmCommand).de(de_BatchDisableAlarmCommand).build() {
1225
+ };
1226
+ __name(_BatchDisableAlarmCommand, "BatchDisableAlarmCommand");
1227
+ var BatchDisableAlarmCommand = _BatchDisableAlarmCommand;
1228
+
1229
+ // src/commands/BatchEnableAlarmCommand.ts
1230
+
1231
+
1232
+
1233
+
1234
+ var _BatchEnableAlarmCommand = class _BatchEnableAlarmCommand extends import_smithy_client.Command.classBuilder().ep({
1235
+ ...commonParams
1236
+ }).m(function(Command, cs, config, o) {
1237
+ return [
1238
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1239
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1240
+ ];
1241
+ }).s("IotColumboDataService", "BatchEnableAlarm", {}).n("IoTEventsDataClient", "BatchEnableAlarmCommand").f(void 0, void 0).ser(se_BatchEnableAlarmCommand).de(de_BatchEnableAlarmCommand).build() {
1242
+ };
1243
+ __name(_BatchEnableAlarmCommand, "BatchEnableAlarmCommand");
1244
+ var BatchEnableAlarmCommand = _BatchEnableAlarmCommand;
1245
+
1246
+ // src/commands/BatchPutMessageCommand.ts
1247
+
1248
+
1249
+
1250
+
1251
+ var _BatchPutMessageCommand = class _BatchPutMessageCommand extends import_smithy_client.Command.classBuilder().ep({
1252
+ ...commonParams
1253
+ }).m(function(Command, cs, config, o) {
1254
+ return [
1255
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1256
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1257
+ ];
1258
+ }).s("IotColumboDataService", "BatchPutMessage", {}).n("IoTEventsDataClient", "BatchPutMessageCommand").f(void 0, void 0).ser(se_BatchPutMessageCommand).de(de_BatchPutMessageCommand).build() {
1259
+ };
1260
+ __name(_BatchPutMessageCommand, "BatchPutMessageCommand");
1261
+ var BatchPutMessageCommand = _BatchPutMessageCommand;
1262
+
1263
+ // src/commands/BatchResetAlarmCommand.ts
1264
+
1265
+
1266
+
1267
+
1268
+ var _BatchResetAlarmCommand = class _BatchResetAlarmCommand extends import_smithy_client.Command.classBuilder().ep({
1269
+ ...commonParams
1270
+ }).m(function(Command, cs, config, o) {
1271
+ return [
1272
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1273
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1274
+ ];
1275
+ }).s("IotColumboDataService", "BatchResetAlarm", {}).n("IoTEventsDataClient", "BatchResetAlarmCommand").f(void 0, void 0).ser(se_BatchResetAlarmCommand).de(de_BatchResetAlarmCommand).build() {
1276
+ };
1277
+ __name(_BatchResetAlarmCommand, "BatchResetAlarmCommand");
1278
+ var BatchResetAlarmCommand = _BatchResetAlarmCommand;
1279
+
1280
+ // src/commands/BatchSnoozeAlarmCommand.ts
1281
+
1282
+
1283
+
1284
+
1285
+ var _BatchSnoozeAlarmCommand = class _BatchSnoozeAlarmCommand extends import_smithy_client.Command.classBuilder().ep({
1286
+ ...commonParams
1287
+ }).m(function(Command, cs, config, o) {
1288
+ return [
1289
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1290
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1291
+ ];
1292
+ }).s("IotColumboDataService", "BatchSnoozeAlarm", {}).n("IoTEventsDataClient", "BatchSnoozeAlarmCommand").f(void 0, void 0).ser(se_BatchSnoozeAlarmCommand).de(de_BatchSnoozeAlarmCommand).build() {
1293
+ };
1294
+ __name(_BatchSnoozeAlarmCommand, "BatchSnoozeAlarmCommand");
1295
+ var BatchSnoozeAlarmCommand = _BatchSnoozeAlarmCommand;
1296
+
1297
+ // src/commands/BatchUpdateDetectorCommand.ts
1298
+
1299
+
1300
+
1301
+
1302
+ var _BatchUpdateDetectorCommand = class _BatchUpdateDetectorCommand extends import_smithy_client.Command.classBuilder().ep({
1303
+ ...commonParams
1304
+ }).m(function(Command, cs, config, o) {
1305
+ return [
1306
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1307
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1308
+ ];
1309
+ }).s("IotColumboDataService", "BatchUpdateDetector", {}).n("IoTEventsDataClient", "BatchUpdateDetectorCommand").f(void 0, void 0).ser(se_BatchUpdateDetectorCommand).de(de_BatchUpdateDetectorCommand).build() {
1310
+ };
1311
+ __name(_BatchUpdateDetectorCommand, "BatchUpdateDetectorCommand");
1312
+ var BatchUpdateDetectorCommand = _BatchUpdateDetectorCommand;
1313
+
1314
+ // src/commands/DescribeAlarmCommand.ts
1315
+
1316
+
1317
+
1318
+
1319
+ var _DescribeAlarmCommand = class _DescribeAlarmCommand extends import_smithy_client.Command.classBuilder().ep({
1320
+ ...commonParams
1321
+ }).m(function(Command, cs, config, o) {
1322
+ return [
1323
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1324
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1325
+ ];
1326
+ }).s("IotColumboDataService", "DescribeAlarm", {}).n("IoTEventsDataClient", "DescribeAlarmCommand").f(void 0, void 0).ser(se_DescribeAlarmCommand).de(de_DescribeAlarmCommand).build() {
1327
+ };
1328
+ __name(_DescribeAlarmCommand, "DescribeAlarmCommand");
1329
+ var DescribeAlarmCommand = _DescribeAlarmCommand;
1330
+
1331
+ // src/commands/DescribeDetectorCommand.ts
1332
+
1333
+
1334
+
1335
+
1336
+ var _DescribeDetectorCommand = class _DescribeDetectorCommand extends import_smithy_client.Command.classBuilder().ep({
1337
+ ...commonParams
1338
+ }).m(function(Command, cs, config, o) {
1339
+ return [
1340
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1341
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1342
+ ];
1343
+ }).s("IotColumboDataService", "DescribeDetector", {}).n("IoTEventsDataClient", "DescribeDetectorCommand").f(void 0, void 0).ser(se_DescribeDetectorCommand).de(de_DescribeDetectorCommand).build() {
1344
+ };
1345
+ __name(_DescribeDetectorCommand, "DescribeDetectorCommand");
1346
+ var DescribeDetectorCommand = _DescribeDetectorCommand;
1347
+
1348
+ // src/commands/ListAlarmsCommand.ts
1349
+
1350
+
1351
+
1352
+
1353
+ var _ListAlarmsCommand = class _ListAlarmsCommand extends import_smithy_client.Command.classBuilder().ep({
1354
+ ...commonParams
1355
+ }).m(function(Command, cs, config, o) {
1356
+ return [
1357
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1358
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1359
+ ];
1360
+ }).s("IotColumboDataService", "ListAlarms", {}).n("IoTEventsDataClient", "ListAlarmsCommand").f(void 0, void 0).ser(se_ListAlarmsCommand).de(de_ListAlarmsCommand).build() {
1361
+ };
1362
+ __name(_ListAlarmsCommand, "ListAlarmsCommand");
1363
+ var ListAlarmsCommand = _ListAlarmsCommand;
1364
+
1365
+ // src/commands/ListDetectorsCommand.ts
1366
+
1367
+
1368
+
1369
+
1370
+ var _ListDetectorsCommand = class _ListDetectorsCommand extends import_smithy_client.Command.classBuilder().ep({
1371
+ ...commonParams
1372
+ }).m(function(Command, cs, config, o) {
1373
+ return [
1374
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1375
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1376
+ ];
1377
+ }).s("IotColumboDataService", "ListDetectors", {}).n("IoTEventsDataClient", "ListDetectorsCommand").f(void 0, void 0).ser(se_ListDetectorsCommand).de(de_ListDetectorsCommand).build() {
1378
+ };
1379
+ __name(_ListDetectorsCommand, "ListDetectorsCommand");
1380
+ var ListDetectorsCommand = _ListDetectorsCommand;
1381
+
1382
+ // src/IoTEventsData.ts
1383
+ var commands = {
1384
+ BatchAcknowledgeAlarmCommand,
1385
+ BatchDeleteDetectorCommand,
1386
+ BatchDisableAlarmCommand,
1387
+ BatchEnableAlarmCommand,
1388
+ BatchPutMessageCommand,
1389
+ BatchResetAlarmCommand,
1390
+ BatchSnoozeAlarmCommand,
1391
+ BatchUpdateDetectorCommand,
1392
+ DescribeAlarmCommand,
1393
+ DescribeDetectorCommand,
1394
+ ListAlarmsCommand,
1395
+ ListDetectorsCommand
1396
+ };
1397
+ var _IoTEventsData = class _IoTEventsData extends IoTEventsDataClient {
1398
+ };
1399
+ __name(_IoTEventsData, "IoTEventsData");
1400
+ var IoTEventsData = _IoTEventsData;
1401
+ (0, import_smithy_client.createAggregatedClient)(commands, IoTEventsData);
1402
+
1403
+ // src/index.ts
1404
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1405
+ // Annotate the CommonJS export names for ESM import in node:
1406
+ 0 && (module.exports = {
1407
+ AlarmStateName,
1408
+ BatchAcknowledgeAlarmCommand,
1409
+ BatchDeleteDetectorCommand,
1410
+ BatchDisableAlarmCommand,
1411
+ BatchEnableAlarmCommand,
1412
+ BatchPutMessageCommand,
1413
+ BatchResetAlarmCommand,
1414
+ BatchSnoozeAlarmCommand,
1415
+ BatchUpdateDetectorCommand,
1416
+ ComparisonOperator,
1417
+ CustomerActionName,
1418
+ DescribeAlarmCommand,
1419
+ DescribeDetectorCommand,
1420
+ ErrorCode,
1421
+ EventType,
1422
+ InternalFailureException,
1423
+ InvalidRequestException,
1424
+ IoTEventsData,
1425
+ IoTEventsDataClient,
1426
+ IoTEventsDataServiceException,
1427
+ ListAlarmsCommand,
1428
+ ListDetectorsCommand,
1429
+ ResourceNotFoundException,
1430
+ ServiceUnavailableException,
1431
+ ThrottlingException,
1432
+ TriggerType,
1433
+ __Client
1434
+ });