@aws-sdk/client-outposts 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Outposts.js +30 -364
- package/dist-cjs/protocols/Aws_restJson1.js +287 -634
- package/dist-es/Outposts.js +30 -364
- package/dist-es/protocols/Aws_restJson1.js +248 -595
- package/dist-types/Outposts.d.ts +37 -104
- package/dist-types/ts3.4/Outposts.d.ts +2 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { OutpostsServiceException as __BaseException } from "../models/OutpostsServiceException";
|
|
5
5
|
export const se_CancelOrderCommand = async (input, context) => {
|
|
@@ -25,12 +25,12 @@ export const se_CreateOrderCommand = async (input, context) => {
|
|
|
25
25
|
};
|
|
26
26
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders";
|
|
27
27
|
let body;
|
|
28
|
-
body = JSON.stringify({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
});
|
|
28
|
+
body = JSON.stringify(take(input, {
|
|
29
|
+
LineItems: (_) => _json(_),
|
|
30
|
+
OutpostIdentifier: [],
|
|
31
|
+
PaymentOption: [],
|
|
32
|
+
PaymentTerm: [],
|
|
33
|
+
}));
|
|
34
34
|
return new __HttpRequest({
|
|
35
35
|
protocol,
|
|
36
36
|
hostname,
|
|
@@ -48,15 +48,15 @@ export const se_CreateOutpostCommand = async (input, context) => {
|
|
|
48
48
|
};
|
|
49
49
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts";
|
|
50
50
|
let body;
|
|
51
|
-
body = JSON.stringify({
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
});
|
|
51
|
+
body = JSON.stringify(take(input, {
|
|
52
|
+
AvailabilityZone: [],
|
|
53
|
+
AvailabilityZoneId: [],
|
|
54
|
+
Description: [],
|
|
55
|
+
Name: [],
|
|
56
|
+
SiteId: [],
|
|
57
|
+
SupportedHardwareType: [],
|
|
58
|
+
Tags: (_) => _json(_),
|
|
59
|
+
}));
|
|
60
60
|
return new __HttpRequest({
|
|
61
61
|
protocol,
|
|
62
62
|
hostname,
|
|
@@ -74,17 +74,15 @@ export const se_CreateSiteCommand = async (input, context) => {
|
|
|
74
74
|
};
|
|
75
75
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites";
|
|
76
76
|
let body;
|
|
77
|
-
body = JSON.stringify({
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
87
|
-
});
|
|
77
|
+
body = JSON.stringify(take(input, {
|
|
78
|
+
Description: [],
|
|
79
|
+
Name: [],
|
|
80
|
+
Notes: [],
|
|
81
|
+
OperatingAddress: (_) => _json(_),
|
|
82
|
+
RackPhysicalProperties: (_) => _json(_),
|
|
83
|
+
ShippingAddress: (_) => _json(_),
|
|
84
|
+
Tags: (_) => _json(_),
|
|
85
|
+
}));
|
|
88
86
|
return new __HttpRequest({
|
|
89
87
|
protocol,
|
|
90
88
|
hostname,
|
|
@@ -417,14 +415,12 @@ export const se_StartConnectionCommand = async (input, context) => {
|
|
|
417
415
|
};
|
|
418
416
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connections";
|
|
419
417
|
let body;
|
|
420
|
-
body = JSON.stringify({
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}),
|
|
427
|
-
});
|
|
418
|
+
body = JSON.stringify(take(input, {
|
|
419
|
+
AssetId: [],
|
|
420
|
+
ClientPublicKey: [],
|
|
421
|
+
DeviceSerialNumber: [],
|
|
422
|
+
NetworkInterfaceDeviceIndex: [],
|
|
423
|
+
}));
|
|
428
424
|
return new __HttpRequest({
|
|
429
425
|
protocol,
|
|
430
426
|
hostname,
|
|
@@ -443,9 +439,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
443
439
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
444
440
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
445
441
|
let body;
|
|
446
|
-
body = JSON.stringify({
|
|
447
|
-
|
|
448
|
-
});
|
|
442
|
+
body = JSON.stringify(take(input, {
|
|
443
|
+
Tags: (_) => _json(_),
|
|
444
|
+
}));
|
|
449
445
|
return new __HttpRequest({
|
|
450
446
|
protocol,
|
|
451
447
|
hostname,
|
|
@@ -487,11 +483,11 @@ export const se_UpdateOutpostCommand = async (input, context) => {
|
|
|
487
483
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
|
|
488
484
|
resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", () => input.OutpostId, "{OutpostId}", false);
|
|
489
485
|
let body;
|
|
490
|
-
body = JSON.stringify({
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
});
|
|
486
|
+
body = JSON.stringify(take(input, {
|
|
487
|
+
Description: [],
|
|
488
|
+
Name: [],
|
|
489
|
+
SupportedHardwareType: [],
|
|
490
|
+
}));
|
|
495
491
|
return new __HttpRequest({
|
|
496
492
|
protocol,
|
|
497
493
|
hostname,
|
|
@@ -510,11 +506,11 @@ export const se_UpdateSiteCommand = async (input, context) => {
|
|
|
510
506
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}";
|
|
511
507
|
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
|
|
512
508
|
let body;
|
|
513
|
-
body = JSON.stringify({
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
});
|
|
509
|
+
body = JSON.stringify(take(input, {
|
|
510
|
+
Description: [],
|
|
511
|
+
Name: [],
|
|
512
|
+
Notes: [],
|
|
513
|
+
}));
|
|
518
514
|
return new __HttpRequest({
|
|
519
515
|
protocol,
|
|
520
516
|
hostname,
|
|
@@ -533,10 +529,10 @@ export const se_UpdateSiteAddressCommand = async (input, context) => {
|
|
|
533
529
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/address";
|
|
534
530
|
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
|
|
535
531
|
let body;
|
|
536
|
-
body = JSON.stringify({
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
});
|
|
532
|
+
body = JSON.stringify(take(input, {
|
|
533
|
+
Address: (_) => _json(_),
|
|
534
|
+
AddressType: [],
|
|
535
|
+
}));
|
|
540
536
|
return new __HttpRequest({
|
|
541
537
|
protocol,
|
|
542
538
|
hostname,
|
|
@@ -555,17 +551,17 @@ export const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context)
|
|
|
555
551
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/rackPhysicalProperties";
|
|
556
552
|
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
|
|
557
553
|
let body;
|
|
558
|
-
body = JSON.stringify({
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
});
|
|
554
|
+
body = JSON.stringify(take(input, {
|
|
555
|
+
FiberOpticCableType: [],
|
|
556
|
+
MaximumSupportedWeightLbs: [],
|
|
557
|
+
OpticalStandard: [],
|
|
558
|
+
PowerConnector: [],
|
|
559
|
+
PowerDrawKva: [],
|
|
560
|
+
PowerFeedDrop: [],
|
|
561
|
+
PowerPhase: [],
|
|
562
|
+
UplinkCount: [],
|
|
563
|
+
UplinkGbps: [],
|
|
564
|
+
}));
|
|
569
565
|
return new __HttpRequest({
|
|
570
566
|
protocol,
|
|
571
567
|
hostname,
|
|
@@ -610,10 +606,9 @@ const de_CancelOrderCommandError = async (output, context) => {
|
|
|
610
606
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
611
607
|
default:
|
|
612
608
|
const parsedBody = parsedOutput.body;
|
|
613
|
-
throwDefaultError({
|
|
609
|
+
return throwDefaultError({
|
|
614
610
|
output,
|
|
615
611
|
parsedBody,
|
|
616
|
-
exceptionCtor: __BaseException,
|
|
617
612
|
errorCode,
|
|
618
613
|
});
|
|
619
614
|
}
|
|
@@ -626,9 +621,10 @@ export const de_CreateOrderCommand = async (output, context) => {
|
|
|
626
621
|
$metadata: deserializeMetadata(output),
|
|
627
622
|
});
|
|
628
623
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
}
|
|
624
|
+
const doc = take(data, {
|
|
625
|
+
Order: (_) => de_Order(_, context),
|
|
626
|
+
});
|
|
627
|
+
Object.assign(contents, doc);
|
|
632
628
|
return contents;
|
|
633
629
|
};
|
|
634
630
|
const de_CreateOrderCommandError = async (output, context) => {
|
|
@@ -658,10 +654,9 @@ const de_CreateOrderCommandError = async (output, context) => {
|
|
|
658
654
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
659
655
|
default:
|
|
660
656
|
const parsedBody = parsedOutput.body;
|
|
661
|
-
throwDefaultError({
|
|
657
|
+
return throwDefaultError({
|
|
662
658
|
output,
|
|
663
659
|
parsedBody,
|
|
664
|
-
exceptionCtor: __BaseException,
|
|
665
660
|
errorCode,
|
|
666
661
|
});
|
|
667
662
|
}
|
|
@@ -674,9 +669,10 @@ export const de_CreateOutpostCommand = async (output, context) => {
|
|
|
674
669
|
$metadata: deserializeMetadata(output),
|
|
675
670
|
});
|
|
676
671
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
672
|
+
const doc = take(data, {
|
|
673
|
+
Outpost: _json,
|
|
674
|
+
});
|
|
675
|
+
Object.assign(contents, doc);
|
|
680
676
|
return contents;
|
|
681
677
|
};
|
|
682
678
|
const de_CreateOutpostCommandError = async (output, context) => {
|
|
@@ -706,10 +702,9 @@ const de_CreateOutpostCommandError = async (output, context) => {
|
|
|
706
702
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
707
703
|
default:
|
|
708
704
|
const parsedBody = parsedOutput.body;
|
|
709
|
-
throwDefaultError({
|
|
705
|
+
return throwDefaultError({
|
|
710
706
|
output,
|
|
711
707
|
parsedBody,
|
|
712
|
-
exceptionCtor: __BaseException,
|
|
713
708
|
errorCode,
|
|
714
709
|
});
|
|
715
710
|
}
|
|
@@ -722,9 +717,10 @@ export const de_CreateSiteCommand = async (output, context) => {
|
|
|
722
717
|
$metadata: deserializeMetadata(output),
|
|
723
718
|
});
|
|
724
719
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}
|
|
720
|
+
const doc = take(data, {
|
|
721
|
+
Site: _json,
|
|
722
|
+
});
|
|
723
|
+
Object.assign(contents, doc);
|
|
728
724
|
return contents;
|
|
729
725
|
};
|
|
730
726
|
const de_CreateSiteCommandError = async (output, context) => {
|
|
@@ -751,10 +747,9 @@ const de_CreateSiteCommandError = async (output, context) => {
|
|
|
751
747
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
752
748
|
default:
|
|
753
749
|
const parsedBody = parsedOutput.body;
|
|
754
|
-
throwDefaultError({
|
|
750
|
+
return throwDefaultError({
|
|
755
751
|
output,
|
|
756
752
|
parsedBody,
|
|
757
|
-
exceptionCtor: __BaseException,
|
|
758
753
|
errorCode,
|
|
759
754
|
});
|
|
760
755
|
}
|
|
@@ -793,10 +788,9 @@ const de_DeleteOutpostCommandError = async (output, context) => {
|
|
|
793
788
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
794
789
|
default:
|
|
795
790
|
const parsedBody = parsedOutput.body;
|
|
796
|
-
throwDefaultError({
|
|
791
|
+
return throwDefaultError({
|
|
797
792
|
output,
|
|
798
793
|
parsedBody,
|
|
799
|
-
exceptionCtor: __BaseException,
|
|
800
794
|
errorCode,
|
|
801
795
|
});
|
|
802
796
|
}
|
|
@@ -835,10 +829,9 @@ const de_DeleteSiteCommandError = async (output, context) => {
|
|
|
835
829
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
836
830
|
default:
|
|
837
831
|
const parsedBody = parsedOutput.body;
|
|
838
|
-
throwDefaultError({
|
|
832
|
+
return throwDefaultError({
|
|
839
833
|
output,
|
|
840
834
|
parsedBody,
|
|
841
|
-
exceptionCtor: __BaseException,
|
|
842
835
|
errorCode,
|
|
843
836
|
});
|
|
844
837
|
}
|
|
@@ -851,9 +844,10 @@ export const de_GetCatalogItemCommand = async (output, context) => {
|
|
|
851
844
|
$metadata: deserializeMetadata(output),
|
|
852
845
|
});
|
|
853
846
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}
|
|
847
|
+
const doc = take(data, {
|
|
848
|
+
CatalogItem: (_) => de_CatalogItem(_, context),
|
|
849
|
+
});
|
|
850
|
+
Object.assign(contents, doc);
|
|
857
851
|
return contents;
|
|
858
852
|
};
|
|
859
853
|
const de_GetCatalogItemCommandError = async (output, context) => {
|
|
@@ -874,10 +868,9 @@ const de_GetCatalogItemCommandError = async (output, context) => {
|
|
|
874
868
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
875
869
|
default:
|
|
876
870
|
const parsedBody = parsedOutput.body;
|
|
877
|
-
throwDefaultError({
|
|
871
|
+
return throwDefaultError({
|
|
878
872
|
output,
|
|
879
873
|
parsedBody,
|
|
880
|
-
exceptionCtor: __BaseException,
|
|
881
874
|
errorCode,
|
|
882
875
|
});
|
|
883
876
|
}
|
|
@@ -890,12 +883,11 @@ export const de_GetConnectionCommand = async (output, context) => {
|
|
|
890
883
|
$metadata: deserializeMetadata(output),
|
|
891
884
|
});
|
|
892
885
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
}
|
|
886
|
+
const doc = take(data, {
|
|
887
|
+
ConnectionDetails: _json,
|
|
888
|
+
ConnectionId: __expectString,
|
|
889
|
+
});
|
|
890
|
+
Object.assign(contents, doc);
|
|
899
891
|
return contents;
|
|
900
892
|
};
|
|
901
893
|
const de_GetConnectionCommandError = async (output, context) => {
|
|
@@ -919,10 +911,9 @@ const de_GetConnectionCommandError = async (output, context) => {
|
|
|
919
911
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
920
912
|
default:
|
|
921
913
|
const parsedBody = parsedOutput.body;
|
|
922
|
-
throwDefaultError({
|
|
914
|
+
return throwDefaultError({
|
|
923
915
|
output,
|
|
924
916
|
parsedBody,
|
|
925
|
-
exceptionCtor: __BaseException,
|
|
926
917
|
errorCode,
|
|
927
918
|
});
|
|
928
919
|
}
|
|
@@ -935,9 +926,10 @@ export const de_GetOrderCommand = async (output, context) => {
|
|
|
935
926
|
$metadata: deserializeMetadata(output),
|
|
936
927
|
});
|
|
937
928
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}
|
|
929
|
+
const doc = take(data, {
|
|
930
|
+
Order: (_) => de_Order(_, context),
|
|
931
|
+
});
|
|
932
|
+
Object.assign(contents, doc);
|
|
941
933
|
return contents;
|
|
942
934
|
};
|
|
943
935
|
const de_GetOrderCommandError = async (output, context) => {
|
|
@@ -958,10 +950,9 @@ const de_GetOrderCommandError = async (output, context) => {
|
|
|
958
950
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
959
951
|
default:
|
|
960
952
|
const parsedBody = parsedOutput.body;
|
|
961
|
-
throwDefaultError({
|
|
953
|
+
return throwDefaultError({
|
|
962
954
|
output,
|
|
963
955
|
parsedBody,
|
|
964
|
-
exceptionCtor: __BaseException,
|
|
965
956
|
errorCode,
|
|
966
957
|
});
|
|
967
958
|
}
|
|
@@ -974,9 +965,10 @@ export const de_GetOutpostCommand = async (output, context) => {
|
|
|
974
965
|
$metadata: deserializeMetadata(output),
|
|
975
966
|
});
|
|
976
967
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}
|
|
968
|
+
const doc = take(data, {
|
|
969
|
+
Outpost: _json,
|
|
970
|
+
});
|
|
971
|
+
Object.assign(contents, doc);
|
|
980
972
|
return contents;
|
|
981
973
|
};
|
|
982
974
|
const de_GetOutpostCommandError = async (output, context) => {
|
|
@@ -1000,10 +992,9 @@ const de_GetOutpostCommandError = async (output, context) => {
|
|
|
1000
992
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1001
993
|
default:
|
|
1002
994
|
const parsedBody = parsedOutput.body;
|
|
1003
|
-
throwDefaultError({
|
|
995
|
+
return throwDefaultError({
|
|
1004
996
|
output,
|
|
1005
997
|
parsedBody,
|
|
1006
|
-
exceptionCtor: __BaseException,
|
|
1007
998
|
errorCode,
|
|
1008
999
|
});
|
|
1009
1000
|
}
|
|
@@ -1016,18 +1007,13 @@ export const de_GetOutpostInstanceTypesCommand = async (output, context) => {
|
|
|
1016
1007
|
$metadata: deserializeMetadata(output),
|
|
1017
1008
|
});
|
|
1018
1009
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
contents.OutpostArn = __expectString(data.OutpostArn);
|
|
1027
|
-
}
|
|
1028
|
-
if (data.OutpostId != null) {
|
|
1029
|
-
contents.OutpostId = __expectString(data.OutpostId);
|
|
1030
|
-
}
|
|
1010
|
+
const doc = take(data, {
|
|
1011
|
+
InstanceTypes: _json,
|
|
1012
|
+
NextToken: __expectString,
|
|
1013
|
+
OutpostArn: __expectString,
|
|
1014
|
+
OutpostId: __expectString,
|
|
1015
|
+
});
|
|
1016
|
+
Object.assign(contents, doc);
|
|
1031
1017
|
return contents;
|
|
1032
1018
|
};
|
|
1033
1019
|
const de_GetOutpostInstanceTypesCommandError = async (output, context) => {
|
|
@@ -1051,10 +1037,9 @@ const de_GetOutpostInstanceTypesCommandError = async (output, context) => {
|
|
|
1051
1037
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1052
1038
|
default:
|
|
1053
1039
|
const parsedBody = parsedOutput.body;
|
|
1054
|
-
throwDefaultError({
|
|
1040
|
+
return throwDefaultError({
|
|
1055
1041
|
output,
|
|
1056
1042
|
parsedBody,
|
|
1057
|
-
exceptionCtor: __BaseException,
|
|
1058
1043
|
errorCode,
|
|
1059
1044
|
});
|
|
1060
1045
|
}
|
|
@@ -1067,9 +1052,10 @@ export const de_GetSiteCommand = async (output, context) => {
|
|
|
1067
1052
|
$metadata: deserializeMetadata(output),
|
|
1068
1053
|
});
|
|
1069
1054
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
}
|
|
1055
|
+
const doc = take(data, {
|
|
1056
|
+
Site: _json,
|
|
1057
|
+
});
|
|
1058
|
+
Object.assign(contents, doc);
|
|
1073
1059
|
return contents;
|
|
1074
1060
|
};
|
|
1075
1061
|
const de_GetSiteCommandError = async (output, context) => {
|
|
@@ -1093,10 +1079,9 @@ const de_GetSiteCommandError = async (output, context) => {
|
|
|
1093
1079
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1094
1080
|
default:
|
|
1095
1081
|
const parsedBody = parsedOutput.body;
|
|
1096
|
-
throwDefaultError({
|
|
1082
|
+
return throwDefaultError({
|
|
1097
1083
|
output,
|
|
1098
1084
|
parsedBody,
|
|
1099
|
-
exceptionCtor: __BaseException,
|
|
1100
1085
|
errorCode,
|
|
1101
1086
|
});
|
|
1102
1087
|
}
|
|
@@ -1109,15 +1094,12 @@ export const de_GetSiteAddressCommand = async (output, context) => {
|
|
|
1109
1094
|
$metadata: deserializeMetadata(output),
|
|
1110
1095
|
});
|
|
1111
1096
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
if (data.SiteId != null) {
|
|
1119
|
-
contents.SiteId = __expectString(data.SiteId);
|
|
1120
|
-
}
|
|
1097
|
+
const doc = take(data, {
|
|
1098
|
+
Address: _json,
|
|
1099
|
+
AddressType: __expectString,
|
|
1100
|
+
SiteId: __expectString,
|
|
1101
|
+
});
|
|
1102
|
+
Object.assign(contents, doc);
|
|
1121
1103
|
return contents;
|
|
1122
1104
|
};
|
|
1123
1105
|
const de_GetSiteAddressCommandError = async (output, context) => {
|
|
@@ -1141,10 +1123,9 @@ const de_GetSiteAddressCommandError = async (output, context) => {
|
|
|
1141
1123
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1142
1124
|
default:
|
|
1143
1125
|
const parsedBody = parsedOutput.body;
|
|
1144
|
-
throwDefaultError({
|
|
1126
|
+
return throwDefaultError({
|
|
1145
1127
|
output,
|
|
1146
1128
|
parsedBody,
|
|
1147
|
-
exceptionCtor: __BaseException,
|
|
1148
1129
|
errorCode,
|
|
1149
1130
|
});
|
|
1150
1131
|
}
|
|
@@ -1157,12 +1138,11 @@ export const de_ListAssetsCommand = async (output, context) => {
|
|
|
1157
1138
|
$metadata: deserializeMetadata(output),
|
|
1158
1139
|
});
|
|
1159
1140
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
}
|
|
1141
|
+
const doc = take(data, {
|
|
1142
|
+
Assets: (_) => de_AssetListDefinition(_, context),
|
|
1143
|
+
NextToken: __expectString,
|
|
1144
|
+
});
|
|
1145
|
+
Object.assign(contents, doc);
|
|
1166
1146
|
return contents;
|
|
1167
1147
|
};
|
|
1168
1148
|
const de_ListAssetsCommandError = async (output, context) => {
|
|
@@ -1186,10 +1166,9 @@ const de_ListAssetsCommandError = async (output, context) => {
|
|
|
1186
1166
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1187
1167
|
default:
|
|
1188
1168
|
const parsedBody = parsedOutput.body;
|
|
1189
|
-
throwDefaultError({
|
|
1169
|
+
return throwDefaultError({
|
|
1190
1170
|
output,
|
|
1191
1171
|
parsedBody,
|
|
1192
|
-
exceptionCtor: __BaseException,
|
|
1193
1172
|
errorCode,
|
|
1194
1173
|
});
|
|
1195
1174
|
}
|
|
@@ -1202,12 +1181,11 @@ export const de_ListCatalogItemsCommand = async (output, context) => {
|
|
|
1202
1181
|
$metadata: deserializeMetadata(output),
|
|
1203
1182
|
});
|
|
1204
1183
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
}
|
|
1184
|
+
const doc = take(data, {
|
|
1185
|
+
CatalogItems: (_) => de_CatalogItemListDefinition(_, context),
|
|
1186
|
+
NextToken: __expectString,
|
|
1187
|
+
});
|
|
1188
|
+
Object.assign(contents, doc);
|
|
1211
1189
|
return contents;
|
|
1212
1190
|
};
|
|
1213
1191
|
const de_ListCatalogItemsCommandError = async (output, context) => {
|
|
@@ -1228,10 +1206,9 @@ const de_ListCatalogItemsCommandError = async (output, context) => {
|
|
|
1228
1206
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1229
1207
|
default:
|
|
1230
1208
|
const parsedBody = parsedOutput.body;
|
|
1231
|
-
throwDefaultError({
|
|
1209
|
+
return throwDefaultError({
|
|
1232
1210
|
output,
|
|
1233
1211
|
parsedBody,
|
|
1234
|
-
exceptionCtor: __BaseException,
|
|
1235
1212
|
errorCode,
|
|
1236
1213
|
});
|
|
1237
1214
|
}
|
|
@@ -1244,12 +1221,11 @@ export const de_ListOrdersCommand = async (output, context) => {
|
|
|
1244
1221
|
$metadata: deserializeMetadata(output),
|
|
1245
1222
|
});
|
|
1246
1223
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
}
|
|
1224
|
+
const doc = take(data, {
|
|
1225
|
+
NextToken: __expectString,
|
|
1226
|
+
Orders: (_) => de_OrderSummaryListDefinition(_, context),
|
|
1227
|
+
});
|
|
1228
|
+
Object.assign(contents, doc);
|
|
1253
1229
|
return contents;
|
|
1254
1230
|
};
|
|
1255
1231
|
const de_ListOrdersCommandError = async (output, context) => {
|
|
@@ -1273,10 +1249,9 @@ const de_ListOrdersCommandError = async (output, context) => {
|
|
|
1273
1249
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1274
1250
|
default:
|
|
1275
1251
|
const parsedBody = parsedOutput.body;
|
|
1276
|
-
throwDefaultError({
|
|
1252
|
+
return throwDefaultError({
|
|
1277
1253
|
output,
|
|
1278
1254
|
parsedBody,
|
|
1279
|
-
exceptionCtor: __BaseException,
|
|
1280
1255
|
errorCode,
|
|
1281
1256
|
});
|
|
1282
1257
|
}
|
|
@@ -1289,12 +1264,11 @@ export const de_ListOutpostsCommand = async (output, context) => {
|
|
|
1289
1264
|
$metadata: deserializeMetadata(output),
|
|
1290
1265
|
});
|
|
1291
1266
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
}
|
|
1267
|
+
const doc = take(data, {
|
|
1268
|
+
NextToken: __expectString,
|
|
1269
|
+
Outposts: _json,
|
|
1270
|
+
});
|
|
1271
|
+
Object.assign(contents, doc);
|
|
1298
1272
|
return contents;
|
|
1299
1273
|
};
|
|
1300
1274
|
const de_ListOutpostsCommandError = async (output, context) => {
|
|
@@ -1315,10 +1289,9 @@ const de_ListOutpostsCommandError = async (output, context) => {
|
|
|
1315
1289
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1316
1290
|
default:
|
|
1317
1291
|
const parsedBody = parsedOutput.body;
|
|
1318
|
-
throwDefaultError({
|
|
1292
|
+
return throwDefaultError({
|
|
1319
1293
|
output,
|
|
1320
1294
|
parsedBody,
|
|
1321
|
-
exceptionCtor: __BaseException,
|
|
1322
1295
|
errorCode,
|
|
1323
1296
|
});
|
|
1324
1297
|
}
|
|
@@ -1331,12 +1304,11 @@ export const de_ListSitesCommand = async (output, context) => {
|
|
|
1331
1304
|
$metadata: deserializeMetadata(output),
|
|
1332
1305
|
});
|
|
1333
1306
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
}
|
|
1307
|
+
const doc = take(data, {
|
|
1308
|
+
NextToken: __expectString,
|
|
1309
|
+
Sites: _json,
|
|
1310
|
+
});
|
|
1311
|
+
Object.assign(contents, doc);
|
|
1340
1312
|
return contents;
|
|
1341
1313
|
};
|
|
1342
1314
|
const de_ListSitesCommandError = async (output, context) => {
|
|
@@ -1357,10 +1329,9 @@ const de_ListSitesCommandError = async (output, context) => {
|
|
|
1357
1329
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1358
1330
|
default:
|
|
1359
1331
|
const parsedBody = parsedOutput.body;
|
|
1360
|
-
throwDefaultError({
|
|
1332
|
+
return throwDefaultError({
|
|
1361
1333
|
output,
|
|
1362
1334
|
parsedBody,
|
|
1363
|
-
exceptionCtor: __BaseException,
|
|
1364
1335
|
errorCode,
|
|
1365
1336
|
});
|
|
1366
1337
|
}
|
|
@@ -1373,9 +1344,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1373
1344
|
$metadata: deserializeMetadata(output),
|
|
1374
1345
|
});
|
|
1375
1346
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
}
|
|
1347
|
+
const doc = take(data, {
|
|
1348
|
+
Tags: _json,
|
|
1349
|
+
});
|
|
1350
|
+
Object.assign(contents, doc);
|
|
1379
1351
|
return contents;
|
|
1380
1352
|
};
|
|
1381
1353
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1396,10 +1368,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1396
1368
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1397
1369
|
default:
|
|
1398
1370
|
const parsedBody = parsedOutput.body;
|
|
1399
|
-
throwDefaultError({
|
|
1371
|
+
return throwDefaultError({
|
|
1400
1372
|
output,
|
|
1401
1373
|
parsedBody,
|
|
1402
|
-
exceptionCtor: __BaseException,
|
|
1403
1374
|
errorCode,
|
|
1404
1375
|
});
|
|
1405
1376
|
}
|
|
@@ -1412,12 +1383,11 @@ export const de_StartConnectionCommand = async (output, context) => {
|
|
|
1412
1383
|
$metadata: deserializeMetadata(output),
|
|
1413
1384
|
});
|
|
1414
1385
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
}
|
|
1386
|
+
const doc = take(data, {
|
|
1387
|
+
ConnectionId: __expectString,
|
|
1388
|
+
UnderlayIpAddress: __expectString,
|
|
1389
|
+
});
|
|
1390
|
+
Object.assign(contents, doc);
|
|
1421
1391
|
return contents;
|
|
1422
1392
|
};
|
|
1423
1393
|
const de_StartConnectionCommandError = async (output, context) => {
|
|
@@ -1441,10 +1411,9 @@ const de_StartConnectionCommandError = async (output, context) => {
|
|
|
1441
1411
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1442
1412
|
default:
|
|
1443
1413
|
const parsedBody = parsedOutput.body;
|
|
1444
|
-
throwDefaultError({
|
|
1414
|
+
return throwDefaultError({
|
|
1445
1415
|
output,
|
|
1446
1416
|
parsedBody,
|
|
1447
|
-
exceptionCtor: __BaseException,
|
|
1448
1417
|
errorCode,
|
|
1449
1418
|
});
|
|
1450
1419
|
}
|
|
@@ -1477,10 +1446,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1477
1446
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1478
1447
|
default:
|
|
1479
1448
|
const parsedBody = parsedOutput.body;
|
|
1480
|
-
throwDefaultError({
|
|
1449
|
+
return throwDefaultError({
|
|
1481
1450
|
output,
|
|
1482
1451
|
parsedBody,
|
|
1483
|
-
exceptionCtor: __BaseException,
|
|
1484
1452
|
errorCode,
|
|
1485
1453
|
});
|
|
1486
1454
|
}
|
|
@@ -1513,10 +1481,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1513
1481
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1514
1482
|
default:
|
|
1515
1483
|
const parsedBody = parsedOutput.body;
|
|
1516
|
-
throwDefaultError({
|
|
1484
|
+
return throwDefaultError({
|
|
1517
1485
|
output,
|
|
1518
1486
|
parsedBody,
|
|
1519
|
-
exceptionCtor: __BaseException,
|
|
1520
1487
|
errorCode,
|
|
1521
1488
|
});
|
|
1522
1489
|
}
|
|
@@ -1529,9 +1496,10 @@ export const de_UpdateOutpostCommand = async (output, context) => {
|
|
|
1529
1496
|
$metadata: deserializeMetadata(output),
|
|
1530
1497
|
});
|
|
1531
1498
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
}
|
|
1499
|
+
const doc = take(data, {
|
|
1500
|
+
Outpost: _json,
|
|
1501
|
+
});
|
|
1502
|
+
Object.assign(contents, doc);
|
|
1535
1503
|
return contents;
|
|
1536
1504
|
};
|
|
1537
1505
|
const de_UpdateOutpostCommandError = async (output, context) => {
|
|
@@ -1558,10 +1526,9 @@ const de_UpdateOutpostCommandError = async (output, context) => {
|
|
|
1558
1526
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1559
1527
|
default:
|
|
1560
1528
|
const parsedBody = parsedOutput.body;
|
|
1561
|
-
throwDefaultError({
|
|
1529
|
+
return throwDefaultError({
|
|
1562
1530
|
output,
|
|
1563
1531
|
parsedBody,
|
|
1564
|
-
exceptionCtor: __BaseException,
|
|
1565
1532
|
errorCode,
|
|
1566
1533
|
});
|
|
1567
1534
|
}
|
|
@@ -1574,9 +1541,10 @@ export const de_UpdateSiteCommand = async (output, context) => {
|
|
|
1574
1541
|
$metadata: deserializeMetadata(output),
|
|
1575
1542
|
});
|
|
1576
1543
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
}
|
|
1544
|
+
const doc = take(data, {
|
|
1545
|
+
Site: _json,
|
|
1546
|
+
});
|
|
1547
|
+
Object.assign(contents, doc);
|
|
1580
1548
|
return contents;
|
|
1581
1549
|
};
|
|
1582
1550
|
const de_UpdateSiteCommandError = async (output, context) => {
|
|
@@ -1603,10 +1571,9 @@ const de_UpdateSiteCommandError = async (output, context) => {
|
|
|
1603
1571
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1604
1572
|
default:
|
|
1605
1573
|
const parsedBody = parsedOutput.body;
|
|
1606
|
-
throwDefaultError({
|
|
1574
|
+
return throwDefaultError({
|
|
1607
1575
|
output,
|
|
1608
1576
|
parsedBody,
|
|
1609
|
-
exceptionCtor: __BaseException,
|
|
1610
1577
|
errorCode,
|
|
1611
1578
|
});
|
|
1612
1579
|
}
|
|
@@ -1619,12 +1586,11 @@ export const de_UpdateSiteAddressCommand = async (output, context) => {
|
|
|
1619
1586
|
$metadata: deserializeMetadata(output),
|
|
1620
1587
|
});
|
|
1621
1588
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
}
|
|
1589
|
+
const doc = take(data, {
|
|
1590
|
+
Address: _json,
|
|
1591
|
+
AddressType: __expectString,
|
|
1592
|
+
});
|
|
1593
|
+
Object.assign(contents, doc);
|
|
1628
1594
|
return contents;
|
|
1629
1595
|
};
|
|
1630
1596
|
const de_UpdateSiteAddressCommandError = async (output, context) => {
|
|
@@ -1651,10 +1617,9 @@ const de_UpdateSiteAddressCommandError = async (output, context) => {
|
|
|
1651
1617
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1652
1618
|
default:
|
|
1653
1619
|
const parsedBody = parsedOutput.body;
|
|
1654
|
-
throwDefaultError({
|
|
1620
|
+
return throwDefaultError({
|
|
1655
1621
|
output,
|
|
1656
1622
|
parsedBody,
|
|
1657
|
-
exceptionCtor: __BaseException,
|
|
1658
1623
|
errorCode,
|
|
1659
1624
|
});
|
|
1660
1625
|
}
|
|
@@ -1667,9 +1632,10 @@ export const de_UpdateSiteRackPhysicalPropertiesCommand = async (output, context
|
|
|
1667
1632
|
$metadata: deserializeMetadata(output),
|
|
1668
1633
|
});
|
|
1669
1634
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
}
|
|
1635
|
+
const doc = take(data, {
|
|
1636
|
+
Site: _json,
|
|
1637
|
+
});
|
|
1638
|
+
Object.assign(contents, doc);
|
|
1673
1639
|
return contents;
|
|
1674
1640
|
};
|
|
1675
1641
|
const de_UpdateSiteRackPhysicalPropertiesCommandError = async (output, context) => {
|
|
@@ -1696,21 +1662,21 @@ const de_UpdateSiteRackPhysicalPropertiesCommandError = async (output, context)
|
|
|
1696
1662
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1697
1663
|
default:
|
|
1698
1664
|
const parsedBody = parsedOutput.body;
|
|
1699
|
-
throwDefaultError({
|
|
1665
|
+
return throwDefaultError({
|
|
1700
1666
|
output,
|
|
1701
1667
|
parsedBody,
|
|
1702
|
-
exceptionCtor: __BaseException,
|
|
1703
1668
|
errorCode,
|
|
1704
1669
|
});
|
|
1705
1670
|
}
|
|
1706
1671
|
};
|
|
1707
|
-
const
|
|
1672
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1708
1673
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1709
1674
|
const contents = map({});
|
|
1710
1675
|
const data = parsedOutput.body;
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
}
|
|
1676
|
+
const doc = take(data, {
|
|
1677
|
+
Message: __expectString,
|
|
1678
|
+
});
|
|
1679
|
+
Object.assign(contents, doc);
|
|
1714
1680
|
const exception = new AccessDeniedException({
|
|
1715
1681
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1716
1682
|
...contents,
|
|
@@ -1720,15 +1686,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1720
1686
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1721
1687
|
const contents = map({});
|
|
1722
1688
|
const data = parsedOutput.body;
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
if (data.ResourceType != null) {
|
|
1730
|
-
contents.ResourceType = __expectString(data.ResourceType);
|
|
1731
|
-
}
|
|
1689
|
+
const doc = take(data, {
|
|
1690
|
+
Message: __expectString,
|
|
1691
|
+
ResourceId: __expectString,
|
|
1692
|
+
ResourceType: __expectString,
|
|
1693
|
+
});
|
|
1694
|
+
Object.assign(contents, doc);
|
|
1732
1695
|
const exception = new ConflictException({
|
|
1733
1696
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1734
1697
|
...contents,
|
|
@@ -1738,9 +1701,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1738
1701
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1739
1702
|
const contents = map({});
|
|
1740
1703
|
const data = parsedOutput.body;
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}
|
|
1704
|
+
const doc = take(data, {
|
|
1705
|
+
Message: __expectString,
|
|
1706
|
+
});
|
|
1707
|
+
Object.assign(contents, doc);
|
|
1744
1708
|
const exception = new InternalServerException({
|
|
1745
1709
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1746
1710
|
...contents,
|
|
@@ -1750,9 +1714,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1750
1714
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1751
1715
|
const contents = map({});
|
|
1752
1716
|
const data = parsedOutput.body;
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
}
|
|
1717
|
+
const doc = take(data, {
|
|
1718
|
+
Message: __expectString,
|
|
1719
|
+
});
|
|
1720
|
+
Object.assign(contents, doc);
|
|
1756
1721
|
const exception = new NotFoundException({
|
|
1757
1722
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1758
1723
|
...contents,
|
|
@@ -1762,9 +1727,10 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1762
1727
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1763
1728
|
const contents = map({});
|
|
1764
1729
|
const data = parsedOutput.body;
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
}
|
|
1730
|
+
const doc = take(data, {
|
|
1731
|
+
Message: __expectString,
|
|
1732
|
+
});
|
|
1733
|
+
Object.assign(contents, doc);
|
|
1768
1734
|
const exception = new ServiceQuotaExceededException({
|
|
1769
1735
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1770
1736
|
...contents,
|
|
@@ -1774,402 +1740,89 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1774
1740
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1775
1741
|
const contents = map({});
|
|
1776
1742
|
const data = parsedOutput.body;
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
}
|
|
1743
|
+
const doc = take(data, {
|
|
1744
|
+
Message: __expectString,
|
|
1745
|
+
});
|
|
1746
|
+
Object.assign(contents, doc);
|
|
1780
1747
|
const exception = new ValidationException({
|
|
1781
1748
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1782
1749
|
...contents,
|
|
1783
1750
|
});
|
|
1784
1751
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1785
1752
|
};
|
|
1786
|
-
const se_Address = (input, context) => {
|
|
1787
|
-
return {
|
|
1788
|
-
...(input.AddressLine1 != null && { AddressLine1: input.AddressLine1 }),
|
|
1789
|
-
...(input.AddressLine2 != null && { AddressLine2: input.AddressLine2 }),
|
|
1790
|
-
...(input.AddressLine3 != null && { AddressLine3: input.AddressLine3 }),
|
|
1791
|
-
...(input.City != null && { City: input.City }),
|
|
1792
|
-
...(input.ContactName != null && { ContactName: input.ContactName }),
|
|
1793
|
-
...(input.ContactPhoneNumber != null && { ContactPhoneNumber: input.ContactPhoneNumber }),
|
|
1794
|
-
...(input.CountryCode != null && { CountryCode: input.CountryCode }),
|
|
1795
|
-
...(input.DistrictOrCounty != null && { DistrictOrCounty: input.DistrictOrCounty }),
|
|
1796
|
-
...(input.Municipality != null && { Municipality: input.Municipality }),
|
|
1797
|
-
...(input.PostalCode != null && { PostalCode: input.PostalCode }),
|
|
1798
|
-
...(input.StateOrRegion != null && { StateOrRegion: input.StateOrRegion }),
|
|
1799
|
-
};
|
|
1800
|
-
};
|
|
1801
|
-
const se_LineItemRequest = (input, context) => {
|
|
1802
|
-
return {
|
|
1803
|
-
...(input.CatalogItemId != null && { CatalogItemId: input.CatalogItemId }),
|
|
1804
|
-
...(input.Quantity != null && { Quantity: input.Quantity }),
|
|
1805
|
-
};
|
|
1806
|
-
};
|
|
1807
|
-
const se_LineItemRequestListDefinition = (input, context) => {
|
|
1808
|
-
return input
|
|
1809
|
-
.filter((e) => e != null)
|
|
1810
|
-
.map((entry) => {
|
|
1811
|
-
return se_LineItemRequest(entry, context);
|
|
1812
|
-
});
|
|
1813
|
-
};
|
|
1814
|
-
const se_RackPhysicalProperties = (input, context) => {
|
|
1815
|
-
return {
|
|
1816
|
-
...(input.FiberOpticCableType != null && { FiberOpticCableType: input.FiberOpticCableType }),
|
|
1817
|
-
...(input.MaximumSupportedWeightLbs != null && { MaximumSupportedWeightLbs: input.MaximumSupportedWeightLbs }),
|
|
1818
|
-
...(input.OpticalStandard != null && { OpticalStandard: input.OpticalStandard }),
|
|
1819
|
-
...(input.PowerConnector != null && { PowerConnector: input.PowerConnector }),
|
|
1820
|
-
...(input.PowerDrawKva != null && { PowerDrawKva: input.PowerDrawKva }),
|
|
1821
|
-
...(input.PowerFeedDrop != null && { PowerFeedDrop: input.PowerFeedDrop }),
|
|
1822
|
-
...(input.PowerPhase != null && { PowerPhase: input.PowerPhase }),
|
|
1823
|
-
...(input.UplinkCount != null && { UplinkCount: input.UplinkCount }),
|
|
1824
|
-
...(input.UplinkGbps != null && { UplinkGbps: input.UplinkGbps }),
|
|
1825
|
-
};
|
|
1826
|
-
};
|
|
1827
|
-
const se_TagMap = (input, context) => {
|
|
1828
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1829
|
-
if (value === null) {
|
|
1830
|
-
return acc;
|
|
1831
|
-
}
|
|
1832
|
-
acc[key] = value;
|
|
1833
|
-
return acc;
|
|
1834
|
-
}, {});
|
|
1835
|
-
};
|
|
1836
|
-
const de_Address = (output, context) => {
|
|
1837
|
-
return {
|
|
1838
|
-
AddressLine1: __expectString(output.AddressLine1),
|
|
1839
|
-
AddressLine2: __expectString(output.AddressLine2),
|
|
1840
|
-
AddressLine3: __expectString(output.AddressLine3),
|
|
1841
|
-
City: __expectString(output.City),
|
|
1842
|
-
ContactName: __expectString(output.ContactName),
|
|
1843
|
-
ContactPhoneNumber: __expectString(output.ContactPhoneNumber),
|
|
1844
|
-
CountryCode: __expectString(output.CountryCode),
|
|
1845
|
-
DistrictOrCounty: __expectString(output.DistrictOrCounty),
|
|
1846
|
-
Municipality: __expectString(output.Municipality),
|
|
1847
|
-
PostalCode: __expectString(output.PostalCode),
|
|
1848
|
-
StateOrRegion: __expectString(output.StateOrRegion),
|
|
1849
|
-
};
|
|
1850
|
-
};
|
|
1851
1753
|
const de_AssetInfo = (output, context) => {
|
|
1852
|
-
return {
|
|
1853
|
-
AssetId: __expectString
|
|
1854
|
-
AssetLocation:
|
|
1855
|
-
AssetType: __expectString
|
|
1856
|
-
ComputeAttributes:
|
|
1857
|
-
RackId: __expectString
|
|
1858
|
-
};
|
|
1754
|
+
return take(output, {
|
|
1755
|
+
AssetId: __expectString,
|
|
1756
|
+
AssetLocation: (_) => de_AssetLocation(_, context),
|
|
1757
|
+
AssetType: __expectString,
|
|
1758
|
+
ComputeAttributes: _json,
|
|
1759
|
+
RackId: __expectString,
|
|
1760
|
+
});
|
|
1859
1761
|
};
|
|
1860
1762
|
const de_AssetListDefinition = (output, context) => {
|
|
1861
1763
|
const retVal = (output || [])
|
|
1862
1764
|
.filter((e) => e != null)
|
|
1863
1765
|
.map((entry) => {
|
|
1864
|
-
if (entry === null) {
|
|
1865
|
-
return null;
|
|
1866
|
-
}
|
|
1867
1766
|
return de_AssetInfo(entry, context);
|
|
1868
1767
|
});
|
|
1869
1768
|
return retVal;
|
|
1870
1769
|
};
|
|
1871
1770
|
const de_AssetLocation = (output, context) => {
|
|
1872
|
-
return {
|
|
1873
|
-
RackElevation: __limitedParseFloat32
|
|
1874
|
-
};
|
|
1771
|
+
return take(output, {
|
|
1772
|
+
RackElevation: __limitedParseFloat32,
|
|
1773
|
+
});
|
|
1875
1774
|
};
|
|
1876
1775
|
const de_CatalogItem = (output, context) => {
|
|
1877
|
-
return {
|
|
1878
|
-
CatalogItemId: __expectString
|
|
1879
|
-
EC2Capacities:
|
|
1880
|
-
ItemStatus: __expectString
|
|
1881
|
-
PowerKva: __limitedParseFloat32
|
|
1882
|
-
SupportedStorage:
|
|
1883
|
-
SupportedUplinkGbps:
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
WeightLbs: __expectInt32(output.WeightLbs),
|
|
1887
|
-
};
|
|
1776
|
+
return take(output, {
|
|
1777
|
+
CatalogItemId: __expectString,
|
|
1778
|
+
EC2Capacities: _json,
|
|
1779
|
+
ItemStatus: __expectString,
|
|
1780
|
+
PowerKva: __limitedParseFloat32,
|
|
1781
|
+
SupportedStorage: _json,
|
|
1782
|
+
SupportedUplinkGbps: _json,
|
|
1783
|
+
WeightLbs: __expectInt32,
|
|
1784
|
+
});
|
|
1888
1785
|
};
|
|
1889
1786
|
const de_CatalogItemListDefinition = (output, context) => {
|
|
1890
1787
|
const retVal = (output || [])
|
|
1891
1788
|
.filter((e) => e != null)
|
|
1892
1789
|
.map((entry) => {
|
|
1893
|
-
if (entry === null) {
|
|
1894
|
-
return null;
|
|
1895
|
-
}
|
|
1896
1790
|
return de_CatalogItem(entry, context);
|
|
1897
1791
|
});
|
|
1898
1792
|
return retVal;
|
|
1899
1793
|
};
|
|
1900
|
-
const de_CIDRList = (output, context) => {
|
|
1901
|
-
const retVal = (output || [])
|
|
1902
|
-
.filter((e) => e != null)
|
|
1903
|
-
.map((entry) => {
|
|
1904
|
-
if (entry === null) {
|
|
1905
|
-
return null;
|
|
1906
|
-
}
|
|
1907
|
-
return __expectString(entry);
|
|
1908
|
-
});
|
|
1909
|
-
return retVal;
|
|
1910
|
-
};
|
|
1911
|
-
const de_ComputeAttributes = (output, context) => {
|
|
1912
|
-
return {
|
|
1913
|
-
HostId: __expectString(output.HostId),
|
|
1914
|
-
State: __expectString(output.State),
|
|
1915
|
-
};
|
|
1916
|
-
};
|
|
1917
|
-
const de_ConnectionDetails = (output, context) => {
|
|
1918
|
-
return {
|
|
1919
|
-
AllowedIps: output.AllowedIps != null ? de_CIDRList(output.AllowedIps, context) : undefined,
|
|
1920
|
-
ClientPublicKey: __expectString(output.ClientPublicKey),
|
|
1921
|
-
ClientTunnelAddress: __expectString(output.ClientTunnelAddress),
|
|
1922
|
-
ServerEndpoint: __expectString(output.ServerEndpoint),
|
|
1923
|
-
ServerPublicKey: __expectString(output.ServerPublicKey),
|
|
1924
|
-
ServerTunnelAddress: __expectString(output.ServerTunnelAddress),
|
|
1925
|
-
};
|
|
1926
|
-
};
|
|
1927
|
-
const de_EC2Capacity = (output, context) => {
|
|
1928
|
-
return {
|
|
1929
|
-
Family: __expectString(output.Family),
|
|
1930
|
-
MaxSize: __expectString(output.MaxSize),
|
|
1931
|
-
Quantity: __expectString(output.Quantity),
|
|
1932
|
-
};
|
|
1933
|
-
};
|
|
1934
|
-
const de_EC2CapacityListDefinition = (output, context) => {
|
|
1935
|
-
const retVal = (output || [])
|
|
1936
|
-
.filter((e) => e != null)
|
|
1937
|
-
.map((entry) => {
|
|
1938
|
-
if (entry === null) {
|
|
1939
|
-
return null;
|
|
1940
|
-
}
|
|
1941
|
-
return de_EC2Capacity(entry, context);
|
|
1942
|
-
});
|
|
1943
|
-
return retVal;
|
|
1944
|
-
};
|
|
1945
|
-
const de_InstanceTypeItem = (output, context) => {
|
|
1946
|
-
return {
|
|
1947
|
-
InstanceType: __expectString(output.InstanceType),
|
|
1948
|
-
};
|
|
1949
|
-
};
|
|
1950
|
-
const de_InstanceTypeListDefinition = (output, context) => {
|
|
1951
|
-
const retVal = (output || [])
|
|
1952
|
-
.filter((e) => e != null)
|
|
1953
|
-
.map((entry) => {
|
|
1954
|
-
if (entry === null) {
|
|
1955
|
-
return null;
|
|
1956
|
-
}
|
|
1957
|
-
return de_InstanceTypeItem(entry, context);
|
|
1958
|
-
});
|
|
1959
|
-
return retVal;
|
|
1960
|
-
};
|
|
1961
|
-
const de_LineItem = (output, context) => {
|
|
1962
|
-
return {
|
|
1963
|
-
AssetInformationList: output.AssetInformationList != null
|
|
1964
|
-
? de_LineItemAssetInformationList(output.AssetInformationList, context)
|
|
1965
|
-
: undefined,
|
|
1966
|
-
CatalogItemId: __expectString(output.CatalogItemId),
|
|
1967
|
-
LineItemId: __expectString(output.LineItemId),
|
|
1968
|
-
PreviousLineItemId: __expectString(output.PreviousLineItemId),
|
|
1969
|
-
PreviousOrderId: __expectString(output.PreviousOrderId),
|
|
1970
|
-
Quantity: __expectInt32(output.Quantity),
|
|
1971
|
-
ShipmentInformation: output.ShipmentInformation != null ? de_ShipmentInformation(output.ShipmentInformation, context) : undefined,
|
|
1972
|
-
Status: __expectString(output.Status),
|
|
1973
|
-
};
|
|
1974
|
-
};
|
|
1975
|
-
const de_LineItemAssetInformation = (output, context) => {
|
|
1976
|
-
return {
|
|
1977
|
-
AssetId: __expectString(output.AssetId),
|
|
1978
|
-
MacAddressList: output.MacAddressList != null ? de_MacAddressList(output.MacAddressList, context) : undefined,
|
|
1979
|
-
};
|
|
1980
|
-
};
|
|
1981
|
-
const de_LineItemAssetInformationList = (output, context) => {
|
|
1982
|
-
const retVal = (output || [])
|
|
1983
|
-
.filter((e) => e != null)
|
|
1984
|
-
.map((entry) => {
|
|
1985
|
-
if (entry === null) {
|
|
1986
|
-
return null;
|
|
1987
|
-
}
|
|
1988
|
-
return de_LineItemAssetInformation(entry, context);
|
|
1989
|
-
});
|
|
1990
|
-
return retVal;
|
|
1991
|
-
};
|
|
1992
|
-
const de_LineItemListDefinition = (output, context) => {
|
|
1993
|
-
const retVal = (output || [])
|
|
1994
|
-
.filter((e) => e != null)
|
|
1995
|
-
.map((entry) => {
|
|
1996
|
-
if (entry === null) {
|
|
1997
|
-
return null;
|
|
1998
|
-
}
|
|
1999
|
-
return de_LineItem(entry, context);
|
|
2000
|
-
});
|
|
2001
|
-
return retVal;
|
|
2002
|
-
};
|
|
2003
|
-
const de_LineItemStatusCounts = (output, context) => {
|
|
2004
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2005
|
-
if (value === null) {
|
|
2006
|
-
return acc;
|
|
2007
|
-
}
|
|
2008
|
-
acc[key] = __expectInt32(value);
|
|
2009
|
-
return acc;
|
|
2010
|
-
}, {});
|
|
2011
|
-
};
|
|
2012
|
-
const de_MacAddressList = (output, context) => {
|
|
2013
|
-
const retVal = (output || [])
|
|
2014
|
-
.filter((e) => e != null)
|
|
2015
|
-
.map((entry) => {
|
|
2016
|
-
if (entry === null) {
|
|
2017
|
-
return null;
|
|
2018
|
-
}
|
|
2019
|
-
return __expectString(entry);
|
|
2020
|
-
});
|
|
2021
|
-
return retVal;
|
|
2022
|
-
};
|
|
2023
1794
|
const de_Order = (output, context) => {
|
|
2024
|
-
return {
|
|
2025
|
-
LineItems:
|
|
2026
|
-
OrderFulfilledDate:
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
PaymentOption: __expectString(output.PaymentOption),
|
|
2036
|
-
PaymentTerm: __expectString(output.PaymentTerm),
|
|
2037
|
-
Status: __expectString(output.Status),
|
|
2038
|
-
};
|
|
1795
|
+
return take(output, {
|
|
1796
|
+
LineItems: _json,
|
|
1797
|
+
OrderFulfilledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1798
|
+
OrderId: __expectString,
|
|
1799
|
+
OrderSubmissionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1800
|
+
OrderType: __expectString,
|
|
1801
|
+
OutpostId: __expectString,
|
|
1802
|
+
PaymentOption: __expectString,
|
|
1803
|
+
PaymentTerm: __expectString,
|
|
1804
|
+
Status: __expectString,
|
|
1805
|
+
});
|
|
2039
1806
|
};
|
|
2040
1807
|
const de_OrderSummary = (output, context) => {
|
|
2041
|
-
return {
|
|
2042
|
-
LineItemCountsByStatus:
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OrderSubmissionDate)))
|
|
2051
|
-
: undefined,
|
|
2052
|
-
OrderType: __expectString(output.OrderType),
|
|
2053
|
-
OutpostId: __expectString(output.OutpostId),
|
|
2054
|
-
Status: __expectString(output.Status),
|
|
2055
|
-
};
|
|
1808
|
+
return take(output, {
|
|
1809
|
+
LineItemCountsByStatus: _json,
|
|
1810
|
+
OrderFulfilledDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1811
|
+
OrderId: __expectString,
|
|
1812
|
+
OrderSubmissionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1813
|
+
OrderType: __expectString,
|
|
1814
|
+
OutpostId: __expectString,
|
|
1815
|
+
Status: __expectString,
|
|
1816
|
+
});
|
|
2056
1817
|
};
|
|
2057
1818
|
const de_OrderSummaryListDefinition = (output, context) => {
|
|
2058
1819
|
const retVal = (output || [])
|
|
2059
1820
|
.filter((e) => e != null)
|
|
2060
1821
|
.map((entry) => {
|
|
2061
|
-
if (entry === null) {
|
|
2062
|
-
return null;
|
|
2063
|
-
}
|
|
2064
1822
|
return de_OrderSummary(entry, context);
|
|
2065
1823
|
});
|
|
2066
1824
|
return retVal;
|
|
2067
1825
|
};
|
|
2068
|
-
const de_Outpost = (output, context) => {
|
|
2069
|
-
return {
|
|
2070
|
-
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
2071
|
-
AvailabilityZoneId: __expectString(output.AvailabilityZoneId),
|
|
2072
|
-
Description: __expectString(output.Description),
|
|
2073
|
-
LifeCycleStatus: __expectString(output.LifeCycleStatus),
|
|
2074
|
-
Name: __expectString(output.Name),
|
|
2075
|
-
OutpostArn: __expectString(output.OutpostArn),
|
|
2076
|
-
OutpostId: __expectString(output.OutpostId),
|
|
2077
|
-
OwnerId: __expectString(output.OwnerId),
|
|
2078
|
-
SiteArn: __expectString(output.SiteArn),
|
|
2079
|
-
SiteId: __expectString(output.SiteId),
|
|
2080
|
-
SupportedHardwareType: __expectString(output.SupportedHardwareType),
|
|
2081
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2082
|
-
};
|
|
2083
|
-
};
|
|
2084
|
-
const de_outpostListDefinition = (output, context) => {
|
|
2085
|
-
const retVal = (output || [])
|
|
2086
|
-
.filter((e) => e != null)
|
|
2087
|
-
.map((entry) => {
|
|
2088
|
-
if (entry === null) {
|
|
2089
|
-
return null;
|
|
2090
|
-
}
|
|
2091
|
-
return de_Outpost(entry, context);
|
|
2092
|
-
});
|
|
2093
|
-
return retVal;
|
|
2094
|
-
};
|
|
2095
|
-
const de_RackPhysicalProperties = (output, context) => {
|
|
2096
|
-
return {
|
|
2097
|
-
FiberOpticCableType: __expectString(output.FiberOpticCableType),
|
|
2098
|
-
MaximumSupportedWeightLbs: __expectString(output.MaximumSupportedWeightLbs),
|
|
2099
|
-
OpticalStandard: __expectString(output.OpticalStandard),
|
|
2100
|
-
PowerConnector: __expectString(output.PowerConnector),
|
|
2101
|
-
PowerDrawKva: __expectString(output.PowerDrawKva),
|
|
2102
|
-
PowerFeedDrop: __expectString(output.PowerFeedDrop),
|
|
2103
|
-
PowerPhase: __expectString(output.PowerPhase),
|
|
2104
|
-
UplinkCount: __expectString(output.UplinkCount),
|
|
2105
|
-
UplinkGbps: __expectString(output.UplinkGbps),
|
|
2106
|
-
};
|
|
2107
|
-
};
|
|
2108
|
-
const de_ShipmentInformation = (output, context) => {
|
|
2109
|
-
return {
|
|
2110
|
-
ShipmentCarrier: __expectString(output.ShipmentCarrier),
|
|
2111
|
-
ShipmentTrackingNumber: __expectString(output.ShipmentTrackingNumber),
|
|
2112
|
-
};
|
|
2113
|
-
};
|
|
2114
|
-
const de_Site = (output, context) => {
|
|
2115
|
-
return {
|
|
2116
|
-
AccountId: __expectString(output.AccountId),
|
|
2117
|
-
Description: __expectString(output.Description),
|
|
2118
|
-
Name: __expectString(output.Name),
|
|
2119
|
-
Notes: __expectString(output.Notes),
|
|
2120
|
-
OperatingAddressCity: __expectString(output.OperatingAddressCity),
|
|
2121
|
-
OperatingAddressCountryCode: __expectString(output.OperatingAddressCountryCode),
|
|
2122
|
-
OperatingAddressStateOrRegion: __expectString(output.OperatingAddressStateOrRegion),
|
|
2123
|
-
RackPhysicalProperties: output.RackPhysicalProperties != null
|
|
2124
|
-
? de_RackPhysicalProperties(output.RackPhysicalProperties, context)
|
|
2125
|
-
: undefined,
|
|
2126
|
-
SiteArn: __expectString(output.SiteArn),
|
|
2127
|
-
SiteId: __expectString(output.SiteId),
|
|
2128
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2129
|
-
};
|
|
2130
|
-
};
|
|
2131
|
-
const de_siteListDefinition = (output, context) => {
|
|
2132
|
-
const retVal = (output || [])
|
|
2133
|
-
.filter((e) => e != null)
|
|
2134
|
-
.map((entry) => {
|
|
2135
|
-
if (entry === null) {
|
|
2136
|
-
return null;
|
|
2137
|
-
}
|
|
2138
|
-
return de_Site(entry, context);
|
|
2139
|
-
});
|
|
2140
|
-
return retVal;
|
|
2141
|
-
};
|
|
2142
|
-
const de_SupportedStorageList = (output, context) => {
|
|
2143
|
-
const retVal = (output || [])
|
|
2144
|
-
.filter((e) => e != null)
|
|
2145
|
-
.map((entry) => {
|
|
2146
|
-
if (entry === null) {
|
|
2147
|
-
return null;
|
|
2148
|
-
}
|
|
2149
|
-
return __expectString(entry);
|
|
2150
|
-
});
|
|
2151
|
-
return retVal;
|
|
2152
|
-
};
|
|
2153
|
-
const de_SupportedUplinkGbpsListDefinition = (output, context) => {
|
|
2154
|
-
const retVal = (output || [])
|
|
2155
|
-
.filter((e) => e != null)
|
|
2156
|
-
.map((entry) => {
|
|
2157
|
-
if (entry === null) {
|
|
2158
|
-
return null;
|
|
2159
|
-
}
|
|
2160
|
-
return __expectInt32(entry);
|
|
2161
|
-
});
|
|
2162
|
-
return retVal;
|
|
2163
|
-
};
|
|
2164
|
-
const de_TagMap = (output, context) => {
|
|
2165
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2166
|
-
if (value === null) {
|
|
2167
|
-
return acc;
|
|
2168
|
-
}
|
|
2169
|
-
acc[key] = __expectString(value);
|
|
2170
|
-
return acc;
|
|
2171
|
-
}, {});
|
|
2172
|
-
};
|
|
2173
1826
|
const deserializeMetadata = (output) => ({
|
|
2174
1827
|
httpStatusCode: output.statusCode,
|
|
2175
1828
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|