@aws-sdk/client-cost-and-usage-report-service 3.504.0 → 3.507.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/index.js +18 -156
- package/dist-es/protocols/Aws_json1_1.js +17 -155
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -361,7 +361,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
361
361
|
}, "se_UntagResourceCommand");
|
|
362
362
|
var de_DeleteReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
363
363
|
if (output.statusCode >= 300) {
|
|
364
|
-
return
|
|
364
|
+
return de_CommandError(output, context);
|
|
365
365
|
}
|
|
366
366
|
const data = await parseBody(output.body, context);
|
|
367
367
|
let contents = {};
|
|
@@ -372,31 +372,9 @@ var de_DeleteReportDefinitionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
372
372
|
};
|
|
373
373
|
return response;
|
|
374
374
|
}, "de_DeleteReportDefinitionCommand");
|
|
375
|
-
var de_DeleteReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
376
|
-
const parsedOutput = {
|
|
377
|
-
...output,
|
|
378
|
-
body: await parseErrorBody(output.body, context)
|
|
379
|
-
};
|
|
380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
|
-
switch (errorCode) {
|
|
382
|
-
case "InternalErrorException":
|
|
383
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
384
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
385
|
-
case "ValidationException":
|
|
386
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
387
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
388
|
-
default:
|
|
389
|
-
const parsedBody = parsedOutput.body;
|
|
390
|
-
return throwDefaultError({
|
|
391
|
-
output,
|
|
392
|
-
parsedBody,
|
|
393
|
-
errorCode
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
}, "de_DeleteReportDefinitionCommandError");
|
|
397
375
|
var de_DescribeReportDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
398
376
|
if (output.statusCode >= 300) {
|
|
399
|
-
return
|
|
377
|
+
return de_CommandError(output, context);
|
|
400
378
|
}
|
|
401
379
|
const data = await parseBody(output.body, context);
|
|
402
380
|
let contents = {};
|
|
@@ -407,28 +385,9 @@ var de_DescribeReportDefinitionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
407
385
|
};
|
|
408
386
|
return response;
|
|
409
387
|
}, "de_DescribeReportDefinitionsCommand");
|
|
410
|
-
var de_DescribeReportDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
411
|
-
const parsedOutput = {
|
|
412
|
-
...output,
|
|
413
|
-
body: await parseErrorBody(output.body, context)
|
|
414
|
-
};
|
|
415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
416
|
-
switch (errorCode) {
|
|
417
|
-
case "InternalErrorException":
|
|
418
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
419
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
420
|
-
default:
|
|
421
|
-
const parsedBody = parsedOutput.body;
|
|
422
|
-
return throwDefaultError({
|
|
423
|
-
output,
|
|
424
|
-
parsedBody,
|
|
425
|
-
errorCode
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
}, "de_DescribeReportDefinitionsCommandError");
|
|
429
388
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
430
389
|
if (output.statusCode >= 300) {
|
|
431
|
-
return
|
|
390
|
+
return de_CommandError(output, context);
|
|
432
391
|
}
|
|
433
392
|
const data = await parseBody(output.body, context);
|
|
434
393
|
let contents = {};
|
|
@@ -439,34 +398,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
439
398
|
};
|
|
440
399
|
return response;
|
|
441
400
|
}, "de_ListTagsForResourceCommand");
|
|
442
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
443
|
-
const parsedOutput = {
|
|
444
|
-
...output,
|
|
445
|
-
body: await parseErrorBody(output.body, context)
|
|
446
|
-
};
|
|
447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
|
-
switch (errorCode) {
|
|
449
|
-
case "InternalErrorException":
|
|
450
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
451
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ResourceNotFoundException":
|
|
453
|
-
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
454
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
455
|
-
case "ValidationException":
|
|
456
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
457
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
458
|
-
default:
|
|
459
|
-
const parsedBody = parsedOutput.body;
|
|
460
|
-
return throwDefaultError({
|
|
461
|
-
output,
|
|
462
|
-
parsedBody,
|
|
463
|
-
errorCode
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
}, "de_ListTagsForResourceCommandError");
|
|
467
401
|
var de_ModifyReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
468
402
|
if (output.statusCode >= 300) {
|
|
469
|
-
return
|
|
403
|
+
return de_CommandError(output, context);
|
|
470
404
|
}
|
|
471
405
|
const data = await parseBody(output.body, context);
|
|
472
406
|
let contents = {};
|
|
@@ -477,31 +411,9 @@ var de_ModifyReportDefinitionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
477
411
|
};
|
|
478
412
|
return response;
|
|
479
413
|
}, "de_ModifyReportDefinitionCommand");
|
|
480
|
-
var de_ModifyReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
481
|
-
const parsedOutput = {
|
|
482
|
-
...output,
|
|
483
|
-
body: await parseErrorBody(output.body, context)
|
|
484
|
-
};
|
|
485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
-
switch (errorCode) {
|
|
487
|
-
case "InternalErrorException":
|
|
488
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
489
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
490
|
-
case "ValidationException":
|
|
491
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
492
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
493
|
-
default:
|
|
494
|
-
const parsedBody = parsedOutput.body;
|
|
495
|
-
return throwDefaultError({
|
|
496
|
-
output,
|
|
497
|
-
parsedBody,
|
|
498
|
-
errorCode
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
}, "de_ModifyReportDefinitionCommandError");
|
|
502
414
|
var de_PutReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
503
415
|
if (output.statusCode >= 300) {
|
|
504
|
-
return
|
|
416
|
+
return de_CommandError(output, context);
|
|
505
417
|
}
|
|
506
418
|
const data = await parseBody(output.body, context);
|
|
507
419
|
let contents = {};
|
|
@@ -512,40 +424,9 @@ var de_PutReportDefinitionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
512
424
|
};
|
|
513
425
|
return response;
|
|
514
426
|
}, "de_PutReportDefinitionCommand");
|
|
515
|
-
var de_PutReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
516
|
-
const parsedOutput = {
|
|
517
|
-
...output,
|
|
518
|
-
body: await parseErrorBody(output.body, context)
|
|
519
|
-
};
|
|
520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
|
-
switch (errorCode) {
|
|
522
|
-
case "DuplicateReportNameException":
|
|
523
|
-
case "com.amazonaws.costandusagereportservice#DuplicateReportNameException":
|
|
524
|
-
throw await de_DuplicateReportNameExceptionRes(parsedOutput, context);
|
|
525
|
-
case "InternalErrorException":
|
|
526
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
527
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ReportLimitReachedException":
|
|
529
|
-
case "com.amazonaws.costandusagereportservice#ReportLimitReachedException":
|
|
530
|
-
throw await de_ReportLimitReachedExceptionRes(parsedOutput, context);
|
|
531
|
-
case "ResourceNotFoundException":
|
|
532
|
-
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
533
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ValidationException":
|
|
535
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
536
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
537
|
-
default:
|
|
538
|
-
const parsedBody = parsedOutput.body;
|
|
539
|
-
return throwDefaultError({
|
|
540
|
-
output,
|
|
541
|
-
parsedBody,
|
|
542
|
-
errorCode
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
}, "de_PutReportDefinitionCommandError");
|
|
546
427
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
547
428
|
if (output.statusCode >= 300) {
|
|
548
|
-
return
|
|
429
|
+
return de_CommandError(output, context);
|
|
549
430
|
}
|
|
550
431
|
const data = await parseBody(output.body, context);
|
|
551
432
|
let contents = {};
|
|
@@ -556,34 +437,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
556
437
|
};
|
|
557
438
|
return response;
|
|
558
439
|
}, "de_TagResourceCommand");
|
|
559
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
560
|
-
const parsedOutput = {
|
|
561
|
-
...output,
|
|
562
|
-
body: await parseErrorBody(output.body, context)
|
|
563
|
-
};
|
|
564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
switch (errorCode) {
|
|
566
|
-
case "InternalErrorException":
|
|
567
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
568
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ResourceNotFoundException":
|
|
570
|
-
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
571
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ValidationException":
|
|
573
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
574
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
575
|
-
default:
|
|
576
|
-
const parsedBody = parsedOutput.body;
|
|
577
|
-
return throwDefaultError({
|
|
578
|
-
output,
|
|
579
|
-
parsedBody,
|
|
580
|
-
errorCode
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
}, "de_TagResourceCommandError");
|
|
584
440
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
585
441
|
if (output.statusCode >= 300) {
|
|
586
|
-
return
|
|
442
|
+
return de_CommandError(output, context);
|
|
587
443
|
}
|
|
588
444
|
const data = await parseBody(output.body, context);
|
|
589
445
|
let contents = {};
|
|
@@ -594,7 +450,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
594
450
|
};
|
|
595
451
|
return response;
|
|
596
452
|
}, "de_UntagResourceCommand");
|
|
597
|
-
var
|
|
453
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
598
454
|
const parsedOutput = {
|
|
599
455
|
...output,
|
|
600
456
|
body: await parseErrorBody(output.body, context)
|
|
@@ -604,12 +460,18 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
604
460
|
case "InternalErrorException":
|
|
605
461
|
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
606
462
|
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
607
|
-
case "ResourceNotFoundException":
|
|
608
|
-
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
609
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
610
463
|
case "ValidationException":
|
|
611
464
|
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
612
465
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
466
|
+
case "ResourceNotFoundException":
|
|
467
|
+
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
468
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
469
|
+
case "DuplicateReportNameException":
|
|
470
|
+
case "com.amazonaws.costandusagereportservice#DuplicateReportNameException":
|
|
471
|
+
throw await de_DuplicateReportNameExceptionRes(parsedOutput, context);
|
|
472
|
+
case "ReportLimitReachedException":
|
|
473
|
+
case "com.amazonaws.costandusagereportservice#ReportLimitReachedException":
|
|
474
|
+
throw await de_ReportLimitReachedExceptionRes(parsedOutput, context);
|
|
613
475
|
default:
|
|
614
476
|
const parsedBody = parsedOutput.body;
|
|
615
477
|
return throwDefaultError({
|
|
@@ -618,7 +480,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
618
480
|
errorCode
|
|
619
481
|
});
|
|
620
482
|
}
|
|
621
|
-
}, "
|
|
483
|
+
}, "de_CommandError");
|
|
622
484
|
var de_DuplicateReportNameExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
623
485
|
const body = parsedOutput.body;
|
|
624
486
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -46,7 +46,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
46
46
|
};
|
|
47
47
|
export const de_DeleteReportDefinitionCommand = async (output, context) => {
|
|
48
48
|
if (output.statusCode >= 300) {
|
|
49
|
-
return
|
|
49
|
+
return de_CommandError(output, context);
|
|
50
50
|
}
|
|
51
51
|
const data = await parseBody(output.body, context);
|
|
52
52
|
let contents = {};
|
|
@@ -57,31 +57,9 @@ export const de_DeleteReportDefinitionCommand = async (output, context) => {
|
|
|
57
57
|
};
|
|
58
58
|
return response;
|
|
59
59
|
};
|
|
60
|
-
const de_DeleteReportDefinitionCommandError = async (output, context) => {
|
|
61
|
-
const parsedOutput = {
|
|
62
|
-
...output,
|
|
63
|
-
body: await parseErrorBody(output.body, context),
|
|
64
|
-
};
|
|
65
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
66
|
-
switch (errorCode) {
|
|
67
|
-
case "InternalErrorException":
|
|
68
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
69
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
70
|
-
case "ValidationException":
|
|
71
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
72
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
73
|
-
default:
|
|
74
|
-
const parsedBody = parsedOutput.body;
|
|
75
|
-
return throwDefaultError({
|
|
76
|
-
output,
|
|
77
|
-
parsedBody,
|
|
78
|
-
errorCode,
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
60
|
export const de_DescribeReportDefinitionsCommand = async (output, context) => {
|
|
83
61
|
if (output.statusCode >= 300) {
|
|
84
|
-
return
|
|
62
|
+
return de_CommandError(output, context);
|
|
85
63
|
}
|
|
86
64
|
const data = await parseBody(output.body, context);
|
|
87
65
|
let contents = {};
|
|
@@ -92,28 +70,9 @@ export const de_DescribeReportDefinitionsCommand = async (output, context) => {
|
|
|
92
70
|
};
|
|
93
71
|
return response;
|
|
94
72
|
};
|
|
95
|
-
const de_DescribeReportDefinitionsCommandError = async (output, context) => {
|
|
96
|
-
const parsedOutput = {
|
|
97
|
-
...output,
|
|
98
|
-
body: await parseErrorBody(output.body, context),
|
|
99
|
-
};
|
|
100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
101
|
-
switch (errorCode) {
|
|
102
|
-
case "InternalErrorException":
|
|
103
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
104
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
105
|
-
default:
|
|
106
|
-
const parsedBody = parsedOutput.body;
|
|
107
|
-
return throwDefaultError({
|
|
108
|
-
output,
|
|
109
|
-
parsedBody,
|
|
110
|
-
errorCode,
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
73
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
115
74
|
if (output.statusCode >= 300) {
|
|
116
|
-
return
|
|
75
|
+
return de_CommandError(output, context);
|
|
117
76
|
}
|
|
118
77
|
const data = await parseBody(output.body, context);
|
|
119
78
|
let contents = {};
|
|
@@ -124,34 +83,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
124
83
|
};
|
|
125
84
|
return response;
|
|
126
85
|
};
|
|
127
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
128
|
-
const parsedOutput = {
|
|
129
|
-
...output,
|
|
130
|
-
body: await parseErrorBody(output.body, context),
|
|
131
|
-
};
|
|
132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
133
|
-
switch (errorCode) {
|
|
134
|
-
case "InternalErrorException":
|
|
135
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
136
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
137
|
-
case "ResourceNotFoundException":
|
|
138
|
-
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
139
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
140
|
-
case "ValidationException":
|
|
141
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
142
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
143
|
-
default:
|
|
144
|
-
const parsedBody = parsedOutput.body;
|
|
145
|
-
return throwDefaultError({
|
|
146
|
-
output,
|
|
147
|
-
parsedBody,
|
|
148
|
-
errorCode,
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
86
|
export const de_ModifyReportDefinitionCommand = async (output, context) => {
|
|
153
87
|
if (output.statusCode >= 300) {
|
|
154
|
-
return
|
|
88
|
+
return de_CommandError(output, context);
|
|
155
89
|
}
|
|
156
90
|
const data = await parseBody(output.body, context);
|
|
157
91
|
let contents = {};
|
|
@@ -162,31 +96,9 @@ export const de_ModifyReportDefinitionCommand = async (output, context) => {
|
|
|
162
96
|
};
|
|
163
97
|
return response;
|
|
164
98
|
};
|
|
165
|
-
const de_ModifyReportDefinitionCommandError = async (output, context) => {
|
|
166
|
-
const parsedOutput = {
|
|
167
|
-
...output,
|
|
168
|
-
body: await parseErrorBody(output.body, context),
|
|
169
|
-
};
|
|
170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
171
|
-
switch (errorCode) {
|
|
172
|
-
case "InternalErrorException":
|
|
173
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
174
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
175
|
-
case "ValidationException":
|
|
176
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
177
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
178
|
-
default:
|
|
179
|
-
const parsedBody = parsedOutput.body;
|
|
180
|
-
return throwDefaultError({
|
|
181
|
-
output,
|
|
182
|
-
parsedBody,
|
|
183
|
-
errorCode,
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
99
|
export const de_PutReportDefinitionCommand = async (output, context) => {
|
|
188
100
|
if (output.statusCode >= 300) {
|
|
189
|
-
return
|
|
101
|
+
return de_CommandError(output, context);
|
|
190
102
|
}
|
|
191
103
|
const data = await parseBody(output.body, context);
|
|
192
104
|
let contents = {};
|
|
@@ -197,40 +109,9 @@ export const de_PutReportDefinitionCommand = async (output, context) => {
|
|
|
197
109
|
};
|
|
198
110
|
return response;
|
|
199
111
|
};
|
|
200
|
-
const de_PutReportDefinitionCommandError = async (output, context) => {
|
|
201
|
-
const parsedOutput = {
|
|
202
|
-
...output,
|
|
203
|
-
body: await parseErrorBody(output.body, context),
|
|
204
|
-
};
|
|
205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
206
|
-
switch (errorCode) {
|
|
207
|
-
case "DuplicateReportNameException":
|
|
208
|
-
case "com.amazonaws.costandusagereportservice#DuplicateReportNameException":
|
|
209
|
-
throw await de_DuplicateReportNameExceptionRes(parsedOutput, context);
|
|
210
|
-
case "InternalErrorException":
|
|
211
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
212
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
213
|
-
case "ReportLimitReachedException":
|
|
214
|
-
case "com.amazonaws.costandusagereportservice#ReportLimitReachedException":
|
|
215
|
-
throw await de_ReportLimitReachedExceptionRes(parsedOutput, context);
|
|
216
|
-
case "ResourceNotFoundException":
|
|
217
|
-
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
218
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
219
|
-
case "ValidationException":
|
|
220
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
222
|
-
default:
|
|
223
|
-
const parsedBody = parsedOutput.body;
|
|
224
|
-
return throwDefaultError({
|
|
225
|
-
output,
|
|
226
|
-
parsedBody,
|
|
227
|
-
errorCode,
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
112
|
export const de_TagResourceCommand = async (output, context) => {
|
|
232
113
|
if (output.statusCode >= 300) {
|
|
233
|
-
return
|
|
114
|
+
return de_CommandError(output, context);
|
|
234
115
|
}
|
|
235
116
|
const data = await parseBody(output.body, context);
|
|
236
117
|
let contents = {};
|
|
@@ -241,34 +122,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
241
122
|
};
|
|
242
123
|
return response;
|
|
243
124
|
};
|
|
244
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
245
|
-
const parsedOutput = {
|
|
246
|
-
...output,
|
|
247
|
-
body: await parseErrorBody(output.body, context),
|
|
248
|
-
};
|
|
249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
250
|
-
switch (errorCode) {
|
|
251
|
-
case "InternalErrorException":
|
|
252
|
-
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
253
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
254
|
-
case "ResourceNotFoundException":
|
|
255
|
-
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
257
|
-
case "ValidationException":
|
|
258
|
-
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
259
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
260
|
-
default:
|
|
261
|
-
const parsedBody = parsedOutput.body;
|
|
262
|
-
return throwDefaultError({
|
|
263
|
-
output,
|
|
264
|
-
parsedBody,
|
|
265
|
-
errorCode,
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
125
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
270
126
|
if (output.statusCode >= 300) {
|
|
271
|
-
return
|
|
127
|
+
return de_CommandError(output, context);
|
|
272
128
|
}
|
|
273
129
|
const data = await parseBody(output.body, context);
|
|
274
130
|
let contents = {};
|
|
@@ -279,7 +135,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
279
135
|
};
|
|
280
136
|
return response;
|
|
281
137
|
};
|
|
282
|
-
const
|
|
138
|
+
const de_CommandError = async (output, context) => {
|
|
283
139
|
const parsedOutput = {
|
|
284
140
|
...output,
|
|
285
141
|
body: await parseErrorBody(output.body, context),
|
|
@@ -289,12 +145,18 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
289
145
|
case "InternalErrorException":
|
|
290
146
|
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
291
147
|
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
292
|
-
case "ResourceNotFoundException":
|
|
293
|
-
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
294
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
295
148
|
case "ValidationException":
|
|
296
149
|
case "com.amazonaws.costandusagereportservice#ValidationException":
|
|
297
150
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
151
|
+
case "ResourceNotFoundException":
|
|
152
|
+
case "com.amazonaws.costandusagereportservice#ResourceNotFoundException":
|
|
153
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
154
|
+
case "DuplicateReportNameException":
|
|
155
|
+
case "com.amazonaws.costandusagereportservice#DuplicateReportNameException":
|
|
156
|
+
throw await de_DuplicateReportNameExceptionRes(parsedOutput, context);
|
|
157
|
+
case "ReportLimitReachedException":
|
|
158
|
+
case "com.amazonaws.costandusagereportservice#ReportLimitReachedException":
|
|
159
|
+
throw await de_ReportLimitReachedExceptionRes(parsedOutput, context);
|
|
298
160
|
default:
|
|
299
161
|
const parsedBody = parsedOutput.body;
|
|
300
162
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cost-and-usage-report-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cost And Usage Report Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cost-and-usage-report-service",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|