@aws-sdk/client-wellarchitected 3.28.0 → 3.32.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.
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt as __expectInt, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  export var serializeAws_restJson1AssociateLensesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
6
6
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
@@ -1262,9 +1262,9 @@ var deserializeAws_restJson1AssociateLensesCommandError = function (output, cont
1262
1262
  });
1263
1263
  }); };
1264
1264
  export var deserializeAws_restJson1CreateMilestoneCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1265
- var contents, data;
1266
- return __generator(this, function (_a) {
1267
- switch (_a.label) {
1265
+ var contents, data, _a, _b;
1266
+ return __generator(this, function (_c) {
1267
+ switch (_c.label) {
1268
1268
  case 0:
1269
1269
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1270
1270
  return [2 /*return*/, deserializeAws_restJson1CreateMilestoneCommandError(output, context)];
@@ -1274,11 +1274,13 @@ export var deserializeAws_restJson1CreateMilestoneCommand = function (output, co
1274
1274
  MilestoneNumber: undefined,
1275
1275
  WorkloadId: undefined,
1276
1276
  };
1277
+ _a = __expectNonNull;
1278
+ _b = __expectObject;
1277
1279
  return [4 /*yield*/, parseBody(output.body, context)];
1278
1280
  case 1:
1279
- data = _a.sent();
1281
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1280
1282
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
1281
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
1283
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
1282
1284
  }
1283
1285
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
1284
1286
  contents.WorkloadId = __expectString(data.WorkloadId);
@@ -1374,9 +1376,9 @@ var deserializeAws_restJson1CreateMilestoneCommandError = function (output, cont
1374
1376
  });
1375
1377
  }); };
1376
1378
  export var deserializeAws_restJson1CreateWorkloadCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1377
- var contents, data;
1378
- return __generator(this, function (_a) {
1379
- switch (_a.label) {
1379
+ var contents, data, _a, _b;
1380
+ return __generator(this, function (_c) {
1381
+ switch (_c.label) {
1380
1382
  case 0:
1381
1383
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1382
1384
  return [2 /*return*/, deserializeAws_restJson1CreateWorkloadCommandError(output, context)];
@@ -1386,9 +1388,11 @@ export var deserializeAws_restJson1CreateWorkloadCommand = function (output, con
1386
1388
  WorkloadArn: undefined,
1387
1389
  WorkloadId: undefined,
1388
1390
  };
1391
+ _a = __expectNonNull;
1392
+ _b = __expectObject;
1389
1393
  return [4 /*yield*/, parseBody(output.body, context)];
1390
1394
  case 1:
1391
- data = _a.sent();
1395
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1392
1396
  if (data.WorkloadArn !== undefined && data.WorkloadArn !== null) {
1393
1397
  contents.WorkloadArn = __expectString(data.WorkloadArn);
1394
1398
  }
@@ -1478,9 +1482,9 @@ var deserializeAws_restJson1CreateWorkloadCommandError = function (output, conte
1478
1482
  });
1479
1483
  }); };
1480
1484
  export var deserializeAws_restJson1CreateWorkloadShareCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1481
- var contents, data;
1482
- return __generator(this, function (_a) {
1483
- switch (_a.label) {
1485
+ var contents, data, _a, _b;
1486
+ return __generator(this, function (_c) {
1487
+ switch (_c.label) {
1484
1488
  case 0:
1485
1489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1486
1490
  return [2 /*return*/, deserializeAws_restJson1CreateWorkloadShareCommandError(output, context)];
@@ -1490,9 +1494,11 @@ export var deserializeAws_restJson1CreateWorkloadShareCommand = function (output
1490
1494
  ShareId: undefined,
1491
1495
  WorkloadId: undefined,
1492
1496
  };
1497
+ _a = __expectNonNull;
1498
+ _b = __expectObject;
1493
1499
  return [4 /*yield*/, parseBody(output.body, context)];
1494
1500
  case 1:
1495
- data = _a.sent();
1501
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1496
1502
  if (data.ShareId !== undefined && data.ShareId !== null) {
1497
1503
  contents.ShareId = __expectString(data.ShareId);
1498
1504
  }
@@ -1878,9 +1884,9 @@ var deserializeAws_restJson1DisassociateLensesCommandError = function (output, c
1878
1884
  });
1879
1885
  }); };
1880
1886
  export var deserializeAws_restJson1GetAnswerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1881
- var contents, data;
1882
- return __generator(this, function (_a) {
1883
- switch (_a.label) {
1887
+ var contents, data, _a, _b;
1888
+ return __generator(this, function (_c) {
1889
+ switch (_c.label) {
1884
1890
  case 0:
1885
1891
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1886
1892
  return [2 /*return*/, deserializeAws_restJson1GetAnswerCommandError(output, context)];
@@ -1892,9 +1898,11 @@ export var deserializeAws_restJson1GetAnswerCommand = function (output, context)
1892
1898
  MilestoneNumber: undefined,
1893
1899
  WorkloadId: undefined,
1894
1900
  };
1901
+ _a = __expectNonNull;
1902
+ _b = __expectObject;
1895
1903
  return [4 /*yield*/, parseBody(output.body, context)];
1896
1904
  case 1:
1897
- data = _a.sent();
1905
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1898
1906
  if (data.Answer !== undefined && data.Answer !== null) {
1899
1907
  contents.Answer = deserializeAws_restJson1Answer(data.Answer, context);
1900
1908
  }
@@ -1902,7 +1910,7 @@ export var deserializeAws_restJson1GetAnswerCommand = function (output, context)
1902
1910
  contents.LensAlias = __expectString(data.LensAlias);
1903
1911
  }
1904
1912
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
1905
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
1913
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
1906
1914
  }
1907
1915
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
1908
1916
  contents.WorkloadId = __expectString(data.WorkloadId);
@@ -1982,9 +1990,9 @@ var deserializeAws_restJson1GetAnswerCommandError = function (output, context) {
1982
1990
  });
1983
1991
  }); };
1984
1992
  export var deserializeAws_restJson1GetLensReviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1985
- var contents, data;
1986
- return __generator(this, function (_a) {
1987
- switch (_a.label) {
1993
+ var contents, data, _a, _b;
1994
+ return __generator(this, function (_c) {
1995
+ switch (_c.label) {
1988
1996
  case 0:
1989
1997
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1990
1998
  return [2 /*return*/, deserializeAws_restJson1GetLensReviewCommandError(output, context)];
@@ -1995,14 +2003,16 @@ export var deserializeAws_restJson1GetLensReviewCommand = function (output, cont
1995
2003
  MilestoneNumber: undefined,
1996
2004
  WorkloadId: undefined,
1997
2005
  };
2006
+ _a = __expectNonNull;
2007
+ _b = __expectObject;
1998
2008
  return [4 /*yield*/, parseBody(output.body, context)];
1999
2009
  case 1:
2000
- data = _a.sent();
2010
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2001
2011
  if (data.LensReview !== undefined && data.LensReview !== null) {
2002
2012
  contents.LensReview = deserializeAws_restJson1LensReview(data.LensReview, context);
2003
2013
  }
2004
2014
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2005
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2015
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2006
2016
  }
2007
2017
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
2008
2018
  contents.WorkloadId = __expectString(data.WorkloadId);
@@ -2082,9 +2092,9 @@ var deserializeAws_restJson1GetLensReviewCommandError = function (output, contex
2082
2092
  });
2083
2093
  }); };
2084
2094
  export var deserializeAws_restJson1GetLensReviewReportCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2085
- var contents, data;
2086
- return __generator(this, function (_a) {
2087
- switch (_a.label) {
2095
+ var contents, data, _a, _b;
2096
+ return __generator(this, function (_c) {
2097
+ switch (_c.label) {
2088
2098
  case 0:
2089
2099
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2090
2100
  return [2 /*return*/, deserializeAws_restJson1GetLensReviewReportCommandError(output, context)];
@@ -2095,14 +2105,16 @@ export var deserializeAws_restJson1GetLensReviewReportCommand = function (output
2095
2105
  MilestoneNumber: undefined,
2096
2106
  WorkloadId: undefined,
2097
2107
  };
2108
+ _a = __expectNonNull;
2109
+ _b = __expectObject;
2098
2110
  return [4 /*yield*/, parseBody(output.body, context)];
2099
2111
  case 1:
2100
- data = _a.sent();
2112
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2101
2113
  if (data.LensReviewReport !== undefined && data.LensReviewReport !== null) {
2102
2114
  contents.LensReviewReport = deserializeAws_restJson1LensReviewReport(data.LensReviewReport, context);
2103
2115
  }
2104
2116
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2105
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2117
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2106
2118
  }
2107
2119
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
2108
2120
  contents.WorkloadId = __expectString(data.WorkloadId);
@@ -2182,9 +2194,9 @@ var deserializeAws_restJson1GetLensReviewReportCommandError = function (output,
2182
2194
  });
2183
2195
  }); };
2184
2196
  export var deserializeAws_restJson1GetLensVersionDifferenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2185
- var contents, data;
2186
- return __generator(this, function (_a) {
2187
- switch (_a.label) {
2197
+ var contents, data, _a, _b;
2198
+ return __generator(this, function (_c) {
2199
+ switch (_c.label) {
2188
2200
  case 0:
2189
2201
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2190
2202
  return [2 /*return*/, deserializeAws_restJson1GetLensVersionDifferenceCommandError(output, context)];
@@ -2196,9 +2208,11 @@ export var deserializeAws_restJson1GetLensVersionDifferenceCommand = function (o
2196
2208
  LensAlias: undefined,
2197
2209
  VersionDifferences: undefined,
2198
2210
  };
2211
+ _a = __expectNonNull;
2212
+ _b = __expectObject;
2199
2213
  return [4 /*yield*/, parseBody(output.body, context)];
2200
2214
  case 1:
2201
- data = _a.sent();
2215
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2202
2216
  if (data.BaseLensVersion !== undefined && data.BaseLensVersion !== null) {
2203
2217
  contents.BaseLensVersion = __expectString(data.BaseLensVersion);
2204
2218
  }
@@ -2286,9 +2300,9 @@ var deserializeAws_restJson1GetLensVersionDifferenceCommandError = function (out
2286
2300
  });
2287
2301
  }); };
2288
2302
  export var deserializeAws_restJson1GetMilestoneCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2289
- var contents, data;
2290
- return __generator(this, function (_a) {
2291
- switch (_a.label) {
2303
+ var contents, data, _a, _b;
2304
+ return __generator(this, function (_c) {
2305
+ switch (_c.label) {
2292
2306
  case 0:
2293
2307
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2294
2308
  return [2 /*return*/, deserializeAws_restJson1GetMilestoneCommandError(output, context)];
@@ -2298,9 +2312,11 @@ export var deserializeAws_restJson1GetMilestoneCommand = function (output, conte
2298
2312
  Milestone: undefined,
2299
2313
  WorkloadId: undefined,
2300
2314
  };
2315
+ _a = __expectNonNull;
2316
+ _b = __expectObject;
2301
2317
  return [4 /*yield*/, parseBody(output.body, context)];
2302
2318
  case 1:
2303
- data = _a.sent();
2319
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2304
2320
  if (data.Milestone !== undefined && data.Milestone !== null) {
2305
2321
  contents.Milestone = deserializeAws_restJson1Milestone(data.Milestone, context);
2306
2322
  }
@@ -2382,9 +2398,9 @@ var deserializeAws_restJson1GetMilestoneCommandError = function (output, context
2382
2398
  });
2383
2399
  }); };
2384
2400
  export var deserializeAws_restJson1GetWorkloadCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2385
- var contents, data;
2386
- return __generator(this, function (_a) {
2387
- switch (_a.label) {
2401
+ var contents, data, _a, _b;
2402
+ return __generator(this, function (_c) {
2403
+ switch (_c.label) {
2388
2404
  case 0:
2389
2405
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2390
2406
  return [2 /*return*/, deserializeAws_restJson1GetWorkloadCommandError(output, context)];
@@ -2393,9 +2409,11 @@ export var deserializeAws_restJson1GetWorkloadCommand = function (output, contex
2393
2409
  $metadata: deserializeMetadata(output),
2394
2410
  Workload: undefined,
2395
2411
  };
2412
+ _a = __expectNonNull;
2413
+ _b = __expectObject;
2396
2414
  return [4 /*yield*/, parseBody(output.body, context)];
2397
2415
  case 1:
2398
- data = _a.sent();
2416
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2399
2417
  if (data.Workload !== undefined && data.Workload !== null) {
2400
2418
  contents.Workload = deserializeAws_restJson1Workload(data.Workload, context);
2401
2419
  }
@@ -2474,9 +2492,9 @@ var deserializeAws_restJson1GetWorkloadCommandError = function (output, context)
2474
2492
  });
2475
2493
  }); };
2476
2494
  export var deserializeAws_restJson1ListAnswersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2477
- var contents, data;
2478
- return __generator(this, function (_a) {
2479
- switch (_a.label) {
2495
+ var contents, data, _a, _b;
2496
+ return __generator(this, function (_c) {
2497
+ switch (_c.label) {
2480
2498
  case 0:
2481
2499
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2482
2500
  return [2 /*return*/, deserializeAws_restJson1ListAnswersCommandError(output, context)];
@@ -2489,9 +2507,11 @@ export var deserializeAws_restJson1ListAnswersCommand = function (output, contex
2489
2507
  NextToken: undefined,
2490
2508
  WorkloadId: undefined,
2491
2509
  };
2510
+ _a = __expectNonNull;
2511
+ _b = __expectObject;
2492
2512
  return [4 /*yield*/, parseBody(output.body, context)];
2493
2513
  case 1:
2494
- data = _a.sent();
2514
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2495
2515
  if (data.AnswerSummaries !== undefined && data.AnswerSummaries !== null) {
2496
2516
  contents.AnswerSummaries = deserializeAws_restJson1AnswerSummaries(data.AnswerSummaries, context);
2497
2517
  }
@@ -2499,7 +2519,7 @@ export var deserializeAws_restJson1ListAnswersCommand = function (output, contex
2499
2519
  contents.LensAlias = __expectString(data.LensAlias);
2500
2520
  }
2501
2521
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2502
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2522
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2503
2523
  }
2504
2524
  if (data.NextToken !== undefined && data.NextToken !== null) {
2505
2525
  contents.NextToken = __expectString(data.NextToken);
@@ -2582,9 +2602,9 @@ var deserializeAws_restJson1ListAnswersCommandError = function (output, context)
2582
2602
  });
2583
2603
  }); };
2584
2604
  export var deserializeAws_restJson1ListLensesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2585
- var contents, data;
2586
- return __generator(this, function (_a) {
2587
- switch (_a.label) {
2605
+ var contents, data, _a, _b;
2606
+ return __generator(this, function (_c) {
2607
+ switch (_c.label) {
2588
2608
  case 0:
2589
2609
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2590
2610
  return [2 /*return*/, deserializeAws_restJson1ListLensesCommandError(output, context)];
@@ -2594,9 +2614,11 @@ export var deserializeAws_restJson1ListLensesCommand = function (output, context
2594
2614
  LensSummaries: undefined,
2595
2615
  NextToken: undefined,
2596
2616
  };
2617
+ _a = __expectNonNull;
2618
+ _b = __expectObject;
2597
2619
  return [4 /*yield*/, parseBody(output.body, context)];
2598
2620
  case 1:
2599
- data = _a.sent();
2621
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2600
2622
  if (data.LensSummaries !== undefined && data.LensSummaries !== null) {
2601
2623
  contents.LensSummaries = deserializeAws_restJson1LensSummaries(data.LensSummaries, context);
2602
2624
  }
@@ -2670,9 +2692,9 @@ var deserializeAws_restJson1ListLensesCommandError = function (output, context)
2670
2692
  });
2671
2693
  }); };
2672
2694
  export var deserializeAws_restJson1ListLensReviewImprovementsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2673
- var contents, data;
2674
- return __generator(this, function (_a) {
2675
- switch (_a.label) {
2695
+ var contents, data, _a, _b;
2696
+ return __generator(this, function (_c) {
2697
+ switch (_c.label) {
2676
2698
  case 0:
2677
2699
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2678
2700
  return [2 /*return*/, deserializeAws_restJson1ListLensReviewImprovementsCommandError(output, context)];
@@ -2685,9 +2707,11 @@ export var deserializeAws_restJson1ListLensReviewImprovementsCommand = function
2685
2707
  NextToken: undefined,
2686
2708
  WorkloadId: undefined,
2687
2709
  };
2710
+ _a = __expectNonNull;
2711
+ _b = __expectObject;
2688
2712
  return [4 /*yield*/, parseBody(output.body, context)];
2689
2713
  case 1:
2690
- data = _a.sent();
2714
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2691
2715
  if (data.ImprovementSummaries !== undefined && data.ImprovementSummaries !== null) {
2692
2716
  contents.ImprovementSummaries = deserializeAws_restJson1ImprovementSummaries(data.ImprovementSummaries, context);
2693
2717
  }
@@ -2695,7 +2719,7 @@ export var deserializeAws_restJson1ListLensReviewImprovementsCommand = function
2695
2719
  contents.LensAlias = __expectString(data.LensAlias);
2696
2720
  }
2697
2721
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2698
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2722
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2699
2723
  }
2700
2724
  if (data.NextToken !== undefined && data.NextToken !== null) {
2701
2725
  contents.NextToken = __expectString(data.NextToken);
@@ -2778,9 +2802,9 @@ var deserializeAws_restJson1ListLensReviewImprovementsCommandError = function (o
2778
2802
  });
2779
2803
  }); };
2780
2804
  export var deserializeAws_restJson1ListLensReviewsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2781
- var contents, data;
2782
- return __generator(this, function (_a) {
2783
- switch (_a.label) {
2805
+ var contents, data, _a, _b;
2806
+ return __generator(this, function (_c) {
2807
+ switch (_c.label) {
2784
2808
  case 0:
2785
2809
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2786
2810
  return [2 /*return*/, deserializeAws_restJson1ListLensReviewsCommandError(output, context)];
@@ -2792,14 +2816,16 @@ export var deserializeAws_restJson1ListLensReviewsCommand = function (output, co
2792
2816
  NextToken: undefined,
2793
2817
  WorkloadId: undefined,
2794
2818
  };
2819
+ _a = __expectNonNull;
2820
+ _b = __expectObject;
2795
2821
  return [4 /*yield*/, parseBody(output.body, context)];
2796
2822
  case 1:
2797
- data = _a.sent();
2823
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2798
2824
  if (data.LensReviewSummaries !== undefined && data.LensReviewSummaries !== null) {
2799
2825
  contents.LensReviewSummaries = deserializeAws_restJson1LensReviewSummaries(data.LensReviewSummaries, context);
2800
2826
  }
2801
2827
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2802
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2828
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2803
2829
  }
2804
2830
  if (data.NextToken !== undefined && data.NextToken !== null) {
2805
2831
  contents.NextToken = __expectString(data.NextToken);
@@ -2882,9 +2908,9 @@ var deserializeAws_restJson1ListLensReviewsCommandError = function (output, cont
2882
2908
  });
2883
2909
  }); };
2884
2910
  export var deserializeAws_restJson1ListMilestonesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2885
- var contents, data;
2886
- return __generator(this, function (_a) {
2887
- switch (_a.label) {
2911
+ var contents, data, _a, _b;
2912
+ return __generator(this, function (_c) {
2913
+ switch (_c.label) {
2888
2914
  case 0:
2889
2915
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2890
2916
  return [2 /*return*/, deserializeAws_restJson1ListMilestonesCommandError(output, context)];
@@ -2895,9 +2921,11 @@ export var deserializeAws_restJson1ListMilestonesCommand = function (output, con
2895
2921
  NextToken: undefined,
2896
2922
  WorkloadId: undefined,
2897
2923
  };
2924
+ _a = __expectNonNull;
2925
+ _b = __expectObject;
2898
2926
  return [4 /*yield*/, parseBody(output.body, context)];
2899
2927
  case 1:
2900
- data = _a.sent();
2928
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2901
2929
  if (data.MilestoneSummaries !== undefined && data.MilestoneSummaries !== null) {
2902
2930
  contents.MilestoneSummaries = deserializeAws_restJson1MilestoneSummaries(data.MilestoneSummaries, context);
2903
2931
  }
@@ -2982,9 +3010,9 @@ var deserializeAws_restJson1ListMilestonesCommandError = function (output, conte
2982
3010
  });
2983
3011
  }); };
2984
3012
  export var deserializeAws_restJson1ListNotificationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2985
- var contents, data;
2986
- return __generator(this, function (_a) {
2987
- switch (_a.label) {
3013
+ var contents, data, _a, _b;
3014
+ return __generator(this, function (_c) {
3015
+ switch (_c.label) {
2988
3016
  case 0:
2989
3017
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2990
3018
  return [2 /*return*/, deserializeAws_restJson1ListNotificationsCommandError(output, context)];
@@ -2994,9 +3022,11 @@ export var deserializeAws_restJson1ListNotificationsCommand = function (output,
2994
3022
  NextToken: undefined,
2995
3023
  NotificationSummaries: undefined,
2996
3024
  };
3025
+ _a = __expectNonNull;
3026
+ _b = __expectObject;
2997
3027
  return [4 /*yield*/, parseBody(output.body, context)];
2998
3028
  case 1:
2999
- data = _a.sent();
3029
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3000
3030
  if (data.NextToken !== undefined && data.NextToken !== null) {
3001
3031
  contents.NextToken = __expectString(data.NextToken);
3002
3032
  }
@@ -3070,9 +3100,9 @@ var deserializeAws_restJson1ListNotificationsCommandError = function (output, co
3070
3100
  });
3071
3101
  }); };
3072
3102
  export var deserializeAws_restJson1ListShareInvitationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3073
- var contents, data;
3074
- return __generator(this, function (_a) {
3075
- switch (_a.label) {
3103
+ var contents, data, _a, _b;
3104
+ return __generator(this, function (_c) {
3105
+ switch (_c.label) {
3076
3106
  case 0:
3077
3107
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3078
3108
  return [2 /*return*/, deserializeAws_restJson1ListShareInvitationsCommandError(output, context)];
@@ -3082,9 +3112,11 @@ export var deserializeAws_restJson1ListShareInvitationsCommand = function (outpu
3082
3112
  NextToken: undefined,
3083
3113
  ShareInvitationSummaries: undefined,
3084
3114
  };
3115
+ _a = __expectNonNull;
3116
+ _b = __expectObject;
3085
3117
  return [4 /*yield*/, parseBody(output.body, context)];
3086
3118
  case 1:
3087
- data = _a.sent();
3119
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3088
3120
  if (data.NextToken !== undefined && data.NextToken !== null) {
3089
3121
  contents.NextToken = __expectString(data.NextToken);
3090
3122
  }
@@ -3158,9 +3190,9 @@ var deserializeAws_restJson1ListShareInvitationsCommandError = function (output,
3158
3190
  });
3159
3191
  }); };
3160
3192
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3161
- var contents, data;
3162
- return __generator(this, function (_a) {
3163
- switch (_a.label) {
3193
+ var contents, data, _a, _b;
3194
+ return __generator(this, function (_c) {
3195
+ switch (_c.label) {
3164
3196
  case 0:
3165
3197
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3166
3198
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -3169,9 +3201,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
3169
3201
  $metadata: deserializeMetadata(output),
3170
3202
  Tags: undefined,
3171
3203
  };
3204
+ _a = __expectNonNull;
3205
+ _b = __expectObject;
3172
3206
  return [4 /*yield*/, parseBody(output.body, context)];
3173
3207
  case 1:
3174
- data = _a.sent();
3208
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3175
3209
  if (data.Tags !== undefined && data.Tags !== null) {
3176
3210
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3177
3211
  }
@@ -3226,9 +3260,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
3226
3260
  });
3227
3261
  }); };
3228
3262
  export var deserializeAws_restJson1ListWorkloadsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3229
- var contents, data;
3230
- return __generator(this, function (_a) {
3231
- switch (_a.label) {
3263
+ var contents, data, _a, _b;
3264
+ return __generator(this, function (_c) {
3265
+ switch (_c.label) {
3232
3266
  case 0:
3233
3267
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3234
3268
  return [2 /*return*/, deserializeAws_restJson1ListWorkloadsCommandError(output, context)];
@@ -3238,9 +3272,11 @@ export var deserializeAws_restJson1ListWorkloadsCommand = function (output, cont
3238
3272
  NextToken: undefined,
3239
3273
  WorkloadSummaries: undefined,
3240
3274
  };
3275
+ _a = __expectNonNull;
3276
+ _b = __expectObject;
3241
3277
  return [4 /*yield*/, parseBody(output.body, context)];
3242
3278
  case 1:
3243
- data = _a.sent();
3279
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3244
3280
  if (data.NextToken !== undefined && data.NextToken !== null) {
3245
3281
  contents.NextToken = __expectString(data.NextToken);
3246
3282
  }
@@ -3314,9 +3350,9 @@ var deserializeAws_restJson1ListWorkloadsCommandError = function (output, contex
3314
3350
  });
3315
3351
  }); };
3316
3352
  export var deserializeAws_restJson1ListWorkloadSharesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3317
- var contents, data;
3318
- return __generator(this, function (_a) {
3319
- switch (_a.label) {
3353
+ var contents, data, _a, _b;
3354
+ return __generator(this, function (_c) {
3355
+ switch (_c.label) {
3320
3356
  case 0:
3321
3357
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3322
3358
  return [2 /*return*/, deserializeAws_restJson1ListWorkloadSharesCommandError(output, context)];
@@ -3327,9 +3363,11 @@ export var deserializeAws_restJson1ListWorkloadSharesCommand = function (output,
3327
3363
  WorkloadId: undefined,
3328
3364
  WorkloadShareSummaries: undefined,
3329
3365
  };
3366
+ _a = __expectNonNull;
3367
+ _b = __expectObject;
3330
3368
  return [4 /*yield*/, parseBody(output.body, context)];
3331
3369
  case 1:
3332
- data = _a.sent();
3370
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3333
3371
  if (data.NextToken !== undefined && data.NextToken !== null) {
3334
3372
  contents.NextToken = __expectString(data.NextToken);
3335
3373
  }
@@ -3542,9 +3580,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
3542
3580
  });
3543
3581
  }); };
3544
3582
  export var deserializeAws_restJson1UpdateAnswerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3545
- var contents, data;
3546
- return __generator(this, function (_a) {
3547
- switch (_a.label) {
3583
+ var contents, data, _a, _b;
3584
+ return __generator(this, function (_c) {
3585
+ switch (_c.label) {
3548
3586
  case 0:
3549
3587
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3550
3588
  return [2 /*return*/, deserializeAws_restJson1UpdateAnswerCommandError(output, context)];
@@ -3555,9 +3593,11 @@ export var deserializeAws_restJson1UpdateAnswerCommand = function (output, conte
3555
3593
  LensAlias: undefined,
3556
3594
  WorkloadId: undefined,
3557
3595
  };
3596
+ _a = __expectNonNull;
3597
+ _b = __expectObject;
3558
3598
  return [4 /*yield*/, parseBody(output.body, context)];
3559
3599
  case 1:
3560
- data = _a.sent();
3600
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3561
3601
  if (data.Answer !== undefined && data.Answer !== null) {
3562
3602
  contents.Answer = deserializeAws_restJson1Answer(data.Answer, context);
3563
3603
  }
@@ -3650,9 +3690,9 @@ var deserializeAws_restJson1UpdateAnswerCommandError = function (output, context
3650
3690
  });
3651
3691
  }); };
3652
3692
  export var deserializeAws_restJson1UpdateLensReviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3653
- var contents, data;
3654
- return __generator(this, function (_a) {
3655
- switch (_a.label) {
3693
+ var contents, data, _a, _b;
3694
+ return __generator(this, function (_c) {
3695
+ switch (_c.label) {
3656
3696
  case 0:
3657
3697
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3658
3698
  return [2 /*return*/, deserializeAws_restJson1UpdateLensReviewCommandError(output, context)];
@@ -3662,9 +3702,11 @@ export var deserializeAws_restJson1UpdateLensReviewCommand = function (output, c
3662
3702
  LensReview: undefined,
3663
3703
  WorkloadId: undefined,
3664
3704
  };
3705
+ _a = __expectNonNull;
3706
+ _b = __expectObject;
3665
3707
  return [4 /*yield*/, parseBody(output.body, context)];
3666
3708
  case 1:
3667
- data = _a.sent();
3709
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3668
3710
  if (data.LensReview !== undefined && data.LensReview !== null) {
3669
3711
  contents.LensReview = deserializeAws_restJson1LensReview(data.LensReview, context);
3670
3712
  }
@@ -3754,9 +3796,9 @@ var deserializeAws_restJson1UpdateLensReviewCommandError = function (output, con
3754
3796
  });
3755
3797
  }); };
3756
3798
  export var deserializeAws_restJson1UpdateShareInvitationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3757
- var contents, data;
3758
- return __generator(this, function (_a) {
3759
- switch (_a.label) {
3799
+ var contents, data, _a, _b;
3800
+ return __generator(this, function (_c) {
3801
+ switch (_c.label) {
3760
3802
  case 0:
3761
3803
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3762
3804
  return [2 /*return*/, deserializeAws_restJson1UpdateShareInvitationCommandError(output, context)];
@@ -3765,9 +3807,11 @@ export var deserializeAws_restJson1UpdateShareInvitationCommand = function (outp
3765
3807
  $metadata: deserializeMetadata(output),
3766
3808
  ShareInvitation: undefined,
3767
3809
  };
3810
+ _a = __expectNonNull;
3811
+ _b = __expectObject;
3768
3812
  return [4 /*yield*/, parseBody(output.body, context)];
3769
3813
  case 1:
3770
- data = _a.sent();
3814
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3771
3815
  if (data.ShareInvitation !== undefined && data.ShareInvitation !== null) {
3772
3816
  contents.ShareInvitation = deserializeAws_restJson1ShareInvitation(data.ShareInvitation, context);
3773
3817
  }
@@ -3854,9 +3898,9 @@ var deserializeAws_restJson1UpdateShareInvitationCommandError = function (output
3854
3898
  });
3855
3899
  }); };
3856
3900
  export var deserializeAws_restJson1UpdateWorkloadCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3857
- var contents, data;
3858
- return __generator(this, function (_a) {
3859
- switch (_a.label) {
3901
+ var contents, data, _a, _b;
3902
+ return __generator(this, function (_c) {
3903
+ switch (_c.label) {
3860
3904
  case 0:
3861
3905
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3862
3906
  return [2 /*return*/, deserializeAws_restJson1UpdateWorkloadCommandError(output, context)];
@@ -3865,9 +3909,11 @@ export var deserializeAws_restJson1UpdateWorkloadCommand = function (output, con
3865
3909
  $metadata: deserializeMetadata(output),
3866
3910
  Workload: undefined,
3867
3911
  };
3912
+ _a = __expectNonNull;
3913
+ _b = __expectObject;
3868
3914
  return [4 /*yield*/, parseBody(output.body, context)];
3869
3915
  case 1:
3870
- data = _a.sent();
3916
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3871
3917
  if (data.Workload !== undefined && data.Workload !== null) {
3872
3918
  contents.Workload = deserializeAws_restJson1Workload(data.Workload, context);
3873
3919
  }
@@ -3954,9 +4000,9 @@ var deserializeAws_restJson1UpdateWorkloadCommandError = function (output, conte
3954
4000
  });
3955
4001
  }); };
3956
4002
  export var deserializeAws_restJson1UpdateWorkloadShareCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3957
- var contents, data;
3958
- return __generator(this, function (_a) {
3959
- switch (_a.label) {
4003
+ var contents, data, _a, _b;
4004
+ return __generator(this, function (_c) {
4005
+ switch (_c.label) {
3960
4006
  case 0:
3961
4007
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3962
4008
  return [2 /*return*/, deserializeAws_restJson1UpdateWorkloadShareCommandError(output, context)];
@@ -3966,9 +4012,11 @@ export var deserializeAws_restJson1UpdateWorkloadShareCommand = function (output
3966
4012
  WorkloadId: undefined,
3967
4013
  WorkloadShare: undefined,
3968
4014
  };
4015
+ _a = __expectNonNull;
4016
+ _b = __expectObject;
3969
4017
  return [4 /*yield*/, parseBody(output.body, context)];
3970
4018
  case 1:
3971
- data = _a.sent();
4019
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3972
4020
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
3973
4021
  contents.WorkloadId = __expectString(data.WorkloadId);
3974
4022
  }
@@ -4554,7 +4602,7 @@ var deserializeAws_restJson1LensReview = function (output, context) {
4554
4602
  ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
4555
4603
  : undefined,
4556
4604
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4557
- ? new Date(Math.round(output.UpdatedAt * 1000))
4605
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
4558
4606
  : undefined,
4559
4607
  };
4560
4608
  };
@@ -4584,7 +4632,7 @@ var deserializeAws_restJson1LensReviewSummary = function (output, context) {
4584
4632
  ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
4585
4633
  : undefined,
4586
4634
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4587
- ? new Date(Math.round(output.UpdatedAt * 1000))
4635
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
4588
4636
  : undefined,
4589
4637
  };
4590
4638
  };
@@ -4618,9 +4666,9 @@ var deserializeAws_restJson1LensUpgradeSummary = function (output, context) {
4618
4666
  var deserializeAws_restJson1Milestone = function (output, context) {
4619
4667
  return {
4620
4668
  MilestoneName: __expectString(output.MilestoneName),
4621
- MilestoneNumber: __expectInt(output.MilestoneNumber),
4669
+ MilestoneNumber: __expectInt32(output.MilestoneNumber),
4622
4670
  RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null
4623
- ? new Date(Math.round(output.RecordedAt * 1000))
4671
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt)))
4624
4672
  : undefined,
4625
4673
  Workload: output.Workload !== undefined && output.Workload !== null
4626
4674
  ? deserializeAws_restJson1Workload(output.Workload, context)
@@ -4640,9 +4688,9 @@ var deserializeAws_restJson1MilestoneSummaries = function (output, context) {
4640
4688
  var deserializeAws_restJson1MilestoneSummary = function (output, context) {
4641
4689
  return {
4642
4690
  MilestoneName: __expectString(output.MilestoneName),
4643
- MilestoneNumber: __expectInt(output.MilestoneNumber),
4691
+ MilestoneNumber: __expectInt32(output.MilestoneNumber),
4644
4692
  RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null
4645
- ? new Date(Math.round(output.RecordedAt * 1000))
4693
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt)))
4646
4694
  : undefined,
4647
4695
  WorkloadSummary: output.WorkloadSummary !== undefined && output.WorkloadSummary !== null
4648
4696
  ? deserializeAws_restJson1WorkloadSummary(output.WorkloadSummary, context)
@@ -4730,7 +4778,7 @@ var deserializeAws_restJson1RiskCounts = function (output, context) {
4730
4778
  if (value === null) {
4731
4779
  return acc;
4732
4780
  }
4733
- return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectInt(value), _b));
4781
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectInt32(value), _b));
4734
4782
  }, {});
4735
4783
  };
4736
4784
  var deserializeAws_restJson1SelectedChoices = function (output, context) {
@@ -4830,7 +4878,7 @@ var deserializeAws_restJson1Workload = function (output, context) {
4830
4878
  : undefined,
4831
4879
  ReviewOwner: __expectString(output.ReviewOwner),
4832
4880
  ReviewRestrictionDate: output.ReviewRestrictionDate !== undefined && output.ReviewRestrictionDate !== null
4833
- ? new Date(Math.round(output.ReviewRestrictionDate * 1000))
4881
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReviewRestrictionDate)))
4834
4882
  : undefined,
4835
4883
  RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
4836
4884
  ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
@@ -4840,7 +4888,7 @@ var deserializeAws_restJson1Workload = function (output, context) {
4840
4888
  ? deserializeAws_restJson1TagMap(output.Tags, context)
4841
4889
  : undefined,
4842
4890
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4843
- ? new Date(Math.round(output.UpdatedAt * 1000))
4891
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
4844
4892
  : undefined,
4845
4893
  WorkloadArn: __expectString(output.WorkloadArn),
4846
4894
  WorkloadId: __expectString(output.WorkloadId),
@@ -4947,7 +4995,7 @@ var deserializeAws_restJson1WorkloadSummary = function (output, context) {
4947
4995
  ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
4948
4996
  : undefined,
4949
4997
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4950
- ? new Date(Math.round(output.UpdatedAt * 1000))
4998
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
4951
4999
  : undefined,
4952
5000
  WorkloadArn: __expectString(output.WorkloadArn),
4953
5001
  WorkloadId: __expectString(output.WorkloadId),