@aws-sdk/client-route53-recovery-cluster 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -342,7 +342,7 @@ var se_UpdateRoutingControlStatesCommand = /* @__PURE__ */ __name(async (input,
342
342
  }, "se_UpdateRoutingControlStatesCommand");
343
343
  var de_GetRoutingControlStateCommand = /* @__PURE__ */ __name(async (output, context) => {
344
344
  if (output.statusCode >= 300) {
345
- return de_GetRoutingControlStateCommandError(output, context);
345
+ return de_CommandError(output, context);
346
346
  }
347
347
  const data = await parseBody(output.body, context);
348
348
  let contents = {};
@@ -353,43 +353,9 @@ var de_GetRoutingControlStateCommand = /* @__PURE__ */ __name(async (output, con
353
353
  };
354
354
  return response;
355
355
  }, "de_GetRoutingControlStateCommand");
356
- var de_GetRoutingControlStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
357
- const parsedOutput = {
358
- ...output,
359
- body: await parseErrorBody(output.body, context)
360
- };
361
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
362
- switch (errorCode) {
363
- case "AccessDeniedException":
364
- case "com.amazonaws.route53recoverycluster#AccessDeniedException":
365
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
366
- case "EndpointTemporarilyUnavailableException":
367
- case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
368
- throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
369
- case "InternalServerException":
370
- case "com.amazonaws.route53recoverycluster#InternalServerException":
371
- throw await de_InternalServerExceptionRes(parsedOutput, context);
372
- case "ResourceNotFoundException":
373
- case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
374
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
375
- case "ThrottlingException":
376
- case "com.amazonaws.route53recoverycluster#ThrottlingException":
377
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
378
- case "ValidationException":
379
- case "com.amazonaws.route53recoverycluster#ValidationException":
380
- throw await de_ValidationExceptionRes(parsedOutput, context);
381
- default:
382
- const parsedBody = parsedOutput.body;
383
- return throwDefaultError({
384
- output,
385
- parsedBody,
386
- errorCode
387
- });
388
- }
389
- }, "de_GetRoutingControlStateCommandError");
390
356
  var de_ListRoutingControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
391
357
  if (output.statusCode >= 300) {
392
- return de_ListRoutingControlsCommandError(output, context);
358
+ return de_CommandError(output, context);
393
359
  }
394
360
  const data = await parseBody(output.body, context);
395
361
  let contents = {};
@@ -400,43 +366,9 @@ var de_ListRoutingControlsCommand = /* @__PURE__ */ __name(async (output, contex
400
366
  };
401
367
  return response;
402
368
  }, "de_ListRoutingControlsCommand");
403
- var de_ListRoutingControlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
404
- const parsedOutput = {
405
- ...output,
406
- body: await parseErrorBody(output.body, context)
407
- };
408
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
409
- switch (errorCode) {
410
- case "AccessDeniedException":
411
- case "com.amazonaws.route53recoverycluster#AccessDeniedException":
412
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
413
- case "EndpointTemporarilyUnavailableException":
414
- case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
415
- throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
416
- case "InternalServerException":
417
- case "com.amazonaws.route53recoverycluster#InternalServerException":
418
- throw await de_InternalServerExceptionRes(parsedOutput, context);
419
- case "ResourceNotFoundException":
420
- case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
421
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
422
- case "ThrottlingException":
423
- case "com.amazonaws.route53recoverycluster#ThrottlingException":
424
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
425
- case "ValidationException":
426
- case "com.amazonaws.route53recoverycluster#ValidationException":
427
- throw await de_ValidationExceptionRes(parsedOutput, context);
428
- default:
429
- const parsedBody = parsedOutput.body;
430
- return throwDefaultError({
431
- output,
432
- parsedBody,
433
- errorCode
434
- });
435
- }
436
- }, "de_ListRoutingControlsCommandError");
437
369
  var de_UpdateRoutingControlStateCommand = /* @__PURE__ */ __name(async (output, context) => {
438
370
  if (output.statusCode >= 300) {
439
- return de_UpdateRoutingControlStateCommandError(output, context);
371
+ return de_CommandError(output, context);
440
372
  }
441
373
  const data = await parseBody(output.body, context);
442
374
  let contents = {};
@@ -447,46 +379,9 @@ var de_UpdateRoutingControlStateCommand = /* @__PURE__ */ __name(async (output,
447
379
  };
448
380
  return response;
449
381
  }, "de_UpdateRoutingControlStateCommand");
450
- var de_UpdateRoutingControlStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
451
- const parsedOutput = {
452
- ...output,
453
- body: await parseErrorBody(output.body, context)
454
- };
455
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
456
- switch (errorCode) {
457
- case "AccessDeniedException":
458
- case "com.amazonaws.route53recoverycluster#AccessDeniedException":
459
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
460
- case "ConflictException":
461
- case "com.amazonaws.route53recoverycluster#ConflictException":
462
- throw await de_ConflictExceptionRes(parsedOutput, context);
463
- case "EndpointTemporarilyUnavailableException":
464
- case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
465
- throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
466
- case "InternalServerException":
467
- case "com.amazonaws.route53recoverycluster#InternalServerException":
468
- throw await de_InternalServerExceptionRes(parsedOutput, context);
469
- case "ResourceNotFoundException":
470
- case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
471
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
472
- case "ThrottlingException":
473
- case "com.amazonaws.route53recoverycluster#ThrottlingException":
474
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
475
- case "ValidationException":
476
- case "com.amazonaws.route53recoverycluster#ValidationException":
477
- throw await de_ValidationExceptionRes(parsedOutput, context);
478
- default:
479
- const parsedBody = parsedOutput.body;
480
- return throwDefaultError({
481
- output,
482
- parsedBody,
483
- errorCode
484
- });
485
- }
486
- }, "de_UpdateRoutingControlStateCommandError");
487
382
  var de_UpdateRoutingControlStatesCommand = /* @__PURE__ */ __name(async (output, context) => {
488
383
  if (output.statusCode >= 300) {
489
- return de_UpdateRoutingControlStatesCommandError(output, context);
384
+ return de_CommandError(output, context);
490
385
  }
491
386
  const data = await parseBody(output.body, context);
492
387
  let contents = {};
@@ -497,7 +392,7 @@ var de_UpdateRoutingControlStatesCommand = /* @__PURE__ */ __name(async (output,
497
392
  };
498
393
  return response;
499
394
  }, "de_UpdateRoutingControlStatesCommand");
500
- var de_UpdateRoutingControlStatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
395
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
501
396
  const parsedOutput = {
502
397
  ...output,
503
398
  body: await parseErrorBody(output.body, context)
@@ -507,9 +402,6 @@ var de_UpdateRoutingControlStatesCommandError = /* @__PURE__ */ __name(async (ou
507
402
  case "AccessDeniedException":
508
403
  case "com.amazonaws.route53recoverycluster#AccessDeniedException":
509
404
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
510
- case "ConflictException":
511
- case "com.amazonaws.route53recoverycluster#ConflictException":
512
- throw await de_ConflictExceptionRes(parsedOutput, context);
513
405
  case "EndpointTemporarilyUnavailableException":
514
406
  case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
515
407
  throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
@@ -519,15 +411,18 @@ var de_UpdateRoutingControlStatesCommandError = /* @__PURE__ */ __name(async (ou
519
411
  case "ResourceNotFoundException":
520
412
  case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
521
413
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
522
- case "ServiceLimitExceededException":
523
- case "com.amazonaws.route53recoverycluster#ServiceLimitExceededException":
524
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
525
414
  case "ThrottlingException":
526
415
  case "com.amazonaws.route53recoverycluster#ThrottlingException":
527
416
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
528
417
  case "ValidationException":
529
418
  case "com.amazonaws.route53recoverycluster#ValidationException":
530
419
  throw await de_ValidationExceptionRes(parsedOutput, context);
420
+ case "ConflictException":
421
+ case "com.amazonaws.route53recoverycluster#ConflictException":
422
+ throw await de_ConflictExceptionRes(parsedOutput, context);
423
+ case "ServiceLimitExceededException":
424
+ case "com.amazonaws.route53recoverycluster#ServiceLimitExceededException":
425
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
531
426
  default:
532
427
  const parsedBody = parsedOutput.body;
533
428
  return throwDefaultError({
@@ -536,7 +431,7 @@ var de_UpdateRoutingControlStatesCommandError = /* @__PURE__ */ __name(async (ou
536
431
  errorCode
537
432
  });
538
433
  }
539
- }, "de_UpdateRoutingControlStatesCommandError");
434
+ }, "de_CommandError");
540
435
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
541
436
  const body = parsedOutput.body;
542
437
  const deserialized = (0, import_smithy_client._json)(body);
@@ -28,7 +28,7 @@ export const se_UpdateRoutingControlStatesCommand = async (input, context) => {
28
28
  };
29
29
  export const de_GetRoutingControlStateCommand = async (output, context) => {
30
30
  if (output.statusCode >= 300) {
31
- return de_GetRoutingControlStateCommandError(output, context);
31
+ return de_CommandError(output, context);
32
32
  }
33
33
  const data = await parseBody(output.body, context);
34
34
  let contents = {};
@@ -39,43 +39,9 @@ export const de_GetRoutingControlStateCommand = async (output, context) => {
39
39
  };
40
40
  return response;
41
41
  };
42
- const de_GetRoutingControlStateCommandError = async (output, context) => {
43
- const parsedOutput = {
44
- ...output,
45
- body: await parseErrorBody(output.body, context),
46
- };
47
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
48
- switch (errorCode) {
49
- case "AccessDeniedException":
50
- case "com.amazonaws.route53recoverycluster#AccessDeniedException":
51
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
52
- case "EndpointTemporarilyUnavailableException":
53
- case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
54
- throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
55
- case "InternalServerException":
56
- case "com.amazonaws.route53recoverycluster#InternalServerException":
57
- throw await de_InternalServerExceptionRes(parsedOutput, context);
58
- case "ResourceNotFoundException":
59
- case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
60
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
61
- case "ThrottlingException":
62
- case "com.amazonaws.route53recoverycluster#ThrottlingException":
63
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
64
- case "ValidationException":
65
- case "com.amazonaws.route53recoverycluster#ValidationException":
66
- throw await de_ValidationExceptionRes(parsedOutput, context);
67
- default:
68
- const parsedBody = parsedOutput.body;
69
- return throwDefaultError({
70
- output,
71
- parsedBody,
72
- errorCode,
73
- });
74
- }
75
- };
76
42
  export const de_ListRoutingControlsCommand = async (output, context) => {
77
43
  if (output.statusCode >= 300) {
78
- return de_ListRoutingControlsCommandError(output, context);
44
+ return de_CommandError(output, context);
79
45
  }
80
46
  const data = await parseBody(output.body, context);
81
47
  let contents = {};
@@ -86,43 +52,9 @@ export const de_ListRoutingControlsCommand = async (output, context) => {
86
52
  };
87
53
  return response;
88
54
  };
89
- const de_ListRoutingControlsCommandError = async (output, context) => {
90
- const parsedOutput = {
91
- ...output,
92
- body: await parseErrorBody(output.body, context),
93
- };
94
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
95
- switch (errorCode) {
96
- case "AccessDeniedException":
97
- case "com.amazonaws.route53recoverycluster#AccessDeniedException":
98
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
99
- case "EndpointTemporarilyUnavailableException":
100
- case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
101
- throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
102
- case "InternalServerException":
103
- case "com.amazonaws.route53recoverycluster#InternalServerException":
104
- throw await de_InternalServerExceptionRes(parsedOutput, context);
105
- case "ResourceNotFoundException":
106
- case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
107
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
108
- case "ThrottlingException":
109
- case "com.amazonaws.route53recoverycluster#ThrottlingException":
110
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
111
- case "ValidationException":
112
- case "com.amazonaws.route53recoverycluster#ValidationException":
113
- throw await de_ValidationExceptionRes(parsedOutput, context);
114
- default:
115
- const parsedBody = parsedOutput.body;
116
- return throwDefaultError({
117
- output,
118
- parsedBody,
119
- errorCode,
120
- });
121
- }
122
- };
123
55
  export const de_UpdateRoutingControlStateCommand = async (output, context) => {
124
56
  if (output.statusCode >= 300) {
125
- return de_UpdateRoutingControlStateCommandError(output, context);
57
+ return de_CommandError(output, context);
126
58
  }
127
59
  const data = await parseBody(output.body, context);
128
60
  let contents = {};
@@ -133,46 +65,9 @@ export const de_UpdateRoutingControlStateCommand = async (output, context) => {
133
65
  };
134
66
  return response;
135
67
  };
136
- const de_UpdateRoutingControlStateCommandError = async (output, context) => {
137
- const parsedOutput = {
138
- ...output,
139
- body: await parseErrorBody(output.body, context),
140
- };
141
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
142
- switch (errorCode) {
143
- case "AccessDeniedException":
144
- case "com.amazonaws.route53recoverycluster#AccessDeniedException":
145
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
146
- case "ConflictException":
147
- case "com.amazonaws.route53recoverycluster#ConflictException":
148
- throw await de_ConflictExceptionRes(parsedOutput, context);
149
- case "EndpointTemporarilyUnavailableException":
150
- case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
151
- throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
152
- case "InternalServerException":
153
- case "com.amazonaws.route53recoverycluster#InternalServerException":
154
- throw await de_InternalServerExceptionRes(parsedOutput, context);
155
- case "ResourceNotFoundException":
156
- case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
157
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
158
- case "ThrottlingException":
159
- case "com.amazonaws.route53recoverycluster#ThrottlingException":
160
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
161
- case "ValidationException":
162
- case "com.amazonaws.route53recoverycluster#ValidationException":
163
- throw await de_ValidationExceptionRes(parsedOutput, context);
164
- default:
165
- const parsedBody = parsedOutput.body;
166
- return throwDefaultError({
167
- output,
168
- parsedBody,
169
- errorCode,
170
- });
171
- }
172
- };
173
68
  export const de_UpdateRoutingControlStatesCommand = async (output, context) => {
174
69
  if (output.statusCode >= 300) {
175
- return de_UpdateRoutingControlStatesCommandError(output, context);
70
+ return de_CommandError(output, context);
176
71
  }
177
72
  const data = await parseBody(output.body, context);
178
73
  let contents = {};
@@ -183,7 +78,7 @@ export const de_UpdateRoutingControlStatesCommand = async (output, context) => {
183
78
  };
184
79
  return response;
185
80
  };
186
- const de_UpdateRoutingControlStatesCommandError = async (output, context) => {
81
+ const de_CommandError = async (output, context) => {
187
82
  const parsedOutput = {
188
83
  ...output,
189
84
  body: await parseErrorBody(output.body, context),
@@ -193,9 +88,6 @@ const de_UpdateRoutingControlStatesCommandError = async (output, context) => {
193
88
  case "AccessDeniedException":
194
89
  case "com.amazonaws.route53recoverycluster#AccessDeniedException":
195
90
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
196
- case "ConflictException":
197
- case "com.amazonaws.route53recoverycluster#ConflictException":
198
- throw await de_ConflictExceptionRes(parsedOutput, context);
199
91
  case "EndpointTemporarilyUnavailableException":
200
92
  case "com.amazonaws.route53recoverycluster#EndpointTemporarilyUnavailableException":
201
93
  throw await de_EndpointTemporarilyUnavailableExceptionRes(parsedOutput, context);
@@ -205,15 +97,18 @@ const de_UpdateRoutingControlStatesCommandError = async (output, context) => {
205
97
  case "ResourceNotFoundException":
206
98
  case "com.amazonaws.route53recoverycluster#ResourceNotFoundException":
207
99
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
208
- case "ServiceLimitExceededException":
209
- case "com.amazonaws.route53recoverycluster#ServiceLimitExceededException":
210
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
211
100
  case "ThrottlingException":
212
101
  case "com.amazonaws.route53recoverycluster#ThrottlingException":
213
102
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
214
103
  case "ValidationException":
215
104
  case "com.amazonaws.route53recoverycluster#ValidationException":
216
105
  throw await de_ValidationExceptionRes(parsedOutput, context);
106
+ case "ConflictException":
107
+ case "com.amazonaws.route53recoverycluster#ConflictException":
108
+ throw await de_ConflictExceptionRes(parsedOutput, context);
109
+ case "ServiceLimitExceededException":
110
+ case "com.amazonaws.route53recoverycluster#ServiceLimitExceededException":
111
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
217
112
  default:
218
113
  const parsedBody = parsedOutput.body;
219
114
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-route53-recovery-cluster",
3
3
  "description": "AWS SDK for JavaScript Route53 Recovery Cluster Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
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-route53-recovery-cluster",
@@ -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.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",