@aws-sdk/client-compute-optimizer 3.312.0 → 3.316.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/ComputeOptimizer.js +25 -294
- package/dist-cjs/protocols/Aws_json1_0.js +335 -1270
- package/dist-es/ComputeOptimizer.js +25 -294
- package/dist-es/protocols/Aws_json1_0.js +336 -1271
- package/dist-types/ComputeOptimizer.d.ts +39 -178
- package/dist-types/ts3.4/ComputeOptimizer.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ComputeOptimizerServiceException as __BaseException } from "../models/ComputeOptimizerServiceException";
|
|
4
4
|
import { AccessDeniedException, InternalServerException, InvalidParameterValueException, LimitExceededException, MissingAuthenticationToken, OptInRequiredException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
export const se_DeleteRecommendationPreferencesCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("DeleteRecommendationPreferences");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_DescribeRecommendationExportJobsCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("DescribeRecommendationExportJobs");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_ExportAutoScalingGroupRecommendationsCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("ExportAutoScalingGroupRecommendations");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_ExportEBSVolumeRecommendationsCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("ExportEBSVolumeRecommendations");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_ExportEC2InstanceRecommendationsCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("ExportEC2InstanceRecommendations");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_ExportECSServiceRecommendationsCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("ExportECSServiceRecommendations");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_ExportLambdaFunctionRecommendationsCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("ExportLambdaFunctionRecommendations");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_GetAutoScalingGroupRecommendationsCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("GetAutoScalingGroupRecommendations");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_GetEBSVolumeRecommendationsCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("GetEBSVolumeRecommendations");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_GetEC2InstanceRecommendationsCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("GetEC2InstanceRecommendations");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_GetEC2RecommendationProjectedMetricsCommand = async (input, context) => {
|
|
@@ -77,55 +77,55 @@ export const se_GetECSServiceRecommendationProjectedMetricsCommand = async (inpu
|
|
|
77
77
|
export const se_GetECSServiceRecommendationsCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("GetECSServiceRecommendations");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_GetEffectiveRecommendationPreferencesCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("GetEffectiveRecommendationPreferences");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_GetEnrollmentStatusCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("GetEnrollmentStatus");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_GetEnrollmentStatusesForOrganizationCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("GetEnrollmentStatusesForOrganization");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_GetLambdaFunctionRecommendationsCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("GetLambdaFunctionRecommendations");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const se_GetRecommendationPreferencesCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("GetRecommendationPreferences");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
export const se_GetRecommendationSummariesCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("GetRecommendationSummaries");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const se_PutRecommendationPreferencesCommand = async (input, context) => {
|
|
120
120
|
const headers = sharedHeaders("PutRecommendationPreferences");
|
|
121
121
|
let body;
|
|
122
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
123
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
124
|
};
|
|
125
125
|
export const se_UpdateEnrollmentStatusCommand = async (input, context) => {
|
|
126
126
|
const headers = sharedHeaders("UpdateEnrollmentStatus");
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
131
|
export const de_DeleteRecommendationPreferencesCommand = async (output, context) => {
|
|
@@ -134,12 +134,12 @@ export const de_DeleteRecommendationPreferencesCommand = async (output, context)
|
|
|
134
134
|
}
|
|
135
135
|
const data = await parseBody(output.body, context);
|
|
136
136
|
let contents = {};
|
|
137
|
-
contents =
|
|
137
|
+
contents = _json(data);
|
|
138
138
|
const response = {
|
|
139
139
|
$metadata: deserializeMetadata(output),
|
|
140
140
|
...contents,
|
|
141
141
|
};
|
|
142
|
-
return
|
|
142
|
+
return response;
|
|
143
143
|
};
|
|
144
144
|
const de_DeleteRecommendationPreferencesCommandError = async (output, context) => {
|
|
145
145
|
const parsedOutput = {
|
|
@@ -174,10 +174,9 @@ const de_DeleteRecommendationPreferencesCommandError = async (output, context) =
|
|
|
174
174
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
175
175
|
default:
|
|
176
176
|
const parsedBody = parsedOutput.body;
|
|
177
|
-
throwDefaultError({
|
|
177
|
+
return throwDefaultError({
|
|
178
178
|
output,
|
|
179
179
|
parsedBody,
|
|
180
|
-
exceptionCtor: __BaseException,
|
|
181
180
|
errorCode,
|
|
182
181
|
});
|
|
183
182
|
}
|
|
@@ -193,7 +192,7 @@ export const de_DescribeRecommendationExportJobsCommand = async (output, context
|
|
|
193
192
|
$metadata: deserializeMetadata(output),
|
|
194
193
|
...contents,
|
|
195
194
|
};
|
|
196
|
-
return
|
|
195
|
+
return response;
|
|
197
196
|
};
|
|
198
197
|
const de_DescribeRecommendationExportJobsCommandError = async (output, context) => {
|
|
199
198
|
const parsedOutput = {
|
|
@@ -228,10 +227,9 @@ const de_DescribeRecommendationExportJobsCommandError = async (output, context)
|
|
|
228
227
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
229
228
|
default:
|
|
230
229
|
const parsedBody = parsedOutput.body;
|
|
231
|
-
throwDefaultError({
|
|
230
|
+
return throwDefaultError({
|
|
232
231
|
output,
|
|
233
232
|
parsedBody,
|
|
234
|
-
exceptionCtor: __BaseException,
|
|
235
233
|
errorCode,
|
|
236
234
|
});
|
|
237
235
|
}
|
|
@@ -242,12 +240,12 @@ export const de_ExportAutoScalingGroupRecommendationsCommand = async (output, co
|
|
|
242
240
|
}
|
|
243
241
|
const data = await parseBody(output.body, context);
|
|
244
242
|
let contents = {};
|
|
245
|
-
contents =
|
|
243
|
+
contents = _json(data);
|
|
246
244
|
const response = {
|
|
247
245
|
$metadata: deserializeMetadata(output),
|
|
248
246
|
...contents,
|
|
249
247
|
};
|
|
250
|
-
return
|
|
248
|
+
return response;
|
|
251
249
|
};
|
|
252
250
|
const de_ExportAutoScalingGroupRecommendationsCommandError = async (output, context) => {
|
|
253
251
|
const parsedOutput = {
|
|
@@ -282,10 +280,9 @@ const de_ExportAutoScalingGroupRecommendationsCommandError = async (output, cont
|
|
|
282
280
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
283
281
|
default:
|
|
284
282
|
const parsedBody = parsedOutput.body;
|
|
285
|
-
throwDefaultError({
|
|
283
|
+
return throwDefaultError({
|
|
286
284
|
output,
|
|
287
285
|
parsedBody,
|
|
288
|
-
exceptionCtor: __BaseException,
|
|
289
286
|
errorCode,
|
|
290
287
|
});
|
|
291
288
|
}
|
|
@@ -296,12 +293,12 @@ export const de_ExportEBSVolumeRecommendationsCommand = async (output, context)
|
|
|
296
293
|
}
|
|
297
294
|
const data = await parseBody(output.body, context);
|
|
298
295
|
let contents = {};
|
|
299
|
-
contents =
|
|
296
|
+
contents = _json(data);
|
|
300
297
|
const response = {
|
|
301
298
|
$metadata: deserializeMetadata(output),
|
|
302
299
|
...contents,
|
|
303
300
|
};
|
|
304
|
-
return
|
|
301
|
+
return response;
|
|
305
302
|
};
|
|
306
303
|
const de_ExportEBSVolumeRecommendationsCommandError = async (output, context) => {
|
|
307
304
|
const parsedOutput = {
|
|
@@ -336,10 +333,9 @@ const de_ExportEBSVolumeRecommendationsCommandError = async (output, context) =>
|
|
|
336
333
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
337
334
|
default:
|
|
338
335
|
const parsedBody = parsedOutput.body;
|
|
339
|
-
throwDefaultError({
|
|
336
|
+
return throwDefaultError({
|
|
340
337
|
output,
|
|
341
338
|
parsedBody,
|
|
342
|
-
exceptionCtor: __BaseException,
|
|
343
339
|
errorCode,
|
|
344
340
|
});
|
|
345
341
|
}
|
|
@@ -350,12 +346,12 @@ export const de_ExportEC2InstanceRecommendationsCommand = async (output, context
|
|
|
350
346
|
}
|
|
351
347
|
const data = await parseBody(output.body, context);
|
|
352
348
|
let contents = {};
|
|
353
|
-
contents =
|
|
349
|
+
contents = _json(data);
|
|
354
350
|
const response = {
|
|
355
351
|
$metadata: deserializeMetadata(output),
|
|
356
352
|
...contents,
|
|
357
353
|
};
|
|
358
|
-
return
|
|
354
|
+
return response;
|
|
359
355
|
};
|
|
360
356
|
const de_ExportEC2InstanceRecommendationsCommandError = async (output, context) => {
|
|
361
357
|
const parsedOutput = {
|
|
@@ -390,10 +386,9 @@ const de_ExportEC2InstanceRecommendationsCommandError = async (output, context)
|
|
|
390
386
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
391
387
|
default:
|
|
392
388
|
const parsedBody = parsedOutput.body;
|
|
393
|
-
throwDefaultError({
|
|
389
|
+
return throwDefaultError({
|
|
394
390
|
output,
|
|
395
391
|
parsedBody,
|
|
396
|
-
exceptionCtor: __BaseException,
|
|
397
392
|
errorCode,
|
|
398
393
|
});
|
|
399
394
|
}
|
|
@@ -404,12 +399,12 @@ export const de_ExportECSServiceRecommendationsCommand = async (output, context)
|
|
|
404
399
|
}
|
|
405
400
|
const data = await parseBody(output.body, context);
|
|
406
401
|
let contents = {};
|
|
407
|
-
contents =
|
|
402
|
+
contents = _json(data);
|
|
408
403
|
const response = {
|
|
409
404
|
$metadata: deserializeMetadata(output),
|
|
410
405
|
...contents,
|
|
411
406
|
};
|
|
412
|
-
return
|
|
407
|
+
return response;
|
|
413
408
|
};
|
|
414
409
|
const de_ExportECSServiceRecommendationsCommandError = async (output, context) => {
|
|
415
410
|
const parsedOutput = {
|
|
@@ -444,10 +439,9 @@ const de_ExportECSServiceRecommendationsCommandError = async (output, context) =
|
|
|
444
439
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
445
440
|
default:
|
|
446
441
|
const parsedBody = parsedOutput.body;
|
|
447
|
-
throwDefaultError({
|
|
442
|
+
return throwDefaultError({
|
|
448
443
|
output,
|
|
449
444
|
parsedBody,
|
|
450
|
-
exceptionCtor: __BaseException,
|
|
451
445
|
errorCode,
|
|
452
446
|
});
|
|
453
447
|
}
|
|
@@ -458,12 +452,12 @@ export const de_ExportLambdaFunctionRecommendationsCommand = async (output, cont
|
|
|
458
452
|
}
|
|
459
453
|
const data = await parseBody(output.body, context);
|
|
460
454
|
let contents = {};
|
|
461
|
-
contents =
|
|
455
|
+
contents = _json(data);
|
|
462
456
|
const response = {
|
|
463
457
|
$metadata: deserializeMetadata(output),
|
|
464
458
|
...contents,
|
|
465
459
|
};
|
|
466
|
-
return
|
|
460
|
+
return response;
|
|
467
461
|
};
|
|
468
462
|
const de_ExportLambdaFunctionRecommendationsCommandError = async (output, context) => {
|
|
469
463
|
const parsedOutput = {
|
|
@@ -498,10 +492,9 @@ const de_ExportLambdaFunctionRecommendationsCommandError = async (output, contex
|
|
|
498
492
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
499
493
|
default:
|
|
500
494
|
const parsedBody = parsedOutput.body;
|
|
501
|
-
throwDefaultError({
|
|
495
|
+
return throwDefaultError({
|
|
502
496
|
output,
|
|
503
497
|
parsedBody,
|
|
504
|
-
exceptionCtor: __BaseException,
|
|
505
498
|
errorCode,
|
|
506
499
|
});
|
|
507
500
|
}
|
|
@@ -517,7 +510,7 @@ export const de_GetAutoScalingGroupRecommendationsCommand = async (output, conte
|
|
|
517
510
|
$metadata: deserializeMetadata(output),
|
|
518
511
|
...contents,
|
|
519
512
|
};
|
|
520
|
-
return
|
|
513
|
+
return response;
|
|
521
514
|
};
|
|
522
515
|
const de_GetAutoScalingGroupRecommendationsCommandError = async (output, context) => {
|
|
523
516
|
const parsedOutput = {
|
|
@@ -552,10 +545,9 @@ const de_GetAutoScalingGroupRecommendationsCommandError = async (output, context
|
|
|
552
545
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
553
546
|
default:
|
|
554
547
|
const parsedBody = parsedOutput.body;
|
|
555
|
-
throwDefaultError({
|
|
548
|
+
return throwDefaultError({
|
|
556
549
|
output,
|
|
557
550
|
parsedBody,
|
|
558
|
-
exceptionCtor: __BaseException,
|
|
559
551
|
errorCode,
|
|
560
552
|
});
|
|
561
553
|
}
|
|
@@ -571,7 +563,7 @@ export const de_GetEBSVolumeRecommendationsCommand = async (output, context) =>
|
|
|
571
563
|
$metadata: deserializeMetadata(output),
|
|
572
564
|
...contents,
|
|
573
565
|
};
|
|
574
|
-
return
|
|
566
|
+
return response;
|
|
575
567
|
};
|
|
576
568
|
const de_GetEBSVolumeRecommendationsCommandError = async (output, context) => {
|
|
577
569
|
const parsedOutput = {
|
|
@@ -606,10 +598,9 @@ const de_GetEBSVolumeRecommendationsCommandError = async (output, context) => {
|
|
|
606
598
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
607
599
|
default:
|
|
608
600
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
throwDefaultError({
|
|
601
|
+
return throwDefaultError({
|
|
610
602
|
output,
|
|
611
603
|
parsedBody,
|
|
612
|
-
exceptionCtor: __BaseException,
|
|
613
604
|
errorCode,
|
|
614
605
|
});
|
|
615
606
|
}
|
|
@@ -625,7 +616,7 @@ export const de_GetEC2InstanceRecommendationsCommand = async (output, context) =
|
|
|
625
616
|
$metadata: deserializeMetadata(output),
|
|
626
617
|
...contents,
|
|
627
618
|
};
|
|
628
|
-
return
|
|
619
|
+
return response;
|
|
629
620
|
};
|
|
630
621
|
const de_GetEC2InstanceRecommendationsCommandError = async (output, context) => {
|
|
631
622
|
const parsedOutput = {
|
|
@@ -660,10 +651,9 @@ const de_GetEC2InstanceRecommendationsCommandError = async (output, context) =>
|
|
|
660
651
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
661
652
|
default:
|
|
662
653
|
const parsedBody = parsedOutput.body;
|
|
663
|
-
throwDefaultError({
|
|
654
|
+
return throwDefaultError({
|
|
664
655
|
output,
|
|
665
656
|
parsedBody,
|
|
666
|
-
exceptionCtor: __BaseException,
|
|
667
657
|
errorCode,
|
|
668
658
|
});
|
|
669
659
|
}
|
|
@@ -679,7 +669,7 @@ export const de_GetEC2RecommendationProjectedMetricsCommand = async (output, con
|
|
|
679
669
|
$metadata: deserializeMetadata(output),
|
|
680
670
|
...contents,
|
|
681
671
|
};
|
|
682
|
-
return
|
|
672
|
+
return response;
|
|
683
673
|
};
|
|
684
674
|
const de_GetEC2RecommendationProjectedMetricsCommandError = async (output, context) => {
|
|
685
675
|
const parsedOutput = {
|
|
@@ -714,10 +704,9 @@ const de_GetEC2RecommendationProjectedMetricsCommandError = async (output, conte
|
|
|
714
704
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
715
705
|
default:
|
|
716
706
|
const parsedBody = parsedOutput.body;
|
|
717
|
-
throwDefaultError({
|
|
707
|
+
return throwDefaultError({
|
|
718
708
|
output,
|
|
719
709
|
parsedBody,
|
|
720
|
-
exceptionCtor: __BaseException,
|
|
721
710
|
errorCode,
|
|
722
711
|
});
|
|
723
712
|
}
|
|
@@ -733,7 +722,7 @@ export const de_GetECSServiceRecommendationProjectedMetricsCommand = async (outp
|
|
|
733
722
|
$metadata: deserializeMetadata(output),
|
|
734
723
|
...contents,
|
|
735
724
|
};
|
|
736
|
-
return
|
|
725
|
+
return response;
|
|
737
726
|
};
|
|
738
727
|
const de_GetECSServiceRecommendationProjectedMetricsCommandError = async (output, context) => {
|
|
739
728
|
const parsedOutput = {
|
|
@@ -768,10 +757,9 @@ const de_GetECSServiceRecommendationProjectedMetricsCommandError = async (output
|
|
|
768
757
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
769
758
|
default:
|
|
770
759
|
const parsedBody = parsedOutput.body;
|
|
771
|
-
throwDefaultError({
|
|
760
|
+
return throwDefaultError({
|
|
772
761
|
output,
|
|
773
762
|
parsedBody,
|
|
774
|
-
exceptionCtor: __BaseException,
|
|
775
763
|
errorCode,
|
|
776
764
|
});
|
|
777
765
|
}
|
|
@@ -787,7 +775,7 @@ export const de_GetECSServiceRecommendationsCommand = async (output, context) =>
|
|
|
787
775
|
$metadata: deserializeMetadata(output),
|
|
788
776
|
...contents,
|
|
789
777
|
};
|
|
790
|
-
return
|
|
778
|
+
return response;
|
|
791
779
|
};
|
|
792
780
|
const de_GetECSServiceRecommendationsCommandError = async (output, context) => {
|
|
793
781
|
const parsedOutput = {
|
|
@@ -822,10 +810,9 @@ const de_GetECSServiceRecommendationsCommandError = async (output, context) => {
|
|
|
822
810
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
823
811
|
default:
|
|
824
812
|
const parsedBody = parsedOutput.body;
|
|
825
|
-
throwDefaultError({
|
|
813
|
+
return throwDefaultError({
|
|
826
814
|
output,
|
|
827
815
|
parsedBody,
|
|
828
|
-
exceptionCtor: __BaseException,
|
|
829
816
|
errorCode,
|
|
830
817
|
});
|
|
831
818
|
}
|
|
@@ -836,12 +823,12 @@ export const de_GetEffectiveRecommendationPreferencesCommand = async (output, co
|
|
|
836
823
|
}
|
|
837
824
|
const data = await parseBody(output.body, context);
|
|
838
825
|
let contents = {};
|
|
839
|
-
contents =
|
|
826
|
+
contents = _json(data);
|
|
840
827
|
const response = {
|
|
841
828
|
$metadata: deserializeMetadata(output),
|
|
842
829
|
...contents,
|
|
843
830
|
};
|
|
844
|
-
return
|
|
831
|
+
return response;
|
|
845
832
|
};
|
|
846
833
|
const de_GetEffectiveRecommendationPreferencesCommandError = async (output, context) => {
|
|
847
834
|
const parsedOutput = {
|
|
@@ -876,10 +863,9 @@ const de_GetEffectiveRecommendationPreferencesCommandError = async (output, cont
|
|
|
876
863
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
877
864
|
default:
|
|
878
865
|
const parsedBody = parsedOutput.body;
|
|
879
|
-
throwDefaultError({
|
|
866
|
+
return throwDefaultError({
|
|
880
867
|
output,
|
|
881
868
|
parsedBody,
|
|
882
|
-
exceptionCtor: __BaseException,
|
|
883
869
|
errorCode,
|
|
884
870
|
});
|
|
885
871
|
}
|
|
@@ -895,7 +881,7 @@ export const de_GetEnrollmentStatusCommand = async (output, context) => {
|
|
|
895
881
|
$metadata: deserializeMetadata(output),
|
|
896
882
|
...contents,
|
|
897
883
|
};
|
|
898
|
-
return
|
|
884
|
+
return response;
|
|
899
885
|
};
|
|
900
886
|
const de_GetEnrollmentStatusCommandError = async (output, context) => {
|
|
901
887
|
const parsedOutput = {
|
|
@@ -924,10 +910,9 @@ const de_GetEnrollmentStatusCommandError = async (output, context) => {
|
|
|
924
910
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
925
911
|
default:
|
|
926
912
|
const parsedBody = parsedOutput.body;
|
|
927
|
-
throwDefaultError({
|
|
913
|
+
return throwDefaultError({
|
|
928
914
|
output,
|
|
929
915
|
parsedBody,
|
|
930
|
-
exceptionCtor: __BaseException,
|
|
931
916
|
errorCode,
|
|
932
917
|
});
|
|
933
918
|
}
|
|
@@ -943,7 +928,7 @@ export const de_GetEnrollmentStatusesForOrganizationCommand = async (output, con
|
|
|
943
928
|
$metadata: deserializeMetadata(output),
|
|
944
929
|
...contents,
|
|
945
930
|
};
|
|
946
|
-
return
|
|
931
|
+
return response;
|
|
947
932
|
};
|
|
948
933
|
const de_GetEnrollmentStatusesForOrganizationCommandError = async (output, context) => {
|
|
949
934
|
const parsedOutput = {
|
|
@@ -972,10 +957,9 @@ const de_GetEnrollmentStatusesForOrganizationCommandError = async (output, conte
|
|
|
972
957
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
973
958
|
default:
|
|
974
959
|
const parsedBody = parsedOutput.body;
|
|
975
|
-
throwDefaultError({
|
|
960
|
+
return throwDefaultError({
|
|
976
961
|
output,
|
|
977
962
|
parsedBody,
|
|
978
|
-
exceptionCtor: __BaseException,
|
|
979
963
|
errorCode,
|
|
980
964
|
});
|
|
981
965
|
}
|
|
@@ -991,7 +975,7 @@ export const de_GetLambdaFunctionRecommendationsCommand = async (output, context
|
|
|
991
975
|
$metadata: deserializeMetadata(output),
|
|
992
976
|
...contents,
|
|
993
977
|
};
|
|
994
|
-
return
|
|
978
|
+
return response;
|
|
995
979
|
};
|
|
996
980
|
const de_GetLambdaFunctionRecommendationsCommandError = async (output, context) => {
|
|
997
981
|
const parsedOutput = {
|
|
@@ -1026,10 +1010,9 @@ const de_GetLambdaFunctionRecommendationsCommandError = async (output, context)
|
|
|
1026
1010
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1027
1011
|
default:
|
|
1028
1012
|
const parsedBody = parsedOutput.body;
|
|
1029
|
-
throwDefaultError({
|
|
1013
|
+
return throwDefaultError({
|
|
1030
1014
|
output,
|
|
1031
1015
|
parsedBody,
|
|
1032
|
-
exceptionCtor: __BaseException,
|
|
1033
1016
|
errorCode,
|
|
1034
1017
|
});
|
|
1035
1018
|
}
|
|
@@ -1040,12 +1023,12 @@ export const de_GetRecommendationPreferencesCommand = async (output, context) =>
|
|
|
1040
1023
|
}
|
|
1041
1024
|
const data = await parseBody(output.body, context);
|
|
1042
1025
|
let contents = {};
|
|
1043
|
-
contents =
|
|
1026
|
+
contents = _json(data);
|
|
1044
1027
|
const response = {
|
|
1045
1028
|
$metadata: deserializeMetadata(output),
|
|
1046
1029
|
...contents,
|
|
1047
1030
|
};
|
|
1048
|
-
return
|
|
1031
|
+
return response;
|
|
1049
1032
|
};
|
|
1050
1033
|
const de_GetRecommendationPreferencesCommandError = async (output, context) => {
|
|
1051
1034
|
const parsedOutput = {
|
|
@@ -1080,10 +1063,9 @@ const de_GetRecommendationPreferencesCommandError = async (output, context) => {
|
|
|
1080
1063
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1081
1064
|
default:
|
|
1082
1065
|
const parsedBody = parsedOutput.body;
|
|
1083
|
-
throwDefaultError({
|
|
1066
|
+
return throwDefaultError({
|
|
1084
1067
|
output,
|
|
1085
1068
|
parsedBody,
|
|
1086
|
-
exceptionCtor: __BaseException,
|
|
1087
1069
|
errorCode,
|
|
1088
1070
|
});
|
|
1089
1071
|
}
|
|
@@ -1099,7 +1081,7 @@ export const de_GetRecommendationSummariesCommand = async (output, context) => {
|
|
|
1099
1081
|
$metadata: deserializeMetadata(output),
|
|
1100
1082
|
...contents,
|
|
1101
1083
|
};
|
|
1102
|
-
return
|
|
1084
|
+
return response;
|
|
1103
1085
|
};
|
|
1104
1086
|
const de_GetRecommendationSummariesCommandError = async (output, context) => {
|
|
1105
1087
|
const parsedOutput = {
|
|
@@ -1131,10 +1113,9 @@ const de_GetRecommendationSummariesCommandError = async (output, context) => {
|
|
|
1131
1113
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1132
1114
|
default:
|
|
1133
1115
|
const parsedBody = parsedOutput.body;
|
|
1134
|
-
throwDefaultError({
|
|
1116
|
+
return throwDefaultError({
|
|
1135
1117
|
output,
|
|
1136
1118
|
parsedBody,
|
|
1137
|
-
exceptionCtor: __BaseException,
|
|
1138
1119
|
errorCode,
|
|
1139
1120
|
});
|
|
1140
1121
|
}
|
|
@@ -1145,12 +1126,12 @@ export const de_PutRecommendationPreferencesCommand = async (output, context) =>
|
|
|
1145
1126
|
}
|
|
1146
1127
|
const data = await parseBody(output.body, context);
|
|
1147
1128
|
let contents = {};
|
|
1148
|
-
contents =
|
|
1129
|
+
contents = _json(data);
|
|
1149
1130
|
const response = {
|
|
1150
1131
|
$metadata: deserializeMetadata(output),
|
|
1151
1132
|
...contents,
|
|
1152
1133
|
};
|
|
1153
|
-
return
|
|
1134
|
+
return response;
|
|
1154
1135
|
};
|
|
1155
1136
|
const de_PutRecommendationPreferencesCommandError = async (output, context) => {
|
|
1156
1137
|
const parsedOutput = {
|
|
@@ -1185,10 +1166,9 @@ const de_PutRecommendationPreferencesCommandError = async (output, context) => {
|
|
|
1185
1166
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1186
1167
|
default:
|
|
1187
1168
|
const parsedBody = parsedOutput.body;
|
|
1188
|
-
throwDefaultError({
|
|
1169
|
+
return throwDefaultError({
|
|
1189
1170
|
output,
|
|
1190
1171
|
parsedBody,
|
|
1191
|
-
exceptionCtor: __BaseException,
|
|
1192
1172
|
errorCode,
|
|
1193
1173
|
});
|
|
1194
1174
|
}
|
|
@@ -1199,12 +1179,12 @@ export const de_UpdateEnrollmentStatusCommand = async (output, context) => {
|
|
|
1199
1179
|
}
|
|
1200
1180
|
const data = await parseBody(output.body, context);
|
|
1201
1181
|
let contents = {};
|
|
1202
|
-
contents =
|
|
1182
|
+
contents = _json(data);
|
|
1203
1183
|
const response = {
|
|
1204
1184
|
$metadata: deserializeMetadata(output),
|
|
1205
1185
|
...contents,
|
|
1206
1186
|
};
|
|
1207
|
-
return
|
|
1187
|
+
return response;
|
|
1208
1188
|
};
|
|
1209
1189
|
const de_UpdateEnrollmentStatusCommandError = async (output, context) => {
|
|
1210
1190
|
const parsedOutput = {
|
|
@@ -1233,17 +1213,16 @@ const de_UpdateEnrollmentStatusCommandError = async (output, context) => {
|
|
|
1233
1213
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1234
1214
|
default:
|
|
1235
1215
|
const parsedBody = parsedOutput.body;
|
|
1236
|
-
throwDefaultError({
|
|
1216
|
+
return throwDefaultError({
|
|
1237
1217
|
output,
|
|
1238
1218
|
parsedBody,
|
|
1239
|
-
exceptionCtor: __BaseException,
|
|
1240
1219
|
errorCode,
|
|
1241
1220
|
});
|
|
1242
1221
|
}
|
|
1243
1222
|
};
|
|
1244
1223
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1245
1224
|
const body = parsedOutput.body;
|
|
1246
|
-
const deserialized =
|
|
1225
|
+
const deserialized = _json(body);
|
|
1247
1226
|
const exception = new AccessDeniedException({
|
|
1248
1227
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1249
1228
|
...deserialized,
|
|
@@ -1252,7 +1231,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1252
1231
|
};
|
|
1253
1232
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1254
1233
|
const body = parsedOutput.body;
|
|
1255
|
-
const deserialized =
|
|
1234
|
+
const deserialized = _json(body);
|
|
1256
1235
|
const exception = new InternalServerException({
|
|
1257
1236
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1258
1237
|
...deserialized,
|
|
@@ -1261,7 +1240,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1261
1240
|
};
|
|
1262
1241
|
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
1263
1242
|
const body = parsedOutput.body;
|
|
1264
|
-
const deserialized =
|
|
1243
|
+
const deserialized = _json(body);
|
|
1265
1244
|
const exception = new InvalidParameterValueException({
|
|
1266
1245
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1267
1246
|
...deserialized,
|
|
@@ -1270,7 +1249,7 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
|
1270
1249
|
};
|
|
1271
1250
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1272
1251
|
const body = parsedOutput.body;
|
|
1273
|
-
const deserialized =
|
|
1252
|
+
const deserialized = _json(body);
|
|
1274
1253
|
const exception = new LimitExceededException({
|
|
1275
1254
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1276
1255
|
...deserialized,
|
|
@@ -1279,7 +1258,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1279
1258
|
};
|
|
1280
1259
|
const de_MissingAuthenticationTokenRes = async (parsedOutput, context) => {
|
|
1281
1260
|
const body = parsedOutput.body;
|
|
1282
|
-
const deserialized =
|
|
1261
|
+
const deserialized = _json(body);
|
|
1283
1262
|
const exception = new MissingAuthenticationToken({
|
|
1284
1263
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1285
1264
|
...deserialized,
|
|
@@ -1288,7 +1267,7 @@ const de_MissingAuthenticationTokenRes = async (parsedOutput, context) => {
|
|
|
1288
1267
|
};
|
|
1289
1268
|
const de_OptInRequiredExceptionRes = async (parsedOutput, context) => {
|
|
1290
1269
|
const body = parsedOutput.body;
|
|
1291
|
-
const deserialized =
|
|
1270
|
+
const deserialized = _json(body);
|
|
1292
1271
|
const exception = new OptInRequiredException({
|
|
1293
1272
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1294
1273
|
...deserialized,
|
|
@@ -1297,7 +1276,7 @@ const de_OptInRequiredExceptionRes = async (parsedOutput, context) => {
|
|
|
1297
1276
|
};
|
|
1298
1277
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1299
1278
|
const body = parsedOutput.body;
|
|
1300
|
-
const deserialized =
|
|
1279
|
+
const deserialized = _json(body);
|
|
1301
1280
|
const exception = new ResourceNotFoundException({
|
|
1302
1281
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1303
1282
|
...deserialized,
|
|
@@ -1306,7 +1285,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1306
1285
|
};
|
|
1307
1286
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1308
1287
|
const body = parsedOutput.body;
|
|
1309
|
-
const deserialized =
|
|
1288
|
+
const deserialized = _json(body);
|
|
1310
1289
|
const exception = new ServiceUnavailableException({
|
|
1311
1290
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1312
1291
|
...deserialized,
|
|
@@ -1315,511 +1294,78 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1315
1294
|
};
|
|
1316
1295
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1317
1296
|
const body = parsedOutput.body;
|
|
1318
|
-
const deserialized =
|
|
1297
|
+
const deserialized = _json(body);
|
|
1319
1298
|
const exception = new ThrottlingException({
|
|
1320
1299
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1321
1300
|
...deserialized,
|
|
1322
1301
|
});
|
|
1323
1302
|
return __decorateServiceException(exception, body);
|
|
1324
1303
|
};
|
|
1325
|
-
const se_AccountIds = (input, context) => {
|
|
1326
|
-
return input
|
|
1327
|
-
.filter((e) => e != null)
|
|
1328
|
-
.map((entry) => {
|
|
1329
|
-
return entry;
|
|
1330
|
-
});
|
|
1331
|
-
};
|
|
1332
|
-
const se_AutoScalingGroupArns = (input, context) => {
|
|
1333
|
-
return input
|
|
1334
|
-
.filter((e) => e != null)
|
|
1335
|
-
.map((entry) => {
|
|
1336
|
-
return entry;
|
|
1337
|
-
});
|
|
1338
|
-
};
|
|
1339
|
-
const se_CpuVendorArchitectures = (input, context) => {
|
|
1340
|
-
return input
|
|
1341
|
-
.filter((e) => e != null)
|
|
1342
|
-
.map((entry) => {
|
|
1343
|
-
return entry;
|
|
1344
|
-
});
|
|
1345
|
-
};
|
|
1346
|
-
const se_DeleteRecommendationPreferencesRequest = (input, context) => {
|
|
1347
|
-
return {
|
|
1348
|
-
...(input.recommendationPreferenceNames != null && {
|
|
1349
|
-
recommendationPreferenceNames: se_RecommendationPreferenceNames(input.recommendationPreferenceNames, context),
|
|
1350
|
-
}),
|
|
1351
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1352
|
-
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1353
|
-
};
|
|
1354
|
-
};
|
|
1355
|
-
const se_DescribeRecommendationExportJobsRequest = (input, context) => {
|
|
1356
|
-
return {
|
|
1357
|
-
...(input.filters != null && { filters: se_JobFilters(input.filters, context) }),
|
|
1358
|
-
...(input.jobIds != null && { jobIds: se_JobIds(input.jobIds, context) }),
|
|
1359
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1360
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1361
|
-
};
|
|
1362
|
-
};
|
|
1363
|
-
const se_EBSFilter = (input, context) => {
|
|
1364
|
-
return {
|
|
1365
|
-
...(input.name != null && { name: input.name }),
|
|
1366
|
-
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1367
|
-
};
|
|
1368
|
-
};
|
|
1369
|
-
const se_EBSFilters = (input, context) => {
|
|
1370
|
-
return input
|
|
1371
|
-
.filter((e) => e != null)
|
|
1372
|
-
.map((entry) => {
|
|
1373
|
-
return se_EBSFilter(entry, context);
|
|
1374
|
-
});
|
|
1375
|
-
};
|
|
1376
|
-
const se_ECSServiceRecommendationFilter = (input, context) => {
|
|
1377
|
-
return {
|
|
1378
|
-
...(input.name != null && { name: input.name }),
|
|
1379
|
-
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
const se_ECSServiceRecommendationFilters = (input, context) => {
|
|
1383
|
-
return input
|
|
1384
|
-
.filter((e) => e != null)
|
|
1385
|
-
.map((entry) => {
|
|
1386
|
-
return se_ECSServiceRecommendationFilter(entry, context);
|
|
1387
|
-
});
|
|
1388
|
-
};
|
|
1389
|
-
const se_EnrollmentFilter = (input, context) => {
|
|
1390
|
-
return {
|
|
1391
|
-
...(input.name != null && { name: input.name }),
|
|
1392
|
-
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1393
|
-
};
|
|
1394
|
-
};
|
|
1395
|
-
const se_EnrollmentFilters = (input, context) => {
|
|
1396
|
-
return input
|
|
1397
|
-
.filter((e) => e != null)
|
|
1398
|
-
.map((entry) => {
|
|
1399
|
-
return se_EnrollmentFilter(entry, context);
|
|
1400
|
-
});
|
|
1401
|
-
};
|
|
1402
|
-
const se_ExportableAutoScalingGroupFields = (input, context) => {
|
|
1403
|
-
return input
|
|
1404
|
-
.filter((e) => e != null)
|
|
1405
|
-
.map((entry) => {
|
|
1406
|
-
return entry;
|
|
1407
|
-
});
|
|
1408
|
-
};
|
|
1409
|
-
const se_ExportableECSServiceFields = (input, context) => {
|
|
1410
|
-
return input
|
|
1411
|
-
.filter((e) => e != null)
|
|
1412
|
-
.map((entry) => {
|
|
1413
|
-
return entry;
|
|
1414
|
-
});
|
|
1415
|
-
};
|
|
1416
|
-
const se_ExportableInstanceFields = (input, context) => {
|
|
1417
|
-
return input
|
|
1418
|
-
.filter((e) => e != null)
|
|
1419
|
-
.map((entry) => {
|
|
1420
|
-
return entry;
|
|
1421
|
-
});
|
|
1422
|
-
};
|
|
1423
|
-
const se_ExportableLambdaFunctionFields = (input, context) => {
|
|
1424
|
-
return input
|
|
1425
|
-
.filter((e) => e != null)
|
|
1426
|
-
.map((entry) => {
|
|
1427
|
-
return entry;
|
|
1428
|
-
});
|
|
1429
|
-
};
|
|
1430
|
-
const se_ExportableVolumeFields = (input, context) => {
|
|
1431
|
-
return input
|
|
1432
|
-
.filter((e) => e != null)
|
|
1433
|
-
.map((entry) => {
|
|
1434
|
-
return entry;
|
|
1435
|
-
});
|
|
1436
|
-
};
|
|
1437
|
-
const se_ExportAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1438
|
-
return {
|
|
1439
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1440
|
-
...(input.fieldsToExport != null && {
|
|
1441
|
-
fieldsToExport: se_ExportableAutoScalingGroupFields(input.fieldsToExport, context),
|
|
1442
|
-
}),
|
|
1443
|
-
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1444
|
-
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1445
|
-
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1446
|
-
...(input.recommendationPreferences != null && {
|
|
1447
|
-
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1448
|
-
}),
|
|
1449
|
-
...(input.s3DestinationConfig != null && {
|
|
1450
|
-
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1451
|
-
}),
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1454
|
-
const se_ExportEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1455
|
-
return {
|
|
1456
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1457
|
-
...(input.fieldsToExport != null && { fieldsToExport: se_ExportableVolumeFields(input.fieldsToExport, context) }),
|
|
1458
|
-
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1459
|
-
...(input.filters != null && { filters: se_EBSFilters(input.filters, context) }),
|
|
1460
|
-
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1461
|
-
...(input.s3DestinationConfig != null && {
|
|
1462
|
-
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1463
|
-
}),
|
|
1464
|
-
};
|
|
1465
|
-
};
|
|
1466
|
-
const se_ExportEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1467
|
-
return {
|
|
1468
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1469
|
-
...(input.fieldsToExport != null && { fieldsToExport: se_ExportableInstanceFields(input.fieldsToExport, context) }),
|
|
1470
|
-
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1471
|
-
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1472
|
-
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1473
|
-
...(input.recommendationPreferences != null && {
|
|
1474
|
-
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1475
|
-
}),
|
|
1476
|
-
...(input.s3DestinationConfig != null && {
|
|
1477
|
-
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1478
|
-
}),
|
|
1479
|
-
};
|
|
1480
|
-
};
|
|
1481
|
-
const se_ExportECSServiceRecommendationsRequest = (input, context) => {
|
|
1482
|
-
return {
|
|
1483
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1484
|
-
...(input.fieldsToExport != null && {
|
|
1485
|
-
fieldsToExport: se_ExportableECSServiceFields(input.fieldsToExport, context),
|
|
1486
|
-
}),
|
|
1487
|
-
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1488
|
-
...(input.filters != null && { filters: se_ECSServiceRecommendationFilters(input.filters, context) }),
|
|
1489
|
-
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1490
|
-
...(input.s3DestinationConfig != null && {
|
|
1491
|
-
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1492
|
-
}),
|
|
1493
|
-
};
|
|
1494
|
-
};
|
|
1495
|
-
const se_ExportLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1496
|
-
return {
|
|
1497
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1498
|
-
...(input.fieldsToExport != null && {
|
|
1499
|
-
fieldsToExport: se_ExportableLambdaFunctionFields(input.fieldsToExport, context),
|
|
1500
|
-
}),
|
|
1501
|
-
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1502
|
-
...(input.filters != null && { filters: se_LambdaFunctionRecommendationFilters(input.filters, context) }),
|
|
1503
|
-
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1504
|
-
...(input.s3DestinationConfig != null && {
|
|
1505
|
-
s3DestinationConfig: se_S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1506
|
-
}),
|
|
1507
|
-
};
|
|
1508
|
-
};
|
|
1509
|
-
const se_ExternalMetricsPreference = (input, context) => {
|
|
1510
|
-
return {
|
|
1511
|
-
...(input.source != null && { source: input.source }),
|
|
1512
|
-
};
|
|
1513
|
-
};
|
|
1514
|
-
const se_Filter = (input, context) => {
|
|
1515
|
-
return {
|
|
1516
|
-
...(input.name != null && { name: input.name }),
|
|
1517
|
-
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1518
|
-
};
|
|
1519
|
-
};
|
|
1520
|
-
const se_Filters = (input, context) => {
|
|
1521
|
-
return input
|
|
1522
|
-
.filter((e) => e != null)
|
|
1523
|
-
.map((entry) => {
|
|
1524
|
-
return se_Filter(entry, context);
|
|
1525
|
-
});
|
|
1526
|
-
};
|
|
1527
|
-
const se_FilterValues = (input, context) => {
|
|
1528
|
-
return input
|
|
1529
|
-
.filter((e) => e != null)
|
|
1530
|
-
.map((entry) => {
|
|
1531
|
-
return entry;
|
|
1532
|
-
});
|
|
1533
|
-
};
|
|
1534
|
-
const se_FunctionArns = (input, context) => {
|
|
1535
|
-
return input
|
|
1536
|
-
.filter((e) => e != null)
|
|
1537
|
-
.map((entry) => {
|
|
1538
|
-
return entry;
|
|
1539
|
-
});
|
|
1540
|
-
};
|
|
1541
|
-
const se_GetAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1542
|
-
return {
|
|
1543
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1544
|
-
...(input.autoScalingGroupArns != null && {
|
|
1545
|
-
autoScalingGroupArns: se_AutoScalingGroupArns(input.autoScalingGroupArns, context),
|
|
1546
|
-
}),
|
|
1547
|
-
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1548
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1549
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1550
|
-
...(input.recommendationPreferences != null && {
|
|
1551
|
-
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1552
|
-
}),
|
|
1553
|
-
};
|
|
1554
|
-
};
|
|
1555
|
-
const se_GetEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1556
|
-
return {
|
|
1557
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1558
|
-
...(input.filters != null && { filters: se_EBSFilters(input.filters, context) }),
|
|
1559
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1560
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1561
|
-
...(input.volumeArns != null && { volumeArns: se_VolumeArns(input.volumeArns, context) }),
|
|
1562
|
-
};
|
|
1563
|
-
};
|
|
1564
|
-
const se_GetEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1565
|
-
return {
|
|
1566
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1567
|
-
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1568
|
-
...(input.instanceArns != null && { instanceArns: se_InstanceArns(input.instanceArns, context) }),
|
|
1569
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1570
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1571
|
-
...(input.recommendationPreferences != null && {
|
|
1572
|
-
recommendationPreferences: se_RecommendationPreferences(input.recommendationPreferences, context),
|
|
1573
|
-
}),
|
|
1574
|
-
};
|
|
1575
|
-
};
|
|
1576
1304
|
const se_GetEC2RecommendationProjectedMetricsRequest = (input, context) => {
|
|
1577
|
-
return {
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1585
|
-
...(input.stat != null && { stat: input.stat }),
|
|
1586
|
-
};
|
|
1587
|
-
};
|
|
1588
|
-
const se_GetECSServiceRecommendationProjectedMetricsRequest = (input, context) => {
|
|
1589
|
-
return {
|
|
1590
|
-
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1591
|
-
...(input.period != null && { period: input.period }),
|
|
1592
|
-
...(input.serviceArn != null && { serviceArn: input.serviceArn }),
|
|
1593
|
-
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1594
|
-
...(input.stat != null && { stat: input.stat }),
|
|
1595
|
-
};
|
|
1596
|
-
};
|
|
1597
|
-
const se_GetECSServiceRecommendationsRequest = (input, context) => {
|
|
1598
|
-
return {
|
|
1599
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1600
|
-
...(input.filters != null && { filters: se_ECSServiceRecommendationFilters(input.filters, context) }),
|
|
1601
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1602
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1603
|
-
...(input.serviceArns != null && { serviceArns: se_ServiceArns(input.serviceArns, context) }),
|
|
1604
|
-
};
|
|
1605
|
-
};
|
|
1606
|
-
const se_GetEffectiveRecommendationPreferencesRequest = (input, context) => {
|
|
1607
|
-
return {
|
|
1608
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1609
|
-
};
|
|
1610
|
-
};
|
|
1611
|
-
const se_GetEnrollmentStatusesForOrganizationRequest = (input, context) => {
|
|
1612
|
-
return {
|
|
1613
|
-
...(input.filters != null && { filters: se_EnrollmentFilters(input.filters, context) }),
|
|
1614
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1615
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1616
|
-
};
|
|
1617
|
-
};
|
|
1618
|
-
const se_GetEnrollmentStatusRequest = (input, context) => {
|
|
1619
|
-
return {};
|
|
1620
|
-
};
|
|
1621
|
-
const se_GetLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1622
|
-
return {
|
|
1623
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1624
|
-
...(input.filters != null && { filters: se_LambdaFunctionRecommendationFilters(input.filters, context) }),
|
|
1625
|
-
...(input.functionArns != null && { functionArns: se_FunctionArns(input.functionArns, context) }),
|
|
1626
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1627
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1628
|
-
};
|
|
1629
|
-
};
|
|
1630
|
-
const se_GetRecommendationPreferencesRequest = (input, context) => {
|
|
1631
|
-
return {
|
|
1632
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1633
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1634
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1635
|
-
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1636
|
-
};
|
|
1637
|
-
};
|
|
1638
|
-
const se_GetRecommendationSummariesRequest = (input, context) => {
|
|
1639
|
-
return {
|
|
1640
|
-
...(input.accountIds != null && { accountIds: se_AccountIds(input.accountIds, context) }),
|
|
1641
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1642
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1643
|
-
};
|
|
1644
|
-
};
|
|
1645
|
-
const se_InstanceArns = (input, context) => {
|
|
1646
|
-
return input
|
|
1647
|
-
.filter((e) => e != null)
|
|
1648
|
-
.map((entry) => {
|
|
1649
|
-
return entry;
|
|
1650
|
-
});
|
|
1651
|
-
};
|
|
1652
|
-
const se_JobFilter = (input, context) => {
|
|
1653
|
-
return {
|
|
1654
|
-
...(input.name != null && { name: input.name }),
|
|
1655
|
-
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1656
|
-
};
|
|
1657
|
-
};
|
|
1658
|
-
const se_JobFilters = (input, context) => {
|
|
1659
|
-
return input
|
|
1660
|
-
.filter((e) => e != null)
|
|
1661
|
-
.map((entry) => {
|
|
1662
|
-
return se_JobFilter(entry, context);
|
|
1305
|
+
return take(input, {
|
|
1306
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
1307
|
+
instanceArn: [],
|
|
1308
|
+
period: [],
|
|
1309
|
+
recommendationPreferences: _json,
|
|
1310
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
1311
|
+
stat: [],
|
|
1663
1312
|
});
|
|
1664
1313
|
};
|
|
1665
|
-
const
|
|
1666
|
-
return input
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
const se_LambdaFunctionRecommendationFilter = (input, context) => {
|
|
1673
|
-
return {
|
|
1674
|
-
...(input.name != null && { name: input.name }),
|
|
1675
|
-
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1676
|
-
};
|
|
1677
|
-
};
|
|
1678
|
-
const se_LambdaFunctionRecommendationFilters = (input, context) => {
|
|
1679
|
-
return input
|
|
1680
|
-
.filter((e) => e != null)
|
|
1681
|
-
.map((entry) => {
|
|
1682
|
-
return se_LambdaFunctionRecommendationFilter(entry, context);
|
|
1683
|
-
});
|
|
1684
|
-
};
|
|
1685
|
-
const se_PutRecommendationPreferencesRequest = (input, context) => {
|
|
1686
|
-
return {
|
|
1687
|
-
...(input.enhancedInfrastructureMetrics != null && {
|
|
1688
|
-
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
1689
|
-
}),
|
|
1690
|
-
...(input.externalMetricsPreference != null && {
|
|
1691
|
-
externalMetricsPreference: se_ExternalMetricsPreference(input.externalMetricsPreference, context),
|
|
1692
|
-
}),
|
|
1693
|
-
...(input.inferredWorkloadTypes != null && { inferredWorkloadTypes: input.inferredWorkloadTypes }),
|
|
1694
|
-
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1695
|
-
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1696
|
-
};
|
|
1697
|
-
};
|
|
1698
|
-
const se_RecommendationPreferenceNames = (input, context) => {
|
|
1699
|
-
return input
|
|
1700
|
-
.filter((e) => e != null)
|
|
1701
|
-
.map((entry) => {
|
|
1702
|
-
return entry;
|
|
1703
|
-
});
|
|
1704
|
-
};
|
|
1705
|
-
const se_RecommendationPreferences = (input, context) => {
|
|
1706
|
-
return {
|
|
1707
|
-
...(input.cpuVendorArchitectures != null && {
|
|
1708
|
-
cpuVendorArchitectures: se_CpuVendorArchitectures(input.cpuVendorArchitectures, context),
|
|
1709
|
-
}),
|
|
1710
|
-
};
|
|
1711
|
-
};
|
|
1712
|
-
const se_S3DestinationConfig = (input, context) => {
|
|
1713
|
-
return {
|
|
1714
|
-
...(input.bucket != null && { bucket: input.bucket }),
|
|
1715
|
-
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
1716
|
-
};
|
|
1717
|
-
};
|
|
1718
|
-
const se_Scope = (input, context) => {
|
|
1719
|
-
return {
|
|
1720
|
-
...(input.name != null && { name: input.name }),
|
|
1721
|
-
...(input.value != null && { value: input.value }),
|
|
1722
|
-
};
|
|
1723
|
-
};
|
|
1724
|
-
const se_ServiceArns = (input, context) => {
|
|
1725
|
-
return input
|
|
1726
|
-
.filter((e) => e != null)
|
|
1727
|
-
.map((entry) => {
|
|
1728
|
-
return entry;
|
|
1729
|
-
});
|
|
1730
|
-
};
|
|
1731
|
-
const se_UpdateEnrollmentStatusRequest = (input, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1734
|
-
...(input.status != null && { status: input.status }),
|
|
1735
|
-
};
|
|
1736
|
-
};
|
|
1737
|
-
const se_VolumeArns = (input, context) => {
|
|
1738
|
-
return input
|
|
1739
|
-
.filter((e) => e != null)
|
|
1740
|
-
.map((entry) => {
|
|
1741
|
-
return entry;
|
|
1314
|
+
const se_GetECSServiceRecommendationProjectedMetricsRequest = (input, context) => {
|
|
1315
|
+
return take(input, {
|
|
1316
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
1317
|
+
period: [],
|
|
1318
|
+
serviceArn: [],
|
|
1319
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
1320
|
+
stat: [],
|
|
1742
1321
|
});
|
|
1743
1322
|
};
|
|
1744
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1745
|
-
return {
|
|
1746
|
-
message: __expectString(output.message),
|
|
1747
|
-
};
|
|
1748
|
-
};
|
|
1749
1323
|
const de_AccountEnrollmentStatus = (output, context) => {
|
|
1750
|
-
return {
|
|
1751
|
-
accountId: __expectString
|
|
1752
|
-
lastUpdatedTimestamp:
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
statusReason: __expectString(output.statusReason),
|
|
1757
|
-
};
|
|
1324
|
+
return take(output, {
|
|
1325
|
+
accountId: __expectString,
|
|
1326
|
+
lastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1327
|
+
status: __expectString,
|
|
1328
|
+
statusReason: __expectString,
|
|
1329
|
+
});
|
|
1758
1330
|
};
|
|
1759
1331
|
const de_AccountEnrollmentStatuses = (output, context) => {
|
|
1760
1332
|
const retVal = (output || [])
|
|
1761
1333
|
.filter((e) => e != null)
|
|
1762
1334
|
.map((entry) => {
|
|
1763
|
-
if (entry === null) {
|
|
1764
|
-
return null;
|
|
1765
|
-
}
|
|
1766
1335
|
return de_AccountEnrollmentStatus(entry, context);
|
|
1767
1336
|
});
|
|
1768
1337
|
return retVal;
|
|
1769
1338
|
};
|
|
1770
|
-
const de_AutoScalingGroupConfiguration = (output, context) => {
|
|
1771
|
-
return {
|
|
1772
|
-
desiredCapacity: __expectInt32(output.desiredCapacity),
|
|
1773
|
-
instanceType: __expectString(output.instanceType),
|
|
1774
|
-
maxSize: __expectInt32(output.maxSize),
|
|
1775
|
-
minSize: __expectInt32(output.minSize),
|
|
1776
|
-
};
|
|
1777
|
-
};
|
|
1778
1339
|
const de_AutoScalingGroupRecommendation = (output, context) => {
|
|
1779
|
-
return {
|
|
1780
|
-
accountId: __expectString
|
|
1781
|
-
autoScalingGroupArn: __expectString
|
|
1782
|
-
autoScalingGroupName: __expectString
|
|
1783
|
-
currentConfiguration:
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
: undefined,
|
|
1794
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
1795
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
1796
|
-
: undefined,
|
|
1797
|
-
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
1798
|
-
recommendationOptions: output.recommendationOptions != null
|
|
1799
|
-
? de_AutoScalingGroupRecommendationOptions(output.recommendationOptions, context)
|
|
1800
|
-
: undefined,
|
|
1801
|
-
utilizationMetrics: output.utilizationMetrics != null ? de_UtilizationMetrics(output.utilizationMetrics, context) : undefined,
|
|
1802
|
-
};
|
|
1340
|
+
return take(output, {
|
|
1341
|
+
accountId: __expectString,
|
|
1342
|
+
autoScalingGroupArn: __expectString,
|
|
1343
|
+
autoScalingGroupName: __expectString,
|
|
1344
|
+
currentConfiguration: _json,
|
|
1345
|
+
currentPerformanceRisk: __expectString,
|
|
1346
|
+
effectiveRecommendationPreferences: _json,
|
|
1347
|
+
finding: __expectString,
|
|
1348
|
+
inferredWorkloadTypes: _json,
|
|
1349
|
+
lastRefreshTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1350
|
+
lookBackPeriodInDays: __limitedParseDouble,
|
|
1351
|
+
recommendationOptions: (_) => de_AutoScalingGroupRecommendationOptions(_, context),
|
|
1352
|
+
utilizationMetrics: (_) => de_UtilizationMetrics(_, context),
|
|
1353
|
+
});
|
|
1803
1354
|
};
|
|
1804
1355
|
const de_AutoScalingGroupRecommendationOption = (output, context) => {
|
|
1805
|
-
return {
|
|
1806
|
-
configuration:
|
|
1807
|
-
migrationEffort: __expectString
|
|
1808
|
-
performanceRisk: __limitedParseDouble
|
|
1809
|
-
projectedUtilizationMetrics:
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
1814
|
-
};
|
|
1356
|
+
return take(output, {
|
|
1357
|
+
configuration: _json,
|
|
1358
|
+
migrationEffort: __expectString,
|
|
1359
|
+
performanceRisk: __limitedParseDouble,
|
|
1360
|
+
projectedUtilizationMetrics: (_) => de_ProjectedUtilizationMetrics(_, context),
|
|
1361
|
+
rank: __expectInt32,
|
|
1362
|
+
savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
|
|
1363
|
+
});
|
|
1815
1364
|
};
|
|
1816
1365
|
const de_AutoScalingGroupRecommendationOptions = (output, context) => {
|
|
1817
1366
|
const retVal = (output || [])
|
|
1818
1367
|
.filter((e) => e != null)
|
|
1819
1368
|
.map((entry) => {
|
|
1820
|
-
if (entry === null) {
|
|
1821
|
-
return null;
|
|
1822
|
-
}
|
|
1823
1369
|
return de_AutoScalingGroupRecommendationOption(entry, context);
|
|
1824
1370
|
});
|
|
1825
1371
|
return retVal;
|
|
@@ -1828,195 +1374,91 @@ const de_AutoScalingGroupRecommendations = (output, context) => {
|
|
|
1828
1374
|
const retVal = (output || [])
|
|
1829
1375
|
.filter((e) => e != null)
|
|
1830
1376
|
.map((entry) => {
|
|
1831
|
-
if (entry === null) {
|
|
1832
|
-
return null;
|
|
1833
|
-
}
|
|
1834
1377
|
return de_AutoScalingGroupRecommendation(entry, context);
|
|
1835
1378
|
});
|
|
1836
1379
|
return retVal;
|
|
1837
1380
|
};
|
|
1838
|
-
const de_ContainerConfiguration = (output, context) => {
|
|
1839
|
-
return {
|
|
1840
|
-
containerName: __expectString(output.containerName),
|
|
1841
|
-
cpu: __expectInt32(output.cpu),
|
|
1842
|
-
memorySizeConfiguration: output.memorySizeConfiguration != null
|
|
1843
|
-
? de_MemorySizeConfiguration(output.memorySizeConfiguration, context)
|
|
1844
|
-
: undefined,
|
|
1845
|
-
};
|
|
1846
|
-
};
|
|
1847
|
-
const de_ContainerConfigurations = (output, context) => {
|
|
1848
|
-
const retVal = (output || [])
|
|
1849
|
-
.filter((e) => e != null)
|
|
1850
|
-
.map((entry) => {
|
|
1851
|
-
if (entry === null) {
|
|
1852
|
-
return null;
|
|
1853
|
-
}
|
|
1854
|
-
return de_ContainerConfiguration(entry, context);
|
|
1855
|
-
});
|
|
1856
|
-
return retVal;
|
|
1857
|
-
};
|
|
1858
|
-
const de_ContainerRecommendation = (output, context) => {
|
|
1859
|
-
return {
|
|
1860
|
-
containerName: __expectString(output.containerName),
|
|
1861
|
-
cpu: __expectInt32(output.cpu),
|
|
1862
|
-
memorySizeConfiguration: output.memorySizeConfiguration != null
|
|
1863
|
-
? de_MemorySizeConfiguration(output.memorySizeConfiguration, context)
|
|
1864
|
-
: undefined,
|
|
1865
|
-
};
|
|
1866
|
-
};
|
|
1867
|
-
const de_ContainerRecommendations = (output, context) => {
|
|
1868
|
-
const retVal = (output || [])
|
|
1869
|
-
.filter((e) => e != null)
|
|
1870
|
-
.map((entry) => {
|
|
1871
|
-
if (entry === null) {
|
|
1872
|
-
return null;
|
|
1873
|
-
}
|
|
1874
|
-
return de_ContainerRecommendation(entry, context);
|
|
1875
|
-
});
|
|
1876
|
-
return retVal;
|
|
1877
|
-
};
|
|
1878
|
-
const de_CpuVendorArchitectures = (output, context) => {
|
|
1879
|
-
const retVal = (output || [])
|
|
1880
|
-
.filter((e) => e != null)
|
|
1881
|
-
.map((entry) => {
|
|
1882
|
-
if (entry === null) {
|
|
1883
|
-
return null;
|
|
1884
|
-
}
|
|
1885
|
-
return __expectString(entry);
|
|
1886
|
-
});
|
|
1887
|
-
return retVal;
|
|
1888
|
-
};
|
|
1889
|
-
const de_CurrentPerformanceRiskRatings = (output, context) => {
|
|
1890
|
-
return {
|
|
1891
|
-
high: __expectLong(output.high),
|
|
1892
|
-
low: __expectLong(output.low),
|
|
1893
|
-
medium: __expectLong(output.medium),
|
|
1894
|
-
veryLow: __expectLong(output.veryLow),
|
|
1895
|
-
};
|
|
1896
|
-
};
|
|
1897
|
-
const de_DeleteRecommendationPreferencesResponse = (output, context) => {
|
|
1898
|
-
return {};
|
|
1899
|
-
};
|
|
1900
1381
|
const de_DescribeRecommendationExportJobsResponse = (output, context) => {
|
|
1901
|
-
return {
|
|
1902
|
-
nextToken: __expectString
|
|
1903
|
-
recommendationExportJobs:
|
|
1904
|
-
|
|
1905
|
-
: undefined,
|
|
1906
|
-
};
|
|
1382
|
+
return take(output, {
|
|
1383
|
+
nextToken: __expectString,
|
|
1384
|
+
recommendationExportJobs: (_) => de_RecommendationExportJobs(_, context),
|
|
1385
|
+
});
|
|
1907
1386
|
};
|
|
1908
1387
|
const de_EBSUtilizationMetric = (output, context) => {
|
|
1909
|
-
return {
|
|
1910
|
-
name: __expectString
|
|
1911
|
-
statistic: __expectString
|
|
1912
|
-
value: __limitedParseDouble
|
|
1913
|
-
};
|
|
1388
|
+
return take(output, {
|
|
1389
|
+
name: __expectString,
|
|
1390
|
+
statistic: __expectString,
|
|
1391
|
+
value: __limitedParseDouble,
|
|
1392
|
+
});
|
|
1914
1393
|
};
|
|
1915
1394
|
const de_EBSUtilizationMetrics = (output, context) => {
|
|
1916
1395
|
const retVal = (output || [])
|
|
1917
1396
|
.filter((e) => e != null)
|
|
1918
1397
|
.map((entry) => {
|
|
1919
|
-
if (entry === null) {
|
|
1920
|
-
return null;
|
|
1921
|
-
}
|
|
1922
1398
|
return de_EBSUtilizationMetric(entry, context);
|
|
1923
1399
|
});
|
|
1924
1400
|
return retVal;
|
|
1925
1401
|
};
|
|
1926
1402
|
const de_ECSServiceProjectedMetric = (output, context) => {
|
|
1927
|
-
return {
|
|
1928
|
-
lowerBoundValues:
|
|
1929
|
-
name: __expectString
|
|
1930
|
-
timestamps:
|
|
1931
|
-
upperBoundValues:
|
|
1932
|
-
};
|
|
1403
|
+
return take(output, {
|
|
1404
|
+
lowerBoundValues: (_) => de_MetricValues(_, context),
|
|
1405
|
+
name: __expectString,
|
|
1406
|
+
timestamps: (_) => de_Timestamps(_, context),
|
|
1407
|
+
upperBoundValues: (_) => de_MetricValues(_, context),
|
|
1408
|
+
});
|
|
1933
1409
|
};
|
|
1934
1410
|
const de_ECSServiceProjectedMetrics = (output, context) => {
|
|
1935
1411
|
const retVal = (output || [])
|
|
1936
1412
|
.filter((e) => e != null)
|
|
1937
1413
|
.map((entry) => {
|
|
1938
|
-
if (entry === null) {
|
|
1939
|
-
return null;
|
|
1940
|
-
}
|
|
1941
1414
|
return de_ECSServiceProjectedMetric(entry, context);
|
|
1942
1415
|
});
|
|
1943
1416
|
return retVal;
|
|
1944
1417
|
};
|
|
1945
1418
|
const de_ECSServiceProjectedUtilizationMetric = (output, context) => {
|
|
1946
|
-
return {
|
|
1947
|
-
lowerBoundValue: __limitedParseDouble
|
|
1948
|
-
name: __expectString
|
|
1949
|
-
statistic: __expectString
|
|
1950
|
-
upperBoundValue: __limitedParseDouble
|
|
1951
|
-
};
|
|
1419
|
+
return take(output, {
|
|
1420
|
+
lowerBoundValue: __limitedParseDouble,
|
|
1421
|
+
name: __expectString,
|
|
1422
|
+
statistic: __expectString,
|
|
1423
|
+
upperBoundValue: __limitedParseDouble,
|
|
1424
|
+
});
|
|
1952
1425
|
};
|
|
1953
1426
|
const de_ECSServiceProjectedUtilizationMetrics = (output, context) => {
|
|
1954
1427
|
const retVal = (output || [])
|
|
1955
1428
|
.filter((e) => e != null)
|
|
1956
1429
|
.map((entry) => {
|
|
1957
|
-
if (entry === null) {
|
|
1958
|
-
return null;
|
|
1959
|
-
}
|
|
1960
1430
|
return de_ECSServiceProjectedUtilizationMetric(entry, context);
|
|
1961
1431
|
});
|
|
1962
1432
|
return retVal;
|
|
1963
1433
|
};
|
|
1964
1434
|
const de_ECSServiceRecommendation = (output, context) => {
|
|
1965
|
-
return {
|
|
1966
|
-
accountId: __expectString
|
|
1967
|
-
currentPerformanceRisk: __expectString
|
|
1968
|
-
currentServiceConfiguration:
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
: undefined,
|
|
1978
|
-
launchType: __expectString(output.launchType),
|
|
1979
|
-
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
1980
|
-
serviceArn: __expectString(output.serviceArn),
|
|
1981
|
-
serviceRecommendationOptions: output.serviceRecommendationOptions != null
|
|
1982
|
-
? de_ECSServiceRecommendationOptions(output.serviceRecommendationOptions, context)
|
|
1983
|
-
: undefined,
|
|
1984
|
-
utilizationMetrics: output.utilizationMetrics != null
|
|
1985
|
-
? de_ECSServiceUtilizationMetrics(output.utilizationMetrics, context)
|
|
1986
|
-
: undefined,
|
|
1987
|
-
};
|
|
1988
|
-
};
|
|
1989
|
-
const de_ECSServiceRecommendationFindingReasonCodes = (output, context) => {
|
|
1990
|
-
const retVal = (output || [])
|
|
1991
|
-
.filter((e) => e != null)
|
|
1992
|
-
.map((entry) => {
|
|
1993
|
-
if (entry === null) {
|
|
1994
|
-
return null;
|
|
1995
|
-
}
|
|
1996
|
-
return __expectString(entry);
|
|
1435
|
+
return take(output, {
|
|
1436
|
+
accountId: __expectString,
|
|
1437
|
+
currentPerformanceRisk: __expectString,
|
|
1438
|
+
currentServiceConfiguration: _json,
|
|
1439
|
+
finding: __expectString,
|
|
1440
|
+
findingReasonCodes: _json,
|
|
1441
|
+
lastRefreshTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1442
|
+
launchType: __expectString,
|
|
1443
|
+
lookbackPeriodInDays: __limitedParseDouble,
|
|
1444
|
+
serviceArn: __expectString,
|
|
1445
|
+
serviceRecommendationOptions: (_) => de_ECSServiceRecommendationOptions(_, context),
|
|
1446
|
+
utilizationMetrics: (_) => de_ECSServiceUtilizationMetrics(_, context),
|
|
1997
1447
|
});
|
|
1998
|
-
return retVal;
|
|
1999
1448
|
};
|
|
2000
1449
|
const de_ECSServiceRecommendationOption = (output, context) => {
|
|
2001
|
-
return {
|
|
2002
|
-
containerRecommendations:
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
? de_ECSServiceProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2009
|
-
: undefined,
|
|
2010
|
-
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2011
|
-
};
|
|
1450
|
+
return take(output, {
|
|
1451
|
+
containerRecommendations: _json,
|
|
1452
|
+
cpu: __expectInt32,
|
|
1453
|
+
memory: __expectInt32,
|
|
1454
|
+
projectedUtilizationMetrics: (_) => de_ECSServiceProjectedUtilizationMetrics(_, context),
|
|
1455
|
+
savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
|
|
1456
|
+
});
|
|
2012
1457
|
};
|
|
2013
1458
|
const de_ECSServiceRecommendationOptions = (output, context) => {
|
|
2014
1459
|
const retVal = (output || [])
|
|
2015
1460
|
.filter((e) => e != null)
|
|
2016
1461
|
.map((entry) => {
|
|
2017
|
-
if (entry === null) {
|
|
2018
|
-
return null;
|
|
2019
|
-
}
|
|
2020
1462
|
return de_ECSServiceRecommendationOption(entry, context);
|
|
2021
1463
|
});
|
|
2022
1464
|
return retVal;
|
|
@@ -2025,473 +1467,238 @@ const de_ECSServiceRecommendations = (output, context) => {
|
|
|
2025
1467
|
const retVal = (output || [])
|
|
2026
1468
|
.filter((e) => e != null)
|
|
2027
1469
|
.map((entry) => {
|
|
2028
|
-
if (entry === null) {
|
|
2029
|
-
return null;
|
|
2030
|
-
}
|
|
2031
1470
|
return de_ECSServiceRecommendation(entry, context);
|
|
2032
1471
|
});
|
|
2033
1472
|
return retVal;
|
|
2034
1473
|
};
|
|
2035
1474
|
const de_ECSServiceRecommendedOptionProjectedMetric = (output, context) => {
|
|
2036
|
-
return {
|
|
2037
|
-
projectedMetrics:
|
|
2038
|
-
recommendedCpuUnits: __expectInt32
|
|
2039
|
-
recommendedMemorySize: __expectInt32
|
|
2040
|
-
};
|
|
1475
|
+
return take(output, {
|
|
1476
|
+
projectedMetrics: (_) => de_ECSServiceProjectedMetrics(_, context),
|
|
1477
|
+
recommendedCpuUnits: __expectInt32,
|
|
1478
|
+
recommendedMemorySize: __expectInt32,
|
|
1479
|
+
});
|
|
2041
1480
|
};
|
|
2042
1481
|
const de_ECSServiceRecommendedOptionProjectedMetrics = (output, context) => {
|
|
2043
1482
|
const retVal = (output || [])
|
|
2044
1483
|
.filter((e) => e != null)
|
|
2045
1484
|
.map((entry) => {
|
|
2046
|
-
if (entry === null) {
|
|
2047
|
-
return null;
|
|
2048
|
-
}
|
|
2049
1485
|
return de_ECSServiceRecommendedOptionProjectedMetric(entry, context);
|
|
2050
1486
|
});
|
|
2051
1487
|
return retVal;
|
|
2052
1488
|
};
|
|
2053
1489
|
const de_ECSServiceUtilizationMetric = (output, context) => {
|
|
2054
|
-
return {
|
|
2055
|
-
name: __expectString
|
|
2056
|
-
statistic: __expectString
|
|
2057
|
-
value: __limitedParseDouble
|
|
2058
|
-
};
|
|
1490
|
+
return take(output, {
|
|
1491
|
+
name: __expectString,
|
|
1492
|
+
statistic: __expectString,
|
|
1493
|
+
value: __limitedParseDouble,
|
|
1494
|
+
});
|
|
2059
1495
|
};
|
|
2060
1496
|
const de_ECSServiceUtilizationMetrics = (output, context) => {
|
|
2061
1497
|
const retVal = (output || [])
|
|
2062
1498
|
.filter((e) => e != null)
|
|
2063
1499
|
.map((entry) => {
|
|
2064
|
-
if (entry === null) {
|
|
2065
|
-
return null;
|
|
2066
|
-
}
|
|
2067
1500
|
return de_ECSServiceUtilizationMetric(entry, context);
|
|
2068
1501
|
});
|
|
2069
1502
|
return retVal;
|
|
2070
1503
|
};
|
|
2071
|
-
const de_EffectiveRecommendationPreferences = (output, context) => {
|
|
2072
|
-
return {
|
|
2073
|
-
cpuVendorArchitectures: output.cpuVendorArchitectures != null
|
|
2074
|
-
? de_CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
2075
|
-
: undefined,
|
|
2076
|
-
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2077
|
-
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2078
|
-
? de_ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2079
|
-
: undefined,
|
|
2080
|
-
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
2081
|
-
};
|
|
2082
|
-
};
|
|
2083
1504
|
const de_EstimatedMonthlySavings = (output, context) => {
|
|
2084
|
-
return {
|
|
2085
|
-
currency: __expectString
|
|
2086
|
-
value: __limitedParseDouble
|
|
2087
|
-
};
|
|
2088
|
-
};
|
|
2089
|
-
const de_ExportAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
2090
|
-
return {
|
|
2091
|
-
jobId: __expectString(output.jobId),
|
|
2092
|
-
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2093
|
-
};
|
|
2094
|
-
};
|
|
2095
|
-
const de_ExportDestination = (output, context) => {
|
|
2096
|
-
return {
|
|
2097
|
-
s3: output.s3 != null ? de_S3Destination(output.s3, context) : undefined,
|
|
2098
|
-
};
|
|
2099
|
-
};
|
|
2100
|
-
const de_ExportEBSVolumeRecommendationsResponse = (output, context) => {
|
|
2101
|
-
return {
|
|
2102
|
-
jobId: __expectString(output.jobId),
|
|
2103
|
-
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2104
|
-
};
|
|
2105
|
-
};
|
|
2106
|
-
const de_ExportEC2InstanceRecommendationsResponse = (output, context) => {
|
|
2107
|
-
return {
|
|
2108
|
-
jobId: __expectString(output.jobId),
|
|
2109
|
-
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2110
|
-
};
|
|
2111
|
-
};
|
|
2112
|
-
const de_ExportECSServiceRecommendationsResponse = (output, context) => {
|
|
2113
|
-
return {
|
|
2114
|
-
jobId: __expectString(output.jobId),
|
|
2115
|
-
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2116
|
-
};
|
|
2117
|
-
};
|
|
2118
|
-
const de_ExportLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
2119
|
-
return {
|
|
2120
|
-
jobId: __expectString(output.jobId),
|
|
2121
|
-
s3Destination: output.s3Destination != null ? de_S3Destination(output.s3Destination, context) : undefined,
|
|
2122
|
-
};
|
|
2123
|
-
};
|
|
2124
|
-
const de_ExternalMetricsPreference = (output, context) => {
|
|
2125
|
-
return {
|
|
2126
|
-
source: __expectString(output.source),
|
|
2127
|
-
};
|
|
1505
|
+
return take(output, {
|
|
1506
|
+
currency: __expectString,
|
|
1507
|
+
value: __limitedParseDouble,
|
|
1508
|
+
});
|
|
2128
1509
|
};
|
|
2129
1510
|
const de_GetAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
2130
|
-
return {
|
|
2131
|
-
autoScalingGroupRecommendations:
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
nextToken: __expectString(output.nextToken),
|
|
2136
|
-
};
|
|
1511
|
+
return take(output, {
|
|
1512
|
+
autoScalingGroupRecommendations: (_) => de_AutoScalingGroupRecommendations(_, context),
|
|
1513
|
+
errors: _json,
|
|
1514
|
+
nextToken: __expectString,
|
|
1515
|
+
});
|
|
2137
1516
|
};
|
|
2138
1517
|
const de_GetEBSVolumeRecommendationsResponse = (output, context) => {
|
|
2139
|
-
return {
|
|
2140
|
-
errors:
|
|
2141
|
-
nextToken: __expectString
|
|
2142
|
-
volumeRecommendations:
|
|
2143
|
-
|
|
2144
|
-
: undefined,
|
|
2145
|
-
};
|
|
1518
|
+
return take(output, {
|
|
1519
|
+
errors: _json,
|
|
1520
|
+
nextToken: __expectString,
|
|
1521
|
+
volumeRecommendations: (_) => de_VolumeRecommendations(_, context),
|
|
1522
|
+
});
|
|
2146
1523
|
};
|
|
2147
1524
|
const de_GetEC2InstanceRecommendationsResponse = (output, context) => {
|
|
2148
|
-
return {
|
|
2149
|
-
errors:
|
|
2150
|
-
instanceRecommendations:
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
nextToken: __expectString(output.nextToken),
|
|
2154
|
-
};
|
|
1525
|
+
return take(output, {
|
|
1526
|
+
errors: _json,
|
|
1527
|
+
instanceRecommendations: (_) => de_InstanceRecommendations(_, context),
|
|
1528
|
+
nextToken: __expectString,
|
|
1529
|
+
});
|
|
2155
1530
|
};
|
|
2156
1531
|
const de_GetEC2RecommendationProjectedMetricsResponse = (output, context) => {
|
|
2157
|
-
return {
|
|
2158
|
-
recommendedOptionProjectedMetrics:
|
|
2159
|
-
|
|
2160
|
-
: undefined,
|
|
2161
|
-
};
|
|
1532
|
+
return take(output, {
|
|
1533
|
+
recommendedOptionProjectedMetrics: (_) => de_RecommendedOptionProjectedMetrics(_, context),
|
|
1534
|
+
});
|
|
2162
1535
|
};
|
|
2163
1536
|
const de_GetECSServiceRecommendationProjectedMetricsResponse = (output, context) => {
|
|
2164
|
-
return {
|
|
2165
|
-
recommendedOptionProjectedMetrics:
|
|
2166
|
-
|
|
2167
|
-
: undefined,
|
|
2168
|
-
};
|
|
1537
|
+
return take(output, {
|
|
1538
|
+
recommendedOptionProjectedMetrics: (_) => de_ECSServiceRecommendedOptionProjectedMetrics(_, context),
|
|
1539
|
+
});
|
|
2169
1540
|
};
|
|
2170
1541
|
const de_GetECSServiceRecommendationsResponse = (output, context) => {
|
|
2171
|
-
return {
|
|
2172
|
-
ecsServiceRecommendations:
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
nextToken: __expectString(output.nextToken),
|
|
2177
|
-
};
|
|
2178
|
-
};
|
|
2179
|
-
const de_GetEffectiveRecommendationPreferencesResponse = (output, context) => {
|
|
2180
|
-
return {
|
|
2181
|
-
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2182
|
-
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2183
|
-
? de_ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2184
|
-
: undefined,
|
|
2185
|
-
};
|
|
1542
|
+
return take(output, {
|
|
1543
|
+
ecsServiceRecommendations: (_) => de_ECSServiceRecommendations(_, context),
|
|
1544
|
+
errors: _json,
|
|
1545
|
+
nextToken: __expectString,
|
|
1546
|
+
});
|
|
2186
1547
|
};
|
|
2187
1548
|
const de_GetEnrollmentStatusesForOrganizationResponse = (output, context) => {
|
|
2188
|
-
return {
|
|
2189
|
-
accountEnrollmentStatuses:
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
nextToken: __expectString(output.nextToken),
|
|
2193
|
-
};
|
|
1549
|
+
return take(output, {
|
|
1550
|
+
accountEnrollmentStatuses: (_) => de_AccountEnrollmentStatuses(_, context),
|
|
1551
|
+
nextToken: __expectString,
|
|
1552
|
+
});
|
|
2194
1553
|
};
|
|
2195
1554
|
const de_GetEnrollmentStatusResponse = (output, context) => {
|
|
2196
|
-
return {
|
|
2197
|
-
lastUpdatedTimestamp:
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
statusReason: __expectString(output.statusReason),
|
|
2204
|
-
};
|
|
1555
|
+
return take(output, {
|
|
1556
|
+
lastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1557
|
+
memberAccountsEnrolled: __expectBoolean,
|
|
1558
|
+
numberOfMemberAccountsOptedIn: __expectInt32,
|
|
1559
|
+
status: __expectString,
|
|
1560
|
+
statusReason: __expectString,
|
|
1561
|
+
});
|
|
2205
1562
|
};
|
|
2206
1563
|
const de_GetLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
2207
|
-
return {
|
|
2208
|
-
lambdaFunctionRecommendations:
|
|
2209
|
-
|
|
2210
|
-
: undefined,
|
|
2211
|
-
nextToken: __expectString(output.nextToken),
|
|
2212
|
-
};
|
|
2213
|
-
};
|
|
2214
|
-
const de_GetRecommendationError = (output, context) => {
|
|
2215
|
-
return {
|
|
2216
|
-
code: __expectString(output.code),
|
|
2217
|
-
identifier: __expectString(output.identifier),
|
|
2218
|
-
message: __expectString(output.message),
|
|
2219
|
-
};
|
|
2220
|
-
};
|
|
2221
|
-
const de_GetRecommendationErrors = (output, context) => {
|
|
2222
|
-
const retVal = (output || [])
|
|
2223
|
-
.filter((e) => e != null)
|
|
2224
|
-
.map((entry) => {
|
|
2225
|
-
if (entry === null) {
|
|
2226
|
-
return null;
|
|
2227
|
-
}
|
|
2228
|
-
return de_GetRecommendationError(entry, context);
|
|
1564
|
+
return take(output, {
|
|
1565
|
+
lambdaFunctionRecommendations: (_) => de_LambdaFunctionRecommendations(_, context),
|
|
1566
|
+
nextToken: __expectString,
|
|
2229
1567
|
});
|
|
2230
|
-
return retVal;
|
|
2231
|
-
};
|
|
2232
|
-
const de_GetRecommendationPreferencesResponse = (output, context) => {
|
|
2233
|
-
return {
|
|
2234
|
-
nextToken: __expectString(output.nextToken),
|
|
2235
|
-
recommendationPreferencesDetails: output.recommendationPreferencesDetails != null
|
|
2236
|
-
? de_RecommendationPreferencesDetails(output.recommendationPreferencesDetails, context)
|
|
2237
|
-
: undefined,
|
|
2238
|
-
};
|
|
2239
1568
|
};
|
|
2240
1569
|
const de_GetRecommendationSummariesResponse = (output, context) => {
|
|
2241
|
-
return {
|
|
2242
|
-
nextToken: __expectString
|
|
2243
|
-
recommendationSummaries:
|
|
2244
|
-
? de_RecommendationSummaries(output.recommendationSummaries, context)
|
|
2245
|
-
: undefined,
|
|
2246
|
-
};
|
|
2247
|
-
};
|
|
2248
|
-
const de_InferredWorkloadTypes = (output, context) => {
|
|
2249
|
-
const retVal = (output || [])
|
|
2250
|
-
.filter((e) => e != null)
|
|
2251
|
-
.map((entry) => {
|
|
2252
|
-
if (entry === null) {
|
|
2253
|
-
return null;
|
|
2254
|
-
}
|
|
2255
|
-
return __expectString(entry);
|
|
1570
|
+
return take(output, {
|
|
1571
|
+
nextToken: __expectString,
|
|
1572
|
+
recommendationSummaries: (_) => de_RecommendationSummaries(_, context),
|
|
2256
1573
|
});
|
|
2257
|
-
return retVal;
|
|
2258
1574
|
};
|
|
2259
1575
|
const de_InstanceRecommendation = (output, context) => {
|
|
2260
|
-
return {
|
|
2261
|
-
accountId: __expectString
|
|
2262
|
-
currentInstanceType: __expectString
|
|
2263
|
-
currentPerformanceRisk: __expectString
|
|
2264
|
-
effectiveRecommendationPreferences:
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
instanceState: __expectString(output.instanceState),
|
|
2277
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2278
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastRefreshTimestamp)))
|
|
2279
|
-
: undefined,
|
|
2280
|
-
lookBackPeriodInDays: __limitedParseDouble(output.lookBackPeriodInDays),
|
|
2281
|
-
recommendationOptions: output.recommendationOptions != null
|
|
2282
|
-
? de_RecommendationOptions(output.recommendationOptions, context)
|
|
2283
|
-
: undefined,
|
|
2284
|
-
recommendationSources: output.recommendationSources != null
|
|
2285
|
-
? de_RecommendationSources(output.recommendationSources, context)
|
|
2286
|
-
: undefined,
|
|
2287
|
-
utilizationMetrics: output.utilizationMetrics != null ? de_UtilizationMetrics(output.utilizationMetrics, context) : undefined,
|
|
2288
|
-
};
|
|
2289
|
-
};
|
|
2290
|
-
const de_InstanceRecommendationFindingReasonCodes = (output, context) => {
|
|
2291
|
-
const retVal = (output || [])
|
|
2292
|
-
.filter((e) => e != null)
|
|
2293
|
-
.map((entry) => {
|
|
2294
|
-
if (entry === null) {
|
|
2295
|
-
return null;
|
|
2296
|
-
}
|
|
2297
|
-
return __expectString(entry);
|
|
1576
|
+
return take(output, {
|
|
1577
|
+
accountId: __expectString,
|
|
1578
|
+
currentInstanceType: __expectString,
|
|
1579
|
+
currentPerformanceRisk: __expectString,
|
|
1580
|
+
effectiveRecommendationPreferences: _json,
|
|
1581
|
+
finding: __expectString,
|
|
1582
|
+
findingReasonCodes: _json,
|
|
1583
|
+
inferredWorkloadTypes: _json,
|
|
1584
|
+
instanceArn: __expectString,
|
|
1585
|
+
instanceName: __expectString,
|
|
1586
|
+
instanceState: __expectString,
|
|
1587
|
+
lastRefreshTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1588
|
+
lookBackPeriodInDays: __limitedParseDouble,
|
|
1589
|
+
recommendationOptions: (_) => de_RecommendationOptions(_, context),
|
|
1590
|
+
recommendationSources: _json,
|
|
1591
|
+
utilizationMetrics: (_) => de_UtilizationMetrics(_, context),
|
|
2298
1592
|
});
|
|
2299
|
-
return retVal;
|
|
2300
1593
|
};
|
|
2301
1594
|
const de_InstanceRecommendationOption = (output, context) => {
|
|
2302
|
-
return {
|
|
2303
|
-
instanceType: __expectString
|
|
2304
|
-
migrationEffort: __expectString
|
|
2305
|
-
performanceRisk: __limitedParseDouble
|
|
2306
|
-
platformDifferences:
|
|
2307
|
-
projectedUtilizationMetrics:
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2312
|
-
};
|
|
1595
|
+
return take(output, {
|
|
1596
|
+
instanceType: __expectString,
|
|
1597
|
+
migrationEffort: __expectString,
|
|
1598
|
+
performanceRisk: __limitedParseDouble,
|
|
1599
|
+
platformDifferences: _json,
|
|
1600
|
+
projectedUtilizationMetrics: (_) => de_ProjectedUtilizationMetrics(_, context),
|
|
1601
|
+
rank: __expectInt32,
|
|
1602
|
+
savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
|
|
1603
|
+
});
|
|
2313
1604
|
};
|
|
2314
1605
|
const de_InstanceRecommendations = (output, context) => {
|
|
2315
1606
|
const retVal = (output || [])
|
|
2316
1607
|
.filter((e) => e != null)
|
|
2317
1608
|
.map((entry) => {
|
|
2318
|
-
if (entry === null) {
|
|
2319
|
-
return null;
|
|
2320
|
-
}
|
|
2321
1609
|
return de_InstanceRecommendation(entry, context);
|
|
2322
1610
|
});
|
|
2323
1611
|
return retVal;
|
|
2324
1612
|
};
|
|
2325
|
-
const de_InternalServerException = (output, context) => {
|
|
2326
|
-
return {
|
|
2327
|
-
message: __expectString(output.message),
|
|
2328
|
-
};
|
|
2329
|
-
};
|
|
2330
|
-
const de_InvalidParameterValueException = (output, context) => {
|
|
2331
|
-
return {
|
|
2332
|
-
message: __expectString(output.message),
|
|
2333
|
-
};
|
|
2334
|
-
};
|
|
2335
1613
|
const de_LambdaFunctionMemoryProjectedMetric = (output, context) => {
|
|
2336
|
-
return {
|
|
2337
|
-
name: __expectString
|
|
2338
|
-
statistic: __expectString
|
|
2339
|
-
value: __limitedParseDouble
|
|
2340
|
-
};
|
|
1614
|
+
return take(output, {
|
|
1615
|
+
name: __expectString,
|
|
1616
|
+
statistic: __expectString,
|
|
1617
|
+
value: __limitedParseDouble,
|
|
1618
|
+
});
|
|
2341
1619
|
};
|
|
2342
1620
|
const de_LambdaFunctionMemoryProjectedMetrics = (output, context) => {
|
|
2343
1621
|
const retVal = (output || [])
|
|
2344
1622
|
.filter((e) => e != null)
|
|
2345
1623
|
.map((entry) => {
|
|
2346
|
-
if (entry === null) {
|
|
2347
|
-
return null;
|
|
2348
|
-
}
|
|
2349
1624
|
return de_LambdaFunctionMemoryProjectedMetric(entry, context);
|
|
2350
1625
|
});
|
|
2351
1626
|
return retVal;
|
|
2352
1627
|
};
|
|
2353
1628
|
const de_LambdaFunctionMemoryRecommendationOption = (output, context) => {
|
|
2354
|
-
return {
|
|
2355
|
-
memorySize: __expectInt32
|
|
2356
|
-
projectedUtilizationMetrics:
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
savingsOpportunity: output.savingsOpportunity != null ? de_SavingsOpportunity(output.savingsOpportunity, context) : undefined,
|
|
2361
|
-
};
|
|
1629
|
+
return take(output, {
|
|
1630
|
+
memorySize: __expectInt32,
|
|
1631
|
+
projectedUtilizationMetrics: (_) => de_LambdaFunctionMemoryProjectedMetrics(_, context),
|
|
1632
|
+
rank: __expectInt32,
|
|
1633
|
+
savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
|
|
1634
|
+
});
|
|
2362
1635
|
};
|
|
2363
1636
|
const de_LambdaFunctionMemoryRecommendationOptions = (output, context) => {
|
|
2364
1637
|
const retVal = (output || [])
|
|
2365
1638
|
.filter((e) => e != null)
|
|
2366
1639
|
.map((entry) => {
|
|
2367
|
-
if (entry === null) {
|
|
2368
|
-
return null;
|
|
2369
|
-
}
|
|
2370
1640
|
return de_LambdaFunctionMemoryRecommendationOption(entry, context);
|
|
2371
1641
|
});
|
|
2372
1642
|
return retVal;
|
|
2373
1643
|
};
|
|
2374
1644
|
const de_LambdaFunctionRecommendation = (output, context) => {
|
|
2375
|
-
return {
|
|
2376
|
-
accountId: __expectString
|
|
2377
|
-
currentMemorySize: __expectInt32
|
|
2378
|
-
currentPerformanceRisk: __expectString
|
|
2379
|
-
finding: __expectString
|
|
2380
|
-
findingReasonCodes:
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
lookbackPeriodInDays: __limitedParseDouble(output.lookbackPeriodInDays),
|
|
2389
|
-
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions != null
|
|
2390
|
-
? de_LambdaFunctionMemoryRecommendationOptions(output.memorySizeRecommendationOptions, context)
|
|
2391
|
-
: undefined,
|
|
2392
|
-
numberOfInvocations: __expectLong(output.numberOfInvocations),
|
|
2393
|
-
utilizationMetrics: output.utilizationMetrics != null
|
|
2394
|
-
? de_LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context)
|
|
2395
|
-
: undefined,
|
|
2396
|
-
};
|
|
2397
|
-
};
|
|
2398
|
-
const de_LambdaFunctionRecommendationFindingReasonCodes = (output, context) => {
|
|
2399
|
-
const retVal = (output || [])
|
|
2400
|
-
.filter((e) => e != null)
|
|
2401
|
-
.map((entry) => {
|
|
2402
|
-
if (entry === null) {
|
|
2403
|
-
return null;
|
|
2404
|
-
}
|
|
2405
|
-
return __expectString(entry);
|
|
1645
|
+
return take(output, {
|
|
1646
|
+
accountId: __expectString,
|
|
1647
|
+
currentMemorySize: __expectInt32,
|
|
1648
|
+
currentPerformanceRisk: __expectString,
|
|
1649
|
+
finding: __expectString,
|
|
1650
|
+
findingReasonCodes: _json,
|
|
1651
|
+
functionArn: __expectString,
|
|
1652
|
+
functionVersion: __expectString,
|
|
1653
|
+
lastRefreshTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1654
|
+
lookbackPeriodInDays: __limitedParseDouble,
|
|
1655
|
+
memorySizeRecommendationOptions: (_) => de_LambdaFunctionMemoryRecommendationOptions(_, context),
|
|
1656
|
+
numberOfInvocations: __expectLong,
|
|
1657
|
+
utilizationMetrics: (_) => de_LambdaFunctionUtilizationMetrics(_, context),
|
|
2406
1658
|
});
|
|
2407
|
-
return retVal;
|
|
2408
1659
|
};
|
|
2409
1660
|
const de_LambdaFunctionRecommendations = (output, context) => {
|
|
2410
1661
|
const retVal = (output || [])
|
|
2411
1662
|
.filter((e) => e != null)
|
|
2412
1663
|
.map((entry) => {
|
|
2413
|
-
if (entry === null) {
|
|
2414
|
-
return null;
|
|
2415
|
-
}
|
|
2416
1664
|
return de_LambdaFunctionRecommendation(entry, context);
|
|
2417
1665
|
});
|
|
2418
1666
|
return retVal;
|
|
2419
1667
|
};
|
|
2420
1668
|
const de_LambdaFunctionUtilizationMetric = (output, context) => {
|
|
2421
|
-
return {
|
|
2422
|
-
name: __expectString
|
|
2423
|
-
statistic: __expectString
|
|
2424
|
-
value: __limitedParseDouble
|
|
2425
|
-
};
|
|
1669
|
+
return take(output, {
|
|
1670
|
+
name: __expectString,
|
|
1671
|
+
statistic: __expectString,
|
|
1672
|
+
value: __limitedParseDouble,
|
|
1673
|
+
});
|
|
2426
1674
|
};
|
|
2427
1675
|
const de_LambdaFunctionUtilizationMetrics = (output, context) => {
|
|
2428
1676
|
const retVal = (output || [])
|
|
2429
1677
|
.filter((e) => e != null)
|
|
2430
1678
|
.map((entry) => {
|
|
2431
|
-
if (entry === null) {
|
|
2432
|
-
return null;
|
|
2433
|
-
}
|
|
2434
1679
|
return de_LambdaFunctionUtilizationMetric(entry, context);
|
|
2435
1680
|
});
|
|
2436
1681
|
return retVal;
|
|
2437
1682
|
};
|
|
2438
|
-
const de_LimitExceededException = (output, context) => {
|
|
2439
|
-
return {
|
|
2440
|
-
message: __expectString(output.message),
|
|
2441
|
-
};
|
|
2442
|
-
};
|
|
2443
|
-
const de_MemorySizeConfiguration = (output, context) => {
|
|
2444
|
-
return {
|
|
2445
|
-
memory: __expectInt32(output.memory),
|
|
2446
|
-
memoryReservation: __expectInt32(output.memoryReservation),
|
|
2447
|
-
};
|
|
2448
|
-
};
|
|
2449
1683
|
const de_MetricValues = (output, context) => {
|
|
2450
1684
|
const retVal = (output || [])
|
|
2451
1685
|
.filter((e) => e != null)
|
|
2452
1686
|
.map((entry) => {
|
|
2453
|
-
if (entry === null) {
|
|
2454
|
-
return null;
|
|
2455
|
-
}
|
|
2456
1687
|
return __limitedParseDouble(entry);
|
|
2457
1688
|
});
|
|
2458
1689
|
return retVal;
|
|
2459
1690
|
};
|
|
2460
|
-
const de_MissingAuthenticationToken = (output, context) => {
|
|
2461
|
-
return {
|
|
2462
|
-
message: __expectString(output.message),
|
|
2463
|
-
};
|
|
2464
|
-
};
|
|
2465
|
-
const de_OptInRequiredException = (output, context) => {
|
|
2466
|
-
return {
|
|
2467
|
-
message: __expectString(output.message),
|
|
2468
|
-
};
|
|
2469
|
-
};
|
|
2470
|
-
const de_PlatformDifferences = (output, context) => {
|
|
2471
|
-
const retVal = (output || [])
|
|
2472
|
-
.filter((e) => e != null)
|
|
2473
|
-
.map((entry) => {
|
|
2474
|
-
if (entry === null) {
|
|
2475
|
-
return null;
|
|
2476
|
-
}
|
|
2477
|
-
return __expectString(entry);
|
|
2478
|
-
});
|
|
2479
|
-
return retVal;
|
|
2480
|
-
};
|
|
2481
1691
|
const de_ProjectedMetric = (output, context) => {
|
|
2482
|
-
return {
|
|
2483
|
-
name: __expectString
|
|
2484
|
-
timestamps:
|
|
2485
|
-
values:
|
|
2486
|
-
};
|
|
1692
|
+
return take(output, {
|
|
1693
|
+
name: __expectString,
|
|
1694
|
+
timestamps: (_) => de_Timestamps(_, context),
|
|
1695
|
+
values: (_) => de_MetricValues(_, context),
|
|
1696
|
+
});
|
|
2487
1697
|
};
|
|
2488
1698
|
const de_ProjectedMetrics = (output, context) => {
|
|
2489
1699
|
const retVal = (output || [])
|
|
2490
1700
|
.filter((e) => e != null)
|
|
2491
1701
|
.map((entry) => {
|
|
2492
|
-
if (entry === null) {
|
|
2493
|
-
return null;
|
|
2494
|
-
}
|
|
2495
1702
|
return de_ProjectedMetric(entry, context);
|
|
2496
1703
|
});
|
|
2497
1704
|
return retVal;
|
|
@@ -2500,55 +1707,39 @@ const de_ProjectedUtilizationMetrics = (output, context) => {
|
|
|
2500
1707
|
const retVal = (output || [])
|
|
2501
1708
|
.filter((e) => e != null)
|
|
2502
1709
|
.map((entry) => {
|
|
2503
|
-
if (entry === null) {
|
|
2504
|
-
return null;
|
|
2505
|
-
}
|
|
2506
1710
|
return de_UtilizationMetric(entry, context);
|
|
2507
1711
|
});
|
|
2508
1712
|
return retVal;
|
|
2509
1713
|
};
|
|
2510
|
-
const de_PutRecommendationPreferencesResponse = (output, context) => {
|
|
2511
|
-
return {};
|
|
2512
|
-
};
|
|
2513
1714
|
const de_ReasonCodeSummaries = (output, context) => {
|
|
2514
1715
|
const retVal = (output || [])
|
|
2515
1716
|
.filter((e) => e != null)
|
|
2516
1717
|
.map((entry) => {
|
|
2517
|
-
if (entry === null) {
|
|
2518
|
-
return null;
|
|
2519
|
-
}
|
|
2520
1718
|
return de_ReasonCodeSummary(entry, context);
|
|
2521
1719
|
});
|
|
2522
1720
|
return retVal;
|
|
2523
1721
|
};
|
|
2524
1722
|
const de_ReasonCodeSummary = (output, context) => {
|
|
2525
|
-
return {
|
|
2526
|
-
name: __expectString
|
|
2527
|
-
value: __limitedParseDouble
|
|
2528
|
-
};
|
|
1723
|
+
return take(output, {
|
|
1724
|
+
name: __expectString,
|
|
1725
|
+
value: __limitedParseDouble,
|
|
1726
|
+
});
|
|
2529
1727
|
};
|
|
2530
1728
|
const de_RecommendationExportJob = (output, context) => {
|
|
2531
|
-
return {
|
|
2532
|
-
creationTimestamp:
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
: undefined,
|
|
2541
|
-
resourceType: __expectString(output.resourceType),
|
|
2542
|
-
status: __expectString(output.status),
|
|
2543
|
-
};
|
|
1729
|
+
return take(output, {
|
|
1730
|
+
creationTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1731
|
+
destination: _json,
|
|
1732
|
+
failureReason: __expectString,
|
|
1733
|
+
jobId: __expectString,
|
|
1734
|
+
lastUpdatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1735
|
+
resourceType: __expectString,
|
|
1736
|
+
status: __expectString,
|
|
1737
|
+
});
|
|
2544
1738
|
};
|
|
2545
1739
|
const de_RecommendationExportJobs = (output, context) => {
|
|
2546
1740
|
const retVal = (output || [])
|
|
2547
1741
|
.filter((e) => e != null)
|
|
2548
1742
|
.map((entry) => {
|
|
2549
|
-
if (entry === null) {
|
|
2550
|
-
return null;
|
|
2551
|
-
}
|
|
2552
1743
|
return de_RecommendationExportJob(entry, context);
|
|
2553
1744
|
});
|
|
2554
1745
|
return retVal;
|
|
@@ -2557,235 +1748,111 @@ const de_RecommendationOptions = (output, context) => {
|
|
|
2557
1748
|
const retVal = (output || [])
|
|
2558
1749
|
.filter((e) => e != null)
|
|
2559
1750
|
.map((entry) => {
|
|
2560
|
-
if (entry === null) {
|
|
2561
|
-
return null;
|
|
2562
|
-
}
|
|
2563
1751
|
return de_InstanceRecommendationOption(entry, context);
|
|
2564
1752
|
});
|
|
2565
1753
|
return retVal;
|
|
2566
1754
|
};
|
|
2567
|
-
const de_RecommendationPreferencesDetail = (output, context) => {
|
|
2568
|
-
return {
|
|
2569
|
-
enhancedInfrastructureMetrics: __expectString(output.enhancedInfrastructureMetrics),
|
|
2570
|
-
externalMetricsPreference: output.externalMetricsPreference != null
|
|
2571
|
-
? de_ExternalMetricsPreference(output.externalMetricsPreference, context)
|
|
2572
|
-
: undefined,
|
|
2573
|
-
inferredWorkloadTypes: __expectString(output.inferredWorkloadTypes),
|
|
2574
|
-
resourceType: __expectString(output.resourceType),
|
|
2575
|
-
scope: output.scope != null ? de_Scope(output.scope, context) : undefined,
|
|
2576
|
-
};
|
|
2577
|
-
};
|
|
2578
|
-
const de_RecommendationPreferencesDetails = (output, context) => {
|
|
2579
|
-
const retVal = (output || [])
|
|
2580
|
-
.filter((e) => e != null)
|
|
2581
|
-
.map((entry) => {
|
|
2582
|
-
if (entry === null) {
|
|
2583
|
-
return null;
|
|
2584
|
-
}
|
|
2585
|
-
return de_RecommendationPreferencesDetail(entry, context);
|
|
2586
|
-
});
|
|
2587
|
-
return retVal;
|
|
2588
|
-
};
|
|
2589
|
-
const de_RecommendationSource = (output, context) => {
|
|
2590
|
-
return {
|
|
2591
|
-
recommendationSourceArn: __expectString(output.recommendationSourceArn),
|
|
2592
|
-
recommendationSourceType: __expectString(output.recommendationSourceType),
|
|
2593
|
-
};
|
|
2594
|
-
};
|
|
2595
|
-
const de_RecommendationSources = (output, context) => {
|
|
2596
|
-
const retVal = (output || [])
|
|
2597
|
-
.filter((e) => e != null)
|
|
2598
|
-
.map((entry) => {
|
|
2599
|
-
if (entry === null) {
|
|
2600
|
-
return null;
|
|
2601
|
-
}
|
|
2602
|
-
return de_RecommendationSource(entry, context);
|
|
2603
|
-
});
|
|
2604
|
-
return retVal;
|
|
2605
|
-
};
|
|
2606
1755
|
const de_RecommendationSummaries = (output, context) => {
|
|
2607
1756
|
const retVal = (output || [])
|
|
2608
1757
|
.filter((e) => e != null)
|
|
2609
1758
|
.map((entry) => {
|
|
2610
|
-
if (entry === null) {
|
|
2611
|
-
return null;
|
|
2612
|
-
}
|
|
2613
1759
|
return de_RecommendationSummary(entry, context);
|
|
2614
1760
|
});
|
|
2615
1761
|
return retVal;
|
|
2616
1762
|
};
|
|
2617
1763
|
const de_RecommendationSummary = (output, context) => {
|
|
2618
|
-
return {
|
|
2619
|
-
accountId: __expectString
|
|
2620
|
-
currentPerformanceRiskRatings:
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
summaries: output.summaries != null ? de_Summaries(output.summaries, context) : undefined,
|
|
2626
|
-
};
|
|
1764
|
+
return take(output, {
|
|
1765
|
+
accountId: __expectString,
|
|
1766
|
+
currentPerformanceRiskRatings: _json,
|
|
1767
|
+
recommendationResourceType: __expectString,
|
|
1768
|
+
savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
|
|
1769
|
+
summaries: (_) => de_Summaries(_, context),
|
|
1770
|
+
});
|
|
2627
1771
|
};
|
|
2628
1772
|
const de_RecommendedOptionProjectedMetric = (output, context) => {
|
|
2629
|
-
return {
|
|
2630
|
-
projectedMetrics:
|
|
2631
|
-
rank: __expectInt32
|
|
2632
|
-
recommendedInstanceType: __expectString
|
|
2633
|
-
};
|
|
1773
|
+
return take(output, {
|
|
1774
|
+
projectedMetrics: (_) => de_ProjectedMetrics(_, context),
|
|
1775
|
+
rank: __expectInt32,
|
|
1776
|
+
recommendedInstanceType: __expectString,
|
|
1777
|
+
});
|
|
2634
1778
|
};
|
|
2635
1779
|
const de_RecommendedOptionProjectedMetrics = (output, context) => {
|
|
2636
1780
|
const retVal = (output || [])
|
|
2637
1781
|
.filter((e) => e != null)
|
|
2638
1782
|
.map((entry) => {
|
|
2639
|
-
if (entry === null) {
|
|
2640
|
-
return null;
|
|
2641
|
-
}
|
|
2642
1783
|
return de_RecommendedOptionProjectedMetric(entry, context);
|
|
2643
1784
|
});
|
|
2644
1785
|
return retVal;
|
|
2645
1786
|
};
|
|
2646
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2647
|
-
return {
|
|
2648
|
-
message: __expectString(output.message),
|
|
2649
|
-
};
|
|
2650
|
-
};
|
|
2651
|
-
const de_S3Destination = (output, context) => {
|
|
2652
|
-
return {
|
|
2653
|
-
bucket: __expectString(output.bucket),
|
|
2654
|
-
key: __expectString(output.key),
|
|
2655
|
-
metadataKey: __expectString(output.metadataKey),
|
|
2656
|
-
};
|
|
2657
|
-
};
|
|
2658
1787
|
const de_SavingsOpportunity = (output, context) => {
|
|
2659
|
-
return {
|
|
2660
|
-
estimatedMonthlySavings:
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
savingsOpportunityPercentage: __limitedParseDouble(output.savingsOpportunityPercentage),
|
|
2664
|
-
};
|
|
2665
|
-
};
|
|
2666
|
-
const de_Scope = (output, context) => {
|
|
2667
|
-
return {
|
|
2668
|
-
name: __expectString(output.name),
|
|
2669
|
-
value: __expectString(output.value),
|
|
2670
|
-
};
|
|
2671
|
-
};
|
|
2672
|
-
const de_ServiceConfiguration = (output, context) => {
|
|
2673
|
-
return {
|
|
2674
|
-
autoScalingConfiguration: __expectString(output.autoScalingConfiguration),
|
|
2675
|
-
containerConfigurations: output.containerConfigurations != null
|
|
2676
|
-
? de_ContainerConfigurations(output.containerConfigurations, context)
|
|
2677
|
-
: undefined,
|
|
2678
|
-
cpu: __expectInt32(output.cpu),
|
|
2679
|
-
memory: __expectInt32(output.memory),
|
|
2680
|
-
taskDefinitionArn: __expectString(output.taskDefinitionArn),
|
|
2681
|
-
};
|
|
2682
|
-
};
|
|
2683
|
-
const de_ServiceUnavailableException = (output, context) => {
|
|
2684
|
-
return {
|
|
2685
|
-
message: __expectString(output.message),
|
|
2686
|
-
};
|
|
1788
|
+
return take(output, {
|
|
1789
|
+
estimatedMonthlySavings: (_) => de_EstimatedMonthlySavings(_, context),
|
|
1790
|
+
savingsOpportunityPercentage: __limitedParseDouble,
|
|
1791
|
+
});
|
|
2687
1792
|
};
|
|
2688
1793
|
const de_Summaries = (output, context) => {
|
|
2689
1794
|
const retVal = (output || [])
|
|
2690
1795
|
.filter((e) => e != null)
|
|
2691
1796
|
.map((entry) => {
|
|
2692
|
-
if (entry === null) {
|
|
2693
|
-
return null;
|
|
2694
|
-
}
|
|
2695
1797
|
return de_Summary(entry, context);
|
|
2696
1798
|
});
|
|
2697
1799
|
return retVal;
|
|
2698
1800
|
};
|
|
2699
1801
|
const de_Summary = (output, context) => {
|
|
2700
|
-
return {
|
|
2701
|
-
name: __expectString
|
|
2702
|
-
reasonCodeSummaries:
|
|
2703
|
-
value: __limitedParseDouble
|
|
2704
|
-
};
|
|
2705
|
-
};
|
|
2706
|
-
const de_ThrottlingException = (output, context) => {
|
|
2707
|
-
return {
|
|
2708
|
-
message: __expectString(output.message),
|
|
2709
|
-
};
|
|
1802
|
+
return take(output, {
|
|
1803
|
+
name: __expectString,
|
|
1804
|
+
reasonCodeSummaries: (_) => de_ReasonCodeSummaries(_, context),
|
|
1805
|
+
value: __limitedParseDouble,
|
|
1806
|
+
});
|
|
2710
1807
|
};
|
|
2711
1808
|
const de_Timestamps = (output, context) => {
|
|
2712
1809
|
const retVal = (output || [])
|
|
2713
1810
|
.filter((e) => e != null)
|
|
2714
1811
|
.map((entry) => {
|
|
2715
|
-
if (entry === null) {
|
|
2716
|
-
return null;
|
|
2717
|
-
}
|
|
2718
1812
|
return __expectNonNull(__parseEpochTimestamp(__expectNumber(entry)));
|
|
2719
1813
|
});
|
|
2720
1814
|
return retVal;
|
|
2721
1815
|
};
|
|
2722
|
-
const de_UpdateEnrollmentStatusResponse = (output, context) => {
|
|
2723
|
-
return {
|
|
2724
|
-
status: __expectString(output.status),
|
|
2725
|
-
statusReason: __expectString(output.statusReason),
|
|
2726
|
-
};
|
|
2727
|
-
};
|
|
2728
1816
|
const de_UtilizationMetric = (output, context) => {
|
|
2729
|
-
return {
|
|
2730
|
-
name: __expectString
|
|
2731
|
-
statistic: __expectString
|
|
2732
|
-
value: __limitedParseDouble
|
|
2733
|
-
};
|
|
1817
|
+
return take(output, {
|
|
1818
|
+
name: __expectString,
|
|
1819
|
+
statistic: __expectString,
|
|
1820
|
+
value: __limitedParseDouble,
|
|
1821
|
+
});
|
|
2734
1822
|
};
|
|
2735
1823
|
const de_UtilizationMetrics = (output, context) => {
|
|
2736
1824
|
const retVal = (output || [])
|
|
2737
1825
|
.filter((e) => e != null)
|
|
2738
1826
|
.map((entry) => {
|
|
2739
|
-
if (entry === null) {
|
|
2740
|
-
return null;
|
|
2741
|
-
}
|
|
2742
1827
|
return de_UtilizationMetric(entry, context);
|
|
2743
1828
|
});
|
|
2744
1829
|
return retVal;
|
|
2745
1830
|
};
|
|
2746
|
-
const de_VolumeConfiguration = (output, context) => {
|
|
2747
|
-
return {
|
|
2748
|
-
rootVolume: __expectBoolean(output.rootVolume),
|
|
2749
|
-
volumeBaselineIOPS: __expectInt32(output.volumeBaselineIOPS),
|
|
2750
|
-
volumeBaselineThroughput: __expectInt32(output.volumeBaselineThroughput),
|
|
2751
|
-
volumeBurstIOPS: __expectInt32(output.volumeBurstIOPS),
|
|
2752
|
-
volumeBurstThroughput: __expectInt32(output.volumeBurstThroughput),
|
|
2753
|
-
volumeSize: __expectInt32(output.volumeSize),
|
|
2754
|
-
volumeType: __expectString(output.volumeType),
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
1831
|
const de_VolumeRecommendation = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
accountId: __expectString
|
|
2760
|
-
currentConfiguration:
|
|
2761
|
-
currentPerformanceRisk: __expectString
|
|
2762
|
-
finding: __expectString
|
|
2763
|
-
lastRefreshTimestamp:
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
volumeRecommendationOptions: output.volumeRecommendationOptions != null
|
|
2770
|
-
? de_VolumeRecommendationOptions(output.volumeRecommendationOptions, context)
|
|
2771
|
-
: undefined,
|
|
2772
|
-
};
|
|
1832
|
+
return take(output, {
|
|
1833
|
+
accountId: __expectString,
|
|
1834
|
+
currentConfiguration: _json,
|
|
1835
|
+
currentPerformanceRisk: __expectString,
|
|
1836
|
+
finding: __expectString,
|
|
1837
|
+
lastRefreshTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1838
|
+
lookBackPeriodInDays: __limitedParseDouble,
|
|
1839
|
+
utilizationMetrics: (_) => de_EBSUtilizationMetrics(_, context),
|
|
1840
|
+
volumeArn: __expectString,
|
|
1841
|
+
volumeRecommendationOptions: (_) => de_VolumeRecommendationOptions(_, context),
|
|
1842
|
+
});
|
|
2773
1843
|
};
|
|
2774
1844
|
const de_VolumeRecommendationOption = (output, context) => {
|
|
2775
|
-
return {
|
|
2776
|
-
configuration:
|
|
2777
|
-
performanceRisk: __limitedParseDouble
|
|
2778
|
-
rank: __expectInt32
|
|
2779
|
-
savingsOpportunity:
|
|
2780
|
-
};
|
|
1845
|
+
return take(output, {
|
|
1846
|
+
configuration: _json,
|
|
1847
|
+
performanceRisk: __limitedParseDouble,
|
|
1848
|
+
rank: __expectInt32,
|
|
1849
|
+
savingsOpportunity: (_) => de_SavingsOpportunity(_, context),
|
|
1850
|
+
});
|
|
2781
1851
|
};
|
|
2782
1852
|
const de_VolumeRecommendationOptions = (output, context) => {
|
|
2783
1853
|
const retVal = (output || [])
|
|
2784
1854
|
.filter((e) => e != null)
|
|
2785
1855
|
.map((entry) => {
|
|
2786
|
-
if (entry === null) {
|
|
2787
|
-
return null;
|
|
2788
|
-
}
|
|
2789
1856
|
return de_VolumeRecommendationOption(entry, context);
|
|
2790
1857
|
});
|
|
2791
1858
|
return retVal;
|
|
@@ -2794,9 +1861,6 @@ const de_VolumeRecommendations = (output, context) => {
|
|
|
2794
1861
|
const retVal = (output || [])
|
|
2795
1862
|
.filter((e) => e != null)
|
|
2796
1863
|
.map((entry) => {
|
|
2797
|
-
if (entry === null) {
|
|
2798
|
-
return null;
|
|
2799
|
-
}
|
|
2800
1864
|
return de_VolumeRecommendation(entry, context);
|
|
2801
1865
|
});
|
|
2802
1866
|
return retVal;
|
|
@@ -2814,6 +1878,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2814
1878
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2815
1879
|
};
|
|
2816
1880
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1881
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2817
1882
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2818
1883
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2819
1884
|
const contents = {
|