@aws-sdk/client-greengrassv2 3.310.0 → 3.315.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/protocols/Aws_restJson1.js +438 -1083
- package/dist-es/protocols/Aws_restJson1.js +393 -1038
- package/package.json +6 -6
|
@@ -14,9 +14,9 @@ const se_AssociateServiceRoleToAccountCommand = async (input, context) => {
|
|
|
14
14
|
};
|
|
15
15
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole";
|
|
16
16
|
let body;
|
|
17
|
-
body = JSON.stringify({
|
|
18
|
-
|
|
19
|
-
});
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
RoleArn: [, , `roleArn`],
|
|
19
|
+
}));
|
|
20
20
|
return new protocol_http_1.HttpRequest({
|
|
21
21
|
protocol,
|
|
22
22
|
hostname,
|
|
@@ -37,9 +37,9 @@ const se_BatchAssociateClientDeviceWithCoreDeviceCommand = async (input, context
|
|
|
37
37
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/associateClientDevices";
|
|
38
38
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify({
|
|
41
|
-
|
|
42
|
-
});
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
entries: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
+
}));
|
|
43
43
|
return new protocol_http_1.HttpRequest({
|
|
44
44
|
protocol,
|
|
45
45
|
hostname,
|
|
@@ -60,11 +60,9 @@ const se_BatchDisassociateClientDeviceFromCoreDeviceCommand = async (input, cont
|
|
|
60
60
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/disassociateClientDevices";
|
|
61
61
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
62
62
|
let body;
|
|
63
|
-
body = JSON.stringify({
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}),
|
|
67
|
-
});
|
|
63
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
+
entries: (_) => (0, smithy_client_1._json)(_),
|
|
65
|
+
}));
|
|
68
66
|
return new protocol_http_1.HttpRequest({
|
|
69
67
|
protocol,
|
|
70
68
|
hostname,
|
|
@@ -101,14 +99,12 @@ const se_CreateComponentVersionCommand = async (input, context) => {
|
|
|
101
99
|
};
|
|
102
100
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/createComponentVersion";
|
|
103
101
|
let body;
|
|
104
|
-
body = JSON.stringify({
|
|
105
|
-
clientToken:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
111
|
-
});
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
103
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
104
|
+
inlineRecipe: (_) => context.base64Encoder(_),
|
|
105
|
+
lambdaFunction: (_) => (0, smithy_client_1._json)(_),
|
|
106
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
107
|
+
}));
|
|
112
108
|
return new protocol_http_1.HttpRequest({
|
|
113
109
|
protocol,
|
|
114
110
|
hostname,
|
|
@@ -127,20 +123,16 @@ const se_CreateDeploymentCommand = async (input, context) => {
|
|
|
127
123
|
};
|
|
128
124
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments";
|
|
129
125
|
let body;
|
|
130
|
-
body = JSON.stringify({
|
|
131
|
-
clientToken:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
...(input.parentTargetArn != null && { parentTargetArn: input.parentTargetArn }),
|
|
141
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
142
|
-
...(input.targetArn != null && { targetArn: input.targetArn }),
|
|
143
|
-
});
|
|
126
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
127
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
128
|
+
components: (_) => se_ComponentDeploymentSpecifications(_, context),
|
|
129
|
+
deploymentName: [],
|
|
130
|
+
deploymentPolicies: (_) => (0, smithy_client_1._json)(_),
|
|
131
|
+
iotJobConfiguration: (_) => se_DeploymentIoTJobConfiguration(_, context),
|
|
132
|
+
parentTargetArn: [],
|
|
133
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
134
|
+
targetArn: [],
|
|
135
|
+
}));
|
|
144
136
|
return new protocol_http_1.HttpRequest({
|
|
145
137
|
protocol,
|
|
146
138
|
hostname,
|
|
@@ -245,7 +237,7 @@ const se_GetComponentCommand = async (input, context) => {
|
|
|
245
237
|
const headers = {};
|
|
246
238
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}";
|
|
247
239
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
248
|
-
const query = map({
|
|
240
|
+
const query = (0, smithy_client_1.map)({
|
|
249
241
|
recipeOutputFormat: [, input.recipeOutputFormat],
|
|
250
242
|
});
|
|
251
243
|
let body;
|
|
@@ -358,7 +350,7 @@ const se_ListClientDevicesAssociatedWithCoreDeviceCommand = async (input, contex
|
|
|
358
350
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
359
351
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/associatedClientDevices";
|
|
360
352
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
361
|
-
const query = map({
|
|
353
|
+
const query = (0, smithy_client_1.map)({
|
|
362
354
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
363
355
|
nextToken: [, input.nextToken],
|
|
364
356
|
});
|
|
@@ -379,7 +371,7 @@ const se_ListComponentsCommand = async (input, context) => {
|
|
|
379
371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
380
372
|
const headers = {};
|
|
381
373
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components";
|
|
382
|
-
const query = map({
|
|
374
|
+
const query = (0, smithy_client_1.map)({
|
|
383
375
|
scope: [, input.scope],
|
|
384
376
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
385
377
|
nextToken: [, input.nextToken],
|
|
@@ -402,7 +394,7 @@ const se_ListComponentVersionsCommand = async (input, context) => {
|
|
|
402
394
|
const headers = {};
|
|
403
395
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/components/{arn}/versions";
|
|
404
396
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
405
|
-
const query = map({
|
|
397
|
+
const query = (0, smithy_client_1.map)({
|
|
406
398
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
407
399
|
nextToken: [, input.nextToken],
|
|
408
400
|
});
|
|
@@ -423,7 +415,7 @@ const se_ListCoreDevicesCommand = async (input, context) => {
|
|
|
423
415
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
424
416
|
const headers = {};
|
|
425
417
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/coreDevices";
|
|
426
|
-
const query = map({
|
|
418
|
+
const query = (0, smithy_client_1.map)({
|
|
427
419
|
thingGroupArn: [, input.thingGroupArn],
|
|
428
420
|
status: [, input.status],
|
|
429
421
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -446,7 +438,7 @@ const se_ListDeploymentsCommand = async (input, context) => {
|
|
|
446
438
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
447
439
|
const headers = {};
|
|
448
440
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/deployments";
|
|
449
|
-
const query = map({
|
|
441
|
+
const query = (0, smithy_client_1.map)({
|
|
450
442
|
targetArn: [, input.targetArn],
|
|
451
443
|
historyFilter: [, input.historyFilter],
|
|
452
444
|
parentTargetArn: [, input.parentTargetArn],
|
|
@@ -472,7 +464,7 @@ const se_ListEffectiveDeploymentsCommand = async (input, context) => {
|
|
|
472
464
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
473
465
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/effectiveDeployments";
|
|
474
466
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
475
|
-
const query = map({
|
|
467
|
+
const query = (0, smithy_client_1.map)({
|
|
476
468
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
477
469
|
nextToken: [, input.nextToken],
|
|
478
470
|
});
|
|
@@ -495,7 +487,7 @@ const se_ListInstalledComponentsCommand = async (input, context) => {
|
|
|
495
487
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
496
488
|
"/greengrass/v2/coreDevices/{coreDeviceThingName}/installedComponents";
|
|
497
489
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "coreDeviceThingName", () => input.coreDeviceThingName, "{coreDeviceThingName}", false);
|
|
498
|
-
const query = map({
|
|
490
|
+
const query = (0, smithy_client_1.map)({
|
|
499
491
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
500
492
|
nextToken: [, input.nextToken],
|
|
501
493
|
topologyFilter: [, input.topologyFilter],
|
|
@@ -537,12 +529,10 @@ const se_ResolveComponentCandidatesCommand = async (input, context) => {
|
|
|
537
529
|
};
|
|
538
530
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/v2/resolveComponentCandidates";
|
|
539
531
|
let body;
|
|
540
|
-
body = JSON.stringify({
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
...(input.platform != null && { platform: se_ComponentPlatform(input.platform, context) }),
|
|
545
|
-
});
|
|
532
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
533
|
+
componentCandidates: (_) => (0, smithy_client_1._json)(_),
|
|
534
|
+
platform: (_) => (0, smithy_client_1._json)(_),
|
|
535
|
+
}));
|
|
546
536
|
return new protocol_http_1.HttpRequest({
|
|
547
537
|
protocol,
|
|
548
538
|
hostname,
|
|
@@ -562,9 +552,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
562
552
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
563
553
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
564
554
|
let body;
|
|
565
|
-
body = JSON.stringify({
|
|
566
|
-
|
|
567
|
-
});
|
|
555
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
556
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
557
|
+
}));
|
|
568
558
|
return new protocol_http_1.HttpRequest({
|
|
569
559
|
protocol,
|
|
570
560
|
hostname,
|
|
@@ -581,7 +571,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
581
571
|
const headers = {};
|
|
582
572
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
583
573
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
584
|
-
const query = map({
|
|
574
|
+
const query = (0, smithy_client_1.map)({
|
|
585
575
|
tagKeys: [
|
|
586
576
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
587
577
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -609,11 +599,9 @@ const se_UpdateConnectivityInfoCommand = async (input, context) => {
|
|
|
609
599
|
"/greengrass/things/{thingName}/connectivityInfo";
|
|
610
600
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "thingName", () => input.thingName, "{thingName}", false);
|
|
611
601
|
let body;
|
|
612
|
-
body = JSON.stringify({
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}),
|
|
616
|
-
});
|
|
602
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
603
|
+
ConnectivityInfo: [, (_) => se_connectivityInfoList(_, context), `connectivityInfo`],
|
|
604
|
+
}));
|
|
617
605
|
return new protocol_http_1.HttpRequest({
|
|
618
606
|
protocol,
|
|
619
607
|
hostname,
|
|
@@ -629,13 +617,14 @@ const de_AssociateServiceRoleToAccountCommand = async (output, context) => {
|
|
|
629
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
618
|
return de_AssociateServiceRoleToAccountCommandError(output, context);
|
|
631
619
|
}
|
|
632
|
-
const contents = map({
|
|
620
|
+
const contents = (0, smithy_client_1.map)({
|
|
633
621
|
$metadata: deserializeMetadata(output),
|
|
634
622
|
});
|
|
635
623
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
624
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
625
|
+
associatedAt: [, smithy_client_1.expectString, `AssociatedAt`],
|
|
626
|
+
});
|
|
627
|
+
Object.assign(contents, doc);
|
|
639
628
|
return contents;
|
|
640
629
|
};
|
|
641
630
|
exports.de_AssociateServiceRoleToAccountCommand = de_AssociateServiceRoleToAccountCommand;
|
|
@@ -654,10 +643,9 @@ const de_AssociateServiceRoleToAccountCommandError = async (output, context) =>
|
|
|
654
643
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
655
644
|
default:
|
|
656
645
|
const parsedBody = parsedOutput.body;
|
|
657
|
-
|
|
646
|
+
return throwDefaultError({
|
|
658
647
|
output,
|
|
659
648
|
parsedBody,
|
|
660
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
661
649
|
errorCode,
|
|
662
650
|
});
|
|
663
651
|
}
|
|
@@ -666,13 +654,14 @@ const de_BatchAssociateClientDeviceWithCoreDeviceCommand = async (output, contex
|
|
|
666
654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
667
655
|
return de_BatchAssociateClientDeviceWithCoreDeviceCommandError(output, context);
|
|
668
656
|
}
|
|
669
|
-
const contents = map({
|
|
657
|
+
const contents = (0, smithy_client_1.map)({
|
|
670
658
|
$metadata: deserializeMetadata(output),
|
|
671
659
|
});
|
|
672
660
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
}
|
|
661
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
662
|
+
errorEntries: smithy_client_1._json,
|
|
663
|
+
});
|
|
664
|
+
Object.assign(contents, doc);
|
|
676
665
|
return contents;
|
|
677
666
|
};
|
|
678
667
|
exports.de_BatchAssociateClientDeviceWithCoreDeviceCommand = de_BatchAssociateClientDeviceWithCoreDeviceCommand;
|
|
@@ -700,10 +689,9 @@ const de_BatchAssociateClientDeviceWithCoreDeviceCommandError = async (output, c
|
|
|
700
689
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
701
690
|
default:
|
|
702
691
|
const parsedBody = parsedOutput.body;
|
|
703
|
-
|
|
692
|
+
return throwDefaultError({
|
|
704
693
|
output,
|
|
705
694
|
parsedBody,
|
|
706
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
707
695
|
errorCode,
|
|
708
696
|
});
|
|
709
697
|
}
|
|
@@ -712,13 +700,14 @@ const de_BatchDisassociateClientDeviceFromCoreDeviceCommand = async (output, con
|
|
|
712
700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
713
701
|
return de_BatchDisassociateClientDeviceFromCoreDeviceCommandError(output, context);
|
|
714
702
|
}
|
|
715
|
-
const contents = map({
|
|
703
|
+
const contents = (0, smithy_client_1.map)({
|
|
716
704
|
$metadata: deserializeMetadata(output),
|
|
717
705
|
});
|
|
718
706
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
707
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
708
|
+
errorEntries: smithy_client_1._json,
|
|
709
|
+
});
|
|
710
|
+
Object.assign(contents, doc);
|
|
722
711
|
return contents;
|
|
723
712
|
};
|
|
724
713
|
exports.de_BatchDisassociateClientDeviceFromCoreDeviceCommand = de_BatchDisassociateClientDeviceFromCoreDeviceCommand;
|
|
@@ -746,10 +735,9 @@ const de_BatchDisassociateClientDeviceFromCoreDeviceCommandError = async (output
|
|
|
746
735
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
747
736
|
default:
|
|
748
737
|
const parsedBody = parsedOutput.body;
|
|
749
|
-
|
|
738
|
+
return throwDefaultError({
|
|
750
739
|
output,
|
|
751
740
|
parsedBody,
|
|
752
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
753
741
|
errorCode,
|
|
754
742
|
});
|
|
755
743
|
}
|
|
@@ -758,13 +746,14 @@ const de_CancelDeploymentCommand = async (output, context) => {
|
|
|
758
746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
747
|
return de_CancelDeploymentCommandError(output, context);
|
|
760
748
|
}
|
|
761
|
-
const contents = map({
|
|
749
|
+
const contents = (0, smithy_client_1.map)({
|
|
762
750
|
$metadata: deserializeMetadata(output),
|
|
763
751
|
});
|
|
764
752
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}
|
|
753
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
754
|
+
message: smithy_client_1.expectString,
|
|
755
|
+
});
|
|
756
|
+
Object.assign(contents, doc);
|
|
768
757
|
return contents;
|
|
769
758
|
};
|
|
770
759
|
exports.de_CancelDeploymentCommand = de_CancelDeploymentCommand;
|
|
@@ -795,10 +784,9 @@ const de_CancelDeploymentCommandError = async (output, context) => {
|
|
|
795
784
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
796
785
|
default:
|
|
797
786
|
const parsedBody = parsedOutput.body;
|
|
798
|
-
|
|
787
|
+
return throwDefaultError({
|
|
799
788
|
output,
|
|
800
789
|
parsedBody,
|
|
801
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
802
790
|
errorCode,
|
|
803
791
|
});
|
|
804
792
|
}
|
|
@@ -807,25 +795,18 @@ const de_CreateComponentVersionCommand = async (output, context) => {
|
|
|
807
795
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
808
796
|
return de_CreateComponentVersionCommandError(output, context);
|
|
809
797
|
}
|
|
810
|
-
const contents = map({
|
|
798
|
+
const contents = (0, smithy_client_1.map)({
|
|
811
799
|
$metadata: deserializeMetadata(output),
|
|
812
800
|
});
|
|
813
801
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
}
|
|
823
|
-
if (data.creationTimestamp != null) {
|
|
824
|
-
contents.creationTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTimestamp)));
|
|
825
|
-
}
|
|
826
|
-
if (data.status != null) {
|
|
827
|
-
contents.status = de_CloudComponentStatus(data.status, context);
|
|
828
|
-
}
|
|
802
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
803
|
+
arn: smithy_client_1.expectString,
|
|
804
|
+
componentName: smithy_client_1.expectString,
|
|
805
|
+
componentVersion: smithy_client_1.expectString,
|
|
806
|
+
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
807
|
+
status: smithy_client_1._json,
|
|
808
|
+
});
|
|
809
|
+
Object.assign(contents, doc);
|
|
829
810
|
return contents;
|
|
830
811
|
};
|
|
831
812
|
exports.de_CreateComponentVersionCommand = de_CreateComponentVersionCommand;
|
|
@@ -859,10 +840,9 @@ const de_CreateComponentVersionCommandError = async (output, context) => {
|
|
|
859
840
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
841
|
default:
|
|
861
842
|
const parsedBody = parsedOutput.body;
|
|
862
|
-
|
|
843
|
+
return throwDefaultError({
|
|
863
844
|
output,
|
|
864
845
|
parsedBody,
|
|
865
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
866
846
|
errorCode,
|
|
867
847
|
});
|
|
868
848
|
}
|
|
@@ -871,19 +851,16 @@ const de_CreateDeploymentCommand = async (output, context) => {
|
|
|
871
851
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
872
852
|
return de_CreateDeploymentCommandError(output, context);
|
|
873
853
|
}
|
|
874
|
-
const contents = map({
|
|
854
|
+
const contents = (0, smithy_client_1.map)({
|
|
875
855
|
$metadata: deserializeMetadata(output),
|
|
876
856
|
});
|
|
877
857
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
if (data.iotJobId != null) {
|
|
885
|
-
contents.iotJobId = (0, smithy_client_1.expectString)(data.iotJobId);
|
|
886
|
-
}
|
|
858
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
859
|
+
deploymentId: smithy_client_1.expectString,
|
|
860
|
+
iotJobArn: smithy_client_1.expectString,
|
|
861
|
+
iotJobId: smithy_client_1.expectString,
|
|
862
|
+
});
|
|
863
|
+
Object.assign(contents, doc);
|
|
887
864
|
return contents;
|
|
888
865
|
};
|
|
889
866
|
exports.de_CreateDeploymentCommand = de_CreateDeploymentCommand;
|
|
@@ -917,10 +894,9 @@ const de_CreateDeploymentCommandError = async (output, context) => {
|
|
|
917
894
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
918
895
|
default:
|
|
919
896
|
const parsedBody = parsedOutput.body;
|
|
920
|
-
|
|
897
|
+
return throwDefaultError({
|
|
921
898
|
output,
|
|
922
899
|
parsedBody,
|
|
923
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
924
900
|
errorCode,
|
|
925
901
|
});
|
|
926
902
|
}
|
|
@@ -929,7 +905,7 @@ const de_DeleteComponentCommand = async (output, context) => {
|
|
|
929
905
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
930
906
|
return de_DeleteComponentCommandError(output, context);
|
|
931
907
|
}
|
|
932
|
-
const contents = map({
|
|
908
|
+
const contents = (0, smithy_client_1.map)({
|
|
933
909
|
$metadata: deserializeMetadata(output),
|
|
934
910
|
});
|
|
935
911
|
await collectBody(output.body, context);
|
|
@@ -963,10 +939,9 @@ const de_DeleteComponentCommandError = async (output, context) => {
|
|
|
963
939
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
964
940
|
default:
|
|
965
941
|
const parsedBody = parsedOutput.body;
|
|
966
|
-
|
|
942
|
+
return throwDefaultError({
|
|
967
943
|
output,
|
|
968
944
|
parsedBody,
|
|
969
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
970
945
|
errorCode,
|
|
971
946
|
});
|
|
972
947
|
}
|
|
@@ -975,7 +950,7 @@ const de_DeleteCoreDeviceCommand = async (output, context) => {
|
|
|
975
950
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
976
951
|
return de_DeleteCoreDeviceCommandError(output, context);
|
|
977
952
|
}
|
|
978
|
-
const contents = map({
|
|
953
|
+
const contents = (0, smithy_client_1.map)({
|
|
979
954
|
$metadata: deserializeMetadata(output),
|
|
980
955
|
});
|
|
981
956
|
await collectBody(output.body, context);
|
|
@@ -1009,10 +984,9 @@ const de_DeleteCoreDeviceCommandError = async (output, context) => {
|
|
|
1009
984
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1010
985
|
default:
|
|
1011
986
|
const parsedBody = parsedOutput.body;
|
|
1012
|
-
|
|
987
|
+
return throwDefaultError({
|
|
1013
988
|
output,
|
|
1014
989
|
parsedBody,
|
|
1015
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1016
990
|
errorCode,
|
|
1017
991
|
});
|
|
1018
992
|
}
|
|
@@ -1021,7 +995,7 @@ const de_DeleteDeploymentCommand = async (output, context) => {
|
|
|
1021
995
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1022
996
|
return de_DeleteDeploymentCommandError(output, context);
|
|
1023
997
|
}
|
|
1024
|
-
const contents = map({
|
|
998
|
+
const contents = (0, smithy_client_1.map)({
|
|
1025
999
|
$metadata: deserializeMetadata(output),
|
|
1026
1000
|
});
|
|
1027
1001
|
await collectBody(output.body, context);
|
|
@@ -1055,10 +1029,9 @@ const de_DeleteDeploymentCommandError = async (output, context) => {
|
|
|
1055
1029
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1056
1030
|
default:
|
|
1057
1031
|
const parsedBody = parsedOutput.body;
|
|
1058
|
-
|
|
1032
|
+
return throwDefaultError({
|
|
1059
1033
|
output,
|
|
1060
1034
|
parsedBody,
|
|
1061
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1062
1035
|
errorCode,
|
|
1063
1036
|
});
|
|
1064
1037
|
}
|
|
@@ -1067,37 +1040,22 @@ const de_DescribeComponentCommand = async (output, context) => {
|
|
|
1067
1040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1068
1041
|
return de_DescribeComponentCommandError(output, context);
|
|
1069
1042
|
}
|
|
1070
|
-
const contents = map({
|
|
1043
|
+
const contents = (0, smithy_client_1.map)({
|
|
1071
1044
|
$metadata: deserializeMetadata(output),
|
|
1072
1045
|
});
|
|
1073
1046
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
if (data.description != null) {
|
|
1087
|
-
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1088
|
-
}
|
|
1089
|
-
if (data.platforms != null) {
|
|
1090
|
-
contents.platforms = de_ComponentPlatformList(data.platforms, context);
|
|
1091
|
-
}
|
|
1092
|
-
if (data.publisher != null) {
|
|
1093
|
-
contents.publisher = (0, smithy_client_1.expectString)(data.publisher);
|
|
1094
|
-
}
|
|
1095
|
-
if (data.status != null) {
|
|
1096
|
-
contents.status = de_CloudComponentStatus(data.status, context);
|
|
1097
|
-
}
|
|
1098
|
-
if (data.tags != null) {
|
|
1099
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1100
|
-
}
|
|
1047
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1048
|
+
arn: smithy_client_1.expectString,
|
|
1049
|
+
componentName: smithy_client_1.expectString,
|
|
1050
|
+
componentVersion: smithy_client_1.expectString,
|
|
1051
|
+
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1052
|
+
description: smithy_client_1.expectString,
|
|
1053
|
+
platforms: smithy_client_1._json,
|
|
1054
|
+
publisher: smithy_client_1.expectString,
|
|
1055
|
+
status: smithy_client_1._json,
|
|
1056
|
+
tags: smithy_client_1._json,
|
|
1057
|
+
});
|
|
1058
|
+
Object.assign(contents, doc);
|
|
1101
1059
|
return contents;
|
|
1102
1060
|
};
|
|
1103
1061
|
exports.de_DescribeComponentCommand = de_DescribeComponentCommand;
|
|
@@ -1125,10 +1083,9 @@ const de_DescribeComponentCommandError = async (output, context) => {
|
|
|
1125
1083
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1126
1084
|
default:
|
|
1127
1085
|
const parsedBody = parsedOutput.body;
|
|
1128
|
-
|
|
1086
|
+
return throwDefaultError({
|
|
1129
1087
|
output,
|
|
1130
1088
|
parsedBody,
|
|
1131
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1132
1089
|
errorCode,
|
|
1133
1090
|
});
|
|
1134
1091
|
}
|
|
@@ -1137,13 +1094,14 @@ const de_DisassociateServiceRoleFromAccountCommand = async (output, context) =>
|
|
|
1137
1094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1138
1095
|
return de_DisassociateServiceRoleFromAccountCommandError(output, context);
|
|
1139
1096
|
}
|
|
1140
|
-
const contents = map({
|
|
1097
|
+
const contents = (0, smithy_client_1.map)({
|
|
1141
1098
|
$metadata: deserializeMetadata(output),
|
|
1142
1099
|
});
|
|
1143
1100
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
}
|
|
1101
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1102
|
+
disassociatedAt: [, smithy_client_1.expectString, `DisassociatedAt`],
|
|
1103
|
+
});
|
|
1104
|
+
Object.assign(contents, doc);
|
|
1147
1105
|
return contents;
|
|
1148
1106
|
};
|
|
1149
1107
|
exports.de_DisassociateServiceRoleFromAccountCommand = de_DisassociateServiceRoleFromAccountCommand;
|
|
@@ -1159,10 +1117,9 @@ const de_DisassociateServiceRoleFromAccountCommandError = async (output, context
|
|
|
1159
1117
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1160
1118
|
default:
|
|
1161
1119
|
const parsedBody = parsedOutput.body;
|
|
1162
|
-
|
|
1120
|
+
return throwDefaultError({
|
|
1163
1121
|
output,
|
|
1164
1122
|
parsedBody,
|
|
1165
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1166
1123
|
errorCode,
|
|
1167
1124
|
});
|
|
1168
1125
|
}
|
|
@@ -1171,19 +1128,16 @@ const de_GetComponentCommand = async (output, context) => {
|
|
|
1171
1128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1172
1129
|
return de_GetComponentCommandError(output, context);
|
|
1173
1130
|
}
|
|
1174
|
-
const contents = map({
|
|
1131
|
+
const contents = (0, smithy_client_1.map)({
|
|
1175
1132
|
$metadata: deserializeMetadata(output),
|
|
1176
1133
|
});
|
|
1177
1134
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
if (data.tags != null) {
|
|
1185
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1186
|
-
}
|
|
1135
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1136
|
+
recipe: context.base64Decoder,
|
|
1137
|
+
recipeOutputFormat: smithy_client_1.expectString,
|
|
1138
|
+
tags: smithy_client_1._json,
|
|
1139
|
+
});
|
|
1140
|
+
Object.assign(contents, doc);
|
|
1187
1141
|
return contents;
|
|
1188
1142
|
};
|
|
1189
1143
|
exports.de_GetComponentCommand = de_GetComponentCommand;
|
|
@@ -1211,10 +1165,9 @@ const de_GetComponentCommandError = async (output, context) => {
|
|
|
1211
1165
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1212
1166
|
default:
|
|
1213
1167
|
const parsedBody = parsedOutput.body;
|
|
1214
|
-
|
|
1168
|
+
return throwDefaultError({
|
|
1215
1169
|
output,
|
|
1216
1170
|
parsedBody,
|
|
1217
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1218
1171
|
errorCode,
|
|
1219
1172
|
});
|
|
1220
1173
|
}
|
|
@@ -1223,13 +1176,14 @@ const de_GetComponentVersionArtifactCommand = async (output, context) => {
|
|
|
1223
1176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1224
1177
|
return de_GetComponentVersionArtifactCommandError(output, context);
|
|
1225
1178
|
}
|
|
1226
|
-
const contents = map({
|
|
1179
|
+
const contents = (0, smithy_client_1.map)({
|
|
1227
1180
|
$metadata: deserializeMetadata(output),
|
|
1228
1181
|
});
|
|
1229
1182
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
}
|
|
1183
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1184
|
+
preSignedUrl: smithy_client_1.expectString,
|
|
1185
|
+
});
|
|
1186
|
+
Object.assign(contents, doc);
|
|
1233
1187
|
return contents;
|
|
1234
1188
|
};
|
|
1235
1189
|
exports.de_GetComponentVersionArtifactCommand = de_GetComponentVersionArtifactCommand;
|
|
@@ -1257,10 +1211,9 @@ const de_GetComponentVersionArtifactCommandError = async (output, context) => {
|
|
|
1257
1211
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1258
1212
|
default:
|
|
1259
1213
|
const parsedBody = parsedOutput.body;
|
|
1260
|
-
|
|
1214
|
+
return throwDefaultError({
|
|
1261
1215
|
output,
|
|
1262
1216
|
parsedBody,
|
|
1263
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1264
1217
|
errorCode,
|
|
1265
1218
|
});
|
|
1266
1219
|
}
|
|
@@ -1269,16 +1222,15 @@ const de_GetConnectivityInfoCommand = async (output, context) => {
|
|
|
1269
1222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1270
1223
|
return de_GetConnectivityInfoCommandError(output, context);
|
|
1271
1224
|
}
|
|
1272
|
-
const contents = map({
|
|
1225
|
+
const contents = (0, smithy_client_1.map)({
|
|
1273
1226
|
$metadata: deserializeMetadata(output),
|
|
1274
1227
|
});
|
|
1275
1228
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
}
|
|
1229
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1230
|
+
connectivityInfo: [, (_) => de_connectivityInfoList(_, context), `ConnectivityInfo`],
|
|
1231
|
+
message: [, smithy_client_1.expectString, `Message`],
|
|
1232
|
+
});
|
|
1233
|
+
Object.assign(contents, doc);
|
|
1282
1234
|
return contents;
|
|
1283
1235
|
};
|
|
1284
1236
|
exports.de_GetConnectivityInfoCommand = de_GetConnectivityInfoCommand;
|
|
@@ -1297,10 +1249,9 @@ const de_GetConnectivityInfoCommandError = async (output, context) => {
|
|
|
1297
1249
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1298
1250
|
default:
|
|
1299
1251
|
const parsedBody = parsedOutput.body;
|
|
1300
|
-
|
|
1252
|
+
return throwDefaultError({
|
|
1301
1253
|
output,
|
|
1302
1254
|
parsedBody,
|
|
1303
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1304
1255
|
errorCode,
|
|
1305
1256
|
});
|
|
1306
1257
|
}
|
|
@@ -1309,31 +1260,20 @@ const de_GetCoreDeviceCommand = async (output, context) => {
|
|
|
1309
1260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
1261
|
return de_GetCoreDeviceCommandError(output, context);
|
|
1311
1262
|
}
|
|
1312
|
-
const contents = map({
|
|
1263
|
+
const contents = (0, smithy_client_1.map)({
|
|
1313
1264
|
$metadata: deserializeMetadata(output),
|
|
1314
1265
|
});
|
|
1315
1266
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
contents.lastStatusUpdateTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastStatusUpdateTimestamp)));
|
|
1327
|
-
}
|
|
1328
|
-
if (data.platform != null) {
|
|
1329
|
-
contents.platform = (0, smithy_client_1.expectString)(data.platform);
|
|
1330
|
-
}
|
|
1331
|
-
if (data.status != null) {
|
|
1332
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1333
|
-
}
|
|
1334
|
-
if (data.tags != null) {
|
|
1335
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1336
|
-
}
|
|
1267
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1268
|
+
architecture: smithy_client_1.expectString,
|
|
1269
|
+
coreDeviceThingName: smithy_client_1.expectString,
|
|
1270
|
+
coreVersion: smithy_client_1.expectString,
|
|
1271
|
+
lastStatusUpdateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1272
|
+
platform: smithy_client_1.expectString,
|
|
1273
|
+
status: smithy_client_1.expectString,
|
|
1274
|
+
tags: smithy_client_1._json,
|
|
1275
|
+
});
|
|
1276
|
+
Object.assign(contents, doc);
|
|
1337
1277
|
return contents;
|
|
1338
1278
|
};
|
|
1339
1279
|
exports.de_GetCoreDeviceCommand = de_GetCoreDeviceCommand;
|
|
@@ -1361,10 +1301,9 @@ const de_GetCoreDeviceCommandError = async (output, context) => {
|
|
|
1361
1301
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1362
1302
|
default:
|
|
1363
1303
|
const parsedBody = parsedOutput.body;
|
|
1364
|
-
|
|
1304
|
+
return throwDefaultError({
|
|
1365
1305
|
output,
|
|
1366
1306
|
parsedBody,
|
|
1367
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1368
1307
|
errorCode,
|
|
1369
1308
|
});
|
|
1370
1309
|
}
|
|
@@ -1373,52 +1312,27 @@ const de_GetDeploymentCommand = async (output, context) => {
|
|
|
1373
1312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
1313
|
return de_GetDeploymentCommandError(output, context);
|
|
1375
1314
|
}
|
|
1376
|
-
const contents = map({
|
|
1315
|
+
const contents = (0, smithy_client_1.map)({
|
|
1377
1316
|
$metadata: deserializeMetadata(output),
|
|
1378
1317
|
});
|
|
1379
1318
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
}
|
|
1398
|
-
if (data.iotJobArn != null) {
|
|
1399
|
-
contents.iotJobArn = (0, smithy_client_1.expectString)(data.iotJobArn);
|
|
1400
|
-
}
|
|
1401
|
-
if (data.iotJobConfiguration != null) {
|
|
1402
|
-
contents.iotJobConfiguration = de_DeploymentIoTJobConfiguration(data.iotJobConfiguration, context);
|
|
1403
|
-
}
|
|
1404
|
-
if (data.iotJobId != null) {
|
|
1405
|
-
contents.iotJobId = (0, smithy_client_1.expectString)(data.iotJobId);
|
|
1406
|
-
}
|
|
1407
|
-
if (data.isLatestForTarget != null) {
|
|
1408
|
-
contents.isLatestForTarget = (0, smithy_client_1.expectBoolean)(data.isLatestForTarget);
|
|
1409
|
-
}
|
|
1410
|
-
if (data.parentTargetArn != null) {
|
|
1411
|
-
contents.parentTargetArn = (0, smithy_client_1.expectString)(data.parentTargetArn);
|
|
1412
|
-
}
|
|
1413
|
-
if (data.revisionId != null) {
|
|
1414
|
-
contents.revisionId = (0, smithy_client_1.expectString)(data.revisionId);
|
|
1415
|
-
}
|
|
1416
|
-
if (data.tags != null) {
|
|
1417
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1418
|
-
}
|
|
1419
|
-
if (data.targetArn != null) {
|
|
1420
|
-
contents.targetArn = (0, smithy_client_1.expectString)(data.targetArn);
|
|
1421
|
-
}
|
|
1319
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1320
|
+
components: (_) => de_ComponentDeploymentSpecifications(_, context),
|
|
1321
|
+
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1322
|
+
deploymentId: smithy_client_1.expectString,
|
|
1323
|
+
deploymentName: smithy_client_1.expectString,
|
|
1324
|
+
deploymentPolicies: smithy_client_1._json,
|
|
1325
|
+
deploymentStatus: smithy_client_1.expectString,
|
|
1326
|
+
iotJobArn: smithy_client_1.expectString,
|
|
1327
|
+
iotJobConfiguration: (_) => de_DeploymentIoTJobConfiguration(_, context),
|
|
1328
|
+
iotJobId: smithy_client_1.expectString,
|
|
1329
|
+
isLatestForTarget: smithy_client_1.expectBoolean,
|
|
1330
|
+
parentTargetArn: smithy_client_1.expectString,
|
|
1331
|
+
revisionId: smithy_client_1.expectString,
|
|
1332
|
+
tags: smithy_client_1._json,
|
|
1333
|
+
targetArn: smithy_client_1.expectString,
|
|
1334
|
+
});
|
|
1335
|
+
Object.assign(contents, doc);
|
|
1422
1336
|
return contents;
|
|
1423
1337
|
};
|
|
1424
1338
|
exports.de_GetDeploymentCommand = de_GetDeploymentCommand;
|
|
@@ -1446,10 +1360,9 @@ const de_GetDeploymentCommandError = async (output, context) => {
|
|
|
1446
1360
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1447
1361
|
default:
|
|
1448
1362
|
const parsedBody = parsedOutput.body;
|
|
1449
|
-
|
|
1363
|
+
return throwDefaultError({
|
|
1450
1364
|
output,
|
|
1451
1365
|
parsedBody,
|
|
1452
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1453
1366
|
errorCode,
|
|
1454
1367
|
});
|
|
1455
1368
|
}
|
|
@@ -1458,16 +1371,15 @@ const de_GetServiceRoleForAccountCommand = async (output, context) => {
|
|
|
1458
1371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1459
1372
|
return de_GetServiceRoleForAccountCommandError(output, context);
|
|
1460
1373
|
}
|
|
1461
|
-
const contents = map({
|
|
1374
|
+
const contents = (0, smithy_client_1.map)({
|
|
1462
1375
|
$metadata: deserializeMetadata(output),
|
|
1463
1376
|
});
|
|
1464
1377
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1378
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1379
|
+
associatedAt: [, smithy_client_1.expectString, `AssociatedAt`],
|
|
1380
|
+
roleArn: [, smithy_client_1.expectString, `RoleArn`],
|
|
1381
|
+
});
|
|
1382
|
+
Object.assign(contents, doc);
|
|
1471
1383
|
return contents;
|
|
1472
1384
|
};
|
|
1473
1385
|
exports.de_GetServiceRoleForAccountCommand = de_GetServiceRoleForAccountCommand;
|
|
@@ -1483,10 +1395,9 @@ const de_GetServiceRoleForAccountCommandError = async (output, context) => {
|
|
|
1483
1395
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1484
1396
|
default:
|
|
1485
1397
|
const parsedBody = parsedOutput.body;
|
|
1486
|
-
|
|
1398
|
+
return throwDefaultError({
|
|
1487
1399
|
output,
|
|
1488
1400
|
parsedBody,
|
|
1489
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1490
1401
|
errorCode,
|
|
1491
1402
|
});
|
|
1492
1403
|
}
|
|
@@ -1495,16 +1406,15 @@ const de_ListClientDevicesAssociatedWithCoreDeviceCommand = async (output, conte
|
|
|
1495
1406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
1407
|
return de_ListClientDevicesAssociatedWithCoreDeviceCommandError(output, context);
|
|
1497
1408
|
}
|
|
1498
|
-
const contents = map({
|
|
1409
|
+
const contents = (0, smithy_client_1.map)({
|
|
1499
1410
|
$metadata: deserializeMetadata(output),
|
|
1500
1411
|
});
|
|
1501
1412
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
}
|
|
1413
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1414
|
+
associatedClientDevices: (_) => de_AssociatedClientDeviceList(_, context),
|
|
1415
|
+
nextToken: smithy_client_1.expectString,
|
|
1416
|
+
});
|
|
1417
|
+
Object.assign(contents, doc);
|
|
1508
1418
|
return contents;
|
|
1509
1419
|
};
|
|
1510
1420
|
exports.de_ListClientDevicesAssociatedWithCoreDeviceCommand = de_ListClientDevicesAssociatedWithCoreDeviceCommand;
|
|
@@ -1532,10 +1442,9 @@ const de_ListClientDevicesAssociatedWithCoreDeviceCommandError = async (output,
|
|
|
1532
1442
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1533
1443
|
default:
|
|
1534
1444
|
const parsedBody = parsedOutput.body;
|
|
1535
|
-
|
|
1445
|
+
return throwDefaultError({
|
|
1536
1446
|
output,
|
|
1537
1447
|
parsedBody,
|
|
1538
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1539
1448
|
errorCode,
|
|
1540
1449
|
});
|
|
1541
1450
|
}
|
|
@@ -1544,16 +1453,15 @@ const de_ListComponentsCommand = async (output, context) => {
|
|
|
1544
1453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1545
1454
|
return de_ListComponentsCommandError(output, context);
|
|
1546
1455
|
}
|
|
1547
|
-
const contents = map({
|
|
1456
|
+
const contents = (0, smithy_client_1.map)({
|
|
1548
1457
|
$metadata: deserializeMetadata(output),
|
|
1549
1458
|
});
|
|
1550
1459
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
}
|
|
1460
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1461
|
+
components: (_) => de_ComponentList(_, context),
|
|
1462
|
+
nextToken: smithy_client_1.expectString,
|
|
1463
|
+
});
|
|
1464
|
+
Object.assign(contents, doc);
|
|
1557
1465
|
return contents;
|
|
1558
1466
|
};
|
|
1559
1467
|
exports.de_ListComponentsCommand = de_ListComponentsCommand;
|
|
@@ -1581,10 +1489,9 @@ const de_ListComponentsCommandError = async (output, context) => {
|
|
|
1581
1489
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1582
1490
|
default:
|
|
1583
1491
|
const parsedBody = parsedOutput.body;
|
|
1584
|
-
|
|
1492
|
+
return throwDefaultError({
|
|
1585
1493
|
output,
|
|
1586
1494
|
parsedBody,
|
|
1587
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1588
1495
|
errorCode,
|
|
1589
1496
|
});
|
|
1590
1497
|
}
|
|
@@ -1593,16 +1500,15 @@ const de_ListComponentVersionsCommand = async (output, context) => {
|
|
|
1593
1500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1594
1501
|
return de_ListComponentVersionsCommandError(output, context);
|
|
1595
1502
|
}
|
|
1596
|
-
const contents = map({
|
|
1503
|
+
const contents = (0, smithy_client_1.map)({
|
|
1597
1504
|
$metadata: deserializeMetadata(output),
|
|
1598
1505
|
});
|
|
1599
1506
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
}
|
|
1507
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1508
|
+
componentVersions: smithy_client_1._json,
|
|
1509
|
+
nextToken: smithy_client_1.expectString,
|
|
1510
|
+
});
|
|
1511
|
+
Object.assign(contents, doc);
|
|
1606
1512
|
return contents;
|
|
1607
1513
|
};
|
|
1608
1514
|
exports.de_ListComponentVersionsCommand = de_ListComponentVersionsCommand;
|
|
@@ -1630,10 +1536,9 @@ const de_ListComponentVersionsCommandError = async (output, context) => {
|
|
|
1630
1536
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1631
1537
|
default:
|
|
1632
1538
|
const parsedBody = parsedOutput.body;
|
|
1633
|
-
|
|
1539
|
+
return throwDefaultError({
|
|
1634
1540
|
output,
|
|
1635
1541
|
parsedBody,
|
|
1636
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1637
1542
|
errorCode,
|
|
1638
1543
|
});
|
|
1639
1544
|
}
|
|
@@ -1642,16 +1547,15 @@ const de_ListCoreDevicesCommand = async (output, context) => {
|
|
|
1642
1547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1643
1548
|
return de_ListCoreDevicesCommandError(output, context);
|
|
1644
1549
|
}
|
|
1645
|
-
const contents = map({
|
|
1550
|
+
const contents = (0, smithy_client_1.map)({
|
|
1646
1551
|
$metadata: deserializeMetadata(output),
|
|
1647
1552
|
});
|
|
1648
1553
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
}
|
|
1554
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1555
|
+
coreDevices: (_) => de_CoreDevicesList(_, context),
|
|
1556
|
+
nextToken: smithy_client_1.expectString,
|
|
1557
|
+
});
|
|
1558
|
+
Object.assign(contents, doc);
|
|
1655
1559
|
return contents;
|
|
1656
1560
|
};
|
|
1657
1561
|
exports.de_ListCoreDevicesCommand = de_ListCoreDevicesCommand;
|
|
@@ -1676,10 +1580,9 @@ const de_ListCoreDevicesCommandError = async (output, context) => {
|
|
|
1676
1580
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1677
1581
|
default:
|
|
1678
1582
|
const parsedBody = parsedOutput.body;
|
|
1679
|
-
|
|
1583
|
+
return throwDefaultError({
|
|
1680
1584
|
output,
|
|
1681
1585
|
parsedBody,
|
|
1682
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1683
1586
|
errorCode,
|
|
1684
1587
|
});
|
|
1685
1588
|
}
|
|
@@ -1688,16 +1591,15 @@ const de_ListDeploymentsCommand = async (output, context) => {
|
|
|
1688
1591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1689
1592
|
return de_ListDeploymentsCommandError(output, context);
|
|
1690
1593
|
}
|
|
1691
|
-
const contents = map({
|
|
1594
|
+
const contents = (0, smithy_client_1.map)({
|
|
1692
1595
|
$metadata: deserializeMetadata(output),
|
|
1693
1596
|
});
|
|
1694
1597
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
}
|
|
1598
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1599
|
+
deployments: (_) => de_DeploymentList(_, context),
|
|
1600
|
+
nextToken: smithy_client_1.expectString,
|
|
1601
|
+
});
|
|
1602
|
+
Object.assign(contents, doc);
|
|
1701
1603
|
return contents;
|
|
1702
1604
|
};
|
|
1703
1605
|
exports.de_ListDeploymentsCommand = de_ListDeploymentsCommand;
|
|
@@ -1722,10 +1624,9 @@ const de_ListDeploymentsCommandError = async (output, context) => {
|
|
|
1722
1624
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1723
1625
|
default:
|
|
1724
1626
|
const parsedBody = parsedOutput.body;
|
|
1725
|
-
|
|
1627
|
+
return throwDefaultError({
|
|
1726
1628
|
output,
|
|
1727
1629
|
parsedBody,
|
|
1728
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1729
1630
|
errorCode,
|
|
1730
1631
|
});
|
|
1731
1632
|
}
|
|
@@ -1734,16 +1635,15 @@ const de_ListEffectiveDeploymentsCommand = async (output, context) => {
|
|
|
1734
1635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1735
1636
|
return de_ListEffectiveDeploymentsCommandError(output, context);
|
|
1736
1637
|
}
|
|
1737
|
-
const contents = map({
|
|
1638
|
+
const contents = (0, smithy_client_1.map)({
|
|
1738
1639
|
$metadata: deserializeMetadata(output),
|
|
1739
1640
|
});
|
|
1740
1641
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
}
|
|
1642
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1643
|
+
effectiveDeployments: (_) => de_EffectiveDeploymentsList(_, context),
|
|
1644
|
+
nextToken: smithy_client_1.expectString,
|
|
1645
|
+
});
|
|
1646
|
+
Object.assign(contents, doc);
|
|
1747
1647
|
return contents;
|
|
1748
1648
|
};
|
|
1749
1649
|
exports.de_ListEffectiveDeploymentsCommand = de_ListEffectiveDeploymentsCommand;
|
|
@@ -1771,10 +1671,9 @@ const de_ListEffectiveDeploymentsCommandError = async (output, context) => {
|
|
|
1771
1671
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1772
1672
|
default:
|
|
1773
1673
|
const parsedBody = parsedOutput.body;
|
|
1774
|
-
|
|
1674
|
+
return throwDefaultError({
|
|
1775
1675
|
output,
|
|
1776
1676
|
parsedBody,
|
|
1777
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1778
1677
|
errorCode,
|
|
1779
1678
|
});
|
|
1780
1679
|
}
|
|
@@ -1783,16 +1682,15 @@ const de_ListInstalledComponentsCommand = async (output, context) => {
|
|
|
1783
1682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1784
1683
|
return de_ListInstalledComponentsCommandError(output, context);
|
|
1785
1684
|
}
|
|
1786
|
-
const contents = map({
|
|
1685
|
+
const contents = (0, smithy_client_1.map)({
|
|
1787
1686
|
$metadata: deserializeMetadata(output),
|
|
1788
1687
|
});
|
|
1789
1688
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
}
|
|
1689
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1690
|
+
installedComponents: (_) => de_InstalledComponentList(_, context),
|
|
1691
|
+
nextToken: smithy_client_1.expectString,
|
|
1692
|
+
});
|
|
1693
|
+
Object.assign(contents, doc);
|
|
1796
1694
|
return contents;
|
|
1797
1695
|
};
|
|
1798
1696
|
exports.de_ListInstalledComponentsCommand = de_ListInstalledComponentsCommand;
|
|
@@ -1820,10 +1718,9 @@ const de_ListInstalledComponentsCommandError = async (output, context) => {
|
|
|
1820
1718
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1821
1719
|
default:
|
|
1822
1720
|
const parsedBody = parsedOutput.body;
|
|
1823
|
-
|
|
1721
|
+
return throwDefaultError({
|
|
1824
1722
|
output,
|
|
1825
1723
|
parsedBody,
|
|
1826
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1827
1724
|
errorCode,
|
|
1828
1725
|
});
|
|
1829
1726
|
}
|
|
@@ -1832,13 +1729,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1832
1729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1833
1730
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1834
1731
|
}
|
|
1835
|
-
const contents = map({
|
|
1732
|
+
const contents = (0, smithy_client_1.map)({
|
|
1836
1733
|
$metadata: deserializeMetadata(output),
|
|
1837
1734
|
});
|
|
1838
1735
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
}
|
|
1736
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1737
|
+
tags: smithy_client_1._json,
|
|
1738
|
+
});
|
|
1739
|
+
Object.assign(contents, doc);
|
|
1842
1740
|
return contents;
|
|
1843
1741
|
};
|
|
1844
1742
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1860,10 +1758,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1860
1758
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1861
1759
|
default:
|
|
1862
1760
|
const parsedBody = parsedOutput.body;
|
|
1863
|
-
|
|
1761
|
+
return throwDefaultError({
|
|
1864
1762
|
output,
|
|
1865
1763
|
parsedBody,
|
|
1866
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1867
1764
|
errorCode,
|
|
1868
1765
|
});
|
|
1869
1766
|
}
|
|
@@ -1872,13 +1769,14 @@ const de_ResolveComponentCandidatesCommand = async (output, context) => {
|
|
|
1872
1769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1873
1770
|
return de_ResolveComponentCandidatesCommandError(output, context);
|
|
1874
1771
|
}
|
|
1875
|
-
const contents = map({
|
|
1772
|
+
const contents = (0, smithy_client_1.map)({
|
|
1876
1773
|
$metadata: deserializeMetadata(output),
|
|
1877
1774
|
});
|
|
1878
1775
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
}
|
|
1776
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1777
|
+
resolvedComponentVersions: (_) => de_ResolvedComponentVersionsList(_, context),
|
|
1778
|
+
});
|
|
1779
|
+
Object.assign(contents, doc);
|
|
1882
1780
|
return contents;
|
|
1883
1781
|
};
|
|
1884
1782
|
exports.de_ResolveComponentCandidatesCommand = de_ResolveComponentCandidatesCommand;
|
|
@@ -1909,10 +1807,9 @@ const de_ResolveComponentCandidatesCommandError = async (output, context) => {
|
|
|
1909
1807
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1910
1808
|
default:
|
|
1911
1809
|
const parsedBody = parsedOutput.body;
|
|
1912
|
-
|
|
1810
|
+
return throwDefaultError({
|
|
1913
1811
|
output,
|
|
1914
1812
|
parsedBody,
|
|
1915
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1916
1813
|
errorCode,
|
|
1917
1814
|
});
|
|
1918
1815
|
}
|
|
@@ -1921,7 +1818,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1921
1818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
1819
|
return de_TagResourceCommandError(output, context);
|
|
1923
1820
|
}
|
|
1924
|
-
const contents = map({
|
|
1821
|
+
const contents = (0, smithy_client_1.map)({
|
|
1925
1822
|
$metadata: deserializeMetadata(output),
|
|
1926
1823
|
});
|
|
1927
1824
|
await collectBody(output.body, context);
|
|
@@ -1946,10 +1843,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1946
1843
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1947
1844
|
default:
|
|
1948
1845
|
const parsedBody = parsedOutput.body;
|
|
1949
|
-
|
|
1846
|
+
return throwDefaultError({
|
|
1950
1847
|
output,
|
|
1951
1848
|
parsedBody,
|
|
1952
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1953
1849
|
errorCode,
|
|
1954
1850
|
});
|
|
1955
1851
|
}
|
|
@@ -1958,7 +1854,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1958
1854
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1959
1855
|
return de_UntagResourceCommandError(output, context);
|
|
1960
1856
|
}
|
|
1961
|
-
const contents = map({
|
|
1857
|
+
const contents = (0, smithy_client_1.map)({
|
|
1962
1858
|
$metadata: deserializeMetadata(output),
|
|
1963
1859
|
});
|
|
1964
1860
|
await collectBody(output.body, context);
|
|
@@ -1983,10 +1879,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1983
1879
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1984
1880
|
default:
|
|
1985
1881
|
const parsedBody = parsedOutput.body;
|
|
1986
|
-
|
|
1882
|
+
return throwDefaultError({
|
|
1987
1883
|
output,
|
|
1988
1884
|
parsedBody,
|
|
1989
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
1990
1885
|
errorCode,
|
|
1991
1886
|
});
|
|
1992
1887
|
}
|
|
@@ -1995,16 +1890,15 @@ const de_UpdateConnectivityInfoCommand = async (output, context) => {
|
|
|
1995
1890
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1996
1891
|
return de_UpdateConnectivityInfoCommandError(output, context);
|
|
1997
1892
|
}
|
|
1998
|
-
const contents = map({
|
|
1893
|
+
const contents = (0, smithy_client_1.map)({
|
|
1999
1894
|
$metadata: deserializeMetadata(output),
|
|
2000
1895
|
});
|
|
2001
1896
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
}
|
|
1897
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1898
|
+
message: [, smithy_client_1.expectString, `Message`],
|
|
1899
|
+
version: [, smithy_client_1.expectString, `Version`],
|
|
1900
|
+
});
|
|
1901
|
+
Object.assign(contents, doc);
|
|
2008
1902
|
return contents;
|
|
2009
1903
|
};
|
|
2010
1904
|
exports.de_UpdateConnectivityInfoCommand = de_UpdateConnectivityInfoCommand;
|
|
@@ -2023,21 +1917,21 @@ const de_UpdateConnectivityInfoCommandError = async (output, context) => {
|
|
|
2023
1917
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2024
1918
|
default:
|
|
2025
1919
|
const parsedBody = parsedOutput.body;
|
|
2026
|
-
|
|
1920
|
+
return throwDefaultError({
|
|
2027
1921
|
output,
|
|
2028
1922
|
parsedBody,
|
|
2029
|
-
exceptionCtor: GreengrassV2ServiceException_1.GreengrassV2ServiceException,
|
|
2030
1923
|
errorCode,
|
|
2031
1924
|
});
|
|
2032
1925
|
}
|
|
2033
1926
|
};
|
|
2034
|
-
const
|
|
1927
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(GreengrassV2ServiceException_1.GreengrassV2ServiceException);
|
|
2035
1928
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2036
|
-
const contents = map({});
|
|
1929
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2037
1930
|
const data = parsedOutput.body;
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
}
|
|
1931
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1932
|
+
message: smithy_client_1.expectString,
|
|
1933
|
+
});
|
|
1934
|
+
Object.assign(contents, doc);
|
|
2041
1935
|
const exception = new models_0_1.AccessDeniedException({
|
|
2042
1936
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2043
1937
|
...contents,
|
|
@@ -2045,17 +1939,14 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2045
1939
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2046
1940
|
};
|
|
2047
1941
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2048
|
-
const contents = map({});
|
|
1942
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2049
1943
|
const data = parsedOutput.body;
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
if (data.resourceType != null) {
|
|
2057
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2058
|
-
}
|
|
1944
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1945
|
+
message: smithy_client_1.expectString,
|
|
1946
|
+
resourceId: smithy_client_1.expectString,
|
|
1947
|
+
resourceType: smithy_client_1.expectString,
|
|
1948
|
+
});
|
|
1949
|
+
Object.assign(contents, doc);
|
|
2059
1950
|
const exception = new models_0_1.ConflictException({
|
|
2060
1951
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2061
1952
|
...contents,
|
|
@@ -2063,16 +1954,17 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2063
1954
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2064
1955
|
};
|
|
2065
1956
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2066
|
-
const contents = map({
|
|
1957
|
+
const contents = (0, smithy_client_1.map)({
|
|
2067
1958
|
retryAfterSeconds: [
|
|
2068
1959
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2069
1960
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2070
1961
|
],
|
|
2071
1962
|
});
|
|
2072
1963
|
const data = parsedOutput.body;
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
}
|
|
1964
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1965
|
+
message: smithy_client_1.expectString,
|
|
1966
|
+
});
|
|
1967
|
+
Object.assign(contents, doc);
|
|
2076
1968
|
const exception = new models_0_1.InternalServerException({
|
|
2077
1969
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2078
1970
|
...contents,
|
|
@@ -2080,11 +1972,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2080
1972
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2081
1973
|
};
|
|
2082
1974
|
const de_RequestAlreadyInProgressExceptionRes = async (parsedOutput, context) => {
|
|
2083
|
-
const contents = map({});
|
|
1975
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2084
1976
|
const data = parsedOutput.body;
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
}
|
|
1977
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1978
|
+
message: smithy_client_1.expectString,
|
|
1979
|
+
});
|
|
1980
|
+
Object.assign(contents, doc);
|
|
2088
1981
|
const exception = new models_0_1.RequestAlreadyInProgressException({
|
|
2089
1982
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2090
1983
|
...contents,
|
|
@@ -2092,17 +1985,14 @@ const de_RequestAlreadyInProgressExceptionRes = async (parsedOutput, context) =>
|
|
|
2092
1985
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2093
1986
|
};
|
|
2094
1987
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2095
|
-
const contents = map({});
|
|
1988
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2096
1989
|
const data = parsedOutput.body;
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
if (data.resourceType != null) {
|
|
2104
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2105
|
-
}
|
|
1990
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1991
|
+
message: smithy_client_1.expectString,
|
|
1992
|
+
resourceId: smithy_client_1.expectString,
|
|
1993
|
+
resourceType: smithy_client_1.expectString,
|
|
1994
|
+
});
|
|
1995
|
+
Object.assign(contents, doc);
|
|
2106
1996
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2107
1997
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2108
1998
|
...contents,
|
|
@@ -2110,23 +2000,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2110
2000
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2111
2001
|
};
|
|
2112
2002
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2113
|
-
const contents = map({});
|
|
2003
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2114
2004
|
const data = parsedOutput.body;
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
}
|
|
2124
|
-
if (data.resourceType != null) {
|
|
2125
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2126
|
-
}
|
|
2127
|
-
if (data.serviceCode != null) {
|
|
2128
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2129
|
-
}
|
|
2005
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2006
|
+
message: smithy_client_1.expectString,
|
|
2007
|
+
quotaCode: smithy_client_1.expectString,
|
|
2008
|
+
resourceId: smithy_client_1.expectString,
|
|
2009
|
+
resourceType: smithy_client_1.expectString,
|
|
2010
|
+
serviceCode: smithy_client_1.expectString,
|
|
2011
|
+
});
|
|
2012
|
+
Object.assign(contents, doc);
|
|
2130
2013
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2131
2014
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2132
2015
|
...contents,
|
|
@@ -2134,22 +2017,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2134
2017
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2135
2018
|
};
|
|
2136
2019
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2137
|
-
const contents = map({
|
|
2020
|
+
const contents = (0, smithy_client_1.map)({
|
|
2138
2021
|
retryAfterSeconds: [
|
|
2139
2022
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2140
2023
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2141
2024
|
],
|
|
2142
2025
|
});
|
|
2143
2026
|
const data = parsedOutput.body;
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
if (data.serviceCode != null) {
|
|
2151
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2152
|
-
}
|
|
2027
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2028
|
+
message: smithy_client_1.expectString,
|
|
2029
|
+
quotaCode: smithy_client_1.expectString,
|
|
2030
|
+
serviceCode: smithy_client_1.expectString,
|
|
2031
|
+
});
|
|
2032
|
+
Object.assign(contents, doc);
|
|
2153
2033
|
const exception = new models_0_1.ThrottlingException({
|
|
2154
2034
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2155
2035
|
...contents,
|
|
@@ -2157,87 +2037,26 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2157
2037
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2158
2038
|
};
|
|
2159
2039
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2160
|
-
const contents = map({});
|
|
2040
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2161
2041
|
const data = parsedOutput.body;
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
if (data.reason != null) {
|
|
2169
|
-
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
2170
|
-
}
|
|
2042
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2043
|
+
fields: smithy_client_1._json,
|
|
2044
|
+
message: smithy_client_1.expectString,
|
|
2045
|
+
reason: smithy_client_1.expectString,
|
|
2046
|
+
});
|
|
2047
|
+
Object.assign(contents, doc);
|
|
2171
2048
|
const exception = new models_0_1.ValidationException({
|
|
2172
2049
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2173
2050
|
...contents,
|
|
2174
2051
|
});
|
|
2175
2052
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2176
2053
|
};
|
|
2177
|
-
const se_AssociateClientDeviceWithCoreDeviceEntry = (input, context) => {
|
|
2178
|
-
return {
|
|
2179
|
-
...(input.thingName != null && { thingName: input.thingName }),
|
|
2180
|
-
};
|
|
2181
|
-
};
|
|
2182
|
-
const se_AssociateClientDeviceWithCoreDeviceEntryList = (input, context) => {
|
|
2183
|
-
return input
|
|
2184
|
-
.filter((e) => e != null)
|
|
2185
|
-
.map((entry) => {
|
|
2186
|
-
return se_AssociateClientDeviceWithCoreDeviceEntry(entry, context);
|
|
2187
|
-
});
|
|
2188
|
-
};
|
|
2189
|
-
const se_ComponentCandidate = (input, context) => {
|
|
2190
|
-
return {
|
|
2191
|
-
...(input.componentName != null && { componentName: input.componentName }),
|
|
2192
|
-
...(input.componentVersion != null && { componentVersion: input.componentVersion }),
|
|
2193
|
-
...(input.versionRequirements != null && {
|
|
2194
|
-
versionRequirements: se_ComponentVersionRequirementMap(input.versionRequirements, context),
|
|
2195
|
-
}),
|
|
2196
|
-
};
|
|
2197
|
-
};
|
|
2198
|
-
const se_ComponentCandidateList = (input, context) => {
|
|
2199
|
-
return input
|
|
2200
|
-
.filter((e) => e != null)
|
|
2201
|
-
.map((entry) => {
|
|
2202
|
-
return se_ComponentCandidate(entry, context);
|
|
2203
|
-
});
|
|
2204
|
-
};
|
|
2205
|
-
const se_ComponentConfigurationPathList = (input, context) => {
|
|
2206
|
-
return input
|
|
2207
|
-
.filter((e) => e != null)
|
|
2208
|
-
.map((entry) => {
|
|
2209
|
-
return entry;
|
|
2210
|
-
});
|
|
2211
|
-
};
|
|
2212
|
-
const se_ComponentConfigurationUpdate = (input, context) => {
|
|
2213
|
-
return {
|
|
2214
|
-
...(input.merge != null && { merge: input.merge }),
|
|
2215
|
-
...(input.reset != null && { reset: se_ComponentConfigurationPathList(input.reset, context) }),
|
|
2216
|
-
};
|
|
2217
|
-
};
|
|
2218
|
-
const se_ComponentDependencyMap = (input, context) => {
|
|
2219
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2220
|
-
if (value === null) {
|
|
2221
|
-
return acc;
|
|
2222
|
-
}
|
|
2223
|
-
acc[key] = se_ComponentDependencyRequirement(value, context);
|
|
2224
|
-
return acc;
|
|
2225
|
-
}, {});
|
|
2226
|
-
};
|
|
2227
|
-
const se_ComponentDependencyRequirement = (input, context) => {
|
|
2228
|
-
return {
|
|
2229
|
-
...(input.dependencyType != null && { dependencyType: input.dependencyType }),
|
|
2230
|
-
...(input.versionRequirement != null && { versionRequirement: input.versionRequirement }),
|
|
2231
|
-
};
|
|
2232
|
-
};
|
|
2233
2054
|
const se_ComponentDeploymentSpecification = (input, context) => {
|
|
2234
|
-
return {
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
...(input.runWith != null && { runWith: se_ComponentRunWith(input.runWith, context) }),
|
|
2240
|
-
};
|
|
2055
|
+
return (0, smithy_client_1.take)(input, {
|
|
2056
|
+
componentVersion: [],
|
|
2057
|
+
configurationUpdate: smithy_client_1._json,
|
|
2058
|
+
runWith: (_) => se_ComponentRunWith(_, context),
|
|
2059
|
+
});
|
|
2241
2060
|
};
|
|
2242
2061
|
const se_ComponentDeploymentSpecifications = (input, context) => {
|
|
2243
2062
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -2248,44 +2067,20 @@ const se_ComponentDeploymentSpecifications = (input, context) => {
|
|
|
2248
2067
|
return acc;
|
|
2249
2068
|
}, {});
|
|
2250
2069
|
};
|
|
2251
|
-
const se_ComponentPlatform = (input, context) => {
|
|
2252
|
-
return {
|
|
2253
|
-
...(input.attributes != null && { attributes: se_PlatformAttributesMap(input.attributes, context) }),
|
|
2254
|
-
...(input.name != null && { name: input.name }),
|
|
2255
|
-
};
|
|
2256
|
-
};
|
|
2257
|
-
const se_ComponentPlatformList = (input, context) => {
|
|
2258
|
-
return input
|
|
2259
|
-
.filter((e) => e != null)
|
|
2260
|
-
.map((entry) => {
|
|
2261
|
-
return se_ComponentPlatform(entry, context);
|
|
2262
|
-
});
|
|
2263
|
-
};
|
|
2264
2070
|
const se_ComponentRunWith = (input, context) => {
|
|
2265
|
-
return {
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
...(input.windowsUser != null && { windowsUser: input.windowsUser }),
|
|
2271
|
-
};
|
|
2272
|
-
};
|
|
2273
|
-
const se_ComponentVersionRequirementMap = (input, context) => {
|
|
2274
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2275
|
-
if (value === null) {
|
|
2276
|
-
return acc;
|
|
2277
|
-
}
|
|
2278
|
-
acc[key] = value;
|
|
2279
|
-
return acc;
|
|
2280
|
-
}, {});
|
|
2071
|
+
return (0, smithy_client_1.take)(input, {
|
|
2072
|
+
posixUser: [],
|
|
2073
|
+
systemResourceLimits: (_) => se_SystemResourceLimits(_, context),
|
|
2074
|
+
windowsUser: [],
|
|
2075
|
+
});
|
|
2281
2076
|
};
|
|
2282
2077
|
const se_ConnectivityInfo = (input, context) => {
|
|
2283
|
-
return {
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
};
|
|
2078
|
+
return (0, smithy_client_1.take)(input, {
|
|
2079
|
+
HostAddress: [, , `hostAddress`],
|
|
2080
|
+
Id: [, , `id`],
|
|
2081
|
+
Metadata: [, , `metadata`],
|
|
2082
|
+
PortNumber: [, , `portNumber`],
|
|
2083
|
+
});
|
|
2289
2084
|
};
|
|
2290
2085
|
const se_connectivityInfoList = (input, context) => {
|
|
2291
2086
|
return input
|
|
@@ -2294,61 +2089,25 @@ const se_connectivityInfoList = (input, context) => {
|
|
|
2294
2089
|
return se_ConnectivityInfo(entry, context);
|
|
2295
2090
|
});
|
|
2296
2091
|
};
|
|
2297
|
-
const se_DeploymentComponentUpdatePolicy = (input, context) => {
|
|
2298
|
-
return {
|
|
2299
|
-
...(input.action != null && { action: input.action }),
|
|
2300
|
-
...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
|
|
2301
|
-
};
|
|
2302
|
-
};
|
|
2303
|
-
const se_DeploymentConfigurationValidationPolicy = (input, context) => {
|
|
2304
|
-
return {
|
|
2305
|
-
...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
|
|
2306
|
-
};
|
|
2307
|
-
};
|
|
2308
2092
|
const se_DeploymentIoTJobConfiguration = (input, context) => {
|
|
2309
|
-
return {
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
}),
|
|
2314
|
-
...(input.timeoutConfig != null && { timeoutConfig: se_IoTJobTimeoutConfig(input.timeoutConfig, context) }),
|
|
2315
|
-
};
|
|
2316
|
-
};
|
|
2317
|
-
const se_DeploymentPolicies = (input, context) => {
|
|
2318
|
-
return {
|
|
2319
|
-
...(input.componentUpdatePolicy != null && {
|
|
2320
|
-
componentUpdatePolicy: se_DeploymentComponentUpdatePolicy(input.componentUpdatePolicy, context),
|
|
2321
|
-
}),
|
|
2322
|
-
...(input.configurationValidationPolicy != null && {
|
|
2323
|
-
configurationValidationPolicy: se_DeploymentConfigurationValidationPolicy(input.configurationValidationPolicy, context),
|
|
2324
|
-
}),
|
|
2325
|
-
...(input.failureHandlingPolicy != null && { failureHandlingPolicy: input.failureHandlingPolicy }),
|
|
2326
|
-
};
|
|
2327
|
-
};
|
|
2328
|
-
const se_DisassociateClientDeviceFromCoreDeviceEntry = (input, context) => {
|
|
2329
|
-
return {
|
|
2330
|
-
...(input.thingName != null && { thingName: input.thingName }),
|
|
2331
|
-
};
|
|
2332
|
-
};
|
|
2333
|
-
const se_DisassociateClientDeviceFromCoreDeviceEntryList = (input, context) => {
|
|
2334
|
-
return input
|
|
2335
|
-
.filter((e) => e != null)
|
|
2336
|
-
.map((entry) => {
|
|
2337
|
-
return se_DisassociateClientDeviceFromCoreDeviceEntry(entry, context);
|
|
2093
|
+
return (0, smithy_client_1.take)(input, {
|
|
2094
|
+
abortConfig: (_) => se_IoTJobAbortConfig(_, context),
|
|
2095
|
+
jobExecutionsRolloutConfig: (_) => se_IoTJobExecutionsRolloutConfig(_, context),
|
|
2096
|
+
timeoutConfig: smithy_client_1._json,
|
|
2338
2097
|
});
|
|
2339
2098
|
};
|
|
2340
2099
|
const se_IoTJobAbortConfig = (input, context) => {
|
|
2341
|
-
return {
|
|
2342
|
-
|
|
2343
|
-
};
|
|
2100
|
+
return (0, smithy_client_1.take)(input, {
|
|
2101
|
+
criteriaList: (_) => se_IoTJobAbortCriteriaList(_, context),
|
|
2102
|
+
});
|
|
2344
2103
|
};
|
|
2345
2104
|
const se_IoTJobAbortCriteria = (input, context) => {
|
|
2346
|
-
return {
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
};
|
|
2105
|
+
return (0, smithy_client_1.take)(input, {
|
|
2106
|
+
action: [],
|
|
2107
|
+
failureType: [],
|
|
2108
|
+
minNumberOfExecutedThings: [],
|
|
2109
|
+
thresholdPercentage: smithy_client_1.serializeFloat,
|
|
2110
|
+
});
|
|
2352
2111
|
};
|
|
2353
2112
|
const se_IoTJobAbortCriteriaList = (input, context) => {
|
|
2354
2113
|
return input
|
|
@@ -2358,242 +2117,51 @@ const se_IoTJobAbortCriteriaList = (input, context) => {
|
|
|
2358
2117
|
});
|
|
2359
2118
|
};
|
|
2360
2119
|
const se_IoTJobExecutionsRolloutConfig = (input, context) => {
|
|
2361
|
-
return {
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
}),
|
|
2365
|
-
...(input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }),
|
|
2366
|
-
};
|
|
2367
|
-
};
|
|
2368
|
-
const se_IoTJobExponentialRolloutRate = (input, context) => {
|
|
2369
|
-
return {
|
|
2370
|
-
...(input.baseRatePerMinute != null && { baseRatePerMinute: input.baseRatePerMinute }),
|
|
2371
|
-
...(input.incrementFactor != null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
|
|
2372
|
-
...(input.rateIncreaseCriteria != null && {
|
|
2373
|
-
rateIncreaseCriteria: se_IoTJobRateIncreaseCriteria(input.rateIncreaseCriteria, context),
|
|
2374
|
-
}),
|
|
2375
|
-
};
|
|
2376
|
-
};
|
|
2377
|
-
const se_IoTJobRateIncreaseCriteria = (input, context) => {
|
|
2378
|
-
return {
|
|
2379
|
-
...(input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
|
|
2380
|
-
...(input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }),
|
|
2381
|
-
};
|
|
2382
|
-
};
|
|
2383
|
-
const se_IoTJobTimeoutConfig = (input, context) => {
|
|
2384
|
-
return {
|
|
2385
|
-
...(input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
|
|
2386
|
-
};
|
|
2387
|
-
};
|
|
2388
|
-
const se_LambdaContainerParams = (input, context) => {
|
|
2389
|
-
return {
|
|
2390
|
-
...(input.devices != null && { devices: se_LambdaDeviceList(input.devices, context) }),
|
|
2391
|
-
...(input.memorySizeInKB != null && { memorySizeInKB: input.memorySizeInKB }),
|
|
2392
|
-
...(input.mountROSysfs != null && { mountROSysfs: input.mountROSysfs }),
|
|
2393
|
-
...(input.volumes != null && { volumes: se_LambdaVolumeList(input.volumes, context) }),
|
|
2394
|
-
};
|
|
2395
|
-
};
|
|
2396
|
-
const se_LambdaDeviceList = (input, context) => {
|
|
2397
|
-
return input
|
|
2398
|
-
.filter((e) => e != null)
|
|
2399
|
-
.map((entry) => {
|
|
2400
|
-
return se_LambdaDeviceMount(entry, context);
|
|
2120
|
+
return (0, smithy_client_1.take)(input, {
|
|
2121
|
+
exponentialRate: (_) => se_IoTJobExponentialRolloutRate(_, context),
|
|
2122
|
+
maximumPerMinute: [],
|
|
2401
2123
|
});
|
|
2402
2124
|
};
|
|
2403
|
-
const
|
|
2404
|
-
return {
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
};
|
|
2409
|
-
};
|
|
2410
|
-
const se_LambdaEnvironmentVariables = (input, context) => {
|
|
2411
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2412
|
-
if (value === null) {
|
|
2413
|
-
return acc;
|
|
2414
|
-
}
|
|
2415
|
-
acc[key] = value;
|
|
2416
|
-
return acc;
|
|
2417
|
-
}, {});
|
|
2418
|
-
};
|
|
2419
|
-
const se_LambdaEventSource = (input, context) => {
|
|
2420
|
-
return {
|
|
2421
|
-
...(input.topic != null && { topic: input.topic }),
|
|
2422
|
-
...(input.type != null && { type: input.type }),
|
|
2423
|
-
};
|
|
2424
|
-
};
|
|
2425
|
-
const se_LambdaEventSourceList = (input, context) => {
|
|
2426
|
-
return input
|
|
2427
|
-
.filter((e) => e != null)
|
|
2428
|
-
.map((entry) => {
|
|
2429
|
-
return se_LambdaEventSource(entry, context);
|
|
2430
|
-
});
|
|
2431
|
-
};
|
|
2432
|
-
const se_LambdaExecArgsList = (input, context) => {
|
|
2433
|
-
return input
|
|
2434
|
-
.filter((e) => e != null)
|
|
2435
|
-
.map((entry) => {
|
|
2436
|
-
return entry;
|
|
2437
|
-
});
|
|
2438
|
-
};
|
|
2439
|
-
const se_LambdaExecutionParameters = (input, context) => {
|
|
2440
|
-
return {
|
|
2441
|
-
...(input.environmentVariables != null && {
|
|
2442
|
-
environmentVariables: se_LambdaEnvironmentVariables(input.environmentVariables, context),
|
|
2443
|
-
}),
|
|
2444
|
-
...(input.eventSources != null && { eventSources: se_LambdaEventSourceList(input.eventSources, context) }),
|
|
2445
|
-
...(input.execArgs != null && { execArgs: se_LambdaExecArgsList(input.execArgs, context) }),
|
|
2446
|
-
...(input.inputPayloadEncodingType != null && { inputPayloadEncodingType: input.inputPayloadEncodingType }),
|
|
2447
|
-
...(input.linuxProcessParams != null && {
|
|
2448
|
-
linuxProcessParams: se_LambdaLinuxProcessParams(input.linuxProcessParams, context),
|
|
2449
|
-
}),
|
|
2450
|
-
...(input.maxIdleTimeInSeconds != null && { maxIdleTimeInSeconds: input.maxIdleTimeInSeconds }),
|
|
2451
|
-
...(input.maxInstancesCount != null && { maxInstancesCount: input.maxInstancesCount }),
|
|
2452
|
-
...(input.maxQueueSize != null && { maxQueueSize: input.maxQueueSize }),
|
|
2453
|
-
...(input.pinned != null && { pinned: input.pinned }),
|
|
2454
|
-
...(input.statusTimeoutInSeconds != null && { statusTimeoutInSeconds: input.statusTimeoutInSeconds }),
|
|
2455
|
-
...(input.timeoutInSeconds != null && { timeoutInSeconds: input.timeoutInSeconds }),
|
|
2456
|
-
};
|
|
2457
|
-
};
|
|
2458
|
-
const se_LambdaFunctionRecipeSource = (input, context) => {
|
|
2459
|
-
return {
|
|
2460
|
-
...(input.componentDependencies != null && {
|
|
2461
|
-
componentDependencies: se_ComponentDependencyMap(input.componentDependencies, context),
|
|
2462
|
-
}),
|
|
2463
|
-
...(input.componentLambdaParameters != null && {
|
|
2464
|
-
componentLambdaParameters: se_LambdaExecutionParameters(input.componentLambdaParameters, context),
|
|
2465
|
-
}),
|
|
2466
|
-
...(input.componentName != null && { componentName: input.componentName }),
|
|
2467
|
-
...(input.componentPlatforms != null && {
|
|
2468
|
-
componentPlatforms: se_ComponentPlatformList(input.componentPlatforms, context),
|
|
2469
|
-
}),
|
|
2470
|
-
...(input.componentVersion != null && { componentVersion: input.componentVersion }),
|
|
2471
|
-
...(input.lambdaArn != null && { lambdaArn: input.lambdaArn }),
|
|
2472
|
-
};
|
|
2473
|
-
};
|
|
2474
|
-
const se_LambdaLinuxProcessParams = (input, context) => {
|
|
2475
|
-
return {
|
|
2476
|
-
...(input.containerParams != null && { containerParams: se_LambdaContainerParams(input.containerParams, context) }),
|
|
2477
|
-
...(input.isolationMode != null && { isolationMode: input.isolationMode }),
|
|
2478
|
-
};
|
|
2479
|
-
};
|
|
2480
|
-
const se_LambdaVolumeList = (input, context) => {
|
|
2481
|
-
return input
|
|
2482
|
-
.filter((e) => e != null)
|
|
2483
|
-
.map((entry) => {
|
|
2484
|
-
return se_LambdaVolumeMount(entry, context);
|
|
2125
|
+
const se_IoTJobExponentialRolloutRate = (input, context) => {
|
|
2126
|
+
return (0, smithy_client_1.take)(input, {
|
|
2127
|
+
baseRatePerMinute: [],
|
|
2128
|
+
incrementFactor: smithy_client_1.serializeFloat,
|
|
2129
|
+
rateIncreaseCriteria: smithy_client_1._json,
|
|
2485
2130
|
});
|
|
2486
2131
|
};
|
|
2487
|
-
const se_LambdaVolumeMount = (input, context) => {
|
|
2488
|
-
return {
|
|
2489
|
-
...(input.addGroupOwner != null && { addGroupOwner: input.addGroupOwner }),
|
|
2490
|
-
...(input.destinationPath != null && { destinationPath: input.destinationPath }),
|
|
2491
|
-
...(input.permission != null && { permission: input.permission }),
|
|
2492
|
-
...(input.sourcePath != null && { sourcePath: input.sourcePath }),
|
|
2493
|
-
};
|
|
2494
|
-
};
|
|
2495
|
-
const se_PlatformAttributesMap = (input, context) => {
|
|
2496
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2497
|
-
if (value === null) {
|
|
2498
|
-
return acc;
|
|
2499
|
-
}
|
|
2500
|
-
acc[key] = value;
|
|
2501
|
-
return acc;
|
|
2502
|
-
}, {});
|
|
2503
|
-
};
|
|
2504
2132
|
const se_SystemResourceLimits = (input, context) => {
|
|
2505
|
-
return {
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
};
|
|
2509
|
-
};
|
|
2510
|
-
const se_TagMap = (input, context) => {
|
|
2511
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2512
|
-
if (value === null) {
|
|
2513
|
-
return acc;
|
|
2514
|
-
}
|
|
2515
|
-
acc[key] = value;
|
|
2516
|
-
return acc;
|
|
2517
|
-
}, {});
|
|
2518
|
-
};
|
|
2519
|
-
const de_AssociateClientDeviceWithCoreDeviceErrorEntry = (output, context) => {
|
|
2520
|
-
return {
|
|
2521
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
2522
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2523
|
-
thingName: (0, smithy_client_1.expectString)(output.thingName),
|
|
2524
|
-
};
|
|
2525
|
-
};
|
|
2526
|
-
const de_AssociateClientDeviceWithCoreDeviceErrorList = (output, context) => {
|
|
2527
|
-
const retVal = (output || [])
|
|
2528
|
-
.filter((e) => e != null)
|
|
2529
|
-
.map((entry) => {
|
|
2530
|
-
if (entry === null) {
|
|
2531
|
-
return null;
|
|
2532
|
-
}
|
|
2533
|
-
return de_AssociateClientDeviceWithCoreDeviceErrorEntry(entry, context);
|
|
2133
|
+
return (0, smithy_client_1.take)(input, {
|
|
2134
|
+
cpus: smithy_client_1.serializeFloat,
|
|
2135
|
+
memory: [],
|
|
2534
2136
|
});
|
|
2535
|
-
return retVal;
|
|
2536
2137
|
};
|
|
2537
2138
|
const de_AssociatedClientDevice = (output, context) => {
|
|
2538
|
-
return {
|
|
2539
|
-
associationTimestamp:
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
thingName: (0, smithy_client_1.expectString)(output.thingName),
|
|
2543
|
-
};
|
|
2139
|
+
return (0, smithy_client_1.take)(output, {
|
|
2140
|
+
associationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2141
|
+
thingName: smithy_client_1.expectString,
|
|
2142
|
+
});
|
|
2544
2143
|
};
|
|
2545
2144
|
const de_AssociatedClientDeviceList = (output, context) => {
|
|
2546
2145
|
const retVal = (output || [])
|
|
2547
2146
|
.filter((e) => e != null)
|
|
2548
2147
|
.map((entry) => {
|
|
2549
|
-
if (entry === null) {
|
|
2550
|
-
return null;
|
|
2551
|
-
}
|
|
2552
2148
|
return de_AssociatedClientDevice(entry, context);
|
|
2553
2149
|
});
|
|
2554
2150
|
return retVal;
|
|
2555
2151
|
};
|
|
2556
|
-
const de_CloudComponentStatus = (output, context) => {
|
|
2557
|
-
return {
|
|
2558
|
-
componentState: (0, smithy_client_1.expectString)(output.componentState),
|
|
2559
|
-
errors: output.errors != null ? de_StringMap(output.errors, context) : undefined,
|
|
2560
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2561
|
-
vendorGuidance: (0, smithy_client_1.expectString)(output.vendorGuidance),
|
|
2562
|
-
vendorGuidanceMessage: (0, smithy_client_1.expectString)(output.vendorGuidanceMessage),
|
|
2563
|
-
};
|
|
2564
|
-
};
|
|
2565
2152
|
const de_Component = (output, context) => {
|
|
2566
|
-
return {
|
|
2567
|
-
arn:
|
|
2568
|
-
componentName:
|
|
2569
|
-
latestVersion:
|
|
2570
|
-
};
|
|
2571
|
-
};
|
|
2572
|
-
const de_ComponentConfigurationPathList = (output, context) => {
|
|
2573
|
-
const retVal = (output || [])
|
|
2574
|
-
.filter((e) => e != null)
|
|
2575
|
-
.map((entry) => {
|
|
2576
|
-
if (entry === null) {
|
|
2577
|
-
return null;
|
|
2578
|
-
}
|
|
2579
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2153
|
+
return (0, smithy_client_1.take)(output, {
|
|
2154
|
+
arn: smithy_client_1.expectString,
|
|
2155
|
+
componentName: smithy_client_1.expectString,
|
|
2156
|
+
latestVersion: (_) => de_ComponentLatestVersion(_, context),
|
|
2580
2157
|
});
|
|
2581
|
-
return retVal;
|
|
2582
|
-
};
|
|
2583
|
-
const de_ComponentConfigurationUpdate = (output, context) => {
|
|
2584
|
-
return {
|
|
2585
|
-
merge: (0, smithy_client_1.expectString)(output.merge),
|
|
2586
|
-
reset: output.reset != null ? de_ComponentConfigurationPathList(output.reset, context) : undefined,
|
|
2587
|
-
};
|
|
2588
2158
|
};
|
|
2589
2159
|
const de_ComponentDeploymentSpecification = (output, context) => {
|
|
2590
|
-
return {
|
|
2591
|
-
componentVersion:
|
|
2592
|
-
configurationUpdate:
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
runWith: output.runWith != null ? de_ComponentRunWith(output.runWith, context) : undefined,
|
|
2596
|
-
};
|
|
2160
|
+
return (0, smithy_client_1.take)(output, {
|
|
2161
|
+
componentVersion: smithy_client_1.expectString,
|
|
2162
|
+
configurationUpdate: smithy_client_1._json,
|
|
2163
|
+
runWith: (_) => de_ComponentRunWith(_, context),
|
|
2164
|
+
});
|
|
2597
2165
|
};
|
|
2598
2166
|
const de_ComponentDeploymentSpecifications = (output, context) => {
|
|
2599
2167
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -2605,402 +2173,189 @@ const de_ComponentDeploymentSpecifications = (output, context) => {
|
|
|
2605
2173
|
}, {});
|
|
2606
2174
|
};
|
|
2607
2175
|
const de_ComponentLatestVersion = (output, context) => {
|
|
2608
|
-
return {
|
|
2609
|
-
arn:
|
|
2610
|
-
componentVersion:
|
|
2611
|
-
creationTimestamp:
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
publisher: (0, smithy_client_1.expectString)(output.publisher),
|
|
2617
|
-
};
|
|
2176
|
+
return (0, smithy_client_1.take)(output, {
|
|
2177
|
+
arn: smithy_client_1.expectString,
|
|
2178
|
+
componentVersion: smithy_client_1.expectString,
|
|
2179
|
+
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2180
|
+
description: smithy_client_1.expectString,
|
|
2181
|
+
platforms: smithy_client_1._json,
|
|
2182
|
+
publisher: smithy_client_1.expectString,
|
|
2183
|
+
});
|
|
2618
2184
|
};
|
|
2619
2185
|
const de_ComponentList = (output, context) => {
|
|
2620
2186
|
const retVal = (output || [])
|
|
2621
2187
|
.filter((e) => e != null)
|
|
2622
2188
|
.map((entry) => {
|
|
2623
|
-
if (entry === null) {
|
|
2624
|
-
return null;
|
|
2625
|
-
}
|
|
2626
2189
|
return de_Component(entry, context);
|
|
2627
2190
|
});
|
|
2628
2191
|
return retVal;
|
|
2629
2192
|
};
|
|
2630
|
-
const de_ComponentPlatform = (output, context) => {
|
|
2631
|
-
return {
|
|
2632
|
-
attributes: output.attributes != null ? de_PlatformAttributesMap(output.attributes, context) : undefined,
|
|
2633
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2634
|
-
};
|
|
2635
|
-
};
|
|
2636
|
-
const de_ComponentPlatformList = (output, context) => {
|
|
2637
|
-
const retVal = (output || [])
|
|
2638
|
-
.filter((e) => e != null)
|
|
2639
|
-
.map((entry) => {
|
|
2640
|
-
if (entry === null) {
|
|
2641
|
-
return null;
|
|
2642
|
-
}
|
|
2643
|
-
return de_ComponentPlatform(entry, context);
|
|
2644
|
-
});
|
|
2645
|
-
return retVal;
|
|
2646
|
-
};
|
|
2647
2193
|
const de_ComponentRunWith = (output, context) => {
|
|
2648
|
-
return {
|
|
2649
|
-
posixUser:
|
|
2650
|
-
systemResourceLimits:
|
|
2651
|
-
windowsUser:
|
|
2652
|
-
};
|
|
2653
|
-
};
|
|
2654
|
-
const de_ComponentVersionList = (output, context) => {
|
|
2655
|
-
const retVal = (output || [])
|
|
2656
|
-
.filter((e) => e != null)
|
|
2657
|
-
.map((entry) => {
|
|
2658
|
-
if (entry === null) {
|
|
2659
|
-
return null;
|
|
2660
|
-
}
|
|
2661
|
-
return de_ComponentVersionListItem(entry, context);
|
|
2194
|
+
return (0, smithy_client_1.take)(output, {
|
|
2195
|
+
posixUser: smithy_client_1.expectString,
|
|
2196
|
+
systemResourceLimits: (_) => de_SystemResourceLimits(_, context),
|
|
2197
|
+
windowsUser: smithy_client_1.expectString,
|
|
2662
2198
|
});
|
|
2663
|
-
return retVal;
|
|
2664
|
-
};
|
|
2665
|
-
const de_ComponentVersionListItem = (output, context) => {
|
|
2666
|
-
return {
|
|
2667
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2668
|
-
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
2669
|
-
componentVersion: (0, smithy_client_1.expectString)(output.componentVersion),
|
|
2670
|
-
};
|
|
2671
2199
|
};
|
|
2672
2200
|
const de_ConnectivityInfo = (output, context) => {
|
|
2673
|
-
return {
|
|
2674
|
-
hostAddress:
|
|
2675
|
-
id:
|
|
2676
|
-
metadata:
|
|
2677
|
-
portNumber:
|
|
2678
|
-
};
|
|
2201
|
+
return (0, smithy_client_1.take)(output, {
|
|
2202
|
+
hostAddress: [, smithy_client_1.expectString, `HostAddress`],
|
|
2203
|
+
id: [, smithy_client_1.expectString, `Id`],
|
|
2204
|
+
metadata: [, smithy_client_1.expectString, `Metadata`],
|
|
2205
|
+
portNumber: [, smithy_client_1.expectInt32, `PortNumber`],
|
|
2206
|
+
});
|
|
2679
2207
|
};
|
|
2680
2208
|
const de_connectivityInfoList = (output, context) => {
|
|
2681
2209
|
const retVal = (output || [])
|
|
2682
2210
|
.filter((e) => e != null)
|
|
2683
2211
|
.map((entry) => {
|
|
2684
|
-
if (entry === null) {
|
|
2685
|
-
return null;
|
|
2686
|
-
}
|
|
2687
2212
|
return de_ConnectivityInfo(entry, context);
|
|
2688
2213
|
});
|
|
2689
2214
|
return retVal;
|
|
2690
2215
|
};
|
|
2691
2216
|
const de_CoreDevice = (output, context) => {
|
|
2692
|
-
return {
|
|
2693
|
-
coreDeviceThingName:
|
|
2694
|
-
lastStatusUpdateTimestamp:
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2698
|
-
};
|
|
2217
|
+
return (0, smithy_client_1.take)(output, {
|
|
2218
|
+
coreDeviceThingName: smithy_client_1.expectString,
|
|
2219
|
+
lastStatusUpdateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2220
|
+
status: smithy_client_1.expectString,
|
|
2221
|
+
});
|
|
2699
2222
|
};
|
|
2700
2223
|
const de_CoreDevicesList = (output, context) => {
|
|
2701
2224
|
const retVal = (output || [])
|
|
2702
2225
|
.filter((e) => e != null)
|
|
2703
2226
|
.map((entry) => {
|
|
2704
|
-
if (entry === null) {
|
|
2705
|
-
return null;
|
|
2706
|
-
}
|
|
2707
2227
|
return de_CoreDevice(entry, context);
|
|
2708
2228
|
});
|
|
2709
2229
|
return retVal;
|
|
2710
2230
|
};
|
|
2711
2231
|
const de_Deployment = (output, context) => {
|
|
2712
|
-
return {
|
|
2713
|
-
creationTimestamp:
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
targetArn: (0, smithy_client_1.expectString)(output.targetArn),
|
|
2723
|
-
};
|
|
2724
|
-
};
|
|
2725
|
-
const de_DeploymentComponentUpdatePolicy = (output, context) => {
|
|
2726
|
-
return {
|
|
2727
|
-
action: (0, smithy_client_1.expectString)(output.action),
|
|
2728
|
-
timeoutInSeconds: (0, smithy_client_1.expectInt32)(output.timeoutInSeconds),
|
|
2729
|
-
};
|
|
2730
|
-
};
|
|
2731
|
-
const de_DeploymentConfigurationValidationPolicy = (output, context) => {
|
|
2732
|
-
return {
|
|
2733
|
-
timeoutInSeconds: (0, smithy_client_1.expectInt32)(output.timeoutInSeconds),
|
|
2734
|
-
};
|
|
2232
|
+
return (0, smithy_client_1.take)(output, {
|
|
2233
|
+
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2234
|
+
deploymentId: smithy_client_1.expectString,
|
|
2235
|
+
deploymentName: smithy_client_1.expectString,
|
|
2236
|
+
deploymentStatus: smithy_client_1.expectString,
|
|
2237
|
+
isLatestForTarget: smithy_client_1.expectBoolean,
|
|
2238
|
+
parentTargetArn: smithy_client_1.expectString,
|
|
2239
|
+
revisionId: smithy_client_1.expectString,
|
|
2240
|
+
targetArn: smithy_client_1.expectString,
|
|
2241
|
+
});
|
|
2735
2242
|
};
|
|
2736
2243
|
const de_DeploymentIoTJobConfiguration = (output, context) => {
|
|
2737
|
-
return {
|
|
2738
|
-
abortConfig:
|
|
2739
|
-
jobExecutionsRolloutConfig:
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
timeoutConfig: output.timeoutConfig != null ? de_IoTJobTimeoutConfig(output.timeoutConfig, context) : undefined,
|
|
2743
|
-
};
|
|
2244
|
+
return (0, smithy_client_1.take)(output, {
|
|
2245
|
+
abortConfig: (_) => de_IoTJobAbortConfig(_, context),
|
|
2246
|
+
jobExecutionsRolloutConfig: (_) => de_IoTJobExecutionsRolloutConfig(_, context),
|
|
2247
|
+
timeoutConfig: smithy_client_1._json,
|
|
2248
|
+
});
|
|
2744
2249
|
};
|
|
2745
2250
|
const de_DeploymentList = (output, context) => {
|
|
2746
2251
|
const retVal = (output || [])
|
|
2747
2252
|
.filter((e) => e != null)
|
|
2748
2253
|
.map((entry) => {
|
|
2749
|
-
if (entry === null) {
|
|
2750
|
-
return null;
|
|
2751
|
-
}
|
|
2752
2254
|
return de_Deployment(entry, context);
|
|
2753
2255
|
});
|
|
2754
2256
|
return retVal;
|
|
2755
2257
|
};
|
|
2756
|
-
const de_DeploymentPolicies = (output, context) => {
|
|
2757
|
-
return {
|
|
2758
|
-
componentUpdatePolicy: output.componentUpdatePolicy != null
|
|
2759
|
-
? de_DeploymentComponentUpdatePolicy(output.componentUpdatePolicy, context)
|
|
2760
|
-
: undefined,
|
|
2761
|
-
configurationValidationPolicy: output.configurationValidationPolicy != null
|
|
2762
|
-
? de_DeploymentConfigurationValidationPolicy(output.configurationValidationPolicy, context)
|
|
2763
|
-
: undefined,
|
|
2764
|
-
failureHandlingPolicy: (0, smithy_client_1.expectString)(output.failureHandlingPolicy),
|
|
2765
|
-
};
|
|
2766
|
-
};
|
|
2767
|
-
const de_DisassociateClientDeviceFromCoreDeviceErrorEntry = (output, context) => {
|
|
2768
|
-
return {
|
|
2769
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
2770
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2771
|
-
thingName: (0, smithy_client_1.expectString)(output.thingName),
|
|
2772
|
-
};
|
|
2773
|
-
};
|
|
2774
|
-
const de_DisassociateClientDeviceFromCoreDeviceErrorList = (output, context) => {
|
|
2775
|
-
const retVal = (output || [])
|
|
2776
|
-
.filter((e) => e != null)
|
|
2777
|
-
.map((entry) => {
|
|
2778
|
-
if (entry === null) {
|
|
2779
|
-
return null;
|
|
2780
|
-
}
|
|
2781
|
-
return de_DisassociateClientDeviceFromCoreDeviceErrorEntry(entry, context);
|
|
2782
|
-
});
|
|
2783
|
-
return retVal;
|
|
2784
|
-
};
|
|
2785
2258
|
const de_EffectiveDeployment = (output, context) => {
|
|
2786
|
-
return {
|
|
2787
|
-
coreDeviceExecutionStatus:
|
|
2788
|
-
creationTimestamp:
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
: undefined,
|
|
2799
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2800
|
-
statusDetails: output.statusDetails != null ? de_EffectiveDeploymentStatusDetails(output.statusDetails, context) : undefined,
|
|
2801
|
-
targetArn: (0, smithy_client_1.expectString)(output.targetArn),
|
|
2802
|
-
};
|
|
2803
|
-
};
|
|
2804
|
-
const de_EffectiveDeploymentErrorStack = (output, context) => {
|
|
2805
|
-
const retVal = (output || [])
|
|
2806
|
-
.filter((e) => e != null)
|
|
2807
|
-
.map((entry) => {
|
|
2808
|
-
if (entry === null) {
|
|
2809
|
-
return null;
|
|
2810
|
-
}
|
|
2811
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2812
|
-
});
|
|
2813
|
-
return retVal;
|
|
2814
|
-
};
|
|
2815
|
-
const de_EffectiveDeploymentErrorTypeList = (output, context) => {
|
|
2816
|
-
const retVal = (output || [])
|
|
2817
|
-
.filter((e) => e != null)
|
|
2818
|
-
.map((entry) => {
|
|
2819
|
-
if (entry === null) {
|
|
2820
|
-
return null;
|
|
2821
|
-
}
|
|
2822
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2259
|
+
return (0, smithy_client_1.take)(output, {
|
|
2260
|
+
coreDeviceExecutionStatus: smithy_client_1.expectString,
|
|
2261
|
+
creationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2262
|
+
deploymentId: smithy_client_1.expectString,
|
|
2263
|
+
deploymentName: smithy_client_1.expectString,
|
|
2264
|
+
description: smithy_client_1.expectString,
|
|
2265
|
+
iotJobArn: smithy_client_1.expectString,
|
|
2266
|
+
iotJobId: smithy_client_1.expectString,
|
|
2267
|
+
modifiedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2268
|
+
reason: smithy_client_1.expectString,
|
|
2269
|
+
statusDetails: smithy_client_1._json,
|
|
2270
|
+
targetArn: smithy_client_1.expectString,
|
|
2823
2271
|
});
|
|
2824
|
-
return retVal;
|
|
2825
2272
|
};
|
|
2826
2273
|
const de_EffectiveDeploymentsList = (output, context) => {
|
|
2827
2274
|
const retVal = (output || [])
|
|
2828
2275
|
.filter((e) => e != null)
|
|
2829
2276
|
.map((entry) => {
|
|
2830
|
-
if (entry === null) {
|
|
2831
|
-
return null;
|
|
2832
|
-
}
|
|
2833
2277
|
return de_EffectiveDeployment(entry, context);
|
|
2834
2278
|
});
|
|
2835
2279
|
return retVal;
|
|
2836
2280
|
};
|
|
2837
|
-
const de_EffectiveDeploymentStatusDetails = (output, context) => {
|
|
2838
|
-
return {
|
|
2839
|
-
errorStack: output.errorStack != null ? de_EffectiveDeploymentErrorStack(output.errorStack, context) : undefined,
|
|
2840
|
-
errorTypes: output.errorTypes != null ? de_EffectiveDeploymentErrorTypeList(output.errorTypes, context) : undefined,
|
|
2841
|
-
};
|
|
2842
|
-
};
|
|
2843
2281
|
const de_InstalledComponent = (output, context) => {
|
|
2844
|
-
return {
|
|
2845
|
-
componentName:
|
|
2846
|
-
componentVersion:
|
|
2847
|
-
isRoot:
|
|
2848
|
-
lastInstallationSource:
|
|
2849
|
-
lastReportedTimestamp:
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
: undefined,
|
|
2855
|
-
lifecycleState: (0, smithy_client_1.expectString)(output.lifecycleState),
|
|
2856
|
-
lifecycleStateDetails: (0, smithy_client_1.expectString)(output.lifecycleStateDetails),
|
|
2857
|
-
lifecycleStatusCodes: output.lifecycleStatusCodes != null
|
|
2858
|
-
? de_InstalledComponentLifecycleStatusCodeList(output.lifecycleStatusCodes, context)
|
|
2859
|
-
: undefined,
|
|
2860
|
-
};
|
|
2861
|
-
};
|
|
2862
|
-
const de_InstalledComponentLifecycleStatusCodeList = (output, context) => {
|
|
2863
|
-
const retVal = (output || [])
|
|
2864
|
-
.filter((e) => e != null)
|
|
2865
|
-
.map((entry) => {
|
|
2866
|
-
if (entry === null) {
|
|
2867
|
-
return null;
|
|
2868
|
-
}
|
|
2869
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2282
|
+
return (0, smithy_client_1.take)(output, {
|
|
2283
|
+
componentName: smithy_client_1.expectString,
|
|
2284
|
+
componentVersion: smithy_client_1.expectString,
|
|
2285
|
+
isRoot: smithy_client_1.expectBoolean,
|
|
2286
|
+
lastInstallationSource: smithy_client_1.expectString,
|
|
2287
|
+
lastReportedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2288
|
+
lastStatusChangeTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2289
|
+
lifecycleState: smithy_client_1.expectString,
|
|
2290
|
+
lifecycleStateDetails: smithy_client_1.expectString,
|
|
2291
|
+
lifecycleStatusCodes: smithy_client_1._json,
|
|
2870
2292
|
});
|
|
2871
|
-
return retVal;
|
|
2872
2293
|
};
|
|
2873
2294
|
const de_InstalledComponentList = (output, context) => {
|
|
2874
2295
|
const retVal = (output || [])
|
|
2875
2296
|
.filter((e) => e != null)
|
|
2876
2297
|
.map((entry) => {
|
|
2877
|
-
if (entry === null) {
|
|
2878
|
-
return null;
|
|
2879
|
-
}
|
|
2880
2298
|
return de_InstalledComponent(entry, context);
|
|
2881
2299
|
});
|
|
2882
2300
|
return retVal;
|
|
2883
2301
|
};
|
|
2884
2302
|
const de_IoTJobAbortConfig = (output, context) => {
|
|
2885
|
-
return {
|
|
2886
|
-
criteriaList:
|
|
2887
|
-
};
|
|
2303
|
+
return (0, smithy_client_1.take)(output, {
|
|
2304
|
+
criteriaList: (_) => de_IoTJobAbortCriteriaList(_, context),
|
|
2305
|
+
});
|
|
2888
2306
|
};
|
|
2889
2307
|
const de_IoTJobAbortCriteria = (output, context) => {
|
|
2890
|
-
return {
|
|
2891
|
-
action:
|
|
2892
|
-
failureType:
|
|
2893
|
-
minNumberOfExecutedThings:
|
|
2894
|
-
thresholdPercentage:
|
|
2895
|
-
};
|
|
2308
|
+
return (0, smithy_client_1.take)(output, {
|
|
2309
|
+
action: smithy_client_1.expectString,
|
|
2310
|
+
failureType: smithy_client_1.expectString,
|
|
2311
|
+
minNumberOfExecutedThings: smithy_client_1.expectInt32,
|
|
2312
|
+
thresholdPercentage: smithy_client_1.limitedParseDouble,
|
|
2313
|
+
});
|
|
2896
2314
|
};
|
|
2897
2315
|
const de_IoTJobAbortCriteriaList = (output, context) => {
|
|
2898
2316
|
const retVal = (output || [])
|
|
2899
2317
|
.filter((e) => e != null)
|
|
2900
2318
|
.map((entry) => {
|
|
2901
|
-
if (entry === null) {
|
|
2902
|
-
return null;
|
|
2903
|
-
}
|
|
2904
2319
|
return de_IoTJobAbortCriteria(entry, context);
|
|
2905
2320
|
});
|
|
2906
2321
|
return retVal;
|
|
2907
2322
|
};
|
|
2908
2323
|
const de_IoTJobExecutionsRolloutConfig = (output, context) => {
|
|
2909
|
-
return {
|
|
2910
|
-
exponentialRate:
|
|
2911
|
-
maximumPerMinute:
|
|
2912
|
-
};
|
|
2324
|
+
return (0, smithy_client_1.take)(output, {
|
|
2325
|
+
exponentialRate: (_) => de_IoTJobExponentialRolloutRate(_, context),
|
|
2326
|
+
maximumPerMinute: smithy_client_1.expectInt32,
|
|
2327
|
+
});
|
|
2913
2328
|
};
|
|
2914
2329
|
const de_IoTJobExponentialRolloutRate = (output, context) => {
|
|
2915
|
-
return {
|
|
2916
|
-
baseRatePerMinute:
|
|
2917
|
-
incrementFactor:
|
|
2918
|
-
rateIncreaseCriteria:
|
|
2919
|
-
|
|
2920
|
-
: undefined,
|
|
2921
|
-
};
|
|
2922
|
-
};
|
|
2923
|
-
const de_IoTJobRateIncreaseCriteria = (output, context) => {
|
|
2924
|
-
return {
|
|
2925
|
-
numberOfNotifiedThings: (0, smithy_client_1.expectInt32)(output.numberOfNotifiedThings),
|
|
2926
|
-
numberOfSucceededThings: (0, smithy_client_1.expectInt32)(output.numberOfSucceededThings),
|
|
2927
|
-
};
|
|
2928
|
-
};
|
|
2929
|
-
const de_IoTJobTimeoutConfig = (output, context) => {
|
|
2930
|
-
return {
|
|
2931
|
-
inProgressTimeoutInMinutes: (0, smithy_client_1.expectLong)(output.inProgressTimeoutInMinutes),
|
|
2932
|
-
};
|
|
2933
|
-
};
|
|
2934
|
-
const de_PlatformAttributesMap = (output, context) => {
|
|
2935
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2936
|
-
if (value === null) {
|
|
2937
|
-
return acc;
|
|
2938
|
-
}
|
|
2939
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2940
|
-
return acc;
|
|
2941
|
-
}, {});
|
|
2330
|
+
return (0, smithy_client_1.take)(output, {
|
|
2331
|
+
baseRatePerMinute: smithy_client_1.expectInt32,
|
|
2332
|
+
incrementFactor: smithy_client_1.limitedParseDouble,
|
|
2333
|
+
rateIncreaseCriteria: smithy_client_1._json,
|
|
2334
|
+
});
|
|
2942
2335
|
};
|
|
2943
2336
|
const de_ResolvedComponentVersion = (output, context) => {
|
|
2944
|
-
return {
|
|
2945
|
-
arn:
|
|
2946
|
-
componentName:
|
|
2947
|
-
componentVersion:
|
|
2948
|
-
message:
|
|
2949
|
-
recipe:
|
|
2950
|
-
vendorGuidance:
|
|
2951
|
-
};
|
|
2337
|
+
return (0, smithy_client_1.take)(output, {
|
|
2338
|
+
arn: smithy_client_1.expectString,
|
|
2339
|
+
componentName: smithy_client_1.expectString,
|
|
2340
|
+
componentVersion: smithy_client_1.expectString,
|
|
2341
|
+
message: smithy_client_1.expectString,
|
|
2342
|
+
recipe: context.base64Decoder,
|
|
2343
|
+
vendorGuidance: smithy_client_1.expectString,
|
|
2344
|
+
});
|
|
2952
2345
|
};
|
|
2953
2346
|
const de_ResolvedComponentVersionsList = (output, context) => {
|
|
2954
2347
|
const retVal = (output || [])
|
|
2955
2348
|
.filter((e) => e != null)
|
|
2956
2349
|
.map((entry) => {
|
|
2957
|
-
if (entry === null) {
|
|
2958
|
-
return null;
|
|
2959
|
-
}
|
|
2960
2350
|
return de_ResolvedComponentVersion(entry, context);
|
|
2961
2351
|
});
|
|
2962
2352
|
return retVal;
|
|
2963
2353
|
};
|
|
2964
|
-
const de_StringMap = (output, context) => {
|
|
2965
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2966
|
-
if (value === null) {
|
|
2967
|
-
return acc;
|
|
2968
|
-
}
|
|
2969
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2970
|
-
return acc;
|
|
2971
|
-
}, {});
|
|
2972
|
-
};
|
|
2973
2354
|
const de_SystemResourceLimits = (output, context) => {
|
|
2974
|
-
return {
|
|
2975
|
-
cpus:
|
|
2976
|
-
memory:
|
|
2977
|
-
};
|
|
2978
|
-
};
|
|
2979
|
-
const de_TagMap = (output, context) => {
|
|
2980
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2981
|
-
if (value === null) {
|
|
2982
|
-
return acc;
|
|
2983
|
-
}
|
|
2984
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2985
|
-
return acc;
|
|
2986
|
-
}, {});
|
|
2987
|
-
};
|
|
2988
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
2989
|
-
return {
|
|
2990
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2991
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2992
|
-
};
|
|
2993
|
-
};
|
|
2994
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
2995
|
-
const retVal = (output || [])
|
|
2996
|
-
.filter((e) => e != null)
|
|
2997
|
-
.map((entry) => {
|
|
2998
|
-
if (entry === null) {
|
|
2999
|
-
return null;
|
|
3000
|
-
}
|
|
3001
|
-
return de_ValidationExceptionField(entry, context);
|
|
2355
|
+
return (0, smithy_client_1.take)(output, {
|
|
2356
|
+
cpus: smithy_client_1.limitedParseDouble,
|
|
2357
|
+
memory: smithy_client_1.expectLong,
|
|
3002
2358
|
});
|
|
3003
|
-
return retVal;
|
|
3004
2359
|
};
|
|
3005
2360
|
const deserializeMetadata = (output) => ({
|
|
3006
2361
|
httpStatusCode: output.statusCode,
|