@aws-sdk/client-dlm 3.503.1 → 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 CHANGED
@@ -439,7 +439,7 @@ var se_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, conte
439
439
  }, "se_UpdateLifecyclePolicyCommand");
440
440
  var de_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
441
441
  if (output.statusCode !== 200 && output.statusCode >= 300) {
442
- return de_CreateLifecyclePolicyCommandError(output, context);
442
+ return de_CommandError(output, context);
443
443
  }
444
444
  const contents = (0, import_smithy_client.map)({
445
445
  $metadata: deserializeMetadata(output)
@@ -451,34 +451,9 @@ var de_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
451
451
  Object.assign(contents, doc);
452
452
  return contents;
453
453
  }, "de_CreateLifecyclePolicyCommand");
454
- var de_CreateLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
455
- const parsedOutput = {
456
- ...output,
457
- body: await parseErrorBody(output.body, context)
458
- };
459
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
460
- switch (errorCode) {
461
- case "InternalServerException":
462
- case "com.amazonaws.dlm#InternalServerException":
463
- throw await de_InternalServerExceptionRes(parsedOutput, context);
464
- case "InvalidRequestException":
465
- case "com.amazonaws.dlm#InvalidRequestException":
466
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
467
- case "LimitExceededException":
468
- case "com.amazonaws.dlm#LimitExceededException":
469
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
470
- default:
471
- const parsedBody = parsedOutput.body;
472
- return throwDefaultError({
473
- output,
474
- parsedBody,
475
- errorCode
476
- });
477
- }
478
- }, "de_CreateLifecyclePolicyCommandError");
479
454
  var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
480
455
  if (output.statusCode !== 200 && output.statusCode >= 300) {
481
- return de_DeleteLifecyclePolicyCommandError(output, context);
456
+ return de_CommandError(output, context);
482
457
  }
483
458
  const contents = (0, import_smithy_client.map)({
484
459
  $metadata: deserializeMetadata(output)
@@ -486,34 +461,9 @@ var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
486
461
  await (0, import_smithy_client.collectBody)(output.body, context);
487
462
  return contents;
488
463
  }, "de_DeleteLifecyclePolicyCommand");
489
- var de_DeleteLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
490
- const parsedOutput = {
491
- ...output,
492
- body: await parseErrorBody(output.body, context)
493
- };
494
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
495
- switch (errorCode) {
496
- case "InternalServerException":
497
- case "com.amazonaws.dlm#InternalServerException":
498
- throw await de_InternalServerExceptionRes(parsedOutput, context);
499
- case "LimitExceededException":
500
- case "com.amazonaws.dlm#LimitExceededException":
501
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
502
- case "ResourceNotFoundException":
503
- case "com.amazonaws.dlm#ResourceNotFoundException":
504
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
505
- default:
506
- const parsedBody = parsedOutput.body;
507
- return throwDefaultError({
508
- output,
509
- parsedBody,
510
- errorCode
511
- });
512
- }
513
- }, "de_DeleteLifecyclePolicyCommandError");
514
464
  var de_GetLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
515
465
  if (output.statusCode !== 200 && output.statusCode >= 300) {
516
- return de_GetLifecyclePoliciesCommandError(output, context);
466
+ return de_CommandError(output, context);
517
467
  }
518
468
  const contents = (0, import_smithy_client.map)({
519
469
  $metadata: deserializeMetadata(output)
@@ -525,37 +475,9 @@ var de_GetLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (output, conte
525
475
  Object.assign(contents, doc);
526
476
  return contents;
527
477
  }, "de_GetLifecyclePoliciesCommand");
528
- var de_GetLifecyclePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
529
- const parsedOutput = {
530
- ...output,
531
- body: await parseErrorBody(output.body, context)
532
- };
533
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
534
- switch (errorCode) {
535
- case "InternalServerException":
536
- case "com.amazonaws.dlm#InternalServerException":
537
- throw await de_InternalServerExceptionRes(parsedOutput, context);
538
- case "InvalidRequestException":
539
- case "com.amazonaws.dlm#InvalidRequestException":
540
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
541
- case "LimitExceededException":
542
- case "com.amazonaws.dlm#LimitExceededException":
543
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
544
- case "ResourceNotFoundException":
545
- case "com.amazonaws.dlm#ResourceNotFoundException":
546
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
547
- default:
548
- const parsedBody = parsedOutput.body;
549
- return throwDefaultError({
550
- output,
551
- parsedBody,
552
- errorCode
553
- });
554
- }
555
- }, "de_GetLifecyclePoliciesCommandError");
556
478
  var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
557
479
  if (output.statusCode !== 200 && output.statusCode >= 300) {
558
- return de_GetLifecyclePolicyCommandError(output, context);
480
+ return de_CommandError(output, context);
559
481
  }
560
482
  const contents = (0, import_smithy_client.map)({
561
483
  $metadata: deserializeMetadata(output)
@@ -567,34 +489,9 @@ var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context
567
489
  Object.assign(contents, doc);
568
490
  return contents;
569
491
  }, "de_GetLifecyclePolicyCommand");
570
- var de_GetLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
571
- const parsedOutput = {
572
- ...output,
573
- body: await parseErrorBody(output.body, context)
574
- };
575
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
576
- switch (errorCode) {
577
- case "InternalServerException":
578
- case "com.amazonaws.dlm#InternalServerException":
579
- throw await de_InternalServerExceptionRes(parsedOutput, context);
580
- case "LimitExceededException":
581
- case "com.amazonaws.dlm#LimitExceededException":
582
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
583
- case "ResourceNotFoundException":
584
- case "com.amazonaws.dlm#ResourceNotFoundException":
585
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
586
- default:
587
- const parsedBody = parsedOutput.body;
588
- return throwDefaultError({
589
- output,
590
- parsedBody,
591
- errorCode
592
- });
593
- }
594
- }, "de_GetLifecyclePolicyCommandError");
595
492
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
596
493
  if (output.statusCode !== 200 && output.statusCode >= 300) {
597
- return de_ListTagsForResourceCommandError(output, context);
494
+ return de_CommandError(output, context);
598
495
  }
599
496
  const contents = (0, import_smithy_client.map)({
600
497
  $metadata: deserializeMetadata(output)
@@ -606,34 +503,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
606
503
  Object.assign(contents, doc);
607
504
  return contents;
608
505
  }, "de_ListTagsForResourceCommand");
609
- var de_ListTagsForResourceCommandError = /* @__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 "InternalServerException":
617
- case "com.amazonaws.dlm#InternalServerException":
618
- throw await de_InternalServerExceptionRes(parsedOutput, context);
619
- case "InvalidRequestException":
620
- case "com.amazonaws.dlm#InvalidRequestException":
621
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
622
- case "ResourceNotFoundException":
623
- case "com.amazonaws.dlm#ResourceNotFoundException":
624
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
625
- default:
626
- const parsedBody = parsedOutput.body;
627
- return throwDefaultError({
628
- output,
629
- parsedBody,
630
- errorCode
631
- });
632
- }
633
- }, "de_ListTagsForResourceCommandError");
634
506
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
635
507
  if (output.statusCode !== 200 && output.statusCode >= 300) {
636
- return de_TagResourceCommandError(output, context);
508
+ return de_CommandError(output, context);
637
509
  }
638
510
  const contents = (0, import_smithy_client.map)({
639
511
  $metadata: deserializeMetadata(output)
@@ -641,34 +513,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
641
513
  await (0, import_smithy_client.collectBody)(output.body, context);
642
514
  return contents;
643
515
  }, "de_TagResourceCommand");
644
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
645
- const parsedOutput = {
646
- ...output,
647
- body: await parseErrorBody(output.body, context)
648
- };
649
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
650
- switch (errorCode) {
651
- case "InternalServerException":
652
- case "com.amazonaws.dlm#InternalServerException":
653
- throw await de_InternalServerExceptionRes(parsedOutput, context);
654
- case "InvalidRequestException":
655
- case "com.amazonaws.dlm#InvalidRequestException":
656
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
657
- case "ResourceNotFoundException":
658
- case "com.amazonaws.dlm#ResourceNotFoundException":
659
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
660
- default:
661
- const parsedBody = parsedOutput.body;
662
- return throwDefaultError({
663
- output,
664
- parsedBody,
665
- errorCode
666
- });
667
- }
668
- }, "de_TagResourceCommandError");
669
516
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
670
517
  if (output.statusCode !== 200 && output.statusCode >= 300) {
671
- return de_UntagResourceCommandError(output, context);
518
+ return de_CommandError(output, context);
672
519
  }
673
520
  const contents = (0, import_smithy_client.map)({
674
521
  $metadata: deserializeMetadata(output)
@@ -676,34 +523,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
676
523
  await (0, import_smithy_client.collectBody)(output.body, context);
677
524
  return contents;
678
525
  }, "de_UntagResourceCommand");
679
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
680
- const parsedOutput = {
681
- ...output,
682
- body: await parseErrorBody(output.body, context)
683
- };
684
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
685
- switch (errorCode) {
686
- case "InternalServerException":
687
- case "com.amazonaws.dlm#InternalServerException":
688
- throw await de_InternalServerExceptionRes(parsedOutput, context);
689
- case "InvalidRequestException":
690
- case "com.amazonaws.dlm#InvalidRequestException":
691
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
692
- case "ResourceNotFoundException":
693
- case "com.amazonaws.dlm#ResourceNotFoundException":
694
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
695
- default:
696
- const parsedBody = parsedOutput.body;
697
- return throwDefaultError({
698
- output,
699
- parsedBody,
700
- errorCode
701
- });
702
- }
703
- }, "de_UntagResourceCommandError");
704
526
  var de_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
705
527
  if (output.statusCode !== 200 && output.statusCode >= 300) {
706
- return de_UpdateLifecyclePolicyCommandError(output, context);
528
+ return de_CommandError(output, context);
707
529
  }
708
530
  const contents = (0, import_smithy_client.map)({
709
531
  $metadata: deserializeMetadata(output)
@@ -711,7 +533,7 @@ var de_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
711
533
  await (0, import_smithy_client.collectBody)(output.body, context);
712
534
  return contents;
713
535
  }, "de_UpdateLifecyclePolicyCommand");
714
- var de_UpdateLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
536
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
715
537
  const parsedOutput = {
716
538
  ...output,
717
539
  body: await parseErrorBody(output.body, context)
@@ -738,7 +560,7 @@ var de_UpdateLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output,
738
560
  errorCode
739
561
  });
740
562
  }
741
- }, "de_UpdateLifecyclePolicyCommandError");
563
+ }, "de_CommandError");
742
564
  var throwDefaultError = (0, import_smithy_client.withBaseException)(DLMServiceException);
743
565
  var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
744
566
  const contents = (0, import_smithy_client.map)({});
@@ -123,7 +123,7 @@ export const se_UpdateLifecyclePolicyCommand = async (input, context) => {
123
123
  };
124
124
  export const de_CreateLifecyclePolicyCommand = async (output, context) => {
125
125
  if (output.statusCode !== 200 && output.statusCode >= 300) {
126
- return de_CreateLifecyclePolicyCommandError(output, context);
126
+ return de_CommandError(output, context);
127
127
  }
128
128
  const contents = map({
129
129
  $metadata: deserializeMetadata(output),
@@ -135,34 +135,9 @@ export const de_CreateLifecyclePolicyCommand = async (output, context) => {
135
135
  Object.assign(contents, doc);
136
136
  return contents;
137
137
  };
138
- const de_CreateLifecyclePolicyCommandError = async (output, context) => {
139
- const parsedOutput = {
140
- ...output,
141
- body: await parseErrorBody(output.body, context),
142
- };
143
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
144
- switch (errorCode) {
145
- case "InternalServerException":
146
- case "com.amazonaws.dlm#InternalServerException":
147
- throw await de_InternalServerExceptionRes(parsedOutput, context);
148
- case "InvalidRequestException":
149
- case "com.amazonaws.dlm#InvalidRequestException":
150
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
151
- case "LimitExceededException":
152
- case "com.amazonaws.dlm#LimitExceededException":
153
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
154
- default:
155
- const parsedBody = parsedOutput.body;
156
- return throwDefaultError({
157
- output,
158
- parsedBody,
159
- errorCode,
160
- });
161
- }
162
- };
163
138
  export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
164
139
  if (output.statusCode !== 200 && output.statusCode >= 300) {
165
- return de_DeleteLifecyclePolicyCommandError(output, context);
140
+ return de_CommandError(output, context);
166
141
  }
167
142
  const contents = map({
168
143
  $metadata: deserializeMetadata(output),
@@ -170,34 +145,9 @@ export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
170
145
  await collectBody(output.body, context);
171
146
  return contents;
172
147
  };
173
- const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
174
- const parsedOutput = {
175
- ...output,
176
- body: await parseErrorBody(output.body, context),
177
- };
178
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
179
- switch (errorCode) {
180
- case "InternalServerException":
181
- case "com.amazonaws.dlm#InternalServerException":
182
- throw await de_InternalServerExceptionRes(parsedOutput, context);
183
- case "LimitExceededException":
184
- case "com.amazonaws.dlm#LimitExceededException":
185
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
186
- case "ResourceNotFoundException":
187
- case "com.amazonaws.dlm#ResourceNotFoundException":
188
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
189
- default:
190
- const parsedBody = parsedOutput.body;
191
- return throwDefaultError({
192
- output,
193
- parsedBody,
194
- errorCode,
195
- });
196
- }
197
- };
198
148
  export const de_GetLifecyclePoliciesCommand = async (output, context) => {
199
149
  if (output.statusCode !== 200 && output.statusCode >= 300) {
200
- return de_GetLifecyclePoliciesCommandError(output, context);
150
+ return de_CommandError(output, context);
201
151
  }
202
152
  const contents = map({
203
153
  $metadata: deserializeMetadata(output),
@@ -209,37 +159,9 @@ export const de_GetLifecyclePoliciesCommand = async (output, context) => {
209
159
  Object.assign(contents, doc);
210
160
  return contents;
211
161
  };
212
- const de_GetLifecyclePoliciesCommandError = async (output, context) => {
213
- const parsedOutput = {
214
- ...output,
215
- body: await parseErrorBody(output.body, context),
216
- };
217
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
218
- switch (errorCode) {
219
- case "InternalServerException":
220
- case "com.amazonaws.dlm#InternalServerException":
221
- throw await de_InternalServerExceptionRes(parsedOutput, context);
222
- case "InvalidRequestException":
223
- case "com.amazonaws.dlm#InvalidRequestException":
224
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
225
- case "LimitExceededException":
226
- case "com.amazonaws.dlm#LimitExceededException":
227
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
228
- case "ResourceNotFoundException":
229
- case "com.amazonaws.dlm#ResourceNotFoundException":
230
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
231
- default:
232
- const parsedBody = parsedOutput.body;
233
- return throwDefaultError({
234
- output,
235
- parsedBody,
236
- errorCode,
237
- });
238
- }
239
- };
240
162
  export const de_GetLifecyclePolicyCommand = async (output, context) => {
241
163
  if (output.statusCode !== 200 && output.statusCode >= 300) {
242
- return de_GetLifecyclePolicyCommandError(output, context);
164
+ return de_CommandError(output, context);
243
165
  }
244
166
  const contents = map({
245
167
  $metadata: deserializeMetadata(output),
@@ -251,34 +173,9 @@ export const de_GetLifecyclePolicyCommand = async (output, context) => {
251
173
  Object.assign(contents, doc);
252
174
  return contents;
253
175
  };
254
- const de_GetLifecyclePolicyCommandError = async (output, context) => {
255
- const parsedOutput = {
256
- ...output,
257
- body: await parseErrorBody(output.body, context),
258
- };
259
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
260
- switch (errorCode) {
261
- case "InternalServerException":
262
- case "com.amazonaws.dlm#InternalServerException":
263
- throw await de_InternalServerExceptionRes(parsedOutput, context);
264
- case "LimitExceededException":
265
- case "com.amazonaws.dlm#LimitExceededException":
266
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
267
- case "ResourceNotFoundException":
268
- case "com.amazonaws.dlm#ResourceNotFoundException":
269
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
270
- default:
271
- const parsedBody = parsedOutput.body;
272
- return throwDefaultError({
273
- output,
274
- parsedBody,
275
- errorCode,
276
- });
277
- }
278
- };
279
176
  export const de_ListTagsForResourceCommand = async (output, context) => {
280
177
  if (output.statusCode !== 200 && output.statusCode >= 300) {
281
- return de_ListTagsForResourceCommandError(output, context);
178
+ return de_CommandError(output, context);
282
179
  }
283
180
  const contents = map({
284
181
  $metadata: deserializeMetadata(output),
@@ -290,34 +187,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
290
187
  Object.assign(contents, doc);
291
188
  return contents;
292
189
  };
293
- const de_ListTagsForResourceCommandError = async (output, context) => {
294
- const parsedOutput = {
295
- ...output,
296
- body: await parseErrorBody(output.body, context),
297
- };
298
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
299
- switch (errorCode) {
300
- case "InternalServerException":
301
- case "com.amazonaws.dlm#InternalServerException":
302
- throw await de_InternalServerExceptionRes(parsedOutput, context);
303
- case "InvalidRequestException":
304
- case "com.amazonaws.dlm#InvalidRequestException":
305
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
306
- case "ResourceNotFoundException":
307
- case "com.amazonaws.dlm#ResourceNotFoundException":
308
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
309
- default:
310
- const parsedBody = parsedOutput.body;
311
- return throwDefaultError({
312
- output,
313
- parsedBody,
314
- errorCode,
315
- });
316
- }
317
- };
318
190
  export const de_TagResourceCommand = async (output, context) => {
319
191
  if (output.statusCode !== 200 && output.statusCode >= 300) {
320
- return de_TagResourceCommandError(output, context);
192
+ return de_CommandError(output, context);
321
193
  }
322
194
  const contents = map({
323
195
  $metadata: deserializeMetadata(output),
@@ -325,34 +197,9 @@ export const de_TagResourceCommand = async (output, context) => {
325
197
  await collectBody(output.body, context);
326
198
  return contents;
327
199
  };
328
- const de_TagResourceCommandError = async (output, context) => {
329
- const parsedOutput = {
330
- ...output,
331
- body: await parseErrorBody(output.body, context),
332
- };
333
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
334
- switch (errorCode) {
335
- case "InternalServerException":
336
- case "com.amazonaws.dlm#InternalServerException":
337
- throw await de_InternalServerExceptionRes(parsedOutput, context);
338
- case "InvalidRequestException":
339
- case "com.amazonaws.dlm#InvalidRequestException":
340
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
341
- case "ResourceNotFoundException":
342
- case "com.amazonaws.dlm#ResourceNotFoundException":
343
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
344
- default:
345
- const parsedBody = parsedOutput.body;
346
- return throwDefaultError({
347
- output,
348
- parsedBody,
349
- errorCode,
350
- });
351
- }
352
- };
353
200
  export const de_UntagResourceCommand = async (output, context) => {
354
201
  if (output.statusCode !== 200 && output.statusCode >= 300) {
355
- return de_UntagResourceCommandError(output, context);
202
+ return de_CommandError(output, context);
356
203
  }
357
204
  const contents = map({
358
205
  $metadata: deserializeMetadata(output),
@@ -360,34 +207,9 @@ export const de_UntagResourceCommand = async (output, context) => {
360
207
  await collectBody(output.body, context);
361
208
  return contents;
362
209
  };
363
- const de_UntagResourceCommandError = async (output, context) => {
364
- const parsedOutput = {
365
- ...output,
366
- body: await parseErrorBody(output.body, context),
367
- };
368
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
369
- switch (errorCode) {
370
- case "InternalServerException":
371
- case "com.amazonaws.dlm#InternalServerException":
372
- throw await de_InternalServerExceptionRes(parsedOutput, context);
373
- case "InvalidRequestException":
374
- case "com.amazonaws.dlm#InvalidRequestException":
375
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
376
- case "ResourceNotFoundException":
377
- case "com.amazonaws.dlm#ResourceNotFoundException":
378
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
379
- default:
380
- const parsedBody = parsedOutput.body;
381
- return throwDefaultError({
382
- output,
383
- parsedBody,
384
- errorCode,
385
- });
386
- }
387
- };
388
210
  export const de_UpdateLifecyclePolicyCommand = async (output, context) => {
389
211
  if (output.statusCode !== 200 && output.statusCode >= 300) {
390
- return de_UpdateLifecyclePolicyCommandError(output, context);
212
+ return de_CommandError(output, context);
391
213
  }
392
214
  const contents = map({
393
215
  $metadata: deserializeMetadata(output),
@@ -395,7 +217,7 @@ export const de_UpdateLifecyclePolicyCommand = async (output, context) => {
395
217
  await collectBody(output.body, context);
396
218
  return contents;
397
219
  };
398
- const de_UpdateLifecyclePolicyCommandError = async (output, context) => {
220
+ const de_CommandError = async (output, context) => {
399
221
  const parsedOutput = {
400
222
  ...output,
401
223
  body: await parseErrorBody(output.body, context),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dlm",
3
3
  "description": "AWS SDK for JavaScript Dlm Client for Node.js, Browser and React Native",
4
- "version": "3.503.1",
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-dlm",
@@ -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.502.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.503.1",
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",