@aws-sdk/client-resiliencehub 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AddDraftAppVersionResourceMappingsCommand.js +2 -2
- package/dist-cjs/commands/CreateAppCommand.js +2 -2
- package/dist-cjs/commands/CreateRecommendationTemplateCommand.js +2 -2
- package/dist-cjs/commands/CreateResiliencyPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppAssessmentCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppCommand.js +2 -2
- package/dist-cjs/commands/DeleteRecommendationTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteResiliencyPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppAssessmentCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppVersionResourcesResolutionStatusCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppVersionTemplateCommand.js +2 -2
- package/dist-cjs/commands/DescribeDraftAppVersionResourcesImportStatusCommand.js +2 -2
- package/dist-cjs/commands/DescribeResiliencyPolicyCommand.js +2 -2
- package/dist-cjs/commands/ImportResourcesToDraftAppVersionCommand.js +2 -2
- package/dist-cjs/commands/ListAlarmRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ListAppAssessmentsCommand.js +2 -2
- package/dist-cjs/commands/ListAppComponentCompliancesCommand.js +2 -2
- package/dist-cjs/commands/ListAppComponentRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ListAppVersionResourceMappingsCommand.js +2 -2
- package/dist-cjs/commands/ListAppVersionResourcesCommand.js +2 -2
- package/dist-cjs/commands/ListAppVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListAppsCommand.js +2 -2
- package/dist-cjs/commands/ListRecommendationTemplatesCommand.js +2 -2
- package/dist-cjs/commands/ListResiliencyPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListSopRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ListSuggestedResiliencyPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTestRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ListUnsupportedAppVersionResourcesCommand.js +2 -2
- package/dist-cjs/commands/PublishAppVersionCommand.js +2 -2
- package/dist-cjs/commands/PutDraftAppVersionTemplateCommand.js +2 -2
- package/dist-cjs/commands/RemoveDraftAppVersionResourceMappingsCommand.js +2 -2
- package/dist-cjs/commands/ResolveAppVersionResourcesCommand.js +2 -2
- package/dist-cjs/commands/StartAppAssessmentCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppCommand.js +2 -2
- package/dist-cjs/commands/UpdateResiliencyPolicyCommand.js +2 -2
- package/dist-cjs/models/models_0.js +463 -677
- package/dist-cjs/protocols/Aws_restJson1.js +452 -694
- package/dist-es/commands/AddDraftAppVersionResourceMappingsCommand.js +3 -3
- package/dist-es/commands/CreateAppCommand.js +3 -3
- package/dist-es/commands/CreateRecommendationTemplateCommand.js +3 -3
- package/dist-es/commands/CreateResiliencyPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteAppAssessmentCommand.js +3 -3
- package/dist-es/commands/DeleteAppCommand.js +3 -3
- package/dist-es/commands/DeleteRecommendationTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteResiliencyPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeAppAssessmentCommand.js +3 -3
- package/dist-es/commands/DescribeAppCommand.js +3 -3
- package/dist-es/commands/DescribeAppVersionResourcesResolutionStatusCommand.js +3 -3
- package/dist-es/commands/DescribeAppVersionTemplateCommand.js +3 -3
- package/dist-es/commands/DescribeDraftAppVersionResourcesImportStatusCommand.js +3 -3
- package/dist-es/commands/DescribeResiliencyPolicyCommand.js +3 -3
- package/dist-es/commands/ImportResourcesToDraftAppVersionCommand.js +3 -3
- package/dist-es/commands/ListAlarmRecommendationsCommand.js +3 -3
- package/dist-es/commands/ListAppAssessmentsCommand.js +3 -3
- package/dist-es/commands/ListAppComponentCompliancesCommand.js +3 -3
- package/dist-es/commands/ListAppComponentRecommendationsCommand.js +3 -3
- package/dist-es/commands/ListAppVersionResourceMappingsCommand.js +3 -3
- package/dist-es/commands/ListAppVersionResourcesCommand.js +3 -3
- package/dist-es/commands/ListAppVersionsCommand.js +3 -3
- package/dist-es/commands/ListAppsCommand.js +3 -3
- package/dist-es/commands/ListRecommendationTemplatesCommand.js +3 -3
- package/dist-es/commands/ListResiliencyPoliciesCommand.js +3 -3
- package/dist-es/commands/ListSopRecommendationsCommand.js +3 -3
- package/dist-es/commands/ListSuggestedResiliencyPoliciesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTestRecommendationsCommand.js +3 -3
- package/dist-es/commands/ListUnsupportedAppVersionResourcesCommand.js +3 -3
- package/dist-es/commands/PublishAppVersionCommand.js +3 -3
- package/dist-es/commands/PutDraftAppVersionTemplateCommand.js +3 -3
- package/dist-es/commands/RemoveDraftAppVersionResourceMappingsCommand.js +3 -3
- package/dist-es/commands/ResolveAppVersionResourcesCommand.js +3 -3
- package/dist-es/commands/StartAppAssessmentCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAppCommand.js +3 -3
- package/dist-es/commands/UpdateResiliencyPolicyCommand.js +3 -3
- package/dist-es/models/models_0.js +115 -438
- package/dist-es/protocols/Aws_restJson1.js +573 -667
- package/dist-types/models/models_0.d.ts +428 -642
- package/dist-types/ts3.4/models/models_0.d.ts +214 -428
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { ResiliencehubServiceException as __BaseException } from "../models/ResiliencehubServiceException";
|
|
@@ -414,9 +414,19 @@ export var serializeAws_restJson1ListAppAssessmentsCommand = function (input, co
|
|
|
414
414
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
415
415
|
headers = {};
|
|
416
416
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-app-assessments";
|
|
417
|
-
query =
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
query = map({
|
|
418
|
+
appArn: [, input.appArn],
|
|
419
|
+
assessmentName: [, input.assessmentName],
|
|
420
|
+
assessmentStatus: [
|
|
421
|
+
function () { return input.assessmentStatus !== void 0; },
|
|
422
|
+
function () { return (input.assessmentStatus || []).map(function (_entry) { return _entry; }); },
|
|
423
|
+
],
|
|
424
|
+
complianceStatus: [, input.complianceStatus],
|
|
425
|
+
invoker: [, input.invoker],
|
|
426
|
+
reverseOrder: [function () { return input.reverseOrder !== void 0; }, function () { return input.reverseOrder.toString(); }],
|
|
427
|
+
nextToken: [, input.nextToken],
|
|
428
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
429
|
+
});
|
|
420
430
|
return [2, new __HttpRequest({
|
|
421
431
|
protocol: protocol,
|
|
422
432
|
hostname: hostname,
|
|
@@ -487,7 +497,12 @@ export var serializeAws_restJson1ListAppsCommand = function (input, context) { r
|
|
|
487
497
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
488
498
|
headers = {};
|
|
489
499
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-apps";
|
|
490
|
-
query =
|
|
500
|
+
query = map({
|
|
501
|
+
nextToken: [, input.nextToken],
|
|
502
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
503
|
+
name: [, input.name],
|
|
504
|
+
appArn: [, input.appArn],
|
|
505
|
+
});
|
|
491
506
|
return [2, new __HttpRequest({
|
|
492
507
|
protocol: protocol,
|
|
493
508
|
hostname: hostname,
|
|
@@ -582,9 +597,15 @@ export var serializeAws_restJson1ListRecommendationTemplatesCommand = function (
|
|
|
582
597
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
583
598
|
headers = {};
|
|
584
599
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-recommendation-templates";
|
|
585
|
-
query =
|
|
586
|
-
|
|
587
|
-
|
|
600
|
+
query = map({
|
|
601
|
+
assessmentArn: [, input.assessmentArn],
|
|
602
|
+
reverseOrder: [function () { return input.reverseOrder !== void 0; }, function () { return input.reverseOrder.toString(); }],
|
|
603
|
+
status: [function () { return input.status !== void 0; }, function () { return (input.status || []).map(function (_entry) { return _entry; }); }],
|
|
604
|
+
recommendationTemplateArn: [, input.recommendationTemplateArn],
|
|
605
|
+
name: [, input.name],
|
|
606
|
+
nextToken: [, input.nextToken],
|
|
607
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
608
|
+
});
|
|
588
609
|
return [2, new __HttpRequest({
|
|
589
610
|
protocol: protocol,
|
|
590
611
|
hostname: hostname,
|
|
@@ -607,7 +628,11 @@ export var serializeAws_restJson1ListResiliencyPoliciesCommand = function (input
|
|
|
607
628
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
608
629
|
headers = {};
|
|
609
630
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-resiliency-policies";
|
|
610
|
-
query =
|
|
631
|
+
query = map({
|
|
632
|
+
policyName: [, input.policyName],
|
|
633
|
+
nextToken: [, input.nextToken],
|
|
634
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
635
|
+
});
|
|
611
636
|
return [2, new __HttpRequest({
|
|
612
637
|
protocol: protocol,
|
|
613
638
|
hostname: hostname,
|
|
@@ -654,7 +679,10 @@ export var serializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = functi
|
|
|
654
679
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
655
680
|
headers = {};
|
|
656
681
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-suggested-resiliency-policies";
|
|
657
|
-
query =
|
|
682
|
+
query = map({
|
|
683
|
+
nextToken: [, input.nextToken],
|
|
684
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
685
|
+
});
|
|
658
686
|
return [2, new __HttpRequest({
|
|
659
687
|
protocol: protocol,
|
|
660
688
|
hostname: hostname,
|
|
@@ -669,7 +697,7 @@ export var serializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = functi
|
|
|
669
697
|
});
|
|
670
698
|
}); };
|
|
671
699
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
672
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
700
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
673
701
|
return __generator(this, function (_c) {
|
|
674
702
|
switch (_c.label) {
|
|
675
703
|
case 0: return [4, context.endpoint()];
|
|
@@ -677,16 +705,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
677
705
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
678
706
|
headers = {};
|
|
679
707
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
680
|
-
|
|
681
|
-
labelValue = input.resourceArn;
|
|
682
|
-
if (labelValue.length <= 0) {
|
|
683
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
684
|
-
}
|
|
685
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
686
|
-
}
|
|
687
|
-
else {
|
|
688
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
689
|
-
}
|
|
708
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
690
709
|
return [2, new __HttpRequest({
|
|
691
710
|
protocol: protocol,
|
|
692
711
|
hostname: hostname,
|
|
@@ -880,7 +899,7 @@ export var serializeAws_restJson1StartAppAssessmentCommand = function (input, co
|
|
|
880
899
|
});
|
|
881
900
|
}); };
|
|
882
901
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
883
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
902
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
884
903
|
return __generator(this, function (_c) {
|
|
885
904
|
switch (_c.label) {
|
|
886
905
|
case 0: return [4, context.endpoint()];
|
|
@@ -890,16 +909,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
890
909
|
"content-type": "application/json",
|
|
891
910
|
};
|
|
892
911
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
893
|
-
|
|
894
|
-
labelValue = input.resourceArn;
|
|
895
|
-
if (labelValue.length <= 0) {
|
|
896
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
897
|
-
}
|
|
898
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
899
|
-
}
|
|
900
|
-
else {
|
|
901
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
902
|
-
}
|
|
912
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
903
913
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
904
914
|
return [2, new __HttpRequest({
|
|
905
915
|
protocol: protocol,
|
|
@@ -914,7 +924,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
914
924
|
});
|
|
915
925
|
}); };
|
|
916
926
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
917
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
927
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
918
928
|
return __generator(this, function (_c) {
|
|
919
929
|
switch (_c.label) {
|
|
920
930
|
case 0: return [4, context.endpoint()];
|
|
@@ -922,17 +932,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
922
932
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
923
933
|
headers = {};
|
|
924
934
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
}
|
|
930
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
931
|
-
}
|
|
932
|
-
else {
|
|
933
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
934
|
-
}
|
|
935
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
935
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
936
|
+
query = map({
|
|
937
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
938
|
+
});
|
|
936
939
|
return [2, new __HttpRequest({
|
|
937
940
|
protocol: protocol,
|
|
938
941
|
hostname: hostname,
|
|
@@ -1002,32 +1005,29 @@ export var deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = f
|
|
|
1002
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1003
1006
|
return [2, deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError(output, context)];
|
|
1004
1007
|
}
|
|
1005
|
-
contents = {
|
|
1008
|
+
contents = map({
|
|
1006
1009
|
$metadata: deserializeMetadata(output),
|
|
1007
|
-
|
|
1008
|
-
appVersion: undefined,
|
|
1009
|
-
resourceMappings: undefined,
|
|
1010
|
-
};
|
|
1010
|
+
});
|
|
1011
1011
|
_a = __expectNonNull;
|
|
1012
1012
|
_b = __expectObject;
|
|
1013
1013
|
return [4, parseBody(output.body, context)];
|
|
1014
1014
|
case 1:
|
|
1015
1015
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1016
|
-
if (data.appArn
|
|
1016
|
+
if (data.appArn != null) {
|
|
1017
1017
|
contents.appArn = __expectString(data.appArn);
|
|
1018
1018
|
}
|
|
1019
|
-
if (data.appVersion
|
|
1019
|
+
if (data.appVersion != null) {
|
|
1020
1020
|
contents.appVersion = __expectString(data.appVersion);
|
|
1021
1021
|
}
|
|
1022
|
-
if (data.resourceMappings
|
|
1022
|
+
if (data.resourceMappings != null) {
|
|
1023
1023
|
contents.resourceMappings = deserializeAws_restJson1ResourceMappingList(data.resourceMappings, context);
|
|
1024
1024
|
}
|
|
1025
|
-
return [2,
|
|
1025
|
+
return [2, contents];
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
1028
|
}); };
|
|
1029
1029
|
var deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1030
|
-
var parsedOutput, _a,
|
|
1030
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1031
1031
|
var _c;
|
|
1032
1032
|
return __generator(this, function (_d) {
|
|
1033
1033
|
switch (_d.label) {
|
|
@@ -1068,14 +1068,14 @@ var deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = fun
|
|
|
1068
1068
|
case 13: throw _d.sent();
|
|
1069
1069
|
case 14:
|
|
1070
1070
|
parsedBody = parsedOutput.body;
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
$metadata: $metadata,
|
|
1071
|
+
throwDefaultError({
|
|
1072
|
+
output: output,
|
|
1073
|
+
parsedBody: parsedBody,
|
|
1074
|
+
exceptionCtor: __BaseException,
|
|
1075
|
+
errorCode: errorCode,
|
|
1077
1076
|
});
|
|
1078
|
-
|
|
1077
|
+
_d.label = 15;
|
|
1078
|
+
case 15: return [2];
|
|
1079
1079
|
}
|
|
1080
1080
|
});
|
|
1081
1081
|
}); };
|
|
@@ -1087,24 +1087,23 @@ export var deserializeAws_restJson1CreateAppCommand = function (output, context)
|
|
|
1087
1087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1088
1088
|
return [2, deserializeAws_restJson1CreateAppCommandError(output, context)];
|
|
1089
1089
|
}
|
|
1090
|
-
contents = {
|
|
1090
|
+
contents = map({
|
|
1091
1091
|
$metadata: deserializeMetadata(output),
|
|
1092
|
-
|
|
1093
|
-
};
|
|
1092
|
+
});
|
|
1094
1093
|
_a = __expectNonNull;
|
|
1095
1094
|
_b = __expectObject;
|
|
1096
1095
|
return [4, parseBody(output.body, context)];
|
|
1097
1096
|
case 1:
|
|
1098
1097
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1099
|
-
if (data.app
|
|
1098
|
+
if (data.app != null) {
|
|
1100
1099
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
1101
1100
|
}
|
|
1102
|
-
return [2,
|
|
1101
|
+
return [2, contents];
|
|
1103
1102
|
}
|
|
1104
1103
|
});
|
|
1105
1104
|
}); };
|
|
1106
1105
|
var deserializeAws_restJson1CreateAppCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1107
|
-
var parsedOutput, _a,
|
|
1106
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1108
1107
|
var _c;
|
|
1109
1108
|
return __generator(this, function (_d) {
|
|
1110
1109
|
switch (_d.label) {
|
|
@@ -1149,14 +1148,14 @@ var deserializeAws_restJson1CreateAppCommandError = function (output, context) {
|
|
|
1149
1148
|
case 15: throw _d.sent();
|
|
1150
1149
|
case 16:
|
|
1151
1150
|
parsedBody = parsedOutput.body;
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
$metadata: $metadata,
|
|
1151
|
+
throwDefaultError({
|
|
1152
|
+
output: output,
|
|
1153
|
+
parsedBody: parsedBody,
|
|
1154
|
+
exceptionCtor: __BaseException,
|
|
1155
|
+
errorCode: errorCode,
|
|
1158
1156
|
});
|
|
1159
|
-
|
|
1157
|
+
_d.label = 17;
|
|
1158
|
+
case 17: return [2];
|
|
1160
1159
|
}
|
|
1161
1160
|
});
|
|
1162
1161
|
}); };
|
|
@@ -1168,24 +1167,23 @@ export var deserializeAws_restJson1CreateRecommendationTemplateCommand = functio
|
|
|
1168
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1169
1168
|
return [2, deserializeAws_restJson1CreateRecommendationTemplateCommandError(output, context)];
|
|
1170
1169
|
}
|
|
1171
|
-
contents = {
|
|
1170
|
+
contents = map({
|
|
1172
1171
|
$metadata: deserializeMetadata(output),
|
|
1173
|
-
|
|
1174
|
-
};
|
|
1172
|
+
});
|
|
1175
1173
|
_a = __expectNonNull;
|
|
1176
1174
|
_b = __expectObject;
|
|
1177
1175
|
return [4, parseBody(output.body, context)];
|
|
1178
1176
|
case 1:
|
|
1179
1177
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1180
|
-
if (data.recommendationTemplate
|
|
1178
|
+
if (data.recommendationTemplate != null) {
|
|
1181
1179
|
contents.recommendationTemplate = deserializeAws_restJson1RecommendationTemplate(data.recommendationTemplate, context);
|
|
1182
1180
|
}
|
|
1183
|
-
return [2,
|
|
1181
|
+
return [2, contents];
|
|
1184
1182
|
}
|
|
1185
1183
|
});
|
|
1186
1184
|
}); };
|
|
1187
1185
|
var deserializeAws_restJson1CreateRecommendationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1188
|
-
var parsedOutput, _a,
|
|
1186
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1189
1187
|
var _c;
|
|
1190
1188
|
return __generator(this, function (_d) {
|
|
1191
1189
|
switch (_d.label) {
|
|
@@ -1226,14 +1224,14 @@ var deserializeAws_restJson1CreateRecommendationTemplateCommandError = function
|
|
|
1226
1224
|
case 13: throw _d.sent();
|
|
1227
1225
|
case 14:
|
|
1228
1226
|
parsedBody = parsedOutput.body;
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
$metadata: $metadata,
|
|
1227
|
+
throwDefaultError({
|
|
1228
|
+
output: output,
|
|
1229
|
+
parsedBody: parsedBody,
|
|
1230
|
+
exceptionCtor: __BaseException,
|
|
1231
|
+
errorCode: errorCode,
|
|
1235
1232
|
});
|
|
1236
|
-
|
|
1233
|
+
_d.label = 15;
|
|
1234
|
+
case 15: return [2];
|
|
1237
1235
|
}
|
|
1238
1236
|
});
|
|
1239
1237
|
}); };
|
|
@@ -1245,24 +1243,23 @@ export var deserializeAws_restJson1CreateResiliencyPolicyCommand = function (out
|
|
|
1245
1243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1246
1244
|
return [2, deserializeAws_restJson1CreateResiliencyPolicyCommandError(output, context)];
|
|
1247
1245
|
}
|
|
1248
|
-
contents = {
|
|
1246
|
+
contents = map({
|
|
1249
1247
|
$metadata: deserializeMetadata(output),
|
|
1250
|
-
|
|
1251
|
-
};
|
|
1248
|
+
});
|
|
1252
1249
|
_a = __expectNonNull;
|
|
1253
1250
|
_b = __expectObject;
|
|
1254
1251
|
return [4, parseBody(output.body, context)];
|
|
1255
1252
|
case 1:
|
|
1256
1253
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1257
|
-
if (data.policy
|
|
1254
|
+
if (data.policy != null) {
|
|
1258
1255
|
contents.policy = deserializeAws_restJson1ResiliencyPolicy(data.policy, context);
|
|
1259
1256
|
}
|
|
1260
|
-
return [2,
|
|
1257
|
+
return [2, contents];
|
|
1261
1258
|
}
|
|
1262
1259
|
});
|
|
1263
1260
|
}); };
|
|
1264
1261
|
var deserializeAws_restJson1CreateResiliencyPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1265
|
-
var parsedOutput, _a,
|
|
1262
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1266
1263
|
var _c;
|
|
1267
1264
|
return __generator(this, function (_d) {
|
|
1268
1265
|
switch (_d.label) {
|
|
@@ -1303,14 +1300,14 @@ var deserializeAws_restJson1CreateResiliencyPolicyCommandError = function (outpu
|
|
|
1303
1300
|
case 13: throw _d.sent();
|
|
1304
1301
|
case 14:
|
|
1305
1302
|
parsedBody = parsedOutput.body;
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
$metadata: $metadata,
|
|
1303
|
+
throwDefaultError({
|
|
1304
|
+
output: output,
|
|
1305
|
+
parsedBody: parsedBody,
|
|
1306
|
+
exceptionCtor: __BaseException,
|
|
1307
|
+
errorCode: errorCode,
|
|
1312
1308
|
});
|
|
1313
|
-
|
|
1309
|
+
_d.label = 15;
|
|
1310
|
+
case 15: return [2];
|
|
1314
1311
|
}
|
|
1315
1312
|
});
|
|
1316
1313
|
}); };
|
|
@@ -1322,24 +1319,23 @@ export var deserializeAws_restJson1DeleteAppCommand = function (output, context)
|
|
|
1322
1319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1323
1320
|
return [2, deserializeAws_restJson1DeleteAppCommandError(output, context)];
|
|
1324
1321
|
}
|
|
1325
|
-
contents = {
|
|
1322
|
+
contents = map({
|
|
1326
1323
|
$metadata: deserializeMetadata(output),
|
|
1327
|
-
|
|
1328
|
-
};
|
|
1324
|
+
});
|
|
1329
1325
|
_a = __expectNonNull;
|
|
1330
1326
|
_b = __expectObject;
|
|
1331
1327
|
return [4, parseBody(output.body, context)];
|
|
1332
1328
|
case 1:
|
|
1333
1329
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1334
|
-
if (data.appArn
|
|
1330
|
+
if (data.appArn != null) {
|
|
1335
1331
|
contents.appArn = __expectString(data.appArn);
|
|
1336
1332
|
}
|
|
1337
|
-
return [2,
|
|
1333
|
+
return [2, contents];
|
|
1338
1334
|
}
|
|
1339
1335
|
});
|
|
1340
1336
|
}); };
|
|
1341
1337
|
var deserializeAws_restJson1DeleteAppCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1342
|
-
var parsedOutput, _a,
|
|
1338
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1343
1339
|
var _c;
|
|
1344
1340
|
return __generator(this, function (_d) {
|
|
1345
1341
|
switch (_d.label) {
|
|
@@ -1376,14 +1372,14 @@ var deserializeAws_restJson1DeleteAppCommandError = function (output, context) {
|
|
|
1376
1372
|
case 11: throw _d.sent();
|
|
1377
1373
|
case 12:
|
|
1378
1374
|
parsedBody = parsedOutput.body;
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
$metadata: $metadata,
|
|
1375
|
+
throwDefaultError({
|
|
1376
|
+
output: output,
|
|
1377
|
+
parsedBody: parsedBody,
|
|
1378
|
+
exceptionCtor: __BaseException,
|
|
1379
|
+
errorCode: errorCode,
|
|
1385
1380
|
});
|
|
1386
|
-
|
|
1381
|
+
_d.label = 13;
|
|
1382
|
+
case 13: return [2];
|
|
1387
1383
|
}
|
|
1388
1384
|
});
|
|
1389
1385
|
}); };
|
|
@@ -1395,28 +1391,26 @@ export var deserializeAws_restJson1DeleteAppAssessmentCommand = function (output
|
|
|
1395
1391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1396
1392
|
return [2, deserializeAws_restJson1DeleteAppAssessmentCommandError(output, context)];
|
|
1397
1393
|
}
|
|
1398
|
-
contents = {
|
|
1394
|
+
contents = map({
|
|
1399
1395
|
$metadata: deserializeMetadata(output),
|
|
1400
|
-
|
|
1401
|
-
assessmentStatus: undefined,
|
|
1402
|
-
};
|
|
1396
|
+
});
|
|
1403
1397
|
_a = __expectNonNull;
|
|
1404
1398
|
_b = __expectObject;
|
|
1405
1399
|
return [4, parseBody(output.body, context)];
|
|
1406
1400
|
case 1:
|
|
1407
1401
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1408
|
-
if (data.assessmentArn
|
|
1402
|
+
if (data.assessmentArn != null) {
|
|
1409
1403
|
contents.assessmentArn = __expectString(data.assessmentArn);
|
|
1410
1404
|
}
|
|
1411
|
-
if (data.assessmentStatus
|
|
1405
|
+
if (data.assessmentStatus != null) {
|
|
1412
1406
|
contents.assessmentStatus = __expectString(data.assessmentStatus);
|
|
1413
1407
|
}
|
|
1414
|
-
return [2,
|
|
1408
|
+
return [2, contents];
|
|
1415
1409
|
}
|
|
1416
1410
|
});
|
|
1417
1411
|
}); };
|
|
1418
1412
|
var deserializeAws_restJson1DeleteAppAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1419
|
-
var parsedOutput, _a,
|
|
1413
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1420
1414
|
var _c;
|
|
1421
1415
|
return __generator(this, function (_d) {
|
|
1422
1416
|
switch (_d.label) {
|
|
@@ -1457,14 +1451,14 @@ var deserializeAws_restJson1DeleteAppAssessmentCommandError = function (output,
|
|
|
1457
1451
|
case 13: throw _d.sent();
|
|
1458
1452
|
case 14:
|
|
1459
1453
|
parsedBody = parsedOutput.body;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
$metadata: $metadata,
|
|
1454
|
+
throwDefaultError({
|
|
1455
|
+
output: output,
|
|
1456
|
+
parsedBody: parsedBody,
|
|
1457
|
+
exceptionCtor: __BaseException,
|
|
1458
|
+
errorCode: errorCode,
|
|
1466
1459
|
});
|
|
1467
|
-
|
|
1460
|
+
_d.label = 15;
|
|
1461
|
+
case 15: return [2];
|
|
1468
1462
|
}
|
|
1469
1463
|
});
|
|
1470
1464
|
}); };
|
|
@@ -1476,28 +1470,26 @@ export var deserializeAws_restJson1DeleteRecommendationTemplateCommand = functio
|
|
|
1476
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1477
1471
|
return [2, deserializeAws_restJson1DeleteRecommendationTemplateCommandError(output, context)];
|
|
1478
1472
|
}
|
|
1479
|
-
contents = {
|
|
1473
|
+
contents = map({
|
|
1480
1474
|
$metadata: deserializeMetadata(output),
|
|
1481
|
-
|
|
1482
|
-
status: undefined,
|
|
1483
|
-
};
|
|
1475
|
+
});
|
|
1484
1476
|
_a = __expectNonNull;
|
|
1485
1477
|
_b = __expectObject;
|
|
1486
1478
|
return [4, parseBody(output.body, context)];
|
|
1487
1479
|
case 1:
|
|
1488
1480
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1489
|
-
if (data.recommendationTemplateArn
|
|
1481
|
+
if (data.recommendationTemplateArn != null) {
|
|
1490
1482
|
contents.recommendationTemplateArn = __expectString(data.recommendationTemplateArn);
|
|
1491
1483
|
}
|
|
1492
|
-
if (data.status
|
|
1484
|
+
if (data.status != null) {
|
|
1493
1485
|
contents.status = __expectString(data.status);
|
|
1494
1486
|
}
|
|
1495
|
-
return [2,
|
|
1487
|
+
return [2, contents];
|
|
1496
1488
|
}
|
|
1497
1489
|
});
|
|
1498
1490
|
}); };
|
|
1499
1491
|
var deserializeAws_restJson1DeleteRecommendationTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1500
|
-
var parsedOutput, _a,
|
|
1492
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1501
1493
|
var _c;
|
|
1502
1494
|
return __generator(this, function (_d) {
|
|
1503
1495
|
switch (_d.label) {
|
|
@@ -1534,14 +1526,14 @@ var deserializeAws_restJson1DeleteRecommendationTemplateCommandError = function
|
|
|
1534
1526
|
case 11: throw _d.sent();
|
|
1535
1527
|
case 12:
|
|
1536
1528
|
parsedBody = parsedOutput.body;
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
$metadata: $metadata,
|
|
1529
|
+
throwDefaultError({
|
|
1530
|
+
output: output,
|
|
1531
|
+
parsedBody: parsedBody,
|
|
1532
|
+
exceptionCtor: __BaseException,
|
|
1533
|
+
errorCode: errorCode,
|
|
1543
1534
|
});
|
|
1544
|
-
|
|
1535
|
+
_d.label = 13;
|
|
1536
|
+
case 13: return [2];
|
|
1545
1537
|
}
|
|
1546
1538
|
});
|
|
1547
1539
|
}); };
|
|
@@ -1553,24 +1545,23 @@ export var deserializeAws_restJson1DeleteResiliencyPolicyCommand = function (out
|
|
|
1553
1545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1554
1546
|
return [2, deserializeAws_restJson1DeleteResiliencyPolicyCommandError(output, context)];
|
|
1555
1547
|
}
|
|
1556
|
-
contents = {
|
|
1548
|
+
contents = map({
|
|
1557
1549
|
$metadata: deserializeMetadata(output),
|
|
1558
|
-
|
|
1559
|
-
};
|
|
1550
|
+
});
|
|
1560
1551
|
_a = __expectNonNull;
|
|
1561
1552
|
_b = __expectObject;
|
|
1562
1553
|
return [4, parseBody(output.body, context)];
|
|
1563
1554
|
case 1:
|
|
1564
1555
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1565
|
-
if (data.policyArn
|
|
1556
|
+
if (data.policyArn != null) {
|
|
1566
1557
|
contents.policyArn = __expectString(data.policyArn);
|
|
1567
1558
|
}
|
|
1568
|
-
return [2,
|
|
1559
|
+
return [2, contents];
|
|
1569
1560
|
}
|
|
1570
1561
|
});
|
|
1571
1562
|
}); };
|
|
1572
1563
|
var deserializeAws_restJson1DeleteResiliencyPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1573
|
-
var parsedOutput, _a,
|
|
1564
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1574
1565
|
var _c;
|
|
1575
1566
|
return __generator(this, function (_d) {
|
|
1576
1567
|
switch (_d.label) {
|
|
@@ -1611,14 +1602,14 @@ var deserializeAws_restJson1DeleteResiliencyPolicyCommandError = function (outpu
|
|
|
1611
1602
|
case 13: throw _d.sent();
|
|
1612
1603
|
case 14:
|
|
1613
1604
|
parsedBody = parsedOutput.body;
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
$metadata: $metadata,
|
|
1605
|
+
throwDefaultError({
|
|
1606
|
+
output: output,
|
|
1607
|
+
parsedBody: parsedBody,
|
|
1608
|
+
exceptionCtor: __BaseException,
|
|
1609
|
+
errorCode: errorCode,
|
|
1620
1610
|
});
|
|
1621
|
-
|
|
1611
|
+
_d.label = 15;
|
|
1612
|
+
case 15: return [2];
|
|
1622
1613
|
}
|
|
1623
1614
|
});
|
|
1624
1615
|
}); };
|
|
@@ -1630,24 +1621,23 @@ export var deserializeAws_restJson1DescribeAppCommand = function (output, contex
|
|
|
1630
1621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1631
1622
|
return [2, deserializeAws_restJson1DescribeAppCommandError(output, context)];
|
|
1632
1623
|
}
|
|
1633
|
-
contents = {
|
|
1624
|
+
contents = map({
|
|
1634
1625
|
$metadata: deserializeMetadata(output),
|
|
1635
|
-
|
|
1636
|
-
};
|
|
1626
|
+
});
|
|
1637
1627
|
_a = __expectNonNull;
|
|
1638
1628
|
_b = __expectObject;
|
|
1639
1629
|
return [4, parseBody(output.body, context)];
|
|
1640
1630
|
case 1:
|
|
1641
1631
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1642
|
-
if (data.app
|
|
1632
|
+
if (data.app != null) {
|
|
1643
1633
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
1644
1634
|
}
|
|
1645
|
-
return [2,
|
|
1635
|
+
return [2, contents];
|
|
1646
1636
|
}
|
|
1647
1637
|
});
|
|
1648
1638
|
}); };
|
|
1649
1639
|
var deserializeAws_restJson1DescribeAppCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1650
|
-
var parsedOutput, _a,
|
|
1640
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1651
1641
|
var _c;
|
|
1652
1642
|
return __generator(this, function (_d) {
|
|
1653
1643
|
switch (_d.label) {
|
|
@@ -1684,14 +1674,14 @@ var deserializeAws_restJson1DescribeAppCommandError = function (output, context)
|
|
|
1684
1674
|
case 11: throw _d.sent();
|
|
1685
1675
|
case 12:
|
|
1686
1676
|
parsedBody = parsedOutput.body;
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
$metadata: $metadata,
|
|
1677
|
+
throwDefaultError({
|
|
1678
|
+
output: output,
|
|
1679
|
+
parsedBody: parsedBody,
|
|
1680
|
+
exceptionCtor: __BaseException,
|
|
1681
|
+
errorCode: errorCode,
|
|
1693
1682
|
});
|
|
1694
|
-
|
|
1683
|
+
_d.label = 13;
|
|
1684
|
+
case 13: return [2];
|
|
1695
1685
|
}
|
|
1696
1686
|
});
|
|
1697
1687
|
}); };
|
|
@@ -1703,24 +1693,23 @@ export var deserializeAws_restJson1DescribeAppAssessmentCommand = function (outp
|
|
|
1703
1693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1704
1694
|
return [2, deserializeAws_restJson1DescribeAppAssessmentCommandError(output, context)];
|
|
1705
1695
|
}
|
|
1706
|
-
contents = {
|
|
1696
|
+
contents = map({
|
|
1707
1697
|
$metadata: deserializeMetadata(output),
|
|
1708
|
-
|
|
1709
|
-
};
|
|
1698
|
+
});
|
|
1710
1699
|
_a = __expectNonNull;
|
|
1711
1700
|
_b = __expectObject;
|
|
1712
1701
|
return [4, parseBody(output.body, context)];
|
|
1713
1702
|
case 1:
|
|
1714
1703
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1715
|
-
if (data.assessment
|
|
1704
|
+
if (data.assessment != null) {
|
|
1716
1705
|
contents.assessment = deserializeAws_restJson1AppAssessment(data.assessment, context);
|
|
1717
1706
|
}
|
|
1718
|
-
return [2,
|
|
1707
|
+
return [2, contents];
|
|
1719
1708
|
}
|
|
1720
1709
|
});
|
|
1721
1710
|
}); };
|
|
1722
1711
|
var deserializeAws_restJson1DescribeAppAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1723
|
-
var parsedOutput, _a,
|
|
1712
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1724
1713
|
var _c;
|
|
1725
1714
|
return __generator(this, function (_d) {
|
|
1726
1715
|
switch (_d.label) {
|
|
@@ -1757,14 +1746,14 @@ var deserializeAws_restJson1DescribeAppAssessmentCommandError = function (output
|
|
|
1757
1746
|
case 11: throw _d.sent();
|
|
1758
1747
|
case 12:
|
|
1759
1748
|
parsedBody = parsedOutput.body;
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
$metadata: $metadata,
|
|
1749
|
+
throwDefaultError({
|
|
1750
|
+
output: output,
|
|
1751
|
+
parsedBody: parsedBody,
|
|
1752
|
+
exceptionCtor: __BaseException,
|
|
1753
|
+
errorCode: errorCode,
|
|
1766
1754
|
});
|
|
1767
|
-
|
|
1755
|
+
_d.label = 13;
|
|
1756
|
+
case 13: return [2];
|
|
1768
1757
|
}
|
|
1769
1758
|
});
|
|
1770
1759
|
}); };
|
|
@@ -1776,40 +1765,35 @@ export var deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCo
|
|
|
1776
1765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1777
1766
|
return [2, deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommandError(output, context)];
|
|
1778
1767
|
}
|
|
1779
|
-
contents = {
|
|
1768
|
+
contents = map({
|
|
1780
1769
|
$metadata: deserializeMetadata(output),
|
|
1781
|
-
|
|
1782
|
-
appVersion: undefined,
|
|
1783
|
-
errorMessage: undefined,
|
|
1784
|
-
resolutionId: undefined,
|
|
1785
|
-
status: undefined,
|
|
1786
|
-
};
|
|
1770
|
+
});
|
|
1787
1771
|
_a = __expectNonNull;
|
|
1788
1772
|
_b = __expectObject;
|
|
1789
1773
|
return [4, parseBody(output.body, context)];
|
|
1790
1774
|
case 1:
|
|
1791
1775
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1792
|
-
if (data.appArn
|
|
1776
|
+
if (data.appArn != null) {
|
|
1793
1777
|
contents.appArn = __expectString(data.appArn);
|
|
1794
1778
|
}
|
|
1795
|
-
if (data.appVersion
|
|
1779
|
+
if (data.appVersion != null) {
|
|
1796
1780
|
contents.appVersion = __expectString(data.appVersion);
|
|
1797
1781
|
}
|
|
1798
|
-
if (data.errorMessage
|
|
1782
|
+
if (data.errorMessage != null) {
|
|
1799
1783
|
contents.errorMessage = __expectString(data.errorMessage);
|
|
1800
1784
|
}
|
|
1801
|
-
if (data.resolutionId
|
|
1785
|
+
if (data.resolutionId != null) {
|
|
1802
1786
|
contents.resolutionId = __expectString(data.resolutionId);
|
|
1803
1787
|
}
|
|
1804
|
-
if (data.status
|
|
1788
|
+
if (data.status != null) {
|
|
1805
1789
|
contents.status = __expectString(data.status);
|
|
1806
1790
|
}
|
|
1807
|
-
return [2,
|
|
1791
|
+
return [2, contents];
|
|
1808
1792
|
}
|
|
1809
1793
|
});
|
|
1810
1794
|
}); };
|
|
1811
1795
|
var deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1812
|
-
var parsedOutput, _a,
|
|
1796
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1813
1797
|
var _c;
|
|
1814
1798
|
return __generator(this, function (_d) {
|
|
1815
1799
|
switch (_d.label) {
|
|
@@ -1846,14 +1830,14 @@ var deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommandEr
|
|
|
1846
1830
|
case 11: throw _d.sent();
|
|
1847
1831
|
case 12:
|
|
1848
1832
|
parsedBody = parsedOutput.body;
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
$metadata: $metadata,
|
|
1833
|
+
throwDefaultError({
|
|
1834
|
+
output: output,
|
|
1835
|
+
parsedBody: parsedBody,
|
|
1836
|
+
exceptionCtor: __BaseException,
|
|
1837
|
+
errorCode: errorCode,
|
|
1855
1838
|
});
|
|
1856
|
-
|
|
1839
|
+
_d.label = 13;
|
|
1840
|
+
case 13: return [2];
|
|
1857
1841
|
}
|
|
1858
1842
|
});
|
|
1859
1843
|
}); };
|
|
@@ -1865,32 +1849,29 @@ export var deserializeAws_restJson1DescribeAppVersionTemplateCommand = function
|
|
|
1865
1849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1866
1850
|
return [2, deserializeAws_restJson1DescribeAppVersionTemplateCommandError(output, context)];
|
|
1867
1851
|
}
|
|
1868
|
-
contents = {
|
|
1852
|
+
contents = map({
|
|
1869
1853
|
$metadata: deserializeMetadata(output),
|
|
1870
|
-
|
|
1871
|
-
appTemplateBody: undefined,
|
|
1872
|
-
appVersion: undefined,
|
|
1873
|
-
};
|
|
1854
|
+
});
|
|
1874
1855
|
_a = __expectNonNull;
|
|
1875
1856
|
_b = __expectObject;
|
|
1876
1857
|
return [4, parseBody(output.body, context)];
|
|
1877
1858
|
case 1:
|
|
1878
1859
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1879
|
-
if (data.appArn
|
|
1860
|
+
if (data.appArn != null) {
|
|
1880
1861
|
contents.appArn = __expectString(data.appArn);
|
|
1881
1862
|
}
|
|
1882
|
-
if (data.appTemplateBody
|
|
1863
|
+
if (data.appTemplateBody != null) {
|
|
1883
1864
|
contents.appTemplateBody = __expectString(data.appTemplateBody);
|
|
1884
1865
|
}
|
|
1885
|
-
if (data.appVersion
|
|
1866
|
+
if (data.appVersion != null) {
|
|
1886
1867
|
contents.appVersion = __expectString(data.appVersion);
|
|
1887
1868
|
}
|
|
1888
|
-
return [2,
|
|
1869
|
+
return [2, contents];
|
|
1889
1870
|
}
|
|
1890
1871
|
});
|
|
1891
1872
|
}); };
|
|
1892
1873
|
var deserializeAws_restJson1DescribeAppVersionTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1893
|
-
var parsedOutput, _a,
|
|
1874
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1894
1875
|
var _c;
|
|
1895
1876
|
return __generator(this, function (_d) {
|
|
1896
1877
|
switch (_d.label) {
|
|
@@ -1927,14 +1908,14 @@ var deserializeAws_restJson1DescribeAppVersionTemplateCommandError = function (o
|
|
|
1927
1908
|
case 11: throw _d.sent();
|
|
1928
1909
|
case 12:
|
|
1929
1910
|
parsedBody = parsedOutput.body;
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
$metadata: $metadata,
|
|
1911
|
+
throwDefaultError({
|
|
1912
|
+
output: output,
|
|
1913
|
+
parsedBody: parsedBody,
|
|
1914
|
+
exceptionCtor: __BaseException,
|
|
1915
|
+
errorCode: errorCode,
|
|
1936
1916
|
});
|
|
1937
|
-
|
|
1917
|
+
_d.label = 13;
|
|
1918
|
+
case 13: return [2];
|
|
1938
1919
|
}
|
|
1939
1920
|
});
|
|
1940
1921
|
}); };
|
|
@@ -1946,40 +1927,35 @@ export var deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusC
|
|
|
1946
1927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1947
1928
|
return [2, deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommandError(output, context)];
|
|
1948
1929
|
}
|
|
1949
|
-
contents = {
|
|
1930
|
+
contents = map({
|
|
1950
1931
|
$metadata: deserializeMetadata(output),
|
|
1951
|
-
|
|
1952
|
-
appVersion: undefined,
|
|
1953
|
-
errorMessage: undefined,
|
|
1954
|
-
status: undefined,
|
|
1955
|
-
statusChangeTime: undefined,
|
|
1956
|
-
};
|
|
1932
|
+
});
|
|
1957
1933
|
_a = __expectNonNull;
|
|
1958
1934
|
_b = __expectObject;
|
|
1959
1935
|
return [4, parseBody(output.body, context)];
|
|
1960
1936
|
case 1:
|
|
1961
1937
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1962
|
-
if (data.appArn
|
|
1938
|
+
if (data.appArn != null) {
|
|
1963
1939
|
contents.appArn = __expectString(data.appArn);
|
|
1964
1940
|
}
|
|
1965
|
-
if (data.appVersion
|
|
1941
|
+
if (data.appVersion != null) {
|
|
1966
1942
|
contents.appVersion = __expectString(data.appVersion);
|
|
1967
1943
|
}
|
|
1968
|
-
if (data.errorMessage
|
|
1944
|
+
if (data.errorMessage != null) {
|
|
1969
1945
|
contents.errorMessage = __expectString(data.errorMessage);
|
|
1970
1946
|
}
|
|
1971
|
-
if (data.status
|
|
1947
|
+
if (data.status != null) {
|
|
1972
1948
|
contents.status = __expectString(data.status);
|
|
1973
1949
|
}
|
|
1974
|
-
if (data.statusChangeTime
|
|
1950
|
+
if (data.statusChangeTime != null) {
|
|
1975
1951
|
contents.statusChangeTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.statusChangeTime)));
|
|
1976
1952
|
}
|
|
1977
|
-
return [2,
|
|
1953
|
+
return [2, contents];
|
|
1978
1954
|
}
|
|
1979
1955
|
});
|
|
1980
1956
|
}); };
|
|
1981
1957
|
var deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1982
|
-
var parsedOutput, _a,
|
|
1958
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1983
1959
|
var _c;
|
|
1984
1960
|
return __generator(this, function (_d) {
|
|
1985
1961
|
switch (_d.label) {
|
|
@@ -2016,14 +1992,14 @@ var deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommandE
|
|
|
2016
1992
|
case 11: throw _d.sent();
|
|
2017
1993
|
case 12:
|
|
2018
1994
|
parsedBody = parsedOutput.body;
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
$metadata: $metadata,
|
|
1995
|
+
throwDefaultError({
|
|
1996
|
+
output: output,
|
|
1997
|
+
parsedBody: parsedBody,
|
|
1998
|
+
exceptionCtor: __BaseException,
|
|
1999
|
+
errorCode: errorCode,
|
|
2025
2000
|
});
|
|
2026
|
-
|
|
2001
|
+
_d.label = 13;
|
|
2002
|
+
case 13: return [2];
|
|
2027
2003
|
}
|
|
2028
2004
|
});
|
|
2029
2005
|
}); };
|
|
@@ -2035,24 +2011,23 @@ export var deserializeAws_restJson1DescribeResiliencyPolicyCommand = function (o
|
|
|
2035
2011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2036
2012
|
return [2, deserializeAws_restJson1DescribeResiliencyPolicyCommandError(output, context)];
|
|
2037
2013
|
}
|
|
2038
|
-
contents = {
|
|
2014
|
+
contents = map({
|
|
2039
2015
|
$metadata: deserializeMetadata(output),
|
|
2040
|
-
|
|
2041
|
-
};
|
|
2016
|
+
});
|
|
2042
2017
|
_a = __expectNonNull;
|
|
2043
2018
|
_b = __expectObject;
|
|
2044
2019
|
return [4, parseBody(output.body, context)];
|
|
2045
2020
|
case 1:
|
|
2046
2021
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2047
|
-
if (data.policy
|
|
2022
|
+
if (data.policy != null) {
|
|
2048
2023
|
contents.policy = deserializeAws_restJson1ResiliencyPolicy(data.policy, context);
|
|
2049
2024
|
}
|
|
2050
|
-
return [2,
|
|
2025
|
+
return [2, contents];
|
|
2051
2026
|
}
|
|
2052
2027
|
});
|
|
2053
2028
|
}); };
|
|
2054
2029
|
var deserializeAws_restJson1DescribeResiliencyPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2055
|
-
var parsedOutput, _a,
|
|
2030
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2056
2031
|
var _c;
|
|
2057
2032
|
return __generator(this, function (_d) {
|
|
2058
2033
|
switch (_d.label) {
|
|
@@ -2089,14 +2064,14 @@ var deserializeAws_restJson1DescribeResiliencyPolicyCommandError = function (out
|
|
|
2089
2064
|
case 11: throw _d.sent();
|
|
2090
2065
|
case 12:
|
|
2091
2066
|
parsedBody = parsedOutput.body;
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
$metadata: $metadata,
|
|
2067
|
+
throwDefaultError({
|
|
2068
|
+
output: output,
|
|
2069
|
+
parsedBody: parsedBody,
|
|
2070
|
+
exceptionCtor: __BaseException,
|
|
2071
|
+
errorCode: errorCode,
|
|
2098
2072
|
});
|
|
2099
|
-
|
|
2073
|
+
_d.label = 13;
|
|
2074
|
+
case 13: return [2];
|
|
2100
2075
|
}
|
|
2101
2076
|
});
|
|
2102
2077
|
}); };
|
|
@@ -2108,40 +2083,35 @@ export var deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = fun
|
|
|
2108
2083
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2109
2084
|
return [2, deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError(output, context)];
|
|
2110
2085
|
}
|
|
2111
|
-
contents = {
|
|
2086
|
+
contents = map({
|
|
2112
2087
|
$metadata: deserializeMetadata(output),
|
|
2113
|
-
|
|
2114
|
-
appVersion: undefined,
|
|
2115
|
-
sourceArns: undefined,
|
|
2116
|
-
status: undefined,
|
|
2117
|
-
terraformSources: undefined,
|
|
2118
|
-
};
|
|
2088
|
+
});
|
|
2119
2089
|
_a = __expectNonNull;
|
|
2120
2090
|
_b = __expectObject;
|
|
2121
2091
|
return [4, parseBody(output.body, context)];
|
|
2122
2092
|
case 1:
|
|
2123
2093
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2124
|
-
if (data.appArn
|
|
2094
|
+
if (data.appArn != null) {
|
|
2125
2095
|
contents.appArn = __expectString(data.appArn);
|
|
2126
2096
|
}
|
|
2127
|
-
if (data.appVersion
|
|
2097
|
+
if (data.appVersion != null) {
|
|
2128
2098
|
contents.appVersion = __expectString(data.appVersion);
|
|
2129
2099
|
}
|
|
2130
|
-
if (data.sourceArns
|
|
2100
|
+
if (data.sourceArns != null) {
|
|
2131
2101
|
contents.sourceArns = deserializeAws_restJson1ArnList(data.sourceArns, context);
|
|
2132
2102
|
}
|
|
2133
|
-
if (data.status
|
|
2103
|
+
if (data.status != null) {
|
|
2134
2104
|
contents.status = __expectString(data.status);
|
|
2135
2105
|
}
|
|
2136
|
-
if (data.terraformSources
|
|
2106
|
+
if (data.terraformSources != null) {
|
|
2137
2107
|
contents.terraformSources = deserializeAws_restJson1TerraformSourceList(data.terraformSources, context);
|
|
2138
2108
|
}
|
|
2139
|
-
return [2,
|
|
2109
|
+
return [2, contents];
|
|
2140
2110
|
}
|
|
2141
2111
|
});
|
|
2142
2112
|
}); };
|
|
2143
2113
|
var deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2144
|
-
var parsedOutput, _a,
|
|
2114
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2145
2115
|
var _c;
|
|
2146
2116
|
return __generator(this, function (_d) {
|
|
2147
2117
|
switch (_d.label) {
|
|
@@ -2182,14 +2152,14 @@ var deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = funct
|
|
|
2182
2152
|
case 13: throw _d.sent();
|
|
2183
2153
|
case 14:
|
|
2184
2154
|
parsedBody = parsedOutput.body;
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
$metadata: $metadata,
|
|
2155
|
+
throwDefaultError({
|
|
2156
|
+
output: output,
|
|
2157
|
+
parsedBody: parsedBody,
|
|
2158
|
+
exceptionCtor: __BaseException,
|
|
2159
|
+
errorCode: errorCode,
|
|
2191
2160
|
});
|
|
2192
|
-
|
|
2161
|
+
_d.label = 15;
|
|
2162
|
+
case 15: return [2];
|
|
2193
2163
|
}
|
|
2194
2164
|
});
|
|
2195
2165
|
}); };
|
|
@@ -2201,28 +2171,26 @@ export var deserializeAws_restJson1ListAlarmRecommendationsCommand = function (o
|
|
|
2201
2171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2202
2172
|
return [2, deserializeAws_restJson1ListAlarmRecommendationsCommandError(output, context)];
|
|
2203
2173
|
}
|
|
2204
|
-
contents = {
|
|
2174
|
+
contents = map({
|
|
2205
2175
|
$metadata: deserializeMetadata(output),
|
|
2206
|
-
|
|
2207
|
-
nextToken: undefined,
|
|
2208
|
-
};
|
|
2176
|
+
});
|
|
2209
2177
|
_a = __expectNonNull;
|
|
2210
2178
|
_b = __expectObject;
|
|
2211
2179
|
return [4, parseBody(output.body, context)];
|
|
2212
2180
|
case 1:
|
|
2213
2181
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2214
|
-
if (data.alarmRecommendations
|
|
2182
|
+
if (data.alarmRecommendations != null) {
|
|
2215
2183
|
contents.alarmRecommendations = deserializeAws_restJson1AlarmRecommendationList(data.alarmRecommendations, context);
|
|
2216
2184
|
}
|
|
2217
|
-
if (data.nextToken
|
|
2185
|
+
if (data.nextToken != null) {
|
|
2218
2186
|
contents.nextToken = __expectString(data.nextToken);
|
|
2219
2187
|
}
|
|
2220
|
-
return [2,
|
|
2188
|
+
return [2, contents];
|
|
2221
2189
|
}
|
|
2222
2190
|
});
|
|
2223
2191
|
}); };
|
|
2224
2192
|
var deserializeAws_restJson1ListAlarmRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2225
|
-
var parsedOutput, _a,
|
|
2193
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2226
2194
|
var _c;
|
|
2227
2195
|
return __generator(this, function (_d) {
|
|
2228
2196
|
switch (_d.label) {
|
|
@@ -2259,14 +2227,14 @@ var deserializeAws_restJson1ListAlarmRecommendationsCommandError = function (out
|
|
|
2259
2227
|
case 11: throw _d.sent();
|
|
2260
2228
|
case 12:
|
|
2261
2229
|
parsedBody = parsedOutput.body;
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
$metadata: $metadata,
|
|
2230
|
+
throwDefaultError({
|
|
2231
|
+
output: output,
|
|
2232
|
+
parsedBody: parsedBody,
|
|
2233
|
+
exceptionCtor: __BaseException,
|
|
2234
|
+
errorCode: errorCode,
|
|
2268
2235
|
});
|
|
2269
|
-
|
|
2236
|
+
_d.label = 13;
|
|
2237
|
+
case 13: return [2];
|
|
2270
2238
|
}
|
|
2271
2239
|
});
|
|
2272
2240
|
}); };
|
|
@@ -2278,28 +2246,26 @@ export var deserializeAws_restJson1ListAppAssessmentsCommand = function (output,
|
|
|
2278
2246
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2279
2247
|
return [2, deserializeAws_restJson1ListAppAssessmentsCommandError(output, context)];
|
|
2280
2248
|
}
|
|
2281
|
-
contents = {
|
|
2249
|
+
contents = map({
|
|
2282
2250
|
$metadata: deserializeMetadata(output),
|
|
2283
|
-
|
|
2284
|
-
nextToken: undefined,
|
|
2285
|
-
};
|
|
2251
|
+
});
|
|
2286
2252
|
_a = __expectNonNull;
|
|
2287
2253
|
_b = __expectObject;
|
|
2288
2254
|
return [4, parseBody(output.body, context)];
|
|
2289
2255
|
case 1:
|
|
2290
2256
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2291
|
-
if (data.assessmentSummaries
|
|
2257
|
+
if (data.assessmentSummaries != null) {
|
|
2292
2258
|
contents.assessmentSummaries = deserializeAws_restJson1AppAssessmentSummaryList(data.assessmentSummaries, context);
|
|
2293
2259
|
}
|
|
2294
|
-
if (data.nextToken
|
|
2260
|
+
if (data.nextToken != null) {
|
|
2295
2261
|
contents.nextToken = __expectString(data.nextToken);
|
|
2296
2262
|
}
|
|
2297
|
-
return [2,
|
|
2263
|
+
return [2, contents];
|
|
2298
2264
|
}
|
|
2299
2265
|
});
|
|
2300
2266
|
}); };
|
|
2301
2267
|
var deserializeAws_restJson1ListAppAssessmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2302
|
-
var parsedOutput, _a,
|
|
2268
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2303
2269
|
var _c;
|
|
2304
2270
|
return __generator(this, function (_d) {
|
|
2305
2271
|
switch (_d.label) {
|
|
@@ -2336,14 +2302,14 @@ var deserializeAws_restJson1ListAppAssessmentsCommandError = function (output, c
|
|
|
2336
2302
|
case 11: throw _d.sent();
|
|
2337
2303
|
case 12:
|
|
2338
2304
|
parsedBody = parsedOutput.body;
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
$metadata: $metadata,
|
|
2305
|
+
throwDefaultError({
|
|
2306
|
+
output: output,
|
|
2307
|
+
parsedBody: parsedBody,
|
|
2308
|
+
exceptionCtor: __BaseException,
|
|
2309
|
+
errorCode: errorCode,
|
|
2345
2310
|
});
|
|
2346
|
-
|
|
2311
|
+
_d.label = 13;
|
|
2312
|
+
case 13: return [2];
|
|
2347
2313
|
}
|
|
2348
2314
|
});
|
|
2349
2315
|
}); };
|
|
@@ -2355,28 +2321,26 @@ export var deserializeAws_restJson1ListAppComponentCompliancesCommand = function
|
|
|
2355
2321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2356
2322
|
return [2, deserializeAws_restJson1ListAppComponentCompliancesCommandError(output, context)];
|
|
2357
2323
|
}
|
|
2358
|
-
contents = {
|
|
2324
|
+
contents = map({
|
|
2359
2325
|
$metadata: deserializeMetadata(output),
|
|
2360
|
-
|
|
2361
|
-
nextToken: undefined,
|
|
2362
|
-
};
|
|
2326
|
+
});
|
|
2363
2327
|
_a = __expectNonNull;
|
|
2364
2328
|
_b = __expectObject;
|
|
2365
2329
|
return [4, parseBody(output.body, context)];
|
|
2366
2330
|
case 1:
|
|
2367
2331
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2368
|
-
if (data.componentCompliances
|
|
2332
|
+
if (data.componentCompliances != null) {
|
|
2369
2333
|
contents.componentCompliances = deserializeAws_restJson1ComponentCompliancesList(data.componentCompliances, context);
|
|
2370
2334
|
}
|
|
2371
|
-
if (data.nextToken
|
|
2335
|
+
if (data.nextToken != null) {
|
|
2372
2336
|
contents.nextToken = __expectString(data.nextToken);
|
|
2373
2337
|
}
|
|
2374
|
-
return [2,
|
|
2338
|
+
return [2, contents];
|
|
2375
2339
|
}
|
|
2376
2340
|
});
|
|
2377
2341
|
}); };
|
|
2378
2342
|
var deserializeAws_restJson1ListAppComponentCompliancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2379
|
-
var parsedOutput, _a,
|
|
2343
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2380
2344
|
var _c;
|
|
2381
2345
|
return __generator(this, function (_d) {
|
|
2382
2346
|
switch (_d.label) {
|
|
@@ -2413,14 +2377,14 @@ var deserializeAws_restJson1ListAppComponentCompliancesCommandError = function (
|
|
|
2413
2377
|
case 11: throw _d.sent();
|
|
2414
2378
|
case 12:
|
|
2415
2379
|
parsedBody = parsedOutput.body;
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
$metadata: $metadata,
|
|
2380
|
+
throwDefaultError({
|
|
2381
|
+
output: output,
|
|
2382
|
+
parsedBody: parsedBody,
|
|
2383
|
+
exceptionCtor: __BaseException,
|
|
2384
|
+
errorCode: errorCode,
|
|
2422
2385
|
});
|
|
2423
|
-
|
|
2386
|
+
_d.label = 13;
|
|
2387
|
+
case 13: return [2];
|
|
2424
2388
|
}
|
|
2425
2389
|
});
|
|
2426
2390
|
}); };
|
|
@@ -2432,28 +2396,26 @@ export var deserializeAws_restJson1ListAppComponentRecommendationsCommand = func
|
|
|
2432
2396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2433
2397
|
return [2, deserializeAws_restJson1ListAppComponentRecommendationsCommandError(output, context)];
|
|
2434
2398
|
}
|
|
2435
|
-
contents = {
|
|
2399
|
+
contents = map({
|
|
2436
2400
|
$metadata: deserializeMetadata(output),
|
|
2437
|
-
|
|
2438
|
-
nextToken: undefined,
|
|
2439
|
-
};
|
|
2401
|
+
});
|
|
2440
2402
|
_a = __expectNonNull;
|
|
2441
2403
|
_b = __expectObject;
|
|
2442
2404
|
return [4, parseBody(output.body, context)];
|
|
2443
2405
|
case 1:
|
|
2444
2406
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2445
|
-
if (data.componentRecommendations
|
|
2407
|
+
if (data.componentRecommendations != null) {
|
|
2446
2408
|
contents.componentRecommendations = deserializeAws_restJson1ComponentRecommendationList(data.componentRecommendations, context);
|
|
2447
2409
|
}
|
|
2448
|
-
if (data.nextToken
|
|
2410
|
+
if (data.nextToken != null) {
|
|
2449
2411
|
contents.nextToken = __expectString(data.nextToken);
|
|
2450
2412
|
}
|
|
2451
|
-
return [2,
|
|
2413
|
+
return [2, contents];
|
|
2452
2414
|
}
|
|
2453
2415
|
});
|
|
2454
2416
|
}); };
|
|
2455
2417
|
var deserializeAws_restJson1ListAppComponentRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2456
|
-
var parsedOutput, _a,
|
|
2418
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2457
2419
|
var _c;
|
|
2458
2420
|
return __generator(this, function (_d) {
|
|
2459
2421
|
switch (_d.label) {
|
|
@@ -2490,14 +2452,14 @@ var deserializeAws_restJson1ListAppComponentRecommendationsCommandError = functi
|
|
|
2490
2452
|
case 11: throw _d.sent();
|
|
2491
2453
|
case 12:
|
|
2492
2454
|
parsedBody = parsedOutput.body;
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
$metadata: $metadata,
|
|
2455
|
+
throwDefaultError({
|
|
2456
|
+
output: output,
|
|
2457
|
+
parsedBody: parsedBody,
|
|
2458
|
+
exceptionCtor: __BaseException,
|
|
2459
|
+
errorCode: errorCode,
|
|
2499
2460
|
});
|
|
2500
|
-
|
|
2461
|
+
_d.label = 13;
|
|
2462
|
+
case 13: return [2];
|
|
2501
2463
|
}
|
|
2502
2464
|
});
|
|
2503
2465
|
}); };
|
|
@@ -2509,28 +2471,26 @@ export var deserializeAws_restJson1ListAppsCommand = function (output, context)
|
|
|
2509
2471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2510
2472
|
return [2, deserializeAws_restJson1ListAppsCommandError(output, context)];
|
|
2511
2473
|
}
|
|
2512
|
-
contents = {
|
|
2474
|
+
contents = map({
|
|
2513
2475
|
$metadata: deserializeMetadata(output),
|
|
2514
|
-
|
|
2515
|
-
nextToken: undefined,
|
|
2516
|
-
};
|
|
2476
|
+
});
|
|
2517
2477
|
_a = __expectNonNull;
|
|
2518
2478
|
_b = __expectObject;
|
|
2519
2479
|
return [4, parseBody(output.body, context)];
|
|
2520
2480
|
case 1:
|
|
2521
2481
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2522
|
-
if (data.appSummaries
|
|
2482
|
+
if (data.appSummaries != null) {
|
|
2523
2483
|
contents.appSummaries = deserializeAws_restJson1AppSummaryList(data.appSummaries, context);
|
|
2524
2484
|
}
|
|
2525
|
-
if (data.nextToken
|
|
2485
|
+
if (data.nextToken != null) {
|
|
2526
2486
|
contents.nextToken = __expectString(data.nextToken);
|
|
2527
2487
|
}
|
|
2528
|
-
return [2,
|
|
2488
|
+
return [2, contents];
|
|
2529
2489
|
}
|
|
2530
2490
|
});
|
|
2531
2491
|
}); };
|
|
2532
2492
|
var deserializeAws_restJson1ListAppsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2533
|
-
var parsedOutput, _a,
|
|
2493
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2534
2494
|
var _c;
|
|
2535
2495
|
return __generator(this, function (_d) {
|
|
2536
2496
|
switch (_d.label) {
|
|
@@ -2563,14 +2523,14 @@ var deserializeAws_restJson1ListAppsCommandError = function (output, context) {
|
|
|
2563
2523
|
case 9: throw _d.sent();
|
|
2564
2524
|
case 10:
|
|
2565
2525
|
parsedBody = parsedOutput.body;
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
$metadata: $metadata,
|
|
2526
|
+
throwDefaultError({
|
|
2527
|
+
output: output,
|
|
2528
|
+
parsedBody: parsedBody,
|
|
2529
|
+
exceptionCtor: __BaseException,
|
|
2530
|
+
errorCode: errorCode,
|
|
2572
2531
|
});
|
|
2573
|
-
|
|
2532
|
+
_d.label = 11;
|
|
2533
|
+
case 11: return [2];
|
|
2574
2534
|
}
|
|
2575
2535
|
});
|
|
2576
2536
|
}); };
|
|
@@ -2582,28 +2542,26 @@ export var deserializeAws_restJson1ListAppVersionResourceMappingsCommand = funct
|
|
|
2582
2542
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2583
2543
|
return [2, deserializeAws_restJson1ListAppVersionResourceMappingsCommandError(output, context)];
|
|
2584
2544
|
}
|
|
2585
|
-
contents = {
|
|
2545
|
+
contents = map({
|
|
2586
2546
|
$metadata: deserializeMetadata(output),
|
|
2587
|
-
|
|
2588
|
-
resourceMappings: undefined,
|
|
2589
|
-
};
|
|
2547
|
+
});
|
|
2590
2548
|
_a = __expectNonNull;
|
|
2591
2549
|
_b = __expectObject;
|
|
2592
2550
|
return [4, parseBody(output.body, context)];
|
|
2593
2551
|
case 1:
|
|
2594
2552
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2595
|
-
if (data.nextToken
|
|
2553
|
+
if (data.nextToken != null) {
|
|
2596
2554
|
contents.nextToken = __expectString(data.nextToken);
|
|
2597
2555
|
}
|
|
2598
|
-
if (data.resourceMappings
|
|
2556
|
+
if (data.resourceMappings != null) {
|
|
2599
2557
|
contents.resourceMappings = deserializeAws_restJson1ResourceMappingList(data.resourceMappings, context);
|
|
2600
2558
|
}
|
|
2601
|
-
return [2,
|
|
2559
|
+
return [2, contents];
|
|
2602
2560
|
}
|
|
2603
2561
|
});
|
|
2604
2562
|
}); };
|
|
2605
2563
|
var deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2606
|
-
var parsedOutput, _a,
|
|
2564
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2607
2565
|
var _c;
|
|
2608
2566
|
return __generator(this, function (_d) {
|
|
2609
2567
|
switch (_d.label) {
|
|
@@ -2640,14 +2598,14 @@ var deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = functio
|
|
|
2640
2598
|
case 11: throw _d.sent();
|
|
2641
2599
|
case 12:
|
|
2642
2600
|
parsedBody = parsedOutput.body;
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
$metadata: $metadata,
|
|
2601
|
+
throwDefaultError({
|
|
2602
|
+
output: output,
|
|
2603
|
+
parsedBody: parsedBody,
|
|
2604
|
+
exceptionCtor: __BaseException,
|
|
2605
|
+
errorCode: errorCode,
|
|
2649
2606
|
});
|
|
2650
|
-
|
|
2607
|
+
_d.label = 13;
|
|
2608
|
+
case 13: return [2];
|
|
2651
2609
|
}
|
|
2652
2610
|
});
|
|
2653
2611
|
}); };
|
|
@@ -2659,32 +2617,29 @@ export var deserializeAws_restJson1ListAppVersionResourcesCommand = function (ou
|
|
|
2659
2617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2660
2618
|
return [2, deserializeAws_restJson1ListAppVersionResourcesCommandError(output, context)];
|
|
2661
2619
|
}
|
|
2662
|
-
contents = {
|
|
2620
|
+
contents = map({
|
|
2663
2621
|
$metadata: deserializeMetadata(output),
|
|
2664
|
-
|
|
2665
|
-
physicalResources: undefined,
|
|
2666
|
-
resolutionId: undefined,
|
|
2667
|
-
};
|
|
2622
|
+
});
|
|
2668
2623
|
_a = __expectNonNull;
|
|
2669
2624
|
_b = __expectObject;
|
|
2670
2625
|
return [4, parseBody(output.body, context)];
|
|
2671
2626
|
case 1:
|
|
2672
2627
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2673
|
-
if (data.nextToken
|
|
2628
|
+
if (data.nextToken != null) {
|
|
2674
2629
|
contents.nextToken = __expectString(data.nextToken);
|
|
2675
2630
|
}
|
|
2676
|
-
if (data.physicalResources
|
|
2631
|
+
if (data.physicalResources != null) {
|
|
2677
2632
|
contents.physicalResources = deserializeAws_restJson1PhysicalResourceList(data.physicalResources, context);
|
|
2678
2633
|
}
|
|
2679
|
-
if (data.resolutionId
|
|
2634
|
+
if (data.resolutionId != null) {
|
|
2680
2635
|
contents.resolutionId = __expectString(data.resolutionId);
|
|
2681
2636
|
}
|
|
2682
|
-
return [2,
|
|
2637
|
+
return [2, contents];
|
|
2683
2638
|
}
|
|
2684
2639
|
});
|
|
2685
2640
|
}); };
|
|
2686
2641
|
var deserializeAws_restJson1ListAppVersionResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2687
|
-
var parsedOutput, _a,
|
|
2642
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2688
2643
|
var _c;
|
|
2689
2644
|
return __generator(this, function (_d) {
|
|
2690
2645
|
switch (_d.label) {
|
|
@@ -2725,14 +2680,14 @@ var deserializeAws_restJson1ListAppVersionResourcesCommandError = function (outp
|
|
|
2725
2680
|
case 13: throw _d.sent();
|
|
2726
2681
|
case 14:
|
|
2727
2682
|
parsedBody = parsedOutput.body;
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
$metadata: $metadata,
|
|
2683
|
+
throwDefaultError({
|
|
2684
|
+
output: output,
|
|
2685
|
+
parsedBody: parsedBody,
|
|
2686
|
+
exceptionCtor: __BaseException,
|
|
2687
|
+
errorCode: errorCode,
|
|
2734
2688
|
});
|
|
2735
|
-
|
|
2689
|
+
_d.label = 15;
|
|
2690
|
+
case 15: return [2];
|
|
2736
2691
|
}
|
|
2737
2692
|
});
|
|
2738
2693
|
}); };
|
|
@@ -2744,28 +2699,26 @@ export var deserializeAws_restJson1ListAppVersionsCommand = function (output, co
|
|
|
2744
2699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2745
2700
|
return [2, deserializeAws_restJson1ListAppVersionsCommandError(output, context)];
|
|
2746
2701
|
}
|
|
2747
|
-
contents = {
|
|
2702
|
+
contents = map({
|
|
2748
2703
|
$metadata: deserializeMetadata(output),
|
|
2749
|
-
|
|
2750
|
-
nextToken: undefined,
|
|
2751
|
-
};
|
|
2704
|
+
});
|
|
2752
2705
|
_a = __expectNonNull;
|
|
2753
2706
|
_b = __expectObject;
|
|
2754
2707
|
return [4, parseBody(output.body, context)];
|
|
2755
2708
|
case 1:
|
|
2756
2709
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2757
|
-
if (data.appVersions
|
|
2710
|
+
if (data.appVersions != null) {
|
|
2758
2711
|
contents.appVersions = deserializeAws_restJson1AppVersionList(data.appVersions, context);
|
|
2759
2712
|
}
|
|
2760
|
-
if (data.nextToken
|
|
2713
|
+
if (data.nextToken != null) {
|
|
2761
2714
|
contents.nextToken = __expectString(data.nextToken);
|
|
2762
2715
|
}
|
|
2763
|
-
return [2,
|
|
2716
|
+
return [2, contents];
|
|
2764
2717
|
}
|
|
2765
2718
|
});
|
|
2766
2719
|
}); };
|
|
2767
2720
|
var deserializeAws_restJson1ListAppVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2768
|
-
var parsedOutput, _a,
|
|
2721
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2769
2722
|
var _c;
|
|
2770
2723
|
return __generator(this, function (_d) {
|
|
2771
2724
|
switch (_d.label) {
|
|
@@ -2798,14 +2751,14 @@ var deserializeAws_restJson1ListAppVersionsCommandError = function (output, cont
|
|
|
2798
2751
|
case 9: throw _d.sent();
|
|
2799
2752
|
case 10:
|
|
2800
2753
|
parsedBody = parsedOutput.body;
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
$metadata: $metadata,
|
|
2754
|
+
throwDefaultError({
|
|
2755
|
+
output: output,
|
|
2756
|
+
parsedBody: parsedBody,
|
|
2757
|
+
exceptionCtor: __BaseException,
|
|
2758
|
+
errorCode: errorCode,
|
|
2807
2759
|
});
|
|
2808
|
-
|
|
2760
|
+
_d.label = 11;
|
|
2761
|
+
case 11: return [2];
|
|
2809
2762
|
}
|
|
2810
2763
|
});
|
|
2811
2764
|
}); };
|
|
@@ -2817,28 +2770,26 @@ export var deserializeAws_restJson1ListRecommendationTemplatesCommand = function
|
|
|
2817
2770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2818
2771
|
return [2, deserializeAws_restJson1ListRecommendationTemplatesCommandError(output, context)];
|
|
2819
2772
|
}
|
|
2820
|
-
contents = {
|
|
2773
|
+
contents = map({
|
|
2821
2774
|
$metadata: deserializeMetadata(output),
|
|
2822
|
-
|
|
2823
|
-
recommendationTemplates: undefined,
|
|
2824
|
-
};
|
|
2775
|
+
});
|
|
2825
2776
|
_a = __expectNonNull;
|
|
2826
2777
|
_b = __expectObject;
|
|
2827
2778
|
return [4, parseBody(output.body, context)];
|
|
2828
2779
|
case 1:
|
|
2829
2780
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2830
|
-
if (data.nextToken
|
|
2781
|
+
if (data.nextToken != null) {
|
|
2831
2782
|
contents.nextToken = __expectString(data.nextToken);
|
|
2832
2783
|
}
|
|
2833
|
-
if (data.recommendationTemplates
|
|
2784
|
+
if (data.recommendationTemplates != null) {
|
|
2834
2785
|
contents.recommendationTemplates = deserializeAws_restJson1RecommendationTemplateList(data.recommendationTemplates, context);
|
|
2835
2786
|
}
|
|
2836
|
-
return [2,
|
|
2787
|
+
return [2, contents];
|
|
2837
2788
|
}
|
|
2838
2789
|
});
|
|
2839
2790
|
}); };
|
|
2840
2791
|
var deserializeAws_restJson1ListRecommendationTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2841
|
-
var parsedOutput, _a,
|
|
2792
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2842
2793
|
var _c;
|
|
2843
2794
|
return __generator(this, function (_d) {
|
|
2844
2795
|
switch (_d.label) {
|
|
@@ -2871,14 +2822,14 @@ var deserializeAws_restJson1ListRecommendationTemplatesCommandError = function (
|
|
|
2871
2822
|
case 9: throw _d.sent();
|
|
2872
2823
|
case 10:
|
|
2873
2824
|
parsedBody = parsedOutput.body;
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
$metadata: $metadata,
|
|
2825
|
+
throwDefaultError({
|
|
2826
|
+
output: output,
|
|
2827
|
+
parsedBody: parsedBody,
|
|
2828
|
+
exceptionCtor: __BaseException,
|
|
2829
|
+
errorCode: errorCode,
|
|
2880
2830
|
});
|
|
2881
|
-
|
|
2831
|
+
_d.label = 11;
|
|
2832
|
+
case 11: return [2];
|
|
2882
2833
|
}
|
|
2883
2834
|
});
|
|
2884
2835
|
}); };
|
|
@@ -2890,28 +2841,26 @@ export var deserializeAws_restJson1ListResiliencyPoliciesCommand = function (out
|
|
|
2890
2841
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2891
2842
|
return [2, deserializeAws_restJson1ListResiliencyPoliciesCommandError(output, context)];
|
|
2892
2843
|
}
|
|
2893
|
-
contents = {
|
|
2844
|
+
contents = map({
|
|
2894
2845
|
$metadata: deserializeMetadata(output),
|
|
2895
|
-
|
|
2896
|
-
resiliencyPolicies: undefined,
|
|
2897
|
-
};
|
|
2846
|
+
});
|
|
2898
2847
|
_a = __expectNonNull;
|
|
2899
2848
|
_b = __expectObject;
|
|
2900
2849
|
return [4, parseBody(output.body, context)];
|
|
2901
2850
|
case 1:
|
|
2902
2851
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2903
|
-
if (data.nextToken
|
|
2852
|
+
if (data.nextToken != null) {
|
|
2904
2853
|
contents.nextToken = __expectString(data.nextToken);
|
|
2905
2854
|
}
|
|
2906
|
-
if (data.resiliencyPolicies
|
|
2855
|
+
if (data.resiliencyPolicies != null) {
|
|
2907
2856
|
contents.resiliencyPolicies = deserializeAws_restJson1ResiliencyPolicies(data.resiliencyPolicies, context);
|
|
2908
2857
|
}
|
|
2909
|
-
return [2,
|
|
2858
|
+
return [2, contents];
|
|
2910
2859
|
}
|
|
2911
2860
|
});
|
|
2912
2861
|
}); };
|
|
2913
2862
|
var deserializeAws_restJson1ListResiliencyPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2914
|
-
var parsedOutput, _a,
|
|
2863
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2915
2864
|
var _c;
|
|
2916
2865
|
return __generator(this, function (_d) {
|
|
2917
2866
|
switch (_d.label) {
|
|
@@ -2948,14 +2897,14 @@ var deserializeAws_restJson1ListResiliencyPoliciesCommandError = function (outpu
|
|
|
2948
2897
|
case 11: throw _d.sent();
|
|
2949
2898
|
case 12:
|
|
2950
2899
|
parsedBody = parsedOutput.body;
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
$metadata: $metadata,
|
|
2900
|
+
throwDefaultError({
|
|
2901
|
+
output: output,
|
|
2902
|
+
parsedBody: parsedBody,
|
|
2903
|
+
exceptionCtor: __BaseException,
|
|
2904
|
+
errorCode: errorCode,
|
|
2957
2905
|
});
|
|
2958
|
-
|
|
2906
|
+
_d.label = 13;
|
|
2907
|
+
case 13: return [2];
|
|
2959
2908
|
}
|
|
2960
2909
|
});
|
|
2961
2910
|
}); };
|
|
@@ -2967,28 +2916,26 @@ export var deserializeAws_restJson1ListSopRecommendationsCommand = function (out
|
|
|
2967
2916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2968
2917
|
return [2, deserializeAws_restJson1ListSopRecommendationsCommandError(output, context)];
|
|
2969
2918
|
}
|
|
2970
|
-
contents = {
|
|
2919
|
+
contents = map({
|
|
2971
2920
|
$metadata: deserializeMetadata(output),
|
|
2972
|
-
|
|
2973
|
-
sopRecommendations: undefined,
|
|
2974
|
-
};
|
|
2921
|
+
});
|
|
2975
2922
|
_a = __expectNonNull;
|
|
2976
2923
|
_b = __expectObject;
|
|
2977
2924
|
return [4, parseBody(output.body, context)];
|
|
2978
2925
|
case 1:
|
|
2979
2926
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2980
|
-
if (data.nextToken
|
|
2927
|
+
if (data.nextToken != null) {
|
|
2981
2928
|
contents.nextToken = __expectString(data.nextToken);
|
|
2982
2929
|
}
|
|
2983
|
-
if (data.sopRecommendations
|
|
2930
|
+
if (data.sopRecommendations != null) {
|
|
2984
2931
|
contents.sopRecommendations = deserializeAws_restJson1SopRecommendationList(data.sopRecommendations, context);
|
|
2985
2932
|
}
|
|
2986
|
-
return [2,
|
|
2933
|
+
return [2, contents];
|
|
2987
2934
|
}
|
|
2988
2935
|
});
|
|
2989
2936
|
}); };
|
|
2990
2937
|
var deserializeAws_restJson1ListSopRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2991
|
-
var parsedOutput, _a,
|
|
2938
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2992
2939
|
var _c;
|
|
2993
2940
|
return __generator(this, function (_d) {
|
|
2994
2941
|
switch (_d.label) {
|
|
@@ -3029,14 +2976,14 @@ var deserializeAws_restJson1ListSopRecommendationsCommandError = function (outpu
|
|
|
3029
2976
|
case 13: throw _d.sent();
|
|
3030
2977
|
case 14:
|
|
3031
2978
|
parsedBody = parsedOutput.body;
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
$metadata: $metadata,
|
|
2979
|
+
throwDefaultError({
|
|
2980
|
+
output: output,
|
|
2981
|
+
parsedBody: parsedBody,
|
|
2982
|
+
exceptionCtor: __BaseException,
|
|
2983
|
+
errorCode: errorCode,
|
|
3038
2984
|
});
|
|
3039
|
-
|
|
2985
|
+
_d.label = 15;
|
|
2986
|
+
case 15: return [2];
|
|
3040
2987
|
}
|
|
3041
2988
|
});
|
|
3042
2989
|
}); };
|
|
@@ -3048,28 +2995,26 @@ export var deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = func
|
|
|
3048
2995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3049
2996
|
return [2, deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError(output, context)];
|
|
3050
2997
|
}
|
|
3051
|
-
contents = {
|
|
2998
|
+
contents = map({
|
|
3052
2999
|
$metadata: deserializeMetadata(output),
|
|
3053
|
-
|
|
3054
|
-
resiliencyPolicies: undefined,
|
|
3055
|
-
};
|
|
3000
|
+
});
|
|
3056
3001
|
_a = __expectNonNull;
|
|
3057
3002
|
_b = __expectObject;
|
|
3058
3003
|
return [4, parseBody(output.body, context)];
|
|
3059
3004
|
case 1:
|
|
3060
3005
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3061
|
-
if (data.nextToken
|
|
3006
|
+
if (data.nextToken != null) {
|
|
3062
3007
|
contents.nextToken = __expectString(data.nextToken);
|
|
3063
3008
|
}
|
|
3064
|
-
if (data.resiliencyPolicies
|
|
3009
|
+
if (data.resiliencyPolicies != null) {
|
|
3065
3010
|
contents.resiliencyPolicies = deserializeAws_restJson1ResiliencyPolicies(data.resiliencyPolicies, context);
|
|
3066
3011
|
}
|
|
3067
|
-
return [2,
|
|
3012
|
+
return [2, contents];
|
|
3068
3013
|
}
|
|
3069
3014
|
});
|
|
3070
3015
|
}); };
|
|
3071
3016
|
var deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3072
|
-
var parsedOutput, _a,
|
|
3017
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3073
3018
|
var _c;
|
|
3074
3019
|
return __generator(this, function (_d) {
|
|
3075
3020
|
switch (_d.label) {
|
|
@@ -3106,14 +3051,14 @@ var deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = functi
|
|
|
3106
3051
|
case 11: throw _d.sent();
|
|
3107
3052
|
case 12:
|
|
3108
3053
|
parsedBody = parsedOutput.body;
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
$metadata: $metadata,
|
|
3054
|
+
throwDefaultError({
|
|
3055
|
+
output: output,
|
|
3056
|
+
parsedBody: parsedBody,
|
|
3057
|
+
exceptionCtor: __BaseException,
|
|
3058
|
+
errorCode: errorCode,
|
|
3115
3059
|
});
|
|
3116
|
-
|
|
3060
|
+
_d.label = 13;
|
|
3061
|
+
case 13: return [2];
|
|
3117
3062
|
}
|
|
3118
3063
|
});
|
|
3119
3064
|
}); };
|
|
@@ -3125,24 +3070,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3125
3070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3126
3071
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
3127
3072
|
}
|
|
3128
|
-
contents = {
|
|
3073
|
+
contents = map({
|
|
3129
3074
|
$metadata: deserializeMetadata(output),
|
|
3130
|
-
|
|
3131
|
-
};
|
|
3075
|
+
});
|
|
3132
3076
|
_a = __expectNonNull;
|
|
3133
3077
|
_b = __expectObject;
|
|
3134
3078
|
return [4, parseBody(output.body, context)];
|
|
3135
3079
|
case 1:
|
|
3136
3080
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3137
|
-
if (data.tags
|
|
3081
|
+
if (data.tags != null) {
|
|
3138
3082
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3139
3083
|
}
|
|
3140
|
-
return [2,
|
|
3084
|
+
return [2, contents];
|
|
3141
3085
|
}
|
|
3142
3086
|
});
|
|
3143
3087
|
}); };
|
|
3144
3088
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3145
|
-
var parsedOutput, _a,
|
|
3089
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3146
3090
|
var _c;
|
|
3147
3091
|
return __generator(this, function (_d) {
|
|
3148
3092
|
switch (_d.label) {
|
|
@@ -3179,14 +3123,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3179
3123
|
case 11: throw _d.sent();
|
|
3180
3124
|
case 12:
|
|
3181
3125
|
parsedBody = parsedOutput.body;
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
$metadata: $metadata,
|
|
3126
|
+
throwDefaultError({
|
|
3127
|
+
output: output,
|
|
3128
|
+
parsedBody: parsedBody,
|
|
3129
|
+
exceptionCtor: __BaseException,
|
|
3130
|
+
errorCode: errorCode,
|
|
3188
3131
|
});
|
|
3189
|
-
|
|
3132
|
+
_d.label = 13;
|
|
3133
|
+
case 13: return [2];
|
|
3190
3134
|
}
|
|
3191
3135
|
});
|
|
3192
3136
|
}); };
|
|
@@ -3198,28 +3142,26 @@ export var deserializeAws_restJson1ListTestRecommendationsCommand = function (ou
|
|
|
3198
3142
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3199
3143
|
return [2, deserializeAws_restJson1ListTestRecommendationsCommandError(output, context)];
|
|
3200
3144
|
}
|
|
3201
|
-
contents = {
|
|
3145
|
+
contents = map({
|
|
3202
3146
|
$metadata: deserializeMetadata(output),
|
|
3203
|
-
|
|
3204
|
-
testRecommendations: undefined,
|
|
3205
|
-
};
|
|
3147
|
+
});
|
|
3206
3148
|
_a = __expectNonNull;
|
|
3207
3149
|
_b = __expectObject;
|
|
3208
3150
|
return [4, parseBody(output.body, context)];
|
|
3209
3151
|
case 1:
|
|
3210
3152
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3211
|
-
if (data.nextToken
|
|
3153
|
+
if (data.nextToken != null) {
|
|
3212
3154
|
contents.nextToken = __expectString(data.nextToken);
|
|
3213
3155
|
}
|
|
3214
|
-
if (data.testRecommendations
|
|
3156
|
+
if (data.testRecommendations != null) {
|
|
3215
3157
|
contents.testRecommendations = deserializeAws_restJson1TestRecommendationList(data.testRecommendations, context);
|
|
3216
3158
|
}
|
|
3217
|
-
return [2,
|
|
3159
|
+
return [2, contents];
|
|
3218
3160
|
}
|
|
3219
3161
|
});
|
|
3220
3162
|
}); };
|
|
3221
3163
|
var deserializeAws_restJson1ListTestRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3222
|
-
var parsedOutput, _a,
|
|
3164
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3223
3165
|
var _c;
|
|
3224
3166
|
return __generator(this, function (_d) {
|
|
3225
3167
|
switch (_d.label) {
|
|
@@ -3260,14 +3202,14 @@ var deserializeAws_restJson1ListTestRecommendationsCommandError = function (outp
|
|
|
3260
3202
|
case 13: throw _d.sent();
|
|
3261
3203
|
case 14:
|
|
3262
3204
|
parsedBody = parsedOutput.body;
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
$metadata: $metadata,
|
|
3205
|
+
throwDefaultError({
|
|
3206
|
+
output: output,
|
|
3207
|
+
parsedBody: parsedBody,
|
|
3208
|
+
exceptionCtor: __BaseException,
|
|
3209
|
+
errorCode: errorCode,
|
|
3269
3210
|
});
|
|
3270
|
-
|
|
3211
|
+
_d.label = 15;
|
|
3212
|
+
case 15: return [2];
|
|
3271
3213
|
}
|
|
3272
3214
|
});
|
|
3273
3215
|
}); };
|
|
@@ -3279,32 +3221,29 @@ export var deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = f
|
|
|
3279
3221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3280
3222
|
return [2, deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError(output, context)];
|
|
3281
3223
|
}
|
|
3282
|
-
contents = {
|
|
3224
|
+
contents = map({
|
|
3283
3225
|
$metadata: deserializeMetadata(output),
|
|
3284
|
-
|
|
3285
|
-
resolutionId: undefined,
|
|
3286
|
-
unsupportedResources: undefined,
|
|
3287
|
-
};
|
|
3226
|
+
});
|
|
3288
3227
|
_a = __expectNonNull;
|
|
3289
3228
|
_b = __expectObject;
|
|
3290
3229
|
return [4, parseBody(output.body, context)];
|
|
3291
3230
|
case 1:
|
|
3292
3231
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3293
|
-
if (data.nextToken
|
|
3232
|
+
if (data.nextToken != null) {
|
|
3294
3233
|
contents.nextToken = __expectString(data.nextToken);
|
|
3295
3234
|
}
|
|
3296
|
-
if (data.resolutionId
|
|
3235
|
+
if (data.resolutionId != null) {
|
|
3297
3236
|
contents.resolutionId = __expectString(data.resolutionId);
|
|
3298
3237
|
}
|
|
3299
|
-
if (data.unsupportedResources
|
|
3238
|
+
if (data.unsupportedResources != null) {
|
|
3300
3239
|
contents.unsupportedResources = deserializeAws_restJson1UnsupportedResourceList(data.unsupportedResources, context);
|
|
3301
3240
|
}
|
|
3302
|
-
return [2,
|
|
3241
|
+
return [2, contents];
|
|
3303
3242
|
}
|
|
3304
3243
|
});
|
|
3305
3244
|
}); };
|
|
3306
3245
|
var deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3307
|
-
var parsedOutput, _a,
|
|
3246
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3308
3247
|
var _c;
|
|
3309
3248
|
return __generator(this, function (_d) {
|
|
3310
3249
|
switch (_d.label) {
|
|
@@ -3345,14 +3284,14 @@ var deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = fun
|
|
|
3345
3284
|
case 13: throw _d.sent();
|
|
3346
3285
|
case 14:
|
|
3347
3286
|
parsedBody = parsedOutput.body;
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
$metadata: $metadata,
|
|
3287
|
+
throwDefaultError({
|
|
3288
|
+
output: output,
|
|
3289
|
+
parsedBody: parsedBody,
|
|
3290
|
+
exceptionCtor: __BaseException,
|
|
3291
|
+
errorCode: errorCode,
|
|
3354
3292
|
});
|
|
3355
|
-
|
|
3293
|
+
_d.label = 15;
|
|
3294
|
+
case 15: return [2];
|
|
3356
3295
|
}
|
|
3357
3296
|
});
|
|
3358
3297
|
}); };
|
|
@@ -3364,28 +3303,26 @@ export var deserializeAws_restJson1PublishAppVersionCommand = function (output,
|
|
|
3364
3303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3365
3304
|
return [2, deserializeAws_restJson1PublishAppVersionCommandError(output, context)];
|
|
3366
3305
|
}
|
|
3367
|
-
contents = {
|
|
3306
|
+
contents = map({
|
|
3368
3307
|
$metadata: deserializeMetadata(output),
|
|
3369
|
-
|
|
3370
|
-
appVersion: undefined,
|
|
3371
|
-
};
|
|
3308
|
+
});
|
|
3372
3309
|
_a = __expectNonNull;
|
|
3373
3310
|
_b = __expectObject;
|
|
3374
3311
|
return [4, parseBody(output.body, context)];
|
|
3375
3312
|
case 1:
|
|
3376
3313
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3377
|
-
if (data.appArn
|
|
3314
|
+
if (data.appArn != null) {
|
|
3378
3315
|
contents.appArn = __expectString(data.appArn);
|
|
3379
3316
|
}
|
|
3380
|
-
if (data.appVersion
|
|
3317
|
+
if (data.appVersion != null) {
|
|
3381
3318
|
contents.appVersion = __expectString(data.appVersion);
|
|
3382
3319
|
}
|
|
3383
|
-
return [2,
|
|
3320
|
+
return [2, contents];
|
|
3384
3321
|
}
|
|
3385
3322
|
});
|
|
3386
3323
|
}); };
|
|
3387
3324
|
var deserializeAws_restJson1PublishAppVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3388
|
-
var parsedOutput, _a,
|
|
3325
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3389
3326
|
var _c;
|
|
3390
3327
|
return __generator(this, function (_d) {
|
|
3391
3328
|
switch (_d.label) {
|
|
@@ -3426,14 +3363,14 @@ var deserializeAws_restJson1PublishAppVersionCommandError = function (output, co
|
|
|
3426
3363
|
case 13: throw _d.sent();
|
|
3427
3364
|
case 14:
|
|
3428
3365
|
parsedBody = parsedOutput.body;
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
$metadata: $metadata,
|
|
3366
|
+
throwDefaultError({
|
|
3367
|
+
output: output,
|
|
3368
|
+
parsedBody: parsedBody,
|
|
3369
|
+
exceptionCtor: __BaseException,
|
|
3370
|
+
errorCode: errorCode,
|
|
3435
3371
|
});
|
|
3436
|
-
|
|
3372
|
+
_d.label = 15;
|
|
3373
|
+
case 15: return [2];
|
|
3437
3374
|
}
|
|
3438
3375
|
});
|
|
3439
3376
|
}); };
|
|
@@ -3445,28 +3382,26 @@ export var deserializeAws_restJson1PutDraftAppVersionTemplateCommand = function
|
|
|
3445
3382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3446
3383
|
return [2, deserializeAws_restJson1PutDraftAppVersionTemplateCommandError(output, context)];
|
|
3447
3384
|
}
|
|
3448
|
-
contents = {
|
|
3385
|
+
contents = map({
|
|
3449
3386
|
$metadata: deserializeMetadata(output),
|
|
3450
|
-
|
|
3451
|
-
appVersion: undefined,
|
|
3452
|
-
};
|
|
3387
|
+
});
|
|
3453
3388
|
_a = __expectNonNull;
|
|
3454
3389
|
_b = __expectObject;
|
|
3455
3390
|
return [4, parseBody(output.body, context)];
|
|
3456
3391
|
case 1:
|
|
3457
3392
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3458
|
-
if (data.appArn
|
|
3393
|
+
if (data.appArn != null) {
|
|
3459
3394
|
contents.appArn = __expectString(data.appArn);
|
|
3460
3395
|
}
|
|
3461
|
-
if (data.appVersion
|
|
3396
|
+
if (data.appVersion != null) {
|
|
3462
3397
|
contents.appVersion = __expectString(data.appVersion);
|
|
3463
3398
|
}
|
|
3464
|
-
return [2,
|
|
3399
|
+
return [2, contents];
|
|
3465
3400
|
}
|
|
3466
3401
|
});
|
|
3467
3402
|
}); };
|
|
3468
3403
|
var deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3469
|
-
var parsedOutput, _a,
|
|
3404
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3470
3405
|
var _c;
|
|
3471
3406
|
return __generator(this, function (_d) {
|
|
3472
3407
|
switch (_d.label) {
|
|
@@ -3507,14 +3442,14 @@ var deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = function (o
|
|
|
3507
3442
|
case 13: throw _d.sent();
|
|
3508
3443
|
case 14:
|
|
3509
3444
|
parsedBody = parsedOutput.body;
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
$metadata: $metadata,
|
|
3445
|
+
throwDefaultError({
|
|
3446
|
+
output: output,
|
|
3447
|
+
parsedBody: parsedBody,
|
|
3448
|
+
exceptionCtor: __BaseException,
|
|
3449
|
+
errorCode: errorCode,
|
|
3516
3450
|
});
|
|
3517
|
-
|
|
3451
|
+
_d.label = 15;
|
|
3452
|
+
case 15: return [2];
|
|
3518
3453
|
}
|
|
3519
3454
|
});
|
|
3520
3455
|
}); };
|
|
@@ -3526,28 +3461,26 @@ export var deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand
|
|
|
3526
3461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3527
3462
|
return [2, deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError(output, context)];
|
|
3528
3463
|
}
|
|
3529
|
-
contents = {
|
|
3464
|
+
contents = map({
|
|
3530
3465
|
$metadata: deserializeMetadata(output),
|
|
3531
|
-
|
|
3532
|
-
appVersion: undefined,
|
|
3533
|
-
};
|
|
3466
|
+
});
|
|
3534
3467
|
_a = __expectNonNull;
|
|
3535
3468
|
_b = __expectObject;
|
|
3536
3469
|
return [4, parseBody(output.body, context)];
|
|
3537
3470
|
case 1:
|
|
3538
3471
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3539
|
-
if (data.appArn
|
|
3472
|
+
if (data.appArn != null) {
|
|
3540
3473
|
contents.appArn = __expectString(data.appArn);
|
|
3541
3474
|
}
|
|
3542
|
-
if (data.appVersion
|
|
3475
|
+
if (data.appVersion != null) {
|
|
3543
3476
|
contents.appVersion = __expectString(data.appVersion);
|
|
3544
3477
|
}
|
|
3545
|
-
return [2,
|
|
3478
|
+
return [2, contents];
|
|
3546
3479
|
}
|
|
3547
3480
|
});
|
|
3548
3481
|
}); };
|
|
3549
3482
|
var deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3550
|
-
var parsedOutput, _a,
|
|
3483
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3551
3484
|
var _c;
|
|
3552
3485
|
return __generator(this, function (_d) {
|
|
3553
3486
|
switch (_d.label) {
|
|
@@ -3588,14 +3521,14 @@ var deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError =
|
|
|
3588
3521
|
case 13: throw _d.sent();
|
|
3589
3522
|
case 14:
|
|
3590
3523
|
parsedBody = parsedOutput.body;
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
$metadata: $metadata,
|
|
3524
|
+
throwDefaultError({
|
|
3525
|
+
output: output,
|
|
3526
|
+
parsedBody: parsedBody,
|
|
3527
|
+
exceptionCtor: __BaseException,
|
|
3528
|
+
errorCode: errorCode,
|
|
3597
3529
|
});
|
|
3598
|
-
|
|
3530
|
+
_d.label = 15;
|
|
3531
|
+
case 15: return [2];
|
|
3599
3532
|
}
|
|
3600
3533
|
});
|
|
3601
3534
|
}); };
|
|
@@ -3607,36 +3540,32 @@ export var deserializeAws_restJson1ResolveAppVersionResourcesCommand = function
|
|
|
3607
3540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3608
3541
|
return [2, deserializeAws_restJson1ResolveAppVersionResourcesCommandError(output, context)];
|
|
3609
3542
|
}
|
|
3610
|
-
contents = {
|
|
3543
|
+
contents = map({
|
|
3611
3544
|
$metadata: deserializeMetadata(output),
|
|
3612
|
-
|
|
3613
|
-
appVersion: undefined,
|
|
3614
|
-
resolutionId: undefined,
|
|
3615
|
-
status: undefined,
|
|
3616
|
-
};
|
|
3545
|
+
});
|
|
3617
3546
|
_a = __expectNonNull;
|
|
3618
3547
|
_b = __expectObject;
|
|
3619
3548
|
return [4, parseBody(output.body, context)];
|
|
3620
3549
|
case 1:
|
|
3621
3550
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3622
|
-
if (data.appArn
|
|
3551
|
+
if (data.appArn != null) {
|
|
3623
3552
|
contents.appArn = __expectString(data.appArn);
|
|
3624
3553
|
}
|
|
3625
|
-
if (data.appVersion
|
|
3554
|
+
if (data.appVersion != null) {
|
|
3626
3555
|
contents.appVersion = __expectString(data.appVersion);
|
|
3627
3556
|
}
|
|
3628
|
-
if (data.resolutionId
|
|
3557
|
+
if (data.resolutionId != null) {
|
|
3629
3558
|
contents.resolutionId = __expectString(data.resolutionId);
|
|
3630
3559
|
}
|
|
3631
|
-
if (data.status
|
|
3560
|
+
if (data.status != null) {
|
|
3632
3561
|
contents.status = __expectString(data.status);
|
|
3633
3562
|
}
|
|
3634
|
-
return [2,
|
|
3563
|
+
return [2, contents];
|
|
3635
3564
|
}
|
|
3636
3565
|
});
|
|
3637
3566
|
}); };
|
|
3638
3567
|
var deserializeAws_restJson1ResolveAppVersionResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3639
|
-
var parsedOutput, _a,
|
|
3568
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3640
3569
|
var _c;
|
|
3641
3570
|
return __generator(this, function (_d) {
|
|
3642
3571
|
switch (_d.label) {
|
|
@@ -3677,14 +3606,14 @@ var deserializeAws_restJson1ResolveAppVersionResourcesCommandError = function (o
|
|
|
3677
3606
|
case 13: throw _d.sent();
|
|
3678
3607
|
case 14:
|
|
3679
3608
|
parsedBody = parsedOutput.body;
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
$metadata: $metadata,
|
|
3609
|
+
throwDefaultError({
|
|
3610
|
+
output: output,
|
|
3611
|
+
parsedBody: parsedBody,
|
|
3612
|
+
exceptionCtor: __BaseException,
|
|
3613
|
+
errorCode: errorCode,
|
|
3686
3614
|
});
|
|
3687
|
-
|
|
3615
|
+
_d.label = 15;
|
|
3616
|
+
case 15: return [2];
|
|
3688
3617
|
}
|
|
3689
3618
|
});
|
|
3690
3619
|
}); };
|
|
@@ -3696,24 +3625,23 @@ export var deserializeAws_restJson1StartAppAssessmentCommand = function (output,
|
|
|
3696
3625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3697
3626
|
return [2, deserializeAws_restJson1StartAppAssessmentCommandError(output, context)];
|
|
3698
3627
|
}
|
|
3699
|
-
contents = {
|
|
3628
|
+
contents = map({
|
|
3700
3629
|
$metadata: deserializeMetadata(output),
|
|
3701
|
-
|
|
3702
|
-
};
|
|
3630
|
+
});
|
|
3703
3631
|
_a = __expectNonNull;
|
|
3704
3632
|
_b = __expectObject;
|
|
3705
3633
|
return [4, parseBody(output.body, context)];
|
|
3706
3634
|
case 1:
|
|
3707
3635
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3708
|
-
if (data.assessment
|
|
3636
|
+
if (data.assessment != null) {
|
|
3709
3637
|
contents.assessment = deserializeAws_restJson1AppAssessment(data.assessment, context);
|
|
3710
3638
|
}
|
|
3711
|
-
return [2,
|
|
3639
|
+
return [2, contents];
|
|
3712
3640
|
}
|
|
3713
3641
|
});
|
|
3714
3642
|
}); };
|
|
3715
3643
|
var deserializeAws_restJson1StartAppAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3716
|
-
var parsedOutput, _a,
|
|
3644
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3717
3645
|
var _c;
|
|
3718
3646
|
return __generator(this, function (_d) {
|
|
3719
3647
|
switch (_d.label) {
|
|
@@ -3758,14 +3686,14 @@ var deserializeAws_restJson1StartAppAssessmentCommandError = function (output, c
|
|
|
3758
3686
|
case 15: throw _d.sent();
|
|
3759
3687
|
case 16:
|
|
3760
3688
|
parsedBody = parsedOutput.body;
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
$metadata: $metadata,
|
|
3689
|
+
throwDefaultError({
|
|
3690
|
+
output: output,
|
|
3691
|
+
parsedBody: parsedBody,
|
|
3692
|
+
exceptionCtor: __BaseException,
|
|
3693
|
+
errorCode: errorCode,
|
|
3767
3694
|
});
|
|
3768
|
-
|
|
3695
|
+
_d.label = 17;
|
|
3696
|
+
case 17: return [2];
|
|
3769
3697
|
}
|
|
3770
3698
|
});
|
|
3771
3699
|
}); };
|
|
@@ -3777,18 +3705,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3777
3705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3778
3706
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3779
3707
|
}
|
|
3780
|
-
contents = {
|
|
3708
|
+
contents = map({
|
|
3781
3709
|
$metadata: deserializeMetadata(output),
|
|
3782
|
-
};
|
|
3710
|
+
});
|
|
3783
3711
|
return [4, collectBody(output.body, context)];
|
|
3784
3712
|
case 1:
|
|
3785
3713
|
_a.sent();
|
|
3786
|
-
return [2,
|
|
3714
|
+
return [2, contents];
|
|
3787
3715
|
}
|
|
3788
3716
|
});
|
|
3789
3717
|
}); };
|
|
3790
3718
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3791
|
-
var parsedOutput, _a,
|
|
3719
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3792
3720
|
var _c;
|
|
3793
3721
|
return __generator(this, function (_d) {
|
|
3794
3722
|
switch (_d.label) {
|
|
@@ -3825,14 +3753,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3825
3753
|
case 11: throw _d.sent();
|
|
3826
3754
|
case 12:
|
|
3827
3755
|
parsedBody = parsedOutput.body;
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
$metadata: $metadata,
|
|
3756
|
+
throwDefaultError({
|
|
3757
|
+
output: output,
|
|
3758
|
+
parsedBody: parsedBody,
|
|
3759
|
+
exceptionCtor: __BaseException,
|
|
3760
|
+
errorCode: errorCode,
|
|
3834
3761
|
});
|
|
3835
|
-
|
|
3762
|
+
_d.label = 13;
|
|
3763
|
+
case 13: return [2];
|
|
3836
3764
|
}
|
|
3837
3765
|
});
|
|
3838
3766
|
}); };
|
|
@@ -3844,18 +3772,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3844
3772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3845
3773
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3846
3774
|
}
|
|
3847
|
-
contents = {
|
|
3775
|
+
contents = map({
|
|
3848
3776
|
$metadata: deserializeMetadata(output),
|
|
3849
|
-
};
|
|
3777
|
+
});
|
|
3850
3778
|
return [4, collectBody(output.body, context)];
|
|
3851
3779
|
case 1:
|
|
3852
3780
|
_a.sent();
|
|
3853
|
-
return [2,
|
|
3781
|
+
return [2, contents];
|
|
3854
3782
|
}
|
|
3855
3783
|
});
|
|
3856
3784
|
}); };
|
|
3857
3785
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3858
|
-
var parsedOutput, _a,
|
|
3786
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3859
3787
|
var _c;
|
|
3860
3788
|
return __generator(this, function (_d) {
|
|
3861
3789
|
switch (_d.label) {
|
|
@@ -3892,14 +3820,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3892
3820
|
case 11: throw _d.sent();
|
|
3893
3821
|
case 12:
|
|
3894
3822
|
parsedBody = parsedOutput.body;
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
$metadata: $metadata,
|
|
3823
|
+
throwDefaultError({
|
|
3824
|
+
output: output,
|
|
3825
|
+
parsedBody: parsedBody,
|
|
3826
|
+
exceptionCtor: __BaseException,
|
|
3827
|
+
errorCode: errorCode,
|
|
3901
3828
|
});
|
|
3902
|
-
|
|
3829
|
+
_d.label = 13;
|
|
3830
|
+
case 13: return [2];
|
|
3903
3831
|
}
|
|
3904
3832
|
});
|
|
3905
3833
|
}); };
|
|
@@ -3911,24 +3839,23 @@ export var deserializeAws_restJson1UpdateAppCommand = function (output, context)
|
|
|
3911
3839
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3912
3840
|
return [2, deserializeAws_restJson1UpdateAppCommandError(output, context)];
|
|
3913
3841
|
}
|
|
3914
|
-
contents = {
|
|
3842
|
+
contents = map({
|
|
3915
3843
|
$metadata: deserializeMetadata(output),
|
|
3916
|
-
|
|
3917
|
-
};
|
|
3844
|
+
});
|
|
3918
3845
|
_a = __expectNonNull;
|
|
3919
3846
|
_b = __expectObject;
|
|
3920
3847
|
return [4, parseBody(output.body, context)];
|
|
3921
3848
|
case 1:
|
|
3922
3849
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3923
|
-
if (data.app
|
|
3850
|
+
if (data.app != null) {
|
|
3924
3851
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
3925
3852
|
}
|
|
3926
|
-
return [2,
|
|
3853
|
+
return [2, contents];
|
|
3927
3854
|
}
|
|
3928
3855
|
});
|
|
3929
3856
|
}); };
|
|
3930
3857
|
var deserializeAws_restJson1UpdateAppCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3931
|
-
var parsedOutput, _a,
|
|
3858
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3932
3859
|
var _c;
|
|
3933
3860
|
return __generator(this, function (_d) {
|
|
3934
3861
|
switch (_d.label) {
|
|
@@ -3969,14 +3896,14 @@ var deserializeAws_restJson1UpdateAppCommandError = function (output, context) {
|
|
|
3969
3896
|
case 13: throw _d.sent();
|
|
3970
3897
|
case 14:
|
|
3971
3898
|
parsedBody = parsedOutput.body;
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
$metadata: $metadata,
|
|
3899
|
+
throwDefaultError({
|
|
3900
|
+
output: output,
|
|
3901
|
+
parsedBody: parsedBody,
|
|
3902
|
+
exceptionCtor: __BaseException,
|
|
3903
|
+
errorCode: errorCode,
|
|
3978
3904
|
});
|
|
3979
|
-
|
|
3905
|
+
_d.label = 15;
|
|
3906
|
+
case 15: return [2];
|
|
3980
3907
|
}
|
|
3981
3908
|
});
|
|
3982
3909
|
}); };
|
|
@@ -3988,24 +3915,23 @@ export var deserializeAws_restJson1UpdateResiliencyPolicyCommand = function (out
|
|
|
3988
3915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3989
3916
|
return [2, deserializeAws_restJson1UpdateResiliencyPolicyCommandError(output, context)];
|
|
3990
3917
|
}
|
|
3991
|
-
contents = {
|
|
3918
|
+
contents = map({
|
|
3992
3919
|
$metadata: deserializeMetadata(output),
|
|
3993
|
-
|
|
3994
|
-
};
|
|
3920
|
+
});
|
|
3995
3921
|
_a = __expectNonNull;
|
|
3996
3922
|
_b = __expectObject;
|
|
3997
3923
|
return [4, parseBody(output.body, context)];
|
|
3998
3924
|
case 1:
|
|
3999
3925
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4000
|
-
if (data.policy
|
|
3926
|
+
if (data.policy != null) {
|
|
4001
3927
|
contents.policy = deserializeAws_restJson1ResiliencyPolicy(data.policy, context);
|
|
4002
3928
|
}
|
|
4003
|
-
return [2,
|
|
3929
|
+
return [2, contents];
|
|
4004
3930
|
}
|
|
4005
3931
|
});
|
|
4006
3932
|
}); };
|
|
4007
3933
|
var deserializeAws_restJson1UpdateResiliencyPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4008
|
-
var parsedOutput, _a,
|
|
3934
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4009
3935
|
var _c;
|
|
4010
3936
|
return __generator(this, function (_d) {
|
|
4011
3937
|
switch (_d.label) {
|
|
@@ -4046,23 +3972,24 @@ var deserializeAws_restJson1UpdateResiliencyPolicyCommandError = function (outpu
|
|
|
4046
3972
|
case 13: throw _d.sent();
|
|
4047
3973
|
case 14:
|
|
4048
3974
|
parsedBody = parsedOutput.body;
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
$metadata: $metadata,
|
|
3975
|
+
throwDefaultError({
|
|
3976
|
+
output: output,
|
|
3977
|
+
parsedBody: parsedBody,
|
|
3978
|
+
exceptionCtor: __BaseException,
|
|
3979
|
+
errorCode: errorCode,
|
|
4055
3980
|
});
|
|
4056
|
-
|
|
3981
|
+
_d.label = 15;
|
|
3982
|
+
case 15: return [2];
|
|
4057
3983
|
}
|
|
4058
3984
|
});
|
|
4059
3985
|
}); };
|
|
3986
|
+
var map = __map;
|
|
4060
3987
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4061
3988
|
var contents, data, exception;
|
|
4062
3989
|
return __generator(this, function (_a) {
|
|
4063
|
-
contents = {};
|
|
3990
|
+
contents = map({});
|
|
4064
3991
|
data = parsedOutput.body;
|
|
4065
|
-
if (data.message
|
|
3992
|
+
if (data.message != null) {
|
|
4066
3993
|
contents.message = __expectString(data.message);
|
|
4067
3994
|
}
|
|
4068
3995
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4072,15 +3999,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
4072
3999
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4073
4000
|
var contents, data, exception;
|
|
4074
4001
|
return __generator(this, function (_a) {
|
|
4075
|
-
contents = {};
|
|
4002
|
+
contents = map({});
|
|
4076
4003
|
data = parsedOutput.body;
|
|
4077
|
-
if (data.message
|
|
4004
|
+
if (data.message != null) {
|
|
4078
4005
|
contents.message = __expectString(data.message);
|
|
4079
4006
|
}
|
|
4080
|
-
if (data.resourceId
|
|
4007
|
+
if (data.resourceId != null) {
|
|
4081
4008
|
contents.resourceId = __expectString(data.resourceId);
|
|
4082
4009
|
}
|
|
4083
|
-
if (data.resourceType
|
|
4010
|
+
if (data.resourceType != null) {
|
|
4084
4011
|
contents.resourceType = __expectString(data.resourceType);
|
|
4085
4012
|
}
|
|
4086
4013
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4090,9 +4017,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
4090
4017
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4091
4018
|
var contents, data, exception;
|
|
4092
4019
|
return __generator(this, function (_a) {
|
|
4093
|
-
contents = {};
|
|
4020
|
+
contents = map({});
|
|
4094
4021
|
data = parsedOutput.body;
|
|
4095
|
-
if (data.message
|
|
4022
|
+
if (data.message != null) {
|
|
4096
4023
|
contents.message = __expectString(data.message);
|
|
4097
4024
|
}
|
|
4098
4025
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4102,15 +4029,15 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
4102
4029
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4103
4030
|
var contents, data, exception;
|
|
4104
4031
|
return __generator(this, function (_a) {
|
|
4105
|
-
contents = {};
|
|
4032
|
+
contents = map({});
|
|
4106
4033
|
data = parsedOutput.body;
|
|
4107
|
-
if (data.message
|
|
4034
|
+
if (data.message != null) {
|
|
4108
4035
|
contents.message = __expectString(data.message);
|
|
4109
4036
|
}
|
|
4110
|
-
if (data.resourceId
|
|
4037
|
+
if (data.resourceId != null) {
|
|
4111
4038
|
contents.resourceId = __expectString(data.resourceId);
|
|
4112
4039
|
}
|
|
4113
|
-
if (data.resourceType
|
|
4040
|
+
if (data.resourceType != null) {
|
|
4114
4041
|
contents.resourceType = __expectString(data.resourceType);
|
|
4115
4042
|
}
|
|
4116
4043
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4120,9 +4047,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
4120
4047
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4121
4048
|
var contents, data, exception;
|
|
4122
4049
|
return __generator(this, function (_a) {
|
|
4123
|
-
contents = {};
|
|
4050
|
+
contents = map({});
|
|
4124
4051
|
data = parsedOutput.body;
|
|
4125
|
-
if (data.message
|
|
4052
|
+
if (data.message != null) {
|
|
4126
4053
|
contents.message = __expectString(data.message);
|
|
4127
4054
|
}
|
|
4128
4055
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4132,12 +4059,12 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
4132
4059
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4133
4060
|
var contents, data, exception;
|
|
4134
4061
|
return __generator(this, function (_a) {
|
|
4135
|
-
contents = {};
|
|
4062
|
+
contents = map({});
|
|
4136
4063
|
data = parsedOutput.body;
|
|
4137
|
-
if (data.message
|
|
4064
|
+
if (data.message != null) {
|
|
4138
4065
|
contents.message = __expectString(data.message);
|
|
4139
4066
|
}
|
|
4140
|
-
if (data.retryAfterSeconds
|
|
4067
|
+
if (data.retryAfterSeconds != null) {
|
|
4141
4068
|
contents.retryAfterSeconds = __expectInt32(data.retryAfterSeconds);
|
|
4142
4069
|
}
|
|
4143
4070
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4147,9 +4074,9 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
4147
4074
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4148
4075
|
var contents, data, exception;
|
|
4149
4076
|
return __generator(this, function (_a) {
|
|
4150
|
-
contents = {};
|
|
4077
|
+
contents = map({});
|
|
4151
4078
|
data = parsedOutput.body;
|
|
4152
|
-
if (data.message
|
|
4079
|
+
if (data.message != null) {
|
|
4153
4080
|
contents.message = __expectString(data.message);
|
|
4154
4081
|
}
|
|
4155
4082
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4160,9 +4087,6 @@ var serializeAws_restJson1ArnList = function (input, context) {
|
|
|
4160
4087
|
return input
|
|
4161
4088
|
.filter(function (e) { return e != null; })
|
|
4162
4089
|
.map(function (entry) {
|
|
4163
|
-
if (entry === null) {
|
|
4164
|
-
return null;
|
|
4165
|
-
}
|
|
4166
4090
|
return entry;
|
|
4167
4091
|
});
|
|
4168
4092
|
};
|
|
@@ -4180,9 +4104,6 @@ var serializeAws_restJson1EntityNameList = function (input, context) {
|
|
|
4180
4104
|
return input
|
|
4181
4105
|
.filter(function (e) { return e != null; })
|
|
4182
4106
|
.map(function (entry) {
|
|
4183
|
-
if (entry === null) {
|
|
4184
|
-
return null;
|
|
4185
|
-
}
|
|
4186
4107
|
return entry;
|
|
4187
4108
|
});
|
|
4188
4109
|
};
|
|
@@ -4196,9 +4117,6 @@ var serializeAws_restJson1RecommendationIdList = function (input, context) {
|
|
|
4196
4117
|
return input
|
|
4197
4118
|
.filter(function (e) { return e != null; })
|
|
4198
4119
|
.map(function (entry) {
|
|
4199
|
-
if (entry === null) {
|
|
4200
|
-
return null;
|
|
4201
|
-
}
|
|
4202
4120
|
return entry;
|
|
4203
4121
|
});
|
|
4204
4122
|
};
|
|
@@ -4206,9 +4124,6 @@ var serializeAws_restJson1RenderRecommendationTypeList = function (input, contex
|
|
|
4206
4124
|
return input
|
|
4207
4125
|
.filter(function (e) { return e != null; })
|
|
4208
4126
|
.map(function (entry) {
|
|
4209
|
-
if (entry === null) {
|
|
4210
|
-
return null;
|
|
4211
|
-
}
|
|
4212
4127
|
return entry;
|
|
4213
4128
|
});
|
|
4214
4129
|
};
|
|
@@ -4221,9 +4136,6 @@ var serializeAws_restJson1ResourceMappingList = function (input, context) {
|
|
|
4221
4136
|
return input
|
|
4222
4137
|
.filter(function (e) { return e != null; })
|
|
4223
4138
|
.map(function (entry) {
|
|
4224
|
-
if (entry === null) {
|
|
4225
|
-
return null;
|
|
4226
|
-
}
|
|
4227
4139
|
return serializeAws_restJson1ResourceMapping(entry, context);
|
|
4228
4140
|
});
|
|
4229
4141
|
};
|
|
@@ -4231,9 +4143,6 @@ var serializeAws_restJson1String255List = function (input, context) {
|
|
|
4231
4143
|
return input
|
|
4232
4144
|
.filter(function (e) { return e != null; })
|
|
4233
4145
|
.map(function (entry) {
|
|
4234
|
-
if (entry === null) {
|
|
4235
|
-
return null;
|
|
4236
|
-
}
|
|
4237
4146
|
return entry;
|
|
4238
4147
|
});
|
|
4239
4148
|
};
|
|
@@ -4254,9 +4163,6 @@ var serializeAws_restJson1TerraformSourceList = function (input, context) {
|
|
|
4254
4163
|
return input
|
|
4255
4164
|
.filter(function (e) { return e != null; })
|
|
4256
4165
|
.map(function (entry) {
|
|
4257
|
-
if (entry === null) {
|
|
4258
|
-
return null;
|
|
4259
|
-
}
|
|
4260
4166
|
return serializeAws_restJson1TerraformSource(entry, context);
|
|
4261
4167
|
});
|
|
4262
4168
|
};
|