@aws-sdk/client-serverlessapplicationrepository 3.118.0 → 3.127.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +130 -143
- package/dist-es/protocols/Aws_restJson1.js +96 -109
- package/package.json +26 -26
|
@@ -14,10 +14,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author
|
|
18
|
-
input.Labels !== null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.LicenseBody !== undefined && input.LicenseBody !== null && { licenseBody: input.LicenseBody })), (input.LicenseUrl !== undefined && input.LicenseUrl !== null && { licenseUrl: input.LicenseUrl })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.ReadmeBody !== undefined && input.ReadmeBody !== null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl !== undefined && input.ReadmeUrl !== null && { readmeUrl: input.ReadmeUrl })), (input.SemanticVersion !== undefined &&
|
|
19
|
-
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })), (input.SourceCodeArchiveUrl !== undefined &&
|
|
20
|
-
input.SourceCodeArchiveUrl !== null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl !== undefined && input.SourceCodeUrl !== null && { sourceCodeUrl: input.SourceCodeUrl })), (input.SpdxLicenseId !== undefined && input.SpdxLicenseId !== null && { spdxLicenseId: input.SpdxLicenseId })), (input.TemplateBody !== undefined && input.TemplateBody !== null && { templateBody: input.TemplateBody })), (input.TemplateUrl !== undefined && input.TemplateUrl !== null && { templateUrl: input.TemplateUrl })));
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author != null && { author: input.Author })), (input.Description != null && { description: input.Description })), (input.HomePageUrl != null && { homePageUrl: input.HomePageUrl })), (input.Labels != null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.LicenseBody != null && { licenseBody: input.LicenseBody })), (input.LicenseUrl != null && { licenseUrl: input.LicenseUrl })), (input.Name != null && { name: input.Name })), (input.ReadmeBody != null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl != null && { readmeUrl: input.ReadmeUrl })), (input.SemanticVersion != null && { semanticVersion: input.SemanticVersion })), (input.SourceCodeArchiveUrl != null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl != null && { sourceCodeUrl: input.SourceCodeUrl })), (input.SpdxLicenseId != null && { spdxLicenseId: input.SpdxLicenseId })), (input.TemplateBody != null && { templateBody: input.TemplateBody })), (input.TemplateUrl != null && { templateUrl: input.TemplateUrl })));
|
|
21
18
|
return [2, new __HttpRequest({
|
|
22
19
|
protocol: protocol,
|
|
23
20
|
hostname: hostname,
|
|
@@ -62,8 +59,7 @@ export var serializeAws_restJson1CreateApplicationVersionCommand = function (inp
|
|
|
62
59
|
else {
|
|
63
60
|
throw new Error("No value provided for input HTTP label: SemanticVersion.");
|
|
64
61
|
}
|
|
65
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.SourceCodeArchiveUrl
|
|
66
|
-
input.SourceCodeArchiveUrl !== null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl !== undefined && input.SourceCodeUrl !== null && { sourceCodeUrl: input.SourceCodeUrl })), (input.TemplateBody !== undefined && input.TemplateBody !== null && { templateBody: input.TemplateBody })), (input.TemplateUrl !== undefined && input.TemplateUrl !== null && { templateUrl: input.TemplateUrl })));
|
|
62
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.SourceCodeArchiveUrl != null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl != null && { sourceCodeUrl: input.SourceCodeUrl })), (input.TemplateBody != null && { templateBody: input.TemplateBody })), (input.TemplateUrl != null && { templateUrl: input.TemplateUrl })));
|
|
67
63
|
return [2, new __HttpRequest({
|
|
68
64
|
protocol: protocol,
|
|
69
65
|
hostname: hostname,
|
|
@@ -97,24 +93,17 @@ export var serializeAws_restJson1CreateCloudFormationChangeSetCommand = function
|
|
|
97
93
|
else {
|
|
98
94
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
99
95
|
}
|
|
100
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capabilities
|
|
101
|
-
input.Capabilities !== null && {
|
|
96
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capabilities != null && {
|
|
102
97
|
capabilities: serializeAws_restJson1__listOf__string(input.Capabilities, context),
|
|
103
|
-
})), (input.ChangeSetName
|
|
104
|
-
input.NotificationArns !== null && {
|
|
98
|
+
})), (input.ChangeSetName != null && { changeSetName: input.ChangeSetName })), (input.ClientToken != null && { clientToken: input.ClientToken })), (input.Description != null && { description: input.Description })), (input.NotificationArns != null && {
|
|
105
99
|
notificationArns: serializeAws_restJson1__listOf__string(input.NotificationArns, context),
|
|
106
|
-
})), (input.ParameterOverrides
|
|
107
|
-
input.ParameterOverrides !== null && {
|
|
100
|
+
})), (input.ParameterOverrides != null && {
|
|
108
101
|
parameterOverrides: serializeAws_restJson1__listOfParameterValue(input.ParameterOverrides, context),
|
|
109
|
-
})), (input.ResourceTypes
|
|
110
|
-
input.ResourceTypes !== null && {
|
|
102
|
+
})), (input.ResourceTypes != null && {
|
|
111
103
|
resourceTypes: serializeAws_restJson1__listOf__string(input.ResourceTypes, context),
|
|
112
|
-
})), (input.RollbackConfiguration
|
|
113
|
-
input.RollbackConfiguration !== null && {
|
|
104
|
+
})), (input.RollbackConfiguration != null && {
|
|
114
105
|
rollbackConfiguration: serializeAws_restJson1RollbackConfiguration(input.RollbackConfiguration, context),
|
|
115
|
-
})), (input.SemanticVersion
|
|
116
|
-
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })), (input.StackName !== undefined && input.StackName !== null && { stackName: input.StackName })), (input.Tags !== undefined &&
|
|
117
|
-
input.Tags !== null && { tags: serializeAws_restJson1__listOfTag(input.Tags, context) })), (input.TemplateId !== undefined && input.TemplateId !== null && { templateId: input.TemplateId })));
|
|
106
|
+
})), (input.SemanticVersion != null && { semanticVersion: input.SemanticVersion })), (input.StackName != null && { stackName: input.StackName })), (input.Tags != null && { tags: serializeAws_restJson1__listOfTag(input.Tags, context) })), (input.TemplateId != null && { templateId: input.TemplateId })));
|
|
118
107
|
return [2, new __HttpRequest({
|
|
119
108
|
protocol: protocol,
|
|
120
109
|
hostname: hostname,
|
|
@@ -148,8 +137,7 @@ export var serializeAws_restJson1CreateCloudFormationTemplateCommand = function
|
|
|
148
137
|
else {
|
|
149
138
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
150
139
|
}
|
|
151
|
-
body = JSON.stringify(__assign({}, (input.SemanticVersion
|
|
152
|
-
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })));
|
|
140
|
+
body = JSON.stringify(__assign({}, (input.SemanticVersion != null && { semanticVersion: input.SemanticVersion })));
|
|
153
141
|
return [2, new __HttpRequest({
|
|
154
142
|
protocol: protocol,
|
|
155
143
|
hostname: hostname,
|
|
@@ -410,8 +398,7 @@ export var serializeAws_restJson1PutApplicationPolicyCommand = function (input,
|
|
|
410
398
|
else {
|
|
411
399
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
412
400
|
}
|
|
413
|
-
body = JSON.stringify(__assign({}, (input.Statements
|
|
414
|
-
input.Statements !== null && {
|
|
401
|
+
body = JSON.stringify(__assign({}, (input.Statements != null && {
|
|
415
402
|
statements: serializeAws_restJson1__listOfApplicationPolicyStatement(input.Statements, context),
|
|
416
403
|
})));
|
|
417
404
|
return [2, new __HttpRequest({
|
|
@@ -447,8 +434,7 @@ export var serializeAws_restJson1UnshareApplicationCommand = function (input, co
|
|
|
447
434
|
else {
|
|
448
435
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
449
436
|
}
|
|
450
|
-
body = JSON.stringify(__assign({}, (input.OrganizationId
|
|
451
|
-
input.OrganizationId !== null && { organizationId: input.OrganizationId })));
|
|
437
|
+
body = JSON.stringify(__assign({}, (input.OrganizationId != null && { organizationId: input.OrganizationId })));
|
|
452
438
|
return [2, new __HttpRequest({
|
|
453
439
|
protocol: protocol,
|
|
454
440
|
hostname: hostname,
|
|
@@ -482,8 +468,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
|
|
|
482
468
|
else {
|
|
483
469
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
484
470
|
}
|
|
485
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author
|
|
486
|
-
input.Labels !== null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.ReadmeBody !== undefined && input.ReadmeBody !== null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl !== undefined && input.ReadmeUrl !== null && { readmeUrl: input.ReadmeUrl })));
|
|
471
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author != null && { author: input.Author })), (input.Description != null && { description: input.Description })), (input.HomePageUrl != null && { homePageUrl: input.HomePageUrl })), (input.Labels != null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.ReadmeBody != null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl != null && { readmeUrl: input.ReadmeUrl })));
|
|
487
472
|
return [2, new __HttpRequest({
|
|
488
473
|
protocol: protocol,
|
|
489
474
|
hostname: hostname,
|
|
@@ -569,7 +554,7 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
|
|
|
569
554
|
});
|
|
570
555
|
}); };
|
|
571
556
|
var deserializeAws_restJson1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
572
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
557
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
573
558
|
var _c;
|
|
574
559
|
return __generator(this, function (_d) {
|
|
575
560
|
switch (_d.label) {
|
|
@@ -579,7 +564,6 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
|
|
|
579
564
|
return [4, parseBody(output.body, context)];
|
|
580
565
|
case 1:
|
|
581
566
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
582
|
-
errorCode = "UnknownError";
|
|
583
567
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
584
568
|
_b = errorCode;
|
|
585
569
|
switch (_b) {
|
|
@@ -607,10 +591,12 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
|
|
|
607
591
|
case 11: throw _d.sent();
|
|
608
592
|
case 12:
|
|
609
593
|
parsedBody = parsedOutput.body;
|
|
594
|
+
$metadata = deserializeMetadata(output);
|
|
595
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
610
596
|
response = new __BaseException({
|
|
611
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
612
598
|
$fault: "client",
|
|
613
|
-
$metadata:
|
|
599
|
+
$metadata: $metadata,
|
|
614
600
|
});
|
|
615
601
|
throw __decorateServiceException(response, parsedBody);
|
|
616
602
|
}
|
|
@@ -673,7 +659,7 @@ export var deserializeAws_restJson1CreateApplicationVersionCommand = function (o
|
|
|
673
659
|
});
|
|
674
660
|
}); };
|
|
675
661
|
var deserializeAws_restJson1CreateApplicationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
676
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
662
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
677
663
|
var _c;
|
|
678
664
|
return __generator(this, function (_d) {
|
|
679
665
|
switch (_d.label) {
|
|
@@ -683,7 +669,6 @@ var deserializeAws_restJson1CreateApplicationVersionCommandError = function (out
|
|
|
683
669
|
return [4, parseBody(output.body, context)];
|
|
684
670
|
case 1:
|
|
685
671
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
686
|
-
errorCode = "UnknownError";
|
|
687
672
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
673
|
_b = errorCode;
|
|
689
674
|
switch (_b) {
|
|
@@ -711,10 +696,12 @@ var deserializeAws_restJson1CreateApplicationVersionCommandError = function (out
|
|
|
711
696
|
case 11: throw _d.sent();
|
|
712
697
|
case 12:
|
|
713
698
|
parsedBody = parsedOutput.body;
|
|
699
|
+
$metadata = deserializeMetadata(output);
|
|
700
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
714
701
|
response = new __BaseException({
|
|
715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
702
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
716
703
|
$fault: "client",
|
|
717
|
-
$metadata:
|
|
704
|
+
$metadata: $metadata,
|
|
718
705
|
});
|
|
719
706
|
throw __decorateServiceException(response, parsedBody);
|
|
720
707
|
}
|
|
@@ -757,7 +744,7 @@ export var deserializeAws_restJson1CreateCloudFormationChangeSetCommand = functi
|
|
|
757
744
|
});
|
|
758
745
|
}); };
|
|
759
746
|
var deserializeAws_restJson1CreateCloudFormationChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
760
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
747
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
761
748
|
var _c;
|
|
762
749
|
return __generator(this, function (_d) {
|
|
763
750
|
switch (_d.label) {
|
|
@@ -767,7 +754,6 @@ var deserializeAws_restJson1CreateCloudFormationChangeSetCommandError = function
|
|
|
767
754
|
return [4, parseBody(output.body, context)];
|
|
768
755
|
case 1:
|
|
769
756
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
770
|
-
errorCode = "UnknownError";
|
|
771
757
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
758
|
_b = errorCode;
|
|
773
759
|
switch (_b) {
|
|
@@ -791,10 +777,12 @@ var deserializeAws_restJson1CreateCloudFormationChangeSetCommandError = function
|
|
|
791
777
|
case 9: throw _d.sent();
|
|
792
778
|
case 10:
|
|
793
779
|
parsedBody = parsedOutput.body;
|
|
780
|
+
$metadata = deserializeMetadata(output);
|
|
781
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
794
782
|
response = new __BaseException({
|
|
795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
783
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
796
784
|
$fault: "client",
|
|
797
|
-
$metadata:
|
|
785
|
+
$metadata: $metadata,
|
|
798
786
|
});
|
|
799
787
|
throw __decorateServiceException(response, parsedBody);
|
|
800
788
|
}
|
|
@@ -849,7 +837,7 @@ export var deserializeAws_restJson1CreateCloudFormationTemplateCommand = functio
|
|
|
849
837
|
});
|
|
850
838
|
}); };
|
|
851
839
|
var deserializeAws_restJson1CreateCloudFormationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
852
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
840
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
853
841
|
var _c;
|
|
854
842
|
return __generator(this, function (_d) {
|
|
855
843
|
switch (_d.label) {
|
|
@@ -859,7 +847,6 @@ var deserializeAws_restJson1CreateCloudFormationTemplateCommandError = function
|
|
|
859
847
|
return [4, parseBody(output.body, context)];
|
|
860
848
|
case 1:
|
|
861
849
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
862
|
-
errorCode = "UnknownError";
|
|
863
850
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
864
851
|
_b = errorCode;
|
|
865
852
|
switch (_b) {
|
|
@@ -887,10 +874,12 @@ var deserializeAws_restJson1CreateCloudFormationTemplateCommandError = function
|
|
|
887
874
|
case 11: throw _d.sent();
|
|
888
875
|
case 12:
|
|
889
876
|
parsedBody = parsedOutput.body;
|
|
877
|
+
$metadata = deserializeMetadata(output);
|
|
878
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
890
879
|
response = new __BaseException({
|
|
891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
880
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
892
881
|
$fault: "client",
|
|
893
|
-
$metadata:
|
|
882
|
+
$metadata: $metadata,
|
|
894
883
|
});
|
|
895
884
|
throw __decorateServiceException(response, parsedBody);
|
|
896
885
|
}
|
|
@@ -915,7 +904,7 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
|
|
|
915
904
|
});
|
|
916
905
|
}); };
|
|
917
906
|
var deserializeAws_restJson1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
918
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
907
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
919
908
|
var _c;
|
|
920
909
|
return __generator(this, function (_d) {
|
|
921
910
|
switch (_d.label) {
|
|
@@ -925,7 +914,6 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
|
|
|
925
914
|
return [4, parseBody(output.body, context)];
|
|
926
915
|
case 1:
|
|
927
916
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
928
|
-
errorCode = "UnknownError";
|
|
929
917
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
918
|
_b = errorCode;
|
|
931
919
|
switch (_b) {
|
|
@@ -957,10 +945,12 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
|
|
|
957
945
|
case 13: throw _d.sent();
|
|
958
946
|
case 14:
|
|
959
947
|
parsedBody = parsedOutput.body;
|
|
948
|
+
$metadata = deserializeMetadata(output);
|
|
949
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
960
950
|
response = new __BaseException({
|
|
961
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
951
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
962
952
|
$fault: "client",
|
|
963
|
-
$metadata:
|
|
953
|
+
$metadata: $metadata,
|
|
964
954
|
});
|
|
965
955
|
throw __decorateServiceException(response, parsedBody);
|
|
966
956
|
}
|
|
@@ -1039,7 +1029,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
|
|
|
1039
1029
|
});
|
|
1040
1030
|
}); };
|
|
1041
1031
|
var deserializeAws_restJson1GetApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1042
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1032
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1043
1033
|
var _c;
|
|
1044
1034
|
return __generator(this, function (_d) {
|
|
1045
1035
|
switch (_d.label) {
|
|
@@ -1049,7 +1039,6 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
1049
1039
|
return [4, parseBody(output.body, context)];
|
|
1050
1040
|
case 1:
|
|
1051
1041
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1052
|
-
errorCode = "UnknownError";
|
|
1053
1042
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
1043
|
_b = errorCode;
|
|
1055
1044
|
switch (_b) {
|
|
@@ -1077,10 +1066,12 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
1077
1066
|
case 11: throw _d.sent();
|
|
1078
1067
|
case 12:
|
|
1079
1068
|
parsedBody = parsedOutput.body;
|
|
1069
|
+
$metadata = deserializeMetadata(output);
|
|
1070
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1080
1071
|
response = new __BaseException({
|
|
1081
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1082
1073
|
$fault: "client",
|
|
1083
|
-
$metadata:
|
|
1074
|
+
$metadata: $metadata,
|
|
1084
1075
|
});
|
|
1085
1076
|
throw __decorateServiceException(response, parsedBody);
|
|
1086
1077
|
}
|
|
@@ -1111,7 +1102,7 @@ export var deserializeAws_restJson1GetApplicationPolicyCommand = function (outpu
|
|
|
1111
1102
|
});
|
|
1112
1103
|
}); };
|
|
1113
1104
|
var deserializeAws_restJson1GetApplicationPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1114
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1105
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1115
1106
|
var _c;
|
|
1116
1107
|
return __generator(this, function (_d) {
|
|
1117
1108
|
switch (_d.label) {
|
|
@@ -1121,7 +1112,6 @@ var deserializeAws_restJson1GetApplicationPolicyCommandError = function (output,
|
|
|
1121
1112
|
return [4, parseBody(output.body, context)];
|
|
1122
1113
|
case 1:
|
|
1123
1114
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1124
|
-
errorCode = "UnknownError";
|
|
1125
1115
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
1116
|
_b = errorCode;
|
|
1127
1117
|
switch (_b) {
|
|
@@ -1149,10 +1139,12 @@ var deserializeAws_restJson1GetApplicationPolicyCommandError = function (output,
|
|
|
1149
1139
|
case 11: throw _d.sent();
|
|
1150
1140
|
case 12:
|
|
1151
1141
|
parsedBody = parsedOutput.body;
|
|
1142
|
+
$metadata = deserializeMetadata(output);
|
|
1143
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1152
1144
|
response = new __BaseException({
|
|
1153
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1145
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1154
1146
|
$fault: "client",
|
|
1155
|
-
$metadata:
|
|
1147
|
+
$metadata: $metadata,
|
|
1156
1148
|
});
|
|
1157
1149
|
throw __decorateServiceException(response, parsedBody);
|
|
1158
1150
|
}
|
|
@@ -1207,7 +1199,7 @@ export var deserializeAws_restJson1GetCloudFormationTemplateCommand = function (
|
|
|
1207
1199
|
});
|
|
1208
1200
|
}); };
|
|
1209
1201
|
var deserializeAws_restJson1GetCloudFormationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1210
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1202
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1211
1203
|
var _c;
|
|
1212
1204
|
return __generator(this, function (_d) {
|
|
1213
1205
|
switch (_d.label) {
|
|
@@ -1217,7 +1209,6 @@ var deserializeAws_restJson1GetCloudFormationTemplateCommandError = function (ou
|
|
|
1217
1209
|
return [4, parseBody(output.body, context)];
|
|
1218
1210
|
case 1:
|
|
1219
1211
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1220
|
-
errorCode = "UnknownError";
|
|
1221
1212
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1222
1213
|
_b = errorCode;
|
|
1223
1214
|
switch (_b) {
|
|
@@ -1245,10 +1236,12 @@ var deserializeAws_restJson1GetCloudFormationTemplateCommandError = function (ou
|
|
|
1245
1236
|
case 11: throw _d.sent();
|
|
1246
1237
|
case 12:
|
|
1247
1238
|
parsedBody = parsedOutput.body;
|
|
1239
|
+
$metadata = deserializeMetadata(output);
|
|
1240
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1248
1241
|
response = new __BaseException({
|
|
1249
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1242
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1250
1243
|
$fault: "client",
|
|
1251
|
-
$metadata:
|
|
1244
|
+
$metadata: $metadata,
|
|
1252
1245
|
});
|
|
1253
1246
|
throw __decorateServiceException(response, parsedBody);
|
|
1254
1247
|
}
|
|
@@ -1283,7 +1276,7 @@ export var deserializeAws_restJson1ListApplicationDependenciesCommand = function
|
|
|
1283
1276
|
});
|
|
1284
1277
|
}); };
|
|
1285
1278
|
var deserializeAws_restJson1ListApplicationDependenciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1286
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1279
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1287
1280
|
var _c;
|
|
1288
1281
|
return __generator(this, function (_d) {
|
|
1289
1282
|
switch (_d.label) {
|
|
@@ -1293,7 +1286,6 @@ var deserializeAws_restJson1ListApplicationDependenciesCommandError = function (
|
|
|
1293
1286
|
return [4, parseBody(output.body, context)];
|
|
1294
1287
|
case 1:
|
|
1295
1288
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1296
|
-
errorCode = "UnknownError";
|
|
1297
1289
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
1290
|
_b = errorCode;
|
|
1299
1291
|
switch (_b) {
|
|
@@ -1321,10 +1313,12 @@ var deserializeAws_restJson1ListApplicationDependenciesCommandError = function (
|
|
|
1321
1313
|
case 11: throw _d.sent();
|
|
1322
1314
|
case 12:
|
|
1323
1315
|
parsedBody = parsedOutput.body;
|
|
1316
|
+
$metadata = deserializeMetadata(output);
|
|
1317
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1324
1318
|
response = new __BaseException({
|
|
1325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1319
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1326
1320
|
$fault: "client",
|
|
1327
|
-
$metadata:
|
|
1321
|
+
$metadata: $metadata,
|
|
1328
1322
|
});
|
|
1329
1323
|
throw __decorateServiceException(response, parsedBody);
|
|
1330
1324
|
}
|
|
@@ -1359,7 +1353,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
1359
1353
|
});
|
|
1360
1354
|
}); };
|
|
1361
1355
|
var deserializeAws_restJson1ListApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1362
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1356
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1363
1357
|
var _c;
|
|
1364
1358
|
return __generator(this, function (_d) {
|
|
1365
1359
|
switch (_d.label) {
|
|
@@ -1369,7 +1363,6 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
1369
1363
|
return [4, parseBody(output.body, context)];
|
|
1370
1364
|
case 1:
|
|
1371
1365
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1372
|
-
errorCode = "UnknownError";
|
|
1373
1366
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
1367
|
_b = errorCode;
|
|
1375
1368
|
switch (_b) {
|
|
@@ -1393,10 +1386,12 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
1393
1386
|
case 9: throw _d.sent();
|
|
1394
1387
|
case 10:
|
|
1395
1388
|
parsedBody = parsedOutput.body;
|
|
1389
|
+
$metadata = deserializeMetadata(output);
|
|
1390
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1396
1391
|
response = new __BaseException({
|
|
1397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1392
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1398
1393
|
$fault: "client",
|
|
1399
|
-
$metadata:
|
|
1394
|
+
$metadata: $metadata,
|
|
1400
1395
|
});
|
|
1401
1396
|
throw __decorateServiceException(response, parsedBody);
|
|
1402
1397
|
}
|
|
@@ -1431,7 +1426,7 @@ export var deserializeAws_restJson1ListApplicationVersionsCommand = function (ou
|
|
|
1431
1426
|
});
|
|
1432
1427
|
}); };
|
|
1433
1428
|
var deserializeAws_restJson1ListApplicationVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1434
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1429
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1435
1430
|
var _c;
|
|
1436
1431
|
return __generator(this, function (_d) {
|
|
1437
1432
|
switch (_d.label) {
|
|
@@ -1441,7 +1436,6 @@ var deserializeAws_restJson1ListApplicationVersionsCommandError = function (outp
|
|
|
1441
1436
|
return [4, parseBody(output.body, context)];
|
|
1442
1437
|
case 1:
|
|
1443
1438
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1444
|
-
errorCode = "UnknownError";
|
|
1445
1439
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1440
|
_b = errorCode;
|
|
1447
1441
|
switch (_b) {
|
|
@@ -1469,10 +1463,12 @@ var deserializeAws_restJson1ListApplicationVersionsCommandError = function (outp
|
|
|
1469
1463
|
case 11: throw _d.sent();
|
|
1470
1464
|
case 12:
|
|
1471
1465
|
parsedBody = parsedOutput.body;
|
|
1466
|
+
$metadata = deserializeMetadata(output);
|
|
1467
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1472
1468
|
response = new __BaseException({
|
|
1473
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1469
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1474
1470
|
$fault: "client",
|
|
1475
|
-
$metadata:
|
|
1471
|
+
$metadata: $metadata,
|
|
1476
1472
|
});
|
|
1477
1473
|
throw __decorateServiceException(response, parsedBody);
|
|
1478
1474
|
}
|
|
@@ -1503,7 +1499,7 @@ export var deserializeAws_restJson1PutApplicationPolicyCommand = function (outpu
|
|
|
1503
1499
|
});
|
|
1504
1500
|
}); };
|
|
1505
1501
|
var deserializeAws_restJson1PutApplicationPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1506
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1502
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1507
1503
|
var _c;
|
|
1508
1504
|
return __generator(this, function (_d) {
|
|
1509
1505
|
switch (_d.label) {
|
|
@@ -1513,7 +1509,6 @@ var deserializeAws_restJson1PutApplicationPolicyCommandError = function (output,
|
|
|
1513
1509
|
return [4, parseBody(output.body, context)];
|
|
1514
1510
|
case 1:
|
|
1515
1511
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1516
|
-
errorCode = "UnknownError";
|
|
1517
1512
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
1513
|
_b = errorCode;
|
|
1519
1514
|
switch (_b) {
|
|
@@ -1541,10 +1536,12 @@ var deserializeAws_restJson1PutApplicationPolicyCommandError = function (output,
|
|
|
1541
1536
|
case 11: throw _d.sent();
|
|
1542
1537
|
case 12:
|
|
1543
1538
|
parsedBody = parsedOutput.body;
|
|
1539
|
+
$metadata = deserializeMetadata(output);
|
|
1540
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1544
1541
|
response = new __BaseException({
|
|
1545
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1542
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1546
1543
|
$fault: "client",
|
|
1547
|
-
$metadata:
|
|
1544
|
+
$metadata: $metadata,
|
|
1548
1545
|
});
|
|
1549
1546
|
throw __decorateServiceException(response, parsedBody);
|
|
1550
1547
|
}
|
|
@@ -1569,7 +1566,7 @@ export var deserializeAws_restJson1UnshareApplicationCommand = function (output,
|
|
|
1569
1566
|
});
|
|
1570
1567
|
}); };
|
|
1571
1568
|
var deserializeAws_restJson1UnshareApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1572
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1569
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1573
1570
|
var _c;
|
|
1574
1571
|
return __generator(this, function (_d) {
|
|
1575
1572
|
switch (_d.label) {
|
|
@@ -1579,7 +1576,6 @@ var deserializeAws_restJson1UnshareApplicationCommandError = function (output, c
|
|
|
1579
1576
|
return [4, parseBody(output.body, context)];
|
|
1580
1577
|
case 1:
|
|
1581
1578
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1582
|
-
errorCode = "UnknownError";
|
|
1583
1579
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
1580
|
_b = errorCode;
|
|
1585
1581
|
switch (_b) {
|
|
@@ -1607,10 +1603,12 @@ var deserializeAws_restJson1UnshareApplicationCommandError = function (output, c
|
|
|
1607
1603
|
case 11: throw _d.sent();
|
|
1608
1604
|
case 12:
|
|
1609
1605
|
parsedBody = parsedOutput.body;
|
|
1606
|
+
$metadata = deserializeMetadata(output);
|
|
1607
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1610
1608
|
response = new __BaseException({
|
|
1611
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1612
1610
|
$fault: "client",
|
|
1613
|
-
$metadata:
|
|
1611
|
+
$metadata: $metadata,
|
|
1614
1612
|
});
|
|
1615
1613
|
throw __decorateServiceException(response, parsedBody);
|
|
1616
1614
|
}
|
|
@@ -1689,7 +1687,7 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
|
|
|
1689
1687
|
});
|
|
1690
1688
|
}); };
|
|
1691
1689
|
var deserializeAws_restJson1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1692
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1690
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1693
1691
|
var _c;
|
|
1694
1692
|
return __generator(this, function (_d) {
|
|
1695
1693
|
switch (_d.label) {
|
|
@@ -1699,7 +1697,6 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
|
|
|
1699
1697
|
return [4, parseBody(output.body, context)];
|
|
1700
1698
|
case 1:
|
|
1701
1699
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1702
|
-
errorCode = "UnknownError";
|
|
1703
1700
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
1701
|
_b = errorCode;
|
|
1705
1702
|
switch (_b) {
|
|
@@ -1731,10 +1728,12 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
|
|
|
1731
1728
|
case 13: throw _d.sent();
|
|
1732
1729
|
case 14:
|
|
1733
1730
|
parsedBody = parsedOutput.body;
|
|
1731
|
+
$metadata = deserializeMetadata(output);
|
|
1732
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1734
1733
|
response = new __BaseException({
|
|
1735
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1736
1735
|
$fault: "client",
|
|
1737
|
-
$metadata:
|
|
1736
|
+
$metadata: $metadata,
|
|
1738
1737
|
});
|
|
1739
1738
|
throw __decorateServiceException(response, parsedBody);
|
|
1740
1739
|
}
|
|
@@ -1881,28 +1880,23 @@ var serializeAws_restJson1__listOfTag = function (input, context) {
|
|
|
1881
1880
|
});
|
|
1882
1881
|
};
|
|
1883
1882
|
var serializeAws_restJson1ApplicationPolicyStatement = function (input, context) {
|
|
1884
|
-
return __assign(__assign(__assign(__assign({}, (input.Actions
|
|
1885
|
-
input.Actions !== null && { actions: serializeAws_restJson1__listOf__string(input.Actions, context) })), (input.PrincipalOrgIDs !== undefined &&
|
|
1886
|
-
input.PrincipalOrgIDs !== null && {
|
|
1883
|
+
return __assign(__assign(__assign(__assign({}, (input.Actions != null && { actions: serializeAws_restJson1__listOf__string(input.Actions, context) })), (input.PrincipalOrgIDs != null && {
|
|
1887
1884
|
principalOrgIDs: serializeAws_restJson1__listOf__string(input.PrincipalOrgIDs, context),
|
|
1888
|
-
})), (input.Principals
|
|
1889
|
-
input.Principals !== null && { principals: serializeAws_restJson1__listOf__string(input.Principals, context) })), (input.StatementId !== undefined && input.StatementId !== null && { statementId: input.StatementId }));
|
|
1885
|
+
})), (input.Principals != null && { principals: serializeAws_restJson1__listOf__string(input.Principals, context) })), (input.StatementId != null && { statementId: input.StatementId }));
|
|
1890
1886
|
};
|
|
1891
1887
|
var serializeAws_restJson1ParameterValue = function (input, context) {
|
|
1892
|
-
return __assign(__assign({}, (input.Name
|
|
1888
|
+
return __assign(__assign({}, (input.Name != null && { name: input.Name })), (input.Value != null && { value: input.Value }));
|
|
1893
1889
|
};
|
|
1894
1890
|
var serializeAws_restJson1RollbackConfiguration = function (input, context) {
|
|
1895
|
-
return __assign(__assign({}, (input.MonitoringTimeInMinutes
|
|
1896
|
-
input.MonitoringTimeInMinutes !== null && { monitoringTimeInMinutes: input.MonitoringTimeInMinutes })), (input.RollbackTriggers !== undefined &&
|
|
1897
|
-
input.RollbackTriggers !== null && {
|
|
1891
|
+
return __assign(__assign({}, (input.MonitoringTimeInMinutes != null && { monitoringTimeInMinutes: input.MonitoringTimeInMinutes })), (input.RollbackTriggers != null && {
|
|
1898
1892
|
rollbackTriggers: serializeAws_restJson1__listOfRollbackTrigger(input.RollbackTriggers, context),
|
|
1899
1893
|
}));
|
|
1900
1894
|
};
|
|
1901
1895
|
var serializeAws_restJson1RollbackTrigger = function (input, context) {
|
|
1902
|
-
return __assign(__assign({}, (input.Arn
|
|
1896
|
+
return __assign(__assign({}, (input.Arn != null && { arn: input.Arn })), (input.Type != null && { type: input.Type }));
|
|
1903
1897
|
};
|
|
1904
1898
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
1905
|
-
return __assign(__assign({}, (input.Key
|
|
1899
|
+
return __assign(__assign({}, (input.Key != null && { key: input.Key })), (input.Value != null && { value: input.Value }));
|
|
1906
1900
|
};
|
|
1907
1901
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
1908
1902
|
var retVal = (output || [])
|
|
@@ -1989,15 +1983,11 @@ var deserializeAws_restJson1ApplicationDependencySummary = function (output, con
|
|
|
1989
1983
|
};
|
|
1990
1984
|
var deserializeAws_restJson1ApplicationPolicyStatement = function (output, context) {
|
|
1991
1985
|
return {
|
|
1992
|
-
Actions: output.actions
|
|
1993
|
-
|
|
1994
|
-
: undefined,
|
|
1995
|
-
PrincipalOrgIDs: output.principalOrgIDs !== undefined && output.principalOrgIDs !== null
|
|
1986
|
+
Actions: output.actions != null ? deserializeAws_restJson1__listOf__string(output.actions, context) : undefined,
|
|
1987
|
+
PrincipalOrgIDs: output.principalOrgIDs != null
|
|
1996
1988
|
? deserializeAws_restJson1__listOf__string(output.principalOrgIDs, context)
|
|
1997
1989
|
: undefined,
|
|
1998
|
-
Principals: output.principals
|
|
1999
|
-
? deserializeAws_restJson1__listOf__string(output.principals, context)
|
|
2000
|
-
: undefined,
|
|
1990
|
+
Principals: output.principals != null ? deserializeAws_restJson1__listOf__string(output.principals, context) : undefined,
|
|
2001
1991
|
StatementId: __expectString(output.statementId),
|
|
2002
1992
|
};
|
|
2003
1993
|
};
|
|
@@ -2008,9 +1998,7 @@ var deserializeAws_restJson1ApplicationSummary = function (output, context) {
|
|
|
2008
1998
|
CreationTime: __expectString(output.creationTime),
|
|
2009
1999
|
Description: __expectString(output.description),
|
|
2010
2000
|
HomePageUrl: __expectString(output.homePageUrl),
|
|
2011
|
-
Labels: output.labels
|
|
2012
|
-
? deserializeAws_restJson1__listOf__string(output.labels, context)
|
|
2013
|
-
: undefined,
|
|
2001
|
+
Labels: output.labels != null ? deserializeAws_restJson1__listOf__string(output.labels, context) : undefined,
|
|
2014
2002
|
Name: __expectString(output.name),
|
|
2015
2003
|
SpdxLicenseId: __expectString(output.spdxLicenseId),
|
|
2016
2004
|
};
|
|
@@ -2018,7 +2006,7 @@ var deserializeAws_restJson1ApplicationSummary = function (output, context) {
|
|
|
2018
2006
|
var deserializeAws_restJson1ParameterDefinition = function (output, context) {
|
|
2019
2007
|
return {
|
|
2020
2008
|
AllowedPattern: __expectString(output.allowedPattern),
|
|
2021
|
-
AllowedValues: output.allowedValues
|
|
2009
|
+
AllowedValues: output.allowedValues != null
|
|
2022
2010
|
? deserializeAws_restJson1__listOf__string(output.allowedValues, context)
|
|
2023
2011
|
: undefined,
|
|
2024
2012
|
ConstraintDescription: __expectString(output.constraintDescription),
|
|
@@ -2030,7 +2018,7 @@ var deserializeAws_restJson1ParameterDefinition = function (output, context) {
|
|
|
2030
2018
|
MinValue: __expectInt32(output.minValue),
|
|
2031
2019
|
Name: __expectString(output.name),
|
|
2032
2020
|
NoEcho: __expectBoolean(output.noEcho),
|
|
2033
|
-
ReferencedByResources: output.referencedByResources
|
|
2021
|
+
ReferencedByResources: output.referencedByResources != null
|
|
2034
2022
|
? deserializeAws_restJson1__listOf__string(output.referencedByResources, context)
|
|
2035
2023
|
: undefined,
|
|
2036
2024
|
Type: __expectString(output.type),
|
|
@@ -2040,10 +2028,10 @@ var deserializeAws_restJson1Version = function (output, context) {
|
|
|
2040
2028
|
return {
|
|
2041
2029
|
ApplicationId: __expectString(output.applicationId),
|
|
2042
2030
|
CreationTime: __expectString(output.creationTime),
|
|
2043
|
-
ParameterDefinitions: output.parameterDefinitions
|
|
2031
|
+
ParameterDefinitions: output.parameterDefinitions != null
|
|
2044
2032
|
? deserializeAws_restJson1__listOfParameterDefinition(output.parameterDefinitions, context)
|
|
2045
2033
|
: undefined,
|
|
2046
|
-
RequiredCapabilities: output.requiredCapabilities
|
|
2034
|
+
RequiredCapabilities: output.requiredCapabilities != null
|
|
2047
2035
|
? deserializeAws_restJson1__listOfCapability(output.requiredCapabilities, context)
|
|
2048
2036
|
: undefined,
|
|
2049
2037
|
ResourcesSupported: __expectBoolean(output.resourcesSupported),
|
|
@@ -2117,5 +2105,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2117
2105
|
if (data["__type"] !== undefined) {
|
|
2118
2106
|
return sanitizeErrorCode(data["__type"]);
|
|
2119
2107
|
}
|
|
2120
|
-
return "";
|
|
2121
2108
|
};
|