@aws-sdk/client-iot-events 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/IoTEvents.js +30 -364
- package/dist-cjs/protocols/Aws_restJson1.js +350 -1382
- package/dist-es/IoTEvents.js +30 -364
- package/dist-es/protocols/Aws_restJson1.js +305 -1337
- package/dist-types/IoTEvents.d.ts +35 -86
- package/dist-types/ts3.4/IoTEvents.d.ts +2 -1
- package/package.json +6 -6
|
@@ -13,24 +13,18 @@ const se_CreateAlarmModelCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
...(input.alarmRule != null && { alarmRule: se_AlarmRule(input.alarmRule, context) }),
|
|
29
|
-
...(input.key != null && { key: input.key }),
|
|
30
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
31
|
-
...(input.severity != null && { severity: input.severity }),
|
|
32
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
33
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
alarmCapabilities: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
alarmEventActions: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
+
alarmModelDescription: [],
|
|
20
|
+
alarmModelName: [],
|
|
21
|
+
alarmNotification: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
+
alarmRule: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
+
key: [],
|
|
24
|
+
roleArn: [],
|
|
25
|
+
severity: [],
|
|
26
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
27
|
+
}));
|
|
34
28
|
return new protocol_http_1.HttpRequest({
|
|
35
29
|
protocol,
|
|
36
30
|
hostname,
|
|
@@ -49,17 +43,15 @@ const se_CreateDetectorModelCommand = async (input, context) => {
|
|
|
49
43
|
};
|
|
50
44
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models";
|
|
51
45
|
let body;
|
|
52
|
-
body = JSON.stringify({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
62
|
-
});
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
47
|
+
detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context),
|
|
48
|
+
detectorModelDescription: [],
|
|
49
|
+
detectorModelName: [],
|
|
50
|
+
evaluationMethod: [],
|
|
51
|
+
key: [],
|
|
52
|
+
roleArn: [],
|
|
53
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
54
|
+
}));
|
|
63
55
|
return new protocol_http_1.HttpRequest({
|
|
64
56
|
protocol,
|
|
65
57
|
hostname,
|
|
@@ -78,12 +70,12 @@ const se_CreateInputCommand = async (input, context) => {
|
|
|
78
70
|
};
|
|
79
71
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs";
|
|
80
72
|
let body;
|
|
81
|
-
body = JSON.stringify({
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
});
|
|
73
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
74
|
+
inputDefinition: (_) => (0, smithy_client_1._json)(_),
|
|
75
|
+
inputDescription: [],
|
|
76
|
+
inputName: [],
|
|
77
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
78
|
+
}));
|
|
87
79
|
return new protocol_http_1.HttpRequest({
|
|
88
80
|
protocol,
|
|
89
81
|
hostname,
|
|
@@ -151,7 +143,7 @@ const se_DescribeAlarmModelCommand = async (input, context) => {
|
|
|
151
143
|
const headers = {};
|
|
152
144
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}";
|
|
153
145
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
|
|
154
|
-
const query = map({
|
|
146
|
+
const query = (0, smithy_client_1.map)({
|
|
155
147
|
version: [, input.alarmModelVersion],
|
|
156
148
|
});
|
|
157
149
|
let body;
|
|
@@ -172,7 +164,7 @@ const se_DescribeDetectorModelCommand = async (input, context) => {
|
|
|
172
164
|
const headers = {};
|
|
173
165
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}";
|
|
174
166
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
|
|
175
|
-
const query = map({
|
|
167
|
+
const query = (0, smithy_client_1.map)({
|
|
176
168
|
version: [, input.detectorModelVersion],
|
|
177
169
|
});
|
|
178
170
|
let body;
|
|
@@ -247,7 +239,7 @@ const se_GetDetectorModelAnalysisResultsCommand = async (input, context) => {
|
|
|
247
239
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
248
240
|
"/analysis/detector-models/{analysisId}/results";
|
|
249
241
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "analysisId", () => input.analysisId, "{analysisId}", false);
|
|
250
|
-
const query = map({
|
|
242
|
+
const query = (0, smithy_client_1.map)({
|
|
251
243
|
nextToken: [, input.nextToken],
|
|
252
244
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
253
245
|
});
|
|
@@ -268,7 +260,7 @@ const se_ListAlarmModelsCommand = async (input, context) => {
|
|
|
268
260
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
261
|
const headers = {};
|
|
270
262
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models";
|
|
271
|
-
const query = map({
|
|
263
|
+
const query = (0, smithy_client_1.map)({
|
|
272
264
|
nextToken: [, input.nextToken],
|
|
273
265
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
274
266
|
});
|
|
@@ -290,7 +282,7 @@ const se_ListAlarmModelVersionsCommand = async (input, context) => {
|
|
|
290
282
|
const headers = {};
|
|
291
283
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}/versions";
|
|
292
284
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
|
|
293
|
-
const query = map({
|
|
285
|
+
const query = (0, smithy_client_1.map)({
|
|
294
286
|
nextToken: [, input.nextToken],
|
|
295
287
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
296
288
|
});
|
|
@@ -311,7 +303,7 @@ const se_ListDetectorModelsCommand = async (input, context) => {
|
|
|
311
303
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
312
304
|
const headers = {};
|
|
313
305
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models";
|
|
314
|
-
const query = map({
|
|
306
|
+
const query = (0, smithy_client_1.map)({
|
|
315
307
|
nextToken: [, input.nextToken],
|
|
316
308
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
317
309
|
});
|
|
@@ -334,7 +326,7 @@ const se_ListDetectorModelVersionsCommand = async (input, context) => {
|
|
|
334
326
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
335
327
|
"/detector-models/{detectorModelName}/versions";
|
|
336
328
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
|
|
337
|
-
const query = map({
|
|
329
|
+
const query = (0, smithy_client_1.map)({
|
|
338
330
|
nextToken: [, input.nextToken],
|
|
339
331
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
340
332
|
});
|
|
@@ -358,11 +350,11 @@ const se_ListInputRoutingsCommand = async (input, context) => {
|
|
|
358
350
|
};
|
|
359
351
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/input-routings";
|
|
360
352
|
let body;
|
|
361
|
-
body = JSON.stringify({
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
});
|
|
353
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
354
|
+
inputIdentifier: (_) => (0, smithy_client_1._json)(_),
|
|
355
|
+
maxResults: [],
|
|
356
|
+
nextToken: [],
|
|
357
|
+
}));
|
|
366
358
|
return new protocol_http_1.HttpRequest({
|
|
367
359
|
protocol,
|
|
368
360
|
hostname,
|
|
@@ -378,7 +370,7 @@ const se_ListInputsCommand = async (input, context) => {
|
|
|
378
370
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
379
371
|
const headers = {};
|
|
380
372
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs";
|
|
381
|
-
const query = map({
|
|
373
|
+
const query = (0, smithy_client_1.map)({
|
|
382
374
|
nextToken: [, input.nextToken],
|
|
383
375
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
384
376
|
});
|
|
@@ -399,7 +391,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
399
391
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
400
392
|
const headers = {};
|
|
401
393
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
402
|
-
const query = map({
|
|
394
|
+
const query = (0, smithy_client_1.map)({
|
|
403
395
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
404
396
|
});
|
|
405
397
|
let body;
|
|
@@ -422,9 +414,9 @@ const se_PutLoggingOptionsCommand = async (input, context) => {
|
|
|
422
414
|
};
|
|
423
415
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
|
|
424
416
|
let body;
|
|
425
|
-
body = JSON.stringify({
|
|
426
|
-
|
|
427
|
-
});
|
|
417
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
418
|
+
loggingOptions: (_) => (0, smithy_client_1._json)(_),
|
|
419
|
+
}));
|
|
428
420
|
return new protocol_http_1.HttpRequest({
|
|
429
421
|
protocol,
|
|
430
422
|
hostname,
|
|
@@ -443,11 +435,9 @@ const se_StartDetectorModelAnalysisCommand = async (input, context) => {
|
|
|
443
435
|
};
|
|
444
436
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analysis/detector-models";
|
|
445
437
|
let body;
|
|
446
|
-
body = JSON.stringify({
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}),
|
|
450
|
-
});
|
|
438
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
439
|
+
detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context),
|
|
440
|
+
}));
|
|
451
441
|
return new protocol_http_1.HttpRequest({
|
|
452
442
|
protocol,
|
|
453
443
|
hostname,
|
|
@@ -465,13 +455,13 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
465
455
|
"content-type": "application/json",
|
|
466
456
|
};
|
|
467
457
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
468
|
-
const query = map({
|
|
458
|
+
const query = (0, smithy_client_1.map)({
|
|
469
459
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
470
460
|
});
|
|
471
461
|
let body;
|
|
472
|
-
body = JSON.stringify({
|
|
473
|
-
|
|
474
|
-
});
|
|
462
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
463
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
464
|
+
}));
|
|
475
465
|
return new protocol_http_1.HttpRequest({
|
|
476
466
|
protocol,
|
|
477
467
|
hostname,
|
|
@@ -488,7 +478,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
488
478
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
489
479
|
const headers = {};
|
|
490
480
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
491
|
-
const query = map({
|
|
481
|
+
const query = (0, smithy_client_1.map)({
|
|
492
482
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
493
483
|
tagKeys: [
|
|
494
484
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
@@ -516,21 +506,15 @@ const se_UpdateAlarmModelCommand = async (input, context) => {
|
|
|
516
506
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}";
|
|
517
507
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
|
|
518
508
|
let body;
|
|
519
|
-
body = JSON.stringify({
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
alarmNotification: se_AlarmNotification(input.alarmNotification, context),
|
|
529
|
-
}),
|
|
530
|
-
...(input.alarmRule != null && { alarmRule: se_AlarmRule(input.alarmRule, context) }),
|
|
531
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
532
|
-
...(input.severity != null && { severity: input.severity }),
|
|
533
|
-
});
|
|
509
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
510
|
+
alarmCapabilities: (_) => (0, smithy_client_1._json)(_),
|
|
511
|
+
alarmEventActions: (_) => (0, smithy_client_1._json)(_),
|
|
512
|
+
alarmModelDescription: [],
|
|
513
|
+
alarmNotification: (_) => (0, smithy_client_1._json)(_),
|
|
514
|
+
alarmRule: (_) => (0, smithy_client_1._json)(_),
|
|
515
|
+
roleArn: [],
|
|
516
|
+
severity: [],
|
|
517
|
+
}));
|
|
534
518
|
return new protocol_http_1.HttpRequest({
|
|
535
519
|
protocol,
|
|
536
520
|
hostname,
|
|
@@ -550,14 +534,12 @@ const se_UpdateDetectorModelCommand = async (input, context) => {
|
|
|
550
534
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}";
|
|
551
535
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
|
|
552
536
|
let body;
|
|
553
|
-
body = JSON.stringify({
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
560
|
-
});
|
|
537
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
538
|
+
detectorModelDefinition: (_) => se_DetectorModelDefinition(_, context),
|
|
539
|
+
detectorModelDescription: [],
|
|
540
|
+
evaluationMethod: [],
|
|
541
|
+
roleArn: [],
|
|
542
|
+
}));
|
|
561
543
|
return new protocol_http_1.HttpRequest({
|
|
562
544
|
protocol,
|
|
563
545
|
hostname,
|
|
@@ -577,10 +559,10 @@ const se_UpdateInputCommand = async (input, context) => {
|
|
|
577
559
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/{inputName}";
|
|
578
560
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "inputName", () => input.inputName, "{inputName}", false);
|
|
579
561
|
let body;
|
|
580
|
-
body = JSON.stringify({
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
});
|
|
562
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
563
|
+
inputDefinition: (_) => (0, smithy_client_1._json)(_),
|
|
564
|
+
inputDescription: [],
|
|
565
|
+
}));
|
|
584
566
|
return new protocol_http_1.HttpRequest({
|
|
585
567
|
protocol,
|
|
586
568
|
hostname,
|
|
@@ -596,25 +578,18 @@ const de_CreateAlarmModelCommand = async (output, context) => {
|
|
|
596
578
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
597
579
|
return de_CreateAlarmModelCommandError(output, context);
|
|
598
580
|
}
|
|
599
|
-
const contents = map({
|
|
581
|
+
const contents = (0, smithy_client_1.map)({
|
|
600
582
|
$metadata: deserializeMetadata(output),
|
|
601
583
|
});
|
|
602
584
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}
|
|
612
|
-
if (data.lastUpdateTime != null) {
|
|
613
|
-
contents.lastUpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastUpdateTime)));
|
|
614
|
-
}
|
|
615
|
-
if (data.status != null) {
|
|
616
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
617
|
-
}
|
|
585
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
586
|
+
alarmModelArn: smithy_client_1.expectString,
|
|
587
|
+
alarmModelVersion: smithy_client_1.expectString,
|
|
588
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
589
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
590
|
+
status: smithy_client_1.expectString,
|
|
591
|
+
});
|
|
592
|
+
Object.assign(contents, doc);
|
|
618
593
|
return contents;
|
|
619
594
|
};
|
|
620
595
|
exports.de_CreateAlarmModelCommand = de_CreateAlarmModelCommand;
|
|
@@ -648,10 +623,9 @@ const de_CreateAlarmModelCommandError = async (output, context) => {
|
|
|
648
623
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
649
624
|
default:
|
|
650
625
|
const parsedBody = parsedOutput.body;
|
|
651
|
-
|
|
626
|
+
return throwDefaultError({
|
|
652
627
|
output,
|
|
653
628
|
parsedBody,
|
|
654
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
655
629
|
errorCode,
|
|
656
630
|
});
|
|
657
631
|
}
|
|
@@ -660,13 +634,14 @@ const de_CreateDetectorModelCommand = async (output, context) => {
|
|
|
660
634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
635
|
return de_CreateDetectorModelCommandError(output, context);
|
|
662
636
|
}
|
|
663
|
-
const contents = map({
|
|
637
|
+
const contents = (0, smithy_client_1.map)({
|
|
664
638
|
$metadata: deserializeMetadata(output),
|
|
665
639
|
});
|
|
666
640
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}
|
|
641
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
642
|
+
detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_, context),
|
|
643
|
+
});
|
|
644
|
+
Object.assign(contents, doc);
|
|
670
645
|
return contents;
|
|
671
646
|
};
|
|
672
647
|
exports.de_CreateDetectorModelCommand = de_CreateDetectorModelCommand;
|
|
@@ -700,10 +675,9 @@ const de_CreateDetectorModelCommandError = async (output, context) => {
|
|
|
700
675
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
701
676
|
default:
|
|
702
677
|
const parsedBody = parsedOutput.body;
|
|
703
|
-
|
|
678
|
+
return throwDefaultError({
|
|
704
679
|
output,
|
|
705
680
|
parsedBody,
|
|
706
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
707
681
|
errorCode,
|
|
708
682
|
});
|
|
709
683
|
}
|
|
@@ -712,13 +686,14 @@ const de_CreateInputCommand = async (output, context) => {
|
|
|
712
686
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
713
687
|
return de_CreateInputCommandError(output, context);
|
|
714
688
|
}
|
|
715
|
-
const contents = map({
|
|
689
|
+
const contents = (0, smithy_client_1.map)({
|
|
716
690
|
$metadata: deserializeMetadata(output),
|
|
717
691
|
});
|
|
718
692
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
693
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
694
|
+
inputConfiguration: (_) => de_InputConfiguration(_, context),
|
|
695
|
+
});
|
|
696
|
+
Object.assign(contents, doc);
|
|
722
697
|
return contents;
|
|
723
698
|
};
|
|
724
699
|
exports.de_CreateInputCommand = de_CreateInputCommand;
|
|
@@ -746,10 +721,9 @@ const de_CreateInputCommandError = async (output, context) => {
|
|
|
746
721
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
747
722
|
default:
|
|
748
723
|
const parsedBody = parsedOutput.body;
|
|
749
|
-
|
|
724
|
+
return throwDefaultError({
|
|
750
725
|
output,
|
|
751
726
|
parsedBody,
|
|
752
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
753
727
|
errorCode,
|
|
754
728
|
});
|
|
755
729
|
}
|
|
@@ -758,7 +732,7 @@ const de_DeleteAlarmModelCommand = async (output, context) => {
|
|
|
758
732
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
759
733
|
return de_DeleteAlarmModelCommandError(output, context);
|
|
760
734
|
}
|
|
761
|
-
const contents = map({
|
|
735
|
+
const contents = (0, smithy_client_1.map)({
|
|
762
736
|
$metadata: deserializeMetadata(output),
|
|
763
737
|
});
|
|
764
738
|
await collectBody(output.body, context);
|
|
@@ -792,10 +766,9 @@ const de_DeleteAlarmModelCommandError = async (output, context) => {
|
|
|
792
766
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
793
767
|
default:
|
|
794
768
|
const parsedBody = parsedOutput.body;
|
|
795
|
-
|
|
769
|
+
return throwDefaultError({
|
|
796
770
|
output,
|
|
797
771
|
parsedBody,
|
|
798
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
799
772
|
errorCode,
|
|
800
773
|
});
|
|
801
774
|
}
|
|
@@ -804,7 +777,7 @@ const de_DeleteDetectorModelCommand = async (output, context) => {
|
|
|
804
777
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
805
778
|
return de_DeleteDetectorModelCommandError(output, context);
|
|
806
779
|
}
|
|
807
|
-
const contents = map({
|
|
780
|
+
const contents = (0, smithy_client_1.map)({
|
|
808
781
|
$metadata: deserializeMetadata(output),
|
|
809
782
|
});
|
|
810
783
|
await collectBody(output.body, context);
|
|
@@ -838,10 +811,9 @@ const de_DeleteDetectorModelCommandError = async (output, context) => {
|
|
|
838
811
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
839
812
|
default:
|
|
840
813
|
const parsedBody = parsedOutput.body;
|
|
841
|
-
|
|
814
|
+
return throwDefaultError({
|
|
842
815
|
output,
|
|
843
816
|
parsedBody,
|
|
844
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
845
817
|
errorCode,
|
|
846
818
|
});
|
|
847
819
|
}
|
|
@@ -850,7 +822,7 @@ const de_DeleteInputCommand = async (output, context) => {
|
|
|
850
822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
851
823
|
return de_DeleteInputCommandError(output, context);
|
|
852
824
|
}
|
|
853
|
-
const contents = map({
|
|
825
|
+
const contents = (0, smithy_client_1.map)({
|
|
854
826
|
$metadata: deserializeMetadata(output),
|
|
855
827
|
});
|
|
856
828
|
await collectBody(output.body, context);
|
|
@@ -884,10 +856,9 @@ const de_DeleteInputCommandError = async (output, context) => {
|
|
|
884
856
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
885
857
|
default:
|
|
886
858
|
const parsedBody = parsedOutput.body;
|
|
887
|
-
|
|
859
|
+
return throwDefaultError({
|
|
888
860
|
output,
|
|
889
861
|
parsedBody,
|
|
890
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
891
862
|
errorCode,
|
|
892
863
|
});
|
|
893
864
|
}
|
|
@@ -896,55 +867,28 @@ const de_DescribeAlarmModelCommand = async (output, context) => {
|
|
|
896
867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
897
868
|
return de_DescribeAlarmModelCommandError(output, context);
|
|
898
869
|
}
|
|
899
|
-
const contents = map({
|
|
870
|
+
const contents = (0, smithy_client_1.map)({
|
|
900
871
|
$metadata: deserializeMetadata(output),
|
|
901
872
|
});
|
|
902
873
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
if (data.alarmNotification != null) {
|
|
922
|
-
contents.alarmNotification = de_AlarmNotification(data.alarmNotification, context);
|
|
923
|
-
}
|
|
924
|
-
if (data.alarmRule != null) {
|
|
925
|
-
contents.alarmRule = de_AlarmRule(data.alarmRule, context);
|
|
926
|
-
}
|
|
927
|
-
if (data.creationTime != null) {
|
|
928
|
-
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTime)));
|
|
929
|
-
}
|
|
930
|
-
if (data.key != null) {
|
|
931
|
-
contents.key = (0, smithy_client_1.expectString)(data.key);
|
|
932
|
-
}
|
|
933
|
-
if (data.lastUpdateTime != null) {
|
|
934
|
-
contents.lastUpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastUpdateTime)));
|
|
935
|
-
}
|
|
936
|
-
if (data.roleArn != null) {
|
|
937
|
-
contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
|
|
938
|
-
}
|
|
939
|
-
if (data.severity != null) {
|
|
940
|
-
contents.severity = (0, smithy_client_1.expectInt32)(data.severity);
|
|
941
|
-
}
|
|
942
|
-
if (data.status != null) {
|
|
943
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
944
|
-
}
|
|
945
|
-
if (data.statusMessage != null) {
|
|
946
|
-
contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
|
|
947
|
-
}
|
|
874
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
875
|
+
alarmCapabilities: smithy_client_1._json,
|
|
876
|
+
alarmEventActions: smithy_client_1._json,
|
|
877
|
+
alarmModelArn: smithy_client_1.expectString,
|
|
878
|
+
alarmModelDescription: smithy_client_1.expectString,
|
|
879
|
+
alarmModelName: smithy_client_1.expectString,
|
|
880
|
+
alarmModelVersion: smithy_client_1.expectString,
|
|
881
|
+
alarmNotification: smithy_client_1._json,
|
|
882
|
+
alarmRule: smithy_client_1._json,
|
|
883
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
884
|
+
key: smithy_client_1.expectString,
|
|
885
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
886
|
+
roleArn: smithy_client_1.expectString,
|
|
887
|
+
severity: smithy_client_1.expectInt32,
|
|
888
|
+
status: smithy_client_1.expectString,
|
|
889
|
+
statusMessage: smithy_client_1.expectString,
|
|
890
|
+
});
|
|
891
|
+
Object.assign(contents, doc);
|
|
948
892
|
return contents;
|
|
949
893
|
};
|
|
950
894
|
exports.de_DescribeAlarmModelCommand = de_DescribeAlarmModelCommand;
|
|
@@ -972,10 +916,9 @@ const de_DescribeAlarmModelCommandError = async (output, context) => {
|
|
|
972
916
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
973
917
|
default:
|
|
974
918
|
const parsedBody = parsedOutput.body;
|
|
975
|
-
|
|
919
|
+
return throwDefaultError({
|
|
976
920
|
output,
|
|
977
921
|
parsedBody,
|
|
978
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
979
922
|
errorCode,
|
|
980
923
|
});
|
|
981
924
|
}
|
|
@@ -984,13 +927,14 @@ const de_DescribeDetectorModelCommand = async (output, context) => {
|
|
|
984
927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
928
|
return de_DescribeDetectorModelCommandError(output, context);
|
|
986
929
|
}
|
|
987
|
-
const contents = map({
|
|
930
|
+
const contents = (0, smithy_client_1.map)({
|
|
988
931
|
$metadata: deserializeMetadata(output),
|
|
989
932
|
});
|
|
990
933
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
}
|
|
934
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
935
|
+
detectorModel: (_) => de_DetectorModel(_, context),
|
|
936
|
+
});
|
|
937
|
+
Object.assign(contents, doc);
|
|
994
938
|
return contents;
|
|
995
939
|
};
|
|
996
940
|
exports.de_DescribeDetectorModelCommand = de_DescribeDetectorModelCommand;
|
|
@@ -1018,10 +962,9 @@ const de_DescribeDetectorModelCommandError = async (output, context) => {
|
|
|
1018
962
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1019
963
|
default:
|
|
1020
964
|
const parsedBody = parsedOutput.body;
|
|
1021
|
-
|
|
965
|
+
return throwDefaultError({
|
|
1022
966
|
output,
|
|
1023
967
|
parsedBody,
|
|
1024
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1025
968
|
errorCode,
|
|
1026
969
|
});
|
|
1027
970
|
}
|
|
@@ -1030,13 +973,14 @@ const de_DescribeDetectorModelAnalysisCommand = async (output, context) => {
|
|
|
1030
973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
974
|
return de_DescribeDetectorModelAnalysisCommandError(output, context);
|
|
1032
975
|
}
|
|
1033
|
-
const contents = map({
|
|
976
|
+
const contents = (0, smithy_client_1.map)({
|
|
1034
977
|
$metadata: deserializeMetadata(output),
|
|
1035
978
|
});
|
|
1036
979
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
}
|
|
980
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
981
|
+
status: smithy_client_1.expectString,
|
|
982
|
+
});
|
|
983
|
+
Object.assign(contents, doc);
|
|
1040
984
|
return contents;
|
|
1041
985
|
};
|
|
1042
986
|
exports.de_DescribeDetectorModelAnalysisCommand = de_DescribeDetectorModelAnalysisCommand;
|
|
@@ -1064,10 +1008,9 @@ const de_DescribeDetectorModelAnalysisCommandError = async (output, context) =>
|
|
|
1064
1008
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1065
1009
|
default:
|
|
1066
1010
|
const parsedBody = parsedOutput.body;
|
|
1067
|
-
|
|
1011
|
+
return throwDefaultError({
|
|
1068
1012
|
output,
|
|
1069
1013
|
parsedBody,
|
|
1070
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1071
1014
|
errorCode,
|
|
1072
1015
|
});
|
|
1073
1016
|
}
|
|
@@ -1076,13 +1019,14 @@ const de_DescribeInputCommand = async (output, context) => {
|
|
|
1076
1019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1077
1020
|
return de_DescribeInputCommandError(output, context);
|
|
1078
1021
|
}
|
|
1079
|
-
const contents = map({
|
|
1022
|
+
const contents = (0, smithy_client_1.map)({
|
|
1080
1023
|
$metadata: deserializeMetadata(output),
|
|
1081
1024
|
});
|
|
1082
1025
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
}
|
|
1026
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1027
|
+
input: (_) => de_Input(_, context),
|
|
1028
|
+
});
|
|
1029
|
+
Object.assign(contents, doc);
|
|
1086
1030
|
return contents;
|
|
1087
1031
|
};
|
|
1088
1032
|
exports.de_DescribeInputCommand = de_DescribeInputCommand;
|
|
@@ -1110,10 +1054,9 @@ const de_DescribeInputCommandError = async (output, context) => {
|
|
|
1110
1054
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1111
1055
|
default:
|
|
1112
1056
|
const parsedBody = parsedOutput.body;
|
|
1113
|
-
|
|
1057
|
+
return throwDefaultError({
|
|
1114
1058
|
output,
|
|
1115
1059
|
parsedBody,
|
|
1116
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1117
1060
|
errorCode,
|
|
1118
1061
|
});
|
|
1119
1062
|
}
|
|
@@ -1122,13 +1065,14 @@ const de_DescribeLoggingOptionsCommand = async (output, context) => {
|
|
|
1122
1065
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1123
1066
|
return de_DescribeLoggingOptionsCommandError(output, context);
|
|
1124
1067
|
}
|
|
1125
|
-
const contents = map({
|
|
1068
|
+
const contents = (0, smithy_client_1.map)({
|
|
1126
1069
|
$metadata: deserializeMetadata(output),
|
|
1127
1070
|
});
|
|
1128
1071
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
}
|
|
1072
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1073
|
+
loggingOptions: smithy_client_1._json,
|
|
1074
|
+
});
|
|
1075
|
+
Object.assign(contents, doc);
|
|
1132
1076
|
return contents;
|
|
1133
1077
|
};
|
|
1134
1078
|
exports.de_DescribeLoggingOptionsCommand = de_DescribeLoggingOptionsCommand;
|
|
@@ -1159,10 +1103,9 @@ const de_DescribeLoggingOptionsCommandError = async (output, context) => {
|
|
|
1159
1103
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1160
1104
|
default:
|
|
1161
1105
|
const parsedBody = parsedOutput.body;
|
|
1162
|
-
|
|
1106
|
+
return throwDefaultError({
|
|
1163
1107
|
output,
|
|
1164
1108
|
parsedBody,
|
|
1165
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1166
1109
|
errorCode,
|
|
1167
1110
|
});
|
|
1168
1111
|
}
|
|
@@ -1171,16 +1114,15 @@ const de_GetDetectorModelAnalysisResultsCommand = async (output, context) => {
|
|
|
1171
1114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1172
1115
|
return de_GetDetectorModelAnalysisResultsCommandError(output, context);
|
|
1173
1116
|
}
|
|
1174
|
-
const contents = map({
|
|
1117
|
+
const contents = (0, smithy_client_1.map)({
|
|
1175
1118
|
$metadata: deserializeMetadata(output),
|
|
1176
1119
|
});
|
|
1177
1120
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
}
|
|
1121
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1122
|
+
analysisResults: smithy_client_1._json,
|
|
1123
|
+
nextToken: smithy_client_1.expectString,
|
|
1124
|
+
});
|
|
1125
|
+
Object.assign(contents, doc);
|
|
1184
1126
|
return contents;
|
|
1185
1127
|
};
|
|
1186
1128
|
exports.de_GetDetectorModelAnalysisResultsCommand = de_GetDetectorModelAnalysisResultsCommand;
|
|
@@ -1208,10 +1150,9 @@ const de_GetDetectorModelAnalysisResultsCommandError = async (output, context) =
|
|
|
1208
1150
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1209
1151
|
default:
|
|
1210
1152
|
const parsedBody = parsedOutput.body;
|
|
1211
|
-
|
|
1153
|
+
return throwDefaultError({
|
|
1212
1154
|
output,
|
|
1213
1155
|
parsedBody,
|
|
1214
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1215
1156
|
errorCode,
|
|
1216
1157
|
});
|
|
1217
1158
|
}
|
|
@@ -1220,16 +1161,15 @@ const de_ListAlarmModelsCommand = async (output, context) => {
|
|
|
1220
1161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
1162
|
return de_ListAlarmModelsCommandError(output, context);
|
|
1222
1163
|
}
|
|
1223
|
-
const contents = map({
|
|
1164
|
+
const contents = (0, smithy_client_1.map)({
|
|
1224
1165
|
$metadata: deserializeMetadata(output),
|
|
1225
1166
|
});
|
|
1226
1167
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
}
|
|
1168
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1169
|
+
alarmModelSummaries: (_) => de_AlarmModelSummaries(_, context),
|
|
1170
|
+
nextToken: smithy_client_1.expectString,
|
|
1171
|
+
});
|
|
1172
|
+
Object.assign(contents, doc);
|
|
1233
1173
|
return contents;
|
|
1234
1174
|
};
|
|
1235
1175
|
exports.de_ListAlarmModelsCommand = de_ListAlarmModelsCommand;
|
|
@@ -1254,10 +1194,9 @@ const de_ListAlarmModelsCommandError = async (output, context) => {
|
|
|
1254
1194
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1255
1195
|
default:
|
|
1256
1196
|
const parsedBody = parsedOutput.body;
|
|
1257
|
-
|
|
1197
|
+
return throwDefaultError({
|
|
1258
1198
|
output,
|
|
1259
1199
|
parsedBody,
|
|
1260
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1261
1200
|
errorCode,
|
|
1262
1201
|
});
|
|
1263
1202
|
}
|
|
@@ -1266,16 +1205,15 @@ const de_ListAlarmModelVersionsCommand = async (output, context) => {
|
|
|
1266
1205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
1206
|
return de_ListAlarmModelVersionsCommandError(output, context);
|
|
1268
1207
|
}
|
|
1269
|
-
const contents = map({
|
|
1208
|
+
const contents = (0, smithy_client_1.map)({
|
|
1270
1209
|
$metadata: deserializeMetadata(output),
|
|
1271
1210
|
});
|
|
1272
1211
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
}
|
|
1212
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1213
|
+
alarmModelVersionSummaries: (_) => de_AlarmModelVersionSummaries(_, context),
|
|
1214
|
+
nextToken: smithy_client_1.expectString,
|
|
1215
|
+
});
|
|
1216
|
+
Object.assign(contents, doc);
|
|
1279
1217
|
return contents;
|
|
1280
1218
|
};
|
|
1281
1219
|
exports.de_ListAlarmModelVersionsCommand = de_ListAlarmModelVersionsCommand;
|
|
@@ -1303,10 +1241,9 @@ const de_ListAlarmModelVersionsCommandError = async (output, context) => {
|
|
|
1303
1241
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1304
1242
|
default:
|
|
1305
1243
|
const parsedBody = parsedOutput.body;
|
|
1306
|
-
|
|
1244
|
+
return throwDefaultError({
|
|
1307
1245
|
output,
|
|
1308
1246
|
parsedBody,
|
|
1309
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1310
1247
|
errorCode,
|
|
1311
1248
|
});
|
|
1312
1249
|
}
|
|
@@ -1315,16 +1252,15 @@ const de_ListDetectorModelsCommand = async (output, context) => {
|
|
|
1315
1252
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1316
1253
|
return de_ListDetectorModelsCommandError(output, context);
|
|
1317
1254
|
}
|
|
1318
|
-
const contents = map({
|
|
1255
|
+
const contents = (0, smithy_client_1.map)({
|
|
1319
1256
|
$metadata: deserializeMetadata(output),
|
|
1320
1257
|
});
|
|
1321
1258
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
}
|
|
1259
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1260
|
+
detectorModelSummaries: (_) => de_DetectorModelSummaries(_, context),
|
|
1261
|
+
nextToken: smithy_client_1.expectString,
|
|
1262
|
+
});
|
|
1263
|
+
Object.assign(contents, doc);
|
|
1328
1264
|
return contents;
|
|
1329
1265
|
};
|
|
1330
1266
|
exports.de_ListDetectorModelsCommand = de_ListDetectorModelsCommand;
|
|
@@ -1349,10 +1285,9 @@ const de_ListDetectorModelsCommandError = async (output, context) => {
|
|
|
1349
1285
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1350
1286
|
default:
|
|
1351
1287
|
const parsedBody = parsedOutput.body;
|
|
1352
|
-
|
|
1288
|
+
return throwDefaultError({
|
|
1353
1289
|
output,
|
|
1354
1290
|
parsedBody,
|
|
1355
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1356
1291
|
errorCode,
|
|
1357
1292
|
});
|
|
1358
1293
|
}
|
|
@@ -1361,16 +1296,15 @@ const de_ListDetectorModelVersionsCommand = async (output, context) => {
|
|
|
1361
1296
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1362
1297
|
return de_ListDetectorModelVersionsCommandError(output, context);
|
|
1363
1298
|
}
|
|
1364
|
-
const contents = map({
|
|
1299
|
+
const contents = (0, smithy_client_1.map)({
|
|
1365
1300
|
$metadata: deserializeMetadata(output),
|
|
1366
1301
|
});
|
|
1367
1302
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
}
|
|
1303
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1304
|
+
detectorModelVersionSummaries: (_) => de_DetectorModelVersionSummaries(_, context),
|
|
1305
|
+
nextToken: smithy_client_1.expectString,
|
|
1306
|
+
});
|
|
1307
|
+
Object.assign(contents, doc);
|
|
1374
1308
|
return contents;
|
|
1375
1309
|
};
|
|
1376
1310
|
exports.de_ListDetectorModelVersionsCommand = de_ListDetectorModelVersionsCommand;
|
|
@@ -1398,10 +1332,9 @@ const de_ListDetectorModelVersionsCommandError = async (output, context) => {
|
|
|
1398
1332
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1399
1333
|
default:
|
|
1400
1334
|
const parsedBody = parsedOutput.body;
|
|
1401
|
-
|
|
1335
|
+
return throwDefaultError({
|
|
1402
1336
|
output,
|
|
1403
1337
|
parsedBody,
|
|
1404
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1405
1338
|
errorCode,
|
|
1406
1339
|
});
|
|
1407
1340
|
}
|
|
@@ -1410,16 +1343,15 @@ const de_ListInputRoutingsCommand = async (output, context) => {
|
|
|
1410
1343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1411
1344
|
return de_ListInputRoutingsCommandError(output, context);
|
|
1412
1345
|
}
|
|
1413
|
-
const contents = map({
|
|
1346
|
+
const contents = (0, smithy_client_1.map)({
|
|
1414
1347
|
$metadata: deserializeMetadata(output),
|
|
1415
1348
|
});
|
|
1416
1349
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
}
|
|
1350
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1351
|
+
nextToken: smithy_client_1.expectString,
|
|
1352
|
+
routedResources: smithy_client_1._json,
|
|
1353
|
+
});
|
|
1354
|
+
Object.assign(contents, doc);
|
|
1423
1355
|
return contents;
|
|
1424
1356
|
};
|
|
1425
1357
|
exports.de_ListInputRoutingsCommand = de_ListInputRoutingsCommand;
|
|
@@ -1447,10 +1379,9 @@ const de_ListInputRoutingsCommandError = async (output, context) => {
|
|
|
1447
1379
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1448
1380
|
default:
|
|
1449
1381
|
const parsedBody = parsedOutput.body;
|
|
1450
|
-
|
|
1382
|
+
return throwDefaultError({
|
|
1451
1383
|
output,
|
|
1452
1384
|
parsedBody,
|
|
1453
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1454
1385
|
errorCode,
|
|
1455
1386
|
});
|
|
1456
1387
|
}
|
|
@@ -1459,16 +1390,15 @@ const de_ListInputsCommand = async (output, context) => {
|
|
|
1459
1390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1460
1391
|
return de_ListInputsCommandError(output, context);
|
|
1461
1392
|
}
|
|
1462
|
-
const contents = map({
|
|
1393
|
+
const contents = (0, smithy_client_1.map)({
|
|
1463
1394
|
$metadata: deserializeMetadata(output),
|
|
1464
1395
|
});
|
|
1465
1396
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
}
|
|
1397
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1398
|
+
inputSummaries: (_) => de_InputSummaries(_, context),
|
|
1399
|
+
nextToken: smithy_client_1.expectString,
|
|
1400
|
+
});
|
|
1401
|
+
Object.assign(contents, doc);
|
|
1472
1402
|
return contents;
|
|
1473
1403
|
};
|
|
1474
1404
|
exports.de_ListInputsCommand = de_ListInputsCommand;
|
|
@@ -1493,10 +1423,9 @@ const de_ListInputsCommandError = async (output, context) => {
|
|
|
1493
1423
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1494
1424
|
default:
|
|
1495
1425
|
const parsedBody = parsedOutput.body;
|
|
1496
|
-
|
|
1426
|
+
return throwDefaultError({
|
|
1497
1427
|
output,
|
|
1498
1428
|
parsedBody,
|
|
1499
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1500
1429
|
errorCode,
|
|
1501
1430
|
});
|
|
1502
1431
|
}
|
|
@@ -1505,13 +1434,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1505
1434
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1506
1435
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1507
1436
|
}
|
|
1508
|
-
const contents = map({
|
|
1437
|
+
const contents = (0, smithy_client_1.map)({
|
|
1509
1438
|
$metadata: deserializeMetadata(output),
|
|
1510
1439
|
});
|
|
1511
1440
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
}
|
|
1441
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1442
|
+
tags: smithy_client_1._json,
|
|
1443
|
+
});
|
|
1444
|
+
Object.assign(contents, doc);
|
|
1515
1445
|
return contents;
|
|
1516
1446
|
};
|
|
1517
1447
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1539,10 +1469,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1539
1469
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1540
1470
|
default:
|
|
1541
1471
|
const parsedBody = parsedOutput.body;
|
|
1542
|
-
|
|
1472
|
+
return throwDefaultError({
|
|
1543
1473
|
output,
|
|
1544
1474
|
parsedBody,
|
|
1545
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1546
1475
|
errorCode,
|
|
1547
1476
|
});
|
|
1548
1477
|
}
|
|
@@ -1551,7 +1480,7 @@ const de_PutLoggingOptionsCommand = async (output, context) => {
|
|
|
1551
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1552
1481
|
return de_PutLoggingOptionsCommandError(output, context);
|
|
1553
1482
|
}
|
|
1554
|
-
const contents = map({
|
|
1483
|
+
const contents = (0, smithy_client_1.map)({
|
|
1555
1484
|
$metadata: deserializeMetadata(output),
|
|
1556
1485
|
});
|
|
1557
1486
|
await collectBody(output.body, context);
|
|
@@ -1585,10 +1514,9 @@ const de_PutLoggingOptionsCommandError = async (output, context) => {
|
|
|
1585
1514
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1586
1515
|
default:
|
|
1587
1516
|
const parsedBody = parsedOutput.body;
|
|
1588
|
-
|
|
1517
|
+
return throwDefaultError({
|
|
1589
1518
|
output,
|
|
1590
1519
|
parsedBody,
|
|
1591
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1592
1520
|
errorCode,
|
|
1593
1521
|
});
|
|
1594
1522
|
}
|
|
@@ -1597,13 +1525,14 @@ const de_StartDetectorModelAnalysisCommand = async (output, context) => {
|
|
|
1597
1525
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1598
1526
|
return de_StartDetectorModelAnalysisCommandError(output, context);
|
|
1599
1527
|
}
|
|
1600
|
-
const contents = map({
|
|
1528
|
+
const contents = (0, smithy_client_1.map)({
|
|
1601
1529
|
$metadata: deserializeMetadata(output),
|
|
1602
1530
|
});
|
|
1603
1531
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
}
|
|
1532
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1533
|
+
analysisId: smithy_client_1.expectString,
|
|
1534
|
+
});
|
|
1535
|
+
Object.assign(contents, doc);
|
|
1607
1536
|
return contents;
|
|
1608
1537
|
};
|
|
1609
1538
|
exports.de_StartDetectorModelAnalysisCommand = de_StartDetectorModelAnalysisCommand;
|
|
@@ -1631,10 +1560,9 @@ const de_StartDetectorModelAnalysisCommandError = async (output, context) => {
|
|
|
1631
1560
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1632
1561
|
default:
|
|
1633
1562
|
const parsedBody = parsedOutput.body;
|
|
1634
|
-
|
|
1563
|
+
return throwDefaultError({
|
|
1635
1564
|
output,
|
|
1636
1565
|
parsedBody,
|
|
1637
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1638
1566
|
errorCode,
|
|
1639
1567
|
});
|
|
1640
1568
|
}
|
|
@@ -1643,7 +1571,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1643
1571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1644
1572
|
return de_TagResourceCommandError(output, context);
|
|
1645
1573
|
}
|
|
1646
|
-
const contents = map({
|
|
1574
|
+
const contents = (0, smithy_client_1.map)({
|
|
1647
1575
|
$metadata: deserializeMetadata(output),
|
|
1648
1576
|
});
|
|
1649
1577
|
await collectBody(output.body, context);
|
|
@@ -1677,10 +1605,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1677
1605
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1678
1606
|
default:
|
|
1679
1607
|
const parsedBody = parsedOutput.body;
|
|
1680
|
-
|
|
1608
|
+
return throwDefaultError({
|
|
1681
1609
|
output,
|
|
1682
1610
|
parsedBody,
|
|
1683
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1684
1611
|
errorCode,
|
|
1685
1612
|
});
|
|
1686
1613
|
}
|
|
@@ -1689,7 +1616,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1689
1616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1690
1617
|
return de_UntagResourceCommandError(output, context);
|
|
1691
1618
|
}
|
|
1692
|
-
const contents = map({
|
|
1619
|
+
const contents = (0, smithy_client_1.map)({
|
|
1693
1620
|
$metadata: deserializeMetadata(output),
|
|
1694
1621
|
});
|
|
1695
1622
|
await collectBody(output.body, context);
|
|
@@ -1720,10 +1647,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1720
1647
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1721
1648
|
default:
|
|
1722
1649
|
const parsedBody = parsedOutput.body;
|
|
1723
|
-
|
|
1650
|
+
return throwDefaultError({
|
|
1724
1651
|
output,
|
|
1725
1652
|
parsedBody,
|
|
1726
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1727
1653
|
errorCode,
|
|
1728
1654
|
});
|
|
1729
1655
|
}
|
|
@@ -1732,25 +1658,18 @@ const de_UpdateAlarmModelCommand = async (output, context) => {
|
|
|
1732
1658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1733
1659
|
return de_UpdateAlarmModelCommandError(output, context);
|
|
1734
1660
|
}
|
|
1735
|
-
const contents = map({
|
|
1661
|
+
const contents = (0, smithy_client_1.map)({
|
|
1736
1662
|
$metadata: deserializeMetadata(output),
|
|
1737
1663
|
});
|
|
1738
1664
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
}
|
|
1748
|
-
if (data.lastUpdateTime != null) {
|
|
1749
|
-
contents.lastUpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastUpdateTime)));
|
|
1750
|
-
}
|
|
1751
|
-
if (data.status != null) {
|
|
1752
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1753
|
-
}
|
|
1665
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1666
|
+
alarmModelArn: smithy_client_1.expectString,
|
|
1667
|
+
alarmModelVersion: smithy_client_1.expectString,
|
|
1668
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1669
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1670
|
+
status: smithy_client_1.expectString,
|
|
1671
|
+
});
|
|
1672
|
+
Object.assign(contents, doc);
|
|
1754
1673
|
return contents;
|
|
1755
1674
|
};
|
|
1756
1675
|
exports.de_UpdateAlarmModelCommand = de_UpdateAlarmModelCommand;
|
|
@@ -1781,10 +1700,9 @@ const de_UpdateAlarmModelCommandError = async (output, context) => {
|
|
|
1781
1700
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1782
1701
|
default:
|
|
1783
1702
|
const parsedBody = parsedOutput.body;
|
|
1784
|
-
|
|
1703
|
+
return throwDefaultError({
|
|
1785
1704
|
output,
|
|
1786
1705
|
parsedBody,
|
|
1787
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1788
1706
|
errorCode,
|
|
1789
1707
|
});
|
|
1790
1708
|
}
|
|
@@ -1793,13 +1711,14 @@ const de_UpdateDetectorModelCommand = async (output, context) => {
|
|
|
1793
1711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1794
1712
|
return de_UpdateDetectorModelCommandError(output, context);
|
|
1795
1713
|
}
|
|
1796
|
-
const contents = map({
|
|
1714
|
+
const contents = (0, smithy_client_1.map)({
|
|
1797
1715
|
$metadata: deserializeMetadata(output),
|
|
1798
1716
|
});
|
|
1799
1717
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
}
|
|
1718
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1719
|
+
detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_, context),
|
|
1720
|
+
});
|
|
1721
|
+
Object.assign(contents, doc);
|
|
1803
1722
|
return contents;
|
|
1804
1723
|
};
|
|
1805
1724
|
exports.de_UpdateDetectorModelCommand = de_UpdateDetectorModelCommand;
|
|
@@ -1830,10 +1749,9 @@ const de_UpdateDetectorModelCommandError = async (output, context) => {
|
|
|
1830
1749
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1831
1750
|
default:
|
|
1832
1751
|
const parsedBody = parsedOutput.body;
|
|
1833
|
-
|
|
1752
|
+
return throwDefaultError({
|
|
1834
1753
|
output,
|
|
1835
1754
|
parsedBody,
|
|
1836
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1837
1755
|
errorCode,
|
|
1838
1756
|
});
|
|
1839
1757
|
}
|
|
@@ -1842,13 +1760,14 @@ const de_UpdateInputCommand = async (output, context) => {
|
|
|
1842
1760
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1843
1761
|
return de_UpdateInputCommandError(output, context);
|
|
1844
1762
|
}
|
|
1845
|
-
const contents = map({
|
|
1763
|
+
const contents = (0, smithy_client_1.map)({
|
|
1846
1764
|
$metadata: deserializeMetadata(output),
|
|
1847
1765
|
});
|
|
1848
1766
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
}
|
|
1767
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1768
|
+
inputConfiguration: (_) => de_InputConfiguration(_, context),
|
|
1769
|
+
});
|
|
1770
|
+
Object.assign(contents, doc);
|
|
1852
1771
|
return contents;
|
|
1853
1772
|
};
|
|
1854
1773
|
exports.de_UpdateInputCommand = de_UpdateInputCommand;
|
|
@@ -1879,21 +1798,21 @@ const de_UpdateInputCommandError = async (output, context) => {
|
|
|
1879
1798
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1880
1799
|
default:
|
|
1881
1800
|
const parsedBody = parsedOutput.body;
|
|
1882
|
-
|
|
1801
|
+
return throwDefaultError({
|
|
1883
1802
|
output,
|
|
1884
1803
|
parsedBody,
|
|
1885
|
-
exceptionCtor: IoTEventsServiceException_1.IoTEventsServiceException,
|
|
1886
1804
|
errorCode,
|
|
1887
1805
|
});
|
|
1888
1806
|
}
|
|
1889
1807
|
};
|
|
1890
|
-
const
|
|
1808
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(IoTEventsServiceException_1.IoTEventsServiceException);
|
|
1891
1809
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1892
|
-
const contents = map({});
|
|
1810
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1893
1811
|
const data = parsedOutput.body;
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
}
|
|
1812
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1813
|
+
message: smithy_client_1.expectString,
|
|
1814
|
+
});
|
|
1815
|
+
Object.assign(contents, doc);
|
|
1897
1816
|
const exception = new models_0_1.InternalFailureException({
|
|
1898
1817
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1899
1818
|
...contents,
|
|
@@ -1901,11 +1820,12 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
1901
1820
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1902
1821
|
};
|
|
1903
1822
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1904
|
-
const contents = map({});
|
|
1823
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1905
1824
|
const data = parsedOutput.body;
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
}
|
|
1825
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1826
|
+
message: smithy_client_1.expectString,
|
|
1827
|
+
});
|
|
1828
|
+
Object.assign(contents, doc);
|
|
1909
1829
|
const exception = new models_0_1.InvalidRequestException({
|
|
1910
1830
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1911
1831
|
...contents,
|
|
@@ -1913,11 +1833,12 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1913
1833
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1914
1834
|
};
|
|
1915
1835
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1916
|
-
const contents = map({});
|
|
1836
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1917
1837
|
const data = parsedOutput.body;
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
}
|
|
1838
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1839
|
+
message: smithy_client_1.expectString,
|
|
1840
|
+
});
|
|
1841
|
+
Object.assign(contents, doc);
|
|
1921
1842
|
const exception = new models_0_1.LimitExceededException({
|
|
1922
1843
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1923
1844
|
...contents,
|
|
@@ -1925,17 +1846,14 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1925
1846
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1926
1847
|
};
|
|
1927
1848
|
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1928
|
-
const contents = map({});
|
|
1849
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1929
1850
|
const data = parsedOutput.body;
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
if (data.resourceId != null) {
|
|
1937
|
-
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
1938
|
-
}
|
|
1851
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1852
|
+
message: smithy_client_1.expectString,
|
|
1853
|
+
resourceArn: smithy_client_1.expectString,
|
|
1854
|
+
resourceId: smithy_client_1.expectString,
|
|
1855
|
+
});
|
|
1856
|
+
Object.assign(contents, doc);
|
|
1939
1857
|
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
1940
1858
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1941
1859
|
...contents,
|
|
@@ -1943,11 +1861,12 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1943
1861
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1944
1862
|
};
|
|
1945
1863
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1946
|
-
const contents = map({});
|
|
1864
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1947
1865
|
const data = parsedOutput.body;
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
}
|
|
1866
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1867
|
+
message: smithy_client_1.expectString,
|
|
1868
|
+
});
|
|
1869
|
+
Object.assign(contents, doc);
|
|
1951
1870
|
const exception = new models_0_1.ResourceInUseException({
|
|
1952
1871
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1953
1872
|
...contents,
|
|
@@ -1955,11 +1874,12 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
1955
1874
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1956
1875
|
};
|
|
1957
1876
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1958
|
-
const contents = map({});
|
|
1877
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1959
1878
|
const data = parsedOutput.body;
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
}
|
|
1879
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1880
|
+
message: smithy_client_1.expectString,
|
|
1881
|
+
});
|
|
1882
|
+
Object.assign(contents, doc);
|
|
1963
1883
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1964
1884
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1965
1885
|
...contents,
|
|
@@ -1967,11 +1887,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1967
1887
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1968
1888
|
};
|
|
1969
1889
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1970
|
-
const contents = map({});
|
|
1890
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1971
1891
|
const data = parsedOutput.body;
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
}
|
|
1892
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1893
|
+
message: smithy_client_1.expectString,
|
|
1894
|
+
});
|
|
1895
|
+
Object.assign(contents, doc);
|
|
1975
1896
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
1976
1897
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1977
1898
|
...contents,
|
|
@@ -1979,11 +1900,12 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1979
1900
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1980
1901
|
};
|
|
1981
1902
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1982
|
-
const contents = map({});
|
|
1903
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1983
1904
|
const data = parsedOutput.body;
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
}
|
|
1905
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1906
|
+
message: smithy_client_1.expectString,
|
|
1907
|
+
});
|
|
1908
|
+
Object.assign(contents, doc);
|
|
1987
1909
|
const exception = new models_0_1.ThrottlingException({
|
|
1988
1910
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1989
1911
|
...contents,
|
|
@@ -1991,1107 +1913,153 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1991
1913
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1992
1914
|
};
|
|
1993
1915
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
1994
|
-
const contents = map({});
|
|
1916
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1995
1917
|
const data = parsedOutput.body;
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
}
|
|
1918
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1919
|
+
message: smithy_client_1.expectString,
|
|
1920
|
+
});
|
|
1921
|
+
Object.assign(contents, doc);
|
|
1999
1922
|
const exception = new models_0_1.UnsupportedOperationException({
|
|
2000
1923
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2001
1924
|
...contents,
|
|
2002
1925
|
});
|
|
2003
1926
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2004
1927
|
};
|
|
2005
|
-
const se_AcknowledgeFlow = (input, context) => {
|
|
2006
|
-
return {
|
|
2007
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
2008
|
-
};
|
|
2009
|
-
};
|
|
2010
|
-
const se_Action = (input, context) => {
|
|
2011
|
-
return {
|
|
2012
|
-
...(input.clearTimer != null && { clearTimer: se_ClearTimerAction(input.clearTimer, context) }),
|
|
2013
|
-
...(input.dynamoDB != null && { dynamoDB: se_DynamoDBAction(input.dynamoDB, context) }),
|
|
2014
|
-
...(input.dynamoDBv2 != null && { dynamoDBv2: se_DynamoDBv2Action(input.dynamoDBv2, context) }),
|
|
2015
|
-
...(input.firehose != null && { firehose: se_FirehoseAction(input.firehose, context) }),
|
|
2016
|
-
...(input.iotEvents != null && { iotEvents: se_IotEventsAction(input.iotEvents, context) }),
|
|
2017
|
-
...(input.iotSiteWise != null && { iotSiteWise: se_IotSiteWiseAction(input.iotSiteWise, context) }),
|
|
2018
|
-
...(input.iotTopicPublish != null && { iotTopicPublish: se_IotTopicPublishAction(input.iotTopicPublish, context) }),
|
|
2019
|
-
...(input.lambda != null && { lambda: se_LambdaAction(input.lambda, context) }),
|
|
2020
|
-
...(input.resetTimer != null && { resetTimer: se_ResetTimerAction(input.resetTimer, context) }),
|
|
2021
|
-
...(input.setTimer != null && { setTimer: se_SetTimerAction(input.setTimer, context) }),
|
|
2022
|
-
...(input.setVariable != null && { setVariable: se_SetVariableAction(input.setVariable, context) }),
|
|
2023
|
-
...(input.sns != null && { sns: se_SNSTopicPublishAction(input.sns, context) }),
|
|
2024
|
-
...(input.sqs != null && { sqs: se_SqsAction(input.sqs, context) }),
|
|
2025
|
-
};
|
|
2026
|
-
};
|
|
2027
|
-
const se_Actions = (input, context) => {
|
|
2028
|
-
return input
|
|
2029
|
-
.filter((e) => e != null)
|
|
2030
|
-
.map((entry) => {
|
|
2031
|
-
return se_Action(entry, context);
|
|
2032
|
-
});
|
|
2033
|
-
};
|
|
2034
|
-
const se_AlarmAction = (input, context) => {
|
|
2035
|
-
return {
|
|
2036
|
-
...(input.dynamoDB != null && { dynamoDB: se_DynamoDBAction(input.dynamoDB, context) }),
|
|
2037
|
-
...(input.dynamoDBv2 != null && { dynamoDBv2: se_DynamoDBv2Action(input.dynamoDBv2, context) }),
|
|
2038
|
-
...(input.firehose != null && { firehose: se_FirehoseAction(input.firehose, context) }),
|
|
2039
|
-
...(input.iotEvents != null && { iotEvents: se_IotEventsAction(input.iotEvents, context) }),
|
|
2040
|
-
...(input.iotSiteWise != null && { iotSiteWise: se_IotSiteWiseAction(input.iotSiteWise, context) }),
|
|
2041
|
-
...(input.iotTopicPublish != null && { iotTopicPublish: se_IotTopicPublishAction(input.iotTopicPublish, context) }),
|
|
2042
|
-
...(input.lambda != null && { lambda: se_LambdaAction(input.lambda, context) }),
|
|
2043
|
-
...(input.sns != null && { sns: se_SNSTopicPublishAction(input.sns, context) }),
|
|
2044
|
-
...(input.sqs != null && { sqs: se_SqsAction(input.sqs, context) }),
|
|
2045
|
-
};
|
|
2046
|
-
};
|
|
2047
|
-
const se_AlarmActions = (input, context) => {
|
|
2048
|
-
return input
|
|
2049
|
-
.filter((e) => e != null)
|
|
2050
|
-
.map((entry) => {
|
|
2051
|
-
return se_AlarmAction(entry, context);
|
|
2052
|
-
});
|
|
2053
|
-
};
|
|
2054
|
-
const se_AlarmCapabilities = (input, context) => {
|
|
2055
|
-
return {
|
|
2056
|
-
...(input.acknowledgeFlow != null && { acknowledgeFlow: se_AcknowledgeFlow(input.acknowledgeFlow, context) }),
|
|
2057
|
-
...(input.initializationConfiguration != null && {
|
|
2058
|
-
initializationConfiguration: se_InitializationConfiguration(input.initializationConfiguration, context),
|
|
2059
|
-
}),
|
|
2060
|
-
};
|
|
2061
|
-
};
|
|
2062
|
-
const se_AlarmEventActions = (input, context) => {
|
|
2063
|
-
return {
|
|
2064
|
-
...(input.alarmActions != null && { alarmActions: se_AlarmActions(input.alarmActions, context) }),
|
|
2065
|
-
};
|
|
2066
|
-
};
|
|
2067
|
-
const se_AlarmNotification = (input, context) => {
|
|
2068
|
-
return {
|
|
2069
|
-
...(input.notificationActions != null && {
|
|
2070
|
-
notificationActions: se_NotificationActions(input.notificationActions, context),
|
|
2071
|
-
}),
|
|
2072
|
-
};
|
|
2073
|
-
};
|
|
2074
|
-
const se_AlarmRule = (input, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
...(input.simpleRule != null && { simpleRule: se_SimpleRule(input.simpleRule, context) }),
|
|
2077
|
-
};
|
|
2078
|
-
};
|
|
2079
|
-
const se_AssetPropertyTimestamp = (input, context) => {
|
|
2080
|
-
return {
|
|
2081
|
-
...(input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos }),
|
|
2082
|
-
...(input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }),
|
|
2083
|
-
};
|
|
2084
|
-
};
|
|
2085
|
-
const se_AssetPropertyValue = (input, context) => {
|
|
2086
|
-
return {
|
|
2087
|
-
...(input.quality != null && { quality: input.quality }),
|
|
2088
|
-
...(input.timestamp != null && { timestamp: se_AssetPropertyTimestamp(input.timestamp, context) }),
|
|
2089
|
-
...(input.value != null && { value: se_AssetPropertyVariant(input.value, context) }),
|
|
2090
|
-
};
|
|
2091
|
-
};
|
|
2092
|
-
const se_AssetPropertyVariant = (input, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
...(input.booleanValue != null && { booleanValue: input.booleanValue }),
|
|
2095
|
-
...(input.doubleValue != null && { doubleValue: input.doubleValue }),
|
|
2096
|
-
...(input.integerValue != null && { integerValue: input.integerValue }),
|
|
2097
|
-
...(input.stringValue != null && { stringValue: input.stringValue }),
|
|
2098
|
-
};
|
|
2099
|
-
};
|
|
2100
|
-
const se_Attribute = (input, context) => {
|
|
2101
|
-
return {
|
|
2102
|
-
...(input.jsonPath != null && { jsonPath: input.jsonPath }),
|
|
2103
|
-
};
|
|
2104
|
-
};
|
|
2105
|
-
const se_Attributes = (input, context) => {
|
|
2106
|
-
return input
|
|
2107
|
-
.filter((e) => e != null)
|
|
2108
|
-
.map((entry) => {
|
|
2109
|
-
return se_Attribute(entry, context);
|
|
2110
|
-
});
|
|
2111
|
-
};
|
|
2112
|
-
const se_ClearTimerAction = (input, context) => {
|
|
2113
|
-
return {
|
|
2114
|
-
...(input.timerName != null && { timerName: input.timerName }),
|
|
2115
|
-
};
|
|
2116
|
-
};
|
|
2117
|
-
const se_DetectorDebugOption = (input, context) => {
|
|
2118
|
-
return {
|
|
2119
|
-
...(input.detectorModelName != null && { detectorModelName: input.detectorModelName }),
|
|
2120
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
2121
|
-
};
|
|
2122
|
-
};
|
|
2123
|
-
const se_DetectorDebugOptions = (input, context) => {
|
|
2124
|
-
return input
|
|
2125
|
-
.filter((e) => e != null)
|
|
2126
|
-
.map((entry) => {
|
|
2127
|
-
return se_DetectorDebugOption(entry, context);
|
|
2128
|
-
});
|
|
2129
|
-
};
|
|
2130
1928
|
const se_DetectorModelDefinition = (input, context) => {
|
|
2131
|
-
return {
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
};
|
|
2135
|
-
};
|
|
2136
|
-
const se_DynamoDBAction = (input, context) => {
|
|
2137
|
-
return {
|
|
2138
|
-
...(input.hashKeyField != null && { hashKeyField: input.hashKeyField }),
|
|
2139
|
-
...(input.hashKeyType != null && { hashKeyType: input.hashKeyType }),
|
|
2140
|
-
...(input.hashKeyValue != null && { hashKeyValue: input.hashKeyValue }),
|
|
2141
|
-
...(input.operation != null && { operation: input.operation }),
|
|
2142
|
-
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2143
|
-
...(input.payloadField != null && { payloadField: input.payloadField }),
|
|
2144
|
-
...(input.rangeKeyField != null && { rangeKeyField: input.rangeKeyField }),
|
|
2145
|
-
...(input.rangeKeyType != null && { rangeKeyType: input.rangeKeyType }),
|
|
2146
|
-
...(input.rangeKeyValue != null && { rangeKeyValue: input.rangeKeyValue }),
|
|
2147
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
2148
|
-
};
|
|
2149
|
-
};
|
|
2150
|
-
const se_DynamoDBv2Action = (input, context) => {
|
|
2151
|
-
return {
|
|
2152
|
-
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2153
|
-
...(input.tableName != null && { tableName: input.tableName }),
|
|
2154
|
-
};
|
|
2155
|
-
};
|
|
2156
|
-
const se_EmailConfiguration = (input, context) => {
|
|
2157
|
-
return {
|
|
2158
|
-
...(input.content != null && { content: se_EmailContent(input.content, context) }),
|
|
2159
|
-
...(input.from != null && { from: input.from }),
|
|
2160
|
-
...(input.recipients != null && { recipients: se_EmailRecipients(input.recipients, context) }),
|
|
2161
|
-
};
|
|
2162
|
-
};
|
|
2163
|
-
const se_EmailConfigurations = (input, context) => {
|
|
2164
|
-
return input
|
|
2165
|
-
.filter((e) => e != null)
|
|
2166
|
-
.map((entry) => {
|
|
2167
|
-
return se_EmailConfiguration(entry, context);
|
|
2168
|
-
});
|
|
2169
|
-
};
|
|
2170
|
-
const se_EmailContent = (input, context) => {
|
|
2171
|
-
return {
|
|
2172
|
-
...(input.additionalMessage != null && { additionalMessage: input.additionalMessage }),
|
|
2173
|
-
...(input.subject != null && { subject: input.subject }),
|
|
2174
|
-
};
|
|
2175
|
-
};
|
|
2176
|
-
const se_EmailRecipients = (input, context) => {
|
|
2177
|
-
return {
|
|
2178
|
-
...(input.to != null && { to: se_RecipientDetails(input.to, context) }),
|
|
2179
|
-
};
|
|
2180
|
-
};
|
|
2181
|
-
const se_Event = (input, context) => {
|
|
2182
|
-
return {
|
|
2183
|
-
...(input.actions != null && { actions: se_Actions(input.actions, context) }),
|
|
2184
|
-
...(input.condition != null && { condition: input.condition }),
|
|
2185
|
-
...(input.eventName != null && { eventName: input.eventName }),
|
|
2186
|
-
};
|
|
2187
|
-
};
|
|
2188
|
-
const se_Events = (input, context) => {
|
|
2189
|
-
return input
|
|
2190
|
-
.filter((e) => e != null)
|
|
2191
|
-
.map((entry) => {
|
|
2192
|
-
return se_Event(entry, context);
|
|
2193
|
-
});
|
|
2194
|
-
};
|
|
2195
|
-
const se_FirehoseAction = (input, context) => {
|
|
2196
|
-
return {
|
|
2197
|
-
...(input.deliveryStreamName != null && { deliveryStreamName: input.deliveryStreamName }),
|
|
2198
|
-
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2199
|
-
...(input.separator != null && { separator: input.separator }),
|
|
2200
|
-
};
|
|
2201
|
-
};
|
|
2202
|
-
const se_InitializationConfiguration = (input, context) => {
|
|
2203
|
-
return {
|
|
2204
|
-
...(input.disabledOnInitialization != null && { disabledOnInitialization: input.disabledOnInitialization }),
|
|
2205
|
-
};
|
|
2206
|
-
};
|
|
2207
|
-
const se_InputDefinition = (input, context) => {
|
|
2208
|
-
return {
|
|
2209
|
-
...(input.attributes != null && { attributes: se_Attributes(input.attributes, context) }),
|
|
2210
|
-
};
|
|
2211
|
-
};
|
|
2212
|
-
const se_InputIdentifier = (input, context) => {
|
|
2213
|
-
return {
|
|
2214
|
-
...(input.iotEventsInputIdentifier != null && {
|
|
2215
|
-
iotEventsInputIdentifier: se_IotEventsInputIdentifier(input.iotEventsInputIdentifier, context),
|
|
2216
|
-
}),
|
|
2217
|
-
...(input.iotSiteWiseInputIdentifier != null && {
|
|
2218
|
-
iotSiteWiseInputIdentifier: se_IotSiteWiseInputIdentifier(input.iotSiteWiseInputIdentifier, context),
|
|
2219
|
-
}),
|
|
2220
|
-
};
|
|
2221
|
-
};
|
|
2222
|
-
const se_IotEventsAction = (input, context) => {
|
|
2223
|
-
return {
|
|
2224
|
-
...(input.inputName != null && { inputName: input.inputName }),
|
|
2225
|
-
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2226
|
-
};
|
|
2227
|
-
};
|
|
2228
|
-
const se_IotEventsInputIdentifier = (input, context) => {
|
|
2229
|
-
return {
|
|
2230
|
-
...(input.inputName != null && { inputName: input.inputName }),
|
|
2231
|
-
};
|
|
2232
|
-
};
|
|
2233
|
-
const se_IotSiteWiseAction = (input, context) => {
|
|
2234
|
-
return {
|
|
2235
|
-
...(input.assetId != null && { assetId: input.assetId }),
|
|
2236
|
-
...(input.entryId != null && { entryId: input.entryId }),
|
|
2237
|
-
...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
|
|
2238
|
-
...(input.propertyId != null && { propertyId: input.propertyId }),
|
|
2239
|
-
...(input.propertyValue != null && { propertyValue: se_AssetPropertyValue(input.propertyValue, context) }),
|
|
2240
|
-
};
|
|
2241
|
-
};
|
|
2242
|
-
const se_IotSiteWiseAssetModelPropertyIdentifier = (input, context) => {
|
|
2243
|
-
return {
|
|
2244
|
-
...(input.assetModelId != null && { assetModelId: input.assetModelId }),
|
|
2245
|
-
...(input.propertyId != null && { propertyId: input.propertyId }),
|
|
2246
|
-
};
|
|
2247
|
-
};
|
|
2248
|
-
const se_IotSiteWiseInputIdentifier = (input, context) => {
|
|
2249
|
-
return {
|
|
2250
|
-
...(input.iotSiteWiseAssetModelPropertyIdentifier != null && {
|
|
2251
|
-
iotSiteWiseAssetModelPropertyIdentifier: se_IotSiteWiseAssetModelPropertyIdentifier(input.iotSiteWiseAssetModelPropertyIdentifier, context),
|
|
2252
|
-
}),
|
|
2253
|
-
};
|
|
2254
|
-
};
|
|
2255
|
-
const se_IotTopicPublishAction = (input, context) => {
|
|
2256
|
-
return {
|
|
2257
|
-
...(input.mqttTopic != null && { mqttTopic: input.mqttTopic }),
|
|
2258
|
-
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2259
|
-
};
|
|
2260
|
-
};
|
|
2261
|
-
const se_LambdaAction = (input, context) => {
|
|
2262
|
-
return {
|
|
2263
|
-
...(input.functionArn != null && { functionArn: input.functionArn }),
|
|
2264
|
-
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2265
|
-
};
|
|
2266
|
-
};
|
|
2267
|
-
const se_LoggingOptions = (input, context) => {
|
|
2268
|
-
return {
|
|
2269
|
-
...(input.detectorDebugOptions != null && {
|
|
2270
|
-
detectorDebugOptions: se_DetectorDebugOptions(input.detectorDebugOptions, context),
|
|
2271
|
-
}),
|
|
2272
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
2273
|
-
...(input.level != null && { level: input.level }),
|
|
2274
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2275
|
-
};
|
|
2276
|
-
};
|
|
2277
|
-
const se_NotificationAction = (input, context) => {
|
|
2278
|
-
return {
|
|
2279
|
-
...(input.action != null && { action: se_NotificationTargetActions(input.action, context) }),
|
|
2280
|
-
...(input.emailConfigurations != null && {
|
|
2281
|
-
emailConfigurations: se_EmailConfigurations(input.emailConfigurations, context),
|
|
2282
|
-
}),
|
|
2283
|
-
...(input.smsConfigurations != null && {
|
|
2284
|
-
smsConfigurations: se_SMSConfigurations(input.smsConfigurations, context),
|
|
2285
|
-
}),
|
|
2286
|
-
};
|
|
2287
|
-
};
|
|
2288
|
-
const se_NotificationActions = (input, context) => {
|
|
2289
|
-
return input
|
|
2290
|
-
.filter((e) => e != null)
|
|
2291
|
-
.map((entry) => {
|
|
2292
|
-
return se_NotificationAction(entry, context);
|
|
2293
|
-
});
|
|
2294
|
-
};
|
|
2295
|
-
const se_NotificationTargetActions = (input, context) => {
|
|
2296
|
-
return {
|
|
2297
|
-
...(input.lambdaAction != null && { lambdaAction: se_LambdaAction(input.lambdaAction, context) }),
|
|
2298
|
-
};
|
|
2299
|
-
};
|
|
2300
|
-
const se_OnEnterLifecycle = (input, context) => {
|
|
2301
|
-
return {
|
|
2302
|
-
...(input.events != null && { events: se_Events(input.events, context) }),
|
|
2303
|
-
};
|
|
2304
|
-
};
|
|
2305
|
-
const se_OnExitLifecycle = (input, context) => {
|
|
2306
|
-
return {
|
|
2307
|
-
...(input.events != null && { events: se_Events(input.events, context) }),
|
|
2308
|
-
};
|
|
2309
|
-
};
|
|
2310
|
-
const se_OnInputLifecycle = (input, context) => {
|
|
2311
|
-
return {
|
|
2312
|
-
...(input.events != null && { events: se_Events(input.events, context) }),
|
|
2313
|
-
...(input.transitionEvents != null && { transitionEvents: se_TransitionEvents(input.transitionEvents, context) }),
|
|
2314
|
-
};
|
|
2315
|
-
};
|
|
2316
|
-
const se_Payload = (input, context) => {
|
|
2317
|
-
return {
|
|
2318
|
-
...(input.contentExpression != null && { contentExpression: input.contentExpression }),
|
|
2319
|
-
...(input.type != null && { type: input.type }),
|
|
2320
|
-
};
|
|
2321
|
-
};
|
|
2322
|
-
const se_RecipientDetail = (input, context) => {
|
|
2323
|
-
return {
|
|
2324
|
-
...(input.ssoIdentity != null && { ssoIdentity: se_SSOIdentity(input.ssoIdentity, context) }),
|
|
2325
|
-
};
|
|
2326
|
-
};
|
|
2327
|
-
const se_RecipientDetails = (input, context) => {
|
|
2328
|
-
return input
|
|
2329
|
-
.filter((e) => e != null)
|
|
2330
|
-
.map((entry) => {
|
|
2331
|
-
return se_RecipientDetail(entry, context);
|
|
2332
|
-
});
|
|
2333
|
-
};
|
|
2334
|
-
const se_ResetTimerAction = (input, context) => {
|
|
2335
|
-
return {
|
|
2336
|
-
...(input.timerName != null && { timerName: input.timerName }),
|
|
2337
|
-
};
|
|
2338
|
-
};
|
|
2339
|
-
const se_SetTimerAction = (input, context) => {
|
|
2340
|
-
return {
|
|
2341
|
-
...(input.durationExpression != null && { durationExpression: input.durationExpression }),
|
|
2342
|
-
...(input.seconds != null && { seconds: input.seconds }),
|
|
2343
|
-
...(input.timerName != null && { timerName: input.timerName }),
|
|
2344
|
-
};
|
|
2345
|
-
};
|
|
2346
|
-
const se_SetVariableAction = (input, context) => {
|
|
2347
|
-
return {
|
|
2348
|
-
...(input.value != null && { value: input.value }),
|
|
2349
|
-
...(input.variableName != null && { variableName: input.variableName }),
|
|
2350
|
-
};
|
|
2351
|
-
};
|
|
2352
|
-
const se_SimpleRule = (input, context) => {
|
|
2353
|
-
return {
|
|
2354
|
-
...(input.comparisonOperator != null && { comparisonOperator: input.comparisonOperator }),
|
|
2355
|
-
...(input.inputProperty != null && { inputProperty: input.inputProperty }),
|
|
2356
|
-
...(input.threshold != null && { threshold: input.threshold }),
|
|
2357
|
-
};
|
|
2358
|
-
};
|
|
2359
|
-
const se_SMSConfiguration = (input, context) => {
|
|
2360
|
-
return {
|
|
2361
|
-
...(input.additionalMessage != null && { additionalMessage: input.additionalMessage }),
|
|
2362
|
-
...(input.recipients != null && { recipients: se_RecipientDetails(input.recipients, context) }),
|
|
2363
|
-
...(input.senderId != null && { senderId: input.senderId }),
|
|
2364
|
-
};
|
|
2365
|
-
};
|
|
2366
|
-
const se_SMSConfigurations = (input, context) => {
|
|
2367
|
-
return input
|
|
2368
|
-
.filter((e) => e != null)
|
|
2369
|
-
.map((entry) => {
|
|
2370
|
-
return se_SMSConfiguration(entry, context);
|
|
2371
|
-
});
|
|
2372
|
-
};
|
|
2373
|
-
const se_SNSTopicPublishAction = (input, context) => {
|
|
2374
|
-
return {
|
|
2375
|
-
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2376
|
-
...(input.targetArn != null && { targetArn: input.targetArn }),
|
|
2377
|
-
};
|
|
2378
|
-
};
|
|
2379
|
-
const se_SqsAction = (input, context) => {
|
|
2380
|
-
return {
|
|
2381
|
-
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2382
|
-
...(input.queueUrl != null && { queueUrl: input.queueUrl }),
|
|
2383
|
-
...(input.useBase64 != null && { useBase64: input.useBase64 }),
|
|
2384
|
-
};
|
|
2385
|
-
};
|
|
2386
|
-
const se_SSOIdentity = (input, context) => {
|
|
2387
|
-
return {
|
|
2388
|
-
...(input.identityStoreId != null && { identityStoreId: input.identityStoreId }),
|
|
2389
|
-
...(input.userId != null && { userId: input.userId }),
|
|
2390
|
-
};
|
|
2391
|
-
};
|
|
2392
|
-
const se_State = (input, context) => {
|
|
2393
|
-
return {
|
|
2394
|
-
...(input.onEnter != null && { onEnter: se_OnEnterLifecycle(input.onEnter, context) }),
|
|
2395
|
-
...(input.onExit != null && { onExit: se_OnExitLifecycle(input.onExit, context) }),
|
|
2396
|
-
...(input.onInput != null && { onInput: se_OnInputLifecycle(input.onInput, context) }),
|
|
2397
|
-
...(input.stateName != null && { stateName: input.stateName }),
|
|
2398
|
-
};
|
|
2399
|
-
};
|
|
2400
|
-
const se_States = (input, context) => {
|
|
2401
|
-
return input
|
|
2402
|
-
.filter((e) => e != null)
|
|
2403
|
-
.map((entry) => {
|
|
2404
|
-
return se_State(entry, context);
|
|
2405
|
-
});
|
|
2406
|
-
};
|
|
2407
|
-
const se_Tag = (input, context) => {
|
|
2408
|
-
return {
|
|
2409
|
-
...(input.key != null && { key: input.key }),
|
|
2410
|
-
...(input.value != null && { value: input.value }),
|
|
2411
|
-
};
|
|
2412
|
-
};
|
|
2413
|
-
const se_Tags = (input, context) => {
|
|
2414
|
-
return input
|
|
2415
|
-
.filter((e) => e != null)
|
|
2416
|
-
.map((entry) => {
|
|
2417
|
-
return se_Tag(entry, context);
|
|
2418
|
-
});
|
|
2419
|
-
};
|
|
2420
|
-
const se_TransitionEvent = (input, context) => {
|
|
2421
|
-
return {
|
|
2422
|
-
...(input.actions != null && { actions: se_Actions(input.actions, context) }),
|
|
2423
|
-
...(input.condition != null && { condition: input.condition }),
|
|
2424
|
-
...(input.eventName != null && { eventName: input.eventName }),
|
|
2425
|
-
...(input.nextState != null && { nextState: input.nextState }),
|
|
2426
|
-
};
|
|
2427
|
-
};
|
|
2428
|
-
const se_TransitionEvents = (input, context) => {
|
|
2429
|
-
return input
|
|
2430
|
-
.filter((e) => e != null)
|
|
2431
|
-
.map((entry) => {
|
|
2432
|
-
return se_TransitionEvent(entry, context);
|
|
2433
|
-
});
|
|
2434
|
-
};
|
|
2435
|
-
const de_AcknowledgeFlow = (output, context) => {
|
|
2436
|
-
return {
|
|
2437
|
-
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2438
|
-
};
|
|
2439
|
-
};
|
|
2440
|
-
const de_Action = (output, context) => {
|
|
2441
|
-
return {
|
|
2442
|
-
clearTimer: output.clearTimer != null ? de_ClearTimerAction(output.clearTimer, context) : undefined,
|
|
2443
|
-
dynamoDB: output.dynamoDB != null ? de_DynamoDBAction(output.dynamoDB, context) : undefined,
|
|
2444
|
-
dynamoDBv2: output.dynamoDBv2 != null ? de_DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
|
|
2445
|
-
firehose: output.firehose != null ? de_FirehoseAction(output.firehose, context) : undefined,
|
|
2446
|
-
iotEvents: output.iotEvents != null ? de_IotEventsAction(output.iotEvents, context) : undefined,
|
|
2447
|
-
iotSiteWise: output.iotSiteWise != null ? de_IotSiteWiseAction(output.iotSiteWise, context) : undefined,
|
|
2448
|
-
iotTopicPublish: output.iotTopicPublish != null ? de_IotTopicPublishAction(output.iotTopicPublish, context) : undefined,
|
|
2449
|
-
lambda: output.lambda != null ? de_LambdaAction(output.lambda, context) : undefined,
|
|
2450
|
-
resetTimer: output.resetTimer != null ? de_ResetTimerAction(output.resetTimer, context) : undefined,
|
|
2451
|
-
setTimer: output.setTimer != null ? de_SetTimerAction(output.setTimer, context) : undefined,
|
|
2452
|
-
setVariable: output.setVariable != null ? de_SetVariableAction(output.setVariable, context) : undefined,
|
|
2453
|
-
sns: output.sns != null ? de_SNSTopicPublishAction(output.sns, context) : undefined,
|
|
2454
|
-
sqs: output.sqs != null ? de_SqsAction(output.sqs, context) : undefined,
|
|
2455
|
-
};
|
|
2456
|
-
};
|
|
2457
|
-
const de_Actions = (output, context) => {
|
|
2458
|
-
const retVal = (output || [])
|
|
2459
|
-
.filter((e) => e != null)
|
|
2460
|
-
.map((entry) => {
|
|
2461
|
-
if (entry === null) {
|
|
2462
|
-
return null;
|
|
2463
|
-
}
|
|
2464
|
-
return de_Action(entry, context);
|
|
2465
|
-
});
|
|
2466
|
-
return retVal;
|
|
2467
|
-
};
|
|
2468
|
-
const de_AlarmAction = (output, context) => {
|
|
2469
|
-
return {
|
|
2470
|
-
dynamoDB: output.dynamoDB != null ? de_DynamoDBAction(output.dynamoDB, context) : undefined,
|
|
2471
|
-
dynamoDBv2: output.dynamoDBv2 != null ? de_DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
|
|
2472
|
-
firehose: output.firehose != null ? de_FirehoseAction(output.firehose, context) : undefined,
|
|
2473
|
-
iotEvents: output.iotEvents != null ? de_IotEventsAction(output.iotEvents, context) : undefined,
|
|
2474
|
-
iotSiteWise: output.iotSiteWise != null ? de_IotSiteWiseAction(output.iotSiteWise, context) : undefined,
|
|
2475
|
-
iotTopicPublish: output.iotTopicPublish != null ? de_IotTopicPublishAction(output.iotTopicPublish, context) : undefined,
|
|
2476
|
-
lambda: output.lambda != null ? de_LambdaAction(output.lambda, context) : undefined,
|
|
2477
|
-
sns: output.sns != null ? de_SNSTopicPublishAction(output.sns, context) : undefined,
|
|
2478
|
-
sqs: output.sqs != null ? de_SqsAction(output.sqs, context) : undefined,
|
|
2479
|
-
};
|
|
2480
|
-
};
|
|
2481
|
-
const de_AlarmActions = (output, context) => {
|
|
2482
|
-
const retVal = (output || [])
|
|
2483
|
-
.filter((e) => e != null)
|
|
2484
|
-
.map((entry) => {
|
|
2485
|
-
if (entry === null) {
|
|
2486
|
-
return null;
|
|
2487
|
-
}
|
|
2488
|
-
return de_AlarmAction(entry, context);
|
|
1929
|
+
return (0, smithy_client_1.take)(input, {
|
|
1930
|
+
initialStateName: [],
|
|
1931
|
+
states: smithy_client_1._json,
|
|
2489
1932
|
});
|
|
2490
|
-
return retVal;
|
|
2491
|
-
};
|
|
2492
|
-
const de_AlarmCapabilities = (output, context) => {
|
|
2493
|
-
return {
|
|
2494
|
-
acknowledgeFlow: output.acknowledgeFlow != null ? de_AcknowledgeFlow(output.acknowledgeFlow, context) : undefined,
|
|
2495
|
-
initializationConfiguration: output.initializationConfiguration != null
|
|
2496
|
-
? de_InitializationConfiguration(output.initializationConfiguration, context)
|
|
2497
|
-
: undefined,
|
|
2498
|
-
};
|
|
2499
|
-
};
|
|
2500
|
-
const de_AlarmEventActions = (output, context) => {
|
|
2501
|
-
return {
|
|
2502
|
-
alarmActions: output.alarmActions != null ? de_AlarmActions(output.alarmActions, context) : undefined,
|
|
2503
|
-
};
|
|
2504
1933
|
};
|
|
2505
1934
|
const de_AlarmModelSummaries = (output, context) => {
|
|
2506
1935
|
const retVal = (output || [])
|
|
2507
1936
|
.filter((e) => e != null)
|
|
2508
1937
|
.map((entry) => {
|
|
2509
|
-
if (entry === null) {
|
|
2510
|
-
return null;
|
|
2511
|
-
}
|
|
2512
1938
|
return de_AlarmModelSummary(entry, context);
|
|
2513
1939
|
});
|
|
2514
1940
|
return retVal;
|
|
2515
1941
|
};
|
|
2516
1942
|
const de_AlarmModelSummary = (output, context) => {
|
|
2517
|
-
return {
|
|
2518
|
-
alarmModelDescription:
|
|
2519
|
-
alarmModelName:
|
|
2520
|
-
creationTime:
|
|
2521
|
-
|
|
2522
|
-
: undefined,
|
|
2523
|
-
};
|
|
1943
|
+
return (0, smithy_client_1.take)(output, {
|
|
1944
|
+
alarmModelDescription: smithy_client_1.expectString,
|
|
1945
|
+
alarmModelName: smithy_client_1.expectString,
|
|
1946
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1947
|
+
});
|
|
2524
1948
|
};
|
|
2525
1949
|
const de_AlarmModelVersionSummaries = (output, context) => {
|
|
2526
1950
|
const retVal = (output || [])
|
|
2527
1951
|
.filter((e) => e != null)
|
|
2528
1952
|
.map((entry) => {
|
|
2529
|
-
if (entry === null) {
|
|
2530
|
-
return null;
|
|
2531
|
-
}
|
|
2532
1953
|
return de_AlarmModelVersionSummary(entry, context);
|
|
2533
1954
|
});
|
|
2534
1955
|
return retVal;
|
|
2535
1956
|
};
|
|
2536
1957
|
const de_AlarmModelVersionSummary = (output, context) => {
|
|
2537
|
-
return {
|
|
2538
|
-
alarmModelArn:
|
|
2539
|
-
alarmModelName:
|
|
2540
|
-
alarmModelVersion:
|
|
2541
|
-
creationTime:
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
: undefined,
|
|
2547
|
-
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2548
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2549
|
-
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
2550
|
-
};
|
|
2551
|
-
};
|
|
2552
|
-
const de_AlarmNotification = (output, context) => {
|
|
2553
|
-
return {
|
|
2554
|
-
notificationActions: output.notificationActions != null ? de_NotificationActions(output.notificationActions, context) : undefined,
|
|
2555
|
-
};
|
|
2556
|
-
};
|
|
2557
|
-
const de_AlarmRule = (output, context) => {
|
|
2558
|
-
return {
|
|
2559
|
-
simpleRule: output.simpleRule != null ? de_SimpleRule(output.simpleRule, context) : undefined,
|
|
2560
|
-
};
|
|
2561
|
-
};
|
|
2562
|
-
const de_AnalysisResult = (output, context) => {
|
|
2563
|
-
return {
|
|
2564
|
-
level: (0, smithy_client_1.expectString)(output.level),
|
|
2565
|
-
locations: output.locations != null ? de_AnalysisResultLocations(output.locations, context) : undefined,
|
|
2566
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2567
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2568
|
-
};
|
|
2569
|
-
};
|
|
2570
|
-
const de_AnalysisResultLocation = (output, context) => {
|
|
2571
|
-
return {
|
|
2572
|
-
path: (0, smithy_client_1.expectString)(output.path),
|
|
2573
|
-
};
|
|
2574
|
-
};
|
|
2575
|
-
const de_AnalysisResultLocations = (output, context) => {
|
|
2576
|
-
const retVal = (output || [])
|
|
2577
|
-
.filter((e) => e != null)
|
|
2578
|
-
.map((entry) => {
|
|
2579
|
-
if (entry === null) {
|
|
2580
|
-
return null;
|
|
2581
|
-
}
|
|
2582
|
-
return de_AnalysisResultLocation(entry, context);
|
|
1958
|
+
return (0, smithy_client_1.take)(output, {
|
|
1959
|
+
alarmModelArn: smithy_client_1.expectString,
|
|
1960
|
+
alarmModelName: smithy_client_1.expectString,
|
|
1961
|
+
alarmModelVersion: smithy_client_1.expectString,
|
|
1962
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1963
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1964
|
+
roleArn: smithy_client_1.expectString,
|
|
1965
|
+
status: smithy_client_1.expectString,
|
|
1966
|
+
statusMessage: smithy_client_1.expectString,
|
|
2583
1967
|
});
|
|
2584
|
-
return retVal;
|
|
2585
|
-
};
|
|
2586
|
-
const de_AnalysisResults = (output, context) => {
|
|
2587
|
-
const retVal = (output || [])
|
|
2588
|
-
.filter((e) => e != null)
|
|
2589
|
-
.map((entry) => {
|
|
2590
|
-
if (entry === null) {
|
|
2591
|
-
return null;
|
|
2592
|
-
}
|
|
2593
|
-
return de_AnalysisResult(entry, context);
|
|
2594
|
-
});
|
|
2595
|
-
return retVal;
|
|
2596
|
-
};
|
|
2597
|
-
const de_AssetPropertyTimestamp = (output, context) => {
|
|
2598
|
-
return {
|
|
2599
|
-
offsetInNanos: (0, smithy_client_1.expectString)(output.offsetInNanos),
|
|
2600
|
-
timeInSeconds: (0, smithy_client_1.expectString)(output.timeInSeconds),
|
|
2601
|
-
};
|
|
2602
|
-
};
|
|
2603
|
-
const de_AssetPropertyValue = (output, context) => {
|
|
2604
|
-
return {
|
|
2605
|
-
quality: (0, smithy_client_1.expectString)(output.quality),
|
|
2606
|
-
timestamp: output.timestamp != null ? de_AssetPropertyTimestamp(output.timestamp, context) : undefined,
|
|
2607
|
-
value: output.value != null ? de_AssetPropertyVariant(output.value, context) : undefined,
|
|
2608
|
-
};
|
|
2609
|
-
};
|
|
2610
|
-
const de_AssetPropertyVariant = (output, context) => {
|
|
2611
|
-
return {
|
|
2612
|
-
booleanValue: (0, smithy_client_1.expectString)(output.booleanValue),
|
|
2613
|
-
doubleValue: (0, smithy_client_1.expectString)(output.doubleValue),
|
|
2614
|
-
integerValue: (0, smithy_client_1.expectString)(output.integerValue),
|
|
2615
|
-
stringValue: (0, smithy_client_1.expectString)(output.stringValue),
|
|
2616
|
-
};
|
|
2617
|
-
};
|
|
2618
|
-
const de_Attribute = (output, context) => {
|
|
2619
|
-
return {
|
|
2620
|
-
jsonPath: (0, smithy_client_1.expectString)(output.jsonPath),
|
|
2621
|
-
};
|
|
2622
|
-
};
|
|
2623
|
-
const de_Attributes = (output, context) => {
|
|
2624
|
-
const retVal = (output || [])
|
|
2625
|
-
.filter((e) => e != null)
|
|
2626
|
-
.map((entry) => {
|
|
2627
|
-
if (entry === null) {
|
|
2628
|
-
return null;
|
|
2629
|
-
}
|
|
2630
|
-
return de_Attribute(entry, context);
|
|
2631
|
-
});
|
|
2632
|
-
return retVal;
|
|
2633
|
-
};
|
|
2634
|
-
const de_ClearTimerAction = (output, context) => {
|
|
2635
|
-
return {
|
|
2636
|
-
timerName: (0, smithy_client_1.expectString)(output.timerName),
|
|
2637
|
-
};
|
|
2638
|
-
};
|
|
2639
|
-
const de_DetectorDebugOption = (output, context) => {
|
|
2640
|
-
return {
|
|
2641
|
-
detectorModelName: (0, smithy_client_1.expectString)(output.detectorModelName),
|
|
2642
|
-
keyValue: (0, smithy_client_1.expectString)(output.keyValue),
|
|
2643
|
-
};
|
|
2644
|
-
};
|
|
2645
|
-
const de_DetectorDebugOptions = (output, context) => {
|
|
2646
|
-
const retVal = (output || [])
|
|
2647
|
-
.filter((e) => e != null)
|
|
2648
|
-
.map((entry) => {
|
|
2649
|
-
if (entry === null) {
|
|
2650
|
-
return null;
|
|
2651
|
-
}
|
|
2652
|
-
return de_DetectorDebugOption(entry, context);
|
|
2653
|
-
});
|
|
2654
|
-
return retVal;
|
|
2655
1968
|
};
|
|
2656
1969
|
const de_DetectorModel = (output, context) => {
|
|
2657
|
-
return {
|
|
2658
|
-
detectorModelConfiguration:
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
detectorModelDefinition: output.detectorModelDefinition != null
|
|
2662
|
-
? de_DetectorModelDefinition(output.detectorModelDefinition, context)
|
|
2663
|
-
: undefined,
|
|
2664
|
-
};
|
|
1970
|
+
return (0, smithy_client_1.take)(output, {
|
|
1971
|
+
detectorModelConfiguration: (_) => de_DetectorModelConfiguration(_, context),
|
|
1972
|
+
detectorModelDefinition: (_) => de_DetectorModelDefinition(_, context),
|
|
1973
|
+
});
|
|
2665
1974
|
};
|
|
2666
1975
|
const de_DetectorModelConfiguration = (output, context) => {
|
|
2667
|
-
return {
|
|
2668
|
-
creationTime:
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
: undefined,
|
|
2680
|
-
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2681
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2682
|
-
};
|
|
1976
|
+
return (0, smithy_client_1.take)(output, {
|
|
1977
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1978
|
+
detectorModelArn: smithy_client_1.expectString,
|
|
1979
|
+
detectorModelDescription: smithy_client_1.expectString,
|
|
1980
|
+
detectorModelName: smithy_client_1.expectString,
|
|
1981
|
+
detectorModelVersion: smithy_client_1.expectString,
|
|
1982
|
+
evaluationMethod: smithy_client_1.expectString,
|
|
1983
|
+
key: smithy_client_1.expectString,
|
|
1984
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1985
|
+
roleArn: smithy_client_1.expectString,
|
|
1986
|
+
status: smithy_client_1.expectString,
|
|
1987
|
+
});
|
|
2683
1988
|
};
|
|
2684
1989
|
const de_DetectorModelDefinition = (output, context) => {
|
|
2685
|
-
return {
|
|
2686
|
-
initialStateName:
|
|
2687
|
-
states:
|
|
2688
|
-
};
|
|
1990
|
+
return (0, smithy_client_1.take)(output, {
|
|
1991
|
+
initialStateName: smithy_client_1.expectString,
|
|
1992
|
+
states: smithy_client_1._json,
|
|
1993
|
+
});
|
|
2689
1994
|
};
|
|
2690
1995
|
const de_DetectorModelSummaries = (output, context) => {
|
|
2691
1996
|
const retVal = (output || [])
|
|
2692
1997
|
.filter((e) => e != null)
|
|
2693
1998
|
.map((entry) => {
|
|
2694
|
-
if (entry === null) {
|
|
2695
|
-
return null;
|
|
2696
|
-
}
|
|
2697
1999
|
return de_DetectorModelSummary(entry, context);
|
|
2698
2000
|
});
|
|
2699
2001
|
return retVal;
|
|
2700
2002
|
};
|
|
2701
2003
|
const de_DetectorModelSummary = (output, context) => {
|
|
2702
|
-
return {
|
|
2703
|
-
creationTime:
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
detectorModelName: (0, smithy_client_1.expectString)(output.detectorModelName),
|
|
2708
|
-
};
|
|
2004
|
+
return (0, smithy_client_1.take)(output, {
|
|
2005
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2006
|
+
detectorModelDescription: smithy_client_1.expectString,
|
|
2007
|
+
detectorModelName: smithy_client_1.expectString,
|
|
2008
|
+
});
|
|
2709
2009
|
};
|
|
2710
2010
|
const de_DetectorModelVersionSummaries = (output, context) => {
|
|
2711
2011
|
const retVal = (output || [])
|
|
2712
2012
|
.filter((e) => e != null)
|
|
2713
2013
|
.map((entry) => {
|
|
2714
|
-
if (entry === null) {
|
|
2715
|
-
return null;
|
|
2716
|
-
}
|
|
2717
2014
|
return de_DetectorModelVersionSummary(entry, context);
|
|
2718
2015
|
});
|
|
2719
2016
|
return retVal;
|
|
2720
2017
|
};
|
|
2721
2018
|
const de_DetectorModelVersionSummary = (output, context) => {
|
|
2722
|
-
return {
|
|
2723
|
-
creationTime:
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
2732
|
-
: undefined,
|
|
2733
|
-
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2734
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2735
|
-
};
|
|
2736
|
-
};
|
|
2737
|
-
const de_DynamoDBAction = (output, context) => {
|
|
2738
|
-
return {
|
|
2739
|
-
hashKeyField: (0, smithy_client_1.expectString)(output.hashKeyField),
|
|
2740
|
-
hashKeyType: (0, smithy_client_1.expectString)(output.hashKeyType),
|
|
2741
|
-
hashKeyValue: (0, smithy_client_1.expectString)(output.hashKeyValue),
|
|
2742
|
-
operation: (0, smithy_client_1.expectString)(output.operation),
|
|
2743
|
-
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2744
|
-
payloadField: (0, smithy_client_1.expectString)(output.payloadField),
|
|
2745
|
-
rangeKeyField: (0, smithy_client_1.expectString)(output.rangeKeyField),
|
|
2746
|
-
rangeKeyType: (0, smithy_client_1.expectString)(output.rangeKeyType),
|
|
2747
|
-
rangeKeyValue: (0, smithy_client_1.expectString)(output.rangeKeyValue),
|
|
2748
|
-
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
2749
|
-
};
|
|
2750
|
-
};
|
|
2751
|
-
const de_DynamoDBv2Action = (output, context) => {
|
|
2752
|
-
return {
|
|
2753
|
-
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2754
|
-
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
|
-
const de_EmailConfiguration = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
content: output.content != null ? de_EmailContent(output.content, context) : undefined,
|
|
2760
|
-
from: (0, smithy_client_1.expectString)(output.from),
|
|
2761
|
-
recipients: output.recipients != null ? de_EmailRecipients(output.recipients, context) : undefined,
|
|
2762
|
-
};
|
|
2763
|
-
};
|
|
2764
|
-
const de_EmailConfigurations = (output, context) => {
|
|
2765
|
-
const retVal = (output || [])
|
|
2766
|
-
.filter((e) => e != null)
|
|
2767
|
-
.map((entry) => {
|
|
2768
|
-
if (entry === null) {
|
|
2769
|
-
return null;
|
|
2770
|
-
}
|
|
2771
|
-
return de_EmailConfiguration(entry, context);
|
|
2772
|
-
});
|
|
2773
|
-
return retVal;
|
|
2774
|
-
};
|
|
2775
|
-
const de_EmailContent = (output, context) => {
|
|
2776
|
-
return {
|
|
2777
|
-
additionalMessage: (0, smithy_client_1.expectString)(output.additionalMessage),
|
|
2778
|
-
subject: (0, smithy_client_1.expectString)(output.subject),
|
|
2779
|
-
};
|
|
2780
|
-
};
|
|
2781
|
-
const de_EmailRecipients = (output, context) => {
|
|
2782
|
-
return {
|
|
2783
|
-
to: output.to != null ? de_RecipientDetails(output.to, context) : undefined,
|
|
2784
|
-
};
|
|
2785
|
-
};
|
|
2786
|
-
const de_Event = (output, context) => {
|
|
2787
|
-
return {
|
|
2788
|
-
actions: output.actions != null ? de_Actions(output.actions, context) : undefined,
|
|
2789
|
-
condition: (0, smithy_client_1.expectString)(output.condition),
|
|
2790
|
-
eventName: (0, smithy_client_1.expectString)(output.eventName),
|
|
2791
|
-
};
|
|
2792
|
-
};
|
|
2793
|
-
const de_Events = (output, context) => {
|
|
2794
|
-
const retVal = (output || [])
|
|
2795
|
-
.filter((e) => e != null)
|
|
2796
|
-
.map((entry) => {
|
|
2797
|
-
if (entry === null) {
|
|
2798
|
-
return null;
|
|
2799
|
-
}
|
|
2800
|
-
return de_Event(entry, context);
|
|
2019
|
+
return (0, smithy_client_1.take)(output, {
|
|
2020
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2021
|
+
detectorModelArn: smithy_client_1.expectString,
|
|
2022
|
+
detectorModelName: smithy_client_1.expectString,
|
|
2023
|
+
detectorModelVersion: smithy_client_1.expectString,
|
|
2024
|
+
evaluationMethod: smithy_client_1.expectString,
|
|
2025
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2026
|
+
roleArn: smithy_client_1.expectString,
|
|
2027
|
+
status: smithy_client_1.expectString,
|
|
2801
2028
|
});
|
|
2802
|
-
return retVal;
|
|
2803
|
-
};
|
|
2804
|
-
const de_FirehoseAction = (output, context) => {
|
|
2805
|
-
return {
|
|
2806
|
-
deliveryStreamName: (0, smithy_client_1.expectString)(output.deliveryStreamName),
|
|
2807
|
-
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2808
|
-
separator: (0, smithy_client_1.expectString)(output.separator),
|
|
2809
|
-
};
|
|
2810
|
-
};
|
|
2811
|
-
const de_InitializationConfiguration = (output, context) => {
|
|
2812
|
-
return {
|
|
2813
|
-
disabledOnInitialization: (0, smithy_client_1.expectBoolean)(output.disabledOnInitialization),
|
|
2814
|
-
};
|
|
2815
2029
|
};
|
|
2816
2030
|
const de_Input = (output, context) => {
|
|
2817
|
-
return {
|
|
2818
|
-
inputConfiguration:
|
|
2819
|
-
inputDefinition:
|
|
2820
|
-
};
|
|
2031
|
+
return (0, smithy_client_1.take)(output, {
|
|
2032
|
+
inputConfiguration: (_) => de_InputConfiguration(_, context),
|
|
2033
|
+
inputDefinition: smithy_client_1._json,
|
|
2034
|
+
});
|
|
2821
2035
|
};
|
|
2822
2036
|
const de_InputConfiguration = (output, context) => {
|
|
2823
|
-
return {
|
|
2824
|
-
creationTime:
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
2832
|
-
: undefined,
|
|
2833
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2834
|
-
};
|
|
2835
|
-
};
|
|
2836
|
-
const de_InputDefinition = (output, context) => {
|
|
2837
|
-
return {
|
|
2838
|
-
attributes: output.attributes != null ? de_Attributes(output.attributes, context) : undefined,
|
|
2839
|
-
};
|
|
2037
|
+
return (0, smithy_client_1.take)(output, {
|
|
2038
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2039
|
+
inputArn: smithy_client_1.expectString,
|
|
2040
|
+
inputDescription: smithy_client_1.expectString,
|
|
2041
|
+
inputName: smithy_client_1.expectString,
|
|
2042
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2043
|
+
status: smithy_client_1.expectString,
|
|
2044
|
+
});
|
|
2840
2045
|
};
|
|
2841
2046
|
const de_InputSummaries = (output, context) => {
|
|
2842
2047
|
const retVal = (output || [])
|
|
2843
2048
|
.filter((e) => e != null)
|
|
2844
2049
|
.map((entry) => {
|
|
2845
|
-
if (entry === null) {
|
|
2846
|
-
return null;
|
|
2847
|
-
}
|
|
2848
2050
|
return de_InputSummary(entry, context);
|
|
2849
2051
|
});
|
|
2850
2052
|
return retVal;
|
|
2851
2053
|
};
|
|
2852
2054
|
const de_InputSummary = (output, context) => {
|
|
2853
|
-
return {
|
|
2854
|
-
creationTime:
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
lastUpdateTime: output.lastUpdateTime != null
|
|
2861
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
2862
|
-
: undefined,
|
|
2863
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2864
|
-
};
|
|
2865
|
-
};
|
|
2866
|
-
const de_IotEventsAction = (output, context) => {
|
|
2867
|
-
return {
|
|
2868
|
-
inputName: (0, smithy_client_1.expectString)(output.inputName),
|
|
2869
|
-
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2870
|
-
};
|
|
2871
|
-
};
|
|
2872
|
-
const de_IotSiteWiseAction = (output, context) => {
|
|
2873
|
-
return {
|
|
2874
|
-
assetId: (0, smithy_client_1.expectString)(output.assetId),
|
|
2875
|
-
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
2876
|
-
propertyAlias: (0, smithy_client_1.expectString)(output.propertyAlias),
|
|
2877
|
-
propertyId: (0, smithy_client_1.expectString)(output.propertyId),
|
|
2878
|
-
propertyValue: output.propertyValue != null ? de_AssetPropertyValue(output.propertyValue, context) : undefined,
|
|
2879
|
-
};
|
|
2880
|
-
};
|
|
2881
|
-
const de_IotTopicPublishAction = (output, context) => {
|
|
2882
|
-
return {
|
|
2883
|
-
mqttTopic: (0, smithy_client_1.expectString)(output.mqttTopic),
|
|
2884
|
-
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2885
|
-
};
|
|
2886
|
-
};
|
|
2887
|
-
const de_LambdaAction = (output, context) => {
|
|
2888
|
-
return {
|
|
2889
|
-
functionArn: (0, smithy_client_1.expectString)(output.functionArn),
|
|
2890
|
-
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2891
|
-
};
|
|
2892
|
-
};
|
|
2893
|
-
const de_LoggingOptions = (output, context) => {
|
|
2894
|
-
return {
|
|
2895
|
-
detectorDebugOptions: output.detectorDebugOptions != null ? de_DetectorDebugOptions(output.detectorDebugOptions, context) : undefined,
|
|
2896
|
-
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2897
|
-
level: (0, smithy_client_1.expectString)(output.level),
|
|
2898
|
-
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2899
|
-
};
|
|
2900
|
-
};
|
|
2901
|
-
const de_NotificationAction = (output, context) => {
|
|
2902
|
-
return {
|
|
2903
|
-
action: output.action != null ? de_NotificationTargetActions(output.action, context) : undefined,
|
|
2904
|
-
emailConfigurations: output.emailConfigurations != null ? de_EmailConfigurations(output.emailConfigurations, context) : undefined,
|
|
2905
|
-
smsConfigurations: output.smsConfigurations != null ? de_SMSConfigurations(output.smsConfigurations, context) : undefined,
|
|
2906
|
-
};
|
|
2907
|
-
};
|
|
2908
|
-
const de_NotificationActions = (output, context) => {
|
|
2909
|
-
const retVal = (output || [])
|
|
2910
|
-
.filter((e) => e != null)
|
|
2911
|
-
.map((entry) => {
|
|
2912
|
-
if (entry === null) {
|
|
2913
|
-
return null;
|
|
2914
|
-
}
|
|
2915
|
-
return de_NotificationAction(entry, context);
|
|
2055
|
+
return (0, smithy_client_1.take)(output, {
|
|
2056
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2057
|
+
inputArn: smithy_client_1.expectString,
|
|
2058
|
+
inputDescription: smithy_client_1.expectString,
|
|
2059
|
+
inputName: smithy_client_1.expectString,
|
|
2060
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2061
|
+
status: smithy_client_1.expectString,
|
|
2916
2062
|
});
|
|
2917
|
-
return retVal;
|
|
2918
|
-
};
|
|
2919
|
-
const de_NotificationTargetActions = (output, context) => {
|
|
2920
|
-
return {
|
|
2921
|
-
lambdaAction: output.lambdaAction != null ? de_LambdaAction(output.lambdaAction, context) : undefined,
|
|
2922
|
-
};
|
|
2923
|
-
};
|
|
2924
|
-
const de_OnEnterLifecycle = (output, context) => {
|
|
2925
|
-
return {
|
|
2926
|
-
events: output.events != null ? de_Events(output.events, context) : undefined,
|
|
2927
|
-
};
|
|
2928
|
-
};
|
|
2929
|
-
const de_OnExitLifecycle = (output, context) => {
|
|
2930
|
-
return {
|
|
2931
|
-
events: output.events != null ? de_Events(output.events, context) : undefined,
|
|
2932
|
-
};
|
|
2933
|
-
};
|
|
2934
|
-
const de_OnInputLifecycle = (output, context) => {
|
|
2935
|
-
return {
|
|
2936
|
-
events: output.events != null ? de_Events(output.events, context) : undefined,
|
|
2937
|
-
transitionEvents: output.transitionEvents != null ? de_TransitionEvents(output.transitionEvents, context) : undefined,
|
|
2938
|
-
};
|
|
2939
|
-
};
|
|
2940
|
-
const de_Payload = (output, context) => {
|
|
2941
|
-
return {
|
|
2942
|
-
contentExpression: (0, smithy_client_1.expectString)(output.contentExpression),
|
|
2943
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2944
|
-
};
|
|
2945
|
-
};
|
|
2946
|
-
const de_RecipientDetail = (output, context) => {
|
|
2947
|
-
return {
|
|
2948
|
-
ssoIdentity: output.ssoIdentity != null ? de_SSOIdentity(output.ssoIdentity, context) : undefined,
|
|
2949
|
-
};
|
|
2950
|
-
};
|
|
2951
|
-
const de_RecipientDetails = (output, context) => {
|
|
2952
|
-
const retVal = (output || [])
|
|
2953
|
-
.filter((e) => e != null)
|
|
2954
|
-
.map((entry) => {
|
|
2955
|
-
if (entry === null) {
|
|
2956
|
-
return null;
|
|
2957
|
-
}
|
|
2958
|
-
return de_RecipientDetail(entry, context);
|
|
2959
|
-
});
|
|
2960
|
-
return retVal;
|
|
2961
|
-
};
|
|
2962
|
-
const de_ResetTimerAction = (output, context) => {
|
|
2963
|
-
return {
|
|
2964
|
-
timerName: (0, smithy_client_1.expectString)(output.timerName),
|
|
2965
|
-
};
|
|
2966
|
-
};
|
|
2967
|
-
const de_RoutedResource = (output, context) => {
|
|
2968
|
-
return {
|
|
2969
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2970
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2971
|
-
};
|
|
2972
|
-
};
|
|
2973
|
-
const de_RoutedResources = (output, context) => {
|
|
2974
|
-
const retVal = (output || [])
|
|
2975
|
-
.filter((e) => e != null)
|
|
2976
|
-
.map((entry) => {
|
|
2977
|
-
if (entry === null) {
|
|
2978
|
-
return null;
|
|
2979
|
-
}
|
|
2980
|
-
return de_RoutedResource(entry, context);
|
|
2981
|
-
});
|
|
2982
|
-
return retVal;
|
|
2983
|
-
};
|
|
2984
|
-
const de_SetTimerAction = (output, context) => {
|
|
2985
|
-
return {
|
|
2986
|
-
durationExpression: (0, smithy_client_1.expectString)(output.durationExpression),
|
|
2987
|
-
seconds: (0, smithy_client_1.expectInt32)(output.seconds),
|
|
2988
|
-
timerName: (0, smithy_client_1.expectString)(output.timerName),
|
|
2989
|
-
};
|
|
2990
|
-
};
|
|
2991
|
-
const de_SetVariableAction = (output, context) => {
|
|
2992
|
-
return {
|
|
2993
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
2994
|
-
variableName: (0, smithy_client_1.expectString)(output.variableName),
|
|
2995
|
-
};
|
|
2996
|
-
};
|
|
2997
|
-
const de_SimpleRule = (output, context) => {
|
|
2998
|
-
return {
|
|
2999
|
-
comparisonOperator: (0, smithy_client_1.expectString)(output.comparisonOperator),
|
|
3000
|
-
inputProperty: (0, smithy_client_1.expectString)(output.inputProperty),
|
|
3001
|
-
threshold: (0, smithy_client_1.expectString)(output.threshold),
|
|
3002
|
-
};
|
|
3003
|
-
};
|
|
3004
|
-
const de_SMSConfiguration = (output, context) => {
|
|
3005
|
-
return {
|
|
3006
|
-
additionalMessage: (0, smithy_client_1.expectString)(output.additionalMessage),
|
|
3007
|
-
recipients: output.recipients != null ? de_RecipientDetails(output.recipients, context) : undefined,
|
|
3008
|
-
senderId: (0, smithy_client_1.expectString)(output.senderId),
|
|
3009
|
-
};
|
|
3010
|
-
};
|
|
3011
|
-
const de_SMSConfigurations = (output, context) => {
|
|
3012
|
-
const retVal = (output || [])
|
|
3013
|
-
.filter((e) => e != null)
|
|
3014
|
-
.map((entry) => {
|
|
3015
|
-
if (entry === null) {
|
|
3016
|
-
return null;
|
|
3017
|
-
}
|
|
3018
|
-
return de_SMSConfiguration(entry, context);
|
|
3019
|
-
});
|
|
3020
|
-
return retVal;
|
|
3021
|
-
};
|
|
3022
|
-
const de_SNSTopicPublishAction = (output, context) => {
|
|
3023
|
-
return {
|
|
3024
|
-
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
3025
|
-
targetArn: (0, smithy_client_1.expectString)(output.targetArn),
|
|
3026
|
-
};
|
|
3027
|
-
};
|
|
3028
|
-
const de_SqsAction = (output, context) => {
|
|
3029
|
-
return {
|
|
3030
|
-
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
3031
|
-
queueUrl: (0, smithy_client_1.expectString)(output.queueUrl),
|
|
3032
|
-
useBase64: (0, smithy_client_1.expectBoolean)(output.useBase64),
|
|
3033
|
-
};
|
|
3034
|
-
};
|
|
3035
|
-
const de_SSOIdentity = (output, context) => {
|
|
3036
|
-
return {
|
|
3037
|
-
identityStoreId: (0, smithy_client_1.expectString)(output.identityStoreId),
|
|
3038
|
-
userId: (0, smithy_client_1.expectString)(output.userId),
|
|
3039
|
-
};
|
|
3040
|
-
};
|
|
3041
|
-
const de_State = (output, context) => {
|
|
3042
|
-
return {
|
|
3043
|
-
onEnter: output.onEnter != null ? de_OnEnterLifecycle(output.onEnter, context) : undefined,
|
|
3044
|
-
onExit: output.onExit != null ? de_OnExitLifecycle(output.onExit, context) : undefined,
|
|
3045
|
-
onInput: output.onInput != null ? de_OnInputLifecycle(output.onInput, context) : undefined,
|
|
3046
|
-
stateName: (0, smithy_client_1.expectString)(output.stateName),
|
|
3047
|
-
};
|
|
3048
|
-
};
|
|
3049
|
-
const de_States = (output, context) => {
|
|
3050
|
-
const retVal = (output || [])
|
|
3051
|
-
.filter((e) => e != null)
|
|
3052
|
-
.map((entry) => {
|
|
3053
|
-
if (entry === null) {
|
|
3054
|
-
return null;
|
|
3055
|
-
}
|
|
3056
|
-
return de_State(entry, context);
|
|
3057
|
-
});
|
|
3058
|
-
return retVal;
|
|
3059
|
-
};
|
|
3060
|
-
const de_Tag = (output, context) => {
|
|
3061
|
-
return {
|
|
3062
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
3063
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
3064
|
-
};
|
|
3065
|
-
};
|
|
3066
|
-
const de_Tags = (output, context) => {
|
|
3067
|
-
const retVal = (output || [])
|
|
3068
|
-
.filter((e) => e != null)
|
|
3069
|
-
.map((entry) => {
|
|
3070
|
-
if (entry === null) {
|
|
3071
|
-
return null;
|
|
3072
|
-
}
|
|
3073
|
-
return de_Tag(entry, context);
|
|
3074
|
-
});
|
|
3075
|
-
return retVal;
|
|
3076
|
-
};
|
|
3077
|
-
const de_TransitionEvent = (output, context) => {
|
|
3078
|
-
return {
|
|
3079
|
-
actions: output.actions != null ? de_Actions(output.actions, context) : undefined,
|
|
3080
|
-
condition: (0, smithy_client_1.expectString)(output.condition),
|
|
3081
|
-
eventName: (0, smithy_client_1.expectString)(output.eventName),
|
|
3082
|
-
nextState: (0, smithy_client_1.expectString)(output.nextState),
|
|
3083
|
-
};
|
|
3084
|
-
};
|
|
3085
|
-
const de_TransitionEvents = (output, context) => {
|
|
3086
|
-
const retVal = (output || [])
|
|
3087
|
-
.filter((e) => e != null)
|
|
3088
|
-
.map((entry) => {
|
|
3089
|
-
if (entry === null) {
|
|
3090
|
-
return null;
|
|
3091
|
-
}
|
|
3092
|
-
return de_TransitionEvent(entry, context);
|
|
3093
|
-
});
|
|
3094
|
-
return retVal;
|
|
3095
2063
|
};
|
|
3096
2064
|
const deserializeMetadata = (output) => ({
|
|
3097
2065
|
httpStatusCode: output.statusCode,
|