@aws-sdk/client-migration-hub-refactor-spaces 3.306.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 +6 -6
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { MigrationHubRefactorSpacesServiceException as __BaseException } from "../models/MigrationHubRefactorSpacesServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidResourcePolicyException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateApplicationCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -13,13 +13,11 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
13
13
|
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.ApiGatewayProxy != null && {
|
|
17
|
-
ApiGatewayProxy: serializeAws_restJson1ApiGatewayProxyInput(input.ApiGatewayProxy, context),
|
|
18
|
-
}),
|
|
16
|
+
...(input.ApiGatewayProxy != null && { ApiGatewayProxy: se_ApiGatewayProxyInput(input.ApiGatewayProxy, context) }),
|
|
19
17
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
20
18
|
...(input.Name != null && { Name: input.Name }),
|
|
21
19
|
...(input.ProxyType != null && { ProxyType: input.ProxyType }),
|
|
22
|
-
...(input.Tags != null && { Tags:
|
|
20
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
23
21
|
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
24
22
|
});
|
|
25
23
|
return new __HttpRequest({
|
|
@@ -32,7 +30,7 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
32
30
|
body,
|
|
33
31
|
});
|
|
34
32
|
};
|
|
35
|
-
export const
|
|
33
|
+
export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
36
34
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
37
35
|
const headers = {
|
|
38
36
|
"content-type": "application/json",
|
|
@@ -44,7 +42,7 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
|
|
|
44
42
|
...(input.Description != null && { Description: input.Description }),
|
|
45
43
|
...(input.Name != null && { Name: input.Name }),
|
|
46
44
|
...(input.NetworkFabricType != null && { NetworkFabricType: input.NetworkFabricType }),
|
|
47
|
-
...(input.Tags != null && { Tags:
|
|
45
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
48
46
|
});
|
|
49
47
|
return new __HttpRequest({
|
|
50
48
|
protocol,
|
|
@@ -56,7 +54,7 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
|
|
|
56
54
|
body,
|
|
57
55
|
});
|
|
58
56
|
};
|
|
59
|
-
export const
|
|
57
|
+
export const se_CreateRouteCommand = async (input, context) => {
|
|
60
58
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
59
|
const headers = {
|
|
62
60
|
"content-type": "application/json",
|
|
@@ -68,15 +66,11 @@ export const serializeAws_restJson1CreateRouteCommand = async (input, context) =
|
|
|
68
66
|
let body;
|
|
69
67
|
body = JSON.stringify({
|
|
70
68
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
71
|
-
...(input.DefaultRoute != null && {
|
|
72
|
-
DefaultRoute: serializeAws_restJson1DefaultRouteInput(input.DefaultRoute, context),
|
|
73
|
-
}),
|
|
69
|
+
...(input.DefaultRoute != null && { DefaultRoute: se_DefaultRouteInput(input.DefaultRoute, context) }),
|
|
74
70
|
...(input.RouteType != null && { RouteType: input.RouteType }),
|
|
75
71
|
...(input.ServiceIdentifier != null && { ServiceIdentifier: input.ServiceIdentifier }),
|
|
76
|
-
...(input.Tags != null && { Tags:
|
|
77
|
-
...(input.UriPathRoute != null && {
|
|
78
|
-
UriPathRoute: serializeAws_restJson1UriPathRouteInput(input.UriPathRoute, context),
|
|
79
|
-
}),
|
|
72
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
73
|
+
...(input.UriPathRoute != null && { UriPathRoute: se_UriPathRouteInput(input.UriPathRoute, context) }),
|
|
80
74
|
});
|
|
81
75
|
return new __HttpRequest({
|
|
82
76
|
protocol,
|
|
@@ -88,7 +82,7 @@ export const serializeAws_restJson1CreateRouteCommand = async (input, context) =
|
|
|
88
82
|
body,
|
|
89
83
|
});
|
|
90
84
|
};
|
|
91
|
-
export const
|
|
85
|
+
export const se_CreateServiceCommand = async (input, context) => {
|
|
92
86
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
87
|
const headers = {
|
|
94
88
|
"content-type": "application/json",
|
|
@@ -102,14 +96,10 @@ export const serializeAws_restJson1CreateServiceCommand = async (input, context)
|
|
|
102
96
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
103
97
|
...(input.Description != null && { Description: input.Description }),
|
|
104
98
|
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
105
|
-
...(input.LambdaEndpoint != null && {
|
|
106
|
-
LambdaEndpoint: serializeAws_restJson1LambdaEndpointInput(input.LambdaEndpoint, context),
|
|
107
|
-
}),
|
|
99
|
+
...(input.LambdaEndpoint != null && { LambdaEndpoint: se_LambdaEndpointInput(input.LambdaEndpoint, context) }),
|
|
108
100
|
...(input.Name != null && { Name: input.Name }),
|
|
109
|
-
...(input.Tags != null && { Tags:
|
|
110
|
-
...(input.UrlEndpoint != null && {
|
|
111
|
-
UrlEndpoint: serializeAws_restJson1UrlEndpointInput(input.UrlEndpoint, context),
|
|
112
|
-
}),
|
|
101
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
102
|
+
...(input.UrlEndpoint != null && { UrlEndpoint: se_UrlEndpointInput(input.UrlEndpoint, context) }),
|
|
113
103
|
...(input.VpcId != null && { VpcId: input.VpcId }),
|
|
114
104
|
});
|
|
115
105
|
return new __HttpRequest({
|
|
@@ -122,7 +112,7 @@ export const serializeAws_restJson1CreateServiceCommand = async (input, context)
|
|
|
122
112
|
body,
|
|
123
113
|
});
|
|
124
114
|
};
|
|
125
|
-
export const
|
|
115
|
+
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
126
116
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
127
117
|
const headers = {};
|
|
128
118
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -140,7 +130,7 @@ export const serializeAws_restJson1DeleteApplicationCommand = async (input, cont
|
|
|
140
130
|
body,
|
|
141
131
|
});
|
|
142
132
|
};
|
|
143
|
-
export const
|
|
133
|
+
export const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
144
134
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
145
135
|
const headers = {};
|
|
146
136
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{EnvironmentIdentifier}";
|
|
@@ -156,7 +146,7 @@ export const serializeAws_restJson1DeleteEnvironmentCommand = async (input, cont
|
|
|
156
146
|
body,
|
|
157
147
|
});
|
|
158
148
|
};
|
|
159
|
-
export const
|
|
149
|
+
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
160
150
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
161
151
|
const headers = {};
|
|
162
152
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{Identifier}";
|
|
@@ -172,7 +162,7 @@ export const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, c
|
|
|
172
162
|
body,
|
|
173
163
|
});
|
|
174
164
|
};
|
|
175
|
-
export const
|
|
165
|
+
export const se_DeleteRouteCommand = async (input, context) => {
|
|
176
166
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
177
167
|
const headers = {};
|
|
178
168
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -191,7 +181,7 @@ export const serializeAws_restJson1DeleteRouteCommand = async (input, context) =
|
|
|
191
181
|
body,
|
|
192
182
|
});
|
|
193
183
|
};
|
|
194
|
-
export const
|
|
184
|
+
export const se_DeleteServiceCommand = async (input, context) => {
|
|
195
185
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
196
186
|
const headers = {};
|
|
197
187
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -210,7 +200,7 @@ export const serializeAws_restJson1DeleteServiceCommand = async (input, context)
|
|
|
210
200
|
body,
|
|
211
201
|
});
|
|
212
202
|
};
|
|
213
|
-
export const
|
|
203
|
+
export const se_GetApplicationCommand = async (input, context) => {
|
|
214
204
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
215
205
|
const headers = {};
|
|
216
206
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -228,7 +218,7 @@ export const serializeAws_restJson1GetApplicationCommand = async (input, context
|
|
|
228
218
|
body,
|
|
229
219
|
});
|
|
230
220
|
};
|
|
231
|
-
export const
|
|
221
|
+
export const se_GetEnvironmentCommand = async (input, context) => {
|
|
232
222
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
233
223
|
const headers = {};
|
|
234
224
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{EnvironmentIdentifier}";
|
|
@@ -244,7 +234,7 @@ export const serializeAws_restJson1GetEnvironmentCommand = async (input, context
|
|
|
244
234
|
body,
|
|
245
235
|
});
|
|
246
236
|
};
|
|
247
|
-
export const
|
|
237
|
+
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
248
238
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
249
239
|
const headers = {};
|
|
250
240
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy/{Identifier}";
|
|
@@ -260,7 +250,7 @@ export const serializeAws_restJson1GetResourcePolicyCommand = async (input, cont
|
|
|
260
250
|
body,
|
|
261
251
|
});
|
|
262
252
|
};
|
|
263
|
-
export const
|
|
253
|
+
export const se_GetRouteCommand = async (input, context) => {
|
|
264
254
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
255
|
const headers = {};
|
|
266
256
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -279,7 +269,7 @@ export const serializeAws_restJson1GetRouteCommand = async (input, context) => {
|
|
|
279
269
|
body,
|
|
280
270
|
});
|
|
281
271
|
};
|
|
282
|
-
export const
|
|
272
|
+
export const se_GetServiceCommand = async (input, context) => {
|
|
283
273
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
284
274
|
const headers = {};
|
|
285
275
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -298,7 +288,7 @@ export const serializeAws_restJson1GetServiceCommand = async (input, context) =>
|
|
|
298
288
|
body,
|
|
299
289
|
});
|
|
300
290
|
};
|
|
301
|
-
export const
|
|
291
|
+
export const se_ListApplicationsCommand = async (input, context) => {
|
|
302
292
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
303
293
|
const headers = {};
|
|
304
294
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -320,7 +310,7 @@ export const serializeAws_restJson1ListApplicationsCommand = async (input, conte
|
|
|
320
310
|
body,
|
|
321
311
|
});
|
|
322
312
|
};
|
|
323
|
-
export const
|
|
313
|
+
export const se_ListEnvironmentsCommand = async (input, context) => {
|
|
324
314
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
325
315
|
const headers = {};
|
|
326
316
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
@@ -340,7 +330,7 @@ export const serializeAws_restJson1ListEnvironmentsCommand = async (input, conte
|
|
|
340
330
|
body,
|
|
341
331
|
});
|
|
342
332
|
};
|
|
343
|
-
export const
|
|
333
|
+
export const se_ListEnvironmentVpcsCommand = async (input, context) => {
|
|
344
334
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
345
335
|
const headers = {};
|
|
346
336
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -362,7 +352,7 @@ export const serializeAws_restJson1ListEnvironmentVpcsCommand = async (input, co
|
|
|
362
352
|
body,
|
|
363
353
|
});
|
|
364
354
|
};
|
|
365
|
-
export const
|
|
355
|
+
export const se_ListRoutesCommand = async (input, context) => {
|
|
366
356
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
367
357
|
const headers = {};
|
|
368
358
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -385,7 +375,7 @@ export const serializeAws_restJson1ListRoutesCommand = async (input, context) =>
|
|
|
385
375
|
body,
|
|
386
376
|
});
|
|
387
377
|
};
|
|
388
|
-
export const
|
|
378
|
+
export const se_ListServicesCommand = async (input, context) => {
|
|
389
379
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
390
380
|
const headers = {};
|
|
391
381
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -408,7 +398,7 @@ export const serializeAws_restJson1ListServicesCommand = async (input, context)
|
|
|
408
398
|
body,
|
|
409
399
|
});
|
|
410
400
|
};
|
|
411
|
-
export const
|
|
401
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
412
402
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
413
403
|
const headers = {};
|
|
414
404
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -424,7 +414,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
424
414
|
body,
|
|
425
415
|
});
|
|
426
416
|
};
|
|
427
|
-
export const
|
|
417
|
+
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
428
418
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
429
419
|
const headers = {
|
|
430
420
|
"content-type": "application/json",
|
|
@@ -445,7 +435,7 @@ export const serializeAws_restJson1PutResourcePolicyCommand = async (input, cont
|
|
|
445
435
|
body,
|
|
446
436
|
});
|
|
447
437
|
};
|
|
448
|
-
export const
|
|
438
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
449
439
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
450
440
|
const headers = {
|
|
451
441
|
"content-type": "application/json",
|
|
@@ -454,7 +444,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
454
444
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
455
445
|
let body;
|
|
456
446
|
body = JSON.stringify({
|
|
457
|
-
...(input.Tags != null && { Tags:
|
|
447
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
458
448
|
});
|
|
459
449
|
return new __HttpRequest({
|
|
460
450
|
protocol,
|
|
@@ -466,7 +456,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
466
456
|
body,
|
|
467
457
|
});
|
|
468
458
|
};
|
|
469
|
-
export const
|
|
459
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
470
460
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
471
461
|
const headers = {};
|
|
472
462
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -489,7 +479,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
489
479
|
body,
|
|
490
480
|
});
|
|
491
481
|
};
|
|
492
|
-
export const
|
|
482
|
+
export const se_UpdateRouteCommand = async (input, context) => {
|
|
493
483
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
494
484
|
const headers = {
|
|
495
485
|
"content-type": "application/json",
|
|
@@ -513,16 +503,16 @@ export const serializeAws_restJson1UpdateRouteCommand = async (input, context) =
|
|
|
513
503
|
body,
|
|
514
504
|
});
|
|
515
505
|
};
|
|
516
|
-
export const
|
|
506
|
+
export const de_CreateApplicationCommand = async (output, context) => {
|
|
517
507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
|
-
return
|
|
508
|
+
return de_CreateApplicationCommandError(output, context);
|
|
519
509
|
}
|
|
520
510
|
const contents = map({
|
|
521
511
|
$metadata: deserializeMetadata(output),
|
|
522
512
|
});
|
|
523
513
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
524
514
|
if (data.ApiGatewayProxy != null) {
|
|
525
|
-
contents.ApiGatewayProxy =
|
|
515
|
+
contents.ApiGatewayProxy = de_ApiGatewayProxyInput(data.ApiGatewayProxy, context);
|
|
526
516
|
}
|
|
527
517
|
if (data.ApplicationId != null) {
|
|
528
518
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
@@ -555,14 +545,14 @@ export const deserializeAws_restJson1CreateApplicationCommand = async (output, c
|
|
|
555
545
|
contents.State = __expectString(data.State);
|
|
556
546
|
}
|
|
557
547
|
if (data.Tags != null) {
|
|
558
|
-
contents.Tags =
|
|
548
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
559
549
|
}
|
|
560
550
|
if (data.VpcId != null) {
|
|
561
551
|
contents.VpcId = __expectString(data.VpcId);
|
|
562
552
|
}
|
|
563
553
|
return contents;
|
|
564
554
|
};
|
|
565
|
-
const
|
|
555
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
566
556
|
const parsedOutput = {
|
|
567
557
|
...output,
|
|
568
558
|
body: await parseErrorBody(output.body, context),
|
|
@@ -571,25 +561,25 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
571
561
|
switch (errorCode) {
|
|
572
562
|
case "AccessDeniedException":
|
|
573
563
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
574
|
-
throw await
|
|
564
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
575
565
|
case "ConflictException":
|
|
576
566
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
577
|
-
throw await
|
|
567
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
578
568
|
case "InternalServerException":
|
|
579
569
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
580
|
-
throw await
|
|
570
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
581
571
|
case "ResourceNotFoundException":
|
|
582
572
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
583
|
-
throw await
|
|
573
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
584
574
|
case "ServiceQuotaExceededException":
|
|
585
575
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
586
|
-
throw await
|
|
576
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
587
577
|
case "ThrottlingException":
|
|
588
578
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
589
|
-
throw await
|
|
579
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
590
580
|
case "ValidationException":
|
|
591
581
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
592
|
-
throw await
|
|
582
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
593
583
|
default:
|
|
594
584
|
const parsedBody = parsedOutput.body;
|
|
595
585
|
throwDefaultError({
|
|
@@ -600,9 +590,9 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
600
590
|
});
|
|
601
591
|
}
|
|
602
592
|
};
|
|
603
|
-
export const
|
|
593
|
+
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
604
594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
605
|
-
return
|
|
595
|
+
return de_CreateEnvironmentCommandError(output, context);
|
|
606
596
|
}
|
|
607
597
|
const contents = map({
|
|
608
598
|
$metadata: deserializeMetadata(output),
|
|
@@ -636,11 +626,11 @@ export const deserializeAws_restJson1CreateEnvironmentCommand = async (output, c
|
|
|
636
626
|
contents.State = __expectString(data.State);
|
|
637
627
|
}
|
|
638
628
|
if (data.Tags != null) {
|
|
639
|
-
contents.Tags =
|
|
629
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
640
630
|
}
|
|
641
631
|
return contents;
|
|
642
632
|
};
|
|
643
|
-
const
|
|
633
|
+
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
644
634
|
const parsedOutput = {
|
|
645
635
|
...output,
|
|
646
636
|
body: await parseErrorBody(output.body, context),
|
|
@@ -649,25 +639,25 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
649
639
|
switch (errorCode) {
|
|
650
640
|
case "AccessDeniedException":
|
|
651
641
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
652
|
-
throw await
|
|
642
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
653
643
|
case "ConflictException":
|
|
654
644
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
655
|
-
throw await
|
|
645
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
656
646
|
case "InternalServerException":
|
|
657
647
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
658
|
-
throw await
|
|
648
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
659
649
|
case "ResourceNotFoundException":
|
|
660
650
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
661
|
-
throw await
|
|
651
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
662
652
|
case "ServiceQuotaExceededException":
|
|
663
653
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
664
|
-
throw await
|
|
654
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
665
655
|
case "ThrottlingException":
|
|
666
656
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
667
|
-
throw await
|
|
657
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
668
658
|
case "ValidationException":
|
|
669
659
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
670
|
-
throw await
|
|
660
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
671
661
|
default:
|
|
672
662
|
const parsedBody = parsedOutput.body;
|
|
673
663
|
throwDefaultError({
|
|
@@ -678,9 +668,9 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
678
668
|
});
|
|
679
669
|
}
|
|
680
670
|
};
|
|
681
|
-
export const
|
|
671
|
+
export const de_CreateRouteCommand = async (output, context) => {
|
|
682
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
|
-
return
|
|
673
|
+
return de_CreateRouteCommandError(output, context);
|
|
684
674
|
}
|
|
685
675
|
const contents = map({
|
|
686
676
|
$metadata: deserializeMetadata(output),
|
|
@@ -717,14 +707,14 @@ export const deserializeAws_restJson1CreateRouteCommand = async (output, context
|
|
|
717
707
|
contents.State = __expectString(data.State);
|
|
718
708
|
}
|
|
719
709
|
if (data.Tags != null) {
|
|
720
|
-
contents.Tags =
|
|
710
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
721
711
|
}
|
|
722
712
|
if (data.UriPathRoute != null) {
|
|
723
|
-
contents.UriPathRoute =
|
|
713
|
+
contents.UriPathRoute = de_UriPathRouteInput(data.UriPathRoute, context);
|
|
724
714
|
}
|
|
725
715
|
return contents;
|
|
726
716
|
};
|
|
727
|
-
const
|
|
717
|
+
const de_CreateRouteCommandError = async (output, context) => {
|
|
728
718
|
const parsedOutput = {
|
|
729
719
|
...output,
|
|
730
720
|
body: await parseErrorBody(output.body, context),
|
|
@@ -733,25 +723,25 @@ const deserializeAws_restJson1CreateRouteCommandError = async (output, context)
|
|
|
733
723
|
switch (errorCode) {
|
|
734
724
|
case "AccessDeniedException":
|
|
735
725
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
736
|
-
throw await
|
|
726
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
737
727
|
case "ConflictException":
|
|
738
728
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
739
|
-
throw await
|
|
729
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
740
730
|
case "InternalServerException":
|
|
741
731
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
742
|
-
throw await
|
|
732
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
743
733
|
case "ResourceNotFoundException":
|
|
744
734
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
745
|
-
throw await
|
|
735
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
746
736
|
case "ServiceQuotaExceededException":
|
|
747
737
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
748
|
-
throw await
|
|
738
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
749
739
|
case "ThrottlingException":
|
|
750
740
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
751
|
-
throw await
|
|
741
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
752
742
|
case "ValidationException":
|
|
753
743
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
754
|
-
throw await
|
|
744
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
755
745
|
default:
|
|
756
746
|
const parsedBody = parsedOutput.body;
|
|
757
747
|
throwDefaultError({
|
|
@@ -762,9 +752,9 @@ const deserializeAws_restJson1CreateRouteCommandError = async (output, context)
|
|
|
762
752
|
});
|
|
763
753
|
}
|
|
764
754
|
};
|
|
765
|
-
export const
|
|
755
|
+
export const de_CreateServiceCommand = async (output, context) => {
|
|
766
756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return
|
|
757
|
+
return de_CreateServiceCommandError(output, context);
|
|
768
758
|
}
|
|
769
759
|
const contents = map({
|
|
770
760
|
$metadata: deserializeMetadata(output),
|
|
@@ -792,7 +782,7 @@ export const deserializeAws_restJson1CreateServiceCommand = async (output, conte
|
|
|
792
782
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
793
783
|
}
|
|
794
784
|
if (data.LambdaEndpoint != null) {
|
|
795
|
-
contents.LambdaEndpoint =
|
|
785
|
+
contents.LambdaEndpoint = de_LambdaEndpointInput(data.LambdaEndpoint, context);
|
|
796
786
|
}
|
|
797
787
|
if (data.LastUpdatedTime != null) {
|
|
798
788
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
@@ -810,17 +800,17 @@ export const deserializeAws_restJson1CreateServiceCommand = async (output, conte
|
|
|
810
800
|
contents.State = __expectString(data.State);
|
|
811
801
|
}
|
|
812
802
|
if (data.Tags != null) {
|
|
813
|
-
contents.Tags =
|
|
803
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
814
804
|
}
|
|
815
805
|
if (data.UrlEndpoint != null) {
|
|
816
|
-
contents.UrlEndpoint =
|
|
806
|
+
contents.UrlEndpoint = de_UrlEndpointInput(data.UrlEndpoint, context);
|
|
817
807
|
}
|
|
818
808
|
if (data.VpcId != null) {
|
|
819
809
|
contents.VpcId = __expectString(data.VpcId);
|
|
820
810
|
}
|
|
821
811
|
return contents;
|
|
822
812
|
};
|
|
823
|
-
const
|
|
813
|
+
const de_CreateServiceCommandError = async (output, context) => {
|
|
824
814
|
const parsedOutput = {
|
|
825
815
|
...output,
|
|
826
816
|
body: await parseErrorBody(output.body, context),
|
|
@@ -829,25 +819,25 @@ const deserializeAws_restJson1CreateServiceCommandError = async (output, context
|
|
|
829
819
|
switch (errorCode) {
|
|
830
820
|
case "AccessDeniedException":
|
|
831
821
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
832
|
-
throw await
|
|
822
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
833
823
|
case "ConflictException":
|
|
834
824
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
835
|
-
throw await
|
|
825
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
836
826
|
case "InternalServerException":
|
|
837
827
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
838
|
-
throw await
|
|
828
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
839
829
|
case "ResourceNotFoundException":
|
|
840
830
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
841
|
-
throw await
|
|
831
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
842
832
|
case "ServiceQuotaExceededException":
|
|
843
833
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
844
|
-
throw await
|
|
834
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
845
835
|
case "ThrottlingException":
|
|
846
836
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
847
|
-
throw await
|
|
837
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
848
838
|
case "ValidationException":
|
|
849
839
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
850
|
-
throw await
|
|
840
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
851
841
|
default:
|
|
852
842
|
const parsedBody = parsedOutput.body;
|
|
853
843
|
throwDefaultError({
|
|
@@ -858,9 +848,9 @@ const deserializeAws_restJson1CreateServiceCommandError = async (output, context
|
|
|
858
848
|
});
|
|
859
849
|
}
|
|
860
850
|
};
|
|
861
|
-
export const
|
|
851
|
+
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
862
852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
863
|
-
return
|
|
853
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
864
854
|
}
|
|
865
855
|
const contents = map({
|
|
866
856
|
$metadata: deserializeMetadata(output),
|
|
@@ -886,7 +876,7 @@ export const deserializeAws_restJson1DeleteApplicationCommand = async (output, c
|
|
|
886
876
|
}
|
|
887
877
|
return contents;
|
|
888
878
|
};
|
|
889
|
-
const
|
|
879
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
890
880
|
const parsedOutput = {
|
|
891
881
|
...output,
|
|
892
882
|
body: await parseErrorBody(output.body, context),
|
|
@@ -895,22 +885,22 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
895
885
|
switch (errorCode) {
|
|
896
886
|
case "AccessDeniedException":
|
|
897
887
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
898
|
-
throw await
|
|
888
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
899
889
|
case "ConflictException":
|
|
900
890
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
901
|
-
throw await
|
|
891
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
902
892
|
case "InternalServerException":
|
|
903
893
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
904
|
-
throw await
|
|
894
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
905
895
|
case "ResourceNotFoundException":
|
|
906
896
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
907
|
-
throw await
|
|
897
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
908
898
|
case "ThrottlingException":
|
|
909
899
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
910
|
-
throw await
|
|
900
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
911
901
|
case "ValidationException":
|
|
912
902
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
913
|
-
throw await
|
|
903
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
914
904
|
default:
|
|
915
905
|
const parsedBody = parsedOutput.body;
|
|
916
906
|
throwDefaultError({
|
|
@@ -921,9 +911,9 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
921
911
|
});
|
|
922
912
|
}
|
|
923
913
|
};
|
|
924
|
-
export const
|
|
914
|
+
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
925
915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
926
|
-
return
|
|
916
|
+
return de_DeleteEnvironmentCommandError(output, context);
|
|
927
917
|
}
|
|
928
918
|
const contents = map({
|
|
929
919
|
$metadata: deserializeMetadata(output),
|
|
@@ -946,7 +936,7 @@ export const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, c
|
|
|
946
936
|
}
|
|
947
937
|
return contents;
|
|
948
938
|
};
|
|
949
|
-
const
|
|
939
|
+
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
950
940
|
const parsedOutput = {
|
|
951
941
|
...output,
|
|
952
942
|
body: await parseErrorBody(output.body, context),
|
|
@@ -955,22 +945,22 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
955
945
|
switch (errorCode) {
|
|
956
946
|
case "AccessDeniedException":
|
|
957
947
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
958
|
-
throw await
|
|
948
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
959
949
|
case "ConflictException":
|
|
960
950
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
961
|
-
throw await
|
|
951
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
962
952
|
case "InternalServerException":
|
|
963
953
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
964
|
-
throw await
|
|
954
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
965
955
|
case "ResourceNotFoundException":
|
|
966
956
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
967
|
-
throw await
|
|
957
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
968
958
|
case "ThrottlingException":
|
|
969
959
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
970
|
-
throw await
|
|
960
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
971
961
|
case "ValidationException":
|
|
972
962
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
973
|
-
throw await
|
|
963
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
974
964
|
default:
|
|
975
965
|
const parsedBody = parsedOutput.body;
|
|
976
966
|
throwDefaultError({
|
|
@@ -981,9 +971,9 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
981
971
|
});
|
|
982
972
|
}
|
|
983
973
|
};
|
|
984
|
-
export const
|
|
974
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
985
975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
986
|
-
return
|
|
976
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
987
977
|
}
|
|
988
978
|
const contents = map({
|
|
989
979
|
$metadata: deserializeMetadata(output),
|
|
@@ -991,7 +981,7 @@ export const deserializeAws_restJson1DeleteResourcePolicyCommand = async (output
|
|
|
991
981
|
await collectBody(output.body, context);
|
|
992
982
|
return contents;
|
|
993
983
|
};
|
|
994
|
-
const
|
|
984
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
995
985
|
const parsedOutput = {
|
|
996
986
|
...output,
|
|
997
987
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1000,19 +990,19 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1000
990
|
switch (errorCode) {
|
|
1001
991
|
case "AccessDeniedException":
|
|
1002
992
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1003
|
-
throw await
|
|
993
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1004
994
|
case "InternalServerException":
|
|
1005
995
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1006
|
-
throw await
|
|
996
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1007
997
|
case "ResourceNotFoundException":
|
|
1008
998
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1009
|
-
throw await
|
|
999
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1010
1000
|
case "ThrottlingException":
|
|
1011
1001
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1012
|
-
throw await
|
|
1002
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1013
1003
|
case "ValidationException":
|
|
1014
1004
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1015
|
-
throw await
|
|
1005
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1016
1006
|
default:
|
|
1017
1007
|
const parsedBody = parsedOutput.body;
|
|
1018
1008
|
throwDefaultError({
|
|
@@ -1023,9 +1013,9 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1023
1013
|
});
|
|
1024
1014
|
}
|
|
1025
1015
|
};
|
|
1026
|
-
export const
|
|
1016
|
+
export const de_DeleteRouteCommand = async (output, context) => {
|
|
1027
1017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
1018
|
+
return de_DeleteRouteCommandError(output, context);
|
|
1029
1019
|
}
|
|
1030
1020
|
const contents = map({
|
|
1031
1021
|
$metadata: deserializeMetadata(output),
|
|
@@ -1051,7 +1041,7 @@ export const deserializeAws_restJson1DeleteRouteCommand = async (output, context
|
|
|
1051
1041
|
}
|
|
1052
1042
|
return contents;
|
|
1053
1043
|
};
|
|
1054
|
-
const
|
|
1044
|
+
const de_DeleteRouteCommandError = async (output, context) => {
|
|
1055
1045
|
const parsedOutput = {
|
|
1056
1046
|
...output,
|
|
1057
1047
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1060,22 +1050,22 @@ const deserializeAws_restJson1DeleteRouteCommandError = async (output, context)
|
|
|
1060
1050
|
switch (errorCode) {
|
|
1061
1051
|
case "AccessDeniedException":
|
|
1062
1052
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1063
|
-
throw await
|
|
1053
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1064
1054
|
case "ConflictException":
|
|
1065
1055
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1066
|
-
throw await
|
|
1056
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1067
1057
|
case "InternalServerException":
|
|
1068
1058
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1069
|
-
throw await
|
|
1059
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1070
1060
|
case "ResourceNotFoundException":
|
|
1071
1061
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1072
|
-
throw await
|
|
1062
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1073
1063
|
case "ThrottlingException":
|
|
1074
1064
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1075
|
-
throw await
|
|
1065
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1076
1066
|
case "ValidationException":
|
|
1077
1067
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1078
|
-
throw await
|
|
1068
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
1069
|
default:
|
|
1080
1070
|
const parsedBody = parsedOutput.body;
|
|
1081
1071
|
throwDefaultError({
|
|
@@ -1086,9 +1076,9 @@ const deserializeAws_restJson1DeleteRouteCommandError = async (output, context)
|
|
|
1086
1076
|
});
|
|
1087
1077
|
}
|
|
1088
1078
|
};
|
|
1089
|
-
export const
|
|
1079
|
+
export const de_DeleteServiceCommand = async (output, context) => {
|
|
1090
1080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
1081
|
+
return de_DeleteServiceCommandError(output, context);
|
|
1092
1082
|
}
|
|
1093
1083
|
const contents = map({
|
|
1094
1084
|
$metadata: deserializeMetadata(output),
|
|
@@ -1117,7 +1107,7 @@ export const deserializeAws_restJson1DeleteServiceCommand = async (output, conte
|
|
|
1117
1107
|
}
|
|
1118
1108
|
return contents;
|
|
1119
1109
|
};
|
|
1120
|
-
const
|
|
1110
|
+
const de_DeleteServiceCommandError = async (output, context) => {
|
|
1121
1111
|
const parsedOutput = {
|
|
1122
1112
|
...output,
|
|
1123
1113
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1126,22 +1116,22 @@ const deserializeAws_restJson1DeleteServiceCommandError = async (output, context
|
|
|
1126
1116
|
switch (errorCode) {
|
|
1127
1117
|
case "AccessDeniedException":
|
|
1128
1118
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1129
|
-
throw await
|
|
1119
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1130
1120
|
case "ConflictException":
|
|
1131
1121
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1132
|
-
throw await
|
|
1122
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1133
1123
|
case "InternalServerException":
|
|
1134
1124
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1135
|
-
throw await
|
|
1125
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1136
1126
|
case "ResourceNotFoundException":
|
|
1137
1127
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1138
|
-
throw await
|
|
1128
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1139
1129
|
case "ThrottlingException":
|
|
1140
1130
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1141
|
-
throw await
|
|
1131
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1142
1132
|
case "ValidationException":
|
|
1143
1133
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1144
|
-
throw await
|
|
1134
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
1135
|
default:
|
|
1146
1136
|
const parsedBody = parsedOutput.body;
|
|
1147
1137
|
throwDefaultError({
|
|
@@ -1152,16 +1142,16 @@ const deserializeAws_restJson1DeleteServiceCommandError = async (output, context
|
|
|
1152
1142
|
});
|
|
1153
1143
|
}
|
|
1154
1144
|
};
|
|
1155
|
-
export const
|
|
1145
|
+
export const de_GetApplicationCommand = async (output, context) => {
|
|
1156
1146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1157
|
-
return
|
|
1147
|
+
return de_GetApplicationCommandError(output, context);
|
|
1158
1148
|
}
|
|
1159
1149
|
const contents = map({
|
|
1160
1150
|
$metadata: deserializeMetadata(output),
|
|
1161
1151
|
});
|
|
1162
1152
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1163
1153
|
if (data.ApiGatewayProxy != null) {
|
|
1164
|
-
contents.ApiGatewayProxy =
|
|
1154
|
+
contents.ApiGatewayProxy = de_ApiGatewayProxyConfig(data.ApiGatewayProxy, context);
|
|
1165
1155
|
}
|
|
1166
1156
|
if (data.ApplicationId != null) {
|
|
1167
1157
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
@@ -1179,7 +1169,7 @@ export const deserializeAws_restJson1GetApplicationCommand = async (output, cont
|
|
|
1179
1169
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1180
1170
|
}
|
|
1181
1171
|
if (data.Error != null) {
|
|
1182
|
-
contents.Error =
|
|
1172
|
+
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1183
1173
|
}
|
|
1184
1174
|
if (data.LastUpdatedTime != null) {
|
|
1185
1175
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
@@ -1197,14 +1187,14 @@ export const deserializeAws_restJson1GetApplicationCommand = async (output, cont
|
|
|
1197
1187
|
contents.State = __expectString(data.State);
|
|
1198
1188
|
}
|
|
1199
1189
|
if (data.Tags != null) {
|
|
1200
|
-
contents.Tags =
|
|
1190
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1201
1191
|
}
|
|
1202
1192
|
if (data.VpcId != null) {
|
|
1203
1193
|
contents.VpcId = __expectString(data.VpcId);
|
|
1204
1194
|
}
|
|
1205
1195
|
return contents;
|
|
1206
1196
|
};
|
|
1207
|
-
const
|
|
1197
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
1208
1198
|
const parsedOutput = {
|
|
1209
1199
|
...output,
|
|
1210
1200
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1213,19 +1203,19 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1213
1203
|
switch (errorCode) {
|
|
1214
1204
|
case "AccessDeniedException":
|
|
1215
1205
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1216
|
-
throw await
|
|
1206
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1217
1207
|
case "InternalServerException":
|
|
1218
1208
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1219
|
-
throw await
|
|
1209
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1220
1210
|
case "ResourceNotFoundException":
|
|
1221
1211
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1222
|
-
throw await
|
|
1212
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1223
1213
|
case "ThrottlingException":
|
|
1224
1214
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1225
|
-
throw await
|
|
1215
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1226
1216
|
case "ValidationException":
|
|
1227
1217
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1228
|
-
throw await
|
|
1218
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1229
1219
|
default:
|
|
1230
1220
|
const parsedBody = parsedOutput.body;
|
|
1231
1221
|
throwDefaultError({
|
|
@@ -1236,9 +1226,9 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1236
1226
|
});
|
|
1237
1227
|
}
|
|
1238
1228
|
};
|
|
1239
|
-
export const
|
|
1229
|
+
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
1240
1230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1241
|
-
return
|
|
1231
|
+
return de_GetEnvironmentCommandError(output, context);
|
|
1242
1232
|
}
|
|
1243
1233
|
const contents = map({
|
|
1244
1234
|
$metadata: deserializeMetadata(output),
|
|
@@ -1257,7 +1247,7 @@ export const deserializeAws_restJson1GetEnvironmentCommand = async (output, cont
|
|
|
1257
1247
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1258
1248
|
}
|
|
1259
1249
|
if (data.Error != null) {
|
|
1260
|
-
contents.Error =
|
|
1250
|
+
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1261
1251
|
}
|
|
1262
1252
|
if (data.LastUpdatedTime != null) {
|
|
1263
1253
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
@@ -1275,14 +1265,14 @@ export const deserializeAws_restJson1GetEnvironmentCommand = async (output, cont
|
|
|
1275
1265
|
contents.State = __expectString(data.State);
|
|
1276
1266
|
}
|
|
1277
1267
|
if (data.Tags != null) {
|
|
1278
|
-
contents.Tags =
|
|
1268
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1279
1269
|
}
|
|
1280
1270
|
if (data.TransitGatewayId != null) {
|
|
1281
1271
|
contents.TransitGatewayId = __expectString(data.TransitGatewayId);
|
|
1282
1272
|
}
|
|
1283
1273
|
return contents;
|
|
1284
1274
|
};
|
|
1285
|
-
const
|
|
1275
|
+
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
1286
1276
|
const parsedOutput = {
|
|
1287
1277
|
...output,
|
|
1288
1278
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1291,19 +1281,19 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
1291
1281
|
switch (errorCode) {
|
|
1292
1282
|
case "AccessDeniedException":
|
|
1293
1283
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1294
|
-
throw await
|
|
1284
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1295
1285
|
case "InternalServerException":
|
|
1296
1286
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1297
|
-
throw await
|
|
1287
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1298
1288
|
case "ResourceNotFoundException":
|
|
1299
1289
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1300
|
-
throw await
|
|
1290
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1301
1291
|
case "ThrottlingException":
|
|
1302
1292
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1303
|
-
throw await
|
|
1293
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1304
1294
|
case "ValidationException":
|
|
1305
1295
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1306
|
-
throw await
|
|
1296
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1307
1297
|
default:
|
|
1308
1298
|
const parsedBody = parsedOutput.body;
|
|
1309
1299
|
throwDefaultError({
|
|
@@ -1314,9 +1304,9 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
1314
1304
|
});
|
|
1315
1305
|
}
|
|
1316
1306
|
};
|
|
1317
|
-
export const
|
|
1307
|
+
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1318
1308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
|
-
return
|
|
1309
|
+
return de_GetResourcePolicyCommandError(output, context);
|
|
1320
1310
|
}
|
|
1321
1311
|
const contents = map({
|
|
1322
1312
|
$metadata: deserializeMetadata(output),
|
|
@@ -1327,7 +1317,7 @@ export const deserializeAws_restJson1GetResourcePolicyCommand = async (output, c
|
|
|
1327
1317
|
}
|
|
1328
1318
|
return contents;
|
|
1329
1319
|
};
|
|
1330
|
-
const
|
|
1320
|
+
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1331
1321
|
const parsedOutput = {
|
|
1332
1322
|
...output,
|
|
1333
1323
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1336,19 +1326,19 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
1336
1326
|
switch (errorCode) {
|
|
1337
1327
|
case "AccessDeniedException":
|
|
1338
1328
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1339
|
-
throw await
|
|
1329
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1340
1330
|
case "InternalServerException":
|
|
1341
1331
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1342
|
-
throw await
|
|
1332
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1343
1333
|
case "ResourceNotFoundException":
|
|
1344
1334
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1345
|
-
throw await
|
|
1335
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1346
1336
|
case "ThrottlingException":
|
|
1347
1337
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1348
|
-
throw await
|
|
1338
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1349
1339
|
case "ValidationException":
|
|
1350
1340
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1351
|
-
throw await
|
|
1341
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1352
1342
|
default:
|
|
1353
1343
|
const parsedBody = parsedOutput.body;
|
|
1354
1344
|
throwDefaultError({
|
|
@@ -1359,9 +1349,9 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
1359
1349
|
});
|
|
1360
1350
|
}
|
|
1361
1351
|
};
|
|
1362
|
-
export const
|
|
1352
|
+
export const de_GetRouteCommand = async (output, context) => {
|
|
1363
1353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return
|
|
1354
|
+
return de_GetRouteCommandError(output, context);
|
|
1365
1355
|
}
|
|
1366
1356
|
const contents = map({
|
|
1367
1357
|
$metadata: deserializeMetadata(output),
|
|
@@ -1383,7 +1373,7 @@ export const deserializeAws_restJson1GetRouteCommand = async (output, context) =
|
|
|
1383
1373
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1384
1374
|
}
|
|
1385
1375
|
if (data.Error != null) {
|
|
1386
|
-
contents.Error =
|
|
1376
|
+
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1387
1377
|
}
|
|
1388
1378
|
if (data.IncludeChildPaths != null) {
|
|
1389
1379
|
contents.IncludeChildPaths = __expectBoolean(data.IncludeChildPaths);
|
|
@@ -1392,13 +1382,13 @@ export const deserializeAws_restJson1GetRouteCommand = async (output, context) =
|
|
|
1392
1382
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1393
1383
|
}
|
|
1394
1384
|
if (data.Methods != null) {
|
|
1395
|
-
contents.Methods =
|
|
1385
|
+
contents.Methods = de_HttpMethods(data.Methods, context);
|
|
1396
1386
|
}
|
|
1397
1387
|
if (data.OwnerAccountId != null) {
|
|
1398
1388
|
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
1399
1389
|
}
|
|
1400
1390
|
if (data.PathResourceToId != null) {
|
|
1401
|
-
contents.PathResourceToId =
|
|
1391
|
+
contents.PathResourceToId = de_PathResourceToId(data.PathResourceToId, context);
|
|
1402
1392
|
}
|
|
1403
1393
|
if (data.RouteId != null) {
|
|
1404
1394
|
contents.RouteId = __expectString(data.RouteId);
|
|
@@ -1416,11 +1406,11 @@ export const deserializeAws_restJson1GetRouteCommand = async (output, context) =
|
|
|
1416
1406
|
contents.State = __expectString(data.State);
|
|
1417
1407
|
}
|
|
1418
1408
|
if (data.Tags != null) {
|
|
1419
|
-
contents.Tags =
|
|
1409
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1420
1410
|
}
|
|
1421
1411
|
return contents;
|
|
1422
1412
|
};
|
|
1423
|
-
const
|
|
1413
|
+
const de_GetRouteCommandError = async (output, context) => {
|
|
1424
1414
|
const parsedOutput = {
|
|
1425
1415
|
...output,
|
|
1426
1416
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1429,19 +1419,19 @@ const deserializeAws_restJson1GetRouteCommandError = async (output, context) =>
|
|
|
1429
1419
|
switch (errorCode) {
|
|
1430
1420
|
case "AccessDeniedException":
|
|
1431
1421
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1432
|
-
throw await
|
|
1422
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1433
1423
|
case "InternalServerException":
|
|
1434
1424
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1435
|
-
throw await
|
|
1425
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1436
1426
|
case "ResourceNotFoundException":
|
|
1437
1427
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1438
|
-
throw await
|
|
1428
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1439
1429
|
case "ThrottlingException":
|
|
1440
1430
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1441
|
-
throw await
|
|
1431
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1442
1432
|
case "ValidationException":
|
|
1443
1433
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1444
|
-
throw await
|
|
1434
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1445
1435
|
default:
|
|
1446
1436
|
const parsedBody = parsedOutput.body;
|
|
1447
1437
|
throwDefaultError({
|
|
@@ -1452,9 +1442,9 @@ const deserializeAws_restJson1GetRouteCommandError = async (output, context) =>
|
|
|
1452
1442
|
});
|
|
1453
1443
|
}
|
|
1454
1444
|
};
|
|
1455
|
-
export const
|
|
1445
|
+
export const de_GetServiceCommand = async (output, context) => {
|
|
1456
1446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1457
|
-
return
|
|
1447
|
+
return de_GetServiceCommandError(output, context);
|
|
1458
1448
|
}
|
|
1459
1449
|
const contents = map({
|
|
1460
1450
|
$metadata: deserializeMetadata(output),
|
|
@@ -1482,10 +1472,10 @@ export const deserializeAws_restJson1GetServiceCommand = async (output, context)
|
|
|
1482
1472
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1483
1473
|
}
|
|
1484
1474
|
if (data.Error != null) {
|
|
1485
|
-
contents.Error =
|
|
1475
|
+
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1486
1476
|
}
|
|
1487
1477
|
if (data.LambdaEndpoint != null) {
|
|
1488
|
-
contents.LambdaEndpoint =
|
|
1478
|
+
contents.LambdaEndpoint = de_LambdaEndpointConfig(data.LambdaEndpoint, context);
|
|
1489
1479
|
}
|
|
1490
1480
|
if (data.LastUpdatedTime != null) {
|
|
1491
1481
|
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
@@ -1503,17 +1493,17 @@ export const deserializeAws_restJson1GetServiceCommand = async (output, context)
|
|
|
1503
1493
|
contents.State = __expectString(data.State);
|
|
1504
1494
|
}
|
|
1505
1495
|
if (data.Tags != null) {
|
|
1506
|
-
contents.Tags =
|
|
1496
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1507
1497
|
}
|
|
1508
1498
|
if (data.UrlEndpoint != null) {
|
|
1509
|
-
contents.UrlEndpoint =
|
|
1499
|
+
contents.UrlEndpoint = de_UrlEndpointConfig(data.UrlEndpoint, context);
|
|
1510
1500
|
}
|
|
1511
1501
|
if (data.VpcId != null) {
|
|
1512
1502
|
contents.VpcId = __expectString(data.VpcId);
|
|
1513
1503
|
}
|
|
1514
1504
|
return contents;
|
|
1515
1505
|
};
|
|
1516
|
-
const
|
|
1506
|
+
const de_GetServiceCommandError = async (output, context) => {
|
|
1517
1507
|
const parsedOutput = {
|
|
1518
1508
|
...output,
|
|
1519
1509
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1522,19 +1512,19 @@ const deserializeAws_restJson1GetServiceCommandError = async (output, context) =
|
|
|
1522
1512
|
switch (errorCode) {
|
|
1523
1513
|
case "AccessDeniedException":
|
|
1524
1514
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1525
|
-
throw await
|
|
1515
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1526
1516
|
case "InternalServerException":
|
|
1527
1517
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1528
|
-
throw await
|
|
1518
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1529
1519
|
case "ResourceNotFoundException":
|
|
1530
1520
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1531
|
-
throw await
|
|
1521
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1532
1522
|
case "ThrottlingException":
|
|
1533
1523
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1534
|
-
throw await
|
|
1524
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1535
1525
|
case "ValidationException":
|
|
1536
1526
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1537
|
-
throw await
|
|
1527
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1538
1528
|
default:
|
|
1539
1529
|
const parsedBody = parsedOutput.body;
|
|
1540
1530
|
throwDefaultError({
|
|
@@ -1545,23 +1535,23 @@ const deserializeAws_restJson1GetServiceCommandError = async (output, context) =
|
|
|
1545
1535
|
});
|
|
1546
1536
|
}
|
|
1547
1537
|
};
|
|
1548
|
-
export const
|
|
1538
|
+
export const de_ListApplicationsCommand = async (output, context) => {
|
|
1549
1539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1550
|
-
return
|
|
1540
|
+
return de_ListApplicationsCommandError(output, context);
|
|
1551
1541
|
}
|
|
1552
1542
|
const contents = map({
|
|
1553
1543
|
$metadata: deserializeMetadata(output),
|
|
1554
1544
|
});
|
|
1555
1545
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1556
1546
|
if (data.ApplicationSummaryList != null) {
|
|
1557
|
-
contents.ApplicationSummaryList =
|
|
1547
|
+
contents.ApplicationSummaryList = de_ApplicationSummaries(data.ApplicationSummaryList, context);
|
|
1558
1548
|
}
|
|
1559
1549
|
if (data.NextToken != null) {
|
|
1560
1550
|
contents.NextToken = __expectString(data.NextToken);
|
|
1561
1551
|
}
|
|
1562
1552
|
return contents;
|
|
1563
1553
|
};
|
|
1564
|
-
const
|
|
1554
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
1565
1555
|
const parsedOutput = {
|
|
1566
1556
|
...output,
|
|
1567
1557
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1570,25 +1560,25 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1570
1560
|
switch (errorCode) {
|
|
1571
1561
|
case "AccessDeniedException":
|
|
1572
1562
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1573
|
-
throw await
|
|
1563
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1574
1564
|
case "ConflictException":
|
|
1575
1565
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1576
|
-
throw await
|
|
1566
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1577
1567
|
case "InternalServerException":
|
|
1578
1568
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1579
|
-
throw await
|
|
1569
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1580
1570
|
case "ResourceNotFoundException":
|
|
1581
1571
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1582
|
-
throw await
|
|
1572
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1583
1573
|
case "ServiceQuotaExceededException":
|
|
1584
1574
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1585
|
-
throw await
|
|
1575
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1586
1576
|
case "ThrottlingException":
|
|
1587
1577
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1588
|
-
throw await
|
|
1578
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1589
1579
|
case "ValidationException":
|
|
1590
1580
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1591
|
-
throw await
|
|
1581
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1592
1582
|
default:
|
|
1593
1583
|
const parsedBody = parsedOutput.body;
|
|
1594
1584
|
throwDefaultError({
|
|
@@ -1599,23 +1589,23 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1599
1589
|
});
|
|
1600
1590
|
}
|
|
1601
1591
|
};
|
|
1602
|
-
export const
|
|
1592
|
+
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
1603
1593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1604
|
-
return
|
|
1594
|
+
return de_ListEnvironmentsCommandError(output, context);
|
|
1605
1595
|
}
|
|
1606
1596
|
const contents = map({
|
|
1607
1597
|
$metadata: deserializeMetadata(output),
|
|
1608
1598
|
});
|
|
1609
1599
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1610
1600
|
if (data.EnvironmentSummaryList != null) {
|
|
1611
|
-
contents.EnvironmentSummaryList =
|
|
1601
|
+
contents.EnvironmentSummaryList = de_EnvironmentSummaries(data.EnvironmentSummaryList, context);
|
|
1612
1602
|
}
|
|
1613
1603
|
if (data.NextToken != null) {
|
|
1614
1604
|
contents.NextToken = __expectString(data.NextToken);
|
|
1615
1605
|
}
|
|
1616
1606
|
return contents;
|
|
1617
1607
|
};
|
|
1618
|
-
const
|
|
1608
|
+
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
1619
1609
|
const parsedOutput = {
|
|
1620
1610
|
...output,
|
|
1621
1611
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1624,19 +1614,19 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
1624
1614
|
switch (errorCode) {
|
|
1625
1615
|
case "AccessDeniedException":
|
|
1626
1616
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1627
|
-
throw await
|
|
1617
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1628
1618
|
case "InternalServerException":
|
|
1629
1619
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1630
|
-
throw await
|
|
1620
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1631
1621
|
case "ResourceNotFoundException":
|
|
1632
1622
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1633
|
-
throw await
|
|
1623
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1634
1624
|
case "ThrottlingException":
|
|
1635
1625
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1636
|
-
throw await
|
|
1626
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1637
1627
|
case "ValidationException":
|
|
1638
1628
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1639
|
-
throw await
|
|
1629
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1640
1630
|
default:
|
|
1641
1631
|
const parsedBody = parsedOutput.body;
|
|
1642
1632
|
throwDefaultError({
|
|
@@ -1647,23 +1637,23 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
1647
1637
|
});
|
|
1648
1638
|
}
|
|
1649
1639
|
};
|
|
1650
|
-
export const
|
|
1640
|
+
export const de_ListEnvironmentVpcsCommand = async (output, context) => {
|
|
1651
1641
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1652
|
-
return
|
|
1642
|
+
return de_ListEnvironmentVpcsCommandError(output, context);
|
|
1653
1643
|
}
|
|
1654
1644
|
const contents = map({
|
|
1655
1645
|
$metadata: deserializeMetadata(output),
|
|
1656
1646
|
});
|
|
1657
1647
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1658
1648
|
if (data.EnvironmentVpcList != null) {
|
|
1659
|
-
contents.EnvironmentVpcList =
|
|
1649
|
+
contents.EnvironmentVpcList = de_EnvironmentVpcs(data.EnvironmentVpcList, context);
|
|
1660
1650
|
}
|
|
1661
1651
|
if (data.NextToken != null) {
|
|
1662
1652
|
contents.NextToken = __expectString(data.NextToken);
|
|
1663
1653
|
}
|
|
1664
1654
|
return contents;
|
|
1665
1655
|
};
|
|
1666
|
-
const
|
|
1656
|
+
const de_ListEnvironmentVpcsCommandError = async (output, context) => {
|
|
1667
1657
|
const parsedOutput = {
|
|
1668
1658
|
...output,
|
|
1669
1659
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1672,19 +1662,19 @@ const deserializeAws_restJson1ListEnvironmentVpcsCommandError = async (output, c
|
|
|
1672
1662
|
switch (errorCode) {
|
|
1673
1663
|
case "AccessDeniedException":
|
|
1674
1664
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1675
|
-
throw await
|
|
1665
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1676
1666
|
case "InternalServerException":
|
|
1677
1667
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1678
|
-
throw await
|
|
1668
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1679
1669
|
case "ResourceNotFoundException":
|
|
1680
1670
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1681
|
-
throw await
|
|
1671
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1682
1672
|
case "ThrottlingException":
|
|
1683
1673
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1684
|
-
throw await
|
|
1674
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1685
1675
|
case "ValidationException":
|
|
1686
1676
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1687
|
-
throw await
|
|
1677
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1688
1678
|
default:
|
|
1689
1679
|
const parsedBody = parsedOutput.body;
|
|
1690
1680
|
throwDefaultError({
|
|
@@ -1695,9 +1685,9 @@ const deserializeAws_restJson1ListEnvironmentVpcsCommandError = async (output, c
|
|
|
1695
1685
|
});
|
|
1696
1686
|
}
|
|
1697
1687
|
};
|
|
1698
|
-
export const
|
|
1688
|
+
export const de_ListRoutesCommand = async (output, context) => {
|
|
1699
1689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1700
|
-
return
|
|
1690
|
+
return de_ListRoutesCommandError(output, context);
|
|
1701
1691
|
}
|
|
1702
1692
|
const contents = map({
|
|
1703
1693
|
$metadata: deserializeMetadata(output),
|
|
@@ -1707,11 +1697,11 @@ export const deserializeAws_restJson1ListRoutesCommand = async (output, context)
|
|
|
1707
1697
|
contents.NextToken = __expectString(data.NextToken);
|
|
1708
1698
|
}
|
|
1709
1699
|
if (data.RouteSummaryList != null) {
|
|
1710
|
-
contents.RouteSummaryList =
|
|
1700
|
+
contents.RouteSummaryList = de_RouteSummaries(data.RouteSummaryList, context);
|
|
1711
1701
|
}
|
|
1712
1702
|
return contents;
|
|
1713
1703
|
};
|
|
1714
|
-
const
|
|
1704
|
+
const de_ListRoutesCommandError = async (output, context) => {
|
|
1715
1705
|
const parsedOutput = {
|
|
1716
1706
|
...output,
|
|
1717
1707
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1720,25 +1710,25 @@ const deserializeAws_restJson1ListRoutesCommandError = async (output, context) =
|
|
|
1720
1710
|
switch (errorCode) {
|
|
1721
1711
|
case "AccessDeniedException":
|
|
1722
1712
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1723
|
-
throw await
|
|
1713
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1724
1714
|
case "ConflictException":
|
|
1725
1715
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1726
|
-
throw await
|
|
1716
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1727
1717
|
case "InternalServerException":
|
|
1728
1718
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1729
|
-
throw await
|
|
1719
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1730
1720
|
case "ResourceNotFoundException":
|
|
1731
1721
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1732
|
-
throw await
|
|
1722
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1733
1723
|
case "ServiceQuotaExceededException":
|
|
1734
1724
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1735
|
-
throw await
|
|
1725
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1736
1726
|
case "ThrottlingException":
|
|
1737
1727
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1738
|
-
throw await
|
|
1728
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1739
1729
|
case "ValidationException":
|
|
1740
1730
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1741
|
-
throw await
|
|
1731
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1742
1732
|
default:
|
|
1743
1733
|
const parsedBody = parsedOutput.body;
|
|
1744
1734
|
throwDefaultError({
|
|
@@ -1749,9 +1739,9 @@ const deserializeAws_restJson1ListRoutesCommandError = async (output, context) =
|
|
|
1749
1739
|
});
|
|
1750
1740
|
}
|
|
1751
1741
|
};
|
|
1752
|
-
export const
|
|
1742
|
+
export const de_ListServicesCommand = async (output, context) => {
|
|
1753
1743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1754
|
-
return
|
|
1744
|
+
return de_ListServicesCommandError(output, context);
|
|
1755
1745
|
}
|
|
1756
1746
|
const contents = map({
|
|
1757
1747
|
$metadata: deserializeMetadata(output),
|
|
@@ -1761,11 +1751,11 @@ export const deserializeAws_restJson1ListServicesCommand = async (output, contex
|
|
|
1761
1751
|
contents.NextToken = __expectString(data.NextToken);
|
|
1762
1752
|
}
|
|
1763
1753
|
if (data.ServiceSummaryList != null) {
|
|
1764
|
-
contents.ServiceSummaryList =
|
|
1754
|
+
contents.ServiceSummaryList = de_ServiceSummaries(data.ServiceSummaryList, context);
|
|
1765
1755
|
}
|
|
1766
1756
|
return contents;
|
|
1767
1757
|
};
|
|
1768
|
-
const
|
|
1758
|
+
const de_ListServicesCommandError = async (output, context) => {
|
|
1769
1759
|
const parsedOutput = {
|
|
1770
1760
|
...output,
|
|
1771
1761
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1774,25 +1764,25 @@ const deserializeAws_restJson1ListServicesCommandError = async (output, context)
|
|
|
1774
1764
|
switch (errorCode) {
|
|
1775
1765
|
case "AccessDeniedException":
|
|
1776
1766
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1777
|
-
throw await
|
|
1767
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1778
1768
|
case "ConflictException":
|
|
1779
1769
|
case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
|
|
1780
|
-
throw await
|
|
1770
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1781
1771
|
case "InternalServerException":
|
|
1782
1772
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1783
|
-
throw await
|
|
1773
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1784
1774
|
case "ResourceNotFoundException":
|
|
1785
1775
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1786
|
-
throw await
|
|
1776
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1787
1777
|
case "ServiceQuotaExceededException":
|
|
1788
1778
|
case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
|
|
1789
|
-
throw await
|
|
1779
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1790
1780
|
case "ThrottlingException":
|
|
1791
1781
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1792
|
-
throw await
|
|
1782
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1793
1783
|
case "ValidationException":
|
|
1794
1784
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1795
|
-
throw await
|
|
1785
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1796
1786
|
default:
|
|
1797
1787
|
const parsedBody = parsedOutput.body;
|
|
1798
1788
|
throwDefaultError({
|
|
@@ -1803,20 +1793,20 @@ const deserializeAws_restJson1ListServicesCommandError = async (output, context)
|
|
|
1803
1793
|
});
|
|
1804
1794
|
}
|
|
1805
1795
|
};
|
|
1806
|
-
export const
|
|
1796
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1807
1797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1808
|
-
return
|
|
1798
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1809
1799
|
}
|
|
1810
1800
|
const contents = map({
|
|
1811
1801
|
$metadata: deserializeMetadata(output),
|
|
1812
1802
|
});
|
|
1813
1803
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1814
1804
|
if (data.Tags != null) {
|
|
1815
|
-
contents.Tags =
|
|
1805
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1816
1806
|
}
|
|
1817
1807
|
return contents;
|
|
1818
1808
|
};
|
|
1819
|
-
const
|
|
1809
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1820
1810
|
const parsedOutput = {
|
|
1821
1811
|
...output,
|
|
1822
1812
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1825,13 +1815,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1825
1815
|
switch (errorCode) {
|
|
1826
1816
|
case "InternalServerException":
|
|
1827
1817
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1828
|
-
throw await
|
|
1818
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1829
1819
|
case "ResourceNotFoundException":
|
|
1830
1820
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1831
|
-
throw await
|
|
1821
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1832
1822
|
case "ValidationException":
|
|
1833
1823
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1834
|
-
throw await
|
|
1824
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1835
1825
|
default:
|
|
1836
1826
|
const parsedBody = parsedOutput.body;
|
|
1837
1827
|
throwDefaultError({
|
|
@@ -1842,9 +1832,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1842
1832
|
});
|
|
1843
1833
|
}
|
|
1844
1834
|
};
|
|
1845
|
-
export const
|
|
1835
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1846
1836
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1847
|
-
return
|
|
1837
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
1848
1838
|
}
|
|
1849
1839
|
const contents = map({
|
|
1850
1840
|
$metadata: deserializeMetadata(output),
|
|
@@ -1852,7 +1842,7 @@ export const deserializeAws_restJson1PutResourcePolicyCommand = async (output, c
|
|
|
1852
1842
|
await collectBody(output.body, context);
|
|
1853
1843
|
return contents;
|
|
1854
1844
|
};
|
|
1855
|
-
const
|
|
1845
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1856
1846
|
const parsedOutput = {
|
|
1857
1847
|
...output,
|
|
1858
1848
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1861,22 +1851,22 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1861
1851
|
switch (errorCode) {
|
|
1862
1852
|
case "AccessDeniedException":
|
|
1863
1853
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1864
|
-
throw await
|
|
1854
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1865
1855
|
case "InternalServerException":
|
|
1866
1856
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1867
|
-
throw await
|
|
1857
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1868
1858
|
case "InvalidResourcePolicyException":
|
|
1869
1859
|
case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
|
|
1870
|
-
throw await
|
|
1860
|
+
throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
|
|
1871
1861
|
case "ResourceNotFoundException":
|
|
1872
1862
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1873
|
-
throw await
|
|
1863
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1874
1864
|
case "ThrottlingException":
|
|
1875
1865
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
1876
|
-
throw await
|
|
1866
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1877
1867
|
case "ValidationException":
|
|
1878
1868
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1879
|
-
throw await
|
|
1869
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1880
1870
|
default:
|
|
1881
1871
|
const parsedBody = parsedOutput.body;
|
|
1882
1872
|
throwDefaultError({
|
|
@@ -1887,9 +1877,9 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1887
1877
|
});
|
|
1888
1878
|
}
|
|
1889
1879
|
};
|
|
1890
|
-
export const
|
|
1880
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1891
1881
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1892
|
-
return
|
|
1882
|
+
return de_TagResourceCommandError(output, context);
|
|
1893
1883
|
}
|
|
1894
1884
|
const contents = map({
|
|
1895
1885
|
$metadata: deserializeMetadata(output),
|
|
@@ -1897,7 +1887,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1897
1887
|
await collectBody(output.body, context);
|
|
1898
1888
|
return contents;
|
|
1899
1889
|
};
|
|
1900
|
-
const
|
|
1890
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1901
1891
|
const parsedOutput = {
|
|
1902
1892
|
...output,
|
|
1903
1893
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1906,13 +1896,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1906
1896
|
switch (errorCode) {
|
|
1907
1897
|
case "InternalServerException":
|
|
1908
1898
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1909
|
-
throw await
|
|
1899
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1910
1900
|
case "ResourceNotFoundException":
|
|
1911
1901
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1912
|
-
throw await
|
|
1902
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1913
1903
|
case "ValidationException":
|
|
1914
1904
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1915
|
-
throw await
|
|
1905
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1916
1906
|
default:
|
|
1917
1907
|
const parsedBody = parsedOutput.body;
|
|
1918
1908
|
throwDefaultError({
|
|
@@ -1923,9 +1913,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1923
1913
|
});
|
|
1924
1914
|
}
|
|
1925
1915
|
};
|
|
1926
|
-
export const
|
|
1916
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1927
1917
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1928
|
-
return
|
|
1918
|
+
return de_UntagResourceCommandError(output, context);
|
|
1929
1919
|
}
|
|
1930
1920
|
const contents = map({
|
|
1931
1921
|
$metadata: deserializeMetadata(output),
|
|
@@ -1933,7 +1923,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1933
1923
|
await collectBody(output.body, context);
|
|
1934
1924
|
return contents;
|
|
1935
1925
|
};
|
|
1936
|
-
const
|
|
1926
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1937
1927
|
const parsedOutput = {
|
|
1938
1928
|
...output,
|
|
1939
1929
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1942,13 +1932,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1942
1932
|
switch (errorCode) {
|
|
1943
1933
|
case "InternalServerException":
|
|
1944
1934
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
1945
|
-
throw await
|
|
1935
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1946
1936
|
case "ResourceNotFoundException":
|
|
1947
1937
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
1948
|
-
throw await
|
|
1938
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1949
1939
|
case "ValidationException":
|
|
1950
1940
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
1951
|
-
throw await
|
|
1941
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1952
1942
|
default:
|
|
1953
1943
|
const parsedBody = parsedOutput.body;
|
|
1954
1944
|
throwDefaultError({
|
|
@@ -1959,9 +1949,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1959
1949
|
});
|
|
1960
1950
|
}
|
|
1961
1951
|
};
|
|
1962
|
-
export const
|
|
1952
|
+
export const de_UpdateRouteCommand = async (output, context) => {
|
|
1963
1953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1964
|
-
return
|
|
1954
|
+
return de_UpdateRouteCommandError(output, context);
|
|
1965
1955
|
}
|
|
1966
1956
|
const contents = map({
|
|
1967
1957
|
$metadata: deserializeMetadata(output),
|
|
@@ -1987,7 +1977,7 @@ export const deserializeAws_restJson1UpdateRouteCommand = async (output, context
|
|
|
1987
1977
|
}
|
|
1988
1978
|
return contents;
|
|
1989
1979
|
};
|
|
1990
|
-
const
|
|
1980
|
+
const de_UpdateRouteCommandError = async (output, context) => {
|
|
1991
1981
|
const parsedOutput = {
|
|
1992
1982
|
...output,
|
|
1993
1983
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1996,19 +1986,19 @@ const deserializeAws_restJson1UpdateRouteCommandError = async (output, context)
|
|
|
1996
1986
|
switch (errorCode) {
|
|
1997
1987
|
case "AccessDeniedException":
|
|
1998
1988
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
1999
|
-
throw await
|
|
1989
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2000
1990
|
case "InternalServerException":
|
|
2001
1991
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
2002
|
-
throw await
|
|
1992
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2003
1993
|
case "ResourceNotFoundException":
|
|
2004
1994
|
case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
|
|
2005
|
-
throw await
|
|
1995
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2006
1996
|
case "ThrottlingException":
|
|
2007
1997
|
case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
|
|
2008
|
-
throw await
|
|
1998
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2009
1999
|
case "ValidationException":
|
|
2010
2000
|
case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
|
|
2011
|
-
throw await
|
|
2001
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2012
2002
|
default:
|
|
2013
2003
|
const parsedBody = parsedOutput.body;
|
|
2014
2004
|
throwDefaultError({
|
|
@@ -2020,7 +2010,7 @@ const deserializeAws_restJson1UpdateRouteCommandError = async (output, context)
|
|
|
2020
2010
|
}
|
|
2021
2011
|
};
|
|
2022
2012
|
const map = __map;
|
|
2023
|
-
const
|
|
2013
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2024
2014
|
const contents = map({});
|
|
2025
2015
|
const data = parsedOutput.body;
|
|
2026
2016
|
if (data.Message != null) {
|
|
@@ -2032,7 +2022,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2032
2022
|
});
|
|
2033
2023
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2034
2024
|
};
|
|
2035
|
-
const
|
|
2025
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2036
2026
|
const contents = map({});
|
|
2037
2027
|
const data = parsedOutput.body;
|
|
2038
2028
|
if (data.Message != null) {
|
|
@@ -2050,7 +2040,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2050
2040
|
});
|
|
2051
2041
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2052
2042
|
};
|
|
2053
|
-
const
|
|
2043
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2054
2044
|
const contents = map({});
|
|
2055
2045
|
const data = parsedOutput.body;
|
|
2056
2046
|
if (data.Message != null) {
|
|
@@ -2062,7 +2052,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2062
2052
|
});
|
|
2063
2053
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2064
2054
|
};
|
|
2065
|
-
const
|
|
2055
|
+
const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
2066
2056
|
const contents = map({});
|
|
2067
2057
|
const data = parsedOutput.body;
|
|
2068
2058
|
if (data.Message != null) {
|
|
@@ -2074,7 +2064,7 @@ const deserializeAws_restJson1InvalidResourcePolicyExceptionResponse = async (pa
|
|
|
2074
2064
|
});
|
|
2075
2065
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2076
2066
|
};
|
|
2077
|
-
const
|
|
2067
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2078
2068
|
const contents = map({});
|
|
2079
2069
|
const data = parsedOutput.body;
|
|
2080
2070
|
if (data.Message != null) {
|
|
@@ -2092,7 +2082,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2092
2082
|
});
|
|
2093
2083
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2094
2084
|
};
|
|
2095
|
-
const
|
|
2085
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2096
2086
|
const contents = map({});
|
|
2097
2087
|
const data = parsedOutput.body;
|
|
2098
2088
|
if (data.Message != null) {
|
|
@@ -2116,7 +2106,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2116
2106
|
});
|
|
2117
2107
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2118
2108
|
};
|
|
2119
|
-
const
|
|
2109
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2120
2110
|
const contents = map({
|
|
2121
2111
|
RetryAfterSeconds: [
|
|
2122
2112
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
@@ -2139,7 +2129,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2139
2129
|
});
|
|
2140
2130
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2141
2131
|
};
|
|
2142
|
-
const
|
|
2132
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2143
2133
|
const contents = map({});
|
|
2144
2134
|
const data = parsedOutput.body;
|
|
2145
2135
|
if (data.Message != null) {
|
|
@@ -2151,30 +2141,30 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2151
2141
|
});
|
|
2152
2142
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2153
2143
|
};
|
|
2154
|
-
const
|
|
2144
|
+
const se_ApiGatewayProxyInput = (input, context) => {
|
|
2155
2145
|
return {
|
|
2156
2146
|
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
2157
2147
|
...(input.StageName != null && { StageName: input.StageName }),
|
|
2158
2148
|
};
|
|
2159
2149
|
};
|
|
2160
|
-
const
|
|
2150
|
+
const se_DefaultRouteInput = (input, context) => {
|
|
2161
2151
|
return {
|
|
2162
2152
|
...(input.ActivationState != null && { ActivationState: input.ActivationState }),
|
|
2163
2153
|
};
|
|
2164
2154
|
};
|
|
2165
|
-
const
|
|
2155
|
+
const se_HttpMethods = (input, context) => {
|
|
2166
2156
|
return input
|
|
2167
2157
|
.filter((e) => e != null)
|
|
2168
2158
|
.map((entry) => {
|
|
2169
2159
|
return entry;
|
|
2170
2160
|
});
|
|
2171
2161
|
};
|
|
2172
|
-
const
|
|
2162
|
+
const se_LambdaEndpointInput = (input, context) => {
|
|
2173
2163
|
return {
|
|
2174
2164
|
...(input.Arn != null && { Arn: input.Arn }),
|
|
2175
2165
|
};
|
|
2176
2166
|
};
|
|
2177
|
-
const
|
|
2167
|
+
const se_TagMap = (input, context) => {
|
|
2178
2168
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2179
2169
|
if (value === null) {
|
|
2180
2170
|
return acc;
|
|
@@ -2183,21 +2173,21 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2183
2173
|
return acc;
|
|
2184
2174
|
}, {});
|
|
2185
2175
|
};
|
|
2186
|
-
const
|
|
2176
|
+
const se_UriPathRouteInput = (input, context) => {
|
|
2187
2177
|
return {
|
|
2188
2178
|
...(input.ActivationState != null && { ActivationState: input.ActivationState }),
|
|
2189
2179
|
...(input.IncludeChildPaths != null && { IncludeChildPaths: input.IncludeChildPaths }),
|
|
2190
|
-
...(input.Methods != null && { Methods:
|
|
2180
|
+
...(input.Methods != null && { Methods: se_HttpMethods(input.Methods, context) }),
|
|
2191
2181
|
...(input.SourcePath != null && { SourcePath: input.SourcePath }),
|
|
2192
2182
|
};
|
|
2193
2183
|
};
|
|
2194
|
-
const
|
|
2184
|
+
const se_UrlEndpointInput = (input, context) => {
|
|
2195
2185
|
return {
|
|
2196
2186
|
...(input.HealthUrl != null && { HealthUrl: input.HealthUrl }),
|
|
2197
2187
|
...(input.Url != null && { Url: input.Url }),
|
|
2198
2188
|
};
|
|
2199
2189
|
};
|
|
2200
|
-
const
|
|
2190
|
+
const de_AdditionalDetails = (output, context) => {
|
|
2201
2191
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2202
2192
|
if (value === null) {
|
|
2203
2193
|
return acc;
|
|
@@ -2206,7 +2196,7 @@ const deserializeAws_restJson1AdditionalDetails = (output, context) => {
|
|
|
2206
2196
|
return acc;
|
|
2207
2197
|
}, {});
|
|
2208
2198
|
};
|
|
2209
|
-
const
|
|
2199
|
+
const de_ApiGatewayProxyConfig = (output, context) => {
|
|
2210
2200
|
return {
|
|
2211
2201
|
ApiGatewayId: __expectString(output.ApiGatewayId),
|
|
2212
2202
|
EndpointType: __expectString(output.EndpointType),
|
|
@@ -2217,13 +2207,13 @@ const deserializeAws_restJson1ApiGatewayProxyConfig = (output, context) => {
|
|
|
2217
2207
|
VpcLinkId: __expectString(output.VpcLinkId),
|
|
2218
2208
|
};
|
|
2219
2209
|
};
|
|
2220
|
-
const
|
|
2210
|
+
const de_ApiGatewayProxyInput = (output, context) => {
|
|
2221
2211
|
return {
|
|
2222
2212
|
EndpointType: __expectString(output.EndpointType),
|
|
2223
2213
|
StageName: __expectString(output.StageName),
|
|
2224
2214
|
};
|
|
2225
2215
|
};
|
|
2226
|
-
const
|
|
2216
|
+
const de_ApiGatewayProxySummary = (output, context) => {
|
|
2227
2217
|
return {
|
|
2228
2218
|
ApiGatewayId: __expectString(output.ApiGatewayId),
|
|
2229
2219
|
EndpointType: __expectString(output.EndpointType),
|
|
@@ -2234,22 +2224,20 @@ const deserializeAws_restJson1ApiGatewayProxySummary = (output, context) => {
|
|
|
2234
2224
|
VpcLinkId: __expectString(output.VpcLinkId),
|
|
2235
2225
|
};
|
|
2236
2226
|
};
|
|
2237
|
-
const
|
|
2227
|
+
const de_ApplicationSummaries = (output, context) => {
|
|
2238
2228
|
const retVal = (output || [])
|
|
2239
2229
|
.filter((e) => e != null)
|
|
2240
2230
|
.map((entry) => {
|
|
2241
2231
|
if (entry === null) {
|
|
2242
2232
|
return null;
|
|
2243
2233
|
}
|
|
2244
|
-
return
|
|
2234
|
+
return de_ApplicationSummary(entry, context);
|
|
2245
2235
|
});
|
|
2246
2236
|
return retVal;
|
|
2247
2237
|
};
|
|
2248
|
-
const
|
|
2238
|
+
const de_ApplicationSummary = (output, context) => {
|
|
2249
2239
|
return {
|
|
2250
|
-
ApiGatewayProxy: output.ApiGatewayProxy != null
|
|
2251
|
-
? deserializeAws_restJson1ApiGatewayProxySummary(output.ApiGatewayProxy, context)
|
|
2252
|
-
: undefined,
|
|
2240
|
+
ApiGatewayProxy: output.ApiGatewayProxy != null ? de_ApiGatewayProxySummary(output.ApiGatewayProxy, context) : undefined,
|
|
2253
2241
|
ApplicationId: __expectString(output.ApplicationId),
|
|
2254
2242
|
Arn: __expectString(output.Arn),
|
|
2255
2243
|
CreatedByAccountId: __expectString(output.CreatedByAccountId),
|
|
@@ -2257,7 +2245,7 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
2257
2245
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
|
|
2258
2246
|
: undefined,
|
|
2259
2247
|
EnvironmentId: __expectString(output.EnvironmentId),
|
|
2260
|
-
Error: output.Error != null ?
|
|
2248
|
+
Error: output.Error != null ? de_ErrorResponse(output.Error, context) : undefined,
|
|
2261
2249
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
2262
2250
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
2263
2251
|
: undefined,
|
|
@@ -2265,11 +2253,11 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
2265
2253
|
OwnerAccountId: __expectString(output.OwnerAccountId),
|
|
2266
2254
|
ProxyType: __expectString(output.ProxyType),
|
|
2267
2255
|
State: __expectString(output.State),
|
|
2268
|
-
Tags: output.Tags != null ?
|
|
2256
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2269
2257
|
VpcId: __expectString(output.VpcId),
|
|
2270
2258
|
};
|
|
2271
2259
|
};
|
|
2272
|
-
const
|
|
2260
|
+
const de_CidrBlocks = (output, context) => {
|
|
2273
2261
|
const retVal = (output || [])
|
|
2274
2262
|
.filter((e) => e != null)
|
|
2275
2263
|
.map((entry) => {
|
|
@@ -2280,18 +2268,18 @@ const deserializeAws_restJson1CidrBlocks = (output, context) => {
|
|
|
2280
2268
|
});
|
|
2281
2269
|
return retVal;
|
|
2282
2270
|
};
|
|
2283
|
-
const
|
|
2271
|
+
const de_EnvironmentSummaries = (output, context) => {
|
|
2284
2272
|
const retVal = (output || [])
|
|
2285
2273
|
.filter((e) => e != null)
|
|
2286
2274
|
.map((entry) => {
|
|
2287
2275
|
if (entry === null) {
|
|
2288
2276
|
return null;
|
|
2289
2277
|
}
|
|
2290
|
-
return
|
|
2278
|
+
return de_EnvironmentSummary(entry, context);
|
|
2291
2279
|
});
|
|
2292
2280
|
return retVal;
|
|
2293
2281
|
};
|
|
2294
|
-
const
|
|
2282
|
+
const de_EnvironmentSummary = (output, context) => {
|
|
2295
2283
|
return {
|
|
2296
2284
|
Arn: __expectString(output.Arn),
|
|
2297
2285
|
CreatedTime: output.CreatedTime != null
|
|
@@ -2299,7 +2287,7 @@ const deserializeAws_restJson1EnvironmentSummary = (output, context) => {
|
|
|
2299
2287
|
: undefined,
|
|
2300
2288
|
Description: __expectString(output.Description),
|
|
2301
2289
|
EnvironmentId: __expectString(output.EnvironmentId),
|
|
2302
|
-
Error: output.Error != null ?
|
|
2290
|
+
Error: output.Error != null ? de_ErrorResponse(output.Error, context) : undefined,
|
|
2303
2291
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
2304
2292
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
2305
2293
|
: undefined,
|
|
@@ -2307,14 +2295,14 @@ const deserializeAws_restJson1EnvironmentSummary = (output, context) => {
|
|
|
2307
2295
|
NetworkFabricType: __expectString(output.NetworkFabricType),
|
|
2308
2296
|
OwnerAccountId: __expectString(output.OwnerAccountId),
|
|
2309
2297
|
State: __expectString(output.State),
|
|
2310
|
-
Tags: output.Tags != null ?
|
|
2298
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2311
2299
|
TransitGatewayId: __expectString(output.TransitGatewayId),
|
|
2312
2300
|
};
|
|
2313
2301
|
};
|
|
2314
|
-
const
|
|
2302
|
+
const de_EnvironmentVpc = (output, context) => {
|
|
2315
2303
|
return {
|
|
2316
2304
|
AccountId: __expectString(output.AccountId),
|
|
2317
|
-
CidrBlocks: output.CidrBlocks != null ?
|
|
2305
|
+
CidrBlocks: output.CidrBlocks != null ? de_CidrBlocks(output.CidrBlocks, context) : undefined,
|
|
2318
2306
|
CreatedTime: output.CreatedTime != null
|
|
2319
2307
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
|
|
2320
2308
|
: undefined,
|
|
@@ -2326,30 +2314,28 @@ const deserializeAws_restJson1EnvironmentVpc = (output, context) => {
|
|
|
2326
2314
|
VpcName: __expectString(output.VpcName),
|
|
2327
2315
|
};
|
|
2328
2316
|
};
|
|
2329
|
-
const
|
|
2317
|
+
const de_EnvironmentVpcs = (output, context) => {
|
|
2330
2318
|
const retVal = (output || [])
|
|
2331
2319
|
.filter((e) => e != null)
|
|
2332
2320
|
.map((entry) => {
|
|
2333
2321
|
if (entry === null) {
|
|
2334
2322
|
return null;
|
|
2335
2323
|
}
|
|
2336
|
-
return
|
|
2324
|
+
return de_EnvironmentVpc(entry, context);
|
|
2337
2325
|
});
|
|
2338
2326
|
return retVal;
|
|
2339
2327
|
};
|
|
2340
|
-
const
|
|
2328
|
+
const de_ErrorResponse = (output, context) => {
|
|
2341
2329
|
return {
|
|
2342
2330
|
AccountId: __expectString(output.AccountId),
|
|
2343
|
-
AdditionalDetails: output.AdditionalDetails != null
|
|
2344
|
-
? deserializeAws_restJson1AdditionalDetails(output.AdditionalDetails, context)
|
|
2345
|
-
: undefined,
|
|
2331
|
+
AdditionalDetails: output.AdditionalDetails != null ? de_AdditionalDetails(output.AdditionalDetails, context) : undefined,
|
|
2346
2332
|
Code: __expectString(output.Code),
|
|
2347
2333
|
Message: __expectString(output.Message),
|
|
2348
2334
|
ResourceIdentifier: __expectString(output.ResourceIdentifier),
|
|
2349
2335
|
ResourceType: __expectString(output.ResourceType),
|
|
2350
2336
|
};
|
|
2351
2337
|
};
|
|
2352
|
-
const
|
|
2338
|
+
const de_HttpMethods = (output, context) => {
|
|
2353
2339
|
const retVal = (output || [])
|
|
2354
2340
|
.filter((e) => e != null)
|
|
2355
2341
|
.map((entry) => {
|
|
@@ -2360,22 +2346,22 @@ const deserializeAws_restJson1HttpMethods = (output, context) => {
|
|
|
2360
2346
|
});
|
|
2361
2347
|
return retVal;
|
|
2362
2348
|
};
|
|
2363
|
-
const
|
|
2349
|
+
const de_LambdaEndpointConfig = (output, context) => {
|
|
2364
2350
|
return {
|
|
2365
2351
|
Arn: __expectString(output.Arn),
|
|
2366
2352
|
};
|
|
2367
2353
|
};
|
|
2368
|
-
const
|
|
2354
|
+
const de_LambdaEndpointInput = (output, context) => {
|
|
2369
2355
|
return {
|
|
2370
2356
|
Arn: __expectString(output.Arn),
|
|
2371
2357
|
};
|
|
2372
2358
|
};
|
|
2373
|
-
const
|
|
2359
|
+
const de_LambdaEndpointSummary = (output, context) => {
|
|
2374
2360
|
return {
|
|
2375
2361
|
Arn: __expectString(output.Arn),
|
|
2376
2362
|
};
|
|
2377
2363
|
};
|
|
2378
|
-
const
|
|
2364
|
+
const de_PathResourceToId = (output, context) => {
|
|
2379
2365
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2380
2366
|
if (value === null) {
|
|
2381
2367
|
return acc;
|
|
@@ -2384,18 +2370,18 @@ const deserializeAws_restJson1PathResourceToId = (output, context) => {
|
|
|
2384
2370
|
return acc;
|
|
2385
2371
|
}, {});
|
|
2386
2372
|
};
|
|
2387
|
-
const
|
|
2373
|
+
const de_RouteSummaries = (output, context) => {
|
|
2388
2374
|
const retVal = (output || [])
|
|
2389
2375
|
.filter((e) => e != null)
|
|
2390
2376
|
.map((entry) => {
|
|
2391
2377
|
if (entry === null) {
|
|
2392
2378
|
return null;
|
|
2393
2379
|
}
|
|
2394
|
-
return
|
|
2380
|
+
return de_RouteSummary(entry, context);
|
|
2395
2381
|
});
|
|
2396
2382
|
return retVal;
|
|
2397
2383
|
};
|
|
2398
|
-
const
|
|
2384
|
+
const de_RouteSummary = (output, context) => {
|
|
2399
2385
|
return {
|
|
2400
2386
|
ApplicationId: __expectString(output.ApplicationId),
|
|
2401
2387
|
Arn: __expectString(output.Arn),
|
|
@@ -2404,36 +2390,34 @@ const deserializeAws_restJson1RouteSummary = (output, context) => {
|
|
|
2404
2390
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
|
|
2405
2391
|
: undefined,
|
|
2406
2392
|
EnvironmentId: __expectString(output.EnvironmentId),
|
|
2407
|
-
Error: output.Error != null ?
|
|
2393
|
+
Error: output.Error != null ? de_ErrorResponse(output.Error, context) : undefined,
|
|
2408
2394
|
IncludeChildPaths: __expectBoolean(output.IncludeChildPaths),
|
|
2409
2395
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
2410
2396
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
2411
2397
|
: undefined,
|
|
2412
|
-
Methods: output.Methods != null ?
|
|
2398
|
+
Methods: output.Methods != null ? de_HttpMethods(output.Methods, context) : undefined,
|
|
2413
2399
|
OwnerAccountId: __expectString(output.OwnerAccountId),
|
|
2414
|
-
PathResourceToId: output.PathResourceToId != null
|
|
2415
|
-
? deserializeAws_restJson1PathResourceToId(output.PathResourceToId, context)
|
|
2416
|
-
: undefined,
|
|
2400
|
+
PathResourceToId: output.PathResourceToId != null ? de_PathResourceToId(output.PathResourceToId, context) : undefined,
|
|
2417
2401
|
RouteId: __expectString(output.RouteId),
|
|
2418
2402
|
RouteType: __expectString(output.RouteType),
|
|
2419
2403
|
ServiceId: __expectString(output.ServiceId),
|
|
2420
2404
|
SourcePath: __expectString(output.SourcePath),
|
|
2421
2405
|
State: __expectString(output.State),
|
|
2422
|
-
Tags: output.Tags != null ?
|
|
2406
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2423
2407
|
};
|
|
2424
2408
|
};
|
|
2425
|
-
const
|
|
2409
|
+
const de_ServiceSummaries = (output, context) => {
|
|
2426
2410
|
const retVal = (output || [])
|
|
2427
2411
|
.filter((e) => e != null)
|
|
2428
2412
|
.map((entry) => {
|
|
2429
2413
|
if (entry === null) {
|
|
2430
2414
|
return null;
|
|
2431
2415
|
}
|
|
2432
|
-
return
|
|
2416
|
+
return de_ServiceSummary(entry, context);
|
|
2433
2417
|
});
|
|
2434
2418
|
return retVal;
|
|
2435
2419
|
};
|
|
2436
|
-
const
|
|
2420
|
+
const de_ServiceSummary = (output, context) => {
|
|
2437
2421
|
return {
|
|
2438
2422
|
ApplicationId: __expectString(output.ApplicationId),
|
|
2439
2423
|
Arn: __expectString(output.Arn),
|
|
@@ -2444,10 +2428,8 @@ const deserializeAws_restJson1ServiceSummary = (output, context) => {
|
|
|
2444
2428
|
Description: __expectString(output.Description),
|
|
2445
2429
|
EndpointType: __expectString(output.EndpointType),
|
|
2446
2430
|
EnvironmentId: __expectString(output.EnvironmentId),
|
|
2447
|
-
Error: output.Error != null ?
|
|
2448
|
-
LambdaEndpoint: output.LambdaEndpoint != null
|
|
2449
|
-
? deserializeAws_restJson1LambdaEndpointSummary(output.LambdaEndpoint, context)
|
|
2450
|
-
: undefined,
|
|
2431
|
+
Error: output.Error != null ? de_ErrorResponse(output.Error, context) : undefined,
|
|
2432
|
+
LambdaEndpoint: output.LambdaEndpoint != null ? de_LambdaEndpointSummary(output.LambdaEndpoint, context) : undefined,
|
|
2451
2433
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
2452
2434
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
2453
2435
|
: undefined,
|
|
@@ -2455,12 +2437,12 @@ const deserializeAws_restJson1ServiceSummary = (output, context) => {
|
|
|
2455
2437
|
OwnerAccountId: __expectString(output.OwnerAccountId),
|
|
2456
2438
|
ServiceId: __expectString(output.ServiceId),
|
|
2457
2439
|
State: __expectString(output.State),
|
|
2458
|
-
Tags: output.Tags != null ?
|
|
2459
|
-
UrlEndpoint: output.UrlEndpoint != null ?
|
|
2440
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2441
|
+
UrlEndpoint: output.UrlEndpoint != null ? de_UrlEndpointSummary(output.UrlEndpoint, context) : undefined,
|
|
2460
2442
|
VpcId: __expectString(output.VpcId),
|
|
2461
2443
|
};
|
|
2462
2444
|
};
|
|
2463
|
-
const
|
|
2445
|
+
const de_TagMap = (output, context) => {
|
|
2464
2446
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2465
2447
|
if (value === null) {
|
|
2466
2448
|
return acc;
|
|
@@ -2469,27 +2451,27 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2469
2451
|
return acc;
|
|
2470
2452
|
}, {});
|
|
2471
2453
|
};
|
|
2472
|
-
const
|
|
2454
|
+
const de_UriPathRouteInput = (output, context) => {
|
|
2473
2455
|
return {
|
|
2474
2456
|
ActivationState: __expectString(output.ActivationState),
|
|
2475
2457
|
IncludeChildPaths: __expectBoolean(output.IncludeChildPaths),
|
|
2476
|
-
Methods: output.Methods != null ?
|
|
2458
|
+
Methods: output.Methods != null ? de_HttpMethods(output.Methods, context) : undefined,
|
|
2477
2459
|
SourcePath: __expectString(output.SourcePath),
|
|
2478
2460
|
};
|
|
2479
2461
|
};
|
|
2480
|
-
const
|
|
2462
|
+
const de_UrlEndpointConfig = (output, context) => {
|
|
2481
2463
|
return {
|
|
2482
2464
|
HealthUrl: __expectString(output.HealthUrl),
|
|
2483
2465
|
Url: __expectString(output.Url),
|
|
2484
2466
|
};
|
|
2485
2467
|
};
|
|
2486
|
-
const
|
|
2468
|
+
const de_UrlEndpointInput = (output, context) => {
|
|
2487
2469
|
return {
|
|
2488
2470
|
HealthUrl: __expectString(output.HealthUrl),
|
|
2489
2471
|
Url: __expectString(output.Url),
|
|
2490
2472
|
};
|
|
2491
2473
|
};
|
|
2492
|
-
const
|
|
2474
|
+
const de_UrlEndpointSummary = (output, context) => {
|
|
2493
2475
|
return {
|
|
2494
2476
|
HealthUrl: __expectString(output.HealthUrl),
|
|
2495
2477
|
Url: __expectString(output.Url),
|