@aws-sdk/client-applicationcostprofiler 3.504.0 → 3.509.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 +11 -151
- package/dist-es/protocols/Aws_restJson1.js +10 -150
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -343,7 +343,7 @@ var se_UpdateReportDefinitionCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
343
343
|
}, "se_UpdateReportDefinitionCommand");
|
|
344
344
|
var de_DeleteReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
345
345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
346
|
-
return
|
|
346
|
+
return de_CommandError(output, context);
|
|
347
347
|
}
|
|
348
348
|
const contents = (0, import_smithy_client.map)({
|
|
349
349
|
$metadata: deserializeMetadata(output)
|
|
@@ -355,37 +355,9 @@ var de_DeleteReportDefinitionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
355
355
|
Object.assign(contents, doc);
|
|
356
356
|
return contents;
|
|
357
357
|
}, "de_DeleteReportDefinitionCommand");
|
|
358
|
-
var de_DeleteReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
359
|
-
const parsedOutput = {
|
|
360
|
-
...output,
|
|
361
|
-
body: await parseErrorBody(output.body, context)
|
|
362
|
-
};
|
|
363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
364
|
-
switch (errorCode) {
|
|
365
|
-
case "AccessDeniedException":
|
|
366
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
367
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
368
|
-
case "InternalServerException":
|
|
369
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
371
|
-
case "ThrottlingException":
|
|
372
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
373
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
374
|
-
case "ValidationException":
|
|
375
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
376
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
377
|
-
default:
|
|
378
|
-
const parsedBody = parsedOutput.body;
|
|
379
|
-
return throwDefaultError({
|
|
380
|
-
output,
|
|
381
|
-
parsedBody,
|
|
382
|
-
errorCode
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
}, "de_DeleteReportDefinitionCommandError");
|
|
386
358
|
var de_GetReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
387
359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
388
|
-
return
|
|
360
|
+
return de_CommandError(output, context);
|
|
389
361
|
}
|
|
390
362
|
const contents = (0, import_smithy_client.map)({
|
|
391
363
|
$metadata: deserializeMetadata(output)
|
|
@@ -403,37 +375,9 @@ var de_GetReportDefinitionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
403
375
|
Object.assign(contents, doc);
|
|
404
376
|
return contents;
|
|
405
377
|
}, "de_GetReportDefinitionCommand");
|
|
406
|
-
var de_GetReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
407
|
-
const parsedOutput = {
|
|
408
|
-
...output,
|
|
409
|
-
body: await parseErrorBody(output.body, context)
|
|
410
|
-
};
|
|
411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
412
|
-
switch (errorCode) {
|
|
413
|
-
case "AccessDeniedException":
|
|
414
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
415
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
416
|
-
case "InternalServerException":
|
|
417
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
418
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
419
|
-
case "ThrottlingException":
|
|
420
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
421
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
422
|
-
case "ValidationException":
|
|
423
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
425
|
-
default:
|
|
426
|
-
const parsedBody = parsedOutput.body;
|
|
427
|
-
return throwDefaultError({
|
|
428
|
-
output,
|
|
429
|
-
parsedBody,
|
|
430
|
-
errorCode
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
}, "de_GetReportDefinitionCommandError");
|
|
434
378
|
var de_ImportApplicationUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
435
379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
-
return
|
|
380
|
+
return de_CommandError(output, context);
|
|
437
381
|
}
|
|
438
382
|
const contents = (0, import_smithy_client.map)({
|
|
439
383
|
$metadata: deserializeMetadata(output)
|
|
@@ -445,37 +389,9 @@ var de_ImportApplicationUsageCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
445
389
|
Object.assign(contents, doc);
|
|
446
390
|
return contents;
|
|
447
391
|
}, "de_ImportApplicationUsageCommand");
|
|
448
|
-
var de_ImportApplicationUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
449
|
-
const parsedOutput = {
|
|
450
|
-
...output,
|
|
451
|
-
body: await parseErrorBody(output.body, context)
|
|
452
|
-
};
|
|
453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
454
|
-
switch (errorCode) {
|
|
455
|
-
case "AccessDeniedException":
|
|
456
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
457
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
458
|
-
case "InternalServerException":
|
|
459
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
460
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
461
|
-
case "ThrottlingException":
|
|
462
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
463
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
464
|
-
case "ValidationException":
|
|
465
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
466
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
467
|
-
default:
|
|
468
|
-
const parsedBody = parsedOutput.body;
|
|
469
|
-
return throwDefaultError({
|
|
470
|
-
output,
|
|
471
|
-
parsedBody,
|
|
472
|
-
errorCode
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
}, "de_ImportApplicationUsageCommandError");
|
|
476
392
|
var de_ListReportDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
477
393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
478
|
-
return
|
|
394
|
+
return de_CommandError(output, context);
|
|
479
395
|
}
|
|
480
396
|
const contents = (0, import_smithy_client.map)({
|
|
481
397
|
$metadata: deserializeMetadata(output)
|
|
@@ -488,37 +404,9 @@ var de_ListReportDefinitionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
488
404
|
Object.assign(contents, doc);
|
|
489
405
|
return contents;
|
|
490
406
|
}, "de_ListReportDefinitionsCommand");
|
|
491
|
-
var de_ListReportDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
492
|
-
const parsedOutput = {
|
|
493
|
-
...output,
|
|
494
|
-
body: await parseErrorBody(output.body, context)
|
|
495
|
-
};
|
|
496
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
|
-
switch (errorCode) {
|
|
498
|
-
case "AccessDeniedException":
|
|
499
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
500
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
501
|
-
case "InternalServerException":
|
|
502
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
503
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
504
|
-
case "ThrottlingException":
|
|
505
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
506
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ValidationException":
|
|
508
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
509
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
510
|
-
default:
|
|
511
|
-
const parsedBody = parsedOutput.body;
|
|
512
|
-
return throwDefaultError({
|
|
513
|
-
output,
|
|
514
|
-
parsedBody,
|
|
515
|
-
errorCode
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
}, "de_ListReportDefinitionsCommandError");
|
|
519
407
|
var de_PutReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
520
408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
521
|
-
return
|
|
409
|
+
return de_CommandError(output, context);
|
|
522
410
|
}
|
|
523
411
|
const contents = (0, import_smithy_client.map)({
|
|
524
412
|
$metadata: deserializeMetadata(output)
|
|
@@ -530,40 +418,9 @@ var de_PutReportDefinitionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
530
418
|
Object.assign(contents, doc);
|
|
531
419
|
return contents;
|
|
532
420
|
}, "de_PutReportDefinitionCommand");
|
|
533
|
-
var de_PutReportDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
534
|
-
const parsedOutput = {
|
|
535
|
-
...output,
|
|
536
|
-
body: await parseErrorBody(output.body, context)
|
|
537
|
-
};
|
|
538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
|
-
switch (errorCode) {
|
|
540
|
-
case "AccessDeniedException":
|
|
541
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
543
|
-
case "InternalServerException":
|
|
544
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
545
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
546
|
-
case "ServiceQuotaExceededException":
|
|
547
|
-
case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException":
|
|
548
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ThrottlingException":
|
|
550
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
551
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ValidationException":
|
|
553
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
554
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
555
|
-
default:
|
|
556
|
-
const parsedBody = parsedOutput.body;
|
|
557
|
-
return throwDefaultError({
|
|
558
|
-
output,
|
|
559
|
-
parsedBody,
|
|
560
|
-
errorCode
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
}, "de_PutReportDefinitionCommandError");
|
|
564
421
|
var de_UpdateReportDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
565
422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
566
|
-
return
|
|
423
|
+
return de_CommandError(output, context);
|
|
567
424
|
}
|
|
568
425
|
const contents = (0, import_smithy_client.map)({
|
|
569
426
|
$metadata: deserializeMetadata(output)
|
|
@@ -575,7 +432,7 @@ var de_UpdateReportDefinitionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
575
432
|
Object.assign(contents, doc);
|
|
576
433
|
return contents;
|
|
577
434
|
}, "de_UpdateReportDefinitionCommand");
|
|
578
|
-
var
|
|
435
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
579
436
|
const parsedOutput = {
|
|
580
437
|
...output,
|
|
581
438
|
body: await parseErrorBody(output.body, context)
|
|
@@ -594,6 +451,9 @@ var de_UpdateReportDefinitionCommandError = /* @__PURE__ */ __name(async (output
|
|
|
594
451
|
case "ValidationException":
|
|
595
452
|
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
596
453
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
454
|
+
case "ServiceQuotaExceededException":
|
|
455
|
+
case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException":
|
|
456
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
597
457
|
default:
|
|
598
458
|
const parsedBody = parsedOutput.body;
|
|
599
459
|
return throwDefaultError({
|
|
@@ -602,7 +462,7 @@ var de_UpdateReportDefinitionCommandError = /* @__PURE__ */ __name(async (output
|
|
|
602
462
|
errorCode
|
|
603
463
|
});
|
|
604
464
|
}
|
|
605
|
-
}, "
|
|
465
|
+
}, "de_CommandError");
|
|
606
466
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ApplicationCostProfilerServiceException);
|
|
607
467
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
608
468
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -81,7 +81,7 @@ export const se_UpdateReportDefinitionCommand = async (input, context) => {
|
|
|
81
81
|
};
|
|
82
82
|
export const de_DeleteReportDefinitionCommand = async (output, context) => {
|
|
83
83
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
84
|
-
return
|
|
84
|
+
return de_CommandError(output, context);
|
|
85
85
|
}
|
|
86
86
|
const contents = map({
|
|
87
87
|
$metadata: deserializeMetadata(output),
|
|
@@ -93,37 +93,9 @@ export const de_DeleteReportDefinitionCommand = async (output, context) => {
|
|
|
93
93
|
Object.assign(contents, doc);
|
|
94
94
|
return contents;
|
|
95
95
|
};
|
|
96
|
-
const de_DeleteReportDefinitionCommandError = async (output, context) => {
|
|
97
|
-
const parsedOutput = {
|
|
98
|
-
...output,
|
|
99
|
-
body: await parseErrorBody(output.body, context),
|
|
100
|
-
};
|
|
101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
102
|
-
switch (errorCode) {
|
|
103
|
-
case "AccessDeniedException":
|
|
104
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
105
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
106
|
-
case "InternalServerException":
|
|
107
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
108
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
109
|
-
case "ThrottlingException":
|
|
110
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
111
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
112
|
-
case "ValidationException":
|
|
113
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
115
|
-
default:
|
|
116
|
-
const parsedBody = parsedOutput.body;
|
|
117
|
-
return throwDefaultError({
|
|
118
|
-
output,
|
|
119
|
-
parsedBody,
|
|
120
|
-
errorCode,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
96
|
export const de_GetReportDefinitionCommand = async (output, context) => {
|
|
125
97
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
126
|
-
return
|
|
98
|
+
return de_CommandError(output, context);
|
|
127
99
|
}
|
|
128
100
|
const contents = map({
|
|
129
101
|
$metadata: deserializeMetadata(output),
|
|
@@ -141,37 +113,9 @@ export const de_GetReportDefinitionCommand = async (output, context) => {
|
|
|
141
113
|
Object.assign(contents, doc);
|
|
142
114
|
return contents;
|
|
143
115
|
};
|
|
144
|
-
const de_GetReportDefinitionCommandError = async (output, context) => {
|
|
145
|
-
const parsedOutput = {
|
|
146
|
-
...output,
|
|
147
|
-
body: await parseErrorBody(output.body, context),
|
|
148
|
-
};
|
|
149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
150
|
-
switch (errorCode) {
|
|
151
|
-
case "AccessDeniedException":
|
|
152
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
153
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
154
|
-
case "InternalServerException":
|
|
155
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
156
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
157
|
-
case "ThrottlingException":
|
|
158
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
159
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
160
|
-
case "ValidationException":
|
|
161
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
162
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
163
|
-
default:
|
|
164
|
-
const parsedBody = parsedOutput.body;
|
|
165
|
-
return throwDefaultError({
|
|
166
|
-
output,
|
|
167
|
-
parsedBody,
|
|
168
|
-
errorCode,
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
116
|
export const de_ImportApplicationUsageCommand = async (output, context) => {
|
|
173
117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
174
|
-
return
|
|
118
|
+
return de_CommandError(output, context);
|
|
175
119
|
}
|
|
176
120
|
const contents = map({
|
|
177
121
|
$metadata: deserializeMetadata(output),
|
|
@@ -183,37 +127,9 @@ export const de_ImportApplicationUsageCommand = async (output, context) => {
|
|
|
183
127
|
Object.assign(contents, doc);
|
|
184
128
|
return contents;
|
|
185
129
|
};
|
|
186
|
-
const de_ImportApplicationUsageCommandError = async (output, context) => {
|
|
187
|
-
const parsedOutput = {
|
|
188
|
-
...output,
|
|
189
|
-
body: await parseErrorBody(output.body, context),
|
|
190
|
-
};
|
|
191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
192
|
-
switch (errorCode) {
|
|
193
|
-
case "AccessDeniedException":
|
|
194
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
195
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
196
|
-
case "InternalServerException":
|
|
197
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
198
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
199
|
-
case "ThrottlingException":
|
|
200
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
201
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
202
|
-
case "ValidationException":
|
|
203
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
204
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
205
|
-
default:
|
|
206
|
-
const parsedBody = parsedOutput.body;
|
|
207
|
-
return throwDefaultError({
|
|
208
|
-
output,
|
|
209
|
-
parsedBody,
|
|
210
|
-
errorCode,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
130
|
export const de_ListReportDefinitionsCommand = async (output, context) => {
|
|
215
131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
216
|
-
return
|
|
132
|
+
return de_CommandError(output, context);
|
|
217
133
|
}
|
|
218
134
|
const contents = map({
|
|
219
135
|
$metadata: deserializeMetadata(output),
|
|
@@ -226,37 +142,9 @@ export const de_ListReportDefinitionsCommand = async (output, context) => {
|
|
|
226
142
|
Object.assign(contents, doc);
|
|
227
143
|
return contents;
|
|
228
144
|
};
|
|
229
|
-
const de_ListReportDefinitionsCommandError = async (output, context) => {
|
|
230
|
-
const parsedOutput = {
|
|
231
|
-
...output,
|
|
232
|
-
body: await parseErrorBody(output.body, context),
|
|
233
|
-
};
|
|
234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
235
|
-
switch (errorCode) {
|
|
236
|
-
case "AccessDeniedException":
|
|
237
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
238
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
239
|
-
case "InternalServerException":
|
|
240
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
241
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
242
|
-
case "ThrottlingException":
|
|
243
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
244
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
245
|
-
case "ValidationException":
|
|
246
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
247
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
248
|
-
default:
|
|
249
|
-
const parsedBody = parsedOutput.body;
|
|
250
|
-
return throwDefaultError({
|
|
251
|
-
output,
|
|
252
|
-
parsedBody,
|
|
253
|
-
errorCode,
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
145
|
export const de_PutReportDefinitionCommand = async (output, context) => {
|
|
258
146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
|
-
return
|
|
147
|
+
return de_CommandError(output, context);
|
|
260
148
|
}
|
|
261
149
|
const contents = map({
|
|
262
150
|
$metadata: deserializeMetadata(output),
|
|
@@ -268,40 +156,9 @@ export const de_PutReportDefinitionCommand = async (output, context) => {
|
|
|
268
156
|
Object.assign(contents, doc);
|
|
269
157
|
return contents;
|
|
270
158
|
};
|
|
271
|
-
const de_PutReportDefinitionCommandError = async (output, context) => {
|
|
272
|
-
const parsedOutput = {
|
|
273
|
-
...output,
|
|
274
|
-
body: await parseErrorBody(output.body, context),
|
|
275
|
-
};
|
|
276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
277
|
-
switch (errorCode) {
|
|
278
|
-
case "AccessDeniedException":
|
|
279
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
280
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
281
|
-
case "InternalServerException":
|
|
282
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
283
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
284
|
-
case "ServiceQuotaExceededException":
|
|
285
|
-
case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException":
|
|
286
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
287
|
-
case "ThrottlingException":
|
|
288
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
289
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
290
|
-
case "ValidationException":
|
|
291
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
292
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
293
|
-
default:
|
|
294
|
-
const parsedBody = parsedOutput.body;
|
|
295
|
-
return throwDefaultError({
|
|
296
|
-
output,
|
|
297
|
-
parsedBody,
|
|
298
|
-
errorCode,
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
159
|
export const de_UpdateReportDefinitionCommand = async (output, context) => {
|
|
303
160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
304
|
-
return
|
|
161
|
+
return de_CommandError(output, context);
|
|
305
162
|
}
|
|
306
163
|
const contents = map({
|
|
307
164
|
$metadata: deserializeMetadata(output),
|
|
@@ -313,7 +170,7 @@ export const de_UpdateReportDefinitionCommand = async (output, context) => {
|
|
|
313
170
|
Object.assign(contents, doc);
|
|
314
171
|
return contents;
|
|
315
172
|
};
|
|
316
|
-
const
|
|
173
|
+
const de_CommandError = async (output, context) => {
|
|
317
174
|
const parsedOutput = {
|
|
318
175
|
...output,
|
|
319
176
|
body: await parseErrorBody(output.body, context),
|
|
@@ -332,6 +189,9 @@ const de_UpdateReportDefinitionCommandError = async (output, context) => {
|
|
|
332
189
|
case "ValidationException":
|
|
333
190
|
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
334
191
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
192
|
+
case "ServiceQuotaExceededException":
|
|
193
|
+
case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException":
|
|
194
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
335
195
|
default:
|
|
336
196
|
const parsedBody = parsedOutput.body;
|
|
337
197
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-applicationcostprofiler",
|
|
3
3
|
"description": "AWS SDK for JavaScript Applicationcostprofiler Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.509.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-applicationcostprofiler",
|
|
@@ -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.509.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",
|