@aws-sdk/client-route53-recovery-cluster 3.121.0 → 3.130.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-route53-recovery-cluster
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-route53-recovery-cluster
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -346,16 +346,14 @@ const serializeAws_json1_0Arns = (input, context) => {
346
346
  };
347
347
  const serializeAws_json1_0GetRoutingControlStateRequest = (input, context) => {
348
348
  return {
349
- ...(input.RoutingControlArn !== undefined &&
350
- input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn }),
349
+ ...(input.RoutingControlArn != null && { RoutingControlArn: input.RoutingControlArn }),
351
350
  };
352
351
  };
353
352
  const serializeAws_json1_0ListRoutingControlsRequest = (input, context) => {
354
353
  return {
355
- ...(input.ControlPanelArn !== undefined &&
356
- input.ControlPanelArn !== null && { ControlPanelArn: input.ControlPanelArn }),
357
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
358
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
354
+ ...(input.ControlPanelArn != null && { ControlPanelArn: input.ControlPanelArn }),
355
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
356
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
359
357
  };
360
358
  };
361
359
  const serializeAws_json1_0UpdateRoutingControlStateEntries = (input, context) => {
@@ -370,32 +368,25 @@ const serializeAws_json1_0UpdateRoutingControlStateEntries = (input, context) =>
370
368
  };
371
369
  const serializeAws_json1_0UpdateRoutingControlStateEntry = (input, context) => {
372
370
  return {
373
- ...(input.RoutingControlArn !== undefined &&
374
- input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn }),
375
- ...(input.RoutingControlState !== undefined &&
376
- input.RoutingControlState !== null && { RoutingControlState: input.RoutingControlState }),
371
+ ...(input.RoutingControlArn != null && { RoutingControlArn: input.RoutingControlArn }),
372
+ ...(input.RoutingControlState != null && { RoutingControlState: input.RoutingControlState }),
377
373
  };
378
374
  };
379
375
  const serializeAws_json1_0UpdateRoutingControlStateRequest = (input, context) => {
380
376
  return {
381
- ...(input.RoutingControlArn !== undefined &&
382
- input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn }),
383
- ...(input.RoutingControlState !== undefined &&
384
- input.RoutingControlState !== null && { RoutingControlState: input.RoutingControlState }),
385
- ...(input.SafetyRulesToOverride !== undefined &&
386
- input.SafetyRulesToOverride !== null && {
377
+ ...(input.RoutingControlArn != null && { RoutingControlArn: input.RoutingControlArn }),
378
+ ...(input.RoutingControlState != null && { RoutingControlState: input.RoutingControlState }),
379
+ ...(input.SafetyRulesToOverride != null && {
387
380
  SafetyRulesToOverride: serializeAws_json1_0Arns(input.SafetyRulesToOverride, context),
388
381
  }),
389
382
  };
390
383
  };
391
384
  const serializeAws_json1_0UpdateRoutingControlStatesRequest = (input, context) => {
392
385
  return {
393
- ...(input.SafetyRulesToOverride !== undefined &&
394
- input.SafetyRulesToOverride !== null && {
386
+ ...(input.SafetyRulesToOverride != null && {
395
387
  SafetyRulesToOverride: serializeAws_json1_0Arns(input.SafetyRulesToOverride, context),
396
388
  }),
397
- ...(input.UpdateRoutingControlStateEntries !== undefined &&
398
- input.UpdateRoutingControlStateEntries !== null && {
389
+ ...(input.UpdateRoutingControlStateEntries != null && {
399
390
  UpdateRoutingControlStateEntries: serializeAws_json1_0UpdateRoutingControlStateEntries(input.UpdateRoutingControlStateEntries, context),
400
391
  }),
401
392
  };
@@ -433,7 +424,7 @@ const deserializeAws_json1_0InternalServerException = (output, context) => {
433
424
  const deserializeAws_json1_0ListRoutingControlsResponse = (output, context) => {
434
425
  return {
435
426
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
436
- RoutingControls: output.RoutingControls !== undefined && output.RoutingControls !== null
427
+ RoutingControls: output.RoutingControls != null
437
428
  ? deserializeAws_json1_0RoutingControls(output.RoutingControls, context)
438
429
  : undefined,
439
430
  };
@@ -488,9 +479,7 @@ const deserializeAws_json1_0UpdateRoutingControlStatesResponse = (output, contex
488
479
  };
489
480
  const deserializeAws_json1_0ValidationException = (output, context) => {
490
481
  return {
491
- fields: output.fields !== undefined && output.fields !== null
492
- ? deserializeAws_json1_0ValidationExceptionFieldList(output.fields, context)
493
- : undefined,
482
+ fields: output.fields != null ? deserializeAws_json1_0ValidationExceptionFieldList(output.fields, context) : undefined,
494
483
  message: (0, smithy_client_1.expectString)(output.message),
495
484
  reason: (0, smithy_client_1.expectString)(output.reason),
496
485
  };
@@ -556,6 +545,9 @@ const loadRestJsonErrorCode = (output, data) => {
556
545
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
557
546
  const sanitizeErrorCode = (rawValue) => {
558
547
  let cleanValue = rawValue;
548
+ if (typeof cleanValue === "number") {
549
+ cleanValue = cleanValue.toString();
550
+ }
559
551
  if (cleanValue.indexOf(":") >= 0) {
560
552
  cleanValue = cleanValue.split(":")[0];
561
553
  }
@@ -426,12 +426,10 @@ var serializeAws_json1_0Arns = function (input, context) {
426
426
  });
427
427
  };
428
428
  var serializeAws_json1_0GetRoutingControlStateRequest = function (input, context) {
429
- return __assign({}, (input.RoutingControlArn !== undefined &&
430
- input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn }));
429
+ return __assign({}, (input.RoutingControlArn != null && { RoutingControlArn: input.RoutingControlArn }));
431
430
  };
432
431
  var serializeAws_json1_0ListRoutingControlsRequest = function (input, context) {
433
- return __assign(__assign(__assign({}, (input.ControlPanelArn !== undefined &&
434
- input.ControlPanelArn !== null && { ControlPanelArn: input.ControlPanelArn })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
432
+ return __assign(__assign(__assign({}, (input.ControlPanelArn != null && { ControlPanelArn: input.ControlPanelArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
435
433
  };
436
434
  var serializeAws_json1_0UpdateRoutingControlStateEntries = function (input, context) {
437
435
  return input
@@ -444,24 +442,17 @@ var serializeAws_json1_0UpdateRoutingControlStateEntries = function (input, cont
444
442
  });
445
443
  };
446
444
  var serializeAws_json1_0UpdateRoutingControlStateEntry = function (input, context) {
447
- return __assign(__assign({}, (input.RoutingControlArn !== undefined &&
448
- input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn })), (input.RoutingControlState !== undefined &&
449
- input.RoutingControlState !== null && { RoutingControlState: input.RoutingControlState }));
445
+ return __assign(__assign({}, (input.RoutingControlArn != null && { RoutingControlArn: input.RoutingControlArn })), (input.RoutingControlState != null && { RoutingControlState: input.RoutingControlState }));
450
446
  };
451
447
  var serializeAws_json1_0UpdateRoutingControlStateRequest = function (input, context) {
452
- return __assign(__assign(__assign({}, (input.RoutingControlArn !== undefined &&
453
- input.RoutingControlArn !== null && { RoutingControlArn: input.RoutingControlArn })), (input.RoutingControlState !== undefined &&
454
- input.RoutingControlState !== null && { RoutingControlState: input.RoutingControlState })), (input.SafetyRulesToOverride !== undefined &&
455
- input.SafetyRulesToOverride !== null && {
448
+ return __assign(__assign(__assign({}, (input.RoutingControlArn != null && { RoutingControlArn: input.RoutingControlArn })), (input.RoutingControlState != null && { RoutingControlState: input.RoutingControlState })), (input.SafetyRulesToOverride != null && {
456
449
  SafetyRulesToOverride: serializeAws_json1_0Arns(input.SafetyRulesToOverride, context),
457
450
  }));
458
451
  };
459
452
  var serializeAws_json1_0UpdateRoutingControlStatesRequest = function (input, context) {
460
- return __assign(__assign({}, (input.SafetyRulesToOverride !== undefined &&
461
- input.SafetyRulesToOverride !== null && {
453
+ return __assign(__assign({}, (input.SafetyRulesToOverride != null && {
462
454
  SafetyRulesToOverride: serializeAws_json1_0Arns(input.SafetyRulesToOverride, context),
463
- })), (input.UpdateRoutingControlStateEntries !== undefined &&
464
- input.UpdateRoutingControlStateEntries !== null && {
455
+ })), (input.UpdateRoutingControlStateEntries != null && {
465
456
  UpdateRoutingControlStateEntries: serializeAws_json1_0UpdateRoutingControlStateEntries(input.UpdateRoutingControlStateEntries, context),
466
457
  }));
467
458
  };
@@ -498,7 +489,7 @@ var deserializeAws_json1_0InternalServerException = function (output, context) {
498
489
  var deserializeAws_json1_0ListRoutingControlsResponse = function (output, context) {
499
490
  return {
500
491
  NextToken: __expectString(output.NextToken),
501
- RoutingControls: output.RoutingControls !== undefined && output.RoutingControls !== null
492
+ RoutingControls: output.RoutingControls != null
502
493
  ? deserializeAws_json1_0RoutingControls(output.RoutingControls, context)
503
494
  : undefined,
504
495
  };
@@ -553,9 +544,7 @@ var deserializeAws_json1_0UpdateRoutingControlStatesResponse = function (output,
553
544
  };
554
545
  var deserializeAws_json1_0ValidationException = function (output, context) {
555
546
  return {
556
- fields: output.fields !== undefined && output.fields !== null
557
- ? deserializeAws_json1_0ValidationExceptionFieldList(output.fields, context)
558
- : undefined,
547
+ fields: output.fields != null ? deserializeAws_json1_0ValidationExceptionFieldList(output.fields, context) : undefined,
559
548
  message: __expectString(output.message),
560
549
  reason: __expectString(output.reason),
561
550
  };
@@ -633,6 +622,9 @@ var loadRestJsonErrorCode = function (output, data) {
633
622
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
634
623
  var sanitizeErrorCode = function (rawValue) {
635
624
  var cleanValue = rawValue;
625
+ if (typeof cleanValue === "number") {
626
+ cleanValue = cleanValue.toString();
627
+ }
636
628
  if (cleanValue.indexOf(":") >= 0) {
637
629
  cleanValue = cleanValue.split(":")[0];
638
630
  }
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.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"