@aws-sdk/client-snowball 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 (48) hide show
  1. package/dist-cjs/Snowball.js +1 -65
  2. package/dist-cjs/SnowballClient.js +1 -43
  3. package/dist-cjs/commands/CancelClusterCommand.js +1 -28
  4. package/dist-cjs/commands/CancelJobCommand.js +1 -28
  5. package/dist-cjs/commands/CreateAddressCommand.js +1 -28
  6. package/dist-cjs/commands/CreateClusterCommand.js +1 -28
  7. package/dist-cjs/commands/CreateJobCommand.js +1 -29
  8. package/dist-cjs/commands/CreateLongTermPricingCommand.js +1 -28
  9. package/dist-cjs/commands/CreateReturnShippingLabelCommand.js +1 -28
  10. package/dist-cjs/commands/DescribeAddressCommand.js +1 -28
  11. package/dist-cjs/commands/DescribeAddressesCommand.js +1 -28
  12. package/dist-cjs/commands/DescribeClusterCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeJobCommand.js +1 -29
  14. package/dist-cjs/commands/DescribeReturnShippingLabelCommand.js +1 -28
  15. package/dist-cjs/commands/GetJobManifestCommand.js +1 -28
  16. package/dist-cjs/commands/GetJobUnlockCodeCommand.js +1 -28
  17. package/dist-cjs/commands/GetSnowballUsageCommand.js +1 -28
  18. package/dist-cjs/commands/GetSoftwareUpdatesCommand.js +1 -28
  19. package/dist-cjs/commands/ListClusterJobsCommand.js +1 -28
  20. package/dist-cjs/commands/ListClustersCommand.js +1 -28
  21. package/dist-cjs/commands/ListCompatibleImagesCommand.js +1 -28
  22. package/dist-cjs/commands/ListJobsCommand.js +1 -28
  23. package/dist-cjs/commands/ListLongTermPricingCommand.js +1 -28
  24. package/dist-cjs/commands/ListPickupLocationsCommand.js +1 -28
  25. package/dist-cjs/commands/ListServiceVersionsCommand.js +1 -28
  26. package/dist-cjs/commands/UpdateClusterCommand.js +1 -28
  27. package/dist-cjs/commands/UpdateJobCommand.js +1 -29
  28. package/dist-cjs/commands/UpdateJobShipmentStateCommand.js +1 -28
  29. package/dist-cjs/commands/UpdateLongTermPricingCommand.js +1 -28
  30. package/dist-cjs/commands/index.js +1 -30
  31. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  32. package/dist-cjs/extensionConfiguration.js +1 -2
  33. package/dist-cjs/index.js +2714 -11
  34. package/dist-cjs/models/SnowballServiceException.js +1 -12
  35. package/dist-cjs/models/index.js +1 -4
  36. package/dist-cjs/models/models_0.js +1 -293
  37. package/dist-cjs/pagination/DescribeAddressesPaginator.js +1 -7
  38. package/dist-cjs/pagination/Interfaces.js +1 -2
  39. package/dist-cjs/pagination/ListClusterJobsPaginator.js +1 -7
  40. package/dist-cjs/pagination/ListClustersPaginator.js +1 -7
  41. package/dist-cjs/pagination/ListCompatibleImagesPaginator.js +1 -7
  42. package/dist-cjs/pagination/ListJobsPaginator.js +1 -7
  43. package/dist-cjs/pagination/ListLongTermPricingPaginator.js +1 -7
  44. package/dist-cjs/pagination/ListPickupLocationsPaginator.js +1 -7
  45. package/dist-cjs/pagination/index.js +1 -11
  46. package/dist-cjs/protocols/Aws_json1_1.js +1 -1648
  47. package/dist-cjs/runtimeExtensions.js +1 -22
  48. 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.SnowballServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./SnowballClient"), exports);
6
- tslib_1.__exportStar(require("./Snowball"), 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 SnowballServiceException_1 = require("./models/SnowballServiceException");
12
- Object.defineProperty(exports, "SnowballServiceException", { enumerable: true, get: function () { return SnowballServiceException_1.SnowballServiceException; } });
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
+ AddressType: () => AddressType,
25
+ CancelClusterCommand: () => CancelClusterCommand,
26
+ CancelJobCommand: () => CancelJobCommand,
27
+ ClusterLimitExceededException: () => ClusterLimitExceededException,
28
+ ClusterState: () => ClusterState,
29
+ ConflictException: () => ConflictException,
30
+ CreateAddressCommand: () => CreateAddressCommand,
31
+ CreateClusterCommand: () => CreateClusterCommand,
32
+ CreateJobCommand: () => CreateJobCommand,
33
+ CreateJobRequestFilterSensitiveLog: () => CreateJobRequestFilterSensitiveLog,
34
+ CreateLongTermPricingCommand: () => CreateLongTermPricingCommand,
35
+ CreateReturnShippingLabelCommand: () => CreateReturnShippingLabelCommand,
36
+ DescribeAddressCommand: () => DescribeAddressCommand,
37
+ DescribeAddressesCommand: () => DescribeAddressesCommand,
38
+ DescribeClusterCommand: () => DescribeClusterCommand,
39
+ DescribeJobCommand: () => DescribeJobCommand,
40
+ DescribeJobResultFilterSensitiveLog: () => DescribeJobResultFilterSensitiveLog,
41
+ DescribeReturnShippingLabelCommand: () => DescribeReturnShippingLabelCommand,
42
+ DeviceServiceName: () => DeviceServiceName,
43
+ Ec2RequestFailedException: () => Ec2RequestFailedException,
44
+ GetJobManifestCommand: () => GetJobManifestCommand,
45
+ GetJobUnlockCodeCommand: () => GetJobUnlockCodeCommand,
46
+ GetSnowballUsageCommand: () => GetSnowballUsageCommand,
47
+ GetSoftwareUpdatesCommand: () => GetSoftwareUpdatesCommand,
48
+ ImpactLevel: () => ImpactLevel,
49
+ InvalidAddressException: () => InvalidAddressException,
50
+ InvalidInputCombinationException: () => InvalidInputCombinationException,
51
+ InvalidJobStateException: () => InvalidJobStateException,
52
+ InvalidNextTokenException: () => InvalidNextTokenException,
53
+ InvalidResourceException: () => InvalidResourceException,
54
+ JobMetadataFilterSensitiveLog: () => JobMetadataFilterSensitiveLog,
55
+ JobState: () => JobState,
56
+ JobType: () => JobType,
57
+ KMSRequestFailedException: () => KMSRequestFailedException,
58
+ ListClusterJobsCommand: () => ListClusterJobsCommand,
59
+ ListClustersCommand: () => ListClustersCommand,
60
+ ListCompatibleImagesCommand: () => ListCompatibleImagesCommand,
61
+ ListJobsCommand: () => ListJobsCommand,
62
+ ListLongTermPricingCommand: () => ListLongTermPricingCommand,
63
+ ListPickupLocationsCommand: () => ListPickupLocationsCommand,
64
+ ListServiceVersionsCommand: () => ListServiceVersionsCommand,
65
+ LongTermPricingType: () => LongTermPricingType,
66
+ PickupDetailsFilterSensitiveLog: () => PickupDetailsFilterSensitiveLog,
67
+ RemoteManagement: () => RemoteManagement,
68
+ ReturnShippingLabelAlreadyExistsException: () => ReturnShippingLabelAlreadyExistsException,
69
+ ServiceName: () => ServiceName,
70
+ ShipmentState: () => ShipmentState,
71
+ ShippingLabelStatus: () => ShippingLabelStatus,
72
+ ShippingOption: () => ShippingOption,
73
+ Snowball: () => Snowball,
74
+ SnowballCapacity: () => SnowballCapacity,
75
+ SnowballClient: () => SnowballClient,
76
+ SnowballServiceException: () => SnowballServiceException,
77
+ SnowballType: () => SnowballType,
78
+ StorageUnit: () => StorageUnit,
79
+ TransferOption: () => TransferOption,
80
+ UnsupportedAddressException: () => UnsupportedAddressException,
81
+ UpdateClusterCommand: () => UpdateClusterCommand,
82
+ UpdateJobCommand: () => UpdateJobCommand,
83
+ UpdateJobRequestFilterSensitiveLog: () => UpdateJobRequestFilterSensitiveLog,
84
+ UpdateJobShipmentStateCommand: () => UpdateJobShipmentStateCommand,
85
+ UpdateLongTermPricingCommand: () => UpdateLongTermPricingCommand,
86
+ __Client: () => import_smithy_client.Client,
87
+ paginateDescribeAddresses: () => paginateDescribeAddresses,
88
+ paginateListClusterJobs: () => paginateListClusterJobs,
89
+ paginateListClusters: () => paginateListClusters,
90
+ paginateListCompatibleImages: () => paginateListCompatibleImages,
91
+ paginateListJobs: () => paginateListJobs,
92
+ paginateListLongTermPricing: () => paginateListLongTermPricing,
93
+ paginateListPickupLocations: () => paginateListPickupLocations
94
+ });
95
+ module.exports = __toCommonJS(src_exports);
96
+
97
+ // src/SnowballClient.ts
98
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
99
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
100
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
101
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
102
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
103
+ var import_config_resolver = require("@smithy/config-resolver");
104
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
105
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
106
+ var import_middleware_retry = require("@smithy/middleware-retry");
107
+
108
+
109
+ // src/endpoint/EndpointParameters.ts
110
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
111
+ return {
112
+ ...options,
113
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
114
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
115
+ defaultSigningName: "snowball"
116
+ };
117
+ }, "resolveClientEndpointParameters");
118
+ var commonParams = {
119
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
120
+ Endpoint: { type: "builtInParams", name: "endpoint" },
121
+ Region: { type: "builtInParams", name: "region" },
122
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
123
+ };
124
+
125
+ // src/SnowballClient.ts
126
+ var import_runtimeConfig = require("././runtimeConfig");
127
+
128
+ // src/runtimeExtensions.ts
129
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
130
+ var import_protocol_http = require("@smithy/protocol-http");
131
+ var import_smithy_client = require("@smithy/smithy-client");
132
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
133
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
134
+ const extensionConfiguration = {
135
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
136
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
137
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
138
+ };
139
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
140
+ return {
141
+ ...runtimeConfig,
142
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
143
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
144
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
145
+ };
146
+ }, "resolveRuntimeExtensions");
147
+
148
+ // src/SnowballClient.ts
149
+ var _SnowballClient = class _SnowballClient extends import_smithy_client.Client {
150
+ constructor(...[configuration]) {
151
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
152
+ const _config_1 = resolveClientEndpointParameters(_config_0);
153
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
154
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
155
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
156
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
157
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
158
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
159
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
160
+ super(_config_8);
161
+ this.config = _config_8;
162
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
163
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
164
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
165
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
166
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
167
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
168
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
169
+ }
170
+ /**
171
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
172
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
173
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
174
+ */
175
+ destroy() {
176
+ super.destroy();
177
+ }
178
+ };
179
+ __name(_SnowballClient, "SnowballClient");
180
+ var SnowballClient = _SnowballClient;
181
+
182
+ // src/Snowball.ts
183
+
184
+
185
+ // src/commands/CancelClusterCommand.ts
186
+
187
+ var import_middleware_serde = require("@smithy/middleware-serde");
188
+
189
+ var import_types = require("@smithy/types");
190
+
191
+ // src/protocols/Aws_json1_1.ts
192
+
193
+
194
+
195
+ // src/models/models_0.ts
196
+
197
+
198
+ // src/models/SnowballServiceException.ts
199
+
200
+ var _SnowballServiceException = class _SnowballServiceException extends import_smithy_client.ServiceException {
201
+ /**
202
+ * @internal
203
+ */
204
+ constructor(options) {
205
+ super(options);
206
+ Object.setPrototypeOf(this, _SnowballServiceException.prototype);
207
+ }
208
+ };
209
+ __name(_SnowballServiceException, "SnowballServiceException");
210
+ var SnowballServiceException = _SnowballServiceException;
211
+
212
+ // src/models/models_0.ts
213
+ var AddressType = {
214
+ AWS_SHIP: "AWS_SHIP",
215
+ CUST_PICKUP: "CUST_PICKUP"
216
+ };
217
+ var _InvalidJobStateException = class _InvalidJobStateException extends SnowballServiceException {
218
+ /**
219
+ * @internal
220
+ */
221
+ constructor(opts) {
222
+ super({
223
+ name: "InvalidJobStateException",
224
+ $fault: "client",
225
+ ...opts
226
+ });
227
+ this.name = "InvalidJobStateException";
228
+ this.$fault = "client";
229
+ Object.setPrototypeOf(this, _InvalidJobStateException.prototype);
230
+ this.Message = opts.Message;
231
+ }
232
+ };
233
+ __name(_InvalidJobStateException, "InvalidJobStateException");
234
+ var InvalidJobStateException = _InvalidJobStateException;
235
+ var _InvalidResourceException = class _InvalidResourceException extends SnowballServiceException {
236
+ /**
237
+ * @internal
238
+ */
239
+ constructor(opts) {
240
+ super({
241
+ name: "InvalidResourceException",
242
+ $fault: "client",
243
+ ...opts
244
+ });
245
+ this.name = "InvalidResourceException";
246
+ this.$fault = "client";
247
+ Object.setPrototypeOf(this, _InvalidResourceException.prototype);
248
+ this.Message = opts.Message;
249
+ this.ResourceType = opts.ResourceType;
250
+ }
251
+ };
252
+ __name(_InvalidResourceException, "InvalidResourceException");
253
+ var InvalidResourceException = _InvalidResourceException;
254
+ var _KMSRequestFailedException = class _KMSRequestFailedException extends SnowballServiceException {
255
+ /**
256
+ * @internal
257
+ */
258
+ constructor(opts) {
259
+ super({
260
+ name: "KMSRequestFailedException",
261
+ $fault: "client",
262
+ ...opts
263
+ });
264
+ this.name = "KMSRequestFailedException";
265
+ this.$fault = "client";
266
+ Object.setPrototypeOf(this, _KMSRequestFailedException.prototype);
267
+ this.Message = opts.Message;
268
+ }
269
+ };
270
+ __name(_KMSRequestFailedException, "KMSRequestFailedException");
271
+ var KMSRequestFailedException = _KMSRequestFailedException;
272
+ var _InvalidAddressException = class _InvalidAddressException extends SnowballServiceException {
273
+ /**
274
+ * @internal
275
+ */
276
+ constructor(opts) {
277
+ super({
278
+ name: "InvalidAddressException",
279
+ $fault: "client",
280
+ ...opts
281
+ });
282
+ this.name = "InvalidAddressException";
283
+ this.$fault = "client";
284
+ Object.setPrototypeOf(this, _InvalidAddressException.prototype);
285
+ this.Message = opts.Message;
286
+ }
287
+ };
288
+ __name(_InvalidAddressException, "InvalidAddressException");
289
+ var InvalidAddressException = _InvalidAddressException;
290
+ var _UnsupportedAddressException = class _UnsupportedAddressException extends SnowballServiceException {
291
+ /**
292
+ * @internal
293
+ */
294
+ constructor(opts) {
295
+ super({
296
+ name: "UnsupportedAddressException",
297
+ $fault: "client",
298
+ ...opts
299
+ });
300
+ this.name = "UnsupportedAddressException";
301
+ this.$fault = "client";
302
+ Object.setPrototypeOf(this, _UnsupportedAddressException.prototype);
303
+ this.Message = opts.Message;
304
+ }
305
+ };
306
+ __name(_UnsupportedAddressException, "UnsupportedAddressException");
307
+ var UnsupportedAddressException = _UnsupportedAddressException;
308
+ var JobType = {
309
+ EXPORT: "EXPORT",
310
+ IMPORT: "IMPORT",
311
+ LOCAL_USE: "LOCAL_USE"
312
+ };
313
+ var JobState = {
314
+ CANCELLED: "Cancelled",
315
+ COMPLETE: "Complete",
316
+ IN_PROGRESS: "InProgress",
317
+ IN_TRANSIT_TO_AWS: "InTransitToAWS",
318
+ IN_TRANSIT_TO_CUSTOMER: "InTransitToCustomer",
319
+ LISTING: "Listing",
320
+ NEW: "New",
321
+ PENDING: "Pending",
322
+ PREPARING_APPLIANCE: "PreparingAppliance",
323
+ PREPARING_SHIPMENT: "PreparingShipment",
324
+ WITH_AWS: "WithAWS",
325
+ WITH_AWS_SORTING_FACILITY: "WithAWSSortingFacility",
326
+ WITH_CUSTOMER: "WithCustomer"
327
+ };
328
+ var StorageUnit = {
329
+ TB: "TB"
330
+ };
331
+ var RemoteManagement = {
332
+ INSTALLED_AUTOSTART: "INSTALLED_AUTOSTART",
333
+ INSTALLED_ONLY: "INSTALLED_ONLY",
334
+ NOT_INSTALLED: "NOT_INSTALLED"
335
+ };
336
+ var DeviceServiceName = {
337
+ NFS_ON_DEVICE_SERVICE: "NFS_ON_DEVICE_SERVICE",
338
+ S3_ON_DEVICE_SERVICE: "S3_ON_DEVICE_SERVICE"
339
+ };
340
+ var TransferOption = {
341
+ EXPORT: "EXPORT",
342
+ IMPORT: "IMPORT",
343
+ LOCAL_USE: "LOCAL_USE"
344
+ };
345
+ var ShippingOption = {
346
+ EXPRESS: "EXPRESS",
347
+ NEXT_DAY: "NEXT_DAY",
348
+ SECOND_DAY: "SECOND_DAY",
349
+ STANDARD: "STANDARD"
350
+ };
351
+ var SnowballCapacity = {
352
+ NO_PREFERENCE: "NoPreference",
353
+ T100: "T100",
354
+ T13: "T13",
355
+ T14: "T14",
356
+ T240: "T240",
357
+ T32: "T32",
358
+ T42: "T42",
359
+ T50: "T50",
360
+ T8: "T8",
361
+ T80: "T80",
362
+ T98: "T98"
363
+ };
364
+ var SnowballType = {
365
+ EDGE: "EDGE",
366
+ EDGE_C: "EDGE_C",
367
+ EDGE_CG: "EDGE_CG",
368
+ EDGE_S: "EDGE_S",
369
+ RACK_5U_C: "RACK_5U_C",
370
+ SNC1_HDD: "SNC1_HDD",
371
+ SNC1_SSD: "SNC1_SSD",
372
+ STANDARD: "STANDARD",
373
+ V3_5C: "V3_5C",
374
+ V3_5S: "V3_5S"
375
+ };
376
+ var _Ec2RequestFailedException = class _Ec2RequestFailedException extends SnowballServiceException {
377
+ /**
378
+ * @internal
379
+ */
380
+ constructor(opts) {
381
+ super({
382
+ name: "Ec2RequestFailedException",
383
+ $fault: "client",
384
+ ...opts
385
+ });
386
+ this.name = "Ec2RequestFailedException";
387
+ this.$fault = "client";
388
+ Object.setPrototypeOf(this, _Ec2RequestFailedException.prototype);
389
+ this.Message = opts.Message;
390
+ }
391
+ };
392
+ __name(_Ec2RequestFailedException, "Ec2RequestFailedException");
393
+ var Ec2RequestFailedException = _Ec2RequestFailedException;
394
+ var _InvalidInputCombinationException = class _InvalidInputCombinationException extends SnowballServiceException {
395
+ /**
396
+ * @internal
397
+ */
398
+ constructor(opts) {
399
+ super({
400
+ name: "InvalidInputCombinationException",
401
+ $fault: "client",
402
+ ...opts
403
+ });
404
+ this.name = "InvalidInputCombinationException";
405
+ this.$fault = "client";
406
+ Object.setPrototypeOf(this, _InvalidInputCombinationException.prototype);
407
+ this.Message = opts.Message;
408
+ }
409
+ };
410
+ __name(_InvalidInputCombinationException, "InvalidInputCombinationException");
411
+ var InvalidInputCombinationException = _InvalidInputCombinationException;
412
+ var _ClusterLimitExceededException = class _ClusterLimitExceededException extends SnowballServiceException {
413
+ /**
414
+ * @internal
415
+ */
416
+ constructor(opts) {
417
+ super({
418
+ name: "ClusterLimitExceededException",
419
+ $fault: "client",
420
+ ...opts
421
+ });
422
+ this.name = "ClusterLimitExceededException";
423
+ this.$fault = "client";
424
+ Object.setPrototypeOf(this, _ClusterLimitExceededException.prototype);
425
+ this.Message = opts.Message;
426
+ }
427
+ };
428
+ __name(_ClusterLimitExceededException, "ClusterLimitExceededException");
429
+ var ClusterLimitExceededException = _ClusterLimitExceededException;
430
+ var ImpactLevel = {
431
+ IL2: "IL2",
432
+ IL4: "IL4",
433
+ IL5: "IL5",
434
+ IL6: "IL6",
435
+ IL99: "IL99"
436
+ };
437
+ var LongTermPricingType = {
438
+ ONE_MONTH: "OneMonth",
439
+ ONE_YEAR: "OneYear",
440
+ THREE_YEAR: "ThreeYear"
441
+ };
442
+ var _ConflictException = class _ConflictException extends SnowballServiceException {
443
+ /**
444
+ * @internal
445
+ */
446
+ constructor(opts) {
447
+ super({
448
+ name: "ConflictException",
449
+ $fault: "client",
450
+ ...opts
451
+ });
452
+ this.name = "ConflictException";
453
+ this.$fault = "client";
454
+ Object.setPrototypeOf(this, _ConflictException.prototype);
455
+ this.ConflictResource = opts.ConflictResource;
456
+ this.Message = opts.Message;
457
+ }
458
+ };
459
+ __name(_ConflictException, "ConflictException");
460
+ var ConflictException = _ConflictException;
461
+ var ShippingLabelStatus = {
462
+ FAILED: "Failed",
463
+ IN_PROGRESS: "InProgress",
464
+ SUCCEEDED: "Succeeded",
465
+ TIMED_OUT: "TimedOut"
466
+ };
467
+ var _ReturnShippingLabelAlreadyExistsException = class _ReturnShippingLabelAlreadyExistsException extends SnowballServiceException {
468
+ /**
469
+ * @internal
470
+ */
471
+ constructor(opts) {
472
+ super({
473
+ name: "ReturnShippingLabelAlreadyExistsException",
474
+ $fault: "client",
475
+ ...opts
476
+ });
477
+ this.name = "ReturnShippingLabelAlreadyExistsException";
478
+ this.$fault = "client";
479
+ Object.setPrototypeOf(this, _ReturnShippingLabelAlreadyExistsException.prototype);
480
+ this.Message = opts.Message;
481
+ }
482
+ };
483
+ __name(_ReturnShippingLabelAlreadyExistsException, "ReturnShippingLabelAlreadyExistsException");
484
+ var ReturnShippingLabelAlreadyExistsException = _ReturnShippingLabelAlreadyExistsException;
485
+ var _InvalidNextTokenException = class _InvalidNextTokenException extends SnowballServiceException {
486
+ /**
487
+ * @internal
488
+ */
489
+ constructor(opts) {
490
+ super({
491
+ name: "InvalidNextTokenException",
492
+ $fault: "client",
493
+ ...opts
494
+ });
495
+ this.name = "InvalidNextTokenException";
496
+ this.$fault = "client";
497
+ Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
498
+ this.Message = opts.Message;
499
+ }
500
+ };
501
+ __name(_InvalidNextTokenException, "InvalidNextTokenException");
502
+ var InvalidNextTokenException = _InvalidNextTokenException;
503
+ var ClusterState = {
504
+ AWAITING_QUORUM: "AwaitingQuorum",
505
+ CANCELLED: "Cancelled",
506
+ COMPLETE: "Complete",
507
+ IN_USE: "InUse",
508
+ PENDING: "Pending"
509
+ };
510
+ var ServiceName = {
511
+ EKS_ANYWHERE: "EKS_ANYWHERE",
512
+ KUBERNETES: "KUBERNETES"
513
+ };
514
+ var ShipmentState = {
515
+ RECEIVED: "RECEIVED",
516
+ RETURNED: "RETURNED"
517
+ };
518
+ var PickupDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
519
+ ...obj,
520
+ ...obj.PhoneNumber && { PhoneNumber: import_smithy_client.SENSITIVE_STRING },
521
+ ...obj.Email && { Email: import_smithy_client.SENSITIVE_STRING }
522
+ }), "PickupDetailsFilterSensitiveLog");
523
+ var CreateJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
524
+ ...obj,
525
+ ...obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }
526
+ }), "CreateJobRequestFilterSensitiveLog");
527
+ var JobMetadataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
528
+ ...obj,
529
+ ...obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }
530
+ }), "JobMetadataFilterSensitiveLog");
531
+ var DescribeJobResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
532
+ ...obj,
533
+ ...obj.JobMetadata && { JobMetadata: JobMetadataFilterSensitiveLog(obj.JobMetadata) },
534
+ ...obj.SubJobMetadata && { SubJobMetadata: obj.SubJobMetadata.map((item) => JobMetadataFilterSensitiveLog(item)) }
535
+ }), "DescribeJobResultFilterSensitiveLog");
536
+ var UpdateJobRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
537
+ ...obj,
538
+ ...obj.PickupDetails && { PickupDetails: PickupDetailsFilterSensitiveLog(obj.PickupDetails) }
539
+ }), "UpdateJobRequestFilterSensitiveLog");
540
+
541
+ // src/protocols/Aws_json1_1.ts
542
+ var se_CancelClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
543
+ const headers = sharedHeaders("CancelCluster");
544
+ let body;
545
+ body = JSON.stringify((0, import_smithy_client._json)(input));
546
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
547
+ }, "se_CancelClusterCommand");
548
+ var se_CancelJobCommand = /* @__PURE__ */ __name(async (input, context) => {
549
+ const headers = sharedHeaders("CancelJob");
550
+ let body;
551
+ body = JSON.stringify((0, import_smithy_client._json)(input));
552
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
553
+ }, "se_CancelJobCommand");
554
+ var se_CreateAddressCommand = /* @__PURE__ */ __name(async (input, context) => {
555
+ const headers = sharedHeaders("CreateAddress");
556
+ let body;
557
+ body = JSON.stringify((0, import_smithy_client._json)(input));
558
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
559
+ }, "se_CreateAddressCommand");
560
+ var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
561
+ const headers = sharedHeaders("CreateCluster");
562
+ let body;
563
+ body = JSON.stringify(se_CreateClusterRequest(input, context));
564
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
565
+ }, "se_CreateClusterCommand");
566
+ var se_CreateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
567
+ const headers = sharedHeaders("CreateJob");
568
+ let body;
569
+ body = JSON.stringify(se_CreateJobRequest(input, context));
570
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
571
+ }, "se_CreateJobCommand");
572
+ var se_CreateLongTermPricingCommand = /* @__PURE__ */ __name(async (input, context) => {
573
+ const headers = sharedHeaders("CreateLongTermPricing");
574
+ let body;
575
+ body = JSON.stringify((0, import_smithy_client._json)(input));
576
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
577
+ }, "se_CreateLongTermPricingCommand");
578
+ var se_CreateReturnShippingLabelCommand = /* @__PURE__ */ __name(async (input, context) => {
579
+ const headers = sharedHeaders("CreateReturnShippingLabel");
580
+ let body;
581
+ body = JSON.stringify((0, import_smithy_client._json)(input));
582
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
583
+ }, "se_CreateReturnShippingLabelCommand");
584
+ var se_DescribeAddressCommand = /* @__PURE__ */ __name(async (input, context) => {
585
+ const headers = sharedHeaders("DescribeAddress");
586
+ let body;
587
+ body = JSON.stringify((0, import_smithy_client._json)(input));
588
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
589
+ }, "se_DescribeAddressCommand");
590
+ var se_DescribeAddressesCommand = /* @__PURE__ */ __name(async (input, context) => {
591
+ const headers = sharedHeaders("DescribeAddresses");
592
+ let body;
593
+ body = JSON.stringify((0, import_smithy_client._json)(input));
594
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
595
+ }, "se_DescribeAddressesCommand");
596
+ var se_DescribeClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
597
+ const headers = sharedHeaders("DescribeCluster");
598
+ let body;
599
+ body = JSON.stringify((0, import_smithy_client._json)(input));
600
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
601
+ }, "se_DescribeClusterCommand");
602
+ var se_DescribeJobCommand = /* @__PURE__ */ __name(async (input, context) => {
603
+ const headers = sharedHeaders("DescribeJob");
604
+ let body;
605
+ body = JSON.stringify((0, import_smithy_client._json)(input));
606
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
607
+ }, "se_DescribeJobCommand");
608
+ var se_DescribeReturnShippingLabelCommand = /* @__PURE__ */ __name(async (input, context) => {
609
+ const headers = sharedHeaders("DescribeReturnShippingLabel");
610
+ let body;
611
+ body = JSON.stringify((0, import_smithy_client._json)(input));
612
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
613
+ }, "se_DescribeReturnShippingLabelCommand");
614
+ var se_GetJobManifestCommand = /* @__PURE__ */ __name(async (input, context) => {
615
+ const headers = sharedHeaders("GetJobManifest");
616
+ let body;
617
+ body = JSON.stringify((0, import_smithy_client._json)(input));
618
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
619
+ }, "se_GetJobManifestCommand");
620
+ var se_GetJobUnlockCodeCommand = /* @__PURE__ */ __name(async (input, context) => {
621
+ const headers = sharedHeaders("GetJobUnlockCode");
622
+ let body;
623
+ body = JSON.stringify((0, import_smithy_client._json)(input));
624
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
625
+ }, "se_GetJobUnlockCodeCommand");
626
+ var se_GetSnowballUsageCommand = /* @__PURE__ */ __name(async (input, context) => {
627
+ const headers = sharedHeaders("GetSnowballUsage");
628
+ let body;
629
+ body = JSON.stringify((0, import_smithy_client._json)(input));
630
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
631
+ }, "se_GetSnowballUsageCommand");
632
+ var se_GetSoftwareUpdatesCommand = /* @__PURE__ */ __name(async (input, context) => {
633
+ const headers = sharedHeaders("GetSoftwareUpdates");
634
+ let body;
635
+ body = JSON.stringify((0, import_smithy_client._json)(input));
636
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
637
+ }, "se_GetSoftwareUpdatesCommand");
638
+ var se_ListClusterJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
639
+ const headers = sharedHeaders("ListClusterJobs");
640
+ let body;
641
+ body = JSON.stringify((0, import_smithy_client._json)(input));
642
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
643
+ }, "se_ListClusterJobsCommand");
644
+ var se_ListClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
645
+ const headers = sharedHeaders("ListClusters");
646
+ let body;
647
+ body = JSON.stringify((0, import_smithy_client._json)(input));
648
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
649
+ }, "se_ListClustersCommand");
650
+ var se_ListCompatibleImagesCommand = /* @__PURE__ */ __name(async (input, context) => {
651
+ const headers = sharedHeaders("ListCompatibleImages");
652
+ let body;
653
+ body = JSON.stringify((0, import_smithy_client._json)(input));
654
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
655
+ }, "se_ListCompatibleImagesCommand");
656
+ var se_ListJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
657
+ const headers = sharedHeaders("ListJobs");
658
+ let body;
659
+ body = JSON.stringify((0, import_smithy_client._json)(input));
660
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
661
+ }, "se_ListJobsCommand");
662
+ var se_ListLongTermPricingCommand = /* @__PURE__ */ __name(async (input, context) => {
663
+ const headers = sharedHeaders("ListLongTermPricing");
664
+ let body;
665
+ body = JSON.stringify((0, import_smithy_client._json)(input));
666
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
667
+ }, "se_ListLongTermPricingCommand");
668
+ var se_ListPickupLocationsCommand = /* @__PURE__ */ __name(async (input, context) => {
669
+ const headers = sharedHeaders("ListPickupLocations");
670
+ let body;
671
+ body = JSON.stringify((0, import_smithy_client._json)(input));
672
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
673
+ }, "se_ListPickupLocationsCommand");
674
+ var se_ListServiceVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
675
+ const headers = sharedHeaders("ListServiceVersions");
676
+ let body;
677
+ body = JSON.stringify((0, import_smithy_client._json)(input));
678
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
679
+ }, "se_ListServiceVersionsCommand");
680
+ var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
681
+ const headers = sharedHeaders("UpdateCluster");
682
+ let body;
683
+ body = JSON.stringify(se_UpdateClusterRequest(input, context));
684
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
685
+ }, "se_UpdateClusterCommand");
686
+ var se_UpdateJobCommand = /* @__PURE__ */ __name(async (input, context) => {
687
+ const headers = sharedHeaders("UpdateJob");
688
+ let body;
689
+ body = JSON.stringify(se_UpdateJobRequest(input, context));
690
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
691
+ }, "se_UpdateJobCommand");
692
+ var se_UpdateJobShipmentStateCommand = /* @__PURE__ */ __name(async (input, context) => {
693
+ const headers = sharedHeaders("UpdateJobShipmentState");
694
+ let body;
695
+ body = JSON.stringify((0, import_smithy_client._json)(input));
696
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
697
+ }, "se_UpdateJobShipmentStateCommand");
698
+ var se_UpdateLongTermPricingCommand = /* @__PURE__ */ __name(async (input, context) => {
699
+ const headers = sharedHeaders("UpdateLongTermPricing");
700
+ let body;
701
+ body = JSON.stringify((0, import_smithy_client._json)(input));
702
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
703
+ }, "se_UpdateLongTermPricingCommand");
704
+ var de_CancelClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
705
+ if (output.statusCode >= 300) {
706
+ return de_CancelClusterCommandError(output, context);
707
+ }
708
+ const data = await parseBody(output.body, context);
709
+ let contents = {};
710
+ contents = (0, import_smithy_client._json)(data);
711
+ const response = {
712
+ $metadata: deserializeMetadata(output),
713
+ ...contents
714
+ };
715
+ return response;
716
+ }, "de_CancelClusterCommand");
717
+ var de_CancelClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
718
+ const parsedOutput = {
719
+ ...output,
720
+ body: await parseErrorBody(output.body, context)
721
+ };
722
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
723
+ switch (errorCode) {
724
+ case "InvalidJobStateException":
725
+ case "com.amazonaws.snowball#InvalidJobStateException":
726
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
727
+ case "InvalidResourceException":
728
+ case "com.amazonaws.snowball#InvalidResourceException":
729
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
730
+ case "KMSRequestFailedException":
731
+ case "com.amazonaws.snowball#KMSRequestFailedException":
732
+ throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
733
+ default:
734
+ const parsedBody = parsedOutput.body;
735
+ return throwDefaultError({
736
+ output,
737
+ parsedBody,
738
+ errorCode
739
+ });
740
+ }
741
+ }, "de_CancelClusterCommandError");
742
+ var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
743
+ if (output.statusCode >= 300) {
744
+ return de_CancelJobCommandError(output, context);
745
+ }
746
+ const data = await parseBody(output.body, context);
747
+ let contents = {};
748
+ contents = (0, import_smithy_client._json)(data);
749
+ const response = {
750
+ $metadata: deserializeMetadata(output),
751
+ ...contents
752
+ };
753
+ return response;
754
+ }, "de_CancelJobCommand");
755
+ var de_CancelJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
756
+ const parsedOutput = {
757
+ ...output,
758
+ body: await parseErrorBody(output.body, context)
759
+ };
760
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
761
+ switch (errorCode) {
762
+ case "InvalidJobStateException":
763
+ case "com.amazonaws.snowball#InvalidJobStateException":
764
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
765
+ case "InvalidResourceException":
766
+ case "com.amazonaws.snowball#InvalidResourceException":
767
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
768
+ case "KMSRequestFailedException":
769
+ case "com.amazonaws.snowball#KMSRequestFailedException":
770
+ throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
771
+ default:
772
+ const parsedBody = parsedOutput.body;
773
+ return throwDefaultError({
774
+ output,
775
+ parsedBody,
776
+ errorCode
777
+ });
778
+ }
779
+ }, "de_CancelJobCommandError");
780
+ var de_CreateAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
781
+ if (output.statusCode >= 300) {
782
+ return de_CreateAddressCommandError(output, context);
783
+ }
784
+ const data = await parseBody(output.body, context);
785
+ let contents = {};
786
+ contents = (0, import_smithy_client._json)(data);
787
+ const response = {
788
+ $metadata: deserializeMetadata(output),
789
+ ...contents
790
+ };
791
+ return response;
792
+ }, "de_CreateAddressCommand");
793
+ var de_CreateAddressCommandError = /* @__PURE__ */ __name(async (output, context) => {
794
+ const parsedOutput = {
795
+ ...output,
796
+ body: await parseErrorBody(output.body, context)
797
+ };
798
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
799
+ switch (errorCode) {
800
+ case "InvalidAddressException":
801
+ case "com.amazonaws.snowball#InvalidAddressException":
802
+ throw await de_InvalidAddressExceptionRes(parsedOutput, context);
803
+ case "UnsupportedAddressException":
804
+ case "com.amazonaws.snowball#UnsupportedAddressException":
805
+ throw await de_UnsupportedAddressExceptionRes(parsedOutput, context);
806
+ default:
807
+ const parsedBody = parsedOutput.body;
808
+ return throwDefaultError({
809
+ output,
810
+ parsedBody,
811
+ errorCode
812
+ });
813
+ }
814
+ }, "de_CreateAddressCommandError");
815
+ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
816
+ if (output.statusCode >= 300) {
817
+ return de_CreateClusterCommandError(output, context);
818
+ }
819
+ const data = await parseBody(output.body, context);
820
+ let contents = {};
821
+ contents = de_CreateClusterResult(data, context);
822
+ const response = {
823
+ $metadata: deserializeMetadata(output),
824
+ ...contents
825
+ };
826
+ return response;
827
+ }, "de_CreateClusterCommand");
828
+ var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
829
+ const parsedOutput = {
830
+ ...output,
831
+ body: await parseErrorBody(output.body, context)
832
+ };
833
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
834
+ switch (errorCode) {
835
+ case "Ec2RequestFailedException":
836
+ case "com.amazonaws.snowball#Ec2RequestFailedException":
837
+ throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
838
+ case "InvalidInputCombinationException":
839
+ case "com.amazonaws.snowball#InvalidInputCombinationException":
840
+ throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
841
+ case "InvalidResourceException":
842
+ case "com.amazonaws.snowball#InvalidResourceException":
843
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
844
+ case "KMSRequestFailedException":
845
+ case "com.amazonaws.snowball#KMSRequestFailedException":
846
+ throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
847
+ default:
848
+ const parsedBody = parsedOutput.body;
849
+ return throwDefaultError({
850
+ output,
851
+ parsedBody,
852
+ errorCode
853
+ });
854
+ }
855
+ }, "de_CreateClusterCommandError");
856
+ var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
857
+ if (output.statusCode >= 300) {
858
+ return de_CreateJobCommandError(output, context);
859
+ }
860
+ const data = await parseBody(output.body, context);
861
+ let contents = {};
862
+ contents = (0, import_smithy_client._json)(data);
863
+ const response = {
864
+ $metadata: deserializeMetadata(output),
865
+ ...contents
866
+ };
867
+ return response;
868
+ }, "de_CreateJobCommand");
869
+ var de_CreateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
870
+ const parsedOutput = {
871
+ ...output,
872
+ body: await parseErrorBody(output.body, context)
873
+ };
874
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
875
+ switch (errorCode) {
876
+ case "ClusterLimitExceededException":
877
+ case "com.amazonaws.snowball#ClusterLimitExceededException":
878
+ throw await de_ClusterLimitExceededExceptionRes(parsedOutput, context);
879
+ case "Ec2RequestFailedException":
880
+ case "com.amazonaws.snowball#Ec2RequestFailedException":
881
+ throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
882
+ case "InvalidInputCombinationException":
883
+ case "com.amazonaws.snowball#InvalidInputCombinationException":
884
+ throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
885
+ case "InvalidResourceException":
886
+ case "com.amazonaws.snowball#InvalidResourceException":
887
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
888
+ case "KMSRequestFailedException":
889
+ case "com.amazonaws.snowball#KMSRequestFailedException":
890
+ throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
891
+ default:
892
+ const parsedBody = parsedOutput.body;
893
+ return throwDefaultError({
894
+ output,
895
+ parsedBody,
896
+ errorCode
897
+ });
898
+ }
899
+ }, "de_CreateJobCommandError");
900
+ var de_CreateLongTermPricingCommand = /* @__PURE__ */ __name(async (output, context) => {
901
+ if (output.statusCode >= 300) {
902
+ return de_CreateLongTermPricingCommandError(output, context);
903
+ }
904
+ const data = await parseBody(output.body, context);
905
+ let contents = {};
906
+ contents = (0, import_smithy_client._json)(data);
907
+ const response = {
908
+ $metadata: deserializeMetadata(output),
909
+ ...contents
910
+ };
911
+ return response;
912
+ }, "de_CreateLongTermPricingCommand");
913
+ var de_CreateLongTermPricingCommandError = /* @__PURE__ */ __name(async (output, context) => {
914
+ const parsedOutput = {
915
+ ...output,
916
+ body: await parseErrorBody(output.body, context)
917
+ };
918
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
919
+ switch (errorCode) {
920
+ case "InvalidResourceException":
921
+ case "com.amazonaws.snowball#InvalidResourceException":
922
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
923
+ default:
924
+ const parsedBody = parsedOutput.body;
925
+ return throwDefaultError({
926
+ output,
927
+ parsedBody,
928
+ errorCode
929
+ });
930
+ }
931
+ }, "de_CreateLongTermPricingCommandError");
932
+ var de_CreateReturnShippingLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
933
+ if (output.statusCode >= 300) {
934
+ return de_CreateReturnShippingLabelCommandError(output, context);
935
+ }
936
+ const data = await parseBody(output.body, context);
937
+ let contents = {};
938
+ contents = (0, import_smithy_client._json)(data);
939
+ const response = {
940
+ $metadata: deserializeMetadata(output),
941
+ ...contents
942
+ };
943
+ return response;
944
+ }, "de_CreateReturnShippingLabelCommand");
945
+ var de_CreateReturnShippingLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
946
+ const parsedOutput = {
947
+ ...output,
948
+ body: await parseErrorBody(output.body, context)
949
+ };
950
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
951
+ switch (errorCode) {
952
+ case "ConflictException":
953
+ case "com.amazonaws.snowball#ConflictException":
954
+ throw await de_ConflictExceptionRes(parsedOutput, context);
955
+ case "InvalidInputCombinationException":
956
+ case "com.amazonaws.snowball#InvalidInputCombinationException":
957
+ throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
958
+ case "InvalidJobStateException":
959
+ case "com.amazonaws.snowball#InvalidJobStateException":
960
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
961
+ case "InvalidResourceException":
962
+ case "com.amazonaws.snowball#InvalidResourceException":
963
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
964
+ case "ReturnShippingLabelAlreadyExistsException":
965
+ case "com.amazonaws.snowball#ReturnShippingLabelAlreadyExistsException":
966
+ throw await de_ReturnShippingLabelAlreadyExistsExceptionRes(parsedOutput, context);
967
+ default:
968
+ const parsedBody = parsedOutput.body;
969
+ return throwDefaultError({
970
+ output,
971
+ parsedBody,
972
+ errorCode
973
+ });
974
+ }
975
+ }, "de_CreateReturnShippingLabelCommandError");
976
+ var de_DescribeAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
977
+ if (output.statusCode >= 300) {
978
+ return de_DescribeAddressCommandError(output, context);
979
+ }
980
+ const data = await parseBody(output.body, context);
981
+ let contents = {};
982
+ contents = (0, import_smithy_client._json)(data);
983
+ const response = {
984
+ $metadata: deserializeMetadata(output),
985
+ ...contents
986
+ };
987
+ return response;
988
+ }, "de_DescribeAddressCommand");
989
+ var de_DescribeAddressCommandError = /* @__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 "InvalidResourceException":
997
+ case "com.amazonaws.snowball#InvalidResourceException":
998
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
999
+ default:
1000
+ const parsedBody = parsedOutput.body;
1001
+ return throwDefaultError({
1002
+ output,
1003
+ parsedBody,
1004
+ errorCode
1005
+ });
1006
+ }
1007
+ }, "de_DescribeAddressCommandError");
1008
+ var de_DescribeAddressesCommand = /* @__PURE__ */ __name(async (output, context) => {
1009
+ if (output.statusCode >= 300) {
1010
+ return de_DescribeAddressesCommandError(output, context);
1011
+ }
1012
+ const data = await parseBody(output.body, context);
1013
+ let contents = {};
1014
+ contents = (0, import_smithy_client._json)(data);
1015
+ const response = {
1016
+ $metadata: deserializeMetadata(output),
1017
+ ...contents
1018
+ };
1019
+ return response;
1020
+ }, "de_DescribeAddressesCommand");
1021
+ var de_DescribeAddressesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1022
+ const parsedOutput = {
1023
+ ...output,
1024
+ body: await parseErrorBody(output.body, context)
1025
+ };
1026
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1027
+ switch (errorCode) {
1028
+ case "InvalidNextTokenException":
1029
+ case "com.amazonaws.snowball#InvalidNextTokenException":
1030
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1031
+ case "InvalidResourceException":
1032
+ case "com.amazonaws.snowball#InvalidResourceException":
1033
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1034
+ default:
1035
+ const parsedBody = parsedOutput.body;
1036
+ return throwDefaultError({
1037
+ output,
1038
+ parsedBody,
1039
+ errorCode
1040
+ });
1041
+ }
1042
+ }, "de_DescribeAddressesCommandError");
1043
+ var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1044
+ if (output.statusCode >= 300) {
1045
+ return de_DescribeClusterCommandError(output, context);
1046
+ }
1047
+ const data = await parseBody(output.body, context);
1048
+ let contents = {};
1049
+ contents = de_DescribeClusterResult(data, context);
1050
+ const response = {
1051
+ $metadata: deserializeMetadata(output),
1052
+ ...contents
1053
+ };
1054
+ return response;
1055
+ }, "de_DescribeClusterCommand");
1056
+ var de_DescribeClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1057
+ const parsedOutput = {
1058
+ ...output,
1059
+ body: await parseErrorBody(output.body, context)
1060
+ };
1061
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1062
+ switch (errorCode) {
1063
+ case "InvalidResourceException":
1064
+ case "com.amazonaws.snowball#InvalidResourceException":
1065
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1066
+ default:
1067
+ const parsedBody = parsedOutput.body;
1068
+ return throwDefaultError({
1069
+ output,
1070
+ parsedBody,
1071
+ errorCode
1072
+ });
1073
+ }
1074
+ }, "de_DescribeClusterCommandError");
1075
+ var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1076
+ if (output.statusCode >= 300) {
1077
+ return de_DescribeJobCommandError(output, context);
1078
+ }
1079
+ const data = await parseBody(output.body, context);
1080
+ let contents = {};
1081
+ contents = de_DescribeJobResult(data, context);
1082
+ const response = {
1083
+ $metadata: deserializeMetadata(output),
1084
+ ...contents
1085
+ };
1086
+ return response;
1087
+ }, "de_DescribeJobCommand");
1088
+ var de_DescribeJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1089
+ const parsedOutput = {
1090
+ ...output,
1091
+ body: await parseErrorBody(output.body, context)
1092
+ };
1093
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1094
+ switch (errorCode) {
1095
+ case "InvalidResourceException":
1096
+ case "com.amazonaws.snowball#InvalidResourceException":
1097
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1098
+ default:
1099
+ const parsedBody = parsedOutput.body;
1100
+ return throwDefaultError({
1101
+ output,
1102
+ parsedBody,
1103
+ errorCode
1104
+ });
1105
+ }
1106
+ }, "de_DescribeJobCommandError");
1107
+ var de_DescribeReturnShippingLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
1108
+ if (output.statusCode >= 300) {
1109
+ return de_DescribeReturnShippingLabelCommandError(output, context);
1110
+ }
1111
+ const data = await parseBody(output.body, context);
1112
+ let contents = {};
1113
+ contents = de_DescribeReturnShippingLabelResult(data, context);
1114
+ const response = {
1115
+ $metadata: deserializeMetadata(output),
1116
+ ...contents
1117
+ };
1118
+ return response;
1119
+ }, "de_DescribeReturnShippingLabelCommand");
1120
+ var de_DescribeReturnShippingLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
1121
+ const parsedOutput = {
1122
+ ...output,
1123
+ body: await parseErrorBody(output.body, context)
1124
+ };
1125
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1126
+ switch (errorCode) {
1127
+ case "ConflictException":
1128
+ case "com.amazonaws.snowball#ConflictException":
1129
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1130
+ case "InvalidJobStateException":
1131
+ case "com.amazonaws.snowball#InvalidJobStateException":
1132
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
1133
+ case "InvalidResourceException":
1134
+ case "com.amazonaws.snowball#InvalidResourceException":
1135
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1136
+ default:
1137
+ const parsedBody = parsedOutput.body;
1138
+ return throwDefaultError({
1139
+ output,
1140
+ parsedBody,
1141
+ errorCode
1142
+ });
1143
+ }
1144
+ }, "de_DescribeReturnShippingLabelCommandError");
1145
+ var de_GetJobManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
1146
+ if (output.statusCode >= 300) {
1147
+ return de_GetJobManifestCommandError(output, context);
1148
+ }
1149
+ const data = await parseBody(output.body, context);
1150
+ let contents = {};
1151
+ contents = (0, import_smithy_client._json)(data);
1152
+ const response = {
1153
+ $metadata: deserializeMetadata(output),
1154
+ ...contents
1155
+ };
1156
+ return response;
1157
+ }, "de_GetJobManifestCommand");
1158
+ var de_GetJobManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
1159
+ const parsedOutput = {
1160
+ ...output,
1161
+ body: await parseErrorBody(output.body, context)
1162
+ };
1163
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1164
+ switch (errorCode) {
1165
+ case "InvalidJobStateException":
1166
+ case "com.amazonaws.snowball#InvalidJobStateException":
1167
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
1168
+ case "InvalidResourceException":
1169
+ case "com.amazonaws.snowball#InvalidResourceException":
1170
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1171
+ default:
1172
+ const parsedBody = parsedOutput.body;
1173
+ return throwDefaultError({
1174
+ output,
1175
+ parsedBody,
1176
+ errorCode
1177
+ });
1178
+ }
1179
+ }, "de_GetJobManifestCommandError");
1180
+ var de_GetJobUnlockCodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1181
+ if (output.statusCode >= 300) {
1182
+ return de_GetJobUnlockCodeCommandError(output, context);
1183
+ }
1184
+ const data = await parseBody(output.body, context);
1185
+ let contents = {};
1186
+ contents = (0, import_smithy_client._json)(data);
1187
+ const response = {
1188
+ $metadata: deserializeMetadata(output),
1189
+ ...contents
1190
+ };
1191
+ return response;
1192
+ }, "de_GetJobUnlockCodeCommand");
1193
+ var de_GetJobUnlockCodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1194
+ const parsedOutput = {
1195
+ ...output,
1196
+ body: await parseErrorBody(output.body, context)
1197
+ };
1198
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1199
+ switch (errorCode) {
1200
+ case "InvalidJobStateException":
1201
+ case "com.amazonaws.snowball#InvalidJobStateException":
1202
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
1203
+ case "InvalidResourceException":
1204
+ case "com.amazonaws.snowball#InvalidResourceException":
1205
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1206
+ default:
1207
+ const parsedBody = parsedOutput.body;
1208
+ return throwDefaultError({
1209
+ output,
1210
+ parsedBody,
1211
+ errorCode
1212
+ });
1213
+ }
1214
+ }, "de_GetJobUnlockCodeCommandError");
1215
+ var de_GetSnowballUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
1216
+ if (output.statusCode >= 300) {
1217
+ return de_GetSnowballUsageCommandError(output, context);
1218
+ }
1219
+ const data = await parseBody(output.body, context);
1220
+ let contents = {};
1221
+ contents = (0, import_smithy_client._json)(data);
1222
+ const response = {
1223
+ $metadata: deserializeMetadata(output),
1224
+ ...contents
1225
+ };
1226
+ return response;
1227
+ }, "de_GetSnowballUsageCommand");
1228
+ var de_GetSnowballUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1229
+ const parsedOutput = {
1230
+ ...output,
1231
+ body: await parseErrorBody(output.body, context)
1232
+ };
1233
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1234
+ const parsedBody = parsedOutput.body;
1235
+ return throwDefaultError({
1236
+ output,
1237
+ parsedBody,
1238
+ errorCode
1239
+ });
1240
+ }, "de_GetSnowballUsageCommandError");
1241
+ var de_GetSoftwareUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1242
+ if (output.statusCode >= 300) {
1243
+ return de_GetSoftwareUpdatesCommandError(output, context);
1244
+ }
1245
+ const data = await parseBody(output.body, context);
1246
+ let contents = {};
1247
+ contents = (0, import_smithy_client._json)(data);
1248
+ const response = {
1249
+ $metadata: deserializeMetadata(output),
1250
+ ...contents
1251
+ };
1252
+ return response;
1253
+ }, "de_GetSoftwareUpdatesCommand");
1254
+ var de_GetSoftwareUpdatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1255
+ const parsedOutput = {
1256
+ ...output,
1257
+ body: await parseErrorBody(output.body, context)
1258
+ };
1259
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1260
+ switch (errorCode) {
1261
+ case "InvalidJobStateException":
1262
+ case "com.amazonaws.snowball#InvalidJobStateException":
1263
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
1264
+ case "InvalidResourceException":
1265
+ case "com.amazonaws.snowball#InvalidResourceException":
1266
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1267
+ default:
1268
+ const parsedBody = parsedOutput.body;
1269
+ return throwDefaultError({
1270
+ output,
1271
+ parsedBody,
1272
+ errorCode
1273
+ });
1274
+ }
1275
+ }, "de_GetSoftwareUpdatesCommandError");
1276
+ var de_ListClusterJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1277
+ if (output.statusCode >= 300) {
1278
+ return de_ListClusterJobsCommandError(output, context);
1279
+ }
1280
+ const data = await parseBody(output.body, context);
1281
+ let contents = {};
1282
+ contents = de_ListClusterJobsResult(data, context);
1283
+ const response = {
1284
+ $metadata: deserializeMetadata(output),
1285
+ ...contents
1286
+ };
1287
+ return response;
1288
+ }, "de_ListClusterJobsCommand");
1289
+ var de_ListClusterJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1290
+ const parsedOutput = {
1291
+ ...output,
1292
+ body: await parseErrorBody(output.body, context)
1293
+ };
1294
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1295
+ switch (errorCode) {
1296
+ case "InvalidNextTokenException":
1297
+ case "com.amazonaws.snowball#InvalidNextTokenException":
1298
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1299
+ case "InvalidResourceException":
1300
+ case "com.amazonaws.snowball#InvalidResourceException":
1301
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1302
+ default:
1303
+ const parsedBody = parsedOutput.body;
1304
+ return throwDefaultError({
1305
+ output,
1306
+ parsedBody,
1307
+ errorCode
1308
+ });
1309
+ }
1310
+ }, "de_ListClusterJobsCommandError");
1311
+ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
1312
+ if (output.statusCode >= 300) {
1313
+ return de_ListClustersCommandError(output, context);
1314
+ }
1315
+ const data = await parseBody(output.body, context);
1316
+ let contents = {};
1317
+ contents = de_ListClustersResult(data, context);
1318
+ const response = {
1319
+ $metadata: deserializeMetadata(output),
1320
+ ...contents
1321
+ };
1322
+ return response;
1323
+ }, "de_ListClustersCommand");
1324
+ var de_ListClustersCommandError = /* @__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 "InvalidNextTokenException":
1332
+ case "com.amazonaws.snowball#InvalidNextTokenException":
1333
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1334
+ default:
1335
+ const parsedBody = parsedOutput.body;
1336
+ return throwDefaultError({
1337
+ output,
1338
+ parsedBody,
1339
+ errorCode
1340
+ });
1341
+ }
1342
+ }, "de_ListClustersCommandError");
1343
+ var de_ListCompatibleImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1344
+ if (output.statusCode >= 300) {
1345
+ return de_ListCompatibleImagesCommandError(output, context);
1346
+ }
1347
+ const data = await parseBody(output.body, context);
1348
+ let contents = {};
1349
+ contents = (0, import_smithy_client._json)(data);
1350
+ const response = {
1351
+ $metadata: deserializeMetadata(output),
1352
+ ...contents
1353
+ };
1354
+ return response;
1355
+ }, "de_ListCompatibleImagesCommand");
1356
+ var de_ListCompatibleImagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1357
+ const parsedOutput = {
1358
+ ...output,
1359
+ body: await parseErrorBody(output.body, context)
1360
+ };
1361
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1362
+ switch (errorCode) {
1363
+ case "Ec2RequestFailedException":
1364
+ case "com.amazonaws.snowball#Ec2RequestFailedException":
1365
+ throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
1366
+ case "InvalidNextTokenException":
1367
+ case "com.amazonaws.snowball#InvalidNextTokenException":
1368
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1369
+ default:
1370
+ const parsedBody = parsedOutput.body;
1371
+ return throwDefaultError({
1372
+ output,
1373
+ parsedBody,
1374
+ errorCode
1375
+ });
1376
+ }
1377
+ }, "de_ListCompatibleImagesCommandError");
1378
+ var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1379
+ if (output.statusCode >= 300) {
1380
+ return de_ListJobsCommandError(output, context);
1381
+ }
1382
+ const data = await parseBody(output.body, context);
1383
+ let contents = {};
1384
+ contents = de_ListJobsResult(data, context);
1385
+ const response = {
1386
+ $metadata: deserializeMetadata(output),
1387
+ ...contents
1388
+ };
1389
+ return response;
1390
+ }, "de_ListJobsCommand");
1391
+ var de_ListJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1392
+ const parsedOutput = {
1393
+ ...output,
1394
+ body: await parseErrorBody(output.body, context)
1395
+ };
1396
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1397
+ switch (errorCode) {
1398
+ case "InvalidNextTokenException":
1399
+ case "com.amazonaws.snowball#InvalidNextTokenException":
1400
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1401
+ default:
1402
+ const parsedBody = parsedOutput.body;
1403
+ return throwDefaultError({
1404
+ output,
1405
+ parsedBody,
1406
+ errorCode
1407
+ });
1408
+ }
1409
+ }, "de_ListJobsCommandError");
1410
+ var de_ListLongTermPricingCommand = /* @__PURE__ */ __name(async (output, context) => {
1411
+ if (output.statusCode >= 300) {
1412
+ return de_ListLongTermPricingCommandError(output, context);
1413
+ }
1414
+ const data = await parseBody(output.body, context);
1415
+ let contents = {};
1416
+ contents = de_ListLongTermPricingResult(data, context);
1417
+ const response = {
1418
+ $metadata: deserializeMetadata(output),
1419
+ ...contents
1420
+ };
1421
+ return response;
1422
+ }, "de_ListLongTermPricingCommand");
1423
+ var de_ListLongTermPricingCommandError = /* @__PURE__ */ __name(async (output, context) => {
1424
+ const parsedOutput = {
1425
+ ...output,
1426
+ body: await parseErrorBody(output.body, context)
1427
+ };
1428
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1429
+ switch (errorCode) {
1430
+ case "InvalidNextTokenException":
1431
+ case "com.amazonaws.snowball#InvalidNextTokenException":
1432
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1433
+ case "InvalidResourceException":
1434
+ case "com.amazonaws.snowball#InvalidResourceException":
1435
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1436
+ default:
1437
+ const parsedBody = parsedOutput.body;
1438
+ return throwDefaultError({
1439
+ output,
1440
+ parsedBody,
1441
+ errorCode
1442
+ });
1443
+ }
1444
+ }, "de_ListLongTermPricingCommandError");
1445
+ var de_ListPickupLocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1446
+ if (output.statusCode >= 300) {
1447
+ return de_ListPickupLocationsCommandError(output, context);
1448
+ }
1449
+ const data = await parseBody(output.body, context);
1450
+ let contents = {};
1451
+ contents = (0, import_smithy_client._json)(data);
1452
+ const response = {
1453
+ $metadata: deserializeMetadata(output),
1454
+ ...contents
1455
+ };
1456
+ return response;
1457
+ }, "de_ListPickupLocationsCommand");
1458
+ var de_ListPickupLocationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1459
+ const parsedOutput = {
1460
+ ...output,
1461
+ body: await parseErrorBody(output.body, context)
1462
+ };
1463
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1464
+ switch (errorCode) {
1465
+ case "InvalidResourceException":
1466
+ case "com.amazonaws.snowball#InvalidResourceException":
1467
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1468
+ default:
1469
+ const parsedBody = parsedOutput.body;
1470
+ return throwDefaultError({
1471
+ output,
1472
+ parsedBody,
1473
+ errorCode
1474
+ });
1475
+ }
1476
+ }, "de_ListPickupLocationsCommandError");
1477
+ var de_ListServiceVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1478
+ if (output.statusCode >= 300) {
1479
+ return de_ListServiceVersionsCommandError(output, context);
1480
+ }
1481
+ const data = await parseBody(output.body, context);
1482
+ let contents = {};
1483
+ contents = (0, import_smithy_client._json)(data);
1484
+ const response = {
1485
+ $metadata: deserializeMetadata(output),
1486
+ ...contents
1487
+ };
1488
+ return response;
1489
+ }, "de_ListServiceVersionsCommand");
1490
+ var de_ListServiceVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1491
+ const parsedOutput = {
1492
+ ...output,
1493
+ body: await parseErrorBody(output.body, context)
1494
+ };
1495
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1496
+ switch (errorCode) {
1497
+ case "InvalidNextTokenException":
1498
+ case "com.amazonaws.snowball#InvalidNextTokenException":
1499
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1500
+ case "InvalidResourceException":
1501
+ case "com.amazonaws.snowball#InvalidResourceException":
1502
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1503
+ default:
1504
+ const parsedBody = parsedOutput.body;
1505
+ return throwDefaultError({
1506
+ output,
1507
+ parsedBody,
1508
+ errorCode
1509
+ });
1510
+ }
1511
+ }, "de_ListServiceVersionsCommandError");
1512
+ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1513
+ if (output.statusCode >= 300) {
1514
+ return de_UpdateClusterCommandError(output, context);
1515
+ }
1516
+ const data = await parseBody(output.body, context);
1517
+ let contents = {};
1518
+ contents = (0, import_smithy_client._json)(data);
1519
+ const response = {
1520
+ $metadata: deserializeMetadata(output),
1521
+ ...contents
1522
+ };
1523
+ return response;
1524
+ }, "de_UpdateClusterCommand");
1525
+ var de_UpdateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1526
+ const parsedOutput = {
1527
+ ...output,
1528
+ body: await parseErrorBody(output.body, context)
1529
+ };
1530
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1531
+ switch (errorCode) {
1532
+ case "Ec2RequestFailedException":
1533
+ case "com.amazonaws.snowball#Ec2RequestFailedException":
1534
+ throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
1535
+ case "InvalidInputCombinationException":
1536
+ case "com.amazonaws.snowball#InvalidInputCombinationException":
1537
+ throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
1538
+ case "InvalidJobStateException":
1539
+ case "com.amazonaws.snowball#InvalidJobStateException":
1540
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
1541
+ case "InvalidResourceException":
1542
+ case "com.amazonaws.snowball#InvalidResourceException":
1543
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1544
+ case "KMSRequestFailedException":
1545
+ case "com.amazonaws.snowball#KMSRequestFailedException":
1546
+ throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
1547
+ default:
1548
+ const parsedBody = parsedOutput.body;
1549
+ return throwDefaultError({
1550
+ output,
1551
+ parsedBody,
1552
+ errorCode
1553
+ });
1554
+ }
1555
+ }, "de_UpdateClusterCommandError");
1556
+ var de_UpdateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1557
+ if (output.statusCode >= 300) {
1558
+ return de_UpdateJobCommandError(output, context);
1559
+ }
1560
+ const data = await parseBody(output.body, context);
1561
+ let contents = {};
1562
+ contents = (0, import_smithy_client._json)(data);
1563
+ const response = {
1564
+ $metadata: deserializeMetadata(output),
1565
+ ...contents
1566
+ };
1567
+ return response;
1568
+ }, "de_UpdateJobCommand");
1569
+ var de_UpdateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1570
+ const parsedOutput = {
1571
+ ...output,
1572
+ body: await parseErrorBody(output.body, context)
1573
+ };
1574
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1575
+ switch (errorCode) {
1576
+ case "ClusterLimitExceededException":
1577
+ case "com.amazonaws.snowball#ClusterLimitExceededException":
1578
+ throw await de_ClusterLimitExceededExceptionRes(parsedOutput, context);
1579
+ case "Ec2RequestFailedException":
1580
+ case "com.amazonaws.snowball#Ec2RequestFailedException":
1581
+ throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
1582
+ case "InvalidInputCombinationException":
1583
+ case "com.amazonaws.snowball#InvalidInputCombinationException":
1584
+ throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
1585
+ case "InvalidJobStateException":
1586
+ case "com.amazonaws.snowball#InvalidJobStateException":
1587
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
1588
+ case "InvalidResourceException":
1589
+ case "com.amazonaws.snowball#InvalidResourceException":
1590
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1591
+ case "KMSRequestFailedException":
1592
+ case "com.amazonaws.snowball#KMSRequestFailedException":
1593
+ throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
1594
+ default:
1595
+ const parsedBody = parsedOutput.body;
1596
+ return throwDefaultError({
1597
+ output,
1598
+ parsedBody,
1599
+ errorCode
1600
+ });
1601
+ }
1602
+ }, "de_UpdateJobCommandError");
1603
+ var de_UpdateJobShipmentStateCommand = /* @__PURE__ */ __name(async (output, context) => {
1604
+ if (output.statusCode >= 300) {
1605
+ return de_UpdateJobShipmentStateCommandError(output, context);
1606
+ }
1607
+ const data = await parseBody(output.body, context);
1608
+ let contents = {};
1609
+ contents = (0, import_smithy_client._json)(data);
1610
+ const response = {
1611
+ $metadata: deserializeMetadata(output),
1612
+ ...contents
1613
+ };
1614
+ return response;
1615
+ }, "de_UpdateJobShipmentStateCommand");
1616
+ var de_UpdateJobShipmentStateCommandError = /* @__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 "InvalidJobStateException":
1624
+ case "com.amazonaws.snowball#InvalidJobStateException":
1625
+ throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
1626
+ case "InvalidResourceException":
1627
+ case "com.amazonaws.snowball#InvalidResourceException":
1628
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1629
+ default:
1630
+ const parsedBody = parsedOutput.body;
1631
+ return throwDefaultError({
1632
+ output,
1633
+ parsedBody,
1634
+ errorCode
1635
+ });
1636
+ }
1637
+ }, "de_UpdateJobShipmentStateCommandError");
1638
+ var de_UpdateLongTermPricingCommand = /* @__PURE__ */ __name(async (output, context) => {
1639
+ if (output.statusCode >= 300) {
1640
+ return de_UpdateLongTermPricingCommandError(output, context);
1641
+ }
1642
+ const data = await parseBody(output.body, context);
1643
+ let contents = {};
1644
+ contents = (0, import_smithy_client._json)(data);
1645
+ const response = {
1646
+ $metadata: deserializeMetadata(output),
1647
+ ...contents
1648
+ };
1649
+ return response;
1650
+ }, "de_UpdateLongTermPricingCommand");
1651
+ var de_UpdateLongTermPricingCommandError = /* @__PURE__ */ __name(async (output, context) => {
1652
+ const parsedOutput = {
1653
+ ...output,
1654
+ body: await parseErrorBody(output.body, context)
1655
+ };
1656
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1657
+ switch (errorCode) {
1658
+ case "InvalidResourceException":
1659
+ case "com.amazonaws.snowball#InvalidResourceException":
1660
+ throw await de_InvalidResourceExceptionRes(parsedOutput, context);
1661
+ default:
1662
+ const parsedBody = parsedOutput.body;
1663
+ return throwDefaultError({
1664
+ output,
1665
+ parsedBody,
1666
+ errorCode
1667
+ });
1668
+ }
1669
+ }, "de_UpdateLongTermPricingCommandError");
1670
+ var de_ClusterLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1671
+ const body = parsedOutput.body;
1672
+ const deserialized = (0, import_smithy_client._json)(body);
1673
+ const exception = new ClusterLimitExceededException({
1674
+ $metadata: deserializeMetadata(parsedOutput),
1675
+ ...deserialized
1676
+ });
1677
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1678
+ }, "de_ClusterLimitExceededExceptionRes");
1679
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1680
+ const body = parsedOutput.body;
1681
+ const deserialized = (0, import_smithy_client._json)(body);
1682
+ const exception = new ConflictException({
1683
+ $metadata: deserializeMetadata(parsedOutput),
1684
+ ...deserialized
1685
+ });
1686
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1687
+ }, "de_ConflictExceptionRes");
1688
+ var de_Ec2RequestFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1689
+ const body = parsedOutput.body;
1690
+ const deserialized = (0, import_smithy_client._json)(body);
1691
+ const exception = new Ec2RequestFailedException({
1692
+ $metadata: deserializeMetadata(parsedOutput),
1693
+ ...deserialized
1694
+ });
1695
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1696
+ }, "de_Ec2RequestFailedExceptionRes");
1697
+ var de_InvalidAddressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1698
+ const body = parsedOutput.body;
1699
+ const deserialized = (0, import_smithy_client._json)(body);
1700
+ const exception = new InvalidAddressException({
1701
+ $metadata: deserializeMetadata(parsedOutput),
1702
+ ...deserialized
1703
+ });
1704
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1705
+ }, "de_InvalidAddressExceptionRes");
1706
+ var de_InvalidInputCombinationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1707
+ const body = parsedOutput.body;
1708
+ const deserialized = (0, import_smithy_client._json)(body);
1709
+ const exception = new InvalidInputCombinationException({
1710
+ $metadata: deserializeMetadata(parsedOutput),
1711
+ ...deserialized
1712
+ });
1713
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1714
+ }, "de_InvalidInputCombinationExceptionRes");
1715
+ var de_InvalidJobStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1716
+ const body = parsedOutput.body;
1717
+ const deserialized = (0, import_smithy_client._json)(body);
1718
+ const exception = new InvalidJobStateException({
1719
+ $metadata: deserializeMetadata(parsedOutput),
1720
+ ...deserialized
1721
+ });
1722
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1723
+ }, "de_InvalidJobStateExceptionRes");
1724
+ var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1725
+ const body = parsedOutput.body;
1726
+ const deserialized = (0, import_smithy_client._json)(body);
1727
+ const exception = new InvalidNextTokenException({
1728
+ $metadata: deserializeMetadata(parsedOutput),
1729
+ ...deserialized
1730
+ });
1731
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1732
+ }, "de_InvalidNextTokenExceptionRes");
1733
+ var de_InvalidResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1734
+ const body = parsedOutput.body;
1735
+ const deserialized = (0, import_smithy_client._json)(body);
1736
+ const exception = new InvalidResourceException({
1737
+ $metadata: deserializeMetadata(parsedOutput),
1738
+ ...deserialized
1739
+ });
1740
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1741
+ }, "de_InvalidResourceExceptionRes");
1742
+ var de_KMSRequestFailedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1743
+ const body = parsedOutput.body;
1744
+ const deserialized = (0, import_smithy_client._json)(body);
1745
+ const exception = new KMSRequestFailedException({
1746
+ $metadata: deserializeMetadata(parsedOutput),
1747
+ ...deserialized
1748
+ });
1749
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1750
+ }, "de_KMSRequestFailedExceptionRes");
1751
+ var de_ReturnShippingLabelAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1752
+ const body = parsedOutput.body;
1753
+ const deserialized = (0, import_smithy_client._json)(body);
1754
+ const exception = new ReturnShippingLabelAlreadyExistsException({
1755
+ $metadata: deserializeMetadata(parsedOutput),
1756
+ ...deserialized
1757
+ });
1758
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1759
+ }, "de_ReturnShippingLabelAlreadyExistsExceptionRes");
1760
+ var de_UnsupportedAddressExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1761
+ const body = parsedOutput.body;
1762
+ const deserialized = (0, import_smithy_client._json)(body);
1763
+ const exception = new UnsupportedAddressException({
1764
+ $metadata: deserializeMetadata(parsedOutput),
1765
+ ...deserialized
1766
+ });
1767
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1768
+ }, "de_UnsupportedAddressExceptionRes");
1769
+ var se_CreateClusterRequest = /* @__PURE__ */ __name((input, context) => {
1770
+ return (0, import_smithy_client.take)(input, {
1771
+ AddressId: [],
1772
+ Description: [],
1773
+ ForceCreateJobs: [],
1774
+ ForwardingAddressId: [],
1775
+ InitialClusterSize: [],
1776
+ JobType: [],
1777
+ KmsKeyARN: [],
1778
+ LongTermPricingIds: import_smithy_client._json,
1779
+ Notification: import_smithy_client._json,
1780
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1781
+ RemoteManagement: [],
1782
+ Resources: import_smithy_client._json,
1783
+ RoleARN: [],
1784
+ ShippingOption: [],
1785
+ SnowballCapacityPreference: [],
1786
+ SnowballType: [],
1787
+ TaxDocuments: import_smithy_client._json
1788
+ });
1789
+ }, "se_CreateClusterRequest");
1790
+ var se_CreateJobRequest = /* @__PURE__ */ __name((input, context) => {
1791
+ return (0, import_smithy_client.take)(input, {
1792
+ AddressId: [],
1793
+ ClusterId: [],
1794
+ Description: [],
1795
+ DeviceConfiguration: import_smithy_client._json,
1796
+ ForwardingAddressId: [],
1797
+ ImpactLevel: [],
1798
+ JobType: [],
1799
+ KmsKeyARN: [],
1800
+ LongTermPricingId: [],
1801
+ Notification: import_smithy_client._json,
1802
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1803
+ PickupDetails: (_) => se_PickupDetails(_, context),
1804
+ RemoteManagement: [],
1805
+ Resources: import_smithy_client._json,
1806
+ RoleARN: [],
1807
+ ShippingOption: [],
1808
+ SnowballCapacityPreference: [],
1809
+ SnowballType: [],
1810
+ TaxDocuments: import_smithy_client._json
1811
+ });
1812
+ }, "se_CreateJobRequest");
1813
+ var se_OnDeviceServiceConfiguration = /* @__PURE__ */ __name((input, context) => {
1814
+ return (0, import_smithy_client.take)(input, {
1815
+ EKSOnDeviceService: import_smithy_client._json,
1816
+ NFSOnDeviceService: import_smithy_client._json,
1817
+ S3OnDeviceService: (_) => se_S3OnDeviceServiceConfiguration(_, context),
1818
+ TGWOnDeviceService: import_smithy_client._json
1819
+ });
1820
+ }, "se_OnDeviceServiceConfiguration");
1821
+ var se_PickupDetails = /* @__PURE__ */ __name((input, context) => {
1822
+ return (0, import_smithy_client.take)(input, {
1823
+ DevicePickupId: [],
1824
+ Email: [],
1825
+ IdentificationExpirationDate: (_) => Math.round(_.getTime() / 1e3),
1826
+ IdentificationIssuingOrg: [],
1827
+ IdentificationNumber: [],
1828
+ Name: [],
1829
+ PhoneNumber: []
1830
+ });
1831
+ }, "se_PickupDetails");
1832
+ var se_S3OnDeviceServiceConfiguration = /* @__PURE__ */ __name((input, context) => {
1833
+ return (0, import_smithy_client.take)(input, {
1834
+ FaultTolerance: [],
1835
+ ServiceSize: [],
1836
+ StorageLimit: import_smithy_client.serializeFloat,
1837
+ StorageUnit: []
1838
+ });
1839
+ }, "se_S3OnDeviceServiceConfiguration");
1840
+ var se_UpdateClusterRequest = /* @__PURE__ */ __name((input, context) => {
1841
+ return (0, import_smithy_client.take)(input, {
1842
+ AddressId: [],
1843
+ ClusterId: [],
1844
+ Description: [],
1845
+ ForwardingAddressId: [],
1846
+ Notification: import_smithy_client._json,
1847
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1848
+ Resources: import_smithy_client._json,
1849
+ RoleARN: [],
1850
+ ShippingOption: []
1851
+ });
1852
+ }, "se_UpdateClusterRequest");
1853
+ var se_UpdateJobRequest = /* @__PURE__ */ __name((input, context) => {
1854
+ return (0, import_smithy_client.take)(input, {
1855
+ AddressId: [],
1856
+ Description: [],
1857
+ ForwardingAddressId: [],
1858
+ JobId: [],
1859
+ Notification: import_smithy_client._json,
1860
+ OnDeviceServiceConfiguration: (_) => se_OnDeviceServiceConfiguration(_, context),
1861
+ PickupDetails: (_) => se_PickupDetails(_, context),
1862
+ Resources: import_smithy_client._json,
1863
+ RoleARN: [],
1864
+ ShippingOption: [],
1865
+ SnowballCapacityPreference: []
1866
+ });
1867
+ }, "se_UpdateJobRequest");
1868
+ var de_ClusterListEntry = /* @__PURE__ */ __name((output, context) => {
1869
+ return (0, import_smithy_client.take)(output, {
1870
+ ClusterId: import_smithy_client.expectString,
1871
+ ClusterState: import_smithy_client.expectString,
1872
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1873
+ Description: import_smithy_client.expectString
1874
+ });
1875
+ }, "de_ClusterListEntry");
1876
+ var de_ClusterListEntryList = /* @__PURE__ */ __name((output, context) => {
1877
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1878
+ return de_ClusterListEntry(entry, context);
1879
+ });
1880
+ return retVal;
1881
+ }, "de_ClusterListEntryList");
1882
+ var de_ClusterMetadata = /* @__PURE__ */ __name((output, context) => {
1883
+ return (0, import_smithy_client.take)(output, {
1884
+ AddressId: import_smithy_client.expectString,
1885
+ ClusterId: import_smithy_client.expectString,
1886
+ ClusterState: import_smithy_client.expectString,
1887
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1888
+ Description: import_smithy_client.expectString,
1889
+ ForwardingAddressId: import_smithy_client.expectString,
1890
+ JobType: import_smithy_client.expectString,
1891
+ KmsKeyARN: import_smithy_client.expectString,
1892
+ Notification: import_smithy_client._json,
1893
+ OnDeviceServiceConfiguration: (_) => de_OnDeviceServiceConfiguration(_, context),
1894
+ Resources: import_smithy_client._json,
1895
+ RoleARN: import_smithy_client.expectString,
1896
+ ShippingOption: import_smithy_client.expectString,
1897
+ SnowballType: import_smithy_client.expectString,
1898
+ TaxDocuments: import_smithy_client._json
1899
+ });
1900
+ }, "de_ClusterMetadata");
1901
+ var de_CreateClusterResult = /* @__PURE__ */ __name((output, context) => {
1902
+ return (0, import_smithy_client.take)(output, {
1903
+ ClusterId: import_smithy_client.expectString,
1904
+ JobListEntries: (_) => de_JobListEntryList(_, context)
1905
+ });
1906
+ }, "de_CreateClusterResult");
1907
+ var de_DescribeClusterResult = /* @__PURE__ */ __name((output, context) => {
1908
+ return (0, import_smithy_client.take)(output, {
1909
+ ClusterMetadata: (_) => de_ClusterMetadata(_, context)
1910
+ });
1911
+ }, "de_DescribeClusterResult");
1912
+ var de_DescribeJobResult = /* @__PURE__ */ __name((output, context) => {
1913
+ return (0, import_smithy_client.take)(output, {
1914
+ JobMetadata: (_) => de_JobMetadata(_, context),
1915
+ SubJobMetadata: (_) => de_JobMetadataList(_, context)
1916
+ });
1917
+ }, "de_DescribeJobResult");
1918
+ var de_DescribeReturnShippingLabelResult = /* @__PURE__ */ __name((output, context) => {
1919
+ return (0, import_smithy_client.take)(output, {
1920
+ ExpirationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1921
+ ReturnShippingLabelURI: import_smithy_client.expectString,
1922
+ Status: import_smithy_client.expectString
1923
+ });
1924
+ }, "de_DescribeReturnShippingLabelResult");
1925
+ var de_JobListEntry = /* @__PURE__ */ __name((output, context) => {
1926
+ return (0, import_smithy_client.take)(output, {
1927
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1928
+ Description: import_smithy_client.expectString,
1929
+ IsMaster: import_smithy_client.expectBoolean,
1930
+ JobId: import_smithy_client.expectString,
1931
+ JobState: import_smithy_client.expectString,
1932
+ JobType: import_smithy_client.expectString,
1933
+ SnowballType: import_smithy_client.expectString
1934
+ });
1935
+ }, "de_JobListEntry");
1936
+ var de_JobListEntryList = /* @__PURE__ */ __name((output, context) => {
1937
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1938
+ return de_JobListEntry(entry, context);
1939
+ });
1940
+ return retVal;
1941
+ }, "de_JobListEntryList");
1942
+ var de_JobMetadata = /* @__PURE__ */ __name((output, context) => {
1943
+ return (0, import_smithy_client.take)(output, {
1944
+ AddressId: import_smithy_client.expectString,
1945
+ ClusterId: import_smithy_client.expectString,
1946
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1947
+ DataTransferProgress: import_smithy_client._json,
1948
+ Description: import_smithy_client.expectString,
1949
+ DeviceConfiguration: import_smithy_client._json,
1950
+ ForwardingAddressId: import_smithy_client.expectString,
1951
+ ImpactLevel: import_smithy_client.expectString,
1952
+ JobId: import_smithy_client.expectString,
1953
+ JobLogInfo: import_smithy_client._json,
1954
+ JobState: import_smithy_client.expectString,
1955
+ JobType: import_smithy_client.expectString,
1956
+ KmsKeyARN: import_smithy_client.expectString,
1957
+ LongTermPricingId: import_smithy_client.expectString,
1958
+ Notification: import_smithy_client._json,
1959
+ OnDeviceServiceConfiguration: (_) => de_OnDeviceServiceConfiguration(_, context),
1960
+ PickupDetails: (_) => de_PickupDetails(_, context),
1961
+ RemoteManagement: import_smithy_client.expectString,
1962
+ Resources: import_smithy_client._json,
1963
+ RoleARN: import_smithy_client.expectString,
1964
+ ShippingDetails: import_smithy_client._json,
1965
+ SnowballCapacityPreference: import_smithy_client.expectString,
1966
+ SnowballId: import_smithy_client.expectString,
1967
+ SnowballType: import_smithy_client.expectString,
1968
+ TaxDocuments: import_smithy_client._json
1969
+ });
1970
+ }, "de_JobMetadata");
1971
+ var de_JobMetadataList = /* @__PURE__ */ __name((output, context) => {
1972
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1973
+ return de_JobMetadata(entry, context);
1974
+ });
1975
+ return retVal;
1976
+ }, "de_JobMetadataList");
1977
+ var de_ListClusterJobsResult = /* @__PURE__ */ __name((output, context) => {
1978
+ return (0, import_smithy_client.take)(output, {
1979
+ JobListEntries: (_) => de_JobListEntryList(_, context),
1980
+ NextToken: import_smithy_client.expectString
1981
+ });
1982
+ }, "de_ListClusterJobsResult");
1983
+ var de_ListClustersResult = /* @__PURE__ */ __name((output, context) => {
1984
+ return (0, import_smithy_client.take)(output, {
1985
+ ClusterListEntries: (_) => de_ClusterListEntryList(_, context),
1986
+ NextToken: import_smithy_client.expectString
1987
+ });
1988
+ }, "de_ListClustersResult");
1989
+ var de_ListJobsResult = /* @__PURE__ */ __name((output, context) => {
1990
+ return (0, import_smithy_client.take)(output, {
1991
+ JobListEntries: (_) => de_JobListEntryList(_, context),
1992
+ NextToken: import_smithy_client.expectString
1993
+ });
1994
+ }, "de_ListJobsResult");
1995
+ var de_ListLongTermPricingResult = /* @__PURE__ */ __name((output, context) => {
1996
+ return (0, import_smithy_client.take)(output, {
1997
+ LongTermPricingEntries: (_) => de_LongTermPricingEntryList(_, context),
1998
+ NextToken: import_smithy_client.expectString
1999
+ });
2000
+ }, "de_ListLongTermPricingResult");
2001
+ var de_LongTermPricingEntryList = /* @__PURE__ */ __name((output, context) => {
2002
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2003
+ return de_LongTermPricingListEntry(entry, context);
2004
+ });
2005
+ return retVal;
2006
+ }, "de_LongTermPricingEntryList");
2007
+ var de_LongTermPricingListEntry = /* @__PURE__ */ __name((output, context) => {
2008
+ return (0, import_smithy_client.take)(output, {
2009
+ CurrentActiveJob: import_smithy_client.expectString,
2010
+ IsLongTermPricingAutoRenew: import_smithy_client.expectBoolean,
2011
+ JobIds: import_smithy_client._json,
2012
+ LongTermPricingEndDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2013
+ LongTermPricingId: import_smithy_client.expectString,
2014
+ LongTermPricingStartDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2015
+ LongTermPricingStatus: import_smithy_client.expectString,
2016
+ LongTermPricingType: import_smithy_client.expectString,
2017
+ ReplacementJob: import_smithy_client.expectString,
2018
+ SnowballType: import_smithy_client.expectString
2019
+ });
2020
+ }, "de_LongTermPricingListEntry");
2021
+ var de_OnDeviceServiceConfiguration = /* @__PURE__ */ __name((output, context) => {
2022
+ return (0, import_smithy_client.take)(output, {
2023
+ EKSOnDeviceService: import_smithy_client._json,
2024
+ NFSOnDeviceService: import_smithy_client._json,
2025
+ S3OnDeviceService: (_) => de_S3OnDeviceServiceConfiguration(_, context),
2026
+ TGWOnDeviceService: import_smithy_client._json
2027
+ });
2028
+ }, "de_OnDeviceServiceConfiguration");
2029
+ var de_PickupDetails = /* @__PURE__ */ __name((output, context) => {
2030
+ return (0, import_smithy_client.take)(output, {
2031
+ DevicePickupId: import_smithy_client.expectString,
2032
+ Email: import_smithy_client.expectString,
2033
+ IdentificationExpirationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2034
+ IdentificationIssuingOrg: import_smithy_client.expectString,
2035
+ IdentificationNumber: import_smithy_client.expectString,
2036
+ Name: import_smithy_client.expectString,
2037
+ PhoneNumber: import_smithy_client.expectString
2038
+ });
2039
+ }, "de_PickupDetails");
2040
+ var de_S3OnDeviceServiceConfiguration = /* @__PURE__ */ __name((output, context) => {
2041
+ return (0, import_smithy_client.take)(output, {
2042
+ FaultTolerance: import_smithy_client.expectInt32,
2043
+ ServiceSize: import_smithy_client.expectInt32,
2044
+ StorageLimit: import_smithy_client.limitedParseDouble,
2045
+ StorageUnit: import_smithy_client.expectString
2046
+ });
2047
+ }, "de_S3OnDeviceServiceConfiguration");
2048
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2049
+ httpStatusCode: output.statusCode,
2050
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2051
+ extendedRequestId: output.headers["x-amz-id-2"],
2052
+ cfId: output.headers["x-amz-cf-id"]
2053
+ }), "deserializeMetadata");
2054
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2055
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(SnowballServiceException);
2056
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
2057
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2058
+ const contents = {
2059
+ protocol,
2060
+ hostname,
2061
+ port,
2062
+ method: "POST",
2063
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2064
+ headers
2065
+ };
2066
+ if (resolvedHostname !== void 0) {
2067
+ contents.hostname = resolvedHostname;
2068
+ }
2069
+ if (body !== void 0) {
2070
+ contents.body = body;
2071
+ }
2072
+ return new import_protocol_http.HttpRequest(contents);
2073
+ }, "buildHttpRpcRequest");
2074
+ function sharedHeaders(operation) {
2075
+ return {
2076
+ "content-type": "application/x-amz-json-1.1",
2077
+ "x-amz-target": `AWSIESnowballJobManagementService.${operation}`
2078
+ };
2079
+ }
2080
+ __name(sharedHeaders, "sharedHeaders");
2081
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2082
+ if (encoded.length) {
2083
+ return JSON.parse(encoded);
2084
+ }
2085
+ return {};
2086
+ }), "parseBody");
2087
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2088
+ const value = await parseBody(errorBody, context);
2089
+ value.message = value.message ?? value.Message;
2090
+ return value;
2091
+ }, "parseErrorBody");
2092
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2093
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2094
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2095
+ let cleanValue = rawValue;
2096
+ if (typeof cleanValue === "number") {
2097
+ cleanValue = cleanValue.toString();
2098
+ }
2099
+ if (cleanValue.indexOf(",") >= 0) {
2100
+ cleanValue = cleanValue.split(",")[0];
2101
+ }
2102
+ if (cleanValue.indexOf(":") >= 0) {
2103
+ cleanValue = cleanValue.split(":")[0];
2104
+ }
2105
+ if (cleanValue.indexOf("#") >= 0) {
2106
+ cleanValue = cleanValue.split("#")[1];
2107
+ }
2108
+ return cleanValue;
2109
+ }, "sanitizeErrorCode");
2110
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2111
+ if (headerKey !== void 0) {
2112
+ return sanitizeErrorCode(output.headers[headerKey]);
2113
+ }
2114
+ if (data.code !== void 0) {
2115
+ return sanitizeErrorCode(data.code);
2116
+ }
2117
+ if (data["__type"] !== void 0) {
2118
+ return sanitizeErrorCode(data["__type"]);
2119
+ }
2120
+ }, "loadRestJsonErrorCode");
2121
+
2122
+ // src/commands/CancelClusterCommand.ts
2123
+ var _CancelClusterCommand = class _CancelClusterCommand extends import_smithy_client.Command.classBuilder().ep({
2124
+ ...commonParams
2125
+ }).m(function(Command, cs, config, o) {
2126
+ return [
2127
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2128
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2129
+ ];
2130
+ }).s("AWSIESnowballJobManagementService", "CancelCluster", {}).n("SnowballClient", "CancelClusterCommand").f(void 0, void 0).ser(se_CancelClusterCommand).de(de_CancelClusterCommand).build() {
2131
+ };
2132
+ __name(_CancelClusterCommand, "CancelClusterCommand");
2133
+ var CancelClusterCommand = _CancelClusterCommand;
2134
+
2135
+ // src/commands/CancelJobCommand.ts
2136
+
2137
+
2138
+
2139
+
2140
+ var _CancelJobCommand = class _CancelJobCommand extends import_smithy_client.Command.classBuilder().ep({
2141
+ ...commonParams
2142
+ }).m(function(Command, cs, config, o) {
2143
+ return [
2144
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2145
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2146
+ ];
2147
+ }).s("AWSIESnowballJobManagementService", "CancelJob", {}).n("SnowballClient", "CancelJobCommand").f(void 0, void 0).ser(se_CancelJobCommand).de(de_CancelJobCommand).build() {
2148
+ };
2149
+ __name(_CancelJobCommand, "CancelJobCommand");
2150
+ var CancelJobCommand = _CancelJobCommand;
2151
+
2152
+ // src/commands/CreateAddressCommand.ts
2153
+
2154
+
2155
+
2156
+
2157
+ var _CreateAddressCommand = class _CreateAddressCommand extends import_smithy_client.Command.classBuilder().ep({
2158
+ ...commonParams
2159
+ }).m(function(Command, cs, config, o) {
2160
+ return [
2161
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2162
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2163
+ ];
2164
+ }).s("AWSIESnowballJobManagementService", "CreateAddress", {}).n("SnowballClient", "CreateAddressCommand").f(void 0, void 0).ser(se_CreateAddressCommand).de(de_CreateAddressCommand).build() {
2165
+ };
2166
+ __name(_CreateAddressCommand, "CreateAddressCommand");
2167
+ var CreateAddressCommand = _CreateAddressCommand;
2168
+
2169
+ // src/commands/CreateClusterCommand.ts
2170
+
2171
+
2172
+
2173
+
2174
+ var _CreateClusterCommand = class _CreateClusterCommand extends import_smithy_client.Command.classBuilder().ep({
2175
+ ...commonParams
2176
+ }).m(function(Command, cs, config, o) {
2177
+ return [
2178
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2179
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2180
+ ];
2181
+ }).s("AWSIESnowballJobManagementService", "CreateCluster", {}).n("SnowballClient", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
2182
+ };
2183
+ __name(_CreateClusterCommand, "CreateClusterCommand");
2184
+ var CreateClusterCommand = _CreateClusterCommand;
2185
+
2186
+ // src/commands/CreateJobCommand.ts
2187
+
2188
+
2189
+
2190
+
2191
+ var _CreateJobCommand = class _CreateJobCommand extends import_smithy_client.Command.classBuilder().ep({
2192
+ ...commonParams
2193
+ }).m(function(Command, cs, config, o) {
2194
+ return [
2195
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2196
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2197
+ ];
2198
+ }).s("AWSIESnowballJobManagementService", "CreateJob", {}).n("SnowballClient", "CreateJobCommand").f(CreateJobRequestFilterSensitiveLog, void 0).ser(se_CreateJobCommand).de(de_CreateJobCommand).build() {
2199
+ };
2200
+ __name(_CreateJobCommand, "CreateJobCommand");
2201
+ var CreateJobCommand = _CreateJobCommand;
2202
+
2203
+ // src/commands/CreateLongTermPricingCommand.ts
2204
+
2205
+
2206
+
2207
+
2208
+ var _CreateLongTermPricingCommand = class _CreateLongTermPricingCommand extends import_smithy_client.Command.classBuilder().ep({
2209
+ ...commonParams
2210
+ }).m(function(Command, cs, config, o) {
2211
+ return [
2212
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2213
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2214
+ ];
2215
+ }).s("AWSIESnowballJobManagementService", "CreateLongTermPricing", {}).n("SnowballClient", "CreateLongTermPricingCommand").f(void 0, void 0).ser(se_CreateLongTermPricingCommand).de(de_CreateLongTermPricingCommand).build() {
2216
+ };
2217
+ __name(_CreateLongTermPricingCommand, "CreateLongTermPricingCommand");
2218
+ var CreateLongTermPricingCommand = _CreateLongTermPricingCommand;
2219
+
2220
+ // src/commands/CreateReturnShippingLabelCommand.ts
2221
+
2222
+
2223
+
2224
+
2225
+ var _CreateReturnShippingLabelCommand = class _CreateReturnShippingLabelCommand extends import_smithy_client.Command.classBuilder().ep({
2226
+ ...commonParams
2227
+ }).m(function(Command, cs, config, o) {
2228
+ return [
2229
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2230
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2231
+ ];
2232
+ }).s("AWSIESnowballJobManagementService", "CreateReturnShippingLabel", {}).n("SnowballClient", "CreateReturnShippingLabelCommand").f(void 0, void 0).ser(se_CreateReturnShippingLabelCommand).de(de_CreateReturnShippingLabelCommand).build() {
2233
+ };
2234
+ __name(_CreateReturnShippingLabelCommand, "CreateReturnShippingLabelCommand");
2235
+ var CreateReturnShippingLabelCommand = _CreateReturnShippingLabelCommand;
2236
+
2237
+ // src/commands/DescribeAddressCommand.ts
2238
+
2239
+
2240
+
2241
+
2242
+ var _DescribeAddressCommand = class _DescribeAddressCommand extends import_smithy_client.Command.classBuilder().ep({
2243
+ ...commonParams
2244
+ }).m(function(Command, cs, config, o) {
2245
+ return [
2246
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2247
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2248
+ ];
2249
+ }).s("AWSIESnowballJobManagementService", "DescribeAddress", {}).n("SnowballClient", "DescribeAddressCommand").f(void 0, void 0).ser(se_DescribeAddressCommand).de(de_DescribeAddressCommand).build() {
2250
+ };
2251
+ __name(_DescribeAddressCommand, "DescribeAddressCommand");
2252
+ var DescribeAddressCommand = _DescribeAddressCommand;
2253
+
2254
+ // src/commands/DescribeAddressesCommand.ts
2255
+
2256
+
2257
+
2258
+
2259
+ var _DescribeAddressesCommand = class _DescribeAddressesCommand extends import_smithy_client.Command.classBuilder().ep({
2260
+ ...commonParams
2261
+ }).m(function(Command, cs, config, o) {
2262
+ return [
2263
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2264
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2265
+ ];
2266
+ }).s("AWSIESnowballJobManagementService", "DescribeAddresses", {}).n("SnowballClient", "DescribeAddressesCommand").f(void 0, void 0).ser(se_DescribeAddressesCommand).de(de_DescribeAddressesCommand).build() {
2267
+ };
2268
+ __name(_DescribeAddressesCommand, "DescribeAddressesCommand");
2269
+ var DescribeAddressesCommand = _DescribeAddressesCommand;
2270
+
2271
+ // src/commands/DescribeClusterCommand.ts
2272
+
2273
+
2274
+
2275
+
2276
+ var _DescribeClusterCommand = class _DescribeClusterCommand extends import_smithy_client.Command.classBuilder().ep({
2277
+ ...commonParams
2278
+ }).m(function(Command, cs, config, o) {
2279
+ return [
2280
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2281
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2282
+ ];
2283
+ }).s("AWSIESnowballJobManagementService", "DescribeCluster", {}).n("SnowballClient", "DescribeClusterCommand").f(void 0, void 0).ser(se_DescribeClusterCommand).de(de_DescribeClusterCommand).build() {
2284
+ };
2285
+ __name(_DescribeClusterCommand, "DescribeClusterCommand");
2286
+ var DescribeClusterCommand = _DescribeClusterCommand;
2287
+
2288
+ // src/commands/DescribeJobCommand.ts
2289
+
2290
+
2291
+
2292
+
2293
+ var _DescribeJobCommand = class _DescribeJobCommand extends import_smithy_client.Command.classBuilder().ep({
2294
+ ...commonParams
2295
+ }).m(function(Command, cs, config, o) {
2296
+ return [
2297
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2298
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2299
+ ];
2300
+ }).s("AWSIESnowballJobManagementService", "DescribeJob", {}).n("SnowballClient", "DescribeJobCommand").f(void 0, DescribeJobResultFilterSensitiveLog).ser(se_DescribeJobCommand).de(de_DescribeJobCommand).build() {
2301
+ };
2302
+ __name(_DescribeJobCommand, "DescribeJobCommand");
2303
+ var DescribeJobCommand = _DescribeJobCommand;
2304
+
2305
+ // src/commands/DescribeReturnShippingLabelCommand.ts
2306
+
2307
+
2308
+
2309
+
2310
+ var _DescribeReturnShippingLabelCommand = class _DescribeReturnShippingLabelCommand extends import_smithy_client.Command.classBuilder().ep({
2311
+ ...commonParams
2312
+ }).m(function(Command, cs, config, o) {
2313
+ return [
2314
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2315
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2316
+ ];
2317
+ }).s("AWSIESnowballJobManagementService", "DescribeReturnShippingLabel", {}).n("SnowballClient", "DescribeReturnShippingLabelCommand").f(void 0, void 0).ser(se_DescribeReturnShippingLabelCommand).de(de_DescribeReturnShippingLabelCommand).build() {
2318
+ };
2319
+ __name(_DescribeReturnShippingLabelCommand, "DescribeReturnShippingLabelCommand");
2320
+ var DescribeReturnShippingLabelCommand = _DescribeReturnShippingLabelCommand;
2321
+
2322
+ // src/commands/GetJobManifestCommand.ts
2323
+
2324
+
2325
+
2326
+
2327
+ var _GetJobManifestCommand = class _GetJobManifestCommand extends import_smithy_client.Command.classBuilder().ep({
2328
+ ...commonParams
2329
+ }).m(function(Command, cs, config, o) {
2330
+ return [
2331
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2332
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2333
+ ];
2334
+ }).s("AWSIESnowballJobManagementService", "GetJobManifest", {}).n("SnowballClient", "GetJobManifestCommand").f(void 0, void 0).ser(se_GetJobManifestCommand).de(de_GetJobManifestCommand).build() {
2335
+ };
2336
+ __name(_GetJobManifestCommand, "GetJobManifestCommand");
2337
+ var GetJobManifestCommand = _GetJobManifestCommand;
2338
+
2339
+ // src/commands/GetJobUnlockCodeCommand.ts
2340
+
2341
+
2342
+
2343
+
2344
+ var _GetJobUnlockCodeCommand = class _GetJobUnlockCodeCommand extends import_smithy_client.Command.classBuilder().ep({
2345
+ ...commonParams
2346
+ }).m(function(Command, cs, config, o) {
2347
+ return [
2348
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2349
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2350
+ ];
2351
+ }).s("AWSIESnowballJobManagementService", "GetJobUnlockCode", {}).n("SnowballClient", "GetJobUnlockCodeCommand").f(void 0, void 0).ser(se_GetJobUnlockCodeCommand).de(de_GetJobUnlockCodeCommand).build() {
2352
+ };
2353
+ __name(_GetJobUnlockCodeCommand, "GetJobUnlockCodeCommand");
2354
+ var GetJobUnlockCodeCommand = _GetJobUnlockCodeCommand;
2355
+
2356
+ // src/commands/GetSnowballUsageCommand.ts
2357
+
2358
+
2359
+
2360
+
2361
+ var _GetSnowballUsageCommand = class _GetSnowballUsageCommand extends import_smithy_client.Command.classBuilder().ep({
2362
+ ...commonParams
2363
+ }).m(function(Command, cs, config, o) {
2364
+ return [
2365
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2366
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2367
+ ];
2368
+ }).s("AWSIESnowballJobManagementService", "GetSnowballUsage", {}).n("SnowballClient", "GetSnowballUsageCommand").f(void 0, void 0).ser(se_GetSnowballUsageCommand).de(de_GetSnowballUsageCommand).build() {
2369
+ };
2370
+ __name(_GetSnowballUsageCommand, "GetSnowballUsageCommand");
2371
+ var GetSnowballUsageCommand = _GetSnowballUsageCommand;
2372
+
2373
+ // src/commands/GetSoftwareUpdatesCommand.ts
2374
+
2375
+
2376
+
2377
+
2378
+ var _GetSoftwareUpdatesCommand = class _GetSoftwareUpdatesCommand extends import_smithy_client.Command.classBuilder().ep({
2379
+ ...commonParams
2380
+ }).m(function(Command, cs, config, o) {
2381
+ return [
2382
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2383
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2384
+ ];
2385
+ }).s("AWSIESnowballJobManagementService", "GetSoftwareUpdates", {}).n("SnowballClient", "GetSoftwareUpdatesCommand").f(void 0, void 0).ser(se_GetSoftwareUpdatesCommand).de(de_GetSoftwareUpdatesCommand).build() {
2386
+ };
2387
+ __name(_GetSoftwareUpdatesCommand, "GetSoftwareUpdatesCommand");
2388
+ var GetSoftwareUpdatesCommand = _GetSoftwareUpdatesCommand;
2389
+
2390
+ // src/commands/ListClusterJobsCommand.ts
2391
+
2392
+
2393
+
2394
+
2395
+ var _ListClusterJobsCommand = class _ListClusterJobsCommand extends import_smithy_client.Command.classBuilder().ep({
2396
+ ...commonParams
2397
+ }).m(function(Command, cs, config, o) {
2398
+ return [
2399
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2400
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2401
+ ];
2402
+ }).s("AWSIESnowballJobManagementService", "ListClusterJobs", {}).n("SnowballClient", "ListClusterJobsCommand").f(void 0, void 0).ser(se_ListClusterJobsCommand).de(de_ListClusterJobsCommand).build() {
2403
+ };
2404
+ __name(_ListClusterJobsCommand, "ListClusterJobsCommand");
2405
+ var ListClusterJobsCommand = _ListClusterJobsCommand;
2406
+
2407
+ // src/commands/ListClustersCommand.ts
2408
+
2409
+
2410
+
2411
+
2412
+ var _ListClustersCommand = class _ListClustersCommand extends import_smithy_client.Command.classBuilder().ep({
2413
+ ...commonParams
2414
+ }).m(function(Command, cs, config, o) {
2415
+ return [
2416
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2417
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2418
+ ];
2419
+ }).s("AWSIESnowballJobManagementService", "ListClusters", {}).n("SnowballClient", "ListClustersCommand").f(void 0, void 0).ser(se_ListClustersCommand).de(de_ListClustersCommand).build() {
2420
+ };
2421
+ __name(_ListClustersCommand, "ListClustersCommand");
2422
+ var ListClustersCommand = _ListClustersCommand;
2423
+
2424
+ // src/commands/ListCompatibleImagesCommand.ts
2425
+
2426
+
2427
+
2428
+
2429
+ var _ListCompatibleImagesCommand = class _ListCompatibleImagesCommand extends import_smithy_client.Command.classBuilder().ep({
2430
+ ...commonParams
2431
+ }).m(function(Command, cs, config, o) {
2432
+ return [
2433
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2434
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2435
+ ];
2436
+ }).s("AWSIESnowballJobManagementService", "ListCompatibleImages", {}).n("SnowballClient", "ListCompatibleImagesCommand").f(void 0, void 0).ser(se_ListCompatibleImagesCommand).de(de_ListCompatibleImagesCommand).build() {
2437
+ };
2438
+ __name(_ListCompatibleImagesCommand, "ListCompatibleImagesCommand");
2439
+ var ListCompatibleImagesCommand = _ListCompatibleImagesCommand;
2440
+
2441
+ // src/commands/ListJobsCommand.ts
2442
+
2443
+
2444
+
2445
+
2446
+ var _ListJobsCommand = class _ListJobsCommand extends import_smithy_client.Command.classBuilder().ep({
2447
+ ...commonParams
2448
+ }).m(function(Command, cs, config, o) {
2449
+ return [
2450
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2451
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2452
+ ];
2453
+ }).s("AWSIESnowballJobManagementService", "ListJobs", {}).n("SnowballClient", "ListJobsCommand").f(void 0, void 0).ser(se_ListJobsCommand).de(de_ListJobsCommand).build() {
2454
+ };
2455
+ __name(_ListJobsCommand, "ListJobsCommand");
2456
+ var ListJobsCommand = _ListJobsCommand;
2457
+
2458
+ // src/commands/ListLongTermPricingCommand.ts
2459
+
2460
+
2461
+
2462
+
2463
+ var _ListLongTermPricingCommand = class _ListLongTermPricingCommand extends import_smithy_client.Command.classBuilder().ep({
2464
+ ...commonParams
2465
+ }).m(function(Command, cs, config, o) {
2466
+ return [
2467
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2468
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2469
+ ];
2470
+ }).s("AWSIESnowballJobManagementService", "ListLongTermPricing", {}).n("SnowballClient", "ListLongTermPricingCommand").f(void 0, void 0).ser(se_ListLongTermPricingCommand).de(de_ListLongTermPricingCommand).build() {
2471
+ };
2472
+ __name(_ListLongTermPricingCommand, "ListLongTermPricingCommand");
2473
+ var ListLongTermPricingCommand = _ListLongTermPricingCommand;
2474
+
2475
+ // src/commands/ListPickupLocationsCommand.ts
2476
+
2477
+
2478
+
2479
+
2480
+ var _ListPickupLocationsCommand = class _ListPickupLocationsCommand extends import_smithy_client.Command.classBuilder().ep({
2481
+ ...commonParams
2482
+ }).m(function(Command, cs, config, o) {
2483
+ return [
2484
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2485
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2486
+ ];
2487
+ }).s("AWSIESnowballJobManagementService", "ListPickupLocations", {}).n("SnowballClient", "ListPickupLocationsCommand").f(void 0, void 0).ser(se_ListPickupLocationsCommand).de(de_ListPickupLocationsCommand).build() {
2488
+ };
2489
+ __name(_ListPickupLocationsCommand, "ListPickupLocationsCommand");
2490
+ var ListPickupLocationsCommand = _ListPickupLocationsCommand;
2491
+
2492
+ // src/commands/ListServiceVersionsCommand.ts
2493
+
2494
+
2495
+
2496
+
2497
+ var _ListServiceVersionsCommand = class _ListServiceVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
2498
+ ...commonParams
2499
+ }).m(function(Command, cs, config, o) {
2500
+ return [
2501
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2502
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2503
+ ];
2504
+ }).s("AWSIESnowballJobManagementService", "ListServiceVersions", {}).n("SnowballClient", "ListServiceVersionsCommand").f(void 0, void 0).ser(se_ListServiceVersionsCommand).de(de_ListServiceVersionsCommand).build() {
2505
+ };
2506
+ __name(_ListServiceVersionsCommand, "ListServiceVersionsCommand");
2507
+ var ListServiceVersionsCommand = _ListServiceVersionsCommand;
2508
+
2509
+ // src/commands/UpdateClusterCommand.ts
2510
+
2511
+
2512
+
2513
+
2514
+ var _UpdateClusterCommand = class _UpdateClusterCommand extends import_smithy_client.Command.classBuilder().ep({
2515
+ ...commonParams
2516
+ }).m(function(Command, cs, config, o) {
2517
+ return [
2518
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2519
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2520
+ ];
2521
+ }).s("AWSIESnowballJobManagementService", "UpdateCluster", {}).n("SnowballClient", "UpdateClusterCommand").f(void 0, void 0).ser(se_UpdateClusterCommand).de(de_UpdateClusterCommand).build() {
2522
+ };
2523
+ __name(_UpdateClusterCommand, "UpdateClusterCommand");
2524
+ var UpdateClusterCommand = _UpdateClusterCommand;
2525
+
2526
+ // src/commands/UpdateJobCommand.ts
2527
+
2528
+
2529
+
2530
+
2531
+ var _UpdateJobCommand = class _UpdateJobCommand extends import_smithy_client.Command.classBuilder().ep({
2532
+ ...commonParams
2533
+ }).m(function(Command, cs, config, o) {
2534
+ return [
2535
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2536
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2537
+ ];
2538
+ }).s("AWSIESnowballJobManagementService", "UpdateJob", {}).n("SnowballClient", "UpdateJobCommand").f(UpdateJobRequestFilterSensitiveLog, void 0).ser(se_UpdateJobCommand).de(de_UpdateJobCommand).build() {
2539
+ };
2540
+ __name(_UpdateJobCommand, "UpdateJobCommand");
2541
+ var UpdateJobCommand = _UpdateJobCommand;
2542
+
2543
+ // src/commands/UpdateJobShipmentStateCommand.ts
2544
+
2545
+
2546
+
2547
+
2548
+ var _UpdateJobShipmentStateCommand = class _UpdateJobShipmentStateCommand extends import_smithy_client.Command.classBuilder().ep({
2549
+ ...commonParams
2550
+ }).m(function(Command, cs, config, o) {
2551
+ return [
2552
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2553
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2554
+ ];
2555
+ }).s("AWSIESnowballJobManagementService", "UpdateJobShipmentState", {}).n("SnowballClient", "UpdateJobShipmentStateCommand").f(void 0, void 0).ser(se_UpdateJobShipmentStateCommand).de(de_UpdateJobShipmentStateCommand).build() {
2556
+ };
2557
+ __name(_UpdateJobShipmentStateCommand, "UpdateJobShipmentStateCommand");
2558
+ var UpdateJobShipmentStateCommand = _UpdateJobShipmentStateCommand;
2559
+
2560
+ // src/commands/UpdateLongTermPricingCommand.ts
2561
+
2562
+
2563
+
2564
+
2565
+ var _UpdateLongTermPricingCommand = class _UpdateLongTermPricingCommand extends import_smithy_client.Command.classBuilder().ep({
2566
+ ...commonParams
2567
+ }).m(function(Command, cs, config, o) {
2568
+ return [
2569
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2570
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2571
+ ];
2572
+ }).s("AWSIESnowballJobManagementService", "UpdateLongTermPricing", {}).n("SnowballClient", "UpdateLongTermPricingCommand").f(void 0, void 0).ser(se_UpdateLongTermPricingCommand).de(de_UpdateLongTermPricingCommand).build() {
2573
+ };
2574
+ __name(_UpdateLongTermPricingCommand, "UpdateLongTermPricingCommand");
2575
+ var UpdateLongTermPricingCommand = _UpdateLongTermPricingCommand;
2576
+
2577
+ // src/Snowball.ts
2578
+ var commands = {
2579
+ CancelClusterCommand,
2580
+ CancelJobCommand,
2581
+ CreateAddressCommand,
2582
+ CreateClusterCommand,
2583
+ CreateJobCommand,
2584
+ CreateLongTermPricingCommand,
2585
+ CreateReturnShippingLabelCommand,
2586
+ DescribeAddressCommand,
2587
+ DescribeAddressesCommand,
2588
+ DescribeClusterCommand,
2589
+ DescribeJobCommand,
2590
+ DescribeReturnShippingLabelCommand,
2591
+ GetJobManifestCommand,
2592
+ GetJobUnlockCodeCommand,
2593
+ GetSnowballUsageCommand,
2594
+ GetSoftwareUpdatesCommand,
2595
+ ListClusterJobsCommand,
2596
+ ListClustersCommand,
2597
+ ListCompatibleImagesCommand,
2598
+ ListJobsCommand,
2599
+ ListLongTermPricingCommand,
2600
+ ListPickupLocationsCommand,
2601
+ ListServiceVersionsCommand,
2602
+ UpdateClusterCommand,
2603
+ UpdateJobCommand,
2604
+ UpdateJobShipmentStateCommand,
2605
+ UpdateLongTermPricingCommand
2606
+ };
2607
+ var _Snowball = class _Snowball extends SnowballClient {
2608
+ };
2609
+ __name(_Snowball, "Snowball");
2610
+ var Snowball = _Snowball;
2611
+ (0, import_smithy_client.createAggregatedClient)(commands, Snowball);
2612
+
2613
+ // src/pagination/DescribeAddressesPaginator.ts
2614
+ var import_core = require("@smithy/core");
2615
+ var paginateDescribeAddresses = (0, import_core.createPaginator)(SnowballClient, DescribeAddressesCommand, "NextToken", "NextToken", "MaxResults");
2616
+
2617
+ // src/pagination/ListClusterJobsPaginator.ts
2618
+
2619
+ var paginateListClusterJobs = (0, import_core.createPaginator)(SnowballClient, ListClusterJobsCommand, "NextToken", "NextToken", "MaxResults");
2620
+
2621
+ // src/pagination/ListClustersPaginator.ts
2622
+
2623
+ var paginateListClusters = (0, import_core.createPaginator)(SnowballClient, ListClustersCommand, "NextToken", "NextToken", "MaxResults");
2624
+
2625
+ // src/pagination/ListCompatibleImagesPaginator.ts
2626
+
2627
+ var paginateListCompatibleImages = (0, import_core.createPaginator)(SnowballClient, ListCompatibleImagesCommand, "NextToken", "NextToken", "MaxResults");
2628
+
2629
+ // src/pagination/ListJobsPaginator.ts
2630
+
2631
+ var paginateListJobs = (0, import_core.createPaginator)(SnowballClient, ListJobsCommand, "NextToken", "NextToken", "MaxResults");
2632
+
2633
+ // src/pagination/ListLongTermPricingPaginator.ts
2634
+
2635
+ var paginateListLongTermPricing = (0, import_core.createPaginator)(SnowballClient, ListLongTermPricingCommand, "NextToken", "NextToken", "MaxResults");
2636
+
2637
+ // src/pagination/ListPickupLocationsPaginator.ts
2638
+
2639
+ var paginateListPickupLocations = (0, import_core.createPaginator)(SnowballClient, ListPickupLocationsCommand, "NextToken", "NextToken", "MaxResults");
2640
+
2641
+ // src/index.ts
2642
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2643
+ // Annotate the CommonJS export names for ESM import in node:
2644
+ 0 && (module.exports = {
2645
+ AddressType,
2646
+ CancelClusterCommand,
2647
+ CancelJobCommand,
2648
+ ClusterLimitExceededException,
2649
+ ClusterState,
2650
+ ConflictException,
2651
+ CreateAddressCommand,
2652
+ CreateClusterCommand,
2653
+ CreateJobCommand,
2654
+ CreateJobRequestFilterSensitiveLog,
2655
+ CreateLongTermPricingCommand,
2656
+ CreateReturnShippingLabelCommand,
2657
+ DescribeAddressCommand,
2658
+ DescribeAddressesCommand,
2659
+ DescribeClusterCommand,
2660
+ DescribeJobCommand,
2661
+ DescribeJobResultFilterSensitiveLog,
2662
+ DescribeReturnShippingLabelCommand,
2663
+ DeviceServiceName,
2664
+ Ec2RequestFailedException,
2665
+ GetJobManifestCommand,
2666
+ GetJobUnlockCodeCommand,
2667
+ GetSnowballUsageCommand,
2668
+ GetSoftwareUpdatesCommand,
2669
+ ImpactLevel,
2670
+ InvalidAddressException,
2671
+ InvalidInputCombinationException,
2672
+ InvalidJobStateException,
2673
+ InvalidNextTokenException,
2674
+ InvalidResourceException,
2675
+ JobMetadataFilterSensitiveLog,
2676
+ JobState,
2677
+ JobType,
2678
+ KMSRequestFailedException,
2679
+ ListClusterJobsCommand,
2680
+ ListClustersCommand,
2681
+ ListCompatibleImagesCommand,
2682
+ ListJobsCommand,
2683
+ ListLongTermPricingCommand,
2684
+ ListPickupLocationsCommand,
2685
+ ListServiceVersionsCommand,
2686
+ LongTermPricingType,
2687
+ PickupDetailsFilterSensitiveLog,
2688
+ RemoteManagement,
2689
+ ReturnShippingLabelAlreadyExistsException,
2690
+ ServiceName,
2691
+ ShipmentState,
2692
+ ShippingLabelStatus,
2693
+ ShippingOption,
2694
+ Snowball,
2695
+ SnowballCapacity,
2696
+ SnowballClient,
2697
+ SnowballServiceException,
2698
+ SnowballType,
2699
+ StorageUnit,
2700
+ TransferOption,
2701
+ UnsupportedAddressException,
2702
+ UpdateClusterCommand,
2703
+ UpdateJobCommand,
2704
+ UpdateJobRequestFilterSensitiveLog,
2705
+ UpdateJobShipmentStateCommand,
2706
+ UpdateLongTermPricingCommand,
2707
+ __Client,
2708
+ paginateDescribeAddresses,
2709
+ paginateListClusterJobs,
2710
+ paginateListClusters,
2711
+ paginateListCompatibleImages,
2712
+ paginateListJobs,
2713
+ paginateListLongTermPricing,
2714
+ paginateListPickupLocations
2715
+ });