@aws-sdk/client-ec2-instance-connect 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-ec2-instance-connect
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-ec2-instance-connect
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
 
@@ -233,19 +233,17 @@ const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, c
233
233
  };
234
234
  const serializeAws_json1_1SendSerialConsoleSSHPublicKeyRequest = (input, context) => {
235
235
  return {
236
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
237
- ...(input.SSHPublicKey !== undefined && input.SSHPublicKey !== null && { SSHPublicKey: input.SSHPublicKey }),
238
- ...(input.SerialPort !== undefined && input.SerialPort !== null && { SerialPort: input.SerialPort }),
236
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
237
+ ...(input.SSHPublicKey != null && { SSHPublicKey: input.SSHPublicKey }),
238
+ ...(input.SerialPort != null && { SerialPort: input.SerialPort }),
239
239
  };
240
240
  };
241
241
  const serializeAws_json1_1SendSSHPublicKeyRequest = (input, context) => {
242
242
  return {
243
- ...(input.AvailabilityZone !== undefined &&
244
- input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone }),
245
- ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
246
- ...(input.InstanceOSUser !== undefined &&
247
- input.InstanceOSUser !== null && { InstanceOSUser: input.InstanceOSUser }),
248
- ...(input.SSHPublicKey !== undefined && input.SSHPublicKey !== null && { SSHPublicKey: input.SSHPublicKey }),
243
+ ...(input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone }),
244
+ ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
245
+ ...(input.InstanceOSUser != null && { InstanceOSUser: input.InstanceOSUser }),
246
+ ...(input.SSHPublicKey != null && { SSHPublicKey: input.SSHPublicKey }),
249
247
  };
250
248
  };
251
249
  const deserializeAws_json1_1AuthException = (output, context) => {
@@ -354,6 +352,9 @@ const loadRestJsonErrorCode = (output, data) => {
354
352
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
355
353
  const sanitizeErrorCode = (rawValue) => {
356
354
  let cleanValue = rawValue;
355
+ if (typeof cleanValue === "number") {
356
+ cleanValue = cleanValue.toString();
357
+ }
357
358
  if (cleanValue.indexOf(":") >= 0) {
358
359
  cleanValue = cleanValue.split(":")[0];
359
360
  }
@@ -274,12 +274,10 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
274
274
  });
275
275
  }); };
276
276
  var serializeAws_json1_1SendSerialConsoleSSHPublicKeyRequest = function (input, context) {
277
- return __assign(__assign(__assign({}, (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.SSHPublicKey !== undefined && input.SSHPublicKey !== null && { SSHPublicKey: input.SSHPublicKey })), (input.SerialPort !== undefined && input.SerialPort !== null && { SerialPort: input.SerialPort }));
277
+ return __assign(__assign(__assign({}, (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.SSHPublicKey != null && { SSHPublicKey: input.SSHPublicKey })), (input.SerialPort != null && { SerialPort: input.SerialPort }));
278
278
  };
279
279
  var serializeAws_json1_1SendSSHPublicKeyRequest = function (input, context) {
280
- return __assign(__assign(__assign(__assign({}, (input.AvailabilityZone !== undefined &&
281
- input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone })), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.InstanceOSUser !== undefined &&
282
- input.InstanceOSUser !== null && { InstanceOSUser: input.InstanceOSUser })), (input.SSHPublicKey !== undefined && input.SSHPublicKey !== null && { SSHPublicKey: input.SSHPublicKey }));
280
+ return __assign(__assign(__assign(__assign({}, (input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone })), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.InstanceOSUser != null && { InstanceOSUser: input.InstanceOSUser })), (input.SSHPublicKey != null && { SSHPublicKey: input.SSHPublicKey }));
283
281
  };
284
282
  var deserializeAws_json1_1AuthException = function (output, context) {
285
283
  return {
@@ -399,6 +397,9 @@ var loadRestJsonErrorCode = function (output, data) {
399
397
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
400
398
  var sanitizeErrorCode = function (rawValue) {
401
399
  var cleanValue = rawValue;
400
+ if (typeof cleanValue === "number") {
401
+ cleanValue = cleanValue.toString();
402
+ }
402
403
  if (cleanValue.indexOf(":") >= 0) {
403
404
  cleanValue = cleanValue.split(":")[0];
404
405
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2-instance-connect",
3
3
  "description": "AWS SDK for JavaScript Ec2 Instance Connect 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"