@aws-sdk/client-migrationhub-config 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-migrationhub-config
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-migrationhub-config
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
 
@@ -241,20 +241,18 @@ const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, c
241
241
  };
242
242
  const serializeAws_json1_1CreateHomeRegionControlRequest = (input, context) => {
243
243
  return {
244
- ...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
245
- ...(input.HomeRegion !== undefined && input.HomeRegion !== null && { HomeRegion: input.HomeRegion }),
246
- ...(input.Target !== undefined &&
247
- input.Target !== null && { Target: serializeAws_json1_1Target(input.Target, context) }),
244
+ ...(input.DryRun != null && { DryRun: input.DryRun }),
245
+ ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
246
+ ...(input.Target != null && { Target: serializeAws_json1_1Target(input.Target, context) }),
248
247
  };
249
248
  };
250
249
  const serializeAws_json1_1DescribeHomeRegionControlsRequest = (input, context) => {
251
250
  return {
252
- ...(input.ControlId !== undefined && input.ControlId !== null && { ControlId: input.ControlId }),
253
- ...(input.HomeRegion !== undefined && input.HomeRegion !== null && { HomeRegion: input.HomeRegion }),
254
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
255
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
256
- ...(input.Target !== undefined &&
257
- input.Target !== null && { Target: serializeAws_json1_1Target(input.Target, context) }),
251
+ ...(input.ControlId != null && { ControlId: input.ControlId }),
252
+ ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
253
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
254
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
255
+ ...(input.Target != null && { Target: serializeAws_json1_1Target(input.Target, context) }),
258
256
  };
259
257
  };
260
258
  const serializeAws_json1_1GetHomeRegionRequest = (input, context) => {
@@ -262,8 +260,8 @@ const serializeAws_json1_1GetHomeRegionRequest = (input, context) => {
262
260
  };
263
261
  const serializeAws_json1_1Target = (input, context) => {
264
262
  return {
265
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
266
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
263
+ ...(input.Id != null && { Id: input.Id }),
264
+ ...(input.Type != null && { Type: input.Type }),
267
265
  };
268
266
  };
269
267
  const deserializeAws_json1_1AccessDeniedException = (output, context) => {
@@ -273,14 +271,14 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
273
271
  };
274
272
  const deserializeAws_json1_1CreateHomeRegionControlResult = (output, context) => {
275
273
  return {
276
- HomeRegionControl: output.HomeRegionControl !== undefined && output.HomeRegionControl !== null
274
+ HomeRegionControl: output.HomeRegionControl != null
277
275
  ? deserializeAws_json1_1HomeRegionControl(output.HomeRegionControl, context)
278
276
  : undefined,
279
277
  };
280
278
  };
281
279
  const deserializeAws_json1_1DescribeHomeRegionControlsResult = (output, context) => {
282
280
  return {
283
- HomeRegionControls: output.HomeRegionControls !== undefined && output.HomeRegionControls !== null
281
+ HomeRegionControls: output.HomeRegionControls != null
284
282
  ? deserializeAws_json1_1HomeRegionControls(output.HomeRegionControls, context)
285
283
  : undefined,
286
284
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -300,12 +298,10 @@ const deserializeAws_json1_1HomeRegionControl = (output, context) => {
300
298
  return {
301
299
  ControlId: (0, smithy_client_1.expectString)(output.ControlId),
302
300
  HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
303
- RequestedTime: output.RequestedTime !== undefined && output.RequestedTime !== null
301
+ RequestedTime: output.RequestedTime != null
304
302
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RequestedTime)))
305
303
  : undefined,
306
- Target: output.Target !== undefined && output.Target !== null
307
- ? deserializeAws_json1_1Target(output.Target, context)
308
- : undefined,
304
+ Target: output.Target != null ? deserializeAws_json1_1Target(output.Target, context) : undefined,
309
305
  };
310
306
  };
311
307
  const deserializeAws_json1_1HomeRegionControls = (output, context) => {
@@ -390,6 +386,9 @@ const loadRestJsonErrorCode = (output, data) => {
390
386
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
391
387
  const sanitizeErrorCode = (rawValue) => {
392
388
  let cleanValue = rawValue;
389
+ if (typeof cleanValue === "number") {
390
+ cleanValue = cleanValue.toString();
391
+ }
393
392
  if (cleanValue.indexOf(":") >= 0) {
394
393
  cleanValue = cleanValue.split(":")[0];
395
394
  }
@@ -296,18 +296,16 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
296
296
  });
297
297
  }); };
298
298
  var serializeAws_json1_1CreateHomeRegionControlRequest = function (input, context) {
299
- return __assign(__assign(__assign({}, (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.HomeRegion !== undefined && input.HomeRegion !== null && { HomeRegion: input.HomeRegion })), (input.Target !== undefined &&
300
- input.Target !== null && { Target: serializeAws_json1_1Target(input.Target, context) }));
299
+ return __assign(__assign(__assign({}, (input.DryRun != null && { DryRun: input.DryRun })), (input.HomeRegion != null && { HomeRegion: input.HomeRegion })), (input.Target != null && { Target: serializeAws_json1_1Target(input.Target, context) }));
301
300
  };
302
301
  var serializeAws_json1_1DescribeHomeRegionControlsRequest = function (input, context) {
303
- return __assign(__assign(__assign(__assign(__assign({}, (input.ControlId !== undefined && input.ControlId !== null && { ControlId: input.ControlId })), (input.HomeRegion !== undefined && input.HomeRegion !== null && { HomeRegion: input.HomeRegion })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Target !== undefined &&
304
- input.Target !== null && { Target: serializeAws_json1_1Target(input.Target, context) }));
302
+ return __assign(__assign(__assign(__assign(__assign({}, (input.ControlId != null && { ControlId: input.ControlId })), (input.HomeRegion != null && { HomeRegion: input.HomeRegion })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Target != null && { Target: serializeAws_json1_1Target(input.Target, context) }));
305
303
  };
306
304
  var serializeAws_json1_1GetHomeRegionRequest = function (input, context) {
307
305
  return {};
308
306
  };
309
307
  var serializeAws_json1_1Target = function (input, context) {
310
- return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
308
+ return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Type != null && { Type: input.Type }));
311
309
  };
312
310
  var deserializeAws_json1_1AccessDeniedException = function (output, context) {
313
311
  return {
@@ -316,14 +314,14 @@ var deserializeAws_json1_1AccessDeniedException = function (output, context) {
316
314
  };
317
315
  var deserializeAws_json1_1CreateHomeRegionControlResult = function (output, context) {
318
316
  return {
319
- HomeRegionControl: output.HomeRegionControl !== undefined && output.HomeRegionControl !== null
317
+ HomeRegionControl: output.HomeRegionControl != null
320
318
  ? deserializeAws_json1_1HomeRegionControl(output.HomeRegionControl, context)
321
319
  : undefined,
322
320
  };
323
321
  };
324
322
  var deserializeAws_json1_1DescribeHomeRegionControlsResult = function (output, context) {
325
323
  return {
326
- HomeRegionControls: output.HomeRegionControls !== undefined && output.HomeRegionControls !== null
324
+ HomeRegionControls: output.HomeRegionControls != null
327
325
  ? deserializeAws_json1_1HomeRegionControls(output.HomeRegionControls, context)
328
326
  : undefined,
329
327
  NextToken: __expectString(output.NextToken),
@@ -343,12 +341,10 @@ var deserializeAws_json1_1HomeRegionControl = function (output, context) {
343
341
  return {
344
342
  ControlId: __expectString(output.ControlId),
345
343
  HomeRegion: __expectString(output.HomeRegion),
346
- RequestedTime: output.RequestedTime !== undefined && output.RequestedTime !== null
344
+ RequestedTime: output.RequestedTime != null
347
345
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RequestedTime)))
348
346
  : undefined,
349
- Target: output.Target !== undefined && output.Target !== null
350
- ? deserializeAws_json1_1Target(output.Target, context)
351
- : undefined,
347
+ Target: output.Target != null ? deserializeAws_json1_1Target(output.Target, context) : undefined,
352
348
  };
353
349
  };
354
350
  var deserializeAws_json1_1HomeRegionControls = function (output, context) {
@@ -445,6 +441,9 @@ var loadRestJsonErrorCode = function (output, data) {
445
441
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
446
442
  var sanitizeErrorCode = function (rawValue) {
447
443
  var cleanValue = rawValue;
444
+ if (typeof cleanValue === "number") {
445
+ cleanValue = cleanValue.toString();
446
+ }
448
447
  if (cleanValue.indexOf(":") >= 0) {
449
448
  cleanValue = cleanValue.split(":")[0];
450
449
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migrationhub-config",
3
3
  "description": "AWS SDK for JavaScript Migrationhub Config 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"