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