@aws-sdk/client-cost-explorer 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +452 -2214
- package/dist-es/protocols/Aws_json1_1.js +453 -2215
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CostExplorerServiceException as __BaseException } from "../models/CostExplorerServiceException";
|
|
4
4
|
import { BillExpirationException, DataUnavailableException, GenerationExistsException, InvalidNextTokenException, LimitExceededException, RequestChangedException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyTagsException, UnknownMonitorException, UnknownSubscriptionException, UnresolvableUsageUnitException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateAnomalyMonitorCommand = async (input, context) => {
|
|
@@ -23,25 +23,25 @@ export const se_CreateCostCategoryDefinitionCommand = async (input, context) =>
|
|
|
23
23
|
export const se_DeleteAnomalyMonitorCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("DeleteAnomalyMonitor");
|
|
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_DeleteAnomalySubscriptionCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DeleteAnomalySubscription");
|
|
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_DeleteCostCategoryDefinitionCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("DeleteCostCategoryDefinition");
|
|
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_DescribeCostCategoryDefinitionCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("DescribeCostCategoryDefinition");
|
|
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_GetAnomaliesCommand = async (input, context) => {
|
|
@@ -53,13 +53,13 @@ export const se_GetAnomaliesCommand = async (input, context) => {
|
|
|
53
53
|
export const se_GetAnomalyMonitorsCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("GetAnomalyMonitors");
|
|
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_GetAnomalySubscriptionsCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("GetAnomalySubscriptions");
|
|
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_GetCostAndUsageCommand = async (input, context) => {
|
|
@@ -155,55 +155,55 @@ export const se_GetUsageForecastCommand = async (input, context) => {
|
|
|
155
155
|
export const se_ListCostAllocationTagsCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("ListCostAllocationTags");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
export const se_ListCostCategoryDefinitionsCommand = async (input, context) => {
|
|
162
162
|
const headers = sharedHeaders("ListCostCategoryDefinitions");
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
167
|
export const se_ListSavingsPlansPurchaseRecommendationGenerationCommand = async (input, context) => {
|
|
168
168
|
const headers = sharedHeaders("ListSavingsPlansPurchaseRecommendationGeneration");
|
|
169
169
|
let body;
|
|
170
|
-
body = JSON.stringify(
|
|
170
|
+
body = JSON.stringify(_json(input));
|
|
171
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
172
|
};
|
|
173
173
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
174
174
|
const headers = sharedHeaders("ListTagsForResource");
|
|
175
175
|
let body;
|
|
176
|
-
body = JSON.stringify(
|
|
176
|
+
body = JSON.stringify(_json(input));
|
|
177
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
178
|
};
|
|
179
179
|
export const se_ProvideAnomalyFeedbackCommand = async (input, context) => {
|
|
180
180
|
const headers = sharedHeaders("ProvideAnomalyFeedback");
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(_json(input));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
185
|
export const se_StartSavingsPlansPurchaseRecommendationGenerationCommand = async (input, context) => {
|
|
186
186
|
const headers = sharedHeaders("StartSavingsPlansPurchaseRecommendationGeneration");
|
|
187
187
|
let body;
|
|
188
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify(_json(input));
|
|
189
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
190
|
};
|
|
191
191
|
export const se_TagResourceCommand = async (input, context) => {
|
|
192
192
|
const headers = sharedHeaders("TagResource");
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(_json(input));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
197
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
198
198
|
const headers = sharedHeaders("UntagResource");
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(_json(input));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
203
|
export const se_UpdateAnomalyMonitorCommand = async (input, context) => {
|
|
204
204
|
const headers = sharedHeaders("UpdateAnomalyMonitor");
|
|
205
205
|
let body;
|
|
206
|
-
body = JSON.stringify(
|
|
206
|
+
body = JSON.stringify(_json(input));
|
|
207
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
208
|
};
|
|
209
209
|
export const se_UpdateAnomalySubscriptionCommand = async (input, context) => {
|
|
@@ -215,7 +215,7 @@ export const se_UpdateAnomalySubscriptionCommand = async (input, context) => {
|
|
|
215
215
|
export const se_UpdateCostAllocationTagsStatusCommand = async (input, context) => {
|
|
216
216
|
const headers = sharedHeaders("UpdateCostAllocationTagsStatus");
|
|
217
217
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
218
|
+
body = JSON.stringify(_json(input));
|
|
219
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
220
|
};
|
|
221
221
|
export const se_UpdateCostCategoryDefinitionCommand = async (input, context) => {
|
|
@@ -230,12 +230,12 @@ export const de_CreateAnomalyMonitorCommand = async (output, context) => {
|
|
|
230
230
|
}
|
|
231
231
|
const data = await parseBody(output.body, context);
|
|
232
232
|
let contents = {};
|
|
233
|
-
contents =
|
|
233
|
+
contents = _json(data);
|
|
234
234
|
const response = {
|
|
235
235
|
$metadata: deserializeMetadata(output),
|
|
236
236
|
...contents,
|
|
237
237
|
};
|
|
238
|
-
return
|
|
238
|
+
return response;
|
|
239
239
|
};
|
|
240
240
|
const de_CreateAnomalyMonitorCommandError = async (output, context) => {
|
|
241
241
|
const parsedOutput = {
|
|
@@ -249,10 +249,9 @@ const de_CreateAnomalyMonitorCommandError = async (output, context) => {
|
|
|
249
249
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
250
250
|
default:
|
|
251
251
|
const parsedBody = parsedOutput.body;
|
|
252
|
-
throwDefaultError({
|
|
252
|
+
return throwDefaultError({
|
|
253
253
|
output,
|
|
254
254
|
parsedBody,
|
|
255
|
-
exceptionCtor: __BaseException,
|
|
256
255
|
errorCode,
|
|
257
256
|
});
|
|
258
257
|
}
|
|
@@ -263,12 +262,12 @@ export const de_CreateAnomalySubscriptionCommand = async (output, context) => {
|
|
|
263
262
|
}
|
|
264
263
|
const data = await parseBody(output.body, context);
|
|
265
264
|
let contents = {};
|
|
266
|
-
contents =
|
|
265
|
+
contents = _json(data);
|
|
267
266
|
const response = {
|
|
268
267
|
$metadata: deserializeMetadata(output),
|
|
269
268
|
...contents,
|
|
270
269
|
};
|
|
271
|
-
return
|
|
270
|
+
return response;
|
|
272
271
|
};
|
|
273
272
|
const de_CreateAnomalySubscriptionCommandError = async (output, context) => {
|
|
274
273
|
const parsedOutput = {
|
|
@@ -285,10 +284,9 @@ const de_CreateAnomalySubscriptionCommandError = async (output, context) => {
|
|
|
285
284
|
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
286
285
|
default:
|
|
287
286
|
const parsedBody = parsedOutput.body;
|
|
288
|
-
throwDefaultError({
|
|
287
|
+
return throwDefaultError({
|
|
289
288
|
output,
|
|
290
289
|
parsedBody,
|
|
291
|
-
exceptionCtor: __BaseException,
|
|
292
290
|
errorCode,
|
|
293
291
|
});
|
|
294
292
|
}
|
|
@@ -299,12 +297,12 @@ export const de_CreateCostCategoryDefinitionCommand = async (output, context) =>
|
|
|
299
297
|
}
|
|
300
298
|
const data = await parseBody(output.body, context);
|
|
301
299
|
let contents = {};
|
|
302
|
-
contents =
|
|
300
|
+
contents = _json(data);
|
|
303
301
|
const response = {
|
|
304
302
|
$metadata: deserializeMetadata(output),
|
|
305
303
|
...contents,
|
|
306
304
|
};
|
|
307
|
-
return
|
|
305
|
+
return response;
|
|
308
306
|
};
|
|
309
307
|
const de_CreateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
310
308
|
const parsedOutput = {
|
|
@@ -321,10 +319,9 @@ const de_CreateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
|
321
319
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
322
320
|
default:
|
|
323
321
|
const parsedBody = parsedOutput.body;
|
|
324
|
-
throwDefaultError({
|
|
322
|
+
return throwDefaultError({
|
|
325
323
|
output,
|
|
326
324
|
parsedBody,
|
|
327
|
-
exceptionCtor: __BaseException,
|
|
328
325
|
errorCode,
|
|
329
326
|
});
|
|
330
327
|
}
|
|
@@ -335,12 +332,12 @@ export const de_DeleteAnomalyMonitorCommand = async (output, context) => {
|
|
|
335
332
|
}
|
|
336
333
|
const data = await parseBody(output.body, context);
|
|
337
334
|
let contents = {};
|
|
338
|
-
contents =
|
|
335
|
+
contents = _json(data);
|
|
339
336
|
const response = {
|
|
340
337
|
$metadata: deserializeMetadata(output),
|
|
341
338
|
...contents,
|
|
342
339
|
};
|
|
343
|
-
return
|
|
340
|
+
return response;
|
|
344
341
|
};
|
|
345
342
|
const de_DeleteAnomalyMonitorCommandError = async (output, context) => {
|
|
346
343
|
const parsedOutput = {
|
|
@@ -357,10 +354,9 @@ const de_DeleteAnomalyMonitorCommandError = async (output, context) => {
|
|
|
357
354
|
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
358
355
|
default:
|
|
359
356
|
const parsedBody = parsedOutput.body;
|
|
360
|
-
throwDefaultError({
|
|
357
|
+
return throwDefaultError({
|
|
361
358
|
output,
|
|
362
359
|
parsedBody,
|
|
363
|
-
exceptionCtor: __BaseException,
|
|
364
360
|
errorCode,
|
|
365
361
|
});
|
|
366
362
|
}
|
|
@@ -371,12 +367,12 @@ export const de_DeleteAnomalySubscriptionCommand = async (output, context) => {
|
|
|
371
367
|
}
|
|
372
368
|
const data = await parseBody(output.body, context);
|
|
373
369
|
let contents = {};
|
|
374
|
-
contents =
|
|
370
|
+
contents = _json(data);
|
|
375
371
|
const response = {
|
|
376
372
|
$metadata: deserializeMetadata(output),
|
|
377
373
|
...contents,
|
|
378
374
|
};
|
|
379
|
-
return
|
|
375
|
+
return response;
|
|
380
376
|
};
|
|
381
377
|
const de_DeleteAnomalySubscriptionCommandError = async (output, context) => {
|
|
382
378
|
const parsedOutput = {
|
|
@@ -393,10 +389,9 @@ const de_DeleteAnomalySubscriptionCommandError = async (output, context) => {
|
|
|
393
389
|
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
394
390
|
default:
|
|
395
391
|
const parsedBody = parsedOutput.body;
|
|
396
|
-
throwDefaultError({
|
|
392
|
+
return throwDefaultError({
|
|
397
393
|
output,
|
|
398
394
|
parsedBody,
|
|
399
|
-
exceptionCtor: __BaseException,
|
|
400
395
|
errorCode,
|
|
401
396
|
});
|
|
402
397
|
}
|
|
@@ -407,12 +402,12 @@ export const de_DeleteCostCategoryDefinitionCommand = async (output, context) =>
|
|
|
407
402
|
}
|
|
408
403
|
const data = await parseBody(output.body, context);
|
|
409
404
|
let contents = {};
|
|
410
|
-
contents =
|
|
405
|
+
contents = _json(data);
|
|
411
406
|
const response = {
|
|
412
407
|
$metadata: deserializeMetadata(output),
|
|
413
408
|
...contents,
|
|
414
409
|
};
|
|
415
|
-
return
|
|
410
|
+
return response;
|
|
416
411
|
};
|
|
417
412
|
const de_DeleteCostCategoryDefinitionCommandError = async (output, context) => {
|
|
418
413
|
const parsedOutput = {
|
|
@@ -429,10 +424,9 @@ const de_DeleteCostCategoryDefinitionCommandError = async (output, context) => {
|
|
|
429
424
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
430
425
|
default:
|
|
431
426
|
const parsedBody = parsedOutput.body;
|
|
432
|
-
throwDefaultError({
|
|
427
|
+
return throwDefaultError({
|
|
433
428
|
output,
|
|
434
429
|
parsedBody,
|
|
435
|
-
exceptionCtor: __BaseException,
|
|
436
430
|
errorCode,
|
|
437
431
|
});
|
|
438
432
|
}
|
|
@@ -448,7 +442,7 @@ export const de_DescribeCostCategoryDefinitionCommand = async (output, context)
|
|
|
448
442
|
$metadata: deserializeMetadata(output),
|
|
449
443
|
...contents,
|
|
450
444
|
};
|
|
451
|
-
return
|
|
445
|
+
return response;
|
|
452
446
|
};
|
|
453
447
|
const de_DescribeCostCategoryDefinitionCommandError = async (output, context) => {
|
|
454
448
|
const parsedOutput = {
|
|
@@ -465,10 +459,9 @@ const de_DescribeCostCategoryDefinitionCommandError = async (output, context) =>
|
|
|
465
459
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
466
460
|
default:
|
|
467
461
|
const parsedBody = parsedOutput.body;
|
|
468
|
-
throwDefaultError({
|
|
462
|
+
return throwDefaultError({
|
|
469
463
|
output,
|
|
470
464
|
parsedBody,
|
|
471
|
-
exceptionCtor: __BaseException,
|
|
472
465
|
errorCode,
|
|
473
466
|
});
|
|
474
467
|
}
|
|
@@ -484,7 +477,7 @@ export const de_GetAnomaliesCommand = async (output, context) => {
|
|
|
484
477
|
$metadata: deserializeMetadata(output),
|
|
485
478
|
...contents,
|
|
486
479
|
};
|
|
487
|
-
return
|
|
480
|
+
return response;
|
|
488
481
|
};
|
|
489
482
|
const de_GetAnomaliesCommandError = async (output, context) => {
|
|
490
483
|
const parsedOutput = {
|
|
@@ -501,10 +494,9 @@ const de_GetAnomaliesCommandError = async (output, context) => {
|
|
|
501
494
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
502
495
|
default:
|
|
503
496
|
const parsedBody = parsedOutput.body;
|
|
504
|
-
throwDefaultError({
|
|
497
|
+
return throwDefaultError({
|
|
505
498
|
output,
|
|
506
499
|
parsedBody,
|
|
507
|
-
exceptionCtor: __BaseException,
|
|
508
500
|
errorCode,
|
|
509
501
|
});
|
|
510
502
|
}
|
|
@@ -520,7 +512,7 @@ export const de_GetAnomalyMonitorsCommand = async (output, context) => {
|
|
|
520
512
|
$metadata: deserializeMetadata(output),
|
|
521
513
|
...contents,
|
|
522
514
|
};
|
|
523
|
-
return
|
|
515
|
+
return response;
|
|
524
516
|
};
|
|
525
517
|
const de_GetAnomalyMonitorsCommandError = async (output, context) => {
|
|
526
518
|
const parsedOutput = {
|
|
@@ -540,10 +532,9 @@ const de_GetAnomalyMonitorsCommandError = async (output, context) => {
|
|
|
540
532
|
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
541
533
|
default:
|
|
542
534
|
const parsedBody = parsedOutput.body;
|
|
543
|
-
throwDefaultError({
|
|
535
|
+
return throwDefaultError({
|
|
544
536
|
output,
|
|
545
537
|
parsedBody,
|
|
546
|
-
exceptionCtor: __BaseException,
|
|
547
538
|
errorCode,
|
|
548
539
|
});
|
|
549
540
|
}
|
|
@@ -559,7 +550,7 @@ export const de_GetAnomalySubscriptionsCommand = async (output, context) => {
|
|
|
559
550
|
$metadata: deserializeMetadata(output),
|
|
560
551
|
...contents,
|
|
561
552
|
};
|
|
562
|
-
return
|
|
553
|
+
return response;
|
|
563
554
|
};
|
|
564
555
|
const de_GetAnomalySubscriptionsCommandError = async (output, context) => {
|
|
565
556
|
const parsedOutput = {
|
|
@@ -579,10 +570,9 @@ const de_GetAnomalySubscriptionsCommandError = async (output, context) => {
|
|
|
579
570
|
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
580
571
|
default:
|
|
581
572
|
const parsedBody = parsedOutput.body;
|
|
582
|
-
throwDefaultError({
|
|
573
|
+
return throwDefaultError({
|
|
583
574
|
output,
|
|
584
575
|
parsedBody,
|
|
585
|
-
exceptionCtor: __BaseException,
|
|
586
576
|
errorCode,
|
|
587
577
|
});
|
|
588
578
|
}
|
|
@@ -593,12 +583,12 @@ export const de_GetCostAndUsageCommand = async (output, context) => {
|
|
|
593
583
|
}
|
|
594
584
|
const data = await parseBody(output.body, context);
|
|
595
585
|
let contents = {};
|
|
596
|
-
contents =
|
|
586
|
+
contents = _json(data);
|
|
597
587
|
const response = {
|
|
598
588
|
$metadata: deserializeMetadata(output),
|
|
599
589
|
...contents,
|
|
600
590
|
};
|
|
601
|
-
return
|
|
591
|
+
return response;
|
|
602
592
|
};
|
|
603
593
|
const de_GetCostAndUsageCommandError = async (output, context) => {
|
|
604
594
|
const parsedOutput = {
|
|
@@ -624,10 +614,9 @@ const de_GetCostAndUsageCommandError = async (output, context) => {
|
|
|
624
614
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
625
615
|
default:
|
|
626
616
|
const parsedBody = parsedOutput.body;
|
|
627
|
-
throwDefaultError({
|
|
617
|
+
return throwDefaultError({
|
|
628
618
|
output,
|
|
629
619
|
parsedBody,
|
|
630
|
-
exceptionCtor: __BaseException,
|
|
631
620
|
errorCode,
|
|
632
621
|
});
|
|
633
622
|
}
|
|
@@ -638,12 +627,12 @@ export const de_GetCostAndUsageWithResourcesCommand = async (output, context) =>
|
|
|
638
627
|
}
|
|
639
628
|
const data = await parseBody(output.body, context);
|
|
640
629
|
let contents = {};
|
|
641
|
-
contents =
|
|
630
|
+
contents = _json(data);
|
|
642
631
|
const response = {
|
|
643
632
|
$metadata: deserializeMetadata(output),
|
|
644
633
|
...contents,
|
|
645
634
|
};
|
|
646
|
-
return
|
|
635
|
+
return response;
|
|
647
636
|
};
|
|
648
637
|
const de_GetCostAndUsageWithResourcesCommandError = async (output, context) => {
|
|
649
638
|
const parsedOutput = {
|
|
@@ -669,10 +658,9 @@ const de_GetCostAndUsageWithResourcesCommandError = async (output, context) => {
|
|
|
669
658
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
670
659
|
default:
|
|
671
660
|
const parsedBody = parsedOutput.body;
|
|
672
|
-
throwDefaultError({
|
|
661
|
+
return throwDefaultError({
|
|
673
662
|
output,
|
|
674
663
|
parsedBody,
|
|
675
|
-
exceptionCtor: __BaseException,
|
|
676
664
|
errorCode,
|
|
677
665
|
});
|
|
678
666
|
}
|
|
@@ -683,12 +671,12 @@ export const de_GetCostCategoriesCommand = async (output, context) => {
|
|
|
683
671
|
}
|
|
684
672
|
const data = await parseBody(output.body, context);
|
|
685
673
|
let contents = {};
|
|
686
|
-
contents =
|
|
674
|
+
contents = _json(data);
|
|
687
675
|
const response = {
|
|
688
676
|
$metadata: deserializeMetadata(output),
|
|
689
677
|
...contents,
|
|
690
678
|
};
|
|
691
|
-
return
|
|
679
|
+
return response;
|
|
692
680
|
};
|
|
693
681
|
const de_GetCostCategoriesCommandError = async (output, context) => {
|
|
694
682
|
const parsedOutput = {
|
|
@@ -714,10 +702,9 @@ const de_GetCostCategoriesCommandError = async (output, context) => {
|
|
|
714
702
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
715
703
|
default:
|
|
716
704
|
const parsedBody = parsedOutput.body;
|
|
717
|
-
throwDefaultError({
|
|
705
|
+
return throwDefaultError({
|
|
718
706
|
output,
|
|
719
707
|
parsedBody,
|
|
720
|
-
exceptionCtor: __BaseException,
|
|
721
708
|
errorCode,
|
|
722
709
|
});
|
|
723
710
|
}
|
|
@@ -728,12 +715,12 @@ export const de_GetCostForecastCommand = async (output, context) => {
|
|
|
728
715
|
}
|
|
729
716
|
const data = await parseBody(output.body, context);
|
|
730
717
|
let contents = {};
|
|
731
|
-
contents =
|
|
718
|
+
contents = _json(data);
|
|
732
719
|
const response = {
|
|
733
720
|
$metadata: deserializeMetadata(output),
|
|
734
721
|
...contents,
|
|
735
722
|
};
|
|
736
|
-
return
|
|
723
|
+
return response;
|
|
737
724
|
};
|
|
738
725
|
const de_GetCostForecastCommandError = async (output, context) => {
|
|
739
726
|
const parsedOutput = {
|
|
@@ -750,10 +737,9 @@ const de_GetCostForecastCommandError = async (output, context) => {
|
|
|
750
737
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
751
738
|
default:
|
|
752
739
|
const parsedBody = parsedOutput.body;
|
|
753
|
-
throwDefaultError({
|
|
740
|
+
return throwDefaultError({
|
|
754
741
|
output,
|
|
755
742
|
parsedBody,
|
|
756
|
-
exceptionCtor: __BaseException,
|
|
757
743
|
errorCode,
|
|
758
744
|
});
|
|
759
745
|
}
|
|
@@ -764,12 +750,12 @@ export const de_GetDimensionValuesCommand = async (output, context) => {
|
|
|
764
750
|
}
|
|
765
751
|
const data = await parseBody(output.body, context);
|
|
766
752
|
let contents = {};
|
|
767
|
-
contents =
|
|
753
|
+
contents = _json(data);
|
|
768
754
|
const response = {
|
|
769
755
|
$metadata: deserializeMetadata(output),
|
|
770
756
|
...contents,
|
|
771
757
|
};
|
|
772
|
-
return
|
|
758
|
+
return response;
|
|
773
759
|
};
|
|
774
760
|
const de_GetDimensionValuesCommandError = async (output, context) => {
|
|
775
761
|
const parsedOutput = {
|
|
@@ -795,10 +781,9 @@ const de_GetDimensionValuesCommandError = async (output, context) => {
|
|
|
795
781
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
796
782
|
default:
|
|
797
783
|
const parsedBody = parsedOutput.body;
|
|
798
|
-
throwDefaultError({
|
|
784
|
+
return throwDefaultError({
|
|
799
785
|
output,
|
|
800
786
|
parsedBody,
|
|
801
|
-
exceptionCtor: __BaseException,
|
|
802
787
|
errorCode,
|
|
803
788
|
});
|
|
804
789
|
}
|
|
@@ -809,12 +794,12 @@ export const de_GetReservationCoverageCommand = async (output, context) => {
|
|
|
809
794
|
}
|
|
810
795
|
const data = await parseBody(output.body, context);
|
|
811
796
|
let contents = {};
|
|
812
|
-
contents =
|
|
797
|
+
contents = _json(data);
|
|
813
798
|
const response = {
|
|
814
799
|
$metadata: deserializeMetadata(output),
|
|
815
800
|
...contents,
|
|
816
801
|
};
|
|
817
|
-
return
|
|
802
|
+
return response;
|
|
818
803
|
};
|
|
819
804
|
const de_GetReservationCoverageCommandError = async (output, context) => {
|
|
820
805
|
const parsedOutput = {
|
|
@@ -834,10 +819,9 @@ const de_GetReservationCoverageCommandError = async (output, context) => {
|
|
|
834
819
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
835
820
|
default:
|
|
836
821
|
const parsedBody = parsedOutput.body;
|
|
837
|
-
throwDefaultError({
|
|
822
|
+
return throwDefaultError({
|
|
838
823
|
output,
|
|
839
824
|
parsedBody,
|
|
840
|
-
exceptionCtor: __BaseException,
|
|
841
825
|
errorCode,
|
|
842
826
|
});
|
|
843
827
|
}
|
|
@@ -848,12 +832,12 @@ export const de_GetReservationPurchaseRecommendationCommand = async (output, con
|
|
|
848
832
|
}
|
|
849
833
|
const data = await parseBody(output.body, context);
|
|
850
834
|
let contents = {};
|
|
851
|
-
contents =
|
|
835
|
+
contents = _json(data);
|
|
852
836
|
const response = {
|
|
853
837
|
$metadata: deserializeMetadata(output),
|
|
854
838
|
...contents,
|
|
855
839
|
};
|
|
856
|
-
return
|
|
840
|
+
return response;
|
|
857
841
|
};
|
|
858
842
|
const de_GetReservationPurchaseRecommendationCommandError = async (output, context) => {
|
|
859
843
|
const parsedOutput = {
|
|
@@ -873,10 +857,9 @@ const de_GetReservationPurchaseRecommendationCommandError = async (output, conte
|
|
|
873
857
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
874
858
|
default:
|
|
875
859
|
const parsedBody = parsedOutput.body;
|
|
876
|
-
throwDefaultError({
|
|
860
|
+
return throwDefaultError({
|
|
877
861
|
output,
|
|
878
862
|
parsedBody,
|
|
879
|
-
exceptionCtor: __BaseException,
|
|
880
863
|
errorCode,
|
|
881
864
|
});
|
|
882
865
|
}
|
|
@@ -887,12 +870,12 @@ export const de_GetReservationUtilizationCommand = async (output, context) => {
|
|
|
887
870
|
}
|
|
888
871
|
const data = await parseBody(output.body, context);
|
|
889
872
|
let contents = {};
|
|
890
|
-
contents =
|
|
873
|
+
contents = _json(data);
|
|
891
874
|
const response = {
|
|
892
875
|
$metadata: deserializeMetadata(output),
|
|
893
876
|
...contents,
|
|
894
877
|
};
|
|
895
|
-
return
|
|
878
|
+
return response;
|
|
896
879
|
};
|
|
897
880
|
const de_GetReservationUtilizationCommandError = async (output, context) => {
|
|
898
881
|
const parsedOutput = {
|
|
@@ -912,10 +895,9 @@ const de_GetReservationUtilizationCommandError = async (output, context) => {
|
|
|
912
895
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
913
896
|
default:
|
|
914
897
|
const parsedBody = parsedOutput.body;
|
|
915
|
-
throwDefaultError({
|
|
898
|
+
return throwDefaultError({
|
|
916
899
|
output,
|
|
917
900
|
parsedBody,
|
|
918
|
-
exceptionCtor: __BaseException,
|
|
919
901
|
errorCode,
|
|
920
902
|
});
|
|
921
903
|
}
|
|
@@ -926,12 +908,12 @@ export const de_GetRightsizingRecommendationCommand = async (output, context) =>
|
|
|
926
908
|
}
|
|
927
909
|
const data = await parseBody(output.body, context);
|
|
928
910
|
let contents = {};
|
|
929
|
-
contents =
|
|
911
|
+
contents = _json(data);
|
|
930
912
|
const response = {
|
|
931
913
|
$metadata: deserializeMetadata(output),
|
|
932
914
|
...contents,
|
|
933
915
|
};
|
|
934
|
-
return
|
|
916
|
+
return response;
|
|
935
917
|
};
|
|
936
918
|
const de_GetRightsizingRecommendationCommandError = async (output, context) => {
|
|
937
919
|
const parsedOutput = {
|
|
@@ -948,10 +930,9 @@ const de_GetRightsizingRecommendationCommandError = async (output, context) => {
|
|
|
948
930
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
949
931
|
default:
|
|
950
932
|
const parsedBody = parsedOutput.body;
|
|
951
|
-
throwDefaultError({
|
|
933
|
+
return throwDefaultError({
|
|
952
934
|
output,
|
|
953
935
|
parsedBody,
|
|
954
|
-
exceptionCtor: __BaseException,
|
|
955
936
|
errorCode,
|
|
956
937
|
});
|
|
957
938
|
}
|
|
@@ -962,12 +943,12 @@ export const de_GetSavingsPlansCoverageCommand = async (output, context) => {
|
|
|
962
943
|
}
|
|
963
944
|
const data = await parseBody(output.body, context);
|
|
964
945
|
let contents = {};
|
|
965
|
-
contents =
|
|
946
|
+
contents = _json(data);
|
|
966
947
|
const response = {
|
|
967
948
|
$metadata: deserializeMetadata(output),
|
|
968
949
|
...contents,
|
|
969
950
|
};
|
|
970
|
-
return
|
|
951
|
+
return response;
|
|
971
952
|
};
|
|
972
953
|
const de_GetSavingsPlansCoverageCommandError = async (output, context) => {
|
|
973
954
|
const parsedOutput = {
|
|
@@ -987,10 +968,9 @@ const de_GetSavingsPlansCoverageCommandError = async (output, context) => {
|
|
|
987
968
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
988
969
|
default:
|
|
989
970
|
const parsedBody = parsedOutput.body;
|
|
990
|
-
throwDefaultError({
|
|
971
|
+
return throwDefaultError({
|
|
991
972
|
output,
|
|
992
973
|
parsedBody,
|
|
993
|
-
exceptionCtor: __BaseException,
|
|
994
974
|
errorCode,
|
|
995
975
|
});
|
|
996
976
|
}
|
|
@@ -1001,12 +981,12 @@ export const de_GetSavingsPlansPurchaseRecommendationCommand = async (output, co
|
|
|
1001
981
|
}
|
|
1002
982
|
const data = await parseBody(output.body, context);
|
|
1003
983
|
let contents = {};
|
|
1004
|
-
contents =
|
|
984
|
+
contents = _json(data);
|
|
1005
985
|
const response = {
|
|
1006
986
|
$metadata: deserializeMetadata(output),
|
|
1007
987
|
...contents,
|
|
1008
988
|
};
|
|
1009
|
-
return
|
|
989
|
+
return response;
|
|
1010
990
|
};
|
|
1011
991
|
const de_GetSavingsPlansPurchaseRecommendationCommandError = async (output, context) => {
|
|
1012
992
|
const parsedOutput = {
|
|
@@ -1023,10 +1003,9 @@ const de_GetSavingsPlansPurchaseRecommendationCommandError = async (output, cont
|
|
|
1023
1003
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1024
1004
|
default:
|
|
1025
1005
|
const parsedBody = parsedOutput.body;
|
|
1026
|
-
throwDefaultError({
|
|
1006
|
+
return throwDefaultError({
|
|
1027
1007
|
output,
|
|
1028
1008
|
parsedBody,
|
|
1029
|
-
exceptionCtor: __BaseException,
|
|
1030
1009
|
errorCode,
|
|
1031
1010
|
});
|
|
1032
1011
|
}
|
|
@@ -1037,12 +1016,12 @@ export const de_GetSavingsPlansUtilizationCommand = async (output, context) => {
|
|
|
1037
1016
|
}
|
|
1038
1017
|
const data = await parseBody(output.body, context);
|
|
1039
1018
|
let contents = {};
|
|
1040
|
-
contents =
|
|
1019
|
+
contents = _json(data);
|
|
1041
1020
|
const response = {
|
|
1042
1021
|
$metadata: deserializeMetadata(output),
|
|
1043
1022
|
...contents,
|
|
1044
1023
|
};
|
|
1045
|
-
return
|
|
1024
|
+
return response;
|
|
1046
1025
|
};
|
|
1047
1026
|
const de_GetSavingsPlansUtilizationCommandError = async (output, context) => {
|
|
1048
1027
|
const parsedOutput = {
|
|
@@ -1059,10 +1038,9 @@ const de_GetSavingsPlansUtilizationCommandError = async (output, context) => {
|
|
|
1059
1038
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1060
1039
|
default:
|
|
1061
1040
|
const parsedBody = parsedOutput.body;
|
|
1062
|
-
throwDefaultError({
|
|
1041
|
+
return throwDefaultError({
|
|
1063
1042
|
output,
|
|
1064
1043
|
parsedBody,
|
|
1065
|
-
exceptionCtor: __BaseException,
|
|
1066
1044
|
errorCode,
|
|
1067
1045
|
});
|
|
1068
1046
|
}
|
|
@@ -1073,12 +1051,12 @@ export const de_GetSavingsPlansUtilizationDetailsCommand = async (output, contex
|
|
|
1073
1051
|
}
|
|
1074
1052
|
const data = await parseBody(output.body, context);
|
|
1075
1053
|
let contents = {};
|
|
1076
|
-
contents =
|
|
1054
|
+
contents = _json(data);
|
|
1077
1055
|
const response = {
|
|
1078
1056
|
$metadata: deserializeMetadata(output),
|
|
1079
1057
|
...contents,
|
|
1080
1058
|
};
|
|
1081
|
-
return
|
|
1059
|
+
return response;
|
|
1082
1060
|
};
|
|
1083
1061
|
const de_GetSavingsPlansUtilizationDetailsCommandError = async (output, context) => {
|
|
1084
1062
|
const parsedOutput = {
|
|
@@ -1098,10 +1076,9 @@ const de_GetSavingsPlansUtilizationDetailsCommandError = async (output, context)
|
|
|
1098
1076
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1099
1077
|
default:
|
|
1100
1078
|
const parsedBody = parsedOutput.body;
|
|
1101
|
-
throwDefaultError({
|
|
1079
|
+
return throwDefaultError({
|
|
1102
1080
|
output,
|
|
1103
1081
|
parsedBody,
|
|
1104
|
-
exceptionCtor: __BaseException,
|
|
1105
1082
|
errorCode,
|
|
1106
1083
|
});
|
|
1107
1084
|
}
|
|
@@ -1112,12 +1089,12 @@ export const de_GetTagsCommand = async (output, context) => {
|
|
|
1112
1089
|
}
|
|
1113
1090
|
const data = await parseBody(output.body, context);
|
|
1114
1091
|
let contents = {};
|
|
1115
|
-
contents =
|
|
1092
|
+
contents = _json(data);
|
|
1116
1093
|
const response = {
|
|
1117
1094
|
$metadata: deserializeMetadata(output),
|
|
1118
1095
|
...contents,
|
|
1119
1096
|
};
|
|
1120
|
-
return
|
|
1097
|
+
return response;
|
|
1121
1098
|
};
|
|
1122
1099
|
const de_GetTagsCommandError = async (output, context) => {
|
|
1123
1100
|
const parsedOutput = {
|
|
@@ -1143,10 +1120,9 @@ const de_GetTagsCommandError = async (output, context) => {
|
|
|
1143
1120
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
1144
1121
|
default:
|
|
1145
1122
|
const parsedBody = parsedOutput.body;
|
|
1146
|
-
throwDefaultError({
|
|
1123
|
+
return throwDefaultError({
|
|
1147
1124
|
output,
|
|
1148
1125
|
parsedBody,
|
|
1149
|
-
exceptionCtor: __BaseException,
|
|
1150
1126
|
errorCode,
|
|
1151
1127
|
});
|
|
1152
1128
|
}
|
|
@@ -1157,12 +1133,12 @@ export const de_GetUsageForecastCommand = async (output, context) => {
|
|
|
1157
1133
|
}
|
|
1158
1134
|
const data = await parseBody(output.body, context);
|
|
1159
1135
|
let contents = {};
|
|
1160
|
-
contents =
|
|
1136
|
+
contents = _json(data);
|
|
1161
1137
|
const response = {
|
|
1162
1138
|
$metadata: deserializeMetadata(output),
|
|
1163
1139
|
...contents,
|
|
1164
1140
|
};
|
|
1165
|
-
return
|
|
1141
|
+
return response;
|
|
1166
1142
|
};
|
|
1167
1143
|
const de_GetUsageForecastCommandError = async (output, context) => {
|
|
1168
1144
|
const parsedOutput = {
|
|
@@ -1182,10 +1158,9 @@ const de_GetUsageForecastCommandError = async (output, context) => {
|
|
|
1182
1158
|
throw await de_UnresolvableUsageUnitExceptionRes(parsedOutput, context);
|
|
1183
1159
|
default:
|
|
1184
1160
|
const parsedBody = parsedOutput.body;
|
|
1185
|
-
throwDefaultError({
|
|
1161
|
+
return throwDefaultError({
|
|
1186
1162
|
output,
|
|
1187
1163
|
parsedBody,
|
|
1188
|
-
exceptionCtor: __BaseException,
|
|
1189
1164
|
errorCode,
|
|
1190
1165
|
});
|
|
1191
1166
|
}
|
|
@@ -1196,12 +1171,12 @@ export const de_ListCostAllocationTagsCommand = async (output, context) => {
|
|
|
1196
1171
|
}
|
|
1197
1172
|
const data = await parseBody(output.body, context);
|
|
1198
1173
|
let contents = {};
|
|
1199
|
-
contents =
|
|
1174
|
+
contents = _json(data);
|
|
1200
1175
|
const response = {
|
|
1201
1176
|
$metadata: deserializeMetadata(output),
|
|
1202
1177
|
...contents,
|
|
1203
1178
|
};
|
|
1204
|
-
return
|
|
1179
|
+
return response;
|
|
1205
1180
|
};
|
|
1206
1181
|
const de_ListCostAllocationTagsCommandError = async (output, context) => {
|
|
1207
1182
|
const parsedOutput = {
|
|
@@ -1218,10 +1193,9 @@ const de_ListCostAllocationTagsCommandError = async (output, context) => {
|
|
|
1218
1193
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1219
1194
|
default:
|
|
1220
1195
|
const parsedBody = parsedOutput.body;
|
|
1221
|
-
throwDefaultError({
|
|
1196
|
+
return throwDefaultError({
|
|
1222
1197
|
output,
|
|
1223
1198
|
parsedBody,
|
|
1224
|
-
exceptionCtor: __BaseException,
|
|
1225
1199
|
errorCode,
|
|
1226
1200
|
});
|
|
1227
1201
|
}
|
|
@@ -1232,12 +1206,12 @@ export const de_ListCostCategoryDefinitionsCommand = async (output, context) =>
|
|
|
1232
1206
|
}
|
|
1233
1207
|
const data = await parseBody(output.body, context);
|
|
1234
1208
|
let contents = {};
|
|
1235
|
-
contents =
|
|
1209
|
+
contents = _json(data);
|
|
1236
1210
|
const response = {
|
|
1237
1211
|
$metadata: deserializeMetadata(output),
|
|
1238
1212
|
...contents,
|
|
1239
1213
|
};
|
|
1240
|
-
return
|
|
1214
|
+
return response;
|
|
1241
1215
|
};
|
|
1242
1216
|
const de_ListCostCategoryDefinitionsCommandError = async (output, context) => {
|
|
1243
1217
|
const parsedOutput = {
|
|
@@ -1251,10 +1225,9 @@ const de_ListCostCategoryDefinitionsCommandError = async (output, context) => {
|
|
|
1251
1225
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1252
1226
|
default:
|
|
1253
1227
|
const parsedBody = parsedOutput.body;
|
|
1254
|
-
throwDefaultError({
|
|
1228
|
+
return throwDefaultError({
|
|
1255
1229
|
output,
|
|
1256
1230
|
parsedBody,
|
|
1257
|
-
exceptionCtor: __BaseException,
|
|
1258
1231
|
errorCode,
|
|
1259
1232
|
});
|
|
1260
1233
|
}
|
|
@@ -1265,12 +1238,12 @@ export const de_ListSavingsPlansPurchaseRecommendationGenerationCommand = async
|
|
|
1265
1238
|
}
|
|
1266
1239
|
const data = await parseBody(output.body, context);
|
|
1267
1240
|
let contents = {};
|
|
1268
|
-
contents =
|
|
1241
|
+
contents = _json(data);
|
|
1269
1242
|
const response = {
|
|
1270
1243
|
$metadata: deserializeMetadata(output),
|
|
1271
1244
|
...contents,
|
|
1272
1245
|
};
|
|
1273
|
-
return
|
|
1246
|
+
return response;
|
|
1274
1247
|
};
|
|
1275
1248
|
const de_ListSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
|
|
1276
1249
|
const parsedOutput = {
|
|
@@ -1287,10 +1260,9 @@ const de_ListSavingsPlansPurchaseRecommendationGenerationCommandError = async (o
|
|
|
1287
1260
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1288
1261
|
default:
|
|
1289
1262
|
const parsedBody = parsedOutput.body;
|
|
1290
|
-
throwDefaultError({
|
|
1263
|
+
return throwDefaultError({
|
|
1291
1264
|
output,
|
|
1292
1265
|
parsedBody,
|
|
1293
|
-
exceptionCtor: __BaseException,
|
|
1294
1266
|
errorCode,
|
|
1295
1267
|
});
|
|
1296
1268
|
}
|
|
@@ -1301,12 +1273,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1301
1273
|
}
|
|
1302
1274
|
const data = await parseBody(output.body, context);
|
|
1303
1275
|
let contents = {};
|
|
1304
|
-
contents =
|
|
1276
|
+
contents = _json(data);
|
|
1305
1277
|
const response = {
|
|
1306
1278
|
$metadata: deserializeMetadata(output),
|
|
1307
1279
|
...contents,
|
|
1308
1280
|
};
|
|
1309
|
-
return
|
|
1281
|
+
return response;
|
|
1310
1282
|
};
|
|
1311
1283
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1312
1284
|
const parsedOutput = {
|
|
@@ -1323,10 +1295,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1323
1295
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1324
1296
|
default:
|
|
1325
1297
|
const parsedBody = parsedOutput.body;
|
|
1326
|
-
throwDefaultError({
|
|
1298
|
+
return throwDefaultError({
|
|
1327
1299
|
output,
|
|
1328
1300
|
parsedBody,
|
|
1329
|
-
exceptionCtor: __BaseException,
|
|
1330
1301
|
errorCode,
|
|
1331
1302
|
});
|
|
1332
1303
|
}
|
|
@@ -1337,12 +1308,12 @@ export const de_ProvideAnomalyFeedbackCommand = async (output, context) => {
|
|
|
1337
1308
|
}
|
|
1338
1309
|
const data = await parseBody(output.body, context);
|
|
1339
1310
|
let contents = {};
|
|
1340
|
-
contents =
|
|
1311
|
+
contents = _json(data);
|
|
1341
1312
|
const response = {
|
|
1342
1313
|
$metadata: deserializeMetadata(output),
|
|
1343
1314
|
...contents,
|
|
1344
1315
|
};
|
|
1345
|
-
return
|
|
1316
|
+
return response;
|
|
1346
1317
|
};
|
|
1347
1318
|
const de_ProvideAnomalyFeedbackCommandError = async (output, context) => {
|
|
1348
1319
|
const parsedOutput = {
|
|
@@ -1356,10 +1327,9 @@ const de_ProvideAnomalyFeedbackCommandError = async (output, context) => {
|
|
|
1356
1327
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1357
1328
|
default:
|
|
1358
1329
|
const parsedBody = parsedOutput.body;
|
|
1359
|
-
throwDefaultError({
|
|
1330
|
+
return throwDefaultError({
|
|
1360
1331
|
output,
|
|
1361
1332
|
parsedBody,
|
|
1362
|
-
exceptionCtor: __BaseException,
|
|
1363
1333
|
errorCode,
|
|
1364
1334
|
});
|
|
1365
1335
|
}
|
|
@@ -1370,12 +1340,12 @@ export const de_StartSavingsPlansPurchaseRecommendationGenerationCommand = async
|
|
|
1370
1340
|
}
|
|
1371
1341
|
const data = await parseBody(output.body, context);
|
|
1372
1342
|
let contents = {};
|
|
1373
|
-
contents =
|
|
1343
|
+
contents = _json(data);
|
|
1374
1344
|
const response = {
|
|
1375
1345
|
$metadata: deserializeMetadata(output),
|
|
1376
1346
|
...contents,
|
|
1377
1347
|
};
|
|
1378
|
-
return
|
|
1348
|
+
return response;
|
|
1379
1349
|
};
|
|
1380
1350
|
const de_StartSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
|
|
1381
1351
|
const parsedOutput = {
|
|
@@ -1395,10 +1365,9 @@ const de_StartSavingsPlansPurchaseRecommendationGenerationCommandError = async (
|
|
|
1395
1365
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1396
1366
|
default:
|
|
1397
1367
|
const parsedBody = parsedOutput.body;
|
|
1398
|
-
throwDefaultError({
|
|
1368
|
+
return throwDefaultError({
|
|
1399
1369
|
output,
|
|
1400
1370
|
parsedBody,
|
|
1401
|
-
exceptionCtor: __BaseException,
|
|
1402
1371
|
errorCode,
|
|
1403
1372
|
});
|
|
1404
1373
|
}
|
|
@@ -1409,12 +1378,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1409
1378
|
}
|
|
1410
1379
|
const data = await parseBody(output.body, context);
|
|
1411
1380
|
let contents = {};
|
|
1412
|
-
contents =
|
|
1381
|
+
contents = _json(data);
|
|
1413
1382
|
const response = {
|
|
1414
1383
|
$metadata: deserializeMetadata(output),
|
|
1415
1384
|
...contents,
|
|
1416
1385
|
};
|
|
1417
|
-
return
|
|
1386
|
+
return response;
|
|
1418
1387
|
};
|
|
1419
1388
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1420
1389
|
const parsedOutput = {
|
|
@@ -1434,10 +1403,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1434
1403
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1435
1404
|
default:
|
|
1436
1405
|
const parsedBody = parsedOutput.body;
|
|
1437
|
-
throwDefaultError({
|
|
1406
|
+
return throwDefaultError({
|
|
1438
1407
|
output,
|
|
1439
1408
|
parsedBody,
|
|
1440
|
-
exceptionCtor: __BaseException,
|
|
1441
1409
|
errorCode,
|
|
1442
1410
|
});
|
|
1443
1411
|
}
|
|
@@ -1448,12 +1416,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1448
1416
|
}
|
|
1449
1417
|
const data = await parseBody(output.body, context);
|
|
1450
1418
|
let contents = {};
|
|
1451
|
-
contents =
|
|
1419
|
+
contents = _json(data);
|
|
1452
1420
|
const response = {
|
|
1453
1421
|
$metadata: deserializeMetadata(output),
|
|
1454
1422
|
...contents,
|
|
1455
1423
|
};
|
|
1456
|
-
return
|
|
1424
|
+
return response;
|
|
1457
1425
|
};
|
|
1458
1426
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1459
1427
|
const parsedOutput = {
|
|
@@ -1470,10 +1438,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1470
1438
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1471
1439
|
default:
|
|
1472
1440
|
const parsedBody = parsedOutput.body;
|
|
1473
|
-
throwDefaultError({
|
|
1441
|
+
return throwDefaultError({
|
|
1474
1442
|
output,
|
|
1475
1443
|
parsedBody,
|
|
1476
|
-
exceptionCtor: __BaseException,
|
|
1477
1444
|
errorCode,
|
|
1478
1445
|
});
|
|
1479
1446
|
}
|
|
@@ -1484,12 +1451,12 @@ export const de_UpdateAnomalyMonitorCommand = async (output, context) => {
|
|
|
1484
1451
|
}
|
|
1485
1452
|
const data = await parseBody(output.body, context);
|
|
1486
1453
|
let contents = {};
|
|
1487
|
-
contents =
|
|
1454
|
+
contents = _json(data);
|
|
1488
1455
|
const response = {
|
|
1489
1456
|
$metadata: deserializeMetadata(output),
|
|
1490
1457
|
...contents,
|
|
1491
1458
|
};
|
|
1492
|
-
return
|
|
1459
|
+
return response;
|
|
1493
1460
|
};
|
|
1494
1461
|
const de_UpdateAnomalyMonitorCommandError = async (output, context) => {
|
|
1495
1462
|
const parsedOutput = {
|
|
@@ -1506,10 +1473,9 @@ const de_UpdateAnomalyMonitorCommandError = async (output, context) => {
|
|
|
1506
1473
|
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
1507
1474
|
default:
|
|
1508
1475
|
const parsedBody = parsedOutput.body;
|
|
1509
|
-
throwDefaultError({
|
|
1476
|
+
return throwDefaultError({
|
|
1510
1477
|
output,
|
|
1511
1478
|
parsedBody,
|
|
1512
|
-
exceptionCtor: __BaseException,
|
|
1513
1479
|
errorCode,
|
|
1514
1480
|
});
|
|
1515
1481
|
}
|
|
@@ -1520,12 +1486,12 @@ export const de_UpdateAnomalySubscriptionCommand = async (output, context) => {
|
|
|
1520
1486
|
}
|
|
1521
1487
|
const data = await parseBody(output.body, context);
|
|
1522
1488
|
let contents = {};
|
|
1523
|
-
contents =
|
|
1489
|
+
contents = _json(data);
|
|
1524
1490
|
const response = {
|
|
1525
1491
|
$metadata: deserializeMetadata(output),
|
|
1526
1492
|
...contents,
|
|
1527
1493
|
};
|
|
1528
|
-
return
|
|
1494
|
+
return response;
|
|
1529
1495
|
};
|
|
1530
1496
|
const de_UpdateAnomalySubscriptionCommandError = async (output, context) => {
|
|
1531
1497
|
const parsedOutput = {
|
|
@@ -1545,10 +1511,9 @@ const de_UpdateAnomalySubscriptionCommandError = async (output, context) => {
|
|
|
1545
1511
|
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
1546
1512
|
default:
|
|
1547
1513
|
const parsedBody = parsedOutput.body;
|
|
1548
|
-
throwDefaultError({
|
|
1514
|
+
return throwDefaultError({
|
|
1549
1515
|
output,
|
|
1550
1516
|
parsedBody,
|
|
1551
|
-
exceptionCtor: __BaseException,
|
|
1552
1517
|
errorCode,
|
|
1553
1518
|
});
|
|
1554
1519
|
}
|
|
@@ -1559,12 +1524,12 @@ export const de_UpdateCostAllocationTagsStatusCommand = async (output, context)
|
|
|
1559
1524
|
}
|
|
1560
1525
|
const data = await parseBody(output.body, context);
|
|
1561
1526
|
let contents = {};
|
|
1562
|
-
contents =
|
|
1527
|
+
contents = _json(data);
|
|
1563
1528
|
const response = {
|
|
1564
1529
|
$metadata: deserializeMetadata(output),
|
|
1565
1530
|
...contents,
|
|
1566
1531
|
};
|
|
1567
|
-
return
|
|
1532
|
+
return response;
|
|
1568
1533
|
};
|
|
1569
1534
|
const de_UpdateCostAllocationTagsStatusCommandError = async (output, context) => {
|
|
1570
1535
|
const parsedOutput = {
|
|
@@ -1578,10 +1543,9 @@ const de_UpdateCostAllocationTagsStatusCommandError = async (output, context) =>
|
|
|
1578
1543
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1579
1544
|
default:
|
|
1580
1545
|
const parsedBody = parsedOutput.body;
|
|
1581
|
-
throwDefaultError({
|
|
1546
|
+
return throwDefaultError({
|
|
1582
1547
|
output,
|
|
1583
1548
|
parsedBody,
|
|
1584
|
-
exceptionCtor: __BaseException,
|
|
1585
1549
|
errorCode,
|
|
1586
1550
|
});
|
|
1587
1551
|
}
|
|
@@ -1592,12 +1556,12 @@ export const de_UpdateCostCategoryDefinitionCommand = async (output, context) =>
|
|
|
1592
1556
|
}
|
|
1593
1557
|
const data = await parseBody(output.body, context);
|
|
1594
1558
|
let contents = {};
|
|
1595
|
-
contents =
|
|
1559
|
+
contents = _json(data);
|
|
1596
1560
|
const response = {
|
|
1597
1561
|
$metadata: deserializeMetadata(output),
|
|
1598
1562
|
...contents,
|
|
1599
1563
|
};
|
|
1600
|
-
return
|
|
1564
|
+
return response;
|
|
1601
1565
|
};
|
|
1602
1566
|
const de_UpdateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
1603
1567
|
const parsedOutput = {
|
|
@@ -1617,17 +1581,16 @@ const de_UpdateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
|
1617
1581
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1618
1582
|
default:
|
|
1619
1583
|
const parsedBody = parsedOutput.body;
|
|
1620
|
-
throwDefaultError({
|
|
1584
|
+
return throwDefaultError({
|
|
1621
1585
|
output,
|
|
1622
1586
|
parsedBody,
|
|
1623
|
-
exceptionCtor: __BaseException,
|
|
1624
1587
|
errorCode,
|
|
1625
1588
|
});
|
|
1626
1589
|
}
|
|
1627
1590
|
};
|
|
1628
1591
|
const de_BillExpirationExceptionRes = async (parsedOutput, context) => {
|
|
1629
1592
|
const body = parsedOutput.body;
|
|
1630
|
-
const deserialized =
|
|
1593
|
+
const deserialized = _json(body);
|
|
1631
1594
|
const exception = new BillExpirationException({
|
|
1632
1595
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1633
1596
|
...deserialized,
|
|
@@ -1636,7 +1599,7 @@ const de_BillExpirationExceptionRes = async (parsedOutput, context) => {
|
|
|
1636
1599
|
};
|
|
1637
1600
|
const de_DataUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1638
1601
|
const body = parsedOutput.body;
|
|
1639
|
-
const deserialized =
|
|
1602
|
+
const deserialized = _json(body);
|
|
1640
1603
|
const exception = new DataUnavailableException({
|
|
1641
1604
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1642
1605
|
...deserialized,
|
|
@@ -1645,7 +1608,7 @@ const de_DataUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1645
1608
|
};
|
|
1646
1609
|
const de_GenerationExistsExceptionRes = async (parsedOutput, context) => {
|
|
1647
1610
|
const body = parsedOutput.body;
|
|
1648
|
-
const deserialized =
|
|
1611
|
+
const deserialized = _json(body);
|
|
1649
1612
|
const exception = new GenerationExistsException({
|
|
1650
1613
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1651
1614
|
...deserialized,
|
|
@@ -1654,7 +1617,7 @@ const de_GenerationExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1654
1617
|
};
|
|
1655
1618
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1656
1619
|
const body = parsedOutput.body;
|
|
1657
|
-
const deserialized =
|
|
1620
|
+
const deserialized = _json(body);
|
|
1658
1621
|
const exception = new InvalidNextTokenException({
|
|
1659
1622
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1660
1623
|
...deserialized,
|
|
@@ -1663,7 +1626,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1663
1626
|
};
|
|
1664
1627
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1665
1628
|
const body = parsedOutput.body;
|
|
1666
|
-
const deserialized =
|
|
1629
|
+
const deserialized = _json(body);
|
|
1667
1630
|
const exception = new LimitExceededException({
|
|
1668
1631
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1669
1632
|
...deserialized,
|
|
@@ -1672,7 +1635,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1672
1635
|
};
|
|
1673
1636
|
const de_RequestChangedExceptionRes = async (parsedOutput, context) => {
|
|
1674
1637
|
const body = parsedOutput.body;
|
|
1675
|
-
const deserialized =
|
|
1638
|
+
const deserialized = _json(body);
|
|
1676
1639
|
const exception = new RequestChangedException({
|
|
1677
1640
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1678
1641
|
...deserialized,
|
|
@@ -1681,7 +1644,7 @@ const de_RequestChangedExceptionRes = async (parsedOutput, context) => {
|
|
|
1681
1644
|
};
|
|
1682
1645
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1683
1646
|
const body = parsedOutput.body;
|
|
1684
|
-
const deserialized =
|
|
1647
|
+
const deserialized = _json(body);
|
|
1685
1648
|
const exception = new ResourceNotFoundException({
|
|
1686
1649
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1687
1650
|
...deserialized,
|
|
@@ -1690,7 +1653,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1690
1653
|
};
|
|
1691
1654
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1692
1655
|
const body = parsedOutput.body;
|
|
1693
|
-
const deserialized =
|
|
1656
|
+
const deserialized = _json(body);
|
|
1694
1657
|
const exception = new ServiceQuotaExceededException({
|
|
1695
1658
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1696
1659
|
...deserialized,
|
|
@@ -1699,7 +1662,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1699
1662
|
};
|
|
1700
1663
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1701
1664
|
const body = parsedOutput.body;
|
|
1702
|
-
const deserialized =
|
|
1665
|
+
const deserialized = _json(body);
|
|
1703
1666
|
const exception = new TooManyTagsException({
|
|
1704
1667
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1705
1668
|
...deserialized,
|
|
@@ -1708,7 +1671,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1708
1671
|
};
|
|
1709
1672
|
const de_UnknownMonitorExceptionRes = async (parsedOutput, context) => {
|
|
1710
1673
|
const body = parsedOutput.body;
|
|
1711
|
-
const deserialized =
|
|
1674
|
+
const deserialized = _json(body);
|
|
1712
1675
|
const exception = new UnknownMonitorException({
|
|
1713
1676
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1714
1677
|
...deserialized,
|
|
@@ -1717,7 +1680,7 @@ const de_UnknownMonitorExceptionRes = async (parsedOutput, context) => {
|
|
|
1717
1680
|
};
|
|
1718
1681
|
const de_UnknownSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
1719
1682
|
const body = parsedOutput.body;
|
|
1720
|
-
const deserialized =
|
|
1683
|
+
const deserialized = _json(body);
|
|
1721
1684
|
const exception = new UnknownSubscriptionException({
|
|
1722
1685
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1723
1686
|
...deserialized,
|
|
@@ -1726,83 +1689,45 @@ const de_UnknownSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
|
1726
1689
|
};
|
|
1727
1690
|
const de_UnresolvableUsageUnitExceptionRes = async (parsedOutput, context) => {
|
|
1728
1691
|
const body = parsedOutput.body;
|
|
1729
|
-
const deserialized =
|
|
1692
|
+
const deserialized = _json(body);
|
|
1730
1693
|
const exception = new UnresolvableUsageUnitException({
|
|
1731
1694
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1732
1695
|
...deserialized,
|
|
1733
1696
|
});
|
|
1734
1697
|
return __decorateServiceException(exception, body);
|
|
1735
1698
|
};
|
|
1736
|
-
const se_AnomalyDateInterval = (input, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
...(input.EndDate != null && { EndDate: input.EndDate }),
|
|
1739
|
-
...(input.StartDate != null && { StartDate: input.StartDate }),
|
|
1740
|
-
};
|
|
1741
|
-
};
|
|
1742
1699
|
const se_AnomalyMonitor = (input, context) => {
|
|
1743
|
-
return {
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
}),
|
|
1754
|
-
...(input.MonitorType != null && { MonitorType: input.MonitorType }),
|
|
1755
|
-
};
|
|
1756
|
-
};
|
|
1757
|
-
const se_AnomalySubscription = (input, context) => {
|
|
1758
|
-
return {
|
|
1759
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1760
|
-
...(input.Frequency != null && { Frequency: input.Frequency }),
|
|
1761
|
-
...(input.MonitorArnList != null && { MonitorArnList: se_MonitorArnList(input.MonitorArnList, context) }),
|
|
1762
|
-
...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
|
|
1763
|
-
...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
|
|
1764
|
-
...(input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName }),
|
|
1765
|
-
...(input.Threshold != null && { Threshold: __serializeFloat(input.Threshold) }),
|
|
1766
|
-
...(input.ThresholdExpression != null && {
|
|
1767
|
-
ThresholdExpression: se_Expression(input.ThresholdExpression, context),
|
|
1768
|
-
}),
|
|
1769
|
-
};
|
|
1770
|
-
};
|
|
1771
|
-
const se_CostAllocationTagKeyList = (input, context) => {
|
|
1772
|
-
return input
|
|
1773
|
-
.filter((e) => e != null)
|
|
1774
|
-
.map((entry) => {
|
|
1775
|
-
return entry;
|
|
1700
|
+
return take(input, {
|
|
1701
|
+
CreationDate: [],
|
|
1702
|
+
DimensionalValueCount: [],
|
|
1703
|
+
LastEvaluatedDate: [],
|
|
1704
|
+
LastUpdatedDate: [],
|
|
1705
|
+
MonitorArn: [],
|
|
1706
|
+
MonitorDimension: [],
|
|
1707
|
+
MonitorName: [],
|
|
1708
|
+
MonitorSpecification: (_) => se_Expression(_, context),
|
|
1709
|
+
MonitorType: [],
|
|
1776
1710
|
});
|
|
1777
1711
|
};
|
|
1778
|
-
const
|
|
1779
|
-
return {
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
return se_CostAllocationTagStatusEntry(entry, context);
|
|
1712
|
+
const se_AnomalySubscription = (input, context) => {
|
|
1713
|
+
return take(input, {
|
|
1714
|
+
AccountId: [],
|
|
1715
|
+
Frequency: [],
|
|
1716
|
+
MonitorArnList: _json,
|
|
1717
|
+
Subscribers: _json,
|
|
1718
|
+
SubscriptionArn: [],
|
|
1719
|
+
SubscriptionName: [],
|
|
1720
|
+
Threshold: __serializeFloat,
|
|
1721
|
+
ThresholdExpression: (_) => se_Expression(_, context),
|
|
1789
1722
|
});
|
|
1790
1723
|
};
|
|
1791
|
-
const se_CostCategoryInheritedValueDimension = (input, context) => {
|
|
1792
|
-
return {
|
|
1793
|
-
...(input.DimensionKey != null && { DimensionKey: input.DimensionKey }),
|
|
1794
|
-
...(input.DimensionName != null && { DimensionName: input.DimensionName }),
|
|
1795
|
-
};
|
|
1796
|
-
};
|
|
1797
1724
|
const se_CostCategoryRule = (input, context) => {
|
|
1798
|
-
return {
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1805
|
-
};
|
|
1725
|
+
return take(input, {
|
|
1726
|
+
InheritedValue: _json,
|
|
1727
|
+
Rule: (_) => se_Expression(_, context),
|
|
1728
|
+
Type: [],
|
|
1729
|
+
Value: [],
|
|
1730
|
+
});
|
|
1806
1731
|
};
|
|
1807
1732
|
const se_CostCategoryRulesList = (input, context) => {
|
|
1808
1733
|
return input
|
|
@@ -1811,132 +1736,38 @@ const se_CostCategoryRulesList = (input, context) => {
|
|
|
1811
1736
|
return se_CostCategoryRule(entry, context);
|
|
1812
1737
|
});
|
|
1813
1738
|
};
|
|
1814
|
-
const se_CostCategorySplitChargeRule = (input, context) => {
|
|
1815
|
-
return {
|
|
1816
|
-
...(input.Method != null && { Method: input.Method }),
|
|
1817
|
-
...(input.Parameters != null && {
|
|
1818
|
-
Parameters: se_CostCategorySplitChargeRuleParametersList(input.Parameters, context),
|
|
1819
|
-
}),
|
|
1820
|
-
...(input.Source != null && { Source: input.Source }),
|
|
1821
|
-
...(input.Targets != null && { Targets: se_CostCategorySplitChargeRuleTargetsList(input.Targets, context) }),
|
|
1822
|
-
};
|
|
1823
|
-
};
|
|
1824
|
-
const se_CostCategorySplitChargeRuleParameter = (input, context) => {
|
|
1825
|
-
return {
|
|
1826
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1827
|
-
...(input.Values != null && { Values: se_CostCategorySplitChargeRuleParameterValuesList(input.Values, context) }),
|
|
1828
|
-
};
|
|
1829
|
-
};
|
|
1830
|
-
const se_CostCategorySplitChargeRuleParametersList = (input, context) => {
|
|
1831
|
-
return input
|
|
1832
|
-
.filter((e) => e != null)
|
|
1833
|
-
.map((entry) => {
|
|
1834
|
-
return se_CostCategorySplitChargeRuleParameter(entry, context);
|
|
1835
|
-
});
|
|
1836
|
-
};
|
|
1837
|
-
const se_CostCategorySplitChargeRuleParameterValuesList = (input, context) => {
|
|
1838
|
-
return input
|
|
1839
|
-
.filter((e) => e != null)
|
|
1840
|
-
.map((entry) => {
|
|
1841
|
-
return entry;
|
|
1842
|
-
});
|
|
1843
|
-
};
|
|
1844
|
-
const se_CostCategorySplitChargeRulesList = (input, context) => {
|
|
1845
|
-
return input
|
|
1846
|
-
.filter((e) => e != null)
|
|
1847
|
-
.map((entry) => {
|
|
1848
|
-
return se_CostCategorySplitChargeRule(entry, context);
|
|
1849
|
-
});
|
|
1850
|
-
};
|
|
1851
|
-
const se_CostCategorySplitChargeRuleTargetsList = (input, context) => {
|
|
1852
|
-
return input
|
|
1853
|
-
.filter((e) => e != null)
|
|
1854
|
-
.map((entry) => {
|
|
1855
|
-
return entry;
|
|
1856
|
-
});
|
|
1857
|
-
};
|
|
1858
|
-
const se_CostCategoryValues = (input, context) => {
|
|
1859
|
-
return {
|
|
1860
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1861
|
-
...(input.MatchOptions != null && { MatchOptions: se_MatchOptions(input.MatchOptions, context) }),
|
|
1862
|
-
...(input.Values != null && { Values: se_Values(input.Values, context) }),
|
|
1863
|
-
};
|
|
1864
|
-
};
|
|
1865
1739
|
const se_CreateAnomalyMonitorRequest = (input, context) => {
|
|
1866
|
-
return {
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
};
|
|
1740
|
+
return take(input, {
|
|
1741
|
+
AnomalyMonitor: (_) => se_AnomalyMonitor(_, context),
|
|
1742
|
+
ResourceTags: _json,
|
|
1743
|
+
});
|
|
1870
1744
|
};
|
|
1871
1745
|
const se_CreateAnomalySubscriptionRequest = (input, context) => {
|
|
1872
|
-
return {
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
...(input.ResourceTags != null && { ResourceTags: se_ResourceTagList(input.ResourceTags, context) }),
|
|
1877
|
-
};
|
|
1746
|
+
return take(input, {
|
|
1747
|
+
AnomalySubscription: (_) => se_AnomalySubscription(_, context),
|
|
1748
|
+
ResourceTags: _json,
|
|
1749
|
+
});
|
|
1878
1750
|
};
|
|
1879
1751
|
const se_CreateCostCategoryDefinitionRequest = (input, context) => {
|
|
1880
|
-
return {
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
}),
|
|
1890
|
-
};
|
|
1891
|
-
};
|
|
1892
|
-
const se_DateInterval = (input, context) => {
|
|
1893
|
-
return {
|
|
1894
|
-
...(input.End != null && { End: input.End }),
|
|
1895
|
-
...(input.Start != null && { Start: input.Start }),
|
|
1896
|
-
};
|
|
1897
|
-
};
|
|
1898
|
-
const se_DeleteAnomalyMonitorRequest = (input, context) => {
|
|
1899
|
-
return {
|
|
1900
|
-
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
1901
|
-
};
|
|
1902
|
-
};
|
|
1903
|
-
const se_DeleteAnomalySubscriptionRequest = (input, context) => {
|
|
1904
|
-
return {
|
|
1905
|
-
...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
|
|
1906
|
-
};
|
|
1907
|
-
};
|
|
1908
|
-
const se_DeleteCostCategoryDefinitionRequest = (input, context) => {
|
|
1909
|
-
return {
|
|
1910
|
-
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
1911
|
-
};
|
|
1912
|
-
};
|
|
1913
|
-
const se_DescribeCostCategoryDefinitionRequest = (input, context) => {
|
|
1914
|
-
return {
|
|
1915
|
-
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
1916
|
-
...(input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn }),
|
|
1917
|
-
};
|
|
1918
|
-
};
|
|
1919
|
-
const se_DimensionValues = (input, context) => {
|
|
1920
|
-
return {
|
|
1921
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1922
|
-
...(input.MatchOptions != null && { MatchOptions: se_MatchOptions(input.MatchOptions, context) }),
|
|
1923
|
-
...(input.Values != null && { Values: se_Values(input.Values, context) }),
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
const se_EC2Specification = (input, context) => {
|
|
1927
|
-
return {
|
|
1928
|
-
...(input.OfferingClass != null && { OfferingClass: input.OfferingClass }),
|
|
1929
|
-
};
|
|
1752
|
+
return take(input, {
|
|
1753
|
+
DefaultValue: [],
|
|
1754
|
+
EffectiveStart: [],
|
|
1755
|
+
Name: [],
|
|
1756
|
+
ResourceTags: _json,
|
|
1757
|
+
RuleVersion: [],
|
|
1758
|
+
Rules: (_) => se_CostCategoryRulesList(_, context),
|
|
1759
|
+
SplitChargeRules: _json,
|
|
1760
|
+
});
|
|
1930
1761
|
};
|
|
1931
1762
|
const se_Expression = (input, context) => {
|
|
1932
|
-
return {
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
};
|
|
1763
|
+
return take(input, {
|
|
1764
|
+
And: (_) => se_Expressions(_, context),
|
|
1765
|
+
CostCategories: _json,
|
|
1766
|
+
Dimensions: _json,
|
|
1767
|
+
Not: (_) => se_Expression(_, context),
|
|
1768
|
+
Or: (_) => se_Expressions(_, context),
|
|
1769
|
+
Tags: _json,
|
|
1770
|
+
});
|
|
1940
1771
|
};
|
|
1941
1772
|
const se_Expressions = (input, context) => {
|
|
1942
1773
|
return input
|
|
@@ -1946,1943 +1777,349 @@ const se_Expressions = (input, context) => {
|
|
|
1946
1777
|
});
|
|
1947
1778
|
};
|
|
1948
1779
|
const se_GetAnomaliesRequest = (input, context) => {
|
|
1949
|
-
return {
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
};
|
|
1957
|
-
};
|
|
1958
|
-
const se_GetAnomalyMonitorsRequest = (input, context) => {
|
|
1959
|
-
return {
|
|
1960
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1961
|
-
...(input.MonitorArnList != null && { MonitorArnList: se_Values(input.MonitorArnList, context) }),
|
|
1962
|
-
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
1963
|
-
};
|
|
1964
|
-
};
|
|
1965
|
-
const se_GetAnomalySubscriptionsRequest = (input, context) => {
|
|
1966
|
-
return {
|
|
1967
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1968
|
-
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
1969
|
-
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
1970
|
-
...(input.SubscriptionArnList != null && { SubscriptionArnList: se_Values(input.SubscriptionArnList, context) }),
|
|
1971
|
-
};
|
|
1780
|
+
return take(input, {
|
|
1781
|
+
DateInterval: _json,
|
|
1782
|
+
Feedback: [],
|
|
1783
|
+
MaxResults: [],
|
|
1784
|
+
MonitorArn: [],
|
|
1785
|
+
NextPageToken: [],
|
|
1786
|
+
TotalImpact: (_) => se_TotalImpactFilter(_, context),
|
|
1787
|
+
});
|
|
1972
1788
|
};
|
|
1973
1789
|
const se_GetCostAndUsageRequest = (input, context) => {
|
|
1974
|
-
return {
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
};
|
|
1790
|
+
return take(input, {
|
|
1791
|
+
Filter: (_) => se_Expression(_, context),
|
|
1792
|
+
Granularity: [],
|
|
1793
|
+
GroupBy: _json,
|
|
1794
|
+
Metrics: _json,
|
|
1795
|
+
NextPageToken: [],
|
|
1796
|
+
TimePeriod: _json,
|
|
1797
|
+
});
|
|
1982
1798
|
};
|
|
1983
1799
|
const se_GetCostAndUsageWithResourcesRequest = (input, context) => {
|
|
1984
|
-
return {
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
};
|
|
1800
|
+
return take(input, {
|
|
1801
|
+
Filter: (_) => se_Expression(_, context),
|
|
1802
|
+
Granularity: [],
|
|
1803
|
+
GroupBy: _json,
|
|
1804
|
+
Metrics: _json,
|
|
1805
|
+
NextPageToken: [],
|
|
1806
|
+
TimePeriod: _json,
|
|
1807
|
+
});
|
|
1992
1808
|
};
|
|
1993
1809
|
const se_GetCostCategoriesRequest = (input, context) => {
|
|
1994
|
-
return {
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
};
|
|
1810
|
+
return take(input, {
|
|
1811
|
+
CostCategoryName: [],
|
|
1812
|
+
Filter: (_) => se_Expression(_, context),
|
|
1813
|
+
MaxResults: [],
|
|
1814
|
+
NextPageToken: [],
|
|
1815
|
+
SearchString: [],
|
|
1816
|
+
SortBy: _json,
|
|
1817
|
+
TimePeriod: _json,
|
|
1818
|
+
});
|
|
2003
1819
|
};
|
|
2004
1820
|
const se_GetCostForecastRequest = (input, context) => {
|
|
2005
|
-
return {
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
};
|
|
1821
|
+
return take(input, {
|
|
1822
|
+
Filter: (_) => se_Expression(_, context),
|
|
1823
|
+
Granularity: [],
|
|
1824
|
+
Metric: [],
|
|
1825
|
+
PredictionIntervalLevel: [],
|
|
1826
|
+
TimePeriod: _json,
|
|
1827
|
+
});
|
|
2012
1828
|
};
|
|
2013
1829
|
const se_GetDimensionValuesRequest = (input, context) => {
|
|
2014
|
-
return {
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
};
|
|
1830
|
+
return take(input, {
|
|
1831
|
+
Context: [],
|
|
1832
|
+
Dimension: [],
|
|
1833
|
+
Filter: (_) => se_Expression(_, context),
|
|
1834
|
+
MaxResults: [],
|
|
1835
|
+
NextPageToken: [],
|
|
1836
|
+
SearchString: [],
|
|
1837
|
+
SortBy: _json,
|
|
1838
|
+
TimePeriod: _json,
|
|
1839
|
+
});
|
|
2024
1840
|
};
|
|
2025
1841
|
const se_GetReservationCoverageRequest = (input, context) => {
|
|
2026
|
-
return {
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
};
|
|
1842
|
+
return take(input, {
|
|
1843
|
+
Filter: (_) => se_Expression(_, context),
|
|
1844
|
+
Granularity: [],
|
|
1845
|
+
GroupBy: _json,
|
|
1846
|
+
MaxResults: [],
|
|
1847
|
+
Metrics: _json,
|
|
1848
|
+
NextPageToken: [],
|
|
1849
|
+
SortBy: _json,
|
|
1850
|
+
TimePeriod: _json,
|
|
1851
|
+
});
|
|
2036
1852
|
};
|
|
2037
1853
|
const se_GetReservationPurchaseRecommendationRequest = (input, context) => {
|
|
2038
|
-
return {
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
...(input.TermInYears != null && { TermInYears: input.TermInYears }),
|
|
2051
|
-
};
|
|
1854
|
+
return take(input, {
|
|
1855
|
+
AccountId: [],
|
|
1856
|
+
AccountScope: [],
|
|
1857
|
+
Filter: (_) => se_Expression(_, context),
|
|
1858
|
+
LookbackPeriodInDays: [],
|
|
1859
|
+
NextPageToken: [],
|
|
1860
|
+
PageSize: [],
|
|
1861
|
+
PaymentOption: [],
|
|
1862
|
+
Service: [],
|
|
1863
|
+
ServiceSpecification: _json,
|
|
1864
|
+
TermInYears: [],
|
|
1865
|
+
});
|
|
2052
1866
|
};
|
|
2053
1867
|
const se_GetReservationUtilizationRequest = (input, context) => {
|
|
2054
|
-
return {
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
};
|
|
1868
|
+
return take(input, {
|
|
1869
|
+
Filter: (_) => se_Expression(_, context),
|
|
1870
|
+
Granularity: [],
|
|
1871
|
+
GroupBy: _json,
|
|
1872
|
+
MaxResults: [],
|
|
1873
|
+
NextPageToken: [],
|
|
1874
|
+
SortBy: _json,
|
|
1875
|
+
TimePeriod: _json,
|
|
1876
|
+
});
|
|
2063
1877
|
};
|
|
2064
1878
|
const se_GetRightsizingRecommendationRequest = (input, context) => {
|
|
2065
|
-
return {
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
...(input.Service != null && { Service: input.Service }),
|
|
2073
|
-
};
|
|
1879
|
+
return take(input, {
|
|
1880
|
+
Configuration: _json,
|
|
1881
|
+
Filter: (_) => se_Expression(_, context),
|
|
1882
|
+
NextPageToken: [],
|
|
1883
|
+
PageSize: [],
|
|
1884
|
+
Service: [],
|
|
1885
|
+
});
|
|
2074
1886
|
};
|
|
2075
1887
|
const se_GetSavingsPlansCoverageRequest = (input, context) => {
|
|
2076
|
-
return {
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
};
|
|
1888
|
+
return take(input, {
|
|
1889
|
+
Filter: (_) => se_Expression(_, context),
|
|
1890
|
+
Granularity: [],
|
|
1891
|
+
GroupBy: _json,
|
|
1892
|
+
MaxResults: [],
|
|
1893
|
+
Metrics: _json,
|
|
1894
|
+
NextToken: [],
|
|
1895
|
+
SortBy: _json,
|
|
1896
|
+
TimePeriod: _json,
|
|
1897
|
+
});
|
|
2086
1898
|
};
|
|
2087
1899
|
const se_GetSavingsPlansPurchaseRecommendationRequest = (input, context) => {
|
|
2088
|
-
return {
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
};
|
|
1900
|
+
return take(input, {
|
|
1901
|
+
AccountScope: [],
|
|
1902
|
+
Filter: (_) => se_Expression(_, context),
|
|
1903
|
+
LookbackPeriodInDays: [],
|
|
1904
|
+
NextPageToken: [],
|
|
1905
|
+
PageSize: [],
|
|
1906
|
+
PaymentOption: [],
|
|
1907
|
+
SavingsPlansType: [],
|
|
1908
|
+
TermInYears: [],
|
|
1909
|
+
});
|
|
2098
1910
|
};
|
|
2099
1911
|
const se_GetSavingsPlansUtilizationDetailsRequest = (input, context) => {
|
|
2100
|
-
return {
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
};
|
|
1912
|
+
return take(input, {
|
|
1913
|
+
DataType: _json,
|
|
1914
|
+
Filter: (_) => se_Expression(_, context),
|
|
1915
|
+
MaxResults: [],
|
|
1916
|
+
NextToken: [],
|
|
1917
|
+
SortBy: _json,
|
|
1918
|
+
TimePeriod: _json,
|
|
1919
|
+
});
|
|
2108
1920
|
};
|
|
2109
1921
|
const se_GetSavingsPlansUtilizationRequest = (input, context) => {
|
|
2110
|
-
return {
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
};
|
|
1922
|
+
return take(input, {
|
|
1923
|
+
Filter: (_) => se_Expression(_, context),
|
|
1924
|
+
Granularity: [],
|
|
1925
|
+
SortBy: _json,
|
|
1926
|
+
TimePeriod: _json,
|
|
1927
|
+
});
|
|
2116
1928
|
};
|
|
2117
1929
|
const se_GetTagsRequest = (input, context) => {
|
|
2118
|
-
return {
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
};
|
|
1930
|
+
return take(input, {
|
|
1931
|
+
Filter: (_) => se_Expression(_, context),
|
|
1932
|
+
MaxResults: [],
|
|
1933
|
+
NextPageToken: [],
|
|
1934
|
+
SearchString: [],
|
|
1935
|
+
SortBy: _json,
|
|
1936
|
+
TagKey: [],
|
|
1937
|
+
TimePeriod: _json,
|
|
1938
|
+
});
|
|
2127
1939
|
};
|
|
2128
1940
|
const se_GetUsageForecastRequest = (input, context) => {
|
|
2129
|
-
return {
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
};
|
|
2136
|
-
};
|
|
2137
|
-
const se_GroupDefinition = (input, context) => {
|
|
2138
|
-
return {
|
|
2139
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2140
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2141
|
-
};
|
|
2142
|
-
};
|
|
2143
|
-
const se_GroupDefinitions = (input, context) => {
|
|
2144
|
-
return input
|
|
2145
|
-
.filter((e) => e != null)
|
|
2146
|
-
.map((entry) => {
|
|
2147
|
-
return se_GroupDefinition(entry, context);
|
|
1941
|
+
return take(input, {
|
|
1942
|
+
Filter: (_) => se_Expression(_, context),
|
|
1943
|
+
Granularity: [],
|
|
1944
|
+
Metric: [],
|
|
1945
|
+
PredictionIntervalLevel: [],
|
|
1946
|
+
TimePeriod: _json,
|
|
2148
1947
|
});
|
|
2149
1948
|
};
|
|
2150
|
-
const
|
|
2151
|
-
return {
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
...(input.TagKeys != null && { TagKeys: se_CostAllocationTagKeyList(input.TagKeys, context) }),
|
|
2156
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2157
|
-
};
|
|
2158
|
-
};
|
|
2159
|
-
const se_ListCostCategoryDefinitionsRequest = (input, context) => {
|
|
2160
|
-
return {
|
|
2161
|
-
...(input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn }),
|
|
2162
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2163
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2164
|
-
};
|
|
2165
|
-
};
|
|
2166
|
-
const se_ListSavingsPlansPurchaseRecommendationGenerationRequest = (input, context) => {
|
|
2167
|
-
return {
|
|
2168
|
-
...(input.GenerationStatus != null && { GenerationStatus: input.GenerationStatus }),
|
|
2169
|
-
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2170
|
-
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
2171
|
-
...(input.RecommendationIds != null && {
|
|
2172
|
-
RecommendationIds: se_RecommendationIdList(input.RecommendationIds, context),
|
|
2173
|
-
}),
|
|
2174
|
-
};
|
|
2175
|
-
};
|
|
2176
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2177
|
-
return {
|
|
2178
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2179
|
-
};
|
|
2180
|
-
};
|
|
2181
|
-
const se_MatchOptions = (input, context) => {
|
|
2182
|
-
return input
|
|
2183
|
-
.filter((e) => e != null)
|
|
2184
|
-
.map((entry) => {
|
|
2185
|
-
return entry;
|
|
1949
|
+
const se_TotalImpactFilter = (input, context) => {
|
|
1950
|
+
return take(input, {
|
|
1951
|
+
EndValue: __serializeFloat,
|
|
1952
|
+
NumericOperator: [],
|
|
1953
|
+
StartValue: __serializeFloat,
|
|
2186
1954
|
});
|
|
2187
1955
|
};
|
|
2188
|
-
const
|
|
2189
|
-
return input
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
1956
|
+
const se_UpdateAnomalySubscriptionRequest = (input, context) => {
|
|
1957
|
+
return take(input, {
|
|
1958
|
+
Frequency: [],
|
|
1959
|
+
MonitorArnList: _json,
|
|
1960
|
+
Subscribers: _json,
|
|
1961
|
+
SubscriptionArn: [],
|
|
1962
|
+
SubscriptionName: [],
|
|
1963
|
+
Threshold: __serializeFloat,
|
|
1964
|
+
ThresholdExpression: (_) => se_Expression(_, context),
|
|
2193
1965
|
});
|
|
2194
1966
|
};
|
|
2195
|
-
const
|
|
2196
|
-
return input
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
1967
|
+
const se_UpdateCostCategoryDefinitionRequest = (input, context) => {
|
|
1968
|
+
return take(input, {
|
|
1969
|
+
CostCategoryArn: [],
|
|
1970
|
+
DefaultValue: [],
|
|
1971
|
+
EffectiveStart: [],
|
|
1972
|
+
RuleVersion: [],
|
|
1973
|
+
Rules: (_) => se_CostCategoryRulesList(_, context),
|
|
1974
|
+
SplitChargeRules: _json,
|
|
2200
1975
|
});
|
|
2201
1976
|
};
|
|
2202
|
-
const
|
|
2203
|
-
|
|
2204
|
-
...(input.AnomalyId != null && { AnomalyId: input.AnomalyId }),
|
|
2205
|
-
...(input.Feedback != null && { Feedback: input.Feedback }),
|
|
2206
|
-
};
|
|
2207
|
-
};
|
|
2208
|
-
const se_RecommendationIdList = (input, context) => {
|
|
2209
|
-
return input
|
|
1977
|
+
const de_Anomalies = (output, context) => {
|
|
1978
|
+
const retVal = (output || [])
|
|
2210
1979
|
.filter((e) => e != null)
|
|
2211
1980
|
.map((entry) => {
|
|
2212
|
-
return entry;
|
|
1981
|
+
return de_Anomaly(entry, context);
|
|
2213
1982
|
});
|
|
1983
|
+
return retVal;
|
|
2214
1984
|
};
|
|
2215
|
-
const
|
|
2216
|
-
return {
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
1985
|
+
const de_Anomaly = (output, context) => {
|
|
1986
|
+
return take(output, {
|
|
1987
|
+
AnomalyEndDate: __expectString,
|
|
1988
|
+
AnomalyId: __expectString,
|
|
1989
|
+
AnomalyScore: (_) => de_AnomalyScore(_, context),
|
|
1990
|
+
AnomalyStartDate: __expectString,
|
|
1991
|
+
DimensionValue: __expectString,
|
|
1992
|
+
Feedback: __expectString,
|
|
1993
|
+
Impact: (_) => de_Impact(_, context),
|
|
1994
|
+
MonitorArn: __expectString,
|
|
1995
|
+
RootCauses: _json,
|
|
2226
1996
|
});
|
|
2227
1997
|
};
|
|
2228
|
-
const
|
|
2229
|
-
return
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
1998
|
+
const de_AnomalyMonitor = (output, context) => {
|
|
1999
|
+
return take(output, {
|
|
2000
|
+
CreationDate: __expectString,
|
|
2001
|
+
DimensionalValueCount: __expectInt32,
|
|
2002
|
+
LastEvaluatedDate: __expectString,
|
|
2003
|
+
LastUpdatedDate: __expectString,
|
|
2004
|
+
MonitorArn: __expectString,
|
|
2005
|
+
MonitorDimension: __expectString,
|
|
2006
|
+
MonitorName: __expectString,
|
|
2007
|
+
MonitorSpecification: (_) => de_Expression(_, context),
|
|
2008
|
+
MonitorType: __expectString,
|
|
2233
2009
|
});
|
|
2234
2010
|
};
|
|
2235
|
-
const
|
|
2236
|
-
|
|
2237
|
-
...(input.BenefitsConsidered != null && { BenefitsConsidered: input.BenefitsConsidered }),
|
|
2238
|
-
...(input.RecommendationTarget != null && { RecommendationTarget: input.RecommendationTarget }),
|
|
2239
|
-
};
|
|
2240
|
-
};
|
|
2241
|
-
const se_SavingsPlansDataTypes = (input, context) => {
|
|
2242
|
-
return input
|
|
2011
|
+
const de_AnomalyMonitors = (output, context) => {
|
|
2012
|
+
const retVal = (output || [])
|
|
2243
2013
|
.filter((e) => e != null)
|
|
2244
2014
|
.map((entry) => {
|
|
2245
|
-
return entry;
|
|
2015
|
+
return de_AnomalyMonitor(entry, context);
|
|
2246
2016
|
});
|
|
2017
|
+
return retVal;
|
|
2247
2018
|
};
|
|
2248
|
-
const
|
|
2249
|
-
return {
|
|
2250
|
-
|
|
2251
|
-
|
|
2019
|
+
const de_AnomalyScore = (output, context) => {
|
|
2020
|
+
return take(output, {
|
|
2021
|
+
CurrentScore: __limitedParseDouble,
|
|
2022
|
+
MaxScore: __limitedParseDouble,
|
|
2023
|
+
});
|
|
2252
2024
|
};
|
|
2253
|
-
const
|
|
2254
|
-
return {
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2025
|
+
const de_AnomalySubscription = (output, context) => {
|
|
2026
|
+
return take(output, {
|
|
2027
|
+
AccountId: __expectString,
|
|
2028
|
+
Frequency: __expectString,
|
|
2029
|
+
MonitorArnList: _json,
|
|
2030
|
+
Subscribers: _json,
|
|
2031
|
+
SubscriptionArn: __expectString,
|
|
2032
|
+
SubscriptionName: __expectString,
|
|
2033
|
+
Threshold: __limitedParseDouble,
|
|
2034
|
+
ThresholdExpression: (_) => de_Expression(_, context),
|
|
2035
|
+
});
|
|
2258
2036
|
};
|
|
2259
|
-
const
|
|
2260
|
-
|
|
2037
|
+
const de_AnomalySubscriptions = (output, context) => {
|
|
2038
|
+
const retVal = (output || [])
|
|
2261
2039
|
.filter((e) => e != null)
|
|
2262
2040
|
.map((entry) => {
|
|
2263
|
-
return
|
|
2041
|
+
return de_AnomalySubscription(entry, context);
|
|
2264
2042
|
});
|
|
2043
|
+
return retVal;
|
|
2265
2044
|
};
|
|
2266
|
-
const
|
|
2267
|
-
return {
|
|
2045
|
+
const de_CostCategory = (output, context) => {
|
|
2046
|
+
return take(output, {
|
|
2047
|
+
CostCategoryArn: __expectString,
|
|
2048
|
+
DefaultValue: __expectString,
|
|
2049
|
+
EffectiveEnd: __expectString,
|
|
2050
|
+
EffectiveStart: __expectString,
|
|
2051
|
+
Name: __expectString,
|
|
2052
|
+
ProcessingStatus: _json,
|
|
2053
|
+
RuleVersion: __expectString,
|
|
2054
|
+
Rules: (_) => de_CostCategoryRulesList(_, context),
|
|
2055
|
+
SplitChargeRules: _json,
|
|
2056
|
+
});
|
|
2268
2057
|
};
|
|
2269
|
-
const
|
|
2270
|
-
return {
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2058
|
+
const de_CostCategoryRule = (output, context) => {
|
|
2059
|
+
return take(output, {
|
|
2060
|
+
InheritedValue: _json,
|
|
2061
|
+
Rule: (_) => de_Expression(_, context),
|
|
2062
|
+
Type: __expectString,
|
|
2063
|
+
Value: __expectString,
|
|
2064
|
+
});
|
|
2275
2065
|
};
|
|
2276
|
-
const
|
|
2277
|
-
|
|
2066
|
+
const de_CostCategoryRulesList = (output, context) => {
|
|
2067
|
+
const retVal = (output || [])
|
|
2278
2068
|
.filter((e) => e != null)
|
|
2279
2069
|
.map((entry) => {
|
|
2280
|
-
return
|
|
2070
|
+
return de_CostCategoryRule(entry, context);
|
|
2281
2071
|
});
|
|
2072
|
+
return retVal;
|
|
2282
2073
|
};
|
|
2283
|
-
const
|
|
2284
|
-
return {
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
};
|
|
2288
|
-
};
|
|
2289
|
-
const se_TagValues = (input, context) => {
|
|
2290
|
-
return {
|
|
2291
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2292
|
-
...(input.MatchOptions != null && { MatchOptions: se_MatchOptions(input.MatchOptions, context) }),
|
|
2293
|
-
...(input.Values != null && { Values: se_Values(input.Values, context) }),
|
|
2294
|
-
};
|
|
2295
|
-
};
|
|
2296
|
-
const se_TotalImpactFilter = (input, context) => {
|
|
2297
|
-
return {
|
|
2298
|
-
...(input.EndValue != null && { EndValue: __serializeFloat(input.EndValue) }),
|
|
2299
|
-
...(input.NumericOperator != null && { NumericOperator: input.NumericOperator }),
|
|
2300
|
-
...(input.StartValue != null && { StartValue: __serializeFloat(input.StartValue) }),
|
|
2301
|
-
};
|
|
2302
|
-
};
|
|
2303
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2304
|
-
return {
|
|
2305
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2306
|
-
...(input.ResourceTagKeys != null && { ResourceTagKeys: se_ResourceTagKeyList(input.ResourceTagKeys, context) }),
|
|
2307
|
-
};
|
|
2308
|
-
};
|
|
2309
|
-
const se_UpdateAnomalyMonitorRequest = (input, context) => {
|
|
2310
|
-
return {
|
|
2311
|
-
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
2312
|
-
...(input.MonitorName != null && { MonitorName: input.MonitorName }),
|
|
2313
|
-
};
|
|
2314
|
-
};
|
|
2315
|
-
const se_UpdateAnomalySubscriptionRequest = (input, context) => {
|
|
2316
|
-
return {
|
|
2317
|
-
...(input.Frequency != null && { Frequency: input.Frequency }),
|
|
2318
|
-
...(input.MonitorArnList != null && { MonitorArnList: se_MonitorArnList(input.MonitorArnList, context) }),
|
|
2319
|
-
...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
|
|
2320
|
-
...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
|
|
2321
|
-
...(input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName }),
|
|
2322
|
-
...(input.Threshold != null && { Threshold: __serializeFloat(input.Threshold) }),
|
|
2323
|
-
...(input.ThresholdExpression != null && {
|
|
2324
|
-
ThresholdExpression: se_Expression(input.ThresholdExpression, context),
|
|
2325
|
-
}),
|
|
2326
|
-
};
|
|
2327
|
-
};
|
|
2328
|
-
const se_UpdateCostAllocationTagsStatusRequest = (input, context) => {
|
|
2329
|
-
return {
|
|
2330
|
-
...(input.CostAllocationTagsStatus != null && {
|
|
2331
|
-
CostAllocationTagsStatus: se_CostAllocationTagStatusList(input.CostAllocationTagsStatus, context),
|
|
2332
|
-
}),
|
|
2333
|
-
};
|
|
2334
|
-
};
|
|
2335
|
-
const se_UpdateCostCategoryDefinitionRequest = (input, context) => {
|
|
2336
|
-
return {
|
|
2337
|
-
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
2338
|
-
...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
|
|
2339
|
-
...(input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart }),
|
|
2340
|
-
...(input.RuleVersion != null && { RuleVersion: input.RuleVersion }),
|
|
2341
|
-
...(input.Rules != null && { Rules: se_CostCategoryRulesList(input.Rules, context) }),
|
|
2342
|
-
...(input.SplitChargeRules != null && {
|
|
2343
|
-
SplitChargeRules: se_CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
|
|
2344
|
-
}),
|
|
2345
|
-
};
|
|
2074
|
+
const de_DescribeCostCategoryDefinitionResponse = (output, context) => {
|
|
2075
|
+
return take(output, {
|
|
2076
|
+
CostCategory: (_) => de_CostCategory(_, context),
|
|
2077
|
+
});
|
|
2346
2078
|
};
|
|
2347
|
-
const
|
|
2348
|
-
return
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2079
|
+
const de_Expression = (output, context) => {
|
|
2080
|
+
return take(output, {
|
|
2081
|
+
And: (_) => de_Expressions(_, context),
|
|
2082
|
+
CostCategories: _json,
|
|
2083
|
+
Dimensions: _json,
|
|
2084
|
+
Not: (_) => de_Expression(_, context),
|
|
2085
|
+
Or: (_) => de_Expressions(_, context),
|
|
2086
|
+
Tags: _json,
|
|
2352
2087
|
});
|
|
2353
2088
|
};
|
|
2354
|
-
const
|
|
2089
|
+
const de_Expressions = (output, context) => {
|
|
2355
2090
|
const retVal = (output || [])
|
|
2356
2091
|
.filter((e) => e != null)
|
|
2357
2092
|
.map((entry) => {
|
|
2358
|
-
|
|
2359
|
-
return null;
|
|
2360
|
-
}
|
|
2361
|
-
return de_Anomaly(entry, context);
|
|
2093
|
+
return de_Expression(entry, context);
|
|
2362
2094
|
});
|
|
2363
2095
|
return retVal;
|
|
2364
2096
|
};
|
|
2365
|
-
const
|
|
2366
|
-
return {
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
AnomalyScore: output.AnomalyScore != null ? de_AnomalyScore(output.AnomalyScore, context) : undefined,
|
|
2370
|
-
AnomalyStartDate: __expectString(output.AnomalyStartDate),
|
|
2371
|
-
DimensionValue: __expectString(output.DimensionValue),
|
|
2372
|
-
Feedback: __expectString(output.Feedback),
|
|
2373
|
-
Impact: output.Impact != null ? de_Impact(output.Impact, context) : undefined,
|
|
2374
|
-
MonitorArn: __expectString(output.MonitorArn),
|
|
2375
|
-
RootCauses: output.RootCauses != null ? de_RootCauses(output.RootCauses, context) : undefined,
|
|
2376
|
-
};
|
|
2377
|
-
};
|
|
2378
|
-
const de_AnomalyMonitor = (output, context) => {
|
|
2379
|
-
return {
|
|
2380
|
-
CreationDate: __expectString(output.CreationDate),
|
|
2381
|
-
DimensionalValueCount: __expectInt32(output.DimensionalValueCount),
|
|
2382
|
-
LastEvaluatedDate: __expectString(output.LastEvaluatedDate),
|
|
2383
|
-
LastUpdatedDate: __expectString(output.LastUpdatedDate),
|
|
2384
|
-
MonitorArn: __expectString(output.MonitorArn),
|
|
2385
|
-
MonitorDimension: __expectString(output.MonitorDimension),
|
|
2386
|
-
MonitorName: __expectString(output.MonitorName),
|
|
2387
|
-
MonitorSpecification: output.MonitorSpecification != null ? de_Expression(output.MonitorSpecification, context) : undefined,
|
|
2388
|
-
MonitorType: __expectString(output.MonitorType),
|
|
2389
|
-
};
|
|
2390
|
-
};
|
|
2391
|
-
const de_AnomalyMonitors = (output, context) => {
|
|
2392
|
-
const retVal = (output || [])
|
|
2393
|
-
.filter((e) => e != null)
|
|
2394
|
-
.map((entry) => {
|
|
2395
|
-
if (entry === null) {
|
|
2396
|
-
return null;
|
|
2397
|
-
}
|
|
2398
|
-
return de_AnomalyMonitor(entry, context);
|
|
2399
|
-
});
|
|
2400
|
-
return retVal;
|
|
2401
|
-
};
|
|
2402
|
-
const de_AnomalyScore = (output, context) => {
|
|
2403
|
-
return {
|
|
2404
|
-
CurrentScore: __limitedParseDouble(output.CurrentScore),
|
|
2405
|
-
MaxScore: __limitedParseDouble(output.MaxScore),
|
|
2406
|
-
};
|
|
2407
|
-
};
|
|
2408
|
-
const de_AnomalySubscription = (output, context) => {
|
|
2409
|
-
return {
|
|
2410
|
-
AccountId: __expectString(output.AccountId),
|
|
2411
|
-
Frequency: __expectString(output.Frequency),
|
|
2412
|
-
MonitorArnList: output.MonitorArnList != null ? de_MonitorArnList(output.MonitorArnList, context) : undefined,
|
|
2413
|
-
Subscribers: output.Subscribers != null ? de_Subscribers(output.Subscribers, context) : undefined,
|
|
2414
|
-
SubscriptionArn: __expectString(output.SubscriptionArn),
|
|
2415
|
-
SubscriptionName: __expectString(output.SubscriptionName),
|
|
2416
|
-
Threshold: __limitedParseDouble(output.Threshold),
|
|
2417
|
-
ThresholdExpression: output.ThresholdExpression != null ? de_Expression(output.ThresholdExpression, context) : undefined,
|
|
2418
|
-
};
|
|
2419
|
-
};
|
|
2420
|
-
const de_AnomalySubscriptions = (output, context) => {
|
|
2421
|
-
const retVal = (output || [])
|
|
2422
|
-
.filter((e) => e != null)
|
|
2423
|
-
.map((entry) => {
|
|
2424
|
-
if (entry === null) {
|
|
2425
|
-
return null;
|
|
2426
|
-
}
|
|
2427
|
-
return de_AnomalySubscription(entry, context);
|
|
2428
|
-
});
|
|
2429
|
-
return retVal;
|
|
2430
|
-
};
|
|
2431
|
-
const de_Attributes = (output, context) => {
|
|
2432
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2433
|
-
if (value === null) {
|
|
2434
|
-
return acc;
|
|
2435
|
-
}
|
|
2436
|
-
acc[key] = __expectString(value);
|
|
2437
|
-
return acc;
|
|
2438
|
-
}, {});
|
|
2439
|
-
};
|
|
2440
|
-
const de_BillExpirationException = (output, context) => {
|
|
2441
|
-
return {
|
|
2442
|
-
Message: __expectString(output.Message),
|
|
2443
|
-
};
|
|
2444
|
-
};
|
|
2445
|
-
const de_CostAllocationTag = (output, context) => {
|
|
2446
|
-
return {
|
|
2447
|
-
Status: __expectString(output.Status),
|
|
2448
|
-
TagKey: __expectString(output.TagKey),
|
|
2449
|
-
Type: __expectString(output.Type),
|
|
2450
|
-
};
|
|
2451
|
-
};
|
|
2452
|
-
const de_CostAllocationTagList = (output, context) => {
|
|
2453
|
-
const retVal = (output || [])
|
|
2454
|
-
.filter((e) => e != null)
|
|
2455
|
-
.map((entry) => {
|
|
2456
|
-
if (entry === null) {
|
|
2457
|
-
return null;
|
|
2458
|
-
}
|
|
2459
|
-
return de_CostAllocationTag(entry, context);
|
|
2460
|
-
});
|
|
2461
|
-
return retVal;
|
|
2462
|
-
};
|
|
2463
|
-
const de_CostCategory = (output, context) => {
|
|
2464
|
-
return {
|
|
2465
|
-
CostCategoryArn: __expectString(output.CostCategoryArn),
|
|
2466
|
-
DefaultValue: __expectString(output.DefaultValue),
|
|
2467
|
-
EffectiveEnd: __expectString(output.EffectiveEnd),
|
|
2468
|
-
EffectiveStart: __expectString(output.EffectiveStart),
|
|
2469
|
-
Name: __expectString(output.Name),
|
|
2470
|
-
ProcessingStatus: output.ProcessingStatus != null
|
|
2471
|
-
? de_CostCategoryProcessingStatusList(output.ProcessingStatus, context)
|
|
2472
|
-
: undefined,
|
|
2473
|
-
RuleVersion: __expectString(output.RuleVersion),
|
|
2474
|
-
Rules: output.Rules != null ? de_CostCategoryRulesList(output.Rules, context) : undefined,
|
|
2475
|
-
SplitChargeRules: output.SplitChargeRules != null
|
|
2476
|
-
? de_CostCategorySplitChargeRulesList(output.SplitChargeRules, context)
|
|
2477
|
-
: undefined,
|
|
2478
|
-
};
|
|
2479
|
-
};
|
|
2480
|
-
const de_CostCategoryInheritedValueDimension = (output, context) => {
|
|
2481
|
-
return {
|
|
2482
|
-
DimensionKey: __expectString(output.DimensionKey),
|
|
2483
|
-
DimensionName: __expectString(output.DimensionName),
|
|
2484
|
-
};
|
|
2485
|
-
};
|
|
2486
|
-
const de_CostCategoryNamesList = (output, context) => {
|
|
2487
|
-
const retVal = (output || [])
|
|
2488
|
-
.filter((e) => e != null)
|
|
2489
|
-
.map((entry) => {
|
|
2490
|
-
if (entry === null) {
|
|
2491
|
-
return null;
|
|
2492
|
-
}
|
|
2493
|
-
return __expectString(entry);
|
|
2494
|
-
});
|
|
2495
|
-
return retVal;
|
|
2496
|
-
};
|
|
2497
|
-
const de_CostCategoryProcessingStatus = (output, context) => {
|
|
2498
|
-
return {
|
|
2499
|
-
Component: __expectString(output.Component),
|
|
2500
|
-
Status: __expectString(output.Status),
|
|
2501
|
-
};
|
|
2502
|
-
};
|
|
2503
|
-
const de_CostCategoryProcessingStatusList = (output, context) => {
|
|
2504
|
-
const retVal = (output || [])
|
|
2505
|
-
.filter((e) => e != null)
|
|
2506
|
-
.map((entry) => {
|
|
2507
|
-
if (entry === null) {
|
|
2508
|
-
return null;
|
|
2509
|
-
}
|
|
2510
|
-
return de_CostCategoryProcessingStatus(entry, context);
|
|
2511
|
-
});
|
|
2512
|
-
return retVal;
|
|
2513
|
-
};
|
|
2514
|
-
const de_CostCategoryReference = (output, context) => {
|
|
2515
|
-
return {
|
|
2516
|
-
CostCategoryArn: __expectString(output.CostCategoryArn),
|
|
2517
|
-
DefaultValue: __expectString(output.DefaultValue),
|
|
2518
|
-
EffectiveEnd: __expectString(output.EffectiveEnd),
|
|
2519
|
-
EffectiveStart: __expectString(output.EffectiveStart),
|
|
2520
|
-
Name: __expectString(output.Name),
|
|
2521
|
-
NumberOfRules: __expectInt32(output.NumberOfRules),
|
|
2522
|
-
ProcessingStatus: output.ProcessingStatus != null
|
|
2523
|
-
? de_CostCategoryProcessingStatusList(output.ProcessingStatus, context)
|
|
2524
|
-
: undefined,
|
|
2525
|
-
Values: output.Values != null ? de_CostCategoryValuesList(output.Values, context) : undefined,
|
|
2526
|
-
};
|
|
2527
|
-
};
|
|
2528
|
-
const de_CostCategoryReferencesList = (output, context) => {
|
|
2529
|
-
const retVal = (output || [])
|
|
2530
|
-
.filter((e) => e != null)
|
|
2531
|
-
.map((entry) => {
|
|
2532
|
-
if (entry === null) {
|
|
2533
|
-
return null;
|
|
2534
|
-
}
|
|
2535
|
-
return de_CostCategoryReference(entry, context);
|
|
2536
|
-
});
|
|
2537
|
-
return retVal;
|
|
2538
|
-
};
|
|
2539
|
-
const de_CostCategoryRule = (output, context) => {
|
|
2540
|
-
return {
|
|
2541
|
-
InheritedValue: output.InheritedValue != null
|
|
2542
|
-
? de_CostCategoryInheritedValueDimension(output.InheritedValue, context)
|
|
2543
|
-
: undefined,
|
|
2544
|
-
Rule: output.Rule != null ? de_Expression(output.Rule, context) : undefined,
|
|
2545
|
-
Type: __expectString(output.Type),
|
|
2546
|
-
Value: __expectString(output.Value),
|
|
2547
|
-
};
|
|
2548
|
-
};
|
|
2549
|
-
const de_CostCategoryRulesList = (output, context) => {
|
|
2550
|
-
const retVal = (output || [])
|
|
2551
|
-
.filter((e) => e != null)
|
|
2552
|
-
.map((entry) => {
|
|
2553
|
-
if (entry === null) {
|
|
2554
|
-
return null;
|
|
2555
|
-
}
|
|
2556
|
-
return de_CostCategoryRule(entry, context);
|
|
2557
|
-
});
|
|
2558
|
-
return retVal;
|
|
2559
|
-
};
|
|
2560
|
-
const de_CostCategorySplitChargeRule = (output, context) => {
|
|
2561
|
-
return {
|
|
2562
|
-
Method: __expectString(output.Method),
|
|
2563
|
-
Parameters: output.Parameters != null ? de_CostCategorySplitChargeRuleParametersList(output.Parameters, context) : undefined,
|
|
2564
|
-
Source: __expectString(output.Source),
|
|
2565
|
-
Targets: output.Targets != null ? de_CostCategorySplitChargeRuleTargetsList(output.Targets, context) : undefined,
|
|
2566
|
-
};
|
|
2567
|
-
};
|
|
2568
|
-
const de_CostCategorySplitChargeRuleParameter = (output, context) => {
|
|
2569
|
-
return {
|
|
2570
|
-
Type: __expectString(output.Type),
|
|
2571
|
-
Values: output.Values != null ? de_CostCategorySplitChargeRuleParameterValuesList(output.Values, context) : undefined,
|
|
2572
|
-
};
|
|
2573
|
-
};
|
|
2574
|
-
const de_CostCategorySplitChargeRuleParametersList = (output, context) => {
|
|
2575
|
-
const retVal = (output || [])
|
|
2576
|
-
.filter((e) => e != null)
|
|
2577
|
-
.map((entry) => {
|
|
2578
|
-
if (entry === null) {
|
|
2579
|
-
return null;
|
|
2580
|
-
}
|
|
2581
|
-
return de_CostCategorySplitChargeRuleParameter(entry, context);
|
|
2582
|
-
});
|
|
2583
|
-
return retVal;
|
|
2584
|
-
};
|
|
2585
|
-
const de_CostCategorySplitChargeRuleParameterValuesList = (output, context) => {
|
|
2586
|
-
const retVal = (output || [])
|
|
2587
|
-
.filter((e) => e != null)
|
|
2588
|
-
.map((entry) => {
|
|
2589
|
-
if (entry === null) {
|
|
2590
|
-
return null;
|
|
2591
|
-
}
|
|
2592
|
-
return __expectString(entry);
|
|
2593
|
-
});
|
|
2594
|
-
return retVal;
|
|
2595
|
-
};
|
|
2596
|
-
const de_CostCategorySplitChargeRulesList = (output, context) => {
|
|
2597
|
-
const retVal = (output || [])
|
|
2598
|
-
.filter((e) => e != null)
|
|
2599
|
-
.map((entry) => {
|
|
2600
|
-
if (entry === null) {
|
|
2601
|
-
return null;
|
|
2602
|
-
}
|
|
2603
|
-
return de_CostCategorySplitChargeRule(entry, context);
|
|
2604
|
-
});
|
|
2605
|
-
return retVal;
|
|
2606
|
-
};
|
|
2607
|
-
const de_CostCategorySplitChargeRuleTargetsList = (output, context) => {
|
|
2608
|
-
const retVal = (output || [])
|
|
2609
|
-
.filter((e) => e != null)
|
|
2610
|
-
.map((entry) => {
|
|
2611
|
-
if (entry === null) {
|
|
2612
|
-
return null;
|
|
2613
|
-
}
|
|
2614
|
-
return __expectString(entry);
|
|
2615
|
-
});
|
|
2616
|
-
return retVal;
|
|
2617
|
-
};
|
|
2618
|
-
const de_CostCategoryValues = (output, context) => {
|
|
2619
|
-
return {
|
|
2620
|
-
Key: __expectString(output.Key),
|
|
2621
|
-
MatchOptions: output.MatchOptions != null ? de_MatchOptions(output.MatchOptions, context) : undefined,
|
|
2622
|
-
Values: output.Values != null ? de_Values(output.Values, context) : undefined,
|
|
2623
|
-
};
|
|
2624
|
-
};
|
|
2625
|
-
const de_CostCategoryValuesList = (output, context) => {
|
|
2626
|
-
const retVal = (output || [])
|
|
2627
|
-
.filter((e) => e != null)
|
|
2628
|
-
.map((entry) => {
|
|
2629
|
-
if (entry === null) {
|
|
2630
|
-
return null;
|
|
2631
|
-
}
|
|
2632
|
-
return __expectString(entry);
|
|
2633
|
-
});
|
|
2634
|
-
return retVal;
|
|
2635
|
-
};
|
|
2636
|
-
const de_Coverage = (output, context) => {
|
|
2637
|
-
return {
|
|
2638
|
-
CoverageCost: output.CoverageCost != null ? de_CoverageCost(output.CoverageCost, context) : undefined,
|
|
2639
|
-
CoverageHours: output.CoverageHours != null ? de_CoverageHours(output.CoverageHours, context) : undefined,
|
|
2640
|
-
CoverageNormalizedUnits: output.CoverageNormalizedUnits != null
|
|
2641
|
-
? de_CoverageNormalizedUnits(output.CoverageNormalizedUnits, context)
|
|
2642
|
-
: undefined,
|
|
2643
|
-
};
|
|
2644
|
-
};
|
|
2645
|
-
const de_CoverageByTime = (output, context) => {
|
|
2646
|
-
return {
|
|
2647
|
-
Groups: output.Groups != null ? de_ReservationCoverageGroups(output.Groups, context) : undefined,
|
|
2648
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
2649
|
-
Total: output.Total != null ? de_Coverage(output.Total, context) : undefined,
|
|
2650
|
-
};
|
|
2651
|
-
};
|
|
2652
|
-
const de_CoverageCost = (output, context) => {
|
|
2653
|
-
return {
|
|
2654
|
-
OnDemandCost: __expectString(output.OnDemandCost),
|
|
2655
|
-
};
|
|
2656
|
-
};
|
|
2657
|
-
const de_CoverageHours = (output, context) => {
|
|
2658
|
-
return {
|
|
2659
|
-
CoverageHoursPercentage: __expectString(output.CoverageHoursPercentage),
|
|
2660
|
-
OnDemandHours: __expectString(output.OnDemandHours),
|
|
2661
|
-
ReservedHours: __expectString(output.ReservedHours),
|
|
2662
|
-
TotalRunningHours: __expectString(output.TotalRunningHours),
|
|
2663
|
-
};
|
|
2664
|
-
};
|
|
2665
|
-
const de_CoverageNormalizedUnits = (output, context) => {
|
|
2666
|
-
return {
|
|
2667
|
-
CoverageNormalizedUnitsPercentage: __expectString(output.CoverageNormalizedUnitsPercentage),
|
|
2668
|
-
OnDemandNormalizedUnits: __expectString(output.OnDemandNormalizedUnits),
|
|
2669
|
-
ReservedNormalizedUnits: __expectString(output.ReservedNormalizedUnits),
|
|
2670
|
-
TotalRunningNormalizedUnits: __expectString(output.TotalRunningNormalizedUnits),
|
|
2671
|
-
};
|
|
2672
|
-
};
|
|
2673
|
-
const de_CoveragesByTime = (output, context) => {
|
|
2674
|
-
const retVal = (output || [])
|
|
2675
|
-
.filter((e) => e != null)
|
|
2676
|
-
.map((entry) => {
|
|
2677
|
-
if (entry === null) {
|
|
2678
|
-
return null;
|
|
2679
|
-
}
|
|
2680
|
-
return de_CoverageByTime(entry, context);
|
|
2681
|
-
});
|
|
2682
|
-
return retVal;
|
|
2683
|
-
};
|
|
2684
|
-
const de_CreateAnomalyMonitorResponse = (output, context) => {
|
|
2685
|
-
return {
|
|
2686
|
-
MonitorArn: __expectString(output.MonitorArn),
|
|
2687
|
-
};
|
|
2688
|
-
};
|
|
2689
|
-
const de_CreateAnomalySubscriptionResponse = (output, context) => {
|
|
2690
|
-
return {
|
|
2691
|
-
SubscriptionArn: __expectString(output.SubscriptionArn),
|
|
2692
|
-
};
|
|
2693
|
-
};
|
|
2694
|
-
const de_CreateCostCategoryDefinitionResponse = (output, context) => {
|
|
2695
|
-
return {
|
|
2696
|
-
CostCategoryArn: __expectString(output.CostCategoryArn),
|
|
2697
|
-
EffectiveStart: __expectString(output.EffectiveStart),
|
|
2698
|
-
};
|
|
2699
|
-
};
|
|
2700
|
-
const de_CurrentInstance = (output, context) => {
|
|
2701
|
-
return {
|
|
2702
|
-
CurrencyCode: __expectString(output.CurrencyCode),
|
|
2703
|
-
InstanceName: __expectString(output.InstanceName),
|
|
2704
|
-
MonthlyCost: __expectString(output.MonthlyCost),
|
|
2705
|
-
OnDemandHoursInLookbackPeriod: __expectString(output.OnDemandHoursInLookbackPeriod),
|
|
2706
|
-
ReservationCoveredHoursInLookbackPeriod: __expectString(output.ReservationCoveredHoursInLookbackPeriod),
|
|
2707
|
-
ResourceDetails: output.ResourceDetails != null ? de_ResourceDetails(output.ResourceDetails, context) : undefined,
|
|
2708
|
-
ResourceId: __expectString(output.ResourceId),
|
|
2709
|
-
ResourceUtilization: output.ResourceUtilization != null ? de_ResourceUtilization(output.ResourceUtilization, context) : undefined,
|
|
2710
|
-
SavingsPlansCoveredHoursInLookbackPeriod: __expectString(output.SavingsPlansCoveredHoursInLookbackPeriod),
|
|
2711
|
-
Tags: output.Tags != null ? de_TagValuesList(output.Tags, context) : undefined,
|
|
2712
|
-
TotalRunningHoursInLookbackPeriod: __expectString(output.TotalRunningHoursInLookbackPeriod),
|
|
2713
|
-
};
|
|
2714
|
-
};
|
|
2715
|
-
const de_DataUnavailableException = (output, context) => {
|
|
2716
|
-
return {
|
|
2717
|
-
Message: __expectString(output.Message),
|
|
2718
|
-
};
|
|
2719
|
-
};
|
|
2720
|
-
const de_DateInterval = (output, context) => {
|
|
2721
|
-
return {
|
|
2722
|
-
End: __expectString(output.End),
|
|
2723
|
-
Start: __expectString(output.Start),
|
|
2724
|
-
};
|
|
2725
|
-
};
|
|
2726
|
-
const de_DeleteAnomalyMonitorResponse = (output, context) => {
|
|
2727
|
-
return {};
|
|
2728
|
-
};
|
|
2729
|
-
const de_DeleteAnomalySubscriptionResponse = (output, context) => {
|
|
2730
|
-
return {};
|
|
2731
|
-
};
|
|
2732
|
-
const de_DeleteCostCategoryDefinitionResponse = (output, context) => {
|
|
2733
|
-
return {
|
|
2734
|
-
CostCategoryArn: __expectString(output.CostCategoryArn),
|
|
2735
|
-
EffectiveEnd: __expectString(output.EffectiveEnd),
|
|
2736
|
-
};
|
|
2737
|
-
};
|
|
2738
|
-
const de_DescribeCostCategoryDefinitionResponse = (output, context) => {
|
|
2739
|
-
return {
|
|
2740
|
-
CostCategory: output.CostCategory != null ? de_CostCategory(output.CostCategory, context) : undefined,
|
|
2741
|
-
};
|
|
2742
|
-
};
|
|
2743
|
-
const de_DimensionValues = (output, context) => {
|
|
2744
|
-
return {
|
|
2745
|
-
Key: __expectString(output.Key),
|
|
2746
|
-
MatchOptions: output.MatchOptions != null ? de_MatchOptions(output.MatchOptions, context) : undefined,
|
|
2747
|
-
Values: output.Values != null ? de_Values(output.Values, context) : undefined,
|
|
2748
|
-
};
|
|
2749
|
-
};
|
|
2750
|
-
const de_DimensionValuesWithAttributes = (output, context) => {
|
|
2751
|
-
return {
|
|
2752
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
2753
|
-
Value: __expectString(output.Value),
|
|
2754
|
-
};
|
|
2755
|
-
};
|
|
2756
|
-
const de_DimensionValuesWithAttributesList = (output, context) => {
|
|
2757
|
-
const retVal = (output || [])
|
|
2758
|
-
.filter((e) => e != null)
|
|
2759
|
-
.map((entry) => {
|
|
2760
|
-
if (entry === null) {
|
|
2761
|
-
return null;
|
|
2762
|
-
}
|
|
2763
|
-
return de_DimensionValuesWithAttributes(entry, context);
|
|
2764
|
-
});
|
|
2765
|
-
return retVal;
|
|
2766
|
-
};
|
|
2767
|
-
const de_DiskResourceUtilization = (output, context) => {
|
|
2768
|
-
return {
|
|
2769
|
-
DiskReadBytesPerSecond: __expectString(output.DiskReadBytesPerSecond),
|
|
2770
|
-
DiskReadOpsPerSecond: __expectString(output.DiskReadOpsPerSecond),
|
|
2771
|
-
DiskWriteBytesPerSecond: __expectString(output.DiskWriteBytesPerSecond),
|
|
2772
|
-
DiskWriteOpsPerSecond: __expectString(output.DiskWriteOpsPerSecond),
|
|
2773
|
-
};
|
|
2774
|
-
};
|
|
2775
|
-
const de_EBSResourceUtilization = (output, context) => {
|
|
2776
|
-
return {
|
|
2777
|
-
EbsReadBytesPerSecond: __expectString(output.EbsReadBytesPerSecond),
|
|
2778
|
-
EbsReadOpsPerSecond: __expectString(output.EbsReadOpsPerSecond),
|
|
2779
|
-
EbsWriteBytesPerSecond: __expectString(output.EbsWriteBytesPerSecond),
|
|
2780
|
-
EbsWriteOpsPerSecond: __expectString(output.EbsWriteOpsPerSecond),
|
|
2781
|
-
};
|
|
2782
|
-
};
|
|
2783
|
-
const de_EC2InstanceDetails = (output, context) => {
|
|
2784
|
-
return {
|
|
2785
|
-
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
2786
|
-
CurrentGeneration: __expectBoolean(output.CurrentGeneration),
|
|
2787
|
-
Family: __expectString(output.Family),
|
|
2788
|
-
InstanceType: __expectString(output.InstanceType),
|
|
2789
|
-
Platform: __expectString(output.Platform),
|
|
2790
|
-
Region: __expectString(output.Region),
|
|
2791
|
-
SizeFlexEligible: __expectBoolean(output.SizeFlexEligible),
|
|
2792
|
-
Tenancy: __expectString(output.Tenancy),
|
|
2793
|
-
};
|
|
2794
|
-
};
|
|
2795
|
-
const de_EC2ResourceDetails = (output, context) => {
|
|
2796
|
-
return {
|
|
2797
|
-
HourlyOnDemandRate: __expectString(output.HourlyOnDemandRate),
|
|
2798
|
-
InstanceType: __expectString(output.InstanceType),
|
|
2799
|
-
Memory: __expectString(output.Memory),
|
|
2800
|
-
NetworkPerformance: __expectString(output.NetworkPerformance),
|
|
2801
|
-
Platform: __expectString(output.Platform),
|
|
2802
|
-
Region: __expectString(output.Region),
|
|
2803
|
-
Sku: __expectString(output.Sku),
|
|
2804
|
-
Storage: __expectString(output.Storage),
|
|
2805
|
-
Vcpu: __expectString(output.Vcpu),
|
|
2806
|
-
};
|
|
2807
|
-
};
|
|
2808
|
-
const de_EC2ResourceUtilization = (output, context) => {
|
|
2809
|
-
return {
|
|
2810
|
-
DiskResourceUtilization: output.DiskResourceUtilization != null
|
|
2811
|
-
? de_DiskResourceUtilization(output.DiskResourceUtilization, context)
|
|
2812
|
-
: undefined,
|
|
2813
|
-
EBSResourceUtilization: output.EBSResourceUtilization != null
|
|
2814
|
-
? de_EBSResourceUtilization(output.EBSResourceUtilization, context)
|
|
2815
|
-
: undefined,
|
|
2816
|
-
MaxCpuUtilizationPercentage: __expectString(output.MaxCpuUtilizationPercentage),
|
|
2817
|
-
MaxMemoryUtilizationPercentage: __expectString(output.MaxMemoryUtilizationPercentage),
|
|
2818
|
-
MaxStorageUtilizationPercentage: __expectString(output.MaxStorageUtilizationPercentage),
|
|
2819
|
-
NetworkResourceUtilization: output.NetworkResourceUtilization != null
|
|
2820
|
-
? de_NetworkResourceUtilization(output.NetworkResourceUtilization, context)
|
|
2821
|
-
: undefined,
|
|
2822
|
-
};
|
|
2823
|
-
};
|
|
2824
|
-
const de_EC2Specification = (output, context) => {
|
|
2825
|
-
return {
|
|
2826
|
-
OfferingClass: __expectString(output.OfferingClass),
|
|
2827
|
-
};
|
|
2828
|
-
};
|
|
2829
|
-
const de_ElastiCacheInstanceDetails = (output, context) => {
|
|
2830
|
-
return {
|
|
2831
|
-
CurrentGeneration: __expectBoolean(output.CurrentGeneration),
|
|
2832
|
-
Family: __expectString(output.Family),
|
|
2833
|
-
NodeType: __expectString(output.NodeType),
|
|
2834
|
-
ProductDescription: __expectString(output.ProductDescription),
|
|
2835
|
-
Region: __expectString(output.Region),
|
|
2836
|
-
SizeFlexEligible: __expectBoolean(output.SizeFlexEligible),
|
|
2837
|
-
};
|
|
2838
|
-
};
|
|
2839
|
-
const de_ESInstanceDetails = (output, context) => {
|
|
2840
|
-
return {
|
|
2841
|
-
CurrentGeneration: __expectBoolean(output.CurrentGeneration),
|
|
2842
|
-
InstanceClass: __expectString(output.InstanceClass),
|
|
2843
|
-
InstanceSize: __expectString(output.InstanceSize),
|
|
2844
|
-
Region: __expectString(output.Region),
|
|
2845
|
-
SizeFlexEligible: __expectBoolean(output.SizeFlexEligible),
|
|
2846
|
-
};
|
|
2847
|
-
};
|
|
2848
|
-
const de_Expression = (output, context) => {
|
|
2849
|
-
return {
|
|
2850
|
-
And: output.And != null ? de_Expressions(output.And, context) : undefined,
|
|
2851
|
-
CostCategories: output.CostCategories != null ? de_CostCategoryValues(output.CostCategories, context) : undefined,
|
|
2852
|
-
Dimensions: output.Dimensions != null ? de_DimensionValues(output.Dimensions, context) : undefined,
|
|
2853
|
-
Not: output.Not != null ? de_Expression(output.Not, context) : undefined,
|
|
2854
|
-
Or: output.Or != null ? de_Expressions(output.Or, context) : undefined,
|
|
2855
|
-
Tags: output.Tags != null ? de_TagValues(output.Tags, context) : undefined,
|
|
2856
|
-
};
|
|
2857
|
-
};
|
|
2858
|
-
const de_Expressions = (output, context) => {
|
|
2859
|
-
const retVal = (output || [])
|
|
2860
|
-
.filter((e) => e != null)
|
|
2861
|
-
.map((entry) => {
|
|
2862
|
-
if (entry === null) {
|
|
2863
|
-
return null;
|
|
2864
|
-
}
|
|
2865
|
-
return de_Expression(entry, context);
|
|
2866
|
-
});
|
|
2867
|
-
return retVal;
|
|
2868
|
-
};
|
|
2869
|
-
const de_FindingReasonCodes = (output, context) => {
|
|
2870
|
-
const retVal = (output || [])
|
|
2871
|
-
.filter((e) => e != null)
|
|
2872
|
-
.map((entry) => {
|
|
2873
|
-
if (entry === null) {
|
|
2874
|
-
return null;
|
|
2875
|
-
}
|
|
2876
|
-
return __expectString(entry);
|
|
2877
|
-
});
|
|
2878
|
-
return retVal;
|
|
2879
|
-
};
|
|
2880
|
-
const de_ForecastResult = (output, context) => {
|
|
2881
|
-
return {
|
|
2882
|
-
MeanValue: __expectString(output.MeanValue),
|
|
2883
|
-
PredictionIntervalLowerBound: __expectString(output.PredictionIntervalLowerBound),
|
|
2884
|
-
PredictionIntervalUpperBound: __expectString(output.PredictionIntervalUpperBound),
|
|
2885
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
2886
|
-
};
|
|
2887
|
-
};
|
|
2888
|
-
const de_ForecastResultsByTime = (output, context) => {
|
|
2889
|
-
const retVal = (output || [])
|
|
2890
|
-
.filter((e) => e != null)
|
|
2891
|
-
.map((entry) => {
|
|
2892
|
-
if (entry === null) {
|
|
2893
|
-
return null;
|
|
2894
|
-
}
|
|
2895
|
-
return de_ForecastResult(entry, context);
|
|
2896
|
-
});
|
|
2897
|
-
return retVal;
|
|
2898
|
-
};
|
|
2899
|
-
const de_GenerationExistsException = (output, context) => {
|
|
2900
|
-
return {
|
|
2901
|
-
Message: __expectString(output.Message),
|
|
2902
|
-
};
|
|
2903
|
-
};
|
|
2904
|
-
const de_GenerationSummary = (output, context) => {
|
|
2905
|
-
return {
|
|
2906
|
-
EstimatedCompletionTime: __expectString(output.EstimatedCompletionTime),
|
|
2907
|
-
GenerationCompletionTime: __expectString(output.GenerationCompletionTime),
|
|
2908
|
-
GenerationStartedTime: __expectString(output.GenerationStartedTime),
|
|
2909
|
-
GenerationStatus: __expectString(output.GenerationStatus),
|
|
2910
|
-
RecommendationId: __expectString(output.RecommendationId),
|
|
2911
|
-
};
|
|
2912
|
-
};
|
|
2913
|
-
const de_GenerationSummaryList = (output, context) => {
|
|
2914
|
-
const retVal = (output || [])
|
|
2915
|
-
.filter((e) => e != null)
|
|
2916
|
-
.map((entry) => {
|
|
2917
|
-
if (entry === null) {
|
|
2918
|
-
return null;
|
|
2919
|
-
}
|
|
2920
|
-
return de_GenerationSummary(entry, context);
|
|
2921
|
-
});
|
|
2922
|
-
return retVal;
|
|
2923
|
-
};
|
|
2924
|
-
const de_GetAnomaliesResponse = (output, context) => {
|
|
2925
|
-
return {
|
|
2926
|
-
Anomalies: output.Anomalies != null ? de_Anomalies(output.Anomalies, context) : undefined,
|
|
2927
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
2928
|
-
};
|
|
2929
|
-
};
|
|
2930
|
-
const de_GetAnomalyMonitorsResponse = (output, context) => {
|
|
2931
|
-
return {
|
|
2932
|
-
AnomalyMonitors: output.AnomalyMonitors != null ? de_AnomalyMonitors(output.AnomalyMonitors, context) : undefined,
|
|
2933
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
2934
|
-
};
|
|
2935
|
-
};
|
|
2936
|
-
const de_GetAnomalySubscriptionsResponse = (output, context) => {
|
|
2937
|
-
return {
|
|
2938
|
-
AnomalySubscriptions: output.AnomalySubscriptions != null ? de_AnomalySubscriptions(output.AnomalySubscriptions, context) : undefined,
|
|
2939
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
2940
|
-
};
|
|
2941
|
-
};
|
|
2942
|
-
const de_GetCostAndUsageResponse = (output, context) => {
|
|
2943
|
-
return {
|
|
2944
|
-
DimensionValueAttributes: output.DimensionValueAttributes != null
|
|
2945
|
-
? de_DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
|
|
2946
|
-
: undefined,
|
|
2947
|
-
GroupDefinitions: output.GroupDefinitions != null ? de_GroupDefinitions(output.GroupDefinitions, context) : undefined,
|
|
2948
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
2949
|
-
ResultsByTime: output.ResultsByTime != null ? de_ResultsByTime(output.ResultsByTime, context) : undefined,
|
|
2950
|
-
};
|
|
2951
|
-
};
|
|
2952
|
-
const de_GetCostAndUsageWithResourcesResponse = (output, context) => {
|
|
2953
|
-
return {
|
|
2954
|
-
DimensionValueAttributes: output.DimensionValueAttributes != null
|
|
2955
|
-
? de_DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
|
|
2956
|
-
: undefined,
|
|
2957
|
-
GroupDefinitions: output.GroupDefinitions != null ? de_GroupDefinitions(output.GroupDefinitions, context) : undefined,
|
|
2958
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
2959
|
-
ResultsByTime: output.ResultsByTime != null ? de_ResultsByTime(output.ResultsByTime, context) : undefined,
|
|
2960
|
-
};
|
|
2961
|
-
};
|
|
2962
|
-
const de_GetCostCategoriesResponse = (output, context) => {
|
|
2963
|
-
return {
|
|
2964
|
-
CostCategoryNames: output.CostCategoryNames != null ? de_CostCategoryNamesList(output.CostCategoryNames, context) : undefined,
|
|
2965
|
-
CostCategoryValues: output.CostCategoryValues != null ? de_CostCategoryValuesList(output.CostCategoryValues, context) : undefined,
|
|
2966
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
2967
|
-
ReturnSize: __expectInt32(output.ReturnSize),
|
|
2968
|
-
TotalSize: __expectInt32(output.TotalSize),
|
|
2969
|
-
};
|
|
2970
|
-
};
|
|
2971
|
-
const de_GetCostForecastResponse = (output, context) => {
|
|
2972
|
-
return {
|
|
2973
|
-
ForecastResultsByTime: output.ForecastResultsByTime != null
|
|
2974
|
-
? de_ForecastResultsByTime(output.ForecastResultsByTime, context)
|
|
2975
|
-
: undefined,
|
|
2976
|
-
Total: output.Total != null ? de_MetricValue(output.Total, context) : undefined,
|
|
2977
|
-
};
|
|
2978
|
-
};
|
|
2979
|
-
const de_GetDimensionValuesResponse = (output, context) => {
|
|
2980
|
-
return {
|
|
2981
|
-
DimensionValues: output.DimensionValues != null
|
|
2982
|
-
? de_DimensionValuesWithAttributesList(output.DimensionValues, context)
|
|
2983
|
-
: undefined,
|
|
2984
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
2985
|
-
ReturnSize: __expectInt32(output.ReturnSize),
|
|
2986
|
-
TotalSize: __expectInt32(output.TotalSize),
|
|
2987
|
-
};
|
|
2988
|
-
};
|
|
2989
|
-
const de_GetReservationCoverageResponse = (output, context) => {
|
|
2990
|
-
return {
|
|
2991
|
-
CoveragesByTime: output.CoveragesByTime != null ? de_CoveragesByTime(output.CoveragesByTime, context) : undefined,
|
|
2992
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
2993
|
-
Total: output.Total != null ? de_Coverage(output.Total, context) : undefined,
|
|
2994
|
-
};
|
|
2995
|
-
};
|
|
2996
|
-
const de_GetReservationPurchaseRecommendationResponse = (output, context) => {
|
|
2997
|
-
return {
|
|
2998
|
-
Metadata: output.Metadata != null ? de_ReservationPurchaseRecommendationMetadata(output.Metadata, context) : undefined,
|
|
2999
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
3000
|
-
Recommendations: output.Recommendations != null
|
|
3001
|
-
? de_ReservationPurchaseRecommendations(output.Recommendations, context)
|
|
3002
|
-
: undefined,
|
|
3003
|
-
};
|
|
3004
|
-
};
|
|
3005
|
-
const de_GetReservationUtilizationResponse = (output, context) => {
|
|
3006
|
-
return {
|
|
3007
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
3008
|
-
Total: output.Total != null ? de_ReservationAggregates(output.Total, context) : undefined,
|
|
3009
|
-
UtilizationsByTime: output.UtilizationsByTime != null ? de_UtilizationsByTime(output.UtilizationsByTime, context) : undefined,
|
|
3010
|
-
};
|
|
3011
|
-
};
|
|
3012
|
-
const de_GetRightsizingRecommendationResponse = (output, context) => {
|
|
3013
|
-
return {
|
|
3014
|
-
Configuration: output.Configuration != null
|
|
3015
|
-
? de_RightsizingRecommendationConfiguration(output.Configuration, context)
|
|
3016
|
-
: undefined,
|
|
3017
|
-
Metadata: output.Metadata != null ? de_RightsizingRecommendationMetadata(output.Metadata, context) : undefined,
|
|
3018
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
3019
|
-
RightsizingRecommendations: output.RightsizingRecommendations != null
|
|
3020
|
-
? de_RightsizingRecommendationList(output.RightsizingRecommendations, context)
|
|
3021
|
-
: undefined,
|
|
3022
|
-
Summary: output.Summary != null ? de_RightsizingRecommendationSummary(output.Summary, context) : undefined,
|
|
3023
|
-
};
|
|
3024
|
-
};
|
|
3025
|
-
const de_GetSavingsPlansCoverageResponse = (output, context) => {
|
|
3026
|
-
return {
|
|
3027
|
-
NextToken: __expectString(output.NextToken),
|
|
3028
|
-
SavingsPlansCoverages: output.SavingsPlansCoverages != null
|
|
3029
|
-
? de_SavingsPlansCoverages(output.SavingsPlansCoverages, context)
|
|
3030
|
-
: undefined,
|
|
3031
|
-
};
|
|
3032
|
-
};
|
|
3033
|
-
const de_GetSavingsPlansPurchaseRecommendationResponse = (output, context) => {
|
|
3034
|
-
return {
|
|
3035
|
-
Metadata: output.Metadata != null ? de_SavingsPlansPurchaseRecommendationMetadata(output.Metadata, context) : undefined,
|
|
3036
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
3037
|
-
SavingsPlansPurchaseRecommendation: output.SavingsPlansPurchaseRecommendation != null
|
|
3038
|
-
? de_SavingsPlansPurchaseRecommendation(output.SavingsPlansPurchaseRecommendation, context)
|
|
3039
|
-
: undefined,
|
|
3040
|
-
};
|
|
3041
|
-
};
|
|
3042
|
-
const de_GetSavingsPlansUtilizationDetailsResponse = (output, context) => {
|
|
3043
|
-
return {
|
|
3044
|
-
NextToken: __expectString(output.NextToken),
|
|
3045
|
-
SavingsPlansUtilizationDetails: output.SavingsPlansUtilizationDetails != null
|
|
3046
|
-
? de_SavingsPlansUtilizationDetails(output.SavingsPlansUtilizationDetails, context)
|
|
3047
|
-
: undefined,
|
|
3048
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3049
|
-
Total: output.Total != null ? de_SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
|
|
3050
|
-
};
|
|
3051
|
-
};
|
|
3052
|
-
const de_GetSavingsPlansUtilizationResponse = (output, context) => {
|
|
3053
|
-
return {
|
|
3054
|
-
SavingsPlansUtilizationsByTime: output.SavingsPlansUtilizationsByTime != null
|
|
3055
|
-
? de_SavingsPlansUtilizationsByTime(output.SavingsPlansUtilizationsByTime, context)
|
|
3056
|
-
: undefined,
|
|
3057
|
-
Total: output.Total != null ? de_SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
|
|
3058
|
-
};
|
|
3059
|
-
};
|
|
3060
|
-
const de_GetTagsResponse = (output, context) => {
|
|
3061
|
-
return {
|
|
3062
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
3063
|
-
ReturnSize: __expectInt32(output.ReturnSize),
|
|
3064
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3065
|
-
TotalSize: __expectInt32(output.TotalSize),
|
|
3066
|
-
};
|
|
3067
|
-
};
|
|
3068
|
-
const de_GetUsageForecastResponse = (output, context) => {
|
|
3069
|
-
return {
|
|
3070
|
-
ForecastResultsByTime: output.ForecastResultsByTime != null
|
|
3071
|
-
? de_ForecastResultsByTime(output.ForecastResultsByTime, context)
|
|
3072
|
-
: undefined,
|
|
3073
|
-
Total: output.Total != null ? de_MetricValue(output.Total, context) : undefined,
|
|
3074
|
-
};
|
|
3075
|
-
};
|
|
3076
|
-
const de_Group = (output, context) => {
|
|
3077
|
-
return {
|
|
3078
|
-
Keys: output.Keys != null ? de_Keys(output.Keys, context) : undefined,
|
|
3079
|
-
Metrics: output.Metrics != null ? de_Metrics(output.Metrics, context) : undefined,
|
|
3080
|
-
};
|
|
3081
|
-
};
|
|
3082
|
-
const de_GroupDefinition = (output, context) => {
|
|
3083
|
-
return {
|
|
3084
|
-
Key: __expectString(output.Key),
|
|
3085
|
-
Type: __expectString(output.Type),
|
|
3086
|
-
};
|
|
3087
|
-
};
|
|
3088
|
-
const de_GroupDefinitions = (output, context) => {
|
|
3089
|
-
const retVal = (output || [])
|
|
3090
|
-
.filter((e) => e != null)
|
|
3091
|
-
.map((entry) => {
|
|
3092
|
-
if (entry === null) {
|
|
3093
|
-
return null;
|
|
3094
|
-
}
|
|
3095
|
-
return de_GroupDefinition(entry, context);
|
|
3096
|
-
});
|
|
3097
|
-
return retVal;
|
|
3098
|
-
};
|
|
3099
|
-
const de_Groups = (output, context) => {
|
|
3100
|
-
const retVal = (output || [])
|
|
3101
|
-
.filter((e) => e != null)
|
|
3102
|
-
.map((entry) => {
|
|
3103
|
-
if (entry === null) {
|
|
3104
|
-
return null;
|
|
3105
|
-
}
|
|
3106
|
-
return de_Group(entry, context);
|
|
3107
|
-
});
|
|
3108
|
-
return retVal;
|
|
3109
|
-
};
|
|
3110
|
-
const de_Impact = (output, context) => {
|
|
3111
|
-
return {
|
|
3112
|
-
MaxImpact: __limitedParseDouble(output.MaxImpact),
|
|
3113
|
-
TotalActualSpend: __limitedParseDouble(output.TotalActualSpend),
|
|
3114
|
-
TotalExpectedSpend: __limitedParseDouble(output.TotalExpectedSpend),
|
|
3115
|
-
TotalImpact: __limitedParseDouble(output.TotalImpact),
|
|
3116
|
-
TotalImpactPercentage: __limitedParseDouble(output.TotalImpactPercentage),
|
|
3117
|
-
};
|
|
3118
|
-
};
|
|
3119
|
-
const de_InstanceDetails = (output, context) => {
|
|
3120
|
-
return {
|
|
3121
|
-
EC2InstanceDetails: output.EC2InstanceDetails != null ? de_EC2InstanceDetails(output.EC2InstanceDetails, context) : undefined,
|
|
3122
|
-
ESInstanceDetails: output.ESInstanceDetails != null ? de_ESInstanceDetails(output.ESInstanceDetails, context) : undefined,
|
|
3123
|
-
ElastiCacheInstanceDetails: output.ElastiCacheInstanceDetails != null
|
|
3124
|
-
? de_ElastiCacheInstanceDetails(output.ElastiCacheInstanceDetails, context)
|
|
3125
|
-
: undefined,
|
|
3126
|
-
RDSInstanceDetails: output.RDSInstanceDetails != null ? de_RDSInstanceDetails(output.RDSInstanceDetails, context) : undefined,
|
|
3127
|
-
RedshiftInstanceDetails: output.RedshiftInstanceDetails != null
|
|
3128
|
-
? de_RedshiftInstanceDetails(output.RedshiftInstanceDetails, context)
|
|
3129
|
-
: undefined,
|
|
3130
|
-
};
|
|
3131
|
-
};
|
|
3132
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
3133
|
-
return {
|
|
3134
|
-
Message: __expectString(output.Message),
|
|
3135
|
-
};
|
|
3136
|
-
};
|
|
3137
|
-
const de_Keys = (output, context) => {
|
|
3138
|
-
const retVal = (output || [])
|
|
3139
|
-
.filter((e) => e != null)
|
|
3140
|
-
.map((entry) => {
|
|
3141
|
-
if (entry === null) {
|
|
3142
|
-
return null;
|
|
3143
|
-
}
|
|
3144
|
-
return __expectString(entry);
|
|
3145
|
-
});
|
|
3146
|
-
return retVal;
|
|
3147
|
-
};
|
|
3148
|
-
const de_LimitExceededException = (output, context) => {
|
|
3149
|
-
return {
|
|
3150
|
-
Message: __expectString(output.Message),
|
|
3151
|
-
};
|
|
3152
|
-
};
|
|
3153
|
-
const de_ListCostAllocationTagsResponse = (output, context) => {
|
|
3154
|
-
return {
|
|
3155
|
-
CostAllocationTags: output.CostAllocationTags != null ? de_CostAllocationTagList(output.CostAllocationTags, context) : undefined,
|
|
3156
|
-
NextToken: __expectString(output.NextToken),
|
|
3157
|
-
};
|
|
3158
|
-
};
|
|
3159
|
-
const de_ListCostCategoryDefinitionsResponse = (output, context) => {
|
|
3160
|
-
return {
|
|
3161
|
-
CostCategoryReferences: output.CostCategoryReferences != null
|
|
3162
|
-
? de_CostCategoryReferencesList(output.CostCategoryReferences, context)
|
|
3163
|
-
: undefined,
|
|
3164
|
-
NextToken: __expectString(output.NextToken),
|
|
3165
|
-
};
|
|
3166
|
-
};
|
|
3167
|
-
const de_ListSavingsPlansPurchaseRecommendationGenerationResponse = (output, context) => {
|
|
3168
|
-
return {
|
|
3169
|
-
GenerationSummaryList: output.GenerationSummaryList != null
|
|
3170
|
-
? de_GenerationSummaryList(output.GenerationSummaryList, context)
|
|
3171
|
-
: undefined,
|
|
3172
|
-
NextPageToken: __expectString(output.NextPageToken),
|
|
3173
|
-
};
|
|
3174
|
-
};
|
|
3175
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3176
|
-
return {
|
|
3177
|
-
ResourceTags: output.ResourceTags != null ? de_ResourceTagList(output.ResourceTags, context) : undefined,
|
|
3178
|
-
};
|
|
3179
|
-
};
|
|
3180
|
-
const de_MatchOptions = (output, context) => {
|
|
3181
|
-
const retVal = (output || [])
|
|
3182
|
-
.filter((e) => e != null)
|
|
3183
|
-
.map((entry) => {
|
|
3184
|
-
if (entry === null) {
|
|
3185
|
-
return null;
|
|
3186
|
-
}
|
|
3187
|
-
return __expectString(entry);
|
|
3188
|
-
});
|
|
3189
|
-
return retVal;
|
|
3190
|
-
};
|
|
3191
|
-
const de_Metrics = (output, context) => {
|
|
3192
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3193
|
-
if (value === null) {
|
|
3194
|
-
return acc;
|
|
3195
|
-
}
|
|
3196
|
-
acc[key] = de_MetricValue(value, context);
|
|
3197
|
-
return acc;
|
|
3198
|
-
}, {});
|
|
3199
|
-
};
|
|
3200
|
-
const de_MetricValue = (output, context) => {
|
|
3201
|
-
return {
|
|
3202
|
-
Amount: __expectString(output.Amount),
|
|
3203
|
-
Unit: __expectString(output.Unit),
|
|
3204
|
-
};
|
|
3205
|
-
};
|
|
3206
|
-
const de_ModifyRecommendationDetail = (output, context) => {
|
|
3207
|
-
return {
|
|
3208
|
-
TargetInstances: output.TargetInstances != null ? de_TargetInstancesList(output.TargetInstances, context) : undefined,
|
|
3209
|
-
};
|
|
3210
|
-
};
|
|
3211
|
-
const de_MonitorArnList = (output, context) => {
|
|
3212
|
-
const retVal = (output || [])
|
|
3213
|
-
.filter((e) => e != null)
|
|
3214
|
-
.map((entry) => {
|
|
3215
|
-
if (entry === null) {
|
|
3216
|
-
return null;
|
|
3217
|
-
}
|
|
3218
|
-
return __expectString(entry);
|
|
3219
|
-
});
|
|
3220
|
-
return retVal;
|
|
3221
|
-
};
|
|
3222
|
-
const de_NetworkResourceUtilization = (output, context) => {
|
|
3223
|
-
return {
|
|
3224
|
-
NetworkInBytesPerSecond: __expectString(output.NetworkInBytesPerSecond),
|
|
3225
|
-
NetworkOutBytesPerSecond: __expectString(output.NetworkOutBytesPerSecond),
|
|
3226
|
-
NetworkPacketsInPerSecond: __expectString(output.NetworkPacketsInPerSecond),
|
|
3227
|
-
NetworkPacketsOutPerSecond: __expectString(output.NetworkPacketsOutPerSecond),
|
|
3228
|
-
};
|
|
3229
|
-
};
|
|
3230
|
-
const de_PlatformDifferences = (output, context) => {
|
|
3231
|
-
const retVal = (output || [])
|
|
3232
|
-
.filter((e) => e != null)
|
|
3233
|
-
.map((entry) => {
|
|
3234
|
-
if (entry === null) {
|
|
3235
|
-
return null;
|
|
3236
|
-
}
|
|
3237
|
-
return __expectString(entry);
|
|
3238
|
-
});
|
|
3239
|
-
return retVal;
|
|
3240
|
-
};
|
|
3241
|
-
const de_ProvideAnomalyFeedbackResponse = (output, context) => {
|
|
3242
|
-
return {
|
|
3243
|
-
AnomalyId: __expectString(output.AnomalyId),
|
|
3244
|
-
};
|
|
3245
|
-
};
|
|
3246
|
-
const de_RDSInstanceDetails = (output, context) => {
|
|
3247
|
-
return {
|
|
3248
|
-
CurrentGeneration: __expectBoolean(output.CurrentGeneration),
|
|
3249
|
-
DatabaseEdition: __expectString(output.DatabaseEdition),
|
|
3250
|
-
DatabaseEngine: __expectString(output.DatabaseEngine),
|
|
3251
|
-
DeploymentOption: __expectString(output.DeploymentOption),
|
|
3252
|
-
Family: __expectString(output.Family),
|
|
3253
|
-
InstanceType: __expectString(output.InstanceType),
|
|
3254
|
-
LicenseModel: __expectString(output.LicenseModel),
|
|
3255
|
-
Region: __expectString(output.Region),
|
|
3256
|
-
SizeFlexEligible: __expectBoolean(output.SizeFlexEligible),
|
|
3257
|
-
};
|
|
3258
|
-
};
|
|
3259
|
-
const de_RedshiftInstanceDetails = (output, context) => {
|
|
3260
|
-
return {
|
|
3261
|
-
CurrentGeneration: __expectBoolean(output.CurrentGeneration),
|
|
3262
|
-
Family: __expectString(output.Family),
|
|
3263
|
-
NodeType: __expectString(output.NodeType),
|
|
3264
|
-
Region: __expectString(output.Region),
|
|
3265
|
-
SizeFlexEligible: __expectBoolean(output.SizeFlexEligible),
|
|
3266
|
-
};
|
|
3267
|
-
};
|
|
3268
|
-
const de_RequestChangedException = (output, context) => {
|
|
3269
|
-
return {
|
|
3270
|
-
Message: __expectString(output.Message),
|
|
3271
|
-
};
|
|
3272
|
-
};
|
|
3273
|
-
const de_ReservationAggregates = (output, context) => {
|
|
3274
|
-
return {
|
|
3275
|
-
AmortizedRecurringFee: __expectString(output.AmortizedRecurringFee),
|
|
3276
|
-
AmortizedUpfrontFee: __expectString(output.AmortizedUpfrontFee),
|
|
3277
|
-
NetRISavings: __expectString(output.NetRISavings),
|
|
3278
|
-
OnDemandCostOfRIHoursUsed: __expectString(output.OnDemandCostOfRIHoursUsed),
|
|
3279
|
-
PurchasedHours: __expectString(output.PurchasedHours),
|
|
3280
|
-
PurchasedUnits: __expectString(output.PurchasedUnits),
|
|
3281
|
-
RICostForUnusedHours: __expectString(output.RICostForUnusedHours),
|
|
3282
|
-
RealizedSavings: __expectString(output.RealizedSavings),
|
|
3283
|
-
TotalActualHours: __expectString(output.TotalActualHours),
|
|
3284
|
-
TotalActualUnits: __expectString(output.TotalActualUnits),
|
|
3285
|
-
TotalAmortizedFee: __expectString(output.TotalAmortizedFee),
|
|
3286
|
-
TotalPotentialRISavings: __expectString(output.TotalPotentialRISavings),
|
|
3287
|
-
UnrealizedSavings: __expectString(output.UnrealizedSavings),
|
|
3288
|
-
UnusedHours: __expectString(output.UnusedHours),
|
|
3289
|
-
UnusedUnits: __expectString(output.UnusedUnits),
|
|
3290
|
-
UtilizationPercentage: __expectString(output.UtilizationPercentage),
|
|
3291
|
-
UtilizationPercentageInUnits: __expectString(output.UtilizationPercentageInUnits),
|
|
3292
|
-
};
|
|
3293
|
-
};
|
|
3294
|
-
const de_ReservationCoverageGroup = (output, context) => {
|
|
3295
|
-
return {
|
|
3296
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3297
|
-
Coverage: output.Coverage != null ? de_Coverage(output.Coverage, context) : undefined,
|
|
3298
|
-
};
|
|
3299
|
-
};
|
|
3300
|
-
const de_ReservationCoverageGroups = (output, context) => {
|
|
3301
|
-
const retVal = (output || [])
|
|
3302
|
-
.filter((e) => e != null)
|
|
3303
|
-
.map((entry) => {
|
|
3304
|
-
if (entry === null) {
|
|
3305
|
-
return null;
|
|
3306
|
-
}
|
|
3307
|
-
return de_ReservationCoverageGroup(entry, context);
|
|
3308
|
-
});
|
|
3309
|
-
return retVal;
|
|
3310
|
-
};
|
|
3311
|
-
const de_ReservationPurchaseRecommendation = (output, context) => {
|
|
3312
|
-
return {
|
|
3313
|
-
AccountScope: __expectString(output.AccountScope),
|
|
3314
|
-
LookbackPeriodInDays: __expectString(output.LookbackPeriodInDays),
|
|
3315
|
-
PaymentOption: __expectString(output.PaymentOption),
|
|
3316
|
-
RecommendationDetails: output.RecommendationDetails != null
|
|
3317
|
-
? de_ReservationPurchaseRecommendationDetails(output.RecommendationDetails, context)
|
|
3318
|
-
: undefined,
|
|
3319
|
-
RecommendationSummary: output.RecommendationSummary != null
|
|
3320
|
-
? de_ReservationPurchaseRecommendationSummary(output.RecommendationSummary, context)
|
|
3321
|
-
: undefined,
|
|
3322
|
-
ServiceSpecification: output.ServiceSpecification != null ? de_ServiceSpecification(output.ServiceSpecification, context) : undefined,
|
|
3323
|
-
TermInYears: __expectString(output.TermInYears),
|
|
3324
|
-
};
|
|
3325
|
-
};
|
|
3326
|
-
const de_ReservationPurchaseRecommendationDetail = (output, context) => {
|
|
3327
|
-
return {
|
|
3328
|
-
AccountId: __expectString(output.AccountId),
|
|
3329
|
-
AverageNormalizedUnitsUsedPerHour: __expectString(output.AverageNormalizedUnitsUsedPerHour),
|
|
3330
|
-
AverageNumberOfInstancesUsedPerHour: __expectString(output.AverageNumberOfInstancesUsedPerHour),
|
|
3331
|
-
AverageUtilization: __expectString(output.AverageUtilization),
|
|
3332
|
-
CurrencyCode: __expectString(output.CurrencyCode),
|
|
3333
|
-
EstimatedBreakEvenInMonths: __expectString(output.EstimatedBreakEvenInMonths),
|
|
3334
|
-
EstimatedMonthlyOnDemandCost: __expectString(output.EstimatedMonthlyOnDemandCost),
|
|
3335
|
-
EstimatedMonthlySavingsAmount: __expectString(output.EstimatedMonthlySavingsAmount),
|
|
3336
|
-
EstimatedMonthlySavingsPercentage: __expectString(output.EstimatedMonthlySavingsPercentage),
|
|
3337
|
-
EstimatedReservationCostForLookbackPeriod: __expectString(output.EstimatedReservationCostForLookbackPeriod),
|
|
3338
|
-
InstanceDetails: output.InstanceDetails != null ? de_InstanceDetails(output.InstanceDetails, context) : undefined,
|
|
3339
|
-
MaximumNormalizedUnitsUsedPerHour: __expectString(output.MaximumNormalizedUnitsUsedPerHour),
|
|
3340
|
-
MaximumNumberOfInstancesUsedPerHour: __expectString(output.MaximumNumberOfInstancesUsedPerHour),
|
|
3341
|
-
MinimumNormalizedUnitsUsedPerHour: __expectString(output.MinimumNormalizedUnitsUsedPerHour),
|
|
3342
|
-
MinimumNumberOfInstancesUsedPerHour: __expectString(output.MinimumNumberOfInstancesUsedPerHour),
|
|
3343
|
-
RecommendedNormalizedUnitsToPurchase: __expectString(output.RecommendedNormalizedUnitsToPurchase),
|
|
3344
|
-
RecommendedNumberOfInstancesToPurchase: __expectString(output.RecommendedNumberOfInstancesToPurchase),
|
|
3345
|
-
RecurringStandardMonthlyCost: __expectString(output.RecurringStandardMonthlyCost),
|
|
3346
|
-
UpfrontCost: __expectString(output.UpfrontCost),
|
|
3347
|
-
};
|
|
3348
|
-
};
|
|
3349
|
-
const de_ReservationPurchaseRecommendationDetails = (output, context) => {
|
|
3350
|
-
const retVal = (output || [])
|
|
3351
|
-
.filter((e) => e != null)
|
|
3352
|
-
.map((entry) => {
|
|
3353
|
-
if (entry === null) {
|
|
3354
|
-
return null;
|
|
3355
|
-
}
|
|
3356
|
-
return de_ReservationPurchaseRecommendationDetail(entry, context);
|
|
3357
|
-
});
|
|
3358
|
-
return retVal;
|
|
3359
|
-
};
|
|
3360
|
-
const de_ReservationPurchaseRecommendationMetadata = (output, context) => {
|
|
3361
|
-
return {
|
|
3362
|
-
GenerationTimestamp: __expectString(output.GenerationTimestamp),
|
|
3363
|
-
RecommendationId: __expectString(output.RecommendationId),
|
|
3364
|
-
};
|
|
3365
|
-
};
|
|
3366
|
-
const de_ReservationPurchaseRecommendations = (output, context) => {
|
|
3367
|
-
const retVal = (output || [])
|
|
3368
|
-
.filter((e) => e != null)
|
|
3369
|
-
.map((entry) => {
|
|
3370
|
-
if (entry === null) {
|
|
3371
|
-
return null;
|
|
3372
|
-
}
|
|
3373
|
-
return de_ReservationPurchaseRecommendation(entry, context);
|
|
3374
|
-
});
|
|
3375
|
-
return retVal;
|
|
3376
|
-
};
|
|
3377
|
-
const de_ReservationPurchaseRecommendationSummary = (output, context) => {
|
|
3378
|
-
return {
|
|
3379
|
-
CurrencyCode: __expectString(output.CurrencyCode),
|
|
3380
|
-
TotalEstimatedMonthlySavingsAmount: __expectString(output.TotalEstimatedMonthlySavingsAmount),
|
|
3381
|
-
TotalEstimatedMonthlySavingsPercentage: __expectString(output.TotalEstimatedMonthlySavingsPercentage),
|
|
3382
|
-
};
|
|
3383
|
-
};
|
|
3384
|
-
const de_ReservationUtilizationGroup = (output, context) => {
|
|
3385
|
-
return {
|
|
3386
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3387
|
-
Key: __expectString(output.Key),
|
|
3388
|
-
Utilization: output.Utilization != null ? de_ReservationAggregates(output.Utilization, context) : undefined,
|
|
3389
|
-
Value: __expectString(output.Value),
|
|
3390
|
-
};
|
|
3391
|
-
};
|
|
3392
|
-
const de_ReservationUtilizationGroups = (output, context) => {
|
|
3393
|
-
const retVal = (output || [])
|
|
3394
|
-
.filter((e) => e != null)
|
|
3395
|
-
.map((entry) => {
|
|
3396
|
-
if (entry === null) {
|
|
3397
|
-
return null;
|
|
3398
|
-
}
|
|
3399
|
-
return de_ReservationUtilizationGroup(entry, context);
|
|
3400
|
-
});
|
|
3401
|
-
return retVal;
|
|
3402
|
-
};
|
|
3403
|
-
const de_ResourceDetails = (output, context) => {
|
|
3404
|
-
return {
|
|
3405
|
-
EC2ResourceDetails: output.EC2ResourceDetails != null ? de_EC2ResourceDetails(output.EC2ResourceDetails, context) : undefined,
|
|
3406
|
-
};
|
|
3407
|
-
};
|
|
3408
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
3409
|
-
return {
|
|
3410
|
-
Message: __expectString(output.Message),
|
|
3411
|
-
ResourceName: __expectString(output.ResourceName),
|
|
3412
|
-
};
|
|
3413
|
-
};
|
|
3414
|
-
const de_ResourceTag = (output, context) => {
|
|
3415
|
-
return {
|
|
3416
|
-
Key: __expectString(output.Key),
|
|
3417
|
-
Value: __expectString(output.Value),
|
|
3418
|
-
};
|
|
3419
|
-
};
|
|
3420
|
-
const de_ResourceTagList = (output, context) => {
|
|
3421
|
-
const retVal = (output || [])
|
|
3422
|
-
.filter((e) => e != null)
|
|
3423
|
-
.map((entry) => {
|
|
3424
|
-
if (entry === null) {
|
|
3425
|
-
return null;
|
|
3426
|
-
}
|
|
3427
|
-
return de_ResourceTag(entry, context);
|
|
3428
|
-
});
|
|
3429
|
-
return retVal;
|
|
3430
|
-
};
|
|
3431
|
-
const de_ResourceUtilization = (output, context) => {
|
|
3432
|
-
return {
|
|
3433
|
-
EC2ResourceUtilization: output.EC2ResourceUtilization != null
|
|
3434
|
-
? de_EC2ResourceUtilization(output.EC2ResourceUtilization, context)
|
|
3435
|
-
: undefined,
|
|
3436
|
-
};
|
|
3437
|
-
};
|
|
3438
|
-
const de_ResultByTime = (output, context) => {
|
|
3439
|
-
return {
|
|
3440
|
-
Estimated: __expectBoolean(output.Estimated),
|
|
3441
|
-
Groups: output.Groups != null ? de_Groups(output.Groups, context) : undefined,
|
|
3442
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3443
|
-
Total: output.Total != null ? de_Metrics(output.Total, context) : undefined,
|
|
3444
|
-
};
|
|
3445
|
-
};
|
|
3446
|
-
const de_ResultsByTime = (output, context) => {
|
|
3447
|
-
const retVal = (output || [])
|
|
3448
|
-
.filter((e) => e != null)
|
|
3449
|
-
.map((entry) => {
|
|
3450
|
-
if (entry === null) {
|
|
3451
|
-
return null;
|
|
3452
|
-
}
|
|
3453
|
-
return de_ResultByTime(entry, context);
|
|
3454
|
-
});
|
|
3455
|
-
return retVal;
|
|
3456
|
-
};
|
|
3457
|
-
const de_RightsizingRecommendation = (output, context) => {
|
|
3458
|
-
return {
|
|
3459
|
-
AccountId: __expectString(output.AccountId),
|
|
3460
|
-
CurrentInstance: output.CurrentInstance != null ? de_CurrentInstance(output.CurrentInstance, context) : undefined,
|
|
3461
|
-
FindingReasonCodes: output.FindingReasonCodes != null ? de_FindingReasonCodes(output.FindingReasonCodes, context) : undefined,
|
|
3462
|
-
ModifyRecommendationDetail: output.ModifyRecommendationDetail != null
|
|
3463
|
-
? de_ModifyRecommendationDetail(output.ModifyRecommendationDetail, context)
|
|
3464
|
-
: undefined,
|
|
3465
|
-
RightsizingType: __expectString(output.RightsizingType),
|
|
3466
|
-
TerminateRecommendationDetail: output.TerminateRecommendationDetail != null
|
|
3467
|
-
? de_TerminateRecommendationDetail(output.TerminateRecommendationDetail, context)
|
|
3468
|
-
: undefined,
|
|
3469
|
-
};
|
|
3470
|
-
};
|
|
3471
|
-
const de_RightsizingRecommendationConfiguration = (output, context) => {
|
|
3472
|
-
return {
|
|
3473
|
-
BenefitsConsidered: __expectBoolean(output.BenefitsConsidered),
|
|
3474
|
-
RecommendationTarget: __expectString(output.RecommendationTarget),
|
|
3475
|
-
};
|
|
3476
|
-
};
|
|
3477
|
-
const de_RightsizingRecommendationList = (output, context) => {
|
|
3478
|
-
const retVal = (output || [])
|
|
3479
|
-
.filter((e) => e != null)
|
|
3480
|
-
.map((entry) => {
|
|
3481
|
-
if (entry === null) {
|
|
3482
|
-
return null;
|
|
3483
|
-
}
|
|
3484
|
-
return de_RightsizingRecommendation(entry, context);
|
|
3485
|
-
});
|
|
3486
|
-
return retVal;
|
|
3487
|
-
};
|
|
3488
|
-
const de_RightsizingRecommendationMetadata = (output, context) => {
|
|
3489
|
-
return {
|
|
3490
|
-
AdditionalMetadata: __expectString(output.AdditionalMetadata),
|
|
3491
|
-
GenerationTimestamp: __expectString(output.GenerationTimestamp),
|
|
3492
|
-
LookbackPeriodInDays: __expectString(output.LookbackPeriodInDays),
|
|
3493
|
-
RecommendationId: __expectString(output.RecommendationId),
|
|
3494
|
-
};
|
|
3495
|
-
};
|
|
3496
|
-
const de_RightsizingRecommendationSummary = (output, context) => {
|
|
3497
|
-
return {
|
|
3498
|
-
EstimatedTotalMonthlySavingsAmount: __expectString(output.EstimatedTotalMonthlySavingsAmount),
|
|
3499
|
-
SavingsCurrencyCode: __expectString(output.SavingsCurrencyCode),
|
|
3500
|
-
SavingsPercentage: __expectString(output.SavingsPercentage),
|
|
3501
|
-
TotalRecommendationCount: __expectString(output.TotalRecommendationCount),
|
|
3502
|
-
};
|
|
3503
|
-
};
|
|
3504
|
-
const de_RootCause = (output, context) => {
|
|
3505
|
-
return {
|
|
3506
|
-
LinkedAccount: __expectString(output.LinkedAccount),
|
|
3507
|
-
LinkedAccountName: __expectString(output.LinkedAccountName),
|
|
3508
|
-
Region: __expectString(output.Region),
|
|
3509
|
-
Service: __expectString(output.Service),
|
|
3510
|
-
UsageType: __expectString(output.UsageType),
|
|
3511
|
-
};
|
|
3512
|
-
};
|
|
3513
|
-
const de_RootCauses = (output, context) => {
|
|
3514
|
-
const retVal = (output || [])
|
|
3515
|
-
.filter((e) => e != null)
|
|
3516
|
-
.map((entry) => {
|
|
3517
|
-
if (entry === null) {
|
|
3518
|
-
return null;
|
|
3519
|
-
}
|
|
3520
|
-
return de_RootCause(entry, context);
|
|
3521
|
-
});
|
|
3522
|
-
return retVal;
|
|
3523
|
-
};
|
|
3524
|
-
const de_SavingsPlansAmortizedCommitment = (output, context) => {
|
|
3525
|
-
return {
|
|
3526
|
-
AmortizedRecurringCommitment: __expectString(output.AmortizedRecurringCommitment),
|
|
3527
|
-
AmortizedUpfrontCommitment: __expectString(output.AmortizedUpfrontCommitment),
|
|
3528
|
-
TotalAmortizedCommitment: __expectString(output.TotalAmortizedCommitment),
|
|
3529
|
-
};
|
|
3530
|
-
};
|
|
3531
|
-
const de_SavingsPlansCoverage = (output, context) => {
|
|
3532
|
-
return {
|
|
3533
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3534
|
-
Coverage: output.Coverage != null ? de_SavingsPlansCoverageData(output.Coverage, context) : undefined,
|
|
3535
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3536
|
-
};
|
|
3537
|
-
};
|
|
3538
|
-
const de_SavingsPlansCoverageData = (output, context) => {
|
|
3539
|
-
return {
|
|
3540
|
-
CoveragePercentage: __expectString(output.CoveragePercentage),
|
|
3541
|
-
OnDemandCost: __expectString(output.OnDemandCost),
|
|
3542
|
-
SpendCoveredBySavingsPlans: __expectString(output.SpendCoveredBySavingsPlans),
|
|
3543
|
-
TotalCost: __expectString(output.TotalCost),
|
|
3544
|
-
};
|
|
3545
|
-
};
|
|
3546
|
-
const de_SavingsPlansCoverages = (output, context) => {
|
|
3547
|
-
const retVal = (output || [])
|
|
3548
|
-
.filter((e) => e != null)
|
|
3549
|
-
.map((entry) => {
|
|
3550
|
-
if (entry === null) {
|
|
3551
|
-
return null;
|
|
3552
|
-
}
|
|
3553
|
-
return de_SavingsPlansCoverage(entry, context);
|
|
3554
|
-
});
|
|
3555
|
-
return retVal;
|
|
3556
|
-
};
|
|
3557
|
-
const de_SavingsPlansDetails = (output, context) => {
|
|
3558
|
-
return {
|
|
3559
|
-
InstanceFamily: __expectString(output.InstanceFamily),
|
|
3560
|
-
OfferingId: __expectString(output.OfferingId),
|
|
3561
|
-
Region: __expectString(output.Region),
|
|
3562
|
-
};
|
|
3563
|
-
};
|
|
3564
|
-
const de_SavingsPlansPurchaseRecommendation = (output, context) => {
|
|
3565
|
-
return {
|
|
3566
|
-
AccountScope: __expectString(output.AccountScope),
|
|
3567
|
-
LookbackPeriodInDays: __expectString(output.LookbackPeriodInDays),
|
|
3568
|
-
PaymentOption: __expectString(output.PaymentOption),
|
|
3569
|
-
SavingsPlansPurchaseRecommendationDetails: output.SavingsPlansPurchaseRecommendationDetails != null
|
|
3570
|
-
? de_SavingsPlansPurchaseRecommendationDetailList(output.SavingsPlansPurchaseRecommendationDetails, context)
|
|
3571
|
-
: undefined,
|
|
3572
|
-
SavingsPlansPurchaseRecommendationSummary: output.SavingsPlansPurchaseRecommendationSummary != null
|
|
3573
|
-
? de_SavingsPlansPurchaseRecommendationSummary(output.SavingsPlansPurchaseRecommendationSummary, context)
|
|
3574
|
-
: undefined,
|
|
3575
|
-
SavingsPlansType: __expectString(output.SavingsPlansType),
|
|
3576
|
-
TermInYears: __expectString(output.TermInYears),
|
|
3577
|
-
};
|
|
3578
|
-
};
|
|
3579
|
-
const de_SavingsPlansPurchaseRecommendationDetail = (output, context) => {
|
|
3580
|
-
return {
|
|
3581
|
-
AccountId: __expectString(output.AccountId),
|
|
3582
|
-
CurrencyCode: __expectString(output.CurrencyCode),
|
|
3583
|
-
CurrentAverageHourlyOnDemandSpend: __expectString(output.CurrentAverageHourlyOnDemandSpend),
|
|
3584
|
-
CurrentMaximumHourlyOnDemandSpend: __expectString(output.CurrentMaximumHourlyOnDemandSpend),
|
|
3585
|
-
CurrentMinimumHourlyOnDemandSpend: __expectString(output.CurrentMinimumHourlyOnDemandSpend),
|
|
3586
|
-
EstimatedAverageUtilization: __expectString(output.EstimatedAverageUtilization),
|
|
3587
|
-
EstimatedMonthlySavingsAmount: __expectString(output.EstimatedMonthlySavingsAmount),
|
|
3588
|
-
EstimatedOnDemandCost: __expectString(output.EstimatedOnDemandCost),
|
|
3589
|
-
EstimatedOnDemandCostWithCurrentCommitment: __expectString(output.EstimatedOnDemandCostWithCurrentCommitment),
|
|
3590
|
-
EstimatedROI: __expectString(output.EstimatedROI),
|
|
3591
|
-
EstimatedSPCost: __expectString(output.EstimatedSPCost),
|
|
3592
|
-
EstimatedSavingsAmount: __expectString(output.EstimatedSavingsAmount),
|
|
3593
|
-
EstimatedSavingsPercentage: __expectString(output.EstimatedSavingsPercentage),
|
|
3594
|
-
HourlyCommitmentToPurchase: __expectString(output.HourlyCommitmentToPurchase),
|
|
3595
|
-
SavingsPlansDetails: output.SavingsPlansDetails != null ? de_SavingsPlansDetails(output.SavingsPlansDetails, context) : undefined,
|
|
3596
|
-
UpfrontCost: __expectString(output.UpfrontCost),
|
|
3597
|
-
};
|
|
3598
|
-
};
|
|
3599
|
-
const de_SavingsPlansPurchaseRecommendationDetailList = (output, context) => {
|
|
3600
|
-
const retVal = (output || [])
|
|
3601
|
-
.filter((e) => e != null)
|
|
3602
|
-
.map((entry) => {
|
|
3603
|
-
if (entry === null) {
|
|
3604
|
-
return null;
|
|
3605
|
-
}
|
|
3606
|
-
return de_SavingsPlansPurchaseRecommendationDetail(entry, context);
|
|
3607
|
-
});
|
|
3608
|
-
return retVal;
|
|
3609
|
-
};
|
|
3610
|
-
const de_SavingsPlansPurchaseRecommendationMetadata = (output, context) => {
|
|
3611
|
-
return {
|
|
3612
|
-
AdditionalMetadata: __expectString(output.AdditionalMetadata),
|
|
3613
|
-
GenerationTimestamp: __expectString(output.GenerationTimestamp),
|
|
3614
|
-
RecommendationId: __expectString(output.RecommendationId),
|
|
3615
|
-
};
|
|
3616
|
-
};
|
|
3617
|
-
const de_SavingsPlansPurchaseRecommendationSummary = (output, context) => {
|
|
3618
|
-
return {
|
|
3619
|
-
CurrencyCode: __expectString(output.CurrencyCode),
|
|
3620
|
-
CurrentOnDemandSpend: __expectString(output.CurrentOnDemandSpend),
|
|
3621
|
-
DailyCommitmentToPurchase: __expectString(output.DailyCommitmentToPurchase),
|
|
3622
|
-
EstimatedMonthlySavingsAmount: __expectString(output.EstimatedMonthlySavingsAmount),
|
|
3623
|
-
EstimatedOnDemandCostWithCurrentCommitment: __expectString(output.EstimatedOnDemandCostWithCurrentCommitment),
|
|
3624
|
-
EstimatedROI: __expectString(output.EstimatedROI),
|
|
3625
|
-
EstimatedSavingsAmount: __expectString(output.EstimatedSavingsAmount),
|
|
3626
|
-
EstimatedSavingsPercentage: __expectString(output.EstimatedSavingsPercentage),
|
|
3627
|
-
EstimatedTotalCost: __expectString(output.EstimatedTotalCost),
|
|
3628
|
-
HourlyCommitmentToPurchase: __expectString(output.HourlyCommitmentToPurchase),
|
|
3629
|
-
TotalRecommendationCount: __expectString(output.TotalRecommendationCount),
|
|
3630
|
-
};
|
|
3631
|
-
};
|
|
3632
|
-
const de_SavingsPlansSavings = (output, context) => {
|
|
3633
|
-
return {
|
|
3634
|
-
NetSavings: __expectString(output.NetSavings),
|
|
3635
|
-
OnDemandCostEquivalent: __expectString(output.OnDemandCostEquivalent),
|
|
3636
|
-
};
|
|
3637
|
-
};
|
|
3638
|
-
const de_SavingsPlansUtilization = (output, context) => {
|
|
3639
|
-
return {
|
|
3640
|
-
TotalCommitment: __expectString(output.TotalCommitment),
|
|
3641
|
-
UnusedCommitment: __expectString(output.UnusedCommitment),
|
|
3642
|
-
UsedCommitment: __expectString(output.UsedCommitment),
|
|
3643
|
-
UtilizationPercentage: __expectString(output.UtilizationPercentage),
|
|
3644
|
-
};
|
|
3645
|
-
};
|
|
3646
|
-
const de_SavingsPlansUtilizationAggregates = (output, context) => {
|
|
3647
|
-
return {
|
|
3648
|
-
AmortizedCommitment: output.AmortizedCommitment != null
|
|
3649
|
-
? de_SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
3650
|
-
: undefined,
|
|
3651
|
-
Savings: output.Savings != null ? de_SavingsPlansSavings(output.Savings, context) : undefined,
|
|
3652
|
-
Utilization: output.Utilization != null ? de_SavingsPlansUtilization(output.Utilization, context) : undefined,
|
|
3653
|
-
};
|
|
3654
|
-
};
|
|
3655
|
-
const de_SavingsPlansUtilizationByTime = (output, context) => {
|
|
3656
|
-
return {
|
|
3657
|
-
AmortizedCommitment: output.AmortizedCommitment != null
|
|
3658
|
-
? de_SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
3659
|
-
: undefined,
|
|
3660
|
-
Savings: output.Savings != null ? de_SavingsPlansSavings(output.Savings, context) : undefined,
|
|
3661
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3662
|
-
Utilization: output.Utilization != null ? de_SavingsPlansUtilization(output.Utilization, context) : undefined,
|
|
3663
|
-
};
|
|
3664
|
-
};
|
|
3665
|
-
const de_SavingsPlansUtilizationDetail = (output, context) => {
|
|
3666
|
-
return {
|
|
3667
|
-
AmortizedCommitment: output.AmortizedCommitment != null
|
|
3668
|
-
? de_SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
3669
|
-
: undefined,
|
|
3670
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3671
|
-
Savings: output.Savings != null ? de_SavingsPlansSavings(output.Savings, context) : undefined,
|
|
3672
|
-
SavingsPlanArn: __expectString(output.SavingsPlanArn),
|
|
3673
|
-
Utilization: output.Utilization != null ? de_SavingsPlansUtilization(output.Utilization, context) : undefined,
|
|
3674
|
-
};
|
|
3675
|
-
};
|
|
3676
|
-
const de_SavingsPlansUtilizationDetails = (output, context) => {
|
|
3677
|
-
const retVal = (output || [])
|
|
3678
|
-
.filter((e) => e != null)
|
|
3679
|
-
.map((entry) => {
|
|
3680
|
-
if (entry === null) {
|
|
3681
|
-
return null;
|
|
3682
|
-
}
|
|
3683
|
-
return de_SavingsPlansUtilizationDetail(entry, context);
|
|
3684
|
-
});
|
|
3685
|
-
return retVal;
|
|
3686
|
-
};
|
|
3687
|
-
const de_SavingsPlansUtilizationsByTime = (output, context) => {
|
|
3688
|
-
const retVal = (output || [])
|
|
3689
|
-
.filter((e) => e != null)
|
|
3690
|
-
.map((entry) => {
|
|
3691
|
-
if (entry === null) {
|
|
3692
|
-
return null;
|
|
3693
|
-
}
|
|
3694
|
-
return de_SavingsPlansUtilizationByTime(entry, context);
|
|
3695
|
-
});
|
|
3696
|
-
return retVal;
|
|
3697
|
-
};
|
|
3698
|
-
const de_ServiceQuotaExceededException = (output, context) => {
|
|
3699
|
-
return {
|
|
3700
|
-
Message: __expectString(output.Message),
|
|
3701
|
-
};
|
|
3702
|
-
};
|
|
3703
|
-
const de_ServiceSpecification = (output, context) => {
|
|
3704
|
-
return {
|
|
3705
|
-
EC2Specification: output.EC2Specification != null ? de_EC2Specification(output.EC2Specification, context) : undefined,
|
|
3706
|
-
};
|
|
3707
|
-
};
|
|
3708
|
-
const de_StartSavingsPlansPurchaseRecommendationGenerationResponse = (output, context) => {
|
|
3709
|
-
return {
|
|
3710
|
-
EstimatedCompletionTime: __expectString(output.EstimatedCompletionTime),
|
|
3711
|
-
GenerationStartedTime: __expectString(output.GenerationStartedTime),
|
|
3712
|
-
RecommendationId: __expectString(output.RecommendationId),
|
|
3713
|
-
};
|
|
3714
|
-
};
|
|
3715
|
-
const de_Subscriber = (output, context) => {
|
|
3716
|
-
return {
|
|
3717
|
-
Address: __expectString(output.Address),
|
|
3718
|
-
Status: __expectString(output.Status),
|
|
3719
|
-
Type: __expectString(output.Type),
|
|
3720
|
-
};
|
|
3721
|
-
};
|
|
3722
|
-
const de_Subscribers = (output, context) => {
|
|
3723
|
-
const retVal = (output || [])
|
|
3724
|
-
.filter((e) => e != null)
|
|
3725
|
-
.map((entry) => {
|
|
3726
|
-
if (entry === null) {
|
|
3727
|
-
return null;
|
|
3728
|
-
}
|
|
3729
|
-
return de_Subscriber(entry, context);
|
|
3730
|
-
});
|
|
3731
|
-
return retVal;
|
|
3732
|
-
};
|
|
3733
|
-
const de_TagList = (output, context) => {
|
|
3734
|
-
const retVal = (output || [])
|
|
3735
|
-
.filter((e) => e != null)
|
|
3736
|
-
.map((entry) => {
|
|
3737
|
-
if (entry === null) {
|
|
3738
|
-
return null;
|
|
3739
|
-
}
|
|
3740
|
-
return __expectString(entry);
|
|
3741
|
-
});
|
|
3742
|
-
return retVal;
|
|
3743
|
-
};
|
|
3744
|
-
const de_TagResourceResponse = (output, context) => {
|
|
3745
|
-
return {};
|
|
3746
|
-
};
|
|
3747
|
-
const de_TagValues = (output, context) => {
|
|
3748
|
-
return {
|
|
3749
|
-
Key: __expectString(output.Key),
|
|
3750
|
-
MatchOptions: output.MatchOptions != null ? de_MatchOptions(output.MatchOptions, context) : undefined,
|
|
3751
|
-
Values: output.Values != null ? de_Values(output.Values, context) : undefined,
|
|
3752
|
-
};
|
|
3753
|
-
};
|
|
3754
|
-
const de_TagValuesList = (output, context) => {
|
|
3755
|
-
const retVal = (output || [])
|
|
3756
|
-
.filter((e) => e != null)
|
|
3757
|
-
.map((entry) => {
|
|
3758
|
-
if (entry === null) {
|
|
3759
|
-
return null;
|
|
3760
|
-
}
|
|
3761
|
-
return de_TagValues(entry, context);
|
|
3762
|
-
});
|
|
3763
|
-
return retVal;
|
|
3764
|
-
};
|
|
3765
|
-
const de_TargetInstance = (output, context) => {
|
|
3766
|
-
return {
|
|
3767
|
-
CurrencyCode: __expectString(output.CurrencyCode),
|
|
3768
|
-
DefaultTargetInstance: __expectBoolean(output.DefaultTargetInstance),
|
|
3769
|
-
EstimatedMonthlyCost: __expectString(output.EstimatedMonthlyCost),
|
|
3770
|
-
EstimatedMonthlySavings: __expectString(output.EstimatedMonthlySavings),
|
|
3771
|
-
ExpectedResourceUtilization: output.ExpectedResourceUtilization != null
|
|
3772
|
-
? de_ResourceUtilization(output.ExpectedResourceUtilization, context)
|
|
3773
|
-
: undefined,
|
|
3774
|
-
PlatformDifferences: output.PlatformDifferences != null ? de_PlatformDifferences(output.PlatformDifferences, context) : undefined,
|
|
3775
|
-
ResourceDetails: output.ResourceDetails != null ? de_ResourceDetails(output.ResourceDetails, context) : undefined,
|
|
3776
|
-
};
|
|
3777
|
-
};
|
|
3778
|
-
const de_TargetInstancesList = (output, context) => {
|
|
3779
|
-
const retVal = (output || [])
|
|
3780
|
-
.filter((e) => e != null)
|
|
3781
|
-
.map((entry) => {
|
|
3782
|
-
if (entry === null) {
|
|
3783
|
-
return null;
|
|
3784
|
-
}
|
|
3785
|
-
return de_TargetInstance(entry, context);
|
|
2097
|
+
const de_GetAnomaliesResponse = (output, context) => {
|
|
2098
|
+
return take(output, {
|
|
2099
|
+
Anomalies: (_) => de_Anomalies(_, context),
|
|
2100
|
+
NextPageToken: __expectString,
|
|
3786
2101
|
});
|
|
3787
|
-
return retVal;
|
|
3788
|
-
};
|
|
3789
|
-
const de_TerminateRecommendationDetail = (output, context) => {
|
|
3790
|
-
return {
|
|
3791
|
-
CurrencyCode: __expectString(output.CurrencyCode),
|
|
3792
|
-
EstimatedMonthlySavings: __expectString(output.EstimatedMonthlySavings),
|
|
3793
|
-
};
|
|
3794
|
-
};
|
|
3795
|
-
const de_TooManyTagsException = (output, context) => {
|
|
3796
|
-
return {
|
|
3797
|
-
Message: __expectString(output.Message),
|
|
3798
|
-
ResourceName: __expectString(output.ResourceName),
|
|
3799
|
-
};
|
|
3800
|
-
};
|
|
3801
|
-
const de_UnknownMonitorException = (output, context) => {
|
|
3802
|
-
return {
|
|
3803
|
-
Message: __expectString(output.Message),
|
|
3804
|
-
};
|
|
3805
|
-
};
|
|
3806
|
-
const de_UnknownSubscriptionException = (output, context) => {
|
|
3807
|
-
return {
|
|
3808
|
-
Message: __expectString(output.Message),
|
|
3809
|
-
};
|
|
3810
|
-
};
|
|
3811
|
-
const de_UnresolvableUsageUnitException = (output, context) => {
|
|
3812
|
-
return {
|
|
3813
|
-
Message: __expectString(output.Message),
|
|
3814
|
-
};
|
|
3815
|
-
};
|
|
3816
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
3817
|
-
return {};
|
|
3818
|
-
};
|
|
3819
|
-
const de_UpdateAnomalyMonitorResponse = (output, context) => {
|
|
3820
|
-
return {
|
|
3821
|
-
MonitorArn: __expectString(output.MonitorArn),
|
|
3822
|
-
};
|
|
3823
|
-
};
|
|
3824
|
-
const de_UpdateAnomalySubscriptionResponse = (output, context) => {
|
|
3825
|
-
return {
|
|
3826
|
-
SubscriptionArn: __expectString(output.SubscriptionArn),
|
|
3827
|
-
};
|
|
3828
|
-
};
|
|
3829
|
-
const de_UpdateCostAllocationTagsStatusError = (output, context) => {
|
|
3830
|
-
return {
|
|
3831
|
-
Code: __expectString(output.Code),
|
|
3832
|
-
Message: __expectString(output.Message),
|
|
3833
|
-
TagKey: __expectString(output.TagKey),
|
|
3834
|
-
};
|
|
3835
2102
|
};
|
|
3836
|
-
const
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
if (entry === null) {
|
|
3841
|
-
return null;
|
|
3842
|
-
}
|
|
3843
|
-
return de_UpdateCostAllocationTagsStatusError(entry, context);
|
|
2103
|
+
const de_GetAnomalyMonitorsResponse = (output, context) => {
|
|
2104
|
+
return take(output, {
|
|
2105
|
+
AnomalyMonitors: (_) => de_AnomalyMonitors(_, context),
|
|
2106
|
+
NextPageToken: __expectString,
|
|
3844
2107
|
});
|
|
3845
|
-
return retVal;
|
|
3846
|
-
};
|
|
3847
|
-
const de_UpdateCostAllocationTagsStatusResponse = (output, context) => {
|
|
3848
|
-
return {
|
|
3849
|
-
Errors: output.Errors != null ? de_UpdateCostAllocationTagsStatusErrors(output.Errors, context) : undefined,
|
|
3850
|
-
};
|
|
3851
|
-
};
|
|
3852
|
-
const de_UpdateCostCategoryDefinitionResponse = (output, context) => {
|
|
3853
|
-
return {
|
|
3854
|
-
CostCategoryArn: __expectString(output.CostCategoryArn),
|
|
3855
|
-
EffectiveStart: __expectString(output.EffectiveStart),
|
|
3856
|
-
};
|
|
3857
|
-
};
|
|
3858
|
-
const de_UtilizationByTime = (output, context) => {
|
|
3859
|
-
return {
|
|
3860
|
-
Groups: output.Groups != null ? de_ReservationUtilizationGroups(output.Groups, context) : undefined,
|
|
3861
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3862
|
-
Total: output.Total != null ? de_ReservationAggregates(output.Total, context) : undefined,
|
|
3863
|
-
};
|
|
3864
2108
|
};
|
|
3865
|
-
const
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
if (entry === null) {
|
|
3870
|
-
return null;
|
|
3871
|
-
}
|
|
3872
|
-
return de_UtilizationByTime(entry, context);
|
|
2109
|
+
const de_GetAnomalySubscriptionsResponse = (output, context) => {
|
|
2110
|
+
return take(output, {
|
|
2111
|
+
AnomalySubscriptions: (_) => de_AnomalySubscriptions(_, context),
|
|
2112
|
+
NextPageToken: __expectString,
|
|
3873
2113
|
});
|
|
3874
|
-
return retVal;
|
|
3875
2114
|
};
|
|
3876
|
-
const
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
return __expectString(entry);
|
|
2115
|
+
const de_Impact = (output, context) => {
|
|
2116
|
+
return take(output, {
|
|
2117
|
+
MaxImpact: __limitedParseDouble,
|
|
2118
|
+
TotalActualSpend: __limitedParseDouble,
|
|
2119
|
+
TotalExpectedSpend: __limitedParseDouble,
|
|
2120
|
+
TotalImpact: __limitedParseDouble,
|
|
2121
|
+
TotalImpactPercentage: __limitedParseDouble,
|
|
3884
2122
|
});
|
|
3885
|
-
return retVal;
|
|
3886
2123
|
};
|
|
3887
2124
|
const deserializeMetadata = (output) => ({
|
|
3888
2125
|
httpStatusCode: output.statusCode,
|
|
@@ -3897,6 +2134,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3897
2134
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3898
2135
|
};
|
|
3899
2136
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2137
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3900
2138
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3901
2139
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3902
2140
|
const contents = {
|