@aws-sdk/client-iot-events 3.901.0 → 3.906.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 (2) hide show
  1. package/dist-cjs/index.js +1798 -1943
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,1981 +1,1836 @@
1
- "use strict";
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 index_exports = {};
23
- __export(index_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(index_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_user_agent = require("@aws-sdk/middleware-user-agent");
80
- var import_config_resolver = require("@smithy/config-resolver");
81
- var import_core = require("@smithy/core");
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
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
87
-
88
- // src/endpoint/EndpointParameters.ts
89
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
90
- return Object.assign(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" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "iotevents",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
101
32
  };
102
33
 
103
- // src/IoTEventsClient.ts
104
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
105
72
 
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");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
110
78
 
111
- // src/auth/httpAuthExtensionConfiguration.ts
112
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
113
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
114
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
115
- let _credentials = runtimeConfig.credentials;
116
- return {
117
- setHttpAuthScheme(httpAuthScheme) {
118
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
119
- if (index === -1) {
120
- _httpAuthSchemes.push(httpAuthScheme);
121
- } else {
122
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
123
- }
124
- },
125
- httpAuthSchemes() {
126
- return _httpAuthSchemes;
127
- },
128
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
129
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
130
- },
131
- httpAuthSchemeProvider() {
132
- return _httpAuthSchemeProvider;
133
- },
134
- setCredentials(credentials) {
135
- _credentials = credentials;
136
- },
137
- credentials() {
138
- return _credentials;
79
+ class IoTEventsClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultIoTEventsHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
139
107
  }
140
- };
141
- }, "getHttpAuthExtensionConfiguration");
142
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
143
- return {
144
- httpAuthSchemes: config.httpAuthSchemes(),
145
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
146
- credentials: config.credentials()
147
- };
148
- }, "resolveHttpAuthRuntimeConfig");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
149
112
 
150
- // src/runtimeExtensions.ts
151
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
152
- const extensionConfiguration = Object.assign(
153
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
154
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
155
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
156
- getHttpAuthExtensionConfiguration(runtimeConfig)
157
- );
158
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
159
- return Object.assign(
160
- runtimeConfig,
161
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
162
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
163
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
164
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
165
- );
166
- }, "resolveRuntimeExtensions");
113
+ class IoTEventsServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, IoTEventsServiceException.prototype);
117
+ }
118
+ }
167
119
 
168
- // src/IoTEventsClient.ts
169
- var IoTEventsClient = class extends import_smithy_client.Client {
170
- static {
171
- __name(this, "IoTEventsClient");
172
- }
173
- /**
174
- * The resolved configuration of IoTEventsClient class. This is resolved and normalized from the {@link IoTEventsClientConfig | constructor configuration interface}.
175
- */
176
- config;
177
- constructor(...[configuration]) {
178
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
179
- super(_config_0);
180
- this.initConfig = _config_0;
181
- const _config_1 = resolveClientEndpointParameters(_config_0);
182
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
183
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
184
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
185
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
186
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
187
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
188
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
189
- this.config = _config_8;
190
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
191
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
192
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
193
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
194
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
195
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
196
- this.middlewareStack.use(
197
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
198
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultIoTEventsHttpAuthSchemeParametersProvider,
199
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
200
- "aws.auth#sigv4": config.credentials
201
- }), "identityProviderConfigProvider")
202
- })
203
- );
204
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
205
- }
206
- /**
207
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
208
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
209
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
210
- */
211
- destroy() {
212
- super.destroy();
213
- }
120
+ const PayloadType = {
121
+ JSON: "JSON",
122
+ STRING: "STRING",
214
123
  };
215
-
216
- // src/IoTEvents.ts
217
-
218
-
219
- // src/commands/CreateAlarmModelCommand.ts
220
-
221
- var import_middleware_serde = require("@smithy/middleware-serde");
222
-
223
-
224
- // src/protocols/Aws_restJson1.ts
225
- var import_core2 = require("@aws-sdk/core");
226
-
227
-
228
-
229
- // src/models/IoTEventsServiceException.ts
230
-
231
- var IoTEventsServiceException = class _IoTEventsServiceException extends import_smithy_client.ServiceException {
232
- static {
233
- __name(this, "IoTEventsServiceException");
234
- }
235
- /**
236
- * @internal
237
- */
238
- constructor(options) {
239
- super(options);
240
- Object.setPrototypeOf(this, _IoTEventsServiceException.prototype);
241
- }
124
+ const AlarmModelVersionStatus = {
125
+ ACTIVATING: "ACTIVATING",
126
+ ACTIVE: "ACTIVE",
127
+ FAILED: "FAILED",
128
+ INACTIVE: "INACTIVE",
242
129
  };
243
-
244
- // src/models/models_0.ts
245
- var PayloadType = {
246
- JSON: "JSON",
247
- STRING: "STRING"
248
- };
249
- var AlarmModelVersionStatus = {
250
- ACTIVATING: "ACTIVATING",
251
- ACTIVE: "ACTIVE",
252
- FAILED: "FAILED",
253
- INACTIVE: "INACTIVE"
254
- };
255
- var ComparisonOperator = {
256
- EQUAL: "EQUAL",
257
- GREATER: "GREATER",
258
- GREATER_OR_EQUAL: "GREATER_OR_EQUAL",
259
- LESS: "LESS",
260
- LESS_OR_EQUAL: "LESS_OR_EQUAL",
261
- NOT_EQUAL: "NOT_EQUAL"
262
- };
263
- var AnalysisResultLevel = {
264
- ERROR: "ERROR",
265
- INFO: "INFO",
266
- WARNING: "WARNING"
267
- };
268
- var AnalysisStatus = {
269
- COMPLETE: "COMPLETE",
270
- FAILED: "FAILED",
271
- RUNNING: "RUNNING"
272
- };
273
- var InternalFailureException = class _InternalFailureException extends IoTEventsServiceException {
274
- static {
275
- __name(this, "InternalFailureException");
276
- }
277
- name = "InternalFailureException";
278
- $fault = "server";
279
- /**
280
- * @internal
281
- */
282
- constructor(opts) {
283
- super({
284
- name: "InternalFailureException",
285
- $fault: "server",
286
- ...opts
287
- });
288
- Object.setPrototypeOf(this, _InternalFailureException.prototype);
289
- }
290
- };
291
- var InvalidRequestException = class _InvalidRequestException extends IoTEventsServiceException {
292
- static {
293
- __name(this, "InvalidRequestException");
294
- }
295
- name = "InvalidRequestException";
296
- $fault = "client";
297
- /**
298
- * @internal
299
- */
300
- constructor(opts) {
301
- super({
302
- name: "InvalidRequestException",
303
- $fault: "client",
304
- ...opts
305
- });
306
- Object.setPrototypeOf(this, _InvalidRequestException.prototype);
307
- }
308
- };
309
- var LimitExceededException = class _LimitExceededException extends IoTEventsServiceException {
310
- static {
311
- __name(this, "LimitExceededException");
312
- }
313
- name = "LimitExceededException";
314
- $fault = "client";
315
- /**
316
- * @internal
317
- */
318
- constructor(opts) {
319
- super({
320
- name: "LimitExceededException",
321
- $fault: "client",
322
- ...opts
323
- });
324
- Object.setPrototypeOf(this, _LimitExceededException.prototype);
325
- }
326
- };
327
- var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends IoTEventsServiceException {
328
- static {
329
- __name(this, "ResourceAlreadyExistsException");
330
- }
331
- name = "ResourceAlreadyExistsException";
332
- $fault = "client";
333
- /**
334
- * <p>The ID of the resource.</p>
335
- * @public
336
- */
337
- resourceId;
338
- /**
339
- * <p>The ARN of the resource.</p>
340
- * @public
341
- */
342
- resourceArn;
343
- /**
344
- * @internal
345
- */
346
- constructor(opts) {
347
- super({
348
- name: "ResourceAlreadyExistsException",
349
- $fault: "client",
350
- ...opts
351
- });
352
- Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
353
- this.resourceId = opts.resourceId;
354
- this.resourceArn = opts.resourceArn;
355
- }
356
- };
357
- var ResourceInUseException = class _ResourceInUseException extends IoTEventsServiceException {
358
- static {
359
- __name(this, "ResourceInUseException");
360
- }
361
- name = "ResourceInUseException";
362
- $fault = "client";
363
- /**
364
- * @internal
365
- */
366
- constructor(opts) {
367
- super({
368
- name: "ResourceInUseException",
369
- $fault: "client",
370
- ...opts
371
- });
372
- Object.setPrototypeOf(this, _ResourceInUseException.prototype);
373
- }
374
- };
375
- var ServiceUnavailableException = class _ServiceUnavailableException extends IoTEventsServiceException {
376
- static {
377
- __name(this, "ServiceUnavailableException");
378
- }
379
- name = "ServiceUnavailableException";
380
- $fault = "server";
381
- /**
382
- * @internal
383
- */
384
- constructor(opts) {
385
- super({
386
- name: "ServiceUnavailableException",
387
- $fault: "server",
388
- ...opts
389
- });
390
- Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
391
- }
392
- };
393
- var ThrottlingException = class _ThrottlingException extends IoTEventsServiceException {
394
- static {
395
- __name(this, "ThrottlingException");
396
- }
397
- name = "ThrottlingException";
398
- $fault = "client";
399
- /**
400
- * @internal
401
- */
402
- constructor(opts) {
403
- super({
404
- name: "ThrottlingException",
405
- $fault: "client",
406
- ...opts
407
- });
408
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
409
- }
410
- };
411
- var EvaluationMethod = {
412
- BATCH: "BATCH",
413
- SERIAL: "SERIAL"
414
- };
415
- var DetectorModelVersionStatus = {
416
- ACTIVATING: "ACTIVATING",
417
- ACTIVE: "ACTIVE",
418
- DEPRECATED: "DEPRECATED",
419
- DRAFT: "DRAFT",
420
- FAILED: "FAILED",
421
- INACTIVE: "INACTIVE",
422
- PAUSED: "PAUSED"
423
- };
424
- var InputStatus = {
425
- ACTIVE: "ACTIVE",
426
- CREATING: "CREATING",
427
- DELETING: "DELETING",
428
- UPDATING: "UPDATING"
429
- };
430
- var ResourceNotFoundException = class _ResourceNotFoundException extends IoTEventsServiceException {
431
- static {
432
- __name(this, "ResourceNotFoundException");
433
- }
434
- name = "ResourceNotFoundException";
435
- $fault = "client";
436
- /**
437
- * @internal
438
- */
439
- constructor(opts) {
440
- super({
441
- name: "ResourceNotFoundException",
442
- $fault: "client",
443
- ...opts
444
- });
445
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
446
- }
447
- };
448
- var LoggingLevel = {
449
- DEBUG: "DEBUG",
450
- ERROR: "ERROR",
451
- INFO: "INFO"
452
- };
453
- var UnsupportedOperationException = class _UnsupportedOperationException extends IoTEventsServiceException {
454
- static {
455
- __name(this, "UnsupportedOperationException");
456
- }
457
- name = "UnsupportedOperationException";
458
- $fault = "server";
459
- /**
460
- * @internal
461
- */
462
- constructor(opts) {
463
- super({
464
- name: "UnsupportedOperationException",
465
- $fault: "server",
466
- ...opts
467
- });
468
- Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
469
- }
130
+ const ComparisonOperator = {
131
+ EQUAL: "EQUAL",
132
+ GREATER: "GREATER",
133
+ GREATER_OR_EQUAL: "GREATER_OR_EQUAL",
134
+ LESS: "LESS",
135
+ LESS_OR_EQUAL: "LESS_OR_EQUAL",
136
+ NOT_EQUAL: "NOT_EQUAL",
470
137
  };
471
-
472
- // src/protocols/Aws_restJson1.ts
473
- var se_CreateAlarmModelCommand = /* @__PURE__ */ __name(async (input, context) => {
474
- const b = (0, import_core.requestBuilder)(input, context);
475
- const headers = {
476
- "content-type": "application/json"
477
- };
478
- b.bp("/alarm-models");
479
- let body;
480
- body = JSON.stringify(
481
- (0, import_smithy_client.take)(input, {
482
- alarmCapabilities: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "alarmCapabilities"),
483
- alarmEventActions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "alarmEventActions"),
484
- alarmModelDescription: [],
485
- alarmModelName: [],
486
- alarmNotification: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "alarmNotification"),
487
- alarmRule: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "alarmRule"),
488
- key: [],
489
- roleArn: [],
490
- severity: [],
491
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
492
- })
493
- );
494
- b.m("POST").h(headers).b(body);
495
- return b.build();
496
- }, "se_CreateAlarmModelCommand");
497
- var se_CreateDetectorModelCommand = /* @__PURE__ */ __name(async (input, context) => {
498
- const b = (0, import_core.requestBuilder)(input, context);
499
- const headers = {
500
- "content-type": "application/json"
501
- };
502
- b.bp("/detector-models");
503
- let body;
504
- body = JSON.stringify(
505
- (0, import_smithy_client.take)(input, {
506
- detectorModelDefinition: /* @__PURE__ */ __name((_) => se_DetectorModelDefinition(_, context), "detectorModelDefinition"),
507
- detectorModelDescription: [],
508
- detectorModelName: [],
509
- evaluationMethod: [],
510
- key: [],
511
- roleArn: [],
512
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
513
- })
514
- );
515
- b.m("POST").h(headers).b(body);
516
- return b.build();
517
- }, "se_CreateDetectorModelCommand");
518
- var se_CreateInputCommand = /* @__PURE__ */ __name(async (input, context) => {
519
- const b = (0, import_core.requestBuilder)(input, context);
520
- const headers = {
521
- "content-type": "application/json"
522
- };
523
- b.bp("/inputs");
524
- let body;
525
- body = JSON.stringify(
526
- (0, import_smithy_client.take)(input, {
527
- inputDefinition: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "inputDefinition"),
528
- inputDescription: [],
529
- inputName: [],
530
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
531
- })
532
- );
533
- b.m("POST").h(headers).b(body);
534
- return b.build();
535
- }, "se_CreateInputCommand");
536
- var se_DeleteAlarmModelCommand = /* @__PURE__ */ __name(async (input, context) => {
537
- const b = (0, import_core.requestBuilder)(input, context);
538
- const headers = {};
539
- b.bp("/alarm-models/{alarmModelName}");
540
- b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
541
- let body;
542
- b.m("DELETE").h(headers).b(body);
543
- return b.build();
544
- }, "se_DeleteAlarmModelCommand");
545
- var se_DeleteDetectorModelCommand = /* @__PURE__ */ __name(async (input, context) => {
546
- const b = (0, import_core.requestBuilder)(input, context);
547
- const headers = {};
548
- b.bp("/detector-models/{detectorModelName}");
549
- b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
550
- let body;
551
- b.m("DELETE").h(headers).b(body);
552
- return b.build();
553
- }, "se_DeleteDetectorModelCommand");
554
- var se_DeleteInputCommand = /* @__PURE__ */ __name(async (input, context) => {
555
- const b = (0, import_core.requestBuilder)(input, context);
556
- const headers = {};
557
- b.bp("/inputs/{inputName}");
558
- b.p("inputName", () => input.inputName, "{inputName}", false);
559
- let body;
560
- b.m("DELETE").h(headers).b(body);
561
- return b.build();
562
- }, "se_DeleteInputCommand");
563
- var se_DescribeAlarmModelCommand = /* @__PURE__ */ __name(async (input, context) => {
564
- const b = (0, import_core.requestBuilder)(input, context);
565
- const headers = {};
566
- b.bp("/alarm-models/{alarmModelName}");
567
- b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
568
- const query = (0, import_smithy_client.map)({
569
- [_v]: [, input[_aMV]]
570
- });
571
- let body;
572
- b.m("GET").h(headers).q(query).b(body);
573
- return b.build();
574
- }, "se_DescribeAlarmModelCommand");
575
- var se_DescribeDetectorModelCommand = /* @__PURE__ */ __name(async (input, context) => {
576
- const b = (0, import_core.requestBuilder)(input, context);
577
- const headers = {};
578
- b.bp("/detector-models/{detectorModelName}");
579
- b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
580
- const query = (0, import_smithy_client.map)({
581
- [_v]: [, input[_dMV]]
582
- });
583
- let body;
584
- b.m("GET").h(headers).q(query).b(body);
585
- return b.build();
586
- }, "se_DescribeDetectorModelCommand");
587
- var se_DescribeDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (input, context) => {
588
- const b = (0, import_core.requestBuilder)(input, context);
589
- const headers = {};
590
- b.bp("/analysis/detector-models/{analysisId}");
591
- b.p("analysisId", () => input.analysisId, "{analysisId}", false);
592
- let body;
593
- b.m("GET").h(headers).b(body);
594
- return b.build();
595
- }, "se_DescribeDetectorModelAnalysisCommand");
596
- var se_DescribeInputCommand = /* @__PURE__ */ __name(async (input, context) => {
597
- const b = (0, import_core.requestBuilder)(input, context);
598
- const headers = {};
599
- b.bp("/inputs/{inputName}");
600
- b.p("inputName", () => input.inputName, "{inputName}", false);
601
- let body;
602
- b.m("GET").h(headers).b(body);
603
- return b.build();
604
- }, "se_DescribeInputCommand");
605
- var se_DescribeLoggingOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
606
- const b = (0, import_core.requestBuilder)(input, context);
607
- const headers = {};
608
- b.bp("/logging");
609
- let body;
610
- b.m("GET").h(headers).b(body);
611
- return b.build();
612
- }, "se_DescribeLoggingOptionsCommand");
613
- var se_GetDetectorModelAnalysisResultsCommand = /* @__PURE__ */ __name(async (input, context) => {
614
- const b = (0, import_core.requestBuilder)(input, context);
615
- const headers = {};
616
- b.bp("/analysis/detector-models/{analysisId}/results");
617
- b.p("analysisId", () => input.analysisId, "{analysisId}", false);
618
- const query = (0, import_smithy_client.map)({
619
- [_nT]: [, input[_nT]],
620
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
621
- });
622
- let body;
623
- b.m("GET").h(headers).q(query).b(body);
624
- return b.build();
625
- }, "se_GetDetectorModelAnalysisResultsCommand");
626
- var se_ListAlarmModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
627
- const b = (0, import_core.requestBuilder)(input, context);
628
- const headers = {};
629
- b.bp("/alarm-models");
630
- const query = (0, import_smithy_client.map)({
631
- [_nT]: [, input[_nT]],
632
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
633
- });
634
- let body;
635
- b.m("GET").h(headers).q(query).b(body);
636
- return b.build();
637
- }, "se_ListAlarmModelsCommand");
638
- var se_ListAlarmModelVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
639
- const b = (0, import_core.requestBuilder)(input, context);
640
- const headers = {};
641
- b.bp("/alarm-models/{alarmModelName}/versions");
642
- b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
643
- const query = (0, import_smithy_client.map)({
644
- [_nT]: [, input[_nT]],
645
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
646
- });
647
- let body;
648
- b.m("GET").h(headers).q(query).b(body);
649
- return b.build();
650
- }, "se_ListAlarmModelVersionsCommand");
651
- var se_ListDetectorModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
652
- const b = (0, import_core.requestBuilder)(input, context);
653
- const headers = {};
654
- b.bp("/detector-models");
655
- const query = (0, import_smithy_client.map)({
656
- [_nT]: [, input[_nT]],
657
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
658
- });
659
- let body;
660
- b.m("GET").h(headers).q(query).b(body);
661
- return b.build();
662
- }, "se_ListDetectorModelsCommand");
663
- var se_ListDetectorModelVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
664
- const b = (0, import_core.requestBuilder)(input, context);
665
- const headers = {};
666
- b.bp("/detector-models/{detectorModelName}/versions");
667
- b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
668
- const query = (0, import_smithy_client.map)({
669
- [_nT]: [, input[_nT]],
670
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
671
- });
672
- let body;
673
- b.m("GET").h(headers).q(query).b(body);
674
- return b.build();
675
- }, "se_ListDetectorModelVersionsCommand");
676
- var se_ListInputRoutingsCommand = /* @__PURE__ */ __name(async (input, context) => {
677
- const b = (0, import_core.requestBuilder)(input, context);
678
- const headers = {
679
- "content-type": "application/json"
680
- };
681
- b.bp("/input-routings");
682
- let body;
683
- body = JSON.stringify(
684
- (0, import_smithy_client.take)(input, {
685
- inputIdentifier: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "inputIdentifier"),
686
- maxResults: [],
687
- nextToken: []
688
- })
689
- );
690
- b.m("POST").h(headers).b(body);
691
- return b.build();
692
- }, "se_ListInputRoutingsCommand");
693
- var se_ListInputsCommand = /* @__PURE__ */ __name(async (input, context) => {
694
- const b = (0, import_core.requestBuilder)(input, context);
695
- const headers = {};
696
- b.bp("/inputs");
697
- const query = (0, import_smithy_client.map)({
698
- [_nT]: [, input[_nT]],
699
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
700
- });
701
- let body;
702
- b.m("GET").h(headers).q(query).b(body);
703
- return b.build();
704
- }, "se_ListInputsCommand");
705
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
706
- const b = (0, import_core.requestBuilder)(input, context);
707
- const headers = {};
708
- b.bp("/tags");
709
- const query = (0, import_smithy_client.map)({
710
- [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
711
- });
712
- let body;
713
- b.m("GET").h(headers).q(query).b(body);
714
- return b.build();
715
- }, "se_ListTagsForResourceCommand");
716
- var se_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
717
- const b = (0, import_core.requestBuilder)(input, context);
718
- const headers = {
719
- "content-type": "application/json"
720
- };
721
- b.bp("/logging");
722
- let body;
723
- body = JSON.stringify(
724
- (0, import_smithy_client.take)(input, {
725
- loggingOptions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "loggingOptions")
726
- })
727
- );
728
- b.m("PUT").h(headers).b(body);
729
- return b.build();
730
- }, "se_PutLoggingOptionsCommand");
731
- var se_StartDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (input, context) => {
732
- const b = (0, import_core.requestBuilder)(input, context);
733
- const headers = {
734
- "content-type": "application/json"
735
- };
736
- b.bp("/analysis/detector-models");
737
- let body;
738
- body = JSON.stringify(
739
- (0, import_smithy_client.take)(input, {
740
- detectorModelDefinition: /* @__PURE__ */ __name((_) => se_DetectorModelDefinition(_, context), "detectorModelDefinition")
741
- })
742
- );
743
- b.m("POST").h(headers).b(body);
744
- return b.build();
745
- }, "se_StartDetectorModelAnalysisCommand");
746
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
747
- const b = (0, import_core.requestBuilder)(input, context);
748
- const headers = {
749
- "content-type": "application/json"
750
- };
751
- b.bp("/tags");
752
- const query = (0, import_smithy_client.map)({
753
- [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
754
- });
755
- let body;
756
- body = JSON.stringify(
757
- (0, import_smithy_client.take)(input, {
758
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
759
- })
760
- );
761
- b.m("POST").h(headers).q(query).b(body);
762
- return b.build();
763
- }, "se_TagResourceCommand");
764
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
765
- const b = (0, import_core.requestBuilder)(input, context);
766
- const headers = {};
767
- b.bp("/tags");
768
- const query = (0, import_smithy_client.map)({
769
- [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)],
770
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
771
- });
772
- let body;
773
- b.m("DELETE").h(headers).q(query).b(body);
774
- return b.build();
775
- }, "se_UntagResourceCommand");
776
- var se_UpdateAlarmModelCommand = /* @__PURE__ */ __name(async (input, context) => {
777
- const b = (0, import_core.requestBuilder)(input, context);
778
- const headers = {
779
- "content-type": "application/json"
780
- };
781
- b.bp("/alarm-models/{alarmModelName}");
782
- b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
783
- let body;
784
- body = JSON.stringify(
785
- (0, import_smithy_client.take)(input, {
786
- alarmCapabilities: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "alarmCapabilities"),
787
- alarmEventActions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "alarmEventActions"),
788
- alarmModelDescription: [],
789
- alarmNotification: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "alarmNotification"),
790
- alarmRule: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "alarmRule"),
791
- roleArn: [],
792
- severity: []
793
- })
794
- );
795
- b.m("POST").h(headers).b(body);
796
- return b.build();
797
- }, "se_UpdateAlarmModelCommand");
798
- var se_UpdateDetectorModelCommand = /* @__PURE__ */ __name(async (input, context) => {
799
- const b = (0, import_core.requestBuilder)(input, context);
800
- const headers = {
801
- "content-type": "application/json"
802
- };
803
- b.bp("/detector-models/{detectorModelName}");
804
- b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
805
- let body;
806
- body = JSON.stringify(
807
- (0, import_smithy_client.take)(input, {
808
- detectorModelDefinition: /* @__PURE__ */ __name((_) => se_DetectorModelDefinition(_, context), "detectorModelDefinition"),
809
- detectorModelDescription: [],
810
- evaluationMethod: [],
811
- roleArn: []
812
- })
813
- );
814
- b.m("POST").h(headers).b(body);
815
- return b.build();
816
- }, "se_UpdateDetectorModelCommand");
817
- var se_UpdateInputCommand = /* @__PURE__ */ __name(async (input, context) => {
818
- const b = (0, import_core.requestBuilder)(input, context);
819
- const headers = {
820
- "content-type": "application/json"
821
- };
822
- b.bp("/inputs/{inputName}");
823
- b.p("inputName", () => input.inputName, "{inputName}", false);
824
- let body;
825
- body = JSON.stringify(
826
- (0, import_smithy_client.take)(input, {
827
- inputDefinition: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "inputDefinition"),
828
- inputDescription: []
829
- })
830
- );
831
- b.m("PUT").h(headers).b(body);
832
- return b.build();
833
- }, "se_UpdateInputCommand");
834
- var de_CreateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
835
- if (output.statusCode !== 200 && output.statusCode >= 300) {
836
- return de_CommandError(output, context);
837
- }
838
- const contents = (0, import_smithy_client.map)({
839
- $metadata: deserializeMetadata(output)
840
- });
841
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
842
- const doc = (0, import_smithy_client.take)(data, {
843
- alarmModelArn: import_smithy_client.expectString,
844
- alarmModelVersion: import_smithy_client.expectString,
845
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
846
- lastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdateTime"),
847
- status: import_smithy_client.expectString
848
- });
849
- Object.assign(contents, doc);
850
- return contents;
851
- }, "de_CreateAlarmModelCommand");
852
- var de_CreateDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
853
- if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return de_CommandError(output, context);
855
- }
856
- const contents = (0, import_smithy_client.map)({
857
- $metadata: deserializeMetadata(output)
858
- });
859
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
860
- const doc = (0, import_smithy_client.take)(data, {
861
- detectorModelConfiguration: /* @__PURE__ */ __name((_) => de_DetectorModelConfiguration(_, context), "detectorModelConfiguration")
862
- });
863
- Object.assign(contents, doc);
864
- return contents;
865
- }, "de_CreateDetectorModelCommand");
866
- var de_CreateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
867
- if (output.statusCode !== 201 && output.statusCode >= 300) {
868
- return de_CommandError(output, context);
869
- }
870
- const contents = (0, import_smithy_client.map)({
871
- $metadata: deserializeMetadata(output)
872
- });
873
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
874
- const doc = (0, import_smithy_client.take)(data, {
875
- inputConfiguration: /* @__PURE__ */ __name((_) => de_InputConfiguration(_, context), "inputConfiguration")
876
- });
877
- Object.assign(contents, doc);
878
- return contents;
879
- }, "de_CreateInputCommand");
880
- var de_DeleteAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
881
- if (output.statusCode !== 204 && output.statusCode >= 300) {
882
- return de_CommandError(output, context);
883
- }
884
- const contents = (0, import_smithy_client.map)({
885
- $metadata: deserializeMetadata(output)
886
- });
887
- await (0, import_smithy_client.collectBody)(output.body, context);
888
- return contents;
889
- }, "de_DeleteAlarmModelCommand");
890
- var de_DeleteDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
891
- if (output.statusCode !== 204 && output.statusCode >= 300) {
892
- return de_CommandError(output, context);
893
- }
894
- const contents = (0, import_smithy_client.map)({
895
- $metadata: deserializeMetadata(output)
896
- });
897
- await (0, import_smithy_client.collectBody)(output.body, context);
898
- return contents;
899
- }, "de_DeleteDetectorModelCommand");
900
- var de_DeleteInputCommand = /* @__PURE__ */ __name(async (output, context) => {
901
- if (output.statusCode !== 200 && output.statusCode >= 300) {
902
- return de_CommandError(output, context);
903
- }
904
- const contents = (0, import_smithy_client.map)({
905
- $metadata: deserializeMetadata(output)
906
- });
907
- await (0, import_smithy_client.collectBody)(output.body, context);
908
- return contents;
909
- }, "de_DeleteInputCommand");
910
- var de_DescribeAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
911
- if (output.statusCode !== 200 && output.statusCode >= 300) {
912
- return de_CommandError(output, context);
913
- }
914
- const contents = (0, import_smithy_client.map)({
915
- $metadata: deserializeMetadata(output)
916
- });
917
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
918
- const doc = (0, import_smithy_client.take)(data, {
919
- alarmCapabilities: import_smithy_client._json,
920
- alarmEventActions: import_smithy_client._json,
921
- alarmModelArn: import_smithy_client.expectString,
922
- alarmModelDescription: import_smithy_client.expectString,
923
- alarmModelName: import_smithy_client.expectString,
924
- alarmModelVersion: import_smithy_client.expectString,
925
- alarmNotification: import_smithy_client._json,
926
- alarmRule: import_smithy_client._json,
927
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
928
- key: import_smithy_client.expectString,
929
- lastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdateTime"),
930
- roleArn: import_smithy_client.expectString,
931
- severity: import_smithy_client.expectInt32,
932
- status: import_smithy_client.expectString,
933
- statusMessage: import_smithy_client.expectString
934
- });
935
- Object.assign(contents, doc);
936
- return contents;
937
- }, "de_DescribeAlarmModelCommand");
938
- var de_DescribeDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
939
- if (output.statusCode !== 200 && output.statusCode >= 300) {
940
- return de_CommandError(output, context);
941
- }
942
- const contents = (0, import_smithy_client.map)({
943
- $metadata: deserializeMetadata(output)
944
- });
945
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
946
- const doc = (0, import_smithy_client.take)(data, {
947
- detectorModel: /* @__PURE__ */ __name((_) => de_DetectorModel(_, context), "detectorModel")
948
- });
949
- Object.assign(contents, doc);
950
- return contents;
951
- }, "de_DescribeDetectorModelCommand");
952
- var de_DescribeDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
953
- if (output.statusCode !== 200 && output.statusCode >= 300) {
954
- return de_CommandError(output, context);
955
- }
956
- const contents = (0, import_smithy_client.map)({
957
- $metadata: deserializeMetadata(output)
958
- });
959
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
960
- const doc = (0, import_smithy_client.take)(data, {
961
- status: import_smithy_client.expectString
962
- });
963
- Object.assign(contents, doc);
964
- return contents;
965
- }, "de_DescribeDetectorModelAnalysisCommand");
966
- var de_DescribeInputCommand = /* @__PURE__ */ __name(async (output, context) => {
967
- if (output.statusCode !== 200 && output.statusCode >= 300) {
968
- return de_CommandError(output, context);
969
- }
970
- const contents = (0, import_smithy_client.map)({
971
- $metadata: deserializeMetadata(output)
972
- });
973
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
974
- const doc = (0, import_smithy_client.take)(data, {
975
- input: /* @__PURE__ */ __name((_) => de_Input(_, context), "input")
976
- });
977
- Object.assign(contents, doc);
978
- return contents;
979
- }, "de_DescribeInputCommand");
980
- var de_DescribeLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
981
- if (output.statusCode !== 200 && output.statusCode >= 300) {
982
- return de_CommandError(output, context);
983
- }
984
- const contents = (0, import_smithy_client.map)({
985
- $metadata: deserializeMetadata(output)
986
- });
987
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
988
- const doc = (0, import_smithy_client.take)(data, {
989
- loggingOptions: import_smithy_client._json
990
- });
991
- Object.assign(contents, doc);
992
- return contents;
993
- }, "de_DescribeLoggingOptionsCommand");
994
- var de_GetDetectorModelAnalysisResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
995
- if (output.statusCode !== 200 && output.statusCode >= 300) {
996
- return de_CommandError(output, context);
997
- }
998
- const contents = (0, import_smithy_client.map)({
999
- $metadata: deserializeMetadata(output)
1000
- });
1001
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1002
- const doc = (0, import_smithy_client.take)(data, {
1003
- analysisResults: import_smithy_client._json,
1004
- nextToken: import_smithy_client.expectString
1005
- });
1006
- Object.assign(contents, doc);
1007
- return contents;
1008
- }, "de_GetDetectorModelAnalysisResultsCommand");
1009
- var de_ListAlarmModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
1010
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
- return de_CommandError(output, context);
1012
- }
1013
- const contents = (0, import_smithy_client.map)({
1014
- $metadata: deserializeMetadata(output)
1015
- });
1016
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1017
- const doc = (0, import_smithy_client.take)(data, {
1018
- alarmModelSummaries: /* @__PURE__ */ __name((_) => de_AlarmModelSummaries(_, context), "alarmModelSummaries"),
1019
- nextToken: import_smithy_client.expectString
1020
- });
1021
- Object.assign(contents, doc);
1022
- return contents;
1023
- }, "de_ListAlarmModelsCommand");
1024
- var de_ListAlarmModelVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1025
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1026
- return de_CommandError(output, context);
1027
- }
1028
- const contents = (0, import_smithy_client.map)({
1029
- $metadata: deserializeMetadata(output)
1030
- });
1031
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1032
- const doc = (0, import_smithy_client.take)(data, {
1033
- alarmModelVersionSummaries: /* @__PURE__ */ __name((_) => de_AlarmModelVersionSummaries(_, context), "alarmModelVersionSummaries"),
1034
- nextToken: import_smithy_client.expectString
1035
- });
1036
- Object.assign(contents, doc);
1037
- return contents;
1038
- }, "de_ListAlarmModelVersionsCommand");
1039
- var de_ListDetectorModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
1040
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1041
- return de_CommandError(output, context);
1042
- }
1043
- const contents = (0, import_smithy_client.map)({
1044
- $metadata: deserializeMetadata(output)
1045
- });
1046
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1047
- const doc = (0, import_smithy_client.take)(data, {
1048
- detectorModelSummaries: /* @__PURE__ */ __name((_) => de_DetectorModelSummaries(_, context), "detectorModelSummaries"),
1049
- nextToken: import_smithy_client.expectString
1050
- });
1051
- Object.assign(contents, doc);
1052
- return contents;
1053
- }, "de_ListDetectorModelsCommand");
1054
- var de_ListDetectorModelVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1055
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1056
- return de_CommandError(output, context);
1057
- }
1058
- const contents = (0, import_smithy_client.map)({
1059
- $metadata: deserializeMetadata(output)
1060
- });
1061
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1062
- const doc = (0, import_smithy_client.take)(data, {
1063
- detectorModelVersionSummaries: /* @__PURE__ */ __name((_) => de_DetectorModelVersionSummaries(_, context), "detectorModelVersionSummaries"),
1064
- nextToken: import_smithy_client.expectString
1065
- });
1066
- Object.assign(contents, doc);
1067
- return contents;
1068
- }, "de_ListDetectorModelVersionsCommand");
1069
- var de_ListInputRoutingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1070
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1071
- return de_CommandError(output, context);
1072
- }
1073
- const contents = (0, import_smithy_client.map)({
1074
- $metadata: deserializeMetadata(output)
1075
- });
1076
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1077
- const doc = (0, import_smithy_client.take)(data, {
1078
- nextToken: import_smithy_client.expectString,
1079
- routedResources: import_smithy_client._json
1080
- });
1081
- Object.assign(contents, doc);
1082
- return contents;
1083
- }, "de_ListInputRoutingsCommand");
1084
- var de_ListInputsCommand = /* @__PURE__ */ __name(async (output, context) => {
1085
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1086
- return de_CommandError(output, context);
1087
- }
1088
- const contents = (0, import_smithy_client.map)({
1089
- $metadata: deserializeMetadata(output)
1090
- });
1091
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1092
- const doc = (0, import_smithy_client.take)(data, {
1093
- inputSummaries: /* @__PURE__ */ __name((_) => de_InputSummaries(_, context), "inputSummaries"),
1094
- nextToken: import_smithy_client.expectString
1095
- });
1096
- Object.assign(contents, doc);
1097
- return contents;
1098
- }, "de_ListInputsCommand");
1099
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1100
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1101
- return de_CommandError(output, context);
1102
- }
1103
- const contents = (0, import_smithy_client.map)({
1104
- $metadata: deserializeMetadata(output)
1105
- });
1106
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1107
- const doc = (0, import_smithy_client.take)(data, {
1108
- tags: import_smithy_client._json
1109
- });
1110
- Object.assign(contents, doc);
1111
- return contents;
1112
- }, "de_ListTagsForResourceCommand");
1113
- var de_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1114
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1115
- return de_CommandError(output, context);
1116
- }
1117
- const contents = (0, import_smithy_client.map)({
1118
- $metadata: deserializeMetadata(output)
1119
- });
1120
- await (0, import_smithy_client.collectBody)(output.body, context);
1121
- return contents;
1122
- }, "de_PutLoggingOptionsCommand");
1123
- var de_StartDetectorModelAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
1124
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1125
- return de_CommandError(output, context);
1126
- }
1127
- const contents = (0, import_smithy_client.map)({
1128
- $metadata: deserializeMetadata(output)
1129
- });
1130
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1131
- const doc = (0, import_smithy_client.take)(data, {
1132
- analysisId: import_smithy_client.expectString
1133
- });
1134
- Object.assign(contents, doc);
1135
- return contents;
1136
- }, "de_StartDetectorModelAnalysisCommand");
1137
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1138
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1139
- return de_CommandError(output, context);
1140
- }
1141
- const contents = (0, import_smithy_client.map)({
1142
- $metadata: deserializeMetadata(output)
1143
- });
1144
- await (0, import_smithy_client.collectBody)(output.body, context);
1145
- return contents;
1146
- }, "de_TagResourceCommand");
1147
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1148
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1149
- return de_CommandError(output, context);
1150
- }
1151
- const contents = (0, import_smithy_client.map)({
1152
- $metadata: deserializeMetadata(output)
1153
- });
1154
- await (0, import_smithy_client.collectBody)(output.body, context);
1155
- return contents;
1156
- }, "de_UntagResourceCommand");
1157
- var de_UpdateAlarmModelCommand = /* @__PURE__ */ __name(async (output, context) => {
1158
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1159
- return de_CommandError(output, context);
1160
- }
1161
- const contents = (0, import_smithy_client.map)({
1162
- $metadata: deserializeMetadata(output)
1163
- });
1164
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1165
- const doc = (0, import_smithy_client.take)(data, {
1166
- alarmModelArn: import_smithy_client.expectString,
1167
- alarmModelVersion: import_smithy_client.expectString,
1168
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1169
- lastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdateTime"),
1170
- status: import_smithy_client.expectString
1171
- });
1172
- Object.assign(contents, doc);
1173
- return contents;
1174
- }, "de_UpdateAlarmModelCommand");
1175
- var de_UpdateDetectorModelCommand = /* @__PURE__ */ __name(async (output, context) => {
1176
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1177
- return de_CommandError(output, context);
1178
- }
1179
- const contents = (0, import_smithy_client.map)({
1180
- $metadata: deserializeMetadata(output)
1181
- });
1182
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1183
- const doc = (0, import_smithy_client.take)(data, {
1184
- detectorModelConfiguration: /* @__PURE__ */ __name((_) => de_DetectorModelConfiguration(_, context), "detectorModelConfiguration")
1185
- });
1186
- Object.assign(contents, doc);
1187
- return contents;
1188
- }, "de_UpdateDetectorModelCommand");
1189
- var de_UpdateInputCommand = /* @__PURE__ */ __name(async (output, context) => {
1190
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1191
- return de_CommandError(output, context);
1192
- }
1193
- const contents = (0, import_smithy_client.map)({
1194
- $metadata: deserializeMetadata(output)
1195
- });
1196
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1197
- const doc = (0, import_smithy_client.take)(data, {
1198
- inputConfiguration: /* @__PURE__ */ __name((_) => de_InputConfiguration(_, context), "inputConfiguration")
1199
- });
1200
- Object.assign(contents, doc);
1201
- return contents;
1202
- }, "de_UpdateInputCommand");
1203
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1204
- const parsedOutput = {
1205
- ...output,
1206
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1207
- };
1208
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1209
- switch (errorCode) {
1210
- case "InternalFailureException":
1211
- case "com.amazonaws.iotevents#InternalFailureException":
1212
- throw await de_InternalFailureExceptionRes(parsedOutput, context);
1213
- case "InvalidRequestException":
1214
- case "com.amazonaws.iotevents#InvalidRequestException":
1215
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1216
- case "LimitExceededException":
1217
- case "com.amazonaws.iotevents#LimitExceededException":
1218
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1219
- case "ResourceAlreadyExistsException":
1220
- case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
1221
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1222
- case "ResourceInUseException":
1223
- case "com.amazonaws.iotevents#ResourceInUseException":
1224
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1225
- case "ServiceUnavailableException":
1226
- case "com.amazonaws.iotevents#ServiceUnavailableException":
1227
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1228
- case "ThrottlingException":
1229
- case "com.amazonaws.iotevents#ThrottlingException":
1230
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1231
- case "ResourceNotFoundException":
1232
- case "com.amazonaws.iotevents#ResourceNotFoundException":
1233
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1234
- case "UnsupportedOperationException":
1235
- case "com.amazonaws.iotevents#UnsupportedOperationException":
1236
- throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1237
- default:
1238
- const parsedBody = parsedOutput.body;
1239
- return throwDefaultError({
1240
- output,
1241
- parsedBody,
1242
- errorCode
1243
- });
1244
- }
1245
- }, "de_CommandError");
1246
- var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTEventsServiceException);
1247
- var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1248
- const contents = (0, import_smithy_client.map)({});
1249
- const data = parsedOutput.body;
1250
- const doc = (0, import_smithy_client.take)(data, {
1251
- message: import_smithy_client.expectString
1252
- });
1253
- Object.assign(contents, doc);
1254
- const exception = new InternalFailureException({
1255
- $metadata: deserializeMetadata(parsedOutput),
1256
- ...contents
1257
- });
1258
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1259
- }, "de_InternalFailureExceptionRes");
1260
- var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1261
- const contents = (0, import_smithy_client.map)({});
1262
- const data = parsedOutput.body;
1263
- const doc = (0, import_smithy_client.take)(data, {
1264
- message: import_smithy_client.expectString
1265
- });
1266
- Object.assign(contents, doc);
1267
- const exception = new InvalidRequestException({
1268
- $metadata: deserializeMetadata(parsedOutput),
1269
- ...contents
1270
- });
1271
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1272
- }, "de_InvalidRequestExceptionRes");
1273
- var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1274
- const contents = (0, import_smithy_client.map)({});
1275
- const data = parsedOutput.body;
1276
- const doc = (0, import_smithy_client.take)(data, {
1277
- message: import_smithy_client.expectString
1278
- });
1279
- Object.assign(contents, doc);
1280
- const exception = new LimitExceededException({
1281
- $metadata: deserializeMetadata(parsedOutput),
1282
- ...contents
1283
- });
1284
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1285
- }, "de_LimitExceededExceptionRes");
1286
- var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1287
- const contents = (0, import_smithy_client.map)({});
1288
- const data = parsedOutput.body;
1289
- const doc = (0, import_smithy_client.take)(data, {
1290
- message: import_smithy_client.expectString,
1291
- resourceArn: import_smithy_client.expectString,
1292
- resourceId: import_smithy_client.expectString
1293
- });
1294
- Object.assign(contents, doc);
1295
- const exception = new ResourceAlreadyExistsException({
1296
- $metadata: deserializeMetadata(parsedOutput),
1297
- ...contents
1298
- });
1299
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1300
- }, "de_ResourceAlreadyExistsExceptionRes");
1301
- var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1302
- const contents = (0, import_smithy_client.map)({});
1303
- const data = parsedOutput.body;
1304
- const doc = (0, import_smithy_client.take)(data, {
1305
- message: import_smithy_client.expectString
1306
- });
1307
- Object.assign(contents, doc);
1308
- const exception = new ResourceInUseException({
1309
- $metadata: deserializeMetadata(parsedOutput),
1310
- ...contents
1311
- });
1312
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1313
- }, "de_ResourceInUseExceptionRes");
1314
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1315
- const contents = (0, import_smithy_client.map)({});
1316
- const data = parsedOutput.body;
1317
- const doc = (0, import_smithy_client.take)(data, {
1318
- message: import_smithy_client.expectString
1319
- });
1320
- Object.assign(contents, doc);
1321
- const exception = new ResourceNotFoundException({
1322
- $metadata: deserializeMetadata(parsedOutput),
1323
- ...contents
1324
- });
1325
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1326
- }, "de_ResourceNotFoundExceptionRes");
1327
- var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1328
- const contents = (0, import_smithy_client.map)({});
1329
- const data = parsedOutput.body;
1330
- const doc = (0, import_smithy_client.take)(data, {
1331
- message: import_smithy_client.expectString
1332
- });
1333
- Object.assign(contents, doc);
1334
- const exception = new ServiceUnavailableException({
1335
- $metadata: deserializeMetadata(parsedOutput),
1336
- ...contents
1337
- });
1338
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1339
- }, "de_ServiceUnavailableExceptionRes");
1340
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1341
- const contents = (0, import_smithy_client.map)({});
1342
- const data = parsedOutput.body;
1343
- const doc = (0, import_smithy_client.take)(data, {
1344
- message: import_smithy_client.expectString
1345
- });
1346
- Object.assign(contents, doc);
1347
- const exception = new ThrottlingException({
1348
- $metadata: deserializeMetadata(parsedOutput),
1349
- ...contents
1350
- });
1351
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1352
- }, "de_ThrottlingExceptionRes");
1353
- var de_UnsupportedOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1354
- const contents = (0, import_smithy_client.map)({});
1355
- const data = parsedOutput.body;
1356
- const doc = (0, import_smithy_client.take)(data, {
1357
- message: import_smithy_client.expectString
1358
- });
1359
- Object.assign(contents, doc);
1360
- const exception = new UnsupportedOperationException({
1361
- $metadata: deserializeMetadata(parsedOutput),
1362
- ...contents
1363
- });
1364
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1365
- }, "de_UnsupportedOperationExceptionRes");
1366
- var se_DetectorModelDefinition = /* @__PURE__ */ __name((input, context) => {
1367
- return (0, import_smithy_client.take)(input, {
1368
- initialStateName: [],
1369
- states: import_smithy_client._json
1370
- });
1371
- }, "se_DetectorModelDefinition");
1372
- var de_AlarmModelSummaries = /* @__PURE__ */ __name((output, context) => {
1373
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1374
- return de_AlarmModelSummary(entry, context);
1375
- });
1376
- return retVal;
1377
- }, "de_AlarmModelSummaries");
1378
- var de_AlarmModelSummary = /* @__PURE__ */ __name((output, context) => {
1379
- return (0, import_smithy_client.take)(output, {
1380
- alarmModelDescription: import_smithy_client.expectString,
1381
- alarmModelName: import_smithy_client.expectString,
1382
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime")
1383
- });
1384
- }, "de_AlarmModelSummary");
1385
- var de_AlarmModelVersionSummaries = /* @__PURE__ */ __name((output, context) => {
1386
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1387
- return de_AlarmModelVersionSummary(entry, context);
1388
- });
1389
- return retVal;
1390
- }, "de_AlarmModelVersionSummaries");
1391
- var de_AlarmModelVersionSummary = /* @__PURE__ */ __name((output, context) => {
1392
- return (0, import_smithy_client.take)(output, {
1393
- alarmModelArn: import_smithy_client.expectString,
1394
- alarmModelName: import_smithy_client.expectString,
1395
- alarmModelVersion: import_smithy_client.expectString,
1396
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1397
- lastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdateTime"),
1398
- roleArn: import_smithy_client.expectString,
1399
- status: import_smithy_client.expectString,
1400
- statusMessage: import_smithy_client.expectString
1401
- });
1402
- }, "de_AlarmModelVersionSummary");
1403
- var de_DetectorModel = /* @__PURE__ */ __name((output, context) => {
1404
- return (0, import_smithy_client.take)(output, {
1405
- detectorModelConfiguration: /* @__PURE__ */ __name((_) => de_DetectorModelConfiguration(_, context), "detectorModelConfiguration"),
1406
- detectorModelDefinition: /* @__PURE__ */ __name((_) => de_DetectorModelDefinition(_, context), "detectorModelDefinition")
1407
- });
1408
- }, "de_DetectorModel");
1409
- var de_DetectorModelConfiguration = /* @__PURE__ */ __name((output, context) => {
1410
- return (0, import_smithy_client.take)(output, {
1411
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1412
- detectorModelArn: import_smithy_client.expectString,
1413
- detectorModelDescription: import_smithy_client.expectString,
1414
- detectorModelName: import_smithy_client.expectString,
1415
- detectorModelVersion: import_smithy_client.expectString,
1416
- evaluationMethod: import_smithy_client.expectString,
1417
- key: import_smithy_client.expectString,
1418
- lastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdateTime"),
1419
- roleArn: import_smithy_client.expectString,
1420
- status: import_smithy_client.expectString
1421
- });
1422
- }, "de_DetectorModelConfiguration");
1423
- var de_DetectorModelDefinition = /* @__PURE__ */ __name((output, context) => {
1424
- return (0, import_smithy_client.take)(output, {
1425
- initialStateName: import_smithy_client.expectString,
1426
- states: import_smithy_client._json
1427
- });
1428
- }, "de_DetectorModelDefinition");
1429
- var de_DetectorModelSummaries = /* @__PURE__ */ __name((output, context) => {
1430
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1431
- return de_DetectorModelSummary(entry, context);
1432
- });
1433
- return retVal;
1434
- }, "de_DetectorModelSummaries");
1435
- var de_DetectorModelSummary = /* @__PURE__ */ __name((output, context) => {
1436
- return (0, import_smithy_client.take)(output, {
1437
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1438
- detectorModelDescription: import_smithy_client.expectString,
1439
- detectorModelName: import_smithy_client.expectString
1440
- });
1441
- }, "de_DetectorModelSummary");
1442
- var de_DetectorModelVersionSummaries = /* @__PURE__ */ __name((output, context) => {
1443
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1444
- return de_DetectorModelVersionSummary(entry, context);
1445
- });
1446
- return retVal;
1447
- }, "de_DetectorModelVersionSummaries");
1448
- var de_DetectorModelVersionSummary = /* @__PURE__ */ __name((output, context) => {
1449
- return (0, import_smithy_client.take)(output, {
1450
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1451
- detectorModelArn: import_smithy_client.expectString,
1452
- detectorModelName: import_smithy_client.expectString,
1453
- detectorModelVersion: import_smithy_client.expectString,
1454
- evaluationMethod: import_smithy_client.expectString,
1455
- lastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdateTime"),
1456
- roleArn: import_smithy_client.expectString,
1457
- status: import_smithy_client.expectString
1458
- });
1459
- }, "de_DetectorModelVersionSummary");
1460
- var de_Input = /* @__PURE__ */ __name((output, context) => {
1461
- return (0, import_smithy_client.take)(output, {
1462
- inputConfiguration: /* @__PURE__ */ __name((_) => de_InputConfiguration(_, context), "inputConfiguration"),
1463
- inputDefinition: import_smithy_client._json
1464
- });
1465
- }, "de_Input");
1466
- var de_InputConfiguration = /* @__PURE__ */ __name((output, context) => {
1467
- return (0, import_smithy_client.take)(output, {
1468
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1469
- inputArn: import_smithy_client.expectString,
1470
- inputDescription: import_smithy_client.expectString,
1471
- inputName: import_smithy_client.expectString,
1472
- lastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdateTime"),
1473
- status: import_smithy_client.expectString
1474
- });
1475
- }, "de_InputConfiguration");
1476
- var de_InputSummaries = /* @__PURE__ */ __name((output, context) => {
1477
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1478
- return de_InputSummary(entry, context);
1479
- });
1480
- return retVal;
1481
- }, "de_InputSummaries");
1482
- var de_InputSummary = /* @__PURE__ */ __name((output, context) => {
1483
- return (0, import_smithy_client.take)(output, {
1484
- creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"),
1485
- inputArn: import_smithy_client.expectString,
1486
- inputDescription: import_smithy_client.expectString,
1487
- inputName: import_smithy_client.expectString,
1488
- lastUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUpdateTime"),
1489
- status: import_smithy_client.expectString
1490
- });
1491
- }, "de_InputSummary");
1492
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1493
- httpStatusCode: output.statusCode,
1494
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1495
- extendedRequestId: output.headers["x-amz-id-2"],
1496
- cfId: output.headers["x-amz-cf-id"]
1497
- }), "deserializeMetadata");
1498
- var _aMV = "alarmModelVersion";
1499
- var _dMV = "detectorModelVersion";
1500
- var _mR = "maxResults";
1501
- var _nT = "nextToken";
1502
- var _rA = "resourceArn";
1503
- var _tK = "tagKeys";
1504
- var _v = "version";
1505
-
1506
- // src/commands/CreateAlarmModelCommand.ts
1507
- var CreateAlarmModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1508
- return [
1509
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1510
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1511
- ];
1512
- }).s("IotColumboService", "CreateAlarmModel", {}).n("IoTEventsClient", "CreateAlarmModelCommand").f(void 0, void 0).ser(se_CreateAlarmModelCommand).de(de_CreateAlarmModelCommand).build() {
1513
- static {
1514
- __name(this, "CreateAlarmModelCommand");
1515
- }
138
+ const AnalysisResultLevel = {
139
+ ERROR: "ERROR",
140
+ INFO: "INFO",
141
+ WARNING: "WARNING",
1516
142
  };
1517
-
1518
- // src/commands/CreateDetectorModelCommand.ts
1519
-
1520
-
1521
-
1522
- var CreateDetectorModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1523
- return [
1524
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1525
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1526
- ];
1527
- }).s("IotColumboService", "CreateDetectorModel", {}).n("IoTEventsClient", "CreateDetectorModelCommand").f(void 0, void 0).ser(se_CreateDetectorModelCommand).de(de_CreateDetectorModelCommand).build() {
1528
- static {
1529
- __name(this, "CreateDetectorModelCommand");
1530
- }
143
+ const AnalysisStatus = {
144
+ COMPLETE: "COMPLETE",
145
+ FAILED: "FAILED",
146
+ RUNNING: "RUNNING",
1531
147
  };
1532
-
1533
- // src/commands/CreateInputCommand.ts
1534
-
1535
-
1536
-
1537
- var CreateInputCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1538
- return [
1539
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1540
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1541
- ];
1542
- }).s("IotColumboService", "CreateInput", {}).n("IoTEventsClient", "CreateInputCommand").f(void 0, void 0).ser(se_CreateInputCommand).de(de_CreateInputCommand).build() {
1543
- static {
1544
- __name(this, "CreateInputCommand");
1545
- }
148
+ class InternalFailureException extends IoTEventsServiceException {
149
+ name = "InternalFailureException";
150
+ $fault = "server";
151
+ constructor(opts) {
152
+ super({
153
+ name: "InternalFailureException",
154
+ $fault: "server",
155
+ ...opts,
156
+ });
157
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
158
+ }
159
+ }
160
+ class InvalidRequestException extends IoTEventsServiceException {
161
+ name = "InvalidRequestException";
162
+ $fault = "client";
163
+ constructor(opts) {
164
+ super({
165
+ name: "InvalidRequestException",
166
+ $fault: "client",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
170
+ }
171
+ }
172
+ class LimitExceededException extends IoTEventsServiceException {
173
+ name = "LimitExceededException";
174
+ $fault = "client";
175
+ constructor(opts) {
176
+ super({
177
+ name: "LimitExceededException",
178
+ $fault: "client",
179
+ ...opts,
180
+ });
181
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
182
+ }
183
+ }
184
+ class ResourceAlreadyExistsException extends IoTEventsServiceException {
185
+ name = "ResourceAlreadyExistsException";
186
+ $fault = "client";
187
+ resourceId;
188
+ resourceArn;
189
+ constructor(opts) {
190
+ super({
191
+ name: "ResourceAlreadyExistsException",
192
+ $fault: "client",
193
+ ...opts,
194
+ });
195
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
196
+ this.resourceId = opts.resourceId;
197
+ this.resourceArn = opts.resourceArn;
198
+ }
199
+ }
200
+ class ResourceInUseException extends IoTEventsServiceException {
201
+ name = "ResourceInUseException";
202
+ $fault = "client";
203
+ constructor(opts) {
204
+ super({
205
+ name: "ResourceInUseException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
210
+ }
211
+ }
212
+ class ServiceUnavailableException extends IoTEventsServiceException {
213
+ name = "ServiceUnavailableException";
214
+ $fault = "server";
215
+ constructor(opts) {
216
+ super({
217
+ name: "ServiceUnavailableException",
218
+ $fault: "server",
219
+ ...opts,
220
+ });
221
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
222
+ }
223
+ }
224
+ class ThrottlingException extends IoTEventsServiceException {
225
+ name = "ThrottlingException";
226
+ $fault = "client";
227
+ constructor(opts) {
228
+ super({
229
+ name: "ThrottlingException",
230
+ $fault: "client",
231
+ ...opts,
232
+ });
233
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
234
+ }
235
+ }
236
+ const EvaluationMethod = {
237
+ BATCH: "BATCH",
238
+ SERIAL: "SERIAL",
1546
239
  };
1547
-
1548
- // src/commands/DeleteAlarmModelCommand.ts
1549
-
1550
-
1551
-
1552
- var DeleteAlarmModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1553
- return [
1554
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1555
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1556
- ];
1557
- }).s("IotColumboService", "DeleteAlarmModel", {}).n("IoTEventsClient", "DeleteAlarmModelCommand").f(void 0, void 0).ser(se_DeleteAlarmModelCommand).de(de_DeleteAlarmModelCommand).build() {
1558
- static {
1559
- __name(this, "DeleteAlarmModelCommand");
1560
- }
240
+ const DetectorModelVersionStatus = {
241
+ ACTIVATING: "ACTIVATING",
242
+ ACTIVE: "ACTIVE",
243
+ DEPRECATED: "DEPRECATED",
244
+ DRAFT: "DRAFT",
245
+ FAILED: "FAILED",
246
+ INACTIVE: "INACTIVE",
247
+ PAUSED: "PAUSED",
1561
248
  };
1562
-
1563
- // src/commands/DeleteDetectorModelCommand.ts
1564
-
1565
-
1566
-
1567
- var DeleteDetectorModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1568
- return [
1569
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1570
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1571
- ];
1572
- }).s("IotColumboService", "DeleteDetectorModel", {}).n("IoTEventsClient", "DeleteDetectorModelCommand").f(void 0, void 0).ser(se_DeleteDetectorModelCommand).de(de_DeleteDetectorModelCommand).build() {
1573
- static {
1574
- __name(this, "DeleteDetectorModelCommand");
1575
- }
249
+ const InputStatus = {
250
+ ACTIVE: "ACTIVE",
251
+ CREATING: "CREATING",
252
+ DELETING: "DELETING",
253
+ UPDATING: "UPDATING",
1576
254
  };
1577
-
1578
- // src/commands/DeleteInputCommand.ts
1579
-
1580
-
1581
-
1582
- var DeleteInputCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1583
- return [
1584
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1585
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1586
- ];
1587
- }).s("IotColumboService", "DeleteInput", {}).n("IoTEventsClient", "DeleteInputCommand").f(void 0, void 0).ser(se_DeleteInputCommand).de(de_DeleteInputCommand).build() {
1588
- static {
1589
- __name(this, "DeleteInputCommand");
1590
- }
255
+ class ResourceNotFoundException extends IoTEventsServiceException {
256
+ name = "ResourceNotFoundException";
257
+ $fault = "client";
258
+ constructor(opts) {
259
+ super({
260
+ name: "ResourceNotFoundException",
261
+ $fault: "client",
262
+ ...opts,
263
+ });
264
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
265
+ }
266
+ }
267
+ const LoggingLevel = {
268
+ DEBUG: "DEBUG",
269
+ ERROR: "ERROR",
270
+ INFO: "INFO",
1591
271
  };
1592
-
1593
- // src/commands/DescribeAlarmModelCommand.ts
1594
-
1595
-
1596
-
1597
- var DescribeAlarmModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1598
- return [
1599
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1600
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1601
- ];
1602
- }).s("IotColumboService", "DescribeAlarmModel", {}).n("IoTEventsClient", "DescribeAlarmModelCommand").f(void 0, void 0).ser(se_DescribeAlarmModelCommand).de(de_DescribeAlarmModelCommand).build() {
1603
- static {
1604
- __name(this, "DescribeAlarmModelCommand");
1605
- }
272
+ class UnsupportedOperationException extends IoTEventsServiceException {
273
+ name = "UnsupportedOperationException";
274
+ $fault = "server";
275
+ constructor(opts) {
276
+ super({
277
+ name: "UnsupportedOperationException",
278
+ $fault: "server",
279
+ ...opts,
280
+ });
281
+ Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
282
+ }
283
+ }
284
+
285
+ const se_CreateAlarmModelCommand = async (input, context) => {
286
+ const b = core.requestBuilder(input, context);
287
+ const headers = {
288
+ "content-type": "application/json",
289
+ };
290
+ b.bp("/alarm-models");
291
+ let body;
292
+ body = JSON.stringify(smithyClient.take(input, {
293
+ alarmCapabilities: (_) => smithyClient._json(_),
294
+ alarmEventActions: (_) => smithyClient._json(_),
295
+ alarmModelDescription: [],
296
+ alarmModelName: [],
297
+ alarmNotification: (_) => smithyClient._json(_),
298
+ alarmRule: (_) => smithyClient._json(_),
299
+ key: [],
300
+ roleArn: [],
301
+ severity: [],
302
+ tags: (_) => smithyClient._json(_),
303
+ }));
304
+ b.m("POST").h(headers).b(body);
305
+ return b.build();
1606
306
  };
1607
-
1608
- // src/commands/DescribeDetectorModelAnalysisCommand.ts
1609
-
1610
-
1611
-
1612
- var DescribeDetectorModelAnalysisCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1613
- return [
1614
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1615
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1616
- ];
1617
- }).s("IotColumboService", "DescribeDetectorModelAnalysis", {}).n("IoTEventsClient", "DescribeDetectorModelAnalysisCommand").f(void 0, void 0).ser(se_DescribeDetectorModelAnalysisCommand).de(de_DescribeDetectorModelAnalysisCommand).build() {
1618
- static {
1619
- __name(this, "DescribeDetectorModelAnalysisCommand");
1620
- }
307
+ const se_CreateDetectorModelCommand = async (input, context) => {
308
+ const b = core.requestBuilder(input, context);
309
+ const headers = {
310
+ "content-type": "application/json",
311
+ };
312
+ b.bp("/detector-models");
313
+ let body;
314
+ body = JSON.stringify(smithyClient.take(input, {
315
+ detectorModelDefinition: (_) => se_DetectorModelDefinition(_),
316
+ detectorModelDescription: [],
317
+ detectorModelName: [],
318
+ evaluationMethod: [],
319
+ key: [],
320
+ roleArn: [],
321
+ tags: (_) => smithyClient._json(_),
322
+ }));
323
+ b.m("POST").h(headers).b(body);
324
+ return b.build();
1621
325
  };
1622
-
1623
- // src/commands/DescribeDetectorModelCommand.ts
1624
-
1625
-
1626
-
1627
- var DescribeDetectorModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1628
- return [
1629
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1630
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1631
- ];
1632
- }).s("IotColumboService", "DescribeDetectorModel", {}).n("IoTEventsClient", "DescribeDetectorModelCommand").f(void 0, void 0).ser(se_DescribeDetectorModelCommand).de(de_DescribeDetectorModelCommand).build() {
1633
- static {
1634
- __name(this, "DescribeDetectorModelCommand");
1635
- }
326
+ const se_CreateInputCommand = async (input, context) => {
327
+ const b = core.requestBuilder(input, context);
328
+ const headers = {
329
+ "content-type": "application/json",
330
+ };
331
+ b.bp("/inputs");
332
+ let body;
333
+ body = JSON.stringify(smithyClient.take(input, {
334
+ inputDefinition: (_) => smithyClient._json(_),
335
+ inputDescription: [],
336
+ inputName: [],
337
+ tags: (_) => smithyClient._json(_),
338
+ }));
339
+ b.m("POST").h(headers).b(body);
340
+ return b.build();
1636
341
  };
1637
-
1638
- // src/commands/DescribeInputCommand.ts
1639
-
1640
-
1641
-
1642
- var DescribeInputCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1643
- return [
1644
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1645
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1646
- ];
1647
- }).s("IotColumboService", "DescribeInput", {}).n("IoTEventsClient", "DescribeInputCommand").f(void 0, void 0).ser(se_DescribeInputCommand).de(de_DescribeInputCommand).build() {
1648
- static {
1649
- __name(this, "DescribeInputCommand");
1650
- }
342
+ const se_DeleteAlarmModelCommand = async (input, context) => {
343
+ const b = core.requestBuilder(input, context);
344
+ const headers = {};
345
+ b.bp("/alarm-models/{alarmModelName}");
346
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
347
+ let body;
348
+ b.m("DELETE").h(headers).b(body);
349
+ return b.build();
1651
350
  };
1652
-
1653
- // src/commands/DescribeLoggingOptionsCommand.ts
1654
-
1655
-
1656
-
1657
- var DescribeLoggingOptionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1658
- return [
1659
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1660
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1661
- ];
1662
- }).s("IotColumboService", "DescribeLoggingOptions", {}).n("IoTEventsClient", "DescribeLoggingOptionsCommand").f(void 0, void 0).ser(se_DescribeLoggingOptionsCommand).de(de_DescribeLoggingOptionsCommand).build() {
1663
- static {
1664
- __name(this, "DescribeLoggingOptionsCommand");
1665
- }
351
+ const se_DeleteDetectorModelCommand = async (input, context) => {
352
+ const b = core.requestBuilder(input, context);
353
+ const headers = {};
354
+ b.bp("/detector-models/{detectorModelName}");
355
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
356
+ let body;
357
+ b.m("DELETE").h(headers).b(body);
358
+ return b.build();
1666
359
  };
1667
-
1668
- // src/commands/GetDetectorModelAnalysisResultsCommand.ts
1669
-
1670
-
1671
-
1672
- var GetDetectorModelAnalysisResultsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1673
- return [
1674
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1675
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1676
- ];
1677
- }).s("IotColumboService", "GetDetectorModelAnalysisResults", {}).n("IoTEventsClient", "GetDetectorModelAnalysisResultsCommand").f(void 0, void 0).ser(se_GetDetectorModelAnalysisResultsCommand).de(de_GetDetectorModelAnalysisResultsCommand).build() {
1678
- static {
1679
- __name(this, "GetDetectorModelAnalysisResultsCommand");
1680
- }
360
+ const se_DeleteInputCommand = async (input, context) => {
361
+ const b = core.requestBuilder(input, context);
362
+ const headers = {};
363
+ b.bp("/inputs/{inputName}");
364
+ b.p("inputName", () => input.inputName, "{inputName}", false);
365
+ let body;
366
+ b.m("DELETE").h(headers).b(body);
367
+ return b.build();
1681
368
  };
1682
-
1683
- // src/commands/ListAlarmModelsCommand.ts
1684
-
1685
-
1686
-
1687
- var ListAlarmModelsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1688
- return [
1689
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1690
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1691
- ];
1692
- }).s("IotColumboService", "ListAlarmModels", {}).n("IoTEventsClient", "ListAlarmModelsCommand").f(void 0, void 0).ser(se_ListAlarmModelsCommand).de(de_ListAlarmModelsCommand).build() {
1693
- static {
1694
- __name(this, "ListAlarmModelsCommand");
1695
- }
369
+ const se_DescribeAlarmModelCommand = async (input, context) => {
370
+ const b = core.requestBuilder(input, context);
371
+ const headers = {};
372
+ b.bp("/alarm-models/{alarmModelName}");
373
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
374
+ const query = smithyClient.map({
375
+ [_v]: [, input[_aMV]],
376
+ });
377
+ let body;
378
+ b.m("GET").h(headers).q(query).b(body);
379
+ return b.build();
1696
380
  };
1697
-
1698
- // src/commands/ListAlarmModelVersionsCommand.ts
1699
-
1700
-
1701
-
1702
- var ListAlarmModelVersionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1703
- return [
1704
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1705
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1706
- ];
1707
- }).s("IotColumboService", "ListAlarmModelVersions", {}).n("IoTEventsClient", "ListAlarmModelVersionsCommand").f(void 0, void 0).ser(se_ListAlarmModelVersionsCommand).de(de_ListAlarmModelVersionsCommand).build() {
1708
- static {
1709
- __name(this, "ListAlarmModelVersionsCommand");
1710
- }
381
+ const se_DescribeDetectorModelCommand = async (input, context) => {
382
+ const b = core.requestBuilder(input, context);
383
+ const headers = {};
384
+ b.bp("/detector-models/{detectorModelName}");
385
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
386
+ const query = smithyClient.map({
387
+ [_v]: [, input[_dMV]],
388
+ });
389
+ let body;
390
+ b.m("GET").h(headers).q(query).b(body);
391
+ return b.build();
1711
392
  };
1712
-
1713
- // src/commands/ListDetectorModelsCommand.ts
1714
-
1715
-
1716
-
1717
- var ListDetectorModelsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1718
- return [
1719
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1720
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1721
- ];
1722
- }).s("IotColumboService", "ListDetectorModels", {}).n("IoTEventsClient", "ListDetectorModelsCommand").f(void 0, void 0).ser(se_ListDetectorModelsCommand).de(de_ListDetectorModelsCommand).build() {
1723
- static {
1724
- __name(this, "ListDetectorModelsCommand");
1725
- }
393
+ const se_DescribeDetectorModelAnalysisCommand = async (input, context) => {
394
+ const b = core.requestBuilder(input, context);
395
+ const headers = {};
396
+ b.bp("/analysis/detector-models/{analysisId}");
397
+ b.p("analysisId", () => input.analysisId, "{analysisId}", false);
398
+ let body;
399
+ b.m("GET").h(headers).b(body);
400
+ return b.build();
1726
401
  };
1727
-
1728
- // src/commands/ListDetectorModelVersionsCommand.ts
1729
-
1730
-
1731
-
1732
- var ListDetectorModelVersionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1733
- return [
1734
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1735
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1736
- ];
1737
- }).s("IotColumboService", "ListDetectorModelVersions", {}).n("IoTEventsClient", "ListDetectorModelVersionsCommand").f(void 0, void 0).ser(se_ListDetectorModelVersionsCommand).de(de_ListDetectorModelVersionsCommand).build() {
1738
- static {
1739
- __name(this, "ListDetectorModelVersionsCommand");
1740
- }
402
+ const se_DescribeInputCommand = async (input, context) => {
403
+ const b = core.requestBuilder(input, context);
404
+ const headers = {};
405
+ b.bp("/inputs/{inputName}");
406
+ b.p("inputName", () => input.inputName, "{inputName}", false);
407
+ let body;
408
+ b.m("GET").h(headers).b(body);
409
+ return b.build();
1741
410
  };
1742
-
1743
- // src/commands/ListInputRoutingsCommand.ts
1744
-
1745
-
1746
-
1747
- var ListInputRoutingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1748
- return [
1749
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1750
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1751
- ];
1752
- }).s("IotColumboService", "ListInputRoutings", {}).n("IoTEventsClient", "ListInputRoutingsCommand").f(void 0, void 0).ser(se_ListInputRoutingsCommand).de(de_ListInputRoutingsCommand).build() {
1753
- static {
1754
- __name(this, "ListInputRoutingsCommand");
1755
- }
411
+ const se_DescribeLoggingOptionsCommand = async (input, context) => {
412
+ const b = core.requestBuilder(input, context);
413
+ const headers = {};
414
+ b.bp("/logging");
415
+ let body;
416
+ b.m("GET").h(headers).b(body);
417
+ return b.build();
1756
418
  };
1757
-
1758
- // src/commands/ListInputsCommand.ts
1759
-
1760
-
1761
-
1762
- var ListInputsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1763
- return [
1764
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1765
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1766
- ];
1767
- }).s("IotColumboService", "ListInputs", {}).n("IoTEventsClient", "ListInputsCommand").f(void 0, void 0).ser(se_ListInputsCommand).de(de_ListInputsCommand).build() {
1768
- static {
1769
- __name(this, "ListInputsCommand");
1770
- }
419
+ const se_GetDetectorModelAnalysisResultsCommand = async (input, context) => {
420
+ const b = core.requestBuilder(input, context);
421
+ const headers = {};
422
+ b.bp("/analysis/detector-models/{analysisId}/results");
423
+ b.p("analysisId", () => input.analysisId, "{analysisId}", false);
424
+ const query = smithyClient.map({
425
+ [_nT]: [, input[_nT]],
426
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
427
+ });
428
+ let body;
429
+ b.m("GET").h(headers).q(query).b(body);
430
+ return b.build();
1771
431
  };
1772
-
1773
- // src/commands/ListTagsForResourceCommand.ts
1774
-
1775
-
1776
-
1777
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1778
- return [
1779
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1780
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1781
- ];
1782
- }).s("IotColumboService", "ListTagsForResource", {}).n("IoTEventsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1783
- static {
1784
- __name(this, "ListTagsForResourceCommand");
1785
- }
432
+ const se_ListAlarmModelsCommand = async (input, context) => {
433
+ const b = core.requestBuilder(input, context);
434
+ const headers = {};
435
+ b.bp("/alarm-models");
436
+ const query = smithyClient.map({
437
+ [_nT]: [, input[_nT]],
438
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
439
+ });
440
+ let body;
441
+ b.m("GET").h(headers).q(query).b(body);
442
+ return b.build();
1786
443
  };
1787
-
1788
- // src/commands/PutLoggingOptionsCommand.ts
1789
-
1790
-
1791
-
1792
- var PutLoggingOptionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1793
- return [
1794
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1795
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1796
- ];
1797
- }).s("IotColumboService", "PutLoggingOptions", {}).n("IoTEventsClient", "PutLoggingOptionsCommand").f(void 0, void 0).ser(se_PutLoggingOptionsCommand).de(de_PutLoggingOptionsCommand).build() {
1798
- static {
1799
- __name(this, "PutLoggingOptionsCommand");
1800
- }
444
+ const se_ListAlarmModelVersionsCommand = async (input, context) => {
445
+ const b = core.requestBuilder(input, context);
446
+ const headers = {};
447
+ b.bp("/alarm-models/{alarmModelName}/versions");
448
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
449
+ const query = smithyClient.map({
450
+ [_nT]: [, input[_nT]],
451
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
452
+ });
453
+ let body;
454
+ b.m("GET").h(headers).q(query).b(body);
455
+ return b.build();
1801
456
  };
1802
-
1803
- // src/commands/StartDetectorModelAnalysisCommand.ts
1804
-
1805
-
1806
-
1807
- var StartDetectorModelAnalysisCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1808
- return [
1809
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1810
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1811
- ];
1812
- }).s("IotColumboService", "StartDetectorModelAnalysis", {}).n("IoTEventsClient", "StartDetectorModelAnalysisCommand").f(void 0, void 0).ser(se_StartDetectorModelAnalysisCommand).de(de_StartDetectorModelAnalysisCommand).build() {
1813
- static {
1814
- __name(this, "StartDetectorModelAnalysisCommand");
1815
- }
457
+ const se_ListDetectorModelsCommand = async (input, context) => {
458
+ const b = core.requestBuilder(input, context);
459
+ const headers = {};
460
+ b.bp("/detector-models");
461
+ const query = smithyClient.map({
462
+ [_nT]: [, input[_nT]],
463
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
464
+ });
465
+ let body;
466
+ b.m("GET").h(headers).q(query).b(body);
467
+ return b.build();
1816
468
  };
1817
-
1818
- // src/commands/TagResourceCommand.ts
1819
-
1820
-
1821
-
1822
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1823
- return [
1824
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1825
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1826
- ];
1827
- }).s("IotColumboService", "TagResource", {}).n("IoTEventsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1828
- static {
1829
- __name(this, "TagResourceCommand");
1830
- }
469
+ const se_ListDetectorModelVersionsCommand = async (input, context) => {
470
+ const b = core.requestBuilder(input, context);
471
+ const headers = {};
472
+ b.bp("/detector-models/{detectorModelName}/versions");
473
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
474
+ const query = smithyClient.map({
475
+ [_nT]: [, input[_nT]],
476
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
477
+ });
478
+ let body;
479
+ b.m("GET").h(headers).q(query).b(body);
480
+ return b.build();
1831
481
  };
1832
-
1833
- // src/commands/UntagResourceCommand.ts
1834
-
1835
-
1836
-
1837
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1838
- return [
1839
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1840
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1841
- ];
1842
- }).s("IotColumboService", "UntagResource", {}).n("IoTEventsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1843
- static {
1844
- __name(this, "UntagResourceCommand");
1845
- }
482
+ const se_ListInputRoutingsCommand = async (input, context) => {
483
+ const b = core.requestBuilder(input, context);
484
+ const headers = {
485
+ "content-type": "application/json",
486
+ };
487
+ b.bp("/input-routings");
488
+ let body;
489
+ body = JSON.stringify(smithyClient.take(input, {
490
+ inputIdentifier: (_) => smithyClient._json(_),
491
+ maxResults: [],
492
+ nextToken: [],
493
+ }));
494
+ b.m("POST").h(headers).b(body);
495
+ return b.build();
1846
496
  };
1847
-
1848
- // src/commands/UpdateAlarmModelCommand.ts
1849
-
1850
-
1851
-
1852
- var UpdateAlarmModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1853
- return [
1854
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1855
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1856
- ];
1857
- }).s("IotColumboService", "UpdateAlarmModel", {}).n("IoTEventsClient", "UpdateAlarmModelCommand").f(void 0, void 0).ser(se_UpdateAlarmModelCommand).de(de_UpdateAlarmModelCommand).build() {
1858
- static {
1859
- __name(this, "UpdateAlarmModelCommand");
1860
- }
497
+ const se_ListInputsCommand = async (input, context) => {
498
+ const b = core.requestBuilder(input, context);
499
+ const headers = {};
500
+ b.bp("/inputs");
501
+ const query = smithyClient.map({
502
+ [_nT]: [, input[_nT]],
503
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
504
+ });
505
+ let body;
506
+ b.m("GET").h(headers).q(query).b(body);
507
+ return b.build();
1861
508
  };
1862
-
1863
- // src/commands/UpdateDetectorModelCommand.ts
1864
-
1865
-
1866
-
1867
- var UpdateDetectorModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1868
- return [
1869
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1870
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1871
- ];
1872
- }).s("IotColumboService", "UpdateDetectorModel", {}).n("IoTEventsClient", "UpdateDetectorModelCommand").f(void 0, void 0).ser(se_UpdateDetectorModelCommand).de(de_UpdateDetectorModelCommand).build() {
1873
- static {
1874
- __name(this, "UpdateDetectorModelCommand");
1875
- }
509
+ const se_ListTagsForResourceCommand = async (input, context) => {
510
+ const b = core.requestBuilder(input, context);
511
+ const headers = {};
512
+ b.bp("/tags");
513
+ const query = smithyClient.map({
514
+ [_rA]: [, smithyClient.expectNonNull(input[_rA], `resourceArn`)],
515
+ });
516
+ let body;
517
+ b.m("GET").h(headers).q(query).b(body);
518
+ return b.build();
1876
519
  };
1877
-
1878
- // src/commands/UpdateInputCommand.ts
1879
-
1880
-
1881
-
1882
- var UpdateInputCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1883
- return [
1884
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1885
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1886
- ];
1887
- }).s("IotColumboService", "UpdateInput", {}).n("IoTEventsClient", "UpdateInputCommand").f(void 0, void 0).ser(se_UpdateInputCommand).de(de_UpdateInputCommand).build() {
1888
- static {
1889
- __name(this, "UpdateInputCommand");
1890
- }
520
+ const se_PutLoggingOptionsCommand = async (input, context) => {
521
+ const b = core.requestBuilder(input, context);
522
+ const headers = {
523
+ "content-type": "application/json",
524
+ };
525
+ b.bp("/logging");
526
+ let body;
527
+ body = JSON.stringify(smithyClient.take(input, {
528
+ loggingOptions: (_) => smithyClient._json(_),
529
+ }));
530
+ b.m("PUT").h(headers).b(body);
531
+ return b.build();
1891
532
  };
1892
-
1893
- // src/IoTEvents.ts
1894
- var commands = {
1895
- CreateAlarmModelCommand,
1896
- CreateDetectorModelCommand,
1897
- CreateInputCommand,
1898
- DeleteAlarmModelCommand,
1899
- DeleteDetectorModelCommand,
1900
- DeleteInputCommand,
1901
- DescribeAlarmModelCommand,
1902
- DescribeDetectorModelCommand,
1903
- DescribeDetectorModelAnalysisCommand,
1904
- DescribeInputCommand,
1905
- DescribeLoggingOptionsCommand,
1906
- GetDetectorModelAnalysisResultsCommand,
1907
- ListAlarmModelsCommand,
1908
- ListAlarmModelVersionsCommand,
1909
- ListDetectorModelsCommand,
1910
- ListDetectorModelVersionsCommand,
1911
- ListInputRoutingsCommand,
1912
- ListInputsCommand,
1913
- ListTagsForResourceCommand,
1914
- PutLoggingOptionsCommand,
1915
- StartDetectorModelAnalysisCommand,
1916
- TagResourceCommand,
1917
- UntagResourceCommand,
1918
- UpdateAlarmModelCommand,
1919
- UpdateDetectorModelCommand,
1920
- UpdateInputCommand
1921
- };
1922
- var IoTEvents = class extends IoTEventsClient {
1923
- static {
1924
- __name(this, "IoTEvents");
1925
- }
1926
- };
1927
- (0, import_smithy_client.createAggregatedClient)(commands, IoTEvents);
1928
- // Annotate the CommonJS export names for ESM import in node:
1929
-
1930
- 0 && (module.exports = {
1931
- IoTEventsServiceException,
1932
- __Client,
1933
- IoTEventsClient,
1934
- IoTEvents,
1935
- $Command,
1936
- CreateAlarmModelCommand,
1937
- CreateDetectorModelCommand,
1938
- CreateInputCommand,
1939
- DeleteAlarmModelCommand,
1940
- DeleteDetectorModelCommand,
1941
- DeleteInputCommand,
1942
- DescribeAlarmModelCommand,
1943
- DescribeDetectorModelAnalysisCommand,
1944
- DescribeDetectorModelCommand,
1945
- DescribeInputCommand,
1946
- DescribeLoggingOptionsCommand,
1947
- GetDetectorModelAnalysisResultsCommand,
1948
- ListAlarmModelVersionsCommand,
1949
- ListAlarmModelsCommand,
1950
- ListDetectorModelVersionsCommand,
1951
- ListDetectorModelsCommand,
1952
- ListInputRoutingsCommand,
1953
- ListInputsCommand,
1954
- ListTagsForResourceCommand,
1955
- PutLoggingOptionsCommand,
1956
- StartDetectorModelAnalysisCommand,
1957
- TagResourceCommand,
1958
- UntagResourceCommand,
1959
- UpdateAlarmModelCommand,
1960
- UpdateDetectorModelCommand,
1961
- UpdateInputCommand,
1962
- PayloadType,
1963
- AlarmModelVersionStatus,
1964
- ComparisonOperator,
1965
- AnalysisResultLevel,
1966
- AnalysisStatus,
1967
- InternalFailureException,
1968
- InvalidRequestException,
1969
- LimitExceededException,
1970
- ResourceAlreadyExistsException,
1971
- ResourceInUseException,
1972
- ServiceUnavailableException,
1973
- ThrottlingException,
1974
- EvaluationMethod,
1975
- DetectorModelVersionStatus,
1976
- InputStatus,
1977
- ResourceNotFoundException,
1978
- LoggingLevel,
1979
- UnsupportedOperationException
533
+ const se_StartDetectorModelAnalysisCommand = async (input, context) => {
534
+ const b = core.requestBuilder(input, context);
535
+ const headers = {
536
+ "content-type": "application/json",
537
+ };
538
+ b.bp("/analysis/detector-models");
539
+ let body;
540
+ body = JSON.stringify(smithyClient.take(input, {
541
+ detectorModelDefinition: (_) => se_DetectorModelDefinition(_),
542
+ }));
543
+ b.m("POST").h(headers).b(body);
544
+ return b.build();
545
+ };
546
+ const se_TagResourceCommand = async (input, context) => {
547
+ const b = core.requestBuilder(input, context);
548
+ const headers = {
549
+ "content-type": "application/json",
550
+ };
551
+ b.bp("/tags");
552
+ const query = smithyClient.map({
553
+ [_rA]: [, smithyClient.expectNonNull(input[_rA], `resourceArn`)],
554
+ });
555
+ let body;
556
+ body = JSON.stringify(smithyClient.take(input, {
557
+ tags: (_) => smithyClient._json(_),
558
+ }));
559
+ b.m("POST").h(headers).q(query).b(body);
560
+ return b.build();
561
+ };
562
+ const se_UntagResourceCommand = async (input, context) => {
563
+ const b = core.requestBuilder(input, context);
564
+ const headers = {};
565
+ b.bp("/tags");
566
+ const query = smithyClient.map({
567
+ [_rA]: [, smithyClient.expectNonNull(input[_rA], `resourceArn`)],
568
+ [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
569
+ });
570
+ let body;
571
+ b.m("DELETE").h(headers).q(query).b(body);
572
+ return b.build();
573
+ };
574
+ const se_UpdateAlarmModelCommand = async (input, context) => {
575
+ const b = core.requestBuilder(input, context);
576
+ const headers = {
577
+ "content-type": "application/json",
578
+ };
579
+ b.bp("/alarm-models/{alarmModelName}");
580
+ b.p("alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
581
+ let body;
582
+ body = JSON.stringify(smithyClient.take(input, {
583
+ alarmCapabilities: (_) => smithyClient._json(_),
584
+ alarmEventActions: (_) => smithyClient._json(_),
585
+ alarmModelDescription: [],
586
+ alarmNotification: (_) => smithyClient._json(_),
587
+ alarmRule: (_) => smithyClient._json(_),
588
+ roleArn: [],
589
+ severity: [],
590
+ }));
591
+ b.m("POST").h(headers).b(body);
592
+ return b.build();
593
+ };
594
+ const se_UpdateDetectorModelCommand = async (input, context) => {
595
+ const b = core.requestBuilder(input, context);
596
+ const headers = {
597
+ "content-type": "application/json",
598
+ };
599
+ b.bp("/detector-models/{detectorModelName}");
600
+ b.p("detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
601
+ let body;
602
+ body = JSON.stringify(smithyClient.take(input, {
603
+ detectorModelDefinition: (_) => se_DetectorModelDefinition(_),
604
+ detectorModelDescription: [],
605
+ evaluationMethod: [],
606
+ roleArn: [],
607
+ }));
608
+ b.m("POST").h(headers).b(body);
609
+ return b.build();
610
+ };
611
+ const se_UpdateInputCommand = async (input, context) => {
612
+ const b = core.requestBuilder(input, context);
613
+ const headers = {
614
+ "content-type": "application/json",
615
+ };
616
+ b.bp("/inputs/{inputName}");
617
+ b.p("inputName", () => input.inputName, "{inputName}", false);
618
+ let body;
619
+ body = JSON.stringify(smithyClient.take(input, {
620
+ inputDefinition: (_) => smithyClient._json(_),
621
+ inputDescription: [],
622
+ }));
623
+ b.m("PUT").h(headers).b(body);
624
+ return b.build();
625
+ };
626
+ const de_CreateAlarmModelCommand = async (output, context) => {
627
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
628
+ return de_CommandError(output, context);
629
+ }
630
+ const contents = smithyClient.map({
631
+ $metadata: deserializeMetadata(output),
632
+ });
633
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
634
+ const doc = smithyClient.take(data, {
635
+ alarmModelArn: smithyClient.expectString,
636
+ alarmModelVersion: smithyClient.expectString,
637
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
638
+ lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
639
+ status: smithyClient.expectString,
640
+ });
641
+ Object.assign(contents, doc);
642
+ return contents;
643
+ };
644
+ const de_CreateDetectorModelCommand = async (output, context) => {
645
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
646
+ return de_CommandError(output, context);
647
+ }
648
+ const contents = smithyClient.map({
649
+ $metadata: deserializeMetadata(output),
650
+ });
651
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
652
+ const doc = smithyClient.take(data, {
653
+ detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_),
654
+ });
655
+ Object.assign(contents, doc);
656
+ return contents;
657
+ };
658
+ const de_CreateInputCommand = async (output, context) => {
659
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
660
+ return de_CommandError(output, context);
661
+ }
662
+ const contents = smithyClient.map({
663
+ $metadata: deserializeMetadata(output),
664
+ });
665
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
666
+ const doc = smithyClient.take(data, {
667
+ inputConfiguration: (_) => de_InputConfiguration(_),
668
+ });
669
+ Object.assign(contents, doc);
670
+ return contents;
671
+ };
672
+ const de_DeleteAlarmModelCommand = async (output, context) => {
673
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
674
+ return de_CommandError(output, context);
675
+ }
676
+ const contents = smithyClient.map({
677
+ $metadata: deserializeMetadata(output),
678
+ });
679
+ await smithyClient.collectBody(output.body, context);
680
+ return contents;
681
+ };
682
+ const de_DeleteDetectorModelCommand = async (output, context) => {
683
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
684
+ return de_CommandError(output, context);
685
+ }
686
+ const contents = smithyClient.map({
687
+ $metadata: deserializeMetadata(output),
688
+ });
689
+ await smithyClient.collectBody(output.body, context);
690
+ return contents;
691
+ };
692
+ const de_DeleteInputCommand = async (output, context) => {
693
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
694
+ return de_CommandError(output, context);
695
+ }
696
+ const contents = smithyClient.map({
697
+ $metadata: deserializeMetadata(output),
698
+ });
699
+ await smithyClient.collectBody(output.body, context);
700
+ return contents;
701
+ };
702
+ const de_DescribeAlarmModelCommand = async (output, context) => {
703
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
704
+ return de_CommandError(output, context);
705
+ }
706
+ const contents = smithyClient.map({
707
+ $metadata: deserializeMetadata(output),
708
+ });
709
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
710
+ const doc = smithyClient.take(data, {
711
+ alarmCapabilities: smithyClient._json,
712
+ alarmEventActions: smithyClient._json,
713
+ alarmModelArn: smithyClient.expectString,
714
+ alarmModelDescription: smithyClient.expectString,
715
+ alarmModelName: smithyClient.expectString,
716
+ alarmModelVersion: smithyClient.expectString,
717
+ alarmNotification: smithyClient._json,
718
+ alarmRule: smithyClient._json,
719
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
720
+ key: smithyClient.expectString,
721
+ lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
722
+ roleArn: smithyClient.expectString,
723
+ severity: smithyClient.expectInt32,
724
+ status: smithyClient.expectString,
725
+ statusMessage: smithyClient.expectString,
726
+ });
727
+ Object.assign(contents, doc);
728
+ return contents;
729
+ };
730
+ const de_DescribeDetectorModelCommand = async (output, context) => {
731
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
732
+ return de_CommandError(output, context);
733
+ }
734
+ const contents = smithyClient.map({
735
+ $metadata: deserializeMetadata(output),
736
+ });
737
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
738
+ const doc = smithyClient.take(data, {
739
+ detectorModel: (_) => de_DetectorModel(_),
740
+ });
741
+ Object.assign(contents, doc);
742
+ return contents;
743
+ };
744
+ const de_DescribeDetectorModelAnalysisCommand = async (output, context) => {
745
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
746
+ return de_CommandError(output, context);
747
+ }
748
+ const contents = smithyClient.map({
749
+ $metadata: deserializeMetadata(output),
750
+ });
751
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
752
+ const doc = smithyClient.take(data, {
753
+ status: smithyClient.expectString,
754
+ });
755
+ Object.assign(contents, doc);
756
+ return contents;
757
+ };
758
+ const de_DescribeInputCommand = async (output, context) => {
759
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
760
+ return de_CommandError(output, context);
761
+ }
762
+ const contents = smithyClient.map({
763
+ $metadata: deserializeMetadata(output),
764
+ });
765
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
766
+ const doc = smithyClient.take(data, {
767
+ input: (_) => de_Input(_),
768
+ });
769
+ Object.assign(contents, doc);
770
+ return contents;
771
+ };
772
+ const de_DescribeLoggingOptionsCommand = async (output, context) => {
773
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
774
+ return de_CommandError(output, context);
775
+ }
776
+ const contents = smithyClient.map({
777
+ $metadata: deserializeMetadata(output),
778
+ });
779
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
780
+ const doc = smithyClient.take(data, {
781
+ loggingOptions: smithyClient._json,
782
+ });
783
+ Object.assign(contents, doc);
784
+ return contents;
785
+ };
786
+ const de_GetDetectorModelAnalysisResultsCommand = async (output, context) => {
787
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
788
+ return de_CommandError(output, context);
789
+ }
790
+ const contents = smithyClient.map({
791
+ $metadata: deserializeMetadata(output),
792
+ });
793
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
794
+ const doc = smithyClient.take(data, {
795
+ analysisResults: smithyClient._json,
796
+ nextToken: smithyClient.expectString,
797
+ });
798
+ Object.assign(contents, doc);
799
+ return contents;
800
+ };
801
+ const de_ListAlarmModelsCommand = async (output, context) => {
802
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
803
+ return de_CommandError(output, context);
804
+ }
805
+ const contents = smithyClient.map({
806
+ $metadata: deserializeMetadata(output),
807
+ });
808
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
809
+ const doc = smithyClient.take(data, {
810
+ alarmModelSummaries: (_) => de_AlarmModelSummaries(_),
811
+ nextToken: smithyClient.expectString,
812
+ });
813
+ Object.assign(contents, doc);
814
+ return contents;
815
+ };
816
+ const de_ListAlarmModelVersionsCommand = async (output, context) => {
817
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
818
+ return de_CommandError(output, context);
819
+ }
820
+ const contents = smithyClient.map({
821
+ $metadata: deserializeMetadata(output),
822
+ });
823
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
824
+ const doc = smithyClient.take(data, {
825
+ alarmModelVersionSummaries: (_) => de_AlarmModelVersionSummaries(_),
826
+ nextToken: smithyClient.expectString,
827
+ });
828
+ Object.assign(contents, doc);
829
+ return contents;
830
+ };
831
+ const de_ListDetectorModelsCommand = async (output, context) => {
832
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
833
+ return de_CommandError(output, context);
834
+ }
835
+ const contents = smithyClient.map({
836
+ $metadata: deserializeMetadata(output),
837
+ });
838
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
839
+ const doc = smithyClient.take(data, {
840
+ detectorModelSummaries: (_) => de_DetectorModelSummaries(_),
841
+ nextToken: smithyClient.expectString,
842
+ });
843
+ Object.assign(contents, doc);
844
+ return contents;
845
+ };
846
+ const de_ListDetectorModelVersionsCommand = async (output, context) => {
847
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
848
+ return de_CommandError(output, context);
849
+ }
850
+ const contents = smithyClient.map({
851
+ $metadata: deserializeMetadata(output),
852
+ });
853
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
854
+ const doc = smithyClient.take(data, {
855
+ detectorModelVersionSummaries: (_) => de_DetectorModelVersionSummaries(_),
856
+ nextToken: smithyClient.expectString,
857
+ });
858
+ Object.assign(contents, doc);
859
+ return contents;
860
+ };
861
+ const de_ListInputRoutingsCommand = async (output, context) => {
862
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
863
+ return de_CommandError(output, context);
864
+ }
865
+ const contents = smithyClient.map({
866
+ $metadata: deserializeMetadata(output),
867
+ });
868
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
869
+ const doc = smithyClient.take(data, {
870
+ nextToken: smithyClient.expectString,
871
+ routedResources: smithyClient._json,
872
+ });
873
+ Object.assign(contents, doc);
874
+ return contents;
875
+ };
876
+ const de_ListInputsCommand = async (output, context) => {
877
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
878
+ return de_CommandError(output, context);
879
+ }
880
+ const contents = smithyClient.map({
881
+ $metadata: deserializeMetadata(output),
882
+ });
883
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
884
+ const doc = smithyClient.take(data, {
885
+ inputSummaries: (_) => de_InputSummaries(_),
886
+ nextToken: smithyClient.expectString,
887
+ });
888
+ Object.assign(contents, doc);
889
+ return contents;
890
+ };
891
+ const de_ListTagsForResourceCommand = async (output, context) => {
892
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
893
+ return de_CommandError(output, context);
894
+ }
895
+ const contents = smithyClient.map({
896
+ $metadata: deserializeMetadata(output),
897
+ });
898
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
899
+ const doc = smithyClient.take(data, {
900
+ tags: smithyClient._json,
901
+ });
902
+ Object.assign(contents, doc);
903
+ return contents;
904
+ };
905
+ const de_PutLoggingOptionsCommand = async (output, context) => {
906
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
907
+ return de_CommandError(output, context);
908
+ }
909
+ const contents = smithyClient.map({
910
+ $metadata: deserializeMetadata(output),
911
+ });
912
+ await smithyClient.collectBody(output.body, context);
913
+ return contents;
914
+ };
915
+ const de_StartDetectorModelAnalysisCommand = async (output, context) => {
916
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
917
+ return de_CommandError(output, context);
918
+ }
919
+ const contents = smithyClient.map({
920
+ $metadata: deserializeMetadata(output),
921
+ });
922
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
923
+ const doc = smithyClient.take(data, {
924
+ analysisId: smithyClient.expectString,
925
+ });
926
+ Object.assign(contents, doc);
927
+ return contents;
928
+ };
929
+ const de_TagResourceCommand = async (output, context) => {
930
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
931
+ return de_CommandError(output, context);
932
+ }
933
+ const contents = smithyClient.map({
934
+ $metadata: deserializeMetadata(output),
935
+ });
936
+ await smithyClient.collectBody(output.body, context);
937
+ return contents;
938
+ };
939
+ const de_UntagResourceCommand = async (output, context) => {
940
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
941
+ return de_CommandError(output, context);
942
+ }
943
+ const contents = smithyClient.map({
944
+ $metadata: deserializeMetadata(output),
945
+ });
946
+ await smithyClient.collectBody(output.body, context);
947
+ return contents;
948
+ };
949
+ const de_UpdateAlarmModelCommand = async (output, context) => {
950
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
951
+ return de_CommandError(output, context);
952
+ }
953
+ const contents = smithyClient.map({
954
+ $metadata: deserializeMetadata(output),
955
+ });
956
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
957
+ const doc = smithyClient.take(data, {
958
+ alarmModelArn: smithyClient.expectString,
959
+ alarmModelVersion: smithyClient.expectString,
960
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
961
+ lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
962
+ status: smithyClient.expectString,
963
+ });
964
+ Object.assign(contents, doc);
965
+ return contents;
966
+ };
967
+ const de_UpdateDetectorModelCommand = async (output, context) => {
968
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
969
+ return de_CommandError(output, context);
970
+ }
971
+ const contents = smithyClient.map({
972
+ $metadata: deserializeMetadata(output),
973
+ });
974
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
975
+ const doc = smithyClient.take(data, {
976
+ detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_),
977
+ });
978
+ Object.assign(contents, doc);
979
+ return contents;
980
+ };
981
+ const de_UpdateInputCommand = async (output, context) => {
982
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
983
+ return de_CommandError(output, context);
984
+ }
985
+ const contents = smithyClient.map({
986
+ $metadata: deserializeMetadata(output),
987
+ });
988
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
989
+ const doc = smithyClient.take(data, {
990
+ inputConfiguration: (_) => de_InputConfiguration(_),
991
+ });
992
+ Object.assign(contents, doc);
993
+ return contents;
994
+ };
995
+ const de_CommandError = async (output, context) => {
996
+ const parsedOutput = {
997
+ ...output,
998
+ body: await core$1.parseJsonErrorBody(output.body, context),
999
+ };
1000
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1001
+ switch (errorCode) {
1002
+ case "InternalFailureException":
1003
+ case "com.amazonaws.iotevents#InternalFailureException":
1004
+ throw await de_InternalFailureExceptionRes(parsedOutput);
1005
+ case "InvalidRequestException":
1006
+ case "com.amazonaws.iotevents#InvalidRequestException":
1007
+ throw await de_InvalidRequestExceptionRes(parsedOutput);
1008
+ case "LimitExceededException":
1009
+ case "com.amazonaws.iotevents#LimitExceededException":
1010
+ throw await de_LimitExceededExceptionRes(parsedOutput);
1011
+ case "ResourceAlreadyExistsException":
1012
+ case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
1013
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput);
1014
+ case "ResourceInUseException":
1015
+ case "com.amazonaws.iotevents#ResourceInUseException":
1016
+ throw await de_ResourceInUseExceptionRes(parsedOutput);
1017
+ case "ServiceUnavailableException":
1018
+ case "com.amazonaws.iotevents#ServiceUnavailableException":
1019
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput);
1020
+ case "ThrottlingException":
1021
+ case "com.amazonaws.iotevents#ThrottlingException":
1022
+ throw await de_ThrottlingExceptionRes(parsedOutput);
1023
+ case "ResourceNotFoundException":
1024
+ case "com.amazonaws.iotevents#ResourceNotFoundException":
1025
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1026
+ case "UnsupportedOperationException":
1027
+ case "com.amazonaws.iotevents#UnsupportedOperationException":
1028
+ throw await de_UnsupportedOperationExceptionRes(parsedOutput);
1029
+ default:
1030
+ const parsedBody = parsedOutput.body;
1031
+ return throwDefaultError({
1032
+ output,
1033
+ parsedBody,
1034
+ errorCode,
1035
+ });
1036
+ }
1037
+ };
1038
+ const throwDefaultError = smithyClient.withBaseException(IoTEventsServiceException);
1039
+ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
1040
+ const contents = smithyClient.map({});
1041
+ const data = parsedOutput.body;
1042
+ const doc = smithyClient.take(data, {
1043
+ message: smithyClient.expectString,
1044
+ });
1045
+ Object.assign(contents, doc);
1046
+ const exception = new InternalFailureException({
1047
+ $metadata: deserializeMetadata(parsedOutput),
1048
+ ...contents,
1049
+ });
1050
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1051
+ };
1052
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1053
+ const contents = smithyClient.map({});
1054
+ const data = parsedOutput.body;
1055
+ const doc = smithyClient.take(data, {
1056
+ message: smithyClient.expectString,
1057
+ });
1058
+ Object.assign(contents, doc);
1059
+ const exception = new InvalidRequestException({
1060
+ $metadata: deserializeMetadata(parsedOutput),
1061
+ ...contents,
1062
+ });
1063
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1064
+ };
1065
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1066
+ const contents = smithyClient.map({});
1067
+ const data = parsedOutput.body;
1068
+ const doc = smithyClient.take(data, {
1069
+ message: smithyClient.expectString,
1070
+ });
1071
+ Object.assign(contents, doc);
1072
+ const exception = new LimitExceededException({
1073
+ $metadata: deserializeMetadata(parsedOutput),
1074
+ ...contents,
1075
+ });
1076
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1077
+ };
1078
+ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1079
+ const contents = smithyClient.map({});
1080
+ const data = parsedOutput.body;
1081
+ const doc = smithyClient.take(data, {
1082
+ message: smithyClient.expectString,
1083
+ resourceArn: smithyClient.expectString,
1084
+ resourceId: smithyClient.expectString,
1085
+ });
1086
+ Object.assign(contents, doc);
1087
+ const exception = new ResourceAlreadyExistsException({
1088
+ $metadata: deserializeMetadata(parsedOutput),
1089
+ ...contents,
1090
+ });
1091
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1092
+ };
1093
+ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1094
+ const contents = smithyClient.map({});
1095
+ const data = parsedOutput.body;
1096
+ const doc = smithyClient.take(data, {
1097
+ message: smithyClient.expectString,
1098
+ });
1099
+ Object.assign(contents, doc);
1100
+ const exception = new ResourceInUseException({
1101
+ $metadata: deserializeMetadata(parsedOutput),
1102
+ ...contents,
1103
+ });
1104
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1105
+ };
1106
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1107
+ const contents = smithyClient.map({});
1108
+ const data = parsedOutput.body;
1109
+ const doc = smithyClient.take(data, {
1110
+ message: smithyClient.expectString,
1111
+ });
1112
+ Object.assign(contents, doc);
1113
+ const exception = new ResourceNotFoundException({
1114
+ $metadata: deserializeMetadata(parsedOutput),
1115
+ ...contents,
1116
+ });
1117
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1118
+ };
1119
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1120
+ const contents = smithyClient.map({});
1121
+ const data = parsedOutput.body;
1122
+ const doc = smithyClient.take(data, {
1123
+ message: smithyClient.expectString,
1124
+ });
1125
+ Object.assign(contents, doc);
1126
+ const exception = new ServiceUnavailableException({
1127
+ $metadata: deserializeMetadata(parsedOutput),
1128
+ ...contents,
1129
+ });
1130
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1131
+ };
1132
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1133
+ const contents = smithyClient.map({});
1134
+ const data = parsedOutput.body;
1135
+ const doc = smithyClient.take(data, {
1136
+ message: smithyClient.expectString,
1137
+ });
1138
+ Object.assign(contents, doc);
1139
+ const exception = new ThrottlingException({
1140
+ $metadata: deserializeMetadata(parsedOutput),
1141
+ ...contents,
1142
+ });
1143
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1144
+ };
1145
+ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
1146
+ const contents = smithyClient.map({});
1147
+ const data = parsedOutput.body;
1148
+ const doc = smithyClient.take(data, {
1149
+ message: smithyClient.expectString,
1150
+ });
1151
+ Object.assign(contents, doc);
1152
+ const exception = new UnsupportedOperationException({
1153
+ $metadata: deserializeMetadata(parsedOutput),
1154
+ ...contents,
1155
+ });
1156
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1157
+ };
1158
+ const se_DetectorModelDefinition = (input, context) => {
1159
+ return smithyClient.take(input, {
1160
+ initialStateName: [],
1161
+ states: smithyClient._json,
1162
+ });
1163
+ };
1164
+ const de_AlarmModelSummaries = (output, context) => {
1165
+ const retVal = (output || [])
1166
+ .filter((e) => e != null)
1167
+ .map((entry) => {
1168
+ return de_AlarmModelSummary(entry);
1169
+ });
1170
+ return retVal;
1171
+ };
1172
+ const de_AlarmModelSummary = (output, context) => {
1173
+ return smithyClient.take(output, {
1174
+ alarmModelDescription: smithyClient.expectString,
1175
+ alarmModelName: smithyClient.expectString,
1176
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1177
+ });
1178
+ };
1179
+ const de_AlarmModelVersionSummaries = (output, context) => {
1180
+ const retVal = (output || [])
1181
+ .filter((e) => e != null)
1182
+ .map((entry) => {
1183
+ return de_AlarmModelVersionSummary(entry);
1184
+ });
1185
+ return retVal;
1186
+ };
1187
+ const de_AlarmModelVersionSummary = (output, context) => {
1188
+ return smithyClient.take(output, {
1189
+ alarmModelArn: smithyClient.expectString,
1190
+ alarmModelName: smithyClient.expectString,
1191
+ alarmModelVersion: smithyClient.expectString,
1192
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1193
+ lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1194
+ roleArn: smithyClient.expectString,
1195
+ status: smithyClient.expectString,
1196
+ statusMessage: smithyClient.expectString,
1197
+ });
1198
+ };
1199
+ const de_DetectorModel = (output, context) => {
1200
+ return smithyClient.take(output, {
1201
+ detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_),
1202
+ detectorModelDefinition: (_) => de_DetectorModelDefinition(_),
1203
+ });
1204
+ };
1205
+ const de_DetectorModelConfiguration = (output, context) => {
1206
+ return smithyClient.take(output, {
1207
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1208
+ detectorModelArn: smithyClient.expectString,
1209
+ detectorModelDescription: smithyClient.expectString,
1210
+ detectorModelName: smithyClient.expectString,
1211
+ detectorModelVersion: smithyClient.expectString,
1212
+ evaluationMethod: smithyClient.expectString,
1213
+ key: smithyClient.expectString,
1214
+ lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1215
+ roleArn: smithyClient.expectString,
1216
+ status: smithyClient.expectString,
1217
+ });
1218
+ };
1219
+ const de_DetectorModelDefinition = (output, context) => {
1220
+ return smithyClient.take(output, {
1221
+ initialStateName: smithyClient.expectString,
1222
+ states: smithyClient._json,
1223
+ });
1224
+ };
1225
+ const de_DetectorModelSummaries = (output, context) => {
1226
+ const retVal = (output || [])
1227
+ .filter((e) => e != null)
1228
+ .map((entry) => {
1229
+ return de_DetectorModelSummary(entry);
1230
+ });
1231
+ return retVal;
1232
+ };
1233
+ const de_DetectorModelSummary = (output, context) => {
1234
+ return smithyClient.take(output, {
1235
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1236
+ detectorModelDescription: smithyClient.expectString,
1237
+ detectorModelName: smithyClient.expectString,
1238
+ });
1239
+ };
1240
+ const de_DetectorModelVersionSummaries = (output, context) => {
1241
+ const retVal = (output || [])
1242
+ .filter((e) => e != null)
1243
+ .map((entry) => {
1244
+ return de_DetectorModelVersionSummary(entry);
1245
+ });
1246
+ return retVal;
1247
+ };
1248
+ const de_DetectorModelVersionSummary = (output, context) => {
1249
+ return smithyClient.take(output, {
1250
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1251
+ detectorModelArn: smithyClient.expectString,
1252
+ detectorModelName: smithyClient.expectString,
1253
+ detectorModelVersion: smithyClient.expectString,
1254
+ evaluationMethod: smithyClient.expectString,
1255
+ lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1256
+ roleArn: smithyClient.expectString,
1257
+ status: smithyClient.expectString,
1258
+ });
1259
+ };
1260
+ const de_Input = (output, context) => {
1261
+ return smithyClient.take(output, {
1262
+ inputConfiguration: (_) => de_InputConfiguration(_),
1263
+ inputDefinition: smithyClient._json,
1264
+ });
1265
+ };
1266
+ const de_InputConfiguration = (output, context) => {
1267
+ return smithyClient.take(output, {
1268
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1269
+ inputArn: smithyClient.expectString,
1270
+ inputDescription: smithyClient.expectString,
1271
+ inputName: smithyClient.expectString,
1272
+ lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1273
+ status: smithyClient.expectString,
1274
+ });
1275
+ };
1276
+ const de_InputSummaries = (output, context) => {
1277
+ const retVal = (output || [])
1278
+ .filter((e) => e != null)
1279
+ .map((entry) => {
1280
+ return de_InputSummary(entry);
1281
+ });
1282
+ return retVal;
1283
+ };
1284
+ const de_InputSummary = (output, context) => {
1285
+ return smithyClient.take(output, {
1286
+ creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1287
+ inputArn: smithyClient.expectString,
1288
+ inputDescription: smithyClient.expectString,
1289
+ inputName: smithyClient.expectString,
1290
+ lastUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1291
+ status: smithyClient.expectString,
1292
+ });
1293
+ };
1294
+ const deserializeMetadata = (output) => ({
1295
+ httpStatusCode: output.statusCode,
1296
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1297
+ extendedRequestId: output.headers["x-amz-id-2"],
1298
+ cfId: output.headers["x-amz-cf-id"],
1980
1299
  });
1300
+ const _aMV = "alarmModelVersion";
1301
+ const _dMV = "detectorModelVersion";
1302
+ const _mR = "maxResults";
1303
+ const _nT = "nextToken";
1304
+ const _rA = "resourceArn";
1305
+ const _tK = "tagKeys";
1306
+ const _v = "version";
1307
+
1308
+ class CreateAlarmModelCommand extends smithyClient.Command
1309
+ .classBuilder()
1310
+ .ep(commonParams)
1311
+ .m(function (Command, cs, config, o) {
1312
+ return [
1313
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1314
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1315
+ ];
1316
+ })
1317
+ .s("IotColumboService", "CreateAlarmModel", {})
1318
+ .n("IoTEventsClient", "CreateAlarmModelCommand")
1319
+ .f(void 0, void 0)
1320
+ .ser(se_CreateAlarmModelCommand)
1321
+ .de(de_CreateAlarmModelCommand)
1322
+ .build() {
1323
+ }
1324
+
1325
+ class CreateDetectorModelCommand extends smithyClient.Command
1326
+ .classBuilder()
1327
+ .ep(commonParams)
1328
+ .m(function (Command, cs, config, o) {
1329
+ return [
1330
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1331
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1332
+ ];
1333
+ })
1334
+ .s("IotColumboService", "CreateDetectorModel", {})
1335
+ .n("IoTEventsClient", "CreateDetectorModelCommand")
1336
+ .f(void 0, void 0)
1337
+ .ser(se_CreateDetectorModelCommand)
1338
+ .de(de_CreateDetectorModelCommand)
1339
+ .build() {
1340
+ }
1341
+
1342
+ class CreateInputCommand extends smithyClient.Command
1343
+ .classBuilder()
1344
+ .ep(commonParams)
1345
+ .m(function (Command, cs, config, o) {
1346
+ return [
1347
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1348
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1349
+ ];
1350
+ })
1351
+ .s("IotColumboService", "CreateInput", {})
1352
+ .n("IoTEventsClient", "CreateInputCommand")
1353
+ .f(void 0, void 0)
1354
+ .ser(se_CreateInputCommand)
1355
+ .de(de_CreateInputCommand)
1356
+ .build() {
1357
+ }
1358
+
1359
+ class DeleteAlarmModelCommand extends smithyClient.Command
1360
+ .classBuilder()
1361
+ .ep(commonParams)
1362
+ .m(function (Command, cs, config, o) {
1363
+ return [
1364
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1365
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1366
+ ];
1367
+ })
1368
+ .s("IotColumboService", "DeleteAlarmModel", {})
1369
+ .n("IoTEventsClient", "DeleteAlarmModelCommand")
1370
+ .f(void 0, void 0)
1371
+ .ser(se_DeleteAlarmModelCommand)
1372
+ .de(de_DeleteAlarmModelCommand)
1373
+ .build() {
1374
+ }
1375
+
1376
+ class DeleteDetectorModelCommand extends smithyClient.Command
1377
+ .classBuilder()
1378
+ .ep(commonParams)
1379
+ .m(function (Command, cs, config, o) {
1380
+ return [
1381
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1382
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1383
+ ];
1384
+ })
1385
+ .s("IotColumboService", "DeleteDetectorModel", {})
1386
+ .n("IoTEventsClient", "DeleteDetectorModelCommand")
1387
+ .f(void 0, void 0)
1388
+ .ser(se_DeleteDetectorModelCommand)
1389
+ .de(de_DeleteDetectorModelCommand)
1390
+ .build() {
1391
+ }
1392
+
1393
+ class DeleteInputCommand extends smithyClient.Command
1394
+ .classBuilder()
1395
+ .ep(commonParams)
1396
+ .m(function (Command, cs, config, o) {
1397
+ return [
1398
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1399
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1400
+ ];
1401
+ })
1402
+ .s("IotColumboService", "DeleteInput", {})
1403
+ .n("IoTEventsClient", "DeleteInputCommand")
1404
+ .f(void 0, void 0)
1405
+ .ser(se_DeleteInputCommand)
1406
+ .de(de_DeleteInputCommand)
1407
+ .build() {
1408
+ }
1409
+
1410
+ class DescribeAlarmModelCommand extends smithyClient.Command
1411
+ .classBuilder()
1412
+ .ep(commonParams)
1413
+ .m(function (Command, cs, config, o) {
1414
+ return [
1415
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1416
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1417
+ ];
1418
+ })
1419
+ .s("IotColumboService", "DescribeAlarmModel", {})
1420
+ .n("IoTEventsClient", "DescribeAlarmModelCommand")
1421
+ .f(void 0, void 0)
1422
+ .ser(se_DescribeAlarmModelCommand)
1423
+ .de(de_DescribeAlarmModelCommand)
1424
+ .build() {
1425
+ }
1426
+
1427
+ class DescribeDetectorModelAnalysisCommand extends smithyClient.Command
1428
+ .classBuilder()
1429
+ .ep(commonParams)
1430
+ .m(function (Command, cs, config, o) {
1431
+ return [
1432
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1433
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1434
+ ];
1435
+ })
1436
+ .s("IotColumboService", "DescribeDetectorModelAnalysis", {})
1437
+ .n("IoTEventsClient", "DescribeDetectorModelAnalysisCommand")
1438
+ .f(void 0, void 0)
1439
+ .ser(se_DescribeDetectorModelAnalysisCommand)
1440
+ .de(de_DescribeDetectorModelAnalysisCommand)
1441
+ .build() {
1442
+ }
1443
+
1444
+ class DescribeDetectorModelCommand extends smithyClient.Command
1445
+ .classBuilder()
1446
+ .ep(commonParams)
1447
+ .m(function (Command, cs, config, o) {
1448
+ return [
1449
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1450
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1451
+ ];
1452
+ })
1453
+ .s("IotColumboService", "DescribeDetectorModel", {})
1454
+ .n("IoTEventsClient", "DescribeDetectorModelCommand")
1455
+ .f(void 0, void 0)
1456
+ .ser(se_DescribeDetectorModelCommand)
1457
+ .de(de_DescribeDetectorModelCommand)
1458
+ .build() {
1459
+ }
1460
+
1461
+ class DescribeInputCommand extends smithyClient.Command
1462
+ .classBuilder()
1463
+ .ep(commonParams)
1464
+ .m(function (Command, cs, config, o) {
1465
+ return [
1466
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1467
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1468
+ ];
1469
+ })
1470
+ .s("IotColumboService", "DescribeInput", {})
1471
+ .n("IoTEventsClient", "DescribeInputCommand")
1472
+ .f(void 0, void 0)
1473
+ .ser(se_DescribeInputCommand)
1474
+ .de(de_DescribeInputCommand)
1475
+ .build() {
1476
+ }
1477
+
1478
+ class DescribeLoggingOptionsCommand extends smithyClient.Command
1479
+ .classBuilder()
1480
+ .ep(commonParams)
1481
+ .m(function (Command, cs, config, o) {
1482
+ return [
1483
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1484
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1485
+ ];
1486
+ })
1487
+ .s("IotColumboService", "DescribeLoggingOptions", {})
1488
+ .n("IoTEventsClient", "DescribeLoggingOptionsCommand")
1489
+ .f(void 0, void 0)
1490
+ .ser(se_DescribeLoggingOptionsCommand)
1491
+ .de(de_DescribeLoggingOptionsCommand)
1492
+ .build() {
1493
+ }
1494
+
1495
+ class GetDetectorModelAnalysisResultsCommand extends smithyClient.Command
1496
+ .classBuilder()
1497
+ .ep(commonParams)
1498
+ .m(function (Command, cs, config, o) {
1499
+ return [
1500
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1501
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1502
+ ];
1503
+ })
1504
+ .s("IotColumboService", "GetDetectorModelAnalysisResults", {})
1505
+ .n("IoTEventsClient", "GetDetectorModelAnalysisResultsCommand")
1506
+ .f(void 0, void 0)
1507
+ .ser(se_GetDetectorModelAnalysisResultsCommand)
1508
+ .de(de_GetDetectorModelAnalysisResultsCommand)
1509
+ .build() {
1510
+ }
1511
+
1512
+ class ListAlarmModelsCommand extends smithyClient.Command
1513
+ .classBuilder()
1514
+ .ep(commonParams)
1515
+ .m(function (Command, cs, config, o) {
1516
+ return [
1517
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1518
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1519
+ ];
1520
+ })
1521
+ .s("IotColumboService", "ListAlarmModels", {})
1522
+ .n("IoTEventsClient", "ListAlarmModelsCommand")
1523
+ .f(void 0, void 0)
1524
+ .ser(se_ListAlarmModelsCommand)
1525
+ .de(de_ListAlarmModelsCommand)
1526
+ .build() {
1527
+ }
1528
+
1529
+ class ListAlarmModelVersionsCommand extends smithyClient.Command
1530
+ .classBuilder()
1531
+ .ep(commonParams)
1532
+ .m(function (Command, cs, config, o) {
1533
+ return [
1534
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1535
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1536
+ ];
1537
+ })
1538
+ .s("IotColumboService", "ListAlarmModelVersions", {})
1539
+ .n("IoTEventsClient", "ListAlarmModelVersionsCommand")
1540
+ .f(void 0, void 0)
1541
+ .ser(se_ListAlarmModelVersionsCommand)
1542
+ .de(de_ListAlarmModelVersionsCommand)
1543
+ .build() {
1544
+ }
1545
+
1546
+ class ListDetectorModelsCommand extends smithyClient.Command
1547
+ .classBuilder()
1548
+ .ep(commonParams)
1549
+ .m(function (Command, cs, config, o) {
1550
+ return [
1551
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1552
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1553
+ ];
1554
+ })
1555
+ .s("IotColumboService", "ListDetectorModels", {})
1556
+ .n("IoTEventsClient", "ListDetectorModelsCommand")
1557
+ .f(void 0, void 0)
1558
+ .ser(se_ListDetectorModelsCommand)
1559
+ .de(de_ListDetectorModelsCommand)
1560
+ .build() {
1561
+ }
1562
+
1563
+ class ListDetectorModelVersionsCommand extends smithyClient.Command
1564
+ .classBuilder()
1565
+ .ep(commonParams)
1566
+ .m(function (Command, cs, config, o) {
1567
+ return [
1568
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1569
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1570
+ ];
1571
+ })
1572
+ .s("IotColumboService", "ListDetectorModelVersions", {})
1573
+ .n("IoTEventsClient", "ListDetectorModelVersionsCommand")
1574
+ .f(void 0, void 0)
1575
+ .ser(se_ListDetectorModelVersionsCommand)
1576
+ .de(de_ListDetectorModelVersionsCommand)
1577
+ .build() {
1578
+ }
1579
+
1580
+ class ListInputRoutingsCommand extends smithyClient.Command
1581
+ .classBuilder()
1582
+ .ep(commonParams)
1583
+ .m(function (Command, cs, config, o) {
1584
+ return [
1585
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1586
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1587
+ ];
1588
+ })
1589
+ .s("IotColumboService", "ListInputRoutings", {})
1590
+ .n("IoTEventsClient", "ListInputRoutingsCommand")
1591
+ .f(void 0, void 0)
1592
+ .ser(se_ListInputRoutingsCommand)
1593
+ .de(de_ListInputRoutingsCommand)
1594
+ .build() {
1595
+ }
1596
+
1597
+ class ListInputsCommand extends smithyClient.Command
1598
+ .classBuilder()
1599
+ .ep(commonParams)
1600
+ .m(function (Command, cs, config, o) {
1601
+ return [
1602
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1603
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1604
+ ];
1605
+ })
1606
+ .s("IotColumboService", "ListInputs", {})
1607
+ .n("IoTEventsClient", "ListInputsCommand")
1608
+ .f(void 0, void 0)
1609
+ .ser(se_ListInputsCommand)
1610
+ .de(de_ListInputsCommand)
1611
+ .build() {
1612
+ }
1613
+
1614
+ class ListTagsForResourceCommand extends smithyClient.Command
1615
+ .classBuilder()
1616
+ .ep(commonParams)
1617
+ .m(function (Command, cs, config, o) {
1618
+ return [
1619
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1620
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1621
+ ];
1622
+ })
1623
+ .s("IotColumboService", "ListTagsForResource", {})
1624
+ .n("IoTEventsClient", "ListTagsForResourceCommand")
1625
+ .f(void 0, void 0)
1626
+ .ser(se_ListTagsForResourceCommand)
1627
+ .de(de_ListTagsForResourceCommand)
1628
+ .build() {
1629
+ }
1630
+
1631
+ class PutLoggingOptionsCommand extends smithyClient.Command
1632
+ .classBuilder()
1633
+ .ep(commonParams)
1634
+ .m(function (Command, cs, config, o) {
1635
+ return [
1636
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1637
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1638
+ ];
1639
+ })
1640
+ .s("IotColumboService", "PutLoggingOptions", {})
1641
+ .n("IoTEventsClient", "PutLoggingOptionsCommand")
1642
+ .f(void 0, void 0)
1643
+ .ser(se_PutLoggingOptionsCommand)
1644
+ .de(de_PutLoggingOptionsCommand)
1645
+ .build() {
1646
+ }
1647
+
1648
+ class StartDetectorModelAnalysisCommand extends smithyClient.Command
1649
+ .classBuilder()
1650
+ .ep(commonParams)
1651
+ .m(function (Command, cs, config, o) {
1652
+ return [
1653
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1654
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1655
+ ];
1656
+ })
1657
+ .s("IotColumboService", "StartDetectorModelAnalysis", {})
1658
+ .n("IoTEventsClient", "StartDetectorModelAnalysisCommand")
1659
+ .f(void 0, void 0)
1660
+ .ser(se_StartDetectorModelAnalysisCommand)
1661
+ .de(de_StartDetectorModelAnalysisCommand)
1662
+ .build() {
1663
+ }
1664
+
1665
+ class TagResourceCommand extends smithyClient.Command
1666
+ .classBuilder()
1667
+ .ep(commonParams)
1668
+ .m(function (Command, cs, config, o) {
1669
+ return [
1670
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1671
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1672
+ ];
1673
+ })
1674
+ .s("IotColumboService", "TagResource", {})
1675
+ .n("IoTEventsClient", "TagResourceCommand")
1676
+ .f(void 0, void 0)
1677
+ .ser(se_TagResourceCommand)
1678
+ .de(de_TagResourceCommand)
1679
+ .build() {
1680
+ }
1681
+
1682
+ class UntagResourceCommand extends smithyClient.Command
1683
+ .classBuilder()
1684
+ .ep(commonParams)
1685
+ .m(function (Command, cs, config, o) {
1686
+ return [
1687
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1688
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1689
+ ];
1690
+ })
1691
+ .s("IotColumboService", "UntagResource", {})
1692
+ .n("IoTEventsClient", "UntagResourceCommand")
1693
+ .f(void 0, void 0)
1694
+ .ser(se_UntagResourceCommand)
1695
+ .de(de_UntagResourceCommand)
1696
+ .build() {
1697
+ }
1698
+
1699
+ class UpdateAlarmModelCommand extends smithyClient.Command
1700
+ .classBuilder()
1701
+ .ep(commonParams)
1702
+ .m(function (Command, cs, config, o) {
1703
+ return [
1704
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1705
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1706
+ ];
1707
+ })
1708
+ .s("IotColumboService", "UpdateAlarmModel", {})
1709
+ .n("IoTEventsClient", "UpdateAlarmModelCommand")
1710
+ .f(void 0, void 0)
1711
+ .ser(se_UpdateAlarmModelCommand)
1712
+ .de(de_UpdateAlarmModelCommand)
1713
+ .build() {
1714
+ }
1715
+
1716
+ class UpdateDetectorModelCommand extends smithyClient.Command
1717
+ .classBuilder()
1718
+ .ep(commonParams)
1719
+ .m(function (Command, cs, config, o) {
1720
+ return [
1721
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1722
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1723
+ ];
1724
+ })
1725
+ .s("IotColumboService", "UpdateDetectorModel", {})
1726
+ .n("IoTEventsClient", "UpdateDetectorModelCommand")
1727
+ .f(void 0, void 0)
1728
+ .ser(se_UpdateDetectorModelCommand)
1729
+ .de(de_UpdateDetectorModelCommand)
1730
+ .build() {
1731
+ }
1732
+
1733
+ class UpdateInputCommand extends smithyClient.Command
1734
+ .classBuilder()
1735
+ .ep(commonParams)
1736
+ .m(function (Command, cs, config, o) {
1737
+ return [
1738
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1739
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1740
+ ];
1741
+ })
1742
+ .s("IotColumboService", "UpdateInput", {})
1743
+ .n("IoTEventsClient", "UpdateInputCommand")
1744
+ .f(void 0, void 0)
1745
+ .ser(se_UpdateInputCommand)
1746
+ .de(de_UpdateInputCommand)
1747
+ .build() {
1748
+ }
1749
+
1750
+ const commands = {
1751
+ CreateAlarmModelCommand,
1752
+ CreateDetectorModelCommand,
1753
+ CreateInputCommand,
1754
+ DeleteAlarmModelCommand,
1755
+ DeleteDetectorModelCommand,
1756
+ DeleteInputCommand,
1757
+ DescribeAlarmModelCommand,
1758
+ DescribeDetectorModelCommand,
1759
+ DescribeDetectorModelAnalysisCommand,
1760
+ DescribeInputCommand,
1761
+ DescribeLoggingOptionsCommand,
1762
+ GetDetectorModelAnalysisResultsCommand,
1763
+ ListAlarmModelsCommand,
1764
+ ListAlarmModelVersionsCommand,
1765
+ ListDetectorModelsCommand,
1766
+ ListDetectorModelVersionsCommand,
1767
+ ListInputRoutingsCommand,
1768
+ ListInputsCommand,
1769
+ ListTagsForResourceCommand,
1770
+ PutLoggingOptionsCommand,
1771
+ StartDetectorModelAnalysisCommand,
1772
+ TagResourceCommand,
1773
+ UntagResourceCommand,
1774
+ UpdateAlarmModelCommand,
1775
+ UpdateDetectorModelCommand,
1776
+ UpdateInputCommand,
1777
+ };
1778
+ class IoTEvents extends IoTEventsClient {
1779
+ }
1780
+ smithyClient.createAggregatedClient(commands, IoTEvents);
1981
1781
 
1782
+ Object.defineProperty(exports, "$Command", {
1783
+ enumerable: true,
1784
+ get: function () { return smithyClient.Command; }
1785
+ });
1786
+ Object.defineProperty(exports, "__Client", {
1787
+ enumerable: true,
1788
+ get: function () { return smithyClient.Client; }
1789
+ });
1790
+ exports.AlarmModelVersionStatus = AlarmModelVersionStatus;
1791
+ exports.AnalysisResultLevel = AnalysisResultLevel;
1792
+ exports.AnalysisStatus = AnalysisStatus;
1793
+ exports.ComparisonOperator = ComparisonOperator;
1794
+ exports.CreateAlarmModelCommand = CreateAlarmModelCommand;
1795
+ exports.CreateDetectorModelCommand = CreateDetectorModelCommand;
1796
+ exports.CreateInputCommand = CreateInputCommand;
1797
+ exports.DeleteAlarmModelCommand = DeleteAlarmModelCommand;
1798
+ exports.DeleteDetectorModelCommand = DeleteDetectorModelCommand;
1799
+ exports.DeleteInputCommand = DeleteInputCommand;
1800
+ exports.DescribeAlarmModelCommand = DescribeAlarmModelCommand;
1801
+ exports.DescribeDetectorModelAnalysisCommand = DescribeDetectorModelAnalysisCommand;
1802
+ exports.DescribeDetectorModelCommand = DescribeDetectorModelCommand;
1803
+ exports.DescribeInputCommand = DescribeInputCommand;
1804
+ exports.DescribeLoggingOptionsCommand = DescribeLoggingOptionsCommand;
1805
+ exports.DetectorModelVersionStatus = DetectorModelVersionStatus;
1806
+ exports.EvaluationMethod = EvaluationMethod;
1807
+ exports.GetDetectorModelAnalysisResultsCommand = GetDetectorModelAnalysisResultsCommand;
1808
+ exports.InputStatus = InputStatus;
1809
+ exports.InternalFailureException = InternalFailureException;
1810
+ exports.InvalidRequestException = InvalidRequestException;
1811
+ exports.IoTEvents = IoTEvents;
1812
+ exports.IoTEventsClient = IoTEventsClient;
1813
+ exports.IoTEventsServiceException = IoTEventsServiceException;
1814
+ exports.LimitExceededException = LimitExceededException;
1815
+ exports.ListAlarmModelVersionsCommand = ListAlarmModelVersionsCommand;
1816
+ exports.ListAlarmModelsCommand = ListAlarmModelsCommand;
1817
+ exports.ListDetectorModelVersionsCommand = ListDetectorModelVersionsCommand;
1818
+ exports.ListDetectorModelsCommand = ListDetectorModelsCommand;
1819
+ exports.ListInputRoutingsCommand = ListInputRoutingsCommand;
1820
+ exports.ListInputsCommand = ListInputsCommand;
1821
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1822
+ exports.LoggingLevel = LoggingLevel;
1823
+ exports.PayloadType = PayloadType;
1824
+ exports.PutLoggingOptionsCommand = PutLoggingOptionsCommand;
1825
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
1826
+ exports.ResourceInUseException = ResourceInUseException;
1827
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1828
+ exports.ServiceUnavailableException = ServiceUnavailableException;
1829
+ exports.StartDetectorModelAnalysisCommand = StartDetectorModelAnalysisCommand;
1830
+ exports.TagResourceCommand = TagResourceCommand;
1831
+ exports.ThrottlingException = ThrottlingException;
1832
+ exports.UnsupportedOperationException = UnsupportedOperationException;
1833
+ exports.UntagResourceCommand = UntagResourceCommand;
1834
+ exports.UpdateAlarmModelCommand = UpdateAlarmModelCommand;
1835
+ exports.UpdateDetectorModelCommand = UpdateDetectorModelCommand;
1836
+ exports.UpdateInputCommand = UpdateInputCommand;