@aws-sdk/client-outposts 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CancelOrderCommand.js +2 -2
- package/dist-cjs/commands/CreateOrderCommand.js +2 -2
- package/dist-cjs/commands/CreateOutpostCommand.js +2 -2
- package/dist-cjs/commands/CreateSiteCommand.js +2 -2
- package/dist-cjs/commands/DeleteOutpostCommand.js +2 -2
- package/dist-cjs/commands/DeleteSiteCommand.js +2 -2
- package/dist-cjs/commands/GetCatalogItemCommand.js +2 -2
- package/dist-cjs/commands/GetConnectionCommand.js +2 -2
- package/dist-cjs/commands/GetOrderCommand.js +2 -2
- package/dist-cjs/commands/GetOutpostCommand.js +2 -2
- package/dist-cjs/commands/GetOutpostInstanceTypesCommand.js +2 -2
- package/dist-cjs/commands/GetSiteAddressCommand.js +2 -2
- package/dist-cjs/commands/GetSiteCommand.js +2 -2
- package/dist-cjs/commands/ListAssetsCommand.js +2 -2
- package/dist-cjs/commands/ListCatalogItemsCommand.js +2 -2
- package/dist-cjs/commands/ListOrdersCommand.js +2 -2
- package/dist-cjs/commands/ListOutpostsCommand.js +2 -2
- package/dist-cjs/commands/ListSitesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/StartConnectionCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateOutpostCommand.js +2 -2
- package/dist-cjs/commands/UpdateSiteAddressCommand.js +2 -2
- package/dist-cjs/commands/UpdateSiteCommand.js +2 -2
- package/dist-cjs/commands/UpdateSiteRackPhysicalPropertiesCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +360 -376
- package/dist-es/commands/CancelOrderCommand.js +3 -3
- package/dist-es/commands/CreateOrderCommand.js +3 -3
- package/dist-es/commands/CreateOutpostCommand.js +3 -3
- package/dist-es/commands/CreateSiteCommand.js +3 -3
- package/dist-es/commands/DeleteOutpostCommand.js +3 -3
- package/dist-es/commands/DeleteSiteCommand.js +3 -3
- package/dist-es/commands/GetCatalogItemCommand.js +3 -3
- package/dist-es/commands/GetConnectionCommand.js +3 -3
- package/dist-es/commands/GetOrderCommand.js +3 -3
- package/dist-es/commands/GetOutpostCommand.js +3 -3
- package/dist-es/commands/GetOutpostInstanceTypesCommand.js +3 -3
- package/dist-es/commands/GetSiteAddressCommand.js +3 -3
- package/dist-es/commands/GetSiteCommand.js +3 -3
- package/dist-es/commands/ListAssetsCommand.js +3 -3
- package/dist-es/commands/ListCatalogItemsCommand.js +3 -3
- package/dist-es/commands/ListOrdersCommand.js +3 -3
- package/dist-es/commands/ListOutpostsCommand.js +3 -3
- package/dist-es/commands/ListSitesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/StartConnectionCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateOutpostCommand.js +3 -3
- package/dist-es/commands/UpdateSiteAddressCommand.js +3 -3
- package/dist-es/commands/UpdateSiteCommand.js +3 -3
- package/dist-es/commands/UpdateSiteRackPhysicalPropertiesCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +306 -322
- package/dist-types/protocols/Aws_restJson1.d.ts +208 -52
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +52 -52
- package/package.json +29 -29
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { OutpostsServiceException as __BaseException } from "../models/OutpostsServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CancelOrderCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders/{OrderId}/cancel";
|
|
@@ -18,7 +18,7 @@ export const serializeAws_restJson1CancelOrderCommand = async (input, context) =
|
|
|
18
18
|
body,
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
21
|
+
export const se_CreateOrderCommand = async (input, context) => {
|
|
22
22
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
23
23
|
const headers = {
|
|
24
24
|
"content-type": "application/json",
|
|
@@ -26,9 +26,7 @@ export const serializeAws_restJson1CreateOrderCommand = async (input, context) =
|
|
|
26
26
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders";
|
|
27
27
|
let body;
|
|
28
28
|
body = JSON.stringify({
|
|
29
|
-
...(input.LineItems != null && {
|
|
30
|
-
LineItems: serializeAws_restJson1LineItemRequestListDefinition(input.LineItems, context),
|
|
31
|
-
}),
|
|
29
|
+
...(input.LineItems != null && { LineItems: se_LineItemRequestListDefinition(input.LineItems, context) }),
|
|
32
30
|
...(input.OutpostIdentifier != null && { OutpostIdentifier: input.OutpostIdentifier }),
|
|
33
31
|
...(input.PaymentOption != null && { PaymentOption: input.PaymentOption }),
|
|
34
32
|
...(input.PaymentTerm != null && { PaymentTerm: input.PaymentTerm }),
|
|
@@ -43,7 +41,7 @@ export const serializeAws_restJson1CreateOrderCommand = async (input, context) =
|
|
|
43
41
|
body,
|
|
44
42
|
});
|
|
45
43
|
};
|
|
46
|
-
export const
|
|
44
|
+
export const se_CreateOutpostCommand = async (input, context) => {
|
|
47
45
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
48
46
|
const headers = {
|
|
49
47
|
"content-type": "application/json",
|
|
@@ -57,7 +55,7 @@ export const serializeAws_restJson1CreateOutpostCommand = async (input, context)
|
|
|
57
55
|
...(input.Name != null && { Name: input.Name }),
|
|
58
56
|
...(input.SiteId != null && { SiteId: input.SiteId }),
|
|
59
57
|
...(input.SupportedHardwareType != null && { SupportedHardwareType: input.SupportedHardwareType }),
|
|
60
|
-
...(input.Tags != null && { Tags:
|
|
58
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
61
59
|
});
|
|
62
60
|
return new __HttpRequest({
|
|
63
61
|
protocol,
|
|
@@ -69,7 +67,7 @@ export const serializeAws_restJson1CreateOutpostCommand = async (input, context)
|
|
|
69
67
|
body,
|
|
70
68
|
});
|
|
71
69
|
};
|
|
72
|
-
export const
|
|
70
|
+
export const se_CreateSiteCommand = async (input, context) => {
|
|
73
71
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
74
72
|
const headers = {
|
|
75
73
|
"content-type": "application/json",
|
|
@@ -80,16 +78,12 @@ export const serializeAws_restJson1CreateSiteCommand = async (input, context) =>
|
|
|
80
78
|
...(input.Description != null && { Description: input.Description }),
|
|
81
79
|
...(input.Name != null && { Name: input.Name }),
|
|
82
80
|
...(input.Notes != null && { Notes: input.Notes }),
|
|
83
|
-
...(input.OperatingAddress != null && {
|
|
84
|
-
OperatingAddress: serializeAws_restJson1Address(input.OperatingAddress, context),
|
|
85
|
-
}),
|
|
81
|
+
...(input.OperatingAddress != null && { OperatingAddress: se_Address(input.OperatingAddress, context) }),
|
|
86
82
|
...(input.RackPhysicalProperties != null && {
|
|
87
|
-
RackPhysicalProperties:
|
|
83
|
+
RackPhysicalProperties: se_RackPhysicalProperties(input.RackPhysicalProperties, context),
|
|
88
84
|
}),
|
|
89
|
-
...(input.ShippingAddress != null && {
|
|
90
|
-
|
|
91
|
-
}),
|
|
92
|
-
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
85
|
+
...(input.ShippingAddress != null && { ShippingAddress: se_Address(input.ShippingAddress, context) }),
|
|
86
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
93
87
|
});
|
|
94
88
|
return new __HttpRequest({
|
|
95
89
|
protocol,
|
|
@@ -101,7 +95,7 @@ export const serializeAws_restJson1CreateSiteCommand = async (input, context) =>
|
|
|
101
95
|
body,
|
|
102
96
|
});
|
|
103
97
|
};
|
|
104
|
-
export const
|
|
98
|
+
export const se_DeleteOutpostCommand = async (input, context) => {
|
|
105
99
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
106
100
|
const headers = {};
|
|
107
101
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
|
|
@@ -117,7 +111,7 @@ export const serializeAws_restJson1DeleteOutpostCommand = async (input, context)
|
|
|
117
111
|
body,
|
|
118
112
|
});
|
|
119
113
|
};
|
|
120
|
-
export const
|
|
114
|
+
export const se_DeleteSiteCommand = async (input, context) => {
|
|
121
115
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
122
116
|
const headers = {};
|
|
123
117
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}";
|
|
@@ -133,7 +127,7 @@ export const serializeAws_restJson1DeleteSiteCommand = async (input, context) =>
|
|
|
133
127
|
body,
|
|
134
128
|
});
|
|
135
129
|
};
|
|
136
|
-
export const
|
|
130
|
+
export const se_GetCatalogItemCommand = async (input, context) => {
|
|
137
131
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
138
132
|
const headers = {};
|
|
139
133
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/catalog/item/{CatalogItemId}";
|
|
@@ -149,7 +143,7 @@ export const serializeAws_restJson1GetCatalogItemCommand = async (input, context
|
|
|
149
143
|
body,
|
|
150
144
|
});
|
|
151
145
|
};
|
|
152
|
-
export const
|
|
146
|
+
export const se_GetConnectionCommand = async (input, context) => {
|
|
153
147
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
154
148
|
const headers = {};
|
|
155
149
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connections/{ConnectionId}";
|
|
@@ -165,7 +159,7 @@ export const serializeAws_restJson1GetConnectionCommand = async (input, context)
|
|
|
165
159
|
body,
|
|
166
160
|
});
|
|
167
161
|
};
|
|
168
|
-
export const
|
|
162
|
+
export const se_GetOrderCommand = async (input, context) => {
|
|
169
163
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
170
164
|
const headers = {};
|
|
171
165
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders/{OrderId}";
|
|
@@ -181,7 +175,7 @@ export const serializeAws_restJson1GetOrderCommand = async (input, context) => {
|
|
|
181
175
|
body,
|
|
182
176
|
});
|
|
183
177
|
};
|
|
184
|
-
export const
|
|
178
|
+
export const se_GetOutpostCommand = async (input, context) => {
|
|
185
179
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
186
180
|
const headers = {};
|
|
187
181
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
|
|
@@ -197,7 +191,7 @@ export const serializeAws_restJson1GetOutpostCommand = async (input, context) =>
|
|
|
197
191
|
body,
|
|
198
192
|
});
|
|
199
193
|
};
|
|
200
|
-
export const
|
|
194
|
+
export const se_GetOutpostInstanceTypesCommand = async (input, context) => {
|
|
201
195
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
202
196
|
const headers = {};
|
|
203
197
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}/instanceTypes";
|
|
@@ -218,7 +212,7 @@ export const serializeAws_restJson1GetOutpostInstanceTypesCommand = async (input
|
|
|
218
212
|
body,
|
|
219
213
|
});
|
|
220
214
|
};
|
|
221
|
-
export const
|
|
215
|
+
export const se_GetSiteCommand = async (input, context) => {
|
|
222
216
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
223
217
|
const headers = {};
|
|
224
218
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}";
|
|
@@ -234,7 +228,7 @@ export const serializeAws_restJson1GetSiteCommand = async (input, context) => {
|
|
|
234
228
|
body,
|
|
235
229
|
});
|
|
236
230
|
};
|
|
237
|
-
export const
|
|
231
|
+
export const se_GetSiteAddressCommand = async (input, context) => {
|
|
238
232
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
239
233
|
const headers = {};
|
|
240
234
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/address";
|
|
@@ -254,7 +248,7 @@ export const serializeAws_restJson1GetSiteAddressCommand = async (input, context
|
|
|
254
248
|
body,
|
|
255
249
|
});
|
|
256
250
|
};
|
|
257
|
-
export const
|
|
251
|
+
export const se_ListAssetsCommand = async (input, context) => {
|
|
258
252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
259
253
|
const headers = {};
|
|
260
254
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostIdentifier}/assets";
|
|
@@ -283,7 +277,7 @@ export const serializeAws_restJson1ListAssetsCommand = async (input, context) =>
|
|
|
283
277
|
body,
|
|
284
278
|
});
|
|
285
279
|
};
|
|
286
|
-
export const
|
|
280
|
+
export const se_ListCatalogItemsCommand = async (input, context) => {
|
|
287
281
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
288
282
|
const headers = {};
|
|
289
283
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/catalog/items";
|
|
@@ -315,7 +309,7 @@ export const serializeAws_restJson1ListCatalogItemsCommand = async (input, conte
|
|
|
315
309
|
body,
|
|
316
310
|
});
|
|
317
311
|
};
|
|
318
|
-
export const
|
|
312
|
+
export const se_ListOrdersCommand = async (input, context) => {
|
|
319
313
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
320
314
|
const headers = {};
|
|
321
315
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-orders";
|
|
@@ -336,7 +330,7 @@ export const serializeAws_restJson1ListOrdersCommand = async (input, context) =>
|
|
|
336
330
|
body,
|
|
337
331
|
});
|
|
338
332
|
};
|
|
339
|
-
export const
|
|
333
|
+
export const se_ListOutpostsCommand = async (input, context) => {
|
|
340
334
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
335
|
const headers = {};
|
|
342
336
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts";
|
|
@@ -368,7 +362,7 @@ export const serializeAws_restJson1ListOutpostsCommand = async (input, context)
|
|
|
368
362
|
body,
|
|
369
363
|
});
|
|
370
364
|
};
|
|
371
|
-
export const
|
|
365
|
+
export const se_ListSitesCommand = async (input, context) => {
|
|
372
366
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
373
367
|
const headers = {};
|
|
374
368
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites";
|
|
@@ -400,7 +394,7 @@ export const serializeAws_restJson1ListSitesCommand = async (input, context) =>
|
|
|
400
394
|
body,
|
|
401
395
|
});
|
|
402
396
|
};
|
|
403
|
-
export const
|
|
397
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
404
398
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
405
399
|
const headers = {};
|
|
406
400
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -416,7 +410,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
416
410
|
body,
|
|
417
411
|
});
|
|
418
412
|
};
|
|
419
|
-
export const
|
|
413
|
+
export const se_StartConnectionCommand = async (input, context) => {
|
|
420
414
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
421
415
|
const headers = {
|
|
422
416
|
"content-type": "application/json",
|
|
@@ -441,7 +435,7 @@ export const serializeAws_restJson1StartConnectionCommand = async (input, contex
|
|
|
441
435
|
body,
|
|
442
436
|
});
|
|
443
437
|
};
|
|
444
|
-
export const
|
|
438
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
445
439
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
446
440
|
const headers = {
|
|
447
441
|
"content-type": "application/json",
|
|
@@ -450,7 +444,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
450
444
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
451
445
|
let body;
|
|
452
446
|
body = JSON.stringify({
|
|
453
|
-
...(input.Tags != null && { Tags:
|
|
447
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
454
448
|
});
|
|
455
449
|
return new __HttpRequest({
|
|
456
450
|
protocol,
|
|
@@ -462,7 +456,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
462
456
|
body,
|
|
463
457
|
});
|
|
464
458
|
};
|
|
465
|
-
export const
|
|
459
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
466
460
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
467
461
|
const headers = {};
|
|
468
462
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -485,7 +479,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
485
479
|
body,
|
|
486
480
|
});
|
|
487
481
|
};
|
|
488
|
-
export const
|
|
482
|
+
export const se_UpdateOutpostCommand = async (input, context) => {
|
|
489
483
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
490
484
|
const headers = {
|
|
491
485
|
"content-type": "application/json",
|
|
@@ -508,7 +502,7 @@ export const serializeAws_restJson1UpdateOutpostCommand = async (input, context)
|
|
|
508
502
|
body,
|
|
509
503
|
});
|
|
510
504
|
};
|
|
511
|
-
export const
|
|
505
|
+
export const se_UpdateSiteCommand = async (input, context) => {
|
|
512
506
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
513
507
|
const headers = {
|
|
514
508
|
"content-type": "application/json",
|
|
@@ -531,7 +525,7 @@ export const serializeAws_restJson1UpdateSiteCommand = async (input, context) =>
|
|
|
531
525
|
body,
|
|
532
526
|
});
|
|
533
527
|
};
|
|
534
|
-
export const
|
|
528
|
+
export const se_UpdateSiteAddressCommand = async (input, context) => {
|
|
535
529
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
536
530
|
const headers = {
|
|
537
531
|
"content-type": "application/json",
|
|
@@ -540,7 +534,7 @@ export const serializeAws_restJson1UpdateSiteAddressCommand = async (input, cont
|
|
|
540
534
|
resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
|
|
541
535
|
let body;
|
|
542
536
|
body = JSON.stringify({
|
|
543
|
-
...(input.Address != null && { Address:
|
|
537
|
+
...(input.Address != null && { Address: se_Address(input.Address, context) }),
|
|
544
538
|
...(input.AddressType != null && { AddressType: input.AddressType }),
|
|
545
539
|
});
|
|
546
540
|
return new __HttpRequest({
|
|
@@ -553,7 +547,7 @@ export const serializeAws_restJson1UpdateSiteAddressCommand = async (input, cont
|
|
|
553
547
|
body,
|
|
554
548
|
});
|
|
555
549
|
};
|
|
556
|
-
export const
|
|
550
|
+
export const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context) => {
|
|
557
551
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
558
552
|
const headers = {
|
|
559
553
|
"content-type": "application/json",
|
|
@@ -582,9 +576,9 @@ export const serializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = asy
|
|
|
582
576
|
body,
|
|
583
577
|
});
|
|
584
578
|
};
|
|
585
|
-
export const
|
|
579
|
+
export const de_CancelOrderCommand = async (output, context) => {
|
|
586
580
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
587
|
-
return
|
|
581
|
+
return de_CancelOrderCommandError(output, context);
|
|
588
582
|
}
|
|
589
583
|
const contents = map({
|
|
590
584
|
$metadata: deserializeMetadata(output),
|
|
@@ -592,7 +586,7 @@ export const deserializeAws_restJson1CancelOrderCommand = async (output, context
|
|
|
592
586
|
await collectBody(output.body, context);
|
|
593
587
|
return contents;
|
|
594
588
|
};
|
|
595
|
-
const
|
|
589
|
+
const de_CancelOrderCommandError = async (output, context) => {
|
|
596
590
|
const parsedOutput = {
|
|
597
591
|
...output,
|
|
598
592
|
body: await parseErrorBody(output.body, context),
|
|
@@ -601,19 +595,19 @@ const deserializeAws_restJson1CancelOrderCommandError = async (output, context)
|
|
|
601
595
|
switch (errorCode) {
|
|
602
596
|
case "AccessDeniedException":
|
|
603
597
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
604
|
-
throw await
|
|
598
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
605
599
|
case "ConflictException":
|
|
606
600
|
case "com.amazonaws.outposts#ConflictException":
|
|
607
|
-
throw await
|
|
601
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
608
602
|
case "InternalServerException":
|
|
609
603
|
case "com.amazonaws.outposts#InternalServerException":
|
|
610
|
-
throw await
|
|
604
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
611
605
|
case "NotFoundException":
|
|
612
606
|
case "com.amazonaws.outposts#NotFoundException":
|
|
613
|
-
throw await
|
|
607
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
614
608
|
case "ValidationException":
|
|
615
609
|
case "com.amazonaws.outposts#ValidationException":
|
|
616
|
-
throw await
|
|
610
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
617
611
|
default:
|
|
618
612
|
const parsedBody = parsedOutput.body;
|
|
619
613
|
throwDefaultError({
|
|
@@ -624,20 +618,20 @@ const deserializeAws_restJson1CancelOrderCommandError = async (output, context)
|
|
|
624
618
|
});
|
|
625
619
|
}
|
|
626
620
|
};
|
|
627
|
-
export const
|
|
621
|
+
export const de_CreateOrderCommand = async (output, context) => {
|
|
628
622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
-
return
|
|
623
|
+
return de_CreateOrderCommandError(output, context);
|
|
630
624
|
}
|
|
631
625
|
const contents = map({
|
|
632
626
|
$metadata: deserializeMetadata(output),
|
|
633
627
|
});
|
|
634
628
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
635
629
|
if (data.Order != null) {
|
|
636
|
-
contents.Order =
|
|
630
|
+
contents.Order = de_Order(data.Order, context);
|
|
637
631
|
}
|
|
638
632
|
return contents;
|
|
639
633
|
};
|
|
640
|
-
const
|
|
634
|
+
const de_CreateOrderCommandError = async (output, context) => {
|
|
641
635
|
const parsedOutput = {
|
|
642
636
|
...output,
|
|
643
637
|
body: await parseErrorBody(output.body, context),
|
|
@@ -646,22 +640,22 @@ const deserializeAws_restJson1CreateOrderCommandError = async (output, context)
|
|
|
646
640
|
switch (errorCode) {
|
|
647
641
|
case "AccessDeniedException":
|
|
648
642
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
649
|
-
throw await
|
|
643
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
650
644
|
case "ConflictException":
|
|
651
645
|
case "com.amazonaws.outposts#ConflictException":
|
|
652
|
-
throw await
|
|
646
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
653
647
|
case "InternalServerException":
|
|
654
648
|
case "com.amazonaws.outposts#InternalServerException":
|
|
655
|
-
throw await
|
|
649
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
656
650
|
case "NotFoundException":
|
|
657
651
|
case "com.amazonaws.outposts#NotFoundException":
|
|
658
|
-
throw await
|
|
652
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
659
653
|
case "ServiceQuotaExceededException":
|
|
660
654
|
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
661
|
-
throw await
|
|
655
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
662
656
|
case "ValidationException":
|
|
663
657
|
case "com.amazonaws.outposts#ValidationException":
|
|
664
|
-
throw await
|
|
658
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
665
659
|
default:
|
|
666
660
|
const parsedBody = parsedOutput.body;
|
|
667
661
|
throwDefaultError({
|
|
@@ -672,20 +666,20 @@ const deserializeAws_restJson1CreateOrderCommandError = async (output, context)
|
|
|
672
666
|
});
|
|
673
667
|
}
|
|
674
668
|
};
|
|
675
|
-
export const
|
|
669
|
+
export const de_CreateOutpostCommand = async (output, context) => {
|
|
676
670
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
677
|
-
return
|
|
671
|
+
return de_CreateOutpostCommandError(output, context);
|
|
678
672
|
}
|
|
679
673
|
const contents = map({
|
|
680
674
|
$metadata: deserializeMetadata(output),
|
|
681
675
|
});
|
|
682
676
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
683
677
|
if (data.Outpost != null) {
|
|
684
|
-
contents.Outpost =
|
|
678
|
+
contents.Outpost = de_Outpost(data.Outpost, context);
|
|
685
679
|
}
|
|
686
680
|
return contents;
|
|
687
681
|
};
|
|
688
|
-
const
|
|
682
|
+
const de_CreateOutpostCommandError = async (output, context) => {
|
|
689
683
|
const parsedOutput = {
|
|
690
684
|
...output,
|
|
691
685
|
body: await parseErrorBody(output.body, context),
|
|
@@ -694,22 +688,22 @@ const deserializeAws_restJson1CreateOutpostCommandError = async (output, context
|
|
|
694
688
|
switch (errorCode) {
|
|
695
689
|
case "AccessDeniedException":
|
|
696
690
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
697
|
-
throw await
|
|
691
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
698
692
|
case "ConflictException":
|
|
699
693
|
case "com.amazonaws.outposts#ConflictException":
|
|
700
|
-
throw await
|
|
694
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
701
695
|
case "InternalServerException":
|
|
702
696
|
case "com.amazonaws.outposts#InternalServerException":
|
|
703
|
-
throw await
|
|
697
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
704
698
|
case "NotFoundException":
|
|
705
699
|
case "com.amazonaws.outposts#NotFoundException":
|
|
706
|
-
throw await
|
|
700
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
707
701
|
case "ServiceQuotaExceededException":
|
|
708
702
|
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
709
|
-
throw await
|
|
703
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
710
704
|
case "ValidationException":
|
|
711
705
|
case "com.amazonaws.outposts#ValidationException":
|
|
712
|
-
throw await
|
|
706
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
713
707
|
default:
|
|
714
708
|
const parsedBody = parsedOutput.body;
|
|
715
709
|
throwDefaultError({
|
|
@@ -720,20 +714,20 @@ const deserializeAws_restJson1CreateOutpostCommandError = async (output, context
|
|
|
720
714
|
});
|
|
721
715
|
}
|
|
722
716
|
};
|
|
723
|
-
export const
|
|
717
|
+
export const de_CreateSiteCommand = async (output, context) => {
|
|
724
718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
725
|
-
return
|
|
719
|
+
return de_CreateSiteCommandError(output, context);
|
|
726
720
|
}
|
|
727
721
|
const contents = map({
|
|
728
722
|
$metadata: deserializeMetadata(output),
|
|
729
723
|
});
|
|
730
724
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
731
725
|
if (data.Site != null) {
|
|
732
|
-
contents.Site =
|
|
726
|
+
contents.Site = de_Site(data.Site, context);
|
|
733
727
|
}
|
|
734
728
|
return contents;
|
|
735
729
|
};
|
|
736
|
-
const
|
|
730
|
+
const de_CreateSiteCommandError = async (output, context) => {
|
|
737
731
|
const parsedOutput = {
|
|
738
732
|
...output,
|
|
739
733
|
body: await parseErrorBody(output.body, context),
|
|
@@ -742,19 +736,19 @@ const deserializeAws_restJson1CreateSiteCommandError = async (output, context) =
|
|
|
742
736
|
switch (errorCode) {
|
|
743
737
|
case "AccessDeniedException":
|
|
744
738
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
745
|
-
throw await
|
|
739
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
746
740
|
case "ConflictException":
|
|
747
741
|
case "com.amazonaws.outposts#ConflictException":
|
|
748
|
-
throw await
|
|
742
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
749
743
|
case "InternalServerException":
|
|
750
744
|
case "com.amazonaws.outposts#InternalServerException":
|
|
751
|
-
throw await
|
|
745
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
752
746
|
case "ServiceQuotaExceededException":
|
|
753
747
|
case "com.amazonaws.outposts#ServiceQuotaExceededException":
|
|
754
|
-
throw await
|
|
748
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
755
749
|
case "ValidationException":
|
|
756
750
|
case "com.amazonaws.outposts#ValidationException":
|
|
757
|
-
throw await
|
|
751
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
758
752
|
default:
|
|
759
753
|
const parsedBody = parsedOutput.body;
|
|
760
754
|
throwDefaultError({
|
|
@@ -765,9 +759,9 @@ const deserializeAws_restJson1CreateSiteCommandError = async (output, context) =
|
|
|
765
759
|
});
|
|
766
760
|
}
|
|
767
761
|
};
|
|
768
|
-
export const
|
|
762
|
+
export const de_DeleteOutpostCommand = async (output, context) => {
|
|
769
763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
770
|
-
return
|
|
764
|
+
return de_DeleteOutpostCommandError(output, context);
|
|
771
765
|
}
|
|
772
766
|
const contents = map({
|
|
773
767
|
$metadata: deserializeMetadata(output),
|
|
@@ -775,7 +769,7 @@ export const deserializeAws_restJson1DeleteOutpostCommand = async (output, conte
|
|
|
775
769
|
await collectBody(output.body, context);
|
|
776
770
|
return contents;
|
|
777
771
|
};
|
|
778
|
-
const
|
|
772
|
+
const de_DeleteOutpostCommandError = async (output, context) => {
|
|
779
773
|
const parsedOutput = {
|
|
780
774
|
...output,
|
|
781
775
|
body: await parseErrorBody(output.body, context),
|
|
@@ -784,19 +778,19 @@ const deserializeAws_restJson1DeleteOutpostCommandError = async (output, context
|
|
|
784
778
|
switch (errorCode) {
|
|
785
779
|
case "AccessDeniedException":
|
|
786
780
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
787
|
-
throw await
|
|
781
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
788
782
|
case "ConflictException":
|
|
789
783
|
case "com.amazonaws.outposts#ConflictException":
|
|
790
|
-
throw await
|
|
784
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
791
785
|
case "InternalServerException":
|
|
792
786
|
case "com.amazonaws.outposts#InternalServerException":
|
|
793
|
-
throw await
|
|
787
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
794
788
|
case "NotFoundException":
|
|
795
789
|
case "com.amazonaws.outposts#NotFoundException":
|
|
796
|
-
throw await
|
|
790
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
797
791
|
case "ValidationException":
|
|
798
792
|
case "com.amazonaws.outposts#ValidationException":
|
|
799
|
-
throw await
|
|
793
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
800
794
|
default:
|
|
801
795
|
const parsedBody = parsedOutput.body;
|
|
802
796
|
throwDefaultError({
|
|
@@ -807,9 +801,9 @@ const deserializeAws_restJson1DeleteOutpostCommandError = async (output, context
|
|
|
807
801
|
});
|
|
808
802
|
}
|
|
809
803
|
};
|
|
810
|
-
export const
|
|
804
|
+
export const de_DeleteSiteCommand = async (output, context) => {
|
|
811
805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
812
|
-
return
|
|
806
|
+
return de_DeleteSiteCommandError(output, context);
|
|
813
807
|
}
|
|
814
808
|
const contents = map({
|
|
815
809
|
$metadata: deserializeMetadata(output),
|
|
@@ -817,7 +811,7 @@ export const deserializeAws_restJson1DeleteSiteCommand = async (output, context)
|
|
|
817
811
|
await collectBody(output.body, context);
|
|
818
812
|
return contents;
|
|
819
813
|
};
|
|
820
|
-
const
|
|
814
|
+
const de_DeleteSiteCommandError = async (output, context) => {
|
|
821
815
|
const parsedOutput = {
|
|
822
816
|
...output,
|
|
823
817
|
body: await parseErrorBody(output.body, context),
|
|
@@ -826,19 +820,19 @@ const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) =
|
|
|
826
820
|
switch (errorCode) {
|
|
827
821
|
case "AccessDeniedException":
|
|
828
822
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
829
|
-
throw await
|
|
823
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
830
824
|
case "ConflictException":
|
|
831
825
|
case "com.amazonaws.outposts#ConflictException":
|
|
832
|
-
throw await
|
|
826
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
833
827
|
case "InternalServerException":
|
|
834
828
|
case "com.amazonaws.outposts#InternalServerException":
|
|
835
|
-
throw await
|
|
829
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
836
830
|
case "NotFoundException":
|
|
837
831
|
case "com.amazonaws.outposts#NotFoundException":
|
|
838
|
-
throw await
|
|
832
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
839
833
|
case "ValidationException":
|
|
840
834
|
case "com.amazonaws.outposts#ValidationException":
|
|
841
|
-
throw await
|
|
835
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
842
836
|
default:
|
|
843
837
|
const parsedBody = parsedOutput.body;
|
|
844
838
|
throwDefaultError({
|
|
@@ -849,20 +843,20 @@ const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) =
|
|
|
849
843
|
});
|
|
850
844
|
}
|
|
851
845
|
};
|
|
852
|
-
export const
|
|
846
|
+
export const de_GetCatalogItemCommand = async (output, context) => {
|
|
853
847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
854
|
-
return
|
|
848
|
+
return de_GetCatalogItemCommandError(output, context);
|
|
855
849
|
}
|
|
856
850
|
const contents = map({
|
|
857
851
|
$metadata: deserializeMetadata(output),
|
|
858
852
|
});
|
|
859
853
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
860
854
|
if (data.CatalogItem != null) {
|
|
861
|
-
contents.CatalogItem =
|
|
855
|
+
contents.CatalogItem = de_CatalogItem(data.CatalogItem, context);
|
|
862
856
|
}
|
|
863
857
|
return contents;
|
|
864
858
|
};
|
|
865
|
-
const
|
|
859
|
+
const de_GetCatalogItemCommandError = async (output, context) => {
|
|
866
860
|
const parsedOutput = {
|
|
867
861
|
...output,
|
|
868
862
|
body: await parseErrorBody(output.body, context),
|
|
@@ -871,13 +865,13 @@ const deserializeAws_restJson1GetCatalogItemCommandError = async (output, contex
|
|
|
871
865
|
switch (errorCode) {
|
|
872
866
|
case "InternalServerException":
|
|
873
867
|
case "com.amazonaws.outposts#InternalServerException":
|
|
874
|
-
throw await
|
|
868
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
875
869
|
case "NotFoundException":
|
|
876
870
|
case "com.amazonaws.outposts#NotFoundException":
|
|
877
|
-
throw await
|
|
871
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
878
872
|
case "ValidationException":
|
|
879
873
|
case "com.amazonaws.outposts#ValidationException":
|
|
880
|
-
throw await
|
|
874
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
875
|
default:
|
|
882
876
|
const parsedBody = parsedOutput.body;
|
|
883
877
|
throwDefaultError({
|
|
@@ -888,23 +882,23 @@ const deserializeAws_restJson1GetCatalogItemCommandError = async (output, contex
|
|
|
888
882
|
});
|
|
889
883
|
}
|
|
890
884
|
};
|
|
891
|
-
export const
|
|
885
|
+
export const de_GetConnectionCommand = async (output, context) => {
|
|
892
886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
893
|
-
return
|
|
887
|
+
return de_GetConnectionCommandError(output, context);
|
|
894
888
|
}
|
|
895
889
|
const contents = map({
|
|
896
890
|
$metadata: deserializeMetadata(output),
|
|
897
891
|
});
|
|
898
892
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
899
893
|
if (data.ConnectionDetails != null) {
|
|
900
|
-
contents.ConnectionDetails =
|
|
894
|
+
contents.ConnectionDetails = de_ConnectionDetails(data.ConnectionDetails, context);
|
|
901
895
|
}
|
|
902
896
|
if (data.ConnectionId != null) {
|
|
903
897
|
contents.ConnectionId = __expectString(data.ConnectionId);
|
|
904
898
|
}
|
|
905
899
|
return contents;
|
|
906
900
|
};
|
|
907
|
-
const
|
|
901
|
+
const de_GetConnectionCommandError = async (output, context) => {
|
|
908
902
|
const parsedOutput = {
|
|
909
903
|
...output,
|
|
910
904
|
body: await parseErrorBody(output.body, context),
|
|
@@ -913,16 +907,16 @@ const deserializeAws_restJson1GetConnectionCommandError = async (output, context
|
|
|
913
907
|
switch (errorCode) {
|
|
914
908
|
case "AccessDeniedException":
|
|
915
909
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
916
|
-
throw await
|
|
910
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
917
911
|
case "InternalServerException":
|
|
918
912
|
case "com.amazonaws.outposts#InternalServerException":
|
|
919
|
-
throw await
|
|
913
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
920
914
|
case "NotFoundException":
|
|
921
915
|
case "com.amazonaws.outposts#NotFoundException":
|
|
922
|
-
throw await
|
|
916
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
923
917
|
case "ValidationException":
|
|
924
918
|
case "com.amazonaws.outposts#ValidationException":
|
|
925
|
-
throw await
|
|
919
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
926
920
|
default:
|
|
927
921
|
const parsedBody = parsedOutput.body;
|
|
928
922
|
throwDefaultError({
|
|
@@ -933,20 +927,20 @@ const deserializeAws_restJson1GetConnectionCommandError = async (output, context
|
|
|
933
927
|
});
|
|
934
928
|
}
|
|
935
929
|
};
|
|
936
|
-
export const
|
|
930
|
+
export const de_GetOrderCommand = async (output, context) => {
|
|
937
931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
938
|
-
return
|
|
932
|
+
return de_GetOrderCommandError(output, context);
|
|
939
933
|
}
|
|
940
934
|
const contents = map({
|
|
941
935
|
$metadata: deserializeMetadata(output),
|
|
942
936
|
});
|
|
943
937
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
944
938
|
if (data.Order != null) {
|
|
945
|
-
contents.Order =
|
|
939
|
+
contents.Order = de_Order(data.Order, context);
|
|
946
940
|
}
|
|
947
941
|
return contents;
|
|
948
942
|
};
|
|
949
|
-
const
|
|
943
|
+
const de_GetOrderCommandError = async (output, context) => {
|
|
950
944
|
const parsedOutput = {
|
|
951
945
|
...output,
|
|
952
946
|
body: await parseErrorBody(output.body, context),
|
|
@@ -955,13 +949,13 @@ const deserializeAws_restJson1GetOrderCommandError = async (output, context) =>
|
|
|
955
949
|
switch (errorCode) {
|
|
956
950
|
case "InternalServerException":
|
|
957
951
|
case "com.amazonaws.outposts#InternalServerException":
|
|
958
|
-
throw await
|
|
952
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
959
953
|
case "NotFoundException":
|
|
960
954
|
case "com.amazonaws.outposts#NotFoundException":
|
|
961
|
-
throw await
|
|
955
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
962
956
|
case "ValidationException":
|
|
963
957
|
case "com.amazonaws.outposts#ValidationException":
|
|
964
|
-
throw await
|
|
958
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
959
|
default:
|
|
966
960
|
const parsedBody = parsedOutput.body;
|
|
967
961
|
throwDefaultError({
|
|
@@ -972,20 +966,20 @@ const deserializeAws_restJson1GetOrderCommandError = async (output, context) =>
|
|
|
972
966
|
});
|
|
973
967
|
}
|
|
974
968
|
};
|
|
975
|
-
export const
|
|
969
|
+
export const de_GetOutpostCommand = async (output, context) => {
|
|
976
970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
977
|
-
return
|
|
971
|
+
return de_GetOutpostCommandError(output, context);
|
|
978
972
|
}
|
|
979
973
|
const contents = map({
|
|
980
974
|
$metadata: deserializeMetadata(output),
|
|
981
975
|
});
|
|
982
976
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
983
977
|
if (data.Outpost != null) {
|
|
984
|
-
contents.Outpost =
|
|
978
|
+
contents.Outpost = de_Outpost(data.Outpost, context);
|
|
985
979
|
}
|
|
986
980
|
return contents;
|
|
987
981
|
};
|
|
988
|
-
const
|
|
982
|
+
const de_GetOutpostCommandError = async (output, context) => {
|
|
989
983
|
const parsedOutput = {
|
|
990
984
|
...output,
|
|
991
985
|
body: await parseErrorBody(output.body, context),
|
|
@@ -994,16 +988,16 @@ const deserializeAws_restJson1GetOutpostCommandError = async (output, context) =
|
|
|
994
988
|
switch (errorCode) {
|
|
995
989
|
case "AccessDeniedException":
|
|
996
990
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
997
|
-
throw await
|
|
991
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
998
992
|
case "InternalServerException":
|
|
999
993
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1000
|
-
throw await
|
|
994
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1001
995
|
case "NotFoundException":
|
|
1002
996
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1003
|
-
throw await
|
|
997
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1004
998
|
case "ValidationException":
|
|
1005
999
|
case "com.amazonaws.outposts#ValidationException":
|
|
1006
|
-
throw await
|
|
1000
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1007
1001
|
default:
|
|
1008
1002
|
const parsedBody = parsedOutput.body;
|
|
1009
1003
|
throwDefaultError({
|
|
@@ -1014,16 +1008,16 @@ const deserializeAws_restJson1GetOutpostCommandError = async (output, context) =
|
|
|
1014
1008
|
});
|
|
1015
1009
|
}
|
|
1016
1010
|
};
|
|
1017
|
-
export const
|
|
1011
|
+
export const de_GetOutpostInstanceTypesCommand = async (output, context) => {
|
|
1018
1012
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
1013
|
+
return de_GetOutpostInstanceTypesCommandError(output, context);
|
|
1020
1014
|
}
|
|
1021
1015
|
const contents = map({
|
|
1022
1016
|
$metadata: deserializeMetadata(output),
|
|
1023
1017
|
});
|
|
1024
1018
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1025
1019
|
if (data.InstanceTypes != null) {
|
|
1026
|
-
contents.InstanceTypes =
|
|
1020
|
+
contents.InstanceTypes = de_InstanceTypeListDefinition(data.InstanceTypes, context);
|
|
1027
1021
|
}
|
|
1028
1022
|
if (data.NextToken != null) {
|
|
1029
1023
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -1036,7 +1030,7 @@ export const deserializeAws_restJson1GetOutpostInstanceTypesCommand = async (out
|
|
|
1036
1030
|
}
|
|
1037
1031
|
return contents;
|
|
1038
1032
|
};
|
|
1039
|
-
const
|
|
1033
|
+
const de_GetOutpostInstanceTypesCommandError = async (output, context) => {
|
|
1040
1034
|
const parsedOutput = {
|
|
1041
1035
|
...output,
|
|
1042
1036
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1045,16 +1039,16 @@ const deserializeAws_restJson1GetOutpostInstanceTypesCommandError = async (outpu
|
|
|
1045
1039
|
switch (errorCode) {
|
|
1046
1040
|
case "AccessDeniedException":
|
|
1047
1041
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1048
|
-
throw await
|
|
1042
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1049
1043
|
case "InternalServerException":
|
|
1050
1044
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1051
|
-
throw await
|
|
1045
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1052
1046
|
case "NotFoundException":
|
|
1053
1047
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1054
|
-
throw await
|
|
1048
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1055
1049
|
case "ValidationException":
|
|
1056
1050
|
case "com.amazonaws.outposts#ValidationException":
|
|
1057
|
-
throw await
|
|
1051
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1058
1052
|
default:
|
|
1059
1053
|
const parsedBody = parsedOutput.body;
|
|
1060
1054
|
throwDefaultError({
|
|
@@ -1065,20 +1059,20 @@ const deserializeAws_restJson1GetOutpostInstanceTypesCommandError = async (outpu
|
|
|
1065
1059
|
});
|
|
1066
1060
|
}
|
|
1067
1061
|
};
|
|
1068
|
-
export const
|
|
1062
|
+
export const de_GetSiteCommand = async (output, context) => {
|
|
1069
1063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1070
|
-
return
|
|
1064
|
+
return de_GetSiteCommandError(output, context);
|
|
1071
1065
|
}
|
|
1072
1066
|
const contents = map({
|
|
1073
1067
|
$metadata: deserializeMetadata(output),
|
|
1074
1068
|
});
|
|
1075
1069
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1076
1070
|
if (data.Site != null) {
|
|
1077
|
-
contents.Site =
|
|
1071
|
+
contents.Site = de_Site(data.Site, context);
|
|
1078
1072
|
}
|
|
1079
1073
|
return contents;
|
|
1080
1074
|
};
|
|
1081
|
-
const
|
|
1075
|
+
const de_GetSiteCommandError = async (output, context) => {
|
|
1082
1076
|
const parsedOutput = {
|
|
1083
1077
|
...output,
|
|
1084
1078
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1087,16 +1081,16 @@ const deserializeAws_restJson1GetSiteCommandError = async (output, context) => {
|
|
|
1087
1081
|
switch (errorCode) {
|
|
1088
1082
|
case "AccessDeniedException":
|
|
1089
1083
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1090
|
-
throw await
|
|
1084
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1091
1085
|
case "InternalServerException":
|
|
1092
1086
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1093
|
-
throw await
|
|
1087
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1094
1088
|
case "NotFoundException":
|
|
1095
1089
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1096
|
-
throw await
|
|
1090
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1097
1091
|
case "ValidationException":
|
|
1098
1092
|
case "com.amazonaws.outposts#ValidationException":
|
|
1099
|
-
throw await
|
|
1093
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1100
1094
|
default:
|
|
1101
1095
|
const parsedBody = parsedOutput.body;
|
|
1102
1096
|
throwDefaultError({
|
|
@@ -1107,16 +1101,16 @@ const deserializeAws_restJson1GetSiteCommandError = async (output, context) => {
|
|
|
1107
1101
|
});
|
|
1108
1102
|
}
|
|
1109
1103
|
};
|
|
1110
|
-
export const
|
|
1104
|
+
export const de_GetSiteAddressCommand = async (output, context) => {
|
|
1111
1105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1112
|
-
return
|
|
1106
|
+
return de_GetSiteAddressCommandError(output, context);
|
|
1113
1107
|
}
|
|
1114
1108
|
const contents = map({
|
|
1115
1109
|
$metadata: deserializeMetadata(output),
|
|
1116
1110
|
});
|
|
1117
1111
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1118
1112
|
if (data.Address != null) {
|
|
1119
|
-
contents.Address =
|
|
1113
|
+
contents.Address = de_Address(data.Address, context);
|
|
1120
1114
|
}
|
|
1121
1115
|
if (data.AddressType != null) {
|
|
1122
1116
|
contents.AddressType = __expectString(data.AddressType);
|
|
@@ -1126,7 +1120,7 @@ export const deserializeAws_restJson1GetSiteAddressCommand = async (output, cont
|
|
|
1126
1120
|
}
|
|
1127
1121
|
return contents;
|
|
1128
1122
|
};
|
|
1129
|
-
const
|
|
1123
|
+
const de_GetSiteAddressCommandError = async (output, context) => {
|
|
1130
1124
|
const parsedOutput = {
|
|
1131
1125
|
...output,
|
|
1132
1126
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1135,16 +1129,16 @@ const deserializeAws_restJson1GetSiteAddressCommandError = async (output, contex
|
|
|
1135
1129
|
switch (errorCode) {
|
|
1136
1130
|
case "AccessDeniedException":
|
|
1137
1131
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1138
|
-
throw await
|
|
1132
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1139
1133
|
case "InternalServerException":
|
|
1140
1134
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1141
|
-
throw await
|
|
1135
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1142
1136
|
case "NotFoundException":
|
|
1143
1137
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1144
|
-
throw await
|
|
1138
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1145
1139
|
case "ValidationException":
|
|
1146
1140
|
case "com.amazonaws.outposts#ValidationException":
|
|
1147
|
-
throw await
|
|
1141
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1148
1142
|
default:
|
|
1149
1143
|
const parsedBody = parsedOutput.body;
|
|
1150
1144
|
throwDefaultError({
|
|
@@ -1155,23 +1149,23 @@ const deserializeAws_restJson1GetSiteAddressCommandError = async (output, contex
|
|
|
1155
1149
|
});
|
|
1156
1150
|
}
|
|
1157
1151
|
};
|
|
1158
|
-
export const
|
|
1152
|
+
export const de_ListAssetsCommand = async (output, context) => {
|
|
1159
1153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1160
|
-
return
|
|
1154
|
+
return de_ListAssetsCommandError(output, context);
|
|
1161
1155
|
}
|
|
1162
1156
|
const contents = map({
|
|
1163
1157
|
$metadata: deserializeMetadata(output),
|
|
1164
1158
|
});
|
|
1165
1159
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1166
1160
|
if (data.Assets != null) {
|
|
1167
|
-
contents.Assets =
|
|
1161
|
+
contents.Assets = de_AssetListDefinition(data.Assets, context);
|
|
1168
1162
|
}
|
|
1169
1163
|
if (data.NextToken != null) {
|
|
1170
1164
|
contents.NextToken = __expectString(data.NextToken);
|
|
1171
1165
|
}
|
|
1172
1166
|
return contents;
|
|
1173
1167
|
};
|
|
1174
|
-
const
|
|
1168
|
+
const de_ListAssetsCommandError = async (output, context) => {
|
|
1175
1169
|
const parsedOutput = {
|
|
1176
1170
|
...output,
|
|
1177
1171
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1180,16 +1174,16 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
|
|
|
1180
1174
|
switch (errorCode) {
|
|
1181
1175
|
case "AccessDeniedException":
|
|
1182
1176
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1183
|
-
throw await
|
|
1177
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1184
1178
|
case "InternalServerException":
|
|
1185
1179
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1186
|
-
throw await
|
|
1180
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1187
1181
|
case "NotFoundException":
|
|
1188
1182
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1189
|
-
throw await
|
|
1183
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1190
1184
|
case "ValidationException":
|
|
1191
1185
|
case "com.amazonaws.outposts#ValidationException":
|
|
1192
|
-
throw await
|
|
1186
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1193
1187
|
default:
|
|
1194
1188
|
const parsedBody = parsedOutput.body;
|
|
1195
1189
|
throwDefaultError({
|
|
@@ -1200,23 +1194,23 @@ const deserializeAws_restJson1ListAssetsCommandError = async (output, context) =
|
|
|
1200
1194
|
});
|
|
1201
1195
|
}
|
|
1202
1196
|
};
|
|
1203
|
-
export const
|
|
1197
|
+
export const de_ListCatalogItemsCommand = async (output, context) => {
|
|
1204
1198
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
|
-
return
|
|
1199
|
+
return de_ListCatalogItemsCommandError(output, context);
|
|
1206
1200
|
}
|
|
1207
1201
|
const contents = map({
|
|
1208
1202
|
$metadata: deserializeMetadata(output),
|
|
1209
1203
|
});
|
|
1210
1204
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1211
1205
|
if (data.CatalogItems != null) {
|
|
1212
|
-
contents.CatalogItems =
|
|
1206
|
+
contents.CatalogItems = de_CatalogItemListDefinition(data.CatalogItems, context);
|
|
1213
1207
|
}
|
|
1214
1208
|
if (data.NextToken != null) {
|
|
1215
1209
|
contents.NextToken = __expectString(data.NextToken);
|
|
1216
1210
|
}
|
|
1217
1211
|
return contents;
|
|
1218
1212
|
};
|
|
1219
|
-
const
|
|
1213
|
+
const de_ListCatalogItemsCommandError = async (output, context) => {
|
|
1220
1214
|
const parsedOutput = {
|
|
1221
1215
|
...output,
|
|
1222
1216
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1225,13 +1219,13 @@ const deserializeAws_restJson1ListCatalogItemsCommandError = async (output, cont
|
|
|
1225
1219
|
switch (errorCode) {
|
|
1226
1220
|
case "InternalServerException":
|
|
1227
1221
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1228
|
-
throw await
|
|
1222
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1229
1223
|
case "NotFoundException":
|
|
1230
1224
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1231
|
-
throw await
|
|
1225
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1232
1226
|
case "ValidationException":
|
|
1233
1227
|
case "com.amazonaws.outposts#ValidationException":
|
|
1234
|
-
throw await
|
|
1228
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1235
1229
|
default:
|
|
1236
1230
|
const parsedBody = parsedOutput.body;
|
|
1237
1231
|
throwDefaultError({
|
|
@@ -1242,9 +1236,9 @@ const deserializeAws_restJson1ListCatalogItemsCommandError = async (output, cont
|
|
|
1242
1236
|
});
|
|
1243
1237
|
}
|
|
1244
1238
|
};
|
|
1245
|
-
export const
|
|
1239
|
+
export const de_ListOrdersCommand = async (output, context) => {
|
|
1246
1240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1247
|
-
return
|
|
1241
|
+
return de_ListOrdersCommandError(output, context);
|
|
1248
1242
|
}
|
|
1249
1243
|
const contents = map({
|
|
1250
1244
|
$metadata: deserializeMetadata(output),
|
|
@@ -1254,11 +1248,11 @@ export const deserializeAws_restJson1ListOrdersCommand = async (output, context)
|
|
|
1254
1248
|
contents.NextToken = __expectString(data.NextToken);
|
|
1255
1249
|
}
|
|
1256
1250
|
if (data.Orders != null) {
|
|
1257
|
-
contents.Orders =
|
|
1251
|
+
contents.Orders = de_OrderSummaryListDefinition(data.Orders, context);
|
|
1258
1252
|
}
|
|
1259
1253
|
return contents;
|
|
1260
1254
|
};
|
|
1261
|
-
const
|
|
1255
|
+
const de_ListOrdersCommandError = async (output, context) => {
|
|
1262
1256
|
const parsedOutput = {
|
|
1263
1257
|
...output,
|
|
1264
1258
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1267,16 +1261,16 @@ const deserializeAws_restJson1ListOrdersCommandError = async (output, context) =
|
|
|
1267
1261
|
switch (errorCode) {
|
|
1268
1262
|
case "AccessDeniedException":
|
|
1269
1263
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1270
|
-
throw await
|
|
1264
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1271
1265
|
case "InternalServerException":
|
|
1272
1266
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1273
|
-
throw await
|
|
1267
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1274
1268
|
case "NotFoundException":
|
|
1275
1269
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1276
|
-
throw await
|
|
1270
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1277
1271
|
case "ValidationException":
|
|
1278
1272
|
case "com.amazonaws.outposts#ValidationException":
|
|
1279
|
-
throw await
|
|
1273
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1280
1274
|
default:
|
|
1281
1275
|
const parsedBody = parsedOutput.body;
|
|
1282
1276
|
throwDefaultError({
|
|
@@ -1287,9 +1281,9 @@ const deserializeAws_restJson1ListOrdersCommandError = async (output, context) =
|
|
|
1287
1281
|
});
|
|
1288
1282
|
}
|
|
1289
1283
|
};
|
|
1290
|
-
export const
|
|
1284
|
+
export const de_ListOutpostsCommand = async (output, context) => {
|
|
1291
1285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1292
|
-
return
|
|
1286
|
+
return de_ListOutpostsCommandError(output, context);
|
|
1293
1287
|
}
|
|
1294
1288
|
const contents = map({
|
|
1295
1289
|
$metadata: deserializeMetadata(output),
|
|
@@ -1299,11 +1293,11 @@ export const deserializeAws_restJson1ListOutpostsCommand = async (output, contex
|
|
|
1299
1293
|
contents.NextToken = __expectString(data.NextToken);
|
|
1300
1294
|
}
|
|
1301
1295
|
if (data.Outposts != null) {
|
|
1302
|
-
contents.Outposts =
|
|
1296
|
+
contents.Outposts = de_outpostListDefinition(data.Outposts, context);
|
|
1303
1297
|
}
|
|
1304
1298
|
return contents;
|
|
1305
1299
|
};
|
|
1306
|
-
const
|
|
1300
|
+
const de_ListOutpostsCommandError = async (output, context) => {
|
|
1307
1301
|
const parsedOutput = {
|
|
1308
1302
|
...output,
|
|
1309
1303
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1312,13 +1306,13 @@ const deserializeAws_restJson1ListOutpostsCommandError = async (output, context)
|
|
|
1312
1306
|
switch (errorCode) {
|
|
1313
1307
|
case "AccessDeniedException":
|
|
1314
1308
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1315
|
-
throw await
|
|
1309
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1316
1310
|
case "InternalServerException":
|
|
1317
1311
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1318
|
-
throw await
|
|
1312
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1319
1313
|
case "ValidationException":
|
|
1320
1314
|
case "com.amazonaws.outposts#ValidationException":
|
|
1321
|
-
throw await
|
|
1315
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1322
1316
|
default:
|
|
1323
1317
|
const parsedBody = parsedOutput.body;
|
|
1324
1318
|
throwDefaultError({
|
|
@@ -1329,9 +1323,9 @@ const deserializeAws_restJson1ListOutpostsCommandError = async (output, context)
|
|
|
1329
1323
|
});
|
|
1330
1324
|
}
|
|
1331
1325
|
};
|
|
1332
|
-
export const
|
|
1326
|
+
export const de_ListSitesCommand = async (output, context) => {
|
|
1333
1327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
|
-
return
|
|
1328
|
+
return de_ListSitesCommandError(output, context);
|
|
1335
1329
|
}
|
|
1336
1330
|
const contents = map({
|
|
1337
1331
|
$metadata: deserializeMetadata(output),
|
|
@@ -1341,11 +1335,11 @@ export const deserializeAws_restJson1ListSitesCommand = async (output, context)
|
|
|
1341
1335
|
contents.NextToken = __expectString(data.NextToken);
|
|
1342
1336
|
}
|
|
1343
1337
|
if (data.Sites != null) {
|
|
1344
|
-
contents.Sites =
|
|
1338
|
+
contents.Sites = de_siteListDefinition(data.Sites, context);
|
|
1345
1339
|
}
|
|
1346
1340
|
return contents;
|
|
1347
1341
|
};
|
|
1348
|
-
const
|
|
1342
|
+
const de_ListSitesCommandError = async (output, context) => {
|
|
1349
1343
|
const parsedOutput = {
|
|
1350
1344
|
...output,
|
|
1351
1345
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1354,13 +1348,13 @@ const deserializeAws_restJson1ListSitesCommandError = async (output, context) =>
|
|
|
1354
1348
|
switch (errorCode) {
|
|
1355
1349
|
case "AccessDeniedException":
|
|
1356
1350
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1357
|
-
throw await
|
|
1351
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1358
1352
|
case "InternalServerException":
|
|
1359
1353
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1360
|
-
throw await
|
|
1354
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1361
1355
|
case "ValidationException":
|
|
1362
1356
|
case "com.amazonaws.outposts#ValidationException":
|
|
1363
|
-
throw await
|
|
1357
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1364
1358
|
default:
|
|
1365
1359
|
const parsedBody = parsedOutput.body;
|
|
1366
1360
|
throwDefaultError({
|
|
@@ -1371,20 +1365,20 @@ const deserializeAws_restJson1ListSitesCommandError = async (output, context) =>
|
|
|
1371
1365
|
});
|
|
1372
1366
|
}
|
|
1373
1367
|
};
|
|
1374
|
-
export const
|
|
1368
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1375
1369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1376
|
-
return
|
|
1370
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1377
1371
|
}
|
|
1378
1372
|
const contents = map({
|
|
1379
1373
|
$metadata: deserializeMetadata(output),
|
|
1380
1374
|
});
|
|
1381
1375
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1382
1376
|
if (data.Tags != null) {
|
|
1383
|
-
contents.Tags =
|
|
1377
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1384
1378
|
}
|
|
1385
1379
|
return contents;
|
|
1386
1380
|
};
|
|
1387
|
-
const
|
|
1381
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1388
1382
|
const parsedOutput = {
|
|
1389
1383
|
...output,
|
|
1390
1384
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1393,13 +1387,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1393
1387
|
switch (errorCode) {
|
|
1394
1388
|
case "InternalServerException":
|
|
1395
1389
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1396
|
-
throw await
|
|
1390
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1397
1391
|
case "NotFoundException":
|
|
1398
1392
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1399
|
-
throw await
|
|
1393
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1400
1394
|
case "ValidationException":
|
|
1401
1395
|
case "com.amazonaws.outposts#ValidationException":
|
|
1402
|
-
throw await
|
|
1396
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1403
1397
|
default:
|
|
1404
1398
|
const parsedBody = parsedOutput.body;
|
|
1405
1399
|
throwDefaultError({
|
|
@@ -1410,9 +1404,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1410
1404
|
});
|
|
1411
1405
|
}
|
|
1412
1406
|
};
|
|
1413
|
-
export const
|
|
1407
|
+
export const de_StartConnectionCommand = async (output, context) => {
|
|
1414
1408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1415
|
-
return
|
|
1409
|
+
return de_StartConnectionCommandError(output, context);
|
|
1416
1410
|
}
|
|
1417
1411
|
const contents = map({
|
|
1418
1412
|
$metadata: deserializeMetadata(output),
|
|
@@ -1426,7 +1420,7 @@ export const deserializeAws_restJson1StartConnectionCommand = async (output, con
|
|
|
1426
1420
|
}
|
|
1427
1421
|
return contents;
|
|
1428
1422
|
};
|
|
1429
|
-
const
|
|
1423
|
+
const de_StartConnectionCommandError = async (output, context) => {
|
|
1430
1424
|
const parsedOutput = {
|
|
1431
1425
|
...output,
|
|
1432
1426
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1435,16 +1429,16 @@ const deserializeAws_restJson1StartConnectionCommandError = async (output, conte
|
|
|
1435
1429
|
switch (errorCode) {
|
|
1436
1430
|
case "AccessDeniedException":
|
|
1437
1431
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1438
|
-
throw await
|
|
1432
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1439
1433
|
case "InternalServerException":
|
|
1440
1434
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1441
|
-
throw await
|
|
1435
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1442
1436
|
case "NotFoundException":
|
|
1443
1437
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1444
|
-
throw await
|
|
1438
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1445
1439
|
case "ValidationException":
|
|
1446
1440
|
case "com.amazonaws.outposts#ValidationException":
|
|
1447
|
-
throw await
|
|
1441
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1448
1442
|
default:
|
|
1449
1443
|
const parsedBody = parsedOutput.body;
|
|
1450
1444
|
throwDefaultError({
|
|
@@ -1455,9 +1449,9 @@ const deserializeAws_restJson1StartConnectionCommandError = async (output, conte
|
|
|
1455
1449
|
});
|
|
1456
1450
|
}
|
|
1457
1451
|
};
|
|
1458
|
-
export const
|
|
1452
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1459
1453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1460
|
-
return
|
|
1454
|
+
return de_TagResourceCommandError(output, context);
|
|
1461
1455
|
}
|
|
1462
1456
|
const contents = map({
|
|
1463
1457
|
$metadata: deserializeMetadata(output),
|
|
@@ -1465,7 +1459,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1465
1459
|
await collectBody(output.body, context);
|
|
1466
1460
|
return contents;
|
|
1467
1461
|
};
|
|
1468
|
-
const
|
|
1462
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1469
1463
|
const parsedOutput = {
|
|
1470
1464
|
...output,
|
|
1471
1465
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1474,13 +1468,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1474
1468
|
switch (errorCode) {
|
|
1475
1469
|
case "InternalServerException":
|
|
1476
1470
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1477
|
-
throw await
|
|
1471
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1478
1472
|
case "NotFoundException":
|
|
1479
1473
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1480
|
-
throw await
|
|
1474
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1481
1475
|
case "ValidationException":
|
|
1482
1476
|
case "com.amazonaws.outposts#ValidationException":
|
|
1483
|
-
throw await
|
|
1477
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1484
1478
|
default:
|
|
1485
1479
|
const parsedBody = parsedOutput.body;
|
|
1486
1480
|
throwDefaultError({
|
|
@@ -1491,9 +1485,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1491
1485
|
});
|
|
1492
1486
|
}
|
|
1493
1487
|
};
|
|
1494
|
-
export const
|
|
1488
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1495
1489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
|
-
return
|
|
1490
|
+
return de_UntagResourceCommandError(output, context);
|
|
1497
1491
|
}
|
|
1498
1492
|
const contents = map({
|
|
1499
1493
|
$metadata: deserializeMetadata(output),
|
|
@@ -1501,7 +1495,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1501
1495
|
await collectBody(output.body, context);
|
|
1502
1496
|
return contents;
|
|
1503
1497
|
};
|
|
1504
|
-
const
|
|
1498
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1505
1499
|
const parsedOutput = {
|
|
1506
1500
|
...output,
|
|
1507
1501
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1510,13 +1504,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1510
1504
|
switch (errorCode) {
|
|
1511
1505
|
case "InternalServerException":
|
|
1512
1506
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1513
|
-
throw await
|
|
1507
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1514
1508
|
case "NotFoundException":
|
|
1515
1509
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1516
|
-
throw await
|
|
1510
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1517
1511
|
case "ValidationException":
|
|
1518
1512
|
case "com.amazonaws.outposts#ValidationException":
|
|
1519
|
-
throw await
|
|
1513
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1520
1514
|
default:
|
|
1521
1515
|
const parsedBody = parsedOutput.body;
|
|
1522
1516
|
throwDefaultError({
|
|
@@ -1527,20 +1521,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1527
1521
|
});
|
|
1528
1522
|
}
|
|
1529
1523
|
};
|
|
1530
|
-
export const
|
|
1524
|
+
export const de_UpdateOutpostCommand = async (output, context) => {
|
|
1531
1525
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1532
|
-
return
|
|
1526
|
+
return de_UpdateOutpostCommandError(output, context);
|
|
1533
1527
|
}
|
|
1534
1528
|
const contents = map({
|
|
1535
1529
|
$metadata: deserializeMetadata(output),
|
|
1536
1530
|
});
|
|
1537
1531
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1538
1532
|
if (data.Outpost != null) {
|
|
1539
|
-
contents.Outpost =
|
|
1533
|
+
contents.Outpost = de_Outpost(data.Outpost, context);
|
|
1540
1534
|
}
|
|
1541
1535
|
return contents;
|
|
1542
1536
|
};
|
|
1543
|
-
const
|
|
1537
|
+
const de_UpdateOutpostCommandError = async (output, context) => {
|
|
1544
1538
|
const parsedOutput = {
|
|
1545
1539
|
...output,
|
|
1546
1540
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1549,19 +1543,19 @@ const deserializeAws_restJson1UpdateOutpostCommandError = async (output, context
|
|
|
1549
1543
|
switch (errorCode) {
|
|
1550
1544
|
case "AccessDeniedException":
|
|
1551
1545
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1552
|
-
throw await
|
|
1546
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1553
1547
|
case "ConflictException":
|
|
1554
1548
|
case "com.amazonaws.outposts#ConflictException":
|
|
1555
|
-
throw await
|
|
1549
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1556
1550
|
case "InternalServerException":
|
|
1557
1551
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1558
|
-
throw await
|
|
1552
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1559
1553
|
case "NotFoundException":
|
|
1560
1554
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1561
|
-
throw await
|
|
1555
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1562
1556
|
case "ValidationException":
|
|
1563
1557
|
case "com.amazonaws.outposts#ValidationException":
|
|
1564
|
-
throw await
|
|
1558
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1565
1559
|
default:
|
|
1566
1560
|
const parsedBody = parsedOutput.body;
|
|
1567
1561
|
throwDefaultError({
|
|
@@ -1572,20 +1566,20 @@ const deserializeAws_restJson1UpdateOutpostCommandError = async (output, context
|
|
|
1572
1566
|
});
|
|
1573
1567
|
}
|
|
1574
1568
|
};
|
|
1575
|
-
export const
|
|
1569
|
+
export const de_UpdateSiteCommand = async (output, context) => {
|
|
1576
1570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1577
|
-
return
|
|
1571
|
+
return de_UpdateSiteCommandError(output, context);
|
|
1578
1572
|
}
|
|
1579
1573
|
const contents = map({
|
|
1580
1574
|
$metadata: deserializeMetadata(output),
|
|
1581
1575
|
});
|
|
1582
1576
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1583
1577
|
if (data.Site != null) {
|
|
1584
|
-
contents.Site =
|
|
1578
|
+
contents.Site = de_Site(data.Site, context);
|
|
1585
1579
|
}
|
|
1586
1580
|
return contents;
|
|
1587
1581
|
};
|
|
1588
|
-
const
|
|
1582
|
+
const de_UpdateSiteCommandError = async (output, context) => {
|
|
1589
1583
|
const parsedOutput = {
|
|
1590
1584
|
...output,
|
|
1591
1585
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1594,19 +1588,19 @@ const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) =
|
|
|
1594
1588
|
switch (errorCode) {
|
|
1595
1589
|
case "AccessDeniedException":
|
|
1596
1590
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1597
|
-
throw await
|
|
1591
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1598
1592
|
case "ConflictException":
|
|
1599
1593
|
case "com.amazonaws.outposts#ConflictException":
|
|
1600
|
-
throw await
|
|
1594
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1601
1595
|
case "InternalServerException":
|
|
1602
1596
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1603
|
-
throw await
|
|
1597
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1604
1598
|
case "NotFoundException":
|
|
1605
1599
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1606
|
-
throw await
|
|
1600
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1607
1601
|
case "ValidationException":
|
|
1608
1602
|
case "com.amazonaws.outposts#ValidationException":
|
|
1609
|
-
throw await
|
|
1603
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1610
1604
|
default:
|
|
1611
1605
|
const parsedBody = parsedOutput.body;
|
|
1612
1606
|
throwDefaultError({
|
|
@@ -1617,23 +1611,23 @@ const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) =
|
|
|
1617
1611
|
});
|
|
1618
1612
|
}
|
|
1619
1613
|
};
|
|
1620
|
-
export const
|
|
1614
|
+
export const de_UpdateSiteAddressCommand = async (output, context) => {
|
|
1621
1615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1622
|
-
return
|
|
1616
|
+
return de_UpdateSiteAddressCommandError(output, context);
|
|
1623
1617
|
}
|
|
1624
1618
|
const contents = map({
|
|
1625
1619
|
$metadata: deserializeMetadata(output),
|
|
1626
1620
|
});
|
|
1627
1621
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1628
1622
|
if (data.Address != null) {
|
|
1629
|
-
contents.Address =
|
|
1623
|
+
contents.Address = de_Address(data.Address, context);
|
|
1630
1624
|
}
|
|
1631
1625
|
if (data.AddressType != null) {
|
|
1632
1626
|
contents.AddressType = __expectString(data.AddressType);
|
|
1633
1627
|
}
|
|
1634
1628
|
return contents;
|
|
1635
1629
|
};
|
|
1636
|
-
const
|
|
1630
|
+
const de_UpdateSiteAddressCommandError = async (output, context) => {
|
|
1637
1631
|
const parsedOutput = {
|
|
1638
1632
|
...output,
|
|
1639
1633
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1642,19 +1636,19 @@ const deserializeAws_restJson1UpdateSiteAddressCommandError = async (output, con
|
|
|
1642
1636
|
switch (errorCode) {
|
|
1643
1637
|
case "AccessDeniedException":
|
|
1644
1638
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1645
|
-
throw await
|
|
1639
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1646
1640
|
case "ConflictException":
|
|
1647
1641
|
case "com.amazonaws.outposts#ConflictException":
|
|
1648
|
-
throw await
|
|
1642
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1649
1643
|
case "InternalServerException":
|
|
1650
1644
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1651
|
-
throw await
|
|
1645
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1652
1646
|
case "NotFoundException":
|
|
1653
1647
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1654
|
-
throw await
|
|
1648
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1655
1649
|
case "ValidationException":
|
|
1656
1650
|
case "com.amazonaws.outposts#ValidationException":
|
|
1657
|
-
throw await
|
|
1651
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1658
1652
|
default:
|
|
1659
1653
|
const parsedBody = parsedOutput.body;
|
|
1660
1654
|
throwDefaultError({
|
|
@@ -1665,20 +1659,20 @@ const deserializeAws_restJson1UpdateSiteAddressCommandError = async (output, con
|
|
|
1665
1659
|
});
|
|
1666
1660
|
}
|
|
1667
1661
|
};
|
|
1668
|
-
export const
|
|
1662
|
+
export const de_UpdateSiteRackPhysicalPropertiesCommand = async (output, context) => {
|
|
1669
1663
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1670
|
-
return
|
|
1664
|
+
return de_UpdateSiteRackPhysicalPropertiesCommandError(output, context);
|
|
1671
1665
|
}
|
|
1672
1666
|
const contents = map({
|
|
1673
1667
|
$metadata: deserializeMetadata(output),
|
|
1674
1668
|
});
|
|
1675
1669
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1676
1670
|
if (data.Site != null) {
|
|
1677
|
-
contents.Site =
|
|
1671
|
+
contents.Site = de_Site(data.Site, context);
|
|
1678
1672
|
}
|
|
1679
1673
|
return contents;
|
|
1680
1674
|
};
|
|
1681
|
-
const
|
|
1675
|
+
const de_UpdateSiteRackPhysicalPropertiesCommandError = async (output, context) => {
|
|
1682
1676
|
const parsedOutput = {
|
|
1683
1677
|
...output,
|
|
1684
1678
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1687,19 +1681,19 @@ const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = asy
|
|
|
1687
1681
|
switch (errorCode) {
|
|
1688
1682
|
case "AccessDeniedException":
|
|
1689
1683
|
case "com.amazonaws.outposts#AccessDeniedException":
|
|
1690
|
-
throw await
|
|
1684
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1691
1685
|
case "ConflictException":
|
|
1692
1686
|
case "com.amazonaws.outposts#ConflictException":
|
|
1693
|
-
throw await
|
|
1687
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1694
1688
|
case "InternalServerException":
|
|
1695
1689
|
case "com.amazonaws.outposts#InternalServerException":
|
|
1696
|
-
throw await
|
|
1690
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1697
1691
|
case "NotFoundException":
|
|
1698
1692
|
case "com.amazonaws.outposts#NotFoundException":
|
|
1699
|
-
throw await
|
|
1693
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1700
1694
|
case "ValidationException":
|
|
1701
1695
|
case "com.amazonaws.outposts#ValidationException":
|
|
1702
|
-
throw await
|
|
1696
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1703
1697
|
default:
|
|
1704
1698
|
const parsedBody = parsedOutput.body;
|
|
1705
1699
|
throwDefaultError({
|
|
@@ -1711,7 +1705,7 @@ const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = asy
|
|
|
1711
1705
|
}
|
|
1712
1706
|
};
|
|
1713
1707
|
const map = __map;
|
|
1714
|
-
const
|
|
1708
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1715
1709
|
const contents = map({});
|
|
1716
1710
|
const data = parsedOutput.body;
|
|
1717
1711
|
if (data.Message != null) {
|
|
@@ -1723,7 +1717,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1723
1717
|
});
|
|
1724
1718
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1725
1719
|
};
|
|
1726
|
-
const
|
|
1720
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1727
1721
|
const contents = map({});
|
|
1728
1722
|
const data = parsedOutput.body;
|
|
1729
1723
|
if (data.Message != null) {
|
|
@@ -1741,7 +1735,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1741
1735
|
});
|
|
1742
1736
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1743
1737
|
};
|
|
1744
|
-
const
|
|
1738
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1745
1739
|
const contents = map({});
|
|
1746
1740
|
const data = parsedOutput.body;
|
|
1747
1741
|
if (data.Message != null) {
|
|
@@ -1753,7 +1747,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1753
1747
|
});
|
|
1754
1748
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1755
1749
|
};
|
|
1756
|
-
const
|
|
1750
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1757
1751
|
const contents = map({});
|
|
1758
1752
|
const data = parsedOutput.body;
|
|
1759
1753
|
if (data.Message != null) {
|
|
@@ -1765,7 +1759,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
1765
1759
|
});
|
|
1766
1760
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1767
1761
|
};
|
|
1768
|
-
const
|
|
1762
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1769
1763
|
const contents = map({});
|
|
1770
1764
|
const data = parsedOutput.body;
|
|
1771
1765
|
if (data.Message != null) {
|
|
@@ -1777,7 +1771,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1777
1771
|
});
|
|
1778
1772
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1779
1773
|
};
|
|
1780
|
-
const
|
|
1774
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1781
1775
|
const contents = map({});
|
|
1782
1776
|
const data = parsedOutput.body;
|
|
1783
1777
|
if (data.Message != null) {
|
|
@@ -1789,7 +1783,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1789
1783
|
});
|
|
1790
1784
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1791
1785
|
};
|
|
1792
|
-
const
|
|
1786
|
+
const se_Address = (input, context) => {
|
|
1793
1787
|
return {
|
|
1794
1788
|
...(input.AddressLine1 != null && { AddressLine1: input.AddressLine1 }),
|
|
1795
1789
|
...(input.AddressLine2 != null && { AddressLine2: input.AddressLine2 }),
|
|
@@ -1804,20 +1798,20 @@ const serializeAws_restJson1Address = (input, context) => {
|
|
|
1804
1798
|
...(input.StateOrRegion != null && { StateOrRegion: input.StateOrRegion }),
|
|
1805
1799
|
};
|
|
1806
1800
|
};
|
|
1807
|
-
const
|
|
1801
|
+
const se_LineItemRequest = (input, context) => {
|
|
1808
1802
|
return {
|
|
1809
1803
|
...(input.CatalogItemId != null && { CatalogItemId: input.CatalogItemId }),
|
|
1810
1804
|
...(input.Quantity != null && { Quantity: input.Quantity }),
|
|
1811
1805
|
};
|
|
1812
1806
|
};
|
|
1813
|
-
const
|
|
1807
|
+
const se_LineItemRequestListDefinition = (input, context) => {
|
|
1814
1808
|
return input
|
|
1815
1809
|
.filter((e) => e != null)
|
|
1816
1810
|
.map((entry) => {
|
|
1817
|
-
return
|
|
1811
|
+
return se_LineItemRequest(entry, context);
|
|
1818
1812
|
});
|
|
1819
1813
|
};
|
|
1820
|
-
const
|
|
1814
|
+
const se_RackPhysicalProperties = (input, context) => {
|
|
1821
1815
|
return {
|
|
1822
1816
|
...(input.FiberOpticCableType != null && { FiberOpticCableType: input.FiberOpticCableType }),
|
|
1823
1817
|
...(input.MaximumSupportedWeightLbs != null && { MaximumSupportedWeightLbs: input.MaximumSupportedWeightLbs }),
|
|
@@ -1830,7 +1824,7 @@ const serializeAws_restJson1RackPhysicalProperties = (input, context) => {
|
|
|
1830
1824
|
...(input.UplinkGbps != null && { UplinkGbps: input.UplinkGbps }),
|
|
1831
1825
|
};
|
|
1832
1826
|
};
|
|
1833
|
-
const
|
|
1827
|
+
const se_TagMap = (input, context) => {
|
|
1834
1828
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1835
1829
|
if (value === null) {
|
|
1836
1830
|
return acc;
|
|
@@ -1839,7 +1833,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1839
1833
|
return acc;
|
|
1840
1834
|
}, {});
|
|
1841
1835
|
};
|
|
1842
|
-
const
|
|
1836
|
+
const de_Address = (output, context) => {
|
|
1843
1837
|
return {
|
|
1844
1838
|
AddressLine1: __expectString(output.AddressLine1),
|
|
1845
1839
|
AddressLine2: __expectString(output.AddressLine2),
|
|
@@ -1854,62 +1848,56 @@ const deserializeAws_restJson1Address = (output, context) => {
|
|
|
1854
1848
|
StateOrRegion: __expectString(output.StateOrRegion),
|
|
1855
1849
|
};
|
|
1856
1850
|
};
|
|
1857
|
-
const
|
|
1851
|
+
const de_AssetInfo = (output, context) => {
|
|
1858
1852
|
return {
|
|
1859
1853
|
AssetId: __expectString(output.AssetId),
|
|
1860
|
-
AssetLocation: output.AssetLocation != null ?
|
|
1854
|
+
AssetLocation: output.AssetLocation != null ? de_AssetLocation(output.AssetLocation, context) : undefined,
|
|
1861
1855
|
AssetType: __expectString(output.AssetType),
|
|
1862
|
-
ComputeAttributes: output.ComputeAttributes != null
|
|
1863
|
-
? deserializeAws_restJson1ComputeAttributes(output.ComputeAttributes, context)
|
|
1864
|
-
: undefined,
|
|
1856
|
+
ComputeAttributes: output.ComputeAttributes != null ? de_ComputeAttributes(output.ComputeAttributes, context) : undefined,
|
|
1865
1857
|
RackId: __expectString(output.RackId),
|
|
1866
1858
|
};
|
|
1867
1859
|
};
|
|
1868
|
-
const
|
|
1860
|
+
const de_AssetListDefinition = (output, context) => {
|
|
1869
1861
|
const retVal = (output || [])
|
|
1870
1862
|
.filter((e) => e != null)
|
|
1871
1863
|
.map((entry) => {
|
|
1872
1864
|
if (entry === null) {
|
|
1873
1865
|
return null;
|
|
1874
1866
|
}
|
|
1875
|
-
return
|
|
1867
|
+
return de_AssetInfo(entry, context);
|
|
1876
1868
|
});
|
|
1877
1869
|
return retVal;
|
|
1878
1870
|
};
|
|
1879
|
-
const
|
|
1871
|
+
const de_AssetLocation = (output, context) => {
|
|
1880
1872
|
return {
|
|
1881
1873
|
RackElevation: __limitedParseFloat32(output.RackElevation),
|
|
1882
1874
|
};
|
|
1883
1875
|
};
|
|
1884
|
-
const
|
|
1876
|
+
const de_CatalogItem = (output, context) => {
|
|
1885
1877
|
return {
|
|
1886
1878
|
CatalogItemId: __expectString(output.CatalogItemId),
|
|
1887
|
-
EC2Capacities: output.EC2Capacities != null
|
|
1888
|
-
? deserializeAws_restJson1EC2CapacityListDefinition(output.EC2Capacities, context)
|
|
1889
|
-
: undefined,
|
|
1879
|
+
EC2Capacities: output.EC2Capacities != null ? de_EC2CapacityListDefinition(output.EC2Capacities, context) : undefined,
|
|
1890
1880
|
ItemStatus: __expectString(output.ItemStatus),
|
|
1891
1881
|
PowerKva: __limitedParseFloat32(output.PowerKva),
|
|
1892
|
-
SupportedStorage: output.SupportedStorage != null
|
|
1893
|
-
? deserializeAws_restJson1SupportedStorageList(output.SupportedStorage, context)
|
|
1894
|
-
: undefined,
|
|
1882
|
+
SupportedStorage: output.SupportedStorage != null ? de_SupportedStorageList(output.SupportedStorage, context) : undefined,
|
|
1895
1883
|
SupportedUplinkGbps: output.SupportedUplinkGbps != null
|
|
1896
|
-
?
|
|
1884
|
+
? de_SupportedUplinkGbpsListDefinition(output.SupportedUplinkGbps, context)
|
|
1897
1885
|
: undefined,
|
|
1898
1886
|
WeightLbs: __expectInt32(output.WeightLbs),
|
|
1899
1887
|
};
|
|
1900
1888
|
};
|
|
1901
|
-
const
|
|
1889
|
+
const de_CatalogItemListDefinition = (output, context) => {
|
|
1902
1890
|
const retVal = (output || [])
|
|
1903
1891
|
.filter((e) => e != null)
|
|
1904
1892
|
.map((entry) => {
|
|
1905
1893
|
if (entry === null) {
|
|
1906
1894
|
return null;
|
|
1907
1895
|
}
|
|
1908
|
-
return
|
|
1896
|
+
return de_CatalogItem(entry, context);
|
|
1909
1897
|
});
|
|
1910
1898
|
return retVal;
|
|
1911
1899
|
};
|
|
1912
|
-
const
|
|
1900
|
+
const de_CIDRList = (output, context) => {
|
|
1913
1901
|
const retVal = (output || [])
|
|
1914
1902
|
.filter((e) => e != null)
|
|
1915
1903
|
.map((entry) => {
|
|
@@ -1920,15 +1908,15 @@ const deserializeAws_restJson1CIDRList = (output, context) => {
|
|
|
1920
1908
|
});
|
|
1921
1909
|
return retVal;
|
|
1922
1910
|
};
|
|
1923
|
-
const
|
|
1911
|
+
const de_ComputeAttributes = (output, context) => {
|
|
1924
1912
|
return {
|
|
1925
1913
|
HostId: __expectString(output.HostId),
|
|
1926
1914
|
State: __expectString(output.State),
|
|
1927
1915
|
};
|
|
1928
1916
|
};
|
|
1929
|
-
const
|
|
1917
|
+
const de_ConnectionDetails = (output, context) => {
|
|
1930
1918
|
return {
|
|
1931
|
-
AllowedIps: output.AllowedIps != null ?
|
|
1919
|
+
AllowedIps: output.AllowedIps != null ? de_CIDRList(output.AllowedIps, context) : undefined,
|
|
1932
1920
|
ClientPublicKey: __expectString(output.ClientPublicKey),
|
|
1933
1921
|
ClientTunnelAddress: __expectString(output.ClientTunnelAddress),
|
|
1934
1922
|
ServerEndpoint: __expectString(output.ServerEndpoint),
|
|
@@ -1936,87 +1924,83 @@ const deserializeAws_restJson1ConnectionDetails = (output, context) => {
|
|
|
1936
1924
|
ServerTunnelAddress: __expectString(output.ServerTunnelAddress),
|
|
1937
1925
|
};
|
|
1938
1926
|
};
|
|
1939
|
-
const
|
|
1927
|
+
const de_EC2Capacity = (output, context) => {
|
|
1940
1928
|
return {
|
|
1941
1929
|
Family: __expectString(output.Family),
|
|
1942
1930
|
MaxSize: __expectString(output.MaxSize),
|
|
1943
1931
|
Quantity: __expectString(output.Quantity),
|
|
1944
1932
|
};
|
|
1945
1933
|
};
|
|
1946
|
-
const
|
|
1934
|
+
const de_EC2CapacityListDefinition = (output, context) => {
|
|
1947
1935
|
const retVal = (output || [])
|
|
1948
1936
|
.filter((e) => e != null)
|
|
1949
1937
|
.map((entry) => {
|
|
1950
1938
|
if (entry === null) {
|
|
1951
1939
|
return null;
|
|
1952
1940
|
}
|
|
1953
|
-
return
|
|
1941
|
+
return de_EC2Capacity(entry, context);
|
|
1954
1942
|
});
|
|
1955
1943
|
return retVal;
|
|
1956
1944
|
};
|
|
1957
|
-
const
|
|
1945
|
+
const de_InstanceTypeItem = (output, context) => {
|
|
1958
1946
|
return {
|
|
1959
1947
|
InstanceType: __expectString(output.InstanceType),
|
|
1960
1948
|
};
|
|
1961
1949
|
};
|
|
1962
|
-
const
|
|
1950
|
+
const de_InstanceTypeListDefinition = (output, context) => {
|
|
1963
1951
|
const retVal = (output || [])
|
|
1964
1952
|
.filter((e) => e != null)
|
|
1965
1953
|
.map((entry) => {
|
|
1966
1954
|
if (entry === null) {
|
|
1967
1955
|
return null;
|
|
1968
1956
|
}
|
|
1969
|
-
return
|
|
1957
|
+
return de_InstanceTypeItem(entry, context);
|
|
1970
1958
|
});
|
|
1971
1959
|
return retVal;
|
|
1972
1960
|
};
|
|
1973
|
-
const
|
|
1961
|
+
const de_LineItem = (output, context) => {
|
|
1974
1962
|
return {
|
|
1975
1963
|
AssetInformationList: output.AssetInformationList != null
|
|
1976
|
-
?
|
|
1964
|
+
? de_LineItemAssetInformationList(output.AssetInformationList, context)
|
|
1977
1965
|
: undefined,
|
|
1978
1966
|
CatalogItemId: __expectString(output.CatalogItemId),
|
|
1979
1967
|
LineItemId: __expectString(output.LineItemId),
|
|
1980
1968
|
PreviousLineItemId: __expectString(output.PreviousLineItemId),
|
|
1981
1969
|
PreviousOrderId: __expectString(output.PreviousOrderId),
|
|
1982
1970
|
Quantity: __expectInt32(output.Quantity),
|
|
1983
|
-
ShipmentInformation: output.ShipmentInformation != null
|
|
1984
|
-
? deserializeAws_restJson1ShipmentInformation(output.ShipmentInformation, context)
|
|
1985
|
-
: undefined,
|
|
1971
|
+
ShipmentInformation: output.ShipmentInformation != null ? de_ShipmentInformation(output.ShipmentInformation, context) : undefined,
|
|
1986
1972
|
Status: __expectString(output.Status),
|
|
1987
1973
|
};
|
|
1988
1974
|
};
|
|
1989
|
-
const
|
|
1975
|
+
const de_LineItemAssetInformation = (output, context) => {
|
|
1990
1976
|
return {
|
|
1991
1977
|
AssetId: __expectString(output.AssetId),
|
|
1992
|
-
MacAddressList: output.MacAddressList != null
|
|
1993
|
-
? deserializeAws_restJson1MacAddressList(output.MacAddressList, context)
|
|
1994
|
-
: undefined,
|
|
1978
|
+
MacAddressList: output.MacAddressList != null ? de_MacAddressList(output.MacAddressList, context) : undefined,
|
|
1995
1979
|
};
|
|
1996
1980
|
};
|
|
1997
|
-
const
|
|
1981
|
+
const de_LineItemAssetInformationList = (output, context) => {
|
|
1998
1982
|
const retVal = (output || [])
|
|
1999
1983
|
.filter((e) => e != null)
|
|
2000
1984
|
.map((entry) => {
|
|
2001
1985
|
if (entry === null) {
|
|
2002
1986
|
return null;
|
|
2003
1987
|
}
|
|
2004
|
-
return
|
|
1988
|
+
return de_LineItemAssetInformation(entry, context);
|
|
2005
1989
|
});
|
|
2006
1990
|
return retVal;
|
|
2007
1991
|
};
|
|
2008
|
-
const
|
|
1992
|
+
const de_LineItemListDefinition = (output, context) => {
|
|
2009
1993
|
const retVal = (output || [])
|
|
2010
1994
|
.filter((e) => e != null)
|
|
2011
1995
|
.map((entry) => {
|
|
2012
1996
|
if (entry === null) {
|
|
2013
1997
|
return null;
|
|
2014
1998
|
}
|
|
2015
|
-
return
|
|
1999
|
+
return de_LineItem(entry, context);
|
|
2016
2000
|
});
|
|
2017
2001
|
return retVal;
|
|
2018
2002
|
};
|
|
2019
|
-
const
|
|
2003
|
+
const de_LineItemStatusCounts = (output, context) => {
|
|
2020
2004
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2021
2005
|
if (value === null) {
|
|
2022
2006
|
return acc;
|
|
@@ -2025,7 +2009,7 @@ const deserializeAws_restJson1LineItemStatusCounts = (output, context) => {
|
|
|
2025
2009
|
return acc;
|
|
2026
2010
|
}, {});
|
|
2027
2011
|
};
|
|
2028
|
-
const
|
|
2012
|
+
const de_MacAddressList = (output, context) => {
|
|
2029
2013
|
const retVal = (output || [])
|
|
2030
2014
|
.filter((e) => e != null)
|
|
2031
2015
|
.map((entry) => {
|
|
@@ -2036,9 +2020,9 @@ const deserializeAws_restJson1MacAddressList = (output, context) => {
|
|
|
2036
2020
|
});
|
|
2037
2021
|
return retVal;
|
|
2038
2022
|
};
|
|
2039
|
-
const
|
|
2023
|
+
const de_Order = (output, context) => {
|
|
2040
2024
|
return {
|
|
2041
|
-
LineItems: output.LineItems != null ?
|
|
2025
|
+
LineItems: output.LineItems != null ? de_LineItemListDefinition(output.LineItems, context) : undefined,
|
|
2042
2026
|
OrderFulfilledDate: output.OrderFulfilledDate != null
|
|
2043
2027
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OrderFulfilledDate)))
|
|
2044
2028
|
: undefined,
|
|
@@ -2053,10 +2037,10 @@ const deserializeAws_restJson1Order = (output, context) => {
|
|
|
2053
2037
|
Status: __expectString(output.Status),
|
|
2054
2038
|
};
|
|
2055
2039
|
};
|
|
2056
|
-
const
|
|
2040
|
+
const de_OrderSummary = (output, context) => {
|
|
2057
2041
|
return {
|
|
2058
2042
|
LineItemCountsByStatus: output.LineItemCountsByStatus != null
|
|
2059
|
-
?
|
|
2043
|
+
? de_LineItemStatusCounts(output.LineItemCountsByStatus, context)
|
|
2060
2044
|
: undefined,
|
|
2061
2045
|
OrderFulfilledDate: output.OrderFulfilledDate != null
|
|
2062
2046
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.OrderFulfilledDate)))
|
|
@@ -2070,18 +2054,18 @@ const deserializeAws_restJson1OrderSummary = (output, context) => {
|
|
|
2070
2054
|
Status: __expectString(output.Status),
|
|
2071
2055
|
};
|
|
2072
2056
|
};
|
|
2073
|
-
const
|
|
2057
|
+
const de_OrderSummaryListDefinition = (output, context) => {
|
|
2074
2058
|
const retVal = (output || [])
|
|
2075
2059
|
.filter((e) => e != null)
|
|
2076
2060
|
.map((entry) => {
|
|
2077
2061
|
if (entry === null) {
|
|
2078
2062
|
return null;
|
|
2079
2063
|
}
|
|
2080
|
-
return
|
|
2064
|
+
return de_OrderSummary(entry, context);
|
|
2081
2065
|
});
|
|
2082
2066
|
return retVal;
|
|
2083
2067
|
};
|
|
2084
|
-
const
|
|
2068
|
+
const de_Outpost = (output, context) => {
|
|
2085
2069
|
return {
|
|
2086
2070
|
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
2087
2071
|
AvailabilityZoneId: __expectString(output.AvailabilityZoneId),
|
|
@@ -2094,21 +2078,21 @@ const deserializeAws_restJson1Outpost = (output, context) => {
|
|
|
2094
2078
|
SiteArn: __expectString(output.SiteArn),
|
|
2095
2079
|
SiteId: __expectString(output.SiteId),
|
|
2096
2080
|
SupportedHardwareType: __expectString(output.SupportedHardwareType),
|
|
2097
|
-
Tags: output.Tags != null ?
|
|
2081
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2098
2082
|
};
|
|
2099
2083
|
};
|
|
2100
|
-
const
|
|
2084
|
+
const de_outpostListDefinition = (output, context) => {
|
|
2101
2085
|
const retVal = (output || [])
|
|
2102
2086
|
.filter((e) => e != null)
|
|
2103
2087
|
.map((entry) => {
|
|
2104
2088
|
if (entry === null) {
|
|
2105
2089
|
return null;
|
|
2106
2090
|
}
|
|
2107
|
-
return
|
|
2091
|
+
return de_Outpost(entry, context);
|
|
2108
2092
|
});
|
|
2109
2093
|
return retVal;
|
|
2110
2094
|
};
|
|
2111
|
-
const
|
|
2095
|
+
const de_RackPhysicalProperties = (output, context) => {
|
|
2112
2096
|
return {
|
|
2113
2097
|
FiberOpticCableType: __expectString(output.FiberOpticCableType),
|
|
2114
2098
|
MaximumSupportedWeightLbs: __expectString(output.MaximumSupportedWeightLbs),
|
|
@@ -2121,13 +2105,13 @@ const deserializeAws_restJson1RackPhysicalProperties = (output, context) => {
|
|
|
2121
2105
|
UplinkGbps: __expectString(output.UplinkGbps),
|
|
2122
2106
|
};
|
|
2123
2107
|
};
|
|
2124
|
-
const
|
|
2108
|
+
const de_ShipmentInformation = (output, context) => {
|
|
2125
2109
|
return {
|
|
2126
2110
|
ShipmentCarrier: __expectString(output.ShipmentCarrier),
|
|
2127
2111
|
ShipmentTrackingNumber: __expectString(output.ShipmentTrackingNumber),
|
|
2128
2112
|
};
|
|
2129
2113
|
};
|
|
2130
|
-
const
|
|
2114
|
+
const de_Site = (output, context) => {
|
|
2131
2115
|
return {
|
|
2132
2116
|
AccountId: __expectString(output.AccountId),
|
|
2133
2117
|
Description: __expectString(output.Description),
|
|
@@ -2137,25 +2121,25 @@ const deserializeAws_restJson1Site = (output, context) => {
|
|
|
2137
2121
|
OperatingAddressCountryCode: __expectString(output.OperatingAddressCountryCode),
|
|
2138
2122
|
OperatingAddressStateOrRegion: __expectString(output.OperatingAddressStateOrRegion),
|
|
2139
2123
|
RackPhysicalProperties: output.RackPhysicalProperties != null
|
|
2140
|
-
?
|
|
2124
|
+
? de_RackPhysicalProperties(output.RackPhysicalProperties, context)
|
|
2141
2125
|
: undefined,
|
|
2142
2126
|
SiteArn: __expectString(output.SiteArn),
|
|
2143
2127
|
SiteId: __expectString(output.SiteId),
|
|
2144
|
-
Tags: output.Tags != null ?
|
|
2128
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2145
2129
|
};
|
|
2146
2130
|
};
|
|
2147
|
-
const
|
|
2131
|
+
const de_siteListDefinition = (output, context) => {
|
|
2148
2132
|
const retVal = (output || [])
|
|
2149
2133
|
.filter((e) => e != null)
|
|
2150
2134
|
.map((entry) => {
|
|
2151
2135
|
if (entry === null) {
|
|
2152
2136
|
return null;
|
|
2153
2137
|
}
|
|
2154
|
-
return
|
|
2138
|
+
return de_Site(entry, context);
|
|
2155
2139
|
});
|
|
2156
2140
|
return retVal;
|
|
2157
2141
|
};
|
|
2158
|
-
const
|
|
2142
|
+
const de_SupportedStorageList = (output, context) => {
|
|
2159
2143
|
const retVal = (output || [])
|
|
2160
2144
|
.filter((e) => e != null)
|
|
2161
2145
|
.map((entry) => {
|
|
@@ -2166,7 +2150,7 @@ const deserializeAws_restJson1SupportedStorageList = (output, context) => {
|
|
|
2166
2150
|
});
|
|
2167
2151
|
return retVal;
|
|
2168
2152
|
};
|
|
2169
|
-
const
|
|
2153
|
+
const de_SupportedUplinkGbpsListDefinition = (output, context) => {
|
|
2170
2154
|
const retVal = (output || [])
|
|
2171
2155
|
.filter((e) => e != null)
|
|
2172
2156
|
.map((entry) => {
|
|
@@ -2177,7 +2161,7 @@ const deserializeAws_restJson1SupportedUplinkGbpsListDefinition = (output, conte
|
|
|
2177
2161
|
});
|
|
2178
2162
|
return retVal;
|
|
2179
2163
|
};
|
|
2180
|
-
const
|
|
2164
|
+
const de_TagMap = (output, context) => {
|
|
2181
2165
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2182
2166
|
if (value === null) {
|
|
2183
2167
|
return acc;
|