@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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-wellarchitected",
3
3
  "description": "AWS SDK for JavaScript Wellarchitected Client for Node.js, Browser and React Native",
4
- "version": "3.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,39 +27,39 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.1.0",
29
29
  "@aws-crypto/sha256-js": "^1.1.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0",
59
59
  "uuid": "^8.3.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@aws-sdk/client-documentation-generator": "3.23.0",
62
+ "@aws-sdk/client-documentation-generator": "3.32.0",
63
63
  "@types/node": "^12.7.5",
64
64
  "@types/uuid": "^8.3.0",
65
65
  "downlevel-dts": "0.7.0",
@@ -67,7 +67,7 @@
67
67
  "rimraf": "^3.0.0",
68
68
  "ts-jest": "^26.4.1",
69
69
  "typedoc": "^0.19.2",
70
- "typescript": "~4.3.2"
70
+ "typescript": "~4.3.5"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=10.0.0"
@@ -95,9 +95,13 @@ import {
95
95
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
96
96
  import {
97
97
  expectBoolean as __expectBoolean,
98
- expectInt as __expectInt,
98
+ expectInt32 as __expectInt32,
99
+ expectNonNull as __expectNonNull,
100
+ expectNumber as __expectNumber,
101
+ expectObject as __expectObject,
99
102
  expectString as __expectString,
100
103
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
104
+ parseEpochTimestamp as __parseEpochTimestamp,
101
105
  } from "@aws-sdk/smithy-client";
102
106
  import {
103
107
  Endpoint as __Endpoint,
@@ -1400,9 +1404,9 @@ export const deserializeAws_restJson1CreateMilestoneCommand = async (
1400
1404
  MilestoneNumber: undefined,
1401
1405
  WorkloadId: undefined,
1402
1406
  };
1403
- const data: any = await parseBody(output.body, context);
1407
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1404
1408
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
1405
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
1409
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
1406
1410
  }
1407
1411
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
1408
1412
  contents.WorkloadId = __expectString(data.WorkloadId);
@@ -1507,7 +1511,7 @@ export const deserializeAws_restJson1CreateWorkloadCommand = async (
1507
1511
  WorkloadArn: undefined,
1508
1512
  WorkloadId: undefined,
1509
1513
  };
1510
- const data: any = await parseBody(output.body, context);
1514
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1511
1515
  if (data.WorkloadArn !== undefined && data.WorkloadArn !== null) {
1512
1516
  contents.WorkloadArn = __expectString(data.WorkloadArn);
1513
1517
  }
@@ -1606,7 +1610,7 @@ export const deserializeAws_restJson1CreateWorkloadShareCommand = async (
1606
1610
  ShareId: undefined,
1607
1611
  WorkloadId: undefined,
1608
1612
  };
1609
- const data: any = await parseBody(output.body, context);
1613
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1610
1614
  if (data.ShareId !== undefined && data.ShareId !== null) {
1611
1615
  contents.ShareId = __expectString(data.ShareId);
1612
1616
  }
@@ -1988,7 +1992,7 @@ export const deserializeAws_restJson1GetAnswerCommand = async (
1988
1992
  MilestoneNumber: undefined,
1989
1993
  WorkloadId: undefined,
1990
1994
  };
1991
- const data: any = await parseBody(output.body, context);
1995
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1992
1996
  if (data.Answer !== undefined && data.Answer !== null) {
1993
1997
  contents.Answer = deserializeAws_restJson1Answer(data.Answer, context);
1994
1998
  }
@@ -1996,7 +2000,7 @@ export const deserializeAws_restJson1GetAnswerCommand = async (
1996
2000
  contents.LensAlias = __expectString(data.LensAlias);
1997
2001
  }
1998
2002
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
1999
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2003
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2000
2004
  }
2001
2005
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
2002
2006
  contents.WorkloadId = __expectString(data.WorkloadId);
@@ -2086,12 +2090,12 @@ export const deserializeAws_restJson1GetLensReviewCommand = async (
2086
2090
  MilestoneNumber: undefined,
2087
2091
  WorkloadId: undefined,
2088
2092
  };
2089
- const data: any = await parseBody(output.body, context);
2093
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2090
2094
  if (data.LensReview !== undefined && data.LensReview !== null) {
2091
2095
  contents.LensReview = deserializeAws_restJson1LensReview(data.LensReview, context);
2092
2096
  }
2093
2097
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2094
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2098
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2095
2099
  }
2096
2100
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
2097
2101
  contents.WorkloadId = __expectString(data.WorkloadId);
@@ -2181,12 +2185,12 @@ export const deserializeAws_restJson1GetLensReviewReportCommand = async (
2181
2185
  MilestoneNumber: undefined,
2182
2186
  WorkloadId: undefined,
2183
2187
  };
2184
- const data: any = await parseBody(output.body, context);
2188
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2185
2189
  if (data.LensReviewReport !== undefined && data.LensReviewReport !== null) {
2186
2190
  contents.LensReviewReport = deserializeAws_restJson1LensReviewReport(data.LensReviewReport, context);
2187
2191
  }
2188
2192
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2189
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2193
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2190
2194
  }
2191
2195
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
2192
2196
  contents.WorkloadId = __expectString(data.WorkloadId);
@@ -2277,7 +2281,7 @@ export const deserializeAws_restJson1GetLensVersionDifferenceCommand = async (
2277
2281
  LensAlias: undefined,
2278
2282
  VersionDifferences: undefined,
2279
2283
  };
2280
- const data: any = await parseBody(output.body, context);
2284
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2281
2285
  if (data.BaseLensVersion !== undefined && data.BaseLensVersion !== null) {
2282
2286
  contents.BaseLensVersion = __expectString(data.BaseLensVersion);
2283
2287
  }
@@ -2374,7 +2378,7 @@ export const deserializeAws_restJson1GetMilestoneCommand = async (
2374
2378
  Milestone: undefined,
2375
2379
  WorkloadId: undefined,
2376
2380
  };
2377
- const data: any = await parseBody(output.body, context);
2381
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2378
2382
  if (data.Milestone !== undefined && data.Milestone !== null) {
2379
2383
  contents.Milestone = deserializeAws_restJson1Milestone(data.Milestone, context);
2380
2384
  }
@@ -2464,7 +2468,7 @@ export const deserializeAws_restJson1GetWorkloadCommand = async (
2464
2468
  $metadata: deserializeMetadata(output),
2465
2469
  Workload: undefined,
2466
2470
  };
2467
- const data: any = await parseBody(output.body, context);
2471
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2468
2472
  if (data.Workload !== undefined && data.Workload !== null) {
2469
2473
  contents.Workload = deserializeAws_restJson1Workload(data.Workload, context);
2470
2474
  }
@@ -2555,7 +2559,7 @@ export const deserializeAws_restJson1ListAnswersCommand = async (
2555
2559
  NextToken: undefined,
2556
2560
  WorkloadId: undefined,
2557
2561
  };
2558
- const data: any = await parseBody(output.body, context);
2562
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2559
2563
  if (data.AnswerSummaries !== undefined && data.AnswerSummaries !== null) {
2560
2564
  contents.AnswerSummaries = deserializeAws_restJson1AnswerSummaries(data.AnswerSummaries, context);
2561
2565
  }
@@ -2563,7 +2567,7 @@ export const deserializeAws_restJson1ListAnswersCommand = async (
2563
2567
  contents.LensAlias = __expectString(data.LensAlias);
2564
2568
  }
2565
2569
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2566
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2570
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2567
2571
  }
2568
2572
  if (data.NextToken !== undefined && data.NextToken !== null) {
2569
2573
  contents.NextToken = __expectString(data.NextToken);
@@ -2655,7 +2659,7 @@ export const deserializeAws_restJson1ListLensesCommand = async (
2655
2659
  LensSummaries: undefined,
2656
2660
  NextToken: undefined,
2657
2661
  };
2658
- const data: any = await parseBody(output.body, context);
2662
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2659
2663
  if (data.LensSummaries !== undefined && data.LensSummaries !== null) {
2660
2664
  contents.LensSummaries = deserializeAws_restJson1LensSummaries(data.LensSummaries, context);
2661
2665
  }
@@ -2741,7 +2745,7 @@ export const deserializeAws_restJson1ListLensReviewImprovementsCommand = async (
2741
2745
  NextToken: undefined,
2742
2746
  WorkloadId: undefined,
2743
2747
  };
2744
- const data: any = await parseBody(output.body, context);
2748
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2745
2749
  if (data.ImprovementSummaries !== undefined && data.ImprovementSummaries !== null) {
2746
2750
  contents.ImprovementSummaries = deserializeAws_restJson1ImprovementSummaries(data.ImprovementSummaries, context);
2747
2751
  }
@@ -2749,7 +2753,7 @@ export const deserializeAws_restJson1ListLensReviewImprovementsCommand = async (
2749
2753
  contents.LensAlias = __expectString(data.LensAlias);
2750
2754
  }
2751
2755
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2752
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2756
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2753
2757
  }
2754
2758
  if (data.NextToken !== undefined && data.NextToken !== null) {
2755
2759
  contents.NextToken = __expectString(data.NextToken);
@@ -2843,12 +2847,12 @@ export const deserializeAws_restJson1ListLensReviewsCommand = async (
2843
2847
  NextToken: undefined,
2844
2848
  WorkloadId: undefined,
2845
2849
  };
2846
- const data: any = await parseBody(output.body, context);
2850
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2847
2851
  if (data.LensReviewSummaries !== undefined && data.LensReviewSummaries !== null) {
2848
2852
  contents.LensReviewSummaries = deserializeAws_restJson1LensReviewSummaries(data.LensReviewSummaries, context);
2849
2853
  }
2850
2854
  if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
2851
- contents.MilestoneNumber = __expectInt(data.MilestoneNumber);
2855
+ contents.MilestoneNumber = __expectInt32(data.MilestoneNumber);
2852
2856
  }
2853
2857
  if (data.NextToken !== undefined && data.NextToken !== null) {
2854
2858
  contents.NextToken = __expectString(data.NextToken);
@@ -2941,7 +2945,7 @@ export const deserializeAws_restJson1ListMilestonesCommand = async (
2941
2945
  NextToken: undefined,
2942
2946
  WorkloadId: undefined,
2943
2947
  };
2944
- const data: any = await parseBody(output.body, context);
2948
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2945
2949
  if (data.MilestoneSummaries !== undefined && data.MilestoneSummaries !== null) {
2946
2950
  contents.MilestoneSummaries = deserializeAws_restJson1MilestoneSummaries(data.MilestoneSummaries, context);
2947
2951
  }
@@ -3035,7 +3039,7 @@ export const deserializeAws_restJson1ListNotificationsCommand = async (
3035
3039
  NextToken: undefined,
3036
3040
  NotificationSummaries: undefined,
3037
3041
  };
3038
- const data: any = await parseBody(output.body, context);
3042
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3039
3043
  if (data.NextToken !== undefined && data.NextToken !== null) {
3040
3044
  contents.NextToken = __expectString(data.NextToken);
3041
3045
  }
@@ -3118,7 +3122,7 @@ export const deserializeAws_restJson1ListShareInvitationsCommand = async (
3118
3122
  NextToken: undefined,
3119
3123
  ShareInvitationSummaries: undefined,
3120
3124
  };
3121
- const data: any = await parseBody(output.body, context);
3125
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3122
3126
  if (data.NextToken !== undefined && data.NextToken !== null) {
3123
3127
  contents.NextToken = __expectString(data.NextToken);
3124
3128
  }
@@ -3203,7 +3207,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
3203
3207
  $metadata: deserializeMetadata(output),
3204
3208
  Tags: undefined,
3205
3209
  };
3206
- const data: any = await parseBody(output.body, context);
3210
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3207
3211
  if (data.Tags !== undefined && data.Tags !== null) {
3208
3212
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3209
3213
  }
@@ -3267,7 +3271,7 @@ export const deserializeAws_restJson1ListWorkloadsCommand = async (
3267
3271
  NextToken: undefined,
3268
3272
  WorkloadSummaries: undefined,
3269
3273
  };
3270
- const data: any = await parseBody(output.body, context);
3274
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3271
3275
  if (data.NextToken !== undefined && data.NextToken !== null) {
3272
3276
  contents.NextToken = __expectString(data.NextToken);
3273
3277
  }
@@ -3351,7 +3355,7 @@ export const deserializeAws_restJson1ListWorkloadSharesCommand = async (
3351
3355
  WorkloadId: undefined,
3352
3356
  WorkloadShareSummaries: undefined,
3353
3357
  };
3354
- const data: any = await parseBody(output.body, context);
3358
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3355
3359
  if (data.NextToken !== undefined && data.NextToken !== null) {
3356
3360
  contents.NextToken = __expectString(data.NextToken);
3357
3361
  }
@@ -3567,7 +3571,7 @@ export const deserializeAws_restJson1UpdateAnswerCommand = async (
3567
3571
  LensAlias: undefined,
3568
3572
  WorkloadId: undefined,
3569
3573
  };
3570
- const data: any = await parseBody(output.body, context);
3574
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3571
3575
  if (data.Answer !== undefined && data.Answer !== null) {
3572
3576
  contents.Answer = deserializeAws_restJson1Answer(data.Answer, context);
3573
3577
  }
@@ -3669,7 +3673,7 @@ export const deserializeAws_restJson1UpdateLensReviewCommand = async (
3669
3673
  LensReview: undefined,
3670
3674
  WorkloadId: undefined,
3671
3675
  };
3672
- const data: any = await parseBody(output.body, context);
3676
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3673
3677
  if (data.LensReview !== undefined && data.LensReview !== null) {
3674
3678
  contents.LensReview = deserializeAws_restJson1LensReview(data.LensReview, context);
3675
3679
  }
@@ -3767,7 +3771,7 @@ export const deserializeAws_restJson1UpdateShareInvitationCommand = async (
3767
3771
  $metadata: deserializeMetadata(output),
3768
3772
  ShareInvitation: undefined,
3769
3773
  };
3770
- const data: any = await parseBody(output.body, context);
3774
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3771
3775
  if (data.ShareInvitation !== undefined && data.ShareInvitation !== null) {
3772
3776
  contents.ShareInvitation = deserializeAws_restJson1ShareInvitation(data.ShareInvitation, context);
3773
3777
  }
@@ -3862,7 +3866,7 @@ export const deserializeAws_restJson1UpdateWorkloadCommand = async (
3862
3866
  $metadata: deserializeMetadata(output),
3863
3867
  Workload: undefined,
3864
3868
  };
3865
- const data: any = await parseBody(output.body, context);
3869
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3866
3870
  if (data.Workload !== undefined && data.Workload !== null) {
3867
3871
  contents.Workload = deserializeAws_restJson1Workload(data.Workload, context);
3868
3872
  }
@@ -3958,7 +3962,7 @@ export const deserializeAws_restJson1UpdateWorkloadShareCommand = async (
3958
3962
  WorkloadId: undefined,
3959
3963
  WorkloadShare: undefined,
3960
3964
  };
3961
- const data: any = await parseBody(output.body, context);
3965
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3962
3966
  if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
3963
3967
  contents.WorkloadId = __expectString(data.WorkloadId);
3964
3968
  }
@@ -4582,7 +4586,7 @@ const deserializeAws_restJson1LensReview = (output: any, context: __SerdeContext
4582
4586
  : undefined,
4583
4587
  UpdatedAt:
4584
4588
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
4585
- ? new Date(Math.round(output.UpdatedAt * 1000))
4589
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
4586
4590
  : undefined,
4587
4591
  } as any;
4588
4592
  };
@@ -4617,7 +4621,7 @@ const deserializeAws_restJson1LensReviewSummary = (output: any, context: __Serde
4617
4621
  : undefined,
4618
4622
  UpdatedAt:
4619
4623
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
4620
- ? new Date(Math.round(output.UpdatedAt * 1000))
4624
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
4621
4625
  : undefined,
4622
4626
  } as any;
4623
4627
  };
@@ -4655,10 +4659,10 @@ const deserializeAws_restJson1LensUpgradeSummary = (output: any, context: __Serd
4655
4659
  const deserializeAws_restJson1Milestone = (output: any, context: __SerdeContext): Milestone => {
4656
4660
  return {
4657
4661
  MilestoneName: __expectString(output.MilestoneName),
4658
- MilestoneNumber: __expectInt(output.MilestoneNumber),
4662
+ MilestoneNumber: __expectInt32(output.MilestoneNumber),
4659
4663
  RecordedAt:
4660
4664
  output.RecordedAt !== undefined && output.RecordedAt !== null
4661
- ? new Date(Math.round(output.RecordedAt * 1000))
4665
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt)))
4662
4666
  : undefined,
4663
4667
  Workload:
4664
4668
  output.Workload !== undefined && output.Workload !== null
@@ -4681,10 +4685,10 @@ const deserializeAws_restJson1MilestoneSummaries = (output: any, context: __Serd
4681
4685
  const deserializeAws_restJson1MilestoneSummary = (output: any, context: __SerdeContext): MilestoneSummary => {
4682
4686
  return {
4683
4687
  MilestoneName: __expectString(output.MilestoneName),
4684
- MilestoneNumber: __expectInt(output.MilestoneNumber),
4688
+ MilestoneNumber: __expectInt32(output.MilestoneNumber),
4685
4689
  RecordedAt:
4686
4690
  output.RecordedAt !== undefined && output.RecordedAt !== null
4687
- ? new Date(Math.round(output.RecordedAt * 1000))
4691
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt)))
4688
4692
  : undefined,
4689
4693
  WorkloadSummary:
4690
4694
  output.WorkloadSummary !== undefined && output.WorkloadSummary !== null
@@ -4785,7 +4789,7 @@ const deserializeAws_restJson1RiskCounts = (output: any, context: __SerdeContext
4785
4789
  }
4786
4790
  return {
4787
4791
  ...acc,
4788
- [key]: __expectInt(value) as any,
4792
+ [key]: __expectInt32(value) as any,
4789
4793
  };
4790
4794
  }, {});
4791
4795
  };
@@ -4915,7 +4919,7 @@ const deserializeAws_restJson1Workload = (output: any, context: __SerdeContext):
4915
4919
  ReviewOwner: __expectString(output.ReviewOwner),
4916
4920
  ReviewRestrictionDate:
4917
4921
  output.ReviewRestrictionDate !== undefined && output.ReviewRestrictionDate !== null
4918
- ? new Date(Math.round(output.ReviewRestrictionDate * 1000))
4922
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReviewRestrictionDate)))
4919
4923
  : undefined,
4920
4924
  RiskCounts:
4921
4925
  output.RiskCounts !== undefined && output.RiskCounts !== null
@@ -4928,7 +4932,7 @@ const deserializeAws_restJson1Workload = (output: any, context: __SerdeContext):
4928
4932
  : undefined,
4929
4933
  UpdatedAt:
4930
4934
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
4931
- ? new Date(Math.round(output.UpdatedAt * 1000))
4935
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
4932
4936
  : undefined,
4933
4937
  WorkloadArn: __expectString(output.WorkloadArn),
4934
4938
  WorkloadId: __expectString(output.WorkloadId),
@@ -5051,7 +5055,7 @@ const deserializeAws_restJson1WorkloadSummary = (output: any, context: __SerdeCo
5051
5055
  : undefined,
5052
5056
  UpdatedAt:
5053
5057
  output.UpdatedAt !== undefined && output.UpdatedAt !== null
5054
- ? new Date(Math.round(output.UpdatedAt * 1000))
5058
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
5055
5059
  : undefined,
5056
5060
  WorkloadArn: __expectString(output.WorkloadArn),
5057
5061
  WorkloadId: __expectString(output.WorkloadId),