@aws-sdk/client-resiliencehub 3.272.0 → 3.278.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 (106) hide show
  1. package/dist-cjs/Resiliencehub.js +195 -0
  2. package/dist-cjs/commands/CreateAppVersionAppComponentCommand.js +46 -0
  3. package/dist-cjs/commands/CreateAppVersionResourceCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteAppInputSourceCommand.js +46 -0
  5. package/dist-cjs/commands/DeleteAppVersionAppComponentCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteAppVersionResourceCommand.js +46 -0
  7. package/dist-cjs/commands/DescribeAppVersionAppComponentCommand.js +46 -0
  8. package/dist-cjs/commands/DescribeAppVersionCommand.js +46 -0
  9. package/dist-cjs/commands/DescribeAppVersionResourceCommand.js +46 -0
  10. package/dist-cjs/commands/ListAppInputSourcesCommand.js +46 -0
  11. package/dist-cjs/commands/ListAppVersionAppComponentsCommand.js +46 -0
  12. package/dist-cjs/commands/UpdateAppVersionAppComponentCommand.js +46 -0
  13. package/dist-cjs/commands/UpdateAppVersionCommand.js +46 -0
  14. package/dist-cjs/commands/UpdateAppVersionResourceCommand.js +46 -0
  15. package/dist-cjs/commands/index.js +13 -0
  16. package/dist-cjs/endpoint/ruleset.js +3 -3
  17. package/dist-cjs/models/models_0.js +129 -15
  18. package/dist-cjs/pagination/ListAppInputSourcesPaginator.js +36 -0
  19. package/dist-cjs/pagination/ListAppVersionAppComponentsPaginator.js +36 -0
  20. package/dist-cjs/pagination/index.js +2 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +1293 -141
  22. package/dist-es/Resiliencehub.js +195 -0
  23. package/dist-es/commands/CreateAppVersionAppComponentCommand.js +42 -0
  24. package/dist-es/commands/CreateAppVersionResourceCommand.js +42 -0
  25. package/dist-es/commands/DeleteAppInputSourceCommand.js +42 -0
  26. package/dist-es/commands/DeleteAppVersionAppComponentCommand.js +42 -0
  27. package/dist-es/commands/DeleteAppVersionResourceCommand.js +42 -0
  28. package/dist-es/commands/DescribeAppVersionAppComponentCommand.js +42 -0
  29. package/dist-es/commands/DescribeAppVersionCommand.js +42 -0
  30. package/dist-es/commands/DescribeAppVersionResourceCommand.js +42 -0
  31. package/dist-es/commands/ListAppInputSourcesCommand.js +42 -0
  32. package/dist-es/commands/ListAppVersionAppComponentsCommand.js +42 -0
  33. package/dist-es/commands/UpdateAppVersionAppComponentCommand.js +42 -0
  34. package/dist-es/commands/UpdateAppVersionCommand.js +42 -0
  35. package/dist-es/commands/UpdateAppVersionResourceCommand.js +42 -0
  36. package/dist-es/commands/index.js +13 -0
  37. package/dist-es/endpoint/ruleset.js +3 -3
  38. package/dist-es/models/models_0.js +94 -8
  39. package/dist-es/pagination/ListAppInputSourcesPaginator.js +32 -0
  40. package/dist-es/pagination/ListAppVersionAppComponentsPaginator.js +32 -0
  41. package/dist-es/pagination/index.js +2 -0
  42. package/dist-es/protocols/Aws_restJson1.js +1254 -129
  43. package/dist-types/Resiliencehub.d.ts +218 -23
  44. package/dist-types/ResiliencehubClient.d.ts +15 -2
  45. package/dist-types/commands/AddDraftAppVersionResourceMappingsCommand.d.ts +1 -1
  46. package/dist-types/commands/CreateAppCommand.d.ts +3 -3
  47. package/dist-types/commands/CreateAppVersionAppComponentCommand.d.ts +40 -0
  48. package/dist-types/commands/CreateAppVersionResourceCommand.d.ts +55 -0
  49. package/dist-types/commands/CreateRecommendationTemplateCommand.d.ts +1 -1
  50. package/dist-types/commands/DeleteAppInputSourceCommand.d.ts +37 -0
  51. package/dist-types/commands/DeleteAppVersionAppComponentCommand.d.ts +47 -0
  52. package/dist-types/commands/DeleteAppVersionResourceCommand.d.ts +50 -0
  53. package/dist-types/commands/DescribeAppVersionAppComponentCommand.d.ts +37 -0
  54. package/dist-types/commands/DescribeAppVersionCommand.d.ts +37 -0
  55. package/dist-types/commands/DescribeAppVersionResourceCommand.d.ts +57 -0
  56. package/dist-types/commands/DescribeAppVersionTemplateCommand.d.ts +1 -1
  57. package/dist-types/commands/DescribeDraftAppVersionResourcesImportStatusCommand.d.ts +7 -0
  58. package/dist-types/commands/ImportResourcesToDraftAppVersionCommand.d.ts +2 -2
  59. package/dist-types/commands/ListAlarmRecommendationsCommand.d.ts +1 -1
  60. package/dist-types/commands/ListAppComponentCompliancesCommand.d.ts +1 -1
  61. package/dist-types/commands/ListAppComponentRecommendationsCommand.d.ts +1 -1
  62. package/dist-types/commands/ListAppInputSourcesCommand.d.ts +39 -0
  63. package/dist-types/commands/ListAppVersionAppComponentsCommand.d.ts +37 -0
  64. package/dist-types/commands/ListAppVersionResourcesCommand.d.ts +1 -1
  65. package/dist-types/commands/ListAppVersionsCommand.d.ts +1 -1
  66. package/dist-types/commands/ListAppsCommand.d.ts +10 -1
  67. package/dist-types/commands/ListRecommendationTemplatesCommand.d.ts +1 -1
  68. package/dist-types/commands/ListResiliencyPoliciesCommand.d.ts +1 -1
  69. package/dist-types/commands/ListSopRecommendationsCommand.d.ts +1 -1
  70. package/dist-types/commands/ListSuggestedResiliencyPoliciesCommand.d.ts +1 -1
  71. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  72. package/dist-types/commands/ListTestRecommendationsCommand.d.ts +1 -1
  73. package/dist-types/commands/ListUnsupportedAppVersionResourcesCommand.d.ts +1 -1
  74. package/dist-types/commands/PublishAppVersionCommand.d.ts +1 -1
  75. package/dist-types/commands/PutDraftAppVersionTemplateCommand.d.ts +1 -1
  76. package/dist-types/commands/UpdateAppVersionAppComponentCommand.d.ts +40 -0
  77. package/dist-types/commands/UpdateAppVersionCommand.d.ts +42 -0
  78. package/dist-types/commands/UpdateAppVersionResourceCommand.d.ts +51 -0
  79. package/dist-types/commands/index.d.ts +13 -0
  80. package/dist-types/models/models_0.d.ts +1377 -209
  81. package/dist-types/pagination/ListAppInputSourcesPaginator.d.ts +4 -0
  82. package/dist-types/pagination/ListAppVersionAppComponentsPaginator.d.ts +4 -0
  83. package/dist-types/pagination/index.d.ts +2 -0
  84. package/dist-types/protocols/Aws_restJson1.d.ts +39 -0
  85. package/dist-types/ts3.4/Resiliencehub.d.ts +221 -0
  86. package/dist-types/ts3.4/ResiliencehubClient.d.ts +78 -0
  87. package/dist-types/ts3.4/commands/CreateAppVersionAppComponentCommand.d.ts +41 -0
  88. package/dist-types/ts3.4/commands/CreateAppVersionResourceCommand.d.ts +41 -0
  89. package/dist-types/ts3.4/commands/DeleteAppInputSourceCommand.d.ts +41 -0
  90. package/dist-types/ts3.4/commands/DeleteAppVersionAppComponentCommand.d.ts +41 -0
  91. package/dist-types/ts3.4/commands/DeleteAppVersionResourceCommand.d.ts +41 -0
  92. package/dist-types/ts3.4/commands/DescribeAppVersionAppComponentCommand.d.ts +41 -0
  93. package/dist-types/ts3.4/commands/DescribeAppVersionCommand.d.ts +38 -0
  94. package/dist-types/ts3.4/commands/DescribeAppVersionResourceCommand.d.ts +41 -0
  95. package/dist-types/ts3.4/commands/ListAppInputSourcesCommand.d.ts +38 -0
  96. package/dist-types/ts3.4/commands/ListAppVersionAppComponentsCommand.d.ts +41 -0
  97. package/dist-types/ts3.4/commands/UpdateAppVersionAppComponentCommand.d.ts +41 -0
  98. package/dist-types/ts3.4/commands/UpdateAppVersionCommand.d.ts +37 -0
  99. package/dist-types/ts3.4/commands/UpdateAppVersionResourceCommand.d.ts +41 -0
  100. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  101. package/dist-types/ts3.4/models/models_0.d.ts +278 -24
  102. package/dist-types/ts3.4/pagination/ListAppInputSourcesPaginator.d.ts +11 -0
  103. package/dist-types/ts3.4/pagination/ListAppVersionAppComponentsPaginator.d.ts +11 -0
  104. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  105. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  106. package/package.json +4 -4
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand = exports.deserializeAws_restJson1DescribeAppAssessmentCommand = exports.deserializeAws_restJson1DescribeAppCommand = exports.deserializeAws_restJson1DeleteResiliencyPolicyCommand = exports.deserializeAws_restJson1DeleteRecommendationTemplateCommand = exports.deserializeAws_restJson1DeleteAppAssessmentCommand = exports.deserializeAws_restJson1DeleteAppCommand = exports.deserializeAws_restJson1CreateResiliencyPolicyCommand = exports.deserializeAws_restJson1CreateRecommendationTemplateCommand = exports.deserializeAws_restJson1CreateAppCommand = exports.deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = exports.serializeAws_restJson1UpdateResiliencyPolicyCommand = exports.serializeAws_restJson1UpdateAppCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartAppAssessmentCommand = exports.serializeAws_restJson1ResolveAppVersionResourcesCommand = exports.serializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = exports.serializeAws_restJson1PutDraftAppVersionTemplateCommand = exports.serializeAws_restJson1PublishAppVersionCommand = exports.serializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = exports.serializeAws_restJson1ListTestRecommendationsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = exports.serializeAws_restJson1ListSopRecommendationsCommand = exports.serializeAws_restJson1ListResiliencyPoliciesCommand = exports.serializeAws_restJson1ListRecommendationTemplatesCommand = exports.serializeAws_restJson1ListAppVersionsCommand = exports.serializeAws_restJson1ListAppVersionResourcesCommand = exports.serializeAws_restJson1ListAppVersionResourceMappingsCommand = exports.serializeAws_restJson1ListAppsCommand = exports.serializeAws_restJson1ListAppComponentRecommendationsCommand = exports.serializeAws_restJson1ListAppComponentCompliancesCommand = exports.serializeAws_restJson1ListAppAssessmentsCommand = exports.serializeAws_restJson1ListAlarmRecommendationsCommand = exports.serializeAws_restJson1ImportResourcesToDraftAppVersionCommand = exports.serializeAws_restJson1DescribeResiliencyPolicyCommand = exports.serializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommand = exports.serializeAws_restJson1DescribeAppVersionTemplateCommand = exports.serializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand = exports.serializeAws_restJson1DescribeAppAssessmentCommand = exports.serializeAws_restJson1DescribeAppCommand = exports.serializeAws_restJson1DeleteResiliencyPolicyCommand = exports.serializeAws_restJson1DeleteRecommendationTemplateCommand = exports.serializeAws_restJson1DeleteAppAssessmentCommand = exports.serializeAws_restJson1DeleteAppCommand = exports.serializeAws_restJson1CreateResiliencyPolicyCommand = exports.serializeAws_restJson1CreateRecommendationTemplateCommand = exports.serializeAws_restJson1CreateAppCommand = exports.serializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateResiliencyPolicyCommand = exports.deserializeAws_restJson1UpdateAppCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartAppAssessmentCommand = exports.deserializeAws_restJson1ResolveAppVersionResourcesCommand = exports.deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = exports.deserializeAws_restJson1PutDraftAppVersionTemplateCommand = exports.deserializeAws_restJson1PublishAppVersionCommand = exports.deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = exports.deserializeAws_restJson1ListTestRecommendationsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = exports.deserializeAws_restJson1ListSopRecommendationsCommand = exports.deserializeAws_restJson1ListResiliencyPoliciesCommand = exports.deserializeAws_restJson1ListRecommendationTemplatesCommand = exports.deserializeAws_restJson1ListAppVersionsCommand = exports.deserializeAws_restJson1ListAppVersionResourcesCommand = exports.deserializeAws_restJson1ListAppVersionResourceMappingsCommand = exports.deserializeAws_restJson1ListAppsCommand = exports.deserializeAws_restJson1ListAppComponentRecommendationsCommand = exports.deserializeAws_restJson1ListAppComponentCompliancesCommand = exports.deserializeAws_restJson1ListAppAssessmentsCommand = exports.deserializeAws_restJson1ListAlarmRecommendationsCommand = exports.deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = exports.deserializeAws_restJson1DescribeResiliencyPolicyCommand = exports.deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommand = exports.deserializeAws_restJson1DescribeAppVersionTemplateCommand = void 0;
3
+ exports.serializeAws_restJson1UpdateAppVersionAppComponentCommand = exports.serializeAws_restJson1UpdateAppVersionCommand = exports.serializeAws_restJson1UpdateAppCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartAppAssessmentCommand = exports.serializeAws_restJson1ResolveAppVersionResourcesCommand = exports.serializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = exports.serializeAws_restJson1PutDraftAppVersionTemplateCommand = exports.serializeAws_restJson1PublishAppVersionCommand = exports.serializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = exports.serializeAws_restJson1ListTestRecommendationsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = exports.serializeAws_restJson1ListSopRecommendationsCommand = exports.serializeAws_restJson1ListResiliencyPoliciesCommand = exports.serializeAws_restJson1ListRecommendationTemplatesCommand = exports.serializeAws_restJson1ListAppVersionsCommand = exports.serializeAws_restJson1ListAppVersionResourcesCommand = exports.serializeAws_restJson1ListAppVersionResourceMappingsCommand = exports.serializeAws_restJson1ListAppVersionAppComponentsCommand = exports.serializeAws_restJson1ListAppsCommand = exports.serializeAws_restJson1ListAppInputSourcesCommand = exports.serializeAws_restJson1ListAppComponentRecommendationsCommand = exports.serializeAws_restJson1ListAppComponentCompliancesCommand = exports.serializeAws_restJson1ListAppAssessmentsCommand = exports.serializeAws_restJson1ListAlarmRecommendationsCommand = exports.serializeAws_restJson1ImportResourcesToDraftAppVersionCommand = exports.serializeAws_restJson1DescribeResiliencyPolicyCommand = exports.serializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommand = exports.serializeAws_restJson1DescribeAppVersionTemplateCommand = exports.serializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand = exports.serializeAws_restJson1DescribeAppVersionResourceCommand = exports.serializeAws_restJson1DescribeAppVersionAppComponentCommand = exports.serializeAws_restJson1DescribeAppVersionCommand = exports.serializeAws_restJson1DescribeAppAssessmentCommand = exports.serializeAws_restJson1DescribeAppCommand = exports.serializeAws_restJson1DeleteResiliencyPolicyCommand = exports.serializeAws_restJson1DeleteRecommendationTemplateCommand = exports.serializeAws_restJson1DeleteAppVersionResourceCommand = exports.serializeAws_restJson1DeleteAppVersionAppComponentCommand = exports.serializeAws_restJson1DeleteAppInputSourceCommand = exports.serializeAws_restJson1DeleteAppAssessmentCommand = exports.serializeAws_restJson1DeleteAppCommand = exports.serializeAws_restJson1CreateResiliencyPolicyCommand = exports.serializeAws_restJson1CreateRecommendationTemplateCommand = exports.serializeAws_restJson1CreateAppVersionResourceCommand = exports.serializeAws_restJson1CreateAppVersionAppComponentCommand = exports.serializeAws_restJson1CreateAppCommand = exports.serializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateAppCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartAppAssessmentCommand = exports.deserializeAws_restJson1ResolveAppVersionResourcesCommand = exports.deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = exports.deserializeAws_restJson1PutDraftAppVersionTemplateCommand = exports.deserializeAws_restJson1PublishAppVersionCommand = exports.deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = exports.deserializeAws_restJson1ListTestRecommendationsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = exports.deserializeAws_restJson1ListSopRecommendationsCommand = exports.deserializeAws_restJson1ListResiliencyPoliciesCommand = exports.deserializeAws_restJson1ListRecommendationTemplatesCommand = exports.deserializeAws_restJson1ListAppVersionsCommand = exports.deserializeAws_restJson1ListAppVersionResourcesCommand = exports.deserializeAws_restJson1ListAppVersionResourceMappingsCommand = exports.deserializeAws_restJson1ListAppVersionAppComponentsCommand = exports.deserializeAws_restJson1ListAppsCommand = exports.deserializeAws_restJson1ListAppInputSourcesCommand = exports.deserializeAws_restJson1ListAppComponentRecommendationsCommand = exports.deserializeAws_restJson1ListAppComponentCompliancesCommand = exports.deserializeAws_restJson1ListAppAssessmentsCommand = exports.deserializeAws_restJson1ListAlarmRecommendationsCommand = exports.deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = exports.deserializeAws_restJson1DescribeResiliencyPolicyCommand = exports.deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommand = exports.deserializeAws_restJson1DescribeAppVersionTemplateCommand = exports.deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand = exports.deserializeAws_restJson1DescribeAppVersionResourceCommand = exports.deserializeAws_restJson1DescribeAppVersionAppComponentCommand = exports.deserializeAws_restJson1DescribeAppVersionCommand = exports.deserializeAws_restJson1DescribeAppAssessmentCommand = exports.deserializeAws_restJson1DescribeAppCommand = exports.deserializeAws_restJson1DeleteResiliencyPolicyCommand = exports.deserializeAws_restJson1DeleteRecommendationTemplateCommand = exports.deserializeAws_restJson1DeleteAppVersionResourceCommand = exports.deserializeAws_restJson1DeleteAppVersionAppComponentCommand = exports.deserializeAws_restJson1DeleteAppInputSourceCommand = exports.deserializeAws_restJson1DeleteAppAssessmentCommand = exports.deserializeAws_restJson1DeleteAppCommand = exports.deserializeAws_restJson1CreateResiliencyPolicyCommand = exports.deserializeAws_restJson1CreateRecommendationTemplateCommand = exports.deserializeAws_restJson1CreateAppVersionResourceCommand = exports.deserializeAws_restJson1CreateAppVersionAppComponentCommand = exports.deserializeAws_restJson1CreateAppCommand = exports.deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = exports.serializeAws_restJson1UpdateResiliencyPolicyCommand = exports.serializeAws_restJson1UpdateAppVersionResourceCommand = void 0;
5
+ exports.deserializeAws_restJson1UpdateResiliencyPolicyCommand = exports.deserializeAws_restJson1UpdateAppVersionResourceCommand = exports.deserializeAws_restJson1UpdateAppVersionAppComponentCommand = exports.deserializeAws_restJson1UpdateAppVersionCommand = void 0;
5
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
8
  const uuid_1 = require("uuid");
@@ -57,6 +58,70 @@ const serializeAws_restJson1CreateAppCommand = async (input, context) => {
57
58
  });
58
59
  };
59
60
  exports.serializeAws_restJson1CreateAppCommand = serializeAws_restJson1CreateAppCommand;
61
+ const serializeAws_restJson1CreateAppVersionAppComponentCommand = async (input, context) => {
62
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
63
+ const headers = {
64
+ "content-type": "application/json",
65
+ };
66
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-app-component";
67
+ let body;
68
+ body = JSON.stringify({
69
+ ...(input.additionalInfo != null && {
70
+ additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
71
+ }),
72
+ ...(input.appArn != null && { appArn: input.appArn }),
73
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
74
+ ...(input.id != null && { id: input.id }),
75
+ ...(input.name != null && { name: input.name }),
76
+ ...(input.type != null && { type: input.type }),
77
+ });
78
+ return new protocol_http_1.HttpRequest({
79
+ protocol,
80
+ hostname,
81
+ port,
82
+ method: "POST",
83
+ headers,
84
+ path: resolvedPath,
85
+ body,
86
+ });
87
+ };
88
+ exports.serializeAws_restJson1CreateAppVersionAppComponentCommand = serializeAws_restJson1CreateAppVersionAppComponentCommand;
89
+ const serializeAws_restJson1CreateAppVersionResourceCommand = async (input, context) => {
90
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const headers = {
92
+ "content-type": "application/json",
93
+ };
94
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-resource";
95
+ let body;
96
+ body = JSON.stringify({
97
+ ...(input.additionalInfo != null && {
98
+ additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
99
+ }),
100
+ ...(input.appArn != null && { appArn: input.appArn }),
101
+ ...(input.appComponents != null && {
102
+ appComponents: serializeAws_restJson1AppComponentNameList(input.appComponents, context),
103
+ }),
104
+ ...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
105
+ ...(input.awsRegion != null && { awsRegion: input.awsRegion }),
106
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
107
+ ...(input.logicalResourceId != null && {
108
+ logicalResourceId: serializeAws_restJson1LogicalResourceId(input.logicalResourceId, context),
109
+ }),
110
+ ...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
111
+ ...(input.resourceName != null && { resourceName: input.resourceName }),
112
+ ...(input.resourceType != null && { resourceType: input.resourceType }),
113
+ });
114
+ return new protocol_http_1.HttpRequest({
115
+ protocol,
116
+ hostname,
117
+ port,
118
+ method: "POST",
119
+ headers,
120
+ path: resolvedPath,
121
+ body,
122
+ });
123
+ };
124
+ exports.serializeAws_restJson1CreateAppVersionResourceCommand = serializeAws_restJson1CreateAppVersionResourceCommand;
60
125
  const serializeAws_restJson1CreateRecommendationTemplateCommand = async (input, context) => {
61
126
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
127
  const headers = {
@@ -161,6 +226,84 @@ const serializeAws_restJson1DeleteAppAssessmentCommand = async (input, context)
161
226
  });
162
227
  };
163
228
  exports.serializeAws_restJson1DeleteAppAssessmentCommand = serializeAws_restJson1DeleteAppAssessmentCommand;
229
+ const serializeAws_restJson1DeleteAppInputSourceCommand = async (input, context) => {
230
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const headers = {
232
+ "content-type": "application/json",
233
+ };
234
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-input-source";
235
+ let body;
236
+ body = JSON.stringify({
237
+ ...(input.appArn != null && { appArn: input.appArn }),
238
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
239
+ ...(input.sourceArn != null && { sourceArn: input.sourceArn }),
240
+ ...(input.terraformSource != null && {
241
+ terraformSource: serializeAws_restJson1TerraformSource(input.terraformSource, context),
242
+ }),
243
+ });
244
+ return new protocol_http_1.HttpRequest({
245
+ protocol,
246
+ hostname,
247
+ port,
248
+ method: "POST",
249
+ headers,
250
+ path: resolvedPath,
251
+ body,
252
+ });
253
+ };
254
+ exports.serializeAws_restJson1DeleteAppInputSourceCommand = serializeAws_restJson1DeleteAppInputSourceCommand;
255
+ const serializeAws_restJson1DeleteAppVersionAppComponentCommand = async (input, context) => {
256
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
257
+ const headers = {
258
+ "content-type": "application/json",
259
+ };
260
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-app-component";
261
+ let body;
262
+ body = JSON.stringify({
263
+ ...(input.appArn != null && { appArn: input.appArn }),
264
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
265
+ ...(input.id != null && { id: input.id }),
266
+ });
267
+ return new protocol_http_1.HttpRequest({
268
+ protocol,
269
+ hostname,
270
+ port,
271
+ method: "POST",
272
+ headers,
273
+ path: resolvedPath,
274
+ body,
275
+ });
276
+ };
277
+ exports.serializeAws_restJson1DeleteAppVersionAppComponentCommand = serializeAws_restJson1DeleteAppVersionAppComponentCommand;
278
+ const serializeAws_restJson1DeleteAppVersionResourceCommand = async (input, context) => {
279
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
280
+ const headers = {
281
+ "content-type": "application/json",
282
+ };
283
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-app-version-resource";
284
+ let body;
285
+ body = JSON.stringify({
286
+ ...(input.appArn != null && { appArn: input.appArn }),
287
+ ...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
288
+ ...(input.awsRegion != null && { awsRegion: input.awsRegion }),
289
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
290
+ ...(input.logicalResourceId != null && {
291
+ logicalResourceId: serializeAws_restJson1LogicalResourceId(input.logicalResourceId, context),
292
+ }),
293
+ ...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
294
+ ...(input.resourceName != null && { resourceName: input.resourceName }),
295
+ });
296
+ return new protocol_http_1.HttpRequest({
297
+ protocol,
298
+ hostname,
299
+ port,
300
+ method: "POST",
301
+ headers,
302
+ path: resolvedPath,
303
+ body,
304
+ });
305
+ };
306
+ exports.serializeAws_restJson1DeleteAppVersionResourceCommand = serializeAws_restJson1DeleteAppVersionResourceCommand;
164
307
  const serializeAws_restJson1DeleteRecommendationTemplateCommand = async (input, context) => {
165
308
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
166
309
  const headers = {
@@ -247,6 +390,80 @@ const serializeAws_restJson1DescribeAppAssessmentCommand = async (input, context
247
390
  });
248
391
  };
249
392
  exports.serializeAws_restJson1DescribeAppAssessmentCommand = serializeAws_restJson1DescribeAppAssessmentCommand;
393
+ const serializeAws_restJson1DescribeAppVersionCommand = async (input, context) => {
394
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
395
+ const headers = {
396
+ "content-type": "application/json",
397
+ };
398
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version";
399
+ let body;
400
+ body = JSON.stringify({
401
+ ...(input.appArn != null && { appArn: input.appArn }),
402
+ ...(input.appVersion != null && { appVersion: input.appVersion }),
403
+ });
404
+ return new protocol_http_1.HttpRequest({
405
+ protocol,
406
+ hostname,
407
+ port,
408
+ method: "POST",
409
+ headers,
410
+ path: resolvedPath,
411
+ body,
412
+ });
413
+ };
414
+ exports.serializeAws_restJson1DescribeAppVersionCommand = serializeAws_restJson1DescribeAppVersionCommand;
415
+ const serializeAws_restJson1DescribeAppVersionAppComponentCommand = async (input, context) => {
416
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
+ const headers = {
418
+ "content-type": "application/json",
419
+ };
420
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-app-component";
421
+ let body;
422
+ body = JSON.stringify({
423
+ ...(input.appArn != null && { appArn: input.appArn }),
424
+ ...(input.appVersion != null && { appVersion: input.appVersion }),
425
+ ...(input.id != null && { id: input.id }),
426
+ });
427
+ return new protocol_http_1.HttpRequest({
428
+ protocol,
429
+ hostname,
430
+ port,
431
+ method: "POST",
432
+ headers,
433
+ path: resolvedPath,
434
+ body,
435
+ });
436
+ };
437
+ exports.serializeAws_restJson1DescribeAppVersionAppComponentCommand = serializeAws_restJson1DescribeAppVersionAppComponentCommand;
438
+ const serializeAws_restJson1DescribeAppVersionResourceCommand = async (input, context) => {
439
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
440
+ const headers = {
441
+ "content-type": "application/json",
442
+ };
443
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-app-version-resource";
444
+ let body;
445
+ body = JSON.stringify({
446
+ ...(input.appArn != null && { appArn: input.appArn }),
447
+ ...(input.appVersion != null && { appVersion: input.appVersion }),
448
+ ...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
449
+ ...(input.awsRegion != null && { awsRegion: input.awsRegion }),
450
+ ...(input.logicalResourceId != null && {
451
+ logicalResourceId: serializeAws_restJson1LogicalResourceId(input.logicalResourceId, context),
452
+ }),
453
+ ...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
454
+ ...(input.resourceName != null && { resourceName: input.resourceName }),
455
+ });
456
+ return new protocol_http_1.HttpRequest({
457
+ protocol,
458
+ hostname,
459
+ port,
460
+ method: "POST",
461
+ headers,
462
+ path: resolvedPath,
463
+ body,
464
+ });
465
+ };
466
+ exports.serializeAws_restJson1DescribeAppVersionResourceCommand = serializeAws_restJson1DescribeAppVersionResourceCommand;
250
467
  const serializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand = async (input, context) => {
251
468
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
469
  const headers = {
@@ -345,6 +562,7 @@ const serializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (inp
345
562
  let body;
346
563
  body = JSON.stringify({
347
564
  ...(input.appArn != null && { appArn: input.appArn }),
565
+ ...(input.importStrategy != null && { importStrategy: input.importStrategy }),
348
566
  ...(input.sourceArns != null && { sourceArns: serializeAws_restJson1ArnList(input.sourceArns, context) }),
349
567
  ...(input.terraformSources != null && {
350
568
  terraformSources: serializeAws_restJson1TerraformSourceList(input.terraformSources, context),
@@ -460,6 +678,30 @@ const serializeAws_restJson1ListAppComponentRecommendationsCommand = async (inpu
460
678
  });
461
679
  };
462
680
  exports.serializeAws_restJson1ListAppComponentRecommendationsCommand = serializeAws_restJson1ListAppComponentRecommendationsCommand;
681
+ const serializeAws_restJson1ListAppInputSourcesCommand = async (input, context) => {
682
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
683
+ const headers = {
684
+ "content-type": "application/json",
685
+ };
686
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-input-sources";
687
+ let body;
688
+ body = JSON.stringify({
689
+ ...(input.appArn != null && { appArn: input.appArn }),
690
+ ...(input.appVersion != null && { appVersion: input.appVersion }),
691
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
692
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
693
+ });
694
+ return new protocol_http_1.HttpRequest({
695
+ protocol,
696
+ hostname,
697
+ port,
698
+ method: "POST",
699
+ headers,
700
+ path: resolvedPath,
701
+ body,
702
+ });
703
+ };
704
+ exports.serializeAws_restJson1ListAppInputSourcesCommand = serializeAws_restJson1ListAppInputSourcesCommand;
463
705
  const serializeAws_restJson1ListAppsCommand = async (input, context) => {
464
706
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
465
707
  const headers = {};
@@ -483,6 +725,30 @@ const serializeAws_restJson1ListAppsCommand = async (input, context) => {
483
725
  });
484
726
  };
485
727
  exports.serializeAws_restJson1ListAppsCommand = serializeAws_restJson1ListAppsCommand;
728
+ const serializeAws_restJson1ListAppVersionAppComponentsCommand = async (input, context) => {
729
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
730
+ const headers = {
731
+ "content-type": "application/json",
732
+ };
733
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-version-app-components";
734
+ let body;
735
+ body = JSON.stringify({
736
+ ...(input.appArn != null && { appArn: input.appArn }),
737
+ ...(input.appVersion != null && { appVersion: input.appVersion }),
738
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
739
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
740
+ });
741
+ return new protocol_http_1.HttpRequest({
742
+ protocol,
743
+ hostname,
744
+ port,
745
+ method: "POST",
746
+ headers,
747
+ path: resolvedPath,
748
+ body,
749
+ });
750
+ };
751
+ exports.serializeAws_restJson1ListAppVersionAppComponentsCommand = serializeAws_restJson1ListAppVersionAppComponentsCommand;
486
752
  const serializeAws_restJson1ListAppVersionResourceMappingsCommand = async (input, context) => {
487
753
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
488
754
  const headers = {
@@ -910,20 +1176,18 @@ const serializeAws_restJson1UpdateAppCommand = async (input, context) => {
910
1176
  });
911
1177
  };
912
1178
  exports.serializeAws_restJson1UpdateAppCommand = serializeAws_restJson1UpdateAppCommand;
913
- const serializeAws_restJson1UpdateResiliencyPolicyCommand = async (input, context) => {
1179
+ const serializeAws_restJson1UpdateAppVersionCommand = async (input, context) => {
914
1180
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
915
1181
  const headers = {
916
1182
  "content-type": "application/json",
917
1183
  };
918
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-resiliency-policy";
1184
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version";
919
1185
  let body;
920
1186
  body = JSON.stringify({
921
- ...(input.dataLocationConstraint != null && { dataLocationConstraint: input.dataLocationConstraint }),
922
- ...(input.policy != null && { policy: serializeAws_restJson1DisruptionPolicy(input.policy, context) }),
923
- ...(input.policyArn != null && { policyArn: input.policyArn }),
924
- ...(input.policyDescription != null && { policyDescription: input.policyDescription }),
925
- ...(input.policyName != null && { policyName: input.policyName }),
926
- ...(input.tier != null && { tier: input.tier }),
1187
+ ...(input.additionalInfo != null && {
1188
+ additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
1189
+ }),
1190
+ ...(input.appArn != null && { appArn: input.appArn }),
927
1191
  });
928
1192
  return new protocol_http_1.HttpRequest({
929
1193
  protocol,
@@ -935,38 +1199,546 @@ const serializeAws_restJson1UpdateResiliencyPolicyCommand = async (input, contex
935
1199
  body,
936
1200
  });
937
1201
  };
938
- exports.serializeAws_restJson1UpdateResiliencyPolicyCommand = serializeAws_restJson1UpdateResiliencyPolicyCommand;
939
- const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = async (output, context) => {
940
- if (output.statusCode !== 200 && output.statusCode >= 300) {
941
- return deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError(output, context);
942
- }
943
- const contents = map({
944
- $metadata: deserializeMetadata(output),
945
- });
946
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
947
- if (data.appArn != null) {
948
- contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
949
- }
950
- if (data.appVersion != null) {
951
- contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
952
- }
953
- if (data.resourceMappings != null) {
954
- contents.resourceMappings = deserializeAws_restJson1ResourceMappingList(data.resourceMappings, context);
955
- }
956
- return contents;
957
- };
958
- exports.deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand;
959
- const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = async (output, context) => {
960
- const parsedOutput = {
961
- ...output,
962
- body: await parseErrorBody(output.body, context),
1202
+ exports.serializeAws_restJson1UpdateAppVersionCommand = serializeAws_restJson1UpdateAppVersionCommand;
1203
+ const serializeAws_restJson1UpdateAppVersionAppComponentCommand = async (input, context) => {
1204
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1205
+ const headers = {
1206
+ "content-type": "application/json",
963
1207
  };
964
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
965
- switch (errorCode) {
966
- case "AccessDeniedException":
967
- case "com.amazonaws.resiliencehub#AccessDeniedException":
968
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
969
- case "ConflictException":
1208
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-app-component";
1209
+ let body;
1210
+ body = JSON.stringify({
1211
+ ...(input.additionalInfo != null && {
1212
+ additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
1213
+ }),
1214
+ ...(input.appArn != null && { appArn: input.appArn }),
1215
+ ...(input.id != null && { id: input.id }),
1216
+ ...(input.name != null && { name: input.name }),
1217
+ ...(input.type != null && { type: input.type }),
1218
+ });
1219
+ return new protocol_http_1.HttpRequest({
1220
+ protocol,
1221
+ hostname,
1222
+ port,
1223
+ method: "POST",
1224
+ headers,
1225
+ path: resolvedPath,
1226
+ body,
1227
+ });
1228
+ };
1229
+ exports.serializeAws_restJson1UpdateAppVersionAppComponentCommand = serializeAws_restJson1UpdateAppVersionAppComponentCommand;
1230
+ const serializeAws_restJson1UpdateAppVersionResourceCommand = async (input, context) => {
1231
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1232
+ const headers = {
1233
+ "content-type": "application/json",
1234
+ };
1235
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-resource";
1236
+ let body;
1237
+ body = JSON.stringify({
1238
+ ...(input.additionalInfo != null && {
1239
+ additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
1240
+ }),
1241
+ ...(input.appArn != null && { appArn: input.appArn }),
1242
+ ...(input.appComponents != null && {
1243
+ appComponents: serializeAws_restJson1AppComponentNameList(input.appComponents, context),
1244
+ }),
1245
+ ...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
1246
+ ...(input.awsRegion != null && { awsRegion: input.awsRegion }),
1247
+ ...(input.excluded != null && { excluded: input.excluded }),
1248
+ ...(input.logicalResourceId != null && {
1249
+ logicalResourceId: serializeAws_restJson1LogicalResourceId(input.logicalResourceId, context),
1250
+ }),
1251
+ ...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
1252
+ ...(input.resourceName != null && { resourceName: input.resourceName }),
1253
+ ...(input.resourceType != null && { resourceType: input.resourceType }),
1254
+ });
1255
+ return new protocol_http_1.HttpRequest({
1256
+ protocol,
1257
+ hostname,
1258
+ port,
1259
+ method: "POST",
1260
+ headers,
1261
+ path: resolvedPath,
1262
+ body,
1263
+ });
1264
+ };
1265
+ exports.serializeAws_restJson1UpdateAppVersionResourceCommand = serializeAws_restJson1UpdateAppVersionResourceCommand;
1266
+ const serializeAws_restJson1UpdateResiliencyPolicyCommand = async (input, context) => {
1267
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1268
+ const headers = {
1269
+ "content-type": "application/json",
1270
+ };
1271
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-resiliency-policy";
1272
+ let body;
1273
+ body = JSON.stringify({
1274
+ ...(input.dataLocationConstraint != null && { dataLocationConstraint: input.dataLocationConstraint }),
1275
+ ...(input.policy != null && { policy: serializeAws_restJson1DisruptionPolicy(input.policy, context) }),
1276
+ ...(input.policyArn != null && { policyArn: input.policyArn }),
1277
+ ...(input.policyDescription != null && { policyDescription: input.policyDescription }),
1278
+ ...(input.policyName != null && { policyName: input.policyName }),
1279
+ ...(input.tier != null && { tier: input.tier }),
1280
+ });
1281
+ return new protocol_http_1.HttpRequest({
1282
+ protocol,
1283
+ hostname,
1284
+ port,
1285
+ method: "POST",
1286
+ headers,
1287
+ path: resolvedPath,
1288
+ body,
1289
+ });
1290
+ };
1291
+ exports.serializeAws_restJson1UpdateResiliencyPolicyCommand = serializeAws_restJson1UpdateResiliencyPolicyCommand;
1292
+ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = async (output, context) => {
1293
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1294
+ return deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError(output, context);
1295
+ }
1296
+ const contents = map({
1297
+ $metadata: deserializeMetadata(output),
1298
+ });
1299
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1300
+ if (data.appArn != null) {
1301
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1302
+ }
1303
+ if (data.appVersion != null) {
1304
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1305
+ }
1306
+ if (data.resourceMappings != null) {
1307
+ contents.resourceMappings = deserializeAws_restJson1ResourceMappingList(data.resourceMappings, context);
1308
+ }
1309
+ return contents;
1310
+ };
1311
+ exports.deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand;
1312
+ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = async (output, context) => {
1313
+ const parsedOutput = {
1314
+ ...output,
1315
+ body: await parseErrorBody(output.body, context),
1316
+ };
1317
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1318
+ switch (errorCode) {
1319
+ case "AccessDeniedException":
1320
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
1321
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1322
+ case "ConflictException":
1323
+ case "com.amazonaws.resiliencehub#ConflictException":
1324
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1325
+ case "InternalServerException":
1326
+ case "com.amazonaws.resiliencehub#InternalServerException":
1327
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1328
+ case "ResourceNotFoundException":
1329
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1330
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1331
+ case "ThrottlingException":
1332
+ case "com.amazonaws.resiliencehub#ThrottlingException":
1333
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1334
+ case "ValidationException":
1335
+ case "com.amazonaws.resiliencehub#ValidationException":
1336
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1337
+ default:
1338
+ const parsedBody = parsedOutput.body;
1339
+ (0, smithy_client_1.throwDefaultError)({
1340
+ output,
1341
+ parsedBody,
1342
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
1343
+ errorCode,
1344
+ });
1345
+ }
1346
+ };
1347
+ const deserializeAws_restJson1CreateAppCommand = async (output, context) => {
1348
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1349
+ return deserializeAws_restJson1CreateAppCommandError(output, context);
1350
+ }
1351
+ const contents = map({
1352
+ $metadata: deserializeMetadata(output),
1353
+ });
1354
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1355
+ if (data.app != null) {
1356
+ contents.app = deserializeAws_restJson1App(data.app, context);
1357
+ }
1358
+ return contents;
1359
+ };
1360
+ exports.deserializeAws_restJson1CreateAppCommand = deserializeAws_restJson1CreateAppCommand;
1361
+ const deserializeAws_restJson1CreateAppCommandError = async (output, context) => {
1362
+ const parsedOutput = {
1363
+ ...output,
1364
+ body: await parseErrorBody(output.body, context),
1365
+ };
1366
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1367
+ switch (errorCode) {
1368
+ case "AccessDeniedException":
1369
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
1370
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1371
+ case "ConflictException":
1372
+ case "com.amazonaws.resiliencehub#ConflictException":
1373
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1374
+ case "InternalServerException":
1375
+ case "com.amazonaws.resiliencehub#InternalServerException":
1376
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1377
+ case "ResourceNotFoundException":
1378
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1379
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1380
+ case "ServiceQuotaExceededException":
1381
+ case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1382
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1383
+ case "ThrottlingException":
1384
+ case "com.amazonaws.resiliencehub#ThrottlingException":
1385
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1386
+ case "ValidationException":
1387
+ case "com.amazonaws.resiliencehub#ValidationException":
1388
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1389
+ default:
1390
+ const parsedBody = parsedOutput.body;
1391
+ (0, smithy_client_1.throwDefaultError)({
1392
+ output,
1393
+ parsedBody,
1394
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
1395
+ errorCode,
1396
+ });
1397
+ }
1398
+ };
1399
+ const deserializeAws_restJson1CreateAppVersionAppComponentCommand = async (output, context) => {
1400
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1401
+ return deserializeAws_restJson1CreateAppVersionAppComponentCommandError(output, context);
1402
+ }
1403
+ const contents = map({
1404
+ $metadata: deserializeMetadata(output),
1405
+ });
1406
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1407
+ if (data.appArn != null) {
1408
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1409
+ }
1410
+ if (data.appComponent != null) {
1411
+ contents.appComponent = deserializeAws_restJson1AppComponent(data.appComponent, context);
1412
+ }
1413
+ if (data.appVersion != null) {
1414
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1415
+ }
1416
+ return contents;
1417
+ };
1418
+ exports.deserializeAws_restJson1CreateAppVersionAppComponentCommand = deserializeAws_restJson1CreateAppVersionAppComponentCommand;
1419
+ const deserializeAws_restJson1CreateAppVersionAppComponentCommandError = async (output, context) => {
1420
+ const parsedOutput = {
1421
+ ...output,
1422
+ body: await parseErrorBody(output.body, context),
1423
+ };
1424
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1425
+ switch (errorCode) {
1426
+ case "AccessDeniedException":
1427
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
1428
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1429
+ case "ConflictException":
1430
+ case "com.amazonaws.resiliencehub#ConflictException":
1431
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1432
+ case "InternalServerException":
1433
+ case "com.amazonaws.resiliencehub#InternalServerException":
1434
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1435
+ case "ResourceNotFoundException":
1436
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1437
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1438
+ case "ServiceQuotaExceededException":
1439
+ case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1440
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1441
+ case "ThrottlingException":
1442
+ case "com.amazonaws.resiliencehub#ThrottlingException":
1443
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1444
+ case "ValidationException":
1445
+ case "com.amazonaws.resiliencehub#ValidationException":
1446
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1447
+ default:
1448
+ const parsedBody = parsedOutput.body;
1449
+ (0, smithy_client_1.throwDefaultError)({
1450
+ output,
1451
+ parsedBody,
1452
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
1453
+ errorCode,
1454
+ });
1455
+ }
1456
+ };
1457
+ const deserializeAws_restJson1CreateAppVersionResourceCommand = async (output, context) => {
1458
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1459
+ return deserializeAws_restJson1CreateAppVersionResourceCommandError(output, context);
1460
+ }
1461
+ const contents = map({
1462
+ $metadata: deserializeMetadata(output),
1463
+ });
1464
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1465
+ if (data.appArn != null) {
1466
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1467
+ }
1468
+ if (data.appVersion != null) {
1469
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1470
+ }
1471
+ if (data.physicalResource != null) {
1472
+ contents.physicalResource = deserializeAws_restJson1PhysicalResource(data.physicalResource, context);
1473
+ }
1474
+ return contents;
1475
+ };
1476
+ exports.deserializeAws_restJson1CreateAppVersionResourceCommand = deserializeAws_restJson1CreateAppVersionResourceCommand;
1477
+ const deserializeAws_restJson1CreateAppVersionResourceCommandError = async (output, context) => {
1478
+ const parsedOutput = {
1479
+ ...output,
1480
+ body: await parseErrorBody(output.body, context),
1481
+ };
1482
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1483
+ switch (errorCode) {
1484
+ case "AccessDeniedException":
1485
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
1486
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1487
+ case "ConflictException":
1488
+ case "com.amazonaws.resiliencehub#ConflictException":
1489
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1490
+ case "InternalServerException":
1491
+ case "com.amazonaws.resiliencehub#InternalServerException":
1492
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1493
+ case "ResourceNotFoundException":
1494
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1495
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1496
+ case "ServiceQuotaExceededException":
1497
+ case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1498
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1499
+ case "ThrottlingException":
1500
+ case "com.amazonaws.resiliencehub#ThrottlingException":
1501
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1502
+ case "ValidationException":
1503
+ case "com.amazonaws.resiliencehub#ValidationException":
1504
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1505
+ default:
1506
+ const parsedBody = parsedOutput.body;
1507
+ (0, smithy_client_1.throwDefaultError)({
1508
+ output,
1509
+ parsedBody,
1510
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
1511
+ errorCode,
1512
+ });
1513
+ }
1514
+ };
1515
+ const deserializeAws_restJson1CreateRecommendationTemplateCommand = async (output, context) => {
1516
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1517
+ return deserializeAws_restJson1CreateRecommendationTemplateCommandError(output, context);
1518
+ }
1519
+ const contents = map({
1520
+ $metadata: deserializeMetadata(output),
1521
+ });
1522
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1523
+ if (data.recommendationTemplate != null) {
1524
+ contents.recommendationTemplate = deserializeAws_restJson1RecommendationTemplate(data.recommendationTemplate, context);
1525
+ }
1526
+ return contents;
1527
+ };
1528
+ exports.deserializeAws_restJson1CreateRecommendationTemplateCommand = deserializeAws_restJson1CreateRecommendationTemplateCommand;
1529
+ const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (output, context) => {
1530
+ const parsedOutput = {
1531
+ ...output,
1532
+ body: await parseErrorBody(output.body, context),
1533
+ };
1534
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1535
+ switch (errorCode) {
1536
+ case "AccessDeniedException":
1537
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
1538
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1539
+ case "ConflictException":
1540
+ case "com.amazonaws.resiliencehub#ConflictException":
1541
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1542
+ case "InternalServerException":
1543
+ case "com.amazonaws.resiliencehub#InternalServerException":
1544
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1545
+ case "ResourceNotFoundException":
1546
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1547
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1548
+ case "ServiceQuotaExceededException":
1549
+ case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1550
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1551
+ case "ThrottlingException":
1552
+ case "com.amazonaws.resiliencehub#ThrottlingException":
1553
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1554
+ case "ValidationException":
1555
+ case "com.amazonaws.resiliencehub#ValidationException":
1556
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1557
+ default:
1558
+ const parsedBody = parsedOutput.body;
1559
+ (0, smithy_client_1.throwDefaultError)({
1560
+ output,
1561
+ parsedBody,
1562
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
1563
+ errorCode,
1564
+ });
1565
+ }
1566
+ };
1567
+ const deserializeAws_restJson1CreateResiliencyPolicyCommand = async (output, context) => {
1568
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1569
+ return deserializeAws_restJson1CreateResiliencyPolicyCommandError(output, context);
1570
+ }
1571
+ const contents = map({
1572
+ $metadata: deserializeMetadata(output),
1573
+ });
1574
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1575
+ if (data.policy != null) {
1576
+ contents.policy = deserializeAws_restJson1ResiliencyPolicy(data.policy, context);
1577
+ }
1578
+ return contents;
1579
+ };
1580
+ exports.deserializeAws_restJson1CreateResiliencyPolicyCommand = deserializeAws_restJson1CreateResiliencyPolicyCommand;
1581
+ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output, context) => {
1582
+ const parsedOutput = {
1583
+ ...output,
1584
+ body: await parseErrorBody(output.body, context),
1585
+ };
1586
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1587
+ switch (errorCode) {
1588
+ case "AccessDeniedException":
1589
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
1590
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1591
+ case "ConflictException":
1592
+ case "com.amazonaws.resiliencehub#ConflictException":
1593
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1594
+ case "InternalServerException":
1595
+ case "com.amazonaws.resiliencehub#InternalServerException":
1596
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1597
+ case "ServiceQuotaExceededException":
1598
+ case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1599
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1600
+ case "ThrottlingException":
1601
+ case "com.amazonaws.resiliencehub#ThrottlingException":
1602
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1603
+ case "ValidationException":
1604
+ case "com.amazonaws.resiliencehub#ValidationException":
1605
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1606
+ default:
1607
+ const parsedBody = parsedOutput.body;
1608
+ (0, smithy_client_1.throwDefaultError)({
1609
+ output,
1610
+ parsedBody,
1611
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
1612
+ errorCode,
1613
+ });
1614
+ }
1615
+ };
1616
+ const deserializeAws_restJson1DeleteAppCommand = async (output, context) => {
1617
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1618
+ return deserializeAws_restJson1DeleteAppCommandError(output, context);
1619
+ }
1620
+ const contents = map({
1621
+ $metadata: deserializeMetadata(output),
1622
+ });
1623
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1624
+ if (data.appArn != null) {
1625
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1626
+ }
1627
+ return contents;
1628
+ };
1629
+ exports.deserializeAws_restJson1DeleteAppCommand = deserializeAws_restJson1DeleteAppCommand;
1630
+ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) => {
1631
+ const parsedOutput = {
1632
+ ...output,
1633
+ body: await parseErrorBody(output.body, context),
1634
+ };
1635
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1636
+ switch (errorCode) {
1637
+ case "ConflictException":
1638
+ case "com.amazonaws.resiliencehub#ConflictException":
1639
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1640
+ case "InternalServerException":
1641
+ case "com.amazonaws.resiliencehub#InternalServerException":
1642
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1643
+ case "ResourceNotFoundException":
1644
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1645
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1646
+ case "ThrottlingException":
1647
+ case "com.amazonaws.resiliencehub#ThrottlingException":
1648
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1649
+ case "ValidationException":
1650
+ case "com.amazonaws.resiliencehub#ValidationException":
1651
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1652
+ default:
1653
+ const parsedBody = parsedOutput.body;
1654
+ (0, smithy_client_1.throwDefaultError)({
1655
+ output,
1656
+ parsedBody,
1657
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
1658
+ errorCode,
1659
+ });
1660
+ }
1661
+ };
1662
+ const deserializeAws_restJson1DeleteAppAssessmentCommand = async (output, context) => {
1663
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1664
+ return deserializeAws_restJson1DeleteAppAssessmentCommandError(output, context);
1665
+ }
1666
+ const contents = map({
1667
+ $metadata: deserializeMetadata(output),
1668
+ });
1669
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1670
+ if (data.assessmentArn != null) {
1671
+ contents.assessmentArn = (0, smithy_client_1.expectString)(data.assessmentArn);
1672
+ }
1673
+ if (data.assessmentStatus != null) {
1674
+ contents.assessmentStatus = (0, smithy_client_1.expectString)(data.assessmentStatus);
1675
+ }
1676
+ return contents;
1677
+ };
1678
+ exports.deserializeAws_restJson1DeleteAppAssessmentCommand = deserializeAws_restJson1DeleteAppAssessmentCommand;
1679
+ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, context) => {
1680
+ const parsedOutput = {
1681
+ ...output,
1682
+ body: await parseErrorBody(output.body, context),
1683
+ };
1684
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
+ switch (errorCode) {
1686
+ case "AccessDeniedException":
1687
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
1688
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1689
+ case "ConflictException":
1690
+ case "com.amazonaws.resiliencehub#ConflictException":
1691
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1692
+ case "InternalServerException":
1693
+ case "com.amazonaws.resiliencehub#InternalServerException":
1694
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1695
+ case "ResourceNotFoundException":
1696
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1697
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1698
+ case "ThrottlingException":
1699
+ case "com.amazonaws.resiliencehub#ThrottlingException":
1700
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1701
+ case "ValidationException":
1702
+ case "com.amazonaws.resiliencehub#ValidationException":
1703
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1704
+ default:
1705
+ const parsedBody = parsedOutput.body;
1706
+ (0, smithy_client_1.throwDefaultError)({
1707
+ output,
1708
+ parsedBody,
1709
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
1710
+ errorCode,
1711
+ });
1712
+ }
1713
+ };
1714
+ const deserializeAws_restJson1DeleteAppInputSourceCommand = async (output, context) => {
1715
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1716
+ return deserializeAws_restJson1DeleteAppInputSourceCommandError(output, context);
1717
+ }
1718
+ const contents = map({
1719
+ $metadata: deserializeMetadata(output),
1720
+ });
1721
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1722
+ if (data.appArn != null) {
1723
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1724
+ }
1725
+ if (data.appInputSource != null) {
1726
+ contents.appInputSource = deserializeAws_restJson1AppInputSource(data.appInputSource, context);
1727
+ }
1728
+ return contents;
1729
+ };
1730
+ exports.deserializeAws_restJson1DeleteAppInputSourceCommand = deserializeAws_restJson1DeleteAppInputSourceCommand;
1731
+ const deserializeAws_restJson1DeleteAppInputSourceCommandError = async (output, context) => {
1732
+ const parsedOutput = {
1733
+ ...output,
1734
+ body: await parseErrorBody(output.body, context),
1735
+ };
1736
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1737
+ switch (errorCode) {
1738
+ case "AccessDeniedException":
1739
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
1740
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1741
+ case "ConflictException":
970
1742
  case "com.amazonaws.resiliencehub#ConflictException":
971
1743
  throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
972
1744
  case "InternalServerException":
@@ -991,21 +1763,27 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = a
991
1763
  });
992
1764
  }
993
1765
  };
994
- const deserializeAws_restJson1CreateAppCommand = async (output, context) => {
1766
+ const deserializeAws_restJson1DeleteAppVersionAppComponentCommand = async (output, context) => {
995
1767
  if (output.statusCode !== 200 && output.statusCode >= 300) {
996
- return deserializeAws_restJson1CreateAppCommandError(output, context);
1768
+ return deserializeAws_restJson1DeleteAppVersionAppComponentCommandError(output, context);
997
1769
  }
998
1770
  const contents = map({
999
1771
  $metadata: deserializeMetadata(output),
1000
1772
  });
1001
1773
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1002
- if (data.app != null) {
1003
- contents.app = deserializeAws_restJson1App(data.app, context);
1774
+ if (data.appArn != null) {
1775
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1776
+ }
1777
+ if (data.appComponent != null) {
1778
+ contents.appComponent = deserializeAws_restJson1AppComponent(data.appComponent, context);
1779
+ }
1780
+ if (data.appVersion != null) {
1781
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1004
1782
  }
1005
1783
  return contents;
1006
1784
  };
1007
- exports.deserializeAws_restJson1CreateAppCommand = deserializeAws_restJson1CreateAppCommand;
1008
- const deserializeAws_restJson1CreateAppCommandError = async (output, context) => {
1785
+ exports.deserializeAws_restJson1DeleteAppVersionAppComponentCommand = deserializeAws_restJson1DeleteAppVersionAppComponentCommand;
1786
+ const deserializeAws_restJson1DeleteAppVersionAppComponentCommandError = async (output, context) => {
1009
1787
  const parsedOutput = {
1010
1788
  ...output,
1011
1789
  body: await parseErrorBody(output.body, context),
@@ -1024,9 +1802,6 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
1024
1802
  case "ResourceNotFoundException":
1025
1803
  case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1026
1804
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1027
- case "ServiceQuotaExceededException":
1028
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1029
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1030
1805
  case "ThrottlingException":
1031
1806
  case "com.amazonaws.resiliencehub#ThrottlingException":
1032
1807
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
@@ -1043,21 +1818,27 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
1043
1818
  });
1044
1819
  }
1045
1820
  };
1046
- const deserializeAws_restJson1CreateRecommendationTemplateCommand = async (output, context) => {
1821
+ const deserializeAws_restJson1DeleteAppVersionResourceCommand = async (output, context) => {
1047
1822
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1048
- return deserializeAws_restJson1CreateRecommendationTemplateCommandError(output, context);
1823
+ return deserializeAws_restJson1DeleteAppVersionResourceCommandError(output, context);
1049
1824
  }
1050
1825
  const contents = map({
1051
1826
  $metadata: deserializeMetadata(output),
1052
1827
  });
1053
1828
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1054
- if (data.recommendationTemplate != null) {
1055
- contents.recommendationTemplate = deserializeAws_restJson1RecommendationTemplate(data.recommendationTemplate, context);
1829
+ if (data.appArn != null) {
1830
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1831
+ }
1832
+ if (data.appVersion != null) {
1833
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1834
+ }
1835
+ if (data.physicalResource != null) {
1836
+ contents.physicalResource = deserializeAws_restJson1PhysicalResource(data.physicalResource, context);
1056
1837
  }
1057
1838
  return contents;
1058
1839
  };
1059
- exports.deserializeAws_restJson1CreateRecommendationTemplateCommand = deserializeAws_restJson1CreateRecommendationTemplateCommand;
1060
- const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (output, context) => {
1840
+ exports.deserializeAws_restJson1DeleteAppVersionResourceCommand = deserializeAws_restJson1DeleteAppVersionResourceCommand;
1841
+ const deserializeAws_restJson1DeleteAppVersionResourceCommandError = async (output, context) => {
1061
1842
  const parsedOutput = {
1062
1843
  ...output,
1063
1844
  body: await parseErrorBody(output.body, context),
@@ -1092,21 +1873,24 @@ const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (
1092
1873
  });
1093
1874
  }
1094
1875
  };
1095
- const deserializeAws_restJson1CreateResiliencyPolicyCommand = async (output, context) => {
1876
+ const deserializeAws_restJson1DeleteRecommendationTemplateCommand = async (output, context) => {
1096
1877
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1097
- return deserializeAws_restJson1CreateResiliencyPolicyCommandError(output, context);
1878
+ return deserializeAws_restJson1DeleteRecommendationTemplateCommandError(output, context);
1098
1879
  }
1099
1880
  const contents = map({
1100
1881
  $metadata: deserializeMetadata(output),
1101
1882
  });
1102
1883
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1103
- if (data.policy != null) {
1104
- contents.policy = deserializeAws_restJson1ResiliencyPolicy(data.policy, context);
1884
+ if (data.recommendationTemplateArn != null) {
1885
+ contents.recommendationTemplateArn = (0, smithy_client_1.expectString)(data.recommendationTemplateArn);
1886
+ }
1887
+ if (data.status != null) {
1888
+ contents.status = (0, smithy_client_1.expectString)(data.status);
1105
1889
  }
1106
1890
  return contents;
1107
1891
  };
1108
- exports.deserializeAws_restJson1CreateResiliencyPolicyCommand = deserializeAws_restJson1CreateResiliencyPolicyCommand;
1109
- const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output, context) => {
1892
+ exports.deserializeAws_restJson1DeleteRecommendationTemplateCommand = deserializeAws_restJson1DeleteRecommendationTemplateCommand;
1893
+ const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (output, context) => {
1110
1894
  const parsedOutput = {
1111
1895
  ...output,
1112
1896
  body: await parseErrorBody(output.body, context),
@@ -1116,15 +1900,12 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
1116
1900
  case "AccessDeniedException":
1117
1901
  case "com.amazonaws.resiliencehub#AccessDeniedException":
1118
1902
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1119
- case "ConflictException":
1120
- case "com.amazonaws.resiliencehub#ConflictException":
1121
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1122
1903
  case "InternalServerException":
1123
1904
  case "com.amazonaws.resiliencehub#InternalServerException":
1124
1905
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1125
- case "ServiceQuotaExceededException":
1126
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1127
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1906
+ case "ResourceNotFoundException":
1907
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1908
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1128
1909
  case "ThrottlingException":
1129
1910
  case "com.amazonaws.resiliencehub#ThrottlingException":
1130
1911
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
@@ -1141,27 +1922,30 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
1141
1922
  });
1142
1923
  }
1143
1924
  };
1144
- const deserializeAws_restJson1DeleteAppCommand = async (output, context) => {
1925
+ const deserializeAws_restJson1DeleteResiliencyPolicyCommand = async (output, context) => {
1145
1926
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1146
- return deserializeAws_restJson1DeleteAppCommandError(output, context);
1927
+ return deserializeAws_restJson1DeleteResiliencyPolicyCommandError(output, context);
1147
1928
  }
1148
1929
  const contents = map({
1149
1930
  $metadata: deserializeMetadata(output),
1150
1931
  });
1151
1932
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1152
- if (data.appArn != null) {
1153
- contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
1933
+ if (data.policyArn != null) {
1934
+ contents.policyArn = (0, smithy_client_1.expectString)(data.policyArn);
1154
1935
  }
1155
1936
  return contents;
1156
1937
  };
1157
- exports.deserializeAws_restJson1DeleteAppCommand = deserializeAws_restJson1DeleteAppCommand;
1158
- const deserializeAws_restJson1DeleteAppCommandError = async (output, context) => {
1938
+ exports.deserializeAws_restJson1DeleteResiliencyPolicyCommand = deserializeAws_restJson1DeleteResiliencyPolicyCommand;
1939
+ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output, context) => {
1159
1940
  const parsedOutput = {
1160
1941
  ...output,
1161
1942
  body: await parseErrorBody(output.body, context),
1162
1943
  };
1163
1944
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1164
1945
  switch (errorCode) {
1946
+ case "AccessDeniedException":
1947
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
1948
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1165
1949
  case "ConflictException":
1166
1950
  case "com.amazonaws.resiliencehub#ConflictException":
1167
1951
  throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
@@ -1187,24 +1971,21 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
1187
1971
  });
1188
1972
  }
1189
1973
  };
1190
- const deserializeAws_restJson1DeleteAppAssessmentCommand = async (output, context) => {
1974
+ const deserializeAws_restJson1DescribeAppCommand = async (output, context) => {
1191
1975
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1192
- return deserializeAws_restJson1DeleteAppAssessmentCommandError(output, context);
1976
+ return deserializeAws_restJson1DescribeAppCommandError(output, context);
1193
1977
  }
1194
1978
  const contents = map({
1195
1979
  $metadata: deserializeMetadata(output),
1196
1980
  });
1197
1981
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1198
- if (data.assessmentArn != null) {
1199
- contents.assessmentArn = (0, smithy_client_1.expectString)(data.assessmentArn);
1200
- }
1201
- if (data.assessmentStatus != null) {
1202
- contents.assessmentStatus = (0, smithy_client_1.expectString)(data.assessmentStatus);
1982
+ if (data.app != null) {
1983
+ contents.app = deserializeAws_restJson1App(data.app, context);
1203
1984
  }
1204
1985
  return contents;
1205
1986
  };
1206
- exports.deserializeAws_restJson1DeleteAppAssessmentCommand = deserializeAws_restJson1DeleteAppAssessmentCommand;
1207
- const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, context) => {
1987
+ exports.deserializeAws_restJson1DescribeAppCommand = deserializeAws_restJson1DescribeAppCommand;
1988
+ const deserializeAws_restJson1DescribeAppCommandError = async (output, context) => {
1208
1989
  const parsedOutput = {
1209
1990
  ...output,
1210
1991
  body: await parseErrorBody(output.body, context),
@@ -1214,9 +1995,6 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
1214
1995
  case "AccessDeniedException":
1215
1996
  case "com.amazonaws.resiliencehub#AccessDeniedException":
1216
1997
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1217
- case "ConflictException":
1218
- case "com.amazonaws.resiliencehub#ConflictException":
1219
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1220
1998
  case "InternalServerException":
1221
1999
  case "com.amazonaws.resiliencehub#InternalServerException":
1222
2000
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -1239,24 +2017,21 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
1239
2017
  });
1240
2018
  }
1241
2019
  };
1242
- const deserializeAws_restJson1DeleteRecommendationTemplateCommand = async (output, context) => {
2020
+ const deserializeAws_restJson1DescribeAppAssessmentCommand = async (output, context) => {
1243
2021
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1244
- return deserializeAws_restJson1DeleteRecommendationTemplateCommandError(output, context);
2022
+ return deserializeAws_restJson1DescribeAppAssessmentCommandError(output, context);
1245
2023
  }
1246
2024
  const contents = map({
1247
2025
  $metadata: deserializeMetadata(output),
1248
2026
  });
1249
2027
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1250
- if (data.recommendationTemplateArn != null) {
1251
- contents.recommendationTemplateArn = (0, smithy_client_1.expectString)(data.recommendationTemplateArn);
1252
- }
1253
- if (data.status != null) {
1254
- contents.status = (0, smithy_client_1.expectString)(data.status);
2028
+ if (data.assessment != null) {
2029
+ contents.assessment = deserializeAws_restJson1AppAssessment(data.assessment, context);
1255
2030
  }
1256
2031
  return contents;
1257
2032
  };
1258
- exports.deserializeAws_restJson1DeleteRecommendationTemplateCommand = deserializeAws_restJson1DeleteRecommendationTemplateCommand;
1259
- const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (output, context) => {
2033
+ exports.deserializeAws_restJson1DescribeAppAssessmentCommand = deserializeAws_restJson1DescribeAppAssessmentCommand;
2034
+ const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output, context) => {
1260
2035
  const parsedOutput = {
1261
2036
  ...output,
1262
2037
  body: await parseErrorBody(output.body, context),
@@ -1288,21 +2063,27 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (
1288
2063
  });
1289
2064
  }
1290
2065
  };
1291
- const deserializeAws_restJson1DeleteResiliencyPolicyCommand = async (output, context) => {
2066
+ const deserializeAws_restJson1DescribeAppVersionCommand = async (output, context) => {
1292
2067
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1293
- return deserializeAws_restJson1DeleteResiliencyPolicyCommandError(output, context);
2068
+ return deserializeAws_restJson1DescribeAppVersionCommandError(output, context);
1294
2069
  }
1295
2070
  const contents = map({
1296
2071
  $metadata: deserializeMetadata(output),
1297
2072
  });
1298
2073
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1299
- if (data.policyArn != null) {
1300
- contents.policyArn = (0, smithy_client_1.expectString)(data.policyArn);
2074
+ if (data.additionalInfo != null) {
2075
+ contents.additionalInfo = deserializeAws_restJson1AdditionalInfoMap(data.additionalInfo, context);
2076
+ }
2077
+ if (data.appArn != null) {
2078
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
2079
+ }
2080
+ if (data.appVersion != null) {
2081
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1301
2082
  }
1302
2083
  return contents;
1303
2084
  };
1304
- exports.deserializeAws_restJson1DeleteResiliencyPolicyCommand = deserializeAws_restJson1DeleteResiliencyPolicyCommand;
1305
- const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output, context) => {
2085
+ exports.deserializeAws_restJson1DescribeAppVersionCommand = deserializeAws_restJson1DescribeAppVersionCommand;
2086
+ const deserializeAws_restJson1DescribeAppVersionCommandError = async (output, context) => {
1306
2087
  const parsedOutput = {
1307
2088
  ...output,
1308
2089
  body: await parseErrorBody(output.body, context),
@@ -1312,9 +2093,6 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
1312
2093
  case "AccessDeniedException":
1313
2094
  case "com.amazonaws.resiliencehub#AccessDeniedException":
1314
2095
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1315
- case "ConflictException":
1316
- case "com.amazonaws.resiliencehub#ConflictException":
1317
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1318
2096
  case "InternalServerException":
1319
2097
  case "com.amazonaws.resiliencehub#InternalServerException":
1320
2098
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -1337,21 +2115,27 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
1337
2115
  });
1338
2116
  }
1339
2117
  };
1340
- const deserializeAws_restJson1DescribeAppCommand = async (output, context) => {
2118
+ const deserializeAws_restJson1DescribeAppVersionAppComponentCommand = async (output, context) => {
1341
2119
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1342
- return deserializeAws_restJson1DescribeAppCommandError(output, context);
2120
+ return deserializeAws_restJson1DescribeAppVersionAppComponentCommandError(output, context);
1343
2121
  }
1344
2122
  const contents = map({
1345
2123
  $metadata: deserializeMetadata(output),
1346
2124
  });
1347
2125
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1348
- if (data.app != null) {
1349
- contents.app = deserializeAws_restJson1App(data.app, context);
2126
+ if (data.appArn != null) {
2127
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
2128
+ }
2129
+ if (data.appComponent != null) {
2130
+ contents.appComponent = deserializeAws_restJson1AppComponent(data.appComponent, context);
2131
+ }
2132
+ if (data.appVersion != null) {
2133
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1350
2134
  }
1351
2135
  return contents;
1352
2136
  };
1353
- exports.deserializeAws_restJson1DescribeAppCommand = deserializeAws_restJson1DescribeAppCommand;
1354
- const deserializeAws_restJson1DescribeAppCommandError = async (output, context) => {
2137
+ exports.deserializeAws_restJson1DescribeAppVersionAppComponentCommand = deserializeAws_restJson1DescribeAppVersionAppComponentCommand;
2138
+ const deserializeAws_restJson1DescribeAppVersionAppComponentCommandError = async (output, context) => {
1355
2139
  const parsedOutput = {
1356
2140
  ...output,
1357
2141
  body: await parseErrorBody(output.body, context),
@@ -1361,6 +2145,9 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
1361
2145
  case "AccessDeniedException":
1362
2146
  case "com.amazonaws.resiliencehub#AccessDeniedException":
1363
2147
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2148
+ case "ConflictException":
2149
+ case "com.amazonaws.resiliencehub#ConflictException":
2150
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1364
2151
  case "InternalServerException":
1365
2152
  case "com.amazonaws.resiliencehub#InternalServerException":
1366
2153
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -1383,21 +2170,27 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
1383
2170
  });
1384
2171
  }
1385
2172
  };
1386
- const deserializeAws_restJson1DescribeAppAssessmentCommand = async (output, context) => {
2173
+ const deserializeAws_restJson1DescribeAppVersionResourceCommand = async (output, context) => {
1387
2174
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1388
- return deserializeAws_restJson1DescribeAppAssessmentCommandError(output, context);
2175
+ return deserializeAws_restJson1DescribeAppVersionResourceCommandError(output, context);
1389
2176
  }
1390
2177
  const contents = map({
1391
2178
  $metadata: deserializeMetadata(output),
1392
2179
  });
1393
2180
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1394
- if (data.assessment != null) {
1395
- contents.assessment = deserializeAws_restJson1AppAssessment(data.assessment, context);
2181
+ if (data.appArn != null) {
2182
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
2183
+ }
2184
+ if (data.appVersion != null) {
2185
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
2186
+ }
2187
+ if (data.physicalResource != null) {
2188
+ contents.physicalResource = deserializeAws_restJson1PhysicalResource(data.physicalResource, context);
1396
2189
  }
1397
2190
  return contents;
1398
2191
  };
1399
- exports.deserializeAws_restJson1DescribeAppAssessmentCommand = deserializeAws_restJson1DescribeAppAssessmentCommand;
1400
- const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output, context) => {
2192
+ exports.deserializeAws_restJson1DescribeAppVersionResourceCommand = deserializeAws_restJson1DescribeAppVersionResourceCommand;
2193
+ const deserializeAws_restJson1DescribeAppVersionResourceCommandError = async (output, context) => {
1401
2194
  const parsedOutput = {
1402
2195
  ...output,
1403
2196
  body: await parseErrorBody(output.body, context),
@@ -1407,6 +2200,9 @@ const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output,
1407
2200
  case "AccessDeniedException":
1408
2201
  case "com.amazonaws.resiliencehub#AccessDeniedException":
1409
2202
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2203
+ case "ConflictException":
2204
+ case "com.amazonaws.resiliencehub#ConflictException":
2205
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1410
2206
  case "InternalServerException":
1411
2207
  case "com.amazonaws.resiliencehub#InternalServerException":
1412
2208
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -1761,16 +2557,114 @@ const deserializeAws_restJson1ListAppAssessmentsCommand = async (output, context
1761
2557
  $metadata: deserializeMetadata(output),
1762
2558
  });
1763
2559
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1764
- if (data.assessmentSummaries != null) {
1765
- contents.assessmentSummaries = deserializeAws_restJson1AppAssessmentSummaryList(data.assessmentSummaries, context);
2560
+ if (data.assessmentSummaries != null) {
2561
+ contents.assessmentSummaries = deserializeAws_restJson1AppAssessmentSummaryList(data.assessmentSummaries, context);
2562
+ }
2563
+ if (data.nextToken != null) {
2564
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2565
+ }
2566
+ return contents;
2567
+ };
2568
+ exports.deserializeAws_restJson1ListAppAssessmentsCommand = deserializeAws_restJson1ListAppAssessmentsCommand;
2569
+ const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, context) => {
2570
+ const parsedOutput = {
2571
+ ...output,
2572
+ body: await parseErrorBody(output.body, context),
2573
+ };
2574
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2575
+ switch (errorCode) {
2576
+ case "AccessDeniedException":
2577
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
2578
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2579
+ case "InternalServerException":
2580
+ case "com.amazonaws.resiliencehub#InternalServerException":
2581
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2582
+ case "ResourceNotFoundException":
2583
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2584
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2585
+ case "ThrottlingException":
2586
+ case "com.amazonaws.resiliencehub#ThrottlingException":
2587
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2588
+ case "ValidationException":
2589
+ case "com.amazonaws.resiliencehub#ValidationException":
2590
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2591
+ default:
2592
+ const parsedBody = parsedOutput.body;
2593
+ (0, smithy_client_1.throwDefaultError)({
2594
+ output,
2595
+ parsedBody,
2596
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
2597
+ errorCode,
2598
+ });
2599
+ }
2600
+ };
2601
+ const deserializeAws_restJson1ListAppComponentCompliancesCommand = async (output, context) => {
2602
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2603
+ return deserializeAws_restJson1ListAppComponentCompliancesCommandError(output, context);
2604
+ }
2605
+ const contents = map({
2606
+ $metadata: deserializeMetadata(output),
2607
+ });
2608
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2609
+ if (data.componentCompliances != null) {
2610
+ contents.componentCompliances = deserializeAws_restJson1ComponentCompliancesList(data.componentCompliances, context);
2611
+ }
2612
+ if (data.nextToken != null) {
2613
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2614
+ }
2615
+ return contents;
2616
+ };
2617
+ exports.deserializeAws_restJson1ListAppComponentCompliancesCommand = deserializeAws_restJson1ListAppComponentCompliancesCommand;
2618
+ const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (output, context) => {
2619
+ const parsedOutput = {
2620
+ ...output,
2621
+ body: await parseErrorBody(output.body, context),
2622
+ };
2623
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2624
+ switch (errorCode) {
2625
+ case "AccessDeniedException":
2626
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
2627
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2628
+ case "InternalServerException":
2629
+ case "com.amazonaws.resiliencehub#InternalServerException":
2630
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2631
+ case "ResourceNotFoundException":
2632
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2633
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2634
+ case "ThrottlingException":
2635
+ case "com.amazonaws.resiliencehub#ThrottlingException":
2636
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2637
+ case "ValidationException":
2638
+ case "com.amazonaws.resiliencehub#ValidationException":
2639
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2640
+ default:
2641
+ const parsedBody = parsedOutput.body;
2642
+ (0, smithy_client_1.throwDefaultError)({
2643
+ output,
2644
+ parsedBody,
2645
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
2646
+ errorCode,
2647
+ });
2648
+ }
2649
+ };
2650
+ const deserializeAws_restJson1ListAppComponentRecommendationsCommand = async (output, context) => {
2651
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2652
+ return deserializeAws_restJson1ListAppComponentRecommendationsCommandError(output, context);
2653
+ }
2654
+ const contents = map({
2655
+ $metadata: deserializeMetadata(output),
2656
+ });
2657
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2658
+ if (data.componentRecommendations != null) {
2659
+ contents.componentRecommendations = deserializeAws_restJson1ComponentRecommendationList(data.componentRecommendations, context);
1766
2660
  }
1767
2661
  if (data.nextToken != null) {
1768
2662
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1769
2663
  }
1770
2664
  return contents;
1771
2665
  };
1772
- exports.deserializeAws_restJson1ListAppAssessmentsCommand = deserializeAws_restJson1ListAppAssessmentsCommand;
1773
- const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, context) => {
2666
+ exports.deserializeAws_restJson1ListAppComponentRecommendationsCommand = deserializeAws_restJson1ListAppComponentRecommendationsCommand;
2667
+ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = async (output, context) => {
1774
2668
  const parsedOutput = {
1775
2669
  ...output,
1776
2670
  body: await parseErrorBody(output.body, context),
@@ -1802,24 +2696,24 @@ const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, co
1802
2696
  });
1803
2697
  }
1804
2698
  };
1805
- const deserializeAws_restJson1ListAppComponentCompliancesCommand = async (output, context) => {
2699
+ const deserializeAws_restJson1ListAppInputSourcesCommand = async (output, context) => {
1806
2700
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1807
- return deserializeAws_restJson1ListAppComponentCompliancesCommandError(output, context);
2701
+ return deserializeAws_restJson1ListAppInputSourcesCommandError(output, context);
1808
2702
  }
1809
2703
  const contents = map({
1810
2704
  $metadata: deserializeMetadata(output),
1811
2705
  });
1812
2706
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1813
- if (data.componentCompliances != null) {
1814
- contents.componentCompliances = deserializeAws_restJson1ComponentCompliancesList(data.componentCompliances, context);
2707
+ if (data.appInputSources != null) {
2708
+ contents.appInputSources = deserializeAws_restJson1AppInputSourceList(data.appInputSources, context);
1815
2709
  }
1816
2710
  if (data.nextToken != null) {
1817
2711
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1818
2712
  }
1819
2713
  return contents;
1820
2714
  };
1821
- exports.deserializeAws_restJson1ListAppComponentCompliancesCommand = deserializeAws_restJson1ListAppComponentCompliancesCommand;
1822
- const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (output, context) => {
2715
+ exports.deserializeAws_restJson1ListAppInputSourcesCommand = deserializeAws_restJson1ListAppInputSourcesCommand;
2716
+ const deserializeAws_restJson1ListAppInputSourcesCommandError = async (output, context) => {
1823
2717
  const parsedOutput = {
1824
2718
  ...output,
1825
2719
  body: await parseErrorBody(output.body, context),
@@ -1851,24 +2745,24 @@ const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (o
1851
2745
  });
1852
2746
  }
1853
2747
  };
1854
- const deserializeAws_restJson1ListAppComponentRecommendationsCommand = async (output, context) => {
2748
+ const deserializeAws_restJson1ListAppsCommand = async (output, context) => {
1855
2749
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1856
- return deserializeAws_restJson1ListAppComponentRecommendationsCommandError(output, context);
2750
+ return deserializeAws_restJson1ListAppsCommandError(output, context);
1857
2751
  }
1858
2752
  const contents = map({
1859
2753
  $metadata: deserializeMetadata(output),
1860
2754
  });
1861
2755
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1862
- if (data.componentRecommendations != null) {
1863
- contents.componentRecommendations = deserializeAws_restJson1ComponentRecommendationList(data.componentRecommendations, context);
2756
+ if (data.appSummaries != null) {
2757
+ contents.appSummaries = deserializeAws_restJson1AppSummaryList(data.appSummaries, context);
1864
2758
  }
1865
2759
  if (data.nextToken != null) {
1866
2760
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1867
2761
  }
1868
2762
  return contents;
1869
2763
  };
1870
- exports.deserializeAws_restJson1ListAppComponentRecommendationsCommand = deserializeAws_restJson1ListAppComponentRecommendationsCommand;
1871
- const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = async (output, context) => {
2764
+ exports.deserializeAws_restJson1ListAppsCommand = deserializeAws_restJson1ListAppsCommand;
2765
+ const deserializeAws_restJson1ListAppsCommandError = async (output, context) => {
1872
2766
  const parsedOutput = {
1873
2767
  ...output,
1874
2768
  body: await parseErrorBody(output.body, context),
@@ -1881,9 +2775,6 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
1881
2775
  case "InternalServerException":
1882
2776
  case "com.amazonaws.resiliencehub#InternalServerException":
1883
2777
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1884
- case "ResourceNotFoundException":
1885
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1886
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1887
2778
  case "ThrottlingException":
1888
2779
  case "com.amazonaws.resiliencehub#ThrottlingException":
1889
2780
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
@@ -1900,24 +2791,30 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
1900
2791
  });
1901
2792
  }
1902
2793
  };
1903
- const deserializeAws_restJson1ListAppsCommand = async (output, context) => {
2794
+ const deserializeAws_restJson1ListAppVersionAppComponentsCommand = async (output, context) => {
1904
2795
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1905
- return deserializeAws_restJson1ListAppsCommandError(output, context);
2796
+ return deserializeAws_restJson1ListAppVersionAppComponentsCommandError(output, context);
1906
2797
  }
1907
2798
  const contents = map({
1908
2799
  $metadata: deserializeMetadata(output),
1909
2800
  });
1910
2801
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1911
- if (data.appSummaries != null) {
1912
- contents.appSummaries = deserializeAws_restJson1AppSummaryList(data.appSummaries, context);
2802
+ if (data.appArn != null) {
2803
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
2804
+ }
2805
+ if (data.appComponents != null) {
2806
+ contents.appComponents = deserializeAws_restJson1AppComponentList(data.appComponents, context);
2807
+ }
2808
+ if (data.appVersion != null) {
2809
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
1913
2810
  }
1914
2811
  if (data.nextToken != null) {
1915
2812
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1916
2813
  }
1917
2814
  return contents;
1918
2815
  };
1919
- exports.deserializeAws_restJson1ListAppsCommand = deserializeAws_restJson1ListAppsCommand;
1920
- const deserializeAws_restJson1ListAppsCommandError = async (output, context) => {
2816
+ exports.deserializeAws_restJson1ListAppVersionAppComponentsCommand = deserializeAws_restJson1ListAppVersionAppComponentsCommand;
2817
+ const deserializeAws_restJson1ListAppVersionAppComponentsCommandError = async (output, context) => {
1921
2818
  const parsedOutput = {
1922
2819
  ...output,
1923
2820
  body: await parseErrorBody(output.body, context),
@@ -1927,9 +2824,15 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
1927
2824
  case "AccessDeniedException":
1928
2825
  case "com.amazonaws.resiliencehub#AccessDeniedException":
1929
2826
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2827
+ case "ConflictException":
2828
+ case "com.amazonaws.resiliencehub#ConflictException":
2829
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1930
2830
  case "InternalServerException":
1931
2831
  case "com.amazonaws.resiliencehub#InternalServerException":
1932
2832
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2833
+ case "ResourceNotFoundException":
2834
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2835
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1933
2836
  case "ThrottlingException":
1934
2837
  case "com.amazonaws.resiliencehub#ThrottlingException":
1935
2838
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
@@ -2846,6 +3749,174 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
2846
3749
  });
2847
3750
  }
2848
3751
  };
3752
+ const deserializeAws_restJson1UpdateAppVersionCommand = async (output, context) => {
3753
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3754
+ return deserializeAws_restJson1UpdateAppVersionCommandError(output, context);
3755
+ }
3756
+ const contents = map({
3757
+ $metadata: deserializeMetadata(output),
3758
+ });
3759
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3760
+ if (data.additionalInfo != null) {
3761
+ contents.additionalInfo = deserializeAws_restJson1AdditionalInfoMap(data.additionalInfo, context);
3762
+ }
3763
+ if (data.appArn != null) {
3764
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
3765
+ }
3766
+ if (data.appVersion != null) {
3767
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
3768
+ }
3769
+ return contents;
3770
+ };
3771
+ exports.deserializeAws_restJson1UpdateAppVersionCommand = deserializeAws_restJson1UpdateAppVersionCommand;
3772
+ const deserializeAws_restJson1UpdateAppVersionCommandError = async (output, context) => {
3773
+ const parsedOutput = {
3774
+ ...output,
3775
+ body: await parseErrorBody(output.body, context),
3776
+ };
3777
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3778
+ switch (errorCode) {
3779
+ case "AccessDeniedException":
3780
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
3781
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3782
+ case "ConflictException":
3783
+ case "com.amazonaws.resiliencehub#ConflictException":
3784
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3785
+ case "InternalServerException":
3786
+ case "com.amazonaws.resiliencehub#InternalServerException":
3787
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3788
+ case "ResourceNotFoundException":
3789
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3790
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3791
+ case "ThrottlingException":
3792
+ case "com.amazonaws.resiliencehub#ThrottlingException":
3793
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3794
+ case "ValidationException":
3795
+ case "com.amazonaws.resiliencehub#ValidationException":
3796
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3797
+ default:
3798
+ const parsedBody = parsedOutput.body;
3799
+ (0, smithy_client_1.throwDefaultError)({
3800
+ output,
3801
+ parsedBody,
3802
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
3803
+ errorCode,
3804
+ });
3805
+ }
3806
+ };
3807
+ const deserializeAws_restJson1UpdateAppVersionAppComponentCommand = async (output, context) => {
3808
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3809
+ return deserializeAws_restJson1UpdateAppVersionAppComponentCommandError(output, context);
3810
+ }
3811
+ const contents = map({
3812
+ $metadata: deserializeMetadata(output),
3813
+ });
3814
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3815
+ if (data.appArn != null) {
3816
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
3817
+ }
3818
+ if (data.appComponent != null) {
3819
+ contents.appComponent = deserializeAws_restJson1AppComponent(data.appComponent, context);
3820
+ }
3821
+ if (data.appVersion != null) {
3822
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
3823
+ }
3824
+ return contents;
3825
+ };
3826
+ exports.deserializeAws_restJson1UpdateAppVersionAppComponentCommand = deserializeAws_restJson1UpdateAppVersionAppComponentCommand;
3827
+ const deserializeAws_restJson1UpdateAppVersionAppComponentCommandError = async (output, context) => {
3828
+ const parsedOutput = {
3829
+ ...output,
3830
+ body: await parseErrorBody(output.body, context),
3831
+ };
3832
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3833
+ switch (errorCode) {
3834
+ case "AccessDeniedException":
3835
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
3836
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3837
+ case "ConflictException":
3838
+ case "com.amazonaws.resiliencehub#ConflictException":
3839
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3840
+ case "InternalServerException":
3841
+ case "com.amazonaws.resiliencehub#InternalServerException":
3842
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3843
+ case "ResourceNotFoundException":
3844
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3845
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3846
+ case "ThrottlingException":
3847
+ case "com.amazonaws.resiliencehub#ThrottlingException":
3848
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3849
+ case "ValidationException":
3850
+ case "com.amazonaws.resiliencehub#ValidationException":
3851
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3852
+ default:
3853
+ const parsedBody = parsedOutput.body;
3854
+ (0, smithy_client_1.throwDefaultError)({
3855
+ output,
3856
+ parsedBody,
3857
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
3858
+ errorCode,
3859
+ });
3860
+ }
3861
+ };
3862
+ const deserializeAws_restJson1UpdateAppVersionResourceCommand = async (output, context) => {
3863
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3864
+ return deserializeAws_restJson1UpdateAppVersionResourceCommandError(output, context);
3865
+ }
3866
+ const contents = map({
3867
+ $metadata: deserializeMetadata(output),
3868
+ });
3869
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3870
+ if (data.appArn != null) {
3871
+ contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
3872
+ }
3873
+ if (data.appVersion != null) {
3874
+ contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
3875
+ }
3876
+ if (data.physicalResource != null) {
3877
+ contents.physicalResource = deserializeAws_restJson1PhysicalResource(data.physicalResource, context);
3878
+ }
3879
+ return contents;
3880
+ };
3881
+ exports.deserializeAws_restJson1UpdateAppVersionResourceCommand = deserializeAws_restJson1UpdateAppVersionResourceCommand;
3882
+ const deserializeAws_restJson1UpdateAppVersionResourceCommandError = async (output, context) => {
3883
+ const parsedOutput = {
3884
+ ...output,
3885
+ body: await parseErrorBody(output.body, context),
3886
+ };
3887
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3888
+ switch (errorCode) {
3889
+ case "AccessDeniedException":
3890
+ case "com.amazonaws.resiliencehub#AccessDeniedException":
3891
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3892
+ case "ConflictException":
3893
+ case "com.amazonaws.resiliencehub#ConflictException":
3894
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
3895
+ case "InternalServerException":
3896
+ case "com.amazonaws.resiliencehub#InternalServerException":
3897
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3898
+ case "ResourceNotFoundException":
3899
+ case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3900
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3901
+ case "ServiceQuotaExceededException":
3902
+ case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
3903
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
3904
+ case "ThrottlingException":
3905
+ case "com.amazonaws.resiliencehub#ThrottlingException":
3906
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3907
+ case "ValidationException":
3908
+ case "com.amazonaws.resiliencehub#ValidationException":
3909
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3910
+ default:
3911
+ const parsedBody = parsedOutput.body;
3912
+ (0, smithy_client_1.throwDefaultError)({
3913
+ output,
3914
+ parsedBody,
3915
+ exceptionCtor: ResiliencehubServiceException_1.ResiliencehubServiceException,
3916
+ errorCode,
3917
+ });
3918
+ }
3919
+ };
2849
3920
  const deserializeAws_restJson1UpdateResiliencyPolicyCommand = async (output, context) => {
2850
3921
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2851
3922
  return deserializeAws_restJson1UpdateResiliencyPolicyCommandError(output, context);
@@ -2995,6 +4066,29 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2995
4066
  });
2996
4067
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2997
4068
  };
4069
+ const serializeAws_restJson1AdditionalInfoMap = (input, context) => {
4070
+ return Object.entries(input).reduce((acc, [key, value]) => {
4071
+ if (value === null) {
4072
+ return acc;
4073
+ }
4074
+ acc[key] = serializeAws_restJson1AdditionalInfoValueList(value, context);
4075
+ return acc;
4076
+ }, {});
4077
+ };
4078
+ const serializeAws_restJson1AdditionalInfoValueList = (input, context) => {
4079
+ return input
4080
+ .filter((e) => e != null)
4081
+ .map((entry) => {
4082
+ return entry;
4083
+ });
4084
+ };
4085
+ const serializeAws_restJson1AppComponentNameList = (input, context) => {
4086
+ return input
4087
+ .filter((e) => e != null)
4088
+ .map((entry) => {
4089
+ return entry;
4090
+ });
4091
+ };
2998
4092
  const serializeAws_restJson1ArnList = (input, context) => {
2999
4093
  return input
3000
4094
  .filter((e) => e != null)
@@ -3024,6 +4118,14 @@ const serializeAws_restJson1FailurePolicy = (input, context) => {
3024
4118
  ...(input.rtoInSecs != null && { rtoInSecs: input.rtoInSecs }),
3025
4119
  };
3026
4120
  };
4121
+ const serializeAws_restJson1LogicalResourceId = (input, context) => {
4122
+ return {
4123
+ ...(input.identifier != null && { identifier: input.identifier }),
4124
+ ...(input.logicalStackName != null && { logicalStackName: input.logicalStackName }),
4125
+ ...(input.resourceGroupName != null && { resourceGroupName: input.resourceGroupName }),
4126
+ ...(input.terraformSourceName != null && { terraformSourceName: input.terraformSourceName }),
4127
+ };
4128
+ };
3027
4129
  const serializeAws_restJson1PhysicalResourceId = (input, context) => {
3028
4130
  return {
3029
4131
  ...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
@@ -3094,6 +4196,26 @@ const serializeAws_restJson1TerraformSourceList = (input, context) => {
3094
4196
  return serializeAws_restJson1TerraformSource(entry, context);
3095
4197
  });
3096
4198
  };
4199
+ const deserializeAws_restJson1AdditionalInfoMap = (output, context) => {
4200
+ return Object.entries(output).reduce((acc, [key, value]) => {
4201
+ if (value === null) {
4202
+ return acc;
4203
+ }
4204
+ acc[key] = deserializeAws_restJson1AdditionalInfoValueList(value, context);
4205
+ return acc;
4206
+ }, {});
4207
+ };
4208
+ const deserializeAws_restJson1AdditionalInfoValueList = (output, context) => {
4209
+ const retVal = (output || [])
4210
+ .filter((e) => e != null)
4211
+ .map((entry) => {
4212
+ if (entry === null) {
4213
+ return null;
4214
+ }
4215
+ return (0, smithy_client_1.expectString)(entry);
4216
+ });
4217
+ return retVal;
4218
+ };
3097
4219
  const deserializeAws_restJson1AlarmRecommendation = (output, context) => {
3098
4220
  return {
3099
4221
  appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
@@ -3203,6 +4325,10 @@ const deserializeAws_restJson1AppAssessmentSummaryList = (output, context) => {
3203
4325
  };
3204
4326
  const deserializeAws_restJson1AppComponent = (output, context) => {
3205
4327
  return {
4328
+ additionalInfo: output.additionalInfo != null
4329
+ ? deserializeAws_restJson1AdditionalInfoMap(output.additionalInfo, context)
4330
+ : undefined,
4331
+ id: (0, smithy_client_1.expectString)(output.id),
3206
4332
  name: (0, smithy_client_1.expectString)(output.name),
3207
4333
  type: (0, smithy_client_1.expectString)(output.type),
3208
4334
  };
@@ -3230,6 +4356,28 @@ const deserializeAws_restJson1AppComponentList = (output, context) => {
3230
4356
  });
3231
4357
  return retVal;
3232
4358
  };
4359
+ const deserializeAws_restJson1AppInputSource = (output, context) => {
4360
+ return {
4361
+ importType: (0, smithy_client_1.expectString)(output.importType),
4362
+ resourceCount: (0, smithy_client_1.expectInt32)(output.resourceCount),
4363
+ sourceArn: (0, smithy_client_1.expectString)(output.sourceArn),
4364
+ sourceName: (0, smithy_client_1.expectString)(output.sourceName),
4365
+ terraformSource: output.terraformSource != null
4366
+ ? deserializeAws_restJson1TerraformSource(output.terraformSource, context)
4367
+ : undefined,
4368
+ };
4369
+ };
4370
+ const deserializeAws_restJson1AppInputSourceList = (output, context) => {
4371
+ const retVal = (output || [])
4372
+ .filter((e) => e != null)
4373
+ .map((entry) => {
4374
+ if (entry === null) {
4375
+ return null;
4376
+ }
4377
+ return deserializeAws_restJson1AppInputSource(entry, context);
4378
+ });
4379
+ return retVal;
4380
+ };
3233
4381
  const deserializeAws_restJson1AppSummary = (output, context) => {
3234
4382
  return {
3235
4383
  appArn: (0, smithy_client_1.expectString)(output.appArn),
@@ -3406,9 +4554,13 @@ const deserializeAws_restJson1LogicalResourceId = (output, context) => {
3406
4554
  };
3407
4555
  const deserializeAws_restJson1PhysicalResource = (output, context) => {
3408
4556
  return {
4557
+ additionalInfo: output.additionalInfo != null
4558
+ ? deserializeAws_restJson1AdditionalInfoMap(output.additionalInfo, context)
4559
+ : undefined,
3409
4560
  appComponents: output.appComponents != null
3410
4561
  ? deserializeAws_restJson1AppComponentList(output.appComponents, context)
3411
4562
  : undefined,
4563
+ excluded: (0, smithy_client_1.expectBoolean)(output.excluded),
3412
4564
  logicalResourceId: output.logicalResourceId != null
3413
4565
  ? deserializeAws_restJson1LogicalResourceId(output.logicalResourceId, context)
3414
4566
  : undefined,