@aws-sdk/client-cost-optimization-hub 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 CHANGED
@@ -387,7 +387,7 @@ var se_UpdatePreferencesCommand = /* @__PURE__ */ __name(async (input, context)
387
387
  }, "se_UpdatePreferencesCommand");
388
388
  var de_GetPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
389
389
  if (output.statusCode >= 300) {
390
- return de_GetPreferencesCommandError(output, context);
390
+ return de_CommandError(output, context);
391
391
  }
392
392
  const data = await parseBody(output.body, context);
393
393
  let contents = {};
@@ -398,37 +398,9 @@ var de_GetPreferencesCommand = /* @__PURE__ */ __name(async (output, context) =>
398
398
  };
399
399
  return response;
400
400
  }, "de_GetPreferencesCommand");
401
- var de_GetPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
402
- const parsedOutput = {
403
- ...output,
404
- body: await parseErrorBody(output.body, context)
405
- };
406
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
407
- switch (errorCode) {
408
- case "AccessDeniedException":
409
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
410
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
411
- case "InternalServerException":
412
- case "com.amazonaws.costoptimizationhub#InternalServerException":
413
- throw await de_InternalServerExceptionRes(parsedOutput, context);
414
- case "ThrottlingException":
415
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
416
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
417
- case "ValidationException":
418
- case "com.amazonaws.costoptimizationhub#ValidationException":
419
- throw await de_ValidationExceptionRes(parsedOutput, context);
420
- default:
421
- const parsedBody = parsedOutput.body;
422
- return throwDefaultError({
423
- output,
424
- parsedBody,
425
- errorCode
426
- });
427
- }
428
- }, "de_GetPreferencesCommandError");
429
401
  var de_GetRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {
430
402
  if (output.statusCode >= 300) {
431
- return de_GetRecommendationCommandError(output, context);
403
+ return de_CommandError(output, context);
432
404
  }
433
405
  const data = await parseBody(output.body, context);
434
406
  let contents = {};
@@ -439,40 +411,9 @@ var de_GetRecommendationCommand = /* @__PURE__ */ __name(async (output, context)
439
411
  };
440
412
  return response;
441
413
  }, "de_GetRecommendationCommand");
442
- var de_GetRecommendationCommandError = /* @__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 "AccessDeniedException":
450
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
451
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
452
- case "InternalServerException":
453
- case "com.amazonaws.costoptimizationhub#InternalServerException":
454
- throw await de_InternalServerExceptionRes(parsedOutput, context);
455
- case "ResourceNotFoundException":
456
- case "com.amazonaws.costoptimizationhub#ResourceNotFoundException":
457
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
458
- case "ThrottlingException":
459
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
460
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
461
- case "ValidationException":
462
- case "com.amazonaws.costoptimizationhub#ValidationException":
463
- throw await de_ValidationExceptionRes(parsedOutput, context);
464
- default:
465
- const parsedBody = parsedOutput.body;
466
- return throwDefaultError({
467
- output,
468
- parsedBody,
469
- errorCode
470
- });
471
- }
472
- }, "de_GetRecommendationCommandError");
473
414
  var de_ListEnrollmentStatusesCommand = /* @__PURE__ */ __name(async (output, context) => {
474
415
  if (output.statusCode >= 300) {
475
- return de_ListEnrollmentStatusesCommandError(output, context);
416
+ return de_CommandError(output, context);
476
417
  }
477
418
  const data = await parseBody(output.body, context);
478
419
  let contents = {};
@@ -483,37 +424,9 @@ var de_ListEnrollmentStatusesCommand = /* @__PURE__ */ __name(async (output, con
483
424
  };
484
425
  return response;
485
426
  }, "de_ListEnrollmentStatusesCommand");
486
- var de_ListEnrollmentStatusesCommandError = /* @__PURE__ */ __name(async (output, context) => {
487
- const parsedOutput = {
488
- ...output,
489
- body: await parseErrorBody(output.body, context)
490
- };
491
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
492
- switch (errorCode) {
493
- case "AccessDeniedException":
494
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
495
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
496
- case "InternalServerException":
497
- case "com.amazonaws.costoptimizationhub#InternalServerException":
498
- throw await de_InternalServerExceptionRes(parsedOutput, context);
499
- case "ThrottlingException":
500
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
501
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
502
- case "ValidationException":
503
- case "com.amazonaws.costoptimizationhub#ValidationException":
504
- throw await de_ValidationExceptionRes(parsedOutput, context);
505
- default:
506
- const parsedBody = parsedOutput.body;
507
- return throwDefaultError({
508
- output,
509
- parsedBody,
510
- errorCode
511
- });
512
- }
513
- }, "de_ListEnrollmentStatusesCommandError");
514
427
  var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
515
428
  if (output.statusCode >= 300) {
516
- return de_ListRecommendationsCommandError(output, context);
429
+ return de_CommandError(output, context);
517
430
  }
518
431
  const data = await parseBody(output.body, context);
519
432
  let contents = {};
@@ -524,37 +437,9 @@ var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, contex
524
437
  };
525
438
  return response;
526
439
  }, "de_ListRecommendationsCommand");
527
- var de_ListRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
528
- const parsedOutput = {
529
- ...output,
530
- body: await parseErrorBody(output.body, context)
531
- };
532
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
533
- switch (errorCode) {
534
- case "AccessDeniedException":
535
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
536
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
537
- case "InternalServerException":
538
- case "com.amazonaws.costoptimizationhub#InternalServerException":
539
- throw await de_InternalServerExceptionRes(parsedOutput, context);
540
- case "ThrottlingException":
541
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
542
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
543
- case "ValidationException":
544
- case "com.amazonaws.costoptimizationhub#ValidationException":
545
- throw await de_ValidationExceptionRes(parsedOutput, context);
546
- default:
547
- const parsedBody = parsedOutput.body;
548
- return throwDefaultError({
549
- output,
550
- parsedBody,
551
- errorCode
552
- });
553
- }
554
- }, "de_ListRecommendationsCommandError");
555
440
  var de_ListRecommendationSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
556
441
  if (output.statusCode >= 300) {
557
- return de_ListRecommendationSummariesCommandError(output, context);
442
+ return de_CommandError(output, context);
558
443
  }
559
444
  const data = await parseBody(output.body, context);
560
445
  let contents = {};
@@ -565,37 +450,9 @@ var de_ListRecommendationSummariesCommand = /* @__PURE__ */ __name(async (output
565
450
  };
566
451
  return response;
567
452
  }, "de_ListRecommendationSummariesCommand");
568
- var de_ListRecommendationSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
569
- const parsedOutput = {
570
- ...output,
571
- body: await parseErrorBody(output.body, context)
572
- };
573
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
574
- switch (errorCode) {
575
- case "AccessDeniedException":
576
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
577
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
578
- case "InternalServerException":
579
- case "com.amazonaws.costoptimizationhub#InternalServerException":
580
- throw await de_InternalServerExceptionRes(parsedOutput, context);
581
- case "ThrottlingException":
582
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
583
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
584
- case "ValidationException":
585
- case "com.amazonaws.costoptimizationhub#ValidationException":
586
- throw await de_ValidationExceptionRes(parsedOutput, context);
587
- default:
588
- const parsedBody = parsedOutput.body;
589
- return throwDefaultError({
590
- output,
591
- parsedBody,
592
- errorCode
593
- });
594
- }
595
- }, "de_ListRecommendationSummariesCommandError");
596
453
  var de_UpdateEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
597
454
  if (output.statusCode >= 300) {
598
- return de_UpdateEnrollmentStatusCommandError(output, context);
455
+ return de_CommandError(output, context);
599
456
  }
600
457
  const data = await parseBody(output.body, context);
601
458
  let contents = {};
@@ -606,37 +463,9 @@ var de_UpdateEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, con
606
463
  };
607
464
  return response;
608
465
  }, "de_UpdateEnrollmentStatusCommand");
609
- var de_UpdateEnrollmentStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
610
- const parsedOutput = {
611
- ...output,
612
- body: await parseErrorBody(output.body, context)
613
- };
614
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
615
- switch (errorCode) {
616
- case "AccessDeniedException":
617
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
618
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
619
- case "InternalServerException":
620
- case "com.amazonaws.costoptimizationhub#InternalServerException":
621
- throw await de_InternalServerExceptionRes(parsedOutput, context);
622
- case "ThrottlingException":
623
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
624
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
625
- case "ValidationException":
626
- case "com.amazonaws.costoptimizationhub#ValidationException":
627
- throw await de_ValidationExceptionRes(parsedOutput, context);
628
- default:
629
- const parsedBody = parsedOutput.body;
630
- return throwDefaultError({
631
- output,
632
- parsedBody,
633
- errorCode
634
- });
635
- }
636
- }, "de_UpdateEnrollmentStatusCommandError");
637
466
  var de_UpdatePreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
638
467
  if (output.statusCode >= 300) {
639
- return de_UpdatePreferencesCommandError(output, context);
468
+ return de_CommandError(output, context);
640
469
  }
641
470
  const data = await parseBody(output.body, context);
642
471
  let contents = {};
@@ -647,7 +476,7 @@ var de_UpdatePreferencesCommand = /* @__PURE__ */ __name(async (output, context)
647
476
  };
648
477
  return response;
649
478
  }, "de_UpdatePreferencesCommand");
650
- var de_UpdatePreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
479
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
651
480
  const parsedOutput = {
652
481
  ...output,
653
482
  body: await parseErrorBody(output.body, context)
@@ -666,6 +495,9 @@ var de_UpdatePreferencesCommandError = /* @__PURE__ */ __name(async (output, con
666
495
  case "ValidationException":
667
496
  case "com.amazonaws.costoptimizationhub#ValidationException":
668
497
  throw await de_ValidationExceptionRes(parsedOutput, context);
498
+ case "ResourceNotFoundException":
499
+ case "com.amazonaws.costoptimizationhub#ResourceNotFoundException":
500
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
669
501
  default:
670
502
  const parsedBody = parsedOutput.body;
671
503
  return throwDefaultError({
@@ -674,7 +506,7 @@ var de_UpdatePreferencesCommandError = /* @__PURE__ */ __name(async (output, con
674
506
  errorCode
675
507
  });
676
508
  }
677
- }, "de_UpdatePreferencesCommandError");
509
+ }, "de_CommandError");
678
510
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
679
511
  const body = parsedOutput.body;
680
512
  const deserialized = (0, import_smithy_client._json)(body);
@@ -47,7 +47,7 @@ export const se_UpdatePreferencesCommand = async (input, context) => {
47
47
  };
48
48
  export const de_GetPreferencesCommand = async (output, context) => {
49
49
  if (output.statusCode >= 300) {
50
- return de_GetPreferencesCommandError(output, context);
50
+ return de_CommandError(output, context);
51
51
  }
52
52
  const data = await parseBody(output.body, context);
53
53
  let contents = {};
@@ -58,37 +58,9 @@ export const de_GetPreferencesCommand = async (output, context) => {
58
58
  };
59
59
  return response;
60
60
  };
61
- const de_GetPreferencesCommandError = async (output, context) => {
62
- const parsedOutput = {
63
- ...output,
64
- body: await parseErrorBody(output.body, context),
65
- };
66
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
67
- switch (errorCode) {
68
- case "AccessDeniedException":
69
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
70
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
71
- case "InternalServerException":
72
- case "com.amazonaws.costoptimizationhub#InternalServerException":
73
- throw await de_InternalServerExceptionRes(parsedOutput, context);
74
- case "ThrottlingException":
75
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
76
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
77
- case "ValidationException":
78
- case "com.amazonaws.costoptimizationhub#ValidationException":
79
- throw await de_ValidationExceptionRes(parsedOutput, context);
80
- default:
81
- const parsedBody = parsedOutput.body;
82
- return throwDefaultError({
83
- output,
84
- parsedBody,
85
- errorCode,
86
- });
87
- }
88
- };
89
61
  export const de_GetRecommendationCommand = async (output, context) => {
90
62
  if (output.statusCode >= 300) {
91
- return de_GetRecommendationCommandError(output, context);
63
+ return de_CommandError(output, context);
92
64
  }
93
65
  const data = await parseBody(output.body, context);
94
66
  let contents = {};
@@ -99,40 +71,9 @@ export const de_GetRecommendationCommand = async (output, context) => {
99
71
  };
100
72
  return response;
101
73
  };
102
- const de_GetRecommendationCommandError = async (output, context) => {
103
- const parsedOutput = {
104
- ...output,
105
- body: await parseErrorBody(output.body, context),
106
- };
107
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
108
- switch (errorCode) {
109
- case "AccessDeniedException":
110
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
111
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
112
- case "InternalServerException":
113
- case "com.amazonaws.costoptimizationhub#InternalServerException":
114
- throw await de_InternalServerExceptionRes(parsedOutput, context);
115
- case "ResourceNotFoundException":
116
- case "com.amazonaws.costoptimizationhub#ResourceNotFoundException":
117
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
118
- case "ThrottlingException":
119
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
120
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
121
- case "ValidationException":
122
- case "com.amazonaws.costoptimizationhub#ValidationException":
123
- throw await de_ValidationExceptionRes(parsedOutput, context);
124
- default:
125
- const parsedBody = parsedOutput.body;
126
- return throwDefaultError({
127
- output,
128
- parsedBody,
129
- errorCode,
130
- });
131
- }
132
- };
133
74
  export const de_ListEnrollmentStatusesCommand = async (output, context) => {
134
75
  if (output.statusCode >= 300) {
135
- return de_ListEnrollmentStatusesCommandError(output, context);
76
+ return de_CommandError(output, context);
136
77
  }
137
78
  const data = await parseBody(output.body, context);
138
79
  let contents = {};
@@ -143,37 +84,9 @@ export const de_ListEnrollmentStatusesCommand = async (output, context) => {
143
84
  };
144
85
  return response;
145
86
  };
146
- const de_ListEnrollmentStatusesCommandError = async (output, context) => {
147
- const parsedOutput = {
148
- ...output,
149
- body: await parseErrorBody(output.body, context),
150
- };
151
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
152
- switch (errorCode) {
153
- case "AccessDeniedException":
154
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
155
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
156
- case "InternalServerException":
157
- case "com.amazonaws.costoptimizationhub#InternalServerException":
158
- throw await de_InternalServerExceptionRes(parsedOutput, context);
159
- case "ThrottlingException":
160
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
161
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
162
- case "ValidationException":
163
- case "com.amazonaws.costoptimizationhub#ValidationException":
164
- throw await de_ValidationExceptionRes(parsedOutput, context);
165
- default:
166
- const parsedBody = parsedOutput.body;
167
- return throwDefaultError({
168
- output,
169
- parsedBody,
170
- errorCode,
171
- });
172
- }
173
- };
174
87
  export const de_ListRecommendationsCommand = async (output, context) => {
175
88
  if (output.statusCode >= 300) {
176
- return de_ListRecommendationsCommandError(output, context);
89
+ return de_CommandError(output, context);
177
90
  }
178
91
  const data = await parseBody(output.body, context);
179
92
  let contents = {};
@@ -184,37 +97,9 @@ export const de_ListRecommendationsCommand = async (output, context) => {
184
97
  };
185
98
  return response;
186
99
  };
187
- const de_ListRecommendationsCommandError = async (output, context) => {
188
- const parsedOutput = {
189
- ...output,
190
- body: await parseErrorBody(output.body, context),
191
- };
192
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
193
- switch (errorCode) {
194
- case "AccessDeniedException":
195
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
196
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
197
- case "InternalServerException":
198
- case "com.amazonaws.costoptimizationhub#InternalServerException":
199
- throw await de_InternalServerExceptionRes(parsedOutput, context);
200
- case "ThrottlingException":
201
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
202
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
203
- case "ValidationException":
204
- case "com.amazonaws.costoptimizationhub#ValidationException":
205
- throw await de_ValidationExceptionRes(parsedOutput, context);
206
- default:
207
- const parsedBody = parsedOutput.body;
208
- return throwDefaultError({
209
- output,
210
- parsedBody,
211
- errorCode,
212
- });
213
- }
214
- };
215
100
  export const de_ListRecommendationSummariesCommand = async (output, context) => {
216
101
  if (output.statusCode >= 300) {
217
- return de_ListRecommendationSummariesCommandError(output, context);
102
+ return de_CommandError(output, context);
218
103
  }
219
104
  const data = await parseBody(output.body, context);
220
105
  let contents = {};
@@ -225,37 +110,9 @@ export const de_ListRecommendationSummariesCommand = async (output, context) =>
225
110
  };
226
111
  return response;
227
112
  };
228
- const de_ListRecommendationSummariesCommandError = async (output, context) => {
229
- const parsedOutput = {
230
- ...output,
231
- body: await parseErrorBody(output.body, context),
232
- };
233
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
234
- switch (errorCode) {
235
- case "AccessDeniedException":
236
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
237
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
238
- case "InternalServerException":
239
- case "com.amazonaws.costoptimizationhub#InternalServerException":
240
- throw await de_InternalServerExceptionRes(parsedOutput, context);
241
- case "ThrottlingException":
242
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
243
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
244
- case "ValidationException":
245
- case "com.amazonaws.costoptimizationhub#ValidationException":
246
- throw await de_ValidationExceptionRes(parsedOutput, context);
247
- default:
248
- const parsedBody = parsedOutput.body;
249
- return throwDefaultError({
250
- output,
251
- parsedBody,
252
- errorCode,
253
- });
254
- }
255
- };
256
113
  export const de_UpdateEnrollmentStatusCommand = async (output, context) => {
257
114
  if (output.statusCode >= 300) {
258
- return de_UpdateEnrollmentStatusCommandError(output, context);
115
+ return de_CommandError(output, context);
259
116
  }
260
117
  const data = await parseBody(output.body, context);
261
118
  let contents = {};
@@ -266,37 +123,9 @@ export const de_UpdateEnrollmentStatusCommand = async (output, context) => {
266
123
  };
267
124
  return response;
268
125
  };
269
- const de_UpdateEnrollmentStatusCommandError = async (output, context) => {
270
- const parsedOutput = {
271
- ...output,
272
- body: await parseErrorBody(output.body, context),
273
- };
274
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
275
- switch (errorCode) {
276
- case "AccessDeniedException":
277
- case "com.amazonaws.costoptimizationhub#AccessDeniedException":
278
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
279
- case "InternalServerException":
280
- case "com.amazonaws.costoptimizationhub#InternalServerException":
281
- throw await de_InternalServerExceptionRes(parsedOutput, context);
282
- case "ThrottlingException":
283
- case "com.amazonaws.costoptimizationhub#ThrottlingException":
284
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
285
- case "ValidationException":
286
- case "com.amazonaws.costoptimizationhub#ValidationException":
287
- throw await de_ValidationExceptionRes(parsedOutput, context);
288
- default:
289
- const parsedBody = parsedOutput.body;
290
- return throwDefaultError({
291
- output,
292
- parsedBody,
293
- errorCode,
294
- });
295
- }
296
- };
297
126
  export const de_UpdatePreferencesCommand = async (output, context) => {
298
127
  if (output.statusCode >= 300) {
299
- return de_UpdatePreferencesCommandError(output, context);
128
+ return de_CommandError(output, context);
300
129
  }
301
130
  const data = await parseBody(output.body, context);
302
131
  let contents = {};
@@ -307,7 +136,7 @@ export const de_UpdatePreferencesCommand = async (output, context) => {
307
136
  };
308
137
  return response;
309
138
  };
310
- const de_UpdatePreferencesCommandError = async (output, context) => {
139
+ const de_CommandError = async (output, context) => {
311
140
  const parsedOutput = {
312
141
  ...output,
313
142
  body: await parseErrorBody(output.body, context),
@@ -326,6 +155,9 @@ const de_UpdatePreferencesCommandError = async (output, context) => {
326
155
  case "ValidationException":
327
156
  case "com.amazonaws.costoptimizationhub#ValidationException":
328
157
  throw await de_ValidationExceptionRes(parsedOutput, context);
158
+ case "ResourceNotFoundException":
159
+ case "com.amazonaws.costoptimizationhub#ResourceNotFoundException":
160
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
329
161
  default:
330
162
  const parsedBody = parsedOutput.body;
331
163
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cost-optimization-hub",
3
3
  "description": "AWS SDK for JavaScript Cost Optimization Hub Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
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-cost-optimization-hub",
@@ -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.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
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",