@aws-sdk/client-compute-optimizer 3.30.0 → 3.34.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 +35 -0
- package/dist/cjs/ComputeOptimizerClient.js +13 -13
- package/dist/cjs/ComputeOptimizerClient.js.map +1 -1
- package/dist/cjs/commands/DescribeRecommendationExportJobsCommand.js +3 -3
- package/dist/cjs/commands/DescribeRecommendationExportJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/ExportEBSVolumeRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/ExportEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/ExportEC2InstanceRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/ExportEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/ExportLambdaFunctionRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/ExportLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetAutoScalingGroupRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/GetAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetEBSVolumeRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/GetEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetEC2InstanceRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/GetEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js +3 -3
- package/dist/cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js.map +1 -1
- package/dist/cjs/commands/GetEnrollmentStatusCommand.js +3 -3
- package/dist/cjs/commands/GetEnrollmentStatusCommand.js.map +1 -1
- package/dist/cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js +3 -3
- package/dist/cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js.map +1 -1
- package/dist/cjs/commands/GetLambdaFunctionRecommendationsCommand.js +3 -3
- package/dist/cjs/commands/GetLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/cjs/commands/GetRecommendationSummariesCommand.js +3 -3
- package/dist/cjs/commands/GetRecommendationSummariesCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateEnrollmentStatusCommand.js +3 -3
- package/dist/cjs/commands/UpdateEnrollmentStatusCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +17 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_0.js +116 -116
- package/dist/cjs/protocols/Aws_json1_0.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/ComputeOptimizer.js +1 -14
- package/dist/es/ComputeOptimizer.js.map +1 -1
- package/dist/es/ComputeOptimizerClient.js +1 -19
- package/dist/es/ComputeOptimizerClient.js.map +1 -1
- package/dist/es/commands/DescribeRecommendationExportJobsCommand.js +2 -31
- package/dist/es/commands/DescribeRecommendationExportJobsCommand.js.map +1 -1
- package/dist/es/commands/ExportAutoScalingGroupRecommendationsCommand.js +2 -34
- package/dist/es/commands/ExportAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/ExportEBSVolumeRecommendationsCommand.js +2 -35
- package/dist/es/commands/ExportEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/ExportEC2InstanceRecommendationsCommand.js +2 -35
- package/dist/es/commands/ExportEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/ExportLambdaFunctionRecommendationsCommand.js +2 -35
- package/dist/es/commands/ExportLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetAutoScalingGroupRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetAutoScalingGroupRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetEBSVolumeRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetEBSVolumeRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetEC2InstanceRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetEC2InstanceRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetEC2RecommendationProjectedMetricsCommand.js +2 -35
- package/dist/es/commands/GetEC2RecommendationProjectedMetricsCommand.js.map +1 -1
- package/dist/es/commands/GetEnrollmentStatusCommand.js +2 -32
- package/dist/es/commands/GetEnrollmentStatusCommand.js.map +1 -1
- package/dist/es/commands/GetEnrollmentStatusesForOrganizationCommand.js +2 -30
- package/dist/es/commands/GetEnrollmentStatusesForOrganizationCommand.js.map +1 -1
- package/dist/es/commands/GetLambdaFunctionRecommendationsCommand.js +2 -32
- package/dist/es/commands/GetLambdaFunctionRecommendationsCommand.js.map +1 -1
- package/dist/es/commands/GetRecommendationSummariesCommand.js +2 -49
- package/dist/es/commands/GetRecommendationSummariesCommand.js.map +1 -1
- package/dist/es/commands/UpdateEnrollmentStatusCommand.js +2 -37
- package/dist/es/commands/UpdateEnrollmentStatusCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -207
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/protocols/Aws_json1_0.js +539 -544
- package/dist/es/protocols/Aws_json1_0.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +3 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +3 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_json1_0.ts +12 -9
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_json1_0DescribeRecommendationExportJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var headers, body;
|
|
6
6
|
return __generator(this, function (_a) {
|
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_0DescribeRecommendationExportJobsCommand = functio
|
|
|
9
9
|
"x-amz-target": "ComputeOptimizerService.DescribeRecommendationExportJobs",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_0DescribeRecommendationExportJobsRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand = fu
|
|
|
20
20
|
"x-amz-target": "ComputeOptimizerService.ExportAutoScalingGroupRecommendations",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_0ExportAutoScalingGroupRecommendationsRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_0ExportEBSVolumeRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_0ExportEBSVolumeRecommendationsCommand = function
|
|
|
31
31
|
"x-amz-target": "ComputeOptimizerService.ExportEBSVolumeRecommendations",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_0ExportEBSVolumeRecommendationsRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_0ExportEC2InstanceRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_0ExportEC2InstanceRecommendationsCommand = functio
|
|
|
42
42
|
"x-amz-target": "ComputeOptimizerService.ExportEC2InstanceRecommendations",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_0ExportEC2InstanceRecommendationsRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_0ExportLambdaFunctionRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_0ExportLambdaFunctionRecommendationsCommand = func
|
|
|
53
53
|
"x-amz-target": "ComputeOptimizerService.ExportLambdaFunctionRecommendations",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_0ExportLambdaFunctionRecommendationsRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_0GetAutoScalingGroupRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_0GetAutoScalingGroupRecommendationsCommand = funct
|
|
|
64
64
|
"x-amz-target": "ComputeOptimizerService.GetAutoScalingGroupRecommendations",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_0GetAutoScalingGroupRecommendationsRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_0GetEBSVolumeRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_0GetEBSVolumeRecommendationsCommand = function (in
|
|
|
75
75
|
"x-amz-target": "ComputeOptimizerService.GetEBSVolumeRecommendations",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_0GetEBSVolumeRecommendationsRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_0GetEC2InstanceRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_0GetEC2InstanceRecommendationsCommand = function (
|
|
|
86
86
|
"x-amz-target": "ComputeOptimizerService.GetEC2InstanceRecommendations",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_0GetEC2InstanceRecommendationsRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand = fun
|
|
|
97
97
|
"x-amz-target": "ComputeOptimizerService.GetEC2RecommendationProjectedMetrics",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_0GetEC2RecommendationProjectedMetricsRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_0GetEnrollmentStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_0GetEnrollmentStatusCommand = function (input, con
|
|
|
108
108
|
"x-amz-target": "ComputeOptimizerService.GetEnrollmentStatus",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_0GetEnrollmentStatusRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand = fun
|
|
|
119
119
|
"x-amz-target": "ComputeOptimizerService.GetEnrollmentStatusesForOrganization",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_0GetEnrollmentStatusesForOrganizationRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_0GetLambdaFunctionRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_0GetLambdaFunctionRecommendationsCommand = functio
|
|
|
130
130
|
"x-amz-target": "ComputeOptimizerService.GetLambdaFunctionRecommendations",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_0GetLambdaFunctionRecommendationsRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_0GetRecommendationSummariesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_0GetRecommendationSummariesCommand = function (inp
|
|
|
141
141
|
"x-amz-target": "ComputeOptimizerService.GetRecommendationSummaries",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_0GetRecommendationSummariesRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_0UpdateEnrollmentStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_0UpdateEnrollmentStatusCommand = function (input,
|
|
|
152
152
|
"x-amz-target": "ComputeOptimizerService.UpdateEnrollmentStatus",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_0UpdateEnrollmentStatusRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var deserializeAws_json1_0DescribeRecommendationExportJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -161,15 +161,15 @@ export var deserializeAws_json1_0DescribeRecommendationExportJobsCommand = funct
|
|
|
161
161
|
switch (_a.label) {
|
|
162
162
|
case 0:
|
|
163
163
|
if (output.statusCode >= 300) {
|
|
164
|
-
return [2
|
|
164
|
+
return [2, deserializeAws_json1_0DescribeRecommendationExportJobsCommandError(output, context)];
|
|
165
165
|
}
|
|
166
|
-
return [4
|
|
166
|
+
return [4, parseBody(output.body, context)];
|
|
167
167
|
case 1:
|
|
168
168
|
data = _a.sent();
|
|
169
169
|
contents = {};
|
|
170
170
|
contents = deserializeAws_json1_0DescribeRecommendationExportJobsResponse(data, context);
|
|
171
171
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
172
|
-
return [2
|
|
172
|
+
return [2, Promise.resolve(response)];
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
}); };
|
|
@@ -181,79 +181,79 @@ var deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = functio
|
|
|
181
181
|
case 0:
|
|
182
182
|
_a = [__assign({}, output)];
|
|
183
183
|
_l = {};
|
|
184
|
-
return [4
|
|
184
|
+
return [4, parseBody(output.body, context)];
|
|
185
185
|
case 1:
|
|
186
186
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
187
187
|
errorCode = "UnknownError";
|
|
188
188
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
189
189
|
_b = errorCode;
|
|
190
190
|
switch (_b) {
|
|
191
|
-
case "AccessDeniedException": return [3
|
|
192
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
193
|
-
case "InternalServerException": return [3
|
|
194
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
195
|
-
case "InvalidParameterValueException": return [3
|
|
196
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
197
|
-
case "MissingAuthenticationToken": return [3
|
|
198
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
199
|
-
case "OptInRequiredException": return [3
|
|
200
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
201
|
-
case "ResourceNotFoundException": return [3
|
|
202
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3
|
|
203
|
-
case "ServiceUnavailableException": return [3
|
|
204
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
205
|
-
case "ThrottlingException": return [3
|
|
206
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
191
|
+
case "AccessDeniedException": return [3, 2];
|
|
192
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
193
|
+
case "InternalServerException": return [3, 4];
|
|
194
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
195
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
196
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
197
|
+
case "MissingAuthenticationToken": return [3, 8];
|
|
198
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 8];
|
|
199
|
+
case "OptInRequiredException": return [3, 10];
|
|
200
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 10];
|
|
201
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
202
|
+
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3, 12];
|
|
203
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
204
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
205
|
+
case "ThrottlingException": return [3, 16];
|
|
206
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
207
207
|
}
|
|
208
|
-
return [3
|
|
208
|
+
return [3, 18];
|
|
209
209
|
case 2:
|
|
210
210
|
_c = [{}];
|
|
211
|
-
return [4
|
|
211
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
212
212
|
case 3:
|
|
213
213
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
214
|
-
return [3
|
|
214
|
+
return [3, 19];
|
|
215
215
|
case 4:
|
|
216
216
|
_d = [{}];
|
|
217
|
-
return [4
|
|
217
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
218
218
|
case 5:
|
|
219
219
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
220
|
-
return [3
|
|
220
|
+
return [3, 19];
|
|
221
221
|
case 6:
|
|
222
222
|
_e = [{}];
|
|
223
|
-
return [4
|
|
223
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
224
224
|
case 7:
|
|
225
225
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
226
|
-
return [3
|
|
226
|
+
return [3, 19];
|
|
227
227
|
case 8:
|
|
228
228
|
_f = [{}];
|
|
229
|
-
return [4
|
|
229
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
230
230
|
case 9:
|
|
231
231
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
232
|
-
return [3
|
|
232
|
+
return [3, 19];
|
|
233
233
|
case 10:
|
|
234
234
|
_g = [{}];
|
|
235
|
-
return [4
|
|
235
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
236
236
|
case 11:
|
|
237
237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
238
|
-
return [3
|
|
238
|
+
return [3, 19];
|
|
239
239
|
case 12:
|
|
240
240
|
_h = [{}];
|
|
241
|
-
return [4
|
|
241
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
242
242
|
case 13:
|
|
243
243
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
244
|
-
return [3
|
|
244
|
+
return [3, 19];
|
|
245
245
|
case 14:
|
|
246
246
|
_j = [{}];
|
|
247
|
-
return [4
|
|
247
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
248
248
|
case 15:
|
|
249
249
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
250
|
-
return [3
|
|
250
|
+
return [3, 19];
|
|
251
251
|
case 16:
|
|
252
252
|
_k = [{}];
|
|
253
|
-
return [4
|
|
253
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
254
254
|
case 17:
|
|
255
255
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
256
|
-
return [3
|
|
256
|
+
return [3, 19];
|
|
257
257
|
case 18:
|
|
258
258
|
parsedBody = parsedOutput.body;
|
|
259
259
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -263,7 +263,7 @@ var deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = functio
|
|
|
263
263
|
message = response.message || response.Message || errorCode;
|
|
264
264
|
response.message = message;
|
|
265
265
|
delete response.Message;
|
|
266
|
-
return [2
|
|
266
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
}); };
|
|
@@ -273,15 +273,15 @@ export var deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommand =
|
|
|
273
273
|
switch (_a.label) {
|
|
274
274
|
case 0:
|
|
275
275
|
if (output.statusCode >= 300) {
|
|
276
|
-
return [2
|
|
276
|
+
return [2, deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError(output, context)];
|
|
277
277
|
}
|
|
278
|
-
return [4
|
|
278
|
+
return [4, parseBody(output.body, context)];
|
|
279
279
|
case 1:
|
|
280
280
|
data = _a.sent();
|
|
281
281
|
contents = {};
|
|
282
282
|
contents = deserializeAws_json1_0ExportAutoScalingGroupRecommendationsResponse(data, context);
|
|
283
283
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
284
|
-
return [2
|
|
284
|
+
return [2, Promise.resolve(response)];
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
287
|
}); };
|
|
@@ -293,79 +293,79 @@ var deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError = fu
|
|
|
293
293
|
case 0:
|
|
294
294
|
_a = [__assign({}, output)];
|
|
295
295
|
_l = {};
|
|
296
|
-
return [4
|
|
296
|
+
return [4, parseBody(output.body, context)];
|
|
297
297
|
case 1:
|
|
298
298
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
299
299
|
errorCode = "UnknownError";
|
|
300
300
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
301
301
|
_b = errorCode;
|
|
302
302
|
switch (_b) {
|
|
303
|
-
case "AccessDeniedException": return [3
|
|
304
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
305
|
-
case "InternalServerException": return [3
|
|
306
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
307
|
-
case "InvalidParameterValueException": return [3
|
|
308
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
309
|
-
case "LimitExceededException": return [3
|
|
310
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3
|
|
311
|
-
case "MissingAuthenticationToken": return [3
|
|
312
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
313
|
-
case "OptInRequiredException": return [3
|
|
314
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
315
|
-
case "ServiceUnavailableException": return [3
|
|
316
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
317
|
-
case "ThrottlingException": return [3
|
|
318
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
303
|
+
case "AccessDeniedException": return [3, 2];
|
|
304
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
305
|
+
case "InternalServerException": return [3, 4];
|
|
306
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
307
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
308
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
309
|
+
case "LimitExceededException": return [3, 8];
|
|
310
|
+
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3, 8];
|
|
311
|
+
case "MissingAuthenticationToken": return [3, 10];
|
|
312
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 10];
|
|
313
|
+
case "OptInRequiredException": return [3, 12];
|
|
314
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 12];
|
|
315
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
316
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
317
|
+
case "ThrottlingException": return [3, 16];
|
|
318
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
319
319
|
}
|
|
320
|
-
return [3
|
|
320
|
+
return [3, 18];
|
|
321
321
|
case 2:
|
|
322
322
|
_c = [{}];
|
|
323
|
-
return [4
|
|
323
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
324
324
|
case 3:
|
|
325
325
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
326
|
-
return [3
|
|
326
|
+
return [3, 19];
|
|
327
327
|
case 4:
|
|
328
328
|
_d = [{}];
|
|
329
|
-
return [4
|
|
329
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
330
330
|
case 5:
|
|
331
331
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
332
|
-
return [3
|
|
332
|
+
return [3, 19];
|
|
333
333
|
case 6:
|
|
334
334
|
_e = [{}];
|
|
335
|
-
return [4
|
|
335
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
336
336
|
case 7:
|
|
337
337
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
338
|
-
return [3
|
|
338
|
+
return [3, 19];
|
|
339
339
|
case 8:
|
|
340
340
|
_f = [{}];
|
|
341
|
-
return [4
|
|
341
|
+
return [4, deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)];
|
|
342
342
|
case 9:
|
|
343
343
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
344
|
-
return [3
|
|
344
|
+
return [3, 19];
|
|
345
345
|
case 10:
|
|
346
346
|
_g = [{}];
|
|
347
|
-
return [4
|
|
347
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
348
348
|
case 11:
|
|
349
349
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
350
|
-
return [3
|
|
350
|
+
return [3, 19];
|
|
351
351
|
case 12:
|
|
352
352
|
_h = [{}];
|
|
353
|
-
return [4
|
|
353
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
354
354
|
case 13:
|
|
355
355
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
356
|
-
return [3
|
|
356
|
+
return [3, 19];
|
|
357
357
|
case 14:
|
|
358
358
|
_j = [{}];
|
|
359
|
-
return [4
|
|
359
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
360
360
|
case 15:
|
|
361
361
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
362
|
-
return [3
|
|
362
|
+
return [3, 19];
|
|
363
363
|
case 16:
|
|
364
364
|
_k = [{}];
|
|
365
|
-
return [4
|
|
365
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
366
366
|
case 17:
|
|
367
367
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
368
|
-
return [3
|
|
368
|
+
return [3, 19];
|
|
369
369
|
case 18:
|
|
370
370
|
parsedBody = parsedOutput.body;
|
|
371
371
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -375,7 +375,7 @@ var deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError = fu
|
|
|
375
375
|
message = response.message || response.Message || errorCode;
|
|
376
376
|
response.message = message;
|
|
377
377
|
delete response.Message;
|
|
378
|
-
return [2
|
|
378
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
}); };
|
|
@@ -385,15 +385,15 @@ export var deserializeAws_json1_0ExportEBSVolumeRecommendationsCommand = functio
|
|
|
385
385
|
switch (_a.label) {
|
|
386
386
|
case 0:
|
|
387
387
|
if (output.statusCode >= 300) {
|
|
388
|
-
return [2
|
|
388
|
+
return [2, deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError(output, context)];
|
|
389
389
|
}
|
|
390
|
-
return [4
|
|
390
|
+
return [4, parseBody(output.body, context)];
|
|
391
391
|
case 1:
|
|
392
392
|
data = _a.sent();
|
|
393
393
|
contents = {};
|
|
394
394
|
contents = deserializeAws_json1_0ExportEBSVolumeRecommendationsResponse(data, context);
|
|
395
395
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
396
|
-
return [2
|
|
396
|
+
return [2, Promise.resolve(response)];
|
|
397
397
|
}
|
|
398
398
|
});
|
|
399
399
|
}); };
|
|
@@ -405,79 +405,79 @@ var deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = function
|
|
|
405
405
|
case 0:
|
|
406
406
|
_a = [__assign({}, output)];
|
|
407
407
|
_l = {};
|
|
408
|
-
return [4
|
|
408
|
+
return [4, parseBody(output.body, context)];
|
|
409
409
|
case 1:
|
|
410
410
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
411
411
|
errorCode = "UnknownError";
|
|
412
412
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
413
413
|
_b = errorCode;
|
|
414
414
|
switch (_b) {
|
|
415
|
-
case "AccessDeniedException": return [3
|
|
416
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
417
|
-
case "InternalServerException": return [3
|
|
418
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
419
|
-
case "InvalidParameterValueException": return [3
|
|
420
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
421
|
-
case "LimitExceededException": return [3
|
|
422
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3
|
|
423
|
-
case "MissingAuthenticationToken": return [3
|
|
424
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
425
|
-
case "OptInRequiredException": return [3
|
|
426
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
427
|
-
case "ServiceUnavailableException": return [3
|
|
428
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
429
|
-
case "ThrottlingException": return [3
|
|
430
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
415
|
+
case "AccessDeniedException": return [3, 2];
|
|
416
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
417
|
+
case "InternalServerException": return [3, 4];
|
|
418
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
419
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
420
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
421
|
+
case "LimitExceededException": return [3, 8];
|
|
422
|
+
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3, 8];
|
|
423
|
+
case "MissingAuthenticationToken": return [3, 10];
|
|
424
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 10];
|
|
425
|
+
case "OptInRequiredException": return [3, 12];
|
|
426
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 12];
|
|
427
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
428
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
429
|
+
case "ThrottlingException": return [3, 16];
|
|
430
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
431
431
|
}
|
|
432
|
-
return [3
|
|
432
|
+
return [3, 18];
|
|
433
433
|
case 2:
|
|
434
434
|
_c = [{}];
|
|
435
|
-
return [4
|
|
435
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
436
436
|
case 3:
|
|
437
437
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
438
|
-
return [3
|
|
438
|
+
return [3, 19];
|
|
439
439
|
case 4:
|
|
440
440
|
_d = [{}];
|
|
441
|
-
return [4
|
|
441
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
442
442
|
case 5:
|
|
443
443
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
444
|
-
return [3
|
|
444
|
+
return [3, 19];
|
|
445
445
|
case 6:
|
|
446
446
|
_e = [{}];
|
|
447
|
-
return [4
|
|
447
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
448
448
|
case 7:
|
|
449
449
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
450
|
-
return [3
|
|
450
|
+
return [3, 19];
|
|
451
451
|
case 8:
|
|
452
452
|
_f = [{}];
|
|
453
|
-
return [4
|
|
453
|
+
return [4, deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)];
|
|
454
454
|
case 9:
|
|
455
455
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
456
|
-
return [3
|
|
456
|
+
return [3, 19];
|
|
457
457
|
case 10:
|
|
458
458
|
_g = [{}];
|
|
459
|
-
return [4
|
|
459
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
460
460
|
case 11:
|
|
461
461
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
462
|
-
return [3
|
|
462
|
+
return [3, 19];
|
|
463
463
|
case 12:
|
|
464
464
|
_h = [{}];
|
|
465
|
-
return [4
|
|
465
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
466
466
|
case 13:
|
|
467
467
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
468
|
-
return [3
|
|
468
|
+
return [3, 19];
|
|
469
469
|
case 14:
|
|
470
470
|
_j = [{}];
|
|
471
|
-
return [4
|
|
471
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
472
472
|
case 15:
|
|
473
473
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
474
|
-
return [3
|
|
474
|
+
return [3, 19];
|
|
475
475
|
case 16:
|
|
476
476
|
_k = [{}];
|
|
477
|
-
return [4
|
|
477
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
478
478
|
case 17:
|
|
479
479
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
480
|
-
return [3
|
|
480
|
+
return [3, 19];
|
|
481
481
|
case 18:
|
|
482
482
|
parsedBody = parsedOutput.body;
|
|
483
483
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -487,7 +487,7 @@ var deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = function
|
|
|
487
487
|
message = response.message || response.Message || errorCode;
|
|
488
488
|
response.message = message;
|
|
489
489
|
delete response.Message;
|
|
490
|
-
return [2
|
|
490
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
493
|
}); };
|
|
@@ -497,15 +497,15 @@ export var deserializeAws_json1_0ExportEC2InstanceRecommendationsCommand = funct
|
|
|
497
497
|
switch (_a.label) {
|
|
498
498
|
case 0:
|
|
499
499
|
if (output.statusCode >= 300) {
|
|
500
|
-
return [2
|
|
500
|
+
return [2, deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError(output, context)];
|
|
501
501
|
}
|
|
502
|
-
return [4
|
|
502
|
+
return [4, parseBody(output.body, context)];
|
|
503
503
|
case 1:
|
|
504
504
|
data = _a.sent();
|
|
505
505
|
contents = {};
|
|
506
506
|
contents = deserializeAws_json1_0ExportEC2InstanceRecommendationsResponse(data, context);
|
|
507
507
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
508
|
-
return [2
|
|
508
|
+
return [2, Promise.resolve(response)];
|
|
509
509
|
}
|
|
510
510
|
});
|
|
511
511
|
}); };
|
|
@@ -517,79 +517,79 @@ var deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = functio
|
|
|
517
517
|
case 0:
|
|
518
518
|
_a = [__assign({}, output)];
|
|
519
519
|
_l = {};
|
|
520
|
-
return [4
|
|
520
|
+
return [4, parseBody(output.body, context)];
|
|
521
521
|
case 1:
|
|
522
522
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
523
523
|
errorCode = "UnknownError";
|
|
524
524
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
525
|
_b = errorCode;
|
|
526
526
|
switch (_b) {
|
|
527
|
-
case "AccessDeniedException": return [3
|
|
528
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
529
|
-
case "InternalServerException": return [3
|
|
530
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
531
|
-
case "InvalidParameterValueException": return [3
|
|
532
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
533
|
-
case "LimitExceededException": return [3
|
|
534
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3
|
|
535
|
-
case "MissingAuthenticationToken": return [3
|
|
536
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
537
|
-
case "OptInRequiredException": return [3
|
|
538
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
539
|
-
case "ServiceUnavailableException": return [3
|
|
540
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
541
|
-
case "ThrottlingException": return [3
|
|
542
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
527
|
+
case "AccessDeniedException": return [3, 2];
|
|
528
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
529
|
+
case "InternalServerException": return [3, 4];
|
|
530
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
531
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
532
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
533
|
+
case "LimitExceededException": return [3, 8];
|
|
534
|
+
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3, 8];
|
|
535
|
+
case "MissingAuthenticationToken": return [3, 10];
|
|
536
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 10];
|
|
537
|
+
case "OptInRequiredException": return [3, 12];
|
|
538
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 12];
|
|
539
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
540
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
541
|
+
case "ThrottlingException": return [3, 16];
|
|
542
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
543
543
|
}
|
|
544
|
-
return [3
|
|
544
|
+
return [3, 18];
|
|
545
545
|
case 2:
|
|
546
546
|
_c = [{}];
|
|
547
|
-
return [4
|
|
547
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
548
548
|
case 3:
|
|
549
549
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
550
|
-
return [3
|
|
550
|
+
return [3, 19];
|
|
551
551
|
case 4:
|
|
552
552
|
_d = [{}];
|
|
553
|
-
return [4
|
|
553
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
554
554
|
case 5:
|
|
555
555
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
556
|
-
return [3
|
|
556
|
+
return [3, 19];
|
|
557
557
|
case 6:
|
|
558
558
|
_e = [{}];
|
|
559
|
-
return [4
|
|
559
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
560
560
|
case 7:
|
|
561
561
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
562
|
-
return [3
|
|
562
|
+
return [3, 19];
|
|
563
563
|
case 8:
|
|
564
564
|
_f = [{}];
|
|
565
|
-
return [4
|
|
565
|
+
return [4, deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)];
|
|
566
566
|
case 9:
|
|
567
567
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
568
|
-
return [3
|
|
568
|
+
return [3, 19];
|
|
569
569
|
case 10:
|
|
570
570
|
_g = [{}];
|
|
571
|
-
return [4
|
|
571
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
572
572
|
case 11:
|
|
573
573
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
574
|
-
return [3
|
|
574
|
+
return [3, 19];
|
|
575
575
|
case 12:
|
|
576
576
|
_h = [{}];
|
|
577
|
-
return [4
|
|
577
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
578
578
|
case 13:
|
|
579
579
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
580
|
-
return [3
|
|
580
|
+
return [3, 19];
|
|
581
581
|
case 14:
|
|
582
582
|
_j = [{}];
|
|
583
|
-
return [4
|
|
583
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
584
584
|
case 15:
|
|
585
585
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
586
|
-
return [3
|
|
586
|
+
return [3, 19];
|
|
587
587
|
case 16:
|
|
588
588
|
_k = [{}];
|
|
589
|
-
return [4
|
|
589
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
590
590
|
case 17:
|
|
591
591
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
592
|
-
return [3
|
|
592
|
+
return [3, 19];
|
|
593
593
|
case 18:
|
|
594
594
|
parsedBody = parsedOutput.body;
|
|
595
595
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -599,7 +599,7 @@ var deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = functio
|
|
|
599
599
|
message = response.message || response.Message || errorCode;
|
|
600
600
|
response.message = message;
|
|
601
601
|
delete response.Message;
|
|
602
|
-
return [2
|
|
602
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
605
|
}); };
|
|
@@ -609,15 +609,15 @@ export var deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommand = fu
|
|
|
609
609
|
switch (_a.label) {
|
|
610
610
|
case 0:
|
|
611
611
|
if (output.statusCode >= 300) {
|
|
612
|
-
return [2
|
|
612
|
+
return [2, deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError(output, context)];
|
|
613
613
|
}
|
|
614
|
-
return [4
|
|
614
|
+
return [4, parseBody(output.body, context)];
|
|
615
615
|
case 1:
|
|
616
616
|
data = _a.sent();
|
|
617
617
|
contents = {};
|
|
618
618
|
contents = deserializeAws_json1_0ExportLambdaFunctionRecommendationsResponse(data, context);
|
|
619
619
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
620
|
-
return [2
|
|
620
|
+
return [2, Promise.resolve(response)];
|
|
621
621
|
}
|
|
622
622
|
});
|
|
623
623
|
}); };
|
|
@@ -629,79 +629,79 @@ var deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = func
|
|
|
629
629
|
case 0:
|
|
630
630
|
_a = [__assign({}, output)];
|
|
631
631
|
_l = {};
|
|
632
|
-
return [4
|
|
632
|
+
return [4, parseBody(output.body, context)];
|
|
633
633
|
case 1:
|
|
634
634
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
635
635
|
errorCode = "UnknownError";
|
|
636
636
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
637
|
_b = errorCode;
|
|
638
638
|
switch (_b) {
|
|
639
|
-
case "AccessDeniedException": return [3
|
|
640
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
641
|
-
case "InternalServerException": return [3
|
|
642
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
643
|
-
case "InvalidParameterValueException": return [3
|
|
644
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
645
|
-
case "LimitExceededException": return [3
|
|
646
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3
|
|
647
|
-
case "MissingAuthenticationToken": return [3
|
|
648
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
649
|
-
case "OptInRequiredException": return [3
|
|
650
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
651
|
-
case "ServiceUnavailableException": return [3
|
|
652
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
653
|
-
case "ThrottlingException": return [3
|
|
654
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
639
|
+
case "AccessDeniedException": return [3, 2];
|
|
640
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
641
|
+
case "InternalServerException": return [3, 4];
|
|
642
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
643
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
644
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
645
|
+
case "LimitExceededException": return [3, 8];
|
|
646
|
+
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3, 8];
|
|
647
|
+
case "MissingAuthenticationToken": return [3, 10];
|
|
648
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 10];
|
|
649
|
+
case "OptInRequiredException": return [3, 12];
|
|
650
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 12];
|
|
651
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
652
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
653
|
+
case "ThrottlingException": return [3, 16];
|
|
654
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
655
655
|
}
|
|
656
|
-
return [3
|
|
656
|
+
return [3, 18];
|
|
657
657
|
case 2:
|
|
658
658
|
_c = [{}];
|
|
659
|
-
return [4
|
|
659
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
660
660
|
case 3:
|
|
661
661
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
662
|
-
return [3
|
|
662
|
+
return [3, 19];
|
|
663
663
|
case 4:
|
|
664
664
|
_d = [{}];
|
|
665
|
-
return [4
|
|
665
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
666
666
|
case 5:
|
|
667
667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
668
|
-
return [3
|
|
668
|
+
return [3, 19];
|
|
669
669
|
case 6:
|
|
670
670
|
_e = [{}];
|
|
671
|
-
return [4
|
|
671
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
672
672
|
case 7:
|
|
673
673
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
674
|
-
return [3
|
|
674
|
+
return [3, 19];
|
|
675
675
|
case 8:
|
|
676
676
|
_f = [{}];
|
|
677
|
-
return [4
|
|
677
|
+
return [4, deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)];
|
|
678
678
|
case 9:
|
|
679
679
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
680
|
-
return [3
|
|
680
|
+
return [3, 19];
|
|
681
681
|
case 10:
|
|
682
682
|
_g = [{}];
|
|
683
|
-
return [4
|
|
683
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
684
684
|
case 11:
|
|
685
685
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
686
|
-
return [3
|
|
686
|
+
return [3, 19];
|
|
687
687
|
case 12:
|
|
688
688
|
_h = [{}];
|
|
689
|
-
return [4
|
|
689
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
690
690
|
case 13:
|
|
691
691
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
692
|
-
return [3
|
|
692
|
+
return [3, 19];
|
|
693
693
|
case 14:
|
|
694
694
|
_j = [{}];
|
|
695
|
-
return [4
|
|
695
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
696
696
|
case 15:
|
|
697
697
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
698
|
-
return [3
|
|
698
|
+
return [3, 19];
|
|
699
699
|
case 16:
|
|
700
700
|
_k = [{}];
|
|
701
|
-
return [4
|
|
701
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
702
702
|
case 17:
|
|
703
703
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
704
|
-
return [3
|
|
704
|
+
return [3, 19];
|
|
705
705
|
case 18:
|
|
706
706
|
parsedBody = parsedOutput.body;
|
|
707
707
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -711,7 +711,7 @@ var deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = func
|
|
|
711
711
|
message = response.message || response.Message || errorCode;
|
|
712
712
|
response.message = message;
|
|
713
713
|
delete response.Message;
|
|
714
|
-
return [2
|
|
714
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
715
715
|
}
|
|
716
716
|
});
|
|
717
717
|
}); };
|
|
@@ -721,15 +721,15 @@ export var deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommand = fun
|
|
|
721
721
|
switch (_a.label) {
|
|
722
722
|
case 0:
|
|
723
723
|
if (output.statusCode >= 300) {
|
|
724
|
-
return [2
|
|
724
|
+
return [2, deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError(output, context)];
|
|
725
725
|
}
|
|
726
|
-
return [4
|
|
726
|
+
return [4, parseBody(output.body, context)];
|
|
727
727
|
case 1:
|
|
728
728
|
data = _a.sent();
|
|
729
729
|
contents = {};
|
|
730
730
|
contents = deserializeAws_json1_0GetAutoScalingGroupRecommendationsResponse(data, context);
|
|
731
731
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
732
|
-
return [2
|
|
732
|
+
return [2, Promise.resolve(response)];
|
|
733
733
|
}
|
|
734
734
|
});
|
|
735
735
|
}); };
|
|
@@ -741,79 +741,79 @@ var deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = funct
|
|
|
741
741
|
case 0:
|
|
742
742
|
_a = [__assign({}, output)];
|
|
743
743
|
_l = {};
|
|
744
|
-
return [4
|
|
744
|
+
return [4, parseBody(output.body, context)];
|
|
745
745
|
case 1:
|
|
746
746
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
747
747
|
errorCode = "UnknownError";
|
|
748
748
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
749
|
_b = errorCode;
|
|
750
750
|
switch (_b) {
|
|
751
|
-
case "AccessDeniedException": return [3
|
|
752
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
753
|
-
case "InternalServerException": return [3
|
|
754
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
755
|
-
case "InvalidParameterValueException": return [3
|
|
756
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
757
|
-
case "MissingAuthenticationToken": return [3
|
|
758
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
759
|
-
case "OptInRequiredException": return [3
|
|
760
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
761
|
-
case "ResourceNotFoundException": return [3
|
|
762
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3
|
|
763
|
-
case "ServiceUnavailableException": return [3
|
|
764
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
765
|
-
case "ThrottlingException": return [3
|
|
766
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
751
|
+
case "AccessDeniedException": return [3, 2];
|
|
752
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
753
|
+
case "InternalServerException": return [3, 4];
|
|
754
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
755
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
756
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
757
|
+
case "MissingAuthenticationToken": return [3, 8];
|
|
758
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 8];
|
|
759
|
+
case "OptInRequiredException": return [3, 10];
|
|
760
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 10];
|
|
761
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
762
|
+
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3, 12];
|
|
763
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
764
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
765
|
+
case "ThrottlingException": return [3, 16];
|
|
766
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
767
767
|
}
|
|
768
|
-
return [3
|
|
768
|
+
return [3, 18];
|
|
769
769
|
case 2:
|
|
770
770
|
_c = [{}];
|
|
771
|
-
return [4
|
|
771
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
772
772
|
case 3:
|
|
773
773
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
774
|
-
return [3
|
|
774
|
+
return [3, 19];
|
|
775
775
|
case 4:
|
|
776
776
|
_d = [{}];
|
|
777
|
-
return [4
|
|
777
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
778
778
|
case 5:
|
|
779
779
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
780
|
-
return [3
|
|
780
|
+
return [3, 19];
|
|
781
781
|
case 6:
|
|
782
782
|
_e = [{}];
|
|
783
|
-
return [4
|
|
783
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
784
784
|
case 7:
|
|
785
785
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
786
|
-
return [3
|
|
786
|
+
return [3, 19];
|
|
787
787
|
case 8:
|
|
788
788
|
_f = [{}];
|
|
789
|
-
return [4
|
|
789
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
790
790
|
case 9:
|
|
791
791
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
792
|
-
return [3
|
|
792
|
+
return [3, 19];
|
|
793
793
|
case 10:
|
|
794
794
|
_g = [{}];
|
|
795
|
-
return [4
|
|
795
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
796
796
|
case 11:
|
|
797
797
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
798
|
-
return [3
|
|
798
|
+
return [3, 19];
|
|
799
799
|
case 12:
|
|
800
800
|
_h = [{}];
|
|
801
|
-
return [4
|
|
801
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
802
802
|
case 13:
|
|
803
803
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
804
|
-
return [3
|
|
804
|
+
return [3, 19];
|
|
805
805
|
case 14:
|
|
806
806
|
_j = [{}];
|
|
807
|
-
return [4
|
|
807
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
808
808
|
case 15:
|
|
809
809
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
810
|
-
return [3
|
|
810
|
+
return [3, 19];
|
|
811
811
|
case 16:
|
|
812
812
|
_k = [{}];
|
|
813
|
-
return [4
|
|
813
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
814
814
|
case 17:
|
|
815
815
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
816
|
-
return [3
|
|
816
|
+
return [3, 19];
|
|
817
817
|
case 18:
|
|
818
818
|
parsedBody = parsedOutput.body;
|
|
819
819
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -823,7 +823,7 @@ var deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = funct
|
|
|
823
823
|
message = response.message || response.Message || errorCode;
|
|
824
824
|
response.message = message;
|
|
825
825
|
delete response.Message;
|
|
826
|
-
return [2
|
|
826
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
827
827
|
}
|
|
828
828
|
});
|
|
829
829
|
}); };
|
|
@@ -833,15 +833,15 @@ export var deserializeAws_json1_0GetEBSVolumeRecommendationsCommand = function (
|
|
|
833
833
|
switch (_a.label) {
|
|
834
834
|
case 0:
|
|
835
835
|
if (output.statusCode >= 300) {
|
|
836
|
-
return [2
|
|
836
|
+
return [2, deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError(output, context)];
|
|
837
837
|
}
|
|
838
|
-
return [4
|
|
838
|
+
return [4, parseBody(output.body, context)];
|
|
839
839
|
case 1:
|
|
840
840
|
data = _a.sent();
|
|
841
841
|
contents = {};
|
|
842
842
|
contents = deserializeAws_json1_0GetEBSVolumeRecommendationsResponse(data, context);
|
|
843
843
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
844
|
-
return [2
|
|
844
|
+
return [2, Promise.resolve(response)];
|
|
845
845
|
}
|
|
846
846
|
});
|
|
847
847
|
}); };
|
|
@@ -853,79 +853,79 @@ var deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = function (ou
|
|
|
853
853
|
case 0:
|
|
854
854
|
_a = [__assign({}, output)];
|
|
855
855
|
_l = {};
|
|
856
|
-
return [4
|
|
856
|
+
return [4, parseBody(output.body, context)];
|
|
857
857
|
case 1:
|
|
858
858
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
859
859
|
errorCode = "UnknownError";
|
|
860
860
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
861
|
_b = errorCode;
|
|
862
862
|
switch (_b) {
|
|
863
|
-
case "AccessDeniedException": return [3
|
|
864
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
865
|
-
case "InternalServerException": return [3
|
|
866
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
867
|
-
case "InvalidParameterValueException": return [3
|
|
868
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
869
|
-
case "MissingAuthenticationToken": return [3
|
|
870
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
871
|
-
case "OptInRequiredException": return [3
|
|
872
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
873
|
-
case "ResourceNotFoundException": return [3
|
|
874
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3
|
|
875
|
-
case "ServiceUnavailableException": return [3
|
|
876
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
877
|
-
case "ThrottlingException": return [3
|
|
878
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
863
|
+
case "AccessDeniedException": return [3, 2];
|
|
864
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
865
|
+
case "InternalServerException": return [3, 4];
|
|
866
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
867
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
868
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
869
|
+
case "MissingAuthenticationToken": return [3, 8];
|
|
870
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 8];
|
|
871
|
+
case "OptInRequiredException": return [3, 10];
|
|
872
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 10];
|
|
873
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
874
|
+
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3, 12];
|
|
875
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
876
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
877
|
+
case "ThrottlingException": return [3, 16];
|
|
878
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
879
879
|
}
|
|
880
|
-
return [3
|
|
880
|
+
return [3, 18];
|
|
881
881
|
case 2:
|
|
882
882
|
_c = [{}];
|
|
883
|
-
return [4
|
|
883
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
884
884
|
case 3:
|
|
885
885
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
886
|
-
return [3
|
|
886
|
+
return [3, 19];
|
|
887
887
|
case 4:
|
|
888
888
|
_d = [{}];
|
|
889
|
-
return [4
|
|
889
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
890
890
|
case 5:
|
|
891
891
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
892
|
-
return [3
|
|
892
|
+
return [3, 19];
|
|
893
893
|
case 6:
|
|
894
894
|
_e = [{}];
|
|
895
|
-
return [4
|
|
895
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
896
896
|
case 7:
|
|
897
897
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
898
|
-
return [3
|
|
898
|
+
return [3, 19];
|
|
899
899
|
case 8:
|
|
900
900
|
_f = [{}];
|
|
901
|
-
return [4
|
|
901
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
902
902
|
case 9:
|
|
903
903
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
904
|
-
return [3
|
|
904
|
+
return [3, 19];
|
|
905
905
|
case 10:
|
|
906
906
|
_g = [{}];
|
|
907
|
-
return [4
|
|
907
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
908
908
|
case 11:
|
|
909
909
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
910
|
-
return [3
|
|
910
|
+
return [3, 19];
|
|
911
911
|
case 12:
|
|
912
912
|
_h = [{}];
|
|
913
|
-
return [4
|
|
913
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
914
914
|
case 13:
|
|
915
915
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
916
|
-
return [3
|
|
916
|
+
return [3, 19];
|
|
917
917
|
case 14:
|
|
918
918
|
_j = [{}];
|
|
919
|
-
return [4
|
|
919
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
920
920
|
case 15:
|
|
921
921
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
922
|
-
return [3
|
|
922
|
+
return [3, 19];
|
|
923
923
|
case 16:
|
|
924
924
|
_k = [{}];
|
|
925
|
-
return [4
|
|
925
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
926
926
|
case 17:
|
|
927
927
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
928
|
-
return [3
|
|
928
|
+
return [3, 19];
|
|
929
929
|
case 18:
|
|
930
930
|
parsedBody = parsedOutput.body;
|
|
931
931
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -935,7 +935,7 @@ var deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = function (ou
|
|
|
935
935
|
message = response.message || response.Message || errorCode;
|
|
936
936
|
response.message = message;
|
|
937
937
|
delete response.Message;
|
|
938
|
-
return [2
|
|
938
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
939
939
|
}
|
|
940
940
|
});
|
|
941
941
|
}); };
|
|
@@ -945,15 +945,15 @@ export var deserializeAws_json1_0GetEC2InstanceRecommendationsCommand = function
|
|
|
945
945
|
switch (_a.label) {
|
|
946
946
|
case 0:
|
|
947
947
|
if (output.statusCode >= 300) {
|
|
948
|
-
return [2
|
|
948
|
+
return [2, deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError(output, context)];
|
|
949
949
|
}
|
|
950
|
-
return [4
|
|
950
|
+
return [4, parseBody(output.body, context)];
|
|
951
951
|
case 1:
|
|
952
952
|
data = _a.sent();
|
|
953
953
|
contents = {};
|
|
954
954
|
contents = deserializeAws_json1_0GetEC2InstanceRecommendationsResponse(data, context);
|
|
955
955
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
956
|
-
return [2
|
|
956
|
+
return [2, Promise.resolve(response)];
|
|
957
957
|
}
|
|
958
958
|
});
|
|
959
959
|
}); };
|
|
@@ -965,79 +965,79 @@ var deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = function (
|
|
|
965
965
|
case 0:
|
|
966
966
|
_a = [__assign({}, output)];
|
|
967
967
|
_l = {};
|
|
968
|
-
return [4
|
|
968
|
+
return [4, parseBody(output.body, context)];
|
|
969
969
|
case 1:
|
|
970
970
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
971
971
|
errorCode = "UnknownError";
|
|
972
972
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
973
|
_b = errorCode;
|
|
974
974
|
switch (_b) {
|
|
975
|
-
case "AccessDeniedException": return [3
|
|
976
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
977
|
-
case "InternalServerException": return [3
|
|
978
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
979
|
-
case "InvalidParameterValueException": return [3
|
|
980
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
981
|
-
case "MissingAuthenticationToken": return [3
|
|
982
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
983
|
-
case "OptInRequiredException": return [3
|
|
984
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
985
|
-
case "ResourceNotFoundException": return [3
|
|
986
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3
|
|
987
|
-
case "ServiceUnavailableException": return [3
|
|
988
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
989
|
-
case "ThrottlingException": return [3
|
|
990
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
975
|
+
case "AccessDeniedException": return [3, 2];
|
|
976
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
977
|
+
case "InternalServerException": return [3, 4];
|
|
978
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
979
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
980
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
981
|
+
case "MissingAuthenticationToken": return [3, 8];
|
|
982
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 8];
|
|
983
|
+
case "OptInRequiredException": return [3, 10];
|
|
984
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 10];
|
|
985
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
986
|
+
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3, 12];
|
|
987
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
988
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
989
|
+
case "ThrottlingException": return [3, 16];
|
|
990
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
991
991
|
}
|
|
992
|
-
return [3
|
|
992
|
+
return [3, 18];
|
|
993
993
|
case 2:
|
|
994
994
|
_c = [{}];
|
|
995
|
-
return [4
|
|
995
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
996
996
|
case 3:
|
|
997
997
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
998
|
-
return [3
|
|
998
|
+
return [3, 19];
|
|
999
999
|
case 4:
|
|
1000
1000
|
_d = [{}];
|
|
1001
|
-
return [4
|
|
1001
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1002
1002
|
case 5:
|
|
1003
1003
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1004
|
-
return [3
|
|
1004
|
+
return [3, 19];
|
|
1005
1005
|
case 6:
|
|
1006
1006
|
_e = [{}];
|
|
1007
|
-
return [4
|
|
1007
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1008
1008
|
case 7:
|
|
1009
1009
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1010
|
-
return [3
|
|
1010
|
+
return [3, 19];
|
|
1011
1011
|
case 8:
|
|
1012
1012
|
_f = [{}];
|
|
1013
|
-
return [4
|
|
1013
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
1014
1014
|
case 9:
|
|
1015
1015
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1016
|
-
return [3
|
|
1016
|
+
return [3, 19];
|
|
1017
1017
|
case 10:
|
|
1018
1018
|
_g = [{}];
|
|
1019
|
-
return [4
|
|
1019
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
1020
1020
|
case 11:
|
|
1021
1021
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1022
|
-
return [3
|
|
1022
|
+
return [3, 19];
|
|
1023
1023
|
case 12:
|
|
1024
1024
|
_h = [{}];
|
|
1025
|
-
return [4
|
|
1025
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1026
1026
|
case 13:
|
|
1027
1027
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1028
|
-
return [3
|
|
1028
|
+
return [3, 19];
|
|
1029
1029
|
case 14:
|
|
1030
1030
|
_j = [{}];
|
|
1031
|
-
return [4
|
|
1031
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1032
1032
|
case 15:
|
|
1033
1033
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1034
|
-
return [3
|
|
1034
|
+
return [3, 19];
|
|
1035
1035
|
case 16:
|
|
1036
1036
|
_k = [{}];
|
|
1037
|
-
return [4
|
|
1037
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1038
1038
|
case 17:
|
|
1039
1039
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1040
|
-
return [3
|
|
1040
|
+
return [3, 19];
|
|
1041
1041
|
case 18:
|
|
1042
1042
|
parsedBody = parsedOutput.body;
|
|
1043
1043
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1047,7 +1047,7 @@ var deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = function (
|
|
|
1047
1047
|
message = response.message || response.Message || errorCode;
|
|
1048
1048
|
response.message = message;
|
|
1049
1049
|
delete response.Message;
|
|
1050
|
-
return [2
|
|
1050
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1051
1051
|
}
|
|
1052
1052
|
});
|
|
1053
1053
|
}); };
|
|
@@ -1057,15 +1057,15 @@ export var deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommand = f
|
|
|
1057
1057
|
switch (_a.label) {
|
|
1058
1058
|
case 0:
|
|
1059
1059
|
if (output.statusCode >= 300) {
|
|
1060
|
-
return [2
|
|
1060
|
+
return [2, deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError(output, context)];
|
|
1061
1061
|
}
|
|
1062
|
-
return [4
|
|
1062
|
+
return [4, parseBody(output.body, context)];
|
|
1063
1063
|
case 1:
|
|
1064
1064
|
data = _a.sent();
|
|
1065
1065
|
contents = {};
|
|
1066
1066
|
contents = deserializeAws_json1_0GetEC2RecommendationProjectedMetricsResponse(data, context);
|
|
1067
1067
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1068
|
-
return [2
|
|
1068
|
+
return [2, Promise.resolve(response)];
|
|
1069
1069
|
}
|
|
1070
1070
|
});
|
|
1071
1071
|
}); };
|
|
@@ -1077,79 +1077,79 @@ var deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = fun
|
|
|
1077
1077
|
case 0:
|
|
1078
1078
|
_a = [__assign({}, output)];
|
|
1079
1079
|
_l = {};
|
|
1080
|
-
return [4
|
|
1080
|
+
return [4, parseBody(output.body, context)];
|
|
1081
1081
|
case 1:
|
|
1082
1082
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1083
1083
|
errorCode = "UnknownError";
|
|
1084
1084
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
1085
|
_b = errorCode;
|
|
1086
1086
|
switch (_b) {
|
|
1087
|
-
case "AccessDeniedException": return [3
|
|
1088
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
1089
|
-
case "InternalServerException": return [3
|
|
1090
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
1091
|
-
case "InvalidParameterValueException": return [3
|
|
1092
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
1093
|
-
case "MissingAuthenticationToken": return [3
|
|
1094
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
1095
|
-
case "OptInRequiredException": return [3
|
|
1096
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
1097
|
-
case "ResourceNotFoundException": return [3
|
|
1098
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3
|
|
1099
|
-
case "ServiceUnavailableException": return [3
|
|
1100
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
1101
|
-
case "ThrottlingException": return [3
|
|
1102
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
1087
|
+
case "AccessDeniedException": return [3, 2];
|
|
1088
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
1089
|
+
case "InternalServerException": return [3, 4];
|
|
1090
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
1091
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
1092
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
1093
|
+
case "MissingAuthenticationToken": return [3, 8];
|
|
1094
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 8];
|
|
1095
|
+
case "OptInRequiredException": return [3, 10];
|
|
1096
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 10];
|
|
1097
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1098
|
+
case "com.amazonaws.computeoptimizer#ResourceNotFoundException": return [3, 12];
|
|
1099
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1100
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
1101
|
+
case "ThrottlingException": return [3, 16];
|
|
1102
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
1103
1103
|
}
|
|
1104
|
-
return [3
|
|
1104
|
+
return [3, 18];
|
|
1105
1105
|
case 2:
|
|
1106
1106
|
_c = [{}];
|
|
1107
|
-
return [4
|
|
1107
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1108
1108
|
case 3:
|
|
1109
1109
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1110
|
-
return [3
|
|
1110
|
+
return [3, 19];
|
|
1111
1111
|
case 4:
|
|
1112
1112
|
_d = [{}];
|
|
1113
|
-
return [4
|
|
1113
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1114
1114
|
case 5:
|
|
1115
1115
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1116
|
-
return [3
|
|
1116
|
+
return [3, 19];
|
|
1117
1117
|
case 6:
|
|
1118
1118
|
_e = [{}];
|
|
1119
|
-
return [4
|
|
1119
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1120
1120
|
case 7:
|
|
1121
1121
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1122
|
-
return [3
|
|
1122
|
+
return [3, 19];
|
|
1123
1123
|
case 8:
|
|
1124
1124
|
_f = [{}];
|
|
1125
|
-
return [4
|
|
1125
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
1126
1126
|
case 9:
|
|
1127
1127
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1128
|
-
return [3
|
|
1128
|
+
return [3, 19];
|
|
1129
1129
|
case 10:
|
|
1130
1130
|
_g = [{}];
|
|
1131
|
-
return [4
|
|
1131
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
1132
1132
|
case 11:
|
|
1133
1133
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1134
|
-
return [3
|
|
1134
|
+
return [3, 19];
|
|
1135
1135
|
case 12:
|
|
1136
1136
|
_h = [{}];
|
|
1137
|
-
return [4
|
|
1137
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1138
1138
|
case 13:
|
|
1139
1139
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1140
|
-
return [3
|
|
1140
|
+
return [3, 19];
|
|
1141
1141
|
case 14:
|
|
1142
1142
|
_j = [{}];
|
|
1143
|
-
return [4
|
|
1143
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1144
1144
|
case 15:
|
|
1145
1145
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1146
|
-
return [3
|
|
1146
|
+
return [3, 19];
|
|
1147
1147
|
case 16:
|
|
1148
1148
|
_k = [{}];
|
|
1149
|
-
return [4
|
|
1149
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1150
1150
|
case 17:
|
|
1151
1151
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1152
|
-
return [3
|
|
1152
|
+
return [3, 19];
|
|
1153
1153
|
case 18:
|
|
1154
1154
|
parsedBody = parsedOutput.body;
|
|
1155
1155
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1159,7 +1159,7 @@ var deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = fun
|
|
|
1159
1159
|
message = response.message || response.Message || errorCode;
|
|
1160
1160
|
response.message = message;
|
|
1161
1161
|
delete response.Message;
|
|
1162
|
-
return [2
|
|
1162
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1163
1163
|
}
|
|
1164
1164
|
});
|
|
1165
1165
|
}); };
|
|
@@ -1169,15 +1169,15 @@ export var deserializeAws_json1_0GetEnrollmentStatusCommand = function (output,
|
|
|
1169
1169
|
switch (_a.label) {
|
|
1170
1170
|
case 0:
|
|
1171
1171
|
if (output.statusCode >= 300) {
|
|
1172
|
-
return [2
|
|
1172
|
+
return [2, deserializeAws_json1_0GetEnrollmentStatusCommandError(output, context)];
|
|
1173
1173
|
}
|
|
1174
|
-
return [4
|
|
1174
|
+
return [4, parseBody(output.body, context)];
|
|
1175
1175
|
case 1:
|
|
1176
1176
|
data = _a.sent();
|
|
1177
1177
|
contents = {};
|
|
1178
1178
|
contents = deserializeAws_json1_0GetEnrollmentStatusResponse(data, context);
|
|
1179
1179
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1180
|
-
return [2
|
|
1180
|
+
return [2, Promise.resolve(response)];
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
1183
|
}); };
|
|
@@ -1189,63 +1189,63 @@ var deserializeAws_json1_0GetEnrollmentStatusCommandError = function (output, co
|
|
|
1189
1189
|
case 0:
|
|
1190
1190
|
_a = [__assign({}, output)];
|
|
1191
1191
|
_j = {};
|
|
1192
|
-
return [4
|
|
1192
|
+
return [4, parseBody(output.body, context)];
|
|
1193
1193
|
case 1:
|
|
1194
1194
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1195
1195
|
errorCode = "UnknownError";
|
|
1196
1196
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1197
|
_b = errorCode;
|
|
1198
1198
|
switch (_b) {
|
|
1199
|
-
case "AccessDeniedException": return [3
|
|
1200
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
1201
|
-
case "InternalServerException": return [3
|
|
1202
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
1203
|
-
case "InvalidParameterValueException": return [3
|
|
1204
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
1205
|
-
case "MissingAuthenticationToken": return [3
|
|
1206
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
1207
|
-
case "ServiceUnavailableException": return [3
|
|
1208
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
1209
|
-
case "ThrottlingException": return [3
|
|
1210
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
1199
|
+
case "AccessDeniedException": return [3, 2];
|
|
1200
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
1201
|
+
case "InternalServerException": return [3, 4];
|
|
1202
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
1203
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
1204
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
1205
|
+
case "MissingAuthenticationToken": return [3, 8];
|
|
1206
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 8];
|
|
1207
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1208
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 10];
|
|
1209
|
+
case "ThrottlingException": return [3, 12];
|
|
1210
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 12];
|
|
1211
1211
|
}
|
|
1212
|
-
return [3
|
|
1212
|
+
return [3, 14];
|
|
1213
1213
|
case 2:
|
|
1214
1214
|
_c = [{}];
|
|
1215
|
-
return [4
|
|
1215
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1216
1216
|
case 3:
|
|
1217
1217
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1218
|
-
return [3
|
|
1218
|
+
return [3, 15];
|
|
1219
1219
|
case 4:
|
|
1220
1220
|
_d = [{}];
|
|
1221
|
-
return [4
|
|
1221
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1222
1222
|
case 5:
|
|
1223
1223
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1224
|
-
return [3
|
|
1224
|
+
return [3, 15];
|
|
1225
1225
|
case 6:
|
|
1226
1226
|
_e = [{}];
|
|
1227
|
-
return [4
|
|
1227
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1228
1228
|
case 7:
|
|
1229
1229
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1230
|
-
return [3
|
|
1230
|
+
return [3, 15];
|
|
1231
1231
|
case 8:
|
|
1232
1232
|
_f = [{}];
|
|
1233
|
-
return [4
|
|
1233
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
1234
1234
|
case 9:
|
|
1235
1235
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1236
|
-
return [3
|
|
1236
|
+
return [3, 15];
|
|
1237
1237
|
case 10:
|
|
1238
1238
|
_g = [{}];
|
|
1239
|
-
return [4
|
|
1239
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1240
1240
|
case 11:
|
|
1241
1241
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1242
|
-
return [3
|
|
1242
|
+
return [3, 15];
|
|
1243
1243
|
case 12:
|
|
1244
1244
|
_h = [{}];
|
|
1245
|
-
return [4
|
|
1245
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1246
1246
|
case 13:
|
|
1247
1247
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1248
|
-
return [3
|
|
1248
|
+
return [3, 15];
|
|
1249
1249
|
case 14:
|
|
1250
1250
|
parsedBody = parsedOutput.body;
|
|
1251
1251
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1255,7 +1255,7 @@ var deserializeAws_json1_0GetEnrollmentStatusCommandError = function (output, co
|
|
|
1255
1255
|
message = response.message || response.Message || errorCode;
|
|
1256
1256
|
response.message = message;
|
|
1257
1257
|
delete response.Message;
|
|
1258
|
-
return [2
|
|
1258
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1259
1259
|
}
|
|
1260
1260
|
});
|
|
1261
1261
|
}); };
|
|
@@ -1265,15 +1265,15 @@ export var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommand = f
|
|
|
1265
1265
|
switch (_a.label) {
|
|
1266
1266
|
case 0:
|
|
1267
1267
|
if (output.statusCode >= 300) {
|
|
1268
|
-
return [2
|
|
1268
|
+
return [2, deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError(output, context)];
|
|
1269
1269
|
}
|
|
1270
|
-
return [4
|
|
1270
|
+
return [4, parseBody(output.body, context)];
|
|
1271
1271
|
case 1:
|
|
1272
1272
|
data = _a.sent();
|
|
1273
1273
|
contents = {};
|
|
1274
1274
|
contents = deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse(data, context);
|
|
1275
1275
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1276
|
-
return [2
|
|
1276
|
+
return [2, Promise.resolve(response)];
|
|
1277
1277
|
}
|
|
1278
1278
|
});
|
|
1279
1279
|
}); };
|
|
@@ -1285,63 +1285,63 @@ var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = fun
|
|
|
1285
1285
|
case 0:
|
|
1286
1286
|
_a = [__assign({}, output)];
|
|
1287
1287
|
_j = {};
|
|
1288
|
-
return [4
|
|
1288
|
+
return [4, parseBody(output.body, context)];
|
|
1289
1289
|
case 1:
|
|
1290
1290
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1291
1291
|
errorCode = "UnknownError";
|
|
1292
1292
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
1293
|
_b = errorCode;
|
|
1294
1294
|
switch (_b) {
|
|
1295
|
-
case "AccessDeniedException": return [3
|
|
1296
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
1297
|
-
case "InternalServerException": return [3
|
|
1298
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
1299
|
-
case "InvalidParameterValueException": return [3
|
|
1300
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
1301
|
-
case "MissingAuthenticationToken": return [3
|
|
1302
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
1303
|
-
case "ServiceUnavailableException": return [3
|
|
1304
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
1305
|
-
case "ThrottlingException": return [3
|
|
1306
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
1295
|
+
case "AccessDeniedException": return [3, 2];
|
|
1296
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
1297
|
+
case "InternalServerException": return [3, 4];
|
|
1298
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
1299
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
1300
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
1301
|
+
case "MissingAuthenticationToken": return [3, 8];
|
|
1302
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 8];
|
|
1303
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1304
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 10];
|
|
1305
|
+
case "ThrottlingException": return [3, 12];
|
|
1306
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 12];
|
|
1307
1307
|
}
|
|
1308
|
-
return [3
|
|
1308
|
+
return [3, 14];
|
|
1309
1309
|
case 2:
|
|
1310
1310
|
_c = [{}];
|
|
1311
|
-
return [4
|
|
1311
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1312
1312
|
case 3:
|
|
1313
1313
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1314
|
-
return [3
|
|
1314
|
+
return [3, 15];
|
|
1315
1315
|
case 4:
|
|
1316
1316
|
_d = [{}];
|
|
1317
|
-
return [4
|
|
1317
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1318
1318
|
case 5:
|
|
1319
1319
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1320
|
-
return [3
|
|
1320
|
+
return [3, 15];
|
|
1321
1321
|
case 6:
|
|
1322
1322
|
_e = [{}];
|
|
1323
|
-
return [4
|
|
1323
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1324
1324
|
case 7:
|
|
1325
1325
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1326
|
-
return [3
|
|
1326
|
+
return [3, 15];
|
|
1327
1327
|
case 8:
|
|
1328
1328
|
_f = [{}];
|
|
1329
|
-
return [4
|
|
1329
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
1330
1330
|
case 9:
|
|
1331
1331
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1332
|
-
return [3
|
|
1332
|
+
return [3, 15];
|
|
1333
1333
|
case 10:
|
|
1334
1334
|
_g = [{}];
|
|
1335
|
-
return [4
|
|
1335
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1336
1336
|
case 11:
|
|
1337
1337
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1338
|
-
return [3
|
|
1338
|
+
return [3, 15];
|
|
1339
1339
|
case 12:
|
|
1340
1340
|
_h = [{}];
|
|
1341
|
-
return [4
|
|
1341
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1342
1342
|
case 13:
|
|
1343
1343
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1344
|
-
return [3
|
|
1344
|
+
return [3, 15];
|
|
1345
1345
|
case 14:
|
|
1346
1346
|
parsedBody = parsedOutput.body;
|
|
1347
1347
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1351,7 +1351,7 @@ var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = fun
|
|
|
1351
1351
|
message = response.message || response.Message || errorCode;
|
|
1352
1352
|
response.message = message;
|
|
1353
1353
|
delete response.Message;
|
|
1354
|
-
return [2
|
|
1354
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1355
1355
|
}
|
|
1356
1356
|
});
|
|
1357
1357
|
}); };
|
|
@@ -1361,15 +1361,15 @@ export var deserializeAws_json1_0GetLambdaFunctionRecommendationsCommand = funct
|
|
|
1361
1361
|
switch (_a.label) {
|
|
1362
1362
|
case 0:
|
|
1363
1363
|
if (output.statusCode >= 300) {
|
|
1364
|
-
return [2
|
|
1364
|
+
return [2, deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError(output, context)];
|
|
1365
1365
|
}
|
|
1366
|
-
return [4
|
|
1366
|
+
return [4, parseBody(output.body, context)];
|
|
1367
1367
|
case 1:
|
|
1368
1368
|
data = _a.sent();
|
|
1369
1369
|
contents = {};
|
|
1370
1370
|
contents = deserializeAws_json1_0GetLambdaFunctionRecommendationsResponse(data, context);
|
|
1371
1371
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1372
|
-
return [2
|
|
1372
|
+
return [2, Promise.resolve(response)];
|
|
1373
1373
|
}
|
|
1374
1374
|
});
|
|
1375
1375
|
}); };
|
|
@@ -1381,79 +1381,79 @@ var deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = functio
|
|
|
1381
1381
|
case 0:
|
|
1382
1382
|
_a = [__assign({}, output)];
|
|
1383
1383
|
_l = {};
|
|
1384
|
-
return [4
|
|
1384
|
+
return [4, parseBody(output.body, context)];
|
|
1385
1385
|
case 1:
|
|
1386
1386
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
1387
1387
|
errorCode = "UnknownError";
|
|
1388
1388
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
1389
|
_b = errorCode;
|
|
1390
1390
|
switch (_b) {
|
|
1391
|
-
case "AccessDeniedException": return [3
|
|
1392
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
1393
|
-
case "InternalServerException": return [3
|
|
1394
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
1395
|
-
case "InvalidParameterValueException": return [3
|
|
1396
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
1397
|
-
case "LimitExceededException": return [3
|
|
1398
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3
|
|
1399
|
-
case "MissingAuthenticationToken": return [3
|
|
1400
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
1401
|
-
case "OptInRequiredException": return [3
|
|
1402
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
1403
|
-
case "ServiceUnavailableException": return [3
|
|
1404
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
1405
|
-
case "ThrottlingException": return [3
|
|
1406
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
1391
|
+
case "AccessDeniedException": return [3, 2];
|
|
1392
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
1393
|
+
case "InternalServerException": return [3, 4];
|
|
1394
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
1395
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
1396
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
1397
|
+
case "LimitExceededException": return [3, 8];
|
|
1398
|
+
case "com.amazonaws.computeoptimizer#LimitExceededException": return [3, 8];
|
|
1399
|
+
case "MissingAuthenticationToken": return [3, 10];
|
|
1400
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 10];
|
|
1401
|
+
case "OptInRequiredException": return [3, 12];
|
|
1402
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 12];
|
|
1403
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1404
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 14];
|
|
1405
|
+
case "ThrottlingException": return [3, 16];
|
|
1406
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 16];
|
|
1407
1407
|
}
|
|
1408
|
-
return [3
|
|
1408
|
+
return [3, 18];
|
|
1409
1409
|
case 2:
|
|
1410
1410
|
_c = [{}];
|
|
1411
|
-
return [4
|
|
1411
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1412
1412
|
case 3:
|
|
1413
1413
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1414
|
-
return [3
|
|
1414
|
+
return [3, 19];
|
|
1415
1415
|
case 4:
|
|
1416
1416
|
_d = [{}];
|
|
1417
|
-
return [4
|
|
1417
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1418
1418
|
case 5:
|
|
1419
1419
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1420
|
-
return [3
|
|
1420
|
+
return [3, 19];
|
|
1421
1421
|
case 6:
|
|
1422
1422
|
_e = [{}];
|
|
1423
|
-
return [4
|
|
1423
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1424
1424
|
case 7:
|
|
1425
1425
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1426
|
-
return [3
|
|
1426
|
+
return [3, 19];
|
|
1427
1427
|
case 8:
|
|
1428
1428
|
_f = [{}];
|
|
1429
|
-
return [4
|
|
1429
|
+
return [4, deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1430
1430
|
case 9:
|
|
1431
1431
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1432
|
-
return [3
|
|
1432
|
+
return [3, 19];
|
|
1433
1433
|
case 10:
|
|
1434
1434
|
_g = [{}];
|
|
1435
|
-
return [4
|
|
1435
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
1436
1436
|
case 11:
|
|
1437
1437
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1438
|
-
return [3
|
|
1438
|
+
return [3, 19];
|
|
1439
1439
|
case 12:
|
|
1440
1440
|
_h = [{}];
|
|
1441
|
-
return [4
|
|
1441
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
1442
1442
|
case 13:
|
|
1443
1443
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1444
|
-
return [3
|
|
1444
|
+
return [3, 19];
|
|
1445
1445
|
case 14:
|
|
1446
1446
|
_j = [{}];
|
|
1447
|
-
return [4
|
|
1447
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1448
1448
|
case 15:
|
|
1449
1449
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1450
|
-
return [3
|
|
1450
|
+
return [3, 19];
|
|
1451
1451
|
case 16:
|
|
1452
1452
|
_k = [{}];
|
|
1453
|
-
return [4
|
|
1453
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1454
1454
|
case 17:
|
|
1455
1455
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1456
|
-
return [3
|
|
1456
|
+
return [3, 19];
|
|
1457
1457
|
case 18:
|
|
1458
1458
|
parsedBody = parsedOutput.body;
|
|
1459
1459
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1463,7 +1463,7 @@ var deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = functio
|
|
|
1463
1463
|
message = response.message || response.Message || errorCode;
|
|
1464
1464
|
response.message = message;
|
|
1465
1465
|
delete response.Message;
|
|
1466
|
-
return [2
|
|
1466
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1467
1467
|
}
|
|
1468
1468
|
});
|
|
1469
1469
|
}); };
|
|
@@ -1473,15 +1473,15 @@ export var deserializeAws_json1_0GetRecommendationSummariesCommand = function (o
|
|
|
1473
1473
|
switch (_a.label) {
|
|
1474
1474
|
case 0:
|
|
1475
1475
|
if (output.statusCode >= 300) {
|
|
1476
|
-
return [2
|
|
1476
|
+
return [2, deserializeAws_json1_0GetRecommendationSummariesCommandError(output, context)];
|
|
1477
1477
|
}
|
|
1478
|
-
return [4
|
|
1478
|
+
return [4, parseBody(output.body, context)];
|
|
1479
1479
|
case 1:
|
|
1480
1480
|
data = _a.sent();
|
|
1481
1481
|
contents = {};
|
|
1482
1482
|
contents = deserializeAws_json1_0GetRecommendationSummariesResponse(data, context);
|
|
1483
1483
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1484
|
-
return [2
|
|
1484
|
+
return [2, Promise.resolve(response)];
|
|
1485
1485
|
}
|
|
1486
1486
|
});
|
|
1487
1487
|
}); };
|
|
@@ -1493,71 +1493,71 @@ var deserializeAws_json1_0GetRecommendationSummariesCommandError = function (out
|
|
|
1493
1493
|
case 0:
|
|
1494
1494
|
_a = [__assign({}, output)];
|
|
1495
1495
|
_k = {};
|
|
1496
|
-
return [4
|
|
1496
|
+
return [4, parseBody(output.body, context)];
|
|
1497
1497
|
case 1:
|
|
1498
1498
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1499
1499
|
errorCode = "UnknownError";
|
|
1500
1500
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
1501
|
_b = errorCode;
|
|
1502
1502
|
switch (_b) {
|
|
1503
|
-
case "AccessDeniedException": return [3
|
|
1504
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
1505
|
-
case "InternalServerException": return [3
|
|
1506
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
1507
|
-
case "InvalidParameterValueException": return [3
|
|
1508
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
1509
|
-
case "MissingAuthenticationToken": return [3
|
|
1510
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
1511
|
-
case "OptInRequiredException": return [3
|
|
1512
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3
|
|
1513
|
-
case "ServiceUnavailableException": return [3
|
|
1514
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
1515
|
-
case "ThrottlingException": return [3
|
|
1516
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
1503
|
+
case "AccessDeniedException": return [3, 2];
|
|
1504
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
1505
|
+
case "InternalServerException": return [3, 4];
|
|
1506
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
1507
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
1508
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
1509
|
+
case "MissingAuthenticationToken": return [3, 8];
|
|
1510
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 8];
|
|
1511
|
+
case "OptInRequiredException": return [3, 10];
|
|
1512
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException": return [3, 10];
|
|
1513
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1514
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 12];
|
|
1515
|
+
case "ThrottlingException": return [3, 14];
|
|
1516
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 14];
|
|
1517
1517
|
}
|
|
1518
|
-
return [3
|
|
1518
|
+
return [3, 16];
|
|
1519
1519
|
case 2:
|
|
1520
1520
|
_c = [{}];
|
|
1521
|
-
return [4
|
|
1521
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1522
1522
|
case 3:
|
|
1523
1523
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1524
|
-
return [3
|
|
1524
|
+
return [3, 17];
|
|
1525
1525
|
case 4:
|
|
1526
1526
|
_d = [{}];
|
|
1527
|
-
return [4
|
|
1527
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1528
1528
|
case 5:
|
|
1529
1529
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1530
|
-
return [3
|
|
1530
|
+
return [3, 17];
|
|
1531
1531
|
case 6:
|
|
1532
1532
|
_e = [{}];
|
|
1533
|
-
return [4
|
|
1533
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1534
1534
|
case 7:
|
|
1535
1535
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1536
|
-
return [3
|
|
1536
|
+
return [3, 17];
|
|
1537
1537
|
case 8:
|
|
1538
1538
|
_f = [{}];
|
|
1539
|
-
return [4
|
|
1539
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
1540
1540
|
case 9:
|
|
1541
1541
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1542
|
-
return [3
|
|
1542
|
+
return [3, 17];
|
|
1543
1543
|
case 10:
|
|
1544
1544
|
_g = [{}];
|
|
1545
|
-
return [4
|
|
1545
|
+
return [4, deserializeAws_json1_0OptInRequiredExceptionResponse(parsedOutput, context)];
|
|
1546
1546
|
case 11:
|
|
1547
1547
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1548
|
-
return [3
|
|
1548
|
+
return [3, 17];
|
|
1549
1549
|
case 12:
|
|
1550
1550
|
_h = [{}];
|
|
1551
|
-
return [4
|
|
1551
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1552
1552
|
case 13:
|
|
1553
1553
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1554
|
-
return [3
|
|
1554
|
+
return [3, 17];
|
|
1555
1555
|
case 14:
|
|
1556
1556
|
_j = [{}];
|
|
1557
|
-
return [4
|
|
1557
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1558
1558
|
case 15:
|
|
1559
1559
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1560
|
-
return [3
|
|
1560
|
+
return [3, 17];
|
|
1561
1561
|
case 16:
|
|
1562
1562
|
parsedBody = parsedOutput.body;
|
|
1563
1563
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1567,7 +1567,7 @@ var deserializeAws_json1_0GetRecommendationSummariesCommandError = function (out
|
|
|
1567
1567
|
message = response.message || response.Message || errorCode;
|
|
1568
1568
|
response.message = message;
|
|
1569
1569
|
delete response.Message;
|
|
1570
|
-
return [2
|
|
1570
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1571
1571
|
}
|
|
1572
1572
|
});
|
|
1573
1573
|
}); };
|
|
@@ -1577,15 +1577,15 @@ export var deserializeAws_json1_0UpdateEnrollmentStatusCommand = function (outpu
|
|
|
1577
1577
|
switch (_a.label) {
|
|
1578
1578
|
case 0:
|
|
1579
1579
|
if (output.statusCode >= 300) {
|
|
1580
|
-
return [2
|
|
1580
|
+
return [2, deserializeAws_json1_0UpdateEnrollmentStatusCommandError(output, context)];
|
|
1581
1581
|
}
|
|
1582
|
-
return [4
|
|
1582
|
+
return [4, parseBody(output.body, context)];
|
|
1583
1583
|
case 1:
|
|
1584
1584
|
data = _a.sent();
|
|
1585
1585
|
contents = {};
|
|
1586
1586
|
contents = deserializeAws_json1_0UpdateEnrollmentStatusResponse(data, context);
|
|
1587
1587
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1588
|
-
return [2
|
|
1588
|
+
return [2, Promise.resolve(response)];
|
|
1589
1589
|
}
|
|
1590
1590
|
});
|
|
1591
1591
|
}); };
|
|
@@ -1597,63 +1597,63 @@ var deserializeAws_json1_0UpdateEnrollmentStatusCommandError = function (output,
|
|
|
1597
1597
|
case 0:
|
|
1598
1598
|
_a = [__assign({}, output)];
|
|
1599
1599
|
_j = {};
|
|
1600
|
-
return [4
|
|
1600
|
+
return [4, parseBody(output.body, context)];
|
|
1601
1601
|
case 1:
|
|
1602
1602
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1603
1603
|
errorCode = "UnknownError";
|
|
1604
1604
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1605
1605
|
_b = errorCode;
|
|
1606
1606
|
switch (_b) {
|
|
1607
|
-
case "AccessDeniedException": return [3
|
|
1608
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3
|
|
1609
|
-
case "InternalServerException": return [3
|
|
1610
|
-
case "com.amazonaws.computeoptimizer#InternalServerException": return [3
|
|
1611
|
-
case "InvalidParameterValueException": return [3
|
|
1612
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3
|
|
1613
|
-
case "MissingAuthenticationToken": return [3
|
|
1614
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3
|
|
1615
|
-
case "ServiceUnavailableException": return [3
|
|
1616
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3
|
|
1617
|
-
case "ThrottlingException": return [3
|
|
1618
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3
|
|
1607
|
+
case "AccessDeniedException": return [3, 2];
|
|
1608
|
+
case "com.amazonaws.computeoptimizer#AccessDeniedException": return [3, 2];
|
|
1609
|
+
case "InternalServerException": return [3, 4];
|
|
1610
|
+
case "com.amazonaws.computeoptimizer#InternalServerException": return [3, 4];
|
|
1611
|
+
case "InvalidParameterValueException": return [3, 6];
|
|
1612
|
+
case "com.amazonaws.computeoptimizer#InvalidParameterValueException": return [3, 6];
|
|
1613
|
+
case "MissingAuthenticationToken": return [3, 8];
|
|
1614
|
+
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken": return [3, 8];
|
|
1615
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1616
|
+
case "com.amazonaws.computeoptimizer#ServiceUnavailableException": return [3, 10];
|
|
1617
|
+
case "ThrottlingException": return [3, 12];
|
|
1618
|
+
case "com.amazonaws.computeoptimizer#ThrottlingException": return [3, 12];
|
|
1619
1619
|
}
|
|
1620
|
-
return [3
|
|
1620
|
+
return [3, 14];
|
|
1621
1621
|
case 2:
|
|
1622
1622
|
_c = [{}];
|
|
1623
|
-
return [4
|
|
1623
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1624
1624
|
case 3:
|
|
1625
1625
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1626
|
-
return [3
|
|
1626
|
+
return [3, 15];
|
|
1627
1627
|
case 4:
|
|
1628
1628
|
_d = [{}];
|
|
1629
|
-
return [4
|
|
1629
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1630
1630
|
case 5:
|
|
1631
1631
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1632
|
-
return [3
|
|
1632
|
+
return [3, 15];
|
|
1633
1633
|
case 6:
|
|
1634
1634
|
_e = [{}];
|
|
1635
|
-
return [4
|
|
1635
|
+
return [4, deserializeAws_json1_0InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
1636
1636
|
case 7:
|
|
1637
1637
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1638
|
-
return [3
|
|
1638
|
+
return [3, 15];
|
|
1639
1639
|
case 8:
|
|
1640
1640
|
_f = [{}];
|
|
1641
|
-
return [4
|
|
1641
|
+
return [4, deserializeAws_json1_0MissingAuthenticationTokenResponse(parsedOutput, context)];
|
|
1642
1642
|
case 9:
|
|
1643
1643
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1644
|
-
return [3
|
|
1644
|
+
return [3, 15];
|
|
1645
1645
|
case 10:
|
|
1646
1646
|
_g = [{}];
|
|
1647
|
-
return [4
|
|
1647
|
+
return [4, deserializeAws_json1_0ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1648
1648
|
case 11:
|
|
1649
1649
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1650
|
-
return [3
|
|
1650
|
+
return [3, 15];
|
|
1651
1651
|
case 12:
|
|
1652
1652
|
_h = [{}];
|
|
1653
|
-
return [4
|
|
1653
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1654
1654
|
case 13:
|
|
1655
1655
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1656
|
-
return [3
|
|
1656
|
+
return [3, 15];
|
|
1657
1657
|
case 14:
|
|
1658
1658
|
parsedBody = parsedOutput.body;
|
|
1659
1659
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1663,7 +1663,7 @@ var deserializeAws_json1_0UpdateEnrollmentStatusCommandError = function (output,
|
|
|
1663
1663
|
message = response.message || response.Message || errorCode;
|
|
1664
1664
|
response.message = message;
|
|
1665
1665
|
delete response.Message;
|
|
1666
|
-
return [2
|
|
1666
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1667
1667
|
}
|
|
1668
1668
|
});
|
|
1669
1669
|
}); };
|
|
@@ -1673,7 +1673,7 @@ var deserializeAws_json1_0AccessDeniedExceptionResponse = function (parsedOutput
|
|
|
1673
1673
|
body = parsedOutput.body;
|
|
1674
1674
|
deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
1675
1675
|
contents = __assign({ name: "AccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1676
|
-
return [2
|
|
1676
|
+
return [2, contents];
|
|
1677
1677
|
});
|
|
1678
1678
|
}); };
|
|
1679
1679
|
var deserializeAws_json1_0InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1682,7 +1682,7 @@ var deserializeAws_json1_0InternalServerExceptionResponse = function (parsedOutp
|
|
|
1682
1682
|
body = parsedOutput.body;
|
|
1683
1683
|
deserialized = deserializeAws_json1_0InternalServerException(body, context);
|
|
1684
1684
|
contents = __assign({ name: "InternalServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1685
|
-
return [2
|
|
1685
|
+
return [2, contents];
|
|
1686
1686
|
});
|
|
1687
1687
|
}); };
|
|
1688
1688
|
var deserializeAws_json1_0InvalidParameterValueExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1691,7 +1691,7 @@ var deserializeAws_json1_0InvalidParameterValueExceptionResponse = function (par
|
|
|
1691
1691
|
body = parsedOutput.body;
|
|
1692
1692
|
deserialized = deserializeAws_json1_0InvalidParameterValueException(body, context);
|
|
1693
1693
|
contents = __assign({ name: "InvalidParameterValueException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1694
|
-
return [2
|
|
1694
|
+
return [2, contents];
|
|
1695
1695
|
});
|
|
1696
1696
|
}); };
|
|
1697
1697
|
var deserializeAws_json1_0LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1700,7 +1700,7 @@ var deserializeAws_json1_0LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
1700
1700
|
body = parsedOutput.body;
|
|
1701
1701
|
deserialized = deserializeAws_json1_0LimitExceededException(body, context);
|
|
1702
1702
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1703
|
-
return [2
|
|
1703
|
+
return [2, contents];
|
|
1704
1704
|
});
|
|
1705
1705
|
}); };
|
|
1706
1706
|
var deserializeAws_json1_0MissingAuthenticationTokenResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1709,7 +1709,7 @@ var deserializeAws_json1_0MissingAuthenticationTokenResponse = function (parsedO
|
|
|
1709
1709
|
body = parsedOutput.body;
|
|
1710
1710
|
deserialized = deserializeAws_json1_0MissingAuthenticationToken(body, context);
|
|
1711
1711
|
contents = __assign({ name: "MissingAuthenticationToken", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1712
|
-
return [2
|
|
1712
|
+
return [2, contents];
|
|
1713
1713
|
});
|
|
1714
1714
|
}); };
|
|
1715
1715
|
var deserializeAws_json1_0OptInRequiredExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1718,7 +1718,7 @@ var deserializeAws_json1_0OptInRequiredExceptionResponse = function (parsedOutpu
|
|
|
1718
1718
|
body = parsedOutput.body;
|
|
1719
1719
|
deserialized = deserializeAws_json1_0OptInRequiredException(body, context);
|
|
1720
1720
|
contents = __assign({ name: "OptInRequiredException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1721
|
-
return [2
|
|
1721
|
+
return [2, contents];
|
|
1722
1722
|
});
|
|
1723
1723
|
}); };
|
|
1724
1724
|
var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1727,7 +1727,7 @@ var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
1727
1727
|
body = parsedOutput.body;
|
|
1728
1728
|
deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1729
1729
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1730
|
-
return [2
|
|
1730
|
+
return [2, contents];
|
|
1731
1731
|
});
|
|
1732
1732
|
}); };
|
|
1733
1733
|
var deserializeAws_json1_0ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1736,7 +1736,7 @@ var deserializeAws_json1_0ServiceUnavailableExceptionResponse = function (parsed
|
|
|
1736
1736
|
body = parsedOutput.body;
|
|
1737
1737
|
deserialized = deserializeAws_json1_0ServiceUnavailableException(body, context);
|
|
1738
1738
|
contents = __assign({ name: "ServiceUnavailableException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1739
|
-
return [2
|
|
1739
|
+
return [2, contents];
|
|
1740
1740
|
});
|
|
1741
1741
|
}); };
|
|
1742
1742
|
var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1745,7 +1745,7 @@ var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput,
|
|
|
1745
1745
|
body = parsedOutput.body;
|
|
1746
1746
|
deserialized = deserializeAws_json1_0ThrottlingException(body, context);
|
|
1747
1747
|
contents = __assign({ name: "ThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1748
|
-
return [2
|
|
1748
|
+
return [2, contents];
|
|
1749
1749
|
});
|
|
1750
1750
|
}); };
|
|
1751
1751
|
var serializeAws_json1_0AccountIds = function (input, context) {
|
|
@@ -2074,7 +2074,7 @@ var deserializeAws_json1_0AccountEnrollmentStatus = function (output, context) {
|
|
|
2074
2074
|
return {
|
|
2075
2075
|
accountId: __expectString(output.accountId),
|
|
2076
2076
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2077
|
-
?
|
|
2077
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2078
2078
|
: undefined,
|
|
2079
2079
|
status: __expectString(output.status),
|
|
2080
2080
|
statusReason: __expectString(output.statusReason),
|
|
@@ -2108,7 +2108,7 @@ var deserializeAws_json1_0AutoScalingGroupRecommendation = function (output, con
|
|
|
2108
2108
|
: undefined,
|
|
2109
2109
|
finding: __expectString(output.finding),
|
|
2110
2110
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2111
|
-
?
|
|
2111
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2112
2112
|
: undefined,
|
|
2113
2113
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2114
2114
|
recommendationOptions: output.recommendationOptions !== undefined && output.recommendationOptions !== null
|
|
@@ -2266,7 +2266,7 @@ var deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = functio
|
|
|
2266
2266
|
var deserializeAws_json1_0GetEnrollmentStatusResponse = function (output, context) {
|
|
2267
2267
|
return {
|
|
2268
2268
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2269
|
-
?
|
|
2269
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2270
2270
|
: undefined,
|
|
2271
2271
|
memberAccountsEnrolled: __expectBoolean(output.memberAccountsEnrolled),
|
|
2272
2272
|
numberOfMemberAccountsOptedIn: __expectInt32(output.numberOfMemberAccountsOptedIn),
|
|
@@ -2318,7 +2318,7 @@ var deserializeAws_json1_0InstanceRecommendation = function (output, context) {
|
|
|
2318
2318
|
instanceArn: __expectString(output.instanceArn),
|
|
2319
2319
|
instanceName: __expectString(output.instanceName),
|
|
2320
2320
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2321
|
-
?
|
|
2321
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2322
2322
|
: undefined,
|
|
2323
2323
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2324
2324
|
recommendationOptions: output.recommendationOptions !== undefined && output.recommendationOptions !== null
|
|
@@ -2422,7 +2422,7 @@ var deserializeAws_json1_0LambdaFunctionRecommendation = function (output, conte
|
|
|
2422
2422
|
functionArn: __expectString(output.functionArn),
|
|
2423
2423
|
functionVersion: __expectString(output.functionVersion),
|
|
2424
2424
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2425
|
-
?
|
|
2425
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2426
2426
|
: undefined,
|
|
2427
2427
|
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
2428
2428
|
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions !== undefined && output.memorySizeRecommendationOptions !== null
|
|
@@ -2556,7 +2556,7 @@ var deserializeAws_json1_0ReasonCodeSummary = function (output, context) {
|
|
|
2556
2556
|
var deserializeAws_json1_0RecommendationExportJob = function (output, context) {
|
|
2557
2557
|
return {
|
|
2558
2558
|
creationTimestamp: output.creationTimestamp !== undefined && output.creationTimestamp !== null
|
|
2559
|
-
?
|
|
2559
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
2560
2560
|
: undefined,
|
|
2561
2561
|
destination: output.destination !== undefined && output.destination !== null
|
|
2562
2562
|
? deserializeAws_json1_0ExportDestination(output.destination, context)
|
|
@@ -2564,7 +2564,7 @@ var deserializeAws_json1_0RecommendationExportJob = function (output, context) {
|
|
|
2564
2564
|
failureReason: __expectString(output.failureReason),
|
|
2565
2565
|
jobId: __expectString(output.jobId),
|
|
2566
2566
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp !== undefined && output.lastUpdatedTimestamp !== null
|
|
2567
|
-
?
|
|
2567
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
2568
2568
|
: undefined,
|
|
2569
2569
|
resourceType: __expectString(output.resourceType),
|
|
2570
2570
|
status: __expectString(output.status),
|
|
@@ -2692,7 +2692,7 @@ var deserializeAws_json1_0Timestamps = function (output, context) {
|
|
|
2692
2692
|
if (entry === null) {
|
|
2693
2693
|
return null;
|
|
2694
2694
|
}
|
|
2695
|
-
return
|
|
2695
|
+
return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry)));
|
|
2696
2696
|
});
|
|
2697
2697
|
};
|
|
2698
2698
|
var deserializeAws_json1_0UpdateEnrollmentStatusResponse = function (output, context) {
|
|
@@ -2736,7 +2736,7 @@ var deserializeAws_json1_0VolumeRecommendation = function (output, context) {
|
|
|
2736
2736
|
: undefined,
|
|
2737
2737
|
finding: __expectString(output.finding),
|
|
2738
2738
|
lastRefreshTimestamp: output.lastRefreshTimestamp !== undefined && output.lastRefreshTimestamp !== null
|
|
2739
|
-
?
|
|
2739
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2740
2740
|
: undefined,
|
|
2741
2741
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2742
2742
|
utilizationMetrics: output.utilizationMetrics !== undefined && output.utilizationMetrics !== null
|
|
@@ -2786,7 +2786,6 @@ var deserializeMetadata = function (output) {
|
|
|
2786
2786
|
cfId: output.headers["x-amz-cf-id"],
|
|
2787
2787
|
});
|
|
2788
2788
|
};
|
|
2789
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2790
2789
|
var collectBody = function (streamBody, context) {
|
|
2791
2790
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2792
2791
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2794,7 +2793,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2794
2793
|
}
|
|
2795
2794
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2796
2795
|
};
|
|
2797
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2798
2796
|
var collectBodyString = function (streamBody, context) {
|
|
2799
2797
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2800
2798
|
};
|
|
@@ -2802,7 +2800,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2802
2800
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2803
2801
|
return __generator(this, function (_c) {
|
|
2804
2802
|
switch (_c.label) {
|
|
2805
|
-
case 0: return [4
|
|
2803
|
+
case 0: return [4, context.endpoint()];
|
|
2806
2804
|
case 1:
|
|
2807
2805
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2808
2806
|
contents = {
|
|
@@ -2819,7 +2817,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2819
2817
|
if (body !== undefined) {
|
|
2820
2818
|
contents.body = body;
|
|
2821
2819
|
}
|
|
2822
|
-
return [2
|
|
2820
|
+
return [2, new __HttpRequest(contents)];
|
|
2823
2821
|
}
|
|
2824
2822
|
});
|
|
2825
2823
|
}); };
|
|
@@ -2831,9 +2829,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2831
2829
|
return {};
|
|
2832
2830
|
});
|
|
2833
2831
|
};
|
|
2834
|
-
/**
|
|
2835
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2836
|
-
*/
|
|
2837
2832
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2838
2833
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2839
2834
|
var sanitizeErrorCode = function (rawValue) {
|