@aws-sdk/client-wellarchitected 3.121.0 → 3.127.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,14 @@
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-wellarchitected
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
15
 
8
16
 
@@ -25,8 +25,7 @@ const serializeAws_restJson1AssociateLensesCommand = async (input, context) => {
25
25
  }
26
26
  let body;
27
27
  body = JSON.stringify({
28
- ...(input.LensAliases !== undefined &&
29
- input.LensAliases !== null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
28
+ ...(input.LensAliases != null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
30
29
  });
31
30
  return new protocol_http_1.HttpRequest({
32
31
  protocol,
@@ -59,7 +58,7 @@ const serializeAws_restJson1CreateLensShareCommand = async (input, context) => {
59
58
  let body;
60
59
  body = JSON.stringify({
61
60
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
62
- ...(input.SharedWith !== undefined && input.SharedWith !== null && { SharedWith: input.SharedWith }),
61
+ ...(input.SharedWith != null && { SharedWith: input.SharedWith }),
63
62
  });
64
63
  return new protocol_http_1.HttpRequest({
65
64
  protocol,
@@ -92,9 +91,8 @@ const serializeAws_restJson1CreateLensVersionCommand = async (input, context) =>
92
91
  let body;
93
92
  body = JSON.stringify({
94
93
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
95
- ...(input.IsMajorVersion !== undefined &&
96
- input.IsMajorVersion !== null && { IsMajorVersion: input.IsMajorVersion }),
97
- ...(input.LensVersion !== undefined && input.LensVersion !== null && { LensVersion: input.LensVersion }),
94
+ ...(input.IsMajorVersion != null && { IsMajorVersion: input.IsMajorVersion }),
95
+ ...(input.LensVersion != null && { LensVersion: input.LensVersion }),
98
96
  });
99
97
  return new protocol_http_1.HttpRequest({
100
98
  protocol,
@@ -127,7 +125,7 @@ const serializeAws_restJson1CreateMilestoneCommand = async (input, context) => {
127
125
  let body;
128
126
  body = JSON.stringify({
129
127
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
130
- ...(input.MilestoneName !== undefined && input.MilestoneName !== null && { MilestoneName: input.MilestoneName }),
128
+ ...(input.MilestoneName != null && { MilestoneName: input.MilestoneName }),
131
129
  });
132
130
  return new protocol_http_1.HttpRequest({
133
131
  protocol,
@@ -149,31 +147,29 @@ const serializeAws_restJson1CreateWorkloadCommand = async (input, context) => {
149
147
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloads";
150
148
  let body;
151
149
  body = JSON.stringify({
152
- ...(input.AccountIds !== undefined &&
153
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context) }),
154
- ...(input.ArchitecturalDesign !== undefined &&
155
- input.ArchitecturalDesign !== null && { ArchitecturalDesign: input.ArchitecturalDesign }),
156
- ...(input.AwsRegions !== undefined &&
157
- input.AwsRegions !== null && { AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context) }),
150
+ ...(input.AccountIds != null && {
151
+ AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context),
152
+ }),
153
+ ...(input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign }),
154
+ ...(input.AwsRegions != null && {
155
+ AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
156
+ }),
158
157
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
159
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
160
- ...(input.Environment !== undefined && input.Environment !== null && { Environment: input.Environment }),
161
- ...(input.Industry !== undefined && input.Industry !== null && { Industry: input.Industry }),
162
- ...(input.IndustryType !== undefined && input.IndustryType !== null && { IndustryType: input.IndustryType }),
163
- ...(input.Lenses !== undefined &&
164
- input.Lenses !== null && { Lenses: serializeAws_restJson1WorkloadLenses(input.Lenses, context) }),
165
- ...(input.NonAwsRegions !== undefined &&
166
- input.NonAwsRegions !== null && {
158
+ ...(input.Description != null && { Description: input.Description }),
159
+ ...(input.Environment != null && { Environment: input.Environment }),
160
+ ...(input.Industry != null && { Industry: input.Industry }),
161
+ ...(input.IndustryType != null && { IndustryType: input.IndustryType }),
162
+ ...(input.Lenses != null && { Lenses: serializeAws_restJson1WorkloadLenses(input.Lenses, context) }),
163
+ ...(input.NonAwsRegions != null && {
167
164
  NonAwsRegions: serializeAws_restJson1WorkloadNonAwsRegions(input.NonAwsRegions, context),
168
165
  }),
169
- ...(input.Notes !== undefined && input.Notes !== null && { Notes: input.Notes }),
170
- ...(input.PillarPriorities !== undefined &&
171
- input.PillarPriorities !== null && {
166
+ ...(input.Notes != null && { Notes: input.Notes }),
167
+ ...(input.PillarPriorities != null && {
172
168
  PillarPriorities: serializeAws_restJson1WorkloadPillarPriorities(input.PillarPriorities, context),
173
169
  }),
174
- ...(input.ReviewOwner !== undefined && input.ReviewOwner !== null && { ReviewOwner: input.ReviewOwner }),
175
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
176
- ...(input.WorkloadName !== undefined && input.WorkloadName !== null && { WorkloadName: input.WorkloadName }),
170
+ ...(input.ReviewOwner != null && { ReviewOwner: input.ReviewOwner }),
171
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
172
+ ...(input.WorkloadName != null && { WorkloadName: input.WorkloadName }),
177
173
  });
178
174
  return new protocol_http_1.HttpRequest({
179
175
  protocol,
@@ -206,9 +202,8 @@ const serializeAws_restJson1CreateWorkloadShareCommand = async (input, context)
206
202
  let body;
207
203
  body = JSON.stringify({
208
204
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
209
- ...(input.PermissionType !== undefined &&
210
- input.PermissionType !== null && { PermissionType: input.PermissionType }),
211
- ...(input.SharedWith !== undefined && input.SharedWith !== null && { SharedWith: input.SharedWith }),
205
+ ...(input.PermissionType != null && { PermissionType: input.PermissionType }),
206
+ ...(input.SharedWith != null && { SharedWith: input.SharedWith }),
212
207
  });
213
208
  return new protocol_http_1.HttpRequest({
214
209
  protocol,
@@ -381,8 +376,7 @@ const serializeAws_restJson1DisassociateLensesCommand = async (input, context) =
381
376
  }
382
377
  let body;
383
378
  body = JSON.stringify({
384
- ...(input.LensAliases !== undefined &&
385
- input.LensAliases !== null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
379
+ ...(input.LensAliases != null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) }),
386
380
  });
387
381
  return new protocol_http_1.HttpRequest({
388
382
  protocol,
@@ -692,9 +686,9 @@ const serializeAws_restJson1ImportLensCommand = async (input, context) => {
692
686
  let body;
693
687
  body = JSON.stringify({
694
688
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
695
- ...(input.JSONString !== undefined && input.JSONString !== null && { JSONString: input.JSONString }),
696
- ...(input.LensAlias !== undefined && input.LensAlias !== null && { LensAlias: input.LensAlias }),
697
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
689
+ ...(input.JSONString != null && { JSONString: input.JSONString }),
690
+ ...(input.LensAlias != null && { LensAlias: input.LensAlias }),
691
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
698
692
  });
699
693
  return new protocol_http_1.HttpRequest({
700
694
  protocol,
@@ -903,8 +897,8 @@ const serializeAws_restJson1ListMilestonesCommand = async (input, context) => {
903
897
  }
904
898
  let body;
905
899
  body = JSON.stringify({
906
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
907
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
900
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
901
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
908
902
  });
909
903
  return new protocol_http_1.HttpRequest({
910
904
  protocol,
@@ -925,9 +919,9 @@ const serializeAws_restJson1ListNotificationsCommand = async (input, context) =>
925
919
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/notifications";
926
920
  let body;
927
921
  body = JSON.stringify({
928
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
929
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
930
- ...(input.WorkloadId !== undefined && input.WorkloadId !== null && { WorkloadId: input.WorkloadId }),
922
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
923
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
924
+ ...(input.WorkloadId != null && { WorkloadId: input.WorkloadId }),
931
925
  });
932
926
  return new protocol_http_1.HttpRequest({
933
927
  protocol,
@@ -998,10 +992,9 @@ const serializeAws_restJson1ListWorkloadsCommand = async (input, context) => {
998
992
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workloadsSummaries";
999
993
  let body;
1000
994
  body = JSON.stringify({
1001
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1002
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1003
- ...(input.WorkloadNamePrefix !== undefined &&
1004
- input.WorkloadNamePrefix !== null && { WorkloadNamePrefix: input.WorkloadNamePrefix }),
995
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
996
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
997
+ ...(input.WorkloadNamePrefix != null && { WorkloadNamePrefix: input.WorkloadNamePrefix }),
1005
998
  });
1006
999
  return new protocol_http_1.HttpRequest({
1007
1000
  protocol,
@@ -1065,7 +1058,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1065
1058
  }
1066
1059
  let body;
1067
1060
  body = JSON.stringify({
1068
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1061
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1069
1062
  });
1070
1063
  return new protocol_http_1.HttpRequest({
1071
1064
  protocol,
@@ -1147,15 +1140,13 @@ const serializeAws_restJson1UpdateAnswerCommand = async (input, context) => {
1147
1140
  }
1148
1141
  let body;
1149
1142
  body = JSON.stringify({
1150
- ...(input.ChoiceUpdates !== undefined &&
1151
- input.ChoiceUpdates !== null && {
1143
+ ...(input.ChoiceUpdates != null && {
1152
1144
  ChoiceUpdates: serializeAws_restJson1ChoiceUpdates(input.ChoiceUpdates, context),
1153
1145
  }),
1154
- ...(input.IsApplicable !== undefined && input.IsApplicable !== null && { IsApplicable: input.IsApplicable }),
1155
- ...(input.Notes !== undefined && input.Notes !== null && { Notes: input.Notes }),
1156
- ...(input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason }),
1157
- ...(input.SelectedChoices !== undefined &&
1158
- input.SelectedChoices !== null && {
1146
+ ...(input.IsApplicable != null && { IsApplicable: input.IsApplicable }),
1147
+ ...(input.Notes != null && { Notes: input.Notes }),
1148
+ ...(input.Reason != null && { Reason: input.Reason }),
1149
+ ...(input.SelectedChoices != null && {
1159
1150
  SelectedChoices: serializeAws_restJson1SelectedChoices(input.SelectedChoices, context),
1160
1151
  }),
1161
1152
  });
@@ -1178,8 +1169,7 @@ const serializeAws_restJson1UpdateGlobalSettingsCommand = async (input, context)
1178
1169
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings";
1179
1170
  let body;
1180
1171
  body = JSON.stringify({
1181
- ...(input.OrganizationSharingStatus !== undefined &&
1182
- input.OrganizationSharingStatus !== null && { OrganizationSharingStatus: input.OrganizationSharingStatus }),
1172
+ ...(input.OrganizationSharingStatus != null && { OrganizationSharingStatus: input.OrganizationSharingStatus }),
1183
1173
  });
1184
1174
  return new protocol_http_1.HttpRequest({
1185
1175
  protocol,
@@ -1221,9 +1211,8 @@ const serializeAws_restJson1UpdateLensReviewCommand = async (input, context) =>
1221
1211
  }
1222
1212
  let body;
1223
1213
  body = JSON.stringify({
1224
- ...(input.LensNotes !== undefined && input.LensNotes !== null && { LensNotes: input.LensNotes }),
1225
- ...(input.PillarNotes !== undefined &&
1226
- input.PillarNotes !== null && { PillarNotes: serializeAws_restJson1PillarNotes(input.PillarNotes, context) }),
1214
+ ...(input.LensNotes != null && { LensNotes: input.LensNotes }),
1215
+ ...(input.PillarNotes != null && { PillarNotes: serializeAws_restJson1PillarNotes(input.PillarNotes, context) }),
1227
1216
  });
1228
1217
  return new protocol_http_1.HttpRequest({
1229
1218
  protocol,
@@ -1254,8 +1243,7 @@ const serializeAws_restJson1UpdateShareInvitationCommand = async (input, context
1254
1243
  }
1255
1244
  let body;
1256
1245
  body = JSON.stringify({
1257
- ...(input.ShareInvitationAction !== undefined &&
1258
- input.ShareInvitationAction !== null && { ShareInvitationAction: input.ShareInvitationAction }),
1246
+ ...(input.ShareInvitationAction != null && { ShareInvitationAction: input.ShareInvitationAction }),
1259
1247
  });
1260
1248
  return new protocol_http_1.HttpRequest({
1261
1249
  protocol,
@@ -1286,33 +1274,30 @@ const serializeAws_restJson1UpdateWorkloadCommand = async (input, context) => {
1286
1274
  }
1287
1275
  let body;
1288
1276
  body = JSON.stringify({
1289
- ...(input.AccountIds !== undefined &&
1290
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context) }),
1291
- ...(input.ArchitecturalDesign !== undefined &&
1292
- input.ArchitecturalDesign !== null && { ArchitecturalDesign: input.ArchitecturalDesign }),
1293
- ...(input.AwsRegions !== undefined &&
1294
- input.AwsRegions !== null && { AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context) }),
1295
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1296
- ...(input.Environment !== undefined && input.Environment !== null && { Environment: input.Environment }),
1297
- ...(input.ImprovementStatus !== undefined &&
1298
- input.ImprovementStatus !== null && { ImprovementStatus: input.ImprovementStatus }),
1299
- ...(input.Industry !== undefined && input.Industry !== null && { Industry: input.Industry }),
1300
- ...(input.IndustryType !== undefined && input.IndustryType !== null && { IndustryType: input.IndustryType }),
1301
- ...(input.IsReviewOwnerUpdateAcknowledged !== undefined &&
1302
- input.IsReviewOwnerUpdateAcknowledged !== null && {
1277
+ ...(input.AccountIds != null && {
1278
+ AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context),
1279
+ }),
1280
+ ...(input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign }),
1281
+ ...(input.AwsRegions != null && {
1282
+ AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
1283
+ }),
1284
+ ...(input.Description != null && { Description: input.Description }),
1285
+ ...(input.Environment != null && { Environment: input.Environment }),
1286
+ ...(input.ImprovementStatus != null && { ImprovementStatus: input.ImprovementStatus }),
1287
+ ...(input.Industry != null && { Industry: input.Industry }),
1288
+ ...(input.IndustryType != null && { IndustryType: input.IndustryType }),
1289
+ ...(input.IsReviewOwnerUpdateAcknowledged != null && {
1303
1290
  IsReviewOwnerUpdateAcknowledged: input.IsReviewOwnerUpdateAcknowledged,
1304
1291
  }),
1305
- ...(input.NonAwsRegions !== undefined &&
1306
- input.NonAwsRegions !== null && {
1292
+ ...(input.NonAwsRegions != null && {
1307
1293
  NonAwsRegions: serializeAws_restJson1WorkloadNonAwsRegions(input.NonAwsRegions, context),
1308
1294
  }),
1309
- ...(input.Notes !== undefined && input.Notes !== null && { Notes: input.Notes }),
1310
- ...(input.PillarPriorities !== undefined &&
1311
- input.PillarPriorities !== null && {
1295
+ ...(input.Notes != null && { Notes: input.Notes }),
1296
+ ...(input.PillarPriorities != null && {
1312
1297
  PillarPriorities: serializeAws_restJson1WorkloadPillarPriorities(input.PillarPriorities, context),
1313
1298
  }),
1314
- ...(input.ReviewOwner !== undefined && input.ReviewOwner !== null && { ReviewOwner: input.ReviewOwner }),
1315
- ...(input.WorkloadName !== undefined && input.WorkloadName !== null && { WorkloadName: input.WorkloadName }),
1299
+ ...(input.ReviewOwner != null && { ReviewOwner: input.ReviewOwner }),
1300
+ ...(input.WorkloadName != null && { WorkloadName: input.WorkloadName }),
1316
1301
  });
1317
1302
  return new protocol_http_1.HttpRequest({
1318
1303
  protocol,
@@ -1353,8 +1338,7 @@ const serializeAws_restJson1UpdateWorkloadShareCommand = async (input, context)
1353
1338
  }
1354
1339
  let body;
1355
1340
  body = JSON.stringify({
1356
- ...(input.PermissionType !== undefined &&
1357
- input.PermissionType !== null && { PermissionType: input.PermissionType }),
1341
+ ...(input.PermissionType != null && { PermissionType: input.PermissionType }),
1358
1342
  });
1359
1343
  return new protocol_http_1.HttpRequest({
1360
1344
  protocol,
@@ -1396,9 +1380,8 @@ const serializeAws_restJson1UpgradeLensReviewCommand = async (input, context) =>
1396
1380
  }
1397
1381
  let body;
1398
1382
  body = JSON.stringify({
1399
- ...(input.ClientRequestToken !== undefined &&
1400
- input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken }),
1401
- ...(input.MilestoneName !== undefined && input.MilestoneName !== null && { MilestoneName: input.MilestoneName }),
1383
+ ...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
1384
+ ...(input.MilestoneName != null && { MilestoneName: input.MilestoneName }),
1402
1385
  });
1403
1386
  return new protocol_http_1.HttpRequest({
1404
1387
  protocol,
@@ -3707,9 +3690,9 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
3707
3690
  };
3708
3691
  const serializeAws_restJson1ChoiceUpdate = (input, context) => {
3709
3692
  return {
3710
- ...(input.Notes !== undefined && input.Notes !== null && { Notes: input.Notes }),
3711
- ...(input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason }),
3712
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
3693
+ ...(input.Notes != null && { Notes: input.Notes }),
3694
+ ...(input.Reason != null && { Reason: input.Reason }),
3695
+ ...(input.Status != null && { Status: input.Status }),
3713
3696
  };
3714
3697
  };
3715
3698
  const serializeAws_restJson1ChoiceUpdates = (input, context) => {
@@ -3817,9 +3800,7 @@ const serializeAws_restJson1WorkloadPillarPriorities = (input, context) => {
3817
3800
  };
3818
3801
  const deserializeAws_restJson1AdditionalResources = (output, context) => {
3819
3802
  return {
3820
- Content: output.Content !== undefined && output.Content !== null
3821
- ? deserializeAws_restJson1Urls(output.Content, context)
3822
- : undefined,
3803
+ Content: output.Content != null ? deserializeAws_restJson1Urls(output.Content, context) : undefined,
3823
3804
  Type: (0, smithy_client_1.expectString)(output.Type),
3824
3805
  };
3825
3806
  };
@@ -3836,12 +3817,8 @@ const deserializeAws_restJson1AdditionalResourcesList = (output, context) => {
3836
3817
  };
3837
3818
  const deserializeAws_restJson1Answer = (output, context) => {
3838
3819
  return {
3839
- ChoiceAnswers: output.ChoiceAnswers !== undefined && output.ChoiceAnswers !== null
3840
- ? deserializeAws_restJson1ChoiceAnswers(output.ChoiceAnswers, context)
3841
- : undefined,
3842
- Choices: output.Choices !== undefined && output.Choices !== null
3843
- ? deserializeAws_restJson1Choices(output.Choices, context)
3844
- : undefined,
3820
+ ChoiceAnswers: output.ChoiceAnswers != null ? deserializeAws_restJson1ChoiceAnswers(output.ChoiceAnswers, context) : undefined,
3821
+ Choices: output.Choices != null ? deserializeAws_restJson1Choices(output.Choices, context) : undefined,
3845
3822
  HelpfulResourceDisplayText: (0, smithy_client_1.expectString)(output.HelpfulResourceDisplayText),
3846
3823
  HelpfulResourceUrl: (0, smithy_client_1.expectString)(output.HelpfulResourceUrl),
3847
3824
  ImprovementPlanUrl: (0, smithy_client_1.expectString)(output.ImprovementPlanUrl),
@@ -3853,7 +3830,7 @@ const deserializeAws_restJson1Answer = (output, context) => {
3853
3830
  QuestionTitle: (0, smithy_client_1.expectString)(output.QuestionTitle),
3854
3831
  Reason: (0, smithy_client_1.expectString)(output.Reason),
3855
3832
  Risk: (0, smithy_client_1.expectString)(output.Risk),
3856
- SelectedChoices: output.SelectedChoices !== undefined && output.SelectedChoices !== null
3833
+ SelectedChoices: output.SelectedChoices != null
3857
3834
  ? deserializeAws_restJson1SelectedChoices(output.SelectedChoices, context)
3858
3835
  : undefined,
3859
3836
  };
@@ -3871,34 +3848,32 @@ const deserializeAws_restJson1AnswerSummaries = (output, context) => {
3871
3848
  };
3872
3849
  const deserializeAws_restJson1AnswerSummary = (output, context) => {
3873
3850
  return {
3874
- ChoiceAnswerSummaries: output.ChoiceAnswerSummaries !== undefined && output.ChoiceAnswerSummaries !== null
3851
+ ChoiceAnswerSummaries: output.ChoiceAnswerSummaries != null
3875
3852
  ? deserializeAws_restJson1ChoiceAnswerSummaries(output.ChoiceAnswerSummaries, context)
3876
3853
  : undefined,
3877
- Choices: output.Choices !== undefined && output.Choices !== null
3878
- ? deserializeAws_restJson1Choices(output.Choices, context)
3879
- : undefined,
3854
+ Choices: output.Choices != null ? deserializeAws_restJson1Choices(output.Choices, context) : undefined,
3880
3855
  IsApplicable: (0, smithy_client_1.expectBoolean)(output.IsApplicable),
3881
3856
  PillarId: (0, smithy_client_1.expectString)(output.PillarId),
3882
3857
  QuestionId: (0, smithy_client_1.expectString)(output.QuestionId),
3883
3858
  QuestionTitle: (0, smithy_client_1.expectString)(output.QuestionTitle),
3884
3859
  Reason: (0, smithy_client_1.expectString)(output.Reason),
3885
3860
  Risk: (0, smithy_client_1.expectString)(output.Risk),
3886
- SelectedChoices: output.SelectedChoices !== undefined && output.SelectedChoices !== null
3861
+ SelectedChoices: output.SelectedChoices != null
3887
3862
  ? deserializeAws_restJson1SelectedChoices(output.SelectedChoices, context)
3888
3863
  : undefined,
3889
3864
  };
3890
3865
  };
3891
3866
  const deserializeAws_restJson1Choice = (output, context) => {
3892
3867
  return {
3893
- AdditionalResources: output.AdditionalResources !== undefined && output.AdditionalResources !== null
3868
+ AdditionalResources: output.AdditionalResources != null
3894
3869
  ? deserializeAws_restJson1AdditionalResourcesList(output.AdditionalResources, context)
3895
3870
  : undefined,
3896
3871
  ChoiceId: (0, smithy_client_1.expectString)(output.ChoiceId),
3897
3872
  Description: (0, smithy_client_1.expectString)(output.Description),
3898
- HelpfulResource: output.HelpfulResource !== undefined && output.HelpfulResource !== null
3873
+ HelpfulResource: output.HelpfulResource != null
3899
3874
  ? deserializeAws_restJson1ChoiceContent(output.HelpfulResource, context)
3900
3875
  : undefined,
3901
- ImprovementPlan: output.ImprovementPlan !== undefined && output.ImprovementPlan !== null
3876
+ ImprovementPlan: output.ImprovementPlan != null
3902
3877
  ? deserializeAws_restJson1ChoiceContent(output.ImprovementPlan, context)
3903
3878
  : undefined,
3904
3879
  Title: (0, smithy_client_1.expectString)(output.Title),
@@ -3990,7 +3965,7 @@ const deserializeAws_restJson1ImprovementSummaries = (output, context) => {
3990
3965
  const deserializeAws_restJson1ImprovementSummary = (output, context) => {
3991
3966
  return {
3992
3967
  ImprovementPlanUrl: (0, smithy_client_1.expectString)(output.ImprovementPlanUrl),
3993
- ImprovementPlans: output.ImprovementPlans !== undefined && output.ImprovementPlans !== null
3968
+ ImprovementPlans: output.ImprovementPlans != null
3994
3969
  ? deserializeAws_restJson1ChoiceImprovementPlans(output.ImprovementPlans, context)
3995
3970
  : undefined,
3996
3971
  PillarId: (0, smithy_client_1.expectString)(output.PillarId),
@@ -4007,9 +3982,7 @@ const deserializeAws_restJson1Lens = (output, context) => {
4007
3982
  Name: (0, smithy_client_1.expectString)(output.Name),
4008
3983
  Owner: (0, smithy_client_1.expectString)(output.Owner),
4009
3984
  ShareInvitationId: (0, smithy_client_1.expectString)(output.ShareInvitationId),
4010
- Tags: output.Tags !== undefined && output.Tags !== null
4011
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4012
- : undefined,
3985
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4013
3986
  };
4014
3987
  };
4015
3988
  const deserializeAws_restJson1LensReview = (output, context) => {
@@ -4021,15 +3994,11 @@ const deserializeAws_restJson1LensReview = (output, context) => {
4021
3994
  LensVersion: (0, smithy_client_1.expectString)(output.LensVersion),
4022
3995
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4023
3996
  Notes: (0, smithy_client_1.expectString)(output.Notes),
4024
- PillarReviewSummaries: output.PillarReviewSummaries !== undefined && output.PillarReviewSummaries !== null
3997
+ PillarReviewSummaries: output.PillarReviewSummaries != null
4025
3998
  ? deserializeAws_restJson1PillarReviewSummaries(output.PillarReviewSummaries, context)
4026
3999
  : undefined,
4027
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
4028
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
4029
- : undefined,
4030
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4031
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
4032
- : undefined,
4000
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
4001
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
4033
4002
  };
4034
4003
  };
4035
4004
  const deserializeAws_restJson1LensReviewReport = (output, context) => {
@@ -4057,12 +4026,8 @@ const deserializeAws_restJson1LensReviewSummary = (output, context) => {
4057
4026
  LensName: (0, smithy_client_1.expectString)(output.LensName),
4058
4027
  LensStatus: (0, smithy_client_1.expectString)(output.LensStatus),
4059
4028
  LensVersion: (0, smithy_client_1.expectString)(output.LensVersion),
4060
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
4061
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
4062
- : undefined,
4063
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4064
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
4065
- : undefined,
4029
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
4030
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
4066
4031
  };
4067
4032
  };
4068
4033
  const deserializeAws_restJson1LensShareSummaries = (output, context) => {
@@ -4097,9 +4062,7 @@ const deserializeAws_restJson1LensSummaries = (output, context) => {
4097
4062
  };
4098
4063
  const deserializeAws_restJson1LensSummary = (output, context) => {
4099
4064
  return {
4100
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
4101
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
4102
- : undefined,
4065
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
4103
4066
  Description: (0, smithy_client_1.expectString)(output.Description),
4104
4067
  LensAlias: (0, smithy_client_1.expectString)(output.LensAlias),
4105
4068
  LensArn: (0, smithy_client_1.expectString)(output.LensArn),
@@ -4108,9 +4071,7 @@ const deserializeAws_restJson1LensSummary = (output, context) => {
4108
4071
  LensType: (0, smithy_client_1.expectString)(output.LensType),
4109
4072
  LensVersion: (0, smithy_client_1.expectString)(output.LensVersion),
4110
4073
  Owner: (0, smithy_client_1.expectString)(output.Owner),
4111
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4112
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
4113
- : undefined,
4074
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
4114
4075
  };
4115
4076
  };
4116
4077
  const deserializeAws_restJson1LensUpgradeSummary = (output, context) => {
@@ -4127,12 +4088,8 @@ const deserializeAws_restJson1Milestone = (output, context) => {
4127
4088
  return {
4128
4089
  MilestoneName: (0, smithy_client_1.expectString)(output.MilestoneName),
4129
4090
  MilestoneNumber: (0, smithy_client_1.expectInt32)(output.MilestoneNumber),
4130
- RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null
4131
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RecordedAt)))
4132
- : undefined,
4133
- Workload: output.Workload !== undefined && output.Workload !== null
4134
- ? deserializeAws_restJson1Workload(output.Workload, context)
4135
- : undefined,
4091
+ RecordedAt: output.RecordedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RecordedAt))) : undefined,
4092
+ Workload: output.Workload != null ? deserializeAws_restJson1Workload(output.Workload, context) : undefined,
4136
4093
  };
4137
4094
  };
4138
4095
  const deserializeAws_restJson1MilestoneSummaries = (output, context) => {
@@ -4150,10 +4107,8 @@ const deserializeAws_restJson1MilestoneSummary = (output, context) => {
4150
4107
  return {
4151
4108
  MilestoneName: (0, smithy_client_1.expectString)(output.MilestoneName),
4152
4109
  MilestoneNumber: (0, smithy_client_1.expectInt32)(output.MilestoneNumber),
4153
- RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null
4154
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RecordedAt)))
4155
- : undefined,
4156
- WorkloadSummary: output.WorkloadSummary !== undefined && output.WorkloadSummary !== null
4110
+ RecordedAt: output.RecordedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RecordedAt))) : undefined,
4111
+ WorkloadSummary: output.WorkloadSummary != null
4157
4112
  ? deserializeAws_restJson1WorkloadSummary(output.WorkloadSummary, context)
4158
4113
  : undefined,
4159
4114
  };
@@ -4171,7 +4126,7 @@ const deserializeAws_restJson1NotificationSummaries = (output, context) => {
4171
4126
  };
4172
4127
  const deserializeAws_restJson1NotificationSummary = (output, context) => {
4173
4128
  return {
4174
- LensUpgradeSummary: output.LensUpgradeSummary !== undefined && output.LensUpgradeSummary !== null
4129
+ LensUpgradeSummary: output.LensUpgradeSummary != null
4175
4130
  ? deserializeAws_restJson1LensUpgradeSummary(output.LensUpgradeSummary, context)
4176
4131
  : undefined,
4177
4132
  Type: (0, smithy_client_1.expectString)(output.Type),
@@ -4182,7 +4137,7 @@ const deserializeAws_restJson1PillarDifference = (output, context) => {
4182
4137
  DifferenceStatus: (0, smithy_client_1.expectString)(output.DifferenceStatus),
4183
4138
  PillarId: (0, smithy_client_1.expectString)(output.PillarId),
4184
4139
  PillarName: (0, smithy_client_1.expectString)(output.PillarName),
4185
- QuestionDifferences: output.QuestionDifferences !== undefined && output.QuestionDifferences !== null
4140
+ QuestionDifferences: output.QuestionDifferences != null
4186
4141
  ? deserializeAws_restJson1QuestionDifferences(output.QuestionDifferences, context)
4187
4142
  : undefined,
4188
4143
  };
@@ -4214,9 +4169,7 @@ const deserializeAws_restJson1PillarReviewSummary = (output, context) => {
4214
4169
  Notes: (0, smithy_client_1.expectString)(output.Notes),
4215
4170
  PillarId: (0, smithy_client_1.expectString)(output.PillarId),
4216
4171
  PillarName: (0, smithy_client_1.expectString)(output.PillarName),
4217
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
4218
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
4219
- : undefined,
4172
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
4220
4173
  };
4221
4174
  };
4222
4175
  const deserializeAws_restJson1QuestionDifference = (output, context) => {
@@ -4333,51 +4286,39 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
4333
4286
  };
4334
4287
  const deserializeAws_restJson1VersionDifferences = (output, context) => {
4335
4288
  return {
4336
- PillarDifferences: output.PillarDifferences !== undefined && output.PillarDifferences !== null
4289
+ PillarDifferences: output.PillarDifferences != null
4337
4290
  ? deserializeAws_restJson1PillarDifferences(output.PillarDifferences, context)
4338
4291
  : undefined,
4339
4292
  };
4340
4293
  };
4341
4294
  const deserializeAws_restJson1Workload = (output, context) => {
4342
4295
  return {
4343
- AccountIds: output.AccountIds !== undefined && output.AccountIds !== null
4344
- ? deserializeAws_restJson1WorkloadAccountIds(output.AccountIds, context)
4345
- : undefined,
4296
+ AccountIds: output.AccountIds != null ? deserializeAws_restJson1WorkloadAccountIds(output.AccountIds, context) : undefined,
4346
4297
  ArchitecturalDesign: (0, smithy_client_1.expectString)(output.ArchitecturalDesign),
4347
- AwsRegions: output.AwsRegions !== undefined && output.AwsRegions !== null
4348
- ? deserializeAws_restJson1WorkloadAwsRegions(output.AwsRegions, context)
4349
- : undefined,
4298
+ AwsRegions: output.AwsRegions != null ? deserializeAws_restJson1WorkloadAwsRegions(output.AwsRegions, context) : undefined,
4350
4299
  Description: (0, smithy_client_1.expectString)(output.Description),
4351
4300
  Environment: (0, smithy_client_1.expectString)(output.Environment),
4352
4301
  ImprovementStatus: (0, smithy_client_1.expectString)(output.ImprovementStatus),
4353
4302
  Industry: (0, smithy_client_1.expectString)(output.Industry),
4354
4303
  IndustryType: (0, smithy_client_1.expectString)(output.IndustryType),
4355
4304
  IsReviewOwnerUpdateAcknowledged: (0, smithy_client_1.expectBoolean)(output.IsReviewOwnerUpdateAcknowledged),
4356
- Lenses: output.Lenses !== undefined && output.Lenses !== null
4357
- ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context)
4358
- : undefined,
4359
- NonAwsRegions: output.NonAwsRegions !== undefined && output.NonAwsRegions !== null
4305
+ Lenses: output.Lenses != null ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context) : undefined,
4306
+ NonAwsRegions: output.NonAwsRegions != null
4360
4307
  ? deserializeAws_restJson1WorkloadNonAwsRegions(output.NonAwsRegions, context)
4361
4308
  : undefined,
4362
4309
  Notes: (0, smithy_client_1.expectString)(output.Notes),
4363
4310
  Owner: (0, smithy_client_1.expectString)(output.Owner),
4364
- PillarPriorities: output.PillarPriorities !== undefined && output.PillarPriorities !== null
4311
+ PillarPriorities: output.PillarPriorities != null
4365
4312
  ? deserializeAws_restJson1WorkloadPillarPriorities(output.PillarPriorities, context)
4366
4313
  : undefined,
4367
4314
  ReviewOwner: (0, smithy_client_1.expectString)(output.ReviewOwner),
4368
- ReviewRestrictionDate: output.ReviewRestrictionDate !== undefined && output.ReviewRestrictionDate !== null
4315
+ ReviewRestrictionDate: output.ReviewRestrictionDate != null
4369
4316
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReviewRestrictionDate)))
4370
4317
  : undefined,
4371
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
4372
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
4373
- : undefined,
4318
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
4374
4319
  ShareInvitationId: (0, smithy_client_1.expectString)(output.ShareInvitationId),
4375
- Tags: output.Tags !== undefined && output.Tags !== null
4376
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4377
- : undefined,
4378
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4379
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
4380
- : undefined,
4320
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4321
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
4381
4322
  WorkloadArn: (0, smithy_client_1.expectString)(output.WorkloadArn),
4382
4323
  WorkloadId: (0, smithy_client_1.expectString)(output.WorkloadId),
4383
4324
  WorkloadName: (0, smithy_client_1.expectString)(output.WorkloadName),
@@ -4483,16 +4424,10 @@ const deserializeAws_restJson1WorkloadSummaries = (output, context) => {
4483
4424
  const deserializeAws_restJson1WorkloadSummary = (output, context) => {
4484
4425
  return {
4485
4426
  ImprovementStatus: (0, smithy_client_1.expectString)(output.ImprovementStatus),
4486
- Lenses: output.Lenses !== undefined && output.Lenses !== null
4487
- ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context)
4488
- : undefined,
4427
+ Lenses: output.Lenses != null ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context) : undefined,
4489
4428
  Owner: (0, smithy_client_1.expectString)(output.Owner),
4490
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
4491
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
4492
- : undefined,
4493
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4494
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt)))
4495
- : undefined,
4429
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
4430
+ UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
4496
4431
  WorkloadArn: (0, smithy_client_1.expectString)(output.WorkloadArn),
4497
4432
  WorkloadId: (0, smithy_client_1.expectString)(output.WorkloadId),
4498
4433
  WorkloadName: (0, smithy_client_1.expectString)(output.WorkloadName),
@@ -25,8 +25,7 @@ export var serializeAws_restJson1AssociateLensesCommand = function (input, conte
25
25
  else {
26
26
  throw new Error("No value provided for input HTTP label: WorkloadId.");
27
27
  }
28
- body = JSON.stringify(__assign({}, (input.LensAliases !== undefined &&
29
- input.LensAliases !== null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) })));
28
+ body = JSON.stringify(__assign({}, (input.LensAliases != null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) })));
30
29
  return [2, new __HttpRequest({
31
30
  protocol: protocol,
32
31
  hostname: hostname,
@@ -61,7 +60,7 @@ export var serializeAws_restJson1CreateLensShareCommand = function (input, conte
61
60
  else {
62
61
  throw new Error("No value provided for input HTTP label: LensAlias.");
63
62
  }
64
- body = JSON.stringify(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.SharedWith !== undefined && input.SharedWith !== null && { SharedWith: input.SharedWith })));
63
+ body = JSON.stringify(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.SharedWith != null && { SharedWith: input.SharedWith })));
65
64
  return [2, new __HttpRequest({
66
65
  protocol: protocol,
67
66
  hostname: hostname,
@@ -96,8 +95,7 @@ export var serializeAws_restJson1CreateLensVersionCommand = function (input, con
96
95
  else {
97
96
  throw new Error("No value provided for input HTTP label: LensAlias.");
98
97
  }
99
- body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.IsMajorVersion !== undefined &&
100
- input.IsMajorVersion !== null && { IsMajorVersion: input.IsMajorVersion })), (input.LensVersion !== undefined && input.LensVersion !== null && { LensVersion: input.LensVersion })));
98
+ body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.IsMajorVersion != null && { IsMajorVersion: input.IsMajorVersion })), (input.LensVersion != null && { LensVersion: input.LensVersion })));
101
99
  return [2, new __HttpRequest({
102
100
  protocol: protocol,
103
101
  hostname: hostname,
@@ -132,7 +130,7 @@ export var serializeAws_restJson1CreateMilestoneCommand = function (input, conte
132
130
  else {
133
131
  throw new Error("No value provided for input HTTP label: WorkloadId.");
134
132
  }
135
- body = JSON.stringify(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.MilestoneName !== undefined && input.MilestoneName !== null && { MilestoneName: input.MilestoneName })));
133
+ body = JSON.stringify(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.MilestoneName != null && { MilestoneName: input.MilestoneName })));
136
134
  return [2, new __HttpRequest({
137
135
  protocol: protocol,
138
136
  hostname: hostname,
@@ -157,17 +155,15 @@ export var serializeAws_restJson1CreateWorkloadCommand = function (input, contex
157
155
  "content-type": "application/json",
158
156
  };
159
157
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workloads";
160
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
161
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context) })), (input.ArchitecturalDesign !== undefined &&
162
- input.ArchitecturalDesign !== null && { ArchitecturalDesign: input.ArchitecturalDesign })), (input.AwsRegions !== undefined &&
163
- input.AwsRegions !== null && { AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context) })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Environment !== undefined && input.Environment !== null && { Environment: input.Environment })), (input.Industry !== undefined && input.Industry !== null && { Industry: input.Industry })), (input.IndustryType !== undefined && input.IndustryType !== null && { IndustryType: input.IndustryType })), (input.Lenses !== undefined &&
164
- input.Lenses !== null && { Lenses: serializeAws_restJson1WorkloadLenses(input.Lenses, context) })), (input.NonAwsRegions !== undefined &&
165
- input.NonAwsRegions !== null && {
158
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && {
159
+ AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context),
160
+ })), (input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign })), (input.AwsRegions != null && {
161
+ AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
162
+ })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Description != null && { Description: input.Description })), (input.Environment != null && { Environment: input.Environment })), (input.Industry != null && { Industry: input.Industry })), (input.IndustryType != null && { IndustryType: input.IndustryType })), (input.Lenses != null && { Lenses: serializeAws_restJson1WorkloadLenses(input.Lenses, context) })), (input.NonAwsRegions != null && {
166
163
  NonAwsRegions: serializeAws_restJson1WorkloadNonAwsRegions(input.NonAwsRegions, context),
167
- })), (input.Notes !== undefined && input.Notes !== null && { Notes: input.Notes })), (input.PillarPriorities !== undefined &&
168
- input.PillarPriorities !== null && {
164
+ })), (input.Notes != null && { Notes: input.Notes })), (input.PillarPriorities != null && {
169
165
  PillarPriorities: serializeAws_restJson1WorkloadPillarPriorities(input.PillarPriorities, context),
170
- })), (input.ReviewOwner !== undefined && input.ReviewOwner !== null && { ReviewOwner: input.ReviewOwner })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.WorkloadName !== undefined && input.WorkloadName !== null && { WorkloadName: input.WorkloadName })));
166
+ })), (input.ReviewOwner != null && { ReviewOwner: input.ReviewOwner })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.WorkloadName != null && { WorkloadName: input.WorkloadName })));
171
167
  return [2, new __HttpRequest({
172
168
  protocol: protocol,
173
169
  hostname: hostname,
@@ -202,8 +198,7 @@ export var serializeAws_restJson1CreateWorkloadShareCommand = function (input, c
202
198
  else {
203
199
  throw new Error("No value provided for input HTTP label: WorkloadId.");
204
200
  }
205
- body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.PermissionType !== undefined &&
206
- input.PermissionType !== null && { PermissionType: input.PermissionType })), (input.SharedWith !== undefined && input.SharedWith !== null && { SharedWith: input.SharedWith })));
201
+ body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.PermissionType != null && { PermissionType: input.PermissionType })), (input.SharedWith != null && { SharedWith: input.SharedWith })));
207
202
  return [2, new __HttpRequest({
208
203
  protocol: protocol,
209
204
  hostname: hostname,
@@ -390,8 +385,7 @@ export var serializeAws_restJson1DisassociateLensesCommand = function (input, co
390
385
  else {
391
386
  throw new Error("No value provided for input HTTP label: WorkloadId.");
392
387
  }
393
- body = JSON.stringify(__assign({}, (input.LensAliases !== undefined &&
394
- input.LensAliases !== null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) })));
388
+ body = JSON.stringify(__assign({}, (input.LensAliases != null && { LensAliases: serializeAws_restJson1LensAliases(input.LensAliases, context) })));
395
389
  return [2, new __HttpRequest({
396
390
  protocol: protocol,
397
391
  hostname: hostname,
@@ -730,7 +724,7 @@ export var serializeAws_restJson1ImportLensCommand = function (input, context) {
730
724
  "content-type": "application/json",
731
725
  };
732
726
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/importLens";
733
- body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.JSONString !== undefined && input.JSONString !== null && { JSONString: input.JSONString })), (input.LensAlias !== undefined && input.LensAlias !== null && { LensAlias: input.LensAlias })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
727
+ body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.JSONString != null && { JSONString: input.JSONString })), (input.LensAlias != null && { LensAlias: input.LensAlias })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
734
728
  return [2, new __HttpRequest({
735
729
  protocol: protocol,
736
730
  hostname: hostname,
@@ -942,7 +936,7 @@ export var serializeAws_restJson1ListMilestonesCommand = function (input, contex
942
936
  else {
943
937
  throw new Error("No value provided for input HTTP label: WorkloadId.");
944
938
  }
945
- body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
939
+ body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
946
940
  return [2, new __HttpRequest({
947
941
  protocol: protocol,
948
942
  hostname: hostname,
@@ -966,7 +960,7 @@ export var serializeAws_restJson1ListNotificationsCommand = function (input, con
966
960
  "content-type": "application/json",
967
961
  };
968
962
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/notifications";
969
- body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.WorkloadId !== undefined && input.WorkloadId !== null && { WorkloadId: input.WorkloadId })));
963
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.WorkloadId != null && { WorkloadId: input.WorkloadId })));
970
964
  return [2, new __HttpRequest({
971
965
  protocol: protocol,
972
966
  hostname: hostname,
@@ -1044,8 +1038,7 @@ export var serializeAws_restJson1ListWorkloadsCommand = function (input, context
1044
1038
  "content-type": "application/json",
1045
1039
  };
1046
1040
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workloadsSummaries";
1047
- body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.WorkloadNamePrefix !== undefined &&
1048
- input.WorkloadNamePrefix !== null && { WorkloadNamePrefix: input.WorkloadNamePrefix })));
1041
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.WorkloadNamePrefix != null && { WorkloadNamePrefix: input.WorkloadNamePrefix })));
1049
1042
  return [2, new __HttpRequest({
1050
1043
  protocol: protocol,
1051
1044
  hostname: hostname,
@@ -1112,7 +1105,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1112
1105
  else {
1113
1106
  throw new Error("No value provided for input HTTP label: WorkloadArn.");
1114
1107
  }
1115
- body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
1108
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
1116
1109
  return [2, new __HttpRequest({
1117
1110
  protocol: protocol,
1118
1111
  hostname: hostname,
@@ -1200,11 +1193,9 @@ export var serializeAws_restJson1UpdateAnswerCommand = function (input, context)
1200
1193
  else {
1201
1194
  throw new Error("No value provided for input HTTP label: QuestionId.");
1202
1195
  }
1203
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ChoiceUpdates !== undefined &&
1204
- input.ChoiceUpdates !== null && {
1196
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ChoiceUpdates != null && {
1205
1197
  ChoiceUpdates: serializeAws_restJson1ChoiceUpdates(input.ChoiceUpdates, context),
1206
- })), (input.IsApplicable !== undefined && input.IsApplicable !== null && { IsApplicable: input.IsApplicable })), (input.Notes !== undefined && input.Notes !== null && { Notes: input.Notes })), (input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason })), (input.SelectedChoices !== undefined &&
1207
- input.SelectedChoices !== null && {
1198
+ })), (input.IsApplicable != null && { IsApplicable: input.IsApplicable })), (input.Notes != null && { Notes: input.Notes })), (input.Reason != null && { Reason: input.Reason })), (input.SelectedChoices != null && {
1208
1199
  SelectedChoices: serializeAws_restJson1SelectedChoices(input.SelectedChoices, context),
1209
1200
  })));
1210
1201
  return [2, new __HttpRequest({
@@ -1230,8 +1221,7 @@ export var serializeAws_restJson1UpdateGlobalSettingsCommand = function (input,
1230
1221
  "content-type": "application/json",
1231
1222
  };
1232
1223
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/global-settings";
1233
- body = JSON.stringify(__assign({}, (input.OrganizationSharingStatus !== undefined &&
1234
- input.OrganizationSharingStatus !== null && { OrganizationSharingStatus: input.OrganizationSharingStatus })));
1224
+ body = JSON.stringify(__assign({}, (input.OrganizationSharingStatus != null && { OrganizationSharingStatus: input.OrganizationSharingStatus })));
1235
1225
  return [2, new __HttpRequest({
1236
1226
  protocol: protocol,
1237
1227
  hostname: hostname,
@@ -1276,8 +1266,7 @@ export var serializeAws_restJson1UpdateLensReviewCommand = function (input, cont
1276
1266
  else {
1277
1267
  throw new Error("No value provided for input HTTP label: LensAlias.");
1278
1268
  }
1279
- body = JSON.stringify(__assign(__assign({}, (input.LensNotes !== undefined && input.LensNotes !== null && { LensNotes: input.LensNotes })), (input.PillarNotes !== undefined &&
1280
- input.PillarNotes !== null && { PillarNotes: serializeAws_restJson1PillarNotes(input.PillarNotes, context) })));
1269
+ body = JSON.stringify(__assign(__assign({}, (input.LensNotes != null && { LensNotes: input.LensNotes })), (input.PillarNotes != null && { PillarNotes: serializeAws_restJson1PillarNotes(input.PillarNotes, context) })));
1281
1270
  return [2, new __HttpRequest({
1282
1271
  protocol: protocol,
1283
1272
  hostname: hostname,
@@ -1311,8 +1300,7 @@ export var serializeAws_restJson1UpdateShareInvitationCommand = function (input,
1311
1300
  else {
1312
1301
  throw new Error("No value provided for input HTTP label: ShareInvitationId.");
1313
1302
  }
1314
- body = JSON.stringify(__assign({}, (input.ShareInvitationAction !== undefined &&
1315
- input.ShareInvitationAction !== null && { ShareInvitationAction: input.ShareInvitationAction })));
1303
+ body = JSON.stringify(__assign({}, (input.ShareInvitationAction != null && { ShareInvitationAction: input.ShareInvitationAction })));
1316
1304
  return [2, new __HttpRequest({
1317
1305
  protocol: protocol,
1318
1306
  hostname: hostname,
@@ -1346,20 +1334,17 @@ export var serializeAws_restJson1UpdateWorkloadCommand = function (input, contex
1346
1334
  else {
1347
1335
  throw new Error("No value provided for input HTTP label: WorkloadId.");
1348
1336
  }
1349
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
1350
- input.AccountIds !== null && { AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context) })), (input.ArchitecturalDesign !== undefined &&
1351
- input.ArchitecturalDesign !== null && { ArchitecturalDesign: input.ArchitecturalDesign })), (input.AwsRegions !== undefined &&
1352
- input.AwsRegions !== null && { AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Environment !== undefined && input.Environment !== null && { Environment: input.Environment })), (input.ImprovementStatus !== undefined &&
1353
- input.ImprovementStatus !== null && { ImprovementStatus: input.ImprovementStatus })), (input.Industry !== undefined && input.Industry !== null && { Industry: input.Industry })), (input.IndustryType !== undefined && input.IndustryType !== null && { IndustryType: input.IndustryType })), (input.IsReviewOwnerUpdateAcknowledged !== undefined &&
1354
- input.IsReviewOwnerUpdateAcknowledged !== null && {
1337
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds != null && {
1338
+ AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context),
1339
+ })), (input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign })), (input.AwsRegions != null && {
1340
+ AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
1341
+ })), (input.Description != null && { Description: input.Description })), (input.Environment != null && { Environment: input.Environment })), (input.ImprovementStatus != null && { ImprovementStatus: input.ImprovementStatus })), (input.Industry != null && { Industry: input.Industry })), (input.IndustryType != null && { IndustryType: input.IndustryType })), (input.IsReviewOwnerUpdateAcknowledged != null && {
1355
1342
  IsReviewOwnerUpdateAcknowledged: input.IsReviewOwnerUpdateAcknowledged,
1356
- })), (input.NonAwsRegions !== undefined &&
1357
- input.NonAwsRegions !== null && {
1343
+ })), (input.NonAwsRegions != null && {
1358
1344
  NonAwsRegions: serializeAws_restJson1WorkloadNonAwsRegions(input.NonAwsRegions, context),
1359
- })), (input.Notes !== undefined && input.Notes !== null && { Notes: input.Notes })), (input.PillarPriorities !== undefined &&
1360
- input.PillarPriorities !== null && {
1345
+ })), (input.Notes != null && { Notes: input.Notes })), (input.PillarPriorities != null && {
1361
1346
  PillarPriorities: serializeAws_restJson1WorkloadPillarPriorities(input.PillarPriorities, context),
1362
- })), (input.ReviewOwner !== undefined && input.ReviewOwner !== null && { ReviewOwner: input.ReviewOwner })), (input.WorkloadName !== undefined && input.WorkloadName !== null && { WorkloadName: input.WorkloadName })));
1347
+ })), (input.ReviewOwner != null && { ReviewOwner: input.ReviewOwner })), (input.WorkloadName != null && { WorkloadName: input.WorkloadName })));
1363
1348
  return [2, new __HttpRequest({
1364
1349
  protocol: protocol,
1365
1350
  hostname: hostname,
@@ -1403,8 +1388,7 @@ export var serializeAws_restJson1UpdateWorkloadShareCommand = function (input, c
1403
1388
  else {
1404
1389
  throw new Error("No value provided for input HTTP label: WorkloadId.");
1405
1390
  }
1406
- body = JSON.stringify(__assign({}, (input.PermissionType !== undefined &&
1407
- input.PermissionType !== null && { PermissionType: input.PermissionType })));
1391
+ body = JSON.stringify(__assign({}, (input.PermissionType != null && { PermissionType: input.PermissionType })));
1408
1392
  return [2, new __HttpRequest({
1409
1393
  protocol: protocol,
1410
1394
  hostname: hostname,
@@ -1449,8 +1433,7 @@ export var serializeAws_restJson1UpgradeLensReviewCommand = function (input, con
1449
1433
  else {
1450
1434
  throw new Error("No value provided for input HTTP label: LensAlias.");
1451
1435
  }
1452
- body = JSON.stringify(__assign(__assign({}, (input.ClientRequestToken !== undefined &&
1453
- input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.MilestoneName !== undefined && input.MilestoneName !== null && { MilestoneName: input.MilestoneName })));
1436
+ body = JSON.stringify(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.MilestoneName != null && { MilestoneName: input.MilestoneName })));
1454
1437
  return [2, new __HttpRequest({
1455
1438
  protocol: protocol,
1456
1439
  hostname: hostname,
@@ -4668,7 +4651,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
4668
4651
  });
4669
4652
  }); };
4670
4653
  var serializeAws_restJson1ChoiceUpdate = function (input, context) {
4671
- return __assign(__assign(__assign({}, (input.Notes !== undefined && input.Notes !== null && { Notes: input.Notes })), (input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason })), (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
4654
+ return __assign(__assign(__assign({}, (input.Notes != null && { Notes: input.Notes })), (input.Reason != null && { Reason: input.Reason })), (input.Status != null && { Status: input.Status }));
4672
4655
  };
4673
4656
  var serializeAws_restJson1ChoiceUpdates = function (input, context) {
4674
4657
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4772,9 +4755,7 @@ var serializeAws_restJson1WorkloadPillarPriorities = function (input, context) {
4772
4755
  };
4773
4756
  var deserializeAws_restJson1AdditionalResources = function (output, context) {
4774
4757
  return {
4775
- Content: output.Content !== undefined && output.Content !== null
4776
- ? deserializeAws_restJson1Urls(output.Content, context)
4777
- : undefined,
4758
+ Content: output.Content != null ? deserializeAws_restJson1Urls(output.Content, context) : undefined,
4778
4759
  Type: __expectString(output.Type),
4779
4760
  };
4780
4761
  };
@@ -4791,12 +4772,8 @@ var deserializeAws_restJson1AdditionalResourcesList = function (output, context)
4791
4772
  };
4792
4773
  var deserializeAws_restJson1Answer = function (output, context) {
4793
4774
  return {
4794
- ChoiceAnswers: output.ChoiceAnswers !== undefined && output.ChoiceAnswers !== null
4795
- ? deserializeAws_restJson1ChoiceAnswers(output.ChoiceAnswers, context)
4796
- : undefined,
4797
- Choices: output.Choices !== undefined && output.Choices !== null
4798
- ? deserializeAws_restJson1Choices(output.Choices, context)
4799
- : undefined,
4775
+ ChoiceAnswers: output.ChoiceAnswers != null ? deserializeAws_restJson1ChoiceAnswers(output.ChoiceAnswers, context) : undefined,
4776
+ Choices: output.Choices != null ? deserializeAws_restJson1Choices(output.Choices, context) : undefined,
4800
4777
  HelpfulResourceDisplayText: __expectString(output.HelpfulResourceDisplayText),
4801
4778
  HelpfulResourceUrl: __expectString(output.HelpfulResourceUrl),
4802
4779
  ImprovementPlanUrl: __expectString(output.ImprovementPlanUrl),
@@ -4808,7 +4785,7 @@ var deserializeAws_restJson1Answer = function (output, context) {
4808
4785
  QuestionTitle: __expectString(output.QuestionTitle),
4809
4786
  Reason: __expectString(output.Reason),
4810
4787
  Risk: __expectString(output.Risk),
4811
- SelectedChoices: output.SelectedChoices !== undefined && output.SelectedChoices !== null
4788
+ SelectedChoices: output.SelectedChoices != null
4812
4789
  ? deserializeAws_restJson1SelectedChoices(output.SelectedChoices, context)
4813
4790
  : undefined,
4814
4791
  };
@@ -4826,34 +4803,32 @@ var deserializeAws_restJson1AnswerSummaries = function (output, context) {
4826
4803
  };
4827
4804
  var deserializeAws_restJson1AnswerSummary = function (output, context) {
4828
4805
  return {
4829
- ChoiceAnswerSummaries: output.ChoiceAnswerSummaries !== undefined && output.ChoiceAnswerSummaries !== null
4806
+ ChoiceAnswerSummaries: output.ChoiceAnswerSummaries != null
4830
4807
  ? deserializeAws_restJson1ChoiceAnswerSummaries(output.ChoiceAnswerSummaries, context)
4831
4808
  : undefined,
4832
- Choices: output.Choices !== undefined && output.Choices !== null
4833
- ? deserializeAws_restJson1Choices(output.Choices, context)
4834
- : undefined,
4809
+ Choices: output.Choices != null ? deserializeAws_restJson1Choices(output.Choices, context) : undefined,
4835
4810
  IsApplicable: __expectBoolean(output.IsApplicable),
4836
4811
  PillarId: __expectString(output.PillarId),
4837
4812
  QuestionId: __expectString(output.QuestionId),
4838
4813
  QuestionTitle: __expectString(output.QuestionTitle),
4839
4814
  Reason: __expectString(output.Reason),
4840
4815
  Risk: __expectString(output.Risk),
4841
- SelectedChoices: output.SelectedChoices !== undefined && output.SelectedChoices !== null
4816
+ SelectedChoices: output.SelectedChoices != null
4842
4817
  ? deserializeAws_restJson1SelectedChoices(output.SelectedChoices, context)
4843
4818
  : undefined,
4844
4819
  };
4845
4820
  };
4846
4821
  var deserializeAws_restJson1Choice = function (output, context) {
4847
4822
  return {
4848
- AdditionalResources: output.AdditionalResources !== undefined && output.AdditionalResources !== null
4823
+ AdditionalResources: output.AdditionalResources != null
4849
4824
  ? deserializeAws_restJson1AdditionalResourcesList(output.AdditionalResources, context)
4850
4825
  : undefined,
4851
4826
  ChoiceId: __expectString(output.ChoiceId),
4852
4827
  Description: __expectString(output.Description),
4853
- HelpfulResource: output.HelpfulResource !== undefined && output.HelpfulResource !== null
4828
+ HelpfulResource: output.HelpfulResource != null
4854
4829
  ? deserializeAws_restJson1ChoiceContent(output.HelpfulResource, context)
4855
4830
  : undefined,
4856
- ImprovementPlan: output.ImprovementPlan !== undefined && output.ImprovementPlan !== null
4831
+ ImprovementPlan: output.ImprovementPlan != null
4857
4832
  ? deserializeAws_restJson1ChoiceContent(output.ImprovementPlan, context)
4858
4833
  : undefined,
4859
4834
  Title: __expectString(output.Title),
@@ -4945,7 +4920,7 @@ var deserializeAws_restJson1ImprovementSummaries = function (output, context) {
4945
4920
  var deserializeAws_restJson1ImprovementSummary = function (output, context) {
4946
4921
  return {
4947
4922
  ImprovementPlanUrl: __expectString(output.ImprovementPlanUrl),
4948
- ImprovementPlans: output.ImprovementPlans !== undefined && output.ImprovementPlans !== null
4923
+ ImprovementPlans: output.ImprovementPlans != null
4949
4924
  ? deserializeAws_restJson1ChoiceImprovementPlans(output.ImprovementPlans, context)
4950
4925
  : undefined,
4951
4926
  PillarId: __expectString(output.PillarId),
@@ -4962,9 +4937,7 @@ var deserializeAws_restJson1Lens = function (output, context) {
4962
4937
  Name: __expectString(output.Name),
4963
4938
  Owner: __expectString(output.Owner),
4964
4939
  ShareInvitationId: __expectString(output.ShareInvitationId),
4965
- Tags: output.Tags !== undefined && output.Tags !== null
4966
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4967
- : undefined,
4940
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4968
4941
  };
4969
4942
  };
4970
4943
  var deserializeAws_restJson1LensReview = function (output, context) {
@@ -4976,15 +4949,11 @@ var deserializeAws_restJson1LensReview = function (output, context) {
4976
4949
  LensVersion: __expectString(output.LensVersion),
4977
4950
  NextToken: __expectString(output.NextToken),
4978
4951
  Notes: __expectString(output.Notes),
4979
- PillarReviewSummaries: output.PillarReviewSummaries !== undefined && output.PillarReviewSummaries !== null
4952
+ PillarReviewSummaries: output.PillarReviewSummaries != null
4980
4953
  ? deserializeAws_restJson1PillarReviewSummaries(output.PillarReviewSummaries, context)
4981
4954
  : undefined,
4982
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
4983
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
4984
- : undefined,
4985
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
4986
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
4987
- : undefined,
4955
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
4956
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
4988
4957
  };
4989
4958
  };
4990
4959
  var deserializeAws_restJson1LensReviewReport = function (output, context) {
@@ -5012,12 +4981,8 @@ var deserializeAws_restJson1LensReviewSummary = function (output, context) {
5012
4981
  LensName: __expectString(output.LensName),
5013
4982
  LensStatus: __expectString(output.LensStatus),
5014
4983
  LensVersion: __expectString(output.LensVersion),
5015
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
5016
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
5017
- : undefined,
5018
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
5019
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
5020
- : undefined,
4984
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
4985
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
5021
4986
  };
5022
4987
  };
5023
4988
  var deserializeAws_restJson1LensShareSummaries = function (output, context) {
@@ -5052,9 +5017,7 @@ var deserializeAws_restJson1LensSummaries = function (output, context) {
5052
5017
  };
5053
5018
  var deserializeAws_restJson1LensSummary = function (output, context) {
5054
5019
  return {
5055
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
5056
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
5057
- : undefined,
5020
+ CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
5058
5021
  Description: __expectString(output.Description),
5059
5022
  LensAlias: __expectString(output.LensAlias),
5060
5023
  LensArn: __expectString(output.LensArn),
@@ -5063,9 +5026,7 @@ var deserializeAws_restJson1LensSummary = function (output, context) {
5063
5026
  LensType: __expectString(output.LensType),
5064
5027
  LensVersion: __expectString(output.LensVersion),
5065
5028
  Owner: __expectString(output.Owner),
5066
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
5067
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
5068
- : undefined,
5029
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
5069
5030
  };
5070
5031
  };
5071
5032
  var deserializeAws_restJson1LensUpgradeSummary = function (output, context) {
@@ -5082,12 +5043,8 @@ var deserializeAws_restJson1Milestone = function (output, context) {
5082
5043
  return {
5083
5044
  MilestoneName: __expectString(output.MilestoneName),
5084
5045
  MilestoneNumber: __expectInt32(output.MilestoneNumber),
5085
- RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null
5086
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt)))
5087
- : undefined,
5088
- Workload: output.Workload !== undefined && output.Workload !== null
5089
- ? deserializeAws_restJson1Workload(output.Workload, context)
5090
- : undefined,
5046
+ RecordedAt: output.RecordedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt))) : undefined,
5047
+ Workload: output.Workload != null ? deserializeAws_restJson1Workload(output.Workload, context) : undefined,
5091
5048
  };
5092
5049
  };
5093
5050
  var deserializeAws_restJson1MilestoneSummaries = function (output, context) {
@@ -5105,10 +5062,8 @@ var deserializeAws_restJson1MilestoneSummary = function (output, context) {
5105
5062
  return {
5106
5063
  MilestoneName: __expectString(output.MilestoneName),
5107
5064
  MilestoneNumber: __expectInt32(output.MilestoneNumber),
5108
- RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null
5109
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt)))
5110
- : undefined,
5111
- WorkloadSummary: output.WorkloadSummary !== undefined && output.WorkloadSummary !== null
5065
+ RecordedAt: output.RecordedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RecordedAt))) : undefined,
5066
+ WorkloadSummary: output.WorkloadSummary != null
5112
5067
  ? deserializeAws_restJson1WorkloadSummary(output.WorkloadSummary, context)
5113
5068
  : undefined,
5114
5069
  };
@@ -5126,7 +5081,7 @@ var deserializeAws_restJson1NotificationSummaries = function (output, context) {
5126
5081
  };
5127
5082
  var deserializeAws_restJson1NotificationSummary = function (output, context) {
5128
5083
  return {
5129
- LensUpgradeSummary: output.LensUpgradeSummary !== undefined && output.LensUpgradeSummary !== null
5084
+ LensUpgradeSummary: output.LensUpgradeSummary != null
5130
5085
  ? deserializeAws_restJson1LensUpgradeSummary(output.LensUpgradeSummary, context)
5131
5086
  : undefined,
5132
5087
  Type: __expectString(output.Type),
@@ -5137,7 +5092,7 @@ var deserializeAws_restJson1PillarDifference = function (output, context) {
5137
5092
  DifferenceStatus: __expectString(output.DifferenceStatus),
5138
5093
  PillarId: __expectString(output.PillarId),
5139
5094
  PillarName: __expectString(output.PillarName),
5140
- QuestionDifferences: output.QuestionDifferences !== undefined && output.QuestionDifferences !== null
5095
+ QuestionDifferences: output.QuestionDifferences != null
5141
5096
  ? deserializeAws_restJson1QuestionDifferences(output.QuestionDifferences, context)
5142
5097
  : undefined,
5143
5098
  };
@@ -5169,9 +5124,7 @@ var deserializeAws_restJson1PillarReviewSummary = function (output, context) {
5169
5124
  Notes: __expectString(output.Notes),
5170
5125
  PillarId: __expectString(output.PillarId),
5171
5126
  PillarName: __expectString(output.PillarName),
5172
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
5173
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
5174
- : undefined,
5127
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
5175
5128
  };
5176
5129
  };
5177
5130
  var deserializeAws_restJson1QuestionDifference = function (output, context) {
@@ -5286,51 +5239,39 @@ var deserializeAws_restJson1ValidationExceptionFieldList = function (output, con
5286
5239
  };
5287
5240
  var deserializeAws_restJson1VersionDifferences = function (output, context) {
5288
5241
  return {
5289
- PillarDifferences: output.PillarDifferences !== undefined && output.PillarDifferences !== null
5242
+ PillarDifferences: output.PillarDifferences != null
5290
5243
  ? deserializeAws_restJson1PillarDifferences(output.PillarDifferences, context)
5291
5244
  : undefined,
5292
5245
  };
5293
5246
  };
5294
5247
  var deserializeAws_restJson1Workload = function (output, context) {
5295
5248
  return {
5296
- AccountIds: output.AccountIds !== undefined && output.AccountIds !== null
5297
- ? deserializeAws_restJson1WorkloadAccountIds(output.AccountIds, context)
5298
- : undefined,
5249
+ AccountIds: output.AccountIds != null ? deserializeAws_restJson1WorkloadAccountIds(output.AccountIds, context) : undefined,
5299
5250
  ArchitecturalDesign: __expectString(output.ArchitecturalDesign),
5300
- AwsRegions: output.AwsRegions !== undefined && output.AwsRegions !== null
5301
- ? deserializeAws_restJson1WorkloadAwsRegions(output.AwsRegions, context)
5302
- : undefined,
5251
+ AwsRegions: output.AwsRegions != null ? deserializeAws_restJson1WorkloadAwsRegions(output.AwsRegions, context) : undefined,
5303
5252
  Description: __expectString(output.Description),
5304
5253
  Environment: __expectString(output.Environment),
5305
5254
  ImprovementStatus: __expectString(output.ImprovementStatus),
5306
5255
  Industry: __expectString(output.Industry),
5307
5256
  IndustryType: __expectString(output.IndustryType),
5308
5257
  IsReviewOwnerUpdateAcknowledged: __expectBoolean(output.IsReviewOwnerUpdateAcknowledged),
5309
- Lenses: output.Lenses !== undefined && output.Lenses !== null
5310
- ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context)
5311
- : undefined,
5312
- NonAwsRegions: output.NonAwsRegions !== undefined && output.NonAwsRegions !== null
5258
+ Lenses: output.Lenses != null ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context) : undefined,
5259
+ NonAwsRegions: output.NonAwsRegions != null
5313
5260
  ? deserializeAws_restJson1WorkloadNonAwsRegions(output.NonAwsRegions, context)
5314
5261
  : undefined,
5315
5262
  Notes: __expectString(output.Notes),
5316
5263
  Owner: __expectString(output.Owner),
5317
- PillarPriorities: output.PillarPriorities !== undefined && output.PillarPriorities !== null
5264
+ PillarPriorities: output.PillarPriorities != null
5318
5265
  ? deserializeAws_restJson1WorkloadPillarPriorities(output.PillarPriorities, context)
5319
5266
  : undefined,
5320
5267
  ReviewOwner: __expectString(output.ReviewOwner),
5321
- ReviewRestrictionDate: output.ReviewRestrictionDate !== undefined && output.ReviewRestrictionDate !== null
5268
+ ReviewRestrictionDate: output.ReviewRestrictionDate != null
5322
5269
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReviewRestrictionDate)))
5323
5270
  : undefined,
5324
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
5325
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
5326
- : undefined,
5271
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
5327
5272
  ShareInvitationId: __expectString(output.ShareInvitationId),
5328
- Tags: output.Tags !== undefined && output.Tags !== null
5329
- ? deserializeAws_restJson1TagMap(output.Tags, context)
5330
- : undefined,
5331
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
5332
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
5333
- : undefined,
5273
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
5274
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
5334
5275
  WorkloadArn: __expectString(output.WorkloadArn),
5335
5276
  WorkloadId: __expectString(output.WorkloadId),
5336
5277
  WorkloadName: __expectString(output.WorkloadName),
@@ -5436,16 +5377,10 @@ var deserializeAws_restJson1WorkloadSummaries = function (output, context) {
5436
5377
  var deserializeAws_restJson1WorkloadSummary = function (output, context) {
5437
5378
  return {
5438
5379
  ImprovementStatus: __expectString(output.ImprovementStatus),
5439
- Lenses: output.Lenses !== undefined && output.Lenses !== null
5440
- ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context)
5441
- : undefined,
5380
+ Lenses: output.Lenses != null ? deserializeAws_restJson1WorkloadLenses(output.Lenses, context) : undefined,
5442
5381
  Owner: __expectString(output.Owner),
5443
- RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
5444
- ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
5445
- : undefined,
5446
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
5447
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
5448
- : undefined,
5382
+ RiskCounts: output.RiskCounts != null ? deserializeAws_restJson1RiskCounts(output.RiskCounts, context) : undefined,
5383
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
5449
5384
  WorkloadArn: __expectString(output.WorkloadArn),
5450
5385
  WorkloadId: __expectString(output.WorkloadId),
5451
5386
  WorkloadName: __expectString(output.WorkloadName),
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.121.0",
4
+ "version": "3.127.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.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.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.127.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.127.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",