@aws-sdk/client-iot-events 3.490.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.
Files changed (38) hide show
  1. package/dist-cjs/IoTEvents.js +1 -63
  2. package/dist-cjs/IoTEventsClient.js +1 -43
  3. package/dist-cjs/commands/CreateAlarmModelCommand.js +1 -28
  4. package/dist-cjs/commands/CreateDetectorModelCommand.js +1 -28
  5. package/dist-cjs/commands/CreateInputCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteAlarmModelCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteDetectorModelCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteInputCommand.js +1 -28
  9. package/dist-cjs/commands/DescribeAlarmModelCommand.js +1 -28
  10. package/dist-cjs/commands/DescribeDetectorModelAnalysisCommand.js +1 -28
  11. package/dist-cjs/commands/DescribeDetectorModelCommand.js +1 -28
  12. package/dist-cjs/commands/DescribeInputCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeLoggingOptionsCommand.js +1 -28
  14. package/dist-cjs/commands/GetDetectorModelAnalysisResultsCommand.js +1 -28
  15. package/dist-cjs/commands/ListAlarmModelVersionsCommand.js +1 -28
  16. package/dist-cjs/commands/ListAlarmModelsCommand.js +1 -28
  17. package/dist-cjs/commands/ListDetectorModelVersionsCommand.js +1 -28
  18. package/dist-cjs/commands/ListDetectorModelsCommand.js +1 -28
  19. package/dist-cjs/commands/ListInputRoutingsCommand.js +1 -28
  20. package/dist-cjs/commands/ListInputsCommand.js +1 -28
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  22. package/dist-cjs/commands/PutLoggingOptionsCommand.js +1 -28
  23. package/dist-cjs/commands/StartDetectorModelAnalysisCommand.js +1 -28
  24. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  25. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  26. package/dist-cjs/commands/UpdateAlarmModelCommand.js +1 -28
  27. package/dist-cjs/commands/UpdateDetectorModelCommand.js +1 -28
  28. package/dist-cjs/commands/UpdateInputCommand.js +1 -28
  29. package/dist-cjs/commands/index.js +1 -29
  30. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  31. package/dist-cjs/extensionConfiguration.js +1 -2
  32. package/dist-cjs/index.js +2794 -10
  33. package/dist-cjs/models/IoTEventsServiceException.js +1 -12
  34. package/dist-cjs/models/index.js +1 -4
  35. package/dist-cjs/models/models_0.js +1 -175
  36. package/dist-cjs/protocols/Aws_restJson1.js +1 -1927
  37. package/dist-cjs/runtimeExtensions.js +1 -22
  38. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,2795 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IoTEventsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./IoTEventsClient"), exports);
6
- tslib_1.__exportStar(require("./IoTEvents"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
- require("@aws-sdk/util-endpoints");
10
- var IoTEventsServiceException_1 = require("./models/IoTEventsServiceException");
11
- Object.defineProperty(exports, "IoTEventsServiceException", { enumerable: true, get: function () { return IoTEventsServiceException_1.IoTEventsServiceException; } });
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
+ AlarmModelVersionStatus: () => AlarmModelVersionStatus,
25
+ AnalysisResultLevel: () => AnalysisResultLevel,
26
+ AnalysisStatus: () => AnalysisStatus,
27
+ ComparisonOperator: () => ComparisonOperator,
28
+ CreateAlarmModelCommand: () => CreateAlarmModelCommand,
29
+ CreateDetectorModelCommand: () => CreateDetectorModelCommand,
30
+ CreateInputCommand: () => CreateInputCommand,
31
+ DeleteAlarmModelCommand: () => DeleteAlarmModelCommand,
32
+ DeleteDetectorModelCommand: () => DeleteDetectorModelCommand,
33
+ DeleteInputCommand: () => DeleteInputCommand,
34
+ DescribeAlarmModelCommand: () => DescribeAlarmModelCommand,
35
+ DescribeDetectorModelAnalysisCommand: () => DescribeDetectorModelAnalysisCommand,
36
+ DescribeDetectorModelCommand: () => DescribeDetectorModelCommand,
37
+ DescribeInputCommand: () => DescribeInputCommand,
38
+ DescribeLoggingOptionsCommand: () => DescribeLoggingOptionsCommand,
39
+ DetectorModelVersionStatus: () => DetectorModelVersionStatus,
40
+ EvaluationMethod: () => EvaluationMethod,
41
+ GetDetectorModelAnalysisResultsCommand: () => GetDetectorModelAnalysisResultsCommand,
42
+ InputStatus: () => InputStatus,
43
+ InternalFailureException: () => InternalFailureException,
44
+ InvalidRequestException: () => InvalidRequestException,
45
+ IoTEvents: () => IoTEvents,
46
+ IoTEventsClient: () => IoTEventsClient,
47
+ IoTEventsServiceException: () => IoTEventsServiceException,
48
+ LimitExceededException: () => LimitExceededException,
49
+ ListAlarmModelVersionsCommand: () => ListAlarmModelVersionsCommand,
50
+ ListAlarmModelsCommand: () => ListAlarmModelsCommand,
51
+ ListDetectorModelVersionsCommand: () => ListDetectorModelVersionsCommand,
52
+ ListDetectorModelsCommand: () => ListDetectorModelsCommand,
53
+ ListInputRoutingsCommand: () => ListInputRoutingsCommand,
54
+ ListInputsCommand: () => ListInputsCommand,
55
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
56
+ LoggingLevel: () => LoggingLevel,
57
+ PayloadType: () => PayloadType,
58
+ PutLoggingOptionsCommand: () => PutLoggingOptionsCommand,
59
+ ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
60
+ ResourceInUseException: () => ResourceInUseException,
61
+ ResourceNotFoundException: () => ResourceNotFoundException,
62
+ ServiceUnavailableException: () => ServiceUnavailableException,
63
+ StartDetectorModelAnalysisCommand: () => StartDetectorModelAnalysisCommand,
64
+ TagResourceCommand: () => TagResourceCommand,
65
+ ThrottlingException: () => ThrottlingException,
66
+ UnsupportedOperationException: () => UnsupportedOperationException,
67
+ UntagResourceCommand: () => UntagResourceCommand,
68
+ UpdateAlarmModelCommand: () => UpdateAlarmModelCommand,
69
+ UpdateDetectorModelCommand: () => UpdateDetectorModelCommand,
70
+ UpdateInputCommand: () => UpdateInputCommand,
71
+ __Client: () => import_smithy_client.Client
72
+ });
73
+ module.exports = __toCommonJS(src_exports);
74
+
75
+ // src/IoTEventsClient.ts
76
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
77
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
78
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
79
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
80
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
81
+ var import_config_resolver = require("@smithy/config-resolver");
82
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
83
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
84
+ var import_middleware_retry = require("@smithy/middleware-retry");
85
+
86
+
87
+ // src/endpoint/EndpointParameters.ts
88
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
89
+ return {
90
+ ...options,
91
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
92
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
93
+ defaultSigningName: "iotevents"
94
+ };
95
+ }, "resolveClientEndpointParameters");
96
+ var commonParams = {
97
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
98
+ Endpoint: { type: "builtInParams", name: "endpoint" },
99
+ Region: { type: "builtInParams", name: "region" },
100
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
101
+ };
102
+
103
+ // src/IoTEventsClient.ts
104
+ var import_runtimeConfig = require("././runtimeConfig");
105
+
106
+ // src/runtimeExtensions.ts
107
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
108
+ var import_protocol_http = require("@smithy/protocol-http");
109
+ var import_smithy_client = require("@smithy/smithy-client");
110
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
111
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
112
+ const extensionConfiguration = {
113
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
114
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
115
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
116
+ };
117
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
118
+ return {
119
+ ...runtimeConfig,
120
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
121
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
122
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
123
+ };
124
+ }, "resolveRuntimeExtensions");
125
+
126
+ // src/IoTEventsClient.ts
127
+ var _IoTEventsClient = class _IoTEventsClient extends import_smithy_client.Client {
128
+ constructor(...[configuration]) {
129
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
130
+ const _config_1 = resolveClientEndpointParameters(_config_0);
131
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
132
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
133
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
134
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
135
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
136
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
137
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
138
+ super(_config_8);
139
+ this.config = _config_8;
140
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
141
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
142
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
143
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
144
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
145
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
146
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
147
+ }
148
+ /**
149
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
150
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
151
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
152
+ */
153
+ destroy() {
154
+ super.destroy();
155
+ }
156
+ };
157
+ __name(_IoTEventsClient, "IoTEventsClient");
158
+ var IoTEventsClient = _IoTEventsClient;
159
+
160
+ // src/IoTEvents.ts
161
+
162
+
163
+ // src/commands/CreateAlarmModelCommand.ts
164
+
165
+ var import_middleware_serde = require("@smithy/middleware-serde");
166
+
167
+ var import_types = require("@smithy/types");
168
+
169
+ // src/protocols/Aws_restJson1.ts
170
+ var import_core = require("@smithy/core");
171
+
172
+
173
+ // src/models/IoTEventsServiceException.ts
174
+
175
+ var _IoTEventsServiceException = class _IoTEventsServiceException extends import_smithy_client.ServiceException {
176
+ /**
177
+ * @internal
178
+ */
179
+ constructor(options) {
180
+ super(options);
181
+ Object.setPrototypeOf(this, _IoTEventsServiceException.prototype);
182
+ }
183
+ };
184
+ __name(_IoTEventsServiceException, "IoTEventsServiceException");
185
+ var IoTEventsServiceException = _IoTEventsServiceException;
186
+
187
+ // src/models/models_0.ts
188
+ var PayloadType = {
189
+ JSON: "JSON",
190
+ STRING: "STRING"
191
+ };
192
+ var AlarmModelVersionStatus = {
193
+ ACTIVATING: "ACTIVATING",
194
+ ACTIVE: "ACTIVE",
195
+ FAILED: "FAILED",
196
+ INACTIVE: "INACTIVE"
197
+ };
198
+ var ComparisonOperator = {
199
+ EQUAL: "EQUAL",
200
+ GREATER: "GREATER",
201
+ GREATER_OR_EQUAL: "GREATER_OR_EQUAL",
202
+ LESS: "LESS",
203
+ LESS_OR_EQUAL: "LESS_OR_EQUAL",
204
+ NOT_EQUAL: "NOT_EQUAL"
205
+ };
206
+ var AnalysisResultLevel = {
207
+ ERROR: "ERROR",
208
+ INFO: "INFO",
209
+ WARNING: "WARNING"
210
+ };
211
+ var AnalysisStatus = {
212
+ COMPLETE: "COMPLETE",
213
+ FAILED: "FAILED",
214
+ RUNNING: "RUNNING"
215
+ };
216
+ var _InternalFailureException = class _InternalFailureException extends IoTEventsServiceException {
217
+ /**
218
+ * @internal
219
+ */
220
+ constructor(opts) {
221
+ super({
222
+ name: "InternalFailureException",
223
+ $fault: "server",
224
+ ...opts
225
+ });
226
+ this.name = "InternalFailureException";
227
+ this.$fault = "server";
228
+ Object.setPrototypeOf(this, _InternalFailureException.prototype);
229
+ }
230
+ };
231
+ __name(_InternalFailureException, "InternalFailureException");
232
+ var InternalFailureException = _InternalFailureException;
233
+ var _InvalidRequestException = class _InvalidRequestException extends IoTEventsServiceException {
234
+ /**
235
+ * @internal
236
+ */
237
+ constructor(opts) {
238
+ super({
239
+ name: "InvalidRequestException",
240
+ $fault: "client",
241
+ ...opts
242
+ });
243
+ this.name = "InvalidRequestException";
244
+ this.$fault = "client";
245
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
246
+ }
247
+ };
248
+ __name(_InvalidRequestException, "InvalidRequestException");
249
+ var InvalidRequestException = _InvalidRequestException;
250
+ var _LimitExceededException = class _LimitExceededException extends IoTEventsServiceException {
251
+ /**
252
+ * @internal
253
+ */
254
+ constructor(opts) {
255
+ super({
256
+ name: "LimitExceededException",
257
+ $fault: "client",
258
+ ...opts
259
+ });
260
+ this.name = "LimitExceededException";
261
+ this.$fault = "client";
262
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
263
+ }
264
+ };
265
+ __name(_LimitExceededException, "LimitExceededException");
266
+ var LimitExceededException = _LimitExceededException;
267
+ var _ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends IoTEventsServiceException {
268
+ /**
269
+ * @internal
270
+ */
271
+ constructor(opts) {
272
+ super({
273
+ name: "ResourceAlreadyExistsException",
274
+ $fault: "client",
275
+ ...opts
276
+ });
277
+ this.name = "ResourceAlreadyExistsException";
278
+ this.$fault = "client";
279
+ Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
280
+ this.resourceId = opts.resourceId;
281
+ this.resourceArn = opts.resourceArn;
282
+ }
283
+ };
284
+ __name(_ResourceAlreadyExistsException, "ResourceAlreadyExistsException");
285
+ var ResourceAlreadyExistsException = _ResourceAlreadyExistsException;
286
+ var _ResourceInUseException = class _ResourceInUseException extends IoTEventsServiceException {
287
+ /**
288
+ * @internal
289
+ */
290
+ constructor(opts) {
291
+ super({
292
+ name: "ResourceInUseException",
293
+ $fault: "client",
294
+ ...opts
295
+ });
296
+ this.name = "ResourceInUseException";
297
+ this.$fault = "client";
298
+ Object.setPrototypeOf(this, _ResourceInUseException.prototype);
299
+ }
300
+ };
301
+ __name(_ResourceInUseException, "ResourceInUseException");
302
+ var ResourceInUseException = _ResourceInUseException;
303
+ var _ServiceUnavailableException = class _ServiceUnavailableException extends IoTEventsServiceException {
304
+ /**
305
+ * @internal
306
+ */
307
+ constructor(opts) {
308
+ super({
309
+ name: "ServiceUnavailableException",
310
+ $fault: "server",
311
+ ...opts
312
+ });
313
+ this.name = "ServiceUnavailableException";
314
+ this.$fault = "server";
315
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
316
+ }
317
+ };
318
+ __name(_ServiceUnavailableException, "ServiceUnavailableException");
319
+ var ServiceUnavailableException = _ServiceUnavailableException;
320
+ var _ThrottlingException = class _ThrottlingException extends IoTEventsServiceException {
321
+ /**
322
+ * @internal
323
+ */
324
+ constructor(opts) {
325
+ super({
326
+ name: "ThrottlingException",
327
+ $fault: "client",
328
+ ...opts
329
+ });
330
+ this.name = "ThrottlingException";
331
+ this.$fault = "client";
332
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
333
+ }
334
+ };
335
+ __name(_ThrottlingException, "ThrottlingException");
336
+ var ThrottlingException = _ThrottlingException;
337
+ var EvaluationMethod = {
338
+ BATCH: "BATCH",
339
+ SERIAL: "SERIAL"
340
+ };
341
+ var DetectorModelVersionStatus = {
342
+ ACTIVATING: "ACTIVATING",
343
+ ACTIVE: "ACTIVE",
344
+ DEPRECATED: "DEPRECATED",
345
+ DRAFT: "DRAFT",
346
+ FAILED: "FAILED",
347
+ INACTIVE: "INACTIVE",
348
+ PAUSED: "PAUSED"
349
+ };
350
+ var InputStatus = {
351
+ ACTIVE: "ACTIVE",
352
+ CREATING: "CREATING",
353
+ DELETING: "DELETING",
354
+ UPDATING: "UPDATING"
355
+ };
356
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends IoTEventsServiceException {
357
+ /**
358
+ * @internal
359
+ */
360
+ constructor(opts) {
361
+ super({
362
+ name: "ResourceNotFoundException",
363
+ $fault: "client",
364
+ ...opts
365
+ });
366
+ this.name = "ResourceNotFoundException";
367
+ this.$fault = "client";
368
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
369
+ }
370
+ };
371
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
372
+ var ResourceNotFoundException = _ResourceNotFoundException;
373
+ var LoggingLevel = {
374
+ DEBUG: "DEBUG",
375
+ ERROR: "ERROR",
376
+ INFO: "INFO"
377
+ };
378
+ var _UnsupportedOperationException = class _UnsupportedOperationException extends IoTEventsServiceException {
379
+ /**
380
+ * @internal
381
+ */
382
+ constructor(opts) {
383
+ super({
384
+ name: "UnsupportedOperationException",
385
+ $fault: "server",
386
+ ...opts
387
+ });
388
+ this.name = "UnsupportedOperationException";
389
+ this.$fault = "server";
390
+ Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
391
+ }
392
+ };
393
+ __name(_UnsupportedOperationException, "UnsupportedOperationException");
394
+ var UnsupportedOperationException = _UnsupportedOperationException;
395
+
396
+ // src/protocols/Aws_restJson1.ts
397
+ var se_CreateAlarmModelCommand = /* @__PURE__ */ __name(async (input, context) => {
398
+ const b = (0, import_core.requestBuilder)(input, context);
399
+ const headers = {
400
+ "content-type": "application/json"
401
+ };
402
+ b.bp("/alarm-models");
403
+ let body;
404
+ body = JSON.stringify(
405
+ (0, import_smithy_client.take)(input, {
406
+ alarmCapabilities: (_) => (0, import_smithy_client._json)(_),
407
+ alarmEventActions: (_) => (0, import_smithy_client._json)(_),
408
+ alarmModelDescription: [],
409
+ alarmModelName: [],
410
+ alarmNotification: (_) => (0, import_smithy_client._json)(_),
411
+ alarmRule: (_) => (0, import_smithy_client._json)(_),
412
+ key: [],
413
+ roleArn: [],
414
+ severity: [],
415
+ tags: (_) => (0, import_smithy_client._json)(_)
416
+ })
417
+ );
418
+ b.m("POST").h(headers).b(body);
419
+ return b.build();
420
+ }, "se_CreateAlarmModelCommand");
421
+ var se_CreateDetectorModelCommand = /* @__PURE__ */ __name(async (input, context) => {
422
+ const b = (0, import_core.requestBuilder)(input, context);
423
+ const headers = {
424
+ "content-type": "application/json"
425
+ };
426
+ b.bp("/detector-models");
427
+ let body;
428
+ body = JSON.stringify(
429
+ (0, import_smithy_client.take)(input, {
430
+ detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context),
431
+ detectorModelDescription: [],
432
+ detectorModelName: [],
433
+ evaluationMethod: [],
434
+ key: [],
435
+ roleArn: [],
436
+ tags: (_) => (0, import_smithy_client._json)(_)
437
+ })
438
+ );
439
+ b.m("POST").h(headers).b(body);
440
+ return b.build();
441
+ }, "se_CreateDetectorModelCommand");
442
+ var se_CreateInputCommand = /* @__PURE__ */ __name(async (input, context) => {
443
+ const b = (0, import_core.requestBuilder)(input, context);
444
+ const headers = {
445
+ "content-type": "application/json"
446
+ };
447
+ b.bp("/inputs");
448
+ let body;
449
+ body = JSON.stringify(
450
+ (0, import_smithy_client.take)(input, {
451
+ inputDefinition: (_) => (0, import_smithy_client._json)(_),
452
+ inputDescription: [],
453
+ inputName: [],
454
+ tags: (_) => (0, import_smithy_client._json)(_)
455
+ })
456
+ );
457
+ b.m("POST").h(headers).b(body);
458
+ return b.build();
459
+ }, "se_CreateInputCommand");
460
+ var se_DeleteAlarmModelCommand = /* @__PURE__ */ __name(async (input, context) => {
461
+ const b = (0, import_core.requestBuilder)(input, context);
462
+ const headers = {};
463
+ b.bp("/alarm-models/{alarmModelName}");
464
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
465
+ let body;
466
+ b.m("DELETE").h(headers).b(body);
467
+ return b.build();
468
+ }, "se_DeleteAlarmModelCommand");
469
+ var se_DeleteDetectorModelCommand = /* @__PURE__ */ __name(async (input, context) => {
470
+ const b = (0, import_core.requestBuilder)(input, context);
471
+ const headers = {};
472
+ b.bp("/detector-models/{detectorModelName}");
473
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
474
+ let body;
475
+ b.m("DELETE").h(headers).b(body);
476
+ return b.build();
477
+ }, "se_DeleteDetectorModelCommand");
478
+ var se_DeleteInputCommand = /* @__PURE__ */ __name(async (input, context) => {
479
+ const b = (0, import_core.requestBuilder)(input, context);
480
+ const headers = {};
481
+ b.bp("/inputs/{inputName}");
482
+ b.p("inputName", () => input.inputName, "{inputName}", false);
483
+ let body;
484
+ b.m("DELETE").h(headers).b(body);
485
+ return b.build();
486
+ }, "se_DeleteInputCommand");
487
+ var se_DescribeAlarmModelCommand = /* @__PURE__ */ __name(async (input, context) => {
488
+ const b = (0, import_core.requestBuilder)(input, context);
489
+ const headers = {};
490
+ b.bp("/alarm-models/{alarmModelName}");
491
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
492
+ const query = (0, import_smithy_client.map)({
493
+ [_v]: [, input[_aMV]]
494
+ });
495
+ let body;
496
+ b.m("GET").h(headers).q(query).b(body);
497
+ return b.build();
498
+ }, "se_DescribeAlarmModelCommand");
499
+ var se_DescribeDetectorModelCommand = /* @__PURE__ */ __name(async (input, context) => {
500
+ const b = (0, import_core.requestBuilder)(input, context);
501
+ const headers = {};
502
+ b.bp("/detector-models/{detectorModelName}");
503
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
504
+ const query = (0, import_smithy_client.map)({
505
+ [_v]: [, input[_dMV]]
506
+ });
507
+ let body;
508
+ b.m("GET").h(headers).q(query).b(body);
509
+ return b.build();
510
+ }, "se_DescribeDetectorModelCommand");
511
+ var se_DescribeDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (input, context) => {
512
+ const b = (0, import_core.requestBuilder)(input, context);
513
+ const headers = {};
514
+ b.bp("/analysis/detector-models/{analysisId}");
515
+ b.p("analysisId", () => input.analysisId, "{analysisId}", false);
516
+ let body;
517
+ b.m("GET").h(headers).b(body);
518
+ return b.build();
519
+ }, "se_DescribeDetectorModelAnalysisCommand");
520
+ var se_DescribeInputCommand = /* @__PURE__ */ __name(async (input, context) => {
521
+ const b = (0, import_core.requestBuilder)(input, context);
522
+ const headers = {};
523
+ b.bp("/inputs/{inputName}");
524
+ b.p("inputName", () => input.inputName, "{inputName}", false);
525
+ let body;
526
+ b.m("GET").h(headers).b(body);
527
+ return b.build();
528
+ }, "se_DescribeInputCommand");
529
+ var se_DescribeLoggingOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
530
+ const b = (0, import_core.requestBuilder)(input, context);
531
+ const headers = {
532
+ "content-type": "application/json"
533
+ };
534
+ b.bp("/logging");
535
+ let body;
536
+ body = "";
537
+ b.m("GET").h(headers).b(body);
538
+ return b.build();
539
+ }, "se_DescribeLoggingOptionsCommand");
540
+ var se_GetDetectorModelAnalysisResultsCommand = /* @__PURE__ */ __name(async (input, context) => {
541
+ const b = (0, import_core.requestBuilder)(input, context);
542
+ const headers = {};
543
+ b.bp("/analysis/detector-models/{analysisId}/results");
544
+ b.p("analysisId", () => input.analysisId, "{analysisId}", false);
545
+ const query = (0, import_smithy_client.map)({
546
+ [_nT]: [, input[_nT]],
547
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
548
+ });
549
+ let body;
550
+ b.m("GET").h(headers).q(query).b(body);
551
+ return b.build();
552
+ }, "se_GetDetectorModelAnalysisResultsCommand");
553
+ var se_ListAlarmModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
554
+ const b = (0, import_core.requestBuilder)(input, context);
555
+ const headers = {};
556
+ b.bp("/alarm-models");
557
+ const query = (0, import_smithy_client.map)({
558
+ [_nT]: [, input[_nT]],
559
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
560
+ });
561
+ let body;
562
+ b.m("GET").h(headers).q(query).b(body);
563
+ return b.build();
564
+ }, "se_ListAlarmModelsCommand");
565
+ var se_ListAlarmModelVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
566
+ const b = (0, import_core.requestBuilder)(input, context);
567
+ const headers = {};
568
+ b.bp("/alarm-models/{alarmModelName}/versions");
569
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
570
+ const query = (0, import_smithy_client.map)({
571
+ [_nT]: [, input[_nT]],
572
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
573
+ });
574
+ let body;
575
+ b.m("GET").h(headers).q(query).b(body);
576
+ return b.build();
577
+ }, "se_ListAlarmModelVersionsCommand");
578
+ var se_ListDetectorModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
579
+ const b = (0, import_core.requestBuilder)(input, context);
580
+ const headers = {};
581
+ b.bp("/detector-models");
582
+ const query = (0, import_smithy_client.map)({
583
+ [_nT]: [, input[_nT]],
584
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
585
+ });
586
+ let body;
587
+ b.m("GET").h(headers).q(query).b(body);
588
+ return b.build();
589
+ }, "se_ListDetectorModelsCommand");
590
+ var se_ListDetectorModelVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
591
+ const b = (0, import_core.requestBuilder)(input, context);
592
+ const headers = {};
593
+ b.bp("/detector-models/{detectorModelName}/versions");
594
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
595
+ const query = (0, import_smithy_client.map)({
596
+ [_nT]: [, input[_nT]],
597
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
598
+ });
599
+ let body;
600
+ b.m("GET").h(headers).q(query).b(body);
601
+ return b.build();
602
+ }, "se_ListDetectorModelVersionsCommand");
603
+ var se_ListInputRoutingsCommand = /* @__PURE__ */ __name(async (input, context) => {
604
+ const b = (0, import_core.requestBuilder)(input, context);
605
+ const headers = {
606
+ "content-type": "application/json"
607
+ };
608
+ b.bp("/input-routings");
609
+ let body;
610
+ body = JSON.stringify(
611
+ (0, import_smithy_client.take)(input, {
612
+ inputIdentifier: (_) => (0, import_smithy_client._json)(_),
613
+ maxResults: [],
614
+ nextToken: []
615
+ })
616
+ );
617
+ b.m("POST").h(headers).b(body);
618
+ return b.build();
619
+ }, "se_ListInputRoutingsCommand");
620
+ var se_ListInputsCommand = /* @__PURE__ */ __name(async (input, context) => {
621
+ const b = (0, import_core.requestBuilder)(input, context);
622
+ const headers = {};
623
+ b.bp("/inputs");
624
+ const query = (0, import_smithy_client.map)({
625
+ [_nT]: [, input[_nT]],
626
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
627
+ });
628
+ let body;
629
+ b.m("GET").h(headers).q(query).b(body);
630
+ return b.build();
631
+ }, "se_ListInputsCommand");
632
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
633
+ const b = (0, import_core.requestBuilder)(input, context);
634
+ const headers = {};
635
+ b.bp("/tags");
636
+ const query = (0, import_smithy_client.map)({
637
+ [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
638
+ });
639
+ let body;
640
+ b.m("GET").h(headers).q(query).b(body);
641
+ return b.build();
642
+ }, "se_ListTagsForResourceCommand");
643
+ var se_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
644
+ const b = (0, import_core.requestBuilder)(input, context);
645
+ const headers = {
646
+ "content-type": "application/json"
647
+ };
648
+ b.bp("/logging");
649
+ let body;
650
+ body = JSON.stringify(
651
+ (0, import_smithy_client.take)(input, {
652
+ loggingOptions: (_) => (0, import_smithy_client._json)(_)
653
+ })
654
+ );
655
+ b.m("PUT").h(headers).b(body);
656
+ return b.build();
657
+ }, "se_PutLoggingOptionsCommand");
658
+ var se_StartDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (input, context) => {
659
+ const b = (0, import_core.requestBuilder)(input, context);
660
+ const headers = {
661
+ "content-type": "application/json"
662
+ };
663
+ b.bp("/analysis/detector-models");
664
+ let body;
665
+ body = JSON.stringify(
666
+ (0, import_smithy_client.take)(input, {
667
+ detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context)
668
+ })
669
+ );
670
+ b.m("POST").h(headers).b(body);
671
+ return b.build();
672
+ }, "se_StartDetectorModelAnalysisCommand");
673
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
674
+ const b = (0, import_core.requestBuilder)(input, context);
675
+ const headers = {
676
+ "content-type": "application/json"
677
+ };
678
+ b.bp("/tags");
679
+ const query = (0, import_smithy_client.map)({
680
+ [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
681
+ });
682
+ let body;
683
+ body = JSON.stringify(
684
+ (0, import_smithy_client.take)(input, {
685
+ tags: (_) => (0, import_smithy_client._json)(_)
686
+ })
687
+ );
688
+ b.m("POST").h(headers).q(query).b(body);
689
+ return b.build();
690
+ }, "se_TagResourceCommand");
691
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
692
+ const b = (0, import_core.requestBuilder)(input, context);
693
+ const headers = {};
694
+ b.bp("/tags");
695
+ const query = (0, import_smithy_client.map)({
696
+ [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)],
697
+ [_tK]: [
698
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
699
+ () => (input[_tK] || []).map((_entry) => _entry)
700
+ ]
701
+ });
702
+ let body;
703
+ b.m("DELETE").h(headers).q(query).b(body);
704
+ return b.build();
705
+ }, "se_UntagResourceCommand");
706
+ var se_UpdateAlarmModelCommand = /* @__PURE__ */ __name(async (input, context) => {
707
+ const b = (0, import_core.requestBuilder)(input, context);
708
+ const headers = {
709
+ "content-type": "application/json"
710
+ };
711
+ b.bp("/alarm-models/{alarmModelName}");
712
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
713
+ let body;
714
+ body = JSON.stringify(
715
+ (0, import_smithy_client.take)(input, {
716
+ alarmCapabilities: (_) => (0, import_smithy_client._json)(_),
717
+ alarmEventActions: (_) => (0, import_smithy_client._json)(_),
718
+ alarmModelDescription: [],
719
+ alarmNotification: (_) => (0, import_smithy_client._json)(_),
720
+ alarmRule: (_) => (0, import_smithy_client._json)(_),
721
+ roleArn: [],
722
+ severity: []
723
+ })
724
+ );
725
+ b.m("POST").h(headers).b(body);
726
+ return b.build();
727
+ }, "se_UpdateAlarmModelCommand");
728
+ var se_UpdateDetectorModelCommand = /* @__PURE__ */ __name(async (input, context) => {
729
+ const b = (0, import_core.requestBuilder)(input, context);
730
+ const headers = {
731
+ "content-type": "application/json"
732
+ };
733
+ b.bp("/detector-models/{detectorModelName}");
734
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
735
+ let body;
736
+ body = JSON.stringify(
737
+ (0, import_smithy_client.take)(input, {
738
+ detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context),
739
+ detectorModelDescription: [],
740
+ evaluationMethod: [],
741
+ roleArn: []
742
+ })
743
+ );
744
+ b.m("POST").h(headers).b(body);
745
+ return b.build();
746
+ }, "se_UpdateDetectorModelCommand");
747
+ var se_UpdateInputCommand = /* @__PURE__ */ __name(async (input, context) => {
748
+ const b = (0, import_core.requestBuilder)(input, context);
749
+ const headers = {
750
+ "content-type": "application/json"
751
+ };
752
+ b.bp("/inputs/{inputName}");
753
+ b.p("inputName", () => input.inputName, "{inputName}", false);
754
+ let body;
755
+ body = JSON.stringify(
756
+ (0, import_smithy_client.take)(input, {
757
+ inputDefinition: (_) => (0, import_smithy_client._json)(_),
758
+ inputDescription: []
759
+ })
760
+ );
761
+ b.m("PUT").h(headers).b(body);
762
+ return b.build();
763
+ }, "se_UpdateInputCommand");
764
+ var de_CreateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
765
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
766
+ return de_CreateAlarmModelCommandError(output, context);
767
+ }
768
+ const contents = (0, import_smithy_client.map)({
769
+ $metadata: deserializeMetadata(output)
770
+ });
771
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
772
+ const doc = (0, import_smithy_client.take)(data, {
773
+ alarmModelArn: import_smithy_client.expectString,
774
+ alarmModelVersion: import_smithy_client.expectString,
775
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
776
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
777
+ status: import_smithy_client.expectString
778
+ });
779
+ Object.assign(contents, doc);
780
+ return contents;
781
+ }, "de_CreateAlarmModelCommand");
782
+ var de_CreateAlarmModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
783
+ const parsedOutput = {
784
+ ...output,
785
+ body: await parseErrorBody(output.body, context)
786
+ };
787
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
788
+ switch (errorCode) {
789
+ case "InternalFailureException":
790
+ case "com.amazonaws.iotevents#InternalFailureException":
791
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
792
+ case "InvalidRequestException":
793
+ case "com.amazonaws.iotevents#InvalidRequestException":
794
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
795
+ case "LimitExceededException":
796
+ case "com.amazonaws.iotevents#LimitExceededException":
797
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
798
+ case "ResourceAlreadyExistsException":
799
+ case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
800
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
801
+ case "ResourceInUseException":
802
+ case "com.amazonaws.iotevents#ResourceInUseException":
803
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
804
+ case "ServiceUnavailableException":
805
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
806
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
807
+ case "ThrottlingException":
808
+ case "com.amazonaws.iotevents#ThrottlingException":
809
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
810
+ default:
811
+ const parsedBody = parsedOutput.body;
812
+ return throwDefaultError({
813
+ output,
814
+ parsedBody,
815
+ errorCode
816
+ });
817
+ }
818
+ }, "de_CreateAlarmModelCommandError");
819
+ var de_CreateDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
820
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
821
+ return de_CreateDetectorModelCommandError(output, context);
822
+ }
823
+ const contents = (0, import_smithy_client.map)({
824
+ $metadata: deserializeMetadata(output)
825
+ });
826
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
827
+ const doc = (0, import_smithy_client.take)(data, {
828
+ detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_, context)
829
+ });
830
+ Object.assign(contents, doc);
831
+ return contents;
832
+ }, "de_CreateDetectorModelCommand");
833
+ var de_CreateDetectorModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
834
+ const parsedOutput = {
835
+ ...output,
836
+ body: await parseErrorBody(output.body, context)
837
+ };
838
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
839
+ switch (errorCode) {
840
+ case "InternalFailureException":
841
+ case "com.amazonaws.iotevents#InternalFailureException":
842
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
843
+ case "InvalidRequestException":
844
+ case "com.amazonaws.iotevents#InvalidRequestException":
845
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
846
+ case "LimitExceededException":
847
+ case "com.amazonaws.iotevents#LimitExceededException":
848
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
849
+ case "ResourceAlreadyExistsException":
850
+ case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
851
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
852
+ case "ResourceInUseException":
853
+ case "com.amazonaws.iotevents#ResourceInUseException":
854
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
855
+ case "ServiceUnavailableException":
856
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
857
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
858
+ case "ThrottlingException":
859
+ case "com.amazonaws.iotevents#ThrottlingException":
860
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
861
+ default:
862
+ const parsedBody = parsedOutput.body;
863
+ return throwDefaultError({
864
+ output,
865
+ parsedBody,
866
+ errorCode
867
+ });
868
+ }
869
+ }, "de_CreateDetectorModelCommandError");
870
+ var de_CreateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
871
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
872
+ return de_CreateInputCommandError(output, context);
873
+ }
874
+ const contents = (0, import_smithy_client.map)({
875
+ $metadata: deserializeMetadata(output)
876
+ });
877
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
878
+ const doc = (0, import_smithy_client.take)(data, {
879
+ inputConfiguration: (_) => de_InputConfiguration(_, context)
880
+ });
881
+ Object.assign(contents, doc);
882
+ return contents;
883
+ }, "de_CreateInputCommand");
884
+ var de_CreateInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
885
+ const parsedOutput = {
886
+ ...output,
887
+ body: await parseErrorBody(output.body, context)
888
+ };
889
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
+ switch (errorCode) {
891
+ case "InternalFailureException":
892
+ case "com.amazonaws.iotevents#InternalFailureException":
893
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
894
+ case "InvalidRequestException":
895
+ case "com.amazonaws.iotevents#InvalidRequestException":
896
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
897
+ case "ResourceAlreadyExistsException":
898
+ case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
899
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
900
+ case "ServiceUnavailableException":
901
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
902
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
903
+ case "ThrottlingException":
904
+ case "com.amazonaws.iotevents#ThrottlingException":
905
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
906
+ default:
907
+ const parsedBody = parsedOutput.body;
908
+ return throwDefaultError({
909
+ output,
910
+ parsedBody,
911
+ errorCode
912
+ });
913
+ }
914
+ }, "de_CreateInputCommandError");
915
+ var de_DeleteAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
916
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
917
+ return de_DeleteAlarmModelCommandError(output, context);
918
+ }
919
+ const contents = (0, import_smithy_client.map)({
920
+ $metadata: deserializeMetadata(output)
921
+ });
922
+ await (0, import_smithy_client.collectBody)(output.body, context);
923
+ return contents;
924
+ }, "de_DeleteAlarmModelCommand");
925
+ var de_DeleteAlarmModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
926
+ const parsedOutput = {
927
+ ...output,
928
+ body: await parseErrorBody(output.body, context)
929
+ };
930
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
931
+ switch (errorCode) {
932
+ case "InternalFailureException":
933
+ case "com.amazonaws.iotevents#InternalFailureException":
934
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
935
+ case "InvalidRequestException":
936
+ case "com.amazonaws.iotevents#InvalidRequestException":
937
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
938
+ case "ResourceInUseException":
939
+ case "com.amazonaws.iotevents#ResourceInUseException":
940
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
941
+ case "ResourceNotFoundException":
942
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
943
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
944
+ case "ServiceUnavailableException":
945
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
946
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
947
+ case "ThrottlingException":
948
+ case "com.amazonaws.iotevents#ThrottlingException":
949
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
950
+ default:
951
+ const parsedBody = parsedOutput.body;
952
+ return throwDefaultError({
953
+ output,
954
+ parsedBody,
955
+ errorCode
956
+ });
957
+ }
958
+ }, "de_DeleteAlarmModelCommandError");
959
+ var de_DeleteDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
960
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
961
+ return de_DeleteDetectorModelCommandError(output, context);
962
+ }
963
+ const contents = (0, import_smithy_client.map)({
964
+ $metadata: deserializeMetadata(output)
965
+ });
966
+ await (0, import_smithy_client.collectBody)(output.body, context);
967
+ return contents;
968
+ }, "de_DeleteDetectorModelCommand");
969
+ var de_DeleteDetectorModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
970
+ const parsedOutput = {
971
+ ...output,
972
+ body: await parseErrorBody(output.body, context)
973
+ };
974
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
975
+ switch (errorCode) {
976
+ case "InternalFailureException":
977
+ case "com.amazonaws.iotevents#InternalFailureException":
978
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
979
+ case "InvalidRequestException":
980
+ case "com.amazonaws.iotevents#InvalidRequestException":
981
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
982
+ case "ResourceInUseException":
983
+ case "com.amazonaws.iotevents#ResourceInUseException":
984
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
985
+ case "ResourceNotFoundException":
986
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
987
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
988
+ case "ServiceUnavailableException":
989
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
990
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
991
+ case "ThrottlingException":
992
+ case "com.amazonaws.iotevents#ThrottlingException":
993
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
994
+ default:
995
+ const parsedBody = parsedOutput.body;
996
+ return throwDefaultError({
997
+ output,
998
+ parsedBody,
999
+ errorCode
1000
+ });
1001
+ }
1002
+ }, "de_DeleteDetectorModelCommandError");
1003
+ var de_DeleteInputCommand = /* @__PURE__ */ __name(async (output, context) => {
1004
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1005
+ return de_DeleteInputCommandError(output, context);
1006
+ }
1007
+ const contents = (0, import_smithy_client.map)({
1008
+ $metadata: deserializeMetadata(output)
1009
+ });
1010
+ await (0, import_smithy_client.collectBody)(output.body, context);
1011
+ return contents;
1012
+ }, "de_DeleteInputCommand");
1013
+ var de_DeleteInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
1014
+ const parsedOutput = {
1015
+ ...output,
1016
+ body: await parseErrorBody(output.body, context)
1017
+ };
1018
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1019
+ switch (errorCode) {
1020
+ case "InternalFailureException":
1021
+ case "com.amazonaws.iotevents#InternalFailureException":
1022
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1023
+ case "InvalidRequestException":
1024
+ case "com.amazonaws.iotevents#InvalidRequestException":
1025
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1026
+ case "ResourceInUseException":
1027
+ case "com.amazonaws.iotevents#ResourceInUseException":
1028
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1029
+ case "ResourceNotFoundException":
1030
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1031
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1032
+ case "ServiceUnavailableException":
1033
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1034
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1035
+ case "ThrottlingException":
1036
+ case "com.amazonaws.iotevents#ThrottlingException":
1037
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1038
+ default:
1039
+ const parsedBody = parsedOutput.body;
1040
+ return throwDefaultError({
1041
+ output,
1042
+ parsedBody,
1043
+ errorCode
1044
+ });
1045
+ }
1046
+ }, "de_DeleteInputCommandError");
1047
+ var de_DescribeAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
1048
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1049
+ return de_DescribeAlarmModelCommandError(output, context);
1050
+ }
1051
+ const contents = (0, import_smithy_client.map)({
1052
+ $metadata: deserializeMetadata(output)
1053
+ });
1054
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1055
+ const doc = (0, import_smithy_client.take)(data, {
1056
+ alarmCapabilities: import_smithy_client._json,
1057
+ alarmEventActions: import_smithy_client._json,
1058
+ alarmModelArn: import_smithy_client.expectString,
1059
+ alarmModelDescription: import_smithy_client.expectString,
1060
+ alarmModelName: import_smithy_client.expectString,
1061
+ alarmModelVersion: import_smithy_client.expectString,
1062
+ alarmNotification: import_smithy_client._json,
1063
+ alarmRule: import_smithy_client._json,
1064
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1065
+ key: import_smithy_client.expectString,
1066
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1067
+ roleArn: import_smithy_client.expectString,
1068
+ severity: import_smithy_client.expectInt32,
1069
+ status: import_smithy_client.expectString,
1070
+ statusMessage: import_smithy_client.expectString
1071
+ });
1072
+ Object.assign(contents, doc);
1073
+ return contents;
1074
+ }, "de_DescribeAlarmModelCommand");
1075
+ var de_DescribeAlarmModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
1076
+ const parsedOutput = {
1077
+ ...output,
1078
+ body: await parseErrorBody(output.body, context)
1079
+ };
1080
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1081
+ switch (errorCode) {
1082
+ case "InternalFailureException":
1083
+ case "com.amazonaws.iotevents#InternalFailureException":
1084
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1085
+ case "InvalidRequestException":
1086
+ case "com.amazonaws.iotevents#InvalidRequestException":
1087
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1088
+ case "ResourceNotFoundException":
1089
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1090
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1091
+ case "ServiceUnavailableException":
1092
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1093
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1094
+ case "ThrottlingException":
1095
+ case "com.amazonaws.iotevents#ThrottlingException":
1096
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1097
+ default:
1098
+ const parsedBody = parsedOutput.body;
1099
+ return throwDefaultError({
1100
+ output,
1101
+ parsedBody,
1102
+ errorCode
1103
+ });
1104
+ }
1105
+ }, "de_DescribeAlarmModelCommandError");
1106
+ var de_DescribeDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
1107
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1108
+ return de_DescribeDetectorModelCommandError(output, context);
1109
+ }
1110
+ const contents = (0, import_smithy_client.map)({
1111
+ $metadata: deserializeMetadata(output)
1112
+ });
1113
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1114
+ const doc = (0, import_smithy_client.take)(data, {
1115
+ detectorModel: (_) => de_DetectorModel(_, context)
1116
+ });
1117
+ Object.assign(contents, doc);
1118
+ return contents;
1119
+ }, "de_DescribeDetectorModelCommand");
1120
+ var de_DescribeDetectorModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
1121
+ const parsedOutput = {
1122
+ ...output,
1123
+ body: await parseErrorBody(output.body, context)
1124
+ };
1125
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1126
+ switch (errorCode) {
1127
+ case "InternalFailureException":
1128
+ case "com.amazonaws.iotevents#InternalFailureException":
1129
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1130
+ case "InvalidRequestException":
1131
+ case "com.amazonaws.iotevents#InvalidRequestException":
1132
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1133
+ case "ResourceNotFoundException":
1134
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1135
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1136
+ case "ServiceUnavailableException":
1137
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1138
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1139
+ case "ThrottlingException":
1140
+ case "com.amazonaws.iotevents#ThrottlingException":
1141
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1142
+ default:
1143
+ const parsedBody = parsedOutput.body;
1144
+ return throwDefaultError({
1145
+ output,
1146
+ parsedBody,
1147
+ errorCode
1148
+ });
1149
+ }
1150
+ }, "de_DescribeDetectorModelCommandError");
1151
+ var de_DescribeDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
1152
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1153
+ return de_DescribeDetectorModelAnalysisCommandError(output, context);
1154
+ }
1155
+ const contents = (0, import_smithy_client.map)({
1156
+ $metadata: deserializeMetadata(output)
1157
+ });
1158
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1159
+ const doc = (0, import_smithy_client.take)(data, {
1160
+ status: import_smithy_client.expectString
1161
+ });
1162
+ Object.assign(contents, doc);
1163
+ return contents;
1164
+ }, "de_DescribeDetectorModelAnalysisCommand");
1165
+ var de_DescribeDetectorModelAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
1166
+ const parsedOutput = {
1167
+ ...output,
1168
+ body: await parseErrorBody(output.body, context)
1169
+ };
1170
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1171
+ switch (errorCode) {
1172
+ case "InternalFailureException":
1173
+ case "com.amazonaws.iotevents#InternalFailureException":
1174
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1175
+ case "InvalidRequestException":
1176
+ case "com.amazonaws.iotevents#InvalidRequestException":
1177
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1178
+ case "ResourceNotFoundException":
1179
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1180
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1181
+ case "ServiceUnavailableException":
1182
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1183
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1184
+ case "ThrottlingException":
1185
+ case "com.amazonaws.iotevents#ThrottlingException":
1186
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1187
+ default:
1188
+ const parsedBody = parsedOutput.body;
1189
+ return throwDefaultError({
1190
+ output,
1191
+ parsedBody,
1192
+ errorCode
1193
+ });
1194
+ }
1195
+ }, "de_DescribeDetectorModelAnalysisCommandError");
1196
+ var de_DescribeInputCommand = /* @__PURE__ */ __name(async (output, context) => {
1197
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1198
+ return de_DescribeInputCommandError(output, context);
1199
+ }
1200
+ const contents = (0, import_smithy_client.map)({
1201
+ $metadata: deserializeMetadata(output)
1202
+ });
1203
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1204
+ const doc = (0, import_smithy_client.take)(data, {
1205
+ input: (_) => de_Input(_, context)
1206
+ });
1207
+ Object.assign(contents, doc);
1208
+ return contents;
1209
+ }, "de_DescribeInputCommand");
1210
+ var de_DescribeInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
1211
+ const parsedOutput = {
1212
+ ...output,
1213
+ body: await parseErrorBody(output.body, context)
1214
+ };
1215
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1216
+ switch (errorCode) {
1217
+ case "InternalFailureException":
1218
+ case "com.amazonaws.iotevents#InternalFailureException":
1219
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1220
+ case "InvalidRequestException":
1221
+ case "com.amazonaws.iotevents#InvalidRequestException":
1222
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1223
+ case "ResourceNotFoundException":
1224
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1225
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1226
+ case "ServiceUnavailableException":
1227
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1228
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1229
+ case "ThrottlingException":
1230
+ case "com.amazonaws.iotevents#ThrottlingException":
1231
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1232
+ default:
1233
+ const parsedBody = parsedOutput.body;
1234
+ return throwDefaultError({
1235
+ output,
1236
+ parsedBody,
1237
+ errorCode
1238
+ });
1239
+ }
1240
+ }, "de_DescribeInputCommandError");
1241
+ var de_DescribeLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1242
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1243
+ return de_DescribeLoggingOptionsCommandError(output, context);
1244
+ }
1245
+ const contents = (0, import_smithy_client.map)({
1246
+ $metadata: deserializeMetadata(output)
1247
+ });
1248
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1249
+ const doc = (0, import_smithy_client.take)(data, {
1250
+ loggingOptions: import_smithy_client._json
1251
+ });
1252
+ Object.assign(contents, doc);
1253
+ return contents;
1254
+ }, "de_DescribeLoggingOptionsCommand");
1255
+ var de_DescribeLoggingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1256
+ const parsedOutput = {
1257
+ ...output,
1258
+ body: await parseErrorBody(output.body, context)
1259
+ };
1260
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1261
+ switch (errorCode) {
1262
+ case "InternalFailureException":
1263
+ case "com.amazonaws.iotevents#InternalFailureException":
1264
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1265
+ case "InvalidRequestException":
1266
+ case "com.amazonaws.iotevents#InvalidRequestException":
1267
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1268
+ case "ResourceNotFoundException":
1269
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1270
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1271
+ case "ServiceUnavailableException":
1272
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1273
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1274
+ case "ThrottlingException":
1275
+ case "com.amazonaws.iotevents#ThrottlingException":
1276
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1277
+ case "UnsupportedOperationException":
1278
+ case "com.amazonaws.iotevents#UnsupportedOperationException":
1279
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1280
+ default:
1281
+ const parsedBody = parsedOutput.body;
1282
+ return throwDefaultError({
1283
+ output,
1284
+ parsedBody,
1285
+ errorCode
1286
+ });
1287
+ }
1288
+ }, "de_DescribeLoggingOptionsCommandError");
1289
+ var de_GetDetectorModelAnalysisResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
1290
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1291
+ return de_GetDetectorModelAnalysisResultsCommandError(output, context);
1292
+ }
1293
+ const contents = (0, import_smithy_client.map)({
1294
+ $metadata: deserializeMetadata(output)
1295
+ });
1296
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1297
+ const doc = (0, import_smithy_client.take)(data, {
1298
+ analysisResults: import_smithy_client._json,
1299
+ nextToken: import_smithy_client.expectString
1300
+ });
1301
+ Object.assign(contents, doc);
1302
+ return contents;
1303
+ }, "de_GetDetectorModelAnalysisResultsCommand");
1304
+ var de_GetDetectorModelAnalysisResultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1305
+ const parsedOutput = {
1306
+ ...output,
1307
+ body: await parseErrorBody(output.body, context)
1308
+ };
1309
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1310
+ switch (errorCode) {
1311
+ case "InternalFailureException":
1312
+ case "com.amazonaws.iotevents#InternalFailureException":
1313
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1314
+ case "InvalidRequestException":
1315
+ case "com.amazonaws.iotevents#InvalidRequestException":
1316
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1317
+ case "ResourceNotFoundException":
1318
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1319
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1320
+ case "ServiceUnavailableException":
1321
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1322
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1323
+ case "ThrottlingException":
1324
+ case "com.amazonaws.iotevents#ThrottlingException":
1325
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1326
+ default:
1327
+ const parsedBody = parsedOutput.body;
1328
+ return throwDefaultError({
1329
+ output,
1330
+ parsedBody,
1331
+ errorCode
1332
+ });
1333
+ }
1334
+ }, "de_GetDetectorModelAnalysisResultsCommandError");
1335
+ var de_ListAlarmModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
1336
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1337
+ return de_ListAlarmModelsCommandError(output, context);
1338
+ }
1339
+ const contents = (0, import_smithy_client.map)({
1340
+ $metadata: deserializeMetadata(output)
1341
+ });
1342
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1343
+ const doc = (0, import_smithy_client.take)(data, {
1344
+ alarmModelSummaries: (_) => de_AlarmModelSummaries(_, context),
1345
+ nextToken: import_smithy_client.expectString
1346
+ });
1347
+ Object.assign(contents, doc);
1348
+ return contents;
1349
+ }, "de_ListAlarmModelsCommand");
1350
+ var de_ListAlarmModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1351
+ const parsedOutput = {
1352
+ ...output,
1353
+ body: await parseErrorBody(output.body, context)
1354
+ };
1355
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1356
+ switch (errorCode) {
1357
+ case "InternalFailureException":
1358
+ case "com.amazonaws.iotevents#InternalFailureException":
1359
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1360
+ case "InvalidRequestException":
1361
+ case "com.amazonaws.iotevents#InvalidRequestException":
1362
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1363
+ case "ServiceUnavailableException":
1364
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1365
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1366
+ case "ThrottlingException":
1367
+ case "com.amazonaws.iotevents#ThrottlingException":
1368
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1369
+ default:
1370
+ const parsedBody = parsedOutput.body;
1371
+ return throwDefaultError({
1372
+ output,
1373
+ parsedBody,
1374
+ errorCode
1375
+ });
1376
+ }
1377
+ }, "de_ListAlarmModelsCommandError");
1378
+ var de_ListAlarmModelVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1379
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1380
+ return de_ListAlarmModelVersionsCommandError(output, context);
1381
+ }
1382
+ const contents = (0, import_smithy_client.map)({
1383
+ $metadata: deserializeMetadata(output)
1384
+ });
1385
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1386
+ const doc = (0, import_smithy_client.take)(data, {
1387
+ alarmModelVersionSummaries: (_) => de_AlarmModelVersionSummaries(_, context),
1388
+ nextToken: import_smithy_client.expectString
1389
+ });
1390
+ Object.assign(contents, doc);
1391
+ return contents;
1392
+ }, "de_ListAlarmModelVersionsCommand");
1393
+ var de_ListAlarmModelVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1394
+ const parsedOutput = {
1395
+ ...output,
1396
+ body: await parseErrorBody(output.body, context)
1397
+ };
1398
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1399
+ switch (errorCode) {
1400
+ case "InternalFailureException":
1401
+ case "com.amazonaws.iotevents#InternalFailureException":
1402
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1403
+ case "InvalidRequestException":
1404
+ case "com.amazonaws.iotevents#InvalidRequestException":
1405
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1406
+ case "ResourceNotFoundException":
1407
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1408
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1409
+ case "ServiceUnavailableException":
1410
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1411
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1412
+ case "ThrottlingException":
1413
+ case "com.amazonaws.iotevents#ThrottlingException":
1414
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1415
+ default:
1416
+ const parsedBody = parsedOutput.body;
1417
+ return throwDefaultError({
1418
+ output,
1419
+ parsedBody,
1420
+ errorCode
1421
+ });
1422
+ }
1423
+ }, "de_ListAlarmModelVersionsCommandError");
1424
+ var de_ListDetectorModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
1425
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1426
+ return de_ListDetectorModelsCommandError(output, context);
1427
+ }
1428
+ const contents = (0, import_smithy_client.map)({
1429
+ $metadata: deserializeMetadata(output)
1430
+ });
1431
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1432
+ const doc = (0, import_smithy_client.take)(data, {
1433
+ detectorModelSummaries: (_) => de_DetectorModelSummaries(_, context),
1434
+ nextToken: import_smithy_client.expectString
1435
+ });
1436
+ Object.assign(contents, doc);
1437
+ return contents;
1438
+ }, "de_ListDetectorModelsCommand");
1439
+ var de_ListDetectorModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1440
+ const parsedOutput = {
1441
+ ...output,
1442
+ body: await parseErrorBody(output.body, context)
1443
+ };
1444
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1445
+ switch (errorCode) {
1446
+ case "InternalFailureException":
1447
+ case "com.amazonaws.iotevents#InternalFailureException":
1448
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1449
+ case "InvalidRequestException":
1450
+ case "com.amazonaws.iotevents#InvalidRequestException":
1451
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1452
+ case "ServiceUnavailableException":
1453
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1454
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1455
+ case "ThrottlingException":
1456
+ case "com.amazonaws.iotevents#ThrottlingException":
1457
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1458
+ default:
1459
+ const parsedBody = parsedOutput.body;
1460
+ return throwDefaultError({
1461
+ output,
1462
+ parsedBody,
1463
+ errorCode
1464
+ });
1465
+ }
1466
+ }, "de_ListDetectorModelsCommandError");
1467
+ var de_ListDetectorModelVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1468
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1469
+ return de_ListDetectorModelVersionsCommandError(output, context);
1470
+ }
1471
+ const contents = (0, import_smithy_client.map)({
1472
+ $metadata: deserializeMetadata(output)
1473
+ });
1474
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1475
+ const doc = (0, import_smithy_client.take)(data, {
1476
+ detectorModelVersionSummaries: (_) => de_DetectorModelVersionSummaries(_, context),
1477
+ nextToken: import_smithy_client.expectString
1478
+ });
1479
+ Object.assign(contents, doc);
1480
+ return contents;
1481
+ }, "de_ListDetectorModelVersionsCommand");
1482
+ var de_ListDetectorModelVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1483
+ const parsedOutput = {
1484
+ ...output,
1485
+ body: await parseErrorBody(output.body, context)
1486
+ };
1487
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1488
+ switch (errorCode) {
1489
+ case "InternalFailureException":
1490
+ case "com.amazonaws.iotevents#InternalFailureException":
1491
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1492
+ case "InvalidRequestException":
1493
+ case "com.amazonaws.iotevents#InvalidRequestException":
1494
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1495
+ case "ResourceNotFoundException":
1496
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1497
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1498
+ case "ServiceUnavailableException":
1499
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1500
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1501
+ case "ThrottlingException":
1502
+ case "com.amazonaws.iotevents#ThrottlingException":
1503
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1504
+ default:
1505
+ const parsedBody = parsedOutput.body;
1506
+ return throwDefaultError({
1507
+ output,
1508
+ parsedBody,
1509
+ errorCode
1510
+ });
1511
+ }
1512
+ }, "de_ListDetectorModelVersionsCommandError");
1513
+ var de_ListInputRoutingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1514
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1515
+ return de_ListInputRoutingsCommandError(output, context);
1516
+ }
1517
+ const contents = (0, import_smithy_client.map)({
1518
+ $metadata: deserializeMetadata(output)
1519
+ });
1520
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1521
+ const doc = (0, import_smithy_client.take)(data, {
1522
+ nextToken: import_smithy_client.expectString,
1523
+ routedResources: import_smithy_client._json
1524
+ });
1525
+ Object.assign(contents, doc);
1526
+ return contents;
1527
+ }, "de_ListInputRoutingsCommand");
1528
+ var de_ListInputRoutingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1529
+ const parsedOutput = {
1530
+ ...output,
1531
+ body: await parseErrorBody(output.body, context)
1532
+ };
1533
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1534
+ switch (errorCode) {
1535
+ case "InternalFailureException":
1536
+ case "com.amazonaws.iotevents#InternalFailureException":
1537
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1538
+ case "InvalidRequestException":
1539
+ case "com.amazonaws.iotevents#InvalidRequestException":
1540
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1541
+ case "ResourceNotFoundException":
1542
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1543
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1544
+ case "ServiceUnavailableException":
1545
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1546
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1547
+ case "ThrottlingException":
1548
+ case "com.amazonaws.iotevents#ThrottlingException":
1549
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1550
+ default:
1551
+ const parsedBody = parsedOutput.body;
1552
+ return throwDefaultError({
1553
+ output,
1554
+ parsedBody,
1555
+ errorCode
1556
+ });
1557
+ }
1558
+ }, "de_ListInputRoutingsCommandError");
1559
+ var de_ListInputsCommand = /* @__PURE__ */ __name(async (output, context) => {
1560
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1561
+ return de_ListInputsCommandError(output, context);
1562
+ }
1563
+ const contents = (0, import_smithy_client.map)({
1564
+ $metadata: deserializeMetadata(output)
1565
+ });
1566
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1567
+ const doc = (0, import_smithy_client.take)(data, {
1568
+ inputSummaries: (_) => de_InputSummaries(_, context),
1569
+ nextToken: import_smithy_client.expectString
1570
+ });
1571
+ Object.assign(contents, doc);
1572
+ return contents;
1573
+ }, "de_ListInputsCommand");
1574
+ var de_ListInputsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1575
+ const parsedOutput = {
1576
+ ...output,
1577
+ body: await parseErrorBody(output.body, context)
1578
+ };
1579
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1580
+ switch (errorCode) {
1581
+ case "InternalFailureException":
1582
+ case "com.amazonaws.iotevents#InternalFailureException":
1583
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1584
+ case "InvalidRequestException":
1585
+ case "com.amazonaws.iotevents#InvalidRequestException":
1586
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1587
+ case "ServiceUnavailableException":
1588
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1589
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1590
+ case "ThrottlingException":
1591
+ case "com.amazonaws.iotevents#ThrottlingException":
1592
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1593
+ default:
1594
+ const parsedBody = parsedOutput.body;
1595
+ return throwDefaultError({
1596
+ output,
1597
+ parsedBody,
1598
+ errorCode
1599
+ });
1600
+ }
1601
+ }, "de_ListInputsCommandError");
1602
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1603
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1604
+ return de_ListTagsForResourceCommandError(output, context);
1605
+ }
1606
+ const contents = (0, import_smithy_client.map)({
1607
+ $metadata: deserializeMetadata(output)
1608
+ });
1609
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1610
+ const doc = (0, import_smithy_client.take)(data, {
1611
+ tags: import_smithy_client._json
1612
+ });
1613
+ Object.assign(contents, doc);
1614
+ return contents;
1615
+ }, "de_ListTagsForResourceCommand");
1616
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1617
+ const parsedOutput = {
1618
+ ...output,
1619
+ body: await parseErrorBody(output.body, context)
1620
+ };
1621
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1622
+ switch (errorCode) {
1623
+ case "InternalFailureException":
1624
+ case "com.amazonaws.iotevents#InternalFailureException":
1625
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1626
+ case "InvalidRequestException":
1627
+ case "com.amazonaws.iotevents#InvalidRequestException":
1628
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1629
+ case "ResourceInUseException":
1630
+ case "com.amazonaws.iotevents#ResourceInUseException":
1631
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1632
+ case "ResourceNotFoundException":
1633
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1634
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1635
+ case "ThrottlingException":
1636
+ case "com.amazonaws.iotevents#ThrottlingException":
1637
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1638
+ default:
1639
+ const parsedBody = parsedOutput.body;
1640
+ return throwDefaultError({
1641
+ output,
1642
+ parsedBody,
1643
+ errorCode
1644
+ });
1645
+ }
1646
+ }, "de_ListTagsForResourceCommandError");
1647
+ var de_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1648
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1649
+ return de_PutLoggingOptionsCommandError(output, context);
1650
+ }
1651
+ const contents = (0, import_smithy_client.map)({
1652
+ $metadata: deserializeMetadata(output)
1653
+ });
1654
+ await (0, import_smithy_client.collectBody)(output.body, context);
1655
+ return contents;
1656
+ }, "de_PutLoggingOptionsCommand");
1657
+ var de_PutLoggingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1658
+ const parsedOutput = {
1659
+ ...output,
1660
+ body: await parseErrorBody(output.body, context)
1661
+ };
1662
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1663
+ switch (errorCode) {
1664
+ case "InternalFailureException":
1665
+ case "com.amazonaws.iotevents#InternalFailureException":
1666
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1667
+ case "InvalidRequestException":
1668
+ case "com.amazonaws.iotevents#InvalidRequestException":
1669
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1670
+ case "ResourceInUseException":
1671
+ case "com.amazonaws.iotevents#ResourceInUseException":
1672
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1673
+ case "ServiceUnavailableException":
1674
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1675
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1676
+ case "ThrottlingException":
1677
+ case "com.amazonaws.iotevents#ThrottlingException":
1678
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1679
+ case "UnsupportedOperationException":
1680
+ case "com.amazonaws.iotevents#UnsupportedOperationException":
1681
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1682
+ default:
1683
+ const parsedBody = parsedOutput.body;
1684
+ return throwDefaultError({
1685
+ output,
1686
+ parsedBody,
1687
+ errorCode
1688
+ });
1689
+ }
1690
+ }, "de_PutLoggingOptionsCommandError");
1691
+ var de_StartDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
1692
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1693
+ return de_StartDetectorModelAnalysisCommandError(output, context);
1694
+ }
1695
+ const contents = (0, import_smithy_client.map)({
1696
+ $metadata: deserializeMetadata(output)
1697
+ });
1698
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1699
+ const doc = (0, import_smithy_client.take)(data, {
1700
+ analysisId: import_smithy_client.expectString
1701
+ });
1702
+ Object.assign(contents, doc);
1703
+ return contents;
1704
+ }, "de_StartDetectorModelAnalysisCommand");
1705
+ var de_StartDetectorModelAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
1706
+ const parsedOutput = {
1707
+ ...output,
1708
+ body: await parseErrorBody(output.body, context)
1709
+ };
1710
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1711
+ switch (errorCode) {
1712
+ case "InternalFailureException":
1713
+ case "com.amazonaws.iotevents#InternalFailureException":
1714
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1715
+ case "InvalidRequestException":
1716
+ case "com.amazonaws.iotevents#InvalidRequestException":
1717
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1718
+ case "LimitExceededException":
1719
+ case "com.amazonaws.iotevents#LimitExceededException":
1720
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1721
+ case "ServiceUnavailableException":
1722
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1723
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1724
+ case "ThrottlingException":
1725
+ case "com.amazonaws.iotevents#ThrottlingException":
1726
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1727
+ default:
1728
+ const parsedBody = parsedOutput.body;
1729
+ return throwDefaultError({
1730
+ output,
1731
+ parsedBody,
1732
+ errorCode
1733
+ });
1734
+ }
1735
+ }, "de_StartDetectorModelAnalysisCommandError");
1736
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1737
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1738
+ return de_TagResourceCommandError(output, context);
1739
+ }
1740
+ const contents = (0, import_smithy_client.map)({
1741
+ $metadata: deserializeMetadata(output)
1742
+ });
1743
+ await (0, import_smithy_client.collectBody)(output.body, context);
1744
+ return contents;
1745
+ }, "de_TagResourceCommand");
1746
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1747
+ const parsedOutput = {
1748
+ ...output,
1749
+ body: await parseErrorBody(output.body, context)
1750
+ };
1751
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1752
+ switch (errorCode) {
1753
+ case "InternalFailureException":
1754
+ case "com.amazonaws.iotevents#InternalFailureException":
1755
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1756
+ case "InvalidRequestException":
1757
+ case "com.amazonaws.iotevents#InvalidRequestException":
1758
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1759
+ case "LimitExceededException":
1760
+ case "com.amazonaws.iotevents#LimitExceededException":
1761
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1762
+ case "ResourceInUseException":
1763
+ case "com.amazonaws.iotevents#ResourceInUseException":
1764
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1765
+ case "ResourceNotFoundException":
1766
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1767
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1768
+ case "ThrottlingException":
1769
+ case "com.amazonaws.iotevents#ThrottlingException":
1770
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1771
+ default:
1772
+ const parsedBody = parsedOutput.body;
1773
+ return throwDefaultError({
1774
+ output,
1775
+ parsedBody,
1776
+ errorCode
1777
+ });
1778
+ }
1779
+ }, "de_TagResourceCommandError");
1780
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1781
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1782
+ return de_UntagResourceCommandError(output, context);
1783
+ }
1784
+ const contents = (0, import_smithy_client.map)({
1785
+ $metadata: deserializeMetadata(output)
1786
+ });
1787
+ await (0, import_smithy_client.collectBody)(output.body, context);
1788
+ return contents;
1789
+ }, "de_UntagResourceCommand");
1790
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1791
+ const parsedOutput = {
1792
+ ...output,
1793
+ body: await parseErrorBody(output.body, context)
1794
+ };
1795
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1796
+ switch (errorCode) {
1797
+ case "InternalFailureException":
1798
+ case "com.amazonaws.iotevents#InternalFailureException":
1799
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1800
+ case "InvalidRequestException":
1801
+ case "com.amazonaws.iotevents#InvalidRequestException":
1802
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1803
+ case "ResourceInUseException":
1804
+ case "com.amazonaws.iotevents#ResourceInUseException":
1805
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1806
+ case "ResourceNotFoundException":
1807
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1808
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1809
+ case "ThrottlingException":
1810
+ case "com.amazonaws.iotevents#ThrottlingException":
1811
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1812
+ default:
1813
+ const parsedBody = parsedOutput.body;
1814
+ return throwDefaultError({
1815
+ output,
1816
+ parsedBody,
1817
+ errorCode
1818
+ });
1819
+ }
1820
+ }, "de_UntagResourceCommandError");
1821
+ var de_UpdateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
1822
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1823
+ return de_UpdateAlarmModelCommandError(output, context);
1824
+ }
1825
+ const contents = (0, import_smithy_client.map)({
1826
+ $metadata: deserializeMetadata(output)
1827
+ });
1828
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1829
+ const doc = (0, import_smithy_client.take)(data, {
1830
+ alarmModelArn: import_smithy_client.expectString,
1831
+ alarmModelVersion: import_smithy_client.expectString,
1832
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1833
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1834
+ status: import_smithy_client.expectString
1835
+ });
1836
+ Object.assign(contents, doc);
1837
+ return contents;
1838
+ }, "de_UpdateAlarmModelCommand");
1839
+ var de_UpdateAlarmModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
1840
+ const parsedOutput = {
1841
+ ...output,
1842
+ body: await parseErrorBody(output.body, context)
1843
+ };
1844
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1845
+ switch (errorCode) {
1846
+ case "InternalFailureException":
1847
+ case "com.amazonaws.iotevents#InternalFailureException":
1848
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1849
+ case "InvalidRequestException":
1850
+ case "com.amazonaws.iotevents#InvalidRequestException":
1851
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1852
+ case "ResourceInUseException":
1853
+ case "com.amazonaws.iotevents#ResourceInUseException":
1854
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1855
+ case "ResourceNotFoundException":
1856
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1857
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1858
+ case "ServiceUnavailableException":
1859
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1860
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1861
+ case "ThrottlingException":
1862
+ case "com.amazonaws.iotevents#ThrottlingException":
1863
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1864
+ default:
1865
+ const parsedBody = parsedOutput.body;
1866
+ return throwDefaultError({
1867
+ output,
1868
+ parsedBody,
1869
+ errorCode
1870
+ });
1871
+ }
1872
+ }, "de_UpdateAlarmModelCommandError");
1873
+ var de_UpdateDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
1874
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1875
+ return de_UpdateDetectorModelCommandError(output, context);
1876
+ }
1877
+ const contents = (0, import_smithy_client.map)({
1878
+ $metadata: deserializeMetadata(output)
1879
+ });
1880
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1881
+ const doc = (0, import_smithy_client.take)(data, {
1882
+ detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_, context)
1883
+ });
1884
+ Object.assign(contents, doc);
1885
+ return contents;
1886
+ }, "de_UpdateDetectorModelCommand");
1887
+ var de_UpdateDetectorModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
1888
+ const parsedOutput = {
1889
+ ...output,
1890
+ body: await parseErrorBody(output.body, context)
1891
+ };
1892
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1893
+ switch (errorCode) {
1894
+ case "InternalFailureException":
1895
+ case "com.amazonaws.iotevents#InternalFailureException":
1896
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1897
+ case "InvalidRequestException":
1898
+ case "com.amazonaws.iotevents#InvalidRequestException":
1899
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1900
+ case "ResourceInUseException":
1901
+ case "com.amazonaws.iotevents#ResourceInUseException":
1902
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1903
+ case "ResourceNotFoundException":
1904
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1905
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1906
+ case "ServiceUnavailableException":
1907
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1908
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1909
+ case "ThrottlingException":
1910
+ case "com.amazonaws.iotevents#ThrottlingException":
1911
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1912
+ default:
1913
+ const parsedBody = parsedOutput.body;
1914
+ return throwDefaultError({
1915
+ output,
1916
+ parsedBody,
1917
+ errorCode
1918
+ });
1919
+ }
1920
+ }, "de_UpdateDetectorModelCommandError");
1921
+ var de_UpdateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
1922
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1923
+ return de_UpdateInputCommandError(output, context);
1924
+ }
1925
+ const contents = (0, import_smithy_client.map)({
1926
+ $metadata: deserializeMetadata(output)
1927
+ });
1928
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1929
+ const doc = (0, import_smithy_client.take)(data, {
1930
+ inputConfiguration: (_) => de_InputConfiguration(_, context)
1931
+ });
1932
+ Object.assign(contents, doc);
1933
+ return contents;
1934
+ }, "de_UpdateInputCommand");
1935
+ var de_UpdateInputCommandError = /* @__PURE__ */ __name(async (output, context) => {
1936
+ const parsedOutput = {
1937
+ ...output,
1938
+ body: await parseErrorBody(output.body, context)
1939
+ };
1940
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1941
+ switch (errorCode) {
1942
+ case "InternalFailureException":
1943
+ case "com.amazonaws.iotevents#InternalFailureException":
1944
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1945
+ case "InvalidRequestException":
1946
+ case "com.amazonaws.iotevents#InvalidRequestException":
1947
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1948
+ case "ResourceInUseException":
1949
+ case "com.amazonaws.iotevents#ResourceInUseException":
1950
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1951
+ case "ResourceNotFoundException":
1952
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1953
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1954
+ case "ServiceUnavailableException":
1955
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1956
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1957
+ case "ThrottlingException":
1958
+ case "com.amazonaws.iotevents#ThrottlingException":
1959
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1960
+ default:
1961
+ const parsedBody = parsedOutput.body;
1962
+ return throwDefaultError({
1963
+ output,
1964
+ parsedBody,
1965
+ errorCode
1966
+ });
1967
+ }
1968
+ }, "de_UpdateInputCommandError");
1969
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTEventsServiceException);
1970
+ var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1971
+ const contents = (0, import_smithy_client.map)({});
1972
+ const data = parsedOutput.body;
1973
+ const doc = (0, import_smithy_client.take)(data, {
1974
+ message: import_smithy_client.expectString
1975
+ });
1976
+ Object.assign(contents, doc);
1977
+ const exception = new InternalFailureException({
1978
+ $metadata: deserializeMetadata(parsedOutput),
1979
+ ...contents
1980
+ });
1981
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1982
+ }, "de_InternalFailureExceptionRes");
1983
+ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1984
+ const contents = (0, import_smithy_client.map)({});
1985
+ const data = parsedOutput.body;
1986
+ const doc = (0, import_smithy_client.take)(data, {
1987
+ message: import_smithy_client.expectString
1988
+ });
1989
+ Object.assign(contents, doc);
1990
+ const exception = new InvalidRequestException({
1991
+ $metadata: deserializeMetadata(parsedOutput),
1992
+ ...contents
1993
+ });
1994
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1995
+ }, "de_InvalidRequestExceptionRes");
1996
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1997
+ const contents = (0, import_smithy_client.map)({});
1998
+ const data = parsedOutput.body;
1999
+ const doc = (0, import_smithy_client.take)(data, {
2000
+ message: import_smithy_client.expectString
2001
+ });
2002
+ Object.assign(contents, doc);
2003
+ const exception = new LimitExceededException({
2004
+ $metadata: deserializeMetadata(parsedOutput),
2005
+ ...contents
2006
+ });
2007
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2008
+ }, "de_LimitExceededExceptionRes");
2009
+ var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2010
+ const contents = (0, import_smithy_client.map)({});
2011
+ const data = parsedOutput.body;
2012
+ const doc = (0, import_smithy_client.take)(data, {
2013
+ message: import_smithy_client.expectString,
2014
+ resourceArn: import_smithy_client.expectString,
2015
+ resourceId: import_smithy_client.expectString
2016
+ });
2017
+ Object.assign(contents, doc);
2018
+ const exception = new ResourceAlreadyExistsException({
2019
+ $metadata: deserializeMetadata(parsedOutput),
2020
+ ...contents
2021
+ });
2022
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2023
+ }, "de_ResourceAlreadyExistsExceptionRes");
2024
+ var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2025
+ const contents = (0, import_smithy_client.map)({});
2026
+ const data = parsedOutput.body;
2027
+ const doc = (0, import_smithy_client.take)(data, {
2028
+ message: import_smithy_client.expectString
2029
+ });
2030
+ Object.assign(contents, doc);
2031
+ const exception = new ResourceInUseException({
2032
+ $metadata: deserializeMetadata(parsedOutput),
2033
+ ...contents
2034
+ });
2035
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2036
+ }, "de_ResourceInUseExceptionRes");
2037
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2038
+ const contents = (0, import_smithy_client.map)({});
2039
+ const data = parsedOutput.body;
2040
+ const doc = (0, import_smithy_client.take)(data, {
2041
+ message: import_smithy_client.expectString
2042
+ });
2043
+ Object.assign(contents, doc);
2044
+ const exception = new ResourceNotFoundException({
2045
+ $metadata: deserializeMetadata(parsedOutput),
2046
+ ...contents
2047
+ });
2048
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2049
+ }, "de_ResourceNotFoundExceptionRes");
2050
+ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2051
+ const contents = (0, import_smithy_client.map)({});
2052
+ const data = parsedOutput.body;
2053
+ const doc = (0, import_smithy_client.take)(data, {
2054
+ message: import_smithy_client.expectString
2055
+ });
2056
+ Object.assign(contents, doc);
2057
+ const exception = new ServiceUnavailableException({
2058
+ $metadata: deserializeMetadata(parsedOutput),
2059
+ ...contents
2060
+ });
2061
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2062
+ }, "de_ServiceUnavailableExceptionRes");
2063
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2064
+ const contents = (0, import_smithy_client.map)({});
2065
+ const data = parsedOutput.body;
2066
+ const doc = (0, import_smithy_client.take)(data, {
2067
+ message: import_smithy_client.expectString
2068
+ });
2069
+ Object.assign(contents, doc);
2070
+ const exception = new ThrottlingException({
2071
+ $metadata: deserializeMetadata(parsedOutput),
2072
+ ...contents
2073
+ });
2074
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2075
+ }, "de_ThrottlingExceptionRes");
2076
+ var de_UnsupportedOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2077
+ const contents = (0, import_smithy_client.map)({});
2078
+ const data = parsedOutput.body;
2079
+ const doc = (0, import_smithy_client.take)(data, {
2080
+ message: import_smithy_client.expectString
2081
+ });
2082
+ Object.assign(contents, doc);
2083
+ const exception = new UnsupportedOperationException({
2084
+ $metadata: deserializeMetadata(parsedOutput),
2085
+ ...contents
2086
+ });
2087
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2088
+ }, "de_UnsupportedOperationExceptionRes");
2089
+ var se_DetectorModelDefinition = /* @__PURE__ */ __name((input, context) => {
2090
+ return (0, import_smithy_client.take)(input, {
2091
+ initialStateName: [],
2092
+ states: import_smithy_client._json
2093
+ });
2094
+ }, "se_DetectorModelDefinition");
2095
+ var de_AlarmModelSummaries = /* @__PURE__ */ __name((output, context) => {
2096
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2097
+ return de_AlarmModelSummary(entry, context);
2098
+ });
2099
+ return retVal;
2100
+ }, "de_AlarmModelSummaries");
2101
+ var de_AlarmModelSummary = /* @__PURE__ */ __name((output, context) => {
2102
+ return (0, import_smithy_client.take)(output, {
2103
+ alarmModelDescription: import_smithy_client.expectString,
2104
+ alarmModelName: import_smithy_client.expectString,
2105
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2106
+ });
2107
+ }, "de_AlarmModelSummary");
2108
+ var de_AlarmModelVersionSummaries = /* @__PURE__ */ __name((output, context) => {
2109
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2110
+ return de_AlarmModelVersionSummary(entry, context);
2111
+ });
2112
+ return retVal;
2113
+ }, "de_AlarmModelVersionSummaries");
2114
+ var de_AlarmModelVersionSummary = /* @__PURE__ */ __name((output, context) => {
2115
+ return (0, import_smithy_client.take)(output, {
2116
+ alarmModelArn: import_smithy_client.expectString,
2117
+ alarmModelName: import_smithy_client.expectString,
2118
+ alarmModelVersion: import_smithy_client.expectString,
2119
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2120
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2121
+ roleArn: import_smithy_client.expectString,
2122
+ status: import_smithy_client.expectString,
2123
+ statusMessage: import_smithy_client.expectString
2124
+ });
2125
+ }, "de_AlarmModelVersionSummary");
2126
+ var de_DetectorModel = /* @__PURE__ */ __name((output, context) => {
2127
+ return (0, import_smithy_client.take)(output, {
2128
+ detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_, context),
2129
+ detectorModelDefinition: (_) => de_DetectorModelDefinition(_, context)
2130
+ });
2131
+ }, "de_DetectorModel");
2132
+ var de_DetectorModelConfiguration = /* @__PURE__ */ __name((output, context) => {
2133
+ return (0, import_smithy_client.take)(output, {
2134
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2135
+ detectorModelArn: import_smithy_client.expectString,
2136
+ detectorModelDescription: import_smithy_client.expectString,
2137
+ detectorModelName: import_smithy_client.expectString,
2138
+ detectorModelVersion: import_smithy_client.expectString,
2139
+ evaluationMethod: import_smithy_client.expectString,
2140
+ key: import_smithy_client.expectString,
2141
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2142
+ roleArn: import_smithy_client.expectString,
2143
+ status: import_smithy_client.expectString
2144
+ });
2145
+ }, "de_DetectorModelConfiguration");
2146
+ var de_DetectorModelDefinition = /* @__PURE__ */ __name((output, context) => {
2147
+ return (0, import_smithy_client.take)(output, {
2148
+ initialStateName: import_smithy_client.expectString,
2149
+ states: import_smithy_client._json
2150
+ });
2151
+ }, "de_DetectorModelDefinition");
2152
+ var de_DetectorModelSummaries = /* @__PURE__ */ __name((output, context) => {
2153
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2154
+ return de_DetectorModelSummary(entry, context);
2155
+ });
2156
+ return retVal;
2157
+ }, "de_DetectorModelSummaries");
2158
+ var de_DetectorModelSummary = /* @__PURE__ */ __name((output, context) => {
2159
+ return (0, import_smithy_client.take)(output, {
2160
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2161
+ detectorModelDescription: import_smithy_client.expectString,
2162
+ detectorModelName: import_smithy_client.expectString
2163
+ });
2164
+ }, "de_DetectorModelSummary");
2165
+ var de_DetectorModelVersionSummaries = /* @__PURE__ */ __name((output, context) => {
2166
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2167
+ return de_DetectorModelVersionSummary(entry, context);
2168
+ });
2169
+ return retVal;
2170
+ }, "de_DetectorModelVersionSummaries");
2171
+ var de_DetectorModelVersionSummary = /* @__PURE__ */ __name((output, context) => {
2172
+ return (0, import_smithy_client.take)(output, {
2173
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2174
+ detectorModelArn: import_smithy_client.expectString,
2175
+ detectorModelName: import_smithy_client.expectString,
2176
+ detectorModelVersion: import_smithy_client.expectString,
2177
+ evaluationMethod: import_smithy_client.expectString,
2178
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2179
+ roleArn: import_smithy_client.expectString,
2180
+ status: import_smithy_client.expectString
2181
+ });
2182
+ }, "de_DetectorModelVersionSummary");
2183
+ var de_Input = /* @__PURE__ */ __name((output, context) => {
2184
+ return (0, import_smithy_client.take)(output, {
2185
+ inputConfiguration: (_) => de_InputConfiguration(_, context),
2186
+ inputDefinition: import_smithy_client._json
2187
+ });
2188
+ }, "de_Input");
2189
+ var de_InputConfiguration = /* @__PURE__ */ __name((output, context) => {
2190
+ return (0, import_smithy_client.take)(output, {
2191
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2192
+ inputArn: import_smithy_client.expectString,
2193
+ inputDescription: import_smithy_client.expectString,
2194
+ inputName: import_smithy_client.expectString,
2195
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2196
+ status: import_smithy_client.expectString
2197
+ });
2198
+ }, "de_InputConfiguration");
2199
+ var de_InputSummaries = /* @__PURE__ */ __name((output, context) => {
2200
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2201
+ return de_InputSummary(entry, context);
2202
+ });
2203
+ return retVal;
2204
+ }, "de_InputSummaries");
2205
+ var de_InputSummary = /* @__PURE__ */ __name((output, context) => {
2206
+ return (0, import_smithy_client.take)(output, {
2207
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2208
+ inputArn: import_smithy_client.expectString,
2209
+ inputDescription: import_smithy_client.expectString,
2210
+ inputName: import_smithy_client.expectString,
2211
+ lastUpdateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2212
+ status: import_smithy_client.expectString
2213
+ });
2214
+ }, "de_InputSummary");
2215
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2216
+ httpStatusCode: output.statusCode,
2217
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2218
+ extendedRequestId: output.headers["x-amz-id-2"],
2219
+ cfId: output.headers["x-amz-cf-id"]
2220
+ }), "deserializeMetadata");
2221
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2222
+ var _aMV = "alarmModelVersion";
2223
+ var _dMV = "detectorModelVersion";
2224
+ var _mR = "maxResults";
2225
+ var _nT = "nextToken";
2226
+ var _rA = "resourceArn";
2227
+ var _tK = "tagKeys";
2228
+ var _v = "version";
2229
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2230
+ if (encoded.length) {
2231
+ return JSON.parse(encoded);
2232
+ }
2233
+ return {};
2234
+ }), "parseBody");
2235
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2236
+ const value = await parseBody(errorBody, context);
2237
+ value.message = value.message ?? value.Message;
2238
+ return value;
2239
+ }, "parseErrorBody");
2240
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2241
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2242
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2243
+ let cleanValue = rawValue;
2244
+ if (typeof cleanValue === "number") {
2245
+ cleanValue = cleanValue.toString();
2246
+ }
2247
+ if (cleanValue.indexOf(",") >= 0) {
2248
+ cleanValue = cleanValue.split(",")[0];
2249
+ }
2250
+ if (cleanValue.indexOf(":") >= 0) {
2251
+ cleanValue = cleanValue.split(":")[0];
2252
+ }
2253
+ if (cleanValue.indexOf("#") >= 0) {
2254
+ cleanValue = cleanValue.split("#")[1];
2255
+ }
2256
+ return cleanValue;
2257
+ }, "sanitizeErrorCode");
2258
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2259
+ if (headerKey !== void 0) {
2260
+ return sanitizeErrorCode(output.headers[headerKey]);
2261
+ }
2262
+ if (data.code !== void 0) {
2263
+ return sanitizeErrorCode(data.code);
2264
+ }
2265
+ if (data["__type"] !== void 0) {
2266
+ return sanitizeErrorCode(data["__type"]);
2267
+ }
2268
+ }, "loadRestJsonErrorCode");
2269
+
2270
+ // src/commands/CreateAlarmModelCommand.ts
2271
+ var _CreateAlarmModelCommand = class _CreateAlarmModelCommand extends import_smithy_client.Command.classBuilder().ep({
2272
+ ...commonParams
2273
+ }).m(function(Command, cs, config, o) {
2274
+ return [
2275
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2276
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2277
+ ];
2278
+ }).s("IotColumboService", "CreateAlarmModel", {}).n("IoTEventsClient", "CreateAlarmModelCommand").f(void 0, void 0).ser(se_CreateAlarmModelCommand).de(de_CreateAlarmModelCommand).build() {
2279
+ };
2280
+ __name(_CreateAlarmModelCommand, "CreateAlarmModelCommand");
2281
+ var CreateAlarmModelCommand = _CreateAlarmModelCommand;
2282
+
2283
+ // src/commands/CreateDetectorModelCommand.ts
2284
+
2285
+
2286
+
2287
+
2288
+ var _CreateDetectorModelCommand = class _CreateDetectorModelCommand extends import_smithy_client.Command.classBuilder().ep({
2289
+ ...commonParams
2290
+ }).m(function(Command, cs, config, o) {
2291
+ return [
2292
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2293
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2294
+ ];
2295
+ }).s("IotColumboService", "CreateDetectorModel", {}).n("IoTEventsClient", "CreateDetectorModelCommand").f(void 0, void 0).ser(se_CreateDetectorModelCommand).de(de_CreateDetectorModelCommand).build() {
2296
+ };
2297
+ __name(_CreateDetectorModelCommand, "CreateDetectorModelCommand");
2298
+ var CreateDetectorModelCommand = _CreateDetectorModelCommand;
2299
+
2300
+ // src/commands/CreateInputCommand.ts
2301
+
2302
+
2303
+
2304
+
2305
+ var _CreateInputCommand = class _CreateInputCommand extends import_smithy_client.Command.classBuilder().ep({
2306
+ ...commonParams
2307
+ }).m(function(Command, cs, config, o) {
2308
+ return [
2309
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2310
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2311
+ ];
2312
+ }).s("IotColumboService", "CreateInput", {}).n("IoTEventsClient", "CreateInputCommand").f(void 0, void 0).ser(se_CreateInputCommand).de(de_CreateInputCommand).build() {
2313
+ };
2314
+ __name(_CreateInputCommand, "CreateInputCommand");
2315
+ var CreateInputCommand = _CreateInputCommand;
2316
+
2317
+ // src/commands/DeleteAlarmModelCommand.ts
2318
+
2319
+
2320
+
2321
+
2322
+ var _DeleteAlarmModelCommand = class _DeleteAlarmModelCommand extends import_smithy_client.Command.classBuilder().ep({
2323
+ ...commonParams
2324
+ }).m(function(Command, cs, config, o) {
2325
+ return [
2326
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2327
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2328
+ ];
2329
+ }).s("IotColumboService", "DeleteAlarmModel", {}).n("IoTEventsClient", "DeleteAlarmModelCommand").f(void 0, void 0).ser(se_DeleteAlarmModelCommand).de(de_DeleteAlarmModelCommand).build() {
2330
+ };
2331
+ __name(_DeleteAlarmModelCommand, "DeleteAlarmModelCommand");
2332
+ var DeleteAlarmModelCommand = _DeleteAlarmModelCommand;
2333
+
2334
+ // src/commands/DeleteDetectorModelCommand.ts
2335
+
2336
+
2337
+
2338
+
2339
+ var _DeleteDetectorModelCommand = class _DeleteDetectorModelCommand extends import_smithy_client.Command.classBuilder().ep({
2340
+ ...commonParams
2341
+ }).m(function(Command, cs, config, o) {
2342
+ return [
2343
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2344
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2345
+ ];
2346
+ }).s("IotColumboService", "DeleteDetectorModel", {}).n("IoTEventsClient", "DeleteDetectorModelCommand").f(void 0, void 0).ser(se_DeleteDetectorModelCommand).de(de_DeleteDetectorModelCommand).build() {
2347
+ };
2348
+ __name(_DeleteDetectorModelCommand, "DeleteDetectorModelCommand");
2349
+ var DeleteDetectorModelCommand = _DeleteDetectorModelCommand;
2350
+
2351
+ // src/commands/DeleteInputCommand.ts
2352
+
2353
+
2354
+
2355
+
2356
+ var _DeleteInputCommand = class _DeleteInputCommand extends import_smithy_client.Command.classBuilder().ep({
2357
+ ...commonParams
2358
+ }).m(function(Command, cs, config, o) {
2359
+ return [
2360
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2361
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2362
+ ];
2363
+ }).s("IotColumboService", "DeleteInput", {}).n("IoTEventsClient", "DeleteInputCommand").f(void 0, void 0).ser(se_DeleteInputCommand).de(de_DeleteInputCommand).build() {
2364
+ };
2365
+ __name(_DeleteInputCommand, "DeleteInputCommand");
2366
+ var DeleteInputCommand = _DeleteInputCommand;
2367
+
2368
+ // src/commands/DescribeAlarmModelCommand.ts
2369
+
2370
+
2371
+
2372
+
2373
+ var _DescribeAlarmModelCommand = class _DescribeAlarmModelCommand extends import_smithy_client.Command.classBuilder().ep({
2374
+ ...commonParams
2375
+ }).m(function(Command, cs, config, o) {
2376
+ return [
2377
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2378
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2379
+ ];
2380
+ }).s("IotColumboService", "DescribeAlarmModel", {}).n("IoTEventsClient", "DescribeAlarmModelCommand").f(void 0, void 0).ser(se_DescribeAlarmModelCommand).de(de_DescribeAlarmModelCommand).build() {
2381
+ };
2382
+ __name(_DescribeAlarmModelCommand, "DescribeAlarmModelCommand");
2383
+ var DescribeAlarmModelCommand = _DescribeAlarmModelCommand;
2384
+
2385
+ // src/commands/DescribeDetectorModelAnalysisCommand.ts
2386
+
2387
+
2388
+
2389
+
2390
+ var _DescribeDetectorModelAnalysisCommand = class _DescribeDetectorModelAnalysisCommand extends import_smithy_client.Command.classBuilder().ep({
2391
+ ...commonParams
2392
+ }).m(function(Command, cs, config, o) {
2393
+ return [
2394
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2395
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2396
+ ];
2397
+ }).s("IotColumboService", "DescribeDetectorModelAnalysis", {}).n("IoTEventsClient", "DescribeDetectorModelAnalysisCommand").f(void 0, void 0).ser(se_DescribeDetectorModelAnalysisCommand).de(de_DescribeDetectorModelAnalysisCommand).build() {
2398
+ };
2399
+ __name(_DescribeDetectorModelAnalysisCommand, "DescribeDetectorModelAnalysisCommand");
2400
+ var DescribeDetectorModelAnalysisCommand = _DescribeDetectorModelAnalysisCommand;
2401
+
2402
+ // src/commands/DescribeDetectorModelCommand.ts
2403
+
2404
+
2405
+
2406
+
2407
+ var _DescribeDetectorModelCommand = class _DescribeDetectorModelCommand extends import_smithy_client.Command.classBuilder().ep({
2408
+ ...commonParams
2409
+ }).m(function(Command, cs, config, o) {
2410
+ return [
2411
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2412
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2413
+ ];
2414
+ }).s("IotColumboService", "DescribeDetectorModel", {}).n("IoTEventsClient", "DescribeDetectorModelCommand").f(void 0, void 0).ser(se_DescribeDetectorModelCommand).de(de_DescribeDetectorModelCommand).build() {
2415
+ };
2416
+ __name(_DescribeDetectorModelCommand, "DescribeDetectorModelCommand");
2417
+ var DescribeDetectorModelCommand = _DescribeDetectorModelCommand;
2418
+
2419
+ // src/commands/DescribeInputCommand.ts
2420
+
2421
+
2422
+
2423
+
2424
+ var _DescribeInputCommand = class _DescribeInputCommand extends import_smithy_client.Command.classBuilder().ep({
2425
+ ...commonParams
2426
+ }).m(function(Command, cs, config, o) {
2427
+ return [
2428
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2429
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2430
+ ];
2431
+ }).s("IotColumboService", "DescribeInput", {}).n("IoTEventsClient", "DescribeInputCommand").f(void 0, void 0).ser(se_DescribeInputCommand).de(de_DescribeInputCommand).build() {
2432
+ };
2433
+ __name(_DescribeInputCommand, "DescribeInputCommand");
2434
+ var DescribeInputCommand = _DescribeInputCommand;
2435
+
2436
+ // src/commands/DescribeLoggingOptionsCommand.ts
2437
+
2438
+
2439
+
2440
+
2441
+ var _DescribeLoggingOptionsCommand = class _DescribeLoggingOptionsCommand extends import_smithy_client.Command.classBuilder().ep({
2442
+ ...commonParams
2443
+ }).m(function(Command, cs, config, o) {
2444
+ return [
2445
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2446
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2447
+ ];
2448
+ }).s("IotColumboService", "DescribeLoggingOptions", {}).n("IoTEventsClient", "DescribeLoggingOptionsCommand").f(void 0, void 0).ser(se_DescribeLoggingOptionsCommand).de(de_DescribeLoggingOptionsCommand).build() {
2449
+ };
2450
+ __name(_DescribeLoggingOptionsCommand, "DescribeLoggingOptionsCommand");
2451
+ var DescribeLoggingOptionsCommand = _DescribeLoggingOptionsCommand;
2452
+
2453
+ // src/commands/GetDetectorModelAnalysisResultsCommand.ts
2454
+
2455
+
2456
+
2457
+
2458
+ var _GetDetectorModelAnalysisResultsCommand = class _GetDetectorModelAnalysisResultsCommand extends import_smithy_client.Command.classBuilder().ep({
2459
+ ...commonParams
2460
+ }).m(function(Command, cs, config, o) {
2461
+ return [
2462
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2463
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2464
+ ];
2465
+ }).s("IotColumboService", "GetDetectorModelAnalysisResults", {}).n("IoTEventsClient", "GetDetectorModelAnalysisResultsCommand").f(void 0, void 0).ser(se_GetDetectorModelAnalysisResultsCommand).de(de_GetDetectorModelAnalysisResultsCommand).build() {
2466
+ };
2467
+ __name(_GetDetectorModelAnalysisResultsCommand, "GetDetectorModelAnalysisResultsCommand");
2468
+ var GetDetectorModelAnalysisResultsCommand = _GetDetectorModelAnalysisResultsCommand;
2469
+
2470
+ // src/commands/ListAlarmModelsCommand.ts
2471
+
2472
+
2473
+
2474
+
2475
+ var _ListAlarmModelsCommand = class _ListAlarmModelsCommand extends import_smithy_client.Command.classBuilder().ep({
2476
+ ...commonParams
2477
+ }).m(function(Command, cs, config, o) {
2478
+ return [
2479
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2480
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2481
+ ];
2482
+ }).s("IotColumboService", "ListAlarmModels", {}).n("IoTEventsClient", "ListAlarmModelsCommand").f(void 0, void 0).ser(se_ListAlarmModelsCommand).de(de_ListAlarmModelsCommand).build() {
2483
+ };
2484
+ __name(_ListAlarmModelsCommand, "ListAlarmModelsCommand");
2485
+ var ListAlarmModelsCommand = _ListAlarmModelsCommand;
2486
+
2487
+ // src/commands/ListAlarmModelVersionsCommand.ts
2488
+
2489
+
2490
+
2491
+
2492
+ var _ListAlarmModelVersionsCommand = class _ListAlarmModelVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
2493
+ ...commonParams
2494
+ }).m(function(Command, cs, config, o) {
2495
+ return [
2496
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2497
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2498
+ ];
2499
+ }).s("IotColumboService", "ListAlarmModelVersions", {}).n("IoTEventsClient", "ListAlarmModelVersionsCommand").f(void 0, void 0).ser(se_ListAlarmModelVersionsCommand).de(de_ListAlarmModelVersionsCommand).build() {
2500
+ };
2501
+ __name(_ListAlarmModelVersionsCommand, "ListAlarmModelVersionsCommand");
2502
+ var ListAlarmModelVersionsCommand = _ListAlarmModelVersionsCommand;
2503
+
2504
+ // src/commands/ListDetectorModelsCommand.ts
2505
+
2506
+
2507
+
2508
+
2509
+ var _ListDetectorModelsCommand = class _ListDetectorModelsCommand extends import_smithy_client.Command.classBuilder().ep({
2510
+ ...commonParams
2511
+ }).m(function(Command, cs, config, o) {
2512
+ return [
2513
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2514
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2515
+ ];
2516
+ }).s("IotColumboService", "ListDetectorModels", {}).n("IoTEventsClient", "ListDetectorModelsCommand").f(void 0, void 0).ser(se_ListDetectorModelsCommand).de(de_ListDetectorModelsCommand).build() {
2517
+ };
2518
+ __name(_ListDetectorModelsCommand, "ListDetectorModelsCommand");
2519
+ var ListDetectorModelsCommand = _ListDetectorModelsCommand;
2520
+
2521
+ // src/commands/ListDetectorModelVersionsCommand.ts
2522
+
2523
+
2524
+
2525
+
2526
+ var _ListDetectorModelVersionsCommand = class _ListDetectorModelVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
2527
+ ...commonParams
2528
+ }).m(function(Command, cs, config, o) {
2529
+ return [
2530
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2531
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2532
+ ];
2533
+ }).s("IotColumboService", "ListDetectorModelVersions", {}).n("IoTEventsClient", "ListDetectorModelVersionsCommand").f(void 0, void 0).ser(se_ListDetectorModelVersionsCommand).de(de_ListDetectorModelVersionsCommand).build() {
2534
+ };
2535
+ __name(_ListDetectorModelVersionsCommand, "ListDetectorModelVersionsCommand");
2536
+ var ListDetectorModelVersionsCommand = _ListDetectorModelVersionsCommand;
2537
+
2538
+ // src/commands/ListInputRoutingsCommand.ts
2539
+
2540
+
2541
+
2542
+
2543
+ var _ListInputRoutingsCommand = class _ListInputRoutingsCommand extends import_smithy_client.Command.classBuilder().ep({
2544
+ ...commonParams
2545
+ }).m(function(Command, cs, config, o) {
2546
+ return [
2547
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2548
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2549
+ ];
2550
+ }).s("IotColumboService", "ListInputRoutings", {}).n("IoTEventsClient", "ListInputRoutingsCommand").f(void 0, void 0).ser(se_ListInputRoutingsCommand).de(de_ListInputRoutingsCommand).build() {
2551
+ };
2552
+ __name(_ListInputRoutingsCommand, "ListInputRoutingsCommand");
2553
+ var ListInputRoutingsCommand = _ListInputRoutingsCommand;
2554
+
2555
+ // src/commands/ListInputsCommand.ts
2556
+
2557
+
2558
+
2559
+
2560
+ var _ListInputsCommand = class _ListInputsCommand extends import_smithy_client.Command.classBuilder().ep({
2561
+ ...commonParams
2562
+ }).m(function(Command, cs, config, o) {
2563
+ return [
2564
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2565
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2566
+ ];
2567
+ }).s("IotColumboService", "ListInputs", {}).n("IoTEventsClient", "ListInputsCommand").f(void 0, void 0).ser(se_ListInputsCommand).de(de_ListInputsCommand).build() {
2568
+ };
2569
+ __name(_ListInputsCommand, "ListInputsCommand");
2570
+ var ListInputsCommand = _ListInputsCommand;
2571
+
2572
+ // src/commands/ListTagsForResourceCommand.ts
2573
+
2574
+
2575
+
2576
+
2577
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2578
+ ...commonParams
2579
+ }).m(function(Command, cs, config, o) {
2580
+ return [
2581
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2582
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2583
+ ];
2584
+ }).s("IotColumboService", "ListTagsForResource", {}).n("IoTEventsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2585
+ };
2586
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2587
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2588
+
2589
+ // src/commands/PutLoggingOptionsCommand.ts
2590
+
2591
+
2592
+
2593
+
2594
+ var _PutLoggingOptionsCommand = class _PutLoggingOptionsCommand extends import_smithy_client.Command.classBuilder().ep({
2595
+ ...commonParams
2596
+ }).m(function(Command, cs, config, o) {
2597
+ return [
2598
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2599
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2600
+ ];
2601
+ }).s("IotColumboService", "PutLoggingOptions", {}).n("IoTEventsClient", "PutLoggingOptionsCommand").f(void 0, void 0).ser(se_PutLoggingOptionsCommand).de(de_PutLoggingOptionsCommand).build() {
2602
+ };
2603
+ __name(_PutLoggingOptionsCommand, "PutLoggingOptionsCommand");
2604
+ var PutLoggingOptionsCommand = _PutLoggingOptionsCommand;
2605
+
2606
+ // src/commands/StartDetectorModelAnalysisCommand.ts
2607
+
2608
+
2609
+
2610
+
2611
+ var _StartDetectorModelAnalysisCommand = class _StartDetectorModelAnalysisCommand extends import_smithy_client.Command.classBuilder().ep({
2612
+ ...commonParams
2613
+ }).m(function(Command, cs, config, o) {
2614
+ return [
2615
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2616
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2617
+ ];
2618
+ }).s("IotColumboService", "StartDetectorModelAnalysis", {}).n("IoTEventsClient", "StartDetectorModelAnalysisCommand").f(void 0, void 0).ser(se_StartDetectorModelAnalysisCommand).de(de_StartDetectorModelAnalysisCommand).build() {
2619
+ };
2620
+ __name(_StartDetectorModelAnalysisCommand, "StartDetectorModelAnalysisCommand");
2621
+ var StartDetectorModelAnalysisCommand = _StartDetectorModelAnalysisCommand;
2622
+
2623
+ // src/commands/TagResourceCommand.ts
2624
+
2625
+
2626
+
2627
+
2628
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2629
+ ...commonParams
2630
+ }).m(function(Command, cs, config, o) {
2631
+ return [
2632
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2633
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2634
+ ];
2635
+ }).s("IotColumboService", "TagResource", {}).n("IoTEventsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2636
+ };
2637
+ __name(_TagResourceCommand, "TagResourceCommand");
2638
+ var TagResourceCommand = _TagResourceCommand;
2639
+
2640
+ // src/commands/UntagResourceCommand.ts
2641
+
2642
+
2643
+
2644
+
2645
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2646
+ ...commonParams
2647
+ }).m(function(Command, cs, config, o) {
2648
+ return [
2649
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2650
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2651
+ ];
2652
+ }).s("IotColumboService", "UntagResource", {}).n("IoTEventsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2653
+ };
2654
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2655
+ var UntagResourceCommand = _UntagResourceCommand;
2656
+
2657
+ // src/commands/UpdateAlarmModelCommand.ts
2658
+
2659
+
2660
+
2661
+
2662
+ var _UpdateAlarmModelCommand = class _UpdateAlarmModelCommand extends import_smithy_client.Command.classBuilder().ep({
2663
+ ...commonParams
2664
+ }).m(function(Command, cs, config, o) {
2665
+ return [
2666
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2667
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2668
+ ];
2669
+ }).s("IotColumboService", "UpdateAlarmModel", {}).n("IoTEventsClient", "UpdateAlarmModelCommand").f(void 0, void 0).ser(se_UpdateAlarmModelCommand).de(de_UpdateAlarmModelCommand).build() {
2670
+ };
2671
+ __name(_UpdateAlarmModelCommand, "UpdateAlarmModelCommand");
2672
+ var UpdateAlarmModelCommand = _UpdateAlarmModelCommand;
2673
+
2674
+ // src/commands/UpdateDetectorModelCommand.ts
2675
+
2676
+
2677
+
2678
+
2679
+ var _UpdateDetectorModelCommand = class _UpdateDetectorModelCommand extends import_smithy_client.Command.classBuilder().ep({
2680
+ ...commonParams
2681
+ }).m(function(Command, cs, config, o) {
2682
+ return [
2683
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2684
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2685
+ ];
2686
+ }).s("IotColumboService", "UpdateDetectorModel", {}).n("IoTEventsClient", "UpdateDetectorModelCommand").f(void 0, void 0).ser(se_UpdateDetectorModelCommand).de(de_UpdateDetectorModelCommand).build() {
2687
+ };
2688
+ __name(_UpdateDetectorModelCommand, "UpdateDetectorModelCommand");
2689
+ var UpdateDetectorModelCommand = _UpdateDetectorModelCommand;
2690
+
2691
+ // src/commands/UpdateInputCommand.ts
2692
+
2693
+
2694
+
2695
+
2696
+ var _UpdateInputCommand = class _UpdateInputCommand extends import_smithy_client.Command.classBuilder().ep({
2697
+ ...commonParams
2698
+ }).m(function(Command, cs, config, o) {
2699
+ return [
2700
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2701
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2702
+ ];
2703
+ }).s("IotColumboService", "UpdateInput", {}).n("IoTEventsClient", "UpdateInputCommand").f(void 0, void 0).ser(se_UpdateInputCommand).de(de_UpdateInputCommand).build() {
2704
+ };
2705
+ __name(_UpdateInputCommand, "UpdateInputCommand");
2706
+ var UpdateInputCommand = _UpdateInputCommand;
2707
+
2708
+ // src/IoTEvents.ts
2709
+ var commands = {
2710
+ CreateAlarmModelCommand,
2711
+ CreateDetectorModelCommand,
2712
+ CreateInputCommand,
2713
+ DeleteAlarmModelCommand,
2714
+ DeleteDetectorModelCommand,
2715
+ DeleteInputCommand,
2716
+ DescribeAlarmModelCommand,
2717
+ DescribeDetectorModelCommand,
2718
+ DescribeDetectorModelAnalysisCommand,
2719
+ DescribeInputCommand,
2720
+ DescribeLoggingOptionsCommand,
2721
+ GetDetectorModelAnalysisResultsCommand,
2722
+ ListAlarmModelsCommand,
2723
+ ListAlarmModelVersionsCommand,
2724
+ ListDetectorModelsCommand,
2725
+ ListDetectorModelVersionsCommand,
2726
+ ListInputRoutingsCommand,
2727
+ ListInputsCommand,
2728
+ ListTagsForResourceCommand,
2729
+ PutLoggingOptionsCommand,
2730
+ StartDetectorModelAnalysisCommand,
2731
+ TagResourceCommand,
2732
+ UntagResourceCommand,
2733
+ UpdateAlarmModelCommand,
2734
+ UpdateDetectorModelCommand,
2735
+ UpdateInputCommand
2736
+ };
2737
+ var _IoTEvents = class _IoTEvents extends IoTEventsClient {
2738
+ };
2739
+ __name(_IoTEvents, "IoTEvents");
2740
+ var IoTEvents = _IoTEvents;
2741
+ (0, import_smithy_client.createAggregatedClient)(commands, IoTEvents);
2742
+
2743
+ // src/index.ts
2744
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2745
+ // Annotate the CommonJS export names for ESM import in node:
2746
+ 0 && (module.exports = {
2747
+ AlarmModelVersionStatus,
2748
+ AnalysisResultLevel,
2749
+ AnalysisStatus,
2750
+ ComparisonOperator,
2751
+ CreateAlarmModelCommand,
2752
+ CreateDetectorModelCommand,
2753
+ CreateInputCommand,
2754
+ DeleteAlarmModelCommand,
2755
+ DeleteDetectorModelCommand,
2756
+ DeleteInputCommand,
2757
+ DescribeAlarmModelCommand,
2758
+ DescribeDetectorModelAnalysisCommand,
2759
+ DescribeDetectorModelCommand,
2760
+ DescribeInputCommand,
2761
+ DescribeLoggingOptionsCommand,
2762
+ DetectorModelVersionStatus,
2763
+ EvaluationMethod,
2764
+ GetDetectorModelAnalysisResultsCommand,
2765
+ InputStatus,
2766
+ InternalFailureException,
2767
+ InvalidRequestException,
2768
+ IoTEvents,
2769
+ IoTEventsClient,
2770
+ IoTEventsServiceException,
2771
+ LimitExceededException,
2772
+ ListAlarmModelVersionsCommand,
2773
+ ListAlarmModelsCommand,
2774
+ ListDetectorModelVersionsCommand,
2775
+ ListDetectorModelsCommand,
2776
+ ListInputRoutingsCommand,
2777
+ ListInputsCommand,
2778
+ ListTagsForResourceCommand,
2779
+ LoggingLevel,
2780
+ PayloadType,
2781
+ PutLoggingOptionsCommand,
2782
+ ResourceAlreadyExistsException,
2783
+ ResourceInUseException,
2784
+ ResourceNotFoundException,
2785
+ ServiceUnavailableException,
2786
+ StartDetectorModelAnalysisCommand,
2787
+ TagResourceCommand,
2788
+ ThrottlingException,
2789
+ UnsupportedOperationException,
2790
+ UntagResourceCommand,
2791
+ UpdateAlarmModelCommand,
2792
+ UpdateDetectorModelCommand,
2793
+ UpdateInputCommand,
2794
+ __Client
2795
+ });