@aws-sdk/client-resiliencehub 3.53.0 → 3.55.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/ResiliencehubClient.js +13 -13
  3. package/dist-cjs/commands/AddDraftAppVersionResourceMappingsCommand.js +3 -3
  4. package/dist-cjs/commands/CreateAppCommand.js +3 -3
  5. package/dist-cjs/commands/CreateRecommendationTemplateCommand.js +3 -3
  6. package/dist-cjs/commands/CreateResiliencyPolicyCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteAppAssessmentCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteAppCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteRecommendationTemplateCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteResiliencyPolicyCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeAppAssessmentCommand.js +3 -3
  12. package/dist-cjs/commands/DescribeAppCommand.js +3 -3
  13. package/dist-cjs/commands/DescribeAppVersionResourcesResolutionStatusCommand.js +3 -3
  14. package/dist-cjs/commands/DescribeAppVersionTemplateCommand.js +3 -3
  15. package/dist-cjs/commands/DescribeDraftAppVersionResourcesImportStatusCommand.js +3 -3
  16. package/dist-cjs/commands/DescribeResiliencyPolicyCommand.js +3 -3
  17. package/dist-cjs/commands/ImportResourcesToDraftAppVersionCommand.js +3 -3
  18. package/dist-cjs/commands/ListAlarmRecommendationsCommand.js +3 -3
  19. package/dist-cjs/commands/ListAppAssessmentsCommand.js +3 -3
  20. package/dist-cjs/commands/ListAppComponentCompliancesCommand.js +3 -3
  21. package/dist-cjs/commands/ListAppComponentRecommendationsCommand.js +3 -3
  22. package/dist-cjs/commands/ListAppVersionResourceMappingsCommand.js +3 -3
  23. package/dist-cjs/commands/ListAppVersionResourcesCommand.js +3 -3
  24. package/dist-cjs/commands/ListAppVersionsCommand.js +3 -3
  25. package/dist-cjs/commands/ListAppsCommand.js +3 -3
  26. package/dist-cjs/commands/ListRecommendationTemplatesCommand.js +3 -3
  27. package/dist-cjs/commands/ListResiliencyPoliciesCommand.js +3 -3
  28. package/dist-cjs/commands/ListSopRecommendationsCommand.js +3 -3
  29. package/dist-cjs/commands/ListSuggestedResiliencyPoliciesCommand.js +3 -3
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  31. package/dist-cjs/commands/ListTestRecommendationsCommand.js +3 -3
  32. package/dist-cjs/commands/ListUnsupportedAppVersionResourcesCommand.js +3 -3
  33. package/dist-cjs/commands/PublishAppVersionCommand.js +3 -3
  34. package/dist-cjs/commands/PutDraftAppVersionTemplateCommand.js +3 -3
  35. package/dist-cjs/commands/RemoveDraftAppVersionResourceMappingsCommand.js +3 -3
  36. package/dist-cjs/commands/ResolveAppVersionResourcesCommand.js +3 -3
  37. package/dist-cjs/commands/StartAppAssessmentCommand.js +3 -3
  38. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  39. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  40. package/dist-cjs/commands/UpdateAppCommand.js +3 -3
  41. package/dist-cjs/commands/UpdateResiliencyPolicyCommand.js +3 -3
  42. package/dist-cjs/endpoints.js +1 -1
  43. package/dist-cjs/protocols/Aws_restJson1.js +295 -295
  44. package/dist-cjs/runtimeConfig.browser.js +4 -4
  45. package/dist-cjs/runtimeConfig.js +9 -9
  46. package/dist-cjs/runtimeConfig.native.js +1 -1
  47. package/dist-es/Resiliencehub.js +39 -39
  48. package/dist-es/pagination/ListAlarmRecommendationsPaginator.js +4 -4
  49. package/dist-es/pagination/ListAppAssessmentsPaginator.js +4 -4
  50. package/dist-es/pagination/ListAppComponentCompliancesPaginator.js +4 -4
  51. package/dist-es/pagination/ListAppComponentRecommendationsPaginator.js +4 -4
  52. package/dist-es/pagination/ListAppVersionResourceMappingsPaginator.js +4 -4
  53. package/dist-es/pagination/ListAppVersionResourcesPaginator.js +4 -4
  54. package/dist-es/pagination/ListAppVersionsPaginator.js +4 -4
  55. package/dist-es/pagination/ListAppsPaginator.js +4 -4
  56. package/dist-es/pagination/ListRecommendationTemplatesPaginator.js +4 -4
  57. package/dist-es/pagination/ListResiliencyPoliciesPaginator.js +4 -4
  58. package/dist-es/pagination/ListSopRecommendationsPaginator.js +4 -4
  59. package/dist-es/pagination/ListSuggestedResiliencyPoliciesPaginator.js +4 -4
  60. package/dist-es/pagination/ListTestRecommendationsPaginator.js +4 -4
  61. package/dist-es/pagination/ListUnsupportedAppVersionResourcesPaginator.js +4 -4
  62. package/dist-es/protocols/Aws_restJson1.js +39 -39
  63. package/dist-types/ResiliencehubClient.d.ts +2 -2
  64. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  65. package/dist-types/runtimeConfig.d.ts +1 -1
  66. package/dist-types/runtimeConfig.native.d.ts +3 -3
  67. package/dist-types/ts3.4/ResiliencehubClient.d.ts +2 -2
  68. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  69. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  70. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  71. package/package.json +34 -34
@@ -41,7 +41,7 @@ const serializeAws_restJson1CreateAppCommand = async (input, context) => {
41
41
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/create-app";
42
42
  let body;
43
43
  body = JSON.stringify({
44
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
44
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
45
45
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
46
46
  ...(input.name !== undefined && input.name !== null && { name: input.name }),
47
47
  ...(input.policyArn !== undefined && input.policyArn !== null && { policyArn: input.policyArn }),
@@ -69,7 +69,7 @@ const serializeAws_restJson1CreateRecommendationTemplateCommand = async (input,
69
69
  body = JSON.stringify({
70
70
  ...(input.assessmentArn !== undefined && input.assessmentArn !== null && { assessmentArn: input.assessmentArn }),
71
71
  ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
72
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
72
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
73
73
  ...(input.format !== undefined && input.format !== null && { format: input.format }),
74
74
  ...(input.name !== undefined && input.name !== null && { name: input.name }),
75
75
  ...(input.recommendationIds !== undefined &&
@@ -102,7 +102,7 @@ const serializeAws_restJson1CreateResiliencyPolicyCommand = async (input, contex
102
102
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/create-resiliency-policy";
103
103
  let body;
104
104
  body = JSON.stringify({
105
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
105
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
106
106
  ...(input.dataLocationConstraint !== undefined &&
107
107
  input.dataLocationConstraint !== null && { dataLocationConstraint: input.dataLocationConstraint }),
108
108
  ...(input.policy !== undefined &&
@@ -134,7 +134,7 @@ const serializeAws_restJson1DeleteAppCommand = async (input, context) => {
134
134
  let body;
135
135
  body = JSON.stringify({
136
136
  ...(input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn }),
137
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
137
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
138
138
  ...(input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete }),
139
139
  });
140
140
  return new protocol_http_1.HttpRequest({
@@ -158,7 +158,7 @@ const serializeAws_restJson1DeleteAppAssessmentCommand = async (input, context)
158
158
  let body;
159
159
  body = JSON.stringify({
160
160
  ...(input.assessmentArn !== undefined && input.assessmentArn !== null && { assessmentArn: input.assessmentArn }),
161
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
161
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
162
162
  });
163
163
  return new protocol_http_1.HttpRequest({
164
164
  protocol,
@@ -180,7 +180,7 @@ const serializeAws_restJson1DeleteRecommendationTemplateCommand = async (input,
180
180
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delete-recommendation-template";
181
181
  let body;
182
182
  body = JSON.stringify({
183
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
183
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
184
184
  ...(input.recommendationTemplateArn !== undefined &&
185
185
  input.recommendationTemplateArn !== null && { recommendationTemplateArn: input.recommendationTemplateArn }),
186
186
  });
@@ -204,7 +204,7 @@ const serializeAws_restJson1DeleteResiliencyPolicyCommand = async (input, contex
204
204
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delete-resiliency-policy";
205
205
  let body;
206
206
  body = JSON.stringify({
207
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
207
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
208
208
  ...(input.policyArn !== undefined && input.policyArn !== null && { policyArn: input.policyArn }),
209
209
  });
210
210
  return new protocol_http_1.HttpRequest({
@@ -668,7 +668,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
668
668
  if (labelValue.length <= 0) {
669
669
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
670
670
  }
671
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
671
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
672
672
  }
673
673
  else {
674
674
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -850,7 +850,7 @@ const serializeAws_restJson1StartAppAssessmentCommand = async (input, context) =
850
850
  ...(input.appVersion !== undefined && input.appVersion !== null && { appVersion: input.appVersion }),
851
851
  ...(input.assessmentName !== undefined &&
852
852
  input.assessmentName !== null && { assessmentName: input.assessmentName }),
853
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
853
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
854
854
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
855
855
  });
856
856
  return new protocol_http_1.HttpRequest({
@@ -875,7 +875,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
875
875
  if (labelValue.length <= 0) {
876
876
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
877
877
  }
878
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
878
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
879
879
  }
880
880
  else {
881
881
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -904,7 +904,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
904
904
  if (labelValue.length <= 0) {
905
905
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
906
906
  }
907
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
907
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
908
908
  }
909
909
  else {
910
910
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -989,12 +989,12 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = async
989
989
  appVersion: undefined,
990
990
  resourceMappings: undefined,
991
991
  };
992
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
992
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
993
993
  if (data.appArn !== undefined && data.appArn !== null) {
994
- contents.appArn = smithy_client_1.expectString(data.appArn);
994
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
995
995
  }
996
996
  if (data.appVersion !== undefined && data.appVersion !== null) {
997
- contents.appVersion = smithy_client_1.expectString(data.appVersion);
997
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
998
998
  }
999
999
  if (data.resourceMappings !== undefined && data.resourceMappings !== null) {
1000
1000
  contents.resourceMappings = deserializeAws_restJson1ResourceMappingList(data.resourceMappings, context);
@@ -1036,7 +1036,7 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = a
1036
1036
  $fault: "client",
1037
1037
  $metadata: deserializeMetadata(output),
1038
1038
  });
1039
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1039
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1040
1040
  }
1041
1041
  };
1042
1042
  const deserializeAws_restJson1CreateAppCommand = async (output, context) => {
@@ -1047,7 +1047,7 @@ const deserializeAws_restJson1CreateAppCommand = async (output, context) => {
1047
1047
  $metadata: deserializeMetadata(output),
1048
1048
  app: undefined,
1049
1049
  };
1050
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1050
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1051
1051
  if (data.app !== undefined && data.app !== null) {
1052
1052
  contents.app = deserializeAws_restJson1App(data.app, context);
1053
1053
  }
@@ -1091,7 +1091,7 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
1091
1091
  $fault: "client",
1092
1092
  $metadata: deserializeMetadata(output),
1093
1093
  });
1094
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1094
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1095
1095
  }
1096
1096
  };
1097
1097
  const deserializeAws_restJson1CreateRecommendationTemplateCommand = async (output, context) => {
@@ -1102,7 +1102,7 @@ const deserializeAws_restJson1CreateRecommendationTemplateCommand = async (outpu
1102
1102
  $metadata: deserializeMetadata(output),
1103
1103
  recommendationTemplate: undefined,
1104
1104
  };
1105
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1105
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1106
1106
  if (data.recommendationTemplate !== undefined && data.recommendationTemplate !== null) {
1107
1107
  contents.recommendationTemplate = deserializeAws_restJson1RecommendationTemplate(data.recommendationTemplate, context);
1108
1108
  }
@@ -1143,7 +1143,7 @@ const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (
1143
1143
  $fault: "client",
1144
1144
  $metadata: deserializeMetadata(output),
1145
1145
  });
1146
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1146
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1147
1147
  }
1148
1148
  };
1149
1149
  const deserializeAws_restJson1CreateResiliencyPolicyCommand = async (output, context) => {
@@ -1154,7 +1154,7 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommand = async (output, con
1154
1154
  $metadata: deserializeMetadata(output),
1155
1155
  policy: undefined,
1156
1156
  };
1157
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1157
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1158
1158
  if (data.policy !== undefined && data.policy !== null) {
1159
1159
  contents.policy = deserializeAws_restJson1ResiliencyPolicy(data.policy, context);
1160
1160
  }
@@ -1195,7 +1195,7 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
1195
1195
  $fault: "client",
1196
1196
  $metadata: deserializeMetadata(output),
1197
1197
  });
1198
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1198
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1199
1199
  }
1200
1200
  };
1201
1201
  const deserializeAws_restJson1DeleteAppCommand = async (output, context) => {
@@ -1206,9 +1206,9 @@ const deserializeAws_restJson1DeleteAppCommand = async (output, context) => {
1206
1206
  $metadata: deserializeMetadata(output),
1207
1207
  appArn: undefined,
1208
1208
  };
1209
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1209
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1210
1210
  if (data.appArn !== undefined && data.appArn !== null) {
1211
- contents.appArn = smithy_client_1.expectString(data.appArn);
1211
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1212
1212
  }
1213
1213
  return Promise.resolve(contents);
1214
1214
  };
@@ -1244,7 +1244,7 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
1244
1244
  $fault: "client",
1245
1245
  $metadata: deserializeMetadata(output),
1246
1246
  });
1247
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1247
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1248
1248
  }
1249
1249
  };
1250
1250
  const deserializeAws_restJson1DeleteAppAssessmentCommand = async (output, context) => {
@@ -1256,12 +1256,12 @@ const deserializeAws_restJson1DeleteAppAssessmentCommand = async (output, contex
1256
1256
  assessmentArn: undefined,
1257
1257
  assessmentStatus: undefined,
1258
1258
  };
1259
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1259
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1260
1260
  if (data.assessmentArn !== undefined && data.assessmentArn !== null) {
1261
- contents.assessmentArn = smithy_client_1.expectString(data.assessmentArn);
1261
+ contents.assessmentArn = (0, smithy_client_1.expectString)(data.assessmentArn);
1262
1262
  }
1263
1263
  if (data.assessmentStatus !== undefined && data.assessmentStatus !== null) {
1264
- contents.assessmentStatus = smithy_client_1.expectString(data.assessmentStatus);
1264
+ contents.assessmentStatus = (0, smithy_client_1.expectString)(data.assessmentStatus);
1265
1265
  }
1266
1266
  return Promise.resolve(contents);
1267
1267
  };
@@ -1300,7 +1300,7 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
1300
1300
  $fault: "client",
1301
1301
  $metadata: deserializeMetadata(output),
1302
1302
  });
1303
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1303
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1304
1304
  }
1305
1305
  };
1306
1306
  const deserializeAws_restJson1DeleteRecommendationTemplateCommand = async (output, context) => {
@@ -1312,12 +1312,12 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommand = async (outpu
1312
1312
  recommendationTemplateArn: undefined,
1313
1313
  status: undefined,
1314
1314
  };
1315
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1315
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1316
1316
  if (data.recommendationTemplateArn !== undefined && data.recommendationTemplateArn !== null) {
1317
- contents.recommendationTemplateArn = smithy_client_1.expectString(data.recommendationTemplateArn);
1317
+ contents.recommendationTemplateArn = (0, smithy_client_1.expectString)(data.recommendationTemplateArn);
1318
1318
  }
1319
1319
  if (data.status !== undefined && data.status !== null) {
1320
- contents.status = smithy_client_1.expectString(data.status);
1320
+ contents.status = (0, smithy_client_1.expectString)(data.status);
1321
1321
  }
1322
1322
  return Promise.resolve(contents);
1323
1323
  };
@@ -1353,7 +1353,7 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (
1353
1353
  $fault: "client",
1354
1354
  $metadata: deserializeMetadata(output),
1355
1355
  });
1356
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1356
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1357
1357
  }
1358
1358
  };
1359
1359
  const deserializeAws_restJson1DeleteResiliencyPolicyCommand = async (output, context) => {
@@ -1364,9 +1364,9 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommand = async (output, con
1364
1364
  $metadata: deserializeMetadata(output),
1365
1365
  policyArn: undefined,
1366
1366
  };
1367
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1367
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1368
1368
  if (data.policyArn !== undefined && data.policyArn !== null) {
1369
- contents.policyArn = smithy_client_1.expectString(data.policyArn);
1369
+ contents.policyArn = (0, smithy_client_1.expectString)(data.policyArn);
1370
1370
  }
1371
1371
  return Promise.resolve(contents);
1372
1372
  };
@@ -1405,7 +1405,7 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
1405
1405
  $fault: "client",
1406
1406
  $metadata: deserializeMetadata(output),
1407
1407
  });
1408
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1408
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1409
1409
  }
1410
1410
  };
1411
1411
  const deserializeAws_restJson1DescribeAppCommand = async (output, context) => {
@@ -1416,7 +1416,7 @@ const deserializeAws_restJson1DescribeAppCommand = async (output, context) => {
1416
1416
  $metadata: deserializeMetadata(output),
1417
1417
  app: undefined,
1418
1418
  };
1419
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1419
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1420
1420
  if (data.app !== undefined && data.app !== null) {
1421
1421
  contents.app = deserializeAws_restJson1App(data.app, context);
1422
1422
  }
@@ -1454,7 +1454,7 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
1454
1454
  $fault: "client",
1455
1455
  $metadata: deserializeMetadata(output),
1456
1456
  });
1457
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1457
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1458
1458
  }
1459
1459
  };
1460
1460
  const deserializeAws_restJson1DescribeAppAssessmentCommand = async (output, context) => {
@@ -1465,7 +1465,7 @@ const deserializeAws_restJson1DescribeAppAssessmentCommand = async (output, cont
1465
1465
  $metadata: deserializeMetadata(output),
1466
1466
  assessment: undefined,
1467
1467
  };
1468
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1468
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1469
1469
  if (data.assessment !== undefined && data.assessment !== null) {
1470
1470
  contents.assessment = deserializeAws_restJson1AppAssessment(data.assessment, context);
1471
1471
  }
@@ -1503,7 +1503,7 @@ const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output,
1503
1503
  $fault: "client",
1504
1504
  $metadata: deserializeMetadata(output),
1505
1505
  });
1506
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1506
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1507
1507
  }
1508
1508
  };
1509
1509
  const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand = async (output, context) => {
@@ -1518,21 +1518,21 @@ const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand
1518
1518
  resolutionId: undefined,
1519
1519
  status: undefined,
1520
1520
  };
1521
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1521
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1522
1522
  if (data.appArn !== undefined && data.appArn !== null) {
1523
- contents.appArn = smithy_client_1.expectString(data.appArn);
1523
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1524
1524
  }
1525
1525
  if (data.appVersion !== undefined && data.appVersion !== null) {
1526
- contents.appVersion = smithy_client_1.expectString(data.appVersion);
1526
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1527
1527
  }
1528
1528
  if (data.errorMessage !== undefined && data.errorMessage !== null) {
1529
- contents.errorMessage = smithy_client_1.expectString(data.errorMessage);
1529
+ contents.errorMessage = (0, smithy_client_1.expectString)(data.errorMessage);
1530
1530
  }
1531
1531
  if (data.resolutionId !== undefined && data.resolutionId !== null) {
1532
- contents.resolutionId = smithy_client_1.expectString(data.resolutionId);
1532
+ contents.resolutionId = (0, smithy_client_1.expectString)(data.resolutionId);
1533
1533
  }
1534
1534
  if (data.status !== undefined && data.status !== null) {
1535
- contents.status = smithy_client_1.expectString(data.status);
1535
+ contents.status = (0, smithy_client_1.expectString)(data.status);
1536
1536
  }
1537
1537
  return Promise.resolve(contents);
1538
1538
  };
@@ -1568,7 +1568,7 @@ const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand
1568
1568
  $fault: "client",
1569
1569
  $metadata: deserializeMetadata(output),
1570
1570
  });
1571
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1571
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1572
1572
  }
1573
1573
  };
1574
1574
  const deserializeAws_restJson1DescribeAppVersionTemplateCommand = async (output, context) => {
@@ -1581,15 +1581,15 @@ const deserializeAws_restJson1DescribeAppVersionTemplateCommand = async (output,
1581
1581
  appTemplateBody: undefined,
1582
1582
  appVersion: undefined,
1583
1583
  };
1584
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1584
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1585
1585
  if (data.appArn !== undefined && data.appArn !== null) {
1586
- contents.appArn = smithy_client_1.expectString(data.appArn);
1586
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1587
1587
  }
1588
1588
  if (data.appTemplateBody !== undefined && data.appTemplateBody !== null) {
1589
- contents.appTemplateBody = smithy_client_1.expectString(data.appTemplateBody);
1589
+ contents.appTemplateBody = (0, smithy_client_1.expectString)(data.appTemplateBody);
1590
1590
  }
1591
1591
  if (data.appVersion !== undefined && data.appVersion !== null) {
1592
- contents.appVersion = smithy_client_1.expectString(data.appVersion);
1592
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1593
1593
  }
1594
1594
  return Promise.resolve(contents);
1595
1595
  };
@@ -1625,7 +1625,7 @@ const deserializeAws_restJson1DescribeAppVersionTemplateCommandError = async (ou
1625
1625
  $fault: "client",
1626
1626
  $metadata: deserializeMetadata(output),
1627
1627
  });
1628
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1628
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1629
1629
  }
1630
1630
  };
1631
1631
  const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommand = async (output, context) => {
@@ -1640,21 +1640,21 @@ const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusComman
1640
1640
  status: undefined,
1641
1641
  statusChangeTime: undefined,
1642
1642
  };
1643
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1643
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1644
1644
  if (data.appArn !== undefined && data.appArn !== null) {
1645
- contents.appArn = smithy_client_1.expectString(data.appArn);
1645
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1646
1646
  }
1647
1647
  if (data.appVersion !== undefined && data.appVersion !== null) {
1648
- contents.appVersion = smithy_client_1.expectString(data.appVersion);
1648
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1649
1649
  }
1650
1650
  if (data.errorMessage !== undefined && data.errorMessage !== null) {
1651
- contents.errorMessage = smithy_client_1.expectString(data.errorMessage);
1651
+ contents.errorMessage = (0, smithy_client_1.expectString)(data.errorMessage);
1652
1652
  }
1653
1653
  if (data.status !== undefined && data.status !== null) {
1654
- contents.status = smithy_client_1.expectString(data.status);
1654
+ contents.status = (0, smithy_client_1.expectString)(data.status);
1655
1655
  }
1656
1656
  if (data.statusChangeTime !== undefined && data.statusChangeTime !== null) {
1657
- contents.statusChangeTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.statusChangeTime)));
1657
+ contents.statusChangeTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.statusChangeTime)));
1658
1658
  }
1659
1659
  return Promise.resolve(contents);
1660
1660
  };
@@ -1690,7 +1690,7 @@ const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusComman
1690
1690
  $fault: "client",
1691
1691
  $metadata: deserializeMetadata(output),
1692
1692
  });
1693
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1693
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1694
1694
  }
1695
1695
  };
1696
1696
  const deserializeAws_restJson1DescribeResiliencyPolicyCommand = async (output, context) => {
@@ -1701,7 +1701,7 @@ const deserializeAws_restJson1DescribeResiliencyPolicyCommand = async (output, c
1701
1701
  $metadata: deserializeMetadata(output),
1702
1702
  policy: undefined,
1703
1703
  };
1704
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1704
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1705
1705
  if (data.policy !== undefined && data.policy !== null) {
1706
1706
  contents.policy = deserializeAws_restJson1ResiliencyPolicy(data.policy, context);
1707
1707
  }
@@ -1739,7 +1739,7 @@ const deserializeAws_restJson1DescribeResiliencyPolicyCommandError = async (outp
1739
1739
  $fault: "client",
1740
1740
  $metadata: deserializeMetadata(output),
1741
1741
  });
1742
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1742
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1743
1743
  }
1744
1744
  };
1745
1745
  const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (output, context) => {
@@ -1753,18 +1753,18 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (o
1753
1753
  sourceArns: undefined,
1754
1754
  status: undefined,
1755
1755
  };
1756
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1756
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1757
1757
  if (data.appArn !== undefined && data.appArn !== null) {
1758
- contents.appArn = smithy_client_1.expectString(data.appArn);
1758
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1759
1759
  }
1760
1760
  if (data.appVersion !== undefined && data.appVersion !== null) {
1761
- contents.appVersion = smithy_client_1.expectString(data.appVersion);
1761
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1762
1762
  }
1763
1763
  if (data.sourceArns !== undefined && data.sourceArns !== null) {
1764
1764
  contents.sourceArns = deserializeAws_restJson1ArnList(data.sourceArns, context);
1765
1765
  }
1766
1766
  if (data.status !== undefined && data.status !== null) {
1767
- contents.status = smithy_client_1.expectString(data.status);
1767
+ contents.status = (0, smithy_client_1.expectString)(data.status);
1768
1768
  }
1769
1769
  return Promise.resolve(contents);
1770
1770
  };
@@ -1803,7 +1803,7 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = asy
1803
1803
  $fault: "client",
1804
1804
  $metadata: deserializeMetadata(output),
1805
1805
  });
1806
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1806
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1807
1807
  }
1808
1808
  };
1809
1809
  const deserializeAws_restJson1ListAlarmRecommendationsCommand = async (output, context) => {
@@ -1815,12 +1815,12 @@ const deserializeAws_restJson1ListAlarmRecommendationsCommand = async (output, c
1815
1815
  alarmRecommendations: undefined,
1816
1816
  nextToken: undefined,
1817
1817
  };
1818
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1818
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1819
1819
  if (data.alarmRecommendations !== undefined && data.alarmRecommendations !== null) {
1820
1820
  contents.alarmRecommendations = deserializeAws_restJson1AlarmRecommendationList(data.alarmRecommendations, context);
1821
1821
  }
1822
1822
  if (data.nextToken !== undefined && data.nextToken !== null) {
1823
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1823
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1824
1824
  }
1825
1825
  return Promise.resolve(contents);
1826
1826
  };
@@ -1856,7 +1856,7 @@ const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (outp
1856
1856
  $fault: "client",
1857
1857
  $metadata: deserializeMetadata(output),
1858
1858
  });
1859
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1859
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1860
1860
  }
1861
1861
  };
1862
1862
  const deserializeAws_restJson1ListAppAssessmentsCommand = async (output, context) => {
@@ -1868,12 +1868,12 @@ const deserializeAws_restJson1ListAppAssessmentsCommand = async (output, context
1868
1868
  assessmentSummaries: undefined,
1869
1869
  nextToken: undefined,
1870
1870
  };
1871
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1871
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1872
1872
  if (data.assessmentSummaries !== undefined && data.assessmentSummaries !== null) {
1873
1873
  contents.assessmentSummaries = deserializeAws_restJson1AppAssessmentSummaryList(data.assessmentSummaries, context);
1874
1874
  }
1875
1875
  if (data.nextToken !== undefined && data.nextToken !== null) {
1876
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1876
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1877
1877
  }
1878
1878
  return Promise.resolve(contents);
1879
1879
  };
@@ -1909,7 +1909,7 @@ const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, co
1909
1909
  $fault: "client",
1910
1910
  $metadata: deserializeMetadata(output),
1911
1911
  });
1912
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1912
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1913
1913
  }
1914
1914
  };
1915
1915
  const deserializeAws_restJson1ListAppComponentCompliancesCommand = async (output, context) => {
@@ -1921,12 +1921,12 @@ const deserializeAws_restJson1ListAppComponentCompliancesCommand = async (output
1921
1921
  componentCompliances: undefined,
1922
1922
  nextToken: undefined,
1923
1923
  };
1924
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1924
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1925
1925
  if (data.componentCompliances !== undefined && data.componentCompliances !== null) {
1926
1926
  contents.componentCompliances = deserializeAws_restJson1ComponentCompliancesList(data.componentCompliances, context);
1927
1927
  }
1928
1928
  if (data.nextToken !== undefined && data.nextToken !== null) {
1929
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1929
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1930
1930
  }
1931
1931
  return Promise.resolve(contents);
1932
1932
  };
@@ -1962,7 +1962,7 @@ const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (o
1962
1962
  $fault: "client",
1963
1963
  $metadata: deserializeMetadata(output),
1964
1964
  });
1965
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1965
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1966
1966
  }
1967
1967
  };
1968
1968
  const deserializeAws_restJson1ListAppComponentRecommendationsCommand = async (output, context) => {
@@ -1974,12 +1974,12 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommand = async (ou
1974
1974
  componentRecommendations: undefined,
1975
1975
  nextToken: undefined,
1976
1976
  };
1977
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1977
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1978
1978
  if (data.componentRecommendations !== undefined && data.componentRecommendations !== null) {
1979
1979
  contents.componentRecommendations = deserializeAws_restJson1ComponentRecommendationList(data.componentRecommendations, context);
1980
1980
  }
1981
1981
  if (data.nextToken !== undefined && data.nextToken !== null) {
1982
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
1982
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1983
1983
  }
1984
1984
  return Promise.resolve(contents);
1985
1985
  };
@@ -2015,7 +2015,7 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
2015
2015
  $fault: "client",
2016
2016
  $metadata: deserializeMetadata(output),
2017
2017
  });
2018
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2018
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2019
2019
  }
2020
2020
  };
2021
2021
  const deserializeAws_restJson1ListAppsCommand = async (output, context) => {
@@ -2027,12 +2027,12 @@ const deserializeAws_restJson1ListAppsCommand = async (output, context) => {
2027
2027
  appSummaries: undefined,
2028
2028
  nextToken: undefined,
2029
2029
  };
2030
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2030
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2031
2031
  if (data.appSummaries !== undefined && data.appSummaries !== null) {
2032
2032
  contents.appSummaries = deserializeAws_restJson1AppSummaryList(data.appSummaries, context);
2033
2033
  }
2034
2034
  if (data.nextToken !== undefined && data.nextToken !== null) {
2035
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2035
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2036
2036
  }
2037
2037
  return Promise.resolve(contents);
2038
2038
  };
@@ -2065,7 +2065,7 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
2065
2065
  $fault: "client",
2066
2066
  $metadata: deserializeMetadata(output),
2067
2067
  });
2068
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2068
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2069
2069
  }
2070
2070
  };
2071
2071
  const deserializeAws_restJson1ListAppVersionResourceMappingsCommand = async (output, context) => {
@@ -2077,9 +2077,9 @@ const deserializeAws_restJson1ListAppVersionResourceMappingsCommand = async (out
2077
2077
  nextToken: undefined,
2078
2078
  resourceMappings: undefined,
2079
2079
  };
2080
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2080
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2081
2081
  if (data.nextToken !== undefined && data.nextToken !== null) {
2082
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2082
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2083
2083
  }
2084
2084
  if (data.resourceMappings !== undefined && data.resourceMappings !== null) {
2085
2085
  contents.resourceMappings = deserializeAws_restJson1ResourceMappingList(data.resourceMappings, context);
@@ -2118,7 +2118,7 @@ const deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = async
2118
2118
  $fault: "client",
2119
2119
  $metadata: deserializeMetadata(output),
2120
2120
  });
2121
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2121
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2122
2122
  }
2123
2123
  };
2124
2124
  const deserializeAws_restJson1ListAppVersionResourcesCommand = async (output, context) => {
@@ -2131,15 +2131,15 @@ const deserializeAws_restJson1ListAppVersionResourcesCommand = async (output, co
2131
2131
  physicalResources: undefined,
2132
2132
  resolutionId: undefined,
2133
2133
  };
2134
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2134
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2135
2135
  if (data.nextToken !== undefined && data.nextToken !== null) {
2136
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2136
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2137
2137
  }
2138
2138
  if (data.physicalResources !== undefined && data.physicalResources !== null) {
2139
2139
  contents.physicalResources = deserializeAws_restJson1PhysicalResourceList(data.physicalResources, context);
2140
2140
  }
2141
2141
  if (data.resolutionId !== undefined && data.resolutionId !== null) {
2142
- contents.resolutionId = smithy_client_1.expectString(data.resolutionId);
2142
+ contents.resolutionId = (0, smithy_client_1.expectString)(data.resolutionId);
2143
2143
  }
2144
2144
  return Promise.resolve(contents);
2145
2145
  };
@@ -2178,7 +2178,7 @@ const deserializeAws_restJson1ListAppVersionResourcesCommandError = async (outpu
2178
2178
  $fault: "client",
2179
2179
  $metadata: deserializeMetadata(output),
2180
2180
  });
2181
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2181
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2182
2182
  }
2183
2183
  };
2184
2184
  const deserializeAws_restJson1ListAppVersionsCommand = async (output, context) => {
@@ -2190,12 +2190,12 @@ const deserializeAws_restJson1ListAppVersionsCommand = async (output, context) =
2190
2190
  appVersions: undefined,
2191
2191
  nextToken: undefined,
2192
2192
  };
2193
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2193
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2194
2194
  if (data.appVersions !== undefined && data.appVersions !== null) {
2195
2195
  contents.appVersions = deserializeAws_restJson1AppVersionList(data.appVersions, context);
2196
2196
  }
2197
2197
  if (data.nextToken !== undefined && data.nextToken !== null) {
2198
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2198
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2199
2199
  }
2200
2200
  return Promise.resolve(contents);
2201
2201
  };
@@ -2228,7 +2228,7 @@ const deserializeAws_restJson1ListAppVersionsCommandError = async (output, conte
2228
2228
  $fault: "client",
2229
2229
  $metadata: deserializeMetadata(output),
2230
2230
  });
2231
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2231
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2232
2232
  }
2233
2233
  };
2234
2234
  const deserializeAws_restJson1ListRecommendationTemplatesCommand = async (output, context) => {
@@ -2240,9 +2240,9 @@ const deserializeAws_restJson1ListRecommendationTemplatesCommand = async (output
2240
2240
  nextToken: undefined,
2241
2241
  recommendationTemplates: undefined,
2242
2242
  };
2243
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2243
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2244
2244
  if (data.nextToken !== undefined && data.nextToken !== null) {
2245
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2245
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2246
2246
  }
2247
2247
  if (data.recommendationTemplates !== undefined && data.recommendationTemplates !== null) {
2248
2248
  contents.recommendationTemplates = deserializeAws_restJson1RecommendationTemplateList(data.recommendationTemplates, context);
@@ -2278,7 +2278,7 @@ const deserializeAws_restJson1ListRecommendationTemplatesCommandError = async (o
2278
2278
  $fault: "client",
2279
2279
  $metadata: deserializeMetadata(output),
2280
2280
  });
2281
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2281
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2282
2282
  }
2283
2283
  };
2284
2284
  const deserializeAws_restJson1ListResiliencyPoliciesCommand = async (output, context) => {
@@ -2290,9 +2290,9 @@ const deserializeAws_restJson1ListResiliencyPoliciesCommand = async (output, con
2290
2290
  nextToken: undefined,
2291
2291
  resiliencyPolicies: undefined,
2292
2292
  };
2293
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2293
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2294
2294
  if (data.nextToken !== undefined && data.nextToken !== null) {
2295
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2295
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2296
2296
  }
2297
2297
  if (data.resiliencyPolicies !== undefined && data.resiliencyPolicies !== null) {
2298
2298
  contents.resiliencyPolicies = deserializeAws_restJson1ResiliencyPolicies(data.resiliencyPolicies, context);
@@ -2331,7 +2331,7 @@ const deserializeAws_restJson1ListResiliencyPoliciesCommandError = async (output
2331
2331
  $fault: "client",
2332
2332
  $metadata: deserializeMetadata(output),
2333
2333
  });
2334
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2334
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2335
2335
  }
2336
2336
  };
2337
2337
  const deserializeAws_restJson1ListSopRecommendationsCommand = async (output, context) => {
@@ -2343,9 +2343,9 @@ const deserializeAws_restJson1ListSopRecommendationsCommand = async (output, con
2343
2343
  nextToken: undefined,
2344
2344
  sopRecommendations: undefined,
2345
2345
  };
2346
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2346
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2347
2347
  if (data.nextToken !== undefined && data.nextToken !== null) {
2348
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2348
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2349
2349
  }
2350
2350
  if (data.sopRecommendations !== undefined && data.sopRecommendations !== null) {
2351
2351
  contents.sopRecommendations = deserializeAws_restJson1SopRecommendationList(data.sopRecommendations, context);
@@ -2387,7 +2387,7 @@ const deserializeAws_restJson1ListSopRecommendationsCommandError = async (output
2387
2387
  $fault: "client",
2388
2388
  $metadata: deserializeMetadata(output),
2389
2389
  });
2390
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2390
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2391
2391
  }
2392
2392
  };
2393
2393
  const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = async (output, context) => {
@@ -2399,9 +2399,9 @@ const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = async (ou
2399
2399
  nextToken: undefined,
2400
2400
  resiliencyPolicies: undefined,
2401
2401
  };
2402
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2402
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2403
2403
  if (data.nextToken !== undefined && data.nextToken !== null) {
2404
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2404
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2405
2405
  }
2406
2406
  if (data.resiliencyPolicies !== undefined && data.resiliencyPolicies !== null) {
2407
2407
  contents.resiliencyPolicies = deserializeAws_restJson1ResiliencyPolicies(data.resiliencyPolicies, context);
@@ -2440,7 +2440,7 @@ const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = asyn
2440
2440
  $fault: "client",
2441
2441
  $metadata: deserializeMetadata(output),
2442
2442
  });
2443
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2443
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2444
2444
  }
2445
2445
  };
2446
2446
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -2451,7 +2451,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
2451
2451
  $metadata: deserializeMetadata(output),
2452
2452
  tags: undefined,
2453
2453
  };
2454
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2454
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2455
2455
  if (data.tags !== undefined && data.tags !== null) {
2456
2456
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
2457
2457
  }
@@ -2489,7 +2489,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
2489
2489
  $fault: "client",
2490
2490
  $metadata: deserializeMetadata(output),
2491
2491
  });
2492
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2492
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2493
2493
  }
2494
2494
  };
2495
2495
  const deserializeAws_restJson1ListTestRecommendationsCommand = async (output, context) => {
@@ -2501,9 +2501,9 @@ const deserializeAws_restJson1ListTestRecommendationsCommand = async (output, co
2501
2501
  nextToken: undefined,
2502
2502
  testRecommendations: undefined,
2503
2503
  };
2504
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2504
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2505
2505
  if (data.nextToken !== undefined && data.nextToken !== null) {
2506
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2506
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2507
2507
  }
2508
2508
  if (data.testRecommendations !== undefined && data.testRecommendations !== null) {
2509
2509
  contents.testRecommendations = deserializeAws_restJson1TestRecommendationList(data.testRecommendations, context);
@@ -2545,7 +2545,7 @@ const deserializeAws_restJson1ListTestRecommendationsCommandError = async (outpu
2545
2545
  $fault: "client",
2546
2546
  $metadata: deserializeMetadata(output),
2547
2547
  });
2548
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2548
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2549
2549
  }
2550
2550
  };
2551
2551
  const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = async (output, context) => {
@@ -2558,12 +2558,12 @@ const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = async
2558
2558
  resolutionId: undefined,
2559
2559
  unsupportedResources: undefined,
2560
2560
  };
2561
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2561
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2562
2562
  if (data.nextToken !== undefined && data.nextToken !== null) {
2563
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
2563
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2564
2564
  }
2565
2565
  if (data.resolutionId !== undefined && data.resolutionId !== null) {
2566
- contents.resolutionId = smithy_client_1.expectString(data.resolutionId);
2566
+ contents.resolutionId = (0, smithy_client_1.expectString)(data.resolutionId);
2567
2567
  }
2568
2568
  if (data.unsupportedResources !== undefined && data.unsupportedResources !== null) {
2569
2569
  contents.unsupportedResources = deserializeAws_restJson1UnsupportedResourceList(data.unsupportedResources, context);
@@ -2605,7 +2605,7 @@ const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = a
2605
2605
  $fault: "client",
2606
2606
  $metadata: deserializeMetadata(output),
2607
2607
  });
2608
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2608
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2609
2609
  }
2610
2610
  };
2611
2611
  const deserializeAws_restJson1PublishAppVersionCommand = async (output, context) => {
@@ -2617,12 +2617,12 @@ const deserializeAws_restJson1PublishAppVersionCommand = async (output, context)
2617
2617
  appArn: undefined,
2618
2618
  appVersion: undefined,
2619
2619
  };
2620
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2620
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2621
2621
  if (data.appArn !== undefined && data.appArn !== null) {
2622
- contents.appArn = smithy_client_1.expectString(data.appArn);
2622
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
2623
2623
  }
2624
2624
  if (data.appVersion !== undefined && data.appVersion !== null) {
2625
- contents.appVersion = smithy_client_1.expectString(data.appVersion);
2625
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
2626
2626
  }
2627
2627
  return Promise.resolve(contents);
2628
2628
  };
@@ -2661,7 +2661,7 @@ const deserializeAws_restJson1PublishAppVersionCommandError = async (output, con
2661
2661
  $fault: "client",
2662
2662
  $metadata: deserializeMetadata(output),
2663
2663
  });
2664
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2664
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2665
2665
  }
2666
2666
  };
2667
2667
  const deserializeAws_restJson1PutDraftAppVersionTemplateCommand = async (output, context) => {
@@ -2673,12 +2673,12 @@ const deserializeAws_restJson1PutDraftAppVersionTemplateCommand = async (output,
2673
2673
  appArn: undefined,
2674
2674
  appVersion: undefined,
2675
2675
  };
2676
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2676
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2677
2677
  if (data.appArn !== undefined && data.appArn !== null) {
2678
- contents.appArn = smithy_client_1.expectString(data.appArn);
2678
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
2679
2679
  }
2680
2680
  if (data.appVersion !== undefined && data.appVersion !== null) {
2681
- contents.appVersion = smithy_client_1.expectString(data.appVersion);
2681
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
2682
2682
  }
2683
2683
  return Promise.resolve(contents);
2684
2684
  };
@@ -2717,7 +2717,7 @@ const deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = async (ou
2717
2717
  $fault: "client",
2718
2718
  $metadata: deserializeMetadata(output),
2719
2719
  });
2720
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2720
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2721
2721
  }
2722
2722
  };
2723
2723
  const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = async (output, context) => {
@@ -2729,12 +2729,12 @@ const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = asy
2729
2729
  appArn: undefined,
2730
2730
  appVersion: undefined,
2731
2731
  };
2732
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2732
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2733
2733
  if (data.appArn !== undefined && data.appArn !== null) {
2734
- contents.appArn = smithy_client_1.expectString(data.appArn);
2734
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
2735
2735
  }
2736
2736
  if (data.appVersion !== undefined && data.appVersion !== null) {
2737
- contents.appVersion = smithy_client_1.expectString(data.appVersion);
2737
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
2738
2738
  }
2739
2739
  return Promise.resolve(contents);
2740
2740
  };
@@ -2773,7 +2773,7 @@ const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError
2773
2773
  $fault: "client",
2774
2774
  $metadata: deserializeMetadata(output),
2775
2775
  });
2776
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2776
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2777
2777
  }
2778
2778
  };
2779
2779
  const deserializeAws_restJson1ResolveAppVersionResourcesCommand = async (output, context) => {
@@ -2787,18 +2787,18 @@ const deserializeAws_restJson1ResolveAppVersionResourcesCommand = async (output,
2787
2787
  resolutionId: undefined,
2788
2788
  status: undefined,
2789
2789
  };
2790
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2790
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2791
2791
  if (data.appArn !== undefined && data.appArn !== null) {
2792
- contents.appArn = smithy_client_1.expectString(data.appArn);
2792
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
2793
2793
  }
2794
2794
  if (data.appVersion !== undefined && data.appVersion !== null) {
2795
- contents.appVersion = smithy_client_1.expectString(data.appVersion);
2795
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
2796
2796
  }
2797
2797
  if (data.resolutionId !== undefined && data.resolutionId !== null) {
2798
- contents.resolutionId = smithy_client_1.expectString(data.resolutionId);
2798
+ contents.resolutionId = (0, smithy_client_1.expectString)(data.resolutionId);
2799
2799
  }
2800
2800
  if (data.status !== undefined && data.status !== null) {
2801
- contents.status = smithy_client_1.expectString(data.status);
2801
+ contents.status = (0, smithy_client_1.expectString)(data.status);
2802
2802
  }
2803
2803
  return Promise.resolve(contents);
2804
2804
  };
@@ -2837,7 +2837,7 @@ const deserializeAws_restJson1ResolveAppVersionResourcesCommandError = async (ou
2837
2837
  $fault: "client",
2838
2838
  $metadata: deserializeMetadata(output),
2839
2839
  });
2840
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2840
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2841
2841
  }
2842
2842
  };
2843
2843
  const deserializeAws_restJson1StartAppAssessmentCommand = async (output, context) => {
@@ -2848,7 +2848,7 @@ const deserializeAws_restJson1StartAppAssessmentCommand = async (output, context
2848
2848
  $metadata: deserializeMetadata(output),
2849
2849
  assessment: undefined,
2850
2850
  };
2851
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2851
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2852
2852
  if (data.assessment !== undefined && data.assessment !== null) {
2853
2853
  contents.assessment = deserializeAws_restJson1AppAssessment(data.assessment, context);
2854
2854
  }
@@ -2892,7 +2892,7 @@ const deserializeAws_restJson1StartAppAssessmentCommandError = async (output, co
2892
2892
  $fault: "client",
2893
2893
  $metadata: deserializeMetadata(output),
2894
2894
  });
2895
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2895
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2896
2896
  }
2897
2897
  };
2898
2898
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -2937,7 +2937,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2937
2937
  $fault: "client",
2938
2938
  $metadata: deserializeMetadata(output),
2939
2939
  });
2940
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2940
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2941
2941
  }
2942
2942
  };
2943
2943
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -2982,7 +2982,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2982
2982
  $fault: "client",
2983
2983
  $metadata: deserializeMetadata(output),
2984
2984
  });
2985
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2985
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2986
2986
  }
2987
2987
  };
2988
2988
  const deserializeAws_restJson1UpdateAppCommand = async (output, context) => {
@@ -2993,7 +2993,7 @@ const deserializeAws_restJson1UpdateAppCommand = async (output, context) => {
2993
2993
  $metadata: deserializeMetadata(output),
2994
2994
  app: undefined,
2995
2995
  };
2996
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2996
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2997
2997
  if (data.app !== undefined && data.app !== null) {
2998
2998
  contents.app = deserializeAws_restJson1App(data.app, context);
2999
2999
  }
@@ -3034,7 +3034,7 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
3034
3034
  $fault: "client",
3035
3035
  $metadata: deserializeMetadata(output),
3036
3036
  });
3037
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3037
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3038
3038
  }
3039
3039
  };
3040
3040
  const deserializeAws_restJson1UpdateResiliencyPolicyCommand = async (output, context) => {
@@ -3045,7 +3045,7 @@ const deserializeAws_restJson1UpdateResiliencyPolicyCommand = async (output, con
3045
3045
  $metadata: deserializeMetadata(output),
3046
3046
  policy: undefined,
3047
3047
  };
3048
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3048
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3049
3049
  if (data.policy !== undefined && data.policy !== null) {
3050
3050
  contents.policy = deserializeAws_restJson1ResiliencyPolicy(data.policy, context);
3051
3051
  }
@@ -3086,107 +3086,107 @@ const deserializeAws_restJson1UpdateResiliencyPolicyCommandError = async (output
3086
3086
  $fault: "client",
3087
3087
  $metadata: deserializeMetadata(output),
3088
3088
  });
3089
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3089
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3090
3090
  }
3091
3091
  };
3092
3092
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
3093
3093
  const contents = {};
3094
3094
  const data = parsedOutput.body;
3095
3095
  if (data.message !== undefined && data.message !== null) {
3096
- contents.message = smithy_client_1.expectString(data.message);
3096
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3097
3097
  }
3098
3098
  const exception = new models_0_1.AccessDeniedException({
3099
3099
  $metadata: deserializeMetadata(parsedOutput),
3100
3100
  ...contents,
3101
3101
  });
3102
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3102
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3103
3103
  };
3104
3104
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
3105
3105
  const contents = {};
3106
3106
  const data = parsedOutput.body;
3107
3107
  if (data.message !== undefined && data.message !== null) {
3108
- contents.message = smithy_client_1.expectString(data.message);
3108
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3109
3109
  }
3110
3110
  if (data.resourceId !== undefined && data.resourceId !== null) {
3111
- contents.resourceId = smithy_client_1.expectString(data.resourceId);
3111
+ contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
3112
3112
  }
3113
3113
  if (data.resourceType !== undefined && data.resourceType !== null) {
3114
- contents.resourceType = smithy_client_1.expectString(data.resourceType);
3114
+ contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
3115
3115
  }
3116
3116
  const exception = new models_0_1.ConflictException({
3117
3117
  $metadata: deserializeMetadata(parsedOutput),
3118
3118
  ...contents,
3119
3119
  });
3120
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3120
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3121
3121
  };
3122
3122
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
3123
3123
  const contents = {};
3124
3124
  const data = parsedOutput.body;
3125
3125
  if (data.message !== undefined && data.message !== null) {
3126
- contents.message = smithy_client_1.expectString(data.message);
3126
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3127
3127
  }
3128
3128
  const exception = new models_0_1.InternalServerException({
3129
3129
  $metadata: deserializeMetadata(parsedOutput),
3130
3130
  ...contents,
3131
3131
  });
3132
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3132
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3133
3133
  };
3134
3134
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
3135
3135
  const contents = {};
3136
3136
  const data = parsedOutput.body;
3137
3137
  if (data.message !== undefined && data.message !== null) {
3138
- contents.message = smithy_client_1.expectString(data.message);
3138
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3139
3139
  }
3140
3140
  if (data.resourceId !== undefined && data.resourceId !== null) {
3141
- contents.resourceId = smithy_client_1.expectString(data.resourceId);
3141
+ contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
3142
3142
  }
3143
3143
  if (data.resourceType !== undefined && data.resourceType !== null) {
3144
- contents.resourceType = smithy_client_1.expectString(data.resourceType);
3144
+ contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
3145
3145
  }
3146
3146
  const exception = new models_0_1.ResourceNotFoundException({
3147
3147
  $metadata: deserializeMetadata(parsedOutput),
3148
3148
  ...contents,
3149
3149
  });
3150
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3150
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3151
3151
  };
3152
3152
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
3153
3153
  const contents = {};
3154
3154
  const data = parsedOutput.body;
3155
3155
  if (data.message !== undefined && data.message !== null) {
3156
- contents.message = smithy_client_1.expectString(data.message);
3156
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3157
3157
  }
3158
3158
  const exception = new models_0_1.ServiceQuotaExceededException({
3159
3159
  $metadata: deserializeMetadata(parsedOutput),
3160
3160
  ...contents,
3161
3161
  });
3162
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3162
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3163
3163
  };
3164
3164
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
3165
3165
  const contents = {};
3166
3166
  const data = parsedOutput.body;
3167
3167
  if (data.message !== undefined && data.message !== null) {
3168
- contents.message = smithy_client_1.expectString(data.message);
3168
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3169
3169
  }
3170
3170
  if (data.retryAfterSeconds !== undefined && data.retryAfterSeconds !== null) {
3171
- contents.retryAfterSeconds = smithy_client_1.expectInt32(data.retryAfterSeconds);
3171
+ contents.retryAfterSeconds = (0, smithy_client_1.expectInt32)(data.retryAfterSeconds);
3172
3172
  }
3173
3173
  const exception = new models_0_1.ThrottlingException({
3174
3174
  $metadata: deserializeMetadata(parsedOutput),
3175
3175
  ...contents,
3176
3176
  });
3177
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3177
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3178
3178
  };
3179
3179
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
3180
3180
  const contents = {};
3181
3181
  const data = parsedOutput.body;
3182
3182
  if (data.message !== undefined && data.message !== null) {
3183
- contents.message = smithy_client_1.expectString(data.message);
3183
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3184
3184
  }
3185
3185
  const exception = new models_0_1.ValidationException({
3186
3186
  $metadata: deserializeMetadata(parsedOutput),
3187
3187
  ...contents,
3188
3188
  });
3189
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3189
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3190
3190
  };
3191
3191
  const serializeAws_restJson1ArnList = (input, context) => {
3192
3192
  return input
@@ -3302,16 +3302,16 @@ const serializeAws_restJson1TagMap = (input, context) => {
3302
3302
  };
3303
3303
  const deserializeAws_restJson1AlarmRecommendation = (output, context) => {
3304
3304
  return {
3305
- appComponentName: smithy_client_1.expectString(output.appComponentName),
3306
- description: smithy_client_1.expectString(output.description),
3305
+ appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
3306
+ description: (0, smithy_client_1.expectString)(output.description),
3307
3307
  items: output.items !== undefined && output.items !== null
3308
3308
  ? deserializeAws_restJson1RecommendationItemList(output.items, context)
3309
3309
  : undefined,
3310
- name: smithy_client_1.expectString(output.name),
3311
- prerequisite: smithy_client_1.expectString(output.prerequisite),
3312
- recommendationId: smithy_client_1.expectString(output.recommendationId),
3313
- referenceId: smithy_client_1.expectString(output.referenceId),
3314
- type: smithy_client_1.expectString(output.type),
3310
+ name: (0, smithy_client_1.expectString)(output.name),
3311
+ prerequisite: (0, smithy_client_1.expectString)(output.prerequisite),
3312
+ recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
3313
+ referenceId: (0, smithy_client_1.expectString)(output.referenceId),
3314
+ type: (0, smithy_client_1.expectString)(output.type),
3315
3315
  };
3316
3316
  };
3317
3317
  const deserializeAws_restJson1AlarmRecommendationList = (output, context) => {
@@ -3327,22 +3327,22 @@ const deserializeAws_restJson1AlarmRecommendationList = (output, context) => {
3327
3327
  };
3328
3328
  const deserializeAws_restJson1App = (output, context) => {
3329
3329
  return {
3330
- appArn: smithy_client_1.expectString(output.appArn),
3331
- complianceStatus: smithy_client_1.expectString(output.complianceStatus),
3330
+ appArn: (0, smithy_client_1.expectString)(output.appArn),
3331
+ complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
3332
3332
  creationTime: output.creationTime !== undefined && output.creationTime !== null
3333
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
3333
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3334
3334
  : undefined,
3335
- description: smithy_client_1.expectString(output.description),
3335
+ description: (0, smithy_client_1.expectString)(output.description),
3336
3336
  lastAppComplianceEvaluationTime: output.lastAppComplianceEvaluationTime !== undefined && output.lastAppComplianceEvaluationTime !== null
3337
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastAppComplianceEvaluationTime)))
3337
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastAppComplianceEvaluationTime)))
3338
3338
  : undefined,
3339
3339
  lastResiliencyScoreEvaluationTime: output.lastResiliencyScoreEvaluationTime !== undefined && output.lastResiliencyScoreEvaluationTime !== null
3340
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastResiliencyScoreEvaluationTime)))
3340
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastResiliencyScoreEvaluationTime)))
3341
3341
  : undefined,
3342
- name: smithy_client_1.expectString(output.name),
3343
- policyArn: smithy_client_1.expectString(output.policyArn),
3344
- resiliencyScore: smithy_client_1.limitedParseDouble(output.resiliencyScore),
3345
- status: smithy_client_1.expectString(output.status),
3342
+ name: (0, smithy_client_1.expectString)(output.name),
3343
+ policyArn: (0, smithy_client_1.expectString)(output.policyArn),
3344
+ resiliencyScore: (0, smithy_client_1.limitedParseDouble)(output.resiliencyScore),
3345
+ status: (0, smithy_client_1.expectString)(output.status),
3346
3346
  tags: output.tags !== undefined && output.tags !== null
3347
3347
  ? deserializeAws_restJson1TagMap(output.tags, context)
3348
3348
  : undefined,
@@ -3350,23 +3350,23 @@ const deserializeAws_restJson1App = (output, context) => {
3350
3350
  };
3351
3351
  const deserializeAws_restJson1AppAssessment = (output, context) => {
3352
3352
  return {
3353
- appArn: smithy_client_1.expectString(output.appArn),
3354
- appVersion: smithy_client_1.expectString(output.appVersion),
3355
- assessmentArn: smithy_client_1.expectString(output.assessmentArn),
3356
- assessmentName: smithy_client_1.expectString(output.assessmentName),
3357
- assessmentStatus: smithy_client_1.expectString(output.assessmentStatus),
3353
+ appArn: (0, smithy_client_1.expectString)(output.appArn),
3354
+ appVersion: (0, smithy_client_1.expectString)(output.appVersion),
3355
+ assessmentArn: (0, smithy_client_1.expectString)(output.assessmentArn),
3356
+ assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
3357
+ assessmentStatus: (0, smithy_client_1.expectString)(output.assessmentStatus),
3358
3358
  compliance: output.compliance !== undefined && output.compliance !== null
3359
3359
  ? deserializeAws_restJson1AssessmentCompliance(output.compliance, context)
3360
3360
  : undefined,
3361
- complianceStatus: smithy_client_1.expectString(output.complianceStatus),
3361
+ complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
3362
3362
  cost: output.cost !== undefined && output.cost !== null
3363
3363
  ? deserializeAws_restJson1Cost(output.cost, context)
3364
3364
  : undefined,
3365
3365
  endTime: output.endTime !== undefined && output.endTime !== null
3366
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
3366
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
3367
3367
  : undefined,
3368
- invoker: smithy_client_1.expectString(output.invoker),
3369
- message: smithy_client_1.expectString(output.message),
3368
+ invoker: (0, smithy_client_1.expectString)(output.invoker),
3369
+ message: (0, smithy_client_1.expectString)(output.message),
3370
3370
  policy: output.policy !== undefined && output.policy !== null
3371
3371
  ? deserializeAws_restJson1ResiliencyPolicy(output.policy, context)
3372
3372
  : undefined,
@@ -3374,7 +3374,7 @@ const deserializeAws_restJson1AppAssessment = (output, context) => {
3374
3374
  ? deserializeAws_restJson1ResiliencyScore(output.resiliencyScore, context)
3375
3375
  : undefined,
3376
3376
  startTime: output.startTime !== undefined && output.startTime !== null
3377
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
3377
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
3378
3378
  : undefined,
3379
3379
  tags: output.tags !== undefined && output.tags !== null
3380
3380
  ? deserializeAws_restJson1TagMap(output.tags, context)
@@ -3383,23 +3383,23 @@ const deserializeAws_restJson1AppAssessment = (output, context) => {
3383
3383
  };
3384
3384
  const deserializeAws_restJson1AppAssessmentSummary = (output, context) => {
3385
3385
  return {
3386
- appArn: smithy_client_1.expectString(output.appArn),
3387
- appVersion: smithy_client_1.expectString(output.appVersion),
3388
- assessmentArn: smithy_client_1.expectString(output.assessmentArn),
3389
- assessmentName: smithy_client_1.expectString(output.assessmentName),
3390
- assessmentStatus: smithy_client_1.expectString(output.assessmentStatus),
3391
- complianceStatus: smithy_client_1.expectString(output.complianceStatus),
3386
+ appArn: (0, smithy_client_1.expectString)(output.appArn),
3387
+ appVersion: (0, smithy_client_1.expectString)(output.appVersion),
3388
+ assessmentArn: (0, smithy_client_1.expectString)(output.assessmentArn),
3389
+ assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
3390
+ assessmentStatus: (0, smithy_client_1.expectString)(output.assessmentStatus),
3391
+ complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
3392
3392
  cost: output.cost !== undefined && output.cost !== null
3393
3393
  ? deserializeAws_restJson1Cost(output.cost, context)
3394
3394
  : undefined,
3395
3395
  endTime: output.endTime !== undefined && output.endTime !== null
3396
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
3396
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
3397
3397
  : undefined,
3398
- invoker: smithy_client_1.expectString(output.invoker),
3399
- message: smithy_client_1.expectString(output.message),
3400
- resiliencyScore: smithy_client_1.limitedParseDouble(output.resiliencyScore),
3398
+ invoker: (0, smithy_client_1.expectString)(output.invoker),
3399
+ message: (0, smithy_client_1.expectString)(output.message),
3400
+ resiliencyScore: (0, smithy_client_1.limitedParseDouble)(output.resiliencyScore),
3401
3401
  startTime: output.startTime !== undefined && output.startTime !== null
3402
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
3402
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
3403
3403
  : undefined,
3404
3404
  };
3405
3405
  };
@@ -3416,24 +3416,24 @@ const deserializeAws_restJson1AppAssessmentSummaryList = (output, context) => {
3416
3416
  };
3417
3417
  const deserializeAws_restJson1AppComponent = (output, context) => {
3418
3418
  return {
3419
- name: smithy_client_1.expectString(output.name),
3420
- type: smithy_client_1.expectString(output.type),
3419
+ name: (0, smithy_client_1.expectString)(output.name),
3420
+ type: (0, smithy_client_1.expectString)(output.type),
3421
3421
  };
3422
3422
  };
3423
3423
  const deserializeAws_restJson1AppComponentCompliance = (output, context) => {
3424
3424
  return {
3425
- appComponentName: smithy_client_1.expectString(output.appComponentName),
3425
+ appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
3426
3426
  compliance: output.compliance !== undefined && output.compliance !== null
3427
3427
  ? deserializeAws_restJson1AssessmentCompliance(output.compliance, context)
3428
3428
  : undefined,
3429
3429
  cost: output.cost !== undefined && output.cost !== null
3430
3430
  ? deserializeAws_restJson1Cost(output.cost, context)
3431
3431
  : undefined,
3432
- message: smithy_client_1.expectString(output.message),
3432
+ message: (0, smithy_client_1.expectString)(output.message),
3433
3433
  resiliencyScore: output.resiliencyScore !== undefined && output.resiliencyScore !== null
3434
3434
  ? deserializeAws_restJson1ResiliencyScore(output.resiliencyScore, context)
3435
3435
  : undefined,
3436
- status: smithy_client_1.expectString(output.status),
3436
+ status: (0, smithy_client_1.expectString)(output.status),
3437
3437
  };
3438
3438
  };
3439
3439
  const deserializeAws_restJson1AppComponentList = (output, context) => {
@@ -3449,14 +3449,14 @@ const deserializeAws_restJson1AppComponentList = (output, context) => {
3449
3449
  };
3450
3450
  const deserializeAws_restJson1AppSummary = (output, context) => {
3451
3451
  return {
3452
- appArn: smithy_client_1.expectString(output.appArn),
3453
- complianceStatus: smithy_client_1.expectString(output.complianceStatus),
3452
+ appArn: (0, smithy_client_1.expectString)(output.appArn),
3453
+ complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
3454
3454
  creationTime: output.creationTime !== undefined && output.creationTime !== null
3455
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
3455
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3456
3456
  : undefined,
3457
- description: smithy_client_1.expectString(output.description),
3458
- name: smithy_client_1.expectString(output.name),
3459
- resiliencyScore: smithy_client_1.limitedParseDouble(output.resiliencyScore),
3457
+ description: (0, smithy_client_1.expectString)(output.description),
3458
+ name: (0, smithy_client_1.expectString)(output.name),
3459
+ resiliencyScore: (0, smithy_client_1.limitedParseDouble)(output.resiliencyScore),
3460
3460
  };
3461
3461
  };
3462
3462
  const deserializeAws_restJson1AppSummaryList = (output, context) => {
@@ -3483,7 +3483,7 @@ const deserializeAws_restJson1AppVersionList = (output, context) => {
3483
3483
  };
3484
3484
  const deserializeAws_restJson1AppVersionSummary = (output, context) => {
3485
3485
  return {
3486
- appVersion: smithy_client_1.expectString(output.appVersion),
3486
+ appVersion: (0, smithy_client_1.expectString)(output.appVersion),
3487
3487
  };
3488
3488
  };
3489
3489
  const deserializeAws_restJson1ArnList = (output, context) => {
@@ -3493,7 +3493,7 @@ const deserializeAws_restJson1ArnList = (output, context) => {
3493
3493
  if (entry === null) {
3494
3494
  return null;
3495
3495
  }
3496
- return smithy_client_1.expectString(entry);
3496
+ return (0, smithy_client_1.expectString)(entry);
3497
3497
  });
3498
3498
  return retVal;
3499
3499
  };
@@ -3521,11 +3521,11 @@ const deserializeAws_restJson1ComponentCompliancesList = (output, context) => {
3521
3521
  };
3522
3522
  const deserializeAws_restJson1ComponentRecommendation = (output, context) => {
3523
3523
  return {
3524
- appComponentName: smithy_client_1.expectString(output.appComponentName),
3524
+ appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
3525
3525
  configRecommendations: output.configRecommendations !== undefined && output.configRecommendations !== null
3526
3526
  ? deserializeAws_restJson1ConfigRecommendationList(output.configRecommendations, context)
3527
3527
  : undefined,
3528
- recommendationStatus: smithy_client_1.expectString(output.recommendationStatus),
3528
+ recommendationStatus: (0, smithy_client_1.expectString)(output.recommendationStatus),
3529
3529
  };
3530
3530
  };
3531
3531
  const deserializeAws_restJson1ComponentRecommendationList = (output, context) => {
@@ -3541,21 +3541,21 @@ const deserializeAws_restJson1ComponentRecommendationList = (output, context) =>
3541
3541
  };
3542
3542
  const deserializeAws_restJson1ConfigRecommendation = (output, context) => {
3543
3543
  return {
3544
- appComponentName: smithy_client_1.expectString(output.appComponentName),
3544
+ appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
3545
3545
  compliance: output.compliance !== undefined && output.compliance !== null
3546
3546
  ? deserializeAws_restJson1AssessmentCompliance(output.compliance, context)
3547
3547
  : undefined,
3548
3548
  cost: output.cost !== undefined && output.cost !== null
3549
3549
  ? deserializeAws_restJson1Cost(output.cost, context)
3550
3550
  : undefined,
3551
- description: smithy_client_1.expectString(output.description),
3552
- haArchitecture: smithy_client_1.expectString(output.haArchitecture),
3553
- name: smithy_client_1.expectString(output.name),
3554
- optimizationType: smithy_client_1.expectString(output.optimizationType),
3551
+ description: (0, smithy_client_1.expectString)(output.description),
3552
+ haArchitecture: (0, smithy_client_1.expectString)(output.haArchitecture),
3553
+ name: (0, smithy_client_1.expectString)(output.name),
3554
+ optimizationType: (0, smithy_client_1.expectString)(output.optimizationType),
3555
3555
  recommendationCompliance: output.recommendationCompliance !== undefined && output.recommendationCompliance !== null
3556
3556
  ? deserializeAws_restJson1RecommendationCompliance(output.recommendationCompliance, context)
3557
3557
  : undefined,
3558
- referenceId: smithy_client_1.expectString(output.referenceId),
3558
+ referenceId: (0, smithy_client_1.expectString)(output.referenceId),
3559
3559
  suggestedChanges: output.suggestedChanges !== undefined && output.suggestedChanges !== null
3560
3560
  ? deserializeAws_restJson1SuggestedChangesList(output.suggestedChanges, context)
3561
3561
  : undefined,
@@ -3574,23 +3574,23 @@ const deserializeAws_restJson1ConfigRecommendationList = (output, context) => {
3574
3574
  };
3575
3575
  const deserializeAws_restJson1Cost = (output, context) => {
3576
3576
  return {
3577
- amount: smithy_client_1.limitedParseDouble(output.amount),
3578
- currency: smithy_client_1.expectString(output.currency),
3579
- frequency: smithy_client_1.expectString(output.frequency),
3577
+ amount: (0, smithy_client_1.limitedParseDouble)(output.amount),
3578
+ currency: (0, smithy_client_1.expectString)(output.currency),
3579
+ frequency: (0, smithy_client_1.expectString)(output.frequency),
3580
3580
  };
3581
3581
  };
3582
3582
  const deserializeAws_restJson1DisruptionCompliance = (output, context) => {
3583
3583
  return {
3584
- achievableRpoInSecs: smithy_client_1.expectInt32(output.achievableRpoInSecs),
3585
- achievableRtoInSecs: smithy_client_1.expectInt32(output.achievableRtoInSecs),
3586
- complianceStatus: smithy_client_1.expectString(output.complianceStatus),
3587
- currentRpoInSecs: smithy_client_1.expectInt32(output.currentRpoInSecs),
3588
- currentRtoInSecs: smithy_client_1.expectInt32(output.currentRtoInSecs),
3589
- message: smithy_client_1.expectString(output.message),
3590
- rpoDescription: smithy_client_1.expectString(output.rpoDescription),
3591
- rpoReferenceId: smithy_client_1.expectString(output.rpoReferenceId),
3592
- rtoDescription: smithy_client_1.expectString(output.rtoDescription),
3593
- rtoReferenceId: smithy_client_1.expectString(output.rtoReferenceId),
3584
+ achievableRpoInSecs: (0, smithy_client_1.expectInt32)(output.achievableRpoInSecs),
3585
+ achievableRtoInSecs: (0, smithy_client_1.expectInt32)(output.achievableRtoInSecs),
3586
+ complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
3587
+ currentRpoInSecs: (0, smithy_client_1.expectInt32)(output.currentRpoInSecs),
3588
+ currentRtoInSecs: (0, smithy_client_1.expectInt32)(output.currentRtoInSecs),
3589
+ message: (0, smithy_client_1.expectString)(output.message),
3590
+ rpoDescription: (0, smithy_client_1.expectString)(output.rpoDescription),
3591
+ rpoReferenceId: (0, smithy_client_1.expectString)(output.rpoReferenceId),
3592
+ rtoDescription: (0, smithy_client_1.expectString)(output.rtoDescription),
3593
+ rtoReferenceId: (0, smithy_client_1.expectString)(output.rtoReferenceId),
3594
3594
  };
3595
3595
  };
3596
3596
  const deserializeAws_restJson1DisruptionPolicy = (output, context) => {
@@ -3611,21 +3611,21 @@ const deserializeAws_restJson1DisruptionResiliencyScore = (output, context) => {
3611
3611
  }
3612
3612
  return {
3613
3613
  ...acc,
3614
- [key]: smithy_client_1.limitedParseDouble(value),
3614
+ [key]: (0, smithy_client_1.limitedParseDouble)(value),
3615
3615
  };
3616
3616
  }, {});
3617
3617
  };
3618
3618
  const deserializeAws_restJson1FailurePolicy = (output, context) => {
3619
3619
  return {
3620
- rpoInSecs: smithy_client_1.expectInt32(output.rpoInSecs),
3621
- rtoInSecs: smithy_client_1.expectInt32(output.rtoInSecs),
3620
+ rpoInSecs: (0, smithy_client_1.expectInt32)(output.rpoInSecs),
3621
+ rtoInSecs: (0, smithy_client_1.expectInt32)(output.rtoInSecs),
3622
3622
  };
3623
3623
  };
3624
3624
  const deserializeAws_restJson1LogicalResourceId = (output, context) => {
3625
3625
  return {
3626
- identifier: smithy_client_1.expectString(output.identifier),
3627
- logicalStackName: smithy_client_1.expectString(output.logicalStackName),
3628
- resourceGroupName: smithy_client_1.expectString(output.resourceGroupName),
3626
+ identifier: (0, smithy_client_1.expectString)(output.identifier),
3627
+ logicalStackName: (0, smithy_client_1.expectString)(output.logicalStackName),
3628
+ resourceGroupName: (0, smithy_client_1.expectString)(output.resourceGroupName),
3629
3629
  };
3630
3630
  };
3631
3631
  const deserializeAws_restJson1PhysicalResource = (output, context) => {
@@ -3639,16 +3639,16 @@ const deserializeAws_restJson1PhysicalResource = (output, context) => {
3639
3639
  physicalResourceId: output.physicalResourceId !== undefined && output.physicalResourceId !== null
3640
3640
  ? deserializeAws_restJson1PhysicalResourceId(output.physicalResourceId, context)
3641
3641
  : undefined,
3642
- resourceName: smithy_client_1.expectString(output.resourceName),
3643
- resourceType: smithy_client_1.expectString(output.resourceType),
3642
+ resourceName: (0, smithy_client_1.expectString)(output.resourceName),
3643
+ resourceType: (0, smithy_client_1.expectString)(output.resourceType),
3644
3644
  };
3645
3645
  };
3646
3646
  const deserializeAws_restJson1PhysicalResourceId = (output, context) => {
3647
3647
  return {
3648
- awsAccountId: smithy_client_1.expectString(output.awsAccountId),
3649
- awsRegion: smithy_client_1.expectString(output.awsRegion),
3650
- identifier: smithy_client_1.expectString(output.identifier),
3651
- type: smithy_client_1.expectString(output.type),
3648
+ awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
3649
+ awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
3650
+ identifier: (0, smithy_client_1.expectString)(output.identifier),
3651
+ type: (0, smithy_client_1.expectString)(output.type),
3652
3652
  };
3653
3653
  };
3654
3654
  const deserializeAws_restJson1PhysicalResourceList = (output, context) => {
@@ -3675,11 +3675,11 @@ const deserializeAws_restJson1RecommendationCompliance = (output, context) => {
3675
3675
  };
3676
3676
  const deserializeAws_restJson1RecommendationDisruptionCompliance = (output, context) => {
3677
3677
  return {
3678
- expectedComplianceStatus: smithy_client_1.expectString(output.expectedComplianceStatus),
3679
- expectedRpoDescription: smithy_client_1.expectString(output.expectedRpoDescription),
3680
- expectedRpoInSecs: smithy_client_1.expectInt32(output.expectedRpoInSecs),
3681
- expectedRtoDescription: smithy_client_1.expectString(output.expectedRtoDescription),
3682
- expectedRtoInSecs: smithy_client_1.expectInt32(output.expectedRtoInSecs),
3678
+ expectedComplianceStatus: (0, smithy_client_1.expectString)(output.expectedComplianceStatus),
3679
+ expectedRpoDescription: (0, smithy_client_1.expectString)(output.expectedRpoDescription),
3680
+ expectedRpoInSecs: (0, smithy_client_1.expectInt32)(output.expectedRpoInSecs),
3681
+ expectedRtoDescription: (0, smithy_client_1.expectString)(output.expectedRtoDescription),
3682
+ expectedRtoInSecs: (0, smithy_client_1.expectInt32)(output.expectedRtoInSecs),
3683
3683
  };
3684
3684
  };
3685
3685
  const deserializeAws_restJson1RecommendationIdList = (output, context) => {
@@ -3689,16 +3689,16 @@ const deserializeAws_restJson1RecommendationIdList = (output, context) => {
3689
3689
  if (entry === null) {
3690
3690
  return null;
3691
3691
  }
3692
- return smithy_client_1.expectString(entry);
3692
+ return (0, smithy_client_1.expectString)(entry);
3693
3693
  });
3694
3694
  return retVal;
3695
3695
  };
3696
3696
  const deserializeAws_restJson1RecommendationItem = (output, context) => {
3697
3697
  return {
3698
- alreadyImplemented: smithy_client_1.expectBoolean(output.alreadyImplemented),
3699
- resourceId: smithy_client_1.expectString(output.resourceId),
3700
- targetAccountId: smithy_client_1.expectString(output.targetAccountId),
3701
- targetRegion: smithy_client_1.expectString(output.targetRegion),
3698
+ alreadyImplemented: (0, smithy_client_1.expectBoolean)(output.alreadyImplemented),
3699
+ resourceId: (0, smithy_client_1.expectString)(output.resourceId),
3700
+ targetAccountId: (0, smithy_client_1.expectString)(output.targetAccountId),
3701
+ targetRegion: (0, smithy_client_1.expectString)(output.targetRegion),
3702
3702
  };
3703
3703
  };
3704
3704
  const deserializeAws_restJson1RecommendationItemList = (output, context) => {
@@ -3714,26 +3714,26 @@ const deserializeAws_restJson1RecommendationItemList = (output, context) => {
3714
3714
  };
3715
3715
  const deserializeAws_restJson1RecommendationTemplate = (output, context) => {
3716
3716
  return {
3717
- appArn: smithy_client_1.expectString(output.appArn),
3718
- assessmentArn: smithy_client_1.expectString(output.assessmentArn),
3717
+ appArn: (0, smithy_client_1.expectString)(output.appArn),
3718
+ assessmentArn: (0, smithy_client_1.expectString)(output.assessmentArn),
3719
3719
  endTime: output.endTime !== undefined && output.endTime !== null
3720
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
3720
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
3721
3721
  : undefined,
3722
- format: smithy_client_1.expectString(output.format),
3723
- message: smithy_client_1.expectString(output.message),
3724
- name: smithy_client_1.expectString(output.name),
3725
- needsReplacements: smithy_client_1.expectBoolean(output.needsReplacements),
3722
+ format: (0, smithy_client_1.expectString)(output.format),
3723
+ message: (0, smithy_client_1.expectString)(output.message),
3724
+ name: (0, smithy_client_1.expectString)(output.name),
3725
+ needsReplacements: (0, smithy_client_1.expectBoolean)(output.needsReplacements),
3726
3726
  recommendationIds: output.recommendationIds !== undefined && output.recommendationIds !== null
3727
3727
  ? deserializeAws_restJson1RecommendationIdList(output.recommendationIds, context)
3728
3728
  : undefined,
3729
- recommendationTemplateArn: smithy_client_1.expectString(output.recommendationTemplateArn),
3729
+ recommendationTemplateArn: (0, smithy_client_1.expectString)(output.recommendationTemplateArn),
3730
3730
  recommendationTypes: output.recommendationTypes !== undefined && output.recommendationTypes !== null
3731
3731
  ? deserializeAws_restJson1RenderRecommendationTypeList(output.recommendationTypes, context)
3732
3732
  : undefined,
3733
3733
  startTime: output.startTime !== undefined && output.startTime !== null
3734
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
3734
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
3735
3735
  : undefined,
3736
- status: smithy_client_1.expectString(output.status),
3736
+ status: (0, smithy_client_1.expectString)(output.status),
3737
3737
  tags: output.tags !== undefined && output.tags !== null
3738
3738
  ? deserializeAws_restJson1TagMap(output.tags, context)
3739
3739
  : undefined,
@@ -3760,7 +3760,7 @@ const deserializeAws_restJson1RenderRecommendationTypeList = (output, context) =
3760
3760
  if (entry === null) {
3761
3761
  return null;
3762
3762
  }
3763
- return smithy_client_1.expectString(entry);
3763
+ return (0, smithy_client_1.expectString)(entry);
3764
3764
  });
3765
3765
  return retVal;
3766
3766
  };
@@ -3778,20 +3778,20 @@ const deserializeAws_restJson1ResiliencyPolicies = (output, context) => {
3778
3778
  const deserializeAws_restJson1ResiliencyPolicy = (output, context) => {
3779
3779
  return {
3780
3780
  creationTime: output.creationTime !== undefined && output.creationTime !== null
3781
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
3781
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
3782
3782
  : undefined,
3783
- dataLocationConstraint: smithy_client_1.expectString(output.dataLocationConstraint),
3784
- estimatedCostTier: smithy_client_1.expectString(output.estimatedCostTier),
3783
+ dataLocationConstraint: (0, smithy_client_1.expectString)(output.dataLocationConstraint),
3784
+ estimatedCostTier: (0, smithy_client_1.expectString)(output.estimatedCostTier),
3785
3785
  policy: output.policy !== undefined && output.policy !== null
3786
3786
  ? deserializeAws_restJson1DisruptionPolicy(output.policy, context)
3787
3787
  : undefined,
3788
- policyArn: smithy_client_1.expectString(output.policyArn),
3789
- policyDescription: smithy_client_1.expectString(output.policyDescription),
3790
- policyName: smithy_client_1.expectString(output.policyName),
3788
+ policyArn: (0, smithy_client_1.expectString)(output.policyArn),
3789
+ policyDescription: (0, smithy_client_1.expectString)(output.policyDescription),
3790
+ policyName: (0, smithy_client_1.expectString)(output.policyName),
3791
3791
  tags: output.tags !== undefined && output.tags !== null
3792
3792
  ? deserializeAws_restJson1TagMap(output.tags, context)
3793
3793
  : undefined,
3794
- tier: smithy_client_1.expectString(output.tier),
3794
+ tier: (0, smithy_client_1.expectString)(output.tier),
3795
3795
  };
3796
3796
  };
3797
3797
  const deserializeAws_restJson1ResiliencyScore = (output, context) => {
@@ -3799,19 +3799,19 @@ const deserializeAws_restJson1ResiliencyScore = (output, context) => {
3799
3799
  disruptionScore: output.disruptionScore !== undefined && output.disruptionScore !== null
3800
3800
  ? deserializeAws_restJson1DisruptionResiliencyScore(output.disruptionScore, context)
3801
3801
  : undefined,
3802
- score: smithy_client_1.limitedParseDouble(output.score),
3802
+ score: (0, smithy_client_1.limitedParseDouble)(output.score),
3803
3803
  };
3804
3804
  };
3805
3805
  const deserializeAws_restJson1ResourceMapping = (output, context) => {
3806
3806
  return {
3807
- appRegistryAppName: smithy_client_1.expectString(output.appRegistryAppName),
3808
- logicalStackName: smithy_client_1.expectString(output.logicalStackName),
3809
- mappingType: smithy_client_1.expectString(output.mappingType),
3807
+ appRegistryAppName: (0, smithy_client_1.expectString)(output.appRegistryAppName),
3808
+ logicalStackName: (0, smithy_client_1.expectString)(output.logicalStackName),
3809
+ mappingType: (0, smithy_client_1.expectString)(output.mappingType),
3810
3810
  physicalResourceId: output.physicalResourceId !== undefined && output.physicalResourceId !== null
3811
3811
  ? deserializeAws_restJson1PhysicalResourceId(output.physicalResourceId, context)
3812
3812
  : undefined,
3813
- resourceGroupName: smithy_client_1.expectString(output.resourceGroupName),
3814
- resourceName: smithy_client_1.expectString(output.resourceName),
3813
+ resourceGroupName: (0, smithy_client_1.expectString)(output.resourceGroupName),
3814
+ resourceName: (0, smithy_client_1.expectString)(output.resourceName),
3815
3815
  };
3816
3816
  };
3817
3817
  const deserializeAws_restJson1ResourceMappingList = (output, context) => {
@@ -3827,22 +3827,22 @@ const deserializeAws_restJson1ResourceMappingList = (output, context) => {
3827
3827
  };
3828
3828
  const deserializeAws_restJson1S3Location = (output, context) => {
3829
3829
  return {
3830
- bucket: smithy_client_1.expectString(output.bucket),
3831
- prefix: smithy_client_1.expectString(output.prefix),
3830
+ bucket: (0, smithy_client_1.expectString)(output.bucket),
3831
+ prefix: (0, smithy_client_1.expectString)(output.prefix),
3832
3832
  };
3833
3833
  };
3834
3834
  const deserializeAws_restJson1SopRecommendation = (output, context) => {
3835
3835
  return {
3836
- appComponentName: smithy_client_1.expectString(output.appComponentName),
3837
- description: smithy_client_1.expectString(output.description),
3836
+ appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
3837
+ description: (0, smithy_client_1.expectString)(output.description),
3838
3838
  items: output.items !== undefined && output.items !== null
3839
3839
  ? deserializeAws_restJson1RecommendationItemList(output.items, context)
3840
3840
  : undefined,
3841
- name: smithy_client_1.expectString(output.name),
3842
- prerequisite: smithy_client_1.expectString(output.prerequisite),
3843
- recommendationId: smithy_client_1.expectString(output.recommendationId),
3844
- referenceId: smithy_client_1.expectString(output.referenceId),
3845
- serviceType: smithy_client_1.expectString(output.serviceType),
3841
+ name: (0, smithy_client_1.expectString)(output.name),
3842
+ prerequisite: (0, smithy_client_1.expectString)(output.prerequisite),
3843
+ recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
3844
+ referenceId: (0, smithy_client_1.expectString)(output.referenceId),
3845
+ serviceType: (0, smithy_client_1.expectString)(output.serviceType),
3846
3846
  };
3847
3847
  };
3848
3848
  const deserializeAws_restJson1SopRecommendationList = (output, context) => {
@@ -3863,7 +3863,7 @@ const deserializeAws_restJson1SuggestedChangesList = (output, context) => {
3863
3863
  if (entry === null) {
3864
3864
  return null;
3865
3865
  }
3866
- return smithy_client_1.expectString(entry);
3866
+ return (0, smithy_client_1.expectString)(entry);
3867
3867
  });
3868
3868
  return retVal;
3869
3869
  };
@@ -3874,24 +3874,24 @@ const deserializeAws_restJson1TagMap = (output, context) => {
3874
3874
  }
3875
3875
  return {
3876
3876
  ...acc,
3877
- [key]: smithy_client_1.expectString(value),
3877
+ [key]: (0, smithy_client_1.expectString)(value),
3878
3878
  };
3879
3879
  }, {});
3880
3880
  };
3881
3881
  const deserializeAws_restJson1TestRecommendation = (output, context) => {
3882
3882
  return {
3883
- appComponentName: smithy_client_1.expectString(output.appComponentName),
3884
- description: smithy_client_1.expectString(output.description),
3885
- intent: smithy_client_1.expectString(output.intent),
3883
+ appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
3884
+ description: (0, smithy_client_1.expectString)(output.description),
3885
+ intent: (0, smithy_client_1.expectString)(output.intent),
3886
3886
  items: output.items !== undefined && output.items !== null
3887
3887
  ? deserializeAws_restJson1RecommendationItemList(output.items, context)
3888
3888
  : undefined,
3889
- name: smithy_client_1.expectString(output.name),
3890
- prerequisite: smithy_client_1.expectString(output.prerequisite),
3891
- recommendationId: smithy_client_1.expectString(output.recommendationId),
3892
- referenceId: smithy_client_1.expectString(output.referenceId),
3893
- risk: smithy_client_1.expectString(output.risk),
3894
- type: smithy_client_1.expectString(output.type),
3889
+ name: (0, smithy_client_1.expectString)(output.name),
3890
+ prerequisite: (0, smithy_client_1.expectString)(output.prerequisite),
3891
+ recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
3892
+ referenceId: (0, smithy_client_1.expectString)(output.referenceId),
3893
+ risk: (0, smithy_client_1.expectString)(output.risk),
3894
+ type: (0, smithy_client_1.expectString)(output.type),
3895
3895
  };
3896
3896
  };
3897
3897
  const deserializeAws_restJson1TestRecommendationList = (output, context) => {
@@ -3913,7 +3913,7 @@ const deserializeAws_restJson1UnsupportedResource = (output, context) => {
3913
3913
  physicalResourceId: output.physicalResourceId !== undefined && output.physicalResourceId !== null
3914
3914
  ? deserializeAws_restJson1PhysicalResourceId(output.physicalResourceId, context)
3915
3915
  : undefined,
3916
- resourceType: smithy_client_1.expectString(output.resourceType),
3916
+ resourceType: (0, smithy_client_1.expectString)(output.resourceType),
3917
3917
  };
3918
3918
  };
3919
3919
  const deserializeAws_restJson1UnsupportedResourceList = (output, context) => {