@aws-sdk/client-resiliencehub 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AddDraftAppVersionResourceMappingsCommand.js +2 -2
- package/dist-cjs/commands/CreateAppCommand.js +2 -2
- package/dist-cjs/commands/CreateAppVersionAppComponentCommand.js +2 -2
- package/dist-cjs/commands/CreateAppVersionResourceCommand.js +2 -2
- package/dist-cjs/commands/CreateRecommendationTemplateCommand.js +2 -2
- package/dist-cjs/commands/CreateResiliencyPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppAssessmentCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppInputSourceCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppVersionAppComponentCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppVersionResourceCommand.js +2 -2
- package/dist-cjs/commands/DeleteRecommendationTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteResiliencyPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppAssessmentCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppVersionAppComponentCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppVersionCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppVersionResourceCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppVersionResourcesResolutionStatusCommand.js +2 -2
- package/dist-cjs/commands/DescribeAppVersionTemplateCommand.js +2 -2
- package/dist-cjs/commands/DescribeDraftAppVersionResourcesImportStatusCommand.js +2 -2
- package/dist-cjs/commands/DescribeResiliencyPolicyCommand.js +2 -2
- package/dist-cjs/commands/ImportResourcesToDraftAppVersionCommand.js +2 -2
- package/dist-cjs/commands/ListAlarmRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ListAppAssessmentsCommand.js +2 -2
- package/dist-cjs/commands/ListAppComponentCompliancesCommand.js +2 -2
- package/dist-cjs/commands/ListAppComponentRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ListAppInputSourcesCommand.js +2 -2
- package/dist-cjs/commands/ListAppVersionAppComponentsCommand.js +2 -2
- package/dist-cjs/commands/ListAppVersionResourceMappingsCommand.js +2 -2
- package/dist-cjs/commands/ListAppVersionResourcesCommand.js +2 -2
- package/dist-cjs/commands/ListAppVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListAppsCommand.js +2 -2
- package/dist-cjs/commands/ListRecommendationTemplatesCommand.js +2 -2
- package/dist-cjs/commands/ListResiliencyPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListSopRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ListSuggestedResiliencyPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTestRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ListUnsupportedAppVersionResourcesCommand.js +2 -2
- package/dist-cjs/commands/PublishAppVersionCommand.js +2 -2
- package/dist-cjs/commands/PutDraftAppVersionTemplateCommand.js +2 -2
- package/dist-cjs/commands/RemoveDraftAppVersionResourceMappingsCommand.js +2 -2
- package/dist-cjs/commands/ResolveAppVersionResourcesCommand.js +2 -2
- package/dist-cjs/commands/StartAppAssessmentCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppVersionAppComponentCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppVersionCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppVersionResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateResiliencyPolicyCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +843 -899
- package/dist-es/commands/AddDraftAppVersionResourceMappingsCommand.js +3 -3
- package/dist-es/commands/CreateAppCommand.js +3 -3
- package/dist-es/commands/CreateAppVersionAppComponentCommand.js +3 -3
- package/dist-es/commands/CreateAppVersionResourceCommand.js +3 -3
- package/dist-es/commands/CreateRecommendationTemplateCommand.js +3 -3
- package/dist-es/commands/CreateResiliencyPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteAppAssessmentCommand.js +3 -3
- package/dist-es/commands/DeleteAppCommand.js +3 -3
- package/dist-es/commands/DeleteAppInputSourceCommand.js +3 -3
- package/dist-es/commands/DeleteAppVersionAppComponentCommand.js +3 -3
- package/dist-es/commands/DeleteAppVersionResourceCommand.js +3 -3
- package/dist-es/commands/DeleteRecommendationTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteResiliencyPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeAppAssessmentCommand.js +3 -3
- package/dist-es/commands/DescribeAppCommand.js +3 -3
- package/dist-es/commands/DescribeAppVersionAppComponentCommand.js +3 -3
- package/dist-es/commands/DescribeAppVersionCommand.js +3 -3
- package/dist-es/commands/DescribeAppVersionResourceCommand.js +3 -3
- package/dist-es/commands/DescribeAppVersionResourcesResolutionStatusCommand.js +3 -3
- package/dist-es/commands/DescribeAppVersionTemplateCommand.js +3 -3
- package/dist-es/commands/DescribeDraftAppVersionResourcesImportStatusCommand.js +3 -3
- package/dist-es/commands/DescribeResiliencyPolicyCommand.js +3 -3
- package/dist-es/commands/ImportResourcesToDraftAppVersionCommand.js +3 -3
- package/dist-es/commands/ListAlarmRecommendationsCommand.js +3 -3
- package/dist-es/commands/ListAppAssessmentsCommand.js +3 -3
- package/dist-es/commands/ListAppComponentCompliancesCommand.js +3 -3
- package/dist-es/commands/ListAppComponentRecommendationsCommand.js +3 -3
- package/dist-es/commands/ListAppInputSourcesCommand.js +3 -3
- package/dist-es/commands/ListAppVersionAppComponentsCommand.js +3 -3
- package/dist-es/commands/ListAppVersionResourceMappingsCommand.js +3 -3
- package/dist-es/commands/ListAppVersionResourcesCommand.js +3 -3
- package/dist-es/commands/ListAppVersionsCommand.js +3 -3
- package/dist-es/commands/ListAppsCommand.js +3 -3
- package/dist-es/commands/ListRecommendationTemplatesCommand.js +3 -3
- package/dist-es/commands/ListResiliencyPoliciesCommand.js +3 -3
- package/dist-es/commands/ListSopRecommendationsCommand.js +3 -3
- package/dist-es/commands/ListSuggestedResiliencyPoliciesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTestRecommendationsCommand.js +3 -3
- package/dist-es/commands/ListUnsupportedAppVersionResourcesCommand.js +3 -3
- package/dist-es/commands/PublishAppVersionCommand.js +3 -3
- package/dist-es/commands/PutDraftAppVersionTemplateCommand.js +3 -3
- package/dist-es/commands/RemoveDraftAppVersionResourceMappingsCommand.js +3 -3
- package/dist-es/commands/ResolveAppVersionResourcesCommand.js +3 -3
- package/dist-es/commands/StartAppAssessmentCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAppCommand.js +3 -3
- package/dist-es/commands/UpdateAppVersionAppComponentCommand.js +3 -3
- package/dist-es/commands/UpdateAppVersionCommand.js +3 -3
- package/dist-es/commands/UpdateAppVersionResourceCommand.js +3 -3
- package/dist-es/commands/UpdateResiliencyPolicyCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +736 -792
- package/dist-types/protocols/Aws_restJson1.d.ts +416 -104
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +104 -104
- package/package.json +35 -35
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.se_UpdateAppVersionAppComponentCommand = exports.se_UpdateAppVersionCommand = exports.se_UpdateAppCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartAppAssessmentCommand = exports.se_ResolveAppVersionResourcesCommand = exports.se_RemoveDraftAppVersionResourceMappingsCommand = exports.se_PutDraftAppVersionTemplateCommand = exports.se_PublishAppVersionCommand = exports.se_ListUnsupportedAppVersionResourcesCommand = exports.se_ListTestRecommendationsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSuggestedResiliencyPoliciesCommand = exports.se_ListSopRecommendationsCommand = exports.se_ListResiliencyPoliciesCommand = exports.se_ListRecommendationTemplatesCommand = exports.se_ListAppVersionsCommand = exports.se_ListAppVersionResourcesCommand = exports.se_ListAppVersionResourceMappingsCommand = exports.se_ListAppVersionAppComponentsCommand = exports.se_ListAppsCommand = exports.se_ListAppInputSourcesCommand = exports.se_ListAppComponentRecommendationsCommand = exports.se_ListAppComponentCompliancesCommand = exports.se_ListAppAssessmentsCommand = exports.se_ListAlarmRecommendationsCommand = exports.se_ImportResourcesToDraftAppVersionCommand = exports.se_DescribeResiliencyPolicyCommand = exports.se_DescribeDraftAppVersionResourcesImportStatusCommand = exports.se_DescribeAppVersionTemplateCommand = exports.se_DescribeAppVersionResourcesResolutionStatusCommand = exports.se_DescribeAppVersionResourceCommand = exports.se_DescribeAppVersionAppComponentCommand = exports.se_DescribeAppVersionCommand = exports.se_DescribeAppAssessmentCommand = exports.se_DescribeAppCommand = exports.se_DeleteResiliencyPolicyCommand = exports.se_DeleteRecommendationTemplateCommand = exports.se_DeleteAppVersionResourceCommand = exports.se_DeleteAppVersionAppComponentCommand = exports.se_DeleteAppInputSourceCommand = exports.se_DeleteAppAssessmentCommand = exports.se_DeleteAppCommand = exports.se_CreateResiliencyPolicyCommand = exports.se_CreateRecommendationTemplateCommand = exports.se_CreateAppVersionResourceCommand = exports.se_CreateAppVersionAppComponentCommand = exports.se_CreateAppCommand = exports.se_AddDraftAppVersionResourceMappingsCommand = void 0;
|
|
4
|
+
exports.de_UpdateAppCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartAppAssessmentCommand = exports.de_ResolveAppVersionResourcesCommand = exports.de_RemoveDraftAppVersionResourceMappingsCommand = exports.de_PutDraftAppVersionTemplateCommand = exports.de_PublishAppVersionCommand = exports.de_ListUnsupportedAppVersionResourcesCommand = exports.de_ListTestRecommendationsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSuggestedResiliencyPoliciesCommand = exports.de_ListSopRecommendationsCommand = exports.de_ListResiliencyPoliciesCommand = exports.de_ListRecommendationTemplatesCommand = exports.de_ListAppVersionsCommand = exports.de_ListAppVersionResourcesCommand = exports.de_ListAppVersionResourceMappingsCommand = exports.de_ListAppVersionAppComponentsCommand = exports.de_ListAppsCommand = exports.de_ListAppInputSourcesCommand = exports.de_ListAppComponentRecommendationsCommand = exports.de_ListAppComponentCompliancesCommand = exports.de_ListAppAssessmentsCommand = exports.de_ListAlarmRecommendationsCommand = exports.de_ImportResourcesToDraftAppVersionCommand = exports.de_DescribeResiliencyPolicyCommand = exports.de_DescribeDraftAppVersionResourcesImportStatusCommand = exports.de_DescribeAppVersionTemplateCommand = exports.de_DescribeAppVersionResourcesResolutionStatusCommand = exports.de_DescribeAppVersionResourceCommand = exports.de_DescribeAppVersionAppComponentCommand = exports.de_DescribeAppVersionCommand = exports.de_DescribeAppAssessmentCommand = exports.de_DescribeAppCommand = exports.de_DeleteResiliencyPolicyCommand = exports.de_DeleteRecommendationTemplateCommand = exports.de_DeleteAppVersionResourceCommand = exports.de_DeleteAppVersionAppComponentCommand = exports.de_DeleteAppInputSourceCommand = exports.de_DeleteAppAssessmentCommand = exports.de_DeleteAppCommand = exports.de_CreateResiliencyPolicyCommand = exports.de_CreateRecommendationTemplateCommand = exports.de_CreateAppVersionResourceCommand = exports.de_CreateAppVersionAppComponentCommand = exports.de_CreateAppCommand = exports.de_AddDraftAppVersionResourceMappingsCommand = exports.se_UpdateResiliencyPolicyCommand = exports.se_UpdateAppVersionResourceCommand = void 0;
|
|
5
|
+
exports.de_UpdateResiliencyPolicyCommand = exports.de_UpdateAppVersionResourceCommand = exports.de_UpdateAppVersionAppComponentCommand = exports.de_UpdateAppVersionCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const ResiliencehubServiceException_1 = require("../models/ResiliencehubServiceException");
|
|
11
|
-
const
|
|
11
|
+
const se_AddDraftAppVersionResourceMappingsCommand = async (input, context) => {
|
|
12
12
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
@@ -18,7 +18,7 @@ const serializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = async (i
|
|
|
18
18
|
body = JSON.stringify({
|
|
19
19
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
20
20
|
...(input.resourceMappings != null && {
|
|
21
|
-
resourceMappings:
|
|
21
|
+
resourceMappings: se_ResourceMappingList(input.resourceMappings, context),
|
|
22
22
|
}),
|
|
23
23
|
});
|
|
24
24
|
return new protocol_http_1.HttpRequest({
|
|
@@ -31,8 +31,8 @@ const serializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = async (i
|
|
|
31
31
|
body,
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
-
exports.
|
|
35
|
-
const
|
|
34
|
+
exports.se_AddDraftAppVersionResourceMappingsCommand = se_AddDraftAppVersionResourceMappingsCommand;
|
|
35
|
+
const se_CreateAppCommand = async (input, context) => {
|
|
36
36
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
37
37
|
const headers = {
|
|
38
38
|
"content-type": "application/json",
|
|
@@ -45,7 +45,7 @@ const serializeAws_restJson1CreateAppCommand = async (input, context) => {
|
|
|
45
45
|
...(input.description != null && { description: input.description }),
|
|
46
46
|
...(input.name != null && { name: input.name }),
|
|
47
47
|
...(input.policyArn != null && { policyArn: input.policyArn }),
|
|
48
|
-
...(input.tags != null && { tags:
|
|
48
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
49
49
|
});
|
|
50
50
|
return new protocol_http_1.HttpRequest({
|
|
51
51
|
protocol,
|
|
@@ -57,8 +57,8 @@ const serializeAws_restJson1CreateAppCommand = async (input, context) => {
|
|
|
57
57
|
body,
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
-
exports.
|
|
61
|
-
const
|
|
60
|
+
exports.se_CreateAppCommand = se_CreateAppCommand;
|
|
61
|
+
const se_CreateAppVersionAppComponentCommand = async (input, context) => {
|
|
62
62
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
63
63
|
const headers = {
|
|
64
64
|
"content-type": "application/json",
|
|
@@ -66,9 +66,7 @@ const serializeAws_restJson1CreateAppVersionAppComponentCommand = async (input,
|
|
|
66
66
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-app-component";
|
|
67
67
|
let body;
|
|
68
68
|
body = JSON.stringify({
|
|
69
|
-
...(input.additionalInfo != null && {
|
|
70
|
-
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
71
|
-
}),
|
|
69
|
+
...(input.additionalInfo != null && { additionalInfo: se_AdditionalInfoMap(input.additionalInfo, context) }),
|
|
72
70
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
73
71
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
74
72
|
...(input.id != null && { id: input.id }),
|
|
@@ -85,8 +83,8 @@ const serializeAws_restJson1CreateAppVersionAppComponentCommand = async (input,
|
|
|
85
83
|
body,
|
|
86
84
|
});
|
|
87
85
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
86
|
+
exports.se_CreateAppVersionAppComponentCommand = se_CreateAppVersionAppComponentCommand;
|
|
87
|
+
const se_CreateAppVersionResourceCommand = async (input, context) => {
|
|
90
88
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
91
89
|
const headers = {
|
|
92
90
|
"content-type": "application/json",
|
|
@@ -94,18 +92,14 @@ const serializeAws_restJson1CreateAppVersionResourceCommand = async (input, cont
|
|
|
94
92
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-app-version-resource";
|
|
95
93
|
let body;
|
|
96
94
|
body = JSON.stringify({
|
|
97
|
-
...(input.additionalInfo != null && {
|
|
98
|
-
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
99
|
-
}),
|
|
95
|
+
...(input.additionalInfo != null && { additionalInfo: se_AdditionalInfoMap(input.additionalInfo, context) }),
|
|
100
96
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
101
|
-
...(input.appComponents != null && {
|
|
102
|
-
appComponents: serializeAws_restJson1AppComponentNameList(input.appComponents, context),
|
|
103
|
-
}),
|
|
97
|
+
...(input.appComponents != null && { appComponents: se_AppComponentNameList(input.appComponents, context) }),
|
|
104
98
|
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
105
99
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
106
100
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
107
101
|
...(input.logicalResourceId != null && {
|
|
108
|
-
logicalResourceId:
|
|
102
|
+
logicalResourceId: se_LogicalResourceId(input.logicalResourceId, context),
|
|
109
103
|
}),
|
|
110
104
|
...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
|
|
111
105
|
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
@@ -121,8 +115,8 @@ const serializeAws_restJson1CreateAppVersionResourceCommand = async (input, cont
|
|
|
121
115
|
body,
|
|
122
116
|
});
|
|
123
117
|
};
|
|
124
|
-
exports.
|
|
125
|
-
const
|
|
118
|
+
exports.se_CreateAppVersionResourceCommand = se_CreateAppVersionResourceCommand;
|
|
119
|
+
const se_CreateRecommendationTemplateCommand = async (input, context) => {
|
|
126
120
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
127
121
|
const headers = {
|
|
128
122
|
"content-type": "application/json",
|
|
@@ -136,12 +130,12 @@ const serializeAws_restJson1CreateRecommendationTemplateCommand = async (input,
|
|
|
136
130
|
...(input.format != null && { format: input.format }),
|
|
137
131
|
...(input.name != null && { name: input.name }),
|
|
138
132
|
...(input.recommendationIds != null && {
|
|
139
|
-
recommendationIds:
|
|
133
|
+
recommendationIds: se_RecommendationIdList(input.recommendationIds, context),
|
|
140
134
|
}),
|
|
141
135
|
...(input.recommendationTypes != null && {
|
|
142
|
-
recommendationTypes:
|
|
136
|
+
recommendationTypes: se_RenderRecommendationTypeList(input.recommendationTypes, context),
|
|
143
137
|
}),
|
|
144
|
-
...(input.tags != null && { tags:
|
|
138
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
145
139
|
});
|
|
146
140
|
return new protocol_http_1.HttpRequest({
|
|
147
141
|
protocol,
|
|
@@ -153,8 +147,8 @@ const serializeAws_restJson1CreateRecommendationTemplateCommand = async (input,
|
|
|
153
147
|
body,
|
|
154
148
|
});
|
|
155
149
|
};
|
|
156
|
-
exports.
|
|
157
|
-
const
|
|
150
|
+
exports.se_CreateRecommendationTemplateCommand = se_CreateRecommendationTemplateCommand;
|
|
151
|
+
const se_CreateResiliencyPolicyCommand = async (input, context) => {
|
|
158
152
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
159
153
|
const headers = {
|
|
160
154
|
"content-type": "application/json",
|
|
@@ -164,10 +158,10 @@ const serializeAws_restJson1CreateResiliencyPolicyCommand = async (input, contex
|
|
|
164
158
|
body = JSON.stringify({
|
|
165
159
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
166
160
|
...(input.dataLocationConstraint != null && { dataLocationConstraint: input.dataLocationConstraint }),
|
|
167
|
-
...(input.policy != null && { policy:
|
|
161
|
+
...(input.policy != null && { policy: se_DisruptionPolicy(input.policy, context) }),
|
|
168
162
|
...(input.policyDescription != null && { policyDescription: input.policyDescription }),
|
|
169
163
|
...(input.policyName != null && { policyName: input.policyName }),
|
|
170
|
-
...(input.tags != null && { tags:
|
|
164
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
171
165
|
...(input.tier != null && { tier: input.tier }),
|
|
172
166
|
});
|
|
173
167
|
return new protocol_http_1.HttpRequest({
|
|
@@ -180,8 +174,8 @@ const serializeAws_restJson1CreateResiliencyPolicyCommand = async (input, contex
|
|
|
180
174
|
body,
|
|
181
175
|
});
|
|
182
176
|
};
|
|
183
|
-
exports.
|
|
184
|
-
const
|
|
177
|
+
exports.se_CreateResiliencyPolicyCommand = se_CreateResiliencyPolicyCommand;
|
|
178
|
+
const se_DeleteAppCommand = async (input, context) => {
|
|
185
179
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
186
180
|
const headers = {
|
|
187
181
|
"content-type": "application/json",
|
|
@@ -203,8 +197,8 @@ const serializeAws_restJson1DeleteAppCommand = async (input, context) => {
|
|
|
203
197
|
body,
|
|
204
198
|
});
|
|
205
199
|
};
|
|
206
|
-
exports.
|
|
207
|
-
const
|
|
200
|
+
exports.se_DeleteAppCommand = se_DeleteAppCommand;
|
|
201
|
+
const se_DeleteAppAssessmentCommand = async (input, context) => {
|
|
208
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
203
|
const headers = {
|
|
210
204
|
"content-type": "application/json",
|
|
@@ -225,8 +219,8 @@ const serializeAws_restJson1DeleteAppAssessmentCommand = async (input, context)
|
|
|
225
219
|
body,
|
|
226
220
|
});
|
|
227
221
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
222
|
+
exports.se_DeleteAppAssessmentCommand = se_DeleteAppAssessmentCommand;
|
|
223
|
+
const se_DeleteAppInputSourceCommand = async (input, context) => {
|
|
230
224
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
231
225
|
const headers = {
|
|
232
226
|
"content-type": "application/json",
|
|
@@ -237,12 +231,10 @@ const serializeAws_restJson1DeleteAppInputSourceCommand = async (input, context)
|
|
|
237
231
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
238
232
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
239
233
|
...(input.eksSourceClusterNamespace != null && {
|
|
240
|
-
eksSourceClusterNamespace:
|
|
234
|
+
eksSourceClusterNamespace: se_EksSourceClusterNamespace(input.eksSourceClusterNamespace, context),
|
|
241
235
|
}),
|
|
242
236
|
...(input.sourceArn != null && { sourceArn: input.sourceArn }),
|
|
243
|
-
...(input.terraformSource != null && {
|
|
244
|
-
terraformSource: serializeAws_restJson1TerraformSource(input.terraformSource, context),
|
|
245
|
-
}),
|
|
237
|
+
...(input.terraformSource != null && { terraformSource: se_TerraformSource(input.terraformSource, context) }),
|
|
246
238
|
});
|
|
247
239
|
return new protocol_http_1.HttpRequest({
|
|
248
240
|
protocol,
|
|
@@ -254,8 +246,8 @@ const serializeAws_restJson1DeleteAppInputSourceCommand = async (input, context)
|
|
|
254
246
|
body,
|
|
255
247
|
});
|
|
256
248
|
};
|
|
257
|
-
exports.
|
|
258
|
-
const
|
|
249
|
+
exports.se_DeleteAppInputSourceCommand = se_DeleteAppInputSourceCommand;
|
|
250
|
+
const se_DeleteAppVersionAppComponentCommand = async (input, context) => {
|
|
259
251
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
260
252
|
const headers = {
|
|
261
253
|
"content-type": "application/json",
|
|
@@ -277,8 +269,8 @@ const serializeAws_restJson1DeleteAppVersionAppComponentCommand = async (input,
|
|
|
277
269
|
body,
|
|
278
270
|
});
|
|
279
271
|
};
|
|
280
|
-
exports.
|
|
281
|
-
const
|
|
272
|
+
exports.se_DeleteAppVersionAppComponentCommand = se_DeleteAppVersionAppComponentCommand;
|
|
273
|
+
const se_DeleteAppVersionResourceCommand = async (input, context) => {
|
|
282
274
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
283
275
|
const headers = {
|
|
284
276
|
"content-type": "application/json",
|
|
@@ -291,7 +283,7 @@ const serializeAws_restJson1DeleteAppVersionResourceCommand = async (input, cont
|
|
|
291
283
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
292
284
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
293
285
|
...(input.logicalResourceId != null && {
|
|
294
|
-
logicalResourceId:
|
|
286
|
+
logicalResourceId: se_LogicalResourceId(input.logicalResourceId, context),
|
|
295
287
|
}),
|
|
296
288
|
...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
|
|
297
289
|
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
@@ -306,8 +298,8 @@ const serializeAws_restJson1DeleteAppVersionResourceCommand = async (input, cont
|
|
|
306
298
|
body,
|
|
307
299
|
});
|
|
308
300
|
};
|
|
309
|
-
exports.
|
|
310
|
-
const
|
|
301
|
+
exports.se_DeleteAppVersionResourceCommand = se_DeleteAppVersionResourceCommand;
|
|
302
|
+
const se_DeleteRecommendationTemplateCommand = async (input, context) => {
|
|
311
303
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
312
304
|
const headers = {
|
|
313
305
|
"content-type": "application/json",
|
|
@@ -328,8 +320,8 @@ const serializeAws_restJson1DeleteRecommendationTemplateCommand = async (input,
|
|
|
328
320
|
body,
|
|
329
321
|
});
|
|
330
322
|
};
|
|
331
|
-
exports.
|
|
332
|
-
const
|
|
323
|
+
exports.se_DeleteRecommendationTemplateCommand = se_DeleteRecommendationTemplateCommand;
|
|
324
|
+
const se_DeleteResiliencyPolicyCommand = async (input, context) => {
|
|
333
325
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
334
326
|
const headers = {
|
|
335
327
|
"content-type": "application/json",
|
|
@@ -350,8 +342,8 @@ const serializeAws_restJson1DeleteResiliencyPolicyCommand = async (input, contex
|
|
|
350
342
|
body,
|
|
351
343
|
});
|
|
352
344
|
};
|
|
353
|
-
exports.
|
|
354
|
-
const
|
|
345
|
+
exports.se_DeleteResiliencyPolicyCommand = se_DeleteResiliencyPolicyCommand;
|
|
346
|
+
const se_DescribeAppCommand = async (input, context) => {
|
|
355
347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
356
348
|
const headers = {
|
|
357
349
|
"content-type": "application/json",
|
|
@@ -371,8 +363,8 @@ const serializeAws_restJson1DescribeAppCommand = async (input, context) => {
|
|
|
371
363
|
body,
|
|
372
364
|
});
|
|
373
365
|
};
|
|
374
|
-
exports.
|
|
375
|
-
const
|
|
366
|
+
exports.se_DescribeAppCommand = se_DescribeAppCommand;
|
|
367
|
+
const se_DescribeAppAssessmentCommand = async (input, context) => {
|
|
376
368
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
377
369
|
const headers = {
|
|
378
370
|
"content-type": "application/json",
|
|
@@ -392,8 +384,8 @@ const serializeAws_restJson1DescribeAppAssessmentCommand = async (input, context
|
|
|
392
384
|
body,
|
|
393
385
|
});
|
|
394
386
|
};
|
|
395
|
-
exports.
|
|
396
|
-
const
|
|
387
|
+
exports.se_DescribeAppAssessmentCommand = se_DescribeAppAssessmentCommand;
|
|
388
|
+
const se_DescribeAppVersionCommand = async (input, context) => {
|
|
397
389
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
398
390
|
const headers = {
|
|
399
391
|
"content-type": "application/json",
|
|
@@ -414,8 +406,8 @@ const serializeAws_restJson1DescribeAppVersionCommand = async (input, context) =
|
|
|
414
406
|
body,
|
|
415
407
|
});
|
|
416
408
|
};
|
|
417
|
-
exports.
|
|
418
|
-
const
|
|
409
|
+
exports.se_DescribeAppVersionCommand = se_DescribeAppVersionCommand;
|
|
410
|
+
const se_DescribeAppVersionAppComponentCommand = async (input, context) => {
|
|
419
411
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
420
412
|
const headers = {
|
|
421
413
|
"content-type": "application/json",
|
|
@@ -437,8 +429,8 @@ const serializeAws_restJson1DescribeAppVersionAppComponentCommand = async (input
|
|
|
437
429
|
body,
|
|
438
430
|
});
|
|
439
431
|
};
|
|
440
|
-
exports.
|
|
441
|
-
const
|
|
432
|
+
exports.se_DescribeAppVersionAppComponentCommand = se_DescribeAppVersionAppComponentCommand;
|
|
433
|
+
const se_DescribeAppVersionResourceCommand = async (input, context) => {
|
|
442
434
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
443
435
|
const headers = {
|
|
444
436
|
"content-type": "application/json",
|
|
@@ -451,7 +443,7 @@ const serializeAws_restJson1DescribeAppVersionResourceCommand = async (input, co
|
|
|
451
443
|
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
452
444
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
453
445
|
...(input.logicalResourceId != null && {
|
|
454
|
-
logicalResourceId:
|
|
446
|
+
logicalResourceId: se_LogicalResourceId(input.logicalResourceId, context),
|
|
455
447
|
}),
|
|
456
448
|
...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
|
|
457
449
|
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
@@ -466,8 +458,8 @@ const serializeAws_restJson1DescribeAppVersionResourceCommand = async (input, co
|
|
|
466
458
|
body,
|
|
467
459
|
});
|
|
468
460
|
};
|
|
469
|
-
exports.
|
|
470
|
-
const
|
|
461
|
+
exports.se_DescribeAppVersionResourceCommand = se_DescribeAppVersionResourceCommand;
|
|
462
|
+
const se_DescribeAppVersionResourcesResolutionStatusCommand = async (input, context) => {
|
|
471
463
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
472
464
|
const headers = {
|
|
473
465
|
"content-type": "application/json",
|
|
@@ -490,8 +482,8 @@ const serializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand =
|
|
|
490
482
|
body,
|
|
491
483
|
});
|
|
492
484
|
};
|
|
493
|
-
exports.
|
|
494
|
-
const
|
|
485
|
+
exports.se_DescribeAppVersionResourcesResolutionStatusCommand = se_DescribeAppVersionResourcesResolutionStatusCommand;
|
|
486
|
+
const se_DescribeAppVersionTemplateCommand = async (input, context) => {
|
|
495
487
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
496
488
|
const headers = {
|
|
497
489
|
"content-type": "application/json",
|
|
@@ -512,8 +504,8 @@ const serializeAws_restJson1DescribeAppVersionTemplateCommand = async (input, co
|
|
|
512
504
|
body,
|
|
513
505
|
});
|
|
514
506
|
};
|
|
515
|
-
exports.
|
|
516
|
-
const
|
|
507
|
+
exports.se_DescribeAppVersionTemplateCommand = se_DescribeAppVersionTemplateCommand;
|
|
508
|
+
const se_DescribeDraftAppVersionResourcesImportStatusCommand = async (input, context) => {
|
|
517
509
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
518
510
|
const headers = {
|
|
519
511
|
"content-type": "application/json",
|
|
@@ -534,8 +526,8 @@ const serializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommand
|
|
|
534
526
|
body,
|
|
535
527
|
});
|
|
536
528
|
};
|
|
537
|
-
exports.
|
|
538
|
-
const
|
|
529
|
+
exports.se_DescribeDraftAppVersionResourcesImportStatusCommand = se_DescribeDraftAppVersionResourcesImportStatusCommand;
|
|
530
|
+
const se_DescribeResiliencyPolicyCommand = async (input, context) => {
|
|
539
531
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
540
532
|
const headers = {
|
|
541
533
|
"content-type": "application/json",
|
|
@@ -555,8 +547,8 @@ const serializeAws_restJson1DescribeResiliencyPolicyCommand = async (input, cont
|
|
|
555
547
|
body,
|
|
556
548
|
});
|
|
557
549
|
};
|
|
558
|
-
exports.
|
|
559
|
-
const
|
|
550
|
+
exports.se_DescribeResiliencyPolicyCommand = se_DescribeResiliencyPolicyCommand;
|
|
551
|
+
const se_ImportResourcesToDraftAppVersionCommand = async (input, context) => {
|
|
560
552
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
561
553
|
const headers = {
|
|
562
554
|
"content-type": "application/json",
|
|
@@ -565,11 +557,11 @@ const serializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (inp
|
|
|
565
557
|
let body;
|
|
566
558
|
body = JSON.stringify({
|
|
567
559
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
568
|
-
...(input.eksSources != null && { eksSources:
|
|
560
|
+
...(input.eksSources != null && { eksSources: se_EksSourceList(input.eksSources, context) }),
|
|
569
561
|
...(input.importStrategy != null && { importStrategy: input.importStrategy }),
|
|
570
|
-
...(input.sourceArns != null && { sourceArns:
|
|
562
|
+
...(input.sourceArns != null && { sourceArns: se_ArnList(input.sourceArns, context) }),
|
|
571
563
|
...(input.terraformSources != null && {
|
|
572
|
-
terraformSources:
|
|
564
|
+
terraformSources: se_TerraformSourceList(input.terraformSources, context),
|
|
573
565
|
}),
|
|
574
566
|
});
|
|
575
567
|
return new protocol_http_1.HttpRequest({
|
|
@@ -582,8 +574,8 @@ const serializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (inp
|
|
|
582
574
|
body,
|
|
583
575
|
});
|
|
584
576
|
};
|
|
585
|
-
exports.
|
|
586
|
-
const
|
|
577
|
+
exports.se_ImportResourcesToDraftAppVersionCommand = se_ImportResourcesToDraftAppVersionCommand;
|
|
578
|
+
const se_ListAlarmRecommendationsCommand = async (input, context) => {
|
|
587
579
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
588
580
|
const headers = {
|
|
589
581
|
"content-type": "application/json",
|
|
@@ -605,8 +597,8 @@ const serializeAws_restJson1ListAlarmRecommendationsCommand = async (input, cont
|
|
|
605
597
|
body,
|
|
606
598
|
});
|
|
607
599
|
};
|
|
608
|
-
exports.
|
|
609
|
-
const
|
|
600
|
+
exports.se_ListAlarmRecommendationsCommand = se_ListAlarmRecommendationsCommand;
|
|
601
|
+
const se_ListAppAssessmentsCommand = async (input, context) => {
|
|
610
602
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
611
603
|
const headers = {};
|
|
612
604
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-assessments";
|
|
@@ -635,8 +627,8 @@ const serializeAws_restJson1ListAppAssessmentsCommand = async (input, context) =
|
|
|
635
627
|
body,
|
|
636
628
|
});
|
|
637
629
|
};
|
|
638
|
-
exports.
|
|
639
|
-
const
|
|
630
|
+
exports.se_ListAppAssessmentsCommand = se_ListAppAssessmentsCommand;
|
|
631
|
+
const se_ListAppComponentCompliancesCommand = async (input, context) => {
|
|
640
632
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
641
633
|
const headers = {
|
|
642
634
|
"content-type": "application/json",
|
|
@@ -658,8 +650,8 @@ const serializeAws_restJson1ListAppComponentCompliancesCommand = async (input, c
|
|
|
658
650
|
body,
|
|
659
651
|
});
|
|
660
652
|
};
|
|
661
|
-
exports.
|
|
662
|
-
const
|
|
653
|
+
exports.se_ListAppComponentCompliancesCommand = se_ListAppComponentCompliancesCommand;
|
|
654
|
+
const se_ListAppComponentRecommendationsCommand = async (input, context) => {
|
|
663
655
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
664
656
|
const headers = {
|
|
665
657
|
"content-type": "application/json",
|
|
@@ -681,8 +673,8 @@ const serializeAws_restJson1ListAppComponentRecommendationsCommand = async (inpu
|
|
|
681
673
|
body,
|
|
682
674
|
});
|
|
683
675
|
};
|
|
684
|
-
exports.
|
|
685
|
-
const
|
|
676
|
+
exports.se_ListAppComponentRecommendationsCommand = se_ListAppComponentRecommendationsCommand;
|
|
677
|
+
const se_ListAppInputSourcesCommand = async (input, context) => {
|
|
686
678
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
687
679
|
const headers = {
|
|
688
680
|
"content-type": "application/json",
|
|
@@ -705,8 +697,8 @@ const serializeAws_restJson1ListAppInputSourcesCommand = async (input, context)
|
|
|
705
697
|
body,
|
|
706
698
|
});
|
|
707
699
|
};
|
|
708
|
-
exports.
|
|
709
|
-
const
|
|
700
|
+
exports.se_ListAppInputSourcesCommand = se_ListAppInputSourcesCommand;
|
|
701
|
+
const se_ListAppsCommand = async (input, context) => {
|
|
710
702
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
711
703
|
const headers = {};
|
|
712
704
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-apps";
|
|
@@ -728,8 +720,8 @@ const serializeAws_restJson1ListAppsCommand = async (input, context) => {
|
|
|
728
720
|
body,
|
|
729
721
|
});
|
|
730
722
|
};
|
|
731
|
-
exports.
|
|
732
|
-
const
|
|
723
|
+
exports.se_ListAppsCommand = se_ListAppsCommand;
|
|
724
|
+
const se_ListAppVersionAppComponentsCommand = async (input, context) => {
|
|
733
725
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
734
726
|
const headers = {
|
|
735
727
|
"content-type": "application/json",
|
|
@@ -752,8 +744,8 @@ const serializeAws_restJson1ListAppVersionAppComponentsCommand = async (input, c
|
|
|
752
744
|
body,
|
|
753
745
|
});
|
|
754
746
|
};
|
|
755
|
-
exports.
|
|
756
|
-
const
|
|
747
|
+
exports.se_ListAppVersionAppComponentsCommand = se_ListAppVersionAppComponentsCommand;
|
|
748
|
+
const se_ListAppVersionResourceMappingsCommand = async (input, context) => {
|
|
757
749
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
758
750
|
const headers = {
|
|
759
751
|
"content-type": "application/json",
|
|
@@ -776,8 +768,8 @@ const serializeAws_restJson1ListAppVersionResourceMappingsCommand = async (input
|
|
|
776
768
|
body,
|
|
777
769
|
});
|
|
778
770
|
};
|
|
779
|
-
exports.
|
|
780
|
-
const
|
|
771
|
+
exports.se_ListAppVersionResourceMappingsCommand = se_ListAppVersionResourceMappingsCommand;
|
|
772
|
+
const se_ListAppVersionResourcesCommand = async (input, context) => {
|
|
781
773
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
782
774
|
const headers = {
|
|
783
775
|
"content-type": "application/json",
|
|
@@ -801,8 +793,8 @@ const serializeAws_restJson1ListAppVersionResourcesCommand = async (input, conte
|
|
|
801
793
|
body,
|
|
802
794
|
});
|
|
803
795
|
};
|
|
804
|
-
exports.
|
|
805
|
-
const
|
|
796
|
+
exports.se_ListAppVersionResourcesCommand = se_ListAppVersionResourcesCommand;
|
|
797
|
+
const se_ListAppVersionsCommand = async (input, context) => {
|
|
806
798
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
807
799
|
const headers = {
|
|
808
800
|
"content-type": "application/json",
|
|
@@ -824,8 +816,8 @@ const serializeAws_restJson1ListAppVersionsCommand = async (input, context) => {
|
|
|
824
816
|
body,
|
|
825
817
|
});
|
|
826
818
|
};
|
|
827
|
-
exports.
|
|
828
|
-
const
|
|
819
|
+
exports.se_ListAppVersionsCommand = se_ListAppVersionsCommand;
|
|
820
|
+
const se_ListRecommendationTemplatesCommand = async (input, context) => {
|
|
829
821
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
830
822
|
const headers = {};
|
|
831
823
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-recommendation-templates";
|
|
@@ -850,8 +842,8 @@ const serializeAws_restJson1ListRecommendationTemplatesCommand = async (input, c
|
|
|
850
842
|
body,
|
|
851
843
|
});
|
|
852
844
|
};
|
|
853
|
-
exports.
|
|
854
|
-
const
|
|
845
|
+
exports.se_ListRecommendationTemplatesCommand = se_ListRecommendationTemplatesCommand;
|
|
846
|
+
const se_ListResiliencyPoliciesCommand = async (input, context) => {
|
|
855
847
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
856
848
|
const headers = {};
|
|
857
849
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-resiliency-policies";
|
|
@@ -872,8 +864,8 @@ const serializeAws_restJson1ListResiliencyPoliciesCommand = async (input, contex
|
|
|
872
864
|
body,
|
|
873
865
|
});
|
|
874
866
|
};
|
|
875
|
-
exports.
|
|
876
|
-
const
|
|
867
|
+
exports.se_ListResiliencyPoliciesCommand = se_ListResiliencyPoliciesCommand;
|
|
868
|
+
const se_ListSopRecommendationsCommand = async (input, context) => {
|
|
877
869
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
878
870
|
const headers = {
|
|
879
871
|
"content-type": "application/json",
|
|
@@ -895,8 +887,8 @@ const serializeAws_restJson1ListSopRecommendationsCommand = async (input, contex
|
|
|
895
887
|
body,
|
|
896
888
|
});
|
|
897
889
|
};
|
|
898
|
-
exports.
|
|
899
|
-
const
|
|
890
|
+
exports.se_ListSopRecommendationsCommand = se_ListSopRecommendationsCommand;
|
|
891
|
+
const se_ListSuggestedResiliencyPoliciesCommand = async (input, context) => {
|
|
900
892
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
901
893
|
const headers = {};
|
|
902
894
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-suggested-resiliency-policies";
|
|
@@ -916,8 +908,8 @@ const serializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = async (inpu
|
|
|
916
908
|
body,
|
|
917
909
|
});
|
|
918
910
|
};
|
|
919
|
-
exports.
|
|
920
|
-
const
|
|
911
|
+
exports.se_ListSuggestedResiliencyPoliciesCommand = se_ListSuggestedResiliencyPoliciesCommand;
|
|
912
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
921
913
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
922
914
|
const headers = {};
|
|
923
915
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -933,8 +925,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
933
925
|
body,
|
|
934
926
|
});
|
|
935
927
|
};
|
|
936
|
-
exports.
|
|
937
|
-
const
|
|
928
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
929
|
+
const se_ListTestRecommendationsCommand = async (input, context) => {
|
|
938
930
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
939
931
|
const headers = {
|
|
940
932
|
"content-type": "application/json",
|
|
@@ -956,8 +948,8 @@ const serializeAws_restJson1ListTestRecommendationsCommand = async (input, conte
|
|
|
956
948
|
body,
|
|
957
949
|
});
|
|
958
950
|
};
|
|
959
|
-
exports.
|
|
960
|
-
const
|
|
951
|
+
exports.se_ListTestRecommendationsCommand = se_ListTestRecommendationsCommand;
|
|
952
|
+
const se_ListUnsupportedAppVersionResourcesCommand = async (input, context) => {
|
|
961
953
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
962
954
|
const headers = {
|
|
963
955
|
"content-type": "application/json",
|
|
@@ -981,8 +973,8 @@ const serializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = async (i
|
|
|
981
973
|
body,
|
|
982
974
|
});
|
|
983
975
|
};
|
|
984
|
-
exports.
|
|
985
|
-
const
|
|
976
|
+
exports.se_ListUnsupportedAppVersionResourcesCommand = se_ListUnsupportedAppVersionResourcesCommand;
|
|
977
|
+
const se_PublishAppVersionCommand = async (input, context) => {
|
|
986
978
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
987
979
|
const headers = {
|
|
988
980
|
"content-type": "application/json",
|
|
@@ -1002,8 +994,8 @@ const serializeAws_restJson1PublishAppVersionCommand = async (input, context) =>
|
|
|
1002
994
|
body,
|
|
1003
995
|
});
|
|
1004
996
|
};
|
|
1005
|
-
exports.
|
|
1006
|
-
const
|
|
997
|
+
exports.se_PublishAppVersionCommand = se_PublishAppVersionCommand;
|
|
998
|
+
const se_PutDraftAppVersionTemplateCommand = async (input, context) => {
|
|
1007
999
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1008
1000
|
const headers = {
|
|
1009
1001
|
"content-type": "application/json",
|
|
@@ -1024,8 +1016,8 @@ const serializeAws_restJson1PutDraftAppVersionTemplateCommand = async (input, co
|
|
|
1024
1016
|
body,
|
|
1025
1017
|
});
|
|
1026
1018
|
};
|
|
1027
|
-
exports.
|
|
1028
|
-
const
|
|
1019
|
+
exports.se_PutDraftAppVersionTemplateCommand = se_PutDraftAppVersionTemplateCommand;
|
|
1020
|
+
const se_RemoveDraftAppVersionResourceMappingsCommand = async (input, context) => {
|
|
1029
1021
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1030
1022
|
const headers = {
|
|
1031
1023
|
"content-type": "application/json",
|
|
@@ -1036,22 +1028,16 @@ const serializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = async
|
|
|
1036
1028
|
body = JSON.stringify({
|
|
1037
1029
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
1038
1030
|
...(input.appRegistryAppNames != null && {
|
|
1039
|
-
appRegistryAppNames:
|
|
1040
|
-
}),
|
|
1041
|
-
...(input.eksSourceNames != null && {
|
|
1042
|
-
eksSourceNames: serializeAws_restJson1String255List(input.eksSourceNames, context),
|
|
1043
|
-
}),
|
|
1044
|
-
...(input.logicalStackNames != null && {
|
|
1045
|
-
logicalStackNames: serializeAws_restJson1String255List(input.logicalStackNames, context),
|
|
1031
|
+
appRegistryAppNames: se_EntityNameList(input.appRegistryAppNames, context),
|
|
1046
1032
|
}),
|
|
1033
|
+
...(input.eksSourceNames != null && { eksSourceNames: se_String255List(input.eksSourceNames, context) }),
|
|
1034
|
+
...(input.logicalStackNames != null && { logicalStackNames: se_String255List(input.logicalStackNames, context) }),
|
|
1047
1035
|
...(input.resourceGroupNames != null && {
|
|
1048
|
-
resourceGroupNames:
|
|
1049
|
-
}),
|
|
1050
|
-
...(input.resourceNames != null && {
|
|
1051
|
-
resourceNames: serializeAws_restJson1EntityNameList(input.resourceNames, context),
|
|
1036
|
+
resourceGroupNames: se_EntityNameList(input.resourceGroupNames, context),
|
|
1052
1037
|
}),
|
|
1038
|
+
...(input.resourceNames != null && { resourceNames: se_EntityNameList(input.resourceNames, context) }),
|
|
1053
1039
|
...(input.terraformSourceNames != null && {
|
|
1054
|
-
terraformSourceNames:
|
|
1040
|
+
terraformSourceNames: se_String255List(input.terraformSourceNames, context),
|
|
1055
1041
|
}),
|
|
1056
1042
|
});
|
|
1057
1043
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1064,8 +1050,8 @@ const serializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = async
|
|
|
1064
1050
|
body,
|
|
1065
1051
|
});
|
|
1066
1052
|
};
|
|
1067
|
-
exports.
|
|
1068
|
-
const
|
|
1053
|
+
exports.se_RemoveDraftAppVersionResourceMappingsCommand = se_RemoveDraftAppVersionResourceMappingsCommand;
|
|
1054
|
+
const se_ResolveAppVersionResourcesCommand = async (input, context) => {
|
|
1069
1055
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1070
1056
|
const headers = {
|
|
1071
1057
|
"content-type": "application/json",
|
|
@@ -1086,8 +1072,8 @@ const serializeAws_restJson1ResolveAppVersionResourcesCommand = async (input, co
|
|
|
1086
1072
|
body,
|
|
1087
1073
|
});
|
|
1088
1074
|
};
|
|
1089
|
-
exports.
|
|
1090
|
-
const
|
|
1075
|
+
exports.se_ResolveAppVersionResourcesCommand = se_ResolveAppVersionResourcesCommand;
|
|
1076
|
+
const se_StartAppAssessmentCommand = async (input, context) => {
|
|
1091
1077
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1092
1078
|
const headers = {
|
|
1093
1079
|
"content-type": "application/json",
|
|
@@ -1099,7 +1085,7 @@ const serializeAws_restJson1StartAppAssessmentCommand = async (input, context) =
|
|
|
1099
1085
|
...(input.appVersion != null && { appVersion: input.appVersion }),
|
|
1100
1086
|
...(input.assessmentName != null && { assessmentName: input.assessmentName }),
|
|
1101
1087
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1102
|
-
...(input.tags != null && { tags:
|
|
1088
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
1103
1089
|
});
|
|
1104
1090
|
return new protocol_http_1.HttpRequest({
|
|
1105
1091
|
protocol,
|
|
@@ -1111,8 +1097,8 @@ const serializeAws_restJson1StartAppAssessmentCommand = async (input, context) =
|
|
|
1111
1097
|
body,
|
|
1112
1098
|
});
|
|
1113
1099
|
};
|
|
1114
|
-
exports.
|
|
1115
|
-
const
|
|
1100
|
+
exports.se_StartAppAssessmentCommand = se_StartAppAssessmentCommand;
|
|
1101
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
1116
1102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1117
1103
|
const headers = {
|
|
1118
1104
|
"content-type": "application/json",
|
|
@@ -1121,7 +1107,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1121
1107
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1122
1108
|
let body;
|
|
1123
1109
|
body = JSON.stringify({
|
|
1124
|
-
...(input.tags != null && { tags:
|
|
1110
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
1125
1111
|
});
|
|
1126
1112
|
return new protocol_http_1.HttpRequest({
|
|
1127
1113
|
protocol,
|
|
@@ -1133,8 +1119,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1133
1119
|
body,
|
|
1134
1120
|
});
|
|
1135
1121
|
};
|
|
1136
|
-
exports.
|
|
1137
|
-
const
|
|
1122
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1123
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
1138
1124
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1139
1125
|
const headers = {};
|
|
1140
1126
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -1157,8 +1143,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1157
1143
|
body,
|
|
1158
1144
|
});
|
|
1159
1145
|
};
|
|
1160
|
-
exports.
|
|
1161
|
-
const
|
|
1146
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1147
|
+
const se_UpdateAppCommand = async (input, context) => {
|
|
1162
1148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1163
1149
|
const headers = {
|
|
1164
1150
|
"content-type": "application/json",
|
|
@@ -1182,8 +1168,8 @@ const serializeAws_restJson1UpdateAppCommand = async (input, context) => {
|
|
|
1182
1168
|
body,
|
|
1183
1169
|
});
|
|
1184
1170
|
};
|
|
1185
|
-
exports.
|
|
1186
|
-
const
|
|
1171
|
+
exports.se_UpdateAppCommand = se_UpdateAppCommand;
|
|
1172
|
+
const se_UpdateAppVersionCommand = async (input, context) => {
|
|
1187
1173
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1188
1174
|
const headers = {
|
|
1189
1175
|
"content-type": "application/json",
|
|
@@ -1191,9 +1177,7 @@ const serializeAws_restJson1UpdateAppVersionCommand = async (input, context) =>
|
|
|
1191
1177
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version";
|
|
1192
1178
|
let body;
|
|
1193
1179
|
body = JSON.stringify({
|
|
1194
|
-
...(input.additionalInfo != null && {
|
|
1195
|
-
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
1196
|
-
}),
|
|
1180
|
+
...(input.additionalInfo != null && { additionalInfo: se_AdditionalInfoMap(input.additionalInfo, context) }),
|
|
1197
1181
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
1198
1182
|
});
|
|
1199
1183
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1206,8 +1190,8 @@ const serializeAws_restJson1UpdateAppVersionCommand = async (input, context) =>
|
|
|
1206
1190
|
body,
|
|
1207
1191
|
});
|
|
1208
1192
|
};
|
|
1209
|
-
exports.
|
|
1210
|
-
const
|
|
1193
|
+
exports.se_UpdateAppVersionCommand = se_UpdateAppVersionCommand;
|
|
1194
|
+
const se_UpdateAppVersionAppComponentCommand = async (input, context) => {
|
|
1211
1195
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1212
1196
|
const headers = {
|
|
1213
1197
|
"content-type": "application/json",
|
|
@@ -1215,9 +1199,7 @@ const serializeAws_restJson1UpdateAppVersionAppComponentCommand = async (input,
|
|
|
1215
1199
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-app-component";
|
|
1216
1200
|
let body;
|
|
1217
1201
|
body = JSON.stringify({
|
|
1218
|
-
...(input.additionalInfo != null && {
|
|
1219
|
-
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
1220
|
-
}),
|
|
1202
|
+
...(input.additionalInfo != null && { additionalInfo: se_AdditionalInfoMap(input.additionalInfo, context) }),
|
|
1221
1203
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
1222
1204
|
...(input.id != null && { id: input.id }),
|
|
1223
1205
|
...(input.name != null && { name: input.name }),
|
|
@@ -1233,8 +1215,8 @@ const serializeAws_restJson1UpdateAppVersionAppComponentCommand = async (input,
|
|
|
1233
1215
|
body,
|
|
1234
1216
|
});
|
|
1235
1217
|
};
|
|
1236
|
-
exports.
|
|
1237
|
-
const
|
|
1218
|
+
exports.se_UpdateAppVersionAppComponentCommand = se_UpdateAppVersionAppComponentCommand;
|
|
1219
|
+
const se_UpdateAppVersionResourceCommand = async (input, context) => {
|
|
1238
1220
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1239
1221
|
const headers = {
|
|
1240
1222
|
"content-type": "application/json",
|
|
@@ -1242,18 +1224,14 @@ const serializeAws_restJson1UpdateAppVersionResourceCommand = async (input, cont
|
|
|
1242
1224
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-app-version-resource";
|
|
1243
1225
|
let body;
|
|
1244
1226
|
body = JSON.stringify({
|
|
1245
|
-
...(input.additionalInfo != null && {
|
|
1246
|
-
additionalInfo: serializeAws_restJson1AdditionalInfoMap(input.additionalInfo, context),
|
|
1247
|
-
}),
|
|
1227
|
+
...(input.additionalInfo != null && { additionalInfo: se_AdditionalInfoMap(input.additionalInfo, context) }),
|
|
1248
1228
|
...(input.appArn != null && { appArn: input.appArn }),
|
|
1249
|
-
...(input.appComponents != null && {
|
|
1250
|
-
appComponents: serializeAws_restJson1AppComponentNameList(input.appComponents, context),
|
|
1251
|
-
}),
|
|
1229
|
+
...(input.appComponents != null && { appComponents: se_AppComponentNameList(input.appComponents, context) }),
|
|
1252
1230
|
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
1253
1231
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
1254
1232
|
...(input.excluded != null && { excluded: input.excluded }),
|
|
1255
1233
|
...(input.logicalResourceId != null && {
|
|
1256
|
-
logicalResourceId:
|
|
1234
|
+
logicalResourceId: se_LogicalResourceId(input.logicalResourceId, context),
|
|
1257
1235
|
}),
|
|
1258
1236
|
...(input.physicalResourceId != null && { physicalResourceId: input.physicalResourceId }),
|
|
1259
1237
|
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
@@ -1269,8 +1247,8 @@ const serializeAws_restJson1UpdateAppVersionResourceCommand = async (input, cont
|
|
|
1269
1247
|
body,
|
|
1270
1248
|
});
|
|
1271
1249
|
};
|
|
1272
|
-
exports.
|
|
1273
|
-
const
|
|
1250
|
+
exports.se_UpdateAppVersionResourceCommand = se_UpdateAppVersionResourceCommand;
|
|
1251
|
+
const se_UpdateResiliencyPolicyCommand = async (input, context) => {
|
|
1274
1252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1275
1253
|
const headers = {
|
|
1276
1254
|
"content-type": "application/json",
|
|
@@ -1279,7 +1257,7 @@ const serializeAws_restJson1UpdateResiliencyPolicyCommand = async (input, contex
|
|
|
1279
1257
|
let body;
|
|
1280
1258
|
body = JSON.stringify({
|
|
1281
1259
|
...(input.dataLocationConstraint != null && { dataLocationConstraint: input.dataLocationConstraint }),
|
|
1282
|
-
...(input.policy != null && { policy:
|
|
1260
|
+
...(input.policy != null && { policy: se_DisruptionPolicy(input.policy, context) }),
|
|
1283
1261
|
...(input.policyArn != null && { policyArn: input.policyArn }),
|
|
1284
1262
|
...(input.policyDescription != null && { policyDescription: input.policyDescription }),
|
|
1285
1263
|
...(input.policyName != null && { policyName: input.policyName }),
|
|
@@ -1295,10 +1273,10 @@ const serializeAws_restJson1UpdateResiliencyPolicyCommand = async (input, contex
|
|
|
1295
1273
|
body,
|
|
1296
1274
|
});
|
|
1297
1275
|
};
|
|
1298
|
-
exports.
|
|
1299
|
-
const
|
|
1276
|
+
exports.se_UpdateResiliencyPolicyCommand = se_UpdateResiliencyPolicyCommand;
|
|
1277
|
+
const de_AddDraftAppVersionResourceMappingsCommand = async (output, context) => {
|
|
1300
1278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
|
-
return
|
|
1279
|
+
return de_AddDraftAppVersionResourceMappingsCommandError(output, context);
|
|
1302
1280
|
}
|
|
1303
1281
|
const contents = map({
|
|
1304
1282
|
$metadata: deserializeMetadata(output),
|
|
@@ -1311,12 +1289,12 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = async
|
|
|
1311
1289
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
1312
1290
|
}
|
|
1313
1291
|
if (data.resourceMappings != null) {
|
|
1314
|
-
contents.resourceMappings =
|
|
1292
|
+
contents.resourceMappings = de_ResourceMappingList(data.resourceMappings, context);
|
|
1315
1293
|
}
|
|
1316
1294
|
return contents;
|
|
1317
1295
|
};
|
|
1318
|
-
exports.
|
|
1319
|
-
const
|
|
1296
|
+
exports.de_AddDraftAppVersionResourceMappingsCommand = de_AddDraftAppVersionResourceMappingsCommand;
|
|
1297
|
+
const de_AddDraftAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
1320
1298
|
const parsedOutput = {
|
|
1321
1299
|
...output,
|
|
1322
1300
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1325,22 +1303,22 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = a
|
|
|
1325
1303
|
switch (errorCode) {
|
|
1326
1304
|
case "AccessDeniedException":
|
|
1327
1305
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1328
|
-
throw await
|
|
1306
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1329
1307
|
case "ConflictException":
|
|
1330
1308
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1331
|
-
throw await
|
|
1309
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1332
1310
|
case "InternalServerException":
|
|
1333
1311
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1334
|
-
throw await
|
|
1312
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1335
1313
|
case "ResourceNotFoundException":
|
|
1336
1314
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1337
|
-
throw await
|
|
1315
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1338
1316
|
case "ThrottlingException":
|
|
1339
1317
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1340
|
-
throw await
|
|
1318
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1341
1319
|
case "ValidationException":
|
|
1342
1320
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1343
|
-
throw await
|
|
1321
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1344
1322
|
default:
|
|
1345
1323
|
const parsedBody = parsedOutput.body;
|
|
1346
1324
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1351,21 +1329,21 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = a
|
|
|
1351
1329
|
});
|
|
1352
1330
|
}
|
|
1353
1331
|
};
|
|
1354
|
-
const
|
|
1332
|
+
const de_CreateAppCommand = async (output, context) => {
|
|
1355
1333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1356
|
-
return
|
|
1334
|
+
return de_CreateAppCommandError(output, context);
|
|
1357
1335
|
}
|
|
1358
1336
|
const contents = map({
|
|
1359
1337
|
$metadata: deserializeMetadata(output),
|
|
1360
1338
|
});
|
|
1361
1339
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1362
1340
|
if (data.app != null) {
|
|
1363
|
-
contents.app =
|
|
1341
|
+
contents.app = de_App(data.app, context);
|
|
1364
1342
|
}
|
|
1365
1343
|
return contents;
|
|
1366
1344
|
};
|
|
1367
|
-
exports.
|
|
1368
|
-
const
|
|
1345
|
+
exports.de_CreateAppCommand = de_CreateAppCommand;
|
|
1346
|
+
const de_CreateAppCommandError = async (output, context) => {
|
|
1369
1347
|
const parsedOutput = {
|
|
1370
1348
|
...output,
|
|
1371
1349
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1374,25 +1352,25 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
1374
1352
|
switch (errorCode) {
|
|
1375
1353
|
case "AccessDeniedException":
|
|
1376
1354
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1377
|
-
throw await
|
|
1355
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1378
1356
|
case "ConflictException":
|
|
1379
1357
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1380
|
-
throw await
|
|
1358
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1381
1359
|
case "InternalServerException":
|
|
1382
1360
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1383
|
-
throw await
|
|
1361
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1384
1362
|
case "ResourceNotFoundException":
|
|
1385
1363
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1386
|
-
throw await
|
|
1364
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1387
1365
|
case "ServiceQuotaExceededException":
|
|
1388
1366
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1389
|
-
throw await
|
|
1367
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1390
1368
|
case "ThrottlingException":
|
|
1391
1369
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1392
|
-
throw await
|
|
1370
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1393
1371
|
case "ValidationException":
|
|
1394
1372
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1395
|
-
throw await
|
|
1373
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1396
1374
|
default:
|
|
1397
1375
|
const parsedBody = parsedOutput.body;
|
|
1398
1376
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1403,9 +1381,9 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
1403
1381
|
});
|
|
1404
1382
|
}
|
|
1405
1383
|
};
|
|
1406
|
-
const
|
|
1384
|
+
const de_CreateAppVersionAppComponentCommand = async (output, context) => {
|
|
1407
1385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1408
|
-
return
|
|
1386
|
+
return de_CreateAppVersionAppComponentCommandError(output, context);
|
|
1409
1387
|
}
|
|
1410
1388
|
const contents = map({
|
|
1411
1389
|
$metadata: deserializeMetadata(output),
|
|
@@ -1415,15 +1393,15 @@ const deserializeAws_restJson1CreateAppVersionAppComponentCommand = async (outpu
|
|
|
1415
1393
|
contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
|
|
1416
1394
|
}
|
|
1417
1395
|
if (data.appComponent != null) {
|
|
1418
|
-
contents.appComponent =
|
|
1396
|
+
contents.appComponent = de_AppComponent(data.appComponent, context);
|
|
1419
1397
|
}
|
|
1420
1398
|
if (data.appVersion != null) {
|
|
1421
1399
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
1422
1400
|
}
|
|
1423
1401
|
return contents;
|
|
1424
1402
|
};
|
|
1425
|
-
exports.
|
|
1426
|
-
const
|
|
1403
|
+
exports.de_CreateAppVersionAppComponentCommand = de_CreateAppVersionAppComponentCommand;
|
|
1404
|
+
const de_CreateAppVersionAppComponentCommandError = async (output, context) => {
|
|
1427
1405
|
const parsedOutput = {
|
|
1428
1406
|
...output,
|
|
1429
1407
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1432,25 +1410,25 @@ const deserializeAws_restJson1CreateAppVersionAppComponentCommandError = async (
|
|
|
1432
1410
|
switch (errorCode) {
|
|
1433
1411
|
case "AccessDeniedException":
|
|
1434
1412
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1435
|
-
throw await
|
|
1413
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1436
1414
|
case "ConflictException":
|
|
1437
1415
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1438
|
-
throw await
|
|
1416
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1439
1417
|
case "InternalServerException":
|
|
1440
1418
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1441
|
-
throw await
|
|
1419
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1442
1420
|
case "ResourceNotFoundException":
|
|
1443
1421
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1444
|
-
throw await
|
|
1422
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1445
1423
|
case "ServiceQuotaExceededException":
|
|
1446
1424
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1447
|
-
throw await
|
|
1425
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1448
1426
|
case "ThrottlingException":
|
|
1449
1427
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1450
|
-
throw await
|
|
1428
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1451
1429
|
case "ValidationException":
|
|
1452
1430
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1453
|
-
throw await
|
|
1431
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1454
1432
|
default:
|
|
1455
1433
|
const parsedBody = parsedOutput.body;
|
|
1456
1434
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1461,9 +1439,9 @@ const deserializeAws_restJson1CreateAppVersionAppComponentCommandError = async (
|
|
|
1461
1439
|
});
|
|
1462
1440
|
}
|
|
1463
1441
|
};
|
|
1464
|
-
const
|
|
1442
|
+
const de_CreateAppVersionResourceCommand = async (output, context) => {
|
|
1465
1443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1466
|
-
return
|
|
1444
|
+
return de_CreateAppVersionResourceCommandError(output, context);
|
|
1467
1445
|
}
|
|
1468
1446
|
const contents = map({
|
|
1469
1447
|
$metadata: deserializeMetadata(output),
|
|
@@ -1476,12 +1454,12 @@ const deserializeAws_restJson1CreateAppVersionResourceCommand = async (output, c
|
|
|
1476
1454
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
1477
1455
|
}
|
|
1478
1456
|
if (data.physicalResource != null) {
|
|
1479
|
-
contents.physicalResource =
|
|
1457
|
+
contents.physicalResource = de_PhysicalResource(data.physicalResource, context);
|
|
1480
1458
|
}
|
|
1481
1459
|
return contents;
|
|
1482
1460
|
};
|
|
1483
|
-
exports.
|
|
1484
|
-
const
|
|
1461
|
+
exports.de_CreateAppVersionResourceCommand = de_CreateAppVersionResourceCommand;
|
|
1462
|
+
const de_CreateAppVersionResourceCommandError = async (output, context) => {
|
|
1485
1463
|
const parsedOutput = {
|
|
1486
1464
|
...output,
|
|
1487
1465
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1490,25 +1468,25 @@ const deserializeAws_restJson1CreateAppVersionResourceCommandError = async (outp
|
|
|
1490
1468
|
switch (errorCode) {
|
|
1491
1469
|
case "AccessDeniedException":
|
|
1492
1470
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1493
|
-
throw await
|
|
1471
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1494
1472
|
case "ConflictException":
|
|
1495
1473
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1496
|
-
throw await
|
|
1474
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1497
1475
|
case "InternalServerException":
|
|
1498
1476
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1499
|
-
throw await
|
|
1477
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1500
1478
|
case "ResourceNotFoundException":
|
|
1501
1479
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1502
|
-
throw await
|
|
1480
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1503
1481
|
case "ServiceQuotaExceededException":
|
|
1504
1482
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1505
|
-
throw await
|
|
1483
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1506
1484
|
case "ThrottlingException":
|
|
1507
1485
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1508
|
-
throw await
|
|
1486
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1509
1487
|
case "ValidationException":
|
|
1510
1488
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1511
|
-
throw await
|
|
1489
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1512
1490
|
default:
|
|
1513
1491
|
const parsedBody = parsedOutput.body;
|
|
1514
1492
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1519,21 +1497,21 @@ const deserializeAws_restJson1CreateAppVersionResourceCommandError = async (outp
|
|
|
1519
1497
|
});
|
|
1520
1498
|
}
|
|
1521
1499
|
};
|
|
1522
|
-
const
|
|
1500
|
+
const de_CreateRecommendationTemplateCommand = async (output, context) => {
|
|
1523
1501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1524
|
-
return
|
|
1502
|
+
return de_CreateRecommendationTemplateCommandError(output, context);
|
|
1525
1503
|
}
|
|
1526
1504
|
const contents = map({
|
|
1527
1505
|
$metadata: deserializeMetadata(output),
|
|
1528
1506
|
});
|
|
1529
1507
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1530
1508
|
if (data.recommendationTemplate != null) {
|
|
1531
|
-
contents.recommendationTemplate =
|
|
1509
|
+
contents.recommendationTemplate = de_RecommendationTemplate(data.recommendationTemplate, context);
|
|
1532
1510
|
}
|
|
1533
1511
|
return contents;
|
|
1534
1512
|
};
|
|
1535
|
-
exports.
|
|
1536
|
-
const
|
|
1513
|
+
exports.de_CreateRecommendationTemplateCommand = de_CreateRecommendationTemplateCommand;
|
|
1514
|
+
const de_CreateRecommendationTemplateCommandError = async (output, context) => {
|
|
1537
1515
|
const parsedOutput = {
|
|
1538
1516
|
...output,
|
|
1539
1517
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1542,25 +1520,25 @@ const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (
|
|
|
1542
1520
|
switch (errorCode) {
|
|
1543
1521
|
case "AccessDeniedException":
|
|
1544
1522
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1545
|
-
throw await
|
|
1523
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1546
1524
|
case "ConflictException":
|
|
1547
1525
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1548
|
-
throw await
|
|
1526
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1549
1527
|
case "InternalServerException":
|
|
1550
1528
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1551
|
-
throw await
|
|
1529
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1552
1530
|
case "ResourceNotFoundException":
|
|
1553
1531
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1554
|
-
throw await
|
|
1532
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1555
1533
|
case "ServiceQuotaExceededException":
|
|
1556
1534
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1557
|
-
throw await
|
|
1535
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1558
1536
|
case "ThrottlingException":
|
|
1559
1537
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1560
|
-
throw await
|
|
1538
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1561
1539
|
case "ValidationException":
|
|
1562
1540
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1563
|
-
throw await
|
|
1541
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1564
1542
|
default:
|
|
1565
1543
|
const parsedBody = parsedOutput.body;
|
|
1566
1544
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1571,21 +1549,21 @@ const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (
|
|
|
1571
1549
|
});
|
|
1572
1550
|
}
|
|
1573
1551
|
};
|
|
1574
|
-
const
|
|
1552
|
+
const de_CreateResiliencyPolicyCommand = async (output, context) => {
|
|
1575
1553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1576
|
-
return
|
|
1554
|
+
return de_CreateResiliencyPolicyCommandError(output, context);
|
|
1577
1555
|
}
|
|
1578
1556
|
const contents = map({
|
|
1579
1557
|
$metadata: deserializeMetadata(output),
|
|
1580
1558
|
});
|
|
1581
1559
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1582
1560
|
if (data.policy != null) {
|
|
1583
|
-
contents.policy =
|
|
1561
|
+
contents.policy = de_ResiliencyPolicy(data.policy, context);
|
|
1584
1562
|
}
|
|
1585
1563
|
return contents;
|
|
1586
1564
|
};
|
|
1587
|
-
exports.
|
|
1588
|
-
const
|
|
1565
|
+
exports.de_CreateResiliencyPolicyCommand = de_CreateResiliencyPolicyCommand;
|
|
1566
|
+
const de_CreateResiliencyPolicyCommandError = async (output, context) => {
|
|
1589
1567
|
const parsedOutput = {
|
|
1590
1568
|
...output,
|
|
1591
1569
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1594,22 +1572,22 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
|
|
|
1594
1572
|
switch (errorCode) {
|
|
1595
1573
|
case "AccessDeniedException":
|
|
1596
1574
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1597
|
-
throw await
|
|
1575
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1598
1576
|
case "ConflictException":
|
|
1599
1577
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1600
|
-
throw await
|
|
1578
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1601
1579
|
case "InternalServerException":
|
|
1602
1580
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1603
|
-
throw await
|
|
1581
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1604
1582
|
case "ServiceQuotaExceededException":
|
|
1605
1583
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
1606
|
-
throw await
|
|
1584
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1607
1585
|
case "ThrottlingException":
|
|
1608
1586
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1609
|
-
throw await
|
|
1587
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1610
1588
|
case "ValidationException":
|
|
1611
1589
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1612
|
-
throw await
|
|
1590
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1613
1591
|
default:
|
|
1614
1592
|
const parsedBody = parsedOutput.body;
|
|
1615
1593
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1620,9 +1598,9 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
|
|
|
1620
1598
|
});
|
|
1621
1599
|
}
|
|
1622
1600
|
};
|
|
1623
|
-
const
|
|
1601
|
+
const de_DeleteAppCommand = async (output, context) => {
|
|
1624
1602
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1625
|
-
return
|
|
1603
|
+
return de_DeleteAppCommandError(output, context);
|
|
1626
1604
|
}
|
|
1627
1605
|
const contents = map({
|
|
1628
1606
|
$metadata: deserializeMetadata(output),
|
|
@@ -1633,8 +1611,8 @@ const deserializeAws_restJson1DeleteAppCommand = async (output, context) => {
|
|
|
1633
1611
|
}
|
|
1634
1612
|
return contents;
|
|
1635
1613
|
};
|
|
1636
|
-
exports.
|
|
1637
|
-
const
|
|
1614
|
+
exports.de_DeleteAppCommand = de_DeleteAppCommand;
|
|
1615
|
+
const de_DeleteAppCommandError = async (output, context) => {
|
|
1638
1616
|
const parsedOutput = {
|
|
1639
1617
|
...output,
|
|
1640
1618
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1643,19 +1621,19 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1643
1621
|
switch (errorCode) {
|
|
1644
1622
|
case "ConflictException":
|
|
1645
1623
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1646
|
-
throw await
|
|
1624
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1647
1625
|
case "InternalServerException":
|
|
1648
1626
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1649
|
-
throw await
|
|
1627
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1650
1628
|
case "ResourceNotFoundException":
|
|
1651
1629
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1652
|
-
throw await
|
|
1630
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1653
1631
|
case "ThrottlingException":
|
|
1654
1632
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1655
|
-
throw await
|
|
1633
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1656
1634
|
case "ValidationException":
|
|
1657
1635
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1658
|
-
throw await
|
|
1636
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1659
1637
|
default:
|
|
1660
1638
|
const parsedBody = parsedOutput.body;
|
|
1661
1639
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1666,9 +1644,9 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1666
1644
|
});
|
|
1667
1645
|
}
|
|
1668
1646
|
};
|
|
1669
|
-
const
|
|
1647
|
+
const de_DeleteAppAssessmentCommand = async (output, context) => {
|
|
1670
1648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1671
|
-
return
|
|
1649
|
+
return de_DeleteAppAssessmentCommandError(output, context);
|
|
1672
1650
|
}
|
|
1673
1651
|
const contents = map({
|
|
1674
1652
|
$metadata: deserializeMetadata(output),
|
|
@@ -1682,8 +1660,8 @@ const deserializeAws_restJson1DeleteAppAssessmentCommand = async (output, contex
|
|
|
1682
1660
|
}
|
|
1683
1661
|
return contents;
|
|
1684
1662
|
};
|
|
1685
|
-
exports.
|
|
1686
|
-
const
|
|
1663
|
+
exports.de_DeleteAppAssessmentCommand = de_DeleteAppAssessmentCommand;
|
|
1664
|
+
const de_DeleteAppAssessmentCommandError = async (output, context) => {
|
|
1687
1665
|
const parsedOutput = {
|
|
1688
1666
|
...output,
|
|
1689
1667
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1692,22 +1670,22 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
|
|
|
1692
1670
|
switch (errorCode) {
|
|
1693
1671
|
case "AccessDeniedException":
|
|
1694
1672
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1695
|
-
throw await
|
|
1673
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1696
1674
|
case "ConflictException":
|
|
1697
1675
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1698
|
-
throw await
|
|
1676
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1699
1677
|
case "InternalServerException":
|
|
1700
1678
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1701
|
-
throw await
|
|
1679
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1702
1680
|
case "ResourceNotFoundException":
|
|
1703
1681
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1704
|
-
throw await
|
|
1682
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1705
1683
|
case "ThrottlingException":
|
|
1706
1684
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1707
|
-
throw await
|
|
1685
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1708
1686
|
case "ValidationException":
|
|
1709
1687
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1710
|
-
throw await
|
|
1688
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1711
1689
|
default:
|
|
1712
1690
|
const parsedBody = parsedOutput.body;
|
|
1713
1691
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1718,9 +1696,9 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
|
|
|
1718
1696
|
});
|
|
1719
1697
|
}
|
|
1720
1698
|
};
|
|
1721
|
-
const
|
|
1699
|
+
const de_DeleteAppInputSourceCommand = async (output, context) => {
|
|
1722
1700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1723
|
-
return
|
|
1701
|
+
return de_DeleteAppInputSourceCommandError(output, context);
|
|
1724
1702
|
}
|
|
1725
1703
|
const contents = map({
|
|
1726
1704
|
$metadata: deserializeMetadata(output),
|
|
@@ -1730,12 +1708,12 @@ const deserializeAws_restJson1DeleteAppInputSourceCommand = async (output, conte
|
|
|
1730
1708
|
contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
|
|
1731
1709
|
}
|
|
1732
1710
|
if (data.appInputSource != null) {
|
|
1733
|
-
contents.appInputSource =
|
|
1711
|
+
contents.appInputSource = de_AppInputSource(data.appInputSource, context);
|
|
1734
1712
|
}
|
|
1735
1713
|
return contents;
|
|
1736
1714
|
};
|
|
1737
|
-
exports.
|
|
1738
|
-
const
|
|
1715
|
+
exports.de_DeleteAppInputSourceCommand = de_DeleteAppInputSourceCommand;
|
|
1716
|
+
const de_DeleteAppInputSourceCommandError = async (output, context) => {
|
|
1739
1717
|
const parsedOutput = {
|
|
1740
1718
|
...output,
|
|
1741
1719
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1744,22 +1722,22 @@ const deserializeAws_restJson1DeleteAppInputSourceCommandError = async (output,
|
|
|
1744
1722
|
switch (errorCode) {
|
|
1745
1723
|
case "AccessDeniedException":
|
|
1746
1724
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1747
|
-
throw await
|
|
1725
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1748
1726
|
case "ConflictException":
|
|
1749
1727
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1750
|
-
throw await
|
|
1728
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1751
1729
|
case "InternalServerException":
|
|
1752
1730
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1753
|
-
throw await
|
|
1731
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1754
1732
|
case "ResourceNotFoundException":
|
|
1755
1733
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1756
|
-
throw await
|
|
1734
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1757
1735
|
case "ThrottlingException":
|
|
1758
1736
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1759
|
-
throw await
|
|
1737
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1760
1738
|
case "ValidationException":
|
|
1761
1739
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1762
|
-
throw await
|
|
1740
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1763
1741
|
default:
|
|
1764
1742
|
const parsedBody = parsedOutput.body;
|
|
1765
1743
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1770,9 +1748,9 @@ const deserializeAws_restJson1DeleteAppInputSourceCommandError = async (output,
|
|
|
1770
1748
|
});
|
|
1771
1749
|
}
|
|
1772
1750
|
};
|
|
1773
|
-
const
|
|
1751
|
+
const de_DeleteAppVersionAppComponentCommand = async (output, context) => {
|
|
1774
1752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1775
|
-
return
|
|
1753
|
+
return de_DeleteAppVersionAppComponentCommandError(output, context);
|
|
1776
1754
|
}
|
|
1777
1755
|
const contents = map({
|
|
1778
1756
|
$metadata: deserializeMetadata(output),
|
|
@@ -1782,15 +1760,15 @@ const deserializeAws_restJson1DeleteAppVersionAppComponentCommand = async (outpu
|
|
|
1782
1760
|
contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
|
|
1783
1761
|
}
|
|
1784
1762
|
if (data.appComponent != null) {
|
|
1785
|
-
contents.appComponent =
|
|
1763
|
+
contents.appComponent = de_AppComponent(data.appComponent, context);
|
|
1786
1764
|
}
|
|
1787
1765
|
if (data.appVersion != null) {
|
|
1788
1766
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
1789
1767
|
}
|
|
1790
1768
|
return contents;
|
|
1791
1769
|
};
|
|
1792
|
-
exports.
|
|
1793
|
-
const
|
|
1770
|
+
exports.de_DeleteAppVersionAppComponentCommand = de_DeleteAppVersionAppComponentCommand;
|
|
1771
|
+
const de_DeleteAppVersionAppComponentCommandError = async (output, context) => {
|
|
1794
1772
|
const parsedOutput = {
|
|
1795
1773
|
...output,
|
|
1796
1774
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1799,22 +1777,22 @@ const deserializeAws_restJson1DeleteAppVersionAppComponentCommandError = async (
|
|
|
1799
1777
|
switch (errorCode) {
|
|
1800
1778
|
case "AccessDeniedException":
|
|
1801
1779
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1802
|
-
throw await
|
|
1780
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1803
1781
|
case "ConflictException":
|
|
1804
1782
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1805
|
-
throw await
|
|
1783
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1806
1784
|
case "InternalServerException":
|
|
1807
1785
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1808
|
-
throw await
|
|
1786
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1809
1787
|
case "ResourceNotFoundException":
|
|
1810
1788
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1811
|
-
throw await
|
|
1789
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1812
1790
|
case "ThrottlingException":
|
|
1813
1791
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1814
|
-
throw await
|
|
1792
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1815
1793
|
case "ValidationException":
|
|
1816
1794
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1817
|
-
throw await
|
|
1795
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1818
1796
|
default:
|
|
1819
1797
|
const parsedBody = parsedOutput.body;
|
|
1820
1798
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1825,9 +1803,9 @@ const deserializeAws_restJson1DeleteAppVersionAppComponentCommandError = async (
|
|
|
1825
1803
|
});
|
|
1826
1804
|
}
|
|
1827
1805
|
};
|
|
1828
|
-
const
|
|
1806
|
+
const de_DeleteAppVersionResourceCommand = async (output, context) => {
|
|
1829
1807
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1830
|
-
return
|
|
1808
|
+
return de_DeleteAppVersionResourceCommandError(output, context);
|
|
1831
1809
|
}
|
|
1832
1810
|
const contents = map({
|
|
1833
1811
|
$metadata: deserializeMetadata(output),
|
|
@@ -1840,12 +1818,12 @@ const deserializeAws_restJson1DeleteAppVersionResourceCommand = async (output, c
|
|
|
1840
1818
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
1841
1819
|
}
|
|
1842
1820
|
if (data.physicalResource != null) {
|
|
1843
|
-
contents.physicalResource =
|
|
1821
|
+
contents.physicalResource = de_PhysicalResource(data.physicalResource, context);
|
|
1844
1822
|
}
|
|
1845
1823
|
return contents;
|
|
1846
1824
|
};
|
|
1847
|
-
exports.
|
|
1848
|
-
const
|
|
1825
|
+
exports.de_DeleteAppVersionResourceCommand = de_DeleteAppVersionResourceCommand;
|
|
1826
|
+
const de_DeleteAppVersionResourceCommandError = async (output, context) => {
|
|
1849
1827
|
const parsedOutput = {
|
|
1850
1828
|
...output,
|
|
1851
1829
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1854,22 +1832,22 @@ const deserializeAws_restJson1DeleteAppVersionResourceCommandError = async (outp
|
|
|
1854
1832
|
switch (errorCode) {
|
|
1855
1833
|
case "AccessDeniedException":
|
|
1856
1834
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1857
|
-
throw await
|
|
1835
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1858
1836
|
case "ConflictException":
|
|
1859
1837
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1860
|
-
throw await
|
|
1838
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1861
1839
|
case "InternalServerException":
|
|
1862
1840
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1863
|
-
throw await
|
|
1841
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1864
1842
|
case "ResourceNotFoundException":
|
|
1865
1843
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1866
|
-
throw await
|
|
1844
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1867
1845
|
case "ThrottlingException":
|
|
1868
1846
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1869
|
-
throw await
|
|
1847
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1870
1848
|
case "ValidationException":
|
|
1871
1849
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1872
|
-
throw await
|
|
1850
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1873
1851
|
default:
|
|
1874
1852
|
const parsedBody = parsedOutput.body;
|
|
1875
1853
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1880,9 +1858,9 @@ const deserializeAws_restJson1DeleteAppVersionResourceCommandError = async (outp
|
|
|
1880
1858
|
});
|
|
1881
1859
|
}
|
|
1882
1860
|
};
|
|
1883
|
-
const
|
|
1861
|
+
const de_DeleteRecommendationTemplateCommand = async (output, context) => {
|
|
1884
1862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1885
|
-
return
|
|
1863
|
+
return de_DeleteRecommendationTemplateCommandError(output, context);
|
|
1886
1864
|
}
|
|
1887
1865
|
const contents = map({
|
|
1888
1866
|
$metadata: deserializeMetadata(output),
|
|
@@ -1896,8 +1874,8 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommand = async (outpu
|
|
|
1896
1874
|
}
|
|
1897
1875
|
return contents;
|
|
1898
1876
|
};
|
|
1899
|
-
exports.
|
|
1900
|
-
const
|
|
1877
|
+
exports.de_DeleteRecommendationTemplateCommand = de_DeleteRecommendationTemplateCommand;
|
|
1878
|
+
const de_DeleteRecommendationTemplateCommandError = async (output, context) => {
|
|
1901
1879
|
const parsedOutput = {
|
|
1902
1880
|
...output,
|
|
1903
1881
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1906,19 +1884,19 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (
|
|
|
1906
1884
|
switch (errorCode) {
|
|
1907
1885
|
case "AccessDeniedException":
|
|
1908
1886
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1909
|
-
throw await
|
|
1887
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1910
1888
|
case "InternalServerException":
|
|
1911
1889
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1912
|
-
throw await
|
|
1890
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1913
1891
|
case "ResourceNotFoundException":
|
|
1914
1892
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1915
|
-
throw await
|
|
1893
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1916
1894
|
case "ThrottlingException":
|
|
1917
1895
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1918
|
-
throw await
|
|
1896
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1919
1897
|
case "ValidationException":
|
|
1920
1898
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1921
|
-
throw await
|
|
1899
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1922
1900
|
default:
|
|
1923
1901
|
const parsedBody = parsedOutput.body;
|
|
1924
1902
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1929,9 +1907,9 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (
|
|
|
1929
1907
|
});
|
|
1930
1908
|
}
|
|
1931
1909
|
};
|
|
1932
|
-
const
|
|
1910
|
+
const de_DeleteResiliencyPolicyCommand = async (output, context) => {
|
|
1933
1911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1934
|
-
return
|
|
1912
|
+
return de_DeleteResiliencyPolicyCommandError(output, context);
|
|
1935
1913
|
}
|
|
1936
1914
|
const contents = map({
|
|
1937
1915
|
$metadata: deserializeMetadata(output),
|
|
@@ -1942,8 +1920,8 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommand = async (output, con
|
|
|
1942
1920
|
}
|
|
1943
1921
|
return contents;
|
|
1944
1922
|
};
|
|
1945
|
-
exports.
|
|
1946
|
-
const
|
|
1923
|
+
exports.de_DeleteResiliencyPolicyCommand = de_DeleteResiliencyPolicyCommand;
|
|
1924
|
+
const de_DeleteResiliencyPolicyCommandError = async (output, context) => {
|
|
1947
1925
|
const parsedOutput = {
|
|
1948
1926
|
...output,
|
|
1949
1927
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1952,22 +1930,22 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
|
|
|
1952
1930
|
switch (errorCode) {
|
|
1953
1931
|
case "AccessDeniedException":
|
|
1954
1932
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1955
|
-
throw await
|
|
1933
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1956
1934
|
case "ConflictException":
|
|
1957
1935
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
1958
|
-
throw await
|
|
1936
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1959
1937
|
case "InternalServerException":
|
|
1960
1938
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1961
|
-
throw await
|
|
1939
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1962
1940
|
case "ResourceNotFoundException":
|
|
1963
1941
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1964
|
-
throw await
|
|
1942
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1965
1943
|
case "ThrottlingException":
|
|
1966
1944
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1967
|
-
throw await
|
|
1945
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1968
1946
|
case "ValidationException":
|
|
1969
1947
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1970
|
-
throw await
|
|
1948
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1971
1949
|
default:
|
|
1972
1950
|
const parsedBody = parsedOutput.body;
|
|
1973
1951
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1978,21 +1956,21 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
|
|
|
1978
1956
|
});
|
|
1979
1957
|
}
|
|
1980
1958
|
};
|
|
1981
|
-
const
|
|
1959
|
+
const de_DescribeAppCommand = async (output, context) => {
|
|
1982
1960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1983
|
-
return
|
|
1961
|
+
return de_DescribeAppCommandError(output, context);
|
|
1984
1962
|
}
|
|
1985
1963
|
const contents = map({
|
|
1986
1964
|
$metadata: deserializeMetadata(output),
|
|
1987
1965
|
});
|
|
1988
1966
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1989
1967
|
if (data.app != null) {
|
|
1990
|
-
contents.app =
|
|
1968
|
+
contents.app = de_App(data.app, context);
|
|
1991
1969
|
}
|
|
1992
1970
|
return contents;
|
|
1993
1971
|
};
|
|
1994
|
-
exports.
|
|
1995
|
-
const
|
|
1972
|
+
exports.de_DescribeAppCommand = de_DescribeAppCommand;
|
|
1973
|
+
const de_DescribeAppCommandError = async (output, context) => {
|
|
1996
1974
|
const parsedOutput = {
|
|
1997
1975
|
...output,
|
|
1998
1976
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2001,19 +1979,19 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
|
|
|
2001
1979
|
switch (errorCode) {
|
|
2002
1980
|
case "AccessDeniedException":
|
|
2003
1981
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2004
|
-
throw await
|
|
1982
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2005
1983
|
case "InternalServerException":
|
|
2006
1984
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2007
|
-
throw await
|
|
1985
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2008
1986
|
case "ResourceNotFoundException":
|
|
2009
1987
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2010
|
-
throw await
|
|
1988
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2011
1989
|
case "ThrottlingException":
|
|
2012
1990
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2013
|
-
throw await
|
|
1991
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2014
1992
|
case "ValidationException":
|
|
2015
1993
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2016
|
-
throw await
|
|
1994
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2017
1995
|
default:
|
|
2018
1996
|
const parsedBody = parsedOutput.body;
|
|
2019
1997
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2024,21 +2002,21 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
|
|
|
2024
2002
|
});
|
|
2025
2003
|
}
|
|
2026
2004
|
};
|
|
2027
|
-
const
|
|
2005
|
+
const de_DescribeAppAssessmentCommand = async (output, context) => {
|
|
2028
2006
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2029
|
-
return
|
|
2007
|
+
return de_DescribeAppAssessmentCommandError(output, context);
|
|
2030
2008
|
}
|
|
2031
2009
|
const contents = map({
|
|
2032
2010
|
$metadata: deserializeMetadata(output),
|
|
2033
2011
|
});
|
|
2034
2012
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2035
2013
|
if (data.assessment != null) {
|
|
2036
|
-
contents.assessment =
|
|
2014
|
+
contents.assessment = de_AppAssessment(data.assessment, context);
|
|
2037
2015
|
}
|
|
2038
2016
|
return contents;
|
|
2039
2017
|
};
|
|
2040
|
-
exports.
|
|
2041
|
-
const
|
|
2018
|
+
exports.de_DescribeAppAssessmentCommand = de_DescribeAppAssessmentCommand;
|
|
2019
|
+
const de_DescribeAppAssessmentCommandError = async (output, context) => {
|
|
2042
2020
|
const parsedOutput = {
|
|
2043
2021
|
...output,
|
|
2044
2022
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2047,19 +2025,19 @@ const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output,
|
|
|
2047
2025
|
switch (errorCode) {
|
|
2048
2026
|
case "AccessDeniedException":
|
|
2049
2027
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2050
|
-
throw await
|
|
2028
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2051
2029
|
case "InternalServerException":
|
|
2052
2030
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2053
|
-
throw await
|
|
2031
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2054
2032
|
case "ResourceNotFoundException":
|
|
2055
2033
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2056
|
-
throw await
|
|
2034
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2057
2035
|
case "ThrottlingException":
|
|
2058
2036
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2059
|
-
throw await
|
|
2037
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2060
2038
|
case "ValidationException":
|
|
2061
2039
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2062
|
-
throw await
|
|
2040
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2063
2041
|
default:
|
|
2064
2042
|
const parsedBody = parsedOutput.body;
|
|
2065
2043
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2070,16 +2048,16 @@ const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output,
|
|
|
2070
2048
|
});
|
|
2071
2049
|
}
|
|
2072
2050
|
};
|
|
2073
|
-
const
|
|
2051
|
+
const de_DescribeAppVersionCommand = async (output, context) => {
|
|
2074
2052
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2075
|
-
return
|
|
2053
|
+
return de_DescribeAppVersionCommandError(output, context);
|
|
2076
2054
|
}
|
|
2077
2055
|
const contents = map({
|
|
2078
2056
|
$metadata: deserializeMetadata(output),
|
|
2079
2057
|
});
|
|
2080
2058
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2081
2059
|
if (data.additionalInfo != null) {
|
|
2082
|
-
contents.additionalInfo =
|
|
2060
|
+
contents.additionalInfo = de_AdditionalInfoMap(data.additionalInfo, context);
|
|
2083
2061
|
}
|
|
2084
2062
|
if (data.appArn != null) {
|
|
2085
2063
|
contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
|
|
@@ -2089,8 +2067,8 @@ const deserializeAws_restJson1DescribeAppVersionCommand = async (output, context
|
|
|
2089
2067
|
}
|
|
2090
2068
|
return contents;
|
|
2091
2069
|
};
|
|
2092
|
-
exports.
|
|
2093
|
-
const
|
|
2070
|
+
exports.de_DescribeAppVersionCommand = de_DescribeAppVersionCommand;
|
|
2071
|
+
const de_DescribeAppVersionCommandError = async (output, context) => {
|
|
2094
2072
|
const parsedOutput = {
|
|
2095
2073
|
...output,
|
|
2096
2074
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2099,19 +2077,19 @@ const deserializeAws_restJson1DescribeAppVersionCommandError = async (output, co
|
|
|
2099
2077
|
switch (errorCode) {
|
|
2100
2078
|
case "AccessDeniedException":
|
|
2101
2079
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2102
|
-
throw await
|
|
2080
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2103
2081
|
case "InternalServerException":
|
|
2104
2082
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2105
|
-
throw await
|
|
2083
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2106
2084
|
case "ResourceNotFoundException":
|
|
2107
2085
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2108
|
-
throw await
|
|
2086
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2109
2087
|
case "ThrottlingException":
|
|
2110
2088
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2111
|
-
throw await
|
|
2089
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2112
2090
|
case "ValidationException":
|
|
2113
2091
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2114
|
-
throw await
|
|
2092
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2115
2093
|
default:
|
|
2116
2094
|
const parsedBody = parsedOutput.body;
|
|
2117
2095
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2122,9 +2100,9 @@ const deserializeAws_restJson1DescribeAppVersionCommandError = async (output, co
|
|
|
2122
2100
|
});
|
|
2123
2101
|
}
|
|
2124
2102
|
};
|
|
2125
|
-
const
|
|
2103
|
+
const de_DescribeAppVersionAppComponentCommand = async (output, context) => {
|
|
2126
2104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2127
|
-
return
|
|
2105
|
+
return de_DescribeAppVersionAppComponentCommandError(output, context);
|
|
2128
2106
|
}
|
|
2129
2107
|
const contents = map({
|
|
2130
2108
|
$metadata: deserializeMetadata(output),
|
|
@@ -2134,15 +2112,15 @@ const deserializeAws_restJson1DescribeAppVersionAppComponentCommand = async (out
|
|
|
2134
2112
|
contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
|
|
2135
2113
|
}
|
|
2136
2114
|
if (data.appComponent != null) {
|
|
2137
|
-
contents.appComponent =
|
|
2115
|
+
contents.appComponent = de_AppComponent(data.appComponent, context);
|
|
2138
2116
|
}
|
|
2139
2117
|
if (data.appVersion != null) {
|
|
2140
2118
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
2141
2119
|
}
|
|
2142
2120
|
return contents;
|
|
2143
2121
|
};
|
|
2144
|
-
exports.
|
|
2145
|
-
const
|
|
2122
|
+
exports.de_DescribeAppVersionAppComponentCommand = de_DescribeAppVersionAppComponentCommand;
|
|
2123
|
+
const de_DescribeAppVersionAppComponentCommandError = async (output, context) => {
|
|
2146
2124
|
const parsedOutput = {
|
|
2147
2125
|
...output,
|
|
2148
2126
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2151,22 +2129,22 @@ const deserializeAws_restJson1DescribeAppVersionAppComponentCommandError = async
|
|
|
2151
2129
|
switch (errorCode) {
|
|
2152
2130
|
case "AccessDeniedException":
|
|
2153
2131
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2154
|
-
throw await
|
|
2132
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2155
2133
|
case "ConflictException":
|
|
2156
2134
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2157
|
-
throw await
|
|
2135
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2158
2136
|
case "InternalServerException":
|
|
2159
2137
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2160
|
-
throw await
|
|
2138
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2161
2139
|
case "ResourceNotFoundException":
|
|
2162
2140
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2163
|
-
throw await
|
|
2141
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2164
2142
|
case "ThrottlingException":
|
|
2165
2143
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2166
|
-
throw await
|
|
2144
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2167
2145
|
case "ValidationException":
|
|
2168
2146
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2169
|
-
throw await
|
|
2147
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2170
2148
|
default:
|
|
2171
2149
|
const parsedBody = parsedOutput.body;
|
|
2172
2150
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2177,9 +2155,9 @@ const deserializeAws_restJson1DescribeAppVersionAppComponentCommandError = async
|
|
|
2177
2155
|
});
|
|
2178
2156
|
}
|
|
2179
2157
|
};
|
|
2180
|
-
const
|
|
2158
|
+
const de_DescribeAppVersionResourceCommand = async (output, context) => {
|
|
2181
2159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2182
|
-
return
|
|
2160
|
+
return de_DescribeAppVersionResourceCommandError(output, context);
|
|
2183
2161
|
}
|
|
2184
2162
|
const contents = map({
|
|
2185
2163
|
$metadata: deserializeMetadata(output),
|
|
@@ -2192,12 +2170,12 @@ const deserializeAws_restJson1DescribeAppVersionResourceCommand = async (output,
|
|
|
2192
2170
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
2193
2171
|
}
|
|
2194
2172
|
if (data.physicalResource != null) {
|
|
2195
|
-
contents.physicalResource =
|
|
2173
|
+
contents.physicalResource = de_PhysicalResource(data.physicalResource, context);
|
|
2196
2174
|
}
|
|
2197
2175
|
return contents;
|
|
2198
2176
|
};
|
|
2199
|
-
exports.
|
|
2200
|
-
const
|
|
2177
|
+
exports.de_DescribeAppVersionResourceCommand = de_DescribeAppVersionResourceCommand;
|
|
2178
|
+
const de_DescribeAppVersionResourceCommandError = async (output, context) => {
|
|
2201
2179
|
const parsedOutput = {
|
|
2202
2180
|
...output,
|
|
2203
2181
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2206,22 +2184,22 @@ const deserializeAws_restJson1DescribeAppVersionResourceCommandError = async (ou
|
|
|
2206
2184
|
switch (errorCode) {
|
|
2207
2185
|
case "AccessDeniedException":
|
|
2208
2186
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2209
|
-
throw await
|
|
2187
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2210
2188
|
case "ConflictException":
|
|
2211
2189
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2212
|
-
throw await
|
|
2190
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2213
2191
|
case "InternalServerException":
|
|
2214
2192
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2215
|
-
throw await
|
|
2193
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2216
2194
|
case "ResourceNotFoundException":
|
|
2217
2195
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2218
|
-
throw await
|
|
2196
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2219
2197
|
case "ThrottlingException":
|
|
2220
2198
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2221
|
-
throw await
|
|
2199
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2222
2200
|
case "ValidationException":
|
|
2223
2201
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2224
|
-
throw await
|
|
2202
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2225
2203
|
default:
|
|
2226
2204
|
const parsedBody = parsedOutput.body;
|
|
2227
2205
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2232,9 +2210,9 @@ const deserializeAws_restJson1DescribeAppVersionResourceCommandError = async (ou
|
|
|
2232
2210
|
});
|
|
2233
2211
|
}
|
|
2234
2212
|
};
|
|
2235
|
-
const
|
|
2213
|
+
const de_DescribeAppVersionResourcesResolutionStatusCommand = async (output, context) => {
|
|
2236
2214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2237
|
-
return
|
|
2215
|
+
return de_DescribeAppVersionResourcesResolutionStatusCommandError(output, context);
|
|
2238
2216
|
}
|
|
2239
2217
|
const contents = map({
|
|
2240
2218
|
$metadata: deserializeMetadata(output),
|
|
@@ -2257,8 +2235,8 @@ const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand
|
|
|
2257
2235
|
}
|
|
2258
2236
|
return contents;
|
|
2259
2237
|
};
|
|
2260
|
-
exports.
|
|
2261
|
-
const
|
|
2238
|
+
exports.de_DescribeAppVersionResourcesResolutionStatusCommand = de_DescribeAppVersionResourcesResolutionStatusCommand;
|
|
2239
|
+
const de_DescribeAppVersionResourcesResolutionStatusCommandError = async (output, context) => {
|
|
2262
2240
|
const parsedOutput = {
|
|
2263
2241
|
...output,
|
|
2264
2242
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2267,19 +2245,19 @@ const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand
|
|
|
2267
2245
|
switch (errorCode) {
|
|
2268
2246
|
case "AccessDeniedException":
|
|
2269
2247
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2270
|
-
throw await
|
|
2248
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2271
2249
|
case "InternalServerException":
|
|
2272
2250
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2273
|
-
throw await
|
|
2251
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2274
2252
|
case "ResourceNotFoundException":
|
|
2275
2253
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2276
|
-
throw await
|
|
2254
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2277
2255
|
case "ThrottlingException":
|
|
2278
2256
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2279
|
-
throw await
|
|
2257
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2280
2258
|
case "ValidationException":
|
|
2281
2259
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2282
|
-
throw await
|
|
2260
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2283
2261
|
default:
|
|
2284
2262
|
const parsedBody = parsedOutput.body;
|
|
2285
2263
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2290,9 +2268,9 @@ const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand
|
|
|
2290
2268
|
});
|
|
2291
2269
|
}
|
|
2292
2270
|
};
|
|
2293
|
-
const
|
|
2271
|
+
const de_DescribeAppVersionTemplateCommand = async (output, context) => {
|
|
2294
2272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2295
|
-
return
|
|
2273
|
+
return de_DescribeAppVersionTemplateCommandError(output, context);
|
|
2296
2274
|
}
|
|
2297
2275
|
const contents = map({
|
|
2298
2276
|
$metadata: deserializeMetadata(output),
|
|
@@ -2309,8 +2287,8 @@ const deserializeAws_restJson1DescribeAppVersionTemplateCommand = async (output,
|
|
|
2309
2287
|
}
|
|
2310
2288
|
return contents;
|
|
2311
2289
|
};
|
|
2312
|
-
exports.
|
|
2313
|
-
const
|
|
2290
|
+
exports.de_DescribeAppVersionTemplateCommand = de_DescribeAppVersionTemplateCommand;
|
|
2291
|
+
const de_DescribeAppVersionTemplateCommandError = async (output, context) => {
|
|
2314
2292
|
const parsedOutput = {
|
|
2315
2293
|
...output,
|
|
2316
2294
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2319,19 +2297,19 @@ const deserializeAws_restJson1DescribeAppVersionTemplateCommandError = async (ou
|
|
|
2319
2297
|
switch (errorCode) {
|
|
2320
2298
|
case "AccessDeniedException":
|
|
2321
2299
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2322
|
-
throw await
|
|
2300
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2323
2301
|
case "InternalServerException":
|
|
2324
2302
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2325
|
-
throw await
|
|
2303
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2326
2304
|
case "ResourceNotFoundException":
|
|
2327
2305
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2328
|
-
throw await
|
|
2306
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2329
2307
|
case "ThrottlingException":
|
|
2330
2308
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2331
|
-
throw await
|
|
2309
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2332
2310
|
case "ValidationException":
|
|
2333
2311
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2334
|
-
throw await
|
|
2312
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2335
2313
|
default:
|
|
2336
2314
|
const parsedBody = parsedOutput.body;
|
|
2337
2315
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2342,9 +2320,9 @@ const deserializeAws_restJson1DescribeAppVersionTemplateCommandError = async (ou
|
|
|
2342
2320
|
});
|
|
2343
2321
|
}
|
|
2344
2322
|
};
|
|
2345
|
-
const
|
|
2323
|
+
const de_DescribeDraftAppVersionResourcesImportStatusCommand = async (output, context) => {
|
|
2346
2324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2347
|
-
return
|
|
2325
|
+
return de_DescribeDraftAppVersionResourcesImportStatusCommandError(output, context);
|
|
2348
2326
|
}
|
|
2349
2327
|
const contents = map({
|
|
2350
2328
|
$metadata: deserializeMetadata(output),
|
|
@@ -2367,8 +2345,8 @@ const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusComman
|
|
|
2367
2345
|
}
|
|
2368
2346
|
return contents;
|
|
2369
2347
|
};
|
|
2370
|
-
exports.
|
|
2371
|
-
const
|
|
2348
|
+
exports.de_DescribeDraftAppVersionResourcesImportStatusCommand = de_DescribeDraftAppVersionResourcesImportStatusCommand;
|
|
2349
|
+
const de_DescribeDraftAppVersionResourcesImportStatusCommandError = async (output, context) => {
|
|
2372
2350
|
const parsedOutput = {
|
|
2373
2351
|
...output,
|
|
2374
2352
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2377,19 +2355,19 @@ const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusComman
|
|
|
2377
2355
|
switch (errorCode) {
|
|
2378
2356
|
case "AccessDeniedException":
|
|
2379
2357
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2380
|
-
throw await
|
|
2358
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2381
2359
|
case "InternalServerException":
|
|
2382
2360
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2383
|
-
throw await
|
|
2361
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2384
2362
|
case "ResourceNotFoundException":
|
|
2385
2363
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2386
|
-
throw await
|
|
2364
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2387
2365
|
case "ThrottlingException":
|
|
2388
2366
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2389
|
-
throw await
|
|
2367
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2390
2368
|
case "ValidationException":
|
|
2391
2369
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2392
|
-
throw await
|
|
2370
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2393
2371
|
default:
|
|
2394
2372
|
const parsedBody = parsedOutput.body;
|
|
2395
2373
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2400,21 +2378,21 @@ const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusComman
|
|
|
2400
2378
|
});
|
|
2401
2379
|
}
|
|
2402
2380
|
};
|
|
2403
|
-
const
|
|
2381
|
+
const de_DescribeResiliencyPolicyCommand = async (output, context) => {
|
|
2404
2382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2405
|
-
return
|
|
2383
|
+
return de_DescribeResiliencyPolicyCommandError(output, context);
|
|
2406
2384
|
}
|
|
2407
2385
|
const contents = map({
|
|
2408
2386
|
$metadata: deserializeMetadata(output),
|
|
2409
2387
|
});
|
|
2410
2388
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2411
2389
|
if (data.policy != null) {
|
|
2412
|
-
contents.policy =
|
|
2390
|
+
contents.policy = de_ResiliencyPolicy(data.policy, context);
|
|
2413
2391
|
}
|
|
2414
2392
|
return contents;
|
|
2415
2393
|
};
|
|
2416
|
-
exports.
|
|
2417
|
-
const
|
|
2394
|
+
exports.de_DescribeResiliencyPolicyCommand = de_DescribeResiliencyPolicyCommand;
|
|
2395
|
+
const de_DescribeResiliencyPolicyCommandError = async (output, context) => {
|
|
2418
2396
|
const parsedOutput = {
|
|
2419
2397
|
...output,
|
|
2420
2398
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2423,19 +2401,19 @@ const deserializeAws_restJson1DescribeResiliencyPolicyCommandError = async (outp
|
|
|
2423
2401
|
switch (errorCode) {
|
|
2424
2402
|
case "AccessDeniedException":
|
|
2425
2403
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2426
|
-
throw await
|
|
2404
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2427
2405
|
case "InternalServerException":
|
|
2428
2406
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2429
|
-
throw await
|
|
2407
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2430
2408
|
case "ResourceNotFoundException":
|
|
2431
2409
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2432
|
-
throw await
|
|
2410
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2433
2411
|
case "ThrottlingException":
|
|
2434
2412
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2435
|
-
throw await
|
|
2413
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2436
2414
|
case "ValidationException":
|
|
2437
2415
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2438
|
-
throw await
|
|
2416
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2439
2417
|
default:
|
|
2440
2418
|
const parsedBody = parsedOutput.body;
|
|
2441
2419
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2446,9 +2424,9 @@ const deserializeAws_restJson1DescribeResiliencyPolicyCommandError = async (outp
|
|
|
2446
2424
|
});
|
|
2447
2425
|
}
|
|
2448
2426
|
};
|
|
2449
|
-
const
|
|
2427
|
+
const de_ImportResourcesToDraftAppVersionCommand = async (output, context) => {
|
|
2450
2428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2451
|
-
return
|
|
2429
|
+
return de_ImportResourcesToDraftAppVersionCommandError(output, context);
|
|
2452
2430
|
}
|
|
2453
2431
|
const contents = map({
|
|
2454
2432
|
$metadata: deserializeMetadata(output),
|
|
@@ -2461,21 +2439,21 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (o
|
|
|
2461
2439
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
2462
2440
|
}
|
|
2463
2441
|
if (data.eksSources != null) {
|
|
2464
|
-
contents.eksSources =
|
|
2442
|
+
contents.eksSources = de_EksSourceList(data.eksSources, context);
|
|
2465
2443
|
}
|
|
2466
2444
|
if (data.sourceArns != null) {
|
|
2467
|
-
contents.sourceArns =
|
|
2445
|
+
contents.sourceArns = de_ArnList(data.sourceArns, context);
|
|
2468
2446
|
}
|
|
2469
2447
|
if (data.status != null) {
|
|
2470
2448
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
2471
2449
|
}
|
|
2472
2450
|
if (data.terraformSources != null) {
|
|
2473
|
-
contents.terraformSources =
|
|
2451
|
+
contents.terraformSources = de_TerraformSourceList(data.terraformSources, context);
|
|
2474
2452
|
}
|
|
2475
2453
|
return contents;
|
|
2476
2454
|
};
|
|
2477
|
-
exports.
|
|
2478
|
-
const
|
|
2455
|
+
exports.de_ImportResourcesToDraftAppVersionCommand = de_ImportResourcesToDraftAppVersionCommand;
|
|
2456
|
+
const de_ImportResourcesToDraftAppVersionCommandError = async (output, context) => {
|
|
2479
2457
|
const parsedOutput = {
|
|
2480
2458
|
...output,
|
|
2481
2459
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2484,22 +2462,22 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = asy
|
|
|
2484
2462
|
switch (errorCode) {
|
|
2485
2463
|
case "AccessDeniedException":
|
|
2486
2464
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2487
|
-
throw await
|
|
2465
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2488
2466
|
case "ConflictException":
|
|
2489
2467
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2490
|
-
throw await
|
|
2468
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2491
2469
|
case "InternalServerException":
|
|
2492
2470
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2493
|
-
throw await
|
|
2471
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2494
2472
|
case "ResourceNotFoundException":
|
|
2495
2473
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2496
|
-
throw await
|
|
2474
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2497
2475
|
case "ThrottlingException":
|
|
2498
2476
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2499
|
-
throw await
|
|
2477
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2500
2478
|
case "ValidationException":
|
|
2501
2479
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2502
|
-
throw await
|
|
2480
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2503
2481
|
default:
|
|
2504
2482
|
const parsedBody = parsedOutput.body;
|
|
2505
2483
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2510,24 +2488,24 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = asy
|
|
|
2510
2488
|
});
|
|
2511
2489
|
}
|
|
2512
2490
|
};
|
|
2513
|
-
const
|
|
2491
|
+
const de_ListAlarmRecommendationsCommand = async (output, context) => {
|
|
2514
2492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2515
|
-
return
|
|
2493
|
+
return de_ListAlarmRecommendationsCommandError(output, context);
|
|
2516
2494
|
}
|
|
2517
2495
|
const contents = map({
|
|
2518
2496
|
$metadata: deserializeMetadata(output),
|
|
2519
2497
|
});
|
|
2520
2498
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2521
2499
|
if (data.alarmRecommendations != null) {
|
|
2522
|
-
contents.alarmRecommendations =
|
|
2500
|
+
contents.alarmRecommendations = de_AlarmRecommendationList(data.alarmRecommendations, context);
|
|
2523
2501
|
}
|
|
2524
2502
|
if (data.nextToken != null) {
|
|
2525
2503
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2526
2504
|
}
|
|
2527
2505
|
return contents;
|
|
2528
2506
|
};
|
|
2529
|
-
exports.
|
|
2530
|
-
const
|
|
2507
|
+
exports.de_ListAlarmRecommendationsCommand = de_ListAlarmRecommendationsCommand;
|
|
2508
|
+
const de_ListAlarmRecommendationsCommandError = async (output, context) => {
|
|
2531
2509
|
const parsedOutput = {
|
|
2532
2510
|
...output,
|
|
2533
2511
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2536,19 +2514,19 @@ const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (outp
|
|
|
2536
2514
|
switch (errorCode) {
|
|
2537
2515
|
case "AccessDeniedException":
|
|
2538
2516
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2539
|
-
throw await
|
|
2517
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2540
2518
|
case "InternalServerException":
|
|
2541
2519
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2542
|
-
throw await
|
|
2520
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2543
2521
|
case "ResourceNotFoundException":
|
|
2544
2522
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2545
|
-
throw await
|
|
2523
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2546
2524
|
case "ThrottlingException":
|
|
2547
2525
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2548
|
-
throw await
|
|
2526
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2549
2527
|
case "ValidationException":
|
|
2550
2528
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2551
|
-
throw await
|
|
2529
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2552
2530
|
default:
|
|
2553
2531
|
const parsedBody = parsedOutput.body;
|
|
2554
2532
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2559,24 +2537,24 @@ const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (outp
|
|
|
2559
2537
|
});
|
|
2560
2538
|
}
|
|
2561
2539
|
};
|
|
2562
|
-
const
|
|
2540
|
+
const de_ListAppAssessmentsCommand = async (output, context) => {
|
|
2563
2541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2564
|
-
return
|
|
2542
|
+
return de_ListAppAssessmentsCommandError(output, context);
|
|
2565
2543
|
}
|
|
2566
2544
|
const contents = map({
|
|
2567
2545
|
$metadata: deserializeMetadata(output),
|
|
2568
2546
|
});
|
|
2569
2547
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2570
2548
|
if (data.assessmentSummaries != null) {
|
|
2571
|
-
contents.assessmentSummaries =
|
|
2549
|
+
contents.assessmentSummaries = de_AppAssessmentSummaryList(data.assessmentSummaries, context);
|
|
2572
2550
|
}
|
|
2573
2551
|
if (data.nextToken != null) {
|
|
2574
2552
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2575
2553
|
}
|
|
2576
2554
|
return contents;
|
|
2577
2555
|
};
|
|
2578
|
-
exports.
|
|
2579
|
-
const
|
|
2556
|
+
exports.de_ListAppAssessmentsCommand = de_ListAppAssessmentsCommand;
|
|
2557
|
+
const de_ListAppAssessmentsCommandError = async (output, context) => {
|
|
2580
2558
|
const parsedOutput = {
|
|
2581
2559
|
...output,
|
|
2582
2560
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2585,19 +2563,19 @@ const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, co
|
|
|
2585
2563
|
switch (errorCode) {
|
|
2586
2564
|
case "AccessDeniedException":
|
|
2587
2565
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2588
|
-
throw await
|
|
2566
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2589
2567
|
case "InternalServerException":
|
|
2590
2568
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2591
|
-
throw await
|
|
2569
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2592
2570
|
case "ResourceNotFoundException":
|
|
2593
2571
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2594
|
-
throw await
|
|
2572
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2595
2573
|
case "ThrottlingException":
|
|
2596
2574
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2597
|
-
throw await
|
|
2575
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2598
2576
|
case "ValidationException":
|
|
2599
2577
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2600
|
-
throw await
|
|
2578
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2601
2579
|
default:
|
|
2602
2580
|
const parsedBody = parsedOutput.body;
|
|
2603
2581
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2608,24 +2586,24 @@ const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, co
|
|
|
2608
2586
|
});
|
|
2609
2587
|
}
|
|
2610
2588
|
};
|
|
2611
|
-
const
|
|
2589
|
+
const de_ListAppComponentCompliancesCommand = async (output, context) => {
|
|
2612
2590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2613
|
-
return
|
|
2591
|
+
return de_ListAppComponentCompliancesCommandError(output, context);
|
|
2614
2592
|
}
|
|
2615
2593
|
const contents = map({
|
|
2616
2594
|
$metadata: deserializeMetadata(output),
|
|
2617
2595
|
});
|
|
2618
2596
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2619
2597
|
if (data.componentCompliances != null) {
|
|
2620
|
-
contents.componentCompliances =
|
|
2598
|
+
contents.componentCompliances = de_ComponentCompliancesList(data.componentCompliances, context);
|
|
2621
2599
|
}
|
|
2622
2600
|
if (data.nextToken != null) {
|
|
2623
2601
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2624
2602
|
}
|
|
2625
2603
|
return contents;
|
|
2626
2604
|
};
|
|
2627
|
-
exports.
|
|
2628
|
-
const
|
|
2605
|
+
exports.de_ListAppComponentCompliancesCommand = de_ListAppComponentCompliancesCommand;
|
|
2606
|
+
const de_ListAppComponentCompliancesCommandError = async (output, context) => {
|
|
2629
2607
|
const parsedOutput = {
|
|
2630
2608
|
...output,
|
|
2631
2609
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2634,19 +2612,19 @@ const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (o
|
|
|
2634
2612
|
switch (errorCode) {
|
|
2635
2613
|
case "AccessDeniedException":
|
|
2636
2614
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2637
|
-
throw await
|
|
2615
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2638
2616
|
case "InternalServerException":
|
|
2639
2617
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2640
|
-
throw await
|
|
2618
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2641
2619
|
case "ResourceNotFoundException":
|
|
2642
2620
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2643
|
-
throw await
|
|
2621
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2644
2622
|
case "ThrottlingException":
|
|
2645
2623
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2646
|
-
throw await
|
|
2624
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2647
2625
|
case "ValidationException":
|
|
2648
2626
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2649
|
-
throw await
|
|
2627
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2650
2628
|
default:
|
|
2651
2629
|
const parsedBody = parsedOutput.body;
|
|
2652
2630
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2657,24 +2635,24 @@ const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (o
|
|
|
2657
2635
|
});
|
|
2658
2636
|
}
|
|
2659
2637
|
};
|
|
2660
|
-
const
|
|
2638
|
+
const de_ListAppComponentRecommendationsCommand = async (output, context) => {
|
|
2661
2639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2662
|
-
return
|
|
2640
|
+
return de_ListAppComponentRecommendationsCommandError(output, context);
|
|
2663
2641
|
}
|
|
2664
2642
|
const contents = map({
|
|
2665
2643
|
$metadata: deserializeMetadata(output),
|
|
2666
2644
|
});
|
|
2667
2645
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2668
2646
|
if (data.componentRecommendations != null) {
|
|
2669
|
-
contents.componentRecommendations =
|
|
2647
|
+
contents.componentRecommendations = de_ComponentRecommendationList(data.componentRecommendations, context);
|
|
2670
2648
|
}
|
|
2671
2649
|
if (data.nextToken != null) {
|
|
2672
2650
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2673
2651
|
}
|
|
2674
2652
|
return contents;
|
|
2675
2653
|
};
|
|
2676
|
-
exports.
|
|
2677
|
-
const
|
|
2654
|
+
exports.de_ListAppComponentRecommendationsCommand = de_ListAppComponentRecommendationsCommand;
|
|
2655
|
+
const de_ListAppComponentRecommendationsCommandError = async (output, context) => {
|
|
2678
2656
|
const parsedOutput = {
|
|
2679
2657
|
...output,
|
|
2680
2658
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2683,19 +2661,19 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
|
|
|
2683
2661
|
switch (errorCode) {
|
|
2684
2662
|
case "AccessDeniedException":
|
|
2685
2663
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2686
|
-
throw await
|
|
2664
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2687
2665
|
case "InternalServerException":
|
|
2688
2666
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2689
|
-
throw await
|
|
2667
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2690
2668
|
case "ResourceNotFoundException":
|
|
2691
2669
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2692
|
-
throw await
|
|
2670
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2693
2671
|
case "ThrottlingException":
|
|
2694
2672
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2695
|
-
throw await
|
|
2673
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2696
2674
|
case "ValidationException":
|
|
2697
2675
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2698
|
-
throw await
|
|
2676
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2699
2677
|
default:
|
|
2700
2678
|
const parsedBody = parsedOutput.body;
|
|
2701
2679
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2706,24 +2684,24 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
|
|
|
2706
2684
|
});
|
|
2707
2685
|
}
|
|
2708
2686
|
};
|
|
2709
|
-
const
|
|
2687
|
+
const de_ListAppInputSourcesCommand = async (output, context) => {
|
|
2710
2688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2711
|
-
return
|
|
2689
|
+
return de_ListAppInputSourcesCommandError(output, context);
|
|
2712
2690
|
}
|
|
2713
2691
|
const contents = map({
|
|
2714
2692
|
$metadata: deserializeMetadata(output),
|
|
2715
2693
|
});
|
|
2716
2694
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2717
2695
|
if (data.appInputSources != null) {
|
|
2718
|
-
contents.appInputSources =
|
|
2696
|
+
contents.appInputSources = de_AppInputSourceList(data.appInputSources, context);
|
|
2719
2697
|
}
|
|
2720
2698
|
if (data.nextToken != null) {
|
|
2721
2699
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2722
2700
|
}
|
|
2723
2701
|
return contents;
|
|
2724
2702
|
};
|
|
2725
|
-
exports.
|
|
2726
|
-
const
|
|
2703
|
+
exports.de_ListAppInputSourcesCommand = de_ListAppInputSourcesCommand;
|
|
2704
|
+
const de_ListAppInputSourcesCommandError = async (output, context) => {
|
|
2727
2705
|
const parsedOutput = {
|
|
2728
2706
|
...output,
|
|
2729
2707
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2732,19 +2710,19 @@ const deserializeAws_restJson1ListAppInputSourcesCommandError = async (output, c
|
|
|
2732
2710
|
switch (errorCode) {
|
|
2733
2711
|
case "AccessDeniedException":
|
|
2734
2712
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2735
|
-
throw await
|
|
2713
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2736
2714
|
case "InternalServerException":
|
|
2737
2715
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2738
|
-
throw await
|
|
2716
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2739
2717
|
case "ResourceNotFoundException":
|
|
2740
2718
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2741
|
-
throw await
|
|
2719
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2742
2720
|
case "ThrottlingException":
|
|
2743
2721
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2744
|
-
throw await
|
|
2722
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2745
2723
|
case "ValidationException":
|
|
2746
2724
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2747
|
-
throw await
|
|
2725
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2748
2726
|
default:
|
|
2749
2727
|
const parsedBody = parsedOutput.body;
|
|
2750
2728
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2755,24 +2733,24 @@ const deserializeAws_restJson1ListAppInputSourcesCommandError = async (output, c
|
|
|
2755
2733
|
});
|
|
2756
2734
|
}
|
|
2757
2735
|
};
|
|
2758
|
-
const
|
|
2736
|
+
const de_ListAppsCommand = async (output, context) => {
|
|
2759
2737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2760
|
-
return
|
|
2738
|
+
return de_ListAppsCommandError(output, context);
|
|
2761
2739
|
}
|
|
2762
2740
|
const contents = map({
|
|
2763
2741
|
$metadata: deserializeMetadata(output),
|
|
2764
2742
|
});
|
|
2765
2743
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2766
2744
|
if (data.appSummaries != null) {
|
|
2767
|
-
contents.appSummaries =
|
|
2745
|
+
contents.appSummaries = de_AppSummaryList(data.appSummaries, context);
|
|
2768
2746
|
}
|
|
2769
2747
|
if (data.nextToken != null) {
|
|
2770
2748
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2771
2749
|
}
|
|
2772
2750
|
return contents;
|
|
2773
2751
|
};
|
|
2774
|
-
exports.
|
|
2775
|
-
const
|
|
2752
|
+
exports.de_ListAppsCommand = de_ListAppsCommand;
|
|
2753
|
+
const de_ListAppsCommandError = async (output, context) => {
|
|
2776
2754
|
const parsedOutput = {
|
|
2777
2755
|
...output,
|
|
2778
2756
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2781,16 +2759,16 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
2781
2759
|
switch (errorCode) {
|
|
2782
2760
|
case "AccessDeniedException":
|
|
2783
2761
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2784
|
-
throw await
|
|
2762
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2785
2763
|
case "InternalServerException":
|
|
2786
2764
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2787
|
-
throw await
|
|
2765
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2788
2766
|
case "ThrottlingException":
|
|
2789
2767
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2790
|
-
throw await
|
|
2768
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2791
2769
|
case "ValidationException":
|
|
2792
2770
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2793
|
-
throw await
|
|
2771
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2794
2772
|
default:
|
|
2795
2773
|
const parsedBody = parsedOutput.body;
|
|
2796
2774
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2801,9 +2779,9 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
2801
2779
|
});
|
|
2802
2780
|
}
|
|
2803
2781
|
};
|
|
2804
|
-
const
|
|
2782
|
+
const de_ListAppVersionAppComponentsCommand = async (output, context) => {
|
|
2805
2783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2806
|
-
return
|
|
2784
|
+
return de_ListAppVersionAppComponentsCommandError(output, context);
|
|
2807
2785
|
}
|
|
2808
2786
|
const contents = map({
|
|
2809
2787
|
$metadata: deserializeMetadata(output),
|
|
@@ -2813,7 +2791,7 @@ const deserializeAws_restJson1ListAppVersionAppComponentsCommand = async (output
|
|
|
2813
2791
|
contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
|
|
2814
2792
|
}
|
|
2815
2793
|
if (data.appComponents != null) {
|
|
2816
|
-
contents.appComponents =
|
|
2794
|
+
contents.appComponents = de_AppComponentList(data.appComponents, context);
|
|
2817
2795
|
}
|
|
2818
2796
|
if (data.appVersion != null) {
|
|
2819
2797
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
@@ -2823,8 +2801,8 @@ const deserializeAws_restJson1ListAppVersionAppComponentsCommand = async (output
|
|
|
2823
2801
|
}
|
|
2824
2802
|
return contents;
|
|
2825
2803
|
};
|
|
2826
|
-
exports.
|
|
2827
|
-
const
|
|
2804
|
+
exports.de_ListAppVersionAppComponentsCommand = de_ListAppVersionAppComponentsCommand;
|
|
2805
|
+
const de_ListAppVersionAppComponentsCommandError = async (output, context) => {
|
|
2828
2806
|
const parsedOutput = {
|
|
2829
2807
|
...output,
|
|
2830
2808
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2833,22 +2811,22 @@ const deserializeAws_restJson1ListAppVersionAppComponentsCommandError = async (o
|
|
|
2833
2811
|
switch (errorCode) {
|
|
2834
2812
|
case "AccessDeniedException":
|
|
2835
2813
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2836
|
-
throw await
|
|
2814
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2837
2815
|
case "ConflictException":
|
|
2838
2816
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2839
|
-
throw await
|
|
2817
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2840
2818
|
case "InternalServerException":
|
|
2841
2819
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2842
|
-
throw await
|
|
2820
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2843
2821
|
case "ResourceNotFoundException":
|
|
2844
2822
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2845
|
-
throw await
|
|
2823
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2846
2824
|
case "ThrottlingException":
|
|
2847
2825
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2848
|
-
throw await
|
|
2826
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2849
2827
|
case "ValidationException":
|
|
2850
2828
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2851
|
-
throw await
|
|
2829
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2852
2830
|
default:
|
|
2853
2831
|
const parsedBody = parsedOutput.body;
|
|
2854
2832
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2859,9 +2837,9 @@ const deserializeAws_restJson1ListAppVersionAppComponentsCommandError = async (o
|
|
|
2859
2837
|
});
|
|
2860
2838
|
}
|
|
2861
2839
|
};
|
|
2862
|
-
const
|
|
2840
|
+
const de_ListAppVersionResourceMappingsCommand = async (output, context) => {
|
|
2863
2841
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2864
|
-
return
|
|
2842
|
+
return de_ListAppVersionResourceMappingsCommandError(output, context);
|
|
2865
2843
|
}
|
|
2866
2844
|
const contents = map({
|
|
2867
2845
|
$metadata: deserializeMetadata(output),
|
|
@@ -2871,12 +2849,12 @@ const deserializeAws_restJson1ListAppVersionResourceMappingsCommand = async (out
|
|
|
2871
2849
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2872
2850
|
}
|
|
2873
2851
|
if (data.resourceMappings != null) {
|
|
2874
|
-
contents.resourceMappings =
|
|
2852
|
+
contents.resourceMappings = de_ResourceMappingList(data.resourceMappings, context);
|
|
2875
2853
|
}
|
|
2876
2854
|
return contents;
|
|
2877
2855
|
};
|
|
2878
|
-
exports.
|
|
2879
|
-
const
|
|
2856
|
+
exports.de_ListAppVersionResourceMappingsCommand = de_ListAppVersionResourceMappingsCommand;
|
|
2857
|
+
const de_ListAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
2880
2858
|
const parsedOutput = {
|
|
2881
2859
|
...output,
|
|
2882
2860
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2885,19 +2863,19 @@ const deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = async
|
|
|
2885
2863
|
switch (errorCode) {
|
|
2886
2864
|
case "AccessDeniedException":
|
|
2887
2865
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2888
|
-
throw await
|
|
2866
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2889
2867
|
case "InternalServerException":
|
|
2890
2868
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2891
|
-
throw await
|
|
2869
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2892
2870
|
case "ResourceNotFoundException":
|
|
2893
2871
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2894
|
-
throw await
|
|
2872
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2895
2873
|
case "ThrottlingException":
|
|
2896
2874
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2897
|
-
throw await
|
|
2875
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2898
2876
|
case "ValidationException":
|
|
2899
2877
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2900
|
-
throw await
|
|
2878
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2901
2879
|
default:
|
|
2902
2880
|
const parsedBody = parsedOutput.body;
|
|
2903
2881
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2908,9 +2886,9 @@ const deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = async
|
|
|
2908
2886
|
});
|
|
2909
2887
|
}
|
|
2910
2888
|
};
|
|
2911
|
-
const
|
|
2889
|
+
const de_ListAppVersionResourcesCommand = async (output, context) => {
|
|
2912
2890
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2913
|
-
return
|
|
2891
|
+
return de_ListAppVersionResourcesCommandError(output, context);
|
|
2914
2892
|
}
|
|
2915
2893
|
const contents = map({
|
|
2916
2894
|
$metadata: deserializeMetadata(output),
|
|
@@ -2920,15 +2898,15 @@ const deserializeAws_restJson1ListAppVersionResourcesCommand = async (output, co
|
|
|
2920
2898
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2921
2899
|
}
|
|
2922
2900
|
if (data.physicalResources != null) {
|
|
2923
|
-
contents.physicalResources =
|
|
2901
|
+
contents.physicalResources = de_PhysicalResourceList(data.physicalResources, context);
|
|
2924
2902
|
}
|
|
2925
2903
|
if (data.resolutionId != null) {
|
|
2926
2904
|
contents.resolutionId = (0, smithy_client_1.expectString)(data.resolutionId);
|
|
2927
2905
|
}
|
|
2928
2906
|
return contents;
|
|
2929
2907
|
};
|
|
2930
|
-
exports.
|
|
2931
|
-
const
|
|
2908
|
+
exports.de_ListAppVersionResourcesCommand = de_ListAppVersionResourcesCommand;
|
|
2909
|
+
const de_ListAppVersionResourcesCommandError = async (output, context) => {
|
|
2932
2910
|
const parsedOutput = {
|
|
2933
2911
|
...output,
|
|
2934
2912
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2937,22 +2915,22 @@ const deserializeAws_restJson1ListAppVersionResourcesCommandError = async (outpu
|
|
|
2937
2915
|
switch (errorCode) {
|
|
2938
2916
|
case "AccessDeniedException":
|
|
2939
2917
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2940
|
-
throw await
|
|
2918
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2941
2919
|
case "ConflictException":
|
|
2942
2920
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
2943
|
-
throw await
|
|
2921
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2944
2922
|
case "InternalServerException":
|
|
2945
2923
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2946
|
-
throw await
|
|
2924
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2947
2925
|
case "ResourceNotFoundException":
|
|
2948
2926
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2949
|
-
throw await
|
|
2927
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2950
2928
|
case "ThrottlingException":
|
|
2951
2929
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2952
|
-
throw await
|
|
2930
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2953
2931
|
case "ValidationException":
|
|
2954
2932
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2955
|
-
throw await
|
|
2933
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2956
2934
|
default:
|
|
2957
2935
|
const parsedBody = parsedOutput.body;
|
|
2958
2936
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2963,24 +2941,24 @@ const deserializeAws_restJson1ListAppVersionResourcesCommandError = async (outpu
|
|
|
2963
2941
|
});
|
|
2964
2942
|
}
|
|
2965
2943
|
};
|
|
2966
|
-
const
|
|
2944
|
+
const de_ListAppVersionsCommand = async (output, context) => {
|
|
2967
2945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2968
|
-
return
|
|
2946
|
+
return de_ListAppVersionsCommandError(output, context);
|
|
2969
2947
|
}
|
|
2970
2948
|
const contents = map({
|
|
2971
2949
|
$metadata: deserializeMetadata(output),
|
|
2972
2950
|
});
|
|
2973
2951
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2974
2952
|
if (data.appVersions != null) {
|
|
2975
|
-
contents.appVersions =
|
|
2953
|
+
contents.appVersions = de_AppVersionList(data.appVersions, context);
|
|
2976
2954
|
}
|
|
2977
2955
|
if (data.nextToken != null) {
|
|
2978
2956
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2979
2957
|
}
|
|
2980
2958
|
return contents;
|
|
2981
2959
|
};
|
|
2982
|
-
exports.
|
|
2983
|
-
const
|
|
2960
|
+
exports.de_ListAppVersionsCommand = de_ListAppVersionsCommand;
|
|
2961
|
+
const de_ListAppVersionsCommandError = async (output, context) => {
|
|
2984
2962
|
const parsedOutput = {
|
|
2985
2963
|
...output,
|
|
2986
2964
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2989,16 +2967,16 @@ const deserializeAws_restJson1ListAppVersionsCommandError = async (output, conte
|
|
|
2989
2967
|
switch (errorCode) {
|
|
2990
2968
|
case "AccessDeniedException":
|
|
2991
2969
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2992
|
-
throw await
|
|
2970
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2993
2971
|
case "InternalServerException":
|
|
2994
2972
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2995
|
-
throw await
|
|
2973
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2996
2974
|
case "ResourceNotFoundException":
|
|
2997
2975
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2998
|
-
throw await
|
|
2976
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2999
2977
|
case "ValidationException":
|
|
3000
2978
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3001
|
-
throw await
|
|
2979
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3002
2980
|
default:
|
|
3003
2981
|
const parsedBody = parsedOutput.body;
|
|
3004
2982
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3009,9 +2987,9 @@ const deserializeAws_restJson1ListAppVersionsCommandError = async (output, conte
|
|
|
3009
2987
|
});
|
|
3010
2988
|
}
|
|
3011
2989
|
};
|
|
3012
|
-
const
|
|
2990
|
+
const de_ListRecommendationTemplatesCommand = async (output, context) => {
|
|
3013
2991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3014
|
-
return
|
|
2992
|
+
return de_ListRecommendationTemplatesCommandError(output, context);
|
|
3015
2993
|
}
|
|
3016
2994
|
const contents = map({
|
|
3017
2995
|
$metadata: deserializeMetadata(output),
|
|
@@ -3021,12 +2999,12 @@ const deserializeAws_restJson1ListRecommendationTemplatesCommand = async (output
|
|
|
3021
2999
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3022
3000
|
}
|
|
3023
3001
|
if (data.recommendationTemplates != null) {
|
|
3024
|
-
contents.recommendationTemplates =
|
|
3002
|
+
contents.recommendationTemplates = de_RecommendationTemplateList(data.recommendationTemplates, context);
|
|
3025
3003
|
}
|
|
3026
3004
|
return contents;
|
|
3027
3005
|
};
|
|
3028
|
-
exports.
|
|
3029
|
-
const
|
|
3006
|
+
exports.de_ListRecommendationTemplatesCommand = de_ListRecommendationTemplatesCommand;
|
|
3007
|
+
const de_ListRecommendationTemplatesCommandError = async (output, context) => {
|
|
3030
3008
|
const parsedOutput = {
|
|
3031
3009
|
...output,
|
|
3032
3010
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3035,16 +3013,16 @@ const deserializeAws_restJson1ListRecommendationTemplatesCommandError = async (o
|
|
|
3035
3013
|
switch (errorCode) {
|
|
3036
3014
|
case "AccessDeniedException":
|
|
3037
3015
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3038
|
-
throw await
|
|
3016
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3039
3017
|
case "InternalServerException":
|
|
3040
3018
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3041
|
-
throw await
|
|
3019
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3042
3020
|
case "ThrottlingException":
|
|
3043
3021
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3044
|
-
throw await
|
|
3022
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3045
3023
|
case "ValidationException":
|
|
3046
3024
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3047
|
-
throw await
|
|
3025
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3048
3026
|
default:
|
|
3049
3027
|
const parsedBody = parsedOutput.body;
|
|
3050
3028
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3055,9 +3033,9 @@ const deserializeAws_restJson1ListRecommendationTemplatesCommandError = async (o
|
|
|
3055
3033
|
});
|
|
3056
3034
|
}
|
|
3057
3035
|
};
|
|
3058
|
-
const
|
|
3036
|
+
const de_ListResiliencyPoliciesCommand = async (output, context) => {
|
|
3059
3037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3060
|
-
return
|
|
3038
|
+
return de_ListResiliencyPoliciesCommandError(output, context);
|
|
3061
3039
|
}
|
|
3062
3040
|
const contents = map({
|
|
3063
3041
|
$metadata: deserializeMetadata(output),
|
|
@@ -3067,12 +3045,12 @@ const deserializeAws_restJson1ListResiliencyPoliciesCommand = async (output, con
|
|
|
3067
3045
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3068
3046
|
}
|
|
3069
3047
|
if (data.resiliencyPolicies != null) {
|
|
3070
|
-
contents.resiliencyPolicies =
|
|
3048
|
+
contents.resiliencyPolicies = de_ResiliencyPolicies(data.resiliencyPolicies, context);
|
|
3071
3049
|
}
|
|
3072
3050
|
return contents;
|
|
3073
3051
|
};
|
|
3074
|
-
exports.
|
|
3075
|
-
const
|
|
3052
|
+
exports.de_ListResiliencyPoliciesCommand = de_ListResiliencyPoliciesCommand;
|
|
3053
|
+
const de_ListResiliencyPoliciesCommandError = async (output, context) => {
|
|
3076
3054
|
const parsedOutput = {
|
|
3077
3055
|
...output,
|
|
3078
3056
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3081,19 +3059,19 @@ const deserializeAws_restJson1ListResiliencyPoliciesCommandError = async (output
|
|
|
3081
3059
|
switch (errorCode) {
|
|
3082
3060
|
case "AccessDeniedException":
|
|
3083
3061
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3084
|
-
throw await
|
|
3062
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3085
3063
|
case "InternalServerException":
|
|
3086
3064
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3087
|
-
throw await
|
|
3065
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3088
3066
|
case "ResourceNotFoundException":
|
|
3089
3067
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3090
|
-
throw await
|
|
3068
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3091
3069
|
case "ThrottlingException":
|
|
3092
3070
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3093
|
-
throw await
|
|
3071
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3094
3072
|
case "ValidationException":
|
|
3095
3073
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3096
|
-
throw await
|
|
3074
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3097
3075
|
default:
|
|
3098
3076
|
const parsedBody = parsedOutput.body;
|
|
3099
3077
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3104,9 +3082,9 @@ const deserializeAws_restJson1ListResiliencyPoliciesCommandError = async (output
|
|
|
3104
3082
|
});
|
|
3105
3083
|
}
|
|
3106
3084
|
};
|
|
3107
|
-
const
|
|
3085
|
+
const de_ListSopRecommendationsCommand = async (output, context) => {
|
|
3108
3086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3109
|
-
return
|
|
3087
|
+
return de_ListSopRecommendationsCommandError(output, context);
|
|
3110
3088
|
}
|
|
3111
3089
|
const contents = map({
|
|
3112
3090
|
$metadata: deserializeMetadata(output),
|
|
@@ -3116,12 +3094,12 @@ const deserializeAws_restJson1ListSopRecommendationsCommand = async (output, con
|
|
|
3116
3094
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3117
3095
|
}
|
|
3118
3096
|
if (data.sopRecommendations != null) {
|
|
3119
|
-
contents.sopRecommendations =
|
|
3097
|
+
contents.sopRecommendations = de_SopRecommendationList(data.sopRecommendations, context);
|
|
3120
3098
|
}
|
|
3121
3099
|
return contents;
|
|
3122
3100
|
};
|
|
3123
|
-
exports.
|
|
3124
|
-
const
|
|
3101
|
+
exports.de_ListSopRecommendationsCommand = de_ListSopRecommendationsCommand;
|
|
3102
|
+
const de_ListSopRecommendationsCommandError = async (output, context) => {
|
|
3125
3103
|
const parsedOutput = {
|
|
3126
3104
|
...output,
|
|
3127
3105
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3130,22 +3108,22 @@ const deserializeAws_restJson1ListSopRecommendationsCommandError = async (output
|
|
|
3130
3108
|
switch (errorCode) {
|
|
3131
3109
|
case "AccessDeniedException":
|
|
3132
3110
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3133
|
-
throw await
|
|
3111
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3134
3112
|
case "ConflictException":
|
|
3135
3113
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3136
|
-
throw await
|
|
3114
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3137
3115
|
case "InternalServerException":
|
|
3138
3116
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3139
|
-
throw await
|
|
3117
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3140
3118
|
case "ResourceNotFoundException":
|
|
3141
3119
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3142
|
-
throw await
|
|
3120
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3143
3121
|
case "ThrottlingException":
|
|
3144
3122
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3145
|
-
throw await
|
|
3123
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3146
3124
|
case "ValidationException":
|
|
3147
3125
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3148
|
-
throw await
|
|
3126
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3149
3127
|
default:
|
|
3150
3128
|
const parsedBody = parsedOutput.body;
|
|
3151
3129
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3156,9 +3134,9 @@ const deserializeAws_restJson1ListSopRecommendationsCommandError = async (output
|
|
|
3156
3134
|
});
|
|
3157
3135
|
}
|
|
3158
3136
|
};
|
|
3159
|
-
const
|
|
3137
|
+
const de_ListSuggestedResiliencyPoliciesCommand = async (output, context) => {
|
|
3160
3138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3161
|
-
return
|
|
3139
|
+
return de_ListSuggestedResiliencyPoliciesCommandError(output, context);
|
|
3162
3140
|
}
|
|
3163
3141
|
const contents = map({
|
|
3164
3142
|
$metadata: deserializeMetadata(output),
|
|
@@ -3168,12 +3146,12 @@ const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = async (ou
|
|
|
3168
3146
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3169
3147
|
}
|
|
3170
3148
|
if (data.resiliencyPolicies != null) {
|
|
3171
|
-
contents.resiliencyPolicies =
|
|
3149
|
+
contents.resiliencyPolicies = de_ResiliencyPolicies(data.resiliencyPolicies, context);
|
|
3172
3150
|
}
|
|
3173
3151
|
return contents;
|
|
3174
3152
|
};
|
|
3175
|
-
exports.
|
|
3176
|
-
const
|
|
3153
|
+
exports.de_ListSuggestedResiliencyPoliciesCommand = de_ListSuggestedResiliencyPoliciesCommand;
|
|
3154
|
+
const de_ListSuggestedResiliencyPoliciesCommandError = async (output, context) => {
|
|
3177
3155
|
const parsedOutput = {
|
|
3178
3156
|
...output,
|
|
3179
3157
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3182,19 +3160,19 @@ const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = asyn
|
|
|
3182
3160
|
switch (errorCode) {
|
|
3183
3161
|
case "AccessDeniedException":
|
|
3184
3162
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3185
|
-
throw await
|
|
3163
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3186
3164
|
case "InternalServerException":
|
|
3187
3165
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3188
|
-
throw await
|
|
3166
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3189
3167
|
case "ResourceNotFoundException":
|
|
3190
3168
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3191
|
-
throw await
|
|
3169
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3192
3170
|
case "ThrottlingException":
|
|
3193
3171
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3194
|
-
throw await
|
|
3172
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3195
3173
|
case "ValidationException":
|
|
3196
3174
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3197
|
-
throw await
|
|
3175
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3198
3176
|
default:
|
|
3199
3177
|
const parsedBody = parsedOutput.body;
|
|
3200
3178
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3205,21 +3183,21 @@ const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = asyn
|
|
|
3205
3183
|
});
|
|
3206
3184
|
}
|
|
3207
3185
|
};
|
|
3208
|
-
const
|
|
3186
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3209
3187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3210
|
-
return
|
|
3188
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
3211
3189
|
}
|
|
3212
3190
|
const contents = map({
|
|
3213
3191
|
$metadata: deserializeMetadata(output),
|
|
3214
3192
|
});
|
|
3215
3193
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3216
3194
|
if (data.tags != null) {
|
|
3217
|
-
contents.tags =
|
|
3195
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
3218
3196
|
}
|
|
3219
3197
|
return contents;
|
|
3220
3198
|
};
|
|
3221
|
-
exports.
|
|
3222
|
-
const
|
|
3199
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
3200
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3223
3201
|
const parsedOutput = {
|
|
3224
3202
|
...output,
|
|
3225
3203
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3228,19 +3206,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3228
3206
|
switch (errorCode) {
|
|
3229
3207
|
case "AccessDeniedException":
|
|
3230
3208
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3231
|
-
throw await
|
|
3209
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3232
3210
|
case "InternalServerException":
|
|
3233
3211
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3234
|
-
throw await
|
|
3212
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3235
3213
|
case "ResourceNotFoundException":
|
|
3236
3214
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3237
|
-
throw await
|
|
3215
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3238
3216
|
case "ThrottlingException":
|
|
3239
3217
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3240
|
-
throw await
|
|
3218
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3241
3219
|
case "ValidationException":
|
|
3242
3220
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3243
|
-
throw await
|
|
3221
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3244
3222
|
default:
|
|
3245
3223
|
const parsedBody = parsedOutput.body;
|
|
3246
3224
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3251,9 +3229,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3251
3229
|
});
|
|
3252
3230
|
}
|
|
3253
3231
|
};
|
|
3254
|
-
const
|
|
3232
|
+
const de_ListTestRecommendationsCommand = async (output, context) => {
|
|
3255
3233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3256
|
-
return
|
|
3234
|
+
return de_ListTestRecommendationsCommandError(output, context);
|
|
3257
3235
|
}
|
|
3258
3236
|
const contents = map({
|
|
3259
3237
|
$metadata: deserializeMetadata(output),
|
|
@@ -3263,12 +3241,12 @@ const deserializeAws_restJson1ListTestRecommendationsCommand = async (output, co
|
|
|
3263
3241
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3264
3242
|
}
|
|
3265
3243
|
if (data.testRecommendations != null) {
|
|
3266
|
-
contents.testRecommendations =
|
|
3244
|
+
contents.testRecommendations = de_TestRecommendationList(data.testRecommendations, context);
|
|
3267
3245
|
}
|
|
3268
3246
|
return contents;
|
|
3269
3247
|
};
|
|
3270
|
-
exports.
|
|
3271
|
-
const
|
|
3248
|
+
exports.de_ListTestRecommendationsCommand = de_ListTestRecommendationsCommand;
|
|
3249
|
+
const de_ListTestRecommendationsCommandError = async (output, context) => {
|
|
3272
3250
|
const parsedOutput = {
|
|
3273
3251
|
...output,
|
|
3274
3252
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3277,22 +3255,22 @@ const deserializeAws_restJson1ListTestRecommendationsCommandError = async (outpu
|
|
|
3277
3255
|
switch (errorCode) {
|
|
3278
3256
|
case "AccessDeniedException":
|
|
3279
3257
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3280
|
-
throw await
|
|
3258
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3281
3259
|
case "ConflictException":
|
|
3282
3260
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3283
|
-
throw await
|
|
3261
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3284
3262
|
case "InternalServerException":
|
|
3285
3263
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3286
|
-
throw await
|
|
3264
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3287
3265
|
case "ResourceNotFoundException":
|
|
3288
3266
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3289
|
-
throw await
|
|
3267
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3290
3268
|
case "ThrottlingException":
|
|
3291
3269
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3292
|
-
throw await
|
|
3270
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3293
3271
|
case "ValidationException":
|
|
3294
3272
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3295
|
-
throw await
|
|
3273
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3296
3274
|
default:
|
|
3297
3275
|
const parsedBody = parsedOutput.body;
|
|
3298
3276
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3303,9 +3281,9 @@ const deserializeAws_restJson1ListTestRecommendationsCommandError = async (outpu
|
|
|
3303
3281
|
});
|
|
3304
3282
|
}
|
|
3305
3283
|
};
|
|
3306
|
-
const
|
|
3284
|
+
const de_ListUnsupportedAppVersionResourcesCommand = async (output, context) => {
|
|
3307
3285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3308
|
-
return
|
|
3286
|
+
return de_ListUnsupportedAppVersionResourcesCommandError(output, context);
|
|
3309
3287
|
}
|
|
3310
3288
|
const contents = map({
|
|
3311
3289
|
$metadata: deserializeMetadata(output),
|
|
@@ -3318,12 +3296,12 @@ const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = async
|
|
|
3318
3296
|
contents.resolutionId = (0, smithy_client_1.expectString)(data.resolutionId);
|
|
3319
3297
|
}
|
|
3320
3298
|
if (data.unsupportedResources != null) {
|
|
3321
|
-
contents.unsupportedResources =
|
|
3299
|
+
contents.unsupportedResources = de_UnsupportedResourceList(data.unsupportedResources, context);
|
|
3322
3300
|
}
|
|
3323
3301
|
return contents;
|
|
3324
3302
|
};
|
|
3325
|
-
exports.
|
|
3326
|
-
const
|
|
3303
|
+
exports.de_ListUnsupportedAppVersionResourcesCommand = de_ListUnsupportedAppVersionResourcesCommand;
|
|
3304
|
+
const de_ListUnsupportedAppVersionResourcesCommandError = async (output, context) => {
|
|
3327
3305
|
const parsedOutput = {
|
|
3328
3306
|
...output,
|
|
3329
3307
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3332,22 +3310,22 @@ const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = a
|
|
|
3332
3310
|
switch (errorCode) {
|
|
3333
3311
|
case "AccessDeniedException":
|
|
3334
3312
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3335
|
-
throw await
|
|
3313
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3336
3314
|
case "ConflictException":
|
|
3337
3315
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3338
|
-
throw await
|
|
3316
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3339
3317
|
case "InternalServerException":
|
|
3340
3318
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3341
|
-
throw await
|
|
3319
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3342
3320
|
case "ResourceNotFoundException":
|
|
3343
3321
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3344
|
-
throw await
|
|
3322
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3345
3323
|
case "ThrottlingException":
|
|
3346
3324
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3347
|
-
throw await
|
|
3325
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3348
3326
|
case "ValidationException":
|
|
3349
3327
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3350
|
-
throw await
|
|
3328
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3351
3329
|
default:
|
|
3352
3330
|
const parsedBody = parsedOutput.body;
|
|
3353
3331
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3358,9 +3336,9 @@ const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = a
|
|
|
3358
3336
|
});
|
|
3359
3337
|
}
|
|
3360
3338
|
};
|
|
3361
|
-
const
|
|
3339
|
+
const de_PublishAppVersionCommand = async (output, context) => {
|
|
3362
3340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3363
|
-
return
|
|
3341
|
+
return de_PublishAppVersionCommandError(output, context);
|
|
3364
3342
|
}
|
|
3365
3343
|
const contents = map({
|
|
3366
3344
|
$metadata: deserializeMetadata(output),
|
|
@@ -3374,8 +3352,8 @@ const deserializeAws_restJson1PublishAppVersionCommand = async (output, context)
|
|
|
3374
3352
|
}
|
|
3375
3353
|
return contents;
|
|
3376
3354
|
};
|
|
3377
|
-
exports.
|
|
3378
|
-
const
|
|
3355
|
+
exports.de_PublishAppVersionCommand = de_PublishAppVersionCommand;
|
|
3356
|
+
const de_PublishAppVersionCommandError = async (output, context) => {
|
|
3379
3357
|
const parsedOutput = {
|
|
3380
3358
|
...output,
|
|
3381
3359
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3384,22 +3362,22 @@ const deserializeAws_restJson1PublishAppVersionCommandError = async (output, con
|
|
|
3384
3362
|
switch (errorCode) {
|
|
3385
3363
|
case "AccessDeniedException":
|
|
3386
3364
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3387
|
-
throw await
|
|
3365
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3388
3366
|
case "ConflictException":
|
|
3389
3367
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3390
|
-
throw await
|
|
3368
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3391
3369
|
case "InternalServerException":
|
|
3392
3370
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3393
|
-
throw await
|
|
3371
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3394
3372
|
case "ResourceNotFoundException":
|
|
3395
3373
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3396
|
-
throw await
|
|
3374
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3397
3375
|
case "ThrottlingException":
|
|
3398
3376
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3399
|
-
throw await
|
|
3377
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3400
3378
|
case "ValidationException":
|
|
3401
3379
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3402
|
-
throw await
|
|
3380
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3403
3381
|
default:
|
|
3404
3382
|
const parsedBody = parsedOutput.body;
|
|
3405
3383
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3410,9 +3388,9 @@ const deserializeAws_restJson1PublishAppVersionCommandError = async (output, con
|
|
|
3410
3388
|
});
|
|
3411
3389
|
}
|
|
3412
3390
|
};
|
|
3413
|
-
const
|
|
3391
|
+
const de_PutDraftAppVersionTemplateCommand = async (output, context) => {
|
|
3414
3392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3415
|
-
return
|
|
3393
|
+
return de_PutDraftAppVersionTemplateCommandError(output, context);
|
|
3416
3394
|
}
|
|
3417
3395
|
const contents = map({
|
|
3418
3396
|
$metadata: deserializeMetadata(output),
|
|
@@ -3426,8 +3404,8 @@ const deserializeAws_restJson1PutDraftAppVersionTemplateCommand = async (output,
|
|
|
3426
3404
|
}
|
|
3427
3405
|
return contents;
|
|
3428
3406
|
};
|
|
3429
|
-
exports.
|
|
3430
|
-
const
|
|
3407
|
+
exports.de_PutDraftAppVersionTemplateCommand = de_PutDraftAppVersionTemplateCommand;
|
|
3408
|
+
const de_PutDraftAppVersionTemplateCommandError = async (output, context) => {
|
|
3431
3409
|
const parsedOutput = {
|
|
3432
3410
|
...output,
|
|
3433
3411
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3436,22 +3414,22 @@ const deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = async (ou
|
|
|
3436
3414
|
switch (errorCode) {
|
|
3437
3415
|
case "AccessDeniedException":
|
|
3438
3416
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3439
|
-
throw await
|
|
3417
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3440
3418
|
case "ConflictException":
|
|
3441
3419
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3442
|
-
throw await
|
|
3420
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3443
3421
|
case "InternalServerException":
|
|
3444
3422
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3445
|
-
throw await
|
|
3423
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3446
3424
|
case "ResourceNotFoundException":
|
|
3447
3425
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3448
|
-
throw await
|
|
3426
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3449
3427
|
case "ThrottlingException":
|
|
3450
3428
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3451
|
-
throw await
|
|
3429
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3452
3430
|
case "ValidationException":
|
|
3453
3431
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3454
|
-
throw await
|
|
3432
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3455
3433
|
default:
|
|
3456
3434
|
const parsedBody = parsedOutput.body;
|
|
3457
3435
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3462,9 +3440,9 @@ const deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = async (ou
|
|
|
3462
3440
|
});
|
|
3463
3441
|
}
|
|
3464
3442
|
};
|
|
3465
|
-
const
|
|
3443
|
+
const de_RemoveDraftAppVersionResourceMappingsCommand = async (output, context) => {
|
|
3466
3444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3467
|
-
return
|
|
3445
|
+
return de_RemoveDraftAppVersionResourceMappingsCommandError(output, context);
|
|
3468
3446
|
}
|
|
3469
3447
|
const contents = map({
|
|
3470
3448
|
$metadata: deserializeMetadata(output),
|
|
@@ -3478,8 +3456,8 @@ const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = asy
|
|
|
3478
3456
|
}
|
|
3479
3457
|
return contents;
|
|
3480
3458
|
};
|
|
3481
|
-
exports.
|
|
3482
|
-
const
|
|
3459
|
+
exports.de_RemoveDraftAppVersionResourceMappingsCommand = de_RemoveDraftAppVersionResourceMappingsCommand;
|
|
3460
|
+
const de_RemoveDraftAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
3483
3461
|
const parsedOutput = {
|
|
3484
3462
|
...output,
|
|
3485
3463
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3488,22 +3466,22 @@ const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError
|
|
|
3488
3466
|
switch (errorCode) {
|
|
3489
3467
|
case "AccessDeniedException":
|
|
3490
3468
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3491
|
-
throw await
|
|
3469
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3492
3470
|
case "ConflictException":
|
|
3493
3471
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3494
|
-
throw await
|
|
3472
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3495
3473
|
case "InternalServerException":
|
|
3496
3474
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3497
|
-
throw await
|
|
3475
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3498
3476
|
case "ResourceNotFoundException":
|
|
3499
3477
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3500
|
-
throw await
|
|
3478
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3501
3479
|
case "ThrottlingException":
|
|
3502
3480
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3503
|
-
throw await
|
|
3481
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3504
3482
|
case "ValidationException":
|
|
3505
3483
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3506
|
-
throw await
|
|
3484
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3507
3485
|
default:
|
|
3508
3486
|
const parsedBody = parsedOutput.body;
|
|
3509
3487
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3514,9 +3492,9 @@ const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError
|
|
|
3514
3492
|
});
|
|
3515
3493
|
}
|
|
3516
3494
|
};
|
|
3517
|
-
const
|
|
3495
|
+
const de_ResolveAppVersionResourcesCommand = async (output, context) => {
|
|
3518
3496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3519
|
-
return
|
|
3497
|
+
return de_ResolveAppVersionResourcesCommandError(output, context);
|
|
3520
3498
|
}
|
|
3521
3499
|
const contents = map({
|
|
3522
3500
|
$metadata: deserializeMetadata(output),
|
|
@@ -3536,8 +3514,8 @@ const deserializeAws_restJson1ResolveAppVersionResourcesCommand = async (output,
|
|
|
3536
3514
|
}
|
|
3537
3515
|
return contents;
|
|
3538
3516
|
};
|
|
3539
|
-
exports.
|
|
3540
|
-
const
|
|
3517
|
+
exports.de_ResolveAppVersionResourcesCommand = de_ResolveAppVersionResourcesCommand;
|
|
3518
|
+
const de_ResolveAppVersionResourcesCommandError = async (output, context) => {
|
|
3541
3519
|
const parsedOutput = {
|
|
3542
3520
|
...output,
|
|
3543
3521
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3546,22 +3524,22 @@ const deserializeAws_restJson1ResolveAppVersionResourcesCommandError = async (ou
|
|
|
3546
3524
|
switch (errorCode) {
|
|
3547
3525
|
case "AccessDeniedException":
|
|
3548
3526
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3549
|
-
throw await
|
|
3527
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3550
3528
|
case "ConflictException":
|
|
3551
3529
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3552
|
-
throw await
|
|
3530
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3553
3531
|
case "InternalServerException":
|
|
3554
3532
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3555
|
-
throw await
|
|
3533
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3556
3534
|
case "ResourceNotFoundException":
|
|
3557
3535
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3558
|
-
throw await
|
|
3536
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3559
3537
|
case "ThrottlingException":
|
|
3560
3538
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3561
|
-
throw await
|
|
3539
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3562
3540
|
case "ValidationException":
|
|
3563
3541
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3564
|
-
throw await
|
|
3542
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3565
3543
|
default:
|
|
3566
3544
|
const parsedBody = parsedOutput.body;
|
|
3567
3545
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3572,21 +3550,21 @@ const deserializeAws_restJson1ResolveAppVersionResourcesCommandError = async (ou
|
|
|
3572
3550
|
});
|
|
3573
3551
|
}
|
|
3574
3552
|
};
|
|
3575
|
-
const
|
|
3553
|
+
const de_StartAppAssessmentCommand = async (output, context) => {
|
|
3576
3554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3577
|
-
return
|
|
3555
|
+
return de_StartAppAssessmentCommandError(output, context);
|
|
3578
3556
|
}
|
|
3579
3557
|
const contents = map({
|
|
3580
3558
|
$metadata: deserializeMetadata(output),
|
|
3581
3559
|
});
|
|
3582
3560
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3583
3561
|
if (data.assessment != null) {
|
|
3584
|
-
contents.assessment =
|
|
3562
|
+
contents.assessment = de_AppAssessment(data.assessment, context);
|
|
3585
3563
|
}
|
|
3586
3564
|
return contents;
|
|
3587
3565
|
};
|
|
3588
|
-
exports.
|
|
3589
|
-
const
|
|
3566
|
+
exports.de_StartAppAssessmentCommand = de_StartAppAssessmentCommand;
|
|
3567
|
+
const de_StartAppAssessmentCommandError = async (output, context) => {
|
|
3590
3568
|
const parsedOutput = {
|
|
3591
3569
|
...output,
|
|
3592
3570
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3595,25 +3573,25 @@ const deserializeAws_restJson1StartAppAssessmentCommandError = async (output, co
|
|
|
3595
3573
|
switch (errorCode) {
|
|
3596
3574
|
case "AccessDeniedException":
|
|
3597
3575
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3598
|
-
throw await
|
|
3576
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3599
3577
|
case "ConflictException":
|
|
3600
3578
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3601
|
-
throw await
|
|
3579
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3602
3580
|
case "InternalServerException":
|
|
3603
3581
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3604
|
-
throw await
|
|
3582
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3605
3583
|
case "ResourceNotFoundException":
|
|
3606
3584
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3607
|
-
throw await
|
|
3585
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3608
3586
|
case "ServiceQuotaExceededException":
|
|
3609
3587
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
3610
|
-
throw await
|
|
3588
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3611
3589
|
case "ThrottlingException":
|
|
3612
3590
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3613
|
-
throw await
|
|
3591
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3614
3592
|
case "ValidationException":
|
|
3615
3593
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3616
|
-
throw await
|
|
3594
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3617
3595
|
default:
|
|
3618
3596
|
const parsedBody = parsedOutput.body;
|
|
3619
3597
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3624,9 +3602,9 @@ const deserializeAws_restJson1StartAppAssessmentCommandError = async (output, co
|
|
|
3624
3602
|
});
|
|
3625
3603
|
}
|
|
3626
3604
|
};
|
|
3627
|
-
const
|
|
3605
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
3628
3606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3629
|
-
return
|
|
3607
|
+
return de_TagResourceCommandError(output, context);
|
|
3630
3608
|
}
|
|
3631
3609
|
const contents = map({
|
|
3632
3610
|
$metadata: deserializeMetadata(output),
|
|
@@ -3634,8 +3612,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
3634
3612
|
await collectBody(output.body, context);
|
|
3635
3613
|
return contents;
|
|
3636
3614
|
};
|
|
3637
|
-
exports.
|
|
3638
|
-
const
|
|
3615
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3616
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
3639
3617
|
const parsedOutput = {
|
|
3640
3618
|
...output,
|
|
3641
3619
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3644,19 +3622,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3644
3622
|
switch (errorCode) {
|
|
3645
3623
|
case "AccessDeniedException":
|
|
3646
3624
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3647
|
-
throw await
|
|
3625
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3648
3626
|
case "InternalServerException":
|
|
3649
3627
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3650
|
-
throw await
|
|
3628
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3651
3629
|
case "ResourceNotFoundException":
|
|
3652
3630
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3653
|
-
throw await
|
|
3631
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3654
3632
|
case "ThrottlingException":
|
|
3655
3633
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3656
|
-
throw await
|
|
3634
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3657
3635
|
case "ValidationException":
|
|
3658
3636
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3659
|
-
throw await
|
|
3637
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3660
3638
|
default:
|
|
3661
3639
|
const parsedBody = parsedOutput.body;
|
|
3662
3640
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3667,9 +3645,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3667
3645
|
});
|
|
3668
3646
|
}
|
|
3669
3647
|
};
|
|
3670
|
-
const
|
|
3648
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
3671
3649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3672
|
-
return
|
|
3650
|
+
return de_UntagResourceCommandError(output, context);
|
|
3673
3651
|
}
|
|
3674
3652
|
const contents = map({
|
|
3675
3653
|
$metadata: deserializeMetadata(output),
|
|
@@ -3677,8 +3655,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
3677
3655
|
await collectBody(output.body, context);
|
|
3678
3656
|
return contents;
|
|
3679
3657
|
};
|
|
3680
|
-
exports.
|
|
3681
|
-
const
|
|
3658
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3659
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
3682
3660
|
const parsedOutput = {
|
|
3683
3661
|
...output,
|
|
3684
3662
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3687,19 +3665,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3687
3665
|
switch (errorCode) {
|
|
3688
3666
|
case "AccessDeniedException":
|
|
3689
3667
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3690
|
-
throw await
|
|
3668
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3691
3669
|
case "InternalServerException":
|
|
3692
3670
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3693
|
-
throw await
|
|
3671
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3694
3672
|
case "ResourceNotFoundException":
|
|
3695
3673
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3696
|
-
throw await
|
|
3674
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3697
3675
|
case "ThrottlingException":
|
|
3698
3676
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3699
|
-
throw await
|
|
3677
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3700
3678
|
case "ValidationException":
|
|
3701
3679
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3702
|
-
throw await
|
|
3680
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3703
3681
|
default:
|
|
3704
3682
|
const parsedBody = parsedOutput.body;
|
|
3705
3683
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3710,21 +3688,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3710
3688
|
});
|
|
3711
3689
|
}
|
|
3712
3690
|
};
|
|
3713
|
-
const
|
|
3691
|
+
const de_UpdateAppCommand = async (output, context) => {
|
|
3714
3692
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3715
|
-
return
|
|
3693
|
+
return de_UpdateAppCommandError(output, context);
|
|
3716
3694
|
}
|
|
3717
3695
|
const contents = map({
|
|
3718
3696
|
$metadata: deserializeMetadata(output),
|
|
3719
3697
|
});
|
|
3720
3698
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3721
3699
|
if (data.app != null) {
|
|
3722
|
-
contents.app =
|
|
3700
|
+
contents.app = de_App(data.app, context);
|
|
3723
3701
|
}
|
|
3724
3702
|
return contents;
|
|
3725
3703
|
};
|
|
3726
|
-
exports.
|
|
3727
|
-
const
|
|
3704
|
+
exports.de_UpdateAppCommand = de_UpdateAppCommand;
|
|
3705
|
+
const de_UpdateAppCommandError = async (output, context) => {
|
|
3728
3706
|
const parsedOutput = {
|
|
3729
3707
|
...output,
|
|
3730
3708
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3733,22 +3711,22 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
3733
3711
|
switch (errorCode) {
|
|
3734
3712
|
case "AccessDeniedException":
|
|
3735
3713
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3736
|
-
throw await
|
|
3714
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3737
3715
|
case "ConflictException":
|
|
3738
3716
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3739
|
-
throw await
|
|
3717
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3740
3718
|
case "InternalServerException":
|
|
3741
3719
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3742
|
-
throw await
|
|
3720
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3743
3721
|
case "ResourceNotFoundException":
|
|
3744
3722
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3745
|
-
throw await
|
|
3723
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3746
3724
|
case "ThrottlingException":
|
|
3747
3725
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3748
|
-
throw await
|
|
3726
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3749
3727
|
case "ValidationException":
|
|
3750
3728
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3751
|
-
throw await
|
|
3729
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3752
3730
|
default:
|
|
3753
3731
|
const parsedBody = parsedOutput.body;
|
|
3754
3732
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3759,16 +3737,16 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
3759
3737
|
});
|
|
3760
3738
|
}
|
|
3761
3739
|
};
|
|
3762
|
-
const
|
|
3740
|
+
const de_UpdateAppVersionCommand = async (output, context) => {
|
|
3763
3741
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3764
|
-
return
|
|
3742
|
+
return de_UpdateAppVersionCommandError(output, context);
|
|
3765
3743
|
}
|
|
3766
3744
|
const contents = map({
|
|
3767
3745
|
$metadata: deserializeMetadata(output),
|
|
3768
3746
|
});
|
|
3769
3747
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3770
3748
|
if (data.additionalInfo != null) {
|
|
3771
|
-
contents.additionalInfo =
|
|
3749
|
+
contents.additionalInfo = de_AdditionalInfoMap(data.additionalInfo, context);
|
|
3772
3750
|
}
|
|
3773
3751
|
if (data.appArn != null) {
|
|
3774
3752
|
contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
|
|
@@ -3778,8 +3756,8 @@ const deserializeAws_restJson1UpdateAppVersionCommand = async (output, context)
|
|
|
3778
3756
|
}
|
|
3779
3757
|
return contents;
|
|
3780
3758
|
};
|
|
3781
|
-
exports.
|
|
3782
|
-
const
|
|
3759
|
+
exports.de_UpdateAppVersionCommand = de_UpdateAppVersionCommand;
|
|
3760
|
+
const de_UpdateAppVersionCommandError = async (output, context) => {
|
|
3783
3761
|
const parsedOutput = {
|
|
3784
3762
|
...output,
|
|
3785
3763
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3788,22 +3766,22 @@ const deserializeAws_restJson1UpdateAppVersionCommandError = async (output, cont
|
|
|
3788
3766
|
switch (errorCode) {
|
|
3789
3767
|
case "AccessDeniedException":
|
|
3790
3768
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3791
|
-
throw await
|
|
3769
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3792
3770
|
case "ConflictException":
|
|
3793
3771
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3794
|
-
throw await
|
|
3772
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3795
3773
|
case "InternalServerException":
|
|
3796
3774
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3797
|
-
throw await
|
|
3775
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3798
3776
|
case "ResourceNotFoundException":
|
|
3799
3777
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3800
|
-
throw await
|
|
3778
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3801
3779
|
case "ThrottlingException":
|
|
3802
3780
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3803
|
-
throw await
|
|
3781
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3804
3782
|
case "ValidationException":
|
|
3805
3783
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3806
|
-
throw await
|
|
3784
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3807
3785
|
default:
|
|
3808
3786
|
const parsedBody = parsedOutput.body;
|
|
3809
3787
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3814,9 +3792,9 @@ const deserializeAws_restJson1UpdateAppVersionCommandError = async (output, cont
|
|
|
3814
3792
|
});
|
|
3815
3793
|
}
|
|
3816
3794
|
};
|
|
3817
|
-
const
|
|
3795
|
+
const de_UpdateAppVersionAppComponentCommand = async (output, context) => {
|
|
3818
3796
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3819
|
-
return
|
|
3797
|
+
return de_UpdateAppVersionAppComponentCommandError(output, context);
|
|
3820
3798
|
}
|
|
3821
3799
|
const contents = map({
|
|
3822
3800
|
$metadata: deserializeMetadata(output),
|
|
@@ -3826,15 +3804,15 @@ const deserializeAws_restJson1UpdateAppVersionAppComponentCommand = async (outpu
|
|
|
3826
3804
|
contents.appArn = (0, smithy_client_1.expectString)(data.appArn);
|
|
3827
3805
|
}
|
|
3828
3806
|
if (data.appComponent != null) {
|
|
3829
|
-
contents.appComponent =
|
|
3807
|
+
contents.appComponent = de_AppComponent(data.appComponent, context);
|
|
3830
3808
|
}
|
|
3831
3809
|
if (data.appVersion != null) {
|
|
3832
3810
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
3833
3811
|
}
|
|
3834
3812
|
return contents;
|
|
3835
3813
|
};
|
|
3836
|
-
exports.
|
|
3837
|
-
const
|
|
3814
|
+
exports.de_UpdateAppVersionAppComponentCommand = de_UpdateAppVersionAppComponentCommand;
|
|
3815
|
+
const de_UpdateAppVersionAppComponentCommandError = async (output, context) => {
|
|
3838
3816
|
const parsedOutput = {
|
|
3839
3817
|
...output,
|
|
3840
3818
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3843,22 +3821,22 @@ const deserializeAws_restJson1UpdateAppVersionAppComponentCommandError = async (
|
|
|
3843
3821
|
switch (errorCode) {
|
|
3844
3822
|
case "AccessDeniedException":
|
|
3845
3823
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3846
|
-
throw await
|
|
3824
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3847
3825
|
case "ConflictException":
|
|
3848
3826
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3849
|
-
throw await
|
|
3827
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3850
3828
|
case "InternalServerException":
|
|
3851
3829
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3852
|
-
throw await
|
|
3830
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3853
3831
|
case "ResourceNotFoundException":
|
|
3854
3832
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3855
|
-
throw await
|
|
3833
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3856
3834
|
case "ThrottlingException":
|
|
3857
3835
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3858
|
-
throw await
|
|
3836
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3859
3837
|
case "ValidationException":
|
|
3860
3838
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3861
|
-
throw await
|
|
3839
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3862
3840
|
default:
|
|
3863
3841
|
const parsedBody = parsedOutput.body;
|
|
3864
3842
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3869,9 +3847,9 @@ const deserializeAws_restJson1UpdateAppVersionAppComponentCommandError = async (
|
|
|
3869
3847
|
});
|
|
3870
3848
|
}
|
|
3871
3849
|
};
|
|
3872
|
-
const
|
|
3850
|
+
const de_UpdateAppVersionResourceCommand = async (output, context) => {
|
|
3873
3851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3874
|
-
return
|
|
3852
|
+
return de_UpdateAppVersionResourceCommandError(output, context);
|
|
3875
3853
|
}
|
|
3876
3854
|
const contents = map({
|
|
3877
3855
|
$metadata: deserializeMetadata(output),
|
|
@@ -3884,12 +3862,12 @@ const deserializeAws_restJson1UpdateAppVersionResourceCommand = async (output, c
|
|
|
3884
3862
|
contents.appVersion = (0, smithy_client_1.expectString)(data.appVersion);
|
|
3885
3863
|
}
|
|
3886
3864
|
if (data.physicalResource != null) {
|
|
3887
|
-
contents.physicalResource =
|
|
3865
|
+
contents.physicalResource = de_PhysicalResource(data.physicalResource, context);
|
|
3888
3866
|
}
|
|
3889
3867
|
return contents;
|
|
3890
3868
|
};
|
|
3891
|
-
exports.
|
|
3892
|
-
const
|
|
3869
|
+
exports.de_UpdateAppVersionResourceCommand = de_UpdateAppVersionResourceCommand;
|
|
3870
|
+
const de_UpdateAppVersionResourceCommandError = async (output, context) => {
|
|
3893
3871
|
const parsedOutput = {
|
|
3894
3872
|
...output,
|
|
3895
3873
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3898,25 +3876,25 @@ const deserializeAws_restJson1UpdateAppVersionResourceCommandError = async (outp
|
|
|
3898
3876
|
switch (errorCode) {
|
|
3899
3877
|
case "AccessDeniedException":
|
|
3900
3878
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3901
|
-
throw await
|
|
3879
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3902
3880
|
case "ConflictException":
|
|
3903
3881
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3904
|
-
throw await
|
|
3882
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3905
3883
|
case "InternalServerException":
|
|
3906
3884
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3907
|
-
throw await
|
|
3885
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3908
3886
|
case "ResourceNotFoundException":
|
|
3909
3887
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3910
|
-
throw await
|
|
3888
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3911
3889
|
case "ServiceQuotaExceededException":
|
|
3912
3890
|
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
3913
|
-
throw await
|
|
3891
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3914
3892
|
case "ThrottlingException":
|
|
3915
3893
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3916
|
-
throw await
|
|
3894
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3917
3895
|
case "ValidationException":
|
|
3918
3896
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3919
|
-
throw await
|
|
3897
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3920
3898
|
default:
|
|
3921
3899
|
const parsedBody = parsedOutput.body;
|
|
3922
3900
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3927,21 +3905,21 @@ const deserializeAws_restJson1UpdateAppVersionResourceCommandError = async (outp
|
|
|
3927
3905
|
});
|
|
3928
3906
|
}
|
|
3929
3907
|
};
|
|
3930
|
-
const
|
|
3908
|
+
const de_UpdateResiliencyPolicyCommand = async (output, context) => {
|
|
3931
3909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3932
|
-
return
|
|
3910
|
+
return de_UpdateResiliencyPolicyCommandError(output, context);
|
|
3933
3911
|
}
|
|
3934
3912
|
const contents = map({
|
|
3935
3913
|
$metadata: deserializeMetadata(output),
|
|
3936
3914
|
});
|
|
3937
3915
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3938
3916
|
if (data.policy != null) {
|
|
3939
|
-
contents.policy =
|
|
3917
|
+
contents.policy = de_ResiliencyPolicy(data.policy, context);
|
|
3940
3918
|
}
|
|
3941
3919
|
return contents;
|
|
3942
3920
|
};
|
|
3943
|
-
exports.
|
|
3944
|
-
const
|
|
3921
|
+
exports.de_UpdateResiliencyPolicyCommand = de_UpdateResiliencyPolicyCommand;
|
|
3922
|
+
const de_UpdateResiliencyPolicyCommandError = async (output, context) => {
|
|
3945
3923
|
const parsedOutput = {
|
|
3946
3924
|
...output,
|
|
3947
3925
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3950,22 +3928,22 @@ const deserializeAws_restJson1UpdateResiliencyPolicyCommandError = async (output
|
|
|
3950
3928
|
switch (errorCode) {
|
|
3951
3929
|
case "AccessDeniedException":
|
|
3952
3930
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
3953
|
-
throw await
|
|
3931
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3954
3932
|
case "ConflictException":
|
|
3955
3933
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
3956
|
-
throw await
|
|
3934
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3957
3935
|
case "InternalServerException":
|
|
3958
3936
|
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
3959
|
-
throw await
|
|
3937
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3960
3938
|
case "ResourceNotFoundException":
|
|
3961
3939
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
3962
|
-
throw await
|
|
3940
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3963
3941
|
case "ThrottlingException":
|
|
3964
3942
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
3965
|
-
throw await
|
|
3943
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3966
3944
|
case "ValidationException":
|
|
3967
3945
|
case "com.amazonaws.resiliencehub#ValidationException":
|
|
3968
|
-
throw await
|
|
3946
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3969
3947
|
default:
|
|
3970
3948
|
const parsedBody = parsedOutput.body;
|
|
3971
3949
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -3977,7 +3955,7 @@ const deserializeAws_restJson1UpdateResiliencyPolicyCommandError = async (output
|
|
|
3977
3955
|
}
|
|
3978
3956
|
};
|
|
3979
3957
|
const map = smithy_client_1.map;
|
|
3980
|
-
const
|
|
3958
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3981
3959
|
const contents = map({});
|
|
3982
3960
|
const data = parsedOutput.body;
|
|
3983
3961
|
if (data.message != null) {
|
|
@@ -3989,7 +3967,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3989
3967
|
});
|
|
3990
3968
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3991
3969
|
};
|
|
3992
|
-
const
|
|
3970
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3993
3971
|
const contents = map({});
|
|
3994
3972
|
const data = parsedOutput.body;
|
|
3995
3973
|
if (data.message != null) {
|
|
@@ -4007,7 +3985,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
4007
3985
|
});
|
|
4008
3986
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4009
3987
|
};
|
|
4010
|
-
const
|
|
3988
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
4011
3989
|
const contents = map({});
|
|
4012
3990
|
const data = parsedOutput.body;
|
|
4013
3991
|
if (data.message != null) {
|
|
@@ -4019,7 +3997,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
4019
3997
|
});
|
|
4020
3998
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4021
3999
|
};
|
|
4022
|
-
const
|
|
4000
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4023
4001
|
const contents = map({});
|
|
4024
4002
|
const data = parsedOutput.body;
|
|
4025
4003
|
if (data.message != null) {
|
|
@@ -4037,7 +4015,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
4037
4015
|
});
|
|
4038
4016
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4039
4017
|
};
|
|
4040
|
-
const
|
|
4018
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
4041
4019
|
const contents = map({});
|
|
4042
4020
|
const data = parsedOutput.body;
|
|
4043
4021
|
if (data.message != null) {
|
|
@@ -4049,7 +4027,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
4049
4027
|
});
|
|
4050
4028
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4051
4029
|
};
|
|
4052
|
-
const
|
|
4030
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
4053
4031
|
const contents = map({});
|
|
4054
4032
|
const data = parsedOutput.body;
|
|
4055
4033
|
if (data.message != null) {
|
|
@@ -4064,7 +4042,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
4064
4042
|
});
|
|
4065
4043
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4066
4044
|
};
|
|
4067
|
-
const
|
|
4045
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
4068
4046
|
const contents = map({});
|
|
4069
4047
|
const data = parsedOutput.body;
|
|
4070
4048
|
if (data.message != null) {
|
|
@@ -4076,85 +4054,85 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
4076
4054
|
});
|
|
4077
4055
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4078
4056
|
};
|
|
4079
|
-
const
|
|
4057
|
+
const se_AdditionalInfoMap = (input, context) => {
|
|
4080
4058
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4081
4059
|
if (value === null) {
|
|
4082
4060
|
return acc;
|
|
4083
4061
|
}
|
|
4084
|
-
acc[key] =
|
|
4062
|
+
acc[key] = se_AdditionalInfoValueList(value, context);
|
|
4085
4063
|
return acc;
|
|
4086
4064
|
}, {});
|
|
4087
4065
|
};
|
|
4088
|
-
const
|
|
4066
|
+
const se_AdditionalInfoValueList = (input, context) => {
|
|
4089
4067
|
return input
|
|
4090
4068
|
.filter((e) => e != null)
|
|
4091
4069
|
.map((entry) => {
|
|
4092
4070
|
return entry;
|
|
4093
4071
|
});
|
|
4094
4072
|
};
|
|
4095
|
-
const
|
|
4073
|
+
const se_AppComponentNameList = (input, context) => {
|
|
4096
4074
|
return input
|
|
4097
4075
|
.filter((e) => e != null)
|
|
4098
4076
|
.map((entry) => {
|
|
4099
4077
|
return entry;
|
|
4100
4078
|
});
|
|
4101
4079
|
};
|
|
4102
|
-
const
|
|
4080
|
+
const se_ArnList = (input, context) => {
|
|
4103
4081
|
return input
|
|
4104
4082
|
.filter((e) => e != null)
|
|
4105
4083
|
.map((entry) => {
|
|
4106
4084
|
return entry;
|
|
4107
4085
|
});
|
|
4108
4086
|
};
|
|
4109
|
-
const
|
|
4087
|
+
const se_DisruptionPolicy = (input, context) => {
|
|
4110
4088
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4111
4089
|
if (value === null) {
|
|
4112
4090
|
return acc;
|
|
4113
4091
|
}
|
|
4114
|
-
acc[key] =
|
|
4092
|
+
acc[key] = se_FailurePolicy(value, context);
|
|
4115
4093
|
return acc;
|
|
4116
4094
|
}, {});
|
|
4117
4095
|
};
|
|
4118
|
-
const
|
|
4096
|
+
const se_EksNamespaceList = (input, context) => {
|
|
4119
4097
|
return input
|
|
4120
4098
|
.filter((e) => e != null)
|
|
4121
4099
|
.map((entry) => {
|
|
4122
4100
|
return entry;
|
|
4123
4101
|
});
|
|
4124
4102
|
};
|
|
4125
|
-
const
|
|
4103
|
+
const se_EksSource = (input, context) => {
|
|
4126
4104
|
return {
|
|
4127
4105
|
...(input.eksClusterArn != null && { eksClusterArn: input.eksClusterArn }),
|
|
4128
|
-
...(input.namespaces != null && { namespaces:
|
|
4106
|
+
...(input.namespaces != null && { namespaces: se_EksNamespaceList(input.namespaces, context) }),
|
|
4129
4107
|
};
|
|
4130
4108
|
};
|
|
4131
|
-
const
|
|
4109
|
+
const se_EksSourceClusterNamespace = (input, context) => {
|
|
4132
4110
|
return {
|
|
4133
4111
|
...(input.eksClusterArn != null && { eksClusterArn: input.eksClusterArn }),
|
|
4134
4112
|
...(input.namespace != null && { namespace: input.namespace }),
|
|
4135
4113
|
};
|
|
4136
4114
|
};
|
|
4137
|
-
const
|
|
4115
|
+
const se_EksSourceList = (input, context) => {
|
|
4138
4116
|
return input
|
|
4139
4117
|
.filter((e) => e != null)
|
|
4140
4118
|
.map((entry) => {
|
|
4141
|
-
return
|
|
4119
|
+
return se_EksSource(entry, context);
|
|
4142
4120
|
});
|
|
4143
4121
|
};
|
|
4144
|
-
const
|
|
4122
|
+
const se_EntityNameList = (input, context) => {
|
|
4145
4123
|
return input
|
|
4146
4124
|
.filter((e) => e != null)
|
|
4147
4125
|
.map((entry) => {
|
|
4148
4126
|
return entry;
|
|
4149
4127
|
});
|
|
4150
4128
|
};
|
|
4151
|
-
const
|
|
4129
|
+
const se_FailurePolicy = (input, context) => {
|
|
4152
4130
|
return {
|
|
4153
4131
|
...(input.rpoInSecs != null && { rpoInSecs: input.rpoInSecs }),
|
|
4154
4132
|
...(input.rtoInSecs != null && { rtoInSecs: input.rtoInSecs }),
|
|
4155
4133
|
};
|
|
4156
4134
|
};
|
|
4157
|
-
const
|
|
4135
|
+
const se_LogicalResourceId = (input, context) => {
|
|
4158
4136
|
return {
|
|
4159
4137
|
...(input.eksSourceName != null && { eksSourceName: input.eksSourceName }),
|
|
4160
4138
|
...(input.identifier != null && { identifier: input.identifier }),
|
|
@@ -4163,7 +4141,7 @@ const serializeAws_restJson1LogicalResourceId = (input, context) => {
|
|
|
4163
4141
|
...(input.terraformSourceName != null && { terraformSourceName: input.terraformSourceName }),
|
|
4164
4142
|
};
|
|
4165
4143
|
};
|
|
4166
|
-
const
|
|
4144
|
+
const se_PhysicalResourceId = (input, context) => {
|
|
4167
4145
|
return {
|
|
4168
4146
|
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
4169
4147
|
...(input.awsRegion != null && { awsRegion: input.awsRegion }),
|
|
@@ -4171,49 +4149,49 @@ const serializeAws_restJson1PhysicalResourceId = (input, context) => {
|
|
|
4171
4149
|
...(input.type != null && { type: input.type }),
|
|
4172
4150
|
};
|
|
4173
4151
|
};
|
|
4174
|
-
const
|
|
4152
|
+
const se_RecommendationIdList = (input, context) => {
|
|
4175
4153
|
return input
|
|
4176
4154
|
.filter((e) => e != null)
|
|
4177
4155
|
.map((entry) => {
|
|
4178
4156
|
return entry;
|
|
4179
4157
|
});
|
|
4180
4158
|
};
|
|
4181
|
-
const
|
|
4159
|
+
const se_RenderRecommendationTypeList = (input, context) => {
|
|
4182
4160
|
return input
|
|
4183
4161
|
.filter((e) => e != null)
|
|
4184
4162
|
.map((entry) => {
|
|
4185
4163
|
return entry;
|
|
4186
4164
|
});
|
|
4187
4165
|
};
|
|
4188
|
-
const
|
|
4166
|
+
const se_ResourceMapping = (input, context) => {
|
|
4189
4167
|
return {
|
|
4190
4168
|
...(input.appRegistryAppName != null && { appRegistryAppName: input.appRegistryAppName }),
|
|
4191
4169
|
...(input.eksSourceName != null && { eksSourceName: input.eksSourceName }),
|
|
4192
4170
|
...(input.logicalStackName != null && { logicalStackName: input.logicalStackName }),
|
|
4193
4171
|
...(input.mappingType != null && { mappingType: input.mappingType }),
|
|
4194
4172
|
...(input.physicalResourceId != null && {
|
|
4195
|
-
physicalResourceId:
|
|
4173
|
+
physicalResourceId: se_PhysicalResourceId(input.physicalResourceId, context),
|
|
4196
4174
|
}),
|
|
4197
4175
|
...(input.resourceGroupName != null && { resourceGroupName: input.resourceGroupName }),
|
|
4198
4176
|
...(input.resourceName != null && { resourceName: input.resourceName }),
|
|
4199
4177
|
...(input.terraformSourceName != null && { terraformSourceName: input.terraformSourceName }),
|
|
4200
4178
|
};
|
|
4201
4179
|
};
|
|
4202
|
-
const
|
|
4180
|
+
const se_ResourceMappingList = (input, context) => {
|
|
4203
4181
|
return input
|
|
4204
4182
|
.filter((e) => e != null)
|
|
4205
4183
|
.map((entry) => {
|
|
4206
|
-
return
|
|
4184
|
+
return se_ResourceMapping(entry, context);
|
|
4207
4185
|
});
|
|
4208
4186
|
};
|
|
4209
|
-
const
|
|
4187
|
+
const se_String255List = (input, context) => {
|
|
4210
4188
|
return input
|
|
4211
4189
|
.filter((e) => e != null)
|
|
4212
4190
|
.map((entry) => {
|
|
4213
4191
|
return entry;
|
|
4214
4192
|
});
|
|
4215
4193
|
};
|
|
4216
|
-
const
|
|
4194
|
+
const se_TagMap = (input, context) => {
|
|
4217
4195
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4218
4196
|
if (value === null) {
|
|
4219
4197
|
return acc;
|
|
@@ -4222,28 +4200,28 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
4222
4200
|
return acc;
|
|
4223
4201
|
}, {});
|
|
4224
4202
|
};
|
|
4225
|
-
const
|
|
4203
|
+
const se_TerraformSource = (input, context) => {
|
|
4226
4204
|
return {
|
|
4227
4205
|
...(input.s3StateFileUrl != null && { s3StateFileUrl: input.s3StateFileUrl }),
|
|
4228
4206
|
};
|
|
4229
4207
|
};
|
|
4230
|
-
const
|
|
4208
|
+
const se_TerraformSourceList = (input, context) => {
|
|
4231
4209
|
return input
|
|
4232
4210
|
.filter((e) => e != null)
|
|
4233
4211
|
.map((entry) => {
|
|
4234
|
-
return
|
|
4212
|
+
return se_TerraformSource(entry, context);
|
|
4235
4213
|
});
|
|
4236
4214
|
};
|
|
4237
|
-
const
|
|
4215
|
+
const de_AdditionalInfoMap = (output, context) => {
|
|
4238
4216
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4239
4217
|
if (value === null) {
|
|
4240
4218
|
return acc;
|
|
4241
4219
|
}
|
|
4242
|
-
acc[key] =
|
|
4220
|
+
acc[key] = de_AdditionalInfoValueList(value, context);
|
|
4243
4221
|
return acc;
|
|
4244
4222
|
}, {});
|
|
4245
4223
|
};
|
|
4246
|
-
const
|
|
4224
|
+
const de_AdditionalInfoValueList = (output, context) => {
|
|
4247
4225
|
const retVal = (output || [])
|
|
4248
4226
|
.filter((e) => e != null)
|
|
4249
4227
|
.map((entry) => {
|
|
@@ -4254,11 +4232,11 @@ const deserializeAws_restJson1AdditionalInfoValueList = (output, context) => {
|
|
|
4254
4232
|
});
|
|
4255
4233
|
return retVal;
|
|
4256
4234
|
};
|
|
4257
|
-
const
|
|
4235
|
+
const de_AlarmRecommendation = (output, context) => {
|
|
4258
4236
|
return {
|
|
4259
4237
|
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4260
4238
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
4261
|
-
items: output.items != null ?
|
|
4239
|
+
items: output.items != null ? de_RecommendationItemList(output.items, context) : undefined,
|
|
4262
4240
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4263
4241
|
prerequisite: (0, smithy_client_1.expectString)(output.prerequisite),
|
|
4264
4242
|
recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
|
|
@@ -4266,18 +4244,18 @@ const deserializeAws_restJson1AlarmRecommendation = (output, context) => {
|
|
|
4266
4244
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
4267
4245
|
};
|
|
4268
4246
|
};
|
|
4269
|
-
const
|
|
4247
|
+
const de_AlarmRecommendationList = (output, context) => {
|
|
4270
4248
|
const retVal = (output || [])
|
|
4271
4249
|
.filter((e) => e != null)
|
|
4272
4250
|
.map((entry) => {
|
|
4273
4251
|
if (entry === null) {
|
|
4274
4252
|
return null;
|
|
4275
4253
|
}
|
|
4276
|
-
return
|
|
4254
|
+
return de_AlarmRecommendation(entry, context);
|
|
4277
4255
|
});
|
|
4278
4256
|
return retVal;
|
|
4279
4257
|
};
|
|
4280
|
-
const
|
|
4258
|
+
const de_AlarmReferenceIdList = (output, context) => {
|
|
4281
4259
|
const retVal = (output || [])
|
|
4282
4260
|
.filter((e) => e != null)
|
|
4283
4261
|
.map((entry) => {
|
|
@@ -4288,7 +4266,7 @@ const deserializeAws_restJson1AlarmReferenceIdList = (output, context) => {
|
|
|
4288
4266
|
});
|
|
4289
4267
|
return retVal;
|
|
4290
4268
|
};
|
|
4291
|
-
const
|
|
4269
|
+
const de_App = (output, context) => {
|
|
4292
4270
|
return {
|
|
4293
4271
|
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
4294
4272
|
assessmentSchedule: (0, smithy_client_1.expectString)(output.assessmentSchedule),
|
|
@@ -4307,34 +4285,32 @@ const deserializeAws_restJson1App = (output, context) => {
|
|
|
4307
4285
|
policyArn: (0, smithy_client_1.expectString)(output.policyArn),
|
|
4308
4286
|
resiliencyScore: (0, smithy_client_1.limitedParseDouble)(output.resiliencyScore),
|
|
4309
4287
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4310
|
-
tags: output.tags != null ?
|
|
4288
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
4311
4289
|
};
|
|
4312
4290
|
};
|
|
4313
|
-
const
|
|
4291
|
+
const de_AppAssessment = (output, context) => {
|
|
4314
4292
|
return {
|
|
4315
4293
|
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
4316
4294
|
appVersion: (0, smithy_client_1.expectString)(output.appVersion),
|
|
4317
4295
|
assessmentArn: (0, smithy_client_1.expectString)(output.assessmentArn),
|
|
4318
4296
|
assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
|
|
4319
4297
|
assessmentStatus: (0, smithy_client_1.expectString)(output.assessmentStatus),
|
|
4320
|
-
compliance: output.compliance != null ?
|
|
4298
|
+
compliance: output.compliance != null ? de_AssessmentCompliance(output.compliance, context) : undefined,
|
|
4321
4299
|
complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
|
|
4322
|
-
cost: output.cost != null ?
|
|
4300
|
+
cost: output.cost != null ? de_Cost(output.cost, context) : undefined,
|
|
4323
4301
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
4324
4302
|
invoker: (0, smithy_client_1.expectString)(output.invoker),
|
|
4325
4303
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
4326
|
-
policy: output.policy != null ?
|
|
4327
|
-
resiliencyScore: output.resiliencyScore != null
|
|
4328
|
-
? deserializeAws_restJson1ResiliencyScore(output.resiliencyScore, context)
|
|
4329
|
-
: undefined,
|
|
4304
|
+
policy: output.policy != null ? de_ResiliencyPolicy(output.policy, context) : undefined,
|
|
4305
|
+
resiliencyScore: output.resiliencyScore != null ? de_ResiliencyScore(output.resiliencyScore, context) : undefined,
|
|
4330
4306
|
resourceErrorsDetails: output.resourceErrorsDetails != null
|
|
4331
|
-
?
|
|
4307
|
+
? de_ResourceErrorsDetails(output.resourceErrorsDetails, context)
|
|
4332
4308
|
: undefined,
|
|
4333
4309
|
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
4334
|
-
tags: output.tags != null ?
|
|
4310
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
4335
4311
|
};
|
|
4336
4312
|
};
|
|
4337
|
-
const
|
|
4313
|
+
const de_AppAssessmentSummary = (output, context) => {
|
|
4338
4314
|
return {
|
|
4339
4315
|
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
4340
4316
|
appVersion: (0, smithy_client_1.expectString)(output.appVersion),
|
|
@@ -4342,7 +4318,7 @@ const deserializeAws_restJson1AppAssessmentSummary = (output, context) => {
|
|
|
4342
4318
|
assessmentName: (0, smithy_client_1.expectString)(output.assessmentName),
|
|
4343
4319
|
assessmentStatus: (0, smithy_client_1.expectString)(output.assessmentStatus),
|
|
4344
4320
|
complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
|
|
4345
|
-
cost: output.cost != null ?
|
|
4321
|
+
cost: output.cost != null ? de_Cost(output.cost, context) : undefined,
|
|
4346
4322
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
4347
4323
|
invoker: (0, smithy_client_1.expectString)(output.invoker),
|
|
4348
4324
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
@@ -4350,76 +4326,70 @@ const deserializeAws_restJson1AppAssessmentSummary = (output, context) => {
|
|
|
4350
4326
|
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
4351
4327
|
};
|
|
4352
4328
|
};
|
|
4353
|
-
const
|
|
4329
|
+
const de_AppAssessmentSummaryList = (output, context) => {
|
|
4354
4330
|
const retVal = (output || [])
|
|
4355
4331
|
.filter((e) => e != null)
|
|
4356
4332
|
.map((entry) => {
|
|
4357
4333
|
if (entry === null) {
|
|
4358
4334
|
return null;
|
|
4359
4335
|
}
|
|
4360
|
-
return
|
|
4336
|
+
return de_AppAssessmentSummary(entry, context);
|
|
4361
4337
|
});
|
|
4362
4338
|
return retVal;
|
|
4363
4339
|
};
|
|
4364
|
-
const
|
|
4340
|
+
const de_AppComponent = (output, context) => {
|
|
4365
4341
|
return {
|
|
4366
|
-
additionalInfo: output.additionalInfo != null
|
|
4367
|
-
? deserializeAws_restJson1AdditionalInfoMap(output.additionalInfo, context)
|
|
4368
|
-
: undefined,
|
|
4342
|
+
additionalInfo: output.additionalInfo != null ? de_AdditionalInfoMap(output.additionalInfo, context) : undefined,
|
|
4369
4343
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
4370
4344
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4371
4345
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
4372
4346
|
};
|
|
4373
4347
|
};
|
|
4374
|
-
const
|
|
4348
|
+
const de_AppComponentCompliance = (output, context) => {
|
|
4375
4349
|
return {
|
|
4376
4350
|
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4377
|
-
compliance: output.compliance != null ?
|
|
4378
|
-
cost: output.cost != null ?
|
|
4351
|
+
compliance: output.compliance != null ? de_AssessmentCompliance(output.compliance, context) : undefined,
|
|
4352
|
+
cost: output.cost != null ? de_Cost(output.cost, context) : undefined,
|
|
4379
4353
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
4380
|
-
resiliencyScore: output.resiliencyScore != null
|
|
4381
|
-
? deserializeAws_restJson1ResiliencyScore(output.resiliencyScore, context)
|
|
4382
|
-
: undefined,
|
|
4354
|
+
resiliencyScore: output.resiliencyScore != null ? de_ResiliencyScore(output.resiliencyScore, context) : undefined,
|
|
4383
4355
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4384
4356
|
};
|
|
4385
4357
|
};
|
|
4386
|
-
const
|
|
4358
|
+
const de_AppComponentList = (output, context) => {
|
|
4387
4359
|
const retVal = (output || [])
|
|
4388
4360
|
.filter((e) => e != null)
|
|
4389
4361
|
.map((entry) => {
|
|
4390
4362
|
if (entry === null) {
|
|
4391
4363
|
return null;
|
|
4392
4364
|
}
|
|
4393
|
-
return
|
|
4365
|
+
return de_AppComponent(entry, context);
|
|
4394
4366
|
});
|
|
4395
4367
|
return retVal;
|
|
4396
4368
|
};
|
|
4397
|
-
const
|
|
4369
|
+
const de_AppInputSource = (output, context) => {
|
|
4398
4370
|
return {
|
|
4399
4371
|
eksSourceClusterNamespace: output.eksSourceClusterNamespace != null
|
|
4400
|
-
?
|
|
4372
|
+
? de_EksSourceClusterNamespace(output.eksSourceClusterNamespace, context)
|
|
4401
4373
|
: undefined,
|
|
4402
4374
|
importType: (0, smithy_client_1.expectString)(output.importType),
|
|
4403
4375
|
resourceCount: (0, smithy_client_1.expectInt32)(output.resourceCount),
|
|
4404
4376
|
sourceArn: (0, smithy_client_1.expectString)(output.sourceArn),
|
|
4405
4377
|
sourceName: (0, smithy_client_1.expectString)(output.sourceName),
|
|
4406
|
-
terraformSource: output.terraformSource != null
|
|
4407
|
-
? deserializeAws_restJson1TerraformSource(output.terraformSource, context)
|
|
4408
|
-
: undefined,
|
|
4378
|
+
terraformSource: output.terraformSource != null ? de_TerraformSource(output.terraformSource, context) : undefined,
|
|
4409
4379
|
};
|
|
4410
4380
|
};
|
|
4411
|
-
const
|
|
4381
|
+
const de_AppInputSourceList = (output, context) => {
|
|
4412
4382
|
const retVal = (output || [])
|
|
4413
4383
|
.filter((e) => e != null)
|
|
4414
4384
|
.map((entry) => {
|
|
4415
4385
|
if (entry === null) {
|
|
4416
4386
|
return null;
|
|
4417
4387
|
}
|
|
4418
|
-
return
|
|
4388
|
+
return de_AppInputSource(entry, context);
|
|
4419
4389
|
});
|
|
4420
4390
|
return retVal;
|
|
4421
4391
|
};
|
|
4422
|
-
const
|
|
4392
|
+
const de_AppSummary = (output, context) => {
|
|
4423
4393
|
return {
|
|
4424
4394
|
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
4425
4395
|
assessmentSchedule: (0, smithy_client_1.expectString)(output.assessmentSchedule),
|
|
@@ -4433,34 +4403,34 @@ const deserializeAws_restJson1AppSummary = (output, context) => {
|
|
|
4433
4403
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4434
4404
|
};
|
|
4435
4405
|
};
|
|
4436
|
-
const
|
|
4406
|
+
const de_AppSummaryList = (output, context) => {
|
|
4437
4407
|
const retVal = (output || [])
|
|
4438
4408
|
.filter((e) => e != null)
|
|
4439
4409
|
.map((entry) => {
|
|
4440
4410
|
if (entry === null) {
|
|
4441
4411
|
return null;
|
|
4442
4412
|
}
|
|
4443
|
-
return
|
|
4413
|
+
return de_AppSummary(entry, context);
|
|
4444
4414
|
});
|
|
4445
4415
|
return retVal;
|
|
4446
4416
|
};
|
|
4447
|
-
const
|
|
4417
|
+
const de_AppVersionList = (output, context) => {
|
|
4448
4418
|
const retVal = (output || [])
|
|
4449
4419
|
.filter((e) => e != null)
|
|
4450
4420
|
.map((entry) => {
|
|
4451
4421
|
if (entry === null) {
|
|
4452
4422
|
return null;
|
|
4453
4423
|
}
|
|
4454
|
-
return
|
|
4424
|
+
return de_AppVersionSummary(entry, context);
|
|
4455
4425
|
});
|
|
4456
4426
|
return retVal;
|
|
4457
4427
|
};
|
|
4458
|
-
const
|
|
4428
|
+
const de_AppVersionSummary = (output, context) => {
|
|
4459
4429
|
return {
|
|
4460
4430
|
appVersion: (0, smithy_client_1.expectString)(output.appVersion),
|
|
4461
4431
|
};
|
|
4462
4432
|
};
|
|
4463
|
-
const
|
|
4433
|
+
const de_ArnList = (output, context) => {
|
|
4464
4434
|
const retVal = (output || [])
|
|
4465
4435
|
.filter((e) => e != null)
|
|
4466
4436
|
.map((entry) => {
|
|
@@ -4471,83 +4441,81 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
4471
4441
|
});
|
|
4472
4442
|
return retVal;
|
|
4473
4443
|
};
|
|
4474
|
-
const
|
|
4444
|
+
const de_AssessmentCompliance = (output, context) => {
|
|
4475
4445
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4476
4446
|
if (value === null) {
|
|
4477
4447
|
return acc;
|
|
4478
4448
|
}
|
|
4479
|
-
acc[key] =
|
|
4449
|
+
acc[key] = de_DisruptionCompliance(value, context);
|
|
4480
4450
|
return acc;
|
|
4481
4451
|
}, {});
|
|
4482
4452
|
};
|
|
4483
|
-
const
|
|
4453
|
+
const de_ComponentCompliancesList = (output, context) => {
|
|
4484
4454
|
const retVal = (output || [])
|
|
4485
4455
|
.filter((e) => e != null)
|
|
4486
4456
|
.map((entry) => {
|
|
4487
4457
|
if (entry === null) {
|
|
4488
4458
|
return null;
|
|
4489
4459
|
}
|
|
4490
|
-
return
|
|
4460
|
+
return de_AppComponentCompliance(entry, context);
|
|
4491
4461
|
});
|
|
4492
4462
|
return retVal;
|
|
4493
4463
|
};
|
|
4494
|
-
const
|
|
4464
|
+
const de_ComponentRecommendation = (output, context) => {
|
|
4495
4465
|
return {
|
|
4496
4466
|
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4497
4467
|
configRecommendations: output.configRecommendations != null
|
|
4498
|
-
?
|
|
4468
|
+
? de_ConfigRecommendationList(output.configRecommendations, context)
|
|
4499
4469
|
: undefined,
|
|
4500
4470
|
recommendationStatus: (0, smithy_client_1.expectString)(output.recommendationStatus),
|
|
4501
4471
|
};
|
|
4502
4472
|
};
|
|
4503
|
-
const
|
|
4473
|
+
const de_ComponentRecommendationList = (output, context) => {
|
|
4504
4474
|
const retVal = (output || [])
|
|
4505
4475
|
.filter((e) => e != null)
|
|
4506
4476
|
.map((entry) => {
|
|
4507
4477
|
if (entry === null) {
|
|
4508
4478
|
return null;
|
|
4509
4479
|
}
|
|
4510
|
-
return
|
|
4480
|
+
return de_ComponentRecommendation(entry, context);
|
|
4511
4481
|
});
|
|
4512
4482
|
return retVal;
|
|
4513
4483
|
};
|
|
4514
|
-
const
|
|
4484
|
+
const de_ConfigRecommendation = (output, context) => {
|
|
4515
4485
|
return {
|
|
4516
4486
|
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4517
|
-
compliance: output.compliance != null ?
|
|
4518
|
-
cost: output.cost != null ?
|
|
4487
|
+
compliance: output.compliance != null ? de_AssessmentCompliance(output.compliance, context) : undefined,
|
|
4488
|
+
cost: output.cost != null ? de_Cost(output.cost, context) : undefined,
|
|
4519
4489
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
4520
4490
|
haArchitecture: (0, smithy_client_1.expectString)(output.haArchitecture),
|
|
4521
4491
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4522
4492
|
optimizationType: (0, smithy_client_1.expectString)(output.optimizationType),
|
|
4523
4493
|
recommendationCompliance: output.recommendationCompliance != null
|
|
4524
|
-
?
|
|
4494
|
+
? de_RecommendationCompliance(output.recommendationCompliance, context)
|
|
4525
4495
|
: undefined,
|
|
4526
4496
|
referenceId: (0, smithy_client_1.expectString)(output.referenceId),
|
|
4527
|
-
suggestedChanges: output.suggestedChanges != null
|
|
4528
|
-
? deserializeAws_restJson1SuggestedChangesList(output.suggestedChanges, context)
|
|
4529
|
-
: undefined,
|
|
4497
|
+
suggestedChanges: output.suggestedChanges != null ? de_SuggestedChangesList(output.suggestedChanges, context) : undefined,
|
|
4530
4498
|
};
|
|
4531
4499
|
};
|
|
4532
|
-
const
|
|
4500
|
+
const de_ConfigRecommendationList = (output, context) => {
|
|
4533
4501
|
const retVal = (output || [])
|
|
4534
4502
|
.filter((e) => e != null)
|
|
4535
4503
|
.map((entry) => {
|
|
4536
4504
|
if (entry === null) {
|
|
4537
4505
|
return null;
|
|
4538
4506
|
}
|
|
4539
|
-
return
|
|
4507
|
+
return de_ConfigRecommendation(entry, context);
|
|
4540
4508
|
});
|
|
4541
4509
|
return retVal;
|
|
4542
4510
|
};
|
|
4543
|
-
const
|
|
4511
|
+
const de_Cost = (output, context) => {
|
|
4544
4512
|
return {
|
|
4545
4513
|
amount: (0, smithy_client_1.limitedParseDouble)(output.amount),
|
|
4546
4514
|
currency: (0, smithy_client_1.expectString)(output.currency),
|
|
4547
4515
|
frequency: (0, smithy_client_1.expectString)(output.frequency),
|
|
4548
4516
|
};
|
|
4549
4517
|
};
|
|
4550
|
-
const
|
|
4518
|
+
const de_DisruptionCompliance = (output, context) => {
|
|
4551
4519
|
return {
|
|
4552
4520
|
achievableRpoInSecs: (0, smithy_client_1.expectInt32)(output.achievableRpoInSecs),
|
|
4553
4521
|
achievableRtoInSecs: (0, smithy_client_1.expectInt32)(output.achievableRtoInSecs),
|
|
@@ -4561,16 +4529,16 @@ const deserializeAws_restJson1DisruptionCompliance = (output, context) => {
|
|
|
4561
4529
|
rtoReferenceId: (0, smithy_client_1.expectString)(output.rtoReferenceId),
|
|
4562
4530
|
};
|
|
4563
4531
|
};
|
|
4564
|
-
const
|
|
4532
|
+
const de_DisruptionPolicy = (output, context) => {
|
|
4565
4533
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4566
4534
|
if (value === null) {
|
|
4567
4535
|
return acc;
|
|
4568
4536
|
}
|
|
4569
|
-
acc[key] =
|
|
4537
|
+
acc[key] = de_FailurePolicy(value, context);
|
|
4570
4538
|
return acc;
|
|
4571
4539
|
}, {});
|
|
4572
4540
|
};
|
|
4573
|
-
const
|
|
4541
|
+
const de_DisruptionResiliencyScore = (output, context) => {
|
|
4574
4542
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4575
4543
|
if (value === null) {
|
|
4576
4544
|
return acc;
|
|
@@ -4579,7 +4547,7 @@ const deserializeAws_restJson1DisruptionResiliencyScore = (output, context) => {
|
|
|
4579
4547
|
return acc;
|
|
4580
4548
|
}, {});
|
|
4581
4549
|
};
|
|
4582
|
-
const
|
|
4550
|
+
const de_EksNamespaceList = (output, context) => {
|
|
4583
4551
|
const retVal = (output || [])
|
|
4584
4552
|
.filter((e) => e != null)
|
|
4585
4553
|
.map((entry) => {
|
|
@@ -4590,36 +4558,36 @@ const deserializeAws_restJson1EksNamespaceList = (output, context) => {
|
|
|
4590
4558
|
});
|
|
4591
4559
|
return retVal;
|
|
4592
4560
|
};
|
|
4593
|
-
const
|
|
4561
|
+
const de_EksSource = (output, context) => {
|
|
4594
4562
|
return {
|
|
4595
4563
|
eksClusterArn: (0, smithy_client_1.expectString)(output.eksClusterArn),
|
|
4596
|
-
namespaces: output.namespaces != null ?
|
|
4564
|
+
namespaces: output.namespaces != null ? de_EksNamespaceList(output.namespaces, context) : undefined,
|
|
4597
4565
|
};
|
|
4598
4566
|
};
|
|
4599
|
-
const
|
|
4567
|
+
const de_EksSourceClusterNamespace = (output, context) => {
|
|
4600
4568
|
return {
|
|
4601
4569
|
eksClusterArn: (0, smithy_client_1.expectString)(output.eksClusterArn),
|
|
4602
4570
|
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
4603
4571
|
};
|
|
4604
4572
|
};
|
|
4605
|
-
const
|
|
4573
|
+
const de_EksSourceList = (output, context) => {
|
|
4606
4574
|
const retVal = (output || [])
|
|
4607
4575
|
.filter((e) => e != null)
|
|
4608
4576
|
.map((entry) => {
|
|
4609
4577
|
if (entry === null) {
|
|
4610
4578
|
return null;
|
|
4611
4579
|
}
|
|
4612
|
-
return
|
|
4580
|
+
return de_EksSource(entry, context);
|
|
4613
4581
|
});
|
|
4614
4582
|
return retVal;
|
|
4615
4583
|
};
|
|
4616
|
-
const
|
|
4584
|
+
const de_FailurePolicy = (output, context) => {
|
|
4617
4585
|
return {
|
|
4618
4586
|
rpoInSecs: (0, smithy_client_1.expectInt32)(output.rpoInSecs),
|
|
4619
4587
|
rtoInSecs: (0, smithy_client_1.expectInt32)(output.rtoInSecs),
|
|
4620
4588
|
};
|
|
4621
4589
|
};
|
|
4622
|
-
const
|
|
4590
|
+
const de_LogicalResourceId = (output, context) => {
|
|
4623
4591
|
return {
|
|
4624
4592
|
eksSourceName: (0, smithy_client_1.expectString)(output.eksSourceName),
|
|
4625
4593
|
identifier: (0, smithy_client_1.expectString)(output.identifier),
|
|
@@ -4628,26 +4596,18 @@ const deserializeAws_restJson1LogicalResourceId = (output, context) => {
|
|
|
4628
4596
|
terraformSourceName: (0, smithy_client_1.expectString)(output.terraformSourceName),
|
|
4629
4597
|
};
|
|
4630
4598
|
};
|
|
4631
|
-
const
|
|
4599
|
+
const de_PhysicalResource = (output, context) => {
|
|
4632
4600
|
return {
|
|
4633
|
-
additionalInfo: output.additionalInfo != null
|
|
4634
|
-
|
|
4635
|
-
: undefined,
|
|
4636
|
-
appComponents: output.appComponents != null
|
|
4637
|
-
? deserializeAws_restJson1AppComponentList(output.appComponents, context)
|
|
4638
|
-
: undefined,
|
|
4601
|
+
additionalInfo: output.additionalInfo != null ? de_AdditionalInfoMap(output.additionalInfo, context) : undefined,
|
|
4602
|
+
appComponents: output.appComponents != null ? de_AppComponentList(output.appComponents, context) : undefined,
|
|
4639
4603
|
excluded: (0, smithy_client_1.expectBoolean)(output.excluded),
|
|
4640
|
-
logicalResourceId: output.logicalResourceId != null
|
|
4641
|
-
|
|
4642
|
-
: undefined,
|
|
4643
|
-
physicalResourceId: output.physicalResourceId != null
|
|
4644
|
-
? deserializeAws_restJson1PhysicalResourceId(output.physicalResourceId, context)
|
|
4645
|
-
: undefined,
|
|
4604
|
+
logicalResourceId: output.logicalResourceId != null ? de_LogicalResourceId(output.logicalResourceId, context) : undefined,
|
|
4605
|
+
physicalResourceId: output.physicalResourceId != null ? de_PhysicalResourceId(output.physicalResourceId, context) : undefined,
|
|
4646
4606
|
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
4647
4607
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
4648
4608
|
};
|
|
4649
4609
|
};
|
|
4650
|
-
const
|
|
4610
|
+
const de_PhysicalResourceId = (output, context) => {
|
|
4651
4611
|
return {
|
|
4652
4612
|
awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
|
|
4653
4613
|
awsRegion: (0, smithy_client_1.expectString)(output.awsRegion),
|
|
@@ -4655,27 +4615,27 @@ const deserializeAws_restJson1PhysicalResourceId = (output, context) => {
|
|
|
4655
4615
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
4656
4616
|
};
|
|
4657
4617
|
};
|
|
4658
|
-
const
|
|
4618
|
+
const de_PhysicalResourceList = (output, context) => {
|
|
4659
4619
|
const retVal = (output || [])
|
|
4660
4620
|
.filter((e) => e != null)
|
|
4661
4621
|
.map((entry) => {
|
|
4662
4622
|
if (entry === null) {
|
|
4663
4623
|
return null;
|
|
4664
4624
|
}
|
|
4665
|
-
return
|
|
4625
|
+
return de_PhysicalResource(entry, context);
|
|
4666
4626
|
});
|
|
4667
4627
|
return retVal;
|
|
4668
4628
|
};
|
|
4669
|
-
const
|
|
4629
|
+
const de_RecommendationCompliance = (output, context) => {
|
|
4670
4630
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4671
4631
|
if (value === null) {
|
|
4672
4632
|
return acc;
|
|
4673
4633
|
}
|
|
4674
|
-
acc[key] =
|
|
4634
|
+
acc[key] = de_RecommendationDisruptionCompliance(value, context);
|
|
4675
4635
|
return acc;
|
|
4676
4636
|
}, {});
|
|
4677
4637
|
};
|
|
4678
|
-
const
|
|
4638
|
+
const de_RecommendationDisruptionCompliance = (output, context) => {
|
|
4679
4639
|
return {
|
|
4680
4640
|
expectedComplianceStatus: (0, smithy_client_1.expectString)(output.expectedComplianceStatus),
|
|
4681
4641
|
expectedRpoDescription: (0, smithy_client_1.expectString)(output.expectedRpoDescription),
|
|
@@ -4684,7 +4644,7 @@ const deserializeAws_restJson1RecommendationDisruptionCompliance = (output, cont
|
|
|
4684
4644
|
expectedRtoInSecs: (0, smithy_client_1.expectInt32)(output.expectedRtoInSecs),
|
|
4685
4645
|
};
|
|
4686
4646
|
};
|
|
4687
|
-
const
|
|
4647
|
+
const de_RecommendationIdList = (output, context) => {
|
|
4688
4648
|
const retVal = (output || [])
|
|
4689
4649
|
.filter((e) => e != null)
|
|
4690
4650
|
.map((entry) => {
|
|
@@ -4695,7 +4655,7 @@ const deserializeAws_restJson1RecommendationIdList = (output, context) => {
|
|
|
4695
4655
|
});
|
|
4696
4656
|
return retVal;
|
|
4697
4657
|
};
|
|
4698
|
-
const
|
|
4658
|
+
const de_RecommendationItem = (output, context) => {
|
|
4699
4659
|
return {
|
|
4700
4660
|
alreadyImplemented: (0, smithy_client_1.expectBoolean)(output.alreadyImplemented),
|
|
4701
4661
|
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
@@ -4703,18 +4663,18 @@ const deserializeAws_restJson1RecommendationItem = (output, context) => {
|
|
|
4703
4663
|
targetRegion: (0, smithy_client_1.expectString)(output.targetRegion),
|
|
4704
4664
|
};
|
|
4705
4665
|
};
|
|
4706
|
-
const
|
|
4666
|
+
const de_RecommendationItemList = (output, context) => {
|
|
4707
4667
|
const retVal = (output || [])
|
|
4708
4668
|
.filter((e) => e != null)
|
|
4709
4669
|
.map((entry) => {
|
|
4710
4670
|
if (entry === null) {
|
|
4711
4671
|
return null;
|
|
4712
4672
|
}
|
|
4713
|
-
return
|
|
4673
|
+
return de_RecommendationItem(entry, context);
|
|
4714
4674
|
});
|
|
4715
4675
|
return retVal;
|
|
4716
4676
|
};
|
|
4717
|
-
const
|
|
4677
|
+
const de_RecommendationTemplate = (output, context) => {
|
|
4718
4678
|
return {
|
|
4719
4679
|
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
4720
4680
|
assessmentArn: (0, smithy_client_1.expectString)(output.assessmentArn),
|
|
@@ -4723,33 +4683,29 @@ const deserializeAws_restJson1RecommendationTemplate = (output, context) => {
|
|
|
4723
4683
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
4724
4684
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4725
4685
|
needsReplacements: (0, smithy_client_1.expectBoolean)(output.needsReplacements),
|
|
4726
|
-
recommendationIds: output.recommendationIds != null
|
|
4727
|
-
? deserializeAws_restJson1RecommendationIdList(output.recommendationIds, context)
|
|
4728
|
-
: undefined,
|
|
4686
|
+
recommendationIds: output.recommendationIds != null ? de_RecommendationIdList(output.recommendationIds, context) : undefined,
|
|
4729
4687
|
recommendationTemplateArn: (0, smithy_client_1.expectString)(output.recommendationTemplateArn),
|
|
4730
4688
|
recommendationTypes: output.recommendationTypes != null
|
|
4731
|
-
?
|
|
4689
|
+
? de_RenderRecommendationTypeList(output.recommendationTypes, context)
|
|
4732
4690
|
: undefined,
|
|
4733
4691
|
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
4734
4692
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4735
|
-
tags: output.tags != null ?
|
|
4736
|
-
templatesLocation: output.templatesLocation != null
|
|
4737
|
-
? deserializeAws_restJson1S3Location(output.templatesLocation, context)
|
|
4738
|
-
: undefined,
|
|
4693
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
4694
|
+
templatesLocation: output.templatesLocation != null ? de_S3Location(output.templatesLocation, context) : undefined,
|
|
4739
4695
|
};
|
|
4740
4696
|
};
|
|
4741
|
-
const
|
|
4697
|
+
const de_RecommendationTemplateList = (output, context) => {
|
|
4742
4698
|
const retVal = (output || [])
|
|
4743
4699
|
.filter((e) => e != null)
|
|
4744
4700
|
.map((entry) => {
|
|
4745
4701
|
if (entry === null) {
|
|
4746
4702
|
return null;
|
|
4747
4703
|
}
|
|
4748
|
-
return
|
|
4704
|
+
return de_RecommendationTemplate(entry, context);
|
|
4749
4705
|
});
|
|
4750
4706
|
return retVal;
|
|
4751
4707
|
};
|
|
4752
|
-
const
|
|
4708
|
+
const de_RenderRecommendationTypeList = (output, context) => {
|
|
4753
4709
|
const retVal = (output || [])
|
|
4754
4710
|
.filter((e) => e != null)
|
|
4755
4711
|
.map((entry) => {
|
|
@@ -4760,102 +4716,96 @@ const deserializeAws_restJson1RenderRecommendationTypeList = (output, context) =
|
|
|
4760
4716
|
});
|
|
4761
4717
|
return retVal;
|
|
4762
4718
|
};
|
|
4763
|
-
const
|
|
4719
|
+
const de_ResiliencyPolicies = (output, context) => {
|
|
4764
4720
|
const retVal = (output || [])
|
|
4765
4721
|
.filter((e) => e != null)
|
|
4766
4722
|
.map((entry) => {
|
|
4767
4723
|
if (entry === null) {
|
|
4768
4724
|
return null;
|
|
4769
4725
|
}
|
|
4770
|
-
return
|
|
4726
|
+
return de_ResiliencyPolicy(entry, context);
|
|
4771
4727
|
});
|
|
4772
4728
|
return retVal;
|
|
4773
4729
|
};
|
|
4774
|
-
const
|
|
4730
|
+
const de_ResiliencyPolicy = (output, context) => {
|
|
4775
4731
|
return {
|
|
4776
4732
|
creationTime: output.creationTime != null
|
|
4777
4733
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
4778
4734
|
: undefined,
|
|
4779
4735
|
dataLocationConstraint: (0, smithy_client_1.expectString)(output.dataLocationConstraint),
|
|
4780
4736
|
estimatedCostTier: (0, smithy_client_1.expectString)(output.estimatedCostTier),
|
|
4781
|
-
policy: output.policy != null ?
|
|
4737
|
+
policy: output.policy != null ? de_DisruptionPolicy(output.policy, context) : undefined,
|
|
4782
4738
|
policyArn: (0, smithy_client_1.expectString)(output.policyArn),
|
|
4783
4739
|
policyDescription: (0, smithy_client_1.expectString)(output.policyDescription),
|
|
4784
4740
|
policyName: (0, smithy_client_1.expectString)(output.policyName),
|
|
4785
|
-
tags: output.tags != null ?
|
|
4741
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
4786
4742
|
tier: (0, smithy_client_1.expectString)(output.tier),
|
|
4787
4743
|
};
|
|
4788
4744
|
};
|
|
4789
|
-
const
|
|
4745
|
+
const de_ResiliencyScore = (output, context) => {
|
|
4790
4746
|
return {
|
|
4791
|
-
disruptionScore: output.disruptionScore != null
|
|
4792
|
-
? deserializeAws_restJson1DisruptionResiliencyScore(output.disruptionScore, context)
|
|
4793
|
-
: undefined,
|
|
4747
|
+
disruptionScore: output.disruptionScore != null ? de_DisruptionResiliencyScore(output.disruptionScore, context) : undefined,
|
|
4794
4748
|
score: (0, smithy_client_1.limitedParseDouble)(output.score),
|
|
4795
4749
|
};
|
|
4796
4750
|
};
|
|
4797
|
-
const
|
|
4751
|
+
const de_ResourceError = (output, context) => {
|
|
4798
4752
|
return {
|
|
4799
4753
|
logicalResourceId: (0, smithy_client_1.expectString)(output.logicalResourceId),
|
|
4800
4754
|
physicalResourceId: (0, smithy_client_1.expectString)(output.physicalResourceId),
|
|
4801
4755
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
4802
4756
|
};
|
|
4803
4757
|
};
|
|
4804
|
-
const
|
|
4758
|
+
const de_ResourceErrorList = (output, context) => {
|
|
4805
4759
|
const retVal = (output || [])
|
|
4806
4760
|
.filter((e) => e != null)
|
|
4807
4761
|
.map((entry) => {
|
|
4808
4762
|
if (entry === null) {
|
|
4809
4763
|
return null;
|
|
4810
4764
|
}
|
|
4811
|
-
return
|
|
4765
|
+
return de_ResourceError(entry, context);
|
|
4812
4766
|
});
|
|
4813
4767
|
return retVal;
|
|
4814
4768
|
};
|
|
4815
|
-
const
|
|
4769
|
+
const de_ResourceErrorsDetails = (output, context) => {
|
|
4816
4770
|
return {
|
|
4817
4771
|
hasMoreErrors: (0, smithy_client_1.expectBoolean)(output.hasMoreErrors),
|
|
4818
|
-
resourceErrors: output.resourceErrors != null
|
|
4819
|
-
? deserializeAws_restJson1ResourceErrorList(output.resourceErrors, context)
|
|
4820
|
-
: undefined,
|
|
4772
|
+
resourceErrors: output.resourceErrors != null ? de_ResourceErrorList(output.resourceErrors, context) : undefined,
|
|
4821
4773
|
};
|
|
4822
4774
|
};
|
|
4823
|
-
const
|
|
4775
|
+
const de_ResourceMapping = (output, context) => {
|
|
4824
4776
|
return {
|
|
4825
4777
|
appRegistryAppName: (0, smithy_client_1.expectString)(output.appRegistryAppName),
|
|
4826
4778
|
eksSourceName: (0, smithy_client_1.expectString)(output.eksSourceName),
|
|
4827
4779
|
logicalStackName: (0, smithy_client_1.expectString)(output.logicalStackName),
|
|
4828
4780
|
mappingType: (0, smithy_client_1.expectString)(output.mappingType),
|
|
4829
|
-
physicalResourceId: output.physicalResourceId != null
|
|
4830
|
-
? deserializeAws_restJson1PhysicalResourceId(output.physicalResourceId, context)
|
|
4831
|
-
: undefined,
|
|
4781
|
+
physicalResourceId: output.physicalResourceId != null ? de_PhysicalResourceId(output.physicalResourceId, context) : undefined,
|
|
4832
4782
|
resourceGroupName: (0, smithy_client_1.expectString)(output.resourceGroupName),
|
|
4833
4783
|
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
4834
4784
|
terraformSourceName: (0, smithy_client_1.expectString)(output.terraformSourceName),
|
|
4835
4785
|
};
|
|
4836
4786
|
};
|
|
4837
|
-
const
|
|
4787
|
+
const de_ResourceMappingList = (output, context) => {
|
|
4838
4788
|
const retVal = (output || [])
|
|
4839
4789
|
.filter((e) => e != null)
|
|
4840
4790
|
.map((entry) => {
|
|
4841
4791
|
if (entry === null) {
|
|
4842
4792
|
return null;
|
|
4843
4793
|
}
|
|
4844
|
-
return
|
|
4794
|
+
return de_ResourceMapping(entry, context);
|
|
4845
4795
|
});
|
|
4846
4796
|
return retVal;
|
|
4847
4797
|
};
|
|
4848
|
-
const
|
|
4798
|
+
const de_S3Location = (output, context) => {
|
|
4849
4799
|
return {
|
|
4850
4800
|
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
4851
4801
|
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
4852
4802
|
};
|
|
4853
4803
|
};
|
|
4854
|
-
const
|
|
4804
|
+
const de_SopRecommendation = (output, context) => {
|
|
4855
4805
|
return {
|
|
4856
4806
|
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4857
4807
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
4858
|
-
items: output.items != null ?
|
|
4808
|
+
items: output.items != null ? de_RecommendationItemList(output.items, context) : undefined,
|
|
4859
4809
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4860
4810
|
prerequisite: (0, smithy_client_1.expectString)(output.prerequisite),
|
|
4861
4811
|
recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
|
|
@@ -4863,18 +4813,18 @@ const deserializeAws_restJson1SopRecommendation = (output, context) => {
|
|
|
4863
4813
|
serviceType: (0, smithy_client_1.expectString)(output.serviceType),
|
|
4864
4814
|
};
|
|
4865
4815
|
};
|
|
4866
|
-
const
|
|
4816
|
+
const de_SopRecommendationList = (output, context) => {
|
|
4867
4817
|
const retVal = (output || [])
|
|
4868
4818
|
.filter((e) => e != null)
|
|
4869
4819
|
.map((entry) => {
|
|
4870
4820
|
if (entry === null) {
|
|
4871
4821
|
return null;
|
|
4872
4822
|
}
|
|
4873
|
-
return
|
|
4823
|
+
return de_SopRecommendation(entry, context);
|
|
4874
4824
|
});
|
|
4875
4825
|
return retVal;
|
|
4876
4826
|
};
|
|
4877
|
-
const
|
|
4827
|
+
const de_SuggestedChangesList = (output, context) => {
|
|
4878
4828
|
const retVal = (output || [])
|
|
4879
4829
|
.filter((e) => e != null)
|
|
4880
4830
|
.map((entry) => {
|
|
@@ -4885,7 +4835,7 @@ const deserializeAws_restJson1SuggestedChangesList = (output, context) => {
|
|
|
4885
4835
|
});
|
|
4886
4836
|
return retVal;
|
|
4887
4837
|
};
|
|
4888
|
-
const
|
|
4838
|
+
const de_TagMap = (output, context) => {
|
|
4889
4839
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4890
4840
|
if (value === null) {
|
|
4891
4841
|
return acc;
|
|
@@ -4894,31 +4844,29 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
4894
4844
|
return acc;
|
|
4895
4845
|
}, {});
|
|
4896
4846
|
};
|
|
4897
|
-
const
|
|
4847
|
+
const de_TerraformSource = (output, context) => {
|
|
4898
4848
|
return {
|
|
4899
4849
|
s3StateFileUrl: (0, smithy_client_1.expectString)(output.s3StateFileUrl),
|
|
4900
4850
|
};
|
|
4901
4851
|
};
|
|
4902
|
-
const
|
|
4852
|
+
const de_TerraformSourceList = (output, context) => {
|
|
4903
4853
|
const retVal = (output || [])
|
|
4904
4854
|
.filter((e) => e != null)
|
|
4905
4855
|
.map((entry) => {
|
|
4906
4856
|
if (entry === null) {
|
|
4907
4857
|
return null;
|
|
4908
4858
|
}
|
|
4909
|
-
return
|
|
4859
|
+
return de_TerraformSource(entry, context);
|
|
4910
4860
|
});
|
|
4911
4861
|
return retVal;
|
|
4912
4862
|
};
|
|
4913
|
-
const
|
|
4863
|
+
const de_TestRecommendation = (output, context) => {
|
|
4914
4864
|
return {
|
|
4915
4865
|
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
4916
|
-
dependsOnAlarms: output.dependsOnAlarms != null
|
|
4917
|
-
? deserializeAws_restJson1AlarmReferenceIdList(output.dependsOnAlarms, context)
|
|
4918
|
-
: undefined,
|
|
4866
|
+
dependsOnAlarms: output.dependsOnAlarms != null ? de_AlarmReferenceIdList(output.dependsOnAlarms, context) : undefined,
|
|
4919
4867
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
4920
4868
|
intent: (0, smithy_client_1.expectString)(output.intent),
|
|
4921
|
-
items: output.items != null ?
|
|
4869
|
+
items: output.items != null ? de_RecommendationItemList(output.items, context) : undefined,
|
|
4922
4870
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4923
4871
|
prerequisite: (0, smithy_client_1.expectString)(output.prerequisite),
|
|
4924
4872
|
recommendationId: (0, smithy_client_1.expectString)(output.recommendationId),
|
|
@@ -4927,37 +4875,33 @@ const deserializeAws_restJson1TestRecommendation = (output, context) => {
|
|
|
4927
4875
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
4928
4876
|
};
|
|
4929
4877
|
};
|
|
4930
|
-
const
|
|
4878
|
+
const de_TestRecommendationList = (output, context) => {
|
|
4931
4879
|
const retVal = (output || [])
|
|
4932
4880
|
.filter((e) => e != null)
|
|
4933
4881
|
.map((entry) => {
|
|
4934
4882
|
if (entry === null) {
|
|
4935
4883
|
return null;
|
|
4936
4884
|
}
|
|
4937
|
-
return
|
|
4885
|
+
return de_TestRecommendation(entry, context);
|
|
4938
4886
|
});
|
|
4939
4887
|
return retVal;
|
|
4940
4888
|
};
|
|
4941
|
-
const
|
|
4889
|
+
const de_UnsupportedResource = (output, context) => {
|
|
4942
4890
|
return {
|
|
4943
|
-
logicalResourceId: output.logicalResourceId != null
|
|
4944
|
-
|
|
4945
|
-
: undefined,
|
|
4946
|
-
physicalResourceId: output.physicalResourceId != null
|
|
4947
|
-
? deserializeAws_restJson1PhysicalResourceId(output.physicalResourceId, context)
|
|
4948
|
-
: undefined,
|
|
4891
|
+
logicalResourceId: output.logicalResourceId != null ? de_LogicalResourceId(output.logicalResourceId, context) : undefined,
|
|
4892
|
+
physicalResourceId: output.physicalResourceId != null ? de_PhysicalResourceId(output.physicalResourceId, context) : undefined,
|
|
4949
4893
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
4950
4894
|
unsupportedResourceStatus: (0, smithy_client_1.expectString)(output.unsupportedResourceStatus),
|
|
4951
4895
|
};
|
|
4952
4896
|
};
|
|
4953
|
-
const
|
|
4897
|
+
const de_UnsupportedResourceList = (output, context) => {
|
|
4954
4898
|
const retVal = (output || [])
|
|
4955
4899
|
.filter((e) => e != null)
|
|
4956
4900
|
.map((entry) => {
|
|
4957
4901
|
if (entry === null) {
|
|
4958
4902
|
return null;
|
|
4959
4903
|
}
|
|
4960
|
-
return
|
|
4904
|
+
return de_UnsupportedResource(entry, context);
|
|
4961
4905
|
});
|
|
4962
4906
|
return retVal;
|
|
4963
4907
|
};
|