@aws-sdk/client-outposts 3.489.0 → 3.495.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist-cjs/Outposts.js +1 -63
  2. package/dist-cjs/OutpostsClient.js +1 -43
  3. package/dist-cjs/commands/CancelOrderCommand.js +1 -28
  4. package/dist-cjs/commands/CreateOrderCommand.js +1 -28
  5. package/dist-cjs/commands/CreateOutpostCommand.js +1 -28
  6. package/dist-cjs/commands/CreateSiteCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteOutpostCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteSiteCommand.js +1 -28
  9. package/dist-cjs/commands/GetCatalogItemCommand.js +1 -28
  10. package/dist-cjs/commands/GetConnectionCommand.js +1 -28
  11. package/dist-cjs/commands/GetOrderCommand.js +1 -28
  12. package/dist-cjs/commands/GetOutpostCommand.js +1 -28
  13. package/dist-cjs/commands/GetOutpostInstanceTypesCommand.js +1 -28
  14. package/dist-cjs/commands/GetSiteAddressCommand.js +1 -28
  15. package/dist-cjs/commands/GetSiteCommand.js +1 -28
  16. package/dist-cjs/commands/ListAssetsCommand.js +1 -28
  17. package/dist-cjs/commands/ListCatalogItemsCommand.js +1 -28
  18. package/dist-cjs/commands/ListOrdersCommand.js +1 -28
  19. package/dist-cjs/commands/ListOutpostsCommand.js +1 -28
  20. package/dist-cjs/commands/ListSitesCommand.js +1 -28
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  22. package/dist-cjs/commands/StartConnectionCommand.js +1 -28
  23. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  24. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  25. package/dist-cjs/commands/UpdateOutpostCommand.js +1 -28
  26. package/dist-cjs/commands/UpdateSiteAddressCommand.js +1 -28
  27. package/dist-cjs/commands/UpdateSiteCommand.js +1 -28
  28. package/dist-cjs/commands/UpdateSiteRackPhysicalPropertiesCommand.js +1 -28
  29. package/dist-cjs/commands/index.js +1 -29
  30. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  31. package/dist-cjs/extensionConfiguration.js +1 -2
  32. package/dist-cjs/index.js +2714 -11
  33. package/dist-cjs/models/OutpostsServiceException.js +1 -12
  34. package/dist-cjs/models/index.js +1 -4
  35. package/dist-cjs/models/models_0.js +1 -233
  36. package/dist-cjs/pagination/GetOutpostInstanceTypesPaginator.js +1 -7
  37. package/dist-cjs/pagination/Interfaces.js +1 -2
  38. package/dist-cjs/pagination/ListAssetsPaginator.js +1 -7
  39. package/dist-cjs/pagination/ListCatalogItemsPaginator.js +1 -7
  40. package/dist-cjs/pagination/ListOrdersPaginator.js +1 -7
  41. package/dist-cjs/pagination/ListOutpostsPaginator.js +1 -7
  42. package/dist-cjs/pagination/ListSitesPaginator.js +1 -7
  43. package/dist-cjs/pagination/index.js +1 -10
  44. package/dist-cjs/protocols/Aws_restJson1.js +1 -1739
  45. package/dist-cjs/runtimeExtensions.js +1 -22
  46. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2715 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OutpostsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./OutpostsClient"), exports);
6
- tslib_1.__exportStar(require("./Outposts"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var OutpostsServiceException_1 = require("./models/OutpostsServiceException");
12
- Object.defineProperty(exports, "OutpostsServiceException", { enumerable: true, get: function () { return OutpostsServiceException_1.OutpostsServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AddressType: () => AddressType,
26
+ AssetState: () => AssetState,
27
+ AssetType: () => AssetType,
28
+ CancelOrderCommand: () => CancelOrderCommand,
29
+ CatalogItemClass: () => CatalogItemClass,
30
+ CatalogItemStatus: () => CatalogItemStatus,
31
+ ComputeAssetState: () => ComputeAssetState,
32
+ ConflictException: () => ConflictException,
33
+ CreateOrderCommand: () => CreateOrderCommand,
34
+ CreateOutpostCommand: () => CreateOutpostCommand,
35
+ CreateSiteCommand: () => CreateSiteCommand,
36
+ DeleteOutpostCommand: () => DeleteOutpostCommand,
37
+ DeleteSiteCommand: () => DeleteSiteCommand,
38
+ FiberOpticCableType: () => FiberOpticCableType,
39
+ GetCatalogItemCommand: () => GetCatalogItemCommand,
40
+ GetConnectionCommand: () => GetConnectionCommand,
41
+ GetOrderCommand: () => GetOrderCommand,
42
+ GetOutpostCommand: () => GetOutpostCommand,
43
+ GetOutpostInstanceTypesCommand: () => GetOutpostInstanceTypesCommand,
44
+ GetSiteAddressCommand: () => GetSiteAddressCommand,
45
+ GetSiteCommand: () => GetSiteCommand,
46
+ InternalServerException: () => InternalServerException,
47
+ LineItemStatus: () => LineItemStatus,
48
+ ListAssetsCommand: () => ListAssetsCommand,
49
+ ListCatalogItemsCommand: () => ListCatalogItemsCommand,
50
+ ListOrdersCommand: () => ListOrdersCommand,
51
+ ListOutpostsCommand: () => ListOutpostsCommand,
52
+ ListSitesCommand: () => ListSitesCommand,
53
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
54
+ MaximumSupportedWeightLbs: () => MaximumSupportedWeightLbs,
55
+ NotFoundException: () => NotFoundException,
56
+ OpticalStandard: () => OpticalStandard,
57
+ OrderStatus: () => OrderStatus,
58
+ OrderType: () => OrderType,
59
+ Outposts: () => Outposts,
60
+ OutpostsClient: () => OutpostsClient,
61
+ OutpostsServiceException: () => OutpostsServiceException,
62
+ PaymentOption: () => PaymentOption,
63
+ PaymentTerm: () => PaymentTerm,
64
+ PowerConnector: () => PowerConnector,
65
+ PowerDrawKva: () => PowerDrawKva,
66
+ PowerFeedDrop: () => PowerFeedDrop,
67
+ PowerPhase: () => PowerPhase,
68
+ ResourceType: () => ResourceType,
69
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
70
+ ShipmentCarrier: () => ShipmentCarrier,
71
+ StartConnectionCommand: () => StartConnectionCommand,
72
+ SupportedHardwareType: () => SupportedHardwareType,
73
+ SupportedStorageEnum: () => SupportedStorageEnum,
74
+ TagResourceCommand: () => TagResourceCommand,
75
+ UntagResourceCommand: () => UntagResourceCommand,
76
+ UpdateOutpostCommand: () => UpdateOutpostCommand,
77
+ UpdateSiteAddressCommand: () => UpdateSiteAddressCommand,
78
+ UpdateSiteCommand: () => UpdateSiteCommand,
79
+ UpdateSiteRackPhysicalPropertiesCommand: () => UpdateSiteRackPhysicalPropertiesCommand,
80
+ UplinkCount: () => UplinkCount,
81
+ UplinkGbps: () => UplinkGbps,
82
+ ValidationException: () => ValidationException,
83
+ __Client: () => import_smithy_client.Client,
84
+ paginateGetOutpostInstanceTypes: () => paginateGetOutpostInstanceTypes,
85
+ paginateListAssets: () => paginateListAssets,
86
+ paginateListCatalogItems: () => paginateListCatalogItems,
87
+ paginateListOrders: () => paginateListOrders,
88
+ paginateListOutposts: () => paginateListOutposts,
89
+ paginateListSites: () => paginateListSites
90
+ });
91
+ module.exports = __toCommonJS(src_exports);
92
+
93
+ // src/OutpostsClient.ts
94
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
95
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
96
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
97
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
98
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
99
+ var import_config_resolver = require("@smithy/config-resolver");
100
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
101
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
102
+ var import_middleware_retry = require("@smithy/middleware-retry");
103
+
104
+
105
+ // src/endpoint/EndpointParameters.ts
106
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
107
+ return {
108
+ ...options,
109
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
110
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
111
+ defaultSigningName: "outposts"
112
+ };
113
+ }, "resolveClientEndpointParameters");
114
+ var commonParams = {
115
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
116
+ Endpoint: { type: "builtInParams", name: "endpoint" },
117
+ Region: { type: "builtInParams", name: "region" },
118
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
119
+ };
120
+
121
+ // src/OutpostsClient.ts
122
+ var import_runtimeConfig = require("././runtimeConfig");
123
+
124
+ // src/runtimeExtensions.ts
125
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
126
+ var import_protocol_http = require("@smithy/protocol-http");
127
+ var import_smithy_client = require("@smithy/smithy-client");
128
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
129
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
130
+ const extensionConfiguration = {
131
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
132
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
133
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
134
+ };
135
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
136
+ return {
137
+ ...runtimeConfig,
138
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
139
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
140
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
141
+ };
142
+ }, "resolveRuntimeExtensions");
143
+
144
+ // src/OutpostsClient.ts
145
+ var _OutpostsClient = class _OutpostsClient extends import_smithy_client.Client {
146
+ constructor(...[configuration]) {
147
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
148
+ const _config_1 = resolveClientEndpointParameters(_config_0);
149
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
150
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
151
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
152
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
153
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
154
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
155
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
156
+ super(_config_8);
157
+ this.config = _config_8;
158
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
159
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
160
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
161
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
162
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
163
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
164
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
165
+ }
166
+ /**
167
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
168
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
169
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
170
+ */
171
+ destroy() {
172
+ super.destroy();
173
+ }
174
+ };
175
+ __name(_OutpostsClient, "OutpostsClient");
176
+ var OutpostsClient = _OutpostsClient;
177
+
178
+ // src/Outposts.ts
179
+
180
+
181
+ // src/commands/CancelOrderCommand.ts
182
+
183
+ var import_middleware_serde = require("@smithy/middleware-serde");
184
+
185
+ var import_types = require("@smithy/types");
186
+
187
+ // src/protocols/Aws_restJson1.ts
188
+ var import_core = require("@smithy/core");
189
+
190
+
191
+ // src/models/OutpostsServiceException.ts
192
+
193
+ var _OutpostsServiceException = class _OutpostsServiceException extends import_smithy_client.ServiceException {
194
+ /**
195
+ * @internal
196
+ */
197
+ constructor(options) {
198
+ super(options);
199
+ Object.setPrototypeOf(this, _OutpostsServiceException.prototype);
200
+ }
201
+ };
202
+ __name(_OutpostsServiceException, "OutpostsServiceException");
203
+ var OutpostsServiceException = _OutpostsServiceException;
204
+
205
+ // src/models/models_0.ts
206
+ var _AccessDeniedException = class _AccessDeniedException extends OutpostsServiceException {
207
+ /**
208
+ * @internal
209
+ */
210
+ constructor(opts) {
211
+ super({
212
+ name: "AccessDeniedException",
213
+ $fault: "client",
214
+ ...opts
215
+ });
216
+ this.name = "AccessDeniedException";
217
+ this.$fault = "client";
218
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
219
+ this.Message = opts.Message;
220
+ }
221
+ };
222
+ __name(_AccessDeniedException, "AccessDeniedException");
223
+ var AccessDeniedException = _AccessDeniedException;
224
+ var AddressType = {
225
+ OPERATING_ADDRESS: "OPERATING_ADDRESS",
226
+ SHIPPING_ADDRESS: "SHIPPING_ADDRESS"
227
+ };
228
+ var AssetType = {
229
+ COMPUTE: "COMPUTE"
230
+ };
231
+ var ComputeAssetState = {
232
+ ACTIVE: "ACTIVE",
233
+ ISOLATED: "ISOLATED",
234
+ RETIRING: "RETIRING"
235
+ };
236
+ var AssetState = {
237
+ ACTIVE: "ACTIVE",
238
+ ISOLATED: "ISOLATED",
239
+ RETIRING: "RETIRING"
240
+ };
241
+ var ResourceType = {
242
+ ORDER: "ORDER",
243
+ OUTPOST: "OUTPOST"
244
+ };
245
+ var _ConflictException = class _ConflictException extends OutpostsServiceException {
246
+ /**
247
+ * @internal
248
+ */
249
+ constructor(opts) {
250
+ super({
251
+ name: "ConflictException",
252
+ $fault: "client",
253
+ ...opts
254
+ });
255
+ this.name = "ConflictException";
256
+ this.$fault = "client";
257
+ Object.setPrototypeOf(this, _ConflictException.prototype);
258
+ this.Message = opts.Message;
259
+ this.ResourceId = opts.ResourceId;
260
+ this.ResourceType = opts.ResourceType;
261
+ }
262
+ };
263
+ __name(_ConflictException, "ConflictException");
264
+ var ConflictException = _ConflictException;
265
+ var _InternalServerException = class _InternalServerException extends OutpostsServiceException {
266
+ /**
267
+ * @internal
268
+ */
269
+ constructor(opts) {
270
+ super({
271
+ name: "InternalServerException",
272
+ $fault: "server",
273
+ ...opts
274
+ });
275
+ this.name = "InternalServerException";
276
+ this.$fault = "server";
277
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
278
+ this.Message = opts.Message;
279
+ }
280
+ };
281
+ __name(_InternalServerException, "InternalServerException");
282
+ var InternalServerException = _InternalServerException;
283
+ var _NotFoundException = class _NotFoundException extends OutpostsServiceException {
284
+ /**
285
+ * @internal
286
+ */
287
+ constructor(opts) {
288
+ super({
289
+ name: "NotFoundException",
290
+ $fault: "client",
291
+ ...opts
292
+ });
293
+ this.name = "NotFoundException";
294
+ this.$fault = "client";
295
+ Object.setPrototypeOf(this, _NotFoundException.prototype);
296
+ this.Message = opts.Message;
297
+ }
298
+ };
299
+ __name(_NotFoundException, "NotFoundException");
300
+ var NotFoundException = _NotFoundException;
301
+ var _ValidationException = class _ValidationException extends OutpostsServiceException {
302
+ /**
303
+ * @internal
304
+ */
305
+ constructor(opts) {
306
+ super({
307
+ name: "ValidationException",
308
+ $fault: "client",
309
+ ...opts
310
+ });
311
+ this.name = "ValidationException";
312
+ this.$fault = "client";
313
+ Object.setPrototypeOf(this, _ValidationException.prototype);
314
+ this.Message = opts.Message;
315
+ }
316
+ };
317
+ __name(_ValidationException, "ValidationException");
318
+ var ValidationException = _ValidationException;
319
+ var CatalogItemStatus = {
320
+ AVAILABLE: "AVAILABLE",
321
+ DISCONTINUED: "DISCONTINUED"
322
+ };
323
+ var SupportedStorageEnum = {
324
+ EBS: "EBS",
325
+ S3: "S3"
326
+ };
327
+ var CatalogItemClass = {
328
+ RACK: "RACK",
329
+ SERVER: "SERVER"
330
+ };
331
+ var PaymentOption = {
332
+ ALL_UPFRONT: "ALL_UPFRONT",
333
+ NO_UPFRONT: "NO_UPFRONT",
334
+ PARTIAL_UPFRONT: "PARTIAL_UPFRONT"
335
+ };
336
+ var PaymentTerm = {
337
+ ONE_YEAR: "ONE_YEAR",
338
+ THREE_YEARS: "THREE_YEARS"
339
+ };
340
+ var ShipmentCarrier = {
341
+ DBS: "DBS",
342
+ DHL: "DHL",
343
+ FEDEX: "FEDEX",
344
+ UPS: "UPS"
345
+ };
346
+ var LineItemStatus = {
347
+ BUILDING: "BUILDING",
348
+ CANCELLED: "CANCELLED",
349
+ DELIVERED: "DELIVERED",
350
+ ERROR: "ERROR",
351
+ INSTALLED: "INSTALLED",
352
+ INSTALLING: "INSTALLING",
353
+ PREPARING: "PREPARING",
354
+ REPLACED: "REPLACED",
355
+ SHIPPED: "SHIPPED"
356
+ };
357
+ var OrderType = {
358
+ OUTPOST: "OUTPOST",
359
+ REPLACEMENT: "REPLACEMENT"
360
+ };
361
+ var OrderStatus = {
362
+ CANCELLED: "CANCELLED",
363
+ COMPLETED: "COMPLETED",
364
+ ERROR: "ERROR",
365
+ FULFILLED: "FULFILLED",
366
+ INSTALLING: "INSTALLING",
367
+ IN_PROGRESS: "IN_PROGRESS",
368
+ PENDING: "PENDING",
369
+ PREPARING: "PREPARING",
370
+ PROCESSING: "PROCESSING",
371
+ RECEIVED: "RECEIVED"
372
+ };
373
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends OutpostsServiceException {
374
+ /**
375
+ * @internal
376
+ */
377
+ constructor(opts) {
378
+ super({
379
+ name: "ServiceQuotaExceededException",
380
+ $fault: "client",
381
+ ...opts
382
+ });
383
+ this.name = "ServiceQuotaExceededException";
384
+ this.$fault = "client";
385
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
386
+ this.Message = opts.Message;
387
+ }
388
+ };
389
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
390
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
391
+ var SupportedHardwareType = {
392
+ RACK: "RACK",
393
+ SERVER: "SERVER"
394
+ };
395
+ var FiberOpticCableType = {
396
+ MULTI_MODE: "MULTI_MODE",
397
+ SINGLE_MODE: "SINGLE_MODE"
398
+ };
399
+ var MaximumSupportedWeightLbs = {
400
+ MAX_1400_LBS: "MAX_1400_LBS",
401
+ MAX_1600_LBS: "MAX_1600_LBS",
402
+ MAX_1800_LBS: "MAX_1800_LBS",
403
+ MAX_2000_LBS: "MAX_2000_LBS",
404
+ NO_LIMIT: "NO_LIMIT"
405
+ };
406
+ var OpticalStandard = {
407
+ OPTIC_1000BASE_LX: "OPTIC_1000BASE_LX",
408
+ OPTIC_1000BASE_SX: "OPTIC_1000BASE_SX",
409
+ OPTIC_100GBASE_CWDM4: "OPTIC_100GBASE_CWDM4",
410
+ OPTIC_100GBASE_LR4: "OPTIC_100GBASE_LR4",
411
+ OPTIC_100GBASE_SR4: "OPTIC_100GBASE_SR4",
412
+ OPTIC_100G_PSM4_MSA: "OPTIC_100G_PSM4_MSA",
413
+ OPTIC_10GBASE_IR: "OPTIC_10GBASE_IR",
414
+ OPTIC_10GBASE_LR: "OPTIC_10GBASE_LR",
415
+ OPTIC_10GBASE_SR: "OPTIC_10GBASE_SR",
416
+ OPTIC_40GBASE_ESR: "OPTIC_40GBASE_ESR",
417
+ OPTIC_40GBASE_IR4_LR4L: "OPTIC_40GBASE_IR4_LR4L",
418
+ OPTIC_40GBASE_LR4: "OPTIC_40GBASE_LR4",
419
+ OPTIC_40GBASE_SR: "OPTIC_40GBASE_SR"
420
+ };
421
+ var PowerConnector = {
422
+ AH530P7W: "AH530P7W",
423
+ AH532P6W: "AH532P6W",
424
+ IEC309: "IEC309",
425
+ L6_30P: "L6_30P"
426
+ };
427
+ var PowerDrawKva = {
428
+ POWER_10_KVA: "POWER_10_KVA",
429
+ POWER_15_KVA: "POWER_15_KVA",
430
+ POWER_30_KVA: "POWER_30_KVA",
431
+ POWER_5_KVA: "POWER_5_KVA"
432
+ };
433
+ var PowerFeedDrop = {
434
+ ABOVE_RACK: "ABOVE_RACK",
435
+ BELOW_RACK: "BELOW_RACK"
436
+ };
437
+ var PowerPhase = {
438
+ SINGLE_PHASE: "SINGLE_PHASE",
439
+ THREE_PHASE: "THREE_PHASE"
440
+ };
441
+ var UplinkCount = {
442
+ UPLINK_COUNT_1: "UPLINK_COUNT_1",
443
+ UPLINK_COUNT_12: "UPLINK_COUNT_12",
444
+ UPLINK_COUNT_16: "UPLINK_COUNT_16",
445
+ UPLINK_COUNT_2: "UPLINK_COUNT_2",
446
+ UPLINK_COUNT_3: "UPLINK_COUNT_3",
447
+ UPLINK_COUNT_4: "UPLINK_COUNT_4",
448
+ UPLINK_COUNT_5: "UPLINK_COUNT_5",
449
+ UPLINK_COUNT_6: "UPLINK_COUNT_6",
450
+ UPLINK_COUNT_7: "UPLINK_COUNT_7",
451
+ UPLINK_COUNT_8: "UPLINK_COUNT_8"
452
+ };
453
+ var UplinkGbps = {
454
+ UPLINK_100G: "UPLINK_100G",
455
+ UPLINK_10G: "UPLINK_10G",
456
+ UPLINK_1G: "UPLINK_1G",
457
+ UPLINK_40G: "UPLINK_40G"
458
+ };
459
+
460
+ // src/protocols/Aws_restJson1.ts
461
+ var se_CancelOrderCommand = /* @__PURE__ */ __name(async (input, context) => {
462
+ const b = (0, import_core.requestBuilder)(input, context);
463
+ const headers = {};
464
+ b.bp("/orders/{OrderId}/cancel");
465
+ b.p("OrderId", () => input.OrderId, "{OrderId}", false);
466
+ let body;
467
+ b.m("POST").h(headers).b(body);
468
+ return b.build();
469
+ }, "se_CancelOrderCommand");
470
+ var se_CreateOrderCommand = /* @__PURE__ */ __name(async (input, context) => {
471
+ const b = (0, import_core.requestBuilder)(input, context);
472
+ const headers = {
473
+ "content-type": "application/json"
474
+ };
475
+ b.bp("/orders");
476
+ let body;
477
+ body = JSON.stringify(
478
+ (0, import_smithy_client.take)(input, {
479
+ LineItems: (_) => (0, import_smithy_client._json)(_),
480
+ OutpostIdentifier: [],
481
+ PaymentOption: [],
482
+ PaymentTerm: []
483
+ })
484
+ );
485
+ b.m("POST").h(headers).b(body);
486
+ return b.build();
487
+ }, "se_CreateOrderCommand");
488
+ var se_CreateOutpostCommand = /* @__PURE__ */ __name(async (input, context) => {
489
+ const b = (0, import_core.requestBuilder)(input, context);
490
+ const headers = {
491
+ "content-type": "application/json"
492
+ };
493
+ b.bp("/outposts");
494
+ let body;
495
+ body = JSON.stringify(
496
+ (0, import_smithy_client.take)(input, {
497
+ AvailabilityZone: [],
498
+ AvailabilityZoneId: [],
499
+ Description: [],
500
+ Name: [],
501
+ SiteId: [],
502
+ SupportedHardwareType: [],
503
+ Tags: (_) => (0, import_smithy_client._json)(_)
504
+ })
505
+ );
506
+ b.m("POST").h(headers).b(body);
507
+ return b.build();
508
+ }, "se_CreateOutpostCommand");
509
+ var se_CreateSiteCommand = /* @__PURE__ */ __name(async (input, context) => {
510
+ const b = (0, import_core.requestBuilder)(input, context);
511
+ const headers = {
512
+ "content-type": "application/json"
513
+ };
514
+ b.bp("/sites");
515
+ let body;
516
+ body = JSON.stringify(
517
+ (0, import_smithy_client.take)(input, {
518
+ Description: [],
519
+ Name: [],
520
+ Notes: [],
521
+ OperatingAddress: (_) => (0, import_smithy_client._json)(_),
522
+ RackPhysicalProperties: (_) => (0, import_smithy_client._json)(_),
523
+ ShippingAddress: (_) => (0, import_smithy_client._json)(_),
524
+ Tags: (_) => (0, import_smithy_client._json)(_)
525
+ })
526
+ );
527
+ b.m("POST").h(headers).b(body);
528
+ return b.build();
529
+ }, "se_CreateSiteCommand");
530
+ var se_DeleteOutpostCommand = /* @__PURE__ */ __name(async (input, context) => {
531
+ const b = (0, import_core.requestBuilder)(input, context);
532
+ const headers = {};
533
+ b.bp("/outposts/{OutpostId}");
534
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
535
+ let body;
536
+ b.m("DELETE").h(headers).b(body);
537
+ return b.build();
538
+ }, "se_DeleteOutpostCommand");
539
+ var se_DeleteSiteCommand = /* @__PURE__ */ __name(async (input, context) => {
540
+ const b = (0, import_core.requestBuilder)(input, context);
541
+ const headers = {};
542
+ b.bp("/sites/{SiteId}");
543
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
544
+ let body;
545
+ b.m("DELETE").h(headers).b(body);
546
+ return b.build();
547
+ }, "se_DeleteSiteCommand");
548
+ var se_GetCatalogItemCommand = /* @__PURE__ */ __name(async (input, context) => {
549
+ const b = (0, import_core.requestBuilder)(input, context);
550
+ const headers = {};
551
+ b.bp("/catalog/item/{CatalogItemId}");
552
+ b.p("CatalogItemId", () => input.CatalogItemId, "{CatalogItemId}", false);
553
+ let body;
554
+ b.m("GET").h(headers).b(body);
555
+ return b.build();
556
+ }, "se_GetCatalogItemCommand");
557
+ var se_GetConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
558
+ const b = (0, import_core.requestBuilder)(input, context);
559
+ const headers = {};
560
+ b.bp("/connections/{ConnectionId}");
561
+ b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
562
+ let body;
563
+ b.m("GET").h(headers).b(body);
564
+ return b.build();
565
+ }, "se_GetConnectionCommand");
566
+ var se_GetOrderCommand = /* @__PURE__ */ __name(async (input, context) => {
567
+ const b = (0, import_core.requestBuilder)(input, context);
568
+ const headers = {};
569
+ b.bp("/orders/{OrderId}");
570
+ b.p("OrderId", () => input.OrderId, "{OrderId}", false);
571
+ let body;
572
+ b.m("GET").h(headers).b(body);
573
+ return b.build();
574
+ }, "se_GetOrderCommand");
575
+ var se_GetOutpostCommand = /* @__PURE__ */ __name(async (input, context) => {
576
+ const b = (0, import_core.requestBuilder)(input, context);
577
+ const headers = {};
578
+ b.bp("/outposts/{OutpostId}");
579
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
580
+ let body;
581
+ b.m("GET").h(headers).b(body);
582
+ return b.build();
583
+ }, "se_GetOutpostCommand");
584
+ var se_GetOutpostInstanceTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
585
+ const b = (0, import_core.requestBuilder)(input, context);
586
+ const headers = {};
587
+ b.bp("/outposts/{OutpostId}/instanceTypes");
588
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
589
+ const query = (0, import_smithy_client.map)({
590
+ [_NT]: [, input[_NT]],
591
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
592
+ });
593
+ let body;
594
+ b.m("GET").h(headers).q(query).b(body);
595
+ return b.build();
596
+ }, "se_GetOutpostInstanceTypesCommand");
597
+ var se_GetSiteCommand = /* @__PURE__ */ __name(async (input, context) => {
598
+ const b = (0, import_core.requestBuilder)(input, context);
599
+ const headers = {};
600
+ b.bp("/sites/{SiteId}");
601
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
602
+ let body;
603
+ b.m("GET").h(headers).b(body);
604
+ return b.build();
605
+ }, "se_GetSiteCommand");
606
+ var se_GetSiteAddressCommand = /* @__PURE__ */ __name(async (input, context) => {
607
+ const b = (0, import_core.requestBuilder)(input, context);
608
+ const headers = {};
609
+ b.bp("/sites/{SiteId}/address");
610
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
611
+ const query = (0, import_smithy_client.map)({
612
+ [_AT]: [, (0, import_smithy_client.expectNonNull)(input[_AT], `AddressType`)]
613
+ });
614
+ let body;
615
+ b.m("GET").h(headers).q(query).b(body);
616
+ return b.build();
617
+ }, "se_GetSiteAddressCommand");
618
+ var se_ListAssetsCommand = /* @__PURE__ */ __name(async (input, context) => {
619
+ const b = (0, import_core.requestBuilder)(input, context);
620
+ const headers = {};
621
+ b.bp("/outposts/{OutpostIdentifier}/assets");
622
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
623
+ const query = (0, import_smithy_client.map)({
624
+ [_HIF]: [() => input.HostIdFilter !== void 0, () => (input[_HIF] || []).map((_entry) => _entry)],
625
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
626
+ [_NT]: [, input[_NT]],
627
+ [_SF]: [() => input.StatusFilter !== void 0, () => (input[_SF] || []).map((_entry) => _entry)]
628
+ });
629
+ let body;
630
+ b.m("GET").h(headers).q(query).b(body);
631
+ return b.build();
632
+ }, "se_ListAssetsCommand");
633
+ var se_ListCatalogItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
634
+ const b = (0, import_core.requestBuilder)(input, context);
635
+ const headers = {};
636
+ b.bp("/catalog/items");
637
+ const query = (0, import_smithy_client.map)({
638
+ [_NT]: [, input[_NT]],
639
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
640
+ [_ICF]: [() => input.ItemClassFilter !== void 0, () => (input[_ICF] || []).map((_entry) => _entry)],
641
+ [_SSF]: [() => input.SupportedStorageFilter !== void 0, () => (input[_SSF] || []).map((_entry) => _entry)],
642
+ [_ECFF]: [() => input.EC2FamilyFilter !== void 0, () => (input[_ECFF] || []).map((_entry) => _entry)]
643
+ });
644
+ let body;
645
+ b.m("GET").h(headers).q(query).b(body);
646
+ return b.build();
647
+ }, "se_ListCatalogItemsCommand");
648
+ var se_ListOrdersCommand = /* @__PURE__ */ __name(async (input, context) => {
649
+ const b = (0, import_core.requestBuilder)(input, context);
650
+ const headers = {};
651
+ b.bp("/list-orders");
652
+ const query = (0, import_smithy_client.map)({
653
+ [_OIF]: [, input[_OIF]],
654
+ [_NT]: [, input[_NT]],
655
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
656
+ });
657
+ let body;
658
+ b.m("GET").h(headers).q(query).b(body);
659
+ return b.build();
660
+ }, "se_ListOrdersCommand");
661
+ var se_ListOutpostsCommand = /* @__PURE__ */ __name(async (input, context) => {
662
+ const b = (0, import_core.requestBuilder)(input, context);
663
+ const headers = {};
664
+ b.bp("/outposts");
665
+ const query = (0, import_smithy_client.map)({
666
+ [_NT]: [, input[_NT]],
667
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
668
+ [_LCSF]: [() => input.LifeCycleStatusFilter !== void 0, () => (input[_LCSF] || []).map((_entry) => _entry)],
669
+ [_AZF]: [() => input.AvailabilityZoneFilter !== void 0, () => (input[_AZF] || []).map((_entry) => _entry)],
670
+ [_AZIF]: [
671
+ () => input.AvailabilityZoneIdFilter !== void 0,
672
+ () => (input[_AZIF] || []).map((_entry) => _entry)
673
+ ]
674
+ });
675
+ let body;
676
+ b.m("GET").h(headers).q(query).b(body);
677
+ return b.build();
678
+ }, "se_ListOutpostsCommand");
679
+ var se_ListSitesCommand = /* @__PURE__ */ __name(async (input, context) => {
680
+ const b = (0, import_core.requestBuilder)(input, context);
681
+ const headers = {};
682
+ b.bp("/sites");
683
+ const query = (0, import_smithy_client.map)({
684
+ [_NT]: [, input[_NT]],
685
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
686
+ [_OACCF]: [
687
+ () => input.OperatingAddressCountryCodeFilter !== void 0,
688
+ () => (input[_OACCF] || []).map((_entry) => _entry)
689
+ ],
690
+ [_OASORF]: [
691
+ () => input.OperatingAddressStateOrRegionFilter !== void 0,
692
+ () => (input[_OASORF] || []).map((_entry) => _entry)
693
+ ],
694
+ [_OACF]: [
695
+ () => input.OperatingAddressCityFilter !== void 0,
696
+ () => (input[_OACF] || []).map((_entry) => _entry)
697
+ ]
698
+ });
699
+ let body;
700
+ b.m("GET").h(headers).q(query).b(body);
701
+ return b.build();
702
+ }, "se_ListSitesCommand");
703
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
704
+ const b = (0, import_core.requestBuilder)(input, context);
705
+ const headers = {};
706
+ b.bp("/tags/{ResourceArn}");
707
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
708
+ let body;
709
+ b.m("GET").h(headers).b(body);
710
+ return b.build();
711
+ }, "se_ListTagsForResourceCommand");
712
+ var se_StartConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
713
+ const b = (0, import_core.requestBuilder)(input, context);
714
+ const headers = {
715
+ "content-type": "application/json"
716
+ };
717
+ b.bp("/connections");
718
+ let body;
719
+ body = JSON.stringify(
720
+ (0, import_smithy_client.take)(input, {
721
+ AssetId: [],
722
+ ClientPublicKey: [],
723
+ DeviceSerialNumber: [],
724
+ NetworkInterfaceDeviceIndex: []
725
+ })
726
+ );
727
+ b.m("POST").h(headers).b(body);
728
+ return b.build();
729
+ }, "se_StartConnectionCommand");
730
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
731
+ const b = (0, import_core.requestBuilder)(input, context);
732
+ const headers = {
733
+ "content-type": "application/json"
734
+ };
735
+ b.bp("/tags/{ResourceArn}");
736
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
737
+ let body;
738
+ body = JSON.stringify(
739
+ (0, import_smithy_client.take)(input, {
740
+ Tags: (_) => (0, import_smithy_client._json)(_)
741
+ })
742
+ );
743
+ b.m("POST").h(headers).b(body);
744
+ return b.build();
745
+ }, "se_TagResourceCommand");
746
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
747
+ const b = (0, import_core.requestBuilder)(input, context);
748
+ const headers = {};
749
+ b.bp("/tags/{ResourceArn}");
750
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
751
+ const query = (0, import_smithy_client.map)({
752
+ [_tK]: [
753
+ (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
754
+ () => (input[_TK] || []).map((_entry) => _entry)
755
+ ]
756
+ });
757
+ let body;
758
+ b.m("DELETE").h(headers).q(query).b(body);
759
+ return b.build();
760
+ }, "se_UntagResourceCommand");
761
+ var se_UpdateOutpostCommand = /* @__PURE__ */ __name(async (input, context) => {
762
+ const b = (0, import_core.requestBuilder)(input, context);
763
+ const headers = {
764
+ "content-type": "application/json"
765
+ };
766
+ b.bp("/outposts/{OutpostId}");
767
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
768
+ let body;
769
+ body = JSON.stringify(
770
+ (0, import_smithy_client.take)(input, {
771
+ Description: [],
772
+ Name: [],
773
+ SupportedHardwareType: []
774
+ })
775
+ );
776
+ b.m("PATCH").h(headers).b(body);
777
+ return b.build();
778
+ }, "se_UpdateOutpostCommand");
779
+ var se_UpdateSiteCommand = /* @__PURE__ */ __name(async (input, context) => {
780
+ const b = (0, import_core.requestBuilder)(input, context);
781
+ const headers = {
782
+ "content-type": "application/json"
783
+ };
784
+ b.bp("/sites/{SiteId}");
785
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
786
+ let body;
787
+ body = JSON.stringify(
788
+ (0, import_smithy_client.take)(input, {
789
+ Description: [],
790
+ Name: [],
791
+ Notes: []
792
+ })
793
+ );
794
+ b.m("PATCH").h(headers).b(body);
795
+ return b.build();
796
+ }, "se_UpdateSiteCommand");
797
+ var se_UpdateSiteAddressCommand = /* @__PURE__ */ __name(async (input, context) => {
798
+ const b = (0, import_core.requestBuilder)(input, context);
799
+ const headers = {
800
+ "content-type": "application/json"
801
+ };
802
+ b.bp("/sites/{SiteId}/address");
803
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
804
+ let body;
805
+ body = JSON.stringify(
806
+ (0, import_smithy_client.take)(input, {
807
+ Address: (_) => (0, import_smithy_client._json)(_),
808
+ AddressType: []
809
+ })
810
+ );
811
+ b.m("PUT").h(headers).b(body);
812
+ return b.build();
813
+ }, "se_UpdateSiteAddressCommand");
814
+ var se_UpdateSiteRackPhysicalPropertiesCommand = /* @__PURE__ */ __name(async (input, context) => {
815
+ const b = (0, import_core.requestBuilder)(input, context);
816
+ const headers = {
817
+ "content-type": "application/json"
818
+ };
819
+ b.bp("/sites/{SiteId}/rackPhysicalProperties");
820
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
821
+ let body;
822
+ body = JSON.stringify(
823
+ (0, import_smithy_client.take)(input, {
824
+ FiberOpticCableType: [],
825
+ MaximumSupportedWeightLbs: [],
826
+ OpticalStandard: [],
827
+ PowerConnector: [],
828
+ PowerDrawKva: [],
829
+ PowerFeedDrop: [],
830
+ PowerPhase: [],
831
+ UplinkCount: [],
832
+ UplinkGbps: []
833
+ })
834
+ );
835
+ b.m("PATCH").h(headers).b(body);
836
+ return b.build();
837
+ }, "se_UpdateSiteRackPhysicalPropertiesCommand");
838
+ var de_CancelOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
839
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
840
+ return de_CancelOrderCommandError(output, context);
841
+ }
842
+ const contents = (0, import_smithy_client.map)({
843
+ $metadata: deserializeMetadata(output)
844
+ });
845
+ await (0, import_smithy_client.collectBody)(output.body, context);
846
+ return contents;
847
+ }, "de_CancelOrderCommand");
848
+ var de_CancelOrderCommandError = /* @__PURE__ */ __name(async (output, context) => {
849
+ const parsedOutput = {
850
+ ...output,
851
+ body: await parseErrorBody(output.body, context)
852
+ };
853
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
854
+ switch (errorCode) {
855
+ case "AccessDeniedException":
856
+ case "com.amazonaws.outposts#AccessDeniedException":
857
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
858
+ case "ConflictException":
859
+ case "com.amazonaws.outposts#ConflictException":
860
+ throw await de_ConflictExceptionRes(parsedOutput, context);
861
+ case "InternalServerException":
862
+ case "com.amazonaws.outposts#InternalServerException":
863
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
864
+ case "NotFoundException":
865
+ case "com.amazonaws.outposts#NotFoundException":
866
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
867
+ case "ValidationException":
868
+ case "com.amazonaws.outposts#ValidationException":
869
+ throw await de_ValidationExceptionRes(parsedOutput, context);
870
+ default:
871
+ const parsedBody = parsedOutput.body;
872
+ return throwDefaultError({
873
+ output,
874
+ parsedBody,
875
+ errorCode
876
+ });
877
+ }
878
+ }, "de_CancelOrderCommandError");
879
+ var de_CreateOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
880
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
881
+ return de_CreateOrderCommandError(output, context);
882
+ }
883
+ const contents = (0, import_smithy_client.map)({
884
+ $metadata: deserializeMetadata(output)
885
+ });
886
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
887
+ const doc = (0, import_smithy_client.take)(data, {
888
+ Order: (_) => de_Order(_, context)
889
+ });
890
+ Object.assign(contents, doc);
891
+ return contents;
892
+ }, "de_CreateOrderCommand");
893
+ var de_CreateOrderCommandError = /* @__PURE__ */ __name(async (output, context) => {
894
+ const parsedOutput = {
895
+ ...output,
896
+ body: await parseErrorBody(output.body, context)
897
+ };
898
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
899
+ switch (errorCode) {
900
+ case "AccessDeniedException":
901
+ case "com.amazonaws.outposts#AccessDeniedException":
902
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
903
+ case "ConflictException":
904
+ case "com.amazonaws.outposts#ConflictException":
905
+ throw await de_ConflictExceptionRes(parsedOutput, context);
906
+ case "InternalServerException":
907
+ case "com.amazonaws.outposts#InternalServerException":
908
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
909
+ case "NotFoundException":
910
+ case "com.amazonaws.outposts#NotFoundException":
911
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
912
+ case "ServiceQuotaExceededException":
913
+ case "com.amazonaws.outposts#ServiceQuotaExceededException":
914
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
915
+ case "ValidationException":
916
+ case "com.amazonaws.outposts#ValidationException":
917
+ throw await de_ValidationExceptionRes(parsedOutput, context);
918
+ default:
919
+ const parsedBody = parsedOutput.body;
920
+ return throwDefaultError({
921
+ output,
922
+ parsedBody,
923
+ errorCode
924
+ });
925
+ }
926
+ }, "de_CreateOrderCommandError");
927
+ var de_CreateOutpostCommand = /* @__PURE__ */ __name(async (output, context) => {
928
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
929
+ return de_CreateOutpostCommandError(output, context);
930
+ }
931
+ const contents = (0, import_smithy_client.map)({
932
+ $metadata: deserializeMetadata(output)
933
+ });
934
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
935
+ const doc = (0, import_smithy_client.take)(data, {
936
+ Outpost: import_smithy_client._json
937
+ });
938
+ Object.assign(contents, doc);
939
+ return contents;
940
+ }, "de_CreateOutpostCommand");
941
+ var de_CreateOutpostCommandError = /* @__PURE__ */ __name(async (output, context) => {
942
+ const parsedOutput = {
943
+ ...output,
944
+ body: await parseErrorBody(output.body, context)
945
+ };
946
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
947
+ switch (errorCode) {
948
+ case "AccessDeniedException":
949
+ case "com.amazonaws.outposts#AccessDeniedException":
950
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
951
+ case "ConflictException":
952
+ case "com.amazonaws.outposts#ConflictException":
953
+ throw await de_ConflictExceptionRes(parsedOutput, context);
954
+ case "InternalServerException":
955
+ case "com.amazonaws.outposts#InternalServerException":
956
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
957
+ case "NotFoundException":
958
+ case "com.amazonaws.outposts#NotFoundException":
959
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
960
+ case "ServiceQuotaExceededException":
961
+ case "com.amazonaws.outposts#ServiceQuotaExceededException":
962
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
963
+ case "ValidationException":
964
+ case "com.amazonaws.outposts#ValidationException":
965
+ throw await de_ValidationExceptionRes(parsedOutput, context);
966
+ default:
967
+ const parsedBody = parsedOutput.body;
968
+ return throwDefaultError({
969
+ output,
970
+ parsedBody,
971
+ errorCode
972
+ });
973
+ }
974
+ }, "de_CreateOutpostCommandError");
975
+ var de_CreateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
976
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
977
+ return de_CreateSiteCommandError(output, context);
978
+ }
979
+ const contents = (0, import_smithy_client.map)({
980
+ $metadata: deserializeMetadata(output)
981
+ });
982
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
983
+ const doc = (0, import_smithy_client.take)(data, {
984
+ Site: import_smithy_client._json
985
+ });
986
+ Object.assign(contents, doc);
987
+ return contents;
988
+ }, "de_CreateSiteCommand");
989
+ var de_CreateSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
990
+ const parsedOutput = {
991
+ ...output,
992
+ body: await parseErrorBody(output.body, context)
993
+ };
994
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
995
+ switch (errorCode) {
996
+ case "AccessDeniedException":
997
+ case "com.amazonaws.outposts#AccessDeniedException":
998
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
999
+ case "ConflictException":
1000
+ case "com.amazonaws.outposts#ConflictException":
1001
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1002
+ case "InternalServerException":
1003
+ case "com.amazonaws.outposts#InternalServerException":
1004
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1005
+ case "ServiceQuotaExceededException":
1006
+ case "com.amazonaws.outposts#ServiceQuotaExceededException":
1007
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1008
+ case "ValidationException":
1009
+ case "com.amazonaws.outposts#ValidationException":
1010
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1011
+ default:
1012
+ const parsedBody = parsedOutput.body;
1013
+ return throwDefaultError({
1014
+ output,
1015
+ parsedBody,
1016
+ errorCode
1017
+ });
1018
+ }
1019
+ }, "de_CreateSiteCommandError");
1020
+ var de_DeleteOutpostCommand = /* @__PURE__ */ __name(async (output, context) => {
1021
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1022
+ return de_DeleteOutpostCommandError(output, context);
1023
+ }
1024
+ const contents = (0, import_smithy_client.map)({
1025
+ $metadata: deserializeMetadata(output)
1026
+ });
1027
+ await (0, import_smithy_client.collectBody)(output.body, context);
1028
+ return contents;
1029
+ }, "de_DeleteOutpostCommand");
1030
+ var de_DeleteOutpostCommandError = /* @__PURE__ */ __name(async (output, context) => {
1031
+ const parsedOutput = {
1032
+ ...output,
1033
+ body: await parseErrorBody(output.body, context)
1034
+ };
1035
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1036
+ switch (errorCode) {
1037
+ case "AccessDeniedException":
1038
+ case "com.amazonaws.outposts#AccessDeniedException":
1039
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1040
+ case "ConflictException":
1041
+ case "com.amazonaws.outposts#ConflictException":
1042
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1043
+ case "InternalServerException":
1044
+ case "com.amazonaws.outposts#InternalServerException":
1045
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1046
+ case "NotFoundException":
1047
+ case "com.amazonaws.outposts#NotFoundException":
1048
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1049
+ case "ValidationException":
1050
+ case "com.amazonaws.outposts#ValidationException":
1051
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1052
+ default:
1053
+ const parsedBody = parsedOutput.body;
1054
+ return throwDefaultError({
1055
+ output,
1056
+ parsedBody,
1057
+ errorCode
1058
+ });
1059
+ }
1060
+ }, "de_DeleteOutpostCommandError");
1061
+ var de_DeleteSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
1062
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1063
+ return de_DeleteSiteCommandError(output, context);
1064
+ }
1065
+ const contents = (0, import_smithy_client.map)({
1066
+ $metadata: deserializeMetadata(output)
1067
+ });
1068
+ await (0, import_smithy_client.collectBody)(output.body, context);
1069
+ return contents;
1070
+ }, "de_DeleteSiteCommand");
1071
+ var de_DeleteSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1072
+ const parsedOutput = {
1073
+ ...output,
1074
+ body: await parseErrorBody(output.body, context)
1075
+ };
1076
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1077
+ switch (errorCode) {
1078
+ case "AccessDeniedException":
1079
+ case "com.amazonaws.outposts#AccessDeniedException":
1080
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1081
+ case "ConflictException":
1082
+ case "com.amazonaws.outposts#ConflictException":
1083
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1084
+ case "InternalServerException":
1085
+ case "com.amazonaws.outposts#InternalServerException":
1086
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1087
+ case "NotFoundException":
1088
+ case "com.amazonaws.outposts#NotFoundException":
1089
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1090
+ case "ValidationException":
1091
+ case "com.amazonaws.outposts#ValidationException":
1092
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1093
+ default:
1094
+ const parsedBody = parsedOutput.body;
1095
+ return throwDefaultError({
1096
+ output,
1097
+ parsedBody,
1098
+ errorCode
1099
+ });
1100
+ }
1101
+ }, "de_DeleteSiteCommandError");
1102
+ var de_GetCatalogItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1103
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1104
+ return de_GetCatalogItemCommandError(output, context);
1105
+ }
1106
+ const contents = (0, import_smithy_client.map)({
1107
+ $metadata: deserializeMetadata(output)
1108
+ });
1109
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1110
+ const doc = (0, import_smithy_client.take)(data, {
1111
+ CatalogItem: (_) => de_CatalogItem(_, context)
1112
+ });
1113
+ Object.assign(contents, doc);
1114
+ return contents;
1115
+ }, "de_GetCatalogItemCommand");
1116
+ var de_GetCatalogItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1117
+ const parsedOutput = {
1118
+ ...output,
1119
+ body: await parseErrorBody(output.body, context)
1120
+ };
1121
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1122
+ switch (errorCode) {
1123
+ case "InternalServerException":
1124
+ case "com.amazonaws.outposts#InternalServerException":
1125
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1126
+ case "NotFoundException":
1127
+ case "com.amazonaws.outposts#NotFoundException":
1128
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1129
+ case "ValidationException":
1130
+ case "com.amazonaws.outposts#ValidationException":
1131
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1132
+ default:
1133
+ const parsedBody = parsedOutput.body;
1134
+ return throwDefaultError({
1135
+ output,
1136
+ parsedBody,
1137
+ errorCode
1138
+ });
1139
+ }
1140
+ }, "de_GetCatalogItemCommandError");
1141
+ var de_GetConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1142
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1143
+ return de_GetConnectionCommandError(output, context);
1144
+ }
1145
+ const contents = (0, import_smithy_client.map)({
1146
+ $metadata: deserializeMetadata(output)
1147
+ });
1148
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1149
+ const doc = (0, import_smithy_client.take)(data, {
1150
+ ConnectionDetails: import_smithy_client._json,
1151
+ ConnectionId: import_smithy_client.expectString
1152
+ });
1153
+ Object.assign(contents, doc);
1154
+ return contents;
1155
+ }, "de_GetConnectionCommand");
1156
+ var de_GetConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1157
+ const parsedOutput = {
1158
+ ...output,
1159
+ body: await parseErrorBody(output.body, context)
1160
+ };
1161
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1162
+ switch (errorCode) {
1163
+ case "AccessDeniedException":
1164
+ case "com.amazonaws.outposts#AccessDeniedException":
1165
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1166
+ case "InternalServerException":
1167
+ case "com.amazonaws.outposts#InternalServerException":
1168
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1169
+ case "NotFoundException":
1170
+ case "com.amazonaws.outposts#NotFoundException":
1171
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1172
+ case "ValidationException":
1173
+ case "com.amazonaws.outposts#ValidationException":
1174
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1175
+ default:
1176
+ const parsedBody = parsedOutput.body;
1177
+ return throwDefaultError({
1178
+ output,
1179
+ parsedBody,
1180
+ errorCode
1181
+ });
1182
+ }
1183
+ }, "de_GetConnectionCommandError");
1184
+ var de_GetOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
1185
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1186
+ return de_GetOrderCommandError(output, context);
1187
+ }
1188
+ const contents = (0, import_smithy_client.map)({
1189
+ $metadata: deserializeMetadata(output)
1190
+ });
1191
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1192
+ const doc = (0, import_smithy_client.take)(data, {
1193
+ Order: (_) => de_Order(_, context)
1194
+ });
1195
+ Object.assign(contents, doc);
1196
+ return contents;
1197
+ }, "de_GetOrderCommand");
1198
+ var de_GetOrderCommandError = /* @__PURE__ */ __name(async (output, context) => {
1199
+ const parsedOutput = {
1200
+ ...output,
1201
+ body: await parseErrorBody(output.body, context)
1202
+ };
1203
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1204
+ switch (errorCode) {
1205
+ case "InternalServerException":
1206
+ case "com.amazonaws.outposts#InternalServerException":
1207
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1208
+ case "NotFoundException":
1209
+ case "com.amazonaws.outposts#NotFoundException":
1210
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1211
+ case "ValidationException":
1212
+ case "com.amazonaws.outposts#ValidationException":
1213
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1214
+ default:
1215
+ const parsedBody = parsedOutput.body;
1216
+ return throwDefaultError({
1217
+ output,
1218
+ parsedBody,
1219
+ errorCode
1220
+ });
1221
+ }
1222
+ }, "de_GetOrderCommandError");
1223
+ var de_GetOutpostCommand = /* @__PURE__ */ __name(async (output, context) => {
1224
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1225
+ return de_GetOutpostCommandError(output, context);
1226
+ }
1227
+ const contents = (0, import_smithy_client.map)({
1228
+ $metadata: deserializeMetadata(output)
1229
+ });
1230
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1231
+ const doc = (0, import_smithy_client.take)(data, {
1232
+ Outpost: import_smithy_client._json
1233
+ });
1234
+ Object.assign(contents, doc);
1235
+ return contents;
1236
+ }, "de_GetOutpostCommand");
1237
+ var de_GetOutpostCommandError = /* @__PURE__ */ __name(async (output, context) => {
1238
+ const parsedOutput = {
1239
+ ...output,
1240
+ body: await parseErrorBody(output.body, context)
1241
+ };
1242
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1243
+ switch (errorCode) {
1244
+ case "AccessDeniedException":
1245
+ case "com.amazonaws.outposts#AccessDeniedException":
1246
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1247
+ case "InternalServerException":
1248
+ case "com.amazonaws.outposts#InternalServerException":
1249
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1250
+ case "NotFoundException":
1251
+ case "com.amazonaws.outposts#NotFoundException":
1252
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1253
+ case "ValidationException":
1254
+ case "com.amazonaws.outposts#ValidationException":
1255
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1256
+ default:
1257
+ const parsedBody = parsedOutput.body;
1258
+ return throwDefaultError({
1259
+ output,
1260
+ parsedBody,
1261
+ errorCode
1262
+ });
1263
+ }
1264
+ }, "de_GetOutpostCommandError");
1265
+ var de_GetOutpostInstanceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
1266
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1267
+ return de_GetOutpostInstanceTypesCommandError(output, context);
1268
+ }
1269
+ const contents = (0, import_smithy_client.map)({
1270
+ $metadata: deserializeMetadata(output)
1271
+ });
1272
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1273
+ const doc = (0, import_smithy_client.take)(data, {
1274
+ InstanceTypes: import_smithy_client._json,
1275
+ NextToken: import_smithy_client.expectString,
1276
+ OutpostArn: import_smithy_client.expectString,
1277
+ OutpostId: import_smithy_client.expectString
1278
+ });
1279
+ Object.assign(contents, doc);
1280
+ return contents;
1281
+ }, "de_GetOutpostInstanceTypesCommand");
1282
+ var de_GetOutpostInstanceTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1283
+ const parsedOutput = {
1284
+ ...output,
1285
+ body: await parseErrorBody(output.body, context)
1286
+ };
1287
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1288
+ switch (errorCode) {
1289
+ case "AccessDeniedException":
1290
+ case "com.amazonaws.outposts#AccessDeniedException":
1291
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1292
+ case "InternalServerException":
1293
+ case "com.amazonaws.outposts#InternalServerException":
1294
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1295
+ case "NotFoundException":
1296
+ case "com.amazonaws.outposts#NotFoundException":
1297
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1298
+ case "ValidationException":
1299
+ case "com.amazonaws.outposts#ValidationException":
1300
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1301
+ default:
1302
+ const parsedBody = parsedOutput.body;
1303
+ return throwDefaultError({
1304
+ output,
1305
+ parsedBody,
1306
+ errorCode
1307
+ });
1308
+ }
1309
+ }, "de_GetOutpostInstanceTypesCommandError");
1310
+ var de_GetSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
1311
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1312
+ return de_GetSiteCommandError(output, context);
1313
+ }
1314
+ const contents = (0, import_smithy_client.map)({
1315
+ $metadata: deserializeMetadata(output)
1316
+ });
1317
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1318
+ const doc = (0, import_smithy_client.take)(data, {
1319
+ Site: import_smithy_client._json
1320
+ });
1321
+ Object.assign(contents, doc);
1322
+ return contents;
1323
+ }, "de_GetSiteCommand");
1324
+ var de_GetSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1325
+ const parsedOutput = {
1326
+ ...output,
1327
+ body: await parseErrorBody(output.body, context)
1328
+ };
1329
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1330
+ switch (errorCode) {
1331
+ case "AccessDeniedException":
1332
+ case "com.amazonaws.outposts#AccessDeniedException":
1333
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1334
+ case "InternalServerException":
1335
+ case "com.amazonaws.outposts#InternalServerException":
1336
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1337
+ case "NotFoundException":
1338
+ case "com.amazonaws.outposts#NotFoundException":
1339
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1340
+ case "ValidationException":
1341
+ case "com.amazonaws.outposts#ValidationException":
1342
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1343
+ default:
1344
+ const parsedBody = parsedOutput.body;
1345
+ return throwDefaultError({
1346
+ output,
1347
+ parsedBody,
1348
+ errorCode
1349
+ });
1350
+ }
1351
+ }, "de_GetSiteCommandError");
1352
+ var de_GetSiteAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
1353
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1354
+ return de_GetSiteAddressCommandError(output, context);
1355
+ }
1356
+ const contents = (0, import_smithy_client.map)({
1357
+ $metadata: deserializeMetadata(output)
1358
+ });
1359
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1360
+ const doc = (0, import_smithy_client.take)(data, {
1361
+ Address: import_smithy_client._json,
1362
+ AddressType: import_smithy_client.expectString,
1363
+ SiteId: import_smithy_client.expectString
1364
+ });
1365
+ Object.assign(contents, doc);
1366
+ return contents;
1367
+ }, "de_GetSiteAddressCommand");
1368
+ var de_GetSiteAddressCommandError = /* @__PURE__ */ __name(async (output, context) => {
1369
+ const parsedOutput = {
1370
+ ...output,
1371
+ body: await parseErrorBody(output.body, context)
1372
+ };
1373
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1374
+ switch (errorCode) {
1375
+ case "AccessDeniedException":
1376
+ case "com.amazonaws.outposts#AccessDeniedException":
1377
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1378
+ case "InternalServerException":
1379
+ case "com.amazonaws.outposts#InternalServerException":
1380
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1381
+ case "NotFoundException":
1382
+ case "com.amazonaws.outposts#NotFoundException":
1383
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1384
+ case "ValidationException":
1385
+ case "com.amazonaws.outposts#ValidationException":
1386
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1387
+ default:
1388
+ const parsedBody = parsedOutput.body;
1389
+ return throwDefaultError({
1390
+ output,
1391
+ parsedBody,
1392
+ errorCode
1393
+ });
1394
+ }
1395
+ }, "de_GetSiteAddressCommandError");
1396
+ var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1397
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1398
+ return de_ListAssetsCommandError(output, context);
1399
+ }
1400
+ const contents = (0, import_smithy_client.map)({
1401
+ $metadata: deserializeMetadata(output)
1402
+ });
1403
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1404
+ const doc = (0, import_smithy_client.take)(data, {
1405
+ Assets: (_) => de_AssetListDefinition(_, context),
1406
+ NextToken: import_smithy_client.expectString
1407
+ });
1408
+ Object.assign(contents, doc);
1409
+ return contents;
1410
+ }, "de_ListAssetsCommand");
1411
+ var de_ListAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1412
+ const parsedOutput = {
1413
+ ...output,
1414
+ body: await parseErrorBody(output.body, context)
1415
+ };
1416
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1417
+ switch (errorCode) {
1418
+ case "AccessDeniedException":
1419
+ case "com.amazonaws.outposts#AccessDeniedException":
1420
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1421
+ case "InternalServerException":
1422
+ case "com.amazonaws.outposts#InternalServerException":
1423
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1424
+ case "NotFoundException":
1425
+ case "com.amazonaws.outposts#NotFoundException":
1426
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1427
+ case "ValidationException":
1428
+ case "com.amazonaws.outposts#ValidationException":
1429
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1430
+ default:
1431
+ const parsedBody = parsedOutput.body;
1432
+ return throwDefaultError({
1433
+ output,
1434
+ parsedBody,
1435
+ errorCode
1436
+ });
1437
+ }
1438
+ }, "de_ListAssetsCommandError");
1439
+ var de_ListCatalogItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
1440
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1441
+ return de_ListCatalogItemsCommandError(output, context);
1442
+ }
1443
+ const contents = (0, import_smithy_client.map)({
1444
+ $metadata: deserializeMetadata(output)
1445
+ });
1446
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1447
+ const doc = (0, import_smithy_client.take)(data, {
1448
+ CatalogItems: (_) => de_CatalogItemListDefinition(_, context),
1449
+ NextToken: import_smithy_client.expectString
1450
+ });
1451
+ Object.assign(contents, doc);
1452
+ return contents;
1453
+ }, "de_ListCatalogItemsCommand");
1454
+ var de_ListCatalogItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1455
+ const parsedOutput = {
1456
+ ...output,
1457
+ body: await parseErrorBody(output.body, context)
1458
+ };
1459
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1460
+ switch (errorCode) {
1461
+ case "InternalServerException":
1462
+ case "com.amazonaws.outposts#InternalServerException":
1463
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1464
+ case "NotFoundException":
1465
+ case "com.amazonaws.outposts#NotFoundException":
1466
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1467
+ case "ValidationException":
1468
+ case "com.amazonaws.outposts#ValidationException":
1469
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1470
+ default:
1471
+ const parsedBody = parsedOutput.body;
1472
+ return throwDefaultError({
1473
+ output,
1474
+ parsedBody,
1475
+ errorCode
1476
+ });
1477
+ }
1478
+ }, "de_ListCatalogItemsCommandError");
1479
+ var de_ListOrdersCommand = /* @__PURE__ */ __name(async (output, context) => {
1480
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1481
+ return de_ListOrdersCommandError(output, context);
1482
+ }
1483
+ const contents = (0, import_smithy_client.map)({
1484
+ $metadata: deserializeMetadata(output)
1485
+ });
1486
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1487
+ const doc = (0, import_smithy_client.take)(data, {
1488
+ NextToken: import_smithy_client.expectString,
1489
+ Orders: (_) => de_OrderSummaryListDefinition(_, context)
1490
+ });
1491
+ Object.assign(contents, doc);
1492
+ return contents;
1493
+ }, "de_ListOrdersCommand");
1494
+ var de_ListOrdersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1495
+ const parsedOutput = {
1496
+ ...output,
1497
+ body: await parseErrorBody(output.body, context)
1498
+ };
1499
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1500
+ switch (errorCode) {
1501
+ case "AccessDeniedException":
1502
+ case "com.amazonaws.outposts#AccessDeniedException":
1503
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1504
+ case "InternalServerException":
1505
+ case "com.amazonaws.outposts#InternalServerException":
1506
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1507
+ case "NotFoundException":
1508
+ case "com.amazonaws.outposts#NotFoundException":
1509
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1510
+ case "ValidationException":
1511
+ case "com.amazonaws.outposts#ValidationException":
1512
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1513
+ default:
1514
+ const parsedBody = parsedOutput.body;
1515
+ return throwDefaultError({
1516
+ output,
1517
+ parsedBody,
1518
+ errorCode
1519
+ });
1520
+ }
1521
+ }, "de_ListOrdersCommandError");
1522
+ var de_ListOutpostsCommand = /* @__PURE__ */ __name(async (output, context) => {
1523
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1524
+ return de_ListOutpostsCommandError(output, context);
1525
+ }
1526
+ const contents = (0, import_smithy_client.map)({
1527
+ $metadata: deserializeMetadata(output)
1528
+ });
1529
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1530
+ const doc = (0, import_smithy_client.take)(data, {
1531
+ NextToken: import_smithy_client.expectString,
1532
+ Outposts: import_smithy_client._json
1533
+ });
1534
+ Object.assign(contents, doc);
1535
+ return contents;
1536
+ }, "de_ListOutpostsCommand");
1537
+ var de_ListOutpostsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1538
+ const parsedOutput = {
1539
+ ...output,
1540
+ body: await parseErrorBody(output.body, context)
1541
+ };
1542
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1543
+ switch (errorCode) {
1544
+ case "AccessDeniedException":
1545
+ case "com.amazonaws.outposts#AccessDeniedException":
1546
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1547
+ case "InternalServerException":
1548
+ case "com.amazonaws.outposts#InternalServerException":
1549
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1550
+ case "ValidationException":
1551
+ case "com.amazonaws.outposts#ValidationException":
1552
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1553
+ default:
1554
+ const parsedBody = parsedOutput.body;
1555
+ return throwDefaultError({
1556
+ output,
1557
+ parsedBody,
1558
+ errorCode
1559
+ });
1560
+ }
1561
+ }, "de_ListOutpostsCommandError");
1562
+ var de_ListSitesCommand = /* @__PURE__ */ __name(async (output, context) => {
1563
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1564
+ return de_ListSitesCommandError(output, context);
1565
+ }
1566
+ const contents = (0, import_smithy_client.map)({
1567
+ $metadata: deserializeMetadata(output)
1568
+ });
1569
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1570
+ const doc = (0, import_smithy_client.take)(data, {
1571
+ NextToken: import_smithy_client.expectString,
1572
+ Sites: import_smithy_client._json
1573
+ });
1574
+ Object.assign(contents, doc);
1575
+ return contents;
1576
+ }, "de_ListSitesCommand");
1577
+ var de_ListSitesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1578
+ const parsedOutput = {
1579
+ ...output,
1580
+ body: await parseErrorBody(output.body, context)
1581
+ };
1582
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1583
+ switch (errorCode) {
1584
+ case "AccessDeniedException":
1585
+ case "com.amazonaws.outposts#AccessDeniedException":
1586
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1587
+ case "InternalServerException":
1588
+ case "com.amazonaws.outposts#InternalServerException":
1589
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1590
+ case "ValidationException":
1591
+ case "com.amazonaws.outposts#ValidationException":
1592
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1593
+ default:
1594
+ const parsedBody = parsedOutput.body;
1595
+ return throwDefaultError({
1596
+ output,
1597
+ parsedBody,
1598
+ errorCode
1599
+ });
1600
+ }
1601
+ }, "de_ListSitesCommandError");
1602
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1603
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1604
+ return de_ListTagsForResourceCommandError(output, context);
1605
+ }
1606
+ const contents = (0, import_smithy_client.map)({
1607
+ $metadata: deserializeMetadata(output)
1608
+ });
1609
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1610
+ const doc = (0, import_smithy_client.take)(data, {
1611
+ Tags: import_smithy_client._json
1612
+ });
1613
+ Object.assign(contents, doc);
1614
+ return contents;
1615
+ }, "de_ListTagsForResourceCommand");
1616
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1617
+ const parsedOutput = {
1618
+ ...output,
1619
+ body: await parseErrorBody(output.body, context)
1620
+ };
1621
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1622
+ switch (errorCode) {
1623
+ case "InternalServerException":
1624
+ case "com.amazonaws.outposts#InternalServerException":
1625
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1626
+ case "NotFoundException":
1627
+ case "com.amazonaws.outposts#NotFoundException":
1628
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1629
+ case "ValidationException":
1630
+ case "com.amazonaws.outposts#ValidationException":
1631
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1632
+ default:
1633
+ const parsedBody = parsedOutput.body;
1634
+ return throwDefaultError({
1635
+ output,
1636
+ parsedBody,
1637
+ errorCode
1638
+ });
1639
+ }
1640
+ }, "de_ListTagsForResourceCommandError");
1641
+ var de_StartConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1642
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1643
+ return de_StartConnectionCommandError(output, context);
1644
+ }
1645
+ const contents = (0, import_smithy_client.map)({
1646
+ $metadata: deserializeMetadata(output)
1647
+ });
1648
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1649
+ const doc = (0, import_smithy_client.take)(data, {
1650
+ ConnectionId: import_smithy_client.expectString,
1651
+ UnderlayIpAddress: import_smithy_client.expectString
1652
+ });
1653
+ Object.assign(contents, doc);
1654
+ return contents;
1655
+ }, "de_StartConnectionCommand");
1656
+ var de_StartConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1657
+ const parsedOutput = {
1658
+ ...output,
1659
+ body: await parseErrorBody(output.body, context)
1660
+ };
1661
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1662
+ switch (errorCode) {
1663
+ case "AccessDeniedException":
1664
+ case "com.amazonaws.outposts#AccessDeniedException":
1665
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1666
+ case "InternalServerException":
1667
+ case "com.amazonaws.outposts#InternalServerException":
1668
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1669
+ case "NotFoundException":
1670
+ case "com.amazonaws.outposts#NotFoundException":
1671
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1672
+ case "ValidationException":
1673
+ case "com.amazonaws.outposts#ValidationException":
1674
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1675
+ default:
1676
+ const parsedBody = parsedOutput.body;
1677
+ return throwDefaultError({
1678
+ output,
1679
+ parsedBody,
1680
+ errorCode
1681
+ });
1682
+ }
1683
+ }, "de_StartConnectionCommandError");
1684
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1685
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1686
+ return de_TagResourceCommandError(output, context);
1687
+ }
1688
+ const contents = (0, import_smithy_client.map)({
1689
+ $metadata: deserializeMetadata(output)
1690
+ });
1691
+ await (0, import_smithy_client.collectBody)(output.body, context);
1692
+ return contents;
1693
+ }, "de_TagResourceCommand");
1694
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1695
+ const parsedOutput = {
1696
+ ...output,
1697
+ body: await parseErrorBody(output.body, context)
1698
+ };
1699
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1700
+ switch (errorCode) {
1701
+ case "InternalServerException":
1702
+ case "com.amazonaws.outposts#InternalServerException":
1703
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1704
+ case "NotFoundException":
1705
+ case "com.amazonaws.outposts#NotFoundException":
1706
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1707
+ case "ValidationException":
1708
+ case "com.amazonaws.outposts#ValidationException":
1709
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1710
+ default:
1711
+ const parsedBody = parsedOutput.body;
1712
+ return throwDefaultError({
1713
+ output,
1714
+ parsedBody,
1715
+ errorCode
1716
+ });
1717
+ }
1718
+ }, "de_TagResourceCommandError");
1719
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1720
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1721
+ return de_UntagResourceCommandError(output, context);
1722
+ }
1723
+ const contents = (0, import_smithy_client.map)({
1724
+ $metadata: deserializeMetadata(output)
1725
+ });
1726
+ await (0, import_smithy_client.collectBody)(output.body, context);
1727
+ return contents;
1728
+ }, "de_UntagResourceCommand");
1729
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1730
+ const parsedOutput = {
1731
+ ...output,
1732
+ body: await parseErrorBody(output.body, context)
1733
+ };
1734
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1735
+ switch (errorCode) {
1736
+ case "InternalServerException":
1737
+ case "com.amazonaws.outposts#InternalServerException":
1738
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1739
+ case "NotFoundException":
1740
+ case "com.amazonaws.outposts#NotFoundException":
1741
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1742
+ case "ValidationException":
1743
+ case "com.amazonaws.outposts#ValidationException":
1744
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1745
+ default:
1746
+ const parsedBody = parsedOutput.body;
1747
+ return throwDefaultError({
1748
+ output,
1749
+ parsedBody,
1750
+ errorCode
1751
+ });
1752
+ }
1753
+ }, "de_UntagResourceCommandError");
1754
+ var de_UpdateOutpostCommand = /* @__PURE__ */ __name(async (output, context) => {
1755
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1756
+ return de_UpdateOutpostCommandError(output, context);
1757
+ }
1758
+ const contents = (0, import_smithy_client.map)({
1759
+ $metadata: deserializeMetadata(output)
1760
+ });
1761
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1762
+ const doc = (0, import_smithy_client.take)(data, {
1763
+ Outpost: import_smithy_client._json
1764
+ });
1765
+ Object.assign(contents, doc);
1766
+ return contents;
1767
+ }, "de_UpdateOutpostCommand");
1768
+ var de_UpdateOutpostCommandError = /* @__PURE__ */ __name(async (output, context) => {
1769
+ const parsedOutput = {
1770
+ ...output,
1771
+ body: await parseErrorBody(output.body, context)
1772
+ };
1773
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1774
+ switch (errorCode) {
1775
+ case "AccessDeniedException":
1776
+ case "com.amazonaws.outposts#AccessDeniedException":
1777
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1778
+ case "ConflictException":
1779
+ case "com.amazonaws.outposts#ConflictException":
1780
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1781
+ case "InternalServerException":
1782
+ case "com.amazonaws.outposts#InternalServerException":
1783
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1784
+ case "NotFoundException":
1785
+ case "com.amazonaws.outposts#NotFoundException":
1786
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1787
+ case "ValidationException":
1788
+ case "com.amazonaws.outposts#ValidationException":
1789
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1790
+ default:
1791
+ const parsedBody = parsedOutput.body;
1792
+ return throwDefaultError({
1793
+ output,
1794
+ parsedBody,
1795
+ errorCode
1796
+ });
1797
+ }
1798
+ }, "de_UpdateOutpostCommandError");
1799
+ var de_UpdateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
1800
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1801
+ return de_UpdateSiteCommandError(output, context);
1802
+ }
1803
+ const contents = (0, import_smithy_client.map)({
1804
+ $metadata: deserializeMetadata(output)
1805
+ });
1806
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1807
+ const doc = (0, import_smithy_client.take)(data, {
1808
+ Site: import_smithy_client._json
1809
+ });
1810
+ Object.assign(contents, doc);
1811
+ return contents;
1812
+ }, "de_UpdateSiteCommand");
1813
+ var de_UpdateSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1814
+ const parsedOutput = {
1815
+ ...output,
1816
+ body: await parseErrorBody(output.body, context)
1817
+ };
1818
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1819
+ switch (errorCode) {
1820
+ case "AccessDeniedException":
1821
+ case "com.amazonaws.outposts#AccessDeniedException":
1822
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1823
+ case "ConflictException":
1824
+ case "com.amazonaws.outposts#ConflictException":
1825
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1826
+ case "InternalServerException":
1827
+ case "com.amazonaws.outposts#InternalServerException":
1828
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1829
+ case "NotFoundException":
1830
+ case "com.amazonaws.outposts#NotFoundException":
1831
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1832
+ case "ValidationException":
1833
+ case "com.amazonaws.outposts#ValidationException":
1834
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1835
+ default:
1836
+ const parsedBody = parsedOutput.body;
1837
+ return throwDefaultError({
1838
+ output,
1839
+ parsedBody,
1840
+ errorCode
1841
+ });
1842
+ }
1843
+ }, "de_UpdateSiteCommandError");
1844
+ var de_UpdateSiteAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
1845
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1846
+ return de_UpdateSiteAddressCommandError(output, context);
1847
+ }
1848
+ const contents = (0, import_smithy_client.map)({
1849
+ $metadata: deserializeMetadata(output)
1850
+ });
1851
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1852
+ const doc = (0, import_smithy_client.take)(data, {
1853
+ Address: import_smithy_client._json,
1854
+ AddressType: import_smithy_client.expectString
1855
+ });
1856
+ Object.assign(contents, doc);
1857
+ return contents;
1858
+ }, "de_UpdateSiteAddressCommand");
1859
+ var de_UpdateSiteAddressCommandError = /* @__PURE__ */ __name(async (output, context) => {
1860
+ const parsedOutput = {
1861
+ ...output,
1862
+ body: await parseErrorBody(output.body, context)
1863
+ };
1864
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1865
+ switch (errorCode) {
1866
+ case "AccessDeniedException":
1867
+ case "com.amazonaws.outposts#AccessDeniedException":
1868
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1869
+ case "ConflictException":
1870
+ case "com.amazonaws.outposts#ConflictException":
1871
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1872
+ case "InternalServerException":
1873
+ case "com.amazonaws.outposts#InternalServerException":
1874
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1875
+ case "NotFoundException":
1876
+ case "com.amazonaws.outposts#NotFoundException":
1877
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1878
+ case "ValidationException":
1879
+ case "com.amazonaws.outposts#ValidationException":
1880
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1881
+ default:
1882
+ const parsedBody = parsedOutput.body;
1883
+ return throwDefaultError({
1884
+ output,
1885
+ parsedBody,
1886
+ errorCode
1887
+ });
1888
+ }
1889
+ }, "de_UpdateSiteAddressCommandError");
1890
+ var de_UpdateSiteRackPhysicalPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
1891
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1892
+ return de_UpdateSiteRackPhysicalPropertiesCommandError(output, context);
1893
+ }
1894
+ const contents = (0, import_smithy_client.map)({
1895
+ $metadata: deserializeMetadata(output)
1896
+ });
1897
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1898
+ const doc = (0, import_smithy_client.take)(data, {
1899
+ Site: import_smithy_client._json
1900
+ });
1901
+ Object.assign(contents, doc);
1902
+ return contents;
1903
+ }, "de_UpdateSiteRackPhysicalPropertiesCommand");
1904
+ var de_UpdateSiteRackPhysicalPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1905
+ const parsedOutput = {
1906
+ ...output,
1907
+ body: await parseErrorBody(output.body, context)
1908
+ };
1909
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1910
+ switch (errorCode) {
1911
+ case "AccessDeniedException":
1912
+ case "com.amazonaws.outposts#AccessDeniedException":
1913
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1914
+ case "ConflictException":
1915
+ case "com.amazonaws.outposts#ConflictException":
1916
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1917
+ case "InternalServerException":
1918
+ case "com.amazonaws.outposts#InternalServerException":
1919
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1920
+ case "NotFoundException":
1921
+ case "com.amazonaws.outposts#NotFoundException":
1922
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1923
+ case "ValidationException":
1924
+ case "com.amazonaws.outposts#ValidationException":
1925
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1926
+ default:
1927
+ const parsedBody = parsedOutput.body;
1928
+ return throwDefaultError({
1929
+ output,
1930
+ parsedBody,
1931
+ errorCode
1932
+ });
1933
+ }
1934
+ }, "de_UpdateSiteRackPhysicalPropertiesCommandError");
1935
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(OutpostsServiceException);
1936
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1937
+ const contents = (0, import_smithy_client.map)({});
1938
+ const data = parsedOutput.body;
1939
+ const doc = (0, import_smithy_client.take)(data, {
1940
+ Message: import_smithy_client.expectString
1941
+ });
1942
+ Object.assign(contents, doc);
1943
+ const exception = new AccessDeniedException({
1944
+ $metadata: deserializeMetadata(parsedOutput),
1945
+ ...contents
1946
+ });
1947
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1948
+ }, "de_AccessDeniedExceptionRes");
1949
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1950
+ const contents = (0, import_smithy_client.map)({});
1951
+ const data = parsedOutput.body;
1952
+ const doc = (0, import_smithy_client.take)(data, {
1953
+ Message: import_smithy_client.expectString,
1954
+ ResourceId: import_smithy_client.expectString,
1955
+ ResourceType: import_smithy_client.expectString
1956
+ });
1957
+ Object.assign(contents, doc);
1958
+ const exception = new ConflictException({
1959
+ $metadata: deserializeMetadata(parsedOutput),
1960
+ ...contents
1961
+ });
1962
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1963
+ }, "de_ConflictExceptionRes");
1964
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1965
+ const contents = (0, import_smithy_client.map)({});
1966
+ const data = parsedOutput.body;
1967
+ const doc = (0, import_smithy_client.take)(data, {
1968
+ Message: import_smithy_client.expectString
1969
+ });
1970
+ Object.assign(contents, doc);
1971
+ const exception = new InternalServerException({
1972
+ $metadata: deserializeMetadata(parsedOutput),
1973
+ ...contents
1974
+ });
1975
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1976
+ }, "de_InternalServerExceptionRes");
1977
+ var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1978
+ const contents = (0, import_smithy_client.map)({});
1979
+ const data = parsedOutput.body;
1980
+ const doc = (0, import_smithy_client.take)(data, {
1981
+ Message: import_smithy_client.expectString
1982
+ });
1983
+ Object.assign(contents, doc);
1984
+ const exception = new NotFoundException({
1985
+ $metadata: deserializeMetadata(parsedOutput),
1986
+ ...contents
1987
+ });
1988
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1989
+ }, "de_NotFoundExceptionRes");
1990
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1991
+ const contents = (0, import_smithy_client.map)({});
1992
+ const data = parsedOutput.body;
1993
+ const doc = (0, import_smithy_client.take)(data, {
1994
+ Message: import_smithy_client.expectString
1995
+ });
1996
+ Object.assign(contents, doc);
1997
+ const exception = new ServiceQuotaExceededException({
1998
+ $metadata: deserializeMetadata(parsedOutput),
1999
+ ...contents
2000
+ });
2001
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2002
+ }, "de_ServiceQuotaExceededExceptionRes");
2003
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2004
+ const contents = (0, import_smithy_client.map)({});
2005
+ const data = parsedOutput.body;
2006
+ const doc = (0, import_smithy_client.take)(data, {
2007
+ Message: import_smithy_client.expectString
2008
+ });
2009
+ Object.assign(contents, doc);
2010
+ const exception = new ValidationException({
2011
+ $metadata: deserializeMetadata(parsedOutput),
2012
+ ...contents
2013
+ });
2014
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2015
+ }, "de_ValidationExceptionRes");
2016
+ var de_AssetInfo = /* @__PURE__ */ __name((output, context) => {
2017
+ return (0, import_smithy_client.take)(output, {
2018
+ AssetId: import_smithy_client.expectString,
2019
+ AssetLocation: (_) => de_AssetLocation(_, context),
2020
+ AssetType: import_smithy_client.expectString,
2021
+ ComputeAttributes: import_smithy_client._json,
2022
+ RackId: import_smithy_client.expectString
2023
+ });
2024
+ }, "de_AssetInfo");
2025
+ var de_AssetListDefinition = /* @__PURE__ */ __name((output, context) => {
2026
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2027
+ return de_AssetInfo(entry, context);
2028
+ });
2029
+ return retVal;
2030
+ }, "de_AssetListDefinition");
2031
+ var de_AssetLocation = /* @__PURE__ */ __name((output, context) => {
2032
+ return (0, import_smithy_client.take)(output, {
2033
+ RackElevation: import_smithy_client.limitedParseFloat32
2034
+ });
2035
+ }, "de_AssetLocation");
2036
+ var de_CatalogItem = /* @__PURE__ */ __name((output, context) => {
2037
+ return (0, import_smithy_client.take)(output, {
2038
+ CatalogItemId: import_smithy_client.expectString,
2039
+ EC2Capacities: import_smithy_client._json,
2040
+ ItemStatus: import_smithy_client.expectString,
2041
+ PowerKva: import_smithy_client.limitedParseFloat32,
2042
+ SupportedStorage: import_smithy_client._json,
2043
+ SupportedUplinkGbps: import_smithy_client._json,
2044
+ WeightLbs: import_smithy_client.expectInt32
2045
+ });
2046
+ }, "de_CatalogItem");
2047
+ var de_CatalogItemListDefinition = /* @__PURE__ */ __name((output, context) => {
2048
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2049
+ return de_CatalogItem(entry, context);
2050
+ });
2051
+ return retVal;
2052
+ }, "de_CatalogItemListDefinition");
2053
+ var de_Order = /* @__PURE__ */ __name((output, context) => {
2054
+ return (0, import_smithy_client.take)(output, {
2055
+ LineItems: import_smithy_client._json,
2056
+ OrderFulfilledDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2057
+ OrderId: import_smithy_client.expectString,
2058
+ OrderSubmissionDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2059
+ OrderType: import_smithy_client.expectString,
2060
+ OutpostId: import_smithy_client.expectString,
2061
+ PaymentOption: import_smithy_client.expectString,
2062
+ PaymentTerm: import_smithy_client.expectString,
2063
+ Status: import_smithy_client.expectString
2064
+ });
2065
+ }, "de_Order");
2066
+ var de_OrderSummary = /* @__PURE__ */ __name((output, context) => {
2067
+ return (0, import_smithy_client.take)(output, {
2068
+ LineItemCountsByStatus: import_smithy_client._json,
2069
+ OrderFulfilledDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2070
+ OrderId: import_smithy_client.expectString,
2071
+ OrderSubmissionDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2072
+ OrderType: import_smithy_client.expectString,
2073
+ OutpostId: import_smithy_client.expectString,
2074
+ Status: import_smithy_client.expectString
2075
+ });
2076
+ }, "de_OrderSummary");
2077
+ var de_OrderSummaryListDefinition = /* @__PURE__ */ __name((output, context) => {
2078
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2079
+ return de_OrderSummary(entry, context);
2080
+ });
2081
+ return retVal;
2082
+ }, "de_OrderSummaryListDefinition");
2083
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2084
+ httpStatusCode: output.statusCode,
2085
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2086
+ extendedRequestId: output.headers["x-amz-id-2"],
2087
+ cfId: output.headers["x-amz-cf-id"]
2088
+ }), "deserializeMetadata");
2089
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2090
+ var _AT = "AddressType";
2091
+ var _AZF = "AvailabilityZoneFilter";
2092
+ var _AZIF = "AvailabilityZoneIdFilter";
2093
+ var _ECFF = "EC2FamilyFilter";
2094
+ var _HIF = "HostIdFilter";
2095
+ var _ICF = "ItemClassFilter";
2096
+ var _LCSF = "LifeCycleStatusFilter";
2097
+ var _MR = "MaxResults";
2098
+ var _NT = "NextToken";
2099
+ var _OACCF = "OperatingAddressCountryCodeFilter";
2100
+ var _OACF = "OperatingAddressCityFilter";
2101
+ var _OASORF = "OperatingAddressStateOrRegionFilter";
2102
+ var _OIF = "OutpostIdentifierFilter";
2103
+ var _SF = "StatusFilter";
2104
+ var _SSF = "SupportedStorageFilter";
2105
+ var _TK = "TagKeys";
2106
+ var _tK = "tagKeys";
2107
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2108
+ if (encoded.length) {
2109
+ return JSON.parse(encoded);
2110
+ }
2111
+ return {};
2112
+ }), "parseBody");
2113
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2114
+ const value = await parseBody(errorBody, context);
2115
+ value.message = value.message ?? value.Message;
2116
+ return value;
2117
+ }, "parseErrorBody");
2118
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2119
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2120
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2121
+ let cleanValue = rawValue;
2122
+ if (typeof cleanValue === "number") {
2123
+ cleanValue = cleanValue.toString();
2124
+ }
2125
+ if (cleanValue.indexOf(",") >= 0) {
2126
+ cleanValue = cleanValue.split(",")[0];
2127
+ }
2128
+ if (cleanValue.indexOf(":") >= 0) {
2129
+ cleanValue = cleanValue.split(":")[0];
2130
+ }
2131
+ if (cleanValue.indexOf("#") >= 0) {
2132
+ cleanValue = cleanValue.split("#")[1];
2133
+ }
2134
+ return cleanValue;
2135
+ }, "sanitizeErrorCode");
2136
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2137
+ if (headerKey !== void 0) {
2138
+ return sanitizeErrorCode(output.headers[headerKey]);
2139
+ }
2140
+ if (data.code !== void 0) {
2141
+ return sanitizeErrorCode(data.code);
2142
+ }
2143
+ if (data["__type"] !== void 0) {
2144
+ return sanitizeErrorCode(data["__type"]);
2145
+ }
2146
+ }, "loadRestJsonErrorCode");
2147
+
2148
+ // src/commands/CancelOrderCommand.ts
2149
+ var _CancelOrderCommand = class _CancelOrderCommand extends import_smithy_client.Command.classBuilder().ep({
2150
+ ...commonParams
2151
+ }).m(function(Command, cs, config, o) {
2152
+ return [
2153
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2154
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2155
+ ];
2156
+ }).s("OutpostsOlafService", "CancelOrder", {}).n("OutpostsClient", "CancelOrderCommand").f(void 0, void 0).ser(se_CancelOrderCommand).de(de_CancelOrderCommand).build() {
2157
+ };
2158
+ __name(_CancelOrderCommand, "CancelOrderCommand");
2159
+ var CancelOrderCommand = _CancelOrderCommand;
2160
+
2161
+ // src/commands/CreateOrderCommand.ts
2162
+
2163
+
2164
+
2165
+
2166
+ var _CreateOrderCommand = class _CreateOrderCommand extends import_smithy_client.Command.classBuilder().ep({
2167
+ ...commonParams
2168
+ }).m(function(Command, cs, config, o) {
2169
+ return [
2170
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2171
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2172
+ ];
2173
+ }).s("OutpostsOlafService", "CreateOrder", {}).n("OutpostsClient", "CreateOrderCommand").f(void 0, void 0).ser(se_CreateOrderCommand).de(de_CreateOrderCommand).build() {
2174
+ };
2175
+ __name(_CreateOrderCommand, "CreateOrderCommand");
2176
+ var CreateOrderCommand = _CreateOrderCommand;
2177
+
2178
+ // src/commands/CreateOutpostCommand.ts
2179
+
2180
+
2181
+
2182
+
2183
+ var _CreateOutpostCommand = class _CreateOutpostCommand extends import_smithy_client.Command.classBuilder().ep({
2184
+ ...commonParams
2185
+ }).m(function(Command, cs, config, o) {
2186
+ return [
2187
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2188
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2189
+ ];
2190
+ }).s("OutpostsOlafService", "CreateOutpost", {}).n("OutpostsClient", "CreateOutpostCommand").f(void 0, void 0).ser(se_CreateOutpostCommand).de(de_CreateOutpostCommand).build() {
2191
+ };
2192
+ __name(_CreateOutpostCommand, "CreateOutpostCommand");
2193
+ var CreateOutpostCommand = _CreateOutpostCommand;
2194
+
2195
+ // src/commands/CreateSiteCommand.ts
2196
+
2197
+
2198
+
2199
+
2200
+ var _CreateSiteCommand = class _CreateSiteCommand extends import_smithy_client.Command.classBuilder().ep({
2201
+ ...commonParams
2202
+ }).m(function(Command, cs, config, o) {
2203
+ return [
2204
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2205
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2206
+ ];
2207
+ }).s("OutpostsOlafService", "CreateSite", {}).n("OutpostsClient", "CreateSiteCommand").f(void 0, void 0).ser(se_CreateSiteCommand).de(de_CreateSiteCommand).build() {
2208
+ };
2209
+ __name(_CreateSiteCommand, "CreateSiteCommand");
2210
+ var CreateSiteCommand = _CreateSiteCommand;
2211
+
2212
+ // src/commands/DeleteOutpostCommand.ts
2213
+
2214
+
2215
+
2216
+
2217
+ var _DeleteOutpostCommand = class _DeleteOutpostCommand extends import_smithy_client.Command.classBuilder().ep({
2218
+ ...commonParams
2219
+ }).m(function(Command, cs, config, o) {
2220
+ return [
2221
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2222
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2223
+ ];
2224
+ }).s("OutpostsOlafService", "DeleteOutpost", {}).n("OutpostsClient", "DeleteOutpostCommand").f(void 0, void 0).ser(se_DeleteOutpostCommand).de(de_DeleteOutpostCommand).build() {
2225
+ };
2226
+ __name(_DeleteOutpostCommand, "DeleteOutpostCommand");
2227
+ var DeleteOutpostCommand = _DeleteOutpostCommand;
2228
+
2229
+ // src/commands/DeleteSiteCommand.ts
2230
+
2231
+
2232
+
2233
+
2234
+ var _DeleteSiteCommand = class _DeleteSiteCommand extends import_smithy_client.Command.classBuilder().ep({
2235
+ ...commonParams
2236
+ }).m(function(Command, cs, config, o) {
2237
+ return [
2238
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2239
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2240
+ ];
2241
+ }).s("OutpostsOlafService", "DeleteSite", {}).n("OutpostsClient", "DeleteSiteCommand").f(void 0, void 0).ser(se_DeleteSiteCommand).de(de_DeleteSiteCommand).build() {
2242
+ };
2243
+ __name(_DeleteSiteCommand, "DeleteSiteCommand");
2244
+ var DeleteSiteCommand = _DeleteSiteCommand;
2245
+
2246
+ // src/commands/GetCatalogItemCommand.ts
2247
+
2248
+
2249
+
2250
+
2251
+ var _GetCatalogItemCommand = class _GetCatalogItemCommand extends import_smithy_client.Command.classBuilder().ep({
2252
+ ...commonParams
2253
+ }).m(function(Command, cs, config, o) {
2254
+ return [
2255
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2256
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2257
+ ];
2258
+ }).s("OutpostsOlafService", "GetCatalogItem", {}).n("OutpostsClient", "GetCatalogItemCommand").f(void 0, void 0).ser(se_GetCatalogItemCommand).de(de_GetCatalogItemCommand).build() {
2259
+ };
2260
+ __name(_GetCatalogItemCommand, "GetCatalogItemCommand");
2261
+ var GetCatalogItemCommand = _GetCatalogItemCommand;
2262
+
2263
+ // src/commands/GetConnectionCommand.ts
2264
+
2265
+
2266
+
2267
+
2268
+ var _GetConnectionCommand = class _GetConnectionCommand extends import_smithy_client.Command.classBuilder().ep({
2269
+ ...commonParams
2270
+ }).m(function(Command, cs, config, o) {
2271
+ return [
2272
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2273
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2274
+ ];
2275
+ }).s("OutpostsOlafService", "GetConnection", {}).n("OutpostsClient", "GetConnectionCommand").f(void 0, void 0).ser(se_GetConnectionCommand).de(de_GetConnectionCommand).build() {
2276
+ };
2277
+ __name(_GetConnectionCommand, "GetConnectionCommand");
2278
+ var GetConnectionCommand = _GetConnectionCommand;
2279
+
2280
+ // src/commands/GetOrderCommand.ts
2281
+
2282
+
2283
+
2284
+
2285
+ var _GetOrderCommand = class _GetOrderCommand extends import_smithy_client.Command.classBuilder().ep({
2286
+ ...commonParams
2287
+ }).m(function(Command, cs, config, o) {
2288
+ return [
2289
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2290
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2291
+ ];
2292
+ }).s("OutpostsOlafService", "GetOrder", {}).n("OutpostsClient", "GetOrderCommand").f(void 0, void 0).ser(se_GetOrderCommand).de(de_GetOrderCommand).build() {
2293
+ };
2294
+ __name(_GetOrderCommand, "GetOrderCommand");
2295
+ var GetOrderCommand = _GetOrderCommand;
2296
+
2297
+ // src/commands/GetOutpostCommand.ts
2298
+
2299
+
2300
+
2301
+
2302
+ var _GetOutpostCommand = class _GetOutpostCommand extends import_smithy_client.Command.classBuilder().ep({
2303
+ ...commonParams
2304
+ }).m(function(Command, cs, config, o) {
2305
+ return [
2306
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2307
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2308
+ ];
2309
+ }).s("OutpostsOlafService", "GetOutpost", {}).n("OutpostsClient", "GetOutpostCommand").f(void 0, void 0).ser(se_GetOutpostCommand).de(de_GetOutpostCommand).build() {
2310
+ };
2311
+ __name(_GetOutpostCommand, "GetOutpostCommand");
2312
+ var GetOutpostCommand = _GetOutpostCommand;
2313
+
2314
+ // src/commands/GetOutpostInstanceTypesCommand.ts
2315
+
2316
+
2317
+
2318
+
2319
+ var _GetOutpostInstanceTypesCommand = class _GetOutpostInstanceTypesCommand extends import_smithy_client.Command.classBuilder().ep({
2320
+ ...commonParams
2321
+ }).m(function(Command, cs, config, o) {
2322
+ return [
2323
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2324
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2325
+ ];
2326
+ }).s("OutpostsOlafService", "GetOutpostInstanceTypes", {}).n("OutpostsClient", "GetOutpostInstanceTypesCommand").f(void 0, void 0).ser(se_GetOutpostInstanceTypesCommand).de(de_GetOutpostInstanceTypesCommand).build() {
2327
+ };
2328
+ __name(_GetOutpostInstanceTypesCommand, "GetOutpostInstanceTypesCommand");
2329
+ var GetOutpostInstanceTypesCommand = _GetOutpostInstanceTypesCommand;
2330
+
2331
+ // src/commands/GetSiteAddressCommand.ts
2332
+
2333
+
2334
+
2335
+
2336
+ var _GetSiteAddressCommand = class _GetSiteAddressCommand extends import_smithy_client.Command.classBuilder().ep({
2337
+ ...commonParams
2338
+ }).m(function(Command, cs, config, o) {
2339
+ return [
2340
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2341
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2342
+ ];
2343
+ }).s("OutpostsOlafService", "GetSiteAddress", {}).n("OutpostsClient", "GetSiteAddressCommand").f(void 0, void 0).ser(se_GetSiteAddressCommand).de(de_GetSiteAddressCommand).build() {
2344
+ };
2345
+ __name(_GetSiteAddressCommand, "GetSiteAddressCommand");
2346
+ var GetSiteAddressCommand = _GetSiteAddressCommand;
2347
+
2348
+ // src/commands/GetSiteCommand.ts
2349
+
2350
+
2351
+
2352
+
2353
+ var _GetSiteCommand = class _GetSiteCommand extends import_smithy_client.Command.classBuilder().ep({
2354
+ ...commonParams
2355
+ }).m(function(Command, cs, config, o) {
2356
+ return [
2357
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2358
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2359
+ ];
2360
+ }).s("OutpostsOlafService", "GetSite", {}).n("OutpostsClient", "GetSiteCommand").f(void 0, void 0).ser(se_GetSiteCommand).de(de_GetSiteCommand).build() {
2361
+ };
2362
+ __name(_GetSiteCommand, "GetSiteCommand");
2363
+ var GetSiteCommand = _GetSiteCommand;
2364
+
2365
+ // src/commands/ListAssetsCommand.ts
2366
+
2367
+
2368
+
2369
+
2370
+ var _ListAssetsCommand = class _ListAssetsCommand extends import_smithy_client.Command.classBuilder().ep({
2371
+ ...commonParams
2372
+ }).m(function(Command, cs, config, o) {
2373
+ return [
2374
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2375
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2376
+ ];
2377
+ }).s("OutpostsOlafService", "ListAssets", {}).n("OutpostsClient", "ListAssetsCommand").f(void 0, void 0).ser(se_ListAssetsCommand).de(de_ListAssetsCommand).build() {
2378
+ };
2379
+ __name(_ListAssetsCommand, "ListAssetsCommand");
2380
+ var ListAssetsCommand = _ListAssetsCommand;
2381
+
2382
+ // src/commands/ListCatalogItemsCommand.ts
2383
+
2384
+
2385
+
2386
+
2387
+ var _ListCatalogItemsCommand = class _ListCatalogItemsCommand extends import_smithy_client.Command.classBuilder().ep({
2388
+ ...commonParams
2389
+ }).m(function(Command, cs, config, o) {
2390
+ return [
2391
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2392
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2393
+ ];
2394
+ }).s("OutpostsOlafService", "ListCatalogItems", {}).n("OutpostsClient", "ListCatalogItemsCommand").f(void 0, void 0).ser(se_ListCatalogItemsCommand).de(de_ListCatalogItemsCommand).build() {
2395
+ };
2396
+ __name(_ListCatalogItemsCommand, "ListCatalogItemsCommand");
2397
+ var ListCatalogItemsCommand = _ListCatalogItemsCommand;
2398
+
2399
+ // src/commands/ListOrdersCommand.ts
2400
+
2401
+
2402
+
2403
+
2404
+ var _ListOrdersCommand = class _ListOrdersCommand extends import_smithy_client.Command.classBuilder().ep({
2405
+ ...commonParams
2406
+ }).m(function(Command, cs, config, o) {
2407
+ return [
2408
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2409
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2410
+ ];
2411
+ }).s("OutpostsOlafService", "ListOrders", {}).n("OutpostsClient", "ListOrdersCommand").f(void 0, void 0).ser(se_ListOrdersCommand).de(de_ListOrdersCommand).build() {
2412
+ };
2413
+ __name(_ListOrdersCommand, "ListOrdersCommand");
2414
+ var ListOrdersCommand = _ListOrdersCommand;
2415
+
2416
+ // src/commands/ListOutpostsCommand.ts
2417
+
2418
+
2419
+
2420
+
2421
+ var _ListOutpostsCommand = class _ListOutpostsCommand extends import_smithy_client.Command.classBuilder().ep({
2422
+ ...commonParams
2423
+ }).m(function(Command, cs, config, o) {
2424
+ return [
2425
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2426
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2427
+ ];
2428
+ }).s("OutpostsOlafService", "ListOutposts", {}).n("OutpostsClient", "ListOutpostsCommand").f(void 0, void 0).ser(se_ListOutpostsCommand).de(de_ListOutpostsCommand).build() {
2429
+ };
2430
+ __name(_ListOutpostsCommand, "ListOutpostsCommand");
2431
+ var ListOutpostsCommand = _ListOutpostsCommand;
2432
+
2433
+ // src/commands/ListSitesCommand.ts
2434
+
2435
+
2436
+
2437
+
2438
+ var _ListSitesCommand = class _ListSitesCommand extends import_smithy_client.Command.classBuilder().ep({
2439
+ ...commonParams
2440
+ }).m(function(Command, cs, config, o) {
2441
+ return [
2442
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2443
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2444
+ ];
2445
+ }).s("OutpostsOlafService", "ListSites", {}).n("OutpostsClient", "ListSitesCommand").f(void 0, void 0).ser(se_ListSitesCommand).de(de_ListSitesCommand).build() {
2446
+ };
2447
+ __name(_ListSitesCommand, "ListSitesCommand");
2448
+ var ListSitesCommand = _ListSitesCommand;
2449
+
2450
+ // src/commands/ListTagsForResourceCommand.ts
2451
+
2452
+
2453
+
2454
+
2455
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2456
+ ...commonParams
2457
+ }).m(function(Command, cs, config, o) {
2458
+ return [
2459
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2460
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2461
+ ];
2462
+ }).s("OutpostsOlafService", "ListTagsForResource", {}).n("OutpostsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2463
+ };
2464
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2465
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2466
+
2467
+ // src/commands/StartConnectionCommand.ts
2468
+
2469
+
2470
+
2471
+
2472
+ var _StartConnectionCommand = class _StartConnectionCommand extends import_smithy_client.Command.classBuilder().ep({
2473
+ ...commonParams
2474
+ }).m(function(Command, cs, config, o) {
2475
+ return [
2476
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2477
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2478
+ ];
2479
+ }).s("OutpostsOlafService", "StartConnection", {}).n("OutpostsClient", "StartConnectionCommand").f(void 0, void 0).ser(se_StartConnectionCommand).de(de_StartConnectionCommand).build() {
2480
+ };
2481
+ __name(_StartConnectionCommand, "StartConnectionCommand");
2482
+ var StartConnectionCommand = _StartConnectionCommand;
2483
+
2484
+ // src/commands/TagResourceCommand.ts
2485
+
2486
+
2487
+
2488
+
2489
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2490
+ ...commonParams
2491
+ }).m(function(Command, cs, config, o) {
2492
+ return [
2493
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2494
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2495
+ ];
2496
+ }).s("OutpostsOlafService", "TagResource", {}).n("OutpostsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2497
+ };
2498
+ __name(_TagResourceCommand, "TagResourceCommand");
2499
+ var TagResourceCommand = _TagResourceCommand;
2500
+
2501
+ // src/commands/UntagResourceCommand.ts
2502
+
2503
+
2504
+
2505
+
2506
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2507
+ ...commonParams
2508
+ }).m(function(Command, cs, config, o) {
2509
+ return [
2510
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2511
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2512
+ ];
2513
+ }).s("OutpostsOlafService", "UntagResource", {}).n("OutpostsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2514
+ };
2515
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2516
+ var UntagResourceCommand = _UntagResourceCommand;
2517
+
2518
+ // src/commands/UpdateOutpostCommand.ts
2519
+
2520
+
2521
+
2522
+
2523
+ var _UpdateOutpostCommand = class _UpdateOutpostCommand extends import_smithy_client.Command.classBuilder().ep({
2524
+ ...commonParams
2525
+ }).m(function(Command, cs, config, o) {
2526
+ return [
2527
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2528
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2529
+ ];
2530
+ }).s("OutpostsOlafService", "UpdateOutpost", {}).n("OutpostsClient", "UpdateOutpostCommand").f(void 0, void 0).ser(se_UpdateOutpostCommand).de(de_UpdateOutpostCommand).build() {
2531
+ };
2532
+ __name(_UpdateOutpostCommand, "UpdateOutpostCommand");
2533
+ var UpdateOutpostCommand = _UpdateOutpostCommand;
2534
+
2535
+ // src/commands/UpdateSiteAddressCommand.ts
2536
+
2537
+
2538
+
2539
+
2540
+ var _UpdateSiteAddressCommand = class _UpdateSiteAddressCommand extends import_smithy_client.Command.classBuilder().ep({
2541
+ ...commonParams
2542
+ }).m(function(Command, cs, config, o) {
2543
+ return [
2544
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2545
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2546
+ ];
2547
+ }).s("OutpostsOlafService", "UpdateSiteAddress", {}).n("OutpostsClient", "UpdateSiteAddressCommand").f(void 0, void 0).ser(se_UpdateSiteAddressCommand).de(de_UpdateSiteAddressCommand).build() {
2548
+ };
2549
+ __name(_UpdateSiteAddressCommand, "UpdateSiteAddressCommand");
2550
+ var UpdateSiteAddressCommand = _UpdateSiteAddressCommand;
2551
+
2552
+ // src/commands/UpdateSiteCommand.ts
2553
+
2554
+
2555
+
2556
+
2557
+ var _UpdateSiteCommand = class _UpdateSiteCommand extends import_smithy_client.Command.classBuilder().ep({
2558
+ ...commonParams
2559
+ }).m(function(Command, cs, config, o) {
2560
+ return [
2561
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2562
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2563
+ ];
2564
+ }).s("OutpostsOlafService", "UpdateSite", {}).n("OutpostsClient", "UpdateSiteCommand").f(void 0, void 0).ser(se_UpdateSiteCommand).de(de_UpdateSiteCommand).build() {
2565
+ };
2566
+ __name(_UpdateSiteCommand, "UpdateSiteCommand");
2567
+ var UpdateSiteCommand = _UpdateSiteCommand;
2568
+
2569
+ // src/commands/UpdateSiteRackPhysicalPropertiesCommand.ts
2570
+
2571
+
2572
+
2573
+
2574
+ var _UpdateSiteRackPhysicalPropertiesCommand = class _UpdateSiteRackPhysicalPropertiesCommand extends import_smithy_client.Command.classBuilder().ep({
2575
+ ...commonParams
2576
+ }).m(function(Command, cs, config, o) {
2577
+ return [
2578
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2579
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2580
+ ];
2581
+ }).s("OutpostsOlafService", "UpdateSiteRackPhysicalProperties", {}).n("OutpostsClient", "UpdateSiteRackPhysicalPropertiesCommand").f(void 0, void 0).ser(se_UpdateSiteRackPhysicalPropertiesCommand).de(de_UpdateSiteRackPhysicalPropertiesCommand).build() {
2582
+ };
2583
+ __name(_UpdateSiteRackPhysicalPropertiesCommand, "UpdateSiteRackPhysicalPropertiesCommand");
2584
+ var UpdateSiteRackPhysicalPropertiesCommand = _UpdateSiteRackPhysicalPropertiesCommand;
2585
+
2586
+ // src/Outposts.ts
2587
+ var commands = {
2588
+ CancelOrderCommand,
2589
+ CreateOrderCommand,
2590
+ CreateOutpostCommand,
2591
+ CreateSiteCommand,
2592
+ DeleteOutpostCommand,
2593
+ DeleteSiteCommand,
2594
+ GetCatalogItemCommand,
2595
+ GetConnectionCommand,
2596
+ GetOrderCommand,
2597
+ GetOutpostCommand,
2598
+ GetOutpostInstanceTypesCommand,
2599
+ GetSiteCommand,
2600
+ GetSiteAddressCommand,
2601
+ ListAssetsCommand,
2602
+ ListCatalogItemsCommand,
2603
+ ListOrdersCommand,
2604
+ ListOutpostsCommand,
2605
+ ListSitesCommand,
2606
+ ListTagsForResourceCommand,
2607
+ StartConnectionCommand,
2608
+ TagResourceCommand,
2609
+ UntagResourceCommand,
2610
+ UpdateOutpostCommand,
2611
+ UpdateSiteCommand,
2612
+ UpdateSiteAddressCommand,
2613
+ UpdateSiteRackPhysicalPropertiesCommand
2614
+ };
2615
+ var _Outposts = class _Outposts extends OutpostsClient {
2616
+ };
2617
+ __name(_Outposts, "Outposts");
2618
+ var Outposts = _Outposts;
2619
+ (0, import_smithy_client.createAggregatedClient)(commands, Outposts);
2620
+
2621
+ // src/pagination/GetOutpostInstanceTypesPaginator.ts
2622
+
2623
+ var paginateGetOutpostInstanceTypes = (0, import_core.createPaginator)(OutpostsClient, GetOutpostInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
2624
+
2625
+ // src/pagination/ListAssetsPaginator.ts
2626
+
2627
+ var paginateListAssets = (0, import_core.createPaginator)(OutpostsClient, ListAssetsCommand, "NextToken", "NextToken", "MaxResults");
2628
+
2629
+ // src/pagination/ListCatalogItemsPaginator.ts
2630
+
2631
+ var paginateListCatalogItems = (0, import_core.createPaginator)(OutpostsClient, ListCatalogItemsCommand, "NextToken", "NextToken", "MaxResults");
2632
+
2633
+ // src/pagination/ListOrdersPaginator.ts
2634
+
2635
+ var paginateListOrders = (0, import_core.createPaginator)(OutpostsClient, ListOrdersCommand, "NextToken", "NextToken", "MaxResults");
2636
+
2637
+ // src/pagination/ListOutpostsPaginator.ts
2638
+
2639
+ var paginateListOutposts = (0, import_core.createPaginator)(OutpostsClient, ListOutpostsCommand, "NextToken", "NextToken", "MaxResults");
2640
+
2641
+ // src/pagination/ListSitesPaginator.ts
2642
+
2643
+ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSitesCommand, "NextToken", "NextToken", "MaxResults");
2644
+
2645
+ // src/index.ts
2646
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2647
+ // Annotate the CommonJS export names for ESM import in node:
2648
+ 0 && (module.exports = {
2649
+ AccessDeniedException,
2650
+ AddressType,
2651
+ AssetState,
2652
+ AssetType,
2653
+ CancelOrderCommand,
2654
+ CatalogItemClass,
2655
+ CatalogItemStatus,
2656
+ ComputeAssetState,
2657
+ ConflictException,
2658
+ CreateOrderCommand,
2659
+ CreateOutpostCommand,
2660
+ CreateSiteCommand,
2661
+ DeleteOutpostCommand,
2662
+ DeleteSiteCommand,
2663
+ FiberOpticCableType,
2664
+ GetCatalogItemCommand,
2665
+ GetConnectionCommand,
2666
+ GetOrderCommand,
2667
+ GetOutpostCommand,
2668
+ GetOutpostInstanceTypesCommand,
2669
+ GetSiteAddressCommand,
2670
+ GetSiteCommand,
2671
+ InternalServerException,
2672
+ LineItemStatus,
2673
+ ListAssetsCommand,
2674
+ ListCatalogItemsCommand,
2675
+ ListOrdersCommand,
2676
+ ListOutpostsCommand,
2677
+ ListSitesCommand,
2678
+ ListTagsForResourceCommand,
2679
+ MaximumSupportedWeightLbs,
2680
+ NotFoundException,
2681
+ OpticalStandard,
2682
+ OrderStatus,
2683
+ OrderType,
2684
+ Outposts,
2685
+ OutpostsClient,
2686
+ OutpostsServiceException,
2687
+ PaymentOption,
2688
+ PaymentTerm,
2689
+ PowerConnector,
2690
+ PowerDrawKva,
2691
+ PowerFeedDrop,
2692
+ PowerPhase,
2693
+ ResourceType,
2694
+ ServiceQuotaExceededException,
2695
+ ShipmentCarrier,
2696
+ StartConnectionCommand,
2697
+ SupportedHardwareType,
2698
+ SupportedStorageEnum,
2699
+ TagResourceCommand,
2700
+ UntagResourceCommand,
2701
+ UpdateOutpostCommand,
2702
+ UpdateSiteAddressCommand,
2703
+ UpdateSiteCommand,
2704
+ UpdateSiteRackPhysicalPropertiesCommand,
2705
+ UplinkCount,
2706
+ UplinkGbps,
2707
+ ValidationException,
2708
+ __Client,
2709
+ paginateGetOutpostInstanceTypes,
2710
+ paginateListAssets,
2711
+ paginateListCatalogItems,
2712
+ paginateListOrders,
2713
+ paginateListOutposts,
2714
+ paginateListSites
2715
+ });