@aws-sdk/client-compute-optimizer 3.306.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/DeleteRecommendationPreferencesCommand.js +2 -2
- package/dist-cjs/commands/DescribeRecommendationExportJobsCommand.js +2 -2
- package/dist-cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ExportEBSVolumeRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ExportEC2InstanceRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ExportECSServiceRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ExportLambdaFunctionRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetAutoScalingGroupRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetEBSVolumeRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetEC2InstanceRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js +2 -2
- package/dist-cjs/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +2 -2
- package/dist-cjs/commands/GetECSServiceRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetEffectiveRecommendationPreferencesCommand.js +2 -2
- package/dist-cjs/commands/GetEnrollmentStatusCommand.js +2 -2
- package/dist-cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/GetLambdaFunctionRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/GetRecommendationPreferencesCommand.js +2 -2
- package/dist-cjs/commands/GetRecommendationSummariesCommand.js +2 -2
- package/dist-cjs/commands/PutRecommendationPreferencesCommand.js +2 -2
- package/dist-cjs/commands/UpdateEnrollmentStatusCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +680 -728
- package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +3 -3
- package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +3 -3
- package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +3 -3
- package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +3 -3
- package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +3 -3
- package/dist-es/commands/ExportECSServiceRecommendationsCommand.js +3 -3
- package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +3 -3
- package/dist-es/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +3 -3
- package/dist-es/commands/GetECSServiceRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +3 -3
- package/dist-es/commands/GetEnrollmentStatusCommand.js +3 -3
- package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +3 -3
- package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +3 -3
- package/dist-es/commands/GetRecommendationPreferencesCommand.js +3 -3
- package/dist-es/commands/GetRecommendationSummariesCommand.js +3 -3
- package/dist-es/commands/PutRecommendationPreferencesCommand.js +3 -3
- package/dist-es/commands/UpdateEnrollmentStatusCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +637 -685
- package/dist-types/protocols/Aws_json1_0.d.ts +168 -42
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +42 -42
- package/package.json +6 -6
|
@@ -2,209 +2,209 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ComputeOptimizerServiceException as __BaseException } from "../models/ComputeOptimizerServiceException";
|
|
4
4
|
import { AccessDeniedException, InternalServerException, InvalidParameterValueException, LimitExceededException, MissingAuthenticationToken, OptInRequiredException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_DeleteRecommendationPreferencesCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.0",
|
|
8
8
|
"x-amz-target": "ComputeOptimizerService.DeleteRecommendationPreferences",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_DeleteRecommendationPreferencesRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_DescribeRecommendationExportJobsCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.0",
|
|
17
17
|
"x-amz-target": "ComputeOptimizerService.DescribeRecommendationExportJobs",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_DescribeRecommendationExportJobsRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_ExportAutoScalingGroupRecommendationsCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.0",
|
|
26
26
|
"x-amz-target": "ComputeOptimizerService.ExportAutoScalingGroupRecommendations",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_ExportAutoScalingGroupRecommendationsRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_ExportEBSVolumeRecommendationsCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.0",
|
|
35
35
|
"x-amz-target": "ComputeOptimizerService.ExportEBSVolumeRecommendations",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_ExportEBSVolumeRecommendationsRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_ExportEC2InstanceRecommendationsCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.0",
|
|
44
44
|
"x-amz-target": "ComputeOptimizerService.ExportEC2InstanceRecommendations",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_ExportEC2InstanceRecommendationsRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_ExportECSServiceRecommendationsCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.0",
|
|
53
53
|
"x-amz-target": "ComputeOptimizerService.ExportECSServiceRecommendations",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_ExportECSServiceRecommendationsRequest(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_ExportLambdaFunctionRecommendationsCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.0",
|
|
62
62
|
"x-amz-target": "ComputeOptimizerService.ExportLambdaFunctionRecommendations",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_ExportLambdaFunctionRecommendationsRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_GetAutoScalingGroupRecommendationsCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.0",
|
|
71
71
|
"x-amz-target": "ComputeOptimizerService.GetAutoScalingGroupRecommendations",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_GetAutoScalingGroupRecommendationsRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_GetEBSVolumeRecommendationsCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.0",
|
|
80
80
|
"x-amz-target": "ComputeOptimizerService.GetEBSVolumeRecommendations",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_GetEBSVolumeRecommendationsRequest(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_GetEC2InstanceRecommendationsCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.0",
|
|
89
89
|
"x-amz-target": "ComputeOptimizerService.GetEC2InstanceRecommendations",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_GetEC2InstanceRecommendationsRequest(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_GetEC2RecommendationProjectedMetricsCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.0",
|
|
98
98
|
"x-amz-target": "ComputeOptimizerService.GetEC2RecommendationProjectedMetrics",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_GetEC2RecommendationProjectedMetricsRequest(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_GetECSServiceRecommendationProjectedMetricsCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.0",
|
|
107
107
|
"x-amz-target": "ComputeOptimizerService.GetECSServiceRecommendationProjectedMetrics",
|
|
108
108
|
};
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(se_GetECSServiceRecommendationProjectedMetricsRequest(input, context));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const se_GetECSServiceRecommendationsCommand = async (input, context) => {
|
|
114
114
|
const headers = {
|
|
115
115
|
"content-type": "application/x-amz-json-1.0",
|
|
116
116
|
"x-amz-target": "ComputeOptimizerService.GetECSServiceRecommendations",
|
|
117
117
|
};
|
|
118
118
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
119
|
+
body = JSON.stringify(se_GetECSServiceRecommendationsRequest(input, context));
|
|
120
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
121
|
};
|
|
122
|
-
export const
|
|
122
|
+
export const se_GetEffectiveRecommendationPreferencesCommand = async (input, context) => {
|
|
123
123
|
const headers = {
|
|
124
124
|
"content-type": "application/x-amz-json-1.0",
|
|
125
125
|
"x-amz-target": "ComputeOptimizerService.GetEffectiveRecommendationPreferences",
|
|
126
126
|
};
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(se_GetEffectiveRecommendationPreferencesRequest(input, context));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const se_GetEnrollmentStatusCommand = async (input, context) => {
|
|
132
132
|
const headers = {
|
|
133
133
|
"content-type": "application/x-amz-json-1.0",
|
|
134
134
|
"x-amz-target": "ComputeOptimizerService.GetEnrollmentStatus",
|
|
135
135
|
};
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify(se_GetEnrollmentStatusRequest(input, context));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
|
-
export const
|
|
140
|
+
export const se_GetEnrollmentStatusesForOrganizationCommand = async (input, context) => {
|
|
141
141
|
const headers = {
|
|
142
142
|
"content-type": "application/x-amz-json-1.0",
|
|
143
143
|
"x-amz-target": "ComputeOptimizerService.GetEnrollmentStatusesForOrganization",
|
|
144
144
|
};
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(se_GetEnrollmentStatusesForOrganizationRequest(input, context));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
|
-
export const
|
|
149
|
+
export const se_GetLambdaFunctionRecommendationsCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.0",
|
|
152
152
|
"x-amz-target": "ComputeOptimizerService.GetLambdaFunctionRecommendations",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_GetLambdaFunctionRecommendationsRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
export const
|
|
158
|
+
export const se_GetRecommendationPreferencesCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.0",
|
|
161
161
|
"x-amz-target": "ComputeOptimizerService.GetRecommendationPreferences",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_GetRecommendationPreferencesRequest(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
export const
|
|
167
|
+
export const se_GetRecommendationSummariesCommand = async (input, context) => {
|
|
168
168
|
const headers = {
|
|
169
169
|
"content-type": "application/x-amz-json-1.0",
|
|
170
170
|
"x-amz-target": "ComputeOptimizerService.GetRecommendationSummaries",
|
|
171
171
|
};
|
|
172
172
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify(se_GetRecommendationSummariesRequest(input, context));
|
|
174
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
175
|
};
|
|
176
|
-
export const
|
|
176
|
+
export const se_PutRecommendationPreferencesCommand = async (input, context) => {
|
|
177
177
|
const headers = {
|
|
178
178
|
"content-type": "application/x-amz-json-1.0",
|
|
179
179
|
"x-amz-target": "ComputeOptimizerService.PutRecommendationPreferences",
|
|
180
180
|
};
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(se_PutRecommendationPreferencesRequest(input, context));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const se_UpdateEnrollmentStatusCommand = async (input, context) => {
|
|
186
186
|
const headers = {
|
|
187
187
|
"content-type": "application/x-amz-json-1.0",
|
|
188
188
|
"x-amz-target": "ComputeOptimizerService.UpdateEnrollmentStatus",
|
|
189
189
|
};
|
|
190
190
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
191
|
+
body = JSON.stringify(se_UpdateEnrollmentStatusRequest(input, context));
|
|
192
192
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
193
|
};
|
|
194
|
-
export const
|
|
194
|
+
export const de_DeleteRecommendationPreferencesCommand = async (output, context) => {
|
|
195
195
|
if (output.statusCode >= 300) {
|
|
196
|
-
return
|
|
196
|
+
return de_DeleteRecommendationPreferencesCommandError(output, context);
|
|
197
197
|
}
|
|
198
198
|
const data = await parseBody(output.body, context);
|
|
199
199
|
let contents = {};
|
|
200
|
-
contents =
|
|
200
|
+
contents = de_DeleteRecommendationPreferencesResponse(data, context);
|
|
201
201
|
const response = {
|
|
202
202
|
$metadata: deserializeMetadata(output),
|
|
203
203
|
...contents,
|
|
204
204
|
};
|
|
205
205
|
return Promise.resolve(response);
|
|
206
206
|
};
|
|
207
|
-
const
|
|
207
|
+
const de_DeleteRecommendationPreferencesCommandError = async (output, context) => {
|
|
208
208
|
const parsedOutput = {
|
|
209
209
|
...output,
|
|
210
210
|
body: await parseErrorBody(output.body, context),
|
|
@@ -213,28 +213,28 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = async
|
|
|
213
213
|
switch (errorCode) {
|
|
214
214
|
case "AccessDeniedException":
|
|
215
215
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
216
|
-
throw await
|
|
216
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
217
217
|
case "InternalServerException":
|
|
218
218
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
219
|
-
throw await
|
|
219
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
220
220
|
case "InvalidParameterValueException":
|
|
221
221
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
222
|
-
throw await
|
|
222
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
223
223
|
case "MissingAuthenticationToken":
|
|
224
224
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
225
|
-
throw await
|
|
225
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
226
226
|
case "OptInRequiredException":
|
|
227
227
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
228
|
-
throw await
|
|
228
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
229
229
|
case "ResourceNotFoundException":
|
|
230
230
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
231
|
-
throw await
|
|
231
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
232
232
|
case "ServiceUnavailableException":
|
|
233
233
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
234
|
-
throw await
|
|
234
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
235
235
|
case "ThrottlingException":
|
|
236
236
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
237
|
-
throw await
|
|
237
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
238
238
|
default:
|
|
239
239
|
const parsedBody = parsedOutput.body;
|
|
240
240
|
throwDefaultError({
|
|
@@ -245,20 +245,20 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesCommandError = async
|
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
export const
|
|
248
|
+
export const de_DescribeRecommendationExportJobsCommand = async (output, context) => {
|
|
249
249
|
if (output.statusCode >= 300) {
|
|
250
|
-
return
|
|
250
|
+
return de_DescribeRecommendationExportJobsCommandError(output, context);
|
|
251
251
|
}
|
|
252
252
|
const data = await parseBody(output.body, context);
|
|
253
253
|
let contents = {};
|
|
254
|
-
contents =
|
|
254
|
+
contents = de_DescribeRecommendationExportJobsResponse(data, context);
|
|
255
255
|
const response = {
|
|
256
256
|
$metadata: deserializeMetadata(output),
|
|
257
257
|
...contents,
|
|
258
258
|
};
|
|
259
259
|
return Promise.resolve(response);
|
|
260
260
|
};
|
|
261
|
-
const
|
|
261
|
+
const de_DescribeRecommendationExportJobsCommandError = async (output, context) => {
|
|
262
262
|
const parsedOutput = {
|
|
263
263
|
...output,
|
|
264
264
|
body: await parseErrorBody(output.body, context),
|
|
@@ -267,28 +267,28 @@ const deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = async
|
|
|
267
267
|
switch (errorCode) {
|
|
268
268
|
case "AccessDeniedException":
|
|
269
269
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
270
|
-
throw await
|
|
270
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
271
271
|
case "InternalServerException":
|
|
272
272
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
273
|
-
throw await
|
|
273
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
274
274
|
case "InvalidParameterValueException":
|
|
275
275
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
276
|
-
throw await
|
|
276
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
277
277
|
case "MissingAuthenticationToken":
|
|
278
278
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
279
|
-
throw await
|
|
279
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
280
280
|
case "OptInRequiredException":
|
|
281
281
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
282
|
-
throw await
|
|
282
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
283
283
|
case "ResourceNotFoundException":
|
|
284
284
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
285
|
-
throw await
|
|
285
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
286
286
|
case "ServiceUnavailableException":
|
|
287
287
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
288
|
-
throw await
|
|
288
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
289
289
|
case "ThrottlingException":
|
|
290
290
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
291
|
-
throw await
|
|
291
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
292
292
|
default:
|
|
293
293
|
const parsedBody = parsedOutput.body;
|
|
294
294
|
throwDefaultError({
|
|
@@ -299,20 +299,20 @@ const deserializeAws_json1_0DescribeRecommendationExportJobsCommandError = async
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
|
-
export const
|
|
302
|
+
export const de_ExportAutoScalingGroupRecommendationsCommand = async (output, context) => {
|
|
303
303
|
if (output.statusCode >= 300) {
|
|
304
|
-
return
|
|
304
|
+
return de_ExportAutoScalingGroupRecommendationsCommandError(output, context);
|
|
305
305
|
}
|
|
306
306
|
const data = await parseBody(output.body, context);
|
|
307
307
|
let contents = {};
|
|
308
|
-
contents =
|
|
308
|
+
contents = de_ExportAutoScalingGroupRecommendationsResponse(data, context);
|
|
309
309
|
const response = {
|
|
310
310
|
$metadata: deserializeMetadata(output),
|
|
311
311
|
...contents,
|
|
312
312
|
};
|
|
313
313
|
return Promise.resolve(response);
|
|
314
314
|
};
|
|
315
|
-
const
|
|
315
|
+
const de_ExportAutoScalingGroupRecommendationsCommandError = async (output, context) => {
|
|
316
316
|
const parsedOutput = {
|
|
317
317
|
...output,
|
|
318
318
|
body: await parseErrorBody(output.body, context),
|
|
@@ -321,28 +321,28 @@ const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError =
|
|
|
321
321
|
switch (errorCode) {
|
|
322
322
|
case "AccessDeniedException":
|
|
323
323
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
324
|
-
throw await
|
|
324
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
325
325
|
case "InternalServerException":
|
|
326
326
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
327
|
-
throw await
|
|
327
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
328
328
|
case "InvalidParameterValueException":
|
|
329
329
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
330
|
-
throw await
|
|
330
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
331
331
|
case "LimitExceededException":
|
|
332
332
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
333
|
-
throw await
|
|
333
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
334
334
|
case "MissingAuthenticationToken":
|
|
335
335
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
336
|
-
throw await
|
|
336
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
337
337
|
case "OptInRequiredException":
|
|
338
338
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
339
|
-
throw await
|
|
339
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
340
340
|
case "ServiceUnavailableException":
|
|
341
341
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
342
|
-
throw await
|
|
342
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
343
343
|
case "ThrottlingException":
|
|
344
344
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
345
|
-
throw await
|
|
345
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
346
346
|
default:
|
|
347
347
|
const parsedBody = parsedOutput.body;
|
|
348
348
|
throwDefaultError({
|
|
@@ -353,20 +353,20 @@ const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsCommandError =
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
|
-
export const
|
|
356
|
+
export const de_ExportEBSVolumeRecommendationsCommand = async (output, context) => {
|
|
357
357
|
if (output.statusCode >= 300) {
|
|
358
|
-
return
|
|
358
|
+
return de_ExportEBSVolumeRecommendationsCommandError(output, context);
|
|
359
359
|
}
|
|
360
360
|
const data = await parseBody(output.body, context);
|
|
361
361
|
let contents = {};
|
|
362
|
-
contents =
|
|
362
|
+
contents = de_ExportEBSVolumeRecommendationsResponse(data, context);
|
|
363
363
|
const response = {
|
|
364
364
|
$metadata: deserializeMetadata(output),
|
|
365
365
|
...contents,
|
|
366
366
|
};
|
|
367
367
|
return Promise.resolve(response);
|
|
368
368
|
};
|
|
369
|
-
const
|
|
369
|
+
const de_ExportEBSVolumeRecommendationsCommandError = async (output, context) => {
|
|
370
370
|
const parsedOutput = {
|
|
371
371
|
...output,
|
|
372
372
|
body: await parseErrorBody(output.body, context),
|
|
@@ -375,28 +375,28 @@ const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = async (
|
|
|
375
375
|
switch (errorCode) {
|
|
376
376
|
case "AccessDeniedException":
|
|
377
377
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
378
|
-
throw await
|
|
378
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
379
379
|
case "InternalServerException":
|
|
380
380
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
381
|
-
throw await
|
|
381
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
382
382
|
case "InvalidParameterValueException":
|
|
383
383
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
384
|
-
throw await
|
|
384
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
385
385
|
case "LimitExceededException":
|
|
386
386
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
387
|
-
throw await
|
|
387
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
388
388
|
case "MissingAuthenticationToken":
|
|
389
389
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
390
|
-
throw await
|
|
390
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
391
391
|
case "OptInRequiredException":
|
|
392
392
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
393
|
-
throw await
|
|
393
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
394
394
|
case "ServiceUnavailableException":
|
|
395
395
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
396
|
-
throw await
|
|
396
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
397
397
|
case "ThrottlingException":
|
|
398
398
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
399
|
-
throw await
|
|
399
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
400
400
|
default:
|
|
401
401
|
const parsedBody = parsedOutput.body;
|
|
402
402
|
throwDefaultError({
|
|
@@ -407,20 +407,20 @@ const deserializeAws_json1_0ExportEBSVolumeRecommendationsCommandError = async (
|
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
|
-
export const
|
|
410
|
+
export const de_ExportEC2InstanceRecommendationsCommand = async (output, context) => {
|
|
411
411
|
if (output.statusCode >= 300) {
|
|
412
|
-
return
|
|
412
|
+
return de_ExportEC2InstanceRecommendationsCommandError(output, context);
|
|
413
413
|
}
|
|
414
414
|
const data = await parseBody(output.body, context);
|
|
415
415
|
let contents = {};
|
|
416
|
-
contents =
|
|
416
|
+
contents = de_ExportEC2InstanceRecommendationsResponse(data, context);
|
|
417
417
|
const response = {
|
|
418
418
|
$metadata: deserializeMetadata(output),
|
|
419
419
|
...contents,
|
|
420
420
|
};
|
|
421
421
|
return Promise.resolve(response);
|
|
422
422
|
};
|
|
423
|
-
const
|
|
423
|
+
const de_ExportEC2InstanceRecommendationsCommandError = async (output, context) => {
|
|
424
424
|
const parsedOutput = {
|
|
425
425
|
...output,
|
|
426
426
|
body: await parseErrorBody(output.body, context),
|
|
@@ -429,28 +429,28 @@ const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = async
|
|
|
429
429
|
switch (errorCode) {
|
|
430
430
|
case "AccessDeniedException":
|
|
431
431
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
432
|
-
throw await
|
|
432
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
433
433
|
case "InternalServerException":
|
|
434
434
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
435
|
-
throw await
|
|
435
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
436
436
|
case "InvalidParameterValueException":
|
|
437
437
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
438
|
-
throw await
|
|
438
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
439
439
|
case "LimitExceededException":
|
|
440
440
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
441
|
-
throw await
|
|
441
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
442
442
|
case "MissingAuthenticationToken":
|
|
443
443
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
444
|
-
throw await
|
|
444
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
445
445
|
case "OptInRequiredException":
|
|
446
446
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
447
|
-
throw await
|
|
447
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
448
448
|
case "ServiceUnavailableException":
|
|
449
449
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
450
|
-
throw await
|
|
450
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
451
451
|
case "ThrottlingException":
|
|
452
452
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
453
|
-
throw await
|
|
453
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
454
454
|
default:
|
|
455
455
|
const parsedBody = parsedOutput.body;
|
|
456
456
|
throwDefaultError({
|
|
@@ -461,20 +461,20 @@ const deserializeAws_json1_0ExportEC2InstanceRecommendationsCommandError = async
|
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
463
|
};
|
|
464
|
-
export const
|
|
464
|
+
export const de_ExportECSServiceRecommendationsCommand = async (output, context) => {
|
|
465
465
|
if (output.statusCode >= 300) {
|
|
466
|
-
return
|
|
466
|
+
return de_ExportECSServiceRecommendationsCommandError(output, context);
|
|
467
467
|
}
|
|
468
468
|
const data = await parseBody(output.body, context);
|
|
469
469
|
let contents = {};
|
|
470
|
-
contents =
|
|
470
|
+
contents = de_ExportECSServiceRecommendationsResponse(data, context);
|
|
471
471
|
const response = {
|
|
472
472
|
$metadata: deserializeMetadata(output),
|
|
473
473
|
...contents,
|
|
474
474
|
};
|
|
475
475
|
return Promise.resolve(response);
|
|
476
476
|
};
|
|
477
|
-
const
|
|
477
|
+
const de_ExportECSServiceRecommendationsCommandError = async (output, context) => {
|
|
478
478
|
const parsedOutput = {
|
|
479
479
|
...output,
|
|
480
480
|
body: await parseErrorBody(output.body, context),
|
|
@@ -483,28 +483,28 @@ const deserializeAws_json1_0ExportECSServiceRecommendationsCommandError = async
|
|
|
483
483
|
switch (errorCode) {
|
|
484
484
|
case "AccessDeniedException":
|
|
485
485
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
486
|
-
throw await
|
|
486
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
487
487
|
case "InternalServerException":
|
|
488
488
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
489
|
-
throw await
|
|
489
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
490
490
|
case "InvalidParameterValueException":
|
|
491
491
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
492
|
-
throw await
|
|
492
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
493
493
|
case "LimitExceededException":
|
|
494
494
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
495
|
-
throw await
|
|
495
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
496
496
|
case "MissingAuthenticationToken":
|
|
497
497
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
498
|
-
throw await
|
|
498
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
499
499
|
case "OptInRequiredException":
|
|
500
500
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
501
|
-
throw await
|
|
501
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
502
502
|
case "ServiceUnavailableException":
|
|
503
503
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
504
|
-
throw await
|
|
504
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
505
505
|
case "ThrottlingException":
|
|
506
506
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
507
|
-
throw await
|
|
507
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
508
508
|
default:
|
|
509
509
|
const parsedBody = parsedOutput.body;
|
|
510
510
|
throwDefaultError({
|
|
@@ -515,20 +515,20 @@ const deserializeAws_json1_0ExportECSServiceRecommendationsCommandError = async
|
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
|
-
export const
|
|
518
|
+
export const de_ExportLambdaFunctionRecommendationsCommand = async (output, context) => {
|
|
519
519
|
if (output.statusCode >= 300) {
|
|
520
|
-
return
|
|
520
|
+
return de_ExportLambdaFunctionRecommendationsCommandError(output, context);
|
|
521
521
|
}
|
|
522
522
|
const data = await parseBody(output.body, context);
|
|
523
523
|
let contents = {};
|
|
524
|
-
contents =
|
|
524
|
+
contents = de_ExportLambdaFunctionRecommendationsResponse(data, context);
|
|
525
525
|
const response = {
|
|
526
526
|
$metadata: deserializeMetadata(output),
|
|
527
527
|
...contents,
|
|
528
528
|
};
|
|
529
529
|
return Promise.resolve(response);
|
|
530
530
|
};
|
|
531
|
-
const
|
|
531
|
+
const de_ExportLambdaFunctionRecommendationsCommandError = async (output, context) => {
|
|
532
532
|
const parsedOutput = {
|
|
533
533
|
...output,
|
|
534
534
|
body: await parseErrorBody(output.body, context),
|
|
@@ -537,28 +537,28 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = as
|
|
|
537
537
|
switch (errorCode) {
|
|
538
538
|
case "AccessDeniedException":
|
|
539
539
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
540
|
-
throw await
|
|
540
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
541
541
|
case "InternalServerException":
|
|
542
542
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
543
|
-
throw await
|
|
543
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
544
544
|
case "InvalidParameterValueException":
|
|
545
545
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
546
|
-
throw await
|
|
546
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
547
547
|
case "LimitExceededException":
|
|
548
548
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
549
|
-
throw await
|
|
549
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
550
550
|
case "MissingAuthenticationToken":
|
|
551
551
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
552
|
-
throw await
|
|
552
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
553
553
|
case "OptInRequiredException":
|
|
554
554
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
555
|
-
throw await
|
|
555
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
556
556
|
case "ServiceUnavailableException":
|
|
557
557
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
558
|
-
throw await
|
|
558
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
559
559
|
case "ThrottlingException":
|
|
560
560
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
561
|
-
throw await
|
|
561
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
562
562
|
default:
|
|
563
563
|
const parsedBody = parsedOutput.body;
|
|
564
564
|
throwDefaultError({
|
|
@@ -569,20 +569,20 @@ const deserializeAws_json1_0ExportLambdaFunctionRecommendationsCommandError = as
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
|
-
export const
|
|
572
|
+
export const de_GetAutoScalingGroupRecommendationsCommand = async (output, context) => {
|
|
573
573
|
if (output.statusCode >= 300) {
|
|
574
|
-
return
|
|
574
|
+
return de_GetAutoScalingGroupRecommendationsCommandError(output, context);
|
|
575
575
|
}
|
|
576
576
|
const data = await parseBody(output.body, context);
|
|
577
577
|
let contents = {};
|
|
578
|
-
contents =
|
|
578
|
+
contents = de_GetAutoScalingGroupRecommendationsResponse(data, context);
|
|
579
579
|
const response = {
|
|
580
580
|
$metadata: deserializeMetadata(output),
|
|
581
581
|
...contents,
|
|
582
582
|
};
|
|
583
583
|
return Promise.resolve(response);
|
|
584
584
|
};
|
|
585
|
-
const
|
|
585
|
+
const de_GetAutoScalingGroupRecommendationsCommandError = async (output, context) => {
|
|
586
586
|
const parsedOutput = {
|
|
587
587
|
...output,
|
|
588
588
|
body: await parseErrorBody(output.body, context),
|
|
@@ -591,28 +591,28 @@ const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = asy
|
|
|
591
591
|
switch (errorCode) {
|
|
592
592
|
case "AccessDeniedException":
|
|
593
593
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
594
|
-
throw await
|
|
594
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
595
595
|
case "InternalServerException":
|
|
596
596
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
597
|
-
throw await
|
|
597
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
598
598
|
case "InvalidParameterValueException":
|
|
599
599
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
600
|
-
throw await
|
|
600
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
601
601
|
case "MissingAuthenticationToken":
|
|
602
602
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
603
|
-
throw await
|
|
603
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
604
604
|
case "OptInRequiredException":
|
|
605
605
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
606
|
-
throw await
|
|
606
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
607
607
|
case "ResourceNotFoundException":
|
|
608
608
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
609
|
-
throw await
|
|
609
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
610
610
|
case "ServiceUnavailableException":
|
|
611
611
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
612
|
-
throw await
|
|
612
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
613
613
|
case "ThrottlingException":
|
|
614
614
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
615
|
-
throw await
|
|
615
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
616
616
|
default:
|
|
617
617
|
const parsedBody = parsedOutput.body;
|
|
618
618
|
throwDefaultError({
|
|
@@ -623,20 +623,20 @@ const deserializeAws_json1_0GetAutoScalingGroupRecommendationsCommandError = asy
|
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
|
-
export const
|
|
626
|
+
export const de_GetEBSVolumeRecommendationsCommand = async (output, context) => {
|
|
627
627
|
if (output.statusCode >= 300) {
|
|
628
|
-
return
|
|
628
|
+
return de_GetEBSVolumeRecommendationsCommandError(output, context);
|
|
629
629
|
}
|
|
630
630
|
const data = await parseBody(output.body, context);
|
|
631
631
|
let contents = {};
|
|
632
|
-
contents =
|
|
632
|
+
contents = de_GetEBSVolumeRecommendationsResponse(data, context);
|
|
633
633
|
const response = {
|
|
634
634
|
$metadata: deserializeMetadata(output),
|
|
635
635
|
...contents,
|
|
636
636
|
};
|
|
637
637
|
return Promise.resolve(response);
|
|
638
638
|
};
|
|
639
|
-
const
|
|
639
|
+
const de_GetEBSVolumeRecommendationsCommandError = async (output, context) => {
|
|
640
640
|
const parsedOutput = {
|
|
641
641
|
...output,
|
|
642
642
|
body: await parseErrorBody(output.body, context),
|
|
@@ -645,28 +645,28 @@ const deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = async (out
|
|
|
645
645
|
switch (errorCode) {
|
|
646
646
|
case "AccessDeniedException":
|
|
647
647
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
648
|
-
throw await
|
|
648
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
649
649
|
case "InternalServerException":
|
|
650
650
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
651
|
-
throw await
|
|
651
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
652
652
|
case "InvalidParameterValueException":
|
|
653
653
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
654
|
-
throw await
|
|
654
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
655
655
|
case "MissingAuthenticationToken":
|
|
656
656
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
657
|
-
throw await
|
|
657
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
658
658
|
case "OptInRequiredException":
|
|
659
659
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
660
|
-
throw await
|
|
660
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
661
661
|
case "ResourceNotFoundException":
|
|
662
662
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
663
|
-
throw await
|
|
663
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
664
664
|
case "ServiceUnavailableException":
|
|
665
665
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
666
|
-
throw await
|
|
666
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
667
667
|
case "ThrottlingException":
|
|
668
668
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
669
|
-
throw await
|
|
669
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
670
670
|
default:
|
|
671
671
|
const parsedBody = parsedOutput.body;
|
|
672
672
|
throwDefaultError({
|
|
@@ -677,20 +677,20 @@ const deserializeAws_json1_0GetEBSVolumeRecommendationsCommandError = async (out
|
|
|
677
677
|
});
|
|
678
678
|
}
|
|
679
679
|
};
|
|
680
|
-
export const
|
|
680
|
+
export const de_GetEC2InstanceRecommendationsCommand = async (output, context) => {
|
|
681
681
|
if (output.statusCode >= 300) {
|
|
682
|
-
return
|
|
682
|
+
return de_GetEC2InstanceRecommendationsCommandError(output, context);
|
|
683
683
|
}
|
|
684
684
|
const data = await parseBody(output.body, context);
|
|
685
685
|
let contents = {};
|
|
686
|
-
contents =
|
|
686
|
+
contents = de_GetEC2InstanceRecommendationsResponse(data, context);
|
|
687
687
|
const response = {
|
|
688
688
|
$metadata: deserializeMetadata(output),
|
|
689
689
|
...contents,
|
|
690
690
|
};
|
|
691
691
|
return Promise.resolve(response);
|
|
692
692
|
};
|
|
693
|
-
const
|
|
693
|
+
const de_GetEC2InstanceRecommendationsCommandError = async (output, context) => {
|
|
694
694
|
const parsedOutput = {
|
|
695
695
|
...output,
|
|
696
696
|
body: await parseErrorBody(output.body, context),
|
|
@@ -699,28 +699,28 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = async (o
|
|
|
699
699
|
switch (errorCode) {
|
|
700
700
|
case "AccessDeniedException":
|
|
701
701
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
702
|
-
throw await
|
|
702
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
703
703
|
case "InternalServerException":
|
|
704
704
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
705
|
-
throw await
|
|
705
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
706
706
|
case "InvalidParameterValueException":
|
|
707
707
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
708
|
-
throw await
|
|
708
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
709
709
|
case "MissingAuthenticationToken":
|
|
710
710
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
711
|
-
throw await
|
|
711
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
712
712
|
case "OptInRequiredException":
|
|
713
713
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
714
|
-
throw await
|
|
714
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
715
715
|
case "ResourceNotFoundException":
|
|
716
716
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
717
|
-
throw await
|
|
717
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
718
718
|
case "ServiceUnavailableException":
|
|
719
719
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
720
|
-
throw await
|
|
720
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
721
721
|
case "ThrottlingException":
|
|
722
722
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
723
|
-
throw await
|
|
723
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
724
724
|
default:
|
|
725
725
|
const parsedBody = parsedOutput.body;
|
|
726
726
|
throwDefaultError({
|
|
@@ -731,20 +731,20 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsCommandError = async (o
|
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
|
-
export const
|
|
734
|
+
export const de_GetEC2RecommendationProjectedMetricsCommand = async (output, context) => {
|
|
735
735
|
if (output.statusCode >= 300) {
|
|
736
|
-
return
|
|
736
|
+
return de_GetEC2RecommendationProjectedMetricsCommandError(output, context);
|
|
737
737
|
}
|
|
738
738
|
const data = await parseBody(output.body, context);
|
|
739
739
|
let contents = {};
|
|
740
|
-
contents =
|
|
740
|
+
contents = de_GetEC2RecommendationProjectedMetricsResponse(data, context);
|
|
741
741
|
const response = {
|
|
742
742
|
$metadata: deserializeMetadata(output),
|
|
743
743
|
...contents,
|
|
744
744
|
};
|
|
745
745
|
return Promise.resolve(response);
|
|
746
746
|
};
|
|
747
|
-
const
|
|
747
|
+
const de_GetEC2RecommendationProjectedMetricsCommandError = async (output, context) => {
|
|
748
748
|
const parsedOutput = {
|
|
749
749
|
...output,
|
|
750
750
|
body: await parseErrorBody(output.body, context),
|
|
@@ -753,28 +753,28 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = a
|
|
|
753
753
|
switch (errorCode) {
|
|
754
754
|
case "AccessDeniedException":
|
|
755
755
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
756
|
-
throw await
|
|
756
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
757
757
|
case "InternalServerException":
|
|
758
758
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
759
|
-
throw await
|
|
759
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
760
760
|
case "InvalidParameterValueException":
|
|
761
761
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
762
|
-
throw await
|
|
762
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
763
763
|
case "MissingAuthenticationToken":
|
|
764
764
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
765
|
-
throw await
|
|
765
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
766
766
|
case "OptInRequiredException":
|
|
767
767
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
768
|
-
throw await
|
|
768
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
769
769
|
case "ResourceNotFoundException":
|
|
770
770
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
771
|
-
throw await
|
|
771
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
772
772
|
case "ServiceUnavailableException":
|
|
773
773
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
774
|
-
throw await
|
|
774
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
775
775
|
case "ThrottlingException":
|
|
776
776
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
777
|
-
throw await
|
|
777
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
778
778
|
default:
|
|
779
779
|
const parsedBody = parsedOutput.body;
|
|
780
780
|
throwDefaultError({
|
|
@@ -785,20 +785,20 @@ const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsCommandError = a
|
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
|
-
export const
|
|
788
|
+
export const de_GetECSServiceRecommendationProjectedMetricsCommand = async (output, context) => {
|
|
789
789
|
if (output.statusCode >= 300) {
|
|
790
|
-
return
|
|
790
|
+
return de_GetECSServiceRecommendationProjectedMetricsCommandError(output, context);
|
|
791
791
|
}
|
|
792
792
|
const data = await parseBody(output.body, context);
|
|
793
793
|
let contents = {};
|
|
794
|
-
contents =
|
|
794
|
+
contents = de_GetECSServiceRecommendationProjectedMetricsResponse(data, context);
|
|
795
795
|
const response = {
|
|
796
796
|
$metadata: deserializeMetadata(output),
|
|
797
797
|
...contents,
|
|
798
798
|
};
|
|
799
799
|
return Promise.resolve(response);
|
|
800
800
|
};
|
|
801
|
-
const
|
|
801
|
+
const de_GetECSServiceRecommendationProjectedMetricsCommandError = async (output, context) => {
|
|
802
802
|
const parsedOutput = {
|
|
803
803
|
...output,
|
|
804
804
|
body: await parseErrorBody(output.body, context),
|
|
@@ -807,28 +807,28 @@ const deserializeAws_json1_0GetECSServiceRecommendationProjectedMetricsCommandEr
|
|
|
807
807
|
switch (errorCode) {
|
|
808
808
|
case "AccessDeniedException":
|
|
809
809
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
810
|
-
throw await
|
|
810
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
811
811
|
case "InternalServerException":
|
|
812
812
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
813
|
-
throw await
|
|
813
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
814
814
|
case "InvalidParameterValueException":
|
|
815
815
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
816
|
-
throw await
|
|
816
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
817
817
|
case "MissingAuthenticationToken":
|
|
818
818
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
819
|
-
throw await
|
|
819
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
820
820
|
case "OptInRequiredException":
|
|
821
821
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
822
|
-
throw await
|
|
822
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
823
823
|
case "ResourceNotFoundException":
|
|
824
824
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
825
|
-
throw await
|
|
825
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
826
826
|
case "ServiceUnavailableException":
|
|
827
827
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
828
|
-
throw await
|
|
828
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
829
829
|
case "ThrottlingException":
|
|
830
830
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
831
|
-
throw await
|
|
831
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
832
832
|
default:
|
|
833
833
|
const parsedBody = parsedOutput.body;
|
|
834
834
|
throwDefaultError({
|
|
@@ -839,20 +839,20 @@ const deserializeAws_json1_0GetECSServiceRecommendationProjectedMetricsCommandEr
|
|
|
839
839
|
});
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
|
-
export const
|
|
842
|
+
export const de_GetECSServiceRecommendationsCommand = async (output, context) => {
|
|
843
843
|
if (output.statusCode >= 300) {
|
|
844
|
-
return
|
|
844
|
+
return de_GetECSServiceRecommendationsCommandError(output, context);
|
|
845
845
|
}
|
|
846
846
|
const data = await parseBody(output.body, context);
|
|
847
847
|
let contents = {};
|
|
848
|
-
contents =
|
|
848
|
+
contents = de_GetECSServiceRecommendationsResponse(data, context);
|
|
849
849
|
const response = {
|
|
850
850
|
$metadata: deserializeMetadata(output),
|
|
851
851
|
...contents,
|
|
852
852
|
};
|
|
853
853
|
return Promise.resolve(response);
|
|
854
854
|
};
|
|
855
|
-
const
|
|
855
|
+
const de_GetECSServiceRecommendationsCommandError = async (output, context) => {
|
|
856
856
|
const parsedOutput = {
|
|
857
857
|
...output,
|
|
858
858
|
body: await parseErrorBody(output.body, context),
|
|
@@ -861,28 +861,28 @@ const deserializeAws_json1_0GetECSServiceRecommendationsCommandError = async (ou
|
|
|
861
861
|
switch (errorCode) {
|
|
862
862
|
case "AccessDeniedException":
|
|
863
863
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
864
|
-
throw await
|
|
864
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
865
865
|
case "InternalServerException":
|
|
866
866
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
867
|
-
throw await
|
|
867
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
868
868
|
case "InvalidParameterValueException":
|
|
869
869
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
870
|
-
throw await
|
|
870
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
871
871
|
case "MissingAuthenticationToken":
|
|
872
872
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
873
|
-
throw await
|
|
873
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
874
874
|
case "OptInRequiredException":
|
|
875
875
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
876
|
-
throw await
|
|
876
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
877
877
|
case "ResourceNotFoundException":
|
|
878
878
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
879
|
-
throw await
|
|
879
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
880
880
|
case "ServiceUnavailableException":
|
|
881
881
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
882
|
-
throw await
|
|
882
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
883
883
|
case "ThrottlingException":
|
|
884
884
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
885
|
-
throw await
|
|
885
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
886
886
|
default:
|
|
887
887
|
const parsedBody = parsedOutput.body;
|
|
888
888
|
throwDefaultError({
|
|
@@ -893,20 +893,20 @@ const deserializeAws_json1_0GetECSServiceRecommendationsCommandError = async (ou
|
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
895
|
};
|
|
896
|
-
export const
|
|
896
|
+
export const de_GetEffectiveRecommendationPreferencesCommand = async (output, context) => {
|
|
897
897
|
if (output.statusCode >= 300) {
|
|
898
|
-
return
|
|
898
|
+
return de_GetEffectiveRecommendationPreferencesCommandError(output, context);
|
|
899
899
|
}
|
|
900
900
|
const data = await parseBody(output.body, context);
|
|
901
901
|
let contents = {};
|
|
902
|
-
contents =
|
|
902
|
+
contents = de_GetEffectiveRecommendationPreferencesResponse(data, context);
|
|
903
903
|
const response = {
|
|
904
904
|
$metadata: deserializeMetadata(output),
|
|
905
905
|
...contents,
|
|
906
906
|
};
|
|
907
907
|
return Promise.resolve(response);
|
|
908
908
|
};
|
|
909
|
-
const
|
|
909
|
+
const de_GetEffectiveRecommendationPreferencesCommandError = async (output, context) => {
|
|
910
910
|
const parsedOutput = {
|
|
911
911
|
...output,
|
|
912
912
|
body: await parseErrorBody(output.body, context),
|
|
@@ -915,28 +915,28 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError =
|
|
|
915
915
|
switch (errorCode) {
|
|
916
916
|
case "AccessDeniedException":
|
|
917
917
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
918
|
-
throw await
|
|
918
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
919
919
|
case "InternalServerException":
|
|
920
920
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
921
|
-
throw await
|
|
921
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
922
922
|
case "InvalidParameterValueException":
|
|
923
923
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
924
|
-
throw await
|
|
924
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
925
925
|
case "MissingAuthenticationToken":
|
|
926
926
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
927
|
-
throw await
|
|
927
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
928
928
|
case "OptInRequiredException":
|
|
929
929
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
930
|
-
throw await
|
|
930
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
931
931
|
case "ResourceNotFoundException":
|
|
932
932
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
933
|
-
throw await
|
|
933
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
934
|
case "ServiceUnavailableException":
|
|
935
935
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
936
|
-
throw await
|
|
936
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
937
937
|
case "ThrottlingException":
|
|
938
938
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
939
|
-
throw await
|
|
939
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
940
940
|
default:
|
|
941
941
|
const parsedBody = parsedOutput.body;
|
|
942
942
|
throwDefaultError({
|
|
@@ -947,20 +947,20 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesCommandError =
|
|
|
947
947
|
});
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
|
-
export const
|
|
950
|
+
export const de_GetEnrollmentStatusCommand = async (output, context) => {
|
|
951
951
|
if (output.statusCode >= 300) {
|
|
952
|
-
return
|
|
952
|
+
return de_GetEnrollmentStatusCommandError(output, context);
|
|
953
953
|
}
|
|
954
954
|
const data = await parseBody(output.body, context);
|
|
955
955
|
let contents = {};
|
|
956
|
-
contents =
|
|
956
|
+
contents = de_GetEnrollmentStatusResponse(data, context);
|
|
957
957
|
const response = {
|
|
958
958
|
$metadata: deserializeMetadata(output),
|
|
959
959
|
...contents,
|
|
960
960
|
};
|
|
961
961
|
return Promise.resolve(response);
|
|
962
962
|
};
|
|
963
|
-
const
|
|
963
|
+
const de_GetEnrollmentStatusCommandError = async (output, context) => {
|
|
964
964
|
const parsedOutput = {
|
|
965
965
|
...output,
|
|
966
966
|
body: await parseErrorBody(output.body, context),
|
|
@@ -969,22 +969,22 @@ const deserializeAws_json1_0GetEnrollmentStatusCommandError = async (output, con
|
|
|
969
969
|
switch (errorCode) {
|
|
970
970
|
case "AccessDeniedException":
|
|
971
971
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
972
|
-
throw await
|
|
972
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
973
973
|
case "InternalServerException":
|
|
974
974
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
975
|
-
throw await
|
|
975
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
976
976
|
case "InvalidParameterValueException":
|
|
977
977
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
978
|
-
throw await
|
|
978
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
979
979
|
case "MissingAuthenticationToken":
|
|
980
980
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
981
|
-
throw await
|
|
981
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
982
982
|
case "ServiceUnavailableException":
|
|
983
983
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
984
|
-
throw await
|
|
984
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
985
985
|
case "ThrottlingException":
|
|
986
986
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
987
|
-
throw await
|
|
987
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
988
988
|
default:
|
|
989
989
|
const parsedBody = parsedOutput.body;
|
|
990
990
|
throwDefaultError({
|
|
@@ -995,20 +995,20 @@ const deserializeAws_json1_0GetEnrollmentStatusCommandError = async (output, con
|
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
997
|
};
|
|
998
|
-
export const
|
|
998
|
+
export const de_GetEnrollmentStatusesForOrganizationCommand = async (output, context) => {
|
|
999
999
|
if (output.statusCode >= 300) {
|
|
1000
|
-
return
|
|
1000
|
+
return de_GetEnrollmentStatusesForOrganizationCommandError(output, context);
|
|
1001
1001
|
}
|
|
1002
1002
|
const data = await parseBody(output.body, context);
|
|
1003
1003
|
let contents = {};
|
|
1004
|
-
contents =
|
|
1004
|
+
contents = de_GetEnrollmentStatusesForOrganizationResponse(data, context);
|
|
1005
1005
|
const response = {
|
|
1006
1006
|
$metadata: deserializeMetadata(output),
|
|
1007
1007
|
...contents,
|
|
1008
1008
|
};
|
|
1009
1009
|
return Promise.resolve(response);
|
|
1010
1010
|
};
|
|
1011
|
-
const
|
|
1011
|
+
const de_GetEnrollmentStatusesForOrganizationCommandError = async (output, context) => {
|
|
1012
1012
|
const parsedOutput = {
|
|
1013
1013
|
...output,
|
|
1014
1014
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1017,22 +1017,22 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = a
|
|
|
1017
1017
|
switch (errorCode) {
|
|
1018
1018
|
case "AccessDeniedException":
|
|
1019
1019
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1020
|
-
throw await
|
|
1020
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1021
1021
|
case "InternalServerException":
|
|
1022
1022
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1023
|
-
throw await
|
|
1023
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1024
1024
|
case "InvalidParameterValueException":
|
|
1025
1025
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1026
|
-
throw await
|
|
1026
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1027
1027
|
case "MissingAuthenticationToken":
|
|
1028
1028
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1029
|
-
throw await
|
|
1029
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1030
1030
|
case "ServiceUnavailableException":
|
|
1031
1031
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1032
|
-
throw await
|
|
1032
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1033
1033
|
case "ThrottlingException":
|
|
1034
1034
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1035
|
-
throw await
|
|
1035
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1036
1036
|
default:
|
|
1037
1037
|
const parsedBody = parsedOutput.body;
|
|
1038
1038
|
throwDefaultError({
|
|
@@ -1043,20 +1043,20 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationCommandError = a
|
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
1045
|
};
|
|
1046
|
-
export const
|
|
1046
|
+
export const de_GetLambdaFunctionRecommendationsCommand = async (output, context) => {
|
|
1047
1047
|
if (output.statusCode >= 300) {
|
|
1048
|
-
return
|
|
1048
|
+
return de_GetLambdaFunctionRecommendationsCommandError(output, context);
|
|
1049
1049
|
}
|
|
1050
1050
|
const data = await parseBody(output.body, context);
|
|
1051
1051
|
let contents = {};
|
|
1052
|
-
contents =
|
|
1052
|
+
contents = de_GetLambdaFunctionRecommendationsResponse(data, context);
|
|
1053
1053
|
const response = {
|
|
1054
1054
|
$metadata: deserializeMetadata(output),
|
|
1055
1055
|
...contents,
|
|
1056
1056
|
};
|
|
1057
1057
|
return Promise.resolve(response);
|
|
1058
1058
|
};
|
|
1059
|
-
const
|
|
1059
|
+
const de_GetLambdaFunctionRecommendationsCommandError = async (output, context) => {
|
|
1060
1060
|
const parsedOutput = {
|
|
1061
1061
|
...output,
|
|
1062
1062
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1065,28 +1065,28 @@ const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = async
|
|
|
1065
1065
|
switch (errorCode) {
|
|
1066
1066
|
case "AccessDeniedException":
|
|
1067
1067
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1068
|
-
throw await
|
|
1068
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1069
1069
|
case "InternalServerException":
|
|
1070
1070
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1071
|
-
throw await
|
|
1071
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1072
1072
|
case "InvalidParameterValueException":
|
|
1073
1073
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1074
|
-
throw await
|
|
1074
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1075
1075
|
case "LimitExceededException":
|
|
1076
1076
|
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1077
|
-
throw await
|
|
1077
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1078
1078
|
case "MissingAuthenticationToken":
|
|
1079
1079
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1080
|
-
throw await
|
|
1080
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1081
1081
|
case "OptInRequiredException":
|
|
1082
1082
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1083
|
-
throw await
|
|
1083
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1084
1084
|
case "ServiceUnavailableException":
|
|
1085
1085
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1086
|
-
throw await
|
|
1086
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1087
1087
|
case "ThrottlingException":
|
|
1088
1088
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1089
|
-
throw await
|
|
1089
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1090
1090
|
default:
|
|
1091
1091
|
const parsedBody = parsedOutput.body;
|
|
1092
1092
|
throwDefaultError({
|
|
@@ -1097,20 +1097,20 @@ const deserializeAws_json1_0GetLambdaFunctionRecommendationsCommandError = async
|
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
|
-
export const
|
|
1100
|
+
export const de_GetRecommendationPreferencesCommand = async (output, context) => {
|
|
1101
1101
|
if (output.statusCode >= 300) {
|
|
1102
|
-
return
|
|
1102
|
+
return de_GetRecommendationPreferencesCommandError(output, context);
|
|
1103
1103
|
}
|
|
1104
1104
|
const data = await parseBody(output.body, context);
|
|
1105
1105
|
let contents = {};
|
|
1106
|
-
contents =
|
|
1106
|
+
contents = de_GetRecommendationPreferencesResponse(data, context);
|
|
1107
1107
|
const response = {
|
|
1108
1108
|
$metadata: deserializeMetadata(output),
|
|
1109
1109
|
...contents,
|
|
1110
1110
|
};
|
|
1111
1111
|
return Promise.resolve(response);
|
|
1112
1112
|
};
|
|
1113
|
-
const
|
|
1113
|
+
const de_GetRecommendationPreferencesCommandError = async (output, context) => {
|
|
1114
1114
|
const parsedOutput = {
|
|
1115
1115
|
...output,
|
|
1116
1116
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1119,28 +1119,28 @@ const deserializeAws_json1_0GetRecommendationPreferencesCommandError = async (ou
|
|
|
1119
1119
|
switch (errorCode) {
|
|
1120
1120
|
case "AccessDeniedException":
|
|
1121
1121
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1122
|
-
throw await
|
|
1122
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1123
1123
|
case "InternalServerException":
|
|
1124
1124
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1125
|
-
throw await
|
|
1125
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1126
1126
|
case "InvalidParameterValueException":
|
|
1127
1127
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1128
|
-
throw await
|
|
1128
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1129
1129
|
case "MissingAuthenticationToken":
|
|
1130
1130
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1131
|
-
throw await
|
|
1131
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1132
1132
|
case "OptInRequiredException":
|
|
1133
1133
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1134
|
-
throw await
|
|
1134
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1135
1135
|
case "ResourceNotFoundException":
|
|
1136
1136
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1137
|
-
throw await
|
|
1137
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1138
1138
|
case "ServiceUnavailableException":
|
|
1139
1139
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1140
|
-
throw await
|
|
1140
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1141
1141
|
case "ThrottlingException":
|
|
1142
1142
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1143
|
-
throw await
|
|
1143
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1144
1144
|
default:
|
|
1145
1145
|
const parsedBody = parsedOutput.body;
|
|
1146
1146
|
throwDefaultError({
|
|
@@ -1151,20 +1151,20 @@ const deserializeAws_json1_0GetRecommendationPreferencesCommandError = async (ou
|
|
|
1151
1151
|
});
|
|
1152
1152
|
}
|
|
1153
1153
|
};
|
|
1154
|
-
export const
|
|
1154
|
+
export const de_GetRecommendationSummariesCommand = async (output, context) => {
|
|
1155
1155
|
if (output.statusCode >= 300) {
|
|
1156
|
-
return
|
|
1156
|
+
return de_GetRecommendationSummariesCommandError(output, context);
|
|
1157
1157
|
}
|
|
1158
1158
|
const data = await parseBody(output.body, context);
|
|
1159
1159
|
let contents = {};
|
|
1160
|
-
contents =
|
|
1160
|
+
contents = de_GetRecommendationSummariesResponse(data, context);
|
|
1161
1161
|
const response = {
|
|
1162
1162
|
$metadata: deserializeMetadata(output),
|
|
1163
1163
|
...contents,
|
|
1164
1164
|
};
|
|
1165
1165
|
return Promise.resolve(response);
|
|
1166
1166
|
};
|
|
1167
|
-
const
|
|
1167
|
+
const de_GetRecommendationSummariesCommandError = async (output, context) => {
|
|
1168
1168
|
const parsedOutput = {
|
|
1169
1169
|
...output,
|
|
1170
1170
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1173,25 +1173,25 @@ const deserializeAws_json1_0GetRecommendationSummariesCommandError = async (outp
|
|
|
1173
1173
|
switch (errorCode) {
|
|
1174
1174
|
case "AccessDeniedException":
|
|
1175
1175
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1176
|
-
throw await
|
|
1176
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1177
1177
|
case "InternalServerException":
|
|
1178
1178
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1179
|
-
throw await
|
|
1179
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1180
1180
|
case "InvalidParameterValueException":
|
|
1181
1181
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1182
|
-
throw await
|
|
1182
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1183
1183
|
case "MissingAuthenticationToken":
|
|
1184
1184
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1185
|
-
throw await
|
|
1185
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1186
1186
|
case "OptInRequiredException":
|
|
1187
1187
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1188
|
-
throw await
|
|
1188
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1189
1189
|
case "ServiceUnavailableException":
|
|
1190
1190
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1191
|
-
throw await
|
|
1191
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1192
1192
|
case "ThrottlingException":
|
|
1193
1193
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1194
|
-
throw await
|
|
1194
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1195
1195
|
default:
|
|
1196
1196
|
const parsedBody = parsedOutput.body;
|
|
1197
1197
|
throwDefaultError({
|
|
@@ -1202,20 +1202,20 @@ const deserializeAws_json1_0GetRecommendationSummariesCommandError = async (outp
|
|
|
1202
1202
|
});
|
|
1203
1203
|
}
|
|
1204
1204
|
};
|
|
1205
|
-
export const
|
|
1205
|
+
export const de_PutRecommendationPreferencesCommand = async (output, context) => {
|
|
1206
1206
|
if (output.statusCode >= 300) {
|
|
1207
|
-
return
|
|
1207
|
+
return de_PutRecommendationPreferencesCommandError(output, context);
|
|
1208
1208
|
}
|
|
1209
1209
|
const data = await parseBody(output.body, context);
|
|
1210
1210
|
let contents = {};
|
|
1211
|
-
contents =
|
|
1211
|
+
contents = de_PutRecommendationPreferencesResponse(data, context);
|
|
1212
1212
|
const response = {
|
|
1213
1213
|
$metadata: deserializeMetadata(output),
|
|
1214
1214
|
...contents,
|
|
1215
1215
|
};
|
|
1216
1216
|
return Promise.resolve(response);
|
|
1217
1217
|
};
|
|
1218
|
-
const
|
|
1218
|
+
const de_PutRecommendationPreferencesCommandError = async (output, context) => {
|
|
1219
1219
|
const parsedOutput = {
|
|
1220
1220
|
...output,
|
|
1221
1221
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1224,28 +1224,28 @@ const deserializeAws_json1_0PutRecommendationPreferencesCommandError = async (ou
|
|
|
1224
1224
|
switch (errorCode) {
|
|
1225
1225
|
case "AccessDeniedException":
|
|
1226
1226
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1227
|
-
throw await
|
|
1227
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1228
1228
|
case "InternalServerException":
|
|
1229
1229
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1230
|
-
throw await
|
|
1230
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1231
1231
|
case "InvalidParameterValueException":
|
|
1232
1232
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1233
|
-
throw await
|
|
1233
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1234
1234
|
case "MissingAuthenticationToken":
|
|
1235
1235
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1236
|
-
throw await
|
|
1236
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1237
1237
|
case "OptInRequiredException":
|
|
1238
1238
|
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1239
|
-
throw await
|
|
1239
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1240
1240
|
case "ResourceNotFoundException":
|
|
1241
1241
|
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1242
|
-
throw await
|
|
1242
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1243
1243
|
case "ServiceUnavailableException":
|
|
1244
1244
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1245
|
-
throw await
|
|
1245
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1246
1246
|
case "ThrottlingException":
|
|
1247
1247
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1248
|
-
throw await
|
|
1248
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1249
1249
|
default:
|
|
1250
1250
|
const parsedBody = parsedOutput.body;
|
|
1251
1251
|
throwDefaultError({
|
|
@@ -1256,20 +1256,20 @@ const deserializeAws_json1_0PutRecommendationPreferencesCommandError = async (ou
|
|
|
1256
1256
|
});
|
|
1257
1257
|
}
|
|
1258
1258
|
};
|
|
1259
|
-
export const
|
|
1259
|
+
export const de_UpdateEnrollmentStatusCommand = async (output, context) => {
|
|
1260
1260
|
if (output.statusCode >= 300) {
|
|
1261
|
-
return
|
|
1261
|
+
return de_UpdateEnrollmentStatusCommandError(output, context);
|
|
1262
1262
|
}
|
|
1263
1263
|
const data = await parseBody(output.body, context);
|
|
1264
1264
|
let contents = {};
|
|
1265
|
-
contents =
|
|
1265
|
+
contents = de_UpdateEnrollmentStatusResponse(data, context);
|
|
1266
1266
|
const response = {
|
|
1267
1267
|
$metadata: deserializeMetadata(output),
|
|
1268
1268
|
...contents,
|
|
1269
1269
|
};
|
|
1270
1270
|
return Promise.resolve(response);
|
|
1271
1271
|
};
|
|
1272
|
-
const
|
|
1272
|
+
const de_UpdateEnrollmentStatusCommandError = async (output, context) => {
|
|
1273
1273
|
const parsedOutput = {
|
|
1274
1274
|
...output,
|
|
1275
1275
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1278,22 +1278,22 @@ const deserializeAws_json1_0UpdateEnrollmentStatusCommandError = async (output,
|
|
|
1278
1278
|
switch (errorCode) {
|
|
1279
1279
|
case "AccessDeniedException":
|
|
1280
1280
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1281
|
-
throw await
|
|
1281
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1282
1282
|
case "InternalServerException":
|
|
1283
1283
|
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1284
|
-
throw await
|
|
1284
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1285
1285
|
case "InvalidParameterValueException":
|
|
1286
1286
|
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1287
|
-
throw await
|
|
1287
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1288
1288
|
case "MissingAuthenticationToken":
|
|
1289
1289
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1290
|
-
throw await
|
|
1290
|
+
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1291
1291
|
case "ServiceUnavailableException":
|
|
1292
1292
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1293
|
-
throw await
|
|
1293
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1294
1294
|
case "ThrottlingException":
|
|
1295
1295
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1296
|
-
throw await
|
|
1296
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1297
1297
|
default:
|
|
1298
1298
|
const parsedBody = parsedOutput.body;
|
|
1299
1299
|
throwDefaultError({
|
|
@@ -1304,359 +1304,351 @@ const deserializeAws_json1_0UpdateEnrollmentStatusCommandError = async (output,
|
|
|
1304
1304
|
});
|
|
1305
1305
|
}
|
|
1306
1306
|
};
|
|
1307
|
-
const
|
|
1307
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1308
1308
|
const body = parsedOutput.body;
|
|
1309
|
-
const deserialized =
|
|
1309
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1310
1310
|
const exception = new AccessDeniedException({
|
|
1311
1311
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1312
1312
|
...deserialized,
|
|
1313
1313
|
});
|
|
1314
1314
|
return __decorateServiceException(exception, body);
|
|
1315
1315
|
};
|
|
1316
|
-
const
|
|
1316
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1317
1317
|
const body = parsedOutput.body;
|
|
1318
|
-
const deserialized =
|
|
1318
|
+
const deserialized = de_InternalServerException(body, context);
|
|
1319
1319
|
const exception = new InternalServerException({
|
|
1320
1320
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1321
1321
|
...deserialized,
|
|
1322
1322
|
});
|
|
1323
1323
|
return __decorateServiceException(exception, body);
|
|
1324
1324
|
};
|
|
1325
|
-
const
|
|
1325
|
+
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
1326
1326
|
const body = parsedOutput.body;
|
|
1327
|
-
const deserialized =
|
|
1327
|
+
const deserialized = de_InvalidParameterValueException(body, context);
|
|
1328
1328
|
const exception = new InvalidParameterValueException({
|
|
1329
1329
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1330
1330
|
...deserialized,
|
|
1331
1331
|
});
|
|
1332
1332
|
return __decorateServiceException(exception, body);
|
|
1333
1333
|
};
|
|
1334
|
-
const
|
|
1334
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1335
1335
|
const body = parsedOutput.body;
|
|
1336
|
-
const deserialized =
|
|
1336
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1337
1337
|
const exception = new LimitExceededException({
|
|
1338
1338
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1339
1339
|
...deserialized,
|
|
1340
1340
|
});
|
|
1341
1341
|
return __decorateServiceException(exception, body);
|
|
1342
1342
|
};
|
|
1343
|
-
const
|
|
1343
|
+
const de_MissingAuthenticationTokenRes = async (parsedOutput, context) => {
|
|
1344
1344
|
const body = parsedOutput.body;
|
|
1345
|
-
const deserialized =
|
|
1345
|
+
const deserialized = de_MissingAuthenticationToken(body, context);
|
|
1346
1346
|
const exception = new MissingAuthenticationToken({
|
|
1347
1347
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1348
1348
|
...deserialized,
|
|
1349
1349
|
});
|
|
1350
1350
|
return __decorateServiceException(exception, body);
|
|
1351
1351
|
};
|
|
1352
|
-
const
|
|
1352
|
+
const de_OptInRequiredExceptionRes = async (parsedOutput, context) => {
|
|
1353
1353
|
const body = parsedOutput.body;
|
|
1354
|
-
const deserialized =
|
|
1354
|
+
const deserialized = de_OptInRequiredException(body, context);
|
|
1355
1355
|
const exception = new OptInRequiredException({
|
|
1356
1356
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1357
1357
|
...deserialized,
|
|
1358
1358
|
});
|
|
1359
1359
|
return __decorateServiceException(exception, body);
|
|
1360
1360
|
};
|
|
1361
|
-
const
|
|
1361
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1362
1362
|
const body = parsedOutput.body;
|
|
1363
|
-
const deserialized =
|
|
1363
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1364
1364
|
const exception = new ResourceNotFoundException({
|
|
1365
1365
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
1366
|
...deserialized,
|
|
1367
1367
|
});
|
|
1368
1368
|
return __decorateServiceException(exception, body);
|
|
1369
1369
|
};
|
|
1370
|
-
const
|
|
1370
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1371
1371
|
const body = parsedOutput.body;
|
|
1372
|
-
const deserialized =
|
|
1372
|
+
const deserialized = de_ServiceUnavailableException(body, context);
|
|
1373
1373
|
const exception = new ServiceUnavailableException({
|
|
1374
1374
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1375
1375
|
...deserialized,
|
|
1376
1376
|
});
|
|
1377
1377
|
return __decorateServiceException(exception, body);
|
|
1378
1378
|
};
|
|
1379
|
-
const
|
|
1379
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1380
1380
|
const body = parsedOutput.body;
|
|
1381
|
-
const deserialized =
|
|
1381
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
1382
1382
|
const exception = new ThrottlingException({
|
|
1383
1383
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1384
1384
|
...deserialized,
|
|
1385
1385
|
});
|
|
1386
1386
|
return __decorateServiceException(exception, body);
|
|
1387
1387
|
};
|
|
1388
|
-
const
|
|
1388
|
+
const se_AccountIds = (input, context) => {
|
|
1389
1389
|
return input
|
|
1390
1390
|
.filter((e) => e != null)
|
|
1391
1391
|
.map((entry) => {
|
|
1392
1392
|
return entry;
|
|
1393
1393
|
});
|
|
1394
1394
|
};
|
|
1395
|
-
const
|
|
1395
|
+
const se_AutoScalingGroupArns = (input, context) => {
|
|
1396
1396
|
return input
|
|
1397
1397
|
.filter((e) => e != null)
|
|
1398
1398
|
.map((entry) => {
|
|
1399
1399
|
return entry;
|
|
1400
1400
|
});
|
|
1401
1401
|
};
|
|
1402
|
-
const
|
|
1402
|
+
const se_CpuVendorArchitectures = (input, context) => {
|
|
1403
1403
|
return input
|
|
1404
1404
|
.filter((e) => e != null)
|
|
1405
1405
|
.map((entry) => {
|
|
1406
1406
|
return entry;
|
|
1407
1407
|
});
|
|
1408
1408
|
};
|
|
1409
|
-
const
|
|
1409
|
+
const se_DeleteRecommendationPreferencesRequest = (input, context) => {
|
|
1410
1410
|
return {
|
|
1411
1411
|
...(input.recommendationPreferenceNames != null && {
|
|
1412
|
-
recommendationPreferenceNames:
|
|
1412
|
+
recommendationPreferenceNames: se_RecommendationPreferenceNames(input.recommendationPreferenceNames, context),
|
|
1413
1413
|
}),
|
|
1414
1414
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1415
|
-
...(input.scope != null && { scope:
|
|
1415
|
+
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1416
1416
|
};
|
|
1417
1417
|
};
|
|
1418
|
-
const
|
|
1418
|
+
const se_DescribeRecommendationExportJobsRequest = (input, context) => {
|
|
1419
1419
|
return {
|
|
1420
|
-
...(input.filters != null && { filters:
|
|
1421
|
-
...(input.jobIds != null && { jobIds:
|
|
1420
|
+
...(input.filters != null && { filters: se_JobFilters(input.filters, context) }),
|
|
1421
|
+
...(input.jobIds != null && { jobIds: se_JobIds(input.jobIds, context) }),
|
|
1422
1422
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1423
1423
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1424
1424
|
};
|
|
1425
1425
|
};
|
|
1426
|
-
const
|
|
1426
|
+
const se_EBSFilter = (input, context) => {
|
|
1427
1427
|
return {
|
|
1428
1428
|
...(input.name != null && { name: input.name }),
|
|
1429
|
-
...(input.values != null && { values:
|
|
1429
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1430
1430
|
};
|
|
1431
1431
|
};
|
|
1432
|
-
const
|
|
1432
|
+
const se_EBSFilters = (input, context) => {
|
|
1433
1433
|
return input
|
|
1434
1434
|
.filter((e) => e != null)
|
|
1435
1435
|
.map((entry) => {
|
|
1436
|
-
return
|
|
1436
|
+
return se_EBSFilter(entry, context);
|
|
1437
1437
|
});
|
|
1438
1438
|
};
|
|
1439
|
-
const
|
|
1439
|
+
const se_ECSServiceRecommendationFilter = (input, context) => {
|
|
1440
1440
|
return {
|
|
1441
1441
|
...(input.name != null && { name: input.name }),
|
|
1442
|
-
...(input.values != null && { values:
|
|
1442
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1443
1443
|
};
|
|
1444
1444
|
};
|
|
1445
|
-
const
|
|
1445
|
+
const se_ECSServiceRecommendationFilters = (input, context) => {
|
|
1446
1446
|
return input
|
|
1447
1447
|
.filter((e) => e != null)
|
|
1448
1448
|
.map((entry) => {
|
|
1449
|
-
return
|
|
1449
|
+
return se_ECSServiceRecommendationFilter(entry, context);
|
|
1450
1450
|
});
|
|
1451
1451
|
};
|
|
1452
|
-
const
|
|
1452
|
+
const se_EnrollmentFilter = (input, context) => {
|
|
1453
1453
|
return {
|
|
1454
1454
|
...(input.name != null && { name: input.name }),
|
|
1455
|
-
...(input.values != null && { values:
|
|
1455
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1456
1456
|
};
|
|
1457
1457
|
};
|
|
1458
|
-
const
|
|
1458
|
+
const se_EnrollmentFilters = (input, context) => {
|
|
1459
1459
|
return input
|
|
1460
1460
|
.filter((e) => e != null)
|
|
1461
1461
|
.map((entry) => {
|
|
1462
|
-
return
|
|
1462
|
+
return se_EnrollmentFilter(entry, context);
|
|
1463
1463
|
});
|
|
1464
1464
|
};
|
|
1465
|
-
const
|
|
1465
|
+
const se_ExportableAutoScalingGroupFields = (input, context) => {
|
|
1466
1466
|
return input
|
|
1467
1467
|
.filter((e) => e != null)
|
|
1468
1468
|
.map((entry) => {
|
|
1469
1469
|
return entry;
|
|
1470
1470
|
});
|
|
1471
1471
|
};
|
|
1472
|
-
const
|
|
1472
|
+
const se_ExportableECSServiceFields = (input, context) => {
|
|
1473
1473
|
return input
|
|
1474
1474
|
.filter((e) => e != null)
|
|
1475
1475
|
.map((entry) => {
|
|
1476
1476
|
return entry;
|
|
1477
1477
|
});
|
|
1478
1478
|
};
|
|
1479
|
-
const
|
|
1479
|
+
const se_ExportableInstanceFields = (input, context) => {
|
|
1480
1480
|
return input
|
|
1481
1481
|
.filter((e) => e != null)
|
|
1482
1482
|
.map((entry) => {
|
|
1483
1483
|
return entry;
|
|
1484
1484
|
});
|
|
1485
1485
|
};
|
|
1486
|
-
const
|
|
1486
|
+
const se_ExportableLambdaFunctionFields = (input, context) => {
|
|
1487
1487
|
return input
|
|
1488
1488
|
.filter((e) => e != null)
|
|
1489
1489
|
.map((entry) => {
|
|
1490
1490
|
return entry;
|
|
1491
1491
|
});
|
|
1492
1492
|
};
|
|
1493
|
-
const
|
|
1493
|
+
const se_ExportableVolumeFields = (input, context) => {
|
|
1494
1494
|
return input
|
|
1495
1495
|
.filter((e) => e != null)
|
|
1496
1496
|
.map((entry) => {
|
|
1497
1497
|
return entry;
|
|
1498
1498
|
});
|
|
1499
1499
|
};
|
|
1500
|
-
const
|
|
1500
|
+
const se_ExportAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1501
1501
|
return {
|
|
1502
|
-
...(input.accountIds != null && { accountIds:
|
|
1502
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1503
1503
|
...(input.fieldsToExport != null && {
|
|
1504
|
-
fieldsToExport:
|
|
1504
|
+
fieldsToExport: se_ExportableAutoScalingGroupFields(input.fieldsToExport, context),
|
|
1505
1505
|
}),
|
|
1506
1506
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1507
|
-
...(input.filters != null && { filters:
|
|
1507
|
+
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1508
1508
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1509
1509
|
...(input.recommendationPreferences != null && {
|
|
1510
|
-
recommendationPreferences:
|
|
1510
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1511
1511
|
}),
|
|
1512
1512
|
...(input.s3DestinationConfig != null && {
|
|
1513
|
-
s3DestinationConfig:
|
|
1513
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1514
1514
|
}),
|
|
1515
1515
|
};
|
|
1516
1516
|
};
|
|
1517
|
-
const
|
|
1517
|
+
const se_ExportEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1518
1518
|
return {
|
|
1519
|
-
...(input.accountIds != null && { accountIds:
|
|
1520
|
-
...(input.fieldsToExport != null && {
|
|
1521
|
-
fieldsToExport: serializeAws_json1_0ExportableVolumeFields(input.fieldsToExport, context),
|
|
1522
|
-
}),
|
|
1519
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1520
|
+
...(input.fieldsToExport != null && { fieldsToExport: se_ExportableVolumeFields(input.fieldsToExport, context) }),
|
|
1523
1521
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1524
|
-
...(input.filters != null && { filters:
|
|
1522
|
+
...(input.filters != null && { filters: se_EBSFilters(input.filters, context) }),
|
|
1525
1523
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1526
1524
|
...(input.s3DestinationConfig != null && {
|
|
1527
|
-
s3DestinationConfig:
|
|
1525
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1528
1526
|
}),
|
|
1529
1527
|
};
|
|
1530
1528
|
};
|
|
1531
|
-
const
|
|
1529
|
+
const se_ExportEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1532
1530
|
return {
|
|
1533
|
-
...(input.accountIds != null && { accountIds:
|
|
1534
|
-
...(input.fieldsToExport != null && {
|
|
1535
|
-
fieldsToExport: serializeAws_json1_0ExportableInstanceFields(input.fieldsToExport, context),
|
|
1536
|
-
}),
|
|
1531
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1532
|
+
...(input.fieldsToExport != null && { fieldsToExport: se_ExportableInstanceFields(input.fieldsToExport, context) }),
|
|
1537
1533
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1538
|
-
...(input.filters != null && { filters:
|
|
1534
|
+
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1539
1535
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1540
1536
|
...(input.recommendationPreferences != null && {
|
|
1541
|
-
recommendationPreferences:
|
|
1537
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1542
1538
|
}),
|
|
1543
1539
|
...(input.s3DestinationConfig != null && {
|
|
1544
|
-
s3DestinationConfig:
|
|
1540
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1545
1541
|
}),
|
|
1546
1542
|
};
|
|
1547
1543
|
};
|
|
1548
|
-
const
|
|
1544
|
+
const se_ExportECSServiceRecommendationsRequest = (input, context) => {
|
|
1549
1545
|
return {
|
|
1550
|
-
...(input.accountIds != null && { accountIds:
|
|
1546
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1551
1547
|
...(input.fieldsToExport != null && {
|
|
1552
|
-
fieldsToExport:
|
|
1548
|
+
fieldsToExport: se_ExportableECSServiceFields(input.fieldsToExport, context),
|
|
1553
1549
|
}),
|
|
1554
1550
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1555
|
-
...(input.filters != null && {
|
|
1556
|
-
filters: serializeAws_json1_0ECSServiceRecommendationFilters(input.filters, context),
|
|
1557
|
-
}),
|
|
1551
|
+
...(input.filters != null && { filters: se_ECSServiceRecommendationFilters(input.filters, context) }),
|
|
1558
1552
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1559
1553
|
...(input.s3DestinationConfig != null && {
|
|
1560
|
-
s3DestinationConfig:
|
|
1554
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1561
1555
|
}),
|
|
1562
1556
|
};
|
|
1563
1557
|
};
|
|
1564
|
-
const
|
|
1558
|
+
const se_ExportLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1565
1559
|
return {
|
|
1566
|
-
...(input.accountIds != null && { accountIds:
|
|
1560
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1567
1561
|
...(input.fieldsToExport != null && {
|
|
1568
|
-
fieldsToExport:
|
|
1562
|
+
fieldsToExport: se_ExportableLambdaFunctionFields(input.fieldsToExport, context),
|
|
1569
1563
|
}),
|
|
1570
1564
|
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1571
|
-
...(input.filters != null && {
|
|
1572
|
-
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1573
|
-
}),
|
|
1565
|
+
...(input.filters != null && { filters: se_LambdaFunctionRecommendationFilters(input.filters, context) }),
|
|
1574
1566
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1575
1567
|
...(input.s3DestinationConfig != null && {
|
|
1576
|
-
s3DestinationConfig:
|
|
1568
|
+
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1577
1569
|
}),
|
|
1578
1570
|
};
|
|
1579
1571
|
};
|
|
1580
|
-
const
|
|
1572
|
+
const se_ExternalMetricsPreference = (input, context) => {
|
|
1581
1573
|
return {
|
|
1582
1574
|
...(input.source != null && { source: input.source }),
|
|
1583
1575
|
};
|
|
1584
1576
|
};
|
|
1585
|
-
const
|
|
1577
|
+
const se_Filter = (input, context) => {
|
|
1586
1578
|
return {
|
|
1587
1579
|
...(input.name != null && { name: input.name }),
|
|
1588
|
-
...(input.values != null && { values:
|
|
1580
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1589
1581
|
};
|
|
1590
1582
|
};
|
|
1591
|
-
const
|
|
1583
|
+
const se_Filters = (input, context) => {
|
|
1592
1584
|
return input
|
|
1593
1585
|
.filter((e) => e != null)
|
|
1594
1586
|
.map((entry) => {
|
|
1595
|
-
return
|
|
1587
|
+
return se_Filter(entry, context);
|
|
1596
1588
|
});
|
|
1597
1589
|
};
|
|
1598
|
-
const
|
|
1590
|
+
const se_FilterValues = (input, context) => {
|
|
1599
1591
|
return input
|
|
1600
1592
|
.filter((e) => e != null)
|
|
1601
1593
|
.map((entry) => {
|
|
1602
1594
|
return entry;
|
|
1603
1595
|
});
|
|
1604
1596
|
};
|
|
1605
|
-
const
|
|
1597
|
+
const se_FunctionArns = (input, context) => {
|
|
1606
1598
|
return input
|
|
1607
1599
|
.filter((e) => e != null)
|
|
1608
1600
|
.map((entry) => {
|
|
1609
1601
|
return entry;
|
|
1610
1602
|
});
|
|
1611
1603
|
};
|
|
1612
|
-
const
|
|
1604
|
+
const se_GetAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1613
1605
|
return {
|
|
1614
|
-
...(input.accountIds != null && { accountIds:
|
|
1606
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1615
1607
|
...(input.autoScalingGroupArns != null && {
|
|
1616
|
-
autoScalingGroupArns:
|
|
1608
|
+
autoScalingGroupArns: se_AutoScalingGroupArns(input.autoScalingGroupArns, context),
|
|
1617
1609
|
}),
|
|
1618
|
-
...(input.filters != null && { filters:
|
|
1610
|
+
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1619
1611
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1620
1612
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1621
1613
|
...(input.recommendationPreferences != null && {
|
|
1622
|
-
recommendationPreferences:
|
|
1614
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1623
1615
|
}),
|
|
1624
1616
|
};
|
|
1625
1617
|
};
|
|
1626
|
-
const
|
|
1618
|
+
const se_GetEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1627
1619
|
return {
|
|
1628
|
-
...(input.accountIds != null && { accountIds:
|
|
1629
|
-
...(input.filters != null && { filters:
|
|
1620
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1621
|
+
...(input.filters != null && { filters: se_EBSFilters(input.filters, context) }),
|
|
1630
1622
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1631
1623
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1632
|
-
...(input.volumeArns != null && { volumeArns:
|
|
1624
|
+
...(input.volumeArns != null && { volumeArns: se_VolumeArns(input.volumeArns, context) }),
|
|
1633
1625
|
};
|
|
1634
1626
|
};
|
|
1635
|
-
const
|
|
1627
|
+
const se_GetEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1636
1628
|
return {
|
|
1637
|
-
...(input.accountIds != null && { accountIds:
|
|
1638
|
-
...(input.filters != null && { filters:
|
|
1639
|
-
...(input.instanceArns != null && { instanceArns:
|
|
1629
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1630
|
+
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1631
|
+
...(input.instanceArns != null && { instanceArns: se_InstanceArns(input.instanceArns, context) }),
|
|
1640
1632
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1641
1633
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1642
1634
|
...(input.recommendationPreferences != null && {
|
|
1643
|
-
recommendationPreferences:
|
|
1635
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1644
1636
|
}),
|
|
1645
1637
|
};
|
|
1646
1638
|
};
|
|
1647
|
-
const
|
|
1639
|
+
const se_GetEC2RecommendationProjectedMetricsRequest = (input, context) => {
|
|
1648
1640
|
return {
|
|
1649
1641
|
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1650
1642
|
...(input.instanceArn != null && { instanceArn: input.instanceArn }),
|
|
1651
1643
|
...(input.period != null && { period: input.period }),
|
|
1652
1644
|
...(input.recommendationPreferences != null && {
|
|
1653
|
-
recommendationPreferences:
|
|
1645
|
+
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1654
1646
|
}),
|
|
1655
1647
|
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1656
1648
|
...(input.stat != null && { stat: input.stat }),
|
|
1657
1649
|
};
|
|
1658
1650
|
};
|
|
1659
|
-
const
|
|
1651
|
+
const se_GetECSServiceRecommendationProjectedMetricsRequest = (input, context) => {
|
|
1660
1652
|
return {
|
|
1661
1653
|
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1662
1654
|
...(input.period != null && { period: input.period }),
|
|
@@ -1665,163 +1657,159 @@ const serializeAws_json1_0GetECSServiceRecommendationProjectedMetricsRequest = (
|
|
|
1665
1657
|
...(input.stat != null && { stat: input.stat }),
|
|
1666
1658
|
};
|
|
1667
1659
|
};
|
|
1668
|
-
const
|
|
1660
|
+
const se_GetECSServiceRecommendationsRequest = (input, context) => {
|
|
1669
1661
|
return {
|
|
1670
|
-
...(input.accountIds != null && { accountIds:
|
|
1671
|
-
...(input.filters != null && {
|
|
1672
|
-
filters: serializeAws_json1_0ECSServiceRecommendationFilters(input.filters, context),
|
|
1673
|
-
}),
|
|
1662
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1663
|
+
...(input.filters != null && { filters: se_ECSServiceRecommendationFilters(input.filters, context) }),
|
|
1674
1664
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1675
1665
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1676
|
-
...(input.serviceArns != null && { serviceArns:
|
|
1666
|
+
...(input.serviceArns != null && { serviceArns: se_ServiceArns(input.serviceArns, context) }),
|
|
1677
1667
|
};
|
|
1678
1668
|
};
|
|
1679
|
-
const
|
|
1669
|
+
const se_GetEffectiveRecommendationPreferencesRequest = (input, context) => {
|
|
1680
1670
|
return {
|
|
1681
1671
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1682
1672
|
};
|
|
1683
1673
|
};
|
|
1684
|
-
const
|
|
1674
|
+
const se_GetEnrollmentStatusesForOrganizationRequest = (input, context) => {
|
|
1685
1675
|
return {
|
|
1686
|
-
...(input.filters != null && { filters:
|
|
1676
|
+
...(input.filters != null && { filters: se_EnrollmentFilters(input.filters, context) }),
|
|
1687
1677
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1688
1678
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1689
1679
|
};
|
|
1690
1680
|
};
|
|
1691
|
-
const
|
|
1681
|
+
const se_GetEnrollmentStatusRequest = (input, context) => {
|
|
1692
1682
|
return {};
|
|
1693
1683
|
};
|
|
1694
|
-
const
|
|
1684
|
+
const se_GetLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1695
1685
|
return {
|
|
1696
|
-
...(input.accountIds != null && { accountIds:
|
|
1697
|
-
...(input.filters != null && {
|
|
1698
|
-
|
|
1699
|
-
}),
|
|
1700
|
-
...(input.functionArns != null && { functionArns: serializeAws_json1_0FunctionArns(input.functionArns, context) }),
|
|
1686
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1687
|
+
...(input.filters != null && { filters: se_LambdaFunctionRecommendationFilters(input.filters, context) }),
|
|
1688
|
+
...(input.functionArns != null && { functionArns: se_FunctionArns(input.functionArns, context) }),
|
|
1701
1689
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1702
1690
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1703
1691
|
};
|
|
1704
1692
|
};
|
|
1705
|
-
const
|
|
1693
|
+
const se_GetRecommendationPreferencesRequest = (input, context) => {
|
|
1706
1694
|
return {
|
|
1707
1695
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1708
1696
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1709
1697
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1710
|
-
...(input.scope != null && { scope:
|
|
1698
|
+
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1711
1699
|
};
|
|
1712
1700
|
};
|
|
1713
|
-
const
|
|
1701
|
+
const se_GetRecommendationSummariesRequest = (input, context) => {
|
|
1714
1702
|
return {
|
|
1715
|
-
...(input.accountIds != null && { accountIds:
|
|
1703
|
+
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1716
1704
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1717
1705
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1718
1706
|
};
|
|
1719
1707
|
};
|
|
1720
|
-
const
|
|
1708
|
+
const se_InstanceArns = (input, context) => {
|
|
1721
1709
|
return input
|
|
1722
1710
|
.filter((e) => e != null)
|
|
1723
1711
|
.map((entry) => {
|
|
1724
1712
|
return entry;
|
|
1725
1713
|
});
|
|
1726
1714
|
};
|
|
1727
|
-
const
|
|
1715
|
+
const se_JobFilter = (input, context) => {
|
|
1728
1716
|
return {
|
|
1729
1717
|
...(input.name != null && { name: input.name }),
|
|
1730
|
-
...(input.values != null && { values:
|
|
1718
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1731
1719
|
};
|
|
1732
1720
|
};
|
|
1733
|
-
const
|
|
1721
|
+
const se_JobFilters = (input, context) => {
|
|
1734
1722
|
return input
|
|
1735
1723
|
.filter((e) => e != null)
|
|
1736
1724
|
.map((entry) => {
|
|
1737
|
-
return
|
|
1725
|
+
return se_JobFilter(entry, context);
|
|
1738
1726
|
});
|
|
1739
1727
|
};
|
|
1740
|
-
const
|
|
1728
|
+
const se_JobIds = (input, context) => {
|
|
1741
1729
|
return input
|
|
1742
1730
|
.filter((e) => e != null)
|
|
1743
1731
|
.map((entry) => {
|
|
1744
1732
|
return entry;
|
|
1745
1733
|
});
|
|
1746
1734
|
};
|
|
1747
|
-
const
|
|
1735
|
+
const se_LambdaFunctionRecommendationFilter = (input, context) => {
|
|
1748
1736
|
return {
|
|
1749
1737
|
...(input.name != null && { name: input.name }),
|
|
1750
|
-
...(input.values != null && { values:
|
|
1738
|
+
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1751
1739
|
};
|
|
1752
1740
|
};
|
|
1753
|
-
const
|
|
1741
|
+
const se_LambdaFunctionRecommendationFilters = (input, context) => {
|
|
1754
1742
|
return input
|
|
1755
1743
|
.filter((e) => e != null)
|
|
1756
1744
|
.map((entry) => {
|
|
1757
|
-
return
|
|
1745
|
+
return se_LambdaFunctionRecommendationFilter(entry, context);
|
|
1758
1746
|
});
|
|
1759
1747
|
};
|
|
1760
|
-
const
|
|
1748
|
+
const se_PutRecommendationPreferencesRequest = (input, context) => {
|
|
1761
1749
|
return {
|
|
1762
1750
|
...(input.enhancedInfrastructureMetrics != null && {
|
|
1763
1751
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
1764
1752
|
}),
|
|
1765
1753
|
...(input.externalMetricsPreference != null && {
|
|
1766
|
-
externalMetricsPreference:
|
|
1754
|
+
externalMetricsPreference: se_ExternalMetricsPreference(input.externalMetricsPreference, context),
|
|
1767
1755
|
}),
|
|
1768
1756
|
...(input.inferredWorkloadTypes != null && { inferredWorkloadTypes: input.inferredWorkloadTypes }),
|
|
1769
1757
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1770
|
-
...(input.scope != null && { scope:
|
|
1758
|
+
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1771
1759
|
};
|
|
1772
1760
|
};
|
|
1773
|
-
const
|
|
1761
|
+
const se_RecommendationPreferenceNames = (input, context) => {
|
|
1774
1762
|
return input
|
|
1775
1763
|
.filter((e) => e != null)
|
|
1776
1764
|
.map((entry) => {
|
|
1777
1765
|
return entry;
|
|
1778
1766
|
});
|
|
1779
1767
|
};
|
|
1780
|
-
const
|
|
1768
|
+
const se_RecommendationPreferences = (input, context) => {
|
|
1781
1769
|
return {
|
|
1782
1770
|
...(input.cpuVendorArchitectures != null && {
|
|
1783
|
-
cpuVendorArchitectures:
|
|
1771
|
+
cpuVendorArchitectures: se_CpuVendorArchitectures(input.cpuVendorArchitectures, context),
|
|
1784
1772
|
}),
|
|
1785
1773
|
};
|
|
1786
1774
|
};
|
|
1787
|
-
const
|
|
1775
|
+
const se_S3DestinationConfig = (input, context) => {
|
|
1788
1776
|
return {
|
|
1789
1777
|
...(input.bucket != null && { bucket: input.bucket }),
|
|
1790
1778
|
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
1791
1779
|
};
|
|
1792
1780
|
};
|
|
1793
|
-
const
|
|
1781
|
+
const se_Scope = (input, context) => {
|
|
1794
1782
|
return {
|
|
1795
1783
|
...(input.name != null && { name: input.name }),
|
|
1796
1784
|
...(input.value != null && { value: input.value }),
|
|
1797
1785
|
};
|
|
1798
1786
|
};
|
|
1799
|
-
const
|
|
1787
|
+
const se_ServiceArns = (input, context) => {
|
|
1800
1788
|
return input
|
|
1801
1789
|
.filter((e) => e != null)
|
|
1802
1790
|
.map((entry) => {
|
|
1803
1791
|
return entry;
|
|
1804
1792
|
});
|
|
1805
1793
|
};
|
|
1806
|
-
const
|
|
1794
|
+
const se_UpdateEnrollmentStatusRequest = (input, context) => {
|
|
1807
1795
|
return {
|
|
1808
1796
|
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1809
1797
|
...(input.status != null && { status: input.status }),
|
|
1810
1798
|
};
|
|
1811
1799
|
};
|
|
1812
|
-
const
|
|
1800
|
+
const se_VolumeArns = (input, context) => {
|
|
1813
1801
|
return input
|
|
1814
1802
|
.filter((e) => e != null)
|
|
1815
1803
|
.map((entry) => {
|
|
1816
1804
|
return entry;
|
|
1817
1805
|
});
|
|
1818
1806
|
};
|
|
1819
|
-
const
|
|
1807
|
+
const de_AccessDeniedException = (output, context) => {
|
|
1820
1808
|
return {
|
|
1821
1809
|
message: __expectString(output.message),
|
|
1822
1810
|
};
|
|
1823
1811
|
};
|
|
1824
|
-
const
|
|
1812
|
+
const de_AccountEnrollmentStatus = (output, context) => {
|
|
1825
1813
|
return {
|
|
1826
1814
|
accountId: __expectString(output.accountId),
|
|
1827
1815
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
@@ -1831,18 +1819,18 @@ const deserializeAws_json1_0AccountEnrollmentStatus = (output, context) => {
|
|
|
1831
1819
|
statusReason: __expectString(output.statusReason),
|
|
1832
1820
|
};
|
|
1833
1821
|
};
|
|
1834
|
-
const
|
|
1822
|
+
const de_AccountEnrollmentStatuses = (output, context) => {
|
|
1835
1823
|
const retVal = (output || [])
|
|
1836
1824
|
.filter((e) => e != null)
|
|
1837
1825
|
.map((entry) => {
|
|
1838
1826
|
if (entry === null) {
|
|
1839
1827
|
return null;
|
|
1840
1828
|
}
|
|
1841
|
-
return
|
|
1829
|
+
return de_AccountEnrollmentStatus(entry, context);
|
|
1842
1830
|
});
|
|
1843
1831
|
return retVal;
|
|
1844
1832
|
};
|
|
1845
|
-
const
|
|
1833
|
+
const de_AutoScalingGroupConfiguration = (output, context) => {
|
|
1846
1834
|
return {
|
|
1847
1835
|
desiredCapacity: __expectInt32(output.desiredCapacity),
|
|
1848
1836
|
instanceType: __expectString(output.instanceType),
|
|
@@ -1850,113 +1838,107 @@ const deserializeAws_json1_0AutoScalingGroupConfiguration = (output, context) =>
|
|
|
1850
1838
|
minSize: __expectInt32(output.minSize),
|
|
1851
1839
|
};
|
|
1852
1840
|
};
|
|
1853
|
-
const
|
|
1841
|
+
const de_AutoScalingGroupRecommendation = (output, context) => {
|
|
1854
1842
|
return {
|
|
1855
1843
|
accountId: __expectString(output.accountId),
|
|
1856
1844
|
autoScalingGroupArn: __expectString(output.autoScalingGroupArn),
|
|
1857
1845
|
autoScalingGroupName: __expectString(output.autoScalingGroupName),
|
|
1858
1846
|
currentConfiguration: output.currentConfiguration != null
|
|
1859
|
-
?
|
|
1847
|
+
? de_AutoScalingGroupConfiguration(output.currentConfiguration, context)
|
|
1860
1848
|
: undefined,
|
|
1861
1849
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
1862
1850
|
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
1863
|
-
?
|
|
1851
|
+
? de_EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
1864
1852
|
: undefined,
|
|
1865
1853
|
finding: __expectString(output.finding),
|
|
1866
1854
|
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
1867
|
-
?
|
|
1855
|
+
? de_InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
1868
1856
|
: undefined,
|
|
1869
1857
|
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
1870
1858
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
1871
1859
|
: undefined,
|
|
1872
1860
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
1873
1861
|
recommendationOptions: output.recommendationOptions != null
|
|
1874
|
-
?
|
|
1875
|
-
: undefined,
|
|
1876
|
-
utilizationMetrics: output.utilizationMetrics != null
|
|
1877
|
-
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
1862
|
+
? de_AutoScalingGroupRecommendationOptions(output.recommendationOptions, context)
|
|
1878
1863
|
: undefined,
|
|
1864
|
+
utilizationMetrics: output.utilizationMetrics != null ? de_UtilizationMetrics(output.utilizationMetrics, context) : undefined,
|
|
1879
1865
|
};
|
|
1880
1866
|
};
|
|
1881
|
-
const
|
|
1867
|
+
const de_AutoScalingGroupRecommendationOption = (output, context) => {
|
|
1882
1868
|
return {
|
|
1883
|
-
configuration: output.configuration != null
|
|
1884
|
-
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
1885
|
-
: undefined,
|
|
1869
|
+
configuration: output.configuration != null ? de_AutoScalingGroupConfiguration(output.configuration, context) : undefined,
|
|
1886
1870
|
migrationEffort: __expectString(output.migrationEffort),
|
|
1887
1871
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
1888
1872
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
1889
|
-
?
|
|
1873
|
+
? de_ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
1890
1874
|
: undefined,
|
|
1891
1875
|
rank: __expectInt32(output.rank),
|
|
1892
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
1893
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
1894
|
-
: undefined,
|
|
1876
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
1895
1877
|
};
|
|
1896
1878
|
};
|
|
1897
|
-
const
|
|
1879
|
+
const de_AutoScalingGroupRecommendationOptions = (output, context) => {
|
|
1898
1880
|
const retVal = (output || [])
|
|
1899
1881
|
.filter((e) => e != null)
|
|
1900
1882
|
.map((entry) => {
|
|
1901
1883
|
if (entry === null) {
|
|
1902
1884
|
return null;
|
|
1903
1885
|
}
|
|
1904
|
-
return
|
|
1886
|
+
return de_AutoScalingGroupRecommendationOption(entry, context);
|
|
1905
1887
|
});
|
|
1906
1888
|
return retVal;
|
|
1907
1889
|
};
|
|
1908
|
-
const
|
|
1890
|
+
const de_AutoScalingGroupRecommendations = (output, context) => {
|
|
1909
1891
|
const retVal = (output || [])
|
|
1910
1892
|
.filter((e) => e != null)
|
|
1911
1893
|
.map((entry) => {
|
|
1912
1894
|
if (entry === null) {
|
|
1913
1895
|
return null;
|
|
1914
1896
|
}
|
|
1915
|
-
return
|
|
1897
|
+
return de_AutoScalingGroupRecommendation(entry, context);
|
|
1916
1898
|
});
|
|
1917
1899
|
return retVal;
|
|
1918
1900
|
};
|
|
1919
|
-
const
|
|
1901
|
+
const de_ContainerConfiguration = (output, context) => {
|
|
1920
1902
|
return {
|
|
1921
1903
|
containerName: __expectString(output.containerName),
|
|
1922
1904
|
cpu: __expectInt32(output.cpu),
|
|
1923
1905
|
memorySizeConfiguration: output.memorySizeConfiguration != null
|
|
1924
|
-
?
|
|
1906
|
+
? de_MemorySizeConfiguration(output.memorySizeConfiguration, context)
|
|
1925
1907
|
: undefined,
|
|
1926
1908
|
};
|
|
1927
1909
|
};
|
|
1928
|
-
const
|
|
1910
|
+
const de_ContainerConfigurations = (output, context) => {
|
|
1929
1911
|
const retVal = (output || [])
|
|
1930
1912
|
.filter((e) => e != null)
|
|
1931
1913
|
.map((entry) => {
|
|
1932
1914
|
if (entry === null) {
|
|
1933
1915
|
return null;
|
|
1934
1916
|
}
|
|
1935
|
-
return
|
|
1917
|
+
return de_ContainerConfiguration(entry, context);
|
|
1936
1918
|
});
|
|
1937
1919
|
return retVal;
|
|
1938
1920
|
};
|
|
1939
|
-
const
|
|
1921
|
+
const de_ContainerRecommendation = (output, context) => {
|
|
1940
1922
|
return {
|
|
1941
1923
|
containerName: __expectString(output.containerName),
|
|
1942
1924
|
cpu: __expectInt32(output.cpu),
|
|
1943
1925
|
memorySizeConfiguration: output.memorySizeConfiguration != null
|
|
1944
|
-
?
|
|
1926
|
+
? de_MemorySizeConfiguration(output.memorySizeConfiguration, context)
|
|
1945
1927
|
: undefined,
|
|
1946
1928
|
};
|
|
1947
1929
|
};
|
|
1948
|
-
const
|
|
1930
|
+
const de_ContainerRecommendations = (output, context) => {
|
|
1949
1931
|
const retVal = (output || [])
|
|
1950
1932
|
.filter((e) => e != null)
|
|
1951
1933
|
.map((entry) => {
|
|
1952
1934
|
if (entry === null) {
|
|
1953
1935
|
return null;
|
|
1954
1936
|
}
|
|
1955
|
-
return
|
|
1937
|
+
return de_ContainerRecommendation(entry, context);
|
|
1956
1938
|
});
|
|
1957
1939
|
return retVal;
|
|
1958
1940
|
};
|
|
1959
|
-
const
|
|
1941
|
+
const de_CpuVendorArchitectures = (output, context) => {
|
|
1960
1942
|
const retVal = (output || [])
|
|
1961
1943
|
.filter((e) => e != null)
|
|
1962
1944
|
.map((entry) => {
|
|
@@ -1967,7 +1949,7 @@ const deserializeAws_json1_0CpuVendorArchitectures = (output, context) => {
|
|
|
1967
1949
|
});
|
|
1968
1950
|
return retVal;
|
|
1969
1951
|
};
|
|
1970
|
-
const
|
|
1952
|
+
const de_CurrentPerformanceRiskRatings = (output, context) => {
|
|
1971
1953
|
return {
|
|
1972
1954
|
high: __expectLong(output.high),
|
|
1973
1955
|
low: __expectLong(output.low),
|
|
@@ -1975,59 +1957,55 @@ const deserializeAws_json1_0CurrentPerformanceRiskRatings = (output, context) =>
|
|
|
1975
1957
|
veryLow: __expectLong(output.veryLow),
|
|
1976
1958
|
};
|
|
1977
1959
|
};
|
|
1978
|
-
const
|
|
1960
|
+
const de_DeleteRecommendationPreferencesResponse = (output, context) => {
|
|
1979
1961
|
return {};
|
|
1980
1962
|
};
|
|
1981
|
-
const
|
|
1963
|
+
const de_DescribeRecommendationExportJobsResponse = (output, context) => {
|
|
1982
1964
|
return {
|
|
1983
1965
|
nextToken: __expectString(output.nextToken),
|
|
1984
1966
|
recommendationExportJobs: output.recommendationExportJobs != null
|
|
1985
|
-
?
|
|
1967
|
+
? de_RecommendationExportJobs(output.recommendationExportJobs, context)
|
|
1986
1968
|
: undefined,
|
|
1987
1969
|
};
|
|
1988
1970
|
};
|
|
1989
|
-
const
|
|
1971
|
+
const de_EBSUtilizationMetric = (output, context) => {
|
|
1990
1972
|
return {
|
|
1991
1973
|
name: __expectString(output.name),
|
|
1992
1974
|
statistic: __expectString(output.statistic),
|
|
1993
1975
|
value: __limitedParseDouble(output.value),
|
|
1994
1976
|
};
|
|
1995
1977
|
};
|
|
1996
|
-
const
|
|
1978
|
+
const de_EBSUtilizationMetrics = (output, context) => {
|
|
1997
1979
|
const retVal = (output || [])
|
|
1998
1980
|
.filter((e) => e != null)
|
|
1999
1981
|
.map((entry) => {
|
|
2000
1982
|
if (entry === null) {
|
|
2001
1983
|
return null;
|
|
2002
1984
|
}
|
|
2003
|
-
return
|
|
1985
|
+
return de_EBSUtilizationMetric(entry, context);
|
|
2004
1986
|
});
|
|
2005
1987
|
return retVal;
|
|
2006
1988
|
};
|
|
2007
|
-
const
|
|
1989
|
+
const de_ECSServiceProjectedMetric = (output, context) => {
|
|
2008
1990
|
return {
|
|
2009
|
-
lowerBoundValues: output.lowerBoundValues != null
|
|
2010
|
-
? deserializeAws_json1_0MetricValues(output.lowerBoundValues, context)
|
|
2011
|
-
: undefined,
|
|
1991
|
+
lowerBoundValues: output.lowerBoundValues != null ? de_MetricValues(output.lowerBoundValues, context) : undefined,
|
|
2012
1992
|
name: __expectString(output.name),
|
|
2013
|
-
timestamps: output.timestamps != null ?
|
|
2014
|
-
upperBoundValues: output.upperBoundValues != null
|
|
2015
|
-
? deserializeAws_json1_0MetricValues(output.upperBoundValues, context)
|
|
2016
|
-
: undefined,
|
|
1993
|
+
timestamps: output.timestamps != null ? de_Timestamps(output.timestamps, context) : undefined,
|
|
1994
|
+
upperBoundValues: output.upperBoundValues != null ? de_MetricValues(output.upperBoundValues, context) : undefined,
|
|
2017
1995
|
};
|
|
2018
1996
|
};
|
|
2019
|
-
const
|
|
1997
|
+
const de_ECSServiceProjectedMetrics = (output, context) => {
|
|
2020
1998
|
const retVal = (output || [])
|
|
2021
1999
|
.filter((e) => e != null)
|
|
2022
2000
|
.map((entry) => {
|
|
2023
2001
|
if (entry === null) {
|
|
2024
2002
|
return null;
|
|
2025
2003
|
}
|
|
2026
|
-
return
|
|
2004
|
+
return de_ECSServiceProjectedMetric(entry, context);
|
|
2027
2005
|
});
|
|
2028
2006
|
return retVal;
|
|
2029
2007
|
};
|
|
2030
|
-
const
|
|
2008
|
+
const de_ECSServiceProjectedUtilizationMetric = (output, context) => {
|
|
2031
2009
|
return {
|
|
2032
2010
|
lowerBoundValue: __limitedParseDouble(output.lowerBoundValue),
|
|
2033
2011
|
name: __expectString(output.name),
|
|
@@ -2035,27 +2013,27 @@ const deserializeAws_json1_0ECSServiceProjectedUtilizationMetric = (output, cont
|
|
|
2035
2013
|
upperBoundValue: __limitedParseDouble(output.upperBoundValue),
|
|
2036
2014
|
};
|
|
2037
2015
|
};
|
|
2038
|
-
const
|
|
2016
|
+
const de_ECSServiceProjectedUtilizationMetrics = (output, context) => {
|
|
2039
2017
|
const retVal = (output || [])
|
|
2040
2018
|
.filter((e) => e != null)
|
|
2041
2019
|
.map((entry) => {
|
|
2042
2020
|
if (entry === null) {
|
|
2043
2021
|
return null;
|
|
2044
2022
|
}
|
|
2045
|
-
return
|
|
2023
|
+
return de_ECSServiceProjectedUtilizationMetric(entry, context);
|
|
2046
2024
|
});
|
|
2047
2025
|
return retVal;
|
|
2048
2026
|
};
|
|
2049
|
-
const
|
|
2027
|
+
const de_ECSServiceRecommendation = (output, context) => {
|
|
2050
2028
|
return {
|
|
2051
2029
|
accountId: __expectString(output.accountId),
|
|
2052
2030
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2053
2031
|
currentServiceConfiguration: output.currentServiceConfiguration != null
|
|
2054
|
-
?
|
|
2032
|
+
? de_ServiceConfiguration(output.currentServiceConfiguration, context)
|
|
2055
2033
|
: undefined,
|
|
2056
2034
|
finding: __expectString(output.finding),
|
|
2057
2035
|
findingReasonCodes: output.findingReasonCodes != null
|
|
2058
|
-
?
|
|
2036
|
+
? de_ECSServiceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2059
2037
|
: undefined,
|
|
2060
2038
|
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2061
2039
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
@@ -2064,14 +2042,14 @@ const deserializeAws_json1_0ECSServiceRecommendation = (output, context) => {
|
|
|
2064
2042
|
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
2065
2043
|
serviceArn: __expectString(output.serviceArn),
|
|
2066
2044
|
serviceRecommendationOptions: output.serviceRecommendationOptions != null
|
|
2067
|
-
?
|
|
2045
|
+
? de_ECSServiceRecommendationOptions(output.serviceRecommendationOptions, context)
|
|
2068
2046
|
: undefined,
|
|
2069
2047
|
utilizationMetrics: output.utilizationMetrics != null
|
|
2070
|
-
?
|
|
2048
|
+
? de_ECSServiceUtilizationMetrics(output.utilizationMetrics, context)
|
|
2071
2049
|
: undefined,
|
|
2072
2050
|
};
|
|
2073
2051
|
};
|
|
2074
|
-
const
|
|
2052
|
+
const de_ECSServiceRecommendationFindingReasonCodes = (output, context) => {
|
|
2075
2053
|
const retVal = (output || [])
|
|
2076
2054
|
.filter((e) => e != null)
|
|
2077
2055
|
.map((entry) => {
|
|
@@ -2082,206 +2060,202 @@ const deserializeAws_json1_0ECSServiceRecommendationFindingReasonCodes = (output
|
|
|
2082
2060
|
});
|
|
2083
2061
|
return retVal;
|
|
2084
2062
|
};
|
|
2085
|
-
const
|
|
2063
|
+
const de_ECSServiceRecommendationOption = (output, context) => {
|
|
2086
2064
|
return {
|
|
2087
2065
|
containerRecommendations: output.containerRecommendations != null
|
|
2088
|
-
?
|
|
2066
|
+
? de_ContainerRecommendations(output.containerRecommendations, context)
|
|
2089
2067
|
: undefined,
|
|
2090
2068
|
cpu: __expectInt32(output.cpu),
|
|
2091
2069
|
memory: __expectInt32(output.memory),
|
|
2092
2070
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2093
|
-
?
|
|
2094
|
-
: undefined,
|
|
2095
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2096
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2071
|
+
? de_ECSServiceProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2097
2072
|
: undefined,
|
|
2073
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2098
2074
|
};
|
|
2099
2075
|
};
|
|
2100
|
-
const
|
|
2076
|
+
const de_ECSServiceRecommendationOptions = (output, context) => {
|
|
2101
2077
|
const retVal = (output || [])
|
|
2102
2078
|
.filter((e) => e != null)
|
|
2103
2079
|
.map((entry) => {
|
|
2104
2080
|
if (entry === null) {
|
|
2105
2081
|
return null;
|
|
2106
2082
|
}
|
|
2107
|
-
return
|
|
2083
|
+
return de_ECSServiceRecommendationOption(entry, context);
|
|
2108
2084
|
});
|
|
2109
2085
|
return retVal;
|
|
2110
2086
|
};
|
|
2111
|
-
const
|
|
2087
|
+
const de_ECSServiceRecommendations = (output, context) => {
|
|
2112
2088
|
const retVal = (output || [])
|
|
2113
2089
|
.filter((e) => e != null)
|
|
2114
2090
|
.map((entry) => {
|
|
2115
2091
|
if (entry === null) {
|
|
2116
2092
|
return null;
|
|
2117
2093
|
}
|
|
2118
|
-
return
|
|
2094
|
+
return de_ECSServiceRecommendation(entry, context);
|
|
2119
2095
|
});
|
|
2120
2096
|
return retVal;
|
|
2121
2097
|
};
|
|
2122
|
-
const
|
|
2098
|
+
const de_ECSServiceRecommendedOptionProjectedMetric = (output, context) => {
|
|
2123
2099
|
return {
|
|
2124
|
-
projectedMetrics: output.projectedMetrics != null
|
|
2125
|
-
? deserializeAws_json1_0ECSServiceProjectedMetrics(output.projectedMetrics, context)
|
|
2126
|
-
: undefined,
|
|
2100
|
+
projectedMetrics: output.projectedMetrics != null ? de_ECSServiceProjectedMetrics(output.projectedMetrics, context) : undefined,
|
|
2127
2101
|
recommendedCpuUnits: __expectInt32(output.recommendedCpuUnits),
|
|
2128
2102
|
recommendedMemorySize: __expectInt32(output.recommendedMemorySize),
|
|
2129
2103
|
};
|
|
2130
2104
|
};
|
|
2131
|
-
const
|
|
2105
|
+
const de_ECSServiceRecommendedOptionProjectedMetrics = (output, context) => {
|
|
2132
2106
|
const retVal = (output || [])
|
|
2133
2107
|
.filter((e) => e != null)
|
|
2134
2108
|
.map((entry) => {
|
|
2135
2109
|
if (entry === null) {
|
|
2136
2110
|
return null;
|
|
2137
2111
|
}
|
|
2138
|
-
return
|
|
2112
|
+
return de_ECSServiceRecommendedOptionProjectedMetric(entry, context);
|
|
2139
2113
|
});
|
|
2140
2114
|
return retVal;
|
|
2141
2115
|
};
|
|
2142
|
-
const
|
|
2116
|
+
const de_ECSServiceUtilizationMetric = (output, context) => {
|
|
2143
2117
|
return {
|
|
2144
2118
|
name: __expectString(output.name),
|
|
2145
2119
|
statistic: __expectString(output.statistic),
|
|
2146
2120
|
value: __limitedParseDouble(output.value),
|
|
2147
2121
|
};
|
|
2148
2122
|
};
|
|
2149
|
-
const
|
|
2123
|
+
const de_ECSServiceUtilizationMetrics = (output, context) => {
|
|
2150
2124
|
const retVal = (output || [])
|
|
2151
2125
|
.filter((e) => e != null)
|
|
2152
2126
|
.map((entry) => {
|
|
2153
2127
|
if (entry === null) {
|
|
2154
2128
|
return null;
|
|
2155
2129
|
}
|
|
2156
|
-
return
|
|
2130
|
+
return de_ECSServiceUtilizationMetric(entry, context);
|
|
2157
2131
|
});
|
|
2158
2132
|
return retVal;
|
|
2159
2133
|
};
|
|
2160
|
-
const
|
|
2134
|
+
const de_EffectiveRecommendationPreferences = (output, context) => {
|
|
2161
2135
|
return {
|
|
2162
2136
|
cpuVendorArchitectures: output.cpuVendorArchitectures != null
|
|
2163
|
-
?
|
|
2137
|
+
? de_CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
2164
2138
|
: undefined,
|
|
2165
2139
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2166
2140
|
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2167
|
-
?
|
|
2141
|
+
? de_ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2168
2142
|
: undefined,
|
|
2169
2143
|
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
2170
2144
|
};
|
|
2171
2145
|
};
|
|
2172
|
-
const
|
|
2146
|
+
const de_EstimatedMonthlySavings = (output, context) => {
|
|
2173
2147
|
return {
|
|
2174
2148
|
currency: __expectString(output.currency),
|
|
2175
2149
|
value: __limitedParseDouble(output.value),
|
|
2176
2150
|
};
|
|
2177
2151
|
};
|
|
2178
|
-
const
|
|
2152
|
+
const de_ExportAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
2179
2153
|
return {
|
|
2180
2154
|
jobId: __expectString(output.jobId),
|
|
2181
|
-
s3Destination: output.s3Destination != null ?
|
|
2155
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2182
2156
|
};
|
|
2183
2157
|
};
|
|
2184
|
-
const
|
|
2158
|
+
const de_ExportDestination = (output, context) => {
|
|
2185
2159
|
return {
|
|
2186
|
-
s3: output.s3 != null ?
|
|
2160
|
+
s3: output.s3 != null ? de_S3Destination(output.s3, context) : undefined,
|
|
2187
2161
|
};
|
|
2188
2162
|
};
|
|
2189
|
-
const
|
|
2163
|
+
const de_ExportEBSVolumeRecommendationsResponse = (output, context) => {
|
|
2190
2164
|
return {
|
|
2191
2165
|
jobId: __expectString(output.jobId),
|
|
2192
|
-
s3Destination: output.s3Destination != null ?
|
|
2166
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2193
2167
|
};
|
|
2194
2168
|
};
|
|
2195
|
-
const
|
|
2169
|
+
const de_ExportEC2InstanceRecommendationsResponse = (output, context) => {
|
|
2196
2170
|
return {
|
|
2197
2171
|
jobId: __expectString(output.jobId),
|
|
2198
|
-
s3Destination: output.s3Destination != null ?
|
|
2172
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2199
2173
|
};
|
|
2200
2174
|
};
|
|
2201
|
-
const
|
|
2175
|
+
const de_ExportECSServiceRecommendationsResponse = (output, context) => {
|
|
2202
2176
|
return {
|
|
2203
2177
|
jobId: __expectString(output.jobId),
|
|
2204
|
-
s3Destination: output.s3Destination != null ?
|
|
2178
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2205
2179
|
};
|
|
2206
2180
|
};
|
|
2207
|
-
const
|
|
2181
|
+
const de_ExportLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
2208
2182
|
return {
|
|
2209
2183
|
jobId: __expectString(output.jobId),
|
|
2210
|
-
s3Destination: output.s3Destination != null ?
|
|
2184
|
+
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2211
2185
|
};
|
|
2212
2186
|
};
|
|
2213
|
-
const
|
|
2187
|
+
const de_ExternalMetricsPreference = (output, context) => {
|
|
2214
2188
|
return {
|
|
2215
2189
|
source: __expectString(output.source),
|
|
2216
2190
|
};
|
|
2217
2191
|
};
|
|
2218
|
-
const
|
|
2192
|
+
const de_GetAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
2219
2193
|
return {
|
|
2220
2194
|
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations != null
|
|
2221
|
-
?
|
|
2195
|
+
? de_AutoScalingGroupRecommendations(output.autoScalingGroupRecommendations, context)
|
|
2222
2196
|
: undefined,
|
|
2223
|
-
errors: output.errors != null ?
|
|
2197
|
+
errors: output.errors != null ? de_GetRecommendationErrors(output.errors, context) : undefined,
|
|
2224
2198
|
nextToken: __expectString(output.nextToken),
|
|
2225
2199
|
};
|
|
2226
2200
|
};
|
|
2227
|
-
const
|
|
2201
|
+
const de_GetEBSVolumeRecommendationsResponse = (output, context) => {
|
|
2228
2202
|
return {
|
|
2229
|
-
errors: output.errors != null ?
|
|
2203
|
+
errors: output.errors != null ? de_GetRecommendationErrors(output.errors, context) : undefined,
|
|
2230
2204
|
nextToken: __expectString(output.nextToken),
|
|
2231
2205
|
volumeRecommendations: output.volumeRecommendations != null
|
|
2232
|
-
?
|
|
2206
|
+
? de_VolumeRecommendations(output.volumeRecommendations, context)
|
|
2233
2207
|
: undefined,
|
|
2234
2208
|
};
|
|
2235
2209
|
};
|
|
2236
|
-
const
|
|
2210
|
+
const de_GetEC2InstanceRecommendationsResponse = (output, context) => {
|
|
2237
2211
|
return {
|
|
2238
|
-
errors: output.errors != null ?
|
|
2212
|
+
errors: output.errors != null ? de_GetRecommendationErrors(output.errors, context) : undefined,
|
|
2239
2213
|
instanceRecommendations: output.instanceRecommendations != null
|
|
2240
|
-
?
|
|
2214
|
+
? de_InstanceRecommendations(output.instanceRecommendations, context)
|
|
2241
2215
|
: undefined,
|
|
2242
2216
|
nextToken: __expectString(output.nextToken),
|
|
2243
2217
|
};
|
|
2244
2218
|
};
|
|
2245
|
-
const
|
|
2219
|
+
const de_GetEC2RecommendationProjectedMetricsResponse = (output, context) => {
|
|
2246
2220
|
return {
|
|
2247
2221
|
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics != null
|
|
2248
|
-
?
|
|
2222
|
+
? de_RecommendedOptionProjectedMetrics(output.recommendedOptionProjectedMetrics, context)
|
|
2249
2223
|
: undefined,
|
|
2250
2224
|
};
|
|
2251
2225
|
};
|
|
2252
|
-
const
|
|
2226
|
+
const de_GetECSServiceRecommendationProjectedMetricsResponse = (output, context) => {
|
|
2253
2227
|
return {
|
|
2254
2228
|
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics != null
|
|
2255
|
-
?
|
|
2229
|
+
? de_ECSServiceRecommendedOptionProjectedMetrics(output.recommendedOptionProjectedMetrics, context)
|
|
2256
2230
|
: undefined,
|
|
2257
2231
|
};
|
|
2258
2232
|
};
|
|
2259
|
-
const
|
|
2233
|
+
const de_GetECSServiceRecommendationsResponse = (output, context) => {
|
|
2260
2234
|
return {
|
|
2261
2235
|
ecsServiceRecommendations: output.ecsServiceRecommendations != null
|
|
2262
|
-
?
|
|
2236
|
+
? de_ECSServiceRecommendations(output.ecsServiceRecommendations, context)
|
|
2263
2237
|
: undefined,
|
|
2264
|
-
errors: output.errors != null ?
|
|
2238
|
+
errors: output.errors != null ? de_GetRecommendationErrors(output.errors, context) : undefined,
|
|
2265
2239
|
nextToken: __expectString(output.nextToken),
|
|
2266
2240
|
};
|
|
2267
2241
|
};
|
|
2268
|
-
const
|
|
2242
|
+
const de_GetEffectiveRecommendationPreferencesResponse = (output, context) => {
|
|
2269
2243
|
return {
|
|
2270
2244
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2271
2245
|
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2272
|
-
?
|
|
2246
|
+
? de_ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2273
2247
|
: undefined,
|
|
2274
2248
|
};
|
|
2275
2249
|
};
|
|
2276
|
-
const
|
|
2250
|
+
const de_GetEnrollmentStatusesForOrganizationResponse = (output, context) => {
|
|
2277
2251
|
return {
|
|
2278
2252
|
accountEnrollmentStatuses: output.accountEnrollmentStatuses != null
|
|
2279
|
-
?
|
|
2253
|
+
? de_AccountEnrollmentStatuses(output.accountEnrollmentStatuses, context)
|
|
2280
2254
|
: undefined,
|
|
2281
2255
|
nextToken: __expectString(output.nextToken),
|
|
2282
2256
|
};
|
|
2283
2257
|
};
|
|
2284
|
-
const
|
|
2258
|
+
const de_GetEnrollmentStatusResponse = (output, context) => {
|
|
2285
2259
|
return {
|
|
2286
2260
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2287
2261
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTimestamp)))
|
|
@@ -2292,49 +2266,49 @@ const deserializeAws_json1_0GetEnrollmentStatusResponse = (output, context) => {
|
|
|
2292
2266
|
statusReason: __expectString(output.statusReason),
|
|
2293
2267
|
};
|
|
2294
2268
|
};
|
|
2295
|
-
const
|
|
2269
|
+
const de_GetLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
2296
2270
|
return {
|
|
2297
2271
|
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations != null
|
|
2298
|
-
?
|
|
2272
|
+
? de_LambdaFunctionRecommendations(output.lambdaFunctionRecommendations, context)
|
|
2299
2273
|
: undefined,
|
|
2300
2274
|
nextToken: __expectString(output.nextToken),
|
|
2301
2275
|
};
|
|
2302
2276
|
};
|
|
2303
|
-
const
|
|
2277
|
+
const de_GetRecommendationError = (output, context) => {
|
|
2304
2278
|
return {
|
|
2305
2279
|
code: __expectString(output.code),
|
|
2306
2280
|
identifier: __expectString(output.identifier),
|
|
2307
2281
|
message: __expectString(output.message),
|
|
2308
2282
|
};
|
|
2309
2283
|
};
|
|
2310
|
-
const
|
|
2284
|
+
const de_GetRecommendationErrors = (output, context) => {
|
|
2311
2285
|
const retVal = (output || [])
|
|
2312
2286
|
.filter((e) => e != null)
|
|
2313
2287
|
.map((entry) => {
|
|
2314
2288
|
if (entry === null) {
|
|
2315
2289
|
return null;
|
|
2316
2290
|
}
|
|
2317
|
-
return
|
|
2291
|
+
return de_GetRecommendationError(entry, context);
|
|
2318
2292
|
});
|
|
2319
2293
|
return retVal;
|
|
2320
2294
|
};
|
|
2321
|
-
const
|
|
2295
|
+
const de_GetRecommendationPreferencesResponse = (output, context) => {
|
|
2322
2296
|
return {
|
|
2323
2297
|
nextToken: __expectString(output.nextToken),
|
|
2324
2298
|
recommendationPreferencesDetails: output.recommendationPreferencesDetails != null
|
|
2325
|
-
?
|
|
2299
|
+
? de_RecommendationPreferencesDetails(output.recommendationPreferencesDetails, context)
|
|
2326
2300
|
: undefined,
|
|
2327
2301
|
};
|
|
2328
2302
|
};
|
|
2329
|
-
const
|
|
2303
|
+
const de_GetRecommendationSummariesResponse = (output, context) => {
|
|
2330
2304
|
return {
|
|
2331
2305
|
nextToken: __expectString(output.nextToken),
|
|
2332
2306
|
recommendationSummaries: output.recommendationSummaries != null
|
|
2333
|
-
?
|
|
2307
|
+
? de_RecommendationSummaries(output.recommendationSummaries, context)
|
|
2334
2308
|
: undefined,
|
|
2335
2309
|
};
|
|
2336
2310
|
};
|
|
2337
|
-
const
|
|
2311
|
+
const de_InferredWorkloadTypes = (output, context) => {
|
|
2338
2312
|
const retVal = (output || [])
|
|
2339
2313
|
.filter((e) => e != null)
|
|
2340
2314
|
.map((entry) => {
|
|
@@ -2345,20 +2319,20 @@ const deserializeAws_json1_0InferredWorkloadTypes = (output, context) => {
|
|
|
2345
2319
|
});
|
|
2346
2320
|
return retVal;
|
|
2347
2321
|
};
|
|
2348
|
-
const
|
|
2322
|
+
const de_InstanceRecommendation = (output, context) => {
|
|
2349
2323
|
return {
|
|
2350
2324
|
accountId: __expectString(output.accountId),
|
|
2351
2325
|
currentInstanceType: __expectString(output.currentInstanceType),
|
|
2352
2326
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2353
2327
|
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
2354
|
-
?
|
|
2328
|
+
? de_EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2355
2329
|
: undefined,
|
|
2356
2330
|
finding: __expectString(output.finding),
|
|
2357
2331
|
findingReasonCodes: output.findingReasonCodes != null
|
|
2358
|
-
?
|
|
2332
|
+
? de_InstanceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2359
2333
|
: undefined,
|
|
2360
2334
|
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
2361
|
-
?
|
|
2335
|
+
? de_InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2362
2336
|
: undefined,
|
|
2363
2337
|
instanceArn: __expectString(output.instanceArn),
|
|
2364
2338
|
instanceName: __expectString(output.instanceName),
|
|
@@ -2368,17 +2342,15 @@ const deserializeAws_json1_0InstanceRecommendation = (output, context) => {
|
|
|
2368
2342
|
: undefined,
|
|
2369
2343
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2370
2344
|
recommendationOptions: output.recommendationOptions != null
|
|
2371
|
-
?
|
|
2345
|
+
? de_RecommendationOptions(output.recommendationOptions, context)
|
|
2372
2346
|
: undefined,
|
|
2373
2347
|
recommendationSources: output.recommendationSources != null
|
|
2374
|
-
?
|
|
2375
|
-
: undefined,
|
|
2376
|
-
utilizationMetrics: output.utilizationMetrics != null
|
|
2377
|
-
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
2348
|
+
? de_RecommendationSources(output.recommendationSources, context)
|
|
2378
2349
|
: undefined,
|
|
2350
|
+
utilizationMetrics: output.utilizationMetrics != null ? de_UtilizationMetrics(output.utilizationMetrics, context) : undefined,
|
|
2379
2351
|
};
|
|
2380
2352
|
};
|
|
2381
|
-
const
|
|
2353
|
+
const de_InstanceRecommendationFindingReasonCodes = (output, context) => {
|
|
2382
2354
|
const retVal = (output || [])
|
|
2383
2355
|
.filter((e) => e != null)
|
|
2384
2356
|
.map((entry) => {
|
|
@@ -2389,93 +2361,87 @@ const deserializeAws_json1_0InstanceRecommendationFindingReasonCodes = (output,
|
|
|
2389
2361
|
});
|
|
2390
2362
|
return retVal;
|
|
2391
2363
|
};
|
|
2392
|
-
const
|
|
2364
|
+
const de_InstanceRecommendationOption = (output, context) => {
|
|
2393
2365
|
return {
|
|
2394
2366
|
instanceType: __expectString(output.instanceType),
|
|
2395
2367
|
migrationEffort: __expectString(output.migrationEffort),
|
|
2396
2368
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2397
|
-
platformDifferences: output.platformDifferences != null
|
|
2398
|
-
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
2399
|
-
: undefined,
|
|
2369
|
+
platformDifferences: output.platformDifferences != null ? de_PlatformDifferences(output.platformDifferences, context) : undefined,
|
|
2400
2370
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2401
|
-
?
|
|
2371
|
+
? de_ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2402
2372
|
: undefined,
|
|
2403
2373
|
rank: __expectInt32(output.rank),
|
|
2404
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2405
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2406
|
-
: undefined,
|
|
2374
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2407
2375
|
};
|
|
2408
2376
|
};
|
|
2409
|
-
const
|
|
2377
|
+
const de_InstanceRecommendations = (output, context) => {
|
|
2410
2378
|
const retVal = (output || [])
|
|
2411
2379
|
.filter((e) => e != null)
|
|
2412
2380
|
.map((entry) => {
|
|
2413
2381
|
if (entry === null) {
|
|
2414
2382
|
return null;
|
|
2415
2383
|
}
|
|
2416
|
-
return
|
|
2384
|
+
return de_InstanceRecommendation(entry, context);
|
|
2417
2385
|
});
|
|
2418
2386
|
return retVal;
|
|
2419
2387
|
};
|
|
2420
|
-
const
|
|
2388
|
+
const de_InternalServerException = (output, context) => {
|
|
2421
2389
|
return {
|
|
2422
2390
|
message: __expectString(output.message),
|
|
2423
2391
|
};
|
|
2424
2392
|
};
|
|
2425
|
-
const
|
|
2393
|
+
const de_InvalidParameterValueException = (output, context) => {
|
|
2426
2394
|
return {
|
|
2427
2395
|
message: __expectString(output.message),
|
|
2428
2396
|
};
|
|
2429
2397
|
};
|
|
2430
|
-
const
|
|
2398
|
+
const de_LambdaFunctionMemoryProjectedMetric = (output, context) => {
|
|
2431
2399
|
return {
|
|
2432
2400
|
name: __expectString(output.name),
|
|
2433
2401
|
statistic: __expectString(output.statistic),
|
|
2434
2402
|
value: __limitedParseDouble(output.value),
|
|
2435
2403
|
};
|
|
2436
2404
|
};
|
|
2437
|
-
const
|
|
2405
|
+
const de_LambdaFunctionMemoryProjectedMetrics = (output, context) => {
|
|
2438
2406
|
const retVal = (output || [])
|
|
2439
2407
|
.filter((e) => e != null)
|
|
2440
2408
|
.map((entry) => {
|
|
2441
2409
|
if (entry === null) {
|
|
2442
2410
|
return null;
|
|
2443
2411
|
}
|
|
2444
|
-
return
|
|
2412
|
+
return de_LambdaFunctionMemoryProjectedMetric(entry, context);
|
|
2445
2413
|
});
|
|
2446
2414
|
return retVal;
|
|
2447
2415
|
};
|
|
2448
|
-
const
|
|
2416
|
+
const de_LambdaFunctionMemoryRecommendationOption = (output, context) => {
|
|
2449
2417
|
return {
|
|
2450
2418
|
memorySize: __expectInt32(output.memorySize),
|
|
2451
2419
|
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2452
|
-
?
|
|
2420
|
+
? de_LambdaFunctionMemoryProjectedMetrics(output.projectedUtilizationMetrics, context)
|
|
2453
2421
|
: undefined,
|
|
2454
2422
|
rank: __expectInt32(output.rank),
|
|
2455
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2456
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2457
|
-
: undefined,
|
|
2423
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2458
2424
|
};
|
|
2459
2425
|
};
|
|
2460
|
-
const
|
|
2426
|
+
const de_LambdaFunctionMemoryRecommendationOptions = (output, context) => {
|
|
2461
2427
|
const retVal = (output || [])
|
|
2462
2428
|
.filter((e) => e != null)
|
|
2463
2429
|
.map((entry) => {
|
|
2464
2430
|
if (entry === null) {
|
|
2465
2431
|
return null;
|
|
2466
2432
|
}
|
|
2467
|
-
return
|
|
2433
|
+
return de_LambdaFunctionMemoryRecommendationOption(entry, context);
|
|
2468
2434
|
});
|
|
2469
2435
|
return retVal;
|
|
2470
2436
|
};
|
|
2471
|
-
const
|
|
2437
|
+
const de_LambdaFunctionRecommendation = (output, context) => {
|
|
2472
2438
|
return {
|
|
2473
2439
|
accountId: __expectString(output.accountId),
|
|
2474
2440
|
currentMemorySize: __expectInt32(output.currentMemorySize),
|
|
2475
2441
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2476
2442
|
finding: __expectString(output.finding),
|
|
2477
2443
|
findingReasonCodes: output.findingReasonCodes != null
|
|
2478
|
-
?
|
|
2444
|
+
? de_LambdaFunctionRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2479
2445
|
: undefined,
|
|
2480
2446
|
functionArn: __expectString(output.functionArn),
|
|
2481
2447
|
functionVersion: __expectString(output.functionVersion),
|
|
@@ -2484,15 +2450,15 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = (output, context) =>
|
|
|
2484
2450
|
: undefined,
|
|
2485
2451
|
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
2486
2452
|
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions != null
|
|
2487
|
-
?
|
|
2453
|
+
? de_LambdaFunctionMemoryRecommendationOptions(output.memorySizeRecommendationOptions, context)
|
|
2488
2454
|
: undefined,
|
|
2489
2455
|
numberOfInvocations: __expectLong(output.numberOfInvocations),
|
|
2490
2456
|
utilizationMetrics: output.utilizationMetrics != null
|
|
2491
|
-
?
|
|
2457
|
+
? de_LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context)
|
|
2492
2458
|
: undefined,
|
|
2493
2459
|
};
|
|
2494
2460
|
};
|
|
2495
|
-
const
|
|
2461
|
+
const de_LambdaFunctionRecommendationFindingReasonCodes = (output, context) => {
|
|
2496
2462
|
const retVal = (output || [])
|
|
2497
2463
|
.filter((e) => e != null)
|
|
2498
2464
|
.map((entry) => {
|
|
@@ -2503,47 +2469,47 @@ const deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes = (ou
|
|
|
2503
2469
|
});
|
|
2504
2470
|
return retVal;
|
|
2505
2471
|
};
|
|
2506
|
-
const
|
|
2472
|
+
const de_LambdaFunctionRecommendations = (output, context) => {
|
|
2507
2473
|
const retVal = (output || [])
|
|
2508
2474
|
.filter((e) => e != null)
|
|
2509
2475
|
.map((entry) => {
|
|
2510
2476
|
if (entry === null) {
|
|
2511
2477
|
return null;
|
|
2512
2478
|
}
|
|
2513
|
-
return
|
|
2479
|
+
return de_LambdaFunctionRecommendation(entry, context);
|
|
2514
2480
|
});
|
|
2515
2481
|
return retVal;
|
|
2516
2482
|
};
|
|
2517
|
-
const
|
|
2483
|
+
const de_LambdaFunctionUtilizationMetric = (output, context) => {
|
|
2518
2484
|
return {
|
|
2519
2485
|
name: __expectString(output.name),
|
|
2520
2486
|
statistic: __expectString(output.statistic),
|
|
2521
2487
|
value: __limitedParseDouble(output.value),
|
|
2522
2488
|
};
|
|
2523
2489
|
};
|
|
2524
|
-
const
|
|
2490
|
+
const de_LambdaFunctionUtilizationMetrics = (output, context) => {
|
|
2525
2491
|
const retVal = (output || [])
|
|
2526
2492
|
.filter((e) => e != null)
|
|
2527
2493
|
.map((entry) => {
|
|
2528
2494
|
if (entry === null) {
|
|
2529
2495
|
return null;
|
|
2530
2496
|
}
|
|
2531
|
-
return
|
|
2497
|
+
return de_LambdaFunctionUtilizationMetric(entry, context);
|
|
2532
2498
|
});
|
|
2533
2499
|
return retVal;
|
|
2534
2500
|
};
|
|
2535
|
-
const
|
|
2501
|
+
const de_LimitExceededException = (output, context) => {
|
|
2536
2502
|
return {
|
|
2537
2503
|
message: __expectString(output.message),
|
|
2538
2504
|
};
|
|
2539
2505
|
};
|
|
2540
|
-
const
|
|
2506
|
+
const de_MemorySizeConfiguration = (output, context) => {
|
|
2541
2507
|
return {
|
|
2542
2508
|
memory: __expectInt32(output.memory),
|
|
2543
2509
|
memoryReservation: __expectInt32(output.memoryReservation),
|
|
2544
2510
|
};
|
|
2545
2511
|
};
|
|
2546
|
-
const
|
|
2512
|
+
const de_MetricValues = (output, context) => {
|
|
2547
2513
|
const retVal = (output || [])
|
|
2548
2514
|
.filter((e) => e != null)
|
|
2549
2515
|
.map((entry) => {
|
|
@@ -2554,17 +2520,17 @@ const deserializeAws_json1_0MetricValues = (output, context) => {
|
|
|
2554
2520
|
});
|
|
2555
2521
|
return retVal;
|
|
2556
2522
|
};
|
|
2557
|
-
const
|
|
2523
|
+
const de_MissingAuthenticationToken = (output, context) => {
|
|
2558
2524
|
return {
|
|
2559
2525
|
message: __expectString(output.message),
|
|
2560
2526
|
};
|
|
2561
2527
|
};
|
|
2562
|
-
const
|
|
2528
|
+
const de_OptInRequiredException = (output, context) => {
|
|
2563
2529
|
return {
|
|
2564
2530
|
message: __expectString(output.message),
|
|
2565
2531
|
};
|
|
2566
2532
|
};
|
|
2567
|
-
const
|
|
2533
|
+
const de_PlatformDifferences = (output, context) => {
|
|
2568
2534
|
const retVal = (output || [])
|
|
2569
2535
|
.filter((e) => e != null)
|
|
2570
2536
|
.map((entry) => {
|
|
@@ -2575,61 +2541,61 @@ const deserializeAws_json1_0PlatformDifferences = (output, context) => {
|
|
|
2575
2541
|
});
|
|
2576
2542
|
return retVal;
|
|
2577
2543
|
};
|
|
2578
|
-
const
|
|
2544
|
+
const de_ProjectedMetric = (output, context) => {
|
|
2579
2545
|
return {
|
|
2580
2546
|
name: __expectString(output.name),
|
|
2581
|
-
timestamps: output.timestamps != null ?
|
|
2582
|
-
values: output.values != null ?
|
|
2547
|
+
timestamps: output.timestamps != null ? de_Timestamps(output.timestamps, context) : undefined,
|
|
2548
|
+
values: output.values != null ? de_MetricValues(output.values, context) : undefined,
|
|
2583
2549
|
};
|
|
2584
2550
|
};
|
|
2585
|
-
const
|
|
2551
|
+
const de_ProjectedMetrics = (output, context) => {
|
|
2586
2552
|
const retVal = (output || [])
|
|
2587
2553
|
.filter((e) => e != null)
|
|
2588
2554
|
.map((entry) => {
|
|
2589
2555
|
if (entry === null) {
|
|
2590
2556
|
return null;
|
|
2591
2557
|
}
|
|
2592
|
-
return
|
|
2558
|
+
return de_ProjectedMetric(entry, context);
|
|
2593
2559
|
});
|
|
2594
2560
|
return retVal;
|
|
2595
2561
|
};
|
|
2596
|
-
const
|
|
2562
|
+
const de_ProjectedUtilizationMetrics = (output, context) => {
|
|
2597
2563
|
const retVal = (output || [])
|
|
2598
2564
|
.filter((e) => e != null)
|
|
2599
2565
|
.map((entry) => {
|
|
2600
2566
|
if (entry === null) {
|
|
2601
2567
|
return null;
|
|
2602
2568
|
}
|
|
2603
|
-
return
|
|
2569
|
+
return de_UtilizationMetric(entry, context);
|
|
2604
2570
|
});
|
|
2605
2571
|
return retVal;
|
|
2606
2572
|
};
|
|
2607
|
-
const
|
|
2573
|
+
const de_PutRecommendationPreferencesResponse = (output, context) => {
|
|
2608
2574
|
return {};
|
|
2609
2575
|
};
|
|
2610
|
-
const
|
|
2576
|
+
const de_ReasonCodeSummaries = (output, context) => {
|
|
2611
2577
|
const retVal = (output || [])
|
|
2612
2578
|
.filter((e) => e != null)
|
|
2613
2579
|
.map((entry) => {
|
|
2614
2580
|
if (entry === null) {
|
|
2615
2581
|
return null;
|
|
2616
2582
|
}
|
|
2617
|
-
return
|
|
2583
|
+
return de_ReasonCodeSummary(entry, context);
|
|
2618
2584
|
});
|
|
2619
2585
|
return retVal;
|
|
2620
2586
|
};
|
|
2621
|
-
const
|
|
2587
|
+
const de_ReasonCodeSummary = (output, context) => {
|
|
2622
2588
|
return {
|
|
2623
2589
|
name: __expectString(output.name),
|
|
2624
2590
|
value: __limitedParseDouble(output.value),
|
|
2625
2591
|
};
|
|
2626
2592
|
};
|
|
2627
|
-
const
|
|
2593
|
+
const de_RecommendationExportJob = (output, context) => {
|
|
2628
2594
|
return {
|
|
2629
2595
|
creationTimestamp: output.creationTimestamp != null
|
|
2630
2596
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTimestamp)))
|
|
2631
2597
|
: undefined,
|
|
2632
|
-
destination: output.destination != null ?
|
|
2598
|
+
destination: output.destination != null ? de_ExportDestination(output.destination, context) : undefined,
|
|
2633
2599
|
failureReason: __expectString(output.failureReason),
|
|
2634
2600
|
jobId: __expectString(output.jobId),
|
|
2635
2601
|
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
@@ -2639,179 +2605,173 @@ const deserializeAws_json1_0RecommendationExportJob = (output, context) => {
|
|
|
2639
2605
|
status: __expectString(output.status),
|
|
2640
2606
|
};
|
|
2641
2607
|
};
|
|
2642
|
-
const
|
|
2608
|
+
const de_RecommendationExportJobs = (output, context) => {
|
|
2643
2609
|
const retVal = (output || [])
|
|
2644
2610
|
.filter((e) => e != null)
|
|
2645
2611
|
.map((entry) => {
|
|
2646
2612
|
if (entry === null) {
|
|
2647
2613
|
return null;
|
|
2648
2614
|
}
|
|
2649
|
-
return
|
|
2615
|
+
return de_RecommendationExportJob(entry, context);
|
|
2650
2616
|
});
|
|
2651
2617
|
return retVal;
|
|
2652
2618
|
};
|
|
2653
|
-
const
|
|
2619
|
+
const de_RecommendationOptions = (output, context) => {
|
|
2654
2620
|
const retVal = (output || [])
|
|
2655
2621
|
.filter((e) => e != null)
|
|
2656
2622
|
.map((entry) => {
|
|
2657
2623
|
if (entry === null) {
|
|
2658
2624
|
return null;
|
|
2659
2625
|
}
|
|
2660
|
-
return
|
|
2626
|
+
return de_InstanceRecommendationOption(entry, context);
|
|
2661
2627
|
});
|
|
2662
2628
|
return retVal;
|
|
2663
2629
|
};
|
|
2664
|
-
const
|
|
2630
|
+
const de_RecommendationPreferencesDetail = (output, context) => {
|
|
2665
2631
|
return {
|
|
2666
2632
|
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2667
2633
|
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2668
|
-
?
|
|
2634
|
+
? de_ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2669
2635
|
: undefined,
|
|
2670
2636
|
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
2671
2637
|
resourceType: __expectString(output.resourceType),
|
|
2672
|
-
scope: output.scope != null ?
|
|
2638
|
+
scope: output.scope != null ? de_Scope(output.scope, context) : undefined,
|
|
2673
2639
|
};
|
|
2674
2640
|
};
|
|
2675
|
-
const
|
|
2641
|
+
const de_RecommendationPreferencesDetails = (output, context) => {
|
|
2676
2642
|
const retVal = (output || [])
|
|
2677
2643
|
.filter((e) => e != null)
|
|
2678
2644
|
.map((entry) => {
|
|
2679
2645
|
if (entry === null) {
|
|
2680
2646
|
return null;
|
|
2681
2647
|
}
|
|
2682
|
-
return
|
|
2648
|
+
return de_RecommendationPreferencesDetail(entry, context);
|
|
2683
2649
|
});
|
|
2684
2650
|
return retVal;
|
|
2685
2651
|
};
|
|
2686
|
-
const
|
|
2652
|
+
const de_RecommendationSource = (output, context) => {
|
|
2687
2653
|
return {
|
|
2688
2654
|
recommendationSourceArn: __expectString(output.recommendationSourceArn),
|
|
2689
2655
|
recommendationSourceType: __expectString(output.recommendationSourceType),
|
|
2690
2656
|
};
|
|
2691
2657
|
};
|
|
2692
|
-
const
|
|
2658
|
+
const de_RecommendationSources = (output, context) => {
|
|
2693
2659
|
const retVal = (output || [])
|
|
2694
2660
|
.filter((e) => e != null)
|
|
2695
2661
|
.map((entry) => {
|
|
2696
2662
|
if (entry === null) {
|
|
2697
2663
|
return null;
|
|
2698
2664
|
}
|
|
2699
|
-
return
|
|
2665
|
+
return de_RecommendationSource(entry, context);
|
|
2700
2666
|
});
|
|
2701
2667
|
return retVal;
|
|
2702
2668
|
};
|
|
2703
|
-
const
|
|
2669
|
+
const de_RecommendationSummaries = (output, context) => {
|
|
2704
2670
|
const retVal = (output || [])
|
|
2705
2671
|
.filter((e) => e != null)
|
|
2706
2672
|
.map((entry) => {
|
|
2707
2673
|
if (entry === null) {
|
|
2708
2674
|
return null;
|
|
2709
2675
|
}
|
|
2710
|
-
return
|
|
2676
|
+
return de_RecommendationSummary(entry, context);
|
|
2711
2677
|
});
|
|
2712
2678
|
return retVal;
|
|
2713
2679
|
};
|
|
2714
|
-
const
|
|
2680
|
+
const de_RecommendationSummary = (output, context) => {
|
|
2715
2681
|
return {
|
|
2716
2682
|
accountId: __expectString(output.accountId),
|
|
2717
2683
|
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings != null
|
|
2718
|
-
?
|
|
2684
|
+
? de_CurrentPerformanceRiskRatings(output.currentPerformanceRiskRatings, context)
|
|
2719
2685
|
: undefined,
|
|
2720
2686
|
recommendationResourceType: __expectString(output.recommendationResourceType),
|
|
2721
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2722
|
-
|
|
2723
|
-
: undefined,
|
|
2724
|
-
summaries: output.summaries != null ? deserializeAws_json1_0Summaries(output.summaries, context) : undefined,
|
|
2687
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2688
|
+
summaries: output.summaries != null ? de_Summaries(output.summaries, context) : undefined,
|
|
2725
2689
|
};
|
|
2726
2690
|
};
|
|
2727
|
-
const
|
|
2691
|
+
const de_RecommendedOptionProjectedMetric = (output, context) => {
|
|
2728
2692
|
return {
|
|
2729
|
-
projectedMetrics: output.projectedMetrics != null
|
|
2730
|
-
? deserializeAws_json1_0ProjectedMetrics(output.projectedMetrics, context)
|
|
2731
|
-
: undefined,
|
|
2693
|
+
projectedMetrics: output.projectedMetrics != null ? de_ProjectedMetrics(output.projectedMetrics, context) : undefined,
|
|
2732
2694
|
rank: __expectInt32(output.rank),
|
|
2733
2695
|
recommendedInstanceType: __expectString(output.recommendedInstanceType),
|
|
2734
2696
|
};
|
|
2735
2697
|
};
|
|
2736
|
-
const
|
|
2698
|
+
const de_RecommendedOptionProjectedMetrics = (output, context) => {
|
|
2737
2699
|
const retVal = (output || [])
|
|
2738
2700
|
.filter((e) => e != null)
|
|
2739
2701
|
.map((entry) => {
|
|
2740
2702
|
if (entry === null) {
|
|
2741
2703
|
return null;
|
|
2742
2704
|
}
|
|
2743
|
-
return
|
|
2705
|
+
return de_RecommendedOptionProjectedMetric(entry, context);
|
|
2744
2706
|
});
|
|
2745
2707
|
return retVal;
|
|
2746
2708
|
};
|
|
2747
|
-
const
|
|
2709
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
2748
2710
|
return {
|
|
2749
2711
|
message: __expectString(output.message),
|
|
2750
2712
|
};
|
|
2751
2713
|
};
|
|
2752
|
-
const
|
|
2714
|
+
const de_S3Destination = (output, context) => {
|
|
2753
2715
|
return {
|
|
2754
2716
|
bucket: __expectString(output.bucket),
|
|
2755
2717
|
key: __expectString(output.key),
|
|
2756
2718
|
metadataKey: __expectString(output.metadataKey),
|
|
2757
2719
|
};
|
|
2758
2720
|
};
|
|
2759
|
-
const
|
|
2721
|
+
const de_SavingsOpportunity = (output, context) => {
|
|
2760
2722
|
return {
|
|
2761
2723
|
estimatedMonthlySavings: output.estimatedMonthlySavings != null
|
|
2762
|
-
?
|
|
2724
|
+
? de_EstimatedMonthlySavings(output.estimatedMonthlySavings, context)
|
|
2763
2725
|
: undefined,
|
|
2764
2726
|
savingsOpportunityPercentage: __limitedParseDouble(output.savingsOpportunityPercentage),
|
|
2765
2727
|
};
|
|
2766
2728
|
};
|
|
2767
|
-
const
|
|
2729
|
+
const de_Scope = (output, context) => {
|
|
2768
2730
|
return {
|
|
2769
2731
|
name: __expectString(output.name),
|
|
2770
2732
|
value: __expectString(output.value),
|
|
2771
2733
|
};
|
|
2772
2734
|
};
|
|
2773
|
-
const
|
|
2735
|
+
const de_ServiceConfiguration = (output, context) => {
|
|
2774
2736
|
return {
|
|
2775
2737
|
autoScalingConfiguration: __expectString(output.autoScalingConfiguration),
|
|
2776
2738
|
containerConfigurations: output.containerConfigurations != null
|
|
2777
|
-
?
|
|
2739
|
+
? de_ContainerConfigurations(output.containerConfigurations, context)
|
|
2778
2740
|
: undefined,
|
|
2779
2741
|
cpu: __expectInt32(output.cpu),
|
|
2780
2742
|
memory: __expectInt32(output.memory),
|
|
2781
2743
|
taskDefinitionArn: __expectString(output.taskDefinitionArn),
|
|
2782
2744
|
};
|
|
2783
2745
|
};
|
|
2784
|
-
const
|
|
2746
|
+
const de_ServiceUnavailableException = (output, context) => {
|
|
2785
2747
|
return {
|
|
2786
2748
|
message: __expectString(output.message),
|
|
2787
2749
|
};
|
|
2788
2750
|
};
|
|
2789
|
-
const
|
|
2751
|
+
const de_Summaries = (output, context) => {
|
|
2790
2752
|
const retVal = (output || [])
|
|
2791
2753
|
.filter((e) => e != null)
|
|
2792
2754
|
.map((entry) => {
|
|
2793
2755
|
if (entry === null) {
|
|
2794
2756
|
return null;
|
|
2795
2757
|
}
|
|
2796
|
-
return
|
|
2758
|
+
return de_Summary(entry, context);
|
|
2797
2759
|
});
|
|
2798
2760
|
return retVal;
|
|
2799
2761
|
};
|
|
2800
|
-
const
|
|
2762
|
+
const de_Summary = (output, context) => {
|
|
2801
2763
|
return {
|
|
2802
2764
|
name: __expectString(output.name),
|
|
2803
|
-
reasonCodeSummaries: output.reasonCodeSummaries != null
|
|
2804
|
-
? deserializeAws_json1_0ReasonCodeSummaries(output.reasonCodeSummaries, context)
|
|
2805
|
-
: undefined,
|
|
2765
|
+
reasonCodeSummaries: output.reasonCodeSummaries != null ? de_ReasonCodeSummaries(output.reasonCodeSummaries, context) : undefined,
|
|
2806
2766
|
value: __limitedParseDouble(output.value),
|
|
2807
2767
|
};
|
|
2808
2768
|
};
|
|
2809
|
-
const
|
|
2769
|
+
const de_ThrottlingException = (output, context) => {
|
|
2810
2770
|
return {
|
|
2811
2771
|
message: __expectString(output.message),
|
|
2812
2772
|
};
|
|
2813
2773
|
};
|
|
2814
|
-
const
|
|
2774
|
+
const de_Timestamps = (output, context) => {
|
|
2815
2775
|
const retVal = (output || [])
|
|
2816
2776
|
.filter((e) => e != null)
|
|
2817
2777
|
.map((entry) => {
|
|
@@ -2822,31 +2782,31 @@ const deserializeAws_json1_0Timestamps = (output, context) => {
|
|
|
2822
2782
|
});
|
|
2823
2783
|
return retVal;
|
|
2824
2784
|
};
|
|
2825
|
-
const
|
|
2785
|
+
const de_UpdateEnrollmentStatusResponse = (output, context) => {
|
|
2826
2786
|
return {
|
|
2827
2787
|
status: __expectString(output.status),
|
|
2828
2788
|
statusReason: __expectString(output.statusReason),
|
|
2829
2789
|
};
|
|
2830
2790
|
};
|
|
2831
|
-
const
|
|
2791
|
+
const de_UtilizationMetric = (output, context) => {
|
|
2832
2792
|
return {
|
|
2833
2793
|
name: __expectString(output.name),
|
|
2834
2794
|
statistic: __expectString(output.statistic),
|
|
2835
2795
|
value: __limitedParseDouble(output.value),
|
|
2836
2796
|
};
|
|
2837
2797
|
};
|
|
2838
|
-
const
|
|
2798
|
+
const de_UtilizationMetrics = (output, context) => {
|
|
2839
2799
|
const retVal = (output || [])
|
|
2840
2800
|
.filter((e) => e != null)
|
|
2841
2801
|
.map((entry) => {
|
|
2842
2802
|
if (entry === null) {
|
|
2843
2803
|
return null;
|
|
2844
2804
|
}
|
|
2845
|
-
return
|
|
2805
|
+
return de_UtilizationMetric(entry, context);
|
|
2846
2806
|
});
|
|
2847
2807
|
return retVal;
|
|
2848
2808
|
};
|
|
2849
|
-
const
|
|
2809
|
+
const de_VolumeConfiguration = (output, context) => {
|
|
2850
2810
|
return {
|
|
2851
2811
|
rootVolume: __expectBoolean(output.rootVolume),
|
|
2852
2812
|
volumeBaselineIOPS: __expectInt32(output.volumeBaselineIOPS),
|
|
@@ -2857,58 +2817,50 @@ const deserializeAws_json1_0VolumeConfiguration = (output, context) => {
|
|
|
2857
2817
|
volumeType: __expectString(output.volumeType),
|
|
2858
2818
|
};
|
|
2859
2819
|
};
|
|
2860
|
-
const
|
|
2820
|
+
const de_VolumeRecommendation = (output, context) => {
|
|
2861
2821
|
return {
|
|
2862
2822
|
accountId: __expectString(output.accountId),
|
|
2863
|
-
currentConfiguration: output.currentConfiguration != null
|
|
2864
|
-
? deserializeAws_json1_0VolumeConfiguration(output.currentConfiguration, context)
|
|
2865
|
-
: undefined,
|
|
2823
|
+
currentConfiguration: output.currentConfiguration != null ? de_VolumeConfiguration(output.currentConfiguration, context) : undefined,
|
|
2866
2824
|
currentPerformanceRisk: __expectString(output.currentPerformanceRisk),
|
|
2867
2825
|
finding: __expectString(output.finding),
|
|
2868
2826
|
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2869
2827
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2870
2828
|
: undefined,
|
|
2871
2829
|
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2872
|
-
utilizationMetrics: output.utilizationMetrics != null
|
|
2873
|
-
? deserializeAws_json1_0EBSUtilizationMetrics(output.utilizationMetrics, context)
|
|
2874
|
-
: undefined,
|
|
2830
|
+
utilizationMetrics: output.utilizationMetrics != null ? de_EBSUtilizationMetrics(output.utilizationMetrics, context) : undefined,
|
|
2875
2831
|
volumeArn: __expectString(output.volumeArn),
|
|
2876
2832
|
volumeRecommendationOptions: output.volumeRecommendationOptions != null
|
|
2877
|
-
?
|
|
2833
|
+
? de_VolumeRecommendationOptions(output.volumeRecommendationOptions, context)
|
|
2878
2834
|
: undefined,
|
|
2879
2835
|
};
|
|
2880
2836
|
};
|
|
2881
|
-
const
|
|
2837
|
+
const de_VolumeRecommendationOption = (output, context) => {
|
|
2882
2838
|
return {
|
|
2883
|
-
configuration: output.configuration != null
|
|
2884
|
-
? deserializeAws_json1_0VolumeConfiguration(output.configuration, context)
|
|
2885
|
-
: undefined,
|
|
2839
|
+
configuration: output.configuration != null ? de_VolumeConfiguration(output.configuration, context) : undefined,
|
|
2886
2840
|
performanceRisk: __limitedParseDouble(output.performanceRisk),
|
|
2887
2841
|
rank: __expectInt32(output.rank),
|
|
2888
|
-
savingsOpportunity: output.savingsOpportunity != null
|
|
2889
|
-
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2890
|
-
: undefined,
|
|
2842
|
+
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2891
2843
|
};
|
|
2892
2844
|
};
|
|
2893
|
-
const
|
|
2845
|
+
const de_VolumeRecommendationOptions = (output, context) => {
|
|
2894
2846
|
const retVal = (output || [])
|
|
2895
2847
|
.filter((e) => e != null)
|
|
2896
2848
|
.map((entry) => {
|
|
2897
2849
|
if (entry === null) {
|
|
2898
2850
|
return null;
|
|
2899
2851
|
}
|
|
2900
|
-
return
|
|
2852
|
+
return de_VolumeRecommendationOption(entry, context);
|
|
2901
2853
|
});
|
|
2902
2854
|
return retVal;
|
|
2903
2855
|
};
|
|
2904
|
-
const
|
|
2856
|
+
const de_VolumeRecommendations = (output, context) => {
|
|
2905
2857
|
const retVal = (output || [])
|
|
2906
2858
|
.filter((e) => e != null)
|
|
2907
2859
|
.map((entry) => {
|
|
2908
2860
|
if (entry === null) {
|
|
2909
2861
|
return null;
|
|
2910
2862
|
}
|
|
2911
|
-
return
|
|
2863
|
+
return de_VolumeRecommendation(entry, context);
|
|
2912
2864
|
});
|
|
2913
2865
|
return retVal;
|
|
2914
2866
|
};
|