@aws-sdk/client-migration-hub-refactor-spaces 3.303.0 → 3.309.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/CreateApplicationCommand.js +2 -2
- package/dist-cjs/commands/CreateEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/CreateRouteCommand.js +2 -2
- package/dist-cjs/commands/CreateServiceCommand.js +2 -2
- package/dist-cjs/commands/DeleteApplicationCommand.js +2 -2
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteRouteCommand.js +2 -2
- package/dist-cjs/commands/DeleteServiceCommand.js +2 -2
- package/dist-cjs/commands/GetApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/GetResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/GetRouteCommand.js +2 -2
- package/dist-cjs/commands/GetServiceCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationsCommand.js +2 -2
- package/dist-cjs/commands/ListEnvironmentVpcsCommand.js +2 -2
- package/dist-cjs/commands/ListEnvironmentsCommand.js +2 -2
- package/dist-cjs/commands/ListRoutesCommand.js +2 -2
- package/dist-cjs/commands/ListServicesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateRouteCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +378 -396
- package/dist-es/commands/CreateApplicationCommand.js +3 -3
- package/dist-es/commands/CreateEnvironmentCommand.js +3 -3
- package/dist-es/commands/CreateRouteCommand.js +3 -3
- package/dist-es/commands/CreateServiceCommand.js +3 -3
- package/dist-es/commands/DeleteApplicationCommand.js +3 -3
- package/dist-es/commands/DeleteEnvironmentCommand.js +3 -3
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist-es/commands/DeleteRouteCommand.js +3 -3
- package/dist-es/commands/DeleteServiceCommand.js +3 -3
- package/dist-es/commands/GetApplicationCommand.js +3 -3
- package/dist-es/commands/GetEnvironmentCommand.js +3 -3
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -3
- package/dist-es/commands/GetRouteCommand.js +3 -3
- package/dist-es/commands/GetServiceCommand.js +3 -3
- package/dist-es/commands/ListApplicationsCommand.js +3 -3
- package/dist-es/commands/ListEnvironmentVpcsCommand.js +3 -3
- package/dist-es/commands/ListEnvironmentsCommand.js +3 -3
- package/dist-es/commands/ListRoutesCommand.js +3 -3
- package/dist-es/commands/ListServicesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateRouteCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +329 -347
- package/dist-types/protocols/Aws_restJson1.d.ts +192 -48
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -48
- package/package.json +29 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateRouteCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesCommand = exports.de_ListRoutesCommand = exports.de_ListEnvironmentVpcsCommand = exports.de_ListEnvironmentsCommand = exports.de_ListApplicationsCommand = exports.de_GetServiceCommand = exports.de_GetRouteCommand = exports.de_GetResourcePolicyCommand = exports.de_GetEnvironmentCommand = exports.de_GetApplicationCommand = exports.de_DeleteServiceCommand = exports.de_DeleteRouteCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteEnvironmentCommand = exports.de_DeleteApplicationCommand = exports.de_CreateServiceCommand = exports.de_CreateRouteCommand = exports.de_CreateEnvironmentCommand = exports.de_CreateApplicationCommand = exports.se_UpdateRouteCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesCommand = exports.se_ListRoutesCommand = exports.se_ListEnvironmentVpcsCommand = exports.se_ListEnvironmentsCommand = exports.se_ListApplicationsCommand = exports.se_GetServiceCommand = exports.se_GetRouteCommand = exports.se_GetResourcePolicyCommand = exports.se_GetEnvironmentCommand = exports.se_GetApplicationCommand = exports.se_DeleteServiceCommand = exports.se_DeleteRouteCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteEnvironmentCommand = exports.se_DeleteApplicationCommand = exports.se_CreateServiceCommand = exports.se_CreateRouteCommand = exports.se_CreateEnvironmentCommand = exports.se_CreateApplicationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const MigrationHubRefactorSpacesServiceException_1 = require("../models/MigrationHubRefactorSpacesServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateApplicationCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -16,13 +16,11 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
16
16
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
|
-
...(input.ApiGatewayProxy != null && {
|
|
20
|
-
ApiGatewayProxy: serializeAws_restJson1ApiGatewayProxyInput(input.ApiGatewayProxy, context),
|
|
21
|
-
}),
|
|
19
|
+
...(input.ApiGatewayProxy != null && { ApiGatewayProxy: se_ApiGatewayProxyInput(input.ApiGatewayProxy, context) }),
|
|
22
20
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
23
21
|
...(input.Name != null && { Name: input.Name }),
|
|
24
22
|
...(input.ProxyType != null && { ProxyType: input.ProxyType }),
|
|
25
|
-
...(input.Tags != null && { Tags:
|
|
23
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
26
24
|
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
27
25
|
});
|
|
28
26
|
return new protocol_http_1.HttpRequest({
|
|
@@ -35,8 +33,8 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
35
33
|
body,
|
|
36
34
|
});
|
|
37
35
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
36
|
+
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
37
|
+
const se_CreateEnvironmentCommand = async (input, context) => {
|
|
40
38
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
39
|
const headers = {
|
|
42
40
|
"content-type": "application/json",
|
|
@@ -48,7 +46,7 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
48
46
|
...(input.Description != null && { Description: input.Description }),
|
|
49
47
|
...(input.Name != null && { Name: input.Name }),
|
|
50
48
|
...(input.NetworkFabricType != null && { NetworkFabricType: input.NetworkFabricType }),
|
|
51
|
-
...(input.Tags != null && { Tags:
|
|
49
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
52
50
|
});
|
|
53
51
|
return new protocol_http_1.HttpRequest({
|
|
54
52
|
protocol,
|
|
@@ -60,8 +58,8 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
60
58
|
body,
|
|
61
59
|
});
|
|
62
60
|
};
|
|
63
|
-
exports.
|
|
64
|
-
const
|
|
61
|
+
exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
|
|
62
|
+
const se_CreateRouteCommand = async (input, context) => {
|
|
65
63
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
66
64
|
const headers = {
|
|
67
65
|
"content-type": "application/json",
|
|
@@ -73,15 +71,11 @@ const serializeAws_restJson1CreateRouteCommand = async (input, context) => {
|
|
|
73
71
|
let body;
|
|
74
72
|
body = JSON.stringify({
|
|
75
73
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
76
|
-
...(input.DefaultRoute != null && {
|
|
77
|
-
DefaultRoute: serializeAws_restJson1DefaultRouteInput(input.DefaultRoute, context),
|
|
78
|
-
}),
|
|
74
|
+
...(input.DefaultRoute != null && { DefaultRoute: se_DefaultRouteInput(input.DefaultRoute, context) }),
|
|
79
75
|
...(input.RouteType != null && { RouteType: input.RouteType }),
|
|
80
76
|
...(input.ServiceIdentifier != null && { ServiceIdentifier: input.ServiceIdentifier }),
|
|
81
|
-
...(input.Tags != null && { Tags:
|
|
82
|
-
...(input.UriPathRoute != null && {
|
|
83
|
-
UriPathRoute: serializeAws_restJson1UriPathRouteInput(input.UriPathRoute, context),
|
|
84
|
-
}),
|
|
77
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
78
|
+
...(input.UriPathRoute != null && { UriPathRoute: se_UriPathRouteInput(input.UriPathRoute, context) }),
|
|
85
79
|
});
|
|
86
80
|
return new protocol_http_1.HttpRequest({
|
|
87
81
|
protocol,
|
|
@@ -93,8 +87,8 @@ const serializeAws_restJson1CreateRouteCommand = async (input, context) => {
|
|
|
93
87
|
body,
|
|
94
88
|
});
|
|
95
89
|
};
|
|
96
|
-
exports.
|
|
97
|
-
const
|
|
90
|
+
exports.se_CreateRouteCommand = se_CreateRouteCommand;
|
|
91
|
+
const se_CreateServiceCommand = async (input, context) => {
|
|
98
92
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
93
|
const headers = {
|
|
100
94
|
"content-type": "application/json",
|
|
@@ -108,14 +102,10 @@ const serializeAws_restJson1CreateServiceCommand = async (input, context) => {
|
|
|
108
102
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
109
103
|
...(input.Description != null && { Description: input.Description }),
|
|
110
104
|
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
111
|
-
...(input.LambdaEndpoint != null && {
|
|
112
|
-
LambdaEndpoint: serializeAws_restJson1LambdaEndpointInput(input.LambdaEndpoint, context),
|
|
113
|
-
}),
|
|
105
|
+
...(input.LambdaEndpoint != null && { LambdaEndpoint: se_LambdaEndpointInput(input.LambdaEndpoint, context) }),
|
|
114
106
|
...(input.Name != null && { Name: input.Name }),
|
|
115
|
-
...(input.Tags != null && { Tags:
|
|
116
|
-
...(input.UrlEndpoint != null && {
|
|
117
|
-
UrlEndpoint: serializeAws_restJson1UrlEndpointInput(input.UrlEndpoint, context),
|
|
118
|
-
}),
|
|
107
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
108
|
+
...(input.UrlEndpoint != null && { UrlEndpoint: se_UrlEndpointInput(input.UrlEndpoint, context) }),
|
|
119
109
|
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
120
110
|
});
|
|
121
111
|
return new protocol_http_1.HttpRequest({
|
|
@@ -128,8 +118,8 @@ const serializeAws_restJson1CreateServiceCommand = async (input, context) => {
|
|
|
128
118
|
body,
|
|
129
119
|
});
|
|
130
120
|
};
|
|
131
|
-
exports.
|
|
132
|
-
const
|
|
121
|
+
exports.se_CreateServiceCommand = se_CreateServiceCommand;
|
|
122
|
+
const se_DeleteApplicationCommand = async (input, context) => {
|
|
133
123
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
134
124
|
const headers = {};
|
|
135
125
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -147,8 +137,8 @@ const serializeAws_restJson1DeleteApplicationCommand = async (input, context) =>
|
|
|
147
137
|
body,
|
|
148
138
|
});
|
|
149
139
|
};
|
|
150
|
-
exports.
|
|
151
|
-
const
|
|
140
|
+
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
141
|
+
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
152
142
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
153
143
|
const headers = {};
|
|
154
144
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{EnvironmentIdentifier}";
|
|
@@ -164,8 +154,8 @@ const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) =>
|
|
|
164
154
|
body,
|
|
165
155
|
});
|
|
166
156
|
};
|
|
167
|
-
exports.
|
|
168
|
-
const
|
|
157
|
+
exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
|
|
158
|
+
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
169
159
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
170
160
|
const headers = {};
|
|
171
161
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{Identifier}";
|
|
@@ -181,8 +171,8 @@ const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context)
|
|
|
181
171
|
body,
|
|
182
172
|
});
|
|
183
173
|
};
|
|
184
|
-
exports.
|
|
185
|
-
const
|
|
174
|
+
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
175
|
+
const se_DeleteRouteCommand = async (input, context) => {
|
|
186
176
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
187
177
|
const headers = {};
|
|
188
178
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -201,8 +191,8 @@ const serializeAws_restJson1DeleteRouteCommand = async (input, context) => {
|
|
|
201
191
|
body,
|
|
202
192
|
});
|
|
203
193
|
};
|
|
204
|
-
exports.
|
|
205
|
-
const
|
|
194
|
+
exports.se_DeleteRouteCommand = se_DeleteRouteCommand;
|
|
195
|
+
const se_DeleteServiceCommand = async (input, context) => {
|
|
206
196
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
207
197
|
const headers = {};
|
|
208
198
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -221,8 +211,8 @@ const serializeAws_restJson1DeleteServiceCommand = async (input, context) => {
|
|
|
221
211
|
body,
|
|
222
212
|
});
|
|
223
213
|
};
|
|
224
|
-
exports.
|
|
225
|
-
const
|
|
214
|
+
exports.se_DeleteServiceCommand = se_DeleteServiceCommand;
|
|
215
|
+
const se_GetApplicationCommand = async (input, context) => {
|
|
226
216
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
227
217
|
const headers = {};
|
|
228
218
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -240,8 +230,8 @@ const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
|
|
|
240
230
|
body,
|
|
241
231
|
});
|
|
242
232
|
};
|
|
243
|
-
exports.
|
|
244
|
-
const
|
|
233
|
+
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
234
|
+
const se_GetEnvironmentCommand = async (input, context) => {
|
|
245
235
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
246
236
|
const headers = {};
|
|
247
237
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{EnvironmentIdentifier}";
|
|
@@ -257,8 +247,8 @@ const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
|
|
|
257
247
|
body,
|
|
258
248
|
});
|
|
259
249
|
};
|
|
260
|
-
exports.
|
|
261
|
-
const
|
|
250
|
+
exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
|
|
251
|
+
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
262
252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
263
253
|
const headers = {};
|
|
264
254
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{Identifier}";
|
|
@@ -274,8 +264,8 @@ const serializeAws_restJson1GetResourcePolicyCommand = async (input, context) =>
|
|
|
274
264
|
body,
|
|
275
265
|
});
|
|
276
266
|
};
|
|
277
|
-
exports.
|
|
278
|
-
const
|
|
267
|
+
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
268
|
+
const se_GetRouteCommand = async (input, context) => {
|
|
279
269
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
280
270
|
const headers = {};
|
|
281
271
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -294,8 +284,8 @@ const serializeAws_restJson1GetRouteCommand = async (input, context) => {
|
|
|
294
284
|
body,
|
|
295
285
|
});
|
|
296
286
|
};
|
|
297
|
-
exports.
|
|
298
|
-
const
|
|
287
|
+
exports.se_GetRouteCommand = se_GetRouteCommand;
|
|
288
|
+
const se_GetServiceCommand = async (input, context) => {
|
|
299
289
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
300
290
|
const headers = {};
|
|
301
291
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -314,8 +304,8 @@ const serializeAws_restJson1GetServiceCommand = async (input, context) => {
|
|
|
314
304
|
body,
|
|
315
305
|
});
|
|
316
306
|
};
|
|
317
|
-
exports.
|
|
318
|
-
const
|
|
307
|
+
exports.se_GetServiceCommand = se_GetServiceCommand;
|
|
308
|
+
const se_ListApplicationsCommand = async (input, context) => {
|
|
319
309
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
320
310
|
const headers = {};
|
|
321
311
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -337,8 +327,8 @@ const serializeAws_restJson1ListApplicationsCommand = async (input, context) =>
|
|
|
337
327
|
body,
|
|
338
328
|
});
|
|
339
329
|
};
|
|
340
|
-
exports.
|
|
341
|
-
const
|
|
330
|
+
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
331
|
+
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
342
332
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
343
333
|
const headers = {};
|
|
344
334
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
@@ -358,8 +348,8 @@ const serializeAws_restJson1ListEnvironmentsCommand = async (input, context) =>
|
|
|
358
348
|
body,
|
|
359
349
|
});
|
|
360
350
|
};
|
|
361
|
-
exports.
|
|
362
|
-
const
|
|
351
|
+
exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
|
|
352
|
+
const se_ListEnvironmentVpcsCommand = async (input, context) => {
|
|
363
353
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
364
354
|
const headers = {};
|
|
365
355
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -381,8 +371,8 @@ const serializeAws_restJson1ListEnvironmentVpcsCommand = async (input, context)
|
|
|
381
371
|
body,
|
|
382
372
|
});
|
|
383
373
|
};
|
|
384
|
-
exports.
|
|
385
|
-
const
|
|
374
|
+
exports.se_ListEnvironmentVpcsCommand = se_ListEnvironmentVpcsCommand;
|
|
375
|
+
const se_ListRoutesCommand = async (input, context) => {
|
|
386
376
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
387
377
|
const headers = {};
|
|
388
378
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -405,8 +395,8 @@ const serializeAws_restJson1ListRoutesCommand = async (input, context) => {
|
|
|
405
395
|
body,
|
|
406
396
|
});
|
|
407
397
|
};
|
|
408
|
-
exports.
|
|
409
|
-
const
|
|
398
|
+
exports.se_ListRoutesCommand = se_ListRoutesCommand;
|
|
399
|
+
const se_ListServicesCommand = async (input, context) => {
|
|
410
400
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
401
|
const headers = {};
|
|
412
402
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -429,8 +419,8 @@ const serializeAws_restJson1ListServicesCommand = async (input, context) => {
|
|
|
429
419
|
body,
|
|
430
420
|
});
|
|
431
421
|
};
|
|
432
|
-
exports.
|
|
433
|
-
const
|
|
422
|
+
exports.se_ListServicesCommand = se_ListServicesCommand;
|
|
423
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
434
424
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
435
425
|
const headers = {};
|
|
436
426
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -446,8 +436,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
446
436
|
body,
|
|
447
437
|
});
|
|
448
438
|
};
|
|
449
|
-
exports.
|
|
450
|
-
const
|
|
439
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
440
|
+
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
451
441
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
452
442
|
const headers = {
|
|
453
443
|
"content-type": "application/json",
|
|
@@ -468,8 +458,8 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
|
|
|
468
458
|
body,
|
|
469
459
|
});
|
|
470
460
|
};
|
|
471
|
-
exports.
|
|
472
|
-
const
|
|
461
|
+
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
462
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
473
463
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
474
464
|
const headers = {
|
|
475
465
|
"content-type": "application/json",
|
|
@@ -478,7 +468,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
478
468
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
479
469
|
let body;
|
|
480
470
|
body = JSON.stringify({
|
|
481
|
-
...(input.Tags != null && { Tags:
|
|
471
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
482
472
|
});
|
|
483
473
|
return new protocol_http_1.HttpRequest({
|
|
484
474
|
protocol,
|
|
@@ -490,8 +480,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
490
480
|
body,
|
|
491
481
|
});
|
|
492
482
|
};
|
|
493
|
-
exports.
|
|
494
|
-
const
|
|
483
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
484
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
495
485
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
496
486
|
const headers = {};
|
|
497
487
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -514,8 +504,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
514
504
|
body,
|
|
515
505
|
});
|
|
516
506
|
};
|
|
517
|
-
exports.
|
|
518
|
-
const
|
|
507
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
508
|
+
const se_UpdateRouteCommand = async (input, context) => {
|
|
519
509
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
520
510
|
const headers = {
|
|
521
511
|
"content-type": "application/json",
|
|
@@ -539,17 +529,17 @@ const serializeAws_restJson1UpdateRouteCommand = async (input, context) => {
|
|
|
539
529
|
body,
|
|
540
530
|
});
|
|
541
531
|
};
|
|
542
|
-
exports.
|
|
543
|
-
const
|
|
532
|
+
exports.se_UpdateRouteCommand = se_UpdateRouteCommand;
|
|
533
|
+
const de_CreateApplicationCommand = async (output, context) => {
|
|
544
534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
545
|
-
return
|
|
535
|
+
return de_CreateApplicationCommandError(output, context);
|
|
546
536
|
}
|
|
547
537
|
const contents = map({
|
|
548
538
|
$metadata: deserializeMetadata(output),
|
|
549
539
|
});
|
|
550
540
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
551
541
|
if (data.ApiGatewayProxy != null) {
|
|
552
|
-
contents.ApiGatewayProxy =
|
|
542
|
+
contents.ApiGatewayProxy = de_ApiGatewayProxyInput(data.ApiGatewayProxy, context);
|
|
553
543
|
}
|
|
554
544
|
if (data.ApplicationId != null) {
|
|
555
545
|
contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
|
|
@@ -582,15 +572,15 @@ const deserializeAws_restJson1CreateApplicationCommand = async (output, context)
|
|
|
582
572
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
583
573
|
}
|
|
584
574
|
if (data.Tags != null) {
|
|
585
|
-
contents.Tags =
|
|
575
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
586
576
|
}
|
|
587
577
|
if (data.VpcId != null) {
|
|
588
578
|
contents.VpcId = (0, smithy_client_1.expectString)(data.VpcId);
|
|
589
579
|
}
|
|
590
580
|
return contents;
|
|
591
581
|
};
|
|
592
|
-
exports.
|
|
593
|
-
const
|
|
582
|
+
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
583
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
594
584
|
const parsedOutput = {
|
|
595
585
|
...output,
|
|
596
586
|
body: await parseErrorBody(output.body, context),
|
|
@@ -599,25 +589,25 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
599
589
|
switch (errorCode) {
|
|
600
590
|
case "AccessDeniedException":
|
|
601
591
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
602
|
-
throw await
|
|
592
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
603
593
|
case "ConflictException":
|
|
604
594
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
605
|
-
throw await
|
|
595
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
606
596
|
case "InternalServerException":
|
|
607
597
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
608
|
-
throw await
|
|
598
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
609
599
|
case "ResourceNotFoundException":
|
|
610
600
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
611
|
-
throw await
|
|
601
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
612
602
|
case "ServiceQuotaExceededException":
|
|
613
603
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
614
|
-
throw await
|
|
604
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
615
605
|
case "ThrottlingException":
|
|
616
606
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
617
|
-
throw await
|
|
607
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
618
608
|
case "ValidationException":
|
|
619
609
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
620
|
-
throw await
|
|
610
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
621
611
|
default:
|
|
622
612
|
const parsedBody = parsedOutput.body;
|
|
623
613
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -628,9 +618,9 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
628
618
|
});
|
|
629
619
|
}
|
|
630
620
|
};
|
|
631
|
-
const
|
|
621
|
+
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
632
622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
633
|
-
return
|
|
623
|
+
return de_CreateEnvironmentCommandError(output, context);
|
|
634
624
|
}
|
|
635
625
|
const contents = map({
|
|
636
626
|
$metadata: deserializeMetadata(output),
|
|
@@ -664,12 +654,12 @@ const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context)
|
|
|
664
654
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
665
655
|
}
|
|
666
656
|
if (data.Tags != null) {
|
|
667
|
-
contents.Tags =
|
|
657
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
668
658
|
}
|
|
669
659
|
return contents;
|
|
670
660
|
};
|
|
671
|
-
exports.
|
|
672
|
-
const
|
|
661
|
+
exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
|
|
662
|
+
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
673
663
|
const parsedOutput = {
|
|
674
664
|
...output,
|
|
675
665
|
body: await parseErrorBody(output.body, context),
|
|
@@ -678,25 +668,25 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
678
668
|
switch (errorCode) {
|
|
679
669
|
case "AccessDeniedException":
|
|
680
670
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
681
|
-
throw await
|
|
671
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
682
672
|
case "ConflictException":
|
|
683
673
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
684
|
-
throw await
|
|
674
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
685
675
|
case "InternalServerException":
|
|
686
676
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
687
|
-
throw await
|
|
677
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
688
678
|
case "ResourceNotFoundException":
|
|
689
679
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
690
|
-
throw await
|
|
680
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
691
681
|
case "ServiceQuotaExceededException":
|
|
692
682
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
693
|
-
throw await
|
|
683
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
694
684
|
case "ThrottlingException":
|
|
695
685
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
696
|
-
throw await
|
|
686
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
697
687
|
case "ValidationException":
|
|
698
688
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
699
|
-
throw await
|
|
689
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
700
690
|
default:
|
|
701
691
|
const parsedBody = parsedOutput.body;
|
|
702
692
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -707,9 +697,9 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
707
697
|
});
|
|
708
698
|
}
|
|
709
699
|
};
|
|
710
|
-
const
|
|
700
|
+
const de_CreateRouteCommand = async (output, context) => {
|
|
711
701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
-
return
|
|
702
|
+
return de_CreateRouteCommandError(output, context);
|
|
713
703
|
}
|
|
714
704
|
const contents = map({
|
|
715
705
|
$metadata: deserializeMetadata(output),
|
|
@@ -746,15 +736,15 @@ const deserializeAws_restJson1CreateRouteCommand = async (output, context) => {
|
|
|
746
736
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
747
737
|
}
|
|
748
738
|
if (data.Tags != null) {
|
|
749
|
-
contents.Tags =
|
|
739
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
750
740
|
}
|
|
751
741
|
if (data.UriPathRoute != null) {
|
|
752
|
-
contents.UriPathRoute =
|
|
742
|
+
contents.UriPathRoute = de_UriPathRouteInput(data.UriPathRoute, context);
|
|
753
743
|
}
|
|
754
744
|
return contents;
|
|
755
745
|
};
|
|
756
|
-
exports.
|
|
757
|
-
const
|
|
746
|
+
exports.de_CreateRouteCommand = de_CreateRouteCommand;
|
|
747
|
+
const de_CreateRouteCommandError = async (output, context) => {
|
|
758
748
|
const parsedOutput = {
|
|
759
749
|
...output,
|
|
760
750
|
body: await parseErrorBody(output.body, context),
|
|
@@ -763,25 +753,25 @@ const deserializeAws_restJson1CreateRouteCommandError = async (output, context)
|
|
|
763
753
|
switch (errorCode) {
|
|
764
754
|
case "AccessDeniedException":
|
|
765
755
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
766
|
-
throw await
|
|
756
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
767
757
|
case "ConflictException":
|
|
768
758
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
769
|
-
throw await
|
|
759
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
770
760
|
case "InternalServerException":
|
|
771
761
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
772
|
-
throw await
|
|
762
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
773
763
|
case "ResourceNotFoundException":
|
|
774
764
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
775
|
-
throw await
|
|
765
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
776
766
|
case "ServiceQuotaExceededException":
|
|
777
767
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
778
|
-
throw await
|
|
768
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
779
769
|
case "ThrottlingException":
|
|
780
770
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
781
|
-
throw await
|
|
771
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
782
772
|
case "ValidationException":
|
|
783
773
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
784
|
-
throw await
|
|
774
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
785
775
|
default:
|
|
786
776
|
const parsedBody = parsedOutput.body;
|
|
787
777
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -792,9 +782,9 @@ const deserializeAws_restJson1CreateRouteCommandError = async (output, context)
|
|
|
792
782
|
});
|
|
793
783
|
}
|
|
794
784
|
};
|
|
795
|
-
const
|
|
785
|
+
const de_CreateServiceCommand = async (output, context) => {
|
|
796
786
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
797
|
-
return
|
|
787
|
+
return de_CreateServiceCommandError(output, context);
|
|
798
788
|
}
|
|
799
789
|
const contents = map({
|
|
800
790
|
$metadata: deserializeMetadata(output),
|
|
@@ -822,7 +812,7 @@ const deserializeAws_restJson1CreateServiceCommand = async (output, context) =>
|
|
|
822
812
|
contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
|
|
823
813
|
}
|
|
824
814
|
if (data.LambdaEndpoint != null) {
|
|
825
|
-
contents.LambdaEndpoint =
|
|
815
|
+
contents.LambdaEndpoint = de_LambdaEndpointInput(data.LambdaEndpoint, context);
|
|
826
816
|
}
|
|
827
817
|
if (data.LastUpdatedTime != null) {
|
|
828
818
|
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
@@ -840,18 +830,18 @@ const deserializeAws_restJson1CreateServiceCommand = async (output, context) =>
|
|
|
840
830
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
841
831
|
}
|
|
842
832
|
if (data.Tags != null) {
|
|
843
|
-
contents.Tags =
|
|
833
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
844
834
|
}
|
|
845
835
|
if (data.UrlEndpoint != null) {
|
|
846
|
-
contents.UrlEndpoint =
|
|
836
|
+
contents.UrlEndpoint = de_UrlEndpointInput(data.UrlEndpoint, context);
|
|
847
837
|
}
|
|
848
838
|
if (data.VpcId != null) {
|
|
849
839
|
contents.VpcId = (0, smithy_client_1.expectString)(data.VpcId);
|
|
850
840
|
}
|
|
851
841
|
return contents;
|
|
852
842
|
};
|
|
853
|
-
exports.
|
|
854
|
-
const
|
|
843
|
+
exports.de_CreateServiceCommand = de_CreateServiceCommand;
|
|
844
|
+
const de_CreateServiceCommandError = async (output, context) => {
|
|
855
845
|
const parsedOutput = {
|
|
856
846
|
...output,
|
|
857
847
|
body: await parseErrorBody(output.body, context),
|
|
@@ -860,25 +850,25 @@ const deserializeAws_restJson1CreateServiceCommandError = async (output, context
|
|
|
860
850
|
switch (errorCode) {
|
|
861
851
|
case "AccessDeniedException":
|
|
862
852
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
863
|
-
throw await
|
|
853
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
864
854
|
case "ConflictException":
|
|
865
855
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
866
|
-
throw await
|
|
856
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
867
857
|
case "InternalServerException":
|
|
868
858
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
869
|
-
throw await
|
|
859
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
870
860
|
case "ResourceNotFoundException":
|
|
871
861
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
872
|
-
throw await
|
|
862
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
873
863
|
case "ServiceQuotaExceededException":
|
|
874
864
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
875
|
-
throw await
|
|
865
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
876
866
|
case "ThrottlingException":
|
|
877
867
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
878
|
-
throw await
|
|
868
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
879
869
|
case "ValidationException":
|
|
880
870
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
881
|
-
throw await
|
|
871
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
882
872
|
default:
|
|
883
873
|
const parsedBody = parsedOutput.body;
|
|
884
874
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -889,9 +879,9 @@ const deserializeAws_restJson1CreateServiceCommandError = async (output, context
|
|
|
889
879
|
});
|
|
890
880
|
}
|
|
891
881
|
};
|
|
892
|
-
const
|
|
882
|
+
const de_DeleteApplicationCommand = async (output, context) => {
|
|
893
883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
-
return
|
|
884
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
895
885
|
}
|
|
896
886
|
const contents = map({
|
|
897
887
|
$metadata: deserializeMetadata(output),
|
|
@@ -917,8 +907,8 @@ const deserializeAws_restJson1DeleteApplicationCommand = async (output, context)
|
|
|
917
907
|
}
|
|
918
908
|
return contents;
|
|
919
909
|
};
|
|
920
|
-
exports.
|
|
921
|
-
const
|
|
910
|
+
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
911
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
922
912
|
const parsedOutput = {
|
|
923
913
|
...output,
|
|
924
914
|
body: await parseErrorBody(output.body, context),
|
|
@@ -927,22 +917,22 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
927
917
|
switch (errorCode) {
|
|
928
918
|
case "AccessDeniedException":
|
|
929
919
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
930
|
-
throw await
|
|
920
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
931
921
|
case "ConflictException":
|
|
932
922
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
933
|
-
throw await
|
|
923
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
934
924
|
case "InternalServerException":
|
|
935
925
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
936
|
-
throw await
|
|
926
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
937
927
|
case "ResourceNotFoundException":
|
|
938
928
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
939
|
-
throw await
|
|
929
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
940
930
|
case "ThrottlingException":
|
|
941
931
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
942
|
-
throw await
|
|
932
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
943
933
|
case "ValidationException":
|
|
944
934
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
945
|
-
throw await
|
|
935
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
946
936
|
default:
|
|
947
937
|
const parsedBody = parsedOutput.body;
|
|
948
938
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -953,9 +943,9 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
953
943
|
});
|
|
954
944
|
}
|
|
955
945
|
};
|
|
956
|
-
const
|
|
946
|
+
const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
957
947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
-
return
|
|
948
|
+
return de_DeleteEnvironmentCommandError(output, context);
|
|
959
949
|
}
|
|
960
950
|
const contents = map({
|
|
961
951
|
$metadata: deserializeMetadata(output),
|
|
@@ -978,8 +968,8 @@ const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context)
|
|
|
978
968
|
}
|
|
979
969
|
return contents;
|
|
980
970
|
};
|
|
981
|
-
exports.
|
|
982
|
-
const
|
|
971
|
+
exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
|
|
972
|
+
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
983
973
|
const parsedOutput = {
|
|
984
974
|
...output,
|
|
985
975
|
body: await parseErrorBody(output.body, context),
|
|
@@ -988,22 +978,22 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
988
978
|
switch (errorCode) {
|
|
989
979
|
case "AccessDeniedException":
|
|
990
980
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
991
|
-
throw await
|
|
981
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
992
982
|
case "ConflictException":
|
|
993
983
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
994
|
-
throw await
|
|
984
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
995
985
|
case "InternalServerException":
|
|
996
986
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
997
|
-
throw await
|
|
987
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
998
988
|
case "ResourceNotFoundException":
|
|
999
989
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1000
|
-
throw await
|
|
990
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1001
991
|
case "ThrottlingException":
|
|
1002
992
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1003
|
-
throw await
|
|
993
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1004
994
|
case "ValidationException":
|
|
1005
995
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1006
|
-
throw await
|
|
996
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1007
997
|
default:
|
|
1008
998
|
const parsedBody = parsedOutput.body;
|
|
1009
999
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1014,9 +1004,9 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1014
1004
|
});
|
|
1015
1005
|
}
|
|
1016
1006
|
};
|
|
1017
|
-
const
|
|
1007
|
+
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
1018
1008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
1009
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
1020
1010
|
}
|
|
1021
1011
|
const contents = map({
|
|
1022
1012
|
$metadata: deserializeMetadata(output),
|
|
@@ -1024,8 +1014,8 @@ const deserializeAws_restJson1DeleteResourcePolicyCommand = async (output, conte
|
|
|
1024
1014
|
await collectBody(output.body, context);
|
|
1025
1015
|
return contents;
|
|
1026
1016
|
};
|
|
1027
|
-
exports.
|
|
1028
|
-
const
|
|
1017
|
+
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
1018
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
1029
1019
|
const parsedOutput = {
|
|
1030
1020
|
...output,
|
|
1031
1021
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1034,19 +1024,19 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1034
1024
|
switch (errorCode) {
|
|
1035
1025
|
case "AccessDeniedException":
|
|
1036
1026
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1037
|
-
throw await
|
|
1027
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1038
1028
|
case "InternalServerException":
|
|
1039
1029
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1040
|
-
throw await
|
|
1030
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1041
1031
|
case "ResourceNotFoundException":
|
|
1042
1032
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1043
|
-
throw await
|
|
1033
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1044
1034
|
case "ThrottlingException":
|
|
1045
1035
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1046
|
-
throw await
|
|
1036
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1047
1037
|
case "ValidationException":
|
|
1048
1038
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1049
|
-
throw await
|
|
1039
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1050
1040
|
default:
|
|
1051
1041
|
const parsedBody = parsedOutput.body;
|
|
1052
1042
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1057,9 +1047,9 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1057
1047
|
});
|
|
1058
1048
|
}
|
|
1059
1049
|
};
|
|
1060
|
-
const
|
|
1050
|
+
const de_DeleteRouteCommand = async (output, context) => {
|
|
1061
1051
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1062
|
-
return
|
|
1052
|
+
return de_DeleteRouteCommandError(output, context);
|
|
1063
1053
|
}
|
|
1064
1054
|
const contents = map({
|
|
1065
1055
|
$metadata: deserializeMetadata(output),
|
|
@@ -1085,8 +1075,8 @@ const deserializeAws_restJson1DeleteRouteCommand = async (output, context) => {
|
|
|
1085
1075
|
}
|
|
1086
1076
|
return contents;
|
|
1087
1077
|
};
|
|
1088
|
-
exports.
|
|
1089
|
-
const
|
|
1078
|
+
exports.de_DeleteRouteCommand = de_DeleteRouteCommand;
|
|
1079
|
+
const de_DeleteRouteCommandError = async (output, context) => {
|
|
1090
1080
|
const parsedOutput = {
|
|
1091
1081
|
...output,
|
|
1092
1082
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1095,22 +1085,22 @@ const deserializeAws_restJson1DeleteRouteCommandError = async (output, context)
|
|
|
1095
1085
|
switch (errorCode) {
|
|
1096
1086
|
case "AccessDeniedException":
|
|
1097
1087
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1098
|
-
throw await
|
|
1088
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1099
1089
|
case "ConflictException":
|
|
1100
1090
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1101
|
-
throw await
|
|
1091
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1102
1092
|
case "InternalServerException":
|
|
1103
1093
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1104
|
-
throw await
|
|
1094
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1105
1095
|
case "ResourceNotFoundException":
|
|
1106
1096
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1107
|
-
throw await
|
|
1097
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1108
1098
|
case "ThrottlingException":
|
|
1109
1099
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1110
|
-
throw await
|
|
1100
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1111
1101
|
case "ValidationException":
|
|
1112
1102
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1113
|
-
throw await
|
|
1103
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1114
1104
|
default:
|
|
1115
1105
|
const parsedBody = parsedOutput.body;
|
|
1116
1106
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1121,9 +1111,9 @@ const deserializeAws_restJson1DeleteRouteCommandError = async (output, context)
|
|
|
1121
1111
|
});
|
|
1122
1112
|
}
|
|
1123
1113
|
};
|
|
1124
|
-
const
|
|
1114
|
+
const de_DeleteServiceCommand = async (output, context) => {
|
|
1125
1115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1126
|
-
return
|
|
1116
|
+
return de_DeleteServiceCommandError(output, context);
|
|
1127
1117
|
}
|
|
1128
1118
|
const contents = map({
|
|
1129
1119
|
$metadata: deserializeMetadata(output),
|
|
@@ -1152,8 +1142,8 @@ const deserializeAws_restJson1DeleteServiceCommand = async (output, context) =>
|
|
|
1152
1142
|
}
|
|
1153
1143
|
return contents;
|
|
1154
1144
|
};
|
|
1155
|
-
exports.
|
|
1156
|
-
const
|
|
1145
|
+
exports.de_DeleteServiceCommand = de_DeleteServiceCommand;
|
|
1146
|
+
const de_DeleteServiceCommandError = async (output, context) => {
|
|
1157
1147
|
const parsedOutput = {
|
|
1158
1148
|
...output,
|
|
1159
1149
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1162,22 +1152,22 @@ const deserializeAws_restJson1DeleteServiceCommandError = async (output, context
|
|
|
1162
1152
|
switch (errorCode) {
|
|
1163
1153
|
case "AccessDeniedException":
|
|
1164
1154
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1165
|
-
throw await
|
|
1155
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1166
1156
|
case "ConflictException":
|
|
1167
1157
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1168
|
-
throw await
|
|
1158
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1169
1159
|
case "InternalServerException":
|
|
1170
1160
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1171
|
-
throw await
|
|
1161
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1172
1162
|
case "ResourceNotFoundException":
|
|
1173
1163
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1174
|
-
throw await
|
|
1164
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1175
1165
|
case "ThrottlingException":
|
|
1176
1166
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1177
|
-
throw await
|
|
1167
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1178
1168
|
case "ValidationException":
|
|
1179
1169
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1180
|
-
throw await
|
|
1170
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1181
1171
|
default:
|
|
1182
1172
|
const parsedBody = parsedOutput.body;
|
|
1183
1173
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1188,16 +1178,16 @@ const deserializeAws_restJson1DeleteServiceCommandError = async (output, context
|
|
|
1188
1178
|
});
|
|
1189
1179
|
}
|
|
1190
1180
|
};
|
|
1191
|
-
const
|
|
1181
|
+
const de_GetApplicationCommand = async (output, context) => {
|
|
1192
1182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1193
|
-
return
|
|
1183
|
+
return de_GetApplicationCommandError(output, context);
|
|
1194
1184
|
}
|
|
1195
1185
|
const contents = map({
|
|
1196
1186
|
$metadata: deserializeMetadata(output),
|
|
1197
1187
|
});
|
|
1198
1188
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1199
1189
|
if (data.ApiGatewayProxy != null) {
|
|
1200
|
-
contents.ApiGatewayProxy =
|
|
1190
|
+
contents.ApiGatewayProxy = de_ApiGatewayProxyConfig(data.ApiGatewayProxy, context);
|
|
1201
1191
|
}
|
|
1202
1192
|
if (data.ApplicationId != null) {
|
|
1203
1193
|
contents.ApplicationId = (0, smithy_client_1.expectString)(data.ApplicationId);
|
|
@@ -1215,7 +1205,7 @@ const deserializeAws_restJson1GetApplicationCommand = async (output, context) =>
|
|
|
1215
1205
|
contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
|
|
1216
1206
|
}
|
|
1217
1207
|
if (data.Error != null) {
|
|
1218
|
-
contents.Error =
|
|
1208
|
+
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1219
1209
|
}
|
|
1220
1210
|
if (data.LastUpdatedTime != null) {
|
|
1221
1211
|
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
@@ -1233,15 +1223,15 @@ const deserializeAws_restJson1GetApplicationCommand = async (output, context) =>
|
|
|
1233
1223
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1234
1224
|
}
|
|
1235
1225
|
if (data.Tags != null) {
|
|
1236
|
-
contents.Tags =
|
|
1226
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1237
1227
|
}
|
|
1238
1228
|
if (data.VpcId != null) {
|
|
1239
1229
|
contents.VpcId = (0, smithy_client_1.expectString)(data.VpcId);
|
|
1240
1230
|
}
|
|
1241
1231
|
return contents;
|
|
1242
1232
|
};
|
|
1243
|
-
exports.
|
|
1244
|
-
const
|
|
1233
|
+
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
1234
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
1245
1235
|
const parsedOutput = {
|
|
1246
1236
|
...output,
|
|
1247
1237
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1250,19 +1240,19 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1250
1240
|
switch (errorCode) {
|
|
1251
1241
|
case "AccessDeniedException":
|
|
1252
1242
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1253
|
-
throw await
|
|
1243
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1254
1244
|
case "InternalServerException":
|
|
1255
1245
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1256
|
-
throw await
|
|
1246
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1257
1247
|
case "ResourceNotFoundException":
|
|
1258
1248
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1259
|
-
throw await
|
|
1249
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1260
1250
|
case "ThrottlingException":
|
|
1261
1251
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1262
|
-
throw await
|
|
1252
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1263
1253
|
case "ValidationException":
|
|
1264
1254
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1265
|
-
throw await
|
|
1255
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1266
1256
|
default:
|
|
1267
1257
|
const parsedBody = parsedOutput.body;
|
|
1268
1258
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1273,9 +1263,9 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1273
1263
|
});
|
|
1274
1264
|
}
|
|
1275
1265
|
};
|
|
1276
|
-
const
|
|
1266
|
+
const de_GetEnvironmentCommand = async (output, context) => {
|
|
1277
1267
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1278
|
-
return
|
|
1268
|
+
return de_GetEnvironmentCommandError(output, context);
|
|
1279
1269
|
}
|
|
1280
1270
|
const contents = map({
|
|
1281
1271
|
$metadata: deserializeMetadata(output),
|
|
@@ -1294,7 +1284,7 @@ const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) =>
|
|
|
1294
1284
|
contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
|
|
1295
1285
|
}
|
|
1296
1286
|
if (data.Error != null) {
|
|
1297
|
-
contents.Error =
|
|
1287
|
+
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1298
1288
|
}
|
|
1299
1289
|
if (data.LastUpdatedTime != null) {
|
|
1300
1290
|
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
@@ -1312,15 +1302,15 @@ const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) =>
|
|
|
1312
1302
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1313
1303
|
}
|
|
1314
1304
|
if (data.Tags != null) {
|
|
1315
|
-
contents.Tags =
|
|
1305
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1316
1306
|
}
|
|
1317
1307
|
if (data.TransitGatewayId != null) {
|
|
1318
1308
|
contents.TransitGatewayId = (0, smithy_client_1.expectString)(data.TransitGatewayId);
|
|
1319
1309
|
}
|
|
1320
1310
|
return contents;
|
|
1321
1311
|
};
|
|
1322
|
-
exports.
|
|
1323
|
-
const
|
|
1312
|
+
exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
|
|
1313
|
+
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
1324
1314
|
const parsedOutput = {
|
|
1325
1315
|
...output,
|
|
1326
1316
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1329,19 +1319,19 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
1329
1319
|
switch (errorCode) {
|
|
1330
1320
|
case "AccessDeniedException":
|
|
1331
1321
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1332
|
-
throw await
|
|
1322
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1333
1323
|
case "InternalServerException":
|
|
1334
1324
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1335
|
-
throw await
|
|
1325
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1336
1326
|
case "ResourceNotFoundException":
|
|
1337
1327
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1338
|
-
throw await
|
|
1328
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1339
1329
|
case "ThrottlingException":
|
|
1340
1330
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1341
|
-
throw await
|
|
1331
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1342
1332
|
case "ValidationException":
|
|
1343
1333
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1344
|
-
throw await
|
|
1334
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1345
1335
|
default:
|
|
1346
1336
|
const parsedBody = parsedOutput.body;
|
|
1347
1337
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1352,9 +1342,9 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
1352
1342
|
});
|
|
1353
1343
|
}
|
|
1354
1344
|
};
|
|
1355
|
-
const
|
|
1345
|
+
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1356
1346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1357
|
-
return
|
|
1347
|
+
return de_GetResourcePolicyCommandError(output, context);
|
|
1358
1348
|
}
|
|
1359
1349
|
const contents = map({
|
|
1360
1350
|
$metadata: deserializeMetadata(output),
|
|
@@ -1365,8 +1355,8 @@ const deserializeAws_restJson1GetResourcePolicyCommand = async (output, context)
|
|
|
1365
1355
|
}
|
|
1366
1356
|
return contents;
|
|
1367
1357
|
};
|
|
1368
|
-
exports.
|
|
1369
|
-
const
|
|
1358
|
+
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
1359
|
+
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1370
1360
|
const parsedOutput = {
|
|
1371
1361
|
...output,
|
|
1372
1362
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1375,19 +1365,19 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
1375
1365
|
switch (errorCode) {
|
|
1376
1366
|
case "AccessDeniedException":
|
|
1377
1367
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1378
|
-
throw await
|
|
1368
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1379
1369
|
case "InternalServerException":
|
|
1380
1370
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1381
|
-
throw await
|
|
1371
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1382
1372
|
case "ResourceNotFoundException":
|
|
1383
1373
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1384
|
-
throw await
|
|
1374
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
1375
|
case "ThrottlingException":
|
|
1386
1376
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1387
|
-
throw await
|
|
1377
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1388
1378
|
case "ValidationException":
|
|
1389
1379
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1390
|
-
throw await
|
|
1380
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1391
1381
|
default:
|
|
1392
1382
|
const parsedBody = parsedOutput.body;
|
|
1393
1383
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1398,9 +1388,9 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
1398
1388
|
});
|
|
1399
1389
|
}
|
|
1400
1390
|
};
|
|
1401
|
-
const
|
|
1391
|
+
const de_GetRouteCommand = async (output, context) => {
|
|
1402
1392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1403
|
-
return
|
|
1393
|
+
return de_GetRouteCommandError(output, context);
|
|
1404
1394
|
}
|
|
1405
1395
|
const contents = map({
|
|
1406
1396
|
$metadata: deserializeMetadata(output),
|
|
@@ -1422,7 +1412,7 @@ const deserializeAws_restJson1GetRouteCommand = async (output, context) => {
|
|
|
1422
1412
|
contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
|
|
1423
1413
|
}
|
|
1424
1414
|
if (data.Error != null) {
|
|
1425
|
-
contents.Error =
|
|
1415
|
+
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1426
1416
|
}
|
|
1427
1417
|
if (data.IncludeChildPaths != null) {
|
|
1428
1418
|
contents.IncludeChildPaths = (0, smithy_client_1.expectBoolean)(data.IncludeChildPaths);
|
|
@@ -1431,13 +1421,13 @@ const deserializeAws_restJson1GetRouteCommand = async (output, context) => {
|
|
|
1431
1421
|
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
1432
1422
|
}
|
|
1433
1423
|
if (data.Methods != null) {
|
|
1434
|
-
contents.Methods =
|
|
1424
|
+
contents.Methods = de_HttpMethods(data.Methods, context);
|
|
1435
1425
|
}
|
|
1436
1426
|
if (data.OwnerAccountId != null) {
|
|
1437
1427
|
contents.OwnerAccountId = (0, smithy_client_1.expectString)(data.OwnerAccountId);
|
|
1438
1428
|
}
|
|
1439
1429
|
if (data.PathResourceToId != null) {
|
|
1440
|
-
contents.PathResourceToId =
|
|
1430
|
+
contents.PathResourceToId = de_PathResourceToId(data.PathResourceToId, context);
|
|
1441
1431
|
}
|
|
1442
1432
|
if (data.RouteId != null) {
|
|
1443
1433
|
contents.RouteId = (0, smithy_client_1.expectString)(data.RouteId);
|
|
@@ -1455,12 +1445,12 @@ const deserializeAws_restJson1GetRouteCommand = async (output, context) => {
|
|
|
1455
1445
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1456
1446
|
}
|
|
1457
1447
|
if (data.Tags != null) {
|
|
1458
|
-
contents.Tags =
|
|
1448
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1459
1449
|
}
|
|
1460
1450
|
return contents;
|
|
1461
1451
|
};
|
|
1462
|
-
exports.
|
|
1463
|
-
const
|
|
1452
|
+
exports.de_GetRouteCommand = de_GetRouteCommand;
|
|
1453
|
+
const de_GetRouteCommandError = async (output, context) => {
|
|
1464
1454
|
const parsedOutput = {
|
|
1465
1455
|
...output,
|
|
1466
1456
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1469,19 +1459,19 @@ const deserializeAws_restJson1GetRouteCommandError = async (output, context) =>
|
|
|
1469
1459
|
switch (errorCode) {
|
|
1470
1460
|
case "AccessDeniedException":
|
|
1471
1461
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1472
|
-
throw await
|
|
1462
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1473
1463
|
case "InternalServerException":
|
|
1474
1464
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1475
|
-
throw await
|
|
1465
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1476
1466
|
case "ResourceNotFoundException":
|
|
1477
1467
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1478
|
-
throw await
|
|
1468
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1479
1469
|
case "ThrottlingException":
|
|
1480
1470
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1481
|
-
throw await
|
|
1471
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1482
1472
|
case "ValidationException":
|
|
1483
1473
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1484
|
-
throw await
|
|
1474
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1485
1475
|
default:
|
|
1486
1476
|
const parsedBody = parsedOutput.body;
|
|
1487
1477
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1492,9 +1482,9 @@ const deserializeAws_restJson1GetRouteCommandError = async (output, context) =>
|
|
|
1492
1482
|
});
|
|
1493
1483
|
}
|
|
1494
1484
|
};
|
|
1495
|
-
const
|
|
1485
|
+
const de_GetServiceCommand = async (output, context) => {
|
|
1496
1486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1497
|
-
return
|
|
1487
|
+
return de_GetServiceCommandError(output, context);
|
|
1498
1488
|
}
|
|
1499
1489
|
const contents = map({
|
|
1500
1490
|
$metadata: deserializeMetadata(output),
|
|
@@ -1522,10 +1512,10 @@ const deserializeAws_restJson1GetServiceCommand = async (output, context) => {
|
|
|
1522
1512
|
contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
|
|
1523
1513
|
}
|
|
1524
1514
|
if (data.Error != null) {
|
|
1525
|
-
contents.Error =
|
|
1515
|
+
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1526
1516
|
}
|
|
1527
1517
|
if (data.LambdaEndpoint != null) {
|
|
1528
|
-
contents.LambdaEndpoint =
|
|
1518
|
+
contents.LambdaEndpoint = de_LambdaEndpointConfig(data.LambdaEndpoint, context);
|
|
1529
1519
|
}
|
|
1530
1520
|
if (data.LastUpdatedTime != null) {
|
|
1531
1521
|
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
@@ -1543,18 +1533,18 @@ const deserializeAws_restJson1GetServiceCommand = async (output, context) => {
|
|
|
1543
1533
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1544
1534
|
}
|
|
1545
1535
|
if (data.Tags != null) {
|
|
1546
|
-
contents.Tags =
|
|
1536
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1547
1537
|
}
|
|
1548
1538
|
if (data.UrlEndpoint != null) {
|
|
1549
|
-
contents.UrlEndpoint =
|
|
1539
|
+
contents.UrlEndpoint = de_UrlEndpointConfig(data.UrlEndpoint, context);
|
|
1550
1540
|
}
|
|
1551
1541
|
if (data.VpcId != null) {
|
|
1552
1542
|
contents.VpcId = (0, smithy_client_1.expectString)(data.VpcId);
|
|
1553
1543
|
}
|
|
1554
1544
|
return contents;
|
|
1555
1545
|
};
|
|
1556
|
-
exports.
|
|
1557
|
-
const
|
|
1546
|
+
exports.de_GetServiceCommand = de_GetServiceCommand;
|
|
1547
|
+
const de_GetServiceCommandError = async (output, context) => {
|
|
1558
1548
|
const parsedOutput = {
|
|
1559
1549
|
...output,
|
|
1560
1550
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1563,19 +1553,19 @@ const deserializeAws_restJson1GetServiceCommandError = async (output, context) =
|
|
|
1563
1553
|
switch (errorCode) {
|
|
1564
1554
|
case "AccessDeniedException":
|
|
1565
1555
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1566
|
-
throw await
|
|
1556
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1567
1557
|
case "InternalServerException":
|
|
1568
1558
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1569
|
-
throw await
|
|
1559
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1570
1560
|
case "ResourceNotFoundException":
|
|
1571
1561
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1572
|
-
throw await
|
|
1562
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1573
1563
|
case "ThrottlingException":
|
|
1574
1564
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1575
|
-
throw await
|
|
1565
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1576
1566
|
case "ValidationException":
|
|
1577
1567
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1578
|
-
throw await
|
|
1568
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1579
1569
|
default:
|
|
1580
1570
|
const parsedBody = parsedOutput.body;
|
|
1581
1571
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1586,24 +1576,24 @@ const deserializeAws_restJson1GetServiceCommandError = async (output, context) =
|
|
|
1586
1576
|
});
|
|
1587
1577
|
}
|
|
1588
1578
|
};
|
|
1589
|
-
const
|
|
1579
|
+
const de_ListApplicationsCommand = async (output, context) => {
|
|
1590
1580
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1591
|
-
return
|
|
1581
|
+
return de_ListApplicationsCommandError(output, context);
|
|
1592
1582
|
}
|
|
1593
1583
|
const contents = map({
|
|
1594
1584
|
$metadata: deserializeMetadata(output),
|
|
1595
1585
|
});
|
|
1596
1586
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1597
1587
|
if (data.ApplicationSummaryList != null) {
|
|
1598
|
-
contents.ApplicationSummaryList =
|
|
1588
|
+
contents.ApplicationSummaryList = de_ApplicationSummaries(data.ApplicationSummaryList, context);
|
|
1599
1589
|
}
|
|
1600
1590
|
if (data.NextToken != null) {
|
|
1601
1591
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1602
1592
|
}
|
|
1603
1593
|
return contents;
|
|
1604
1594
|
};
|
|
1605
|
-
exports.
|
|
1606
|
-
const
|
|
1595
|
+
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
1596
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
1607
1597
|
const parsedOutput = {
|
|
1608
1598
|
...output,
|
|
1609
1599
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1612,25 +1602,25 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1612
1602
|
switch (errorCode) {
|
|
1613
1603
|
case "AccessDeniedException":
|
|
1614
1604
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1615
|
-
throw await
|
|
1605
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1616
1606
|
case "ConflictException":
|
|
1617
1607
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1618
|
-
throw await
|
|
1608
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1619
1609
|
case "InternalServerException":
|
|
1620
1610
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1621
|
-
throw await
|
|
1611
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1622
1612
|
case "ResourceNotFoundException":
|
|
1623
1613
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1624
|
-
throw await
|
|
1614
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1625
1615
|
case "ServiceQuotaExceededException":
|
|
1626
1616
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1627
|
-
throw await
|
|
1617
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1628
1618
|
case "ThrottlingException":
|
|
1629
1619
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1630
|
-
throw await
|
|
1620
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1631
1621
|
case "ValidationException":
|
|
1632
1622
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1633
|
-
throw await
|
|
1623
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1634
1624
|
default:
|
|
1635
1625
|
const parsedBody = parsedOutput.body;
|
|
1636
1626
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1641,24 +1631,24 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1641
1631
|
});
|
|
1642
1632
|
}
|
|
1643
1633
|
};
|
|
1644
|
-
const
|
|
1634
|
+
const de_ListEnvironmentsCommand = async (output, context) => {
|
|
1645
1635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1646
|
-
return
|
|
1636
|
+
return de_ListEnvironmentsCommandError(output, context);
|
|
1647
1637
|
}
|
|
1648
1638
|
const contents = map({
|
|
1649
1639
|
$metadata: deserializeMetadata(output),
|
|
1650
1640
|
});
|
|
1651
1641
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1652
1642
|
if (data.EnvironmentSummaryList != null) {
|
|
1653
|
-
contents.EnvironmentSummaryList =
|
|
1643
|
+
contents.EnvironmentSummaryList = de_EnvironmentSummaries(data.EnvironmentSummaryList, context);
|
|
1654
1644
|
}
|
|
1655
1645
|
if (data.NextToken != null) {
|
|
1656
1646
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1657
1647
|
}
|
|
1658
1648
|
return contents;
|
|
1659
1649
|
};
|
|
1660
|
-
exports.
|
|
1661
|
-
const
|
|
1650
|
+
exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
|
|
1651
|
+
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
1662
1652
|
const parsedOutput = {
|
|
1663
1653
|
...output,
|
|
1664
1654
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1667,19 +1657,19 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
1667
1657
|
switch (errorCode) {
|
|
1668
1658
|
case "AccessDeniedException":
|
|
1669
1659
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1670
|
-
throw await
|
|
1660
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1671
1661
|
case "InternalServerException":
|
|
1672
1662
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1673
|
-
throw await
|
|
1663
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1674
1664
|
case "ResourceNotFoundException":
|
|
1675
1665
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1676
|
-
throw await
|
|
1666
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1677
1667
|
case "ThrottlingException":
|
|
1678
1668
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1679
|
-
throw await
|
|
1669
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1680
1670
|
case "ValidationException":
|
|
1681
1671
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1682
|
-
throw await
|
|
1672
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1683
1673
|
default:
|
|
1684
1674
|
const parsedBody = parsedOutput.body;
|
|
1685
1675
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1690,24 +1680,24 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
1690
1680
|
});
|
|
1691
1681
|
}
|
|
1692
1682
|
};
|
|
1693
|
-
const
|
|
1683
|
+
const de_ListEnvironmentVpcsCommand = async (output, context) => {
|
|
1694
1684
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1695
|
-
return
|
|
1685
|
+
return de_ListEnvironmentVpcsCommandError(output, context);
|
|
1696
1686
|
}
|
|
1697
1687
|
const contents = map({
|
|
1698
1688
|
$metadata: deserializeMetadata(output),
|
|
1699
1689
|
});
|
|
1700
1690
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1701
1691
|
if (data.EnvironmentVpcList != null) {
|
|
1702
|
-
contents.EnvironmentVpcList =
|
|
1692
|
+
contents.EnvironmentVpcList = de_EnvironmentVpcs(data.EnvironmentVpcList, context);
|
|
1703
1693
|
}
|
|
1704
1694
|
if (data.NextToken != null) {
|
|
1705
1695
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1706
1696
|
}
|
|
1707
1697
|
return contents;
|
|
1708
1698
|
};
|
|
1709
|
-
exports.
|
|
1710
|
-
const
|
|
1699
|
+
exports.de_ListEnvironmentVpcsCommand = de_ListEnvironmentVpcsCommand;
|
|
1700
|
+
const de_ListEnvironmentVpcsCommandError = async (output, context) => {
|
|
1711
1701
|
const parsedOutput = {
|
|
1712
1702
|
...output,
|
|
1713
1703
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1716,19 +1706,19 @@ const deserializeAws_restJson1ListEnvironmentVpcsCommandError = async (output, c
|
|
|
1716
1706
|
switch (errorCode) {
|
|
1717
1707
|
case "AccessDeniedException":
|
|
1718
1708
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1719
|
-
throw await
|
|
1709
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1720
1710
|
case "InternalServerException":
|
|
1721
1711
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1722
|
-
throw await
|
|
1712
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1723
1713
|
case "ResourceNotFoundException":
|
|
1724
1714
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1725
|
-
throw await
|
|
1715
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1726
1716
|
case "ThrottlingException":
|
|
1727
1717
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1728
|
-
throw await
|
|
1718
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1729
1719
|
case "ValidationException":
|
|
1730
1720
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1731
|
-
throw await
|
|
1721
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1732
1722
|
default:
|
|
1733
1723
|
const parsedBody = parsedOutput.body;
|
|
1734
1724
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1739,9 +1729,9 @@ const deserializeAws_restJson1ListEnvironmentVpcsCommandError = async (output, c
|
|
|
1739
1729
|
});
|
|
1740
1730
|
}
|
|
1741
1731
|
};
|
|
1742
|
-
const
|
|
1732
|
+
const de_ListRoutesCommand = async (output, context) => {
|
|
1743
1733
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1744
|
-
return
|
|
1734
|
+
return de_ListRoutesCommandError(output, context);
|
|
1745
1735
|
}
|
|
1746
1736
|
const contents = map({
|
|
1747
1737
|
$metadata: deserializeMetadata(output),
|
|
@@ -1751,12 +1741,12 @@ const deserializeAws_restJson1ListRoutesCommand = async (output, context) => {
|
|
|
1751
1741
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1752
1742
|
}
|
|
1753
1743
|
if (data.RouteSummaryList != null) {
|
|
1754
|
-
contents.RouteSummaryList =
|
|
1744
|
+
contents.RouteSummaryList = de_RouteSummaries(data.RouteSummaryList, context);
|
|
1755
1745
|
}
|
|
1756
1746
|
return contents;
|
|
1757
1747
|
};
|
|
1758
|
-
exports.
|
|
1759
|
-
const
|
|
1748
|
+
exports.de_ListRoutesCommand = de_ListRoutesCommand;
|
|
1749
|
+
const de_ListRoutesCommandError = async (output, context) => {
|
|
1760
1750
|
const parsedOutput = {
|
|
1761
1751
|
...output,
|
|
1762
1752
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1765,25 +1755,25 @@ const deserializeAws_restJson1ListRoutesCommandError = async (output, context) =
|
|
|
1765
1755
|
switch (errorCode) {
|
|
1766
1756
|
case "AccessDeniedException":
|
|
1767
1757
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1768
|
-
throw await
|
|
1758
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1769
1759
|
case "ConflictException":
|
|
1770
1760
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1771
|
-
throw await
|
|
1761
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1772
1762
|
case "InternalServerException":
|
|
1773
1763
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1774
|
-
throw await
|
|
1764
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1775
1765
|
case "ResourceNotFoundException":
|
|
1776
1766
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1777
|
-
throw await
|
|
1767
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1778
1768
|
case "ServiceQuotaExceededException":
|
|
1779
1769
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1780
|
-
throw await
|
|
1770
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1781
1771
|
case "ThrottlingException":
|
|
1782
1772
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1783
|
-
throw await
|
|
1773
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1784
1774
|
case "ValidationException":
|
|
1785
1775
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1786
|
-
throw await
|
|
1776
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1787
1777
|
default:
|
|
1788
1778
|
const parsedBody = parsedOutput.body;
|
|
1789
1779
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1794,9 +1784,9 @@ const deserializeAws_restJson1ListRoutesCommandError = async (output, context) =
|
|
|
1794
1784
|
});
|
|
1795
1785
|
}
|
|
1796
1786
|
};
|
|
1797
|
-
const
|
|
1787
|
+
const de_ListServicesCommand = async (output, context) => {
|
|
1798
1788
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1799
|
-
return
|
|
1789
|
+
return de_ListServicesCommandError(output, context);
|
|
1800
1790
|
}
|
|
1801
1791
|
const contents = map({
|
|
1802
1792
|
$metadata: deserializeMetadata(output),
|
|
@@ -1806,12 +1796,12 @@ const deserializeAws_restJson1ListServicesCommand = async (output, context) => {
|
|
|
1806
1796
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1807
1797
|
}
|
|
1808
1798
|
if (data.ServiceSummaryList != null) {
|
|
1809
|
-
contents.ServiceSummaryList =
|
|
1799
|
+
contents.ServiceSummaryList = de_ServiceSummaries(data.ServiceSummaryList, context);
|
|
1810
1800
|
}
|
|
1811
1801
|
return contents;
|
|
1812
1802
|
};
|
|
1813
|
-
exports.
|
|
1814
|
-
const
|
|
1803
|
+
exports.de_ListServicesCommand = de_ListServicesCommand;
|
|
1804
|
+
const de_ListServicesCommandError = async (output, context) => {
|
|
1815
1805
|
const parsedOutput = {
|
|
1816
1806
|
...output,
|
|
1817
1807
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1820,25 +1810,25 @@ const deserializeAws_restJson1ListServicesCommandError = async (output, context)
|
|
|
1820
1810
|
switch (errorCode) {
|
|
1821
1811
|
case "AccessDeniedException":
|
|
1822
1812
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1823
|
-
throw await
|
|
1813
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1824
1814
|
case "ConflictException":
|
|
1825
1815
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1826
|
-
throw await
|
|
1816
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1827
1817
|
case "InternalServerException":
|
|
1828
1818
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1829
|
-
throw await
|
|
1819
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1830
1820
|
case "ResourceNotFoundException":
|
|
1831
1821
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1832
|
-
throw await
|
|
1822
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1833
1823
|
case "ServiceQuotaExceededException":
|
|
1834
1824
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1835
|
-
throw await
|
|
1825
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1836
1826
|
case "ThrottlingException":
|
|
1837
1827
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1838
|
-
throw await
|
|
1828
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1839
1829
|
case "ValidationException":
|
|
1840
1830
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1841
|
-
throw await
|
|
1831
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1842
1832
|
default:
|
|
1843
1833
|
const parsedBody = parsedOutput.body;
|
|
1844
1834
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1849,21 +1839,21 @@ const deserializeAws_restJson1ListServicesCommandError = async (output, context)
|
|
|
1849
1839
|
});
|
|
1850
1840
|
}
|
|
1851
1841
|
};
|
|
1852
|
-
const
|
|
1842
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1853
1843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
1844
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1855
1845
|
}
|
|
1856
1846
|
const contents = map({
|
|
1857
1847
|
$metadata: deserializeMetadata(output),
|
|
1858
1848
|
});
|
|
1859
1849
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1860
1850
|
if (data.Tags != null) {
|
|
1861
|
-
contents.Tags =
|
|
1851
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1862
1852
|
}
|
|
1863
1853
|
return contents;
|
|
1864
1854
|
};
|
|
1865
|
-
exports.
|
|
1866
|
-
const
|
|
1855
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1856
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1867
1857
|
const parsedOutput = {
|
|
1868
1858
|
...output,
|
|
1869
1859
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1872,13 +1862,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1872
1862
|
switch (errorCode) {
|
|
1873
1863
|
case "InternalServerException":
|
|
1874
1864
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1875
|
-
throw await
|
|
1865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1876
1866
|
case "ResourceNotFoundException":
|
|
1877
1867
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1878
|
-
throw await
|
|
1868
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1879
1869
|
case "ValidationException":
|
|
1880
1870
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1881
|
-
throw await
|
|
1871
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1882
1872
|
default:
|
|
1883
1873
|
const parsedBody = parsedOutput.body;
|
|
1884
1874
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1889,9 +1879,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1889
1879
|
});
|
|
1890
1880
|
}
|
|
1891
1881
|
};
|
|
1892
|
-
const
|
|
1882
|
+
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1893
1883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1894
|
-
return
|
|
1884
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
1895
1885
|
}
|
|
1896
1886
|
const contents = map({
|
|
1897
1887
|
$metadata: deserializeMetadata(output),
|
|
@@ -1899,8 +1889,8 @@ const deserializeAws_restJson1PutResourcePolicyCommand = async (output, context)
|
|
|
1899
1889
|
await collectBody(output.body, context);
|
|
1900
1890
|
return contents;
|
|
1901
1891
|
};
|
|
1902
|
-
exports.
|
|
1903
|
-
const
|
|
1892
|
+
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
1893
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1904
1894
|
const parsedOutput = {
|
|
1905
1895
|
...output,
|
|
1906
1896
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1909,22 +1899,22 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1909
1899
|
switch (errorCode) {
|
|
1910
1900
|
case "AccessDeniedException":
|
|
1911
1901
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1912
|
-
throw await
|
|
1902
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1913
1903
|
case "InternalServerException":
|
|
1914
1904
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1915
|
-
throw await
|
|
1905
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1916
1906
|
case "InvalidResourcePolicyException":
|
|
1917
1907
|
case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
|
|
1918
|
-
throw await
|
|
1908
|
+
throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
|
|
1919
1909
|
case "ResourceNotFoundException":
|
|
1920
1910
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1921
|
-
throw await
|
|
1911
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1922
1912
|
case "ThrottlingException":
|
|
1923
1913
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1924
|
-
throw await
|
|
1914
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1925
1915
|
case "ValidationException":
|
|
1926
1916
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1927
|
-
throw await
|
|
1917
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1928
1918
|
default:
|
|
1929
1919
|
const parsedBody = parsedOutput.body;
|
|
1930
1920
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1935,9 +1925,9 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1935
1925
|
});
|
|
1936
1926
|
}
|
|
1937
1927
|
};
|
|
1938
|
-
const
|
|
1928
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1939
1929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1940
|
-
return
|
|
1930
|
+
return de_TagResourceCommandError(output, context);
|
|
1941
1931
|
}
|
|
1942
1932
|
const contents = map({
|
|
1943
1933
|
$metadata: deserializeMetadata(output),
|
|
@@ -1945,8 +1935,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1945
1935
|
await collectBody(output.body, context);
|
|
1946
1936
|
return contents;
|
|
1947
1937
|
};
|
|
1948
|
-
exports.
|
|
1949
|
-
const
|
|
1938
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1939
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1950
1940
|
const parsedOutput = {
|
|
1951
1941
|
...output,
|
|
1952
1942
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1955,13 +1945,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1955
1945
|
switch (errorCode) {
|
|
1956
1946
|
case "InternalServerException":
|
|
1957
1947
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1958
|
-
throw await
|
|
1948
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1959
1949
|
case "ResourceNotFoundException":
|
|
1960
1950
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1961
|
-
throw await
|
|
1951
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1962
1952
|
case "ValidationException":
|
|
1963
1953
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1964
|
-
throw await
|
|
1954
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1965
1955
|
default:
|
|
1966
1956
|
const parsedBody = parsedOutput.body;
|
|
1967
1957
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1972,9 +1962,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1972
1962
|
});
|
|
1973
1963
|
}
|
|
1974
1964
|
};
|
|
1975
|
-
const
|
|
1965
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1976
1966
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1977
|
-
return
|
|
1967
|
+
return de_UntagResourceCommandError(output, context);
|
|
1978
1968
|
}
|
|
1979
1969
|
const contents = map({
|
|
1980
1970
|
$metadata: deserializeMetadata(output),
|
|
@@ -1982,8 +1972,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1982
1972
|
await collectBody(output.body, context);
|
|
1983
1973
|
return contents;
|
|
1984
1974
|
};
|
|
1985
|
-
exports.
|
|
1986
|
-
const
|
|
1975
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1976
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1987
1977
|
const parsedOutput = {
|
|
1988
1978
|
...output,
|
|
1989
1979
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1992,13 +1982,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1992
1982
|
switch (errorCode) {
|
|
1993
1983
|
case "InternalServerException":
|
|
1994
1984
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1995
|
-
throw await
|
|
1985
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1996
1986
|
case "ResourceNotFoundException":
|
|
1997
1987
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1998
|
-
throw await
|
|
1988
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1999
1989
|
case "ValidationException":
|
|
2000
1990
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2001
|
-
throw await
|
|
1991
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2002
1992
|
default:
|
|
2003
1993
|
const parsedBody = parsedOutput.body;
|
|
2004
1994
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2009,9 +1999,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2009
1999
|
});
|
|
2010
2000
|
}
|
|
2011
2001
|
};
|
|
2012
|
-
const
|
|
2002
|
+
const de_UpdateRouteCommand = async (output, context) => {
|
|
2013
2003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2014
|
-
return
|
|
2004
|
+
return de_UpdateRouteCommandError(output, context);
|
|
2015
2005
|
}
|
|
2016
2006
|
const contents = map({
|
|
2017
2007
|
$metadata: deserializeMetadata(output),
|
|
@@ -2037,8 +2027,8 @@ const deserializeAws_restJson1UpdateRouteCommand = async (output, context) => {
|
|
|
2037
2027
|
}
|
|
2038
2028
|
return contents;
|
|
2039
2029
|
};
|
|
2040
|
-
exports.
|
|
2041
|
-
const
|
|
2030
|
+
exports.de_UpdateRouteCommand = de_UpdateRouteCommand;
|
|
2031
|
+
const de_UpdateRouteCommandError = async (output, context) => {
|
|
2042
2032
|
const parsedOutput = {
|
|
2043
2033
|
...output,
|
|
2044
2034
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2047,19 +2037,19 @@ const deserializeAws_restJson1UpdateRouteCommandError = async (output, context)
|
|
|
2047
2037
|
switch (errorCode) {
|
|
2048
2038
|
case "AccessDeniedException":
|
|
2049
2039
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
2050
|
-
throw await
|
|
2040
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2051
2041
|
case "InternalServerException":
|
|
2052
2042
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2053
|
-
throw await
|
|
2043
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2054
2044
|
case "ResourceNotFoundException":
|
|
2055
2045
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2056
|
-
throw await
|
|
2046
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2057
2047
|
case "ThrottlingException":
|
|
2058
2048
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2059
|
-
throw await
|
|
2049
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2060
2050
|
case "ValidationException":
|
|
2061
2051
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2062
|
-
throw await
|
|
2052
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2063
2053
|
default:
|
|
2064
2054
|
const parsedBody = parsedOutput.body;
|
|
2065
2055
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2071,7 +2061,7 @@ const deserializeAws_restJson1UpdateRouteCommandError = async (output, context)
|
|
|
2071
2061
|
}
|
|
2072
2062
|
};
|
|
2073
2063
|
const map = smithy_client_1.map;
|
|
2074
|
-
const
|
|
2064
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2075
2065
|
const contents = map({});
|
|
2076
2066
|
const data = parsedOutput.body;
|
|
2077
2067
|
if (data.Message != null) {
|
|
@@ -2083,7 +2073,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2083
2073
|
});
|
|
2084
2074
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2085
2075
|
};
|
|
2086
|
-
const
|
|
2076
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2087
2077
|
const contents = map({});
|
|
2088
2078
|
const data = parsedOutput.body;
|
|
2089
2079
|
if (data.Message != null) {
|
|
@@ -2101,7 +2091,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2101
2091
|
});
|
|
2102
2092
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2103
2093
|
};
|
|
2104
|
-
const
|
|
2094
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2105
2095
|
const contents = map({});
|
|
2106
2096
|
const data = parsedOutput.body;
|
|
2107
2097
|
if (data.Message != null) {
|
|
@@ -2113,7 +2103,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2113
2103
|
});
|
|
2114
2104
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2115
2105
|
};
|
|
2116
|
-
const
|
|
2106
|
+
const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
2117
2107
|
const contents = map({});
|
|
2118
2108
|
const data = parsedOutput.body;
|
|
2119
2109
|
if (data.Message != null) {
|
|
@@ -2125,7 +2115,7 @@ const deserializeAws_restJson1InvalidResourcePolicyExceptionResponse = async (pa
|
|
|
2125
2115
|
});
|
|
2126
2116
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2127
2117
|
};
|
|
2128
|
-
const
|
|
2118
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2129
2119
|
const contents = map({});
|
|
2130
2120
|
const data = parsedOutput.body;
|
|
2131
2121
|
if (data.Message != null) {
|
|
@@ -2143,7 +2133,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2143
2133
|
});
|
|
2144
2134
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2145
2135
|
};
|
|
2146
|
-
const
|
|
2136
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2147
2137
|
const contents = map({});
|
|
2148
2138
|
const data = parsedOutput.body;
|
|
2149
2139
|
if (data.Message != null) {
|
|
@@ -2167,7 +2157,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2167
2157
|
});
|
|
2168
2158
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2169
2159
|
};
|
|
2170
|
-
const
|
|
2160
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2171
2161
|
const contents = map({
|
|
2172
2162
|
RetryAfterSeconds: [
|
|
2173
2163
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -2190,7 +2180,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2190
2180
|
});
|
|
2191
2181
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2192
2182
|
};
|
|
2193
|
-
const
|
|
2183
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2194
2184
|
const contents = map({});
|
|
2195
2185
|
const data = parsedOutput.body;
|
|
2196
2186
|
if (data.Message != null) {
|
|
@@ -2202,30 +2192,30 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2202
2192
|
});
|
|
2203
2193
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2204
2194
|
};
|
|
2205
|
-
const
|
|
2195
|
+
const se_ApiGatewayProxyInput = (input, context) => {
|
|
2206
2196
|
return {
|
|
2207
2197
|
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
2208
2198
|
...(input.StageName != null && { StageName: input.StageName }),
|
|
2209
2199
|
};
|
|
2210
2200
|
};
|
|
2211
|
-
const
|
|
2201
|
+
const se_DefaultRouteInput = (input, context) => {
|
|
2212
2202
|
return {
|
|
2213
2203
|
...(input.ActivationState != null && { ActivationState: input.ActivationState }),
|
|
2214
2204
|
};
|
|
2215
2205
|
};
|
|
2216
|
-
const
|
|
2206
|
+
const se_HttpMethods = (input, context) => {
|
|
2217
2207
|
return input
|
|
2218
2208
|
.filter((e) => e != null)
|
|
2219
2209
|
.map((entry) => {
|
|
2220
2210
|
return entry;
|
|
2221
2211
|
});
|
|
2222
2212
|
};
|
|
2223
|
-
const
|
|
2213
|
+
const se_LambdaEndpointInput = (input, context) => {
|
|
2224
2214
|
return {
|
|
2225
2215
|
...(input.Arn != null && { Arn: input.Arn }),
|
|
2226
2216
|
};
|
|
2227
2217
|
};
|
|
2228
|
-
const
|
|
2218
|
+
const se_TagMap = (input, context) => {
|
|
2229
2219
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2230
2220
|
if (value === null) {
|
|
2231
2221
|
return acc;
|
|
@@ -2234,21 +2224,21 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2234
2224
|
return acc;
|
|
2235
2225
|
}, {});
|
|
2236
2226
|
};
|
|
2237
|
-
const
|
|
2227
|
+
const se_UriPathRouteInput = (input, context) => {
|
|
2238
2228
|
return {
|
|
2239
2229
|
...(input.ActivationState != null && { ActivationState: input.ActivationState }),
|
|
2240
2230
|
...(input.IncludeChildPaths != null && { IncludeChildPaths: input.IncludeChildPaths }),
|
|
2241
|
-
...(input.Methods != null && { Methods:
|
|
2231
|
+
...(input.Methods != null && { Methods: se_HttpMethods(input.Methods, context) }),
|
|
2242
2232
|
...(input.SourcePath != null && { SourcePath: input.SourcePath }),
|
|
2243
2233
|
};
|
|
2244
2234
|
};
|
|
2245
|
-
const
|
|
2235
|
+
const se_UrlEndpointInput = (input, context) => {
|
|
2246
2236
|
return {
|
|
2247
2237
|
...(input.HealthUrl != null && { HealthUrl: input.HealthUrl }),
|
|
2248
2238
|
...(input.Url != null && { Url: input.Url }),
|
|
2249
2239
|
};
|
|
2250
2240
|
};
|
|
2251
|
-
const
|
|
2241
|
+
const de_AdditionalDetails = (output, context) => {
|
|
2252
2242
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2253
2243
|
if (value === null) {
|
|
2254
2244
|
return acc;
|
|
@@ -2257,7 +2247,7 @@ const deserializeAws_restJson1AdditionalDetails = (output, context) => {
|
|
|
2257
2247
|
return acc;
|
|
2258
2248
|
}, {});
|
|
2259
2249
|
};
|
|
2260
|
-
const
|
|
2250
|
+
const de_ApiGatewayProxyConfig = (output, context) => {
|
|
2261
2251
|
return {
|
|
2262
2252
|
ApiGatewayId: (0, smithy_client_1.expectString)(output.ApiGatewayId),
|
|
2263
2253
|
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
@@ -2268,13 +2258,13 @@ const deserializeAws_restJson1ApiGatewayProxyConfig = (output, context) => {
|
|
|
2268
2258
|
VpcLinkId: (0, smithy_client_1.expectString)(output.VpcLinkId),
|
|
2269
2259
|
};
|
|
2270
2260
|
};
|
|
2271
|
-
const
|
|
2261
|
+
const de_ApiGatewayProxyInput = (output, context) => {
|
|
2272
2262
|
return {
|
|
2273
2263
|
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
2274
2264
|
StageName: (0, smithy_client_1.expectString)(output.StageName),
|
|
2275
2265
|
};
|
|
2276
2266
|
};
|
|
2277
|
-
const
|
|
2267
|
+
const de_ApiGatewayProxySummary = (output, context) => {
|
|
2278
2268
|
return {
|
|
2279
2269
|
ApiGatewayId: (0, smithy_client_1.expectString)(output.ApiGatewayId),
|
|
2280
2270
|
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
@@ -2285,22 +2275,20 @@ const deserializeAws_restJson1ApiGatewayProxySummary = (output, context) => {
|
|
|
2285
2275
|
VpcLinkId: (0, smithy_client_1.expectString)(output.VpcLinkId),
|
|
2286
2276
|
};
|
|
2287
2277
|
};
|
|
2288
|
-
const
|
|
2278
|
+
const de_ApplicationSummaries = (output, context) => {
|
|
2289
2279
|
const retVal = (output || [])
|
|
2290
2280
|
.filter((e) => e != null)
|
|
2291
2281
|
.map((entry) => {
|
|
2292
2282
|
if (entry === null) {
|
|
2293
2283
|
return null;
|
|
2294
2284
|
}
|
|
2295
|
-
return
|
|
2285
|
+
return de_ApplicationSummary(entry, context);
|
|
2296
2286
|
});
|
|
2297
2287
|
return retVal;
|
|
2298
2288
|
};
|
|
2299
|
-
const
|
|
2289
|
+
const de_ApplicationSummary = (output, context) => {
|
|
2300
2290
|
return {
|
|
2301
|
-
ApiGatewayProxy: output.ApiGatewayProxy != null
|
|
2302
|
-
? deserializeAws_restJson1ApiGatewayProxySummary(output.ApiGatewayProxy, context)
|
|
2303
|
-
: undefined,
|
|
2291
|
+
ApiGatewayProxy: output.ApiGatewayProxy != null ? de_ApiGatewayProxySummary(output.ApiGatewayProxy, context) : undefined,
|
|
2304
2292
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
2305
2293
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2306
2294
|
CreatedByAccountId: (0, smithy_client_1.expectString)(output.CreatedByAccountId),
|
|
@@ -2308,7 +2296,7 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
2308
2296
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
2309
2297
|
: undefined,
|
|
2310
2298
|
EnvironmentId: (0, smithy_client_1.expectString)(output.EnvironmentId),
|
|
2311
|
-
Error: output.Error != null ?
|
|
2299
|
+
Error: output.Error != null ? de_ErrorResponse(output.Error, context) : undefined,
|
|
2312
2300
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
2313
2301
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
2314
2302
|
: undefined,
|
|
@@ -2316,11 +2304,11 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
2316
2304
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
2317
2305
|
ProxyType: (0, smithy_client_1.expectString)(output.ProxyType),
|
|
2318
2306
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2319
|
-
Tags: output.Tags != null ?
|
|
2307
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2320
2308
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2321
2309
|
};
|
|
2322
2310
|
};
|
|
2323
|
-
const
|
|
2311
|
+
const de_CidrBlocks = (output, context) => {
|
|
2324
2312
|
const retVal = (output || [])
|
|
2325
2313
|
.filter((e) => e != null)
|
|
2326
2314
|
.map((entry) => {
|
|
@@ -2331,18 +2319,18 @@ const deserializeAws_restJson1CidrBlocks = (output, context) => {
|
|
|
2331
2319
|
});
|
|
2332
2320
|
return retVal;
|
|
2333
2321
|
};
|
|
2334
|
-
const
|
|
2322
|
+
const de_EnvironmentSummaries = (output, context) => {
|
|
2335
2323
|
const retVal = (output || [])
|
|
2336
2324
|
.filter((e) => e != null)
|
|
2337
2325
|
.map((entry) => {
|
|
2338
2326
|
if (entry === null) {
|
|
2339
2327
|
return null;
|
|
2340
2328
|
}
|
|
2341
|
-
return
|
|
2329
|
+
return de_EnvironmentSummary(entry, context);
|
|
2342
2330
|
});
|
|
2343
2331
|
return retVal;
|
|
2344
2332
|
};
|
|
2345
|
-
const
|
|
2333
|
+
const de_EnvironmentSummary = (output, context) => {
|
|
2346
2334
|
return {
|
|
2347
2335
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2348
2336
|
CreatedTime: output.CreatedTime != null
|
|
@@ -2350,7 +2338,7 @@ const deserializeAws_restJson1EnvironmentSummary = (output, context) => {
|
|
|
2350
2338
|
: undefined,
|
|
2351
2339
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2352
2340
|
EnvironmentId: (0, smithy_client_1.expectString)(output.EnvironmentId),
|
|
2353
|
-
Error: output.Error != null ?
|
|
2341
|
+
Error: output.Error != null ? de_ErrorResponse(output.Error, context) : undefined,
|
|
2354
2342
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
2355
2343
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
2356
2344
|
: undefined,
|
|
@@ -2358,14 +2346,14 @@ const deserializeAws_restJson1EnvironmentSummary = (output, context) => {
|
|
|
2358
2346
|
NetworkFabricType: (0, smithy_client_1.expectString)(output.NetworkFabricType),
|
|
2359
2347
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
2360
2348
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2361
|
-
Tags: output.Tags != null ?
|
|
2349
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2362
2350
|
TransitGatewayId: (0, smithy_client_1.expectString)(output.TransitGatewayId),
|
|
2363
2351
|
};
|
|
2364
2352
|
};
|
|
2365
|
-
const
|
|
2353
|
+
const de_EnvironmentVpc = (output, context) => {
|
|
2366
2354
|
return {
|
|
2367
2355
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2368
|
-
CidrBlocks: output.CidrBlocks != null ?
|
|
2356
|
+
CidrBlocks: output.CidrBlocks != null ? de_CidrBlocks(output.CidrBlocks, context) : undefined,
|
|
2369
2357
|
CreatedTime: output.CreatedTime != null
|
|
2370
2358
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
2371
2359
|
: undefined,
|
|
@@ -2377,30 +2365,28 @@ const deserializeAws_restJson1EnvironmentVpc = (output, context) => {
|
|
|
2377
2365
|
VpcName: (0, smithy_client_1.expectString)(output.VpcName),
|
|
2378
2366
|
};
|
|
2379
2367
|
};
|
|
2380
|
-
const
|
|
2368
|
+
const de_EnvironmentVpcs = (output, context) => {
|
|
2381
2369
|
const retVal = (output || [])
|
|
2382
2370
|
.filter((e) => e != null)
|
|
2383
2371
|
.map((entry) => {
|
|
2384
2372
|
if (entry === null) {
|
|
2385
2373
|
return null;
|
|
2386
2374
|
}
|
|
2387
|
-
return
|
|
2375
|
+
return de_EnvironmentVpc(entry, context);
|
|
2388
2376
|
});
|
|
2389
2377
|
return retVal;
|
|
2390
2378
|
};
|
|
2391
|
-
const
|
|
2379
|
+
const de_ErrorResponse = (output, context) => {
|
|
2392
2380
|
return {
|
|
2393
2381
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2394
|
-
AdditionalDetails: output.AdditionalDetails != null
|
|
2395
|
-
? deserializeAws_restJson1AdditionalDetails(output.AdditionalDetails, context)
|
|
2396
|
-
: undefined,
|
|
2382
|
+
AdditionalDetails: output.AdditionalDetails != null ? de_AdditionalDetails(output.AdditionalDetails, context) : undefined,
|
|
2397
2383
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
2398
2384
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2399
2385
|
ResourceIdentifier: (0, smithy_client_1.expectString)(output.ResourceIdentifier),
|
|
2400
2386
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
2401
2387
|
};
|
|
2402
2388
|
};
|
|
2403
|
-
const
|
|
2389
|
+
const de_HttpMethods = (output, context) => {
|
|
2404
2390
|
const retVal = (output || [])
|
|
2405
2391
|
.filter((e) => e != null)
|
|
2406
2392
|
.map((entry) => {
|
|
@@ -2411,22 +2397,22 @@ const deserializeAws_restJson1HttpMethods = (output, context) => {
|
|
|
2411
2397
|
});
|
|
2412
2398
|
return retVal;
|
|
2413
2399
|
};
|
|
2414
|
-
const
|
|
2400
|
+
const de_LambdaEndpointConfig = (output, context) => {
|
|
2415
2401
|
return {
|
|
2416
2402
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2417
2403
|
};
|
|
2418
2404
|
};
|
|
2419
|
-
const
|
|
2405
|
+
const de_LambdaEndpointInput = (output, context) => {
|
|
2420
2406
|
return {
|
|
2421
2407
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2422
2408
|
};
|
|
2423
2409
|
};
|
|
2424
|
-
const
|
|
2410
|
+
const de_LambdaEndpointSummary = (output, context) => {
|
|
2425
2411
|
return {
|
|
2426
2412
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2427
2413
|
};
|
|
2428
2414
|
};
|
|
2429
|
-
const
|
|
2415
|
+
const de_PathResourceToId = (output, context) => {
|
|
2430
2416
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2431
2417
|
if (value === null) {
|
|
2432
2418
|
return acc;
|
|
@@ -2435,18 +2421,18 @@ const deserializeAws_restJson1PathResourceToId = (output, context) => {
|
|
|
2435
2421
|
return acc;
|
|
2436
2422
|
}, {});
|
|
2437
2423
|
};
|
|
2438
|
-
const
|
|
2424
|
+
const de_RouteSummaries = (output, context) => {
|
|
2439
2425
|
const retVal = (output || [])
|
|
2440
2426
|
.filter((e) => e != null)
|
|
2441
2427
|
.map((entry) => {
|
|
2442
2428
|
if (entry === null) {
|
|
2443
2429
|
return null;
|
|
2444
2430
|
}
|
|
2445
|
-
return
|
|
2431
|
+
return de_RouteSummary(entry, context);
|
|
2446
2432
|
});
|
|
2447
2433
|
return retVal;
|
|
2448
2434
|
};
|
|
2449
|
-
const
|
|
2435
|
+
const de_RouteSummary = (output, context) => {
|
|
2450
2436
|
return {
|
|
2451
2437
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
2452
2438
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -2455,36 +2441,34 @@ const deserializeAws_restJson1RouteSummary = (output, context) => {
|
|
|
2455
2441
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
2456
2442
|
: undefined,
|
|
2457
2443
|
EnvironmentId: (0, smithy_client_1.expectString)(output.EnvironmentId),
|
|
2458
|
-
Error: output.Error != null ?
|
|
2444
|
+
Error: output.Error != null ? de_ErrorResponse(output.Error, context) : undefined,
|
|
2459
2445
|
IncludeChildPaths: (0, smithy_client_1.expectBoolean)(output.IncludeChildPaths),
|
|
2460
2446
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
2461
2447
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
2462
2448
|
: undefined,
|
|
2463
|
-
Methods: output.Methods != null ?
|
|
2449
|
+
Methods: output.Methods != null ? de_HttpMethods(output.Methods, context) : undefined,
|
|
2464
2450
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
2465
|
-
PathResourceToId: output.PathResourceToId != null
|
|
2466
|
-
? deserializeAws_restJson1PathResourceToId(output.PathResourceToId, context)
|
|
2467
|
-
: undefined,
|
|
2451
|
+
PathResourceToId: output.PathResourceToId != null ? de_PathResourceToId(output.PathResourceToId, context) : undefined,
|
|
2468
2452
|
RouteId: (0, smithy_client_1.expectString)(output.RouteId),
|
|
2469
2453
|
RouteType: (0, smithy_client_1.expectString)(output.RouteType),
|
|
2470
2454
|
ServiceId: (0, smithy_client_1.expectString)(output.ServiceId),
|
|
2471
2455
|
SourcePath: (0, smithy_client_1.expectString)(output.SourcePath),
|
|
2472
2456
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2473
|
-
Tags: output.Tags != null ?
|
|
2457
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2474
2458
|
};
|
|
2475
2459
|
};
|
|
2476
|
-
const
|
|
2460
|
+
const de_ServiceSummaries = (output, context) => {
|
|
2477
2461
|
const retVal = (output || [])
|
|
2478
2462
|
.filter((e) => e != null)
|
|
2479
2463
|
.map((entry) => {
|
|
2480
2464
|
if (entry === null) {
|
|
2481
2465
|
return null;
|
|
2482
2466
|
}
|
|
2483
|
-
return
|
|
2467
|
+
return de_ServiceSummary(entry, context);
|
|
2484
2468
|
});
|
|
2485
2469
|
return retVal;
|
|
2486
2470
|
};
|
|
2487
|
-
const
|
|
2471
|
+
const de_ServiceSummary = (output, context) => {
|
|
2488
2472
|
return {
|
|
2489
2473
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
2490
2474
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -2495,10 +2479,8 @@ const deserializeAws_restJson1ServiceSummary = (output, context) => {
|
|
|
2495
2479
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
2496
2480
|
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
2497
2481
|
EnvironmentId: (0, smithy_client_1.expectString)(output.EnvironmentId),
|
|
2498
|
-
Error: output.Error != null ?
|
|
2499
|
-
LambdaEndpoint: output.LambdaEndpoint != null
|
|
2500
|
-
? deserializeAws_restJson1LambdaEndpointSummary(output.LambdaEndpoint, context)
|
|
2501
|
-
: undefined,
|
|
2482
|
+
Error: output.Error != null ? de_ErrorResponse(output.Error, context) : undefined,
|
|
2483
|
+
LambdaEndpoint: output.LambdaEndpoint != null ? de_LambdaEndpointSummary(output.LambdaEndpoint, context) : undefined,
|
|
2502
2484
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
2503
2485
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
2504
2486
|
: undefined,
|
|
@@ -2506,12 +2488,12 @@ const deserializeAws_restJson1ServiceSummary = (output, context) => {
|
|
|
2506
2488
|
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
2507
2489
|
ServiceId: (0, smithy_client_1.expectString)(output.ServiceId),
|
|
2508
2490
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2509
|
-
Tags: output.Tags != null ?
|
|
2510
|
-
UrlEndpoint: output.UrlEndpoint != null ?
|
|
2491
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2492
|
+
UrlEndpoint: output.UrlEndpoint != null ? de_UrlEndpointSummary(output.UrlEndpoint, context) : undefined,
|
|
2511
2493
|
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2512
2494
|
};
|
|
2513
2495
|
};
|
|
2514
|
-
const
|
|
2496
|
+
const de_TagMap = (output, context) => {
|
|
2515
2497
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2516
2498
|
if (value === null) {
|
|
2517
2499
|
return acc;
|
|
@@ -2520,27 +2502,27 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2520
2502
|
return acc;
|
|
2521
2503
|
}, {});
|
|
2522
2504
|
};
|
|
2523
|
-
const
|
|
2505
|
+
const de_UriPathRouteInput = (output, context) => {
|
|
2524
2506
|
return {
|
|
2525
2507
|
ActivationState: (0, smithy_client_1.expectString)(output.ActivationState),
|
|
2526
2508
|
IncludeChildPaths: (0, smithy_client_1.expectBoolean)(output.IncludeChildPaths),
|
|
2527
|
-
Methods: output.Methods != null ?
|
|
2509
|
+
Methods: output.Methods != null ? de_HttpMethods(output.Methods, context) : undefined,
|
|
2528
2510
|
SourcePath: (0, smithy_client_1.expectString)(output.SourcePath),
|
|
2529
2511
|
};
|
|
2530
2512
|
};
|
|
2531
|
-
const
|
|
2513
|
+
const de_UrlEndpointConfig = (output, context) => {
|
|
2532
2514
|
return {
|
|
2533
2515
|
HealthUrl: (0, smithy_client_1.expectString)(output.HealthUrl),
|
|
2534
2516
|
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
2535
2517
|
};
|
|
2536
2518
|
};
|
|
2537
|
-
const
|
|
2519
|
+
const de_UrlEndpointInput = (output, context) => {
|
|
2538
2520
|
return {
|
|
2539
2521
|
HealthUrl: (0, smithy_client_1.expectString)(output.HealthUrl),
|
|
2540
2522
|
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
2541
2523
|
};
|
|
2542
2524
|
};
|
|
2543
|
-
const
|
|
2525
|
+
const de_UrlEndpointSummary = (output, context) => {
|
|
2544
2526
|
return {
|
|
2545
2527
|
HealthUrl: (0, smithy_client_1.expectString)(output.HealthUrl),
|
|
2546
2528
|
Url: (0, smithy_client_1.expectString)(output.Url),
|