@aws-sdk/client-health 3.128.0 → 3.132.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,36 @@
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.132.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.131.0...v3.132.0) (2022-07-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update client endpoints as of 2022-07-18 ([87e9e29](https://github.com/aws/aws-sdk-js-v3/commit/87e9e2970f5fd24742968462e3944235c5e08380))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-health
20
+
21
+
22
+
23
+
24
+
25
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **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))
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
7
37
 
8
38
  **Note:** Version bump only for package @aws-sdk/client-health
@@ -2,7 +2,26 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
- const regionHash = {};
5
+ const regionHash = {
6
+ "aws-cn-global": {
7
+ variants: [
8
+ {
9
+ hostname: "global.health.amazonaws.com.cn",
10
+ tags: [],
11
+ },
12
+ ],
13
+ signingRegion: "cn-northwest-1",
14
+ },
15
+ "aws-global": {
16
+ variants: [
17
+ {
18
+ hostname: "global.health.amazonaws.com",
19
+ tags: [],
20
+ },
21
+ ],
22
+ signingRegion: "us-east-1",
23
+ },
24
+ };
6
25
  const partitionHash = {
7
26
  aws: {
8
27
  regions: [
@@ -15,6 +34,7 @@ const partitionHash = {
15
34
  "ap-southeast-1",
16
35
  "ap-southeast-2",
17
36
  "ap-southeast-3",
37
+ "aws-global",
18
38
  "ca-central-1",
19
39
  "eu-central-1",
20
40
  "eu-north-1",
@@ -49,9 +69,10 @@ const partitionHash = {
49
69
  tags: ["dualstack"],
50
70
  },
51
71
  ],
72
+ endpoint: "aws-global",
52
73
  },
53
74
  "aws-cn": {
54
- regions: ["cn-north-1", "cn-northwest-1"],
75
+ regions: ["aws-cn-global", "cn-north-1", "cn-northwest-1"],
55
76
  regionRegex: "^cn\\-\\w+\\-\\d+$",
56
77
  variants: [
57
78
  {
@@ -71,6 +92,7 @@ const partitionHash = {
71
92
  tags: ["dualstack"],
72
93
  },
73
94
  ],
95
+ endpoint: "aws-cn-global",
74
96
  },
75
97
  "aws-iso": {
76
98
  regions: ["us-iso-east-1", "us-iso-west-1"],
@@ -1413,6 +1413,9 @@ const loadRestJsonErrorCode = (output, data) => {
1413
1413
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1414
1414
  const sanitizeErrorCode = (rawValue) => {
1415
1415
  let cleanValue = rawValue;
1416
+ if (typeof cleanValue === "number") {
1417
+ cleanValue = cleanValue.toString();
1418
+ }
1416
1419
  if (cleanValue.indexOf(":") >= 0) {
1417
1420
  cleanValue = cleanValue.split(":")[0];
1418
1421
  }
@@ -1,6 +1,25 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
3
+ var regionHash = {
4
+ "aws-cn-global": {
5
+ variants: [
6
+ {
7
+ hostname: "global.health.amazonaws.com.cn",
8
+ tags: [],
9
+ },
10
+ ],
11
+ signingRegion: "cn-northwest-1",
12
+ },
13
+ "aws-global": {
14
+ variants: [
15
+ {
16
+ hostname: "global.health.amazonaws.com",
17
+ tags: [],
18
+ },
19
+ ],
20
+ signingRegion: "us-east-1",
21
+ },
22
+ };
4
23
  var partitionHash = {
5
24
  aws: {
6
25
  regions: [
@@ -13,6 +32,7 @@ var partitionHash = {
13
32
  "ap-southeast-1",
14
33
  "ap-southeast-2",
15
34
  "ap-southeast-3",
35
+ "aws-global",
16
36
  "ca-central-1",
17
37
  "eu-central-1",
18
38
  "eu-north-1",
@@ -47,9 +67,10 @@ var partitionHash = {
47
67
  tags: ["dualstack"],
48
68
  },
49
69
  ],
70
+ endpoint: "aws-global",
50
71
  },
51
72
  "aws-cn": {
52
- regions: ["cn-north-1", "cn-northwest-1"],
73
+ regions: ["aws-cn-global", "cn-north-1", "cn-northwest-1"],
53
74
  regionRegex: "^cn\\-\\w+\\-\\d+$",
54
75
  variants: [
55
76
  {
@@ -69,6 +90,7 @@ var partitionHash = {
69
90
  tags: ["dualstack"],
70
91
  },
71
92
  ],
93
+ endpoint: "aws-cn-global",
72
94
  },
73
95
  "aws-iso": {
74
96
  regions: ["us-iso-east-1", "us-iso-west-1"],
@@ -1540,6 +1540,9 @@ var loadRestJsonErrorCode = function (output, data) {
1540
1540
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1541
1541
  var sanitizeErrorCode = function (rawValue) {
1542
1542
  var cleanValue = rawValue;
1543
+ if (typeof cleanValue === "number") {
1544
+ cleanValue = cleanValue.toString();
1545
+ }
1543
1546
  if (cleanValue.indexOf(":") >= 0) {
1544
1547
  cleanValue = cleanValue.split(":")[0];
1545
1548
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-health",
3
3
  "description": "AWS SDK for JavaScript Health Client for Node.js, Browser and React Native",
4
- "version": "3.128.0",
4
+ "version": "3.132.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,10 +18,10 @@
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.128.0",
22
- "@aws-sdk/config-resolver": "3.128.0",
23
- "@aws-sdk/credential-provider-node": "3.128.0",
24
- "@aws-sdk/fetch-http-handler": "3.127.0",
21
+ "@aws-sdk/client-sts": "3.131.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.131.0",
24
+ "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
27
27
  "@aws-sdk/middleware-content-length": "3.127.0",
@@ -30,7 +30,7 @@
30
30
  "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
31
  "@aws-sdk/middleware-retry": "3.127.0",
32
32
  "@aws-sdk/middleware-serde": "3.127.0",
33
- "@aws-sdk/middleware-signing": "3.128.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
34
  "@aws-sdk/middleware-stack": "3.127.0",
35
35
  "@aws-sdk/middleware-user-agent": "3.127.0",
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
@@ -44,7 +44,7 @@
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
46
  "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.128.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",