@aws-sdk/client-ebs 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
@@ -504,7 +504,7 @@ var se_StartSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
504
504
  }, "se_StartSnapshotCommand");
505
505
  var de_CompleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
506
506
  if (output.statusCode !== 202 && output.statusCode >= 300) {
507
- return de_CompleteSnapshotCommandError(output, context);
507
+ return de_CommandError(output, context);
508
508
  }
509
509
  const contents = (0, import_smithy_client.map)({
510
510
  $metadata: deserializeMetadata(output)
@@ -516,43 +516,9 @@ var de_CompleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context)
516
516
  Object.assign(contents, doc);
517
517
  return contents;
518
518
  }, "de_CompleteSnapshotCommand");
519
- var de_CompleteSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
520
- const parsedOutput = {
521
- ...output,
522
- body: await parseErrorBody(output.body, context)
523
- };
524
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
525
- switch (errorCode) {
526
- case "AccessDeniedException":
527
- case "com.amazonaws.ebs#AccessDeniedException":
528
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
529
- case "InternalServerException":
530
- case "com.amazonaws.ebs#InternalServerException":
531
- throw await de_InternalServerExceptionRes(parsedOutput, context);
532
- case "RequestThrottledException":
533
- case "com.amazonaws.ebs#RequestThrottledException":
534
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
535
- case "ResourceNotFoundException":
536
- case "com.amazonaws.ebs#ResourceNotFoundException":
537
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
538
- case "ServiceQuotaExceededException":
539
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
540
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
541
- case "ValidationException":
542
- case "com.amazonaws.ebs#ValidationException":
543
- throw await de_ValidationExceptionRes(parsedOutput, context);
544
- default:
545
- const parsedBody = parsedOutput.body;
546
- return throwDefaultError({
547
- output,
548
- parsedBody,
549
- errorCode
550
- });
551
- }
552
- }, "de_CompleteSnapshotCommandError");
553
519
  var de_GetSnapshotBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
554
520
  if (output.statusCode !== 200 && output.statusCode >= 300) {
555
- return de_GetSnapshotBlockCommandError(output, context);
521
+ return de_CommandError(output, context);
556
522
  }
557
523
  const contents = (0, import_smithy_client.map)({
558
524
  $metadata: deserializeMetadata(output),
@@ -565,43 +531,9 @@ var de_GetSnapshotBlockCommand = /* @__PURE__ */ __name(async (output, context)
565
531
  contents.BlockData = data;
566
532
  return contents;
567
533
  }, "de_GetSnapshotBlockCommand");
568
- var de_GetSnapshotBlockCommandError = /* @__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.ebs#AccessDeniedException":
577
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
578
- case "InternalServerException":
579
- case "com.amazonaws.ebs#InternalServerException":
580
- throw await de_InternalServerExceptionRes(parsedOutput, context);
581
- case "RequestThrottledException":
582
- case "com.amazonaws.ebs#RequestThrottledException":
583
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
584
- case "ResourceNotFoundException":
585
- case "com.amazonaws.ebs#ResourceNotFoundException":
586
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
587
- case "ServiceQuotaExceededException":
588
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
589
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
590
- case "ValidationException":
591
- case "com.amazonaws.ebs#ValidationException":
592
- throw await de_ValidationExceptionRes(parsedOutput, context);
593
- default:
594
- const parsedBody = parsedOutput.body;
595
- return throwDefaultError({
596
- output,
597
- parsedBody,
598
- errorCode
599
- });
600
- }
601
- }, "de_GetSnapshotBlockCommandError");
602
534
  var de_ListChangedBlocksCommand = /* @__PURE__ */ __name(async (output, context) => {
603
535
  if (output.statusCode !== 200 && output.statusCode >= 300) {
604
- return de_ListChangedBlocksCommandError(output, context);
536
+ return de_CommandError(output, context);
605
537
  }
606
538
  const contents = (0, import_smithy_client.map)({
607
539
  $metadata: deserializeMetadata(output)
@@ -617,43 +549,9 @@ var de_ListChangedBlocksCommand = /* @__PURE__ */ __name(async (output, context)
617
549
  Object.assign(contents, doc);
618
550
  return contents;
619
551
  }, "de_ListChangedBlocksCommand");
620
- var de_ListChangedBlocksCommandError = /* @__PURE__ */ __name(async (output, context) => {
621
- const parsedOutput = {
622
- ...output,
623
- body: await parseErrorBody(output.body, context)
624
- };
625
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
626
- switch (errorCode) {
627
- case "AccessDeniedException":
628
- case "com.amazonaws.ebs#AccessDeniedException":
629
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
630
- case "InternalServerException":
631
- case "com.amazonaws.ebs#InternalServerException":
632
- throw await de_InternalServerExceptionRes(parsedOutput, context);
633
- case "RequestThrottledException":
634
- case "com.amazonaws.ebs#RequestThrottledException":
635
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
636
- case "ResourceNotFoundException":
637
- case "com.amazonaws.ebs#ResourceNotFoundException":
638
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
639
- case "ServiceQuotaExceededException":
640
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
641
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
642
- case "ValidationException":
643
- case "com.amazonaws.ebs#ValidationException":
644
- throw await de_ValidationExceptionRes(parsedOutput, context);
645
- default:
646
- const parsedBody = parsedOutput.body;
647
- return throwDefaultError({
648
- output,
649
- parsedBody,
650
- errorCode
651
- });
652
- }
653
- }, "de_ListChangedBlocksCommandError");
654
552
  var de_ListSnapshotBlocksCommand = /* @__PURE__ */ __name(async (output, context) => {
655
553
  if (output.statusCode !== 200 && output.statusCode >= 300) {
656
- return de_ListSnapshotBlocksCommandError(output, context);
554
+ return de_CommandError(output, context);
657
555
  }
658
556
  const contents = (0, import_smithy_client.map)({
659
557
  $metadata: deserializeMetadata(output)
@@ -669,43 +567,9 @@ var de_ListSnapshotBlocksCommand = /* @__PURE__ */ __name(async (output, context
669
567
  Object.assign(contents, doc);
670
568
  return contents;
671
569
  }, "de_ListSnapshotBlocksCommand");
672
- var de_ListSnapshotBlocksCommandError = /* @__PURE__ */ __name(async (output, context) => {
673
- const parsedOutput = {
674
- ...output,
675
- body: await parseErrorBody(output.body, context)
676
- };
677
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
678
- switch (errorCode) {
679
- case "AccessDeniedException":
680
- case "com.amazonaws.ebs#AccessDeniedException":
681
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
682
- case "InternalServerException":
683
- case "com.amazonaws.ebs#InternalServerException":
684
- throw await de_InternalServerExceptionRes(parsedOutput, context);
685
- case "RequestThrottledException":
686
- case "com.amazonaws.ebs#RequestThrottledException":
687
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
688
- case "ResourceNotFoundException":
689
- case "com.amazonaws.ebs#ResourceNotFoundException":
690
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
691
- case "ServiceQuotaExceededException":
692
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
693
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
694
- case "ValidationException":
695
- case "com.amazonaws.ebs#ValidationException":
696
- throw await de_ValidationExceptionRes(parsedOutput, context);
697
- default:
698
- const parsedBody = parsedOutput.body;
699
- return throwDefaultError({
700
- output,
701
- parsedBody,
702
- errorCode
703
- });
704
- }
705
- }, "de_ListSnapshotBlocksCommandError");
706
570
  var de_PutSnapshotBlockCommand = /* @__PURE__ */ __name(async (output, context) => {
707
571
  if (output.statusCode !== 201 && output.statusCode >= 300) {
708
- return de_PutSnapshotBlockCommandError(output, context);
572
+ return de_CommandError(output, context);
709
573
  }
710
574
  const contents = (0, import_smithy_client.map)({
711
575
  $metadata: deserializeMetadata(output),
@@ -715,43 +579,9 @@ var de_PutSnapshotBlockCommand = /* @__PURE__ */ __name(async (output, context)
715
579
  await (0, import_smithy_client.collectBody)(output.body, context);
716
580
  return contents;
717
581
  }, "de_PutSnapshotBlockCommand");
718
- var de_PutSnapshotBlockCommandError = /* @__PURE__ */ __name(async (output, context) => {
719
- const parsedOutput = {
720
- ...output,
721
- body: await parseErrorBody(output.body, context)
722
- };
723
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
724
- switch (errorCode) {
725
- case "AccessDeniedException":
726
- case "com.amazonaws.ebs#AccessDeniedException":
727
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
728
- case "InternalServerException":
729
- case "com.amazonaws.ebs#InternalServerException":
730
- throw await de_InternalServerExceptionRes(parsedOutput, context);
731
- case "RequestThrottledException":
732
- case "com.amazonaws.ebs#RequestThrottledException":
733
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
734
- case "ResourceNotFoundException":
735
- case "com.amazonaws.ebs#ResourceNotFoundException":
736
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
737
- case "ServiceQuotaExceededException":
738
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
739
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
740
- case "ValidationException":
741
- case "com.amazonaws.ebs#ValidationException":
742
- throw await de_ValidationExceptionRes(parsedOutput, context);
743
- default:
744
- const parsedBody = parsedOutput.body;
745
- return throwDefaultError({
746
- output,
747
- parsedBody,
748
- errorCode
749
- });
750
- }
751
- }, "de_PutSnapshotBlockCommandError");
752
582
  var de_StartSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
753
583
  if (output.statusCode !== 201 && output.statusCode >= 300) {
754
- return de_StartSnapshotCommandError(output, context);
584
+ return de_CommandError(output, context);
755
585
  }
756
586
  const contents = (0, import_smithy_client.map)({
757
587
  $metadata: deserializeMetadata(output)
@@ -773,7 +603,7 @@ var de_StartSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
773
603
  Object.assign(contents, doc);
774
604
  return contents;
775
605
  }, "de_StartSnapshotCommand");
776
- var de_StartSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
606
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
777
607
  const parsedOutput = {
778
608
  ...output,
779
609
  body: await parseErrorBody(output.body, context)
@@ -783,12 +613,6 @@ var de_StartSnapshotCommandError = /* @__PURE__ */ __name(async (output, context
783
613
  case "AccessDeniedException":
784
614
  case "com.amazonaws.ebs#AccessDeniedException":
785
615
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
786
- case "ConcurrentLimitExceededException":
787
- case "com.amazonaws.ebs#ConcurrentLimitExceededException":
788
- throw await de_ConcurrentLimitExceededExceptionRes(parsedOutput, context);
789
- case "ConflictException":
790
- case "com.amazonaws.ebs#ConflictException":
791
- throw await de_ConflictExceptionRes(parsedOutput, context);
792
616
  case "InternalServerException":
793
617
  case "com.amazonaws.ebs#InternalServerException":
794
618
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -804,6 +628,12 @@ var de_StartSnapshotCommandError = /* @__PURE__ */ __name(async (output, context
804
628
  case "ValidationException":
805
629
  case "com.amazonaws.ebs#ValidationException":
806
630
  throw await de_ValidationExceptionRes(parsedOutput, context);
631
+ case "ConcurrentLimitExceededException":
632
+ case "com.amazonaws.ebs#ConcurrentLimitExceededException":
633
+ throw await de_ConcurrentLimitExceededExceptionRes(parsedOutput, context);
634
+ case "ConflictException":
635
+ case "com.amazonaws.ebs#ConflictException":
636
+ throw await de_ConflictExceptionRes(parsedOutput, context);
807
637
  default:
808
638
  const parsedBody = parsedOutput.body;
809
639
  return throwDefaultError({
@@ -812,7 +642,7 @@ var de_StartSnapshotCommandError = /* @__PURE__ */ __name(async (output, context
812
642
  errorCode
813
643
  });
814
644
  }
815
- }, "de_StartSnapshotCommandError");
645
+ }, "de_CommandError");
816
646
  var throwDefaultError = (0, import_smithy_client.withBaseException)(EBSServiceException);
817
647
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
818
648
  const contents = (0, import_smithy_client.map)({});
@@ -101,7 +101,7 @@ export const se_StartSnapshotCommand = async (input, context) => {
101
101
  };
102
102
  export const de_CompleteSnapshotCommand = async (output, context) => {
103
103
  if (output.statusCode !== 202 && output.statusCode >= 300) {
104
- return de_CompleteSnapshotCommandError(output, context);
104
+ return de_CommandError(output, context);
105
105
  }
106
106
  const contents = map({
107
107
  $metadata: deserializeMetadata(output),
@@ -113,43 +113,9 @@ export const de_CompleteSnapshotCommand = async (output, context) => {
113
113
  Object.assign(contents, doc);
114
114
  return contents;
115
115
  };
116
- const de_CompleteSnapshotCommandError = async (output, context) => {
117
- const parsedOutput = {
118
- ...output,
119
- body: await parseErrorBody(output.body, context),
120
- };
121
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
122
- switch (errorCode) {
123
- case "AccessDeniedException":
124
- case "com.amazonaws.ebs#AccessDeniedException":
125
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
126
- case "InternalServerException":
127
- case "com.amazonaws.ebs#InternalServerException":
128
- throw await de_InternalServerExceptionRes(parsedOutput, context);
129
- case "RequestThrottledException":
130
- case "com.amazonaws.ebs#RequestThrottledException":
131
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
132
- case "ResourceNotFoundException":
133
- case "com.amazonaws.ebs#ResourceNotFoundException":
134
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
135
- case "ServiceQuotaExceededException":
136
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
137
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
138
- case "ValidationException":
139
- case "com.amazonaws.ebs#ValidationException":
140
- throw await de_ValidationExceptionRes(parsedOutput, context);
141
- default:
142
- const parsedBody = parsedOutput.body;
143
- return throwDefaultError({
144
- output,
145
- parsedBody,
146
- errorCode,
147
- });
148
- }
149
- };
150
116
  export const de_GetSnapshotBlockCommand = async (output, context) => {
151
117
  if (output.statusCode !== 200 && output.statusCode >= 300) {
152
- return de_GetSnapshotBlockCommandError(output, context);
118
+ return de_CommandError(output, context);
153
119
  }
154
120
  const contents = map({
155
121
  $metadata: deserializeMetadata(output),
@@ -162,43 +128,9 @@ export const de_GetSnapshotBlockCommand = async (output, context) => {
162
128
  contents.BlockData = data;
163
129
  return contents;
164
130
  };
165
- const de_GetSnapshotBlockCommandError = 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 "AccessDeniedException":
173
- case "com.amazonaws.ebs#AccessDeniedException":
174
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
175
- case "InternalServerException":
176
- case "com.amazonaws.ebs#InternalServerException":
177
- throw await de_InternalServerExceptionRes(parsedOutput, context);
178
- case "RequestThrottledException":
179
- case "com.amazonaws.ebs#RequestThrottledException":
180
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
181
- case "ResourceNotFoundException":
182
- case "com.amazonaws.ebs#ResourceNotFoundException":
183
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
184
- case "ServiceQuotaExceededException":
185
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
186
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
187
- case "ValidationException":
188
- case "com.amazonaws.ebs#ValidationException":
189
- throw await de_ValidationExceptionRes(parsedOutput, context);
190
- default:
191
- const parsedBody = parsedOutput.body;
192
- return throwDefaultError({
193
- output,
194
- parsedBody,
195
- errorCode,
196
- });
197
- }
198
- };
199
131
  export const de_ListChangedBlocksCommand = async (output, context) => {
200
132
  if (output.statusCode !== 200 && output.statusCode >= 300) {
201
- return de_ListChangedBlocksCommandError(output, context);
133
+ return de_CommandError(output, context);
202
134
  }
203
135
  const contents = map({
204
136
  $metadata: deserializeMetadata(output),
@@ -214,43 +146,9 @@ export const de_ListChangedBlocksCommand = async (output, context) => {
214
146
  Object.assign(contents, doc);
215
147
  return contents;
216
148
  };
217
- const de_ListChangedBlocksCommandError = async (output, context) => {
218
- const parsedOutput = {
219
- ...output,
220
- body: await parseErrorBody(output.body, context),
221
- };
222
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
223
- switch (errorCode) {
224
- case "AccessDeniedException":
225
- case "com.amazonaws.ebs#AccessDeniedException":
226
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
227
- case "InternalServerException":
228
- case "com.amazonaws.ebs#InternalServerException":
229
- throw await de_InternalServerExceptionRes(parsedOutput, context);
230
- case "RequestThrottledException":
231
- case "com.amazonaws.ebs#RequestThrottledException":
232
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
233
- case "ResourceNotFoundException":
234
- case "com.amazonaws.ebs#ResourceNotFoundException":
235
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
236
- case "ServiceQuotaExceededException":
237
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
238
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
239
- case "ValidationException":
240
- case "com.amazonaws.ebs#ValidationException":
241
- throw await de_ValidationExceptionRes(parsedOutput, context);
242
- default:
243
- const parsedBody = parsedOutput.body;
244
- return throwDefaultError({
245
- output,
246
- parsedBody,
247
- errorCode,
248
- });
249
- }
250
- };
251
149
  export const de_ListSnapshotBlocksCommand = async (output, context) => {
252
150
  if (output.statusCode !== 200 && output.statusCode >= 300) {
253
- return de_ListSnapshotBlocksCommandError(output, context);
151
+ return de_CommandError(output, context);
254
152
  }
255
153
  const contents = map({
256
154
  $metadata: deserializeMetadata(output),
@@ -266,43 +164,9 @@ export const de_ListSnapshotBlocksCommand = async (output, context) => {
266
164
  Object.assign(contents, doc);
267
165
  return contents;
268
166
  };
269
- const de_ListSnapshotBlocksCommandError = 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.ebs#AccessDeniedException":
278
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
279
- case "InternalServerException":
280
- case "com.amazonaws.ebs#InternalServerException":
281
- throw await de_InternalServerExceptionRes(parsedOutput, context);
282
- case "RequestThrottledException":
283
- case "com.amazonaws.ebs#RequestThrottledException":
284
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
285
- case "ResourceNotFoundException":
286
- case "com.amazonaws.ebs#ResourceNotFoundException":
287
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
288
- case "ServiceQuotaExceededException":
289
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
290
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
291
- case "ValidationException":
292
- case "com.amazonaws.ebs#ValidationException":
293
- throw await de_ValidationExceptionRes(parsedOutput, context);
294
- default:
295
- const parsedBody = parsedOutput.body;
296
- return throwDefaultError({
297
- output,
298
- parsedBody,
299
- errorCode,
300
- });
301
- }
302
- };
303
167
  export const de_PutSnapshotBlockCommand = async (output, context) => {
304
168
  if (output.statusCode !== 201 && output.statusCode >= 300) {
305
- return de_PutSnapshotBlockCommandError(output, context);
169
+ return de_CommandError(output, context);
306
170
  }
307
171
  const contents = map({
308
172
  $metadata: deserializeMetadata(output),
@@ -312,43 +176,9 @@ export const de_PutSnapshotBlockCommand = async (output, context) => {
312
176
  await collectBody(output.body, context);
313
177
  return contents;
314
178
  };
315
- const de_PutSnapshotBlockCommandError = async (output, context) => {
316
- const parsedOutput = {
317
- ...output,
318
- body: await parseErrorBody(output.body, context),
319
- };
320
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
321
- switch (errorCode) {
322
- case "AccessDeniedException":
323
- case "com.amazonaws.ebs#AccessDeniedException":
324
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
325
- case "InternalServerException":
326
- case "com.amazonaws.ebs#InternalServerException":
327
- throw await de_InternalServerExceptionRes(parsedOutput, context);
328
- case "RequestThrottledException":
329
- case "com.amazonaws.ebs#RequestThrottledException":
330
- throw await de_RequestThrottledExceptionRes(parsedOutput, context);
331
- case "ResourceNotFoundException":
332
- case "com.amazonaws.ebs#ResourceNotFoundException":
333
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
334
- case "ServiceQuotaExceededException":
335
- case "com.amazonaws.ebs#ServiceQuotaExceededException":
336
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
337
- case "ValidationException":
338
- case "com.amazonaws.ebs#ValidationException":
339
- throw await de_ValidationExceptionRes(parsedOutput, context);
340
- default:
341
- const parsedBody = parsedOutput.body;
342
- return throwDefaultError({
343
- output,
344
- parsedBody,
345
- errorCode,
346
- });
347
- }
348
- };
349
179
  export const de_StartSnapshotCommand = async (output, context) => {
350
180
  if (output.statusCode !== 201 && output.statusCode >= 300) {
351
- return de_StartSnapshotCommandError(output, context);
181
+ return de_CommandError(output, context);
352
182
  }
353
183
  const contents = map({
354
184
  $metadata: deserializeMetadata(output),
@@ -370,7 +200,7 @@ export const de_StartSnapshotCommand = async (output, context) => {
370
200
  Object.assign(contents, doc);
371
201
  return contents;
372
202
  };
373
- const de_StartSnapshotCommandError = async (output, context) => {
203
+ const de_CommandError = async (output, context) => {
374
204
  const parsedOutput = {
375
205
  ...output,
376
206
  body: await parseErrorBody(output.body, context),
@@ -380,12 +210,6 @@ const de_StartSnapshotCommandError = async (output, context) => {
380
210
  case "AccessDeniedException":
381
211
  case "com.amazonaws.ebs#AccessDeniedException":
382
212
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
383
- case "ConcurrentLimitExceededException":
384
- case "com.amazonaws.ebs#ConcurrentLimitExceededException":
385
- throw await de_ConcurrentLimitExceededExceptionRes(parsedOutput, context);
386
- case "ConflictException":
387
- case "com.amazonaws.ebs#ConflictException":
388
- throw await de_ConflictExceptionRes(parsedOutput, context);
389
213
  case "InternalServerException":
390
214
  case "com.amazonaws.ebs#InternalServerException":
391
215
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -401,6 +225,12 @@ const de_StartSnapshotCommandError = async (output, context) => {
401
225
  case "ValidationException":
402
226
  case "com.amazonaws.ebs#ValidationException":
403
227
  throw await de_ValidationExceptionRes(parsedOutput, context);
228
+ case "ConcurrentLimitExceededException":
229
+ case "com.amazonaws.ebs#ConcurrentLimitExceededException":
230
+ throw await de_ConcurrentLimitExceededExceptionRes(parsedOutput, context);
231
+ case "ConflictException":
232
+ case "com.amazonaws.ebs#ConflictException":
233
+ throw await de_ConflictExceptionRes(parsedOutput, context);
404
234
  default:
405
235
  const parsedBody = parsedOutput.body;
406
236
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ebs",
3
3
  "description": "AWS SDK for JavaScript Ebs 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-ebs",
@@ -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",