@aws-sdk/client-service-catalog-appregistry 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 +264 -446
- package/dist-es/protocols/Aws_restJson1.js +229 -411
- 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, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { ServiceCatalogAppRegistryServiceException as __BaseException } from "../models/ServiceCatalogAppRegistryServiceException";
|
|
@@ -47,12 +47,12 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
47
47
|
};
|
|
48
48
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify({
|
|
51
|
-
clientToken:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
});
|
|
50
|
+
body = JSON.stringify(take(input, {
|
|
51
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
52
|
+
description: [],
|
|
53
|
+
name: [],
|
|
54
|
+
tags: (_) => _json(_),
|
|
55
|
+
}));
|
|
56
56
|
return new __HttpRequest({
|
|
57
57
|
protocol,
|
|
58
58
|
hostname,
|
|
@@ -70,13 +70,13 @@ export const se_CreateAttributeGroupCommand = async (input, context) => {
|
|
|
70
70
|
};
|
|
71
71
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups";
|
|
72
72
|
let body;
|
|
73
|
-
body = JSON.stringify({
|
|
74
|
-
|
|
75
|
-
clientToken:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
73
|
+
body = JSON.stringify(take(input, {
|
|
74
|
+
attributes: [],
|
|
75
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
76
|
+
description: [],
|
|
77
|
+
name: [],
|
|
78
|
+
tags: (_) => _json(_),
|
|
79
|
+
}));
|
|
80
80
|
return new __HttpRequest({
|
|
81
81
|
protocol,
|
|
82
82
|
hostname,
|
|
@@ -353,9 +353,9 @@ export const se_PutConfigurationCommand = async (input, context) => {
|
|
|
353
353
|
};
|
|
354
354
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
|
|
355
355
|
let body;
|
|
356
|
-
body = JSON.stringify({
|
|
357
|
-
|
|
358
|
-
});
|
|
356
|
+
body = JSON.stringify(take(input, {
|
|
357
|
+
configuration: (_) => _json(_),
|
|
358
|
+
}));
|
|
359
359
|
return new __HttpRequest({
|
|
360
360
|
protocol,
|
|
361
361
|
hostname,
|
|
@@ -391,9 +391,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
391
391
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
392
392
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
393
393
|
let body;
|
|
394
|
-
body = JSON.stringify({
|
|
395
|
-
|
|
396
|
-
});
|
|
394
|
+
body = JSON.stringify(take(input, {
|
|
395
|
+
tags: (_) => _json(_),
|
|
396
|
+
}));
|
|
397
397
|
return new __HttpRequest({
|
|
398
398
|
protocol,
|
|
399
399
|
hostname,
|
|
@@ -435,10 +435,10 @@ export const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
435
435
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
|
|
436
436
|
resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
437
437
|
let body;
|
|
438
|
-
body = JSON.stringify({
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
});
|
|
438
|
+
body = JSON.stringify(take(input, {
|
|
439
|
+
description: [],
|
|
440
|
+
name: [],
|
|
441
|
+
}));
|
|
442
442
|
return new __HttpRequest({
|
|
443
443
|
protocol,
|
|
444
444
|
hostname,
|
|
@@ -457,11 +457,11 @@ export const se_UpdateAttributeGroupCommand = async (input, context) => {
|
|
|
457
457
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
|
|
458
458
|
resolvedPath = __resolvedPath(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
459
459
|
let body;
|
|
460
|
-
body = JSON.stringify({
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
});
|
|
460
|
+
body = JSON.stringify(take(input, {
|
|
461
|
+
attributes: [],
|
|
462
|
+
description: [],
|
|
463
|
+
name: [],
|
|
464
|
+
}));
|
|
465
465
|
return new __HttpRequest({
|
|
466
466
|
protocol,
|
|
467
467
|
hostname,
|
|
@@ -480,12 +480,11 @@ export const de_AssociateAttributeGroupCommand = async (output, context) => {
|
|
|
480
480
|
$metadata: deserializeMetadata(output),
|
|
481
481
|
});
|
|
482
482
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
}
|
|
483
|
+
const doc = take(data, {
|
|
484
|
+
applicationArn: __expectString,
|
|
485
|
+
attributeGroupArn: __expectString,
|
|
486
|
+
});
|
|
487
|
+
Object.assign(contents, doc);
|
|
489
488
|
return contents;
|
|
490
489
|
};
|
|
491
490
|
const de_AssociateAttributeGroupCommandError = async (output, context) => {
|
|
@@ -512,10 +511,9 @@ const de_AssociateAttributeGroupCommandError = async (output, context) => {
|
|
|
512
511
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
513
512
|
default:
|
|
514
513
|
const parsedBody = parsedOutput.body;
|
|
515
|
-
throwDefaultError({
|
|
514
|
+
return throwDefaultError({
|
|
516
515
|
output,
|
|
517
516
|
parsedBody,
|
|
518
|
-
exceptionCtor: __BaseException,
|
|
519
517
|
errorCode,
|
|
520
518
|
});
|
|
521
519
|
}
|
|
@@ -528,12 +526,11 @@ export const de_AssociateResourceCommand = async (output, context) => {
|
|
|
528
526
|
$metadata: deserializeMetadata(output),
|
|
529
527
|
});
|
|
530
528
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}
|
|
529
|
+
const doc = take(data, {
|
|
530
|
+
applicationArn: __expectString,
|
|
531
|
+
resourceArn: __expectString,
|
|
532
|
+
});
|
|
533
|
+
Object.assign(contents, doc);
|
|
537
534
|
return contents;
|
|
538
535
|
};
|
|
539
536
|
const de_AssociateResourceCommandError = async (output, context) => {
|
|
@@ -563,10 +560,9 @@ const de_AssociateResourceCommandError = async (output, context) => {
|
|
|
563
560
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
564
561
|
default:
|
|
565
562
|
const parsedBody = parsedOutput.body;
|
|
566
|
-
throwDefaultError({
|
|
563
|
+
return throwDefaultError({
|
|
567
564
|
output,
|
|
568
565
|
parsedBody,
|
|
569
|
-
exceptionCtor: __BaseException,
|
|
570
566
|
errorCode,
|
|
571
567
|
});
|
|
572
568
|
}
|
|
@@ -579,9 +575,10 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
579
575
|
$metadata: deserializeMetadata(output),
|
|
580
576
|
});
|
|
581
577
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
578
|
+
const doc = take(data, {
|
|
579
|
+
application: (_) => de_Application(_, context),
|
|
580
|
+
});
|
|
581
|
+
Object.assign(contents, doc);
|
|
585
582
|
return contents;
|
|
586
583
|
};
|
|
587
584
|
const de_CreateApplicationCommandError = async (output, context) => {
|
|
@@ -608,10 +605,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
608
605
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
609
606
|
default:
|
|
610
607
|
const parsedBody = parsedOutput.body;
|
|
611
|
-
throwDefaultError({
|
|
608
|
+
return throwDefaultError({
|
|
612
609
|
output,
|
|
613
610
|
parsedBody,
|
|
614
|
-
exceptionCtor: __BaseException,
|
|
615
611
|
errorCode,
|
|
616
612
|
});
|
|
617
613
|
}
|
|
@@ -624,9 +620,10 @@ export const de_CreateAttributeGroupCommand = async (output, context) => {
|
|
|
624
620
|
$metadata: deserializeMetadata(output),
|
|
625
621
|
});
|
|
626
622
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}
|
|
623
|
+
const doc = take(data, {
|
|
624
|
+
attributeGroup: (_) => de_AttributeGroup(_, context),
|
|
625
|
+
});
|
|
626
|
+
Object.assign(contents, doc);
|
|
630
627
|
return contents;
|
|
631
628
|
};
|
|
632
629
|
const de_CreateAttributeGroupCommandError = async (output, context) => {
|
|
@@ -650,10 +647,9 @@ const de_CreateAttributeGroupCommandError = async (output, context) => {
|
|
|
650
647
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
651
648
|
default:
|
|
652
649
|
const parsedBody = parsedOutput.body;
|
|
653
|
-
throwDefaultError({
|
|
650
|
+
return throwDefaultError({
|
|
654
651
|
output,
|
|
655
652
|
parsedBody,
|
|
656
|
-
exceptionCtor: __BaseException,
|
|
657
653
|
errorCode,
|
|
658
654
|
});
|
|
659
655
|
}
|
|
@@ -666,9 +662,10 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
666
662
|
$metadata: deserializeMetadata(output),
|
|
667
663
|
});
|
|
668
664
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
}
|
|
665
|
+
const doc = take(data, {
|
|
666
|
+
application: (_) => de_ApplicationSummary(_, context),
|
|
667
|
+
});
|
|
668
|
+
Object.assign(contents, doc);
|
|
672
669
|
return contents;
|
|
673
670
|
};
|
|
674
671
|
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
@@ -689,10 +686,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
|
|
|
689
686
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
690
687
|
default:
|
|
691
688
|
const parsedBody = parsedOutput.body;
|
|
692
|
-
throwDefaultError({
|
|
689
|
+
return throwDefaultError({
|
|
693
690
|
output,
|
|
694
691
|
parsedBody,
|
|
695
|
-
exceptionCtor: __BaseException,
|
|
696
692
|
errorCode,
|
|
697
693
|
});
|
|
698
694
|
}
|
|
@@ -705,9 +701,10 @@ export const de_DeleteAttributeGroupCommand = async (output, context) => {
|
|
|
705
701
|
$metadata: deserializeMetadata(output),
|
|
706
702
|
});
|
|
707
703
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
}
|
|
704
|
+
const doc = take(data, {
|
|
705
|
+
attributeGroup: (_) => de_AttributeGroupSummary(_, context),
|
|
706
|
+
});
|
|
707
|
+
Object.assign(contents, doc);
|
|
711
708
|
return contents;
|
|
712
709
|
};
|
|
713
710
|
const de_DeleteAttributeGroupCommandError = async (output, context) => {
|
|
@@ -728,10 +725,9 @@ const de_DeleteAttributeGroupCommandError = async (output, context) => {
|
|
|
728
725
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
729
726
|
default:
|
|
730
727
|
const parsedBody = parsedOutput.body;
|
|
731
|
-
throwDefaultError({
|
|
728
|
+
return throwDefaultError({
|
|
732
729
|
output,
|
|
733
730
|
parsedBody,
|
|
734
|
-
exceptionCtor: __BaseException,
|
|
735
731
|
errorCode,
|
|
736
732
|
});
|
|
737
733
|
}
|
|
@@ -744,12 +740,11 @@ export const de_DisassociateAttributeGroupCommand = async (output, context) => {
|
|
|
744
740
|
$metadata: deserializeMetadata(output),
|
|
745
741
|
});
|
|
746
742
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
}
|
|
743
|
+
const doc = take(data, {
|
|
744
|
+
applicationArn: __expectString,
|
|
745
|
+
attributeGroupArn: __expectString,
|
|
746
|
+
});
|
|
747
|
+
Object.assign(contents, doc);
|
|
753
748
|
return contents;
|
|
754
749
|
};
|
|
755
750
|
const de_DisassociateAttributeGroupCommandError = async (output, context) => {
|
|
@@ -770,10 +765,9 @@ const de_DisassociateAttributeGroupCommandError = async (output, context) => {
|
|
|
770
765
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
771
766
|
default:
|
|
772
767
|
const parsedBody = parsedOutput.body;
|
|
773
|
-
throwDefaultError({
|
|
768
|
+
return throwDefaultError({
|
|
774
769
|
output,
|
|
775
770
|
parsedBody,
|
|
776
|
-
exceptionCtor: __BaseException,
|
|
777
771
|
errorCode,
|
|
778
772
|
});
|
|
779
773
|
}
|
|
@@ -786,12 +780,11 @@ export const de_DisassociateResourceCommand = async (output, context) => {
|
|
|
786
780
|
$metadata: deserializeMetadata(output),
|
|
787
781
|
});
|
|
788
782
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}
|
|
783
|
+
const doc = take(data, {
|
|
784
|
+
applicationArn: __expectString,
|
|
785
|
+
resourceArn: __expectString,
|
|
786
|
+
});
|
|
787
|
+
Object.assign(contents, doc);
|
|
795
788
|
return contents;
|
|
796
789
|
};
|
|
797
790
|
const de_DisassociateResourceCommandError = async (output, context) => {
|
|
@@ -815,10 +808,9 @@ const de_DisassociateResourceCommandError = async (output, context) => {
|
|
|
815
808
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
816
809
|
default:
|
|
817
810
|
const parsedBody = parsedOutput.body;
|
|
818
|
-
throwDefaultError({
|
|
811
|
+
return throwDefaultError({
|
|
819
812
|
output,
|
|
820
813
|
parsedBody,
|
|
821
|
-
exceptionCtor: __BaseException,
|
|
822
814
|
errorCode,
|
|
823
815
|
});
|
|
824
816
|
}
|
|
@@ -831,33 +823,18 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
831
823
|
$metadata: deserializeMetadata(output),
|
|
832
824
|
});
|
|
833
825
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
if (data.id != null) {
|
|
847
|
-
contents.id = __expectString(data.id);
|
|
848
|
-
}
|
|
849
|
-
if (data.integrations != null) {
|
|
850
|
-
contents.integrations = de_Integrations(data.integrations, context);
|
|
851
|
-
}
|
|
852
|
-
if (data.lastUpdateTime != null) {
|
|
853
|
-
contents.lastUpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.lastUpdateTime));
|
|
854
|
-
}
|
|
855
|
-
if (data.name != null) {
|
|
856
|
-
contents.name = __expectString(data.name);
|
|
857
|
-
}
|
|
858
|
-
if (data.tags != null) {
|
|
859
|
-
contents.tags = de_Tags(data.tags, context);
|
|
860
|
-
}
|
|
826
|
+
const doc = take(data, {
|
|
827
|
+
arn: __expectString,
|
|
828
|
+
associatedResourceCount: __expectInt32,
|
|
829
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
830
|
+
description: __expectString,
|
|
831
|
+
id: __expectString,
|
|
832
|
+
integrations: _json,
|
|
833
|
+
lastUpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
834
|
+
name: __expectString,
|
|
835
|
+
tags: _json,
|
|
836
|
+
});
|
|
837
|
+
Object.assign(contents, doc);
|
|
861
838
|
return contents;
|
|
862
839
|
};
|
|
863
840
|
const de_GetApplicationCommandError = async (output, context) => {
|
|
@@ -881,10 +858,9 @@ const de_GetApplicationCommandError = async (output, context) => {
|
|
|
881
858
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
882
859
|
default:
|
|
883
860
|
const parsedBody = parsedOutput.body;
|
|
884
|
-
throwDefaultError({
|
|
861
|
+
return throwDefaultError({
|
|
885
862
|
output,
|
|
886
863
|
parsedBody,
|
|
887
|
-
exceptionCtor: __BaseException,
|
|
888
864
|
errorCode,
|
|
889
865
|
});
|
|
890
866
|
}
|
|
@@ -897,9 +873,10 @@ export const de_GetAssociatedResourceCommand = async (output, context) => {
|
|
|
897
873
|
$metadata: deserializeMetadata(output),
|
|
898
874
|
});
|
|
899
875
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
}
|
|
876
|
+
const doc = take(data, {
|
|
877
|
+
resource: (_) => de_Resource(_, context),
|
|
878
|
+
});
|
|
879
|
+
Object.assign(contents, doc);
|
|
903
880
|
return contents;
|
|
904
881
|
};
|
|
905
882
|
const de_GetAssociatedResourceCommandError = async (output, context) => {
|
|
@@ -920,10 +897,9 @@ const de_GetAssociatedResourceCommandError = async (output, context) => {
|
|
|
920
897
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
921
898
|
default:
|
|
922
899
|
const parsedBody = parsedOutput.body;
|
|
923
|
-
throwDefaultError({
|
|
900
|
+
return throwDefaultError({
|
|
924
901
|
output,
|
|
925
902
|
parsedBody,
|
|
926
|
-
exceptionCtor: __BaseException,
|
|
927
903
|
errorCode,
|
|
928
904
|
});
|
|
929
905
|
}
|
|
@@ -936,33 +912,18 @@ export const de_GetAttributeGroupCommand = async (output, context) => {
|
|
|
936
912
|
$metadata: deserializeMetadata(output),
|
|
937
913
|
});
|
|
938
914
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
if (data.description != null) {
|
|
952
|
-
contents.description = __expectString(data.description);
|
|
953
|
-
}
|
|
954
|
-
if (data.id != null) {
|
|
955
|
-
contents.id = __expectString(data.id);
|
|
956
|
-
}
|
|
957
|
-
if (data.lastUpdateTime != null) {
|
|
958
|
-
contents.lastUpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.lastUpdateTime));
|
|
959
|
-
}
|
|
960
|
-
if (data.name != null) {
|
|
961
|
-
contents.name = __expectString(data.name);
|
|
962
|
-
}
|
|
963
|
-
if (data.tags != null) {
|
|
964
|
-
contents.tags = de_Tags(data.tags, context);
|
|
965
|
-
}
|
|
915
|
+
const doc = take(data, {
|
|
916
|
+
arn: __expectString,
|
|
917
|
+
attributes: __expectString,
|
|
918
|
+
createdBy: __expectString,
|
|
919
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
920
|
+
description: __expectString,
|
|
921
|
+
id: __expectString,
|
|
922
|
+
lastUpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
923
|
+
name: __expectString,
|
|
924
|
+
tags: _json,
|
|
925
|
+
});
|
|
926
|
+
Object.assign(contents, doc);
|
|
966
927
|
return contents;
|
|
967
928
|
};
|
|
968
929
|
const de_GetAttributeGroupCommandError = async (output, context) => {
|
|
@@ -986,10 +947,9 @@ const de_GetAttributeGroupCommandError = async (output, context) => {
|
|
|
986
947
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
987
948
|
default:
|
|
988
949
|
const parsedBody = parsedOutput.body;
|
|
989
|
-
throwDefaultError({
|
|
950
|
+
return throwDefaultError({
|
|
990
951
|
output,
|
|
991
952
|
parsedBody,
|
|
992
|
-
exceptionCtor: __BaseException,
|
|
993
953
|
errorCode,
|
|
994
954
|
});
|
|
995
955
|
}
|
|
@@ -1002,9 +962,10 @@ export const de_GetConfigurationCommand = async (output, context) => {
|
|
|
1002
962
|
$metadata: deserializeMetadata(output),
|
|
1003
963
|
});
|
|
1004
964
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
}
|
|
965
|
+
const doc = take(data, {
|
|
966
|
+
configuration: _json,
|
|
967
|
+
});
|
|
968
|
+
Object.assign(contents, doc);
|
|
1008
969
|
return contents;
|
|
1009
970
|
};
|
|
1010
971
|
const de_GetConfigurationCommandError = async (output, context) => {
|
|
@@ -1019,10 +980,9 @@ const de_GetConfigurationCommandError = async (output, context) => {
|
|
|
1019
980
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1020
981
|
default:
|
|
1021
982
|
const parsedBody = parsedOutput.body;
|
|
1022
|
-
throwDefaultError({
|
|
983
|
+
return throwDefaultError({
|
|
1023
984
|
output,
|
|
1024
985
|
parsedBody,
|
|
1025
|
-
exceptionCtor: __BaseException,
|
|
1026
986
|
errorCode,
|
|
1027
987
|
});
|
|
1028
988
|
}
|
|
@@ -1035,12 +995,11 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
1035
995
|
$metadata: deserializeMetadata(output),
|
|
1036
996
|
});
|
|
1037
997
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
}
|
|
998
|
+
const doc = take(data, {
|
|
999
|
+
applications: (_) => de_ApplicationSummaries(_, context),
|
|
1000
|
+
nextToken: __expectString,
|
|
1001
|
+
});
|
|
1002
|
+
Object.assign(contents, doc);
|
|
1044
1003
|
return contents;
|
|
1045
1004
|
};
|
|
1046
1005
|
const de_ListApplicationsCommandError = async (output, context) => {
|
|
@@ -1058,10 +1017,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
1058
1017
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
1018
|
default:
|
|
1060
1019
|
const parsedBody = parsedOutput.body;
|
|
1061
|
-
throwDefaultError({
|
|
1020
|
+
return throwDefaultError({
|
|
1062
1021
|
output,
|
|
1063
1022
|
parsedBody,
|
|
1064
|
-
exceptionCtor: __BaseException,
|
|
1065
1023
|
errorCode,
|
|
1066
1024
|
});
|
|
1067
1025
|
}
|
|
@@ -1074,12 +1032,11 @@ export const de_ListAssociatedAttributeGroupsCommand = async (output, context) =
|
|
|
1074
1032
|
$metadata: deserializeMetadata(output),
|
|
1075
1033
|
});
|
|
1076
1034
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}
|
|
1035
|
+
const doc = take(data, {
|
|
1036
|
+
attributeGroups: _json,
|
|
1037
|
+
nextToken: __expectString,
|
|
1038
|
+
});
|
|
1039
|
+
Object.assign(contents, doc);
|
|
1083
1040
|
return contents;
|
|
1084
1041
|
};
|
|
1085
1042
|
const de_ListAssociatedAttributeGroupsCommandError = async (output, context) => {
|
|
@@ -1100,10 +1057,9 @@ const de_ListAssociatedAttributeGroupsCommandError = async (output, context) =>
|
|
|
1100
1057
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1101
1058
|
default:
|
|
1102
1059
|
const parsedBody = parsedOutput.body;
|
|
1103
|
-
throwDefaultError({
|
|
1060
|
+
return throwDefaultError({
|
|
1104
1061
|
output,
|
|
1105
1062
|
parsedBody,
|
|
1106
|
-
exceptionCtor: __BaseException,
|
|
1107
1063
|
errorCode,
|
|
1108
1064
|
});
|
|
1109
1065
|
}
|
|
@@ -1116,12 +1072,11 @@ export const de_ListAssociatedResourcesCommand = async (output, context) => {
|
|
|
1116
1072
|
$metadata: deserializeMetadata(output),
|
|
1117
1073
|
});
|
|
1118
1074
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
}
|
|
1075
|
+
const doc = take(data, {
|
|
1076
|
+
nextToken: __expectString,
|
|
1077
|
+
resources: _json,
|
|
1078
|
+
});
|
|
1079
|
+
Object.assign(contents, doc);
|
|
1125
1080
|
return contents;
|
|
1126
1081
|
};
|
|
1127
1082
|
const de_ListAssociatedResourcesCommandError = async (output, context) => {
|
|
@@ -1142,10 +1097,9 @@ const de_ListAssociatedResourcesCommandError = async (output, context) => {
|
|
|
1142
1097
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1143
1098
|
default:
|
|
1144
1099
|
const parsedBody = parsedOutput.body;
|
|
1145
|
-
throwDefaultError({
|
|
1100
|
+
return throwDefaultError({
|
|
1146
1101
|
output,
|
|
1147
1102
|
parsedBody,
|
|
1148
|
-
exceptionCtor: __BaseException,
|
|
1149
1103
|
errorCode,
|
|
1150
1104
|
});
|
|
1151
1105
|
}
|
|
@@ -1158,12 +1112,11 @@ export const de_ListAttributeGroupsCommand = async (output, context) => {
|
|
|
1158
1112
|
$metadata: deserializeMetadata(output),
|
|
1159
1113
|
});
|
|
1160
1114
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
}
|
|
1115
|
+
const doc = take(data, {
|
|
1116
|
+
attributeGroups: (_) => de_AttributeGroupSummaries(_, context),
|
|
1117
|
+
nextToken: __expectString,
|
|
1118
|
+
});
|
|
1119
|
+
Object.assign(contents, doc);
|
|
1167
1120
|
return contents;
|
|
1168
1121
|
};
|
|
1169
1122
|
const de_ListAttributeGroupsCommandError = async (output, context) => {
|
|
@@ -1181,10 +1134,9 @@ const de_ListAttributeGroupsCommandError = async (output, context) => {
|
|
|
1181
1134
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1182
1135
|
default:
|
|
1183
1136
|
const parsedBody = parsedOutput.body;
|
|
1184
|
-
throwDefaultError({
|
|
1137
|
+
return throwDefaultError({
|
|
1185
1138
|
output,
|
|
1186
1139
|
parsedBody,
|
|
1187
|
-
exceptionCtor: __BaseException,
|
|
1188
1140
|
errorCode,
|
|
1189
1141
|
});
|
|
1190
1142
|
}
|
|
@@ -1197,12 +1149,11 @@ export const de_ListAttributeGroupsForApplicationCommand = async (output, contex
|
|
|
1197
1149
|
$metadata: deserializeMetadata(output),
|
|
1198
1150
|
});
|
|
1199
1151
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
}
|
|
1152
|
+
const doc = take(data, {
|
|
1153
|
+
attributeGroupsDetails: _json,
|
|
1154
|
+
nextToken: __expectString,
|
|
1155
|
+
});
|
|
1156
|
+
Object.assign(contents, doc);
|
|
1206
1157
|
return contents;
|
|
1207
1158
|
};
|
|
1208
1159
|
const de_ListAttributeGroupsForApplicationCommandError = async (output, context) => {
|
|
@@ -1223,10 +1174,9 @@ const de_ListAttributeGroupsForApplicationCommandError = async (output, context)
|
|
|
1223
1174
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1224
1175
|
default:
|
|
1225
1176
|
const parsedBody = parsedOutput.body;
|
|
1226
|
-
throwDefaultError({
|
|
1177
|
+
return throwDefaultError({
|
|
1227
1178
|
output,
|
|
1228
1179
|
parsedBody,
|
|
1229
|
-
exceptionCtor: __BaseException,
|
|
1230
1180
|
errorCode,
|
|
1231
1181
|
});
|
|
1232
1182
|
}
|
|
@@ -1239,9 +1189,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1239
1189
|
$metadata: deserializeMetadata(output),
|
|
1240
1190
|
});
|
|
1241
1191
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
}
|
|
1192
|
+
const doc = take(data, {
|
|
1193
|
+
tags: _json,
|
|
1194
|
+
});
|
|
1195
|
+
Object.assign(contents, doc);
|
|
1245
1196
|
return contents;
|
|
1246
1197
|
};
|
|
1247
1198
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1262,10 +1213,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1262
1213
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1263
1214
|
default:
|
|
1264
1215
|
const parsedBody = parsedOutput.body;
|
|
1265
|
-
throwDefaultError({
|
|
1216
|
+
return throwDefaultError({
|
|
1266
1217
|
output,
|
|
1267
1218
|
parsedBody,
|
|
1268
|
-
exceptionCtor: __BaseException,
|
|
1269
1219
|
errorCode,
|
|
1270
1220
|
});
|
|
1271
1221
|
}
|
|
@@ -1298,10 +1248,9 @@ const de_PutConfigurationCommandError = async (output, context) => {
|
|
|
1298
1248
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1299
1249
|
default:
|
|
1300
1250
|
const parsedBody = parsedOutput.body;
|
|
1301
|
-
throwDefaultError({
|
|
1251
|
+
return throwDefaultError({
|
|
1302
1252
|
output,
|
|
1303
1253
|
parsedBody,
|
|
1304
|
-
exceptionCtor: __BaseException,
|
|
1305
1254
|
errorCode,
|
|
1306
1255
|
});
|
|
1307
1256
|
}
|
|
@@ -1314,15 +1263,12 @@ export const de_SyncResourceCommand = async (output, context) => {
|
|
|
1314
1263
|
$metadata: deserializeMetadata(output),
|
|
1315
1264
|
});
|
|
1316
1265
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
if (data.resourceArn != null) {
|
|
1324
|
-
contents.resourceArn = __expectString(data.resourceArn);
|
|
1325
|
-
}
|
|
1266
|
+
const doc = take(data, {
|
|
1267
|
+
actionTaken: __expectString,
|
|
1268
|
+
applicationArn: __expectString,
|
|
1269
|
+
resourceArn: __expectString,
|
|
1270
|
+
});
|
|
1271
|
+
Object.assign(contents, doc);
|
|
1326
1272
|
return contents;
|
|
1327
1273
|
};
|
|
1328
1274
|
const de_SyncResourceCommandError = async (output, context) => {
|
|
@@ -1349,10 +1295,9 @@ const de_SyncResourceCommandError = async (output, context) => {
|
|
|
1349
1295
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1350
1296
|
default:
|
|
1351
1297
|
const parsedBody = parsedOutput.body;
|
|
1352
|
-
throwDefaultError({
|
|
1298
|
+
return throwDefaultError({
|
|
1353
1299
|
output,
|
|
1354
1300
|
parsedBody,
|
|
1355
|
-
exceptionCtor: __BaseException,
|
|
1356
1301
|
errorCode,
|
|
1357
1302
|
});
|
|
1358
1303
|
}
|
|
@@ -1385,10 +1330,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1385
1330
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1386
1331
|
default:
|
|
1387
1332
|
const parsedBody = parsedOutput.body;
|
|
1388
|
-
throwDefaultError({
|
|
1333
|
+
return throwDefaultError({
|
|
1389
1334
|
output,
|
|
1390
1335
|
parsedBody,
|
|
1391
|
-
exceptionCtor: __BaseException,
|
|
1392
1336
|
errorCode,
|
|
1393
1337
|
});
|
|
1394
1338
|
}
|
|
@@ -1421,10 +1365,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1421
1365
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1422
1366
|
default:
|
|
1423
1367
|
const parsedBody = parsedOutput.body;
|
|
1424
|
-
throwDefaultError({
|
|
1368
|
+
return throwDefaultError({
|
|
1425
1369
|
output,
|
|
1426
1370
|
parsedBody,
|
|
1427
|
-
exceptionCtor: __BaseException,
|
|
1428
1371
|
errorCode,
|
|
1429
1372
|
});
|
|
1430
1373
|
}
|
|
@@ -1437,9 +1380,10 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1437
1380
|
$metadata: deserializeMetadata(output),
|
|
1438
1381
|
});
|
|
1439
1382
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
}
|
|
1383
|
+
const doc = take(data, {
|
|
1384
|
+
application: (_) => de_Application(_, context),
|
|
1385
|
+
});
|
|
1386
|
+
Object.assign(contents, doc);
|
|
1443
1387
|
return contents;
|
|
1444
1388
|
};
|
|
1445
1389
|
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
@@ -1466,10 +1410,9 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
1466
1410
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1467
1411
|
default:
|
|
1468
1412
|
const parsedBody = parsedOutput.body;
|
|
1469
|
-
throwDefaultError({
|
|
1413
|
+
return throwDefaultError({
|
|
1470
1414
|
output,
|
|
1471
1415
|
parsedBody,
|
|
1472
|
-
exceptionCtor: __BaseException,
|
|
1473
1416
|
errorCode,
|
|
1474
1417
|
});
|
|
1475
1418
|
}
|
|
@@ -1482,9 +1425,10 @@ export const de_UpdateAttributeGroupCommand = async (output, context) => {
|
|
|
1482
1425
|
$metadata: deserializeMetadata(output),
|
|
1483
1426
|
});
|
|
1484
1427
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
}
|
|
1428
|
+
const doc = take(data, {
|
|
1429
|
+
attributeGroup: (_) => de_AttributeGroup(_, context),
|
|
1430
|
+
});
|
|
1431
|
+
Object.assign(contents, doc);
|
|
1488
1432
|
return contents;
|
|
1489
1433
|
};
|
|
1490
1434
|
const de_UpdateAttributeGroupCommandError = async (output, context) => {
|
|
@@ -1508,21 +1452,21 @@ const de_UpdateAttributeGroupCommandError = async (output, context) => {
|
|
|
1508
1452
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1509
1453
|
default:
|
|
1510
1454
|
const parsedBody = parsedOutput.body;
|
|
1511
|
-
throwDefaultError({
|
|
1455
|
+
return throwDefaultError({
|
|
1512
1456
|
output,
|
|
1513
1457
|
parsedBody,
|
|
1514
|
-
exceptionCtor: __BaseException,
|
|
1515
1458
|
errorCode,
|
|
1516
1459
|
});
|
|
1517
1460
|
}
|
|
1518
1461
|
};
|
|
1519
|
-
const
|
|
1462
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1520
1463
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1521
1464
|
const contents = map({});
|
|
1522
1465
|
const data = parsedOutput.body;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
}
|
|
1466
|
+
const doc = take(data, {
|
|
1467
|
+
message: __expectString,
|
|
1468
|
+
});
|
|
1469
|
+
Object.assign(contents, doc);
|
|
1526
1470
|
const exception = new ConflictException({
|
|
1527
1471
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1528
1472
|
...contents,
|
|
@@ -1532,9 +1476,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1532
1476
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1533
1477
|
const contents = map({});
|
|
1534
1478
|
const data = parsedOutput.body;
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
}
|
|
1479
|
+
const doc = take(data, {
|
|
1480
|
+
message: __expectString,
|
|
1481
|
+
});
|
|
1482
|
+
Object.assign(contents, doc);
|
|
1538
1483
|
const exception = new InternalServerException({
|
|
1539
1484
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1540
1485
|
...contents,
|
|
@@ -1544,9 +1489,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1544
1489
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1545
1490
|
const contents = map({});
|
|
1546
1491
|
const data = parsedOutput.body;
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
}
|
|
1492
|
+
const doc = take(data, {
|
|
1493
|
+
message: __expectString,
|
|
1494
|
+
});
|
|
1495
|
+
Object.assign(contents, doc);
|
|
1550
1496
|
const exception = new ResourceNotFoundException({
|
|
1551
1497
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1552
1498
|
...contents,
|
|
@@ -1556,9 +1502,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1556
1502
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1557
1503
|
const contents = map({});
|
|
1558
1504
|
const data = parsedOutput.body;
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
}
|
|
1505
|
+
const doc = take(data, {
|
|
1506
|
+
message: __expectString,
|
|
1507
|
+
});
|
|
1508
|
+
Object.assign(contents, doc);
|
|
1562
1509
|
const exception = new ServiceQuotaExceededException({
|
|
1563
1510
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1564
1511
|
...contents,
|
|
@@ -1568,12 +1515,11 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1568
1515
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1569
1516
|
const contents = map({});
|
|
1570
1517
|
const data = parsedOutput.body;
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
}
|
|
1518
|
+
const doc = take(data, {
|
|
1519
|
+
message: __expectString,
|
|
1520
|
+
serviceCode: __expectString,
|
|
1521
|
+
});
|
|
1522
|
+
Object.assign(contents, doc);
|
|
1577
1523
|
const exception = new ThrottlingException({
|
|
1578
1524
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1579
1525
|
...contents,
|
|
@@ -1583,210 +1529,82 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1583
1529
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1584
1530
|
const contents = map({});
|
|
1585
1531
|
const data = parsedOutput.body;
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
}
|
|
1532
|
+
const doc = take(data, {
|
|
1533
|
+
message: __expectString,
|
|
1534
|
+
});
|
|
1535
|
+
Object.assign(contents, doc);
|
|
1589
1536
|
const exception = new ValidationException({
|
|
1590
1537
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1591
1538
|
...contents,
|
|
1592
1539
|
});
|
|
1593
1540
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1594
1541
|
};
|
|
1595
|
-
const se_AppRegistryConfiguration = (input, context) => {
|
|
1596
|
-
return {
|
|
1597
|
-
...(input.tagQueryConfiguration != null && {
|
|
1598
|
-
tagQueryConfiguration: se_TagQueryConfiguration(input.tagQueryConfiguration, context),
|
|
1599
|
-
}),
|
|
1600
|
-
};
|
|
1601
|
-
};
|
|
1602
|
-
const se_TagQueryConfiguration = (input, context) => {
|
|
1603
|
-
return {
|
|
1604
|
-
...(input.tagKey != null && { tagKey: input.tagKey }),
|
|
1605
|
-
};
|
|
1606
|
-
};
|
|
1607
|
-
const se_Tags = (input, context) => {
|
|
1608
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1609
|
-
if (value === null) {
|
|
1610
|
-
return acc;
|
|
1611
|
-
}
|
|
1612
|
-
acc[key] = value;
|
|
1613
|
-
return acc;
|
|
1614
|
-
}, {});
|
|
1615
|
-
};
|
|
1616
1542
|
const de_Application = (output, context) => {
|
|
1617
|
-
return {
|
|
1618
|
-
arn: __expectString
|
|
1619
|
-
creationTime:
|
|
1620
|
-
description: __expectString
|
|
1621
|
-
id: __expectString
|
|
1622
|
-
lastUpdateTime:
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1627
|
-
};
|
|
1543
|
+
return take(output, {
|
|
1544
|
+
arn: __expectString,
|
|
1545
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1546
|
+
description: __expectString,
|
|
1547
|
+
id: __expectString,
|
|
1548
|
+
lastUpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1549
|
+
name: __expectString,
|
|
1550
|
+
tags: _json,
|
|
1551
|
+
});
|
|
1628
1552
|
};
|
|
1629
1553
|
const de_ApplicationSummaries = (output, context) => {
|
|
1630
1554
|
const retVal = (output || [])
|
|
1631
1555
|
.filter((e) => e != null)
|
|
1632
1556
|
.map((entry) => {
|
|
1633
|
-
if (entry === null) {
|
|
1634
|
-
return null;
|
|
1635
|
-
}
|
|
1636
1557
|
return de_ApplicationSummary(entry, context);
|
|
1637
1558
|
});
|
|
1638
1559
|
return retVal;
|
|
1639
1560
|
};
|
|
1640
1561
|
const de_ApplicationSummary = (output, context) => {
|
|
1641
|
-
return {
|
|
1642
|
-
arn: __expectString
|
|
1643
|
-
creationTime:
|
|
1644
|
-
description: __expectString
|
|
1645
|
-
id: __expectString
|
|
1646
|
-
lastUpdateTime:
|
|
1647
|
-
|
|
1648
|
-
: undefined,
|
|
1649
|
-
name: __expectString(output.name),
|
|
1650
|
-
};
|
|
1651
|
-
};
|
|
1652
|
-
const de_AppRegistryConfiguration = (output, context) => {
|
|
1653
|
-
return {
|
|
1654
|
-
tagQueryConfiguration: output.tagQueryConfiguration != null
|
|
1655
|
-
? de_TagQueryConfiguration(output.tagQueryConfiguration, context)
|
|
1656
|
-
: undefined,
|
|
1657
|
-
};
|
|
1658
|
-
};
|
|
1659
|
-
const de_AttributeGroup = (output, context) => {
|
|
1660
|
-
return {
|
|
1661
|
-
arn: __expectString(output.arn),
|
|
1662
|
-
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
1663
|
-
description: __expectString(output.description),
|
|
1664
|
-
id: __expectString(output.id),
|
|
1665
|
-
lastUpdateTime: output.lastUpdateTime != null
|
|
1666
|
-
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.lastUpdateTime))
|
|
1667
|
-
: undefined,
|
|
1668
|
-
name: __expectString(output.name),
|
|
1669
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1670
|
-
};
|
|
1671
|
-
};
|
|
1672
|
-
const de_AttributeGroupDetails = (output, context) => {
|
|
1673
|
-
return {
|
|
1674
|
-
arn: __expectString(output.arn),
|
|
1675
|
-
createdBy: __expectString(output.createdBy),
|
|
1676
|
-
id: __expectString(output.id),
|
|
1677
|
-
name: __expectString(output.name),
|
|
1678
|
-
};
|
|
1679
|
-
};
|
|
1680
|
-
const de_AttributeGroupDetailsList = (output, context) => {
|
|
1681
|
-
const retVal = (output || [])
|
|
1682
|
-
.filter((e) => e != null)
|
|
1683
|
-
.map((entry) => {
|
|
1684
|
-
if (entry === null) {
|
|
1685
|
-
return null;
|
|
1686
|
-
}
|
|
1687
|
-
return de_AttributeGroupDetails(entry, context);
|
|
1562
|
+
return take(output, {
|
|
1563
|
+
arn: __expectString,
|
|
1564
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1565
|
+
description: __expectString,
|
|
1566
|
+
id: __expectString,
|
|
1567
|
+
lastUpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1568
|
+
name: __expectString,
|
|
1688
1569
|
});
|
|
1689
|
-
return retVal;
|
|
1690
1570
|
};
|
|
1691
|
-
const
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1571
|
+
const de_AttributeGroup = (output, context) => {
|
|
1572
|
+
return take(output, {
|
|
1573
|
+
arn: __expectString,
|
|
1574
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1575
|
+
description: __expectString,
|
|
1576
|
+
id: __expectString,
|
|
1577
|
+
lastUpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1578
|
+
name: __expectString,
|
|
1579
|
+
tags: _json,
|
|
1699
1580
|
});
|
|
1700
|
-
return retVal;
|
|
1701
1581
|
};
|
|
1702
1582
|
const de_AttributeGroupSummaries = (output, context) => {
|
|
1703
1583
|
const retVal = (output || [])
|
|
1704
1584
|
.filter((e) => e != null)
|
|
1705
1585
|
.map((entry) => {
|
|
1706
|
-
if (entry === null) {
|
|
1707
|
-
return null;
|
|
1708
|
-
}
|
|
1709
1586
|
return de_AttributeGroupSummary(entry, context);
|
|
1710
1587
|
});
|
|
1711
1588
|
return retVal;
|
|
1712
1589
|
};
|
|
1713
1590
|
const de_AttributeGroupSummary = (output, context) => {
|
|
1714
|
-
return {
|
|
1715
|
-
arn: __expectString
|
|
1716
|
-
createdBy: __expectString
|
|
1717
|
-
creationTime:
|
|
1718
|
-
description: __expectString
|
|
1719
|
-
id: __expectString
|
|
1720
|
-
lastUpdateTime:
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
name: __expectString(output.name),
|
|
1724
|
-
};
|
|
1725
|
-
};
|
|
1726
|
-
const de_Integrations = (output, context) => {
|
|
1727
|
-
return {
|
|
1728
|
-
resourceGroup: output.resourceGroup != null ? de_ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1729
|
-
};
|
|
1591
|
+
return take(output, {
|
|
1592
|
+
arn: __expectString,
|
|
1593
|
+
createdBy: __expectString,
|
|
1594
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1595
|
+
description: __expectString,
|
|
1596
|
+
id: __expectString,
|
|
1597
|
+
lastUpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1598
|
+
name: __expectString,
|
|
1599
|
+
});
|
|
1730
1600
|
};
|
|
1731
1601
|
const de_Resource = (output, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
arn: __expectString
|
|
1734
|
-
associationTime:
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
integrations: output.integrations != null ? de_ResourceIntegrations(output.integrations, context) : undefined,
|
|
1738
|
-
name: __expectString(output.name),
|
|
1739
|
-
};
|
|
1740
|
-
};
|
|
1741
|
-
const de_ResourceDetails = (output, context) => {
|
|
1742
|
-
return {
|
|
1743
|
-
tagValue: __expectString(output.tagValue),
|
|
1744
|
-
};
|
|
1745
|
-
};
|
|
1746
|
-
const de_ResourceGroup = (output, context) => {
|
|
1747
|
-
return {
|
|
1748
|
-
arn: __expectString(output.arn),
|
|
1749
|
-
errorMessage: __expectString(output.errorMessage),
|
|
1750
|
-
state: __expectString(output.state),
|
|
1751
|
-
};
|
|
1752
|
-
};
|
|
1753
|
-
const de_ResourceInfo = (output, context) => {
|
|
1754
|
-
return {
|
|
1755
|
-
arn: __expectString(output.arn),
|
|
1756
|
-
name: __expectString(output.name),
|
|
1757
|
-
resourceDetails: output.resourceDetails != null ? de_ResourceDetails(output.resourceDetails, context) : undefined,
|
|
1758
|
-
resourceType: __expectString(output.resourceType),
|
|
1759
|
-
};
|
|
1760
|
-
};
|
|
1761
|
-
const de_ResourceIntegrations = (output, context) => {
|
|
1762
|
-
return {
|
|
1763
|
-
resourceGroup: output.resourceGroup != null ? de_ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1764
|
-
};
|
|
1765
|
-
};
|
|
1766
|
-
const de_Resources = (output, context) => {
|
|
1767
|
-
const retVal = (output || [])
|
|
1768
|
-
.filter((e) => e != null)
|
|
1769
|
-
.map((entry) => {
|
|
1770
|
-
if (entry === null) {
|
|
1771
|
-
return null;
|
|
1772
|
-
}
|
|
1773
|
-
return de_ResourceInfo(entry, context);
|
|
1602
|
+
return take(output, {
|
|
1603
|
+
arn: __expectString,
|
|
1604
|
+
associationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1605
|
+
integrations: _json,
|
|
1606
|
+
name: __expectString,
|
|
1774
1607
|
});
|
|
1775
|
-
return retVal;
|
|
1776
|
-
};
|
|
1777
|
-
const de_TagQueryConfiguration = (output, context) => {
|
|
1778
|
-
return {
|
|
1779
|
-
tagKey: __expectString(output.tagKey),
|
|
1780
|
-
};
|
|
1781
|
-
};
|
|
1782
|
-
const de_Tags = (output, context) => {
|
|
1783
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1784
|
-
if (value === null) {
|
|
1785
|
-
return acc;
|
|
1786
|
-
}
|
|
1787
|
-
acc[key] = __expectString(value);
|
|
1788
|
-
return acc;
|
|
1789
|
-
}, {});
|
|
1790
1608
|
};
|
|
1791
1609
|
const deserializeMetadata = (output) => ({
|
|
1792
1610
|
httpStatusCode: output.statusCode,
|