@aws-sdk/client-snowball 3.50.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/SnowballServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +160 -2
- package/dist-cjs/protocols/Aws_json1_1.js +220 -672
- package/dist-es/index.js +1 -0
- package/dist-es/models/SnowballServiceException.js +12 -0
- package/dist-es/models/models_0.js +147 -1
- package/dist-es/protocols/Aws_json1_1.js +476 -744
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SnowballServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +79 -34
- package/dist-types/ts3.4/Snowball.d.ts +130 -0
- package/dist-types/ts3.4/SnowballClient.d.ts +98 -0
- package/dist-types/ts3.4/commands/CancelClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateAddressCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateLongTermPricingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateReturnShippingLabelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAddressCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAddressesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeReturnShippingLabelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetJobManifestCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetJobUnlockCodeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSnowballUsageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSoftwareUpdatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListClusterJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCompatibleImagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLongTermPricingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateJobShipmentStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLongTermPricingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +25 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/SnowballServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1117 -0
- package/dist-types/ts3.4/pagination/DescribeAddressesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1UpdateLongTermPricingCommand = exports.deserializeAws_json1_1UpdateJobShipmentStateCommand = exports.deserializeAws_json1_1UpdateJobCommand = exports.deserializeAws_json1_1UpdateClusterCommand = exports.deserializeAws_json1_1ListLongTermPricingCommand = exports.deserializeAws_json1_1ListJobsCommand = exports.deserializeAws_json1_1ListCompatibleImagesCommand = exports.deserializeAws_json1_1ListClustersCommand = exports.deserializeAws_json1_1ListClusterJobsCommand = exports.deserializeAws_json1_1GetSoftwareUpdatesCommand = exports.deserializeAws_json1_1GetSnowballUsageCommand = exports.deserializeAws_json1_1GetJobUnlockCodeCommand = exports.deserializeAws_json1_1GetJobManifestCommand = exports.deserializeAws_json1_1DescribeReturnShippingLabelCommand = exports.deserializeAws_json1_1DescribeJobCommand = exports.deserializeAws_json1_1DescribeClusterCommand = exports.deserializeAws_json1_1DescribeAddressesCommand = exports.deserializeAws_json1_1DescribeAddressCommand = exports.deserializeAws_json1_1CreateReturnShippingLabelCommand = exports.deserializeAws_json1_1CreateLongTermPricingCommand = exports.deserializeAws_json1_1CreateJobCommand = exports.deserializeAws_json1_1CreateClusterCommand = exports.deserializeAws_json1_1CreateAddressCommand = exports.deserializeAws_json1_1CancelJobCommand = exports.deserializeAws_json1_1CancelClusterCommand = exports.serializeAws_json1_1UpdateLongTermPricingCommand = exports.serializeAws_json1_1UpdateJobShipmentStateCommand = exports.serializeAws_json1_1UpdateJobCommand = exports.serializeAws_json1_1UpdateClusterCommand = exports.serializeAws_json1_1ListLongTermPricingCommand = exports.serializeAws_json1_1ListJobsCommand = exports.serializeAws_json1_1ListCompatibleImagesCommand = exports.serializeAws_json1_1ListClustersCommand = exports.serializeAws_json1_1ListClusterJobsCommand = exports.serializeAws_json1_1GetSoftwareUpdatesCommand = exports.serializeAws_json1_1GetSnowballUsageCommand = exports.serializeAws_json1_1GetJobUnlockCodeCommand = exports.serializeAws_json1_1GetJobManifestCommand = exports.serializeAws_json1_1DescribeReturnShippingLabelCommand = exports.serializeAws_json1_1DescribeJobCommand = exports.serializeAws_json1_1DescribeClusterCommand = exports.serializeAws_json1_1DescribeAddressesCommand = exports.serializeAws_json1_1DescribeAddressCommand = exports.serializeAws_json1_1CreateReturnShippingLabelCommand = exports.serializeAws_json1_1CreateLongTermPricingCommand = exports.serializeAws_json1_1CreateJobCommand = exports.serializeAws_json1_1CreateClusterCommand = exports.serializeAws_json1_1CreateAddressCommand = exports.serializeAws_json1_1CancelJobCommand = exports.serializeAws_json1_1CancelClusterCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const SnowballServiceException_1 = require("../models/SnowballServiceException");
|
|
6
8
|
const serializeAws_json1_1CancelClusterCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -278,43 +280,22 @@ const deserializeAws_json1_1CancelClusterCommandError = async (output, context)
|
|
|
278
280
|
switch (errorCode) {
|
|
279
281
|
case "InvalidJobStateException":
|
|
280
282
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
281
|
-
|
|
282
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
283
|
-
name: errorCode,
|
|
284
|
-
$metadata: deserializeMetadata(output),
|
|
285
|
-
};
|
|
286
|
-
break;
|
|
283
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
287
284
|
case "InvalidResourceException":
|
|
288
285
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
289
|
-
|
|
290
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
291
|
-
name: errorCode,
|
|
292
|
-
$metadata: deserializeMetadata(output),
|
|
293
|
-
};
|
|
294
|
-
break;
|
|
286
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
295
287
|
case "KMSRequestFailedException":
|
|
296
288
|
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
297
|
-
|
|
298
|
-
...(await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)),
|
|
299
|
-
name: errorCode,
|
|
300
|
-
$metadata: deserializeMetadata(output),
|
|
301
|
-
};
|
|
302
|
-
break;
|
|
289
|
+
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
303
290
|
default:
|
|
304
291
|
const parsedBody = parsedOutput.body;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
...parsedBody,
|
|
308
|
-
name: `${errorCode}`,
|
|
309
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
292
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
293
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
310
294
|
$fault: "client",
|
|
311
295
|
$metadata: deserializeMetadata(output),
|
|
312
|
-
};
|
|
296
|
+
});
|
|
297
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
313
298
|
}
|
|
314
|
-
const message = response.message || response.Message || errorCode;
|
|
315
|
-
response.message = message;
|
|
316
|
-
delete response.Message;
|
|
317
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
318
299
|
};
|
|
319
300
|
const deserializeAws_json1_1CancelJobCommand = async (output, context) => {
|
|
320
301
|
if (output.statusCode >= 300) {
|
|
@@ -341,43 +322,22 @@ const deserializeAws_json1_1CancelJobCommandError = async (output, context) => {
|
|
|
341
322
|
switch (errorCode) {
|
|
342
323
|
case "InvalidJobStateException":
|
|
343
324
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
344
|
-
|
|
345
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
346
|
-
name: errorCode,
|
|
347
|
-
$metadata: deserializeMetadata(output),
|
|
348
|
-
};
|
|
349
|
-
break;
|
|
325
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
350
326
|
case "InvalidResourceException":
|
|
351
327
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
352
|
-
|
|
353
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
354
|
-
name: errorCode,
|
|
355
|
-
$metadata: deserializeMetadata(output),
|
|
356
|
-
};
|
|
357
|
-
break;
|
|
328
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
358
329
|
case "KMSRequestFailedException":
|
|
359
330
|
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
360
|
-
|
|
361
|
-
...(await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)),
|
|
362
|
-
name: errorCode,
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
};
|
|
365
|
-
break;
|
|
331
|
+
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
366
332
|
default:
|
|
367
333
|
const parsedBody = parsedOutput.body;
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
...parsedBody,
|
|
371
|
-
name: `${errorCode}`,
|
|
372
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
334
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
335
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
373
336
|
$fault: "client",
|
|
374
337
|
$metadata: deserializeMetadata(output),
|
|
375
|
-
};
|
|
338
|
+
});
|
|
339
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
376
340
|
}
|
|
377
|
-
const message = response.message || response.Message || errorCode;
|
|
378
|
-
response.message = message;
|
|
379
|
-
delete response.Message;
|
|
380
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
381
341
|
};
|
|
382
342
|
const deserializeAws_json1_1CreateAddressCommand = async (output, context) => {
|
|
383
343
|
if (output.statusCode >= 300) {
|
|
@@ -404,35 +364,19 @@ const deserializeAws_json1_1CreateAddressCommandError = async (output, context)
|
|
|
404
364
|
switch (errorCode) {
|
|
405
365
|
case "InvalidAddressException":
|
|
406
366
|
case "com.amazonaws.snowball#InvalidAddressException":
|
|
407
|
-
|
|
408
|
-
...(await deserializeAws_json1_1InvalidAddressExceptionResponse(parsedOutput, context)),
|
|
409
|
-
name: errorCode,
|
|
410
|
-
$metadata: deserializeMetadata(output),
|
|
411
|
-
};
|
|
412
|
-
break;
|
|
367
|
+
throw await deserializeAws_json1_1InvalidAddressExceptionResponse(parsedOutput, context);
|
|
413
368
|
case "UnsupportedAddressException":
|
|
414
369
|
case "com.amazonaws.snowball#UnsupportedAddressException":
|
|
415
|
-
|
|
416
|
-
...(await deserializeAws_json1_1UnsupportedAddressExceptionResponse(parsedOutput, context)),
|
|
417
|
-
name: errorCode,
|
|
418
|
-
$metadata: deserializeMetadata(output),
|
|
419
|
-
};
|
|
420
|
-
break;
|
|
370
|
+
throw await deserializeAws_json1_1UnsupportedAddressExceptionResponse(parsedOutput, context);
|
|
421
371
|
default:
|
|
422
372
|
const parsedBody = parsedOutput.body;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
...parsedBody,
|
|
426
|
-
name: `${errorCode}`,
|
|
427
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
373
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
374
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
428
375
|
$fault: "client",
|
|
429
376
|
$metadata: deserializeMetadata(output),
|
|
430
|
-
};
|
|
377
|
+
});
|
|
378
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
431
379
|
}
|
|
432
|
-
const message = response.message || response.Message || errorCode;
|
|
433
|
-
response.message = message;
|
|
434
|
-
delete response.Message;
|
|
435
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
436
380
|
};
|
|
437
381
|
const deserializeAws_json1_1CreateClusterCommand = async (output, context) => {
|
|
438
382
|
if (output.statusCode >= 300) {
|
|
@@ -459,51 +403,25 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
|
|
|
459
403
|
switch (errorCode) {
|
|
460
404
|
case "Ec2RequestFailedException":
|
|
461
405
|
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
462
|
-
|
|
463
|
-
...(await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)),
|
|
464
|
-
name: errorCode,
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
};
|
|
467
|
-
break;
|
|
406
|
+
throw await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context);
|
|
468
407
|
case "InvalidInputCombinationException":
|
|
469
408
|
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
470
|
-
|
|
471
|
-
...(await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)),
|
|
472
|
-
name: errorCode,
|
|
473
|
-
$metadata: deserializeMetadata(output),
|
|
474
|
-
};
|
|
475
|
-
break;
|
|
409
|
+
throw await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context);
|
|
476
410
|
case "InvalidResourceException":
|
|
477
411
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
478
|
-
|
|
479
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
480
|
-
name: errorCode,
|
|
481
|
-
$metadata: deserializeMetadata(output),
|
|
482
|
-
};
|
|
483
|
-
break;
|
|
412
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
484
413
|
case "KMSRequestFailedException":
|
|
485
414
|
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
486
|
-
|
|
487
|
-
...(await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)),
|
|
488
|
-
name: errorCode,
|
|
489
|
-
$metadata: deserializeMetadata(output),
|
|
490
|
-
};
|
|
491
|
-
break;
|
|
415
|
+
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
492
416
|
default:
|
|
493
417
|
const parsedBody = parsedOutput.body;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
...parsedBody,
|
|
497
|
-
name: `${errorCode}`,
|
|
498
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
418
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
419
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
499
420
|
$fault: "client",
|
|
500
421
|
$metadata: deserializeMetadata(output),
|
|
501
|
-
};
|
|
422
|
+
});
|
|
423
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
502
424
|
}
|
|
503
|
-
const message = response.message || response.Message || errorCode;
|
|
504
|
-
response.message = message;
|
|
505
|
-
delete response.Message;
|
|
506
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
507
425
|
};
|
|
508
426
|
const deserializeAws_json1_1CreateJobCommand = async (output, context) => {
|
|
509
427
|
if (output.statusCode >= 300) {
|
|
@@ -530,59 +448,28 @@ const deserializeAws_json1_1CreateJobCommandError = async (output, context) => {
|
|
|
530
448
|
switch (errorCode) {
|
|
531
449
|
case "ClusterLimitExceededException":
|
|
532
450
|
case "com.amazonaws.snowball#ClusterLimitExceededException":
|
|
533
|
-
|
|
534
|
-
...(await deserializeAws_json1_1ClusterLimitExceededExceptionResponse(parsedOutput, context)),
|
|
535
|
-
name: errorCode,
|
|
536
|
-
$metadata: deserializeMetadata(output),
|
|
537
|
-
};
|
|
538
|
-
break;
|
|
451
|
+
throw await deserializeAws_json1_1ClusterLimitExceededExceptionResponse(parsedOutput, context);
|
|
539
452
|
case "Ec2RequestFailedException":
|
|
540
453
|
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
541
|
-
|
|
542
|
-
...(await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)),
|
|
543
|
-
name: errorCode,
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
};
|
|
546
|
-
break;
|
|
454
|
+
throw await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context);
|
|
547
455
|
case "InvalidInputCombinationException":
|
|
548
456
|
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
549
|
-
|
|
550
|
-
...(await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)),
|
|
551
|
-
name: errorCode,
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
};
|
|
554
|
-
break;
|
|
457
|
+
throw await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context);
|
|
555
458
|
case "InvalidResourceException":
|
|
556
459
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
557
|
-
|
|
558
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
559
|
-
name: errorCode,
|
|
560
|
-
$metadata: deserializeMetadata(output),
|
|
561
|
-
};
|
|
562
|
-
break;
|
|
460
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
563
461
|
case "KMSRequestFailedException":
|
|
564
462
|
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
565
|
-
|
|
566
|
-
...(await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)),
|
|
567
|
-
name: errorCode,
|
|
568
|
-
$metadata: deserializeMetadata(output),
|
|
569
|
-
};
|
|
570
|
-
break;
|
|
463
|
+
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
571
464
|
default:
|
|
572
465
|
const parsedBody = parsedOutput.body;
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
...parsedBody,
|
|
576
|
-
name: `${errorCode}`,
|
|
577
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
466
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
467
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
578
468
|
$fault: "client",
|
|
579
469
|
$metadata: deserializeMetadata(output),
|
|
580
|
-
};
|
|
470
|
+
});
|
|
471
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
581
472
|
}
|
|
582
|
-
const message = response.message || response.Message || errorCode;
|
|
583
|
-
response.message = message;
|
|
584
|
-
delete response.Message;
|
|
585
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
586
473
|
};
|
|
587
474
|
const deserializeAws_json1_1CreateLongTermPricingCommand = async (output, context) => {
|
|
588
475
|
if (output.statusCode >= 300) {
|
|
@@ -609,27 +496,16 @@ const deserializeAws_json1_1CreateLongTermPricingCommandError = async (output, c
|
|
|
609
496
|
switch (errorCode) {
|
|
610
497
|
case "InvalidResourceException":
|
|
611
498
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
612
|
-
|
|
613
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
614
|
-
name: errorCode,
|
|
615
|
-
$metadata: deserializeMetadata(output),
|
|
616
|
-
};
|
|
617
|
-
break;
|
|
499
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
618
500
|
default:
|
|
619
501
|
const parsedBody = parsedOutput.body;
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
...parsedBody,
|
|
623
|
-
name: `${errorCode}`,
|
|
624
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
502
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
503
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
625
504
|
$fault: "client",
|
|
626
505
|
$metadata: deserializeMetadata(output),
|
|
627
|
-
};
|
|
506
|
+
});
|
|
507
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
628
508
|
}
|
|
629
|
-
const message = response.message || response.Message || errorCode;
|
|
630
|
-
response.message = message;
|
|
631
|
-
delete response.Message;
|
|
632
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
633
509
|
};
|
|
634
510
|
const deserializeAws_json1_1CreateReturnShippingLabelCommand = async (output, context) => {
|
|
635
511
|
if (output.statusCode >= 300) {
|
|
@@ -656,59 +532,28 @@ const deserializeAws_json1_1CreateReturnShippingLabelCommandError = async (outpu
|
|
|
656
532
|
switch (errorCode) {
|
|
657
533
|
case "ConflictException":
|
|
658
534
|
case "com.amazonaws.snowball#ConflictException":
|
|
659
|
-
|
|
660
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
661
|
-
name: errorCode,
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
};
|
|
664
|
-
break;
|
|
535
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
665
536
|
case "InvalidInputCombinationException":
|
|
666
537
|
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
667
|
-
|
|
668
|
-
...(await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)),
|
|
669
|
-
name: errorCode,
|
|
670
|
-
$metadata: deserializeMetadata(output),
|
|
671
|
-
};
|
|
672
|
-
break;
|
|
538
|
+
throw await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context);
|
|
673
539
|
case "InvalidJobStateException":
|
|
674
540
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
675
|
-
|
|
676
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
677
|
-
name: errorCode,
|
|
678
|
-
$metadata: deserializeMetadata(output),
|
|
679
|
-
};
|
|
680
|
-
break;
|
|
541
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
681
542
|
case "InvalidResourceException":
|
|
682
543
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
683
|
-
|
|
684
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
685
|
-
name: errorCode,
|
|
686
|
-
$metadata: deserializeMetadata(output),
|
|
687
|
-
};
|
|
688
|
-
break;
|
|
544
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
689
545
|
case "ReturnShippingLabelAlreadyExistsException":
|
|
690
546
|
case "com.amazonaws.snowball#ReturnShippingLabelAlreadyExistsException":
|
|
691
|
-
|
|
692
|
-
...(await deserializeAws_json1_1ReturnShippingLabelAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
693
|
-
name: errorCode,
|
|
694
|
-
$metadata: deserializeMetadata(output),
|
|
695
|
-
};
|
|
696
|
-
break;
|
|
547
|
+
throw await deserializeAws_json1_1ReturnShippingLabelAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
697
548
|
default:
|
|
698
549
|
const parsedBody = parsedOutput.body;
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
...parsedBody,
|
|
702
|
-
name: `${errorCode}`,
|
|
703
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
550
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
551
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
704
552
|
$fault: "client",
|
|
705
553
|
$metadata: deserializeMetadata(output),
|
|
706
|
-
};
|
|
554
|
+
});
|
|
555
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
707
556
|
}
|
|
708
|
-
const message = response.message || response.Message || errorCode;
|
|
709
|
-
response.message = message;
|
|
710
|
-
delete response.Message;
|
|
711
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
712
557
|
};
|
|
713
558
|
const deserializeAws_json1_1DescribeAddressCommand = async (output, context) => {
|
|
714
559
|
if (output.statusCode >= 300) {
|
|
@@ -735,27 +580,16 @@ const deserializeAws_json1_1DescribeAddressCommandError = async (output, context
|
|
|
735
580
|
switch (errorCode) {
|
|
736
581
|
case "InvalidResourceException":
|
|
737
582
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
738
|
-
|
|
739
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
740
|
-
name: errorCode,
|
|
741
|
-
$metadata: deserializeMetadata(output),
|
|
742
|
-
};
|
|
743
|
-
break;
|
|
583
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
744
584
|
default:
|
|
745
585
|
const parsedBody = parsedOutput.body;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
...parsedBody,
|
|
749
|
-
name: `${errorCode}`,
|
|
750
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
586
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
587
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
751
588
|
$fault: "client",
|
|
752
589
|
$metadata: deserializeMetadata(output),
|
|
753
|
-
};
|
|
590
|
+
});
|
|
591
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
754
592
|
}
|
|
755
|
-
const message = response.message || response.Message || errorCode;
|
|
756
|
-
response.message = message;
|
|
757
|
-
delete response.Message;
|
|
758
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
759
593
|
};
|
|
760
594
|
const deserializeAws_json1_1DescribeAddressesCommand = async (output, context) => {
|
|
761
595
|
if (output.statusCode >= 300) {
|
|
@@ -782,35 +616,19 @@ const deserializeAws_json1_1DescribeAddressesCommandError = async (output, conte
|
|
|
782
616
|
switch (errorCode) {
|
|
783
617
|
case "InvalidNextTokenException":
|
|
784
618
|
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
785
|
-
|
|
786
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
787
|
-
name: errorCode,
|
|
788
|
-
$metadata: deserializeMetadata(output),
|
|
789
|
-
};
|
|
790
|
-
break;
|
|
619
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
791
620
|
case "InvalidResourceException":
|
|
792
621
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
793
|
-
|
|
794
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
795
|
-
name: errorCode,
|
|
796
|
-
$metadata: deserializeMetadata(output),
|
|
797
|
-
};
|
|
798
|
-
break;
|
|
622
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
799
623
|
default:
|
|
800
624
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
...parsedBody,
|
|
804
|
-
name: `${errorCode}`,
|
|
805
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
625
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
626
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
806
627
|
$fault: "client",
|
|
807
628
|
$metadata: deserializeMetadata(output),
|
|
808
|
-
};
|
|
629
|
+
});
|
|
630
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
809
631
|
}
|
|
810
|
-
const message = response.message || response.Message || errorCode;
|
|
811
|
-
response.message = message;
|
|
812
|
-
delete response.Message;
|
|
813
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
814
632
|
};
|
|
815
633
|
const deserializeAws_json1_1DescribeClusterCommand = async (output, context) => {
|
|
816
634
|
if (output.statusCode >= 300) {
|
|
@@ -837,27 +655,16 @@ const deserializeAws_json1_1DescribeClusterCommandError = async (output, context
|
|
|
837
655
|
switch (errorCode) {
|
|
838
656
|
case "InvalidResourceException":
|
|
839
657
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
840
|
-
|
|
841
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
842
|
-
name: errorCode,
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
};
|
|
845
|
-
break;
|
|
658
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
846
659
|
default:
|
|
847
660
|
const parsedBody = parsedOutput.body;
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
...parsedBody,
|
|
851
|
-
name: `${errorCode}`,
|
|
852
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
661
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
662
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
853
663
|
$fault: "client",
|
|
854
664
|
$metadata: deserializeMetadata(output),
|
|
855
|
-
};
|
|
665
|
+
});
|
|
666
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
856
667
|
}
|
|
857
|
-
const message = response.message || response.Message || errorCode;
|
|
858
|
-
response.message = message;
|
|
859
|
-
delete response.Message;
|
|
860
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
861
668
|
};
|
|
862
669
|
const deserializeAws_json1_1DescribeJobCommand = async (output, context) => {
|
|
863
670
|
if (output.statusCode >= 300) {
|
|
@@ -884,27 +691,16 @@ const deserializeAws_json1_1DescribeJobCommandError = async (output, context) =>
|
|
|
884
691
|
switch (errorCode) {
|
|
885
692
|
case "InvalidResourceException":
|
|
886
693
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
887
|
-
|
|
888
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
889
|
-
name: errorCode,
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
};
|
|
892
|
-
break;
|
|
694
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
893
695
|
default:
|
|
894
696
|
const parsedBody = parsedOutput.body;
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
...parsedBody,
|
|
898
|
-
name: `${errorCode}`,
|
|
899
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
697
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
698
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
900
699
|
$fault: "client",
|
|
901
700
|
$metadata: deserializeMetadata(output),
|
|
902
|
-
};
|
|
701
|
+
});
|
|
702
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
903
703
|
}
|
|
904
|
-
const message = response.message || response.Message || errorCode;
|
|
905
|
-
response.message = message;
|
|
906
|
-
delete response.Message;
|
|
907
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
908
704
|
};
|
|
909
705
|
const deserializeAws_json1_1DescribeReturnShippingLabelCommand = async (output, context) => {
|
|
910
706
|
if (output.statusCode >= 300) {
|
|
@@ -931,43 +727,22 @@ const deserializeAws_json1_1DescribeReturnShippingLabelCommandError = async (out
|
|
|
931
727
|
switch (errorCode) {
|
|
932
728
|
case "ConflictException":
|
|
933
729
|
case "com.amazonaws.snowball#ConflictException":
|
|
934
|
-
|
|
935
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
936
|
-
name: errorCode,
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
};
|
|
939
|
-
break;
|
|
730
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
940
731
|
case "InvalidJobStateException":
|
|
941
732
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
942
|
-
|
|
943
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
944
|
-
name: errorCode,
|
|
945
|
-
$metadata: deserializeMetadata(output),
|
|
946
|
-
};
|
|
947
|
-
break;
|
|
733
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
948
734
|
case "InvalidResourceException":
|
|
949
735
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
950
|
-
|
|
951
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
952
|
-
name: errorCode,
|
|
953
|
-
$metadata: deserializeMetadata(output),
|
|
954
|
-
};
|
|
955
|
-
break;
|
|
736
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
956
737
|
default:
|
|
957
738
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
...parsedBody,
|
|
961
|
-
name: `${errorCode}`,
|
|
962
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
739
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
740
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
963
741
|
$fault: "client",
|
|
964
742
|
$metadata: deserializeMetadata(output),
|
|
965
|
-
};
|
|
743
|
+
});
|
|
744
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
966
745
|
}
|
|
967
|
-
const message = response.message || response.Message || errorCode;
|
|
968
|
-
response.message = message;
|
|
969
|
-
delete response.Message;
|
|
970
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
971
746
|
};
|
|
972
747
|
const deserializeAws_json1_1GetJobManifestCommand = async (output, context) => {
|
|
973
748
|
if (output.statusCode >= 300) {
|
|
@@ -994,35 +769,19 @@ const deserializeAws_json1_1GetJobManifestCommandError = async (output, context)
|
|
|
994
769
|
switch (errorCode) {
|
|
995
770
|
case "InvalidJobStateException":
|
|
996
771
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
997
|
-
|
|
998
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
999
|
-
name: errorCode,
|
|
1000
|
-
$metadata: deserializeMetadata(output),
|
|
1001
|
-
};
|
|
1002
|
-
break;
|
|
772
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
1003
773
|
case "InvalidResourceException":
|
|
1004
774
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1005
|
-
|
|
1006
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
1007
|
-
name: errorCode,
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
};
|
|
1010
|
-
break;
|
|
775
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1011
776
|
default:
|
|
1012
777
|
const parsedBody = parsedOutput.body;
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
...parsedBody,
|
|
1016
|
-
name: `${errorCode}`,
|
|
1017
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
778
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
779
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1018
780
|
$fault: "client",
|
|
1019
781
|
$metadata: deserializeMetadata(output),
|
|
1020
|
-
};
|
|
782
|
+
});
|
|
783
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1021
784
|
}
|
|
1022
|
-
const message = response.message || response.Message || errorCode;
|
|
1023
|
-
response.message = message;
|
|
1024
|
-
delete response.Message;
|
|
1025
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1026
785
|
};
|
|
1027
786
|
const deserializeAws_json1_1GetJobUnlockCodeCommand = async (output, context) => {
|
|
1028
787
|
if (output.statusCode >= 300) {
|
|
@@ -1049,35 +808,19 @@ const deserializeAws_json1_1GetJobUnlockCodeCommandError = async (output, contex
|
|
|
1049
808
|
switch (errorCode) {
|
|
1050
809
|
case "InvalidJobStateException":
|
|
1051
810
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1052
|
-
|
|
1053
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
1054
|
-
name: errorCode,
|
|
1055
|
-
$metadata: deserializeMetadata(output),
|
|
1056
|
-
};
|
|
1057
|
-
break;
|
|
811
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
1058
812
|
case "InvalidResourceException":
|
|
1059
813
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1060
|
-
|
|
1061
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
1062
|
-
name: errorCode,
|
|
1063
|
-
$metadata: deserializeMetadata(output),
|
|
1064
|
-
};
|
|
1065
|
-
break;
|
|
814
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1066
815
|
default:
|
|
1067
816
|
const parsedBody = parsedOutput.body;
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
...parsedBody,
|
|
1071
|
-
name: `${errorCode}`,
|
|
1072
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
817
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
818
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1073
819
|
$fault: "client",
|
|
1074
820
|
$metadata: deserializeMetadata(output),
|
|
1075
|
-
};
|
|
821
|
+
});
|
|
822
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1076
823
|
}
|
|
1077
|
-
const message = response.message || response.Message || errorCode;
|
|
1078
|
-
response.message = message;
|
|
1079
|
-
delete response.Message;
|
|
1080
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1081
824
|
};
|
|
1082
825
|
const deserializeAws_json1_1GetSnowballUsageCommand = async (output, context) => {
|
|
1083
826
|
if (output.statusCode >= 300) {
|
|
@@ -1104,19 +847,13 @@ const deserializeAws_json1_1GetSnowballUsageCommandError = async (output, contex
|
|
|
1104
847
|
switch (errorCode) {
|
|
1105
848
|
default:
|
|
1106
849
|
const parsedBody = parsedOutput.body;
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
...parsedBody,
|
|
1110
|
-
name: `${errorCode}`,
|
|
1111
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
850
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
851
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1112
852
|
$fault: "client",
|
|
1113
853
|
$metadata: deserializeMetadata(output),
|
|
1114
|
-
};
|
|
854
|
+
});
|
|
855
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1115
856
|
}
|
|
1116
|
-
const message = response.message || response.Message || errorCode;
|
|
1117
|
-
response.message = message;
|
|
1118
|
-
delete response.Message;
|
|
1119
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1120
857
|
};
|
|
1121
858
|
const deserializeAws_json1_1GetSoftwareUpdatesCommand = async (output, context) => {
|
|
1122
859
|
if (output.statusCode >= 300) {
|
|
@@ -1143,35 +880,19 @@ const deserializeAws_json1_1GetSoftwareUpdatesCommandError = async (output, cont
|
|
|
1143
880
|
switch (errorCode) {
|
|
1144
881
|
case "InvalidJobStateException":
|
|
1145
882
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1146
|
-
|
|
1147
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
1148
|
-
name: errorCode,
|
|
1149
|
-
$metadata: deserializeMetadata(output),
|
|
1150
|
-
};
|
|
1151
|
-
break;
|
|
883
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
1152
884
|
case "InvalidResourceException":
|
|
1153
885
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1154
|
-
|
|
1155
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
1156
|
-
name: errorCode,
|
|
1157
|
-
$metadata: deserializeMetadata(output),
|
|
1158
|
-
};
|
|
1159
|
-
break;
|
|
886
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1160
887
|
default:
|
|
1161
888
|
const parsedBody = parsedOutput.body;
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
...parsedBody,
|
|
1165
|
-
name: `${errorCode}`,
|
|
1166
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
889
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
890
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1167
891
|
$fault: "client",
|
|
1168
892
|
$metadata: deserializeMetadata(output),
|
|
1169
|
-
};
|
|
893
|
+
});
|
|
894
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1170
895
|
}
|
|
1171
|
-
const message = response.message || response.Message || errorCode;
|
|
1172
|
-
response.message = message;
|
|
1173
|
-
delete response.Message;
|
|
1174
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1175
896
|
};
|
|
1176
897
|
const deserializeAws_json1_1ListClusterJobsCommand = async (output, context) => {
|
|
1177
898
|
if (output.statusCode >= 300) {
|
|
@@ -1198,35 +919,19 @@ const deserializeAws_json1_1ListClusterJobsCommandError = async (output, context
|
|
|
1198
919
|
switch (errorCode) {
|
|
1199
920
|
case "InvalidNextTokenException":
|
|
1200
921
|
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1201
|
-
|
|
1202
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1203
|
-
name: errorCode,
|
|
1204
|
-
$metadata: deserializeMetadata(output),
|
|
1205
|
-
};
|
|
1206
|
-
break;
|
|
922
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1207
923
|
case "InvalidResourceException":
|
|
1208
924
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1209
|
-
|
|
1210
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
1211
|
-
name: errorCode,
|
|
1212
|
-
$metadata: deserializeMetadata(output),
|
|
1213
|
-
};
|
|
1214
|
-
break;
|
|
925
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1215
926
|
default:
|
|
1216
927
|
const parsedBody = parsedOutput.body;
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
...parsedBody,
|
|
1220
|
-
name: `${errorCode}`,
|
|
1221
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
928
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
929
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1222
930
|
$fault: "client",
|
|
1223
931
|
$metadata: deserializeMetadata(output),
|
|
1224
|
-
};
|
|
932
|
+
});
|
|
933
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1225
934
|
}
|
|
1226
|
-
const message = response.message || response.Message || errorCode;
|
|
1227
|
-
response.message = message;
|
|
1228
|
-
delete response.Message;
|
|
1229
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1230
935
|
};
|
|
1231
936
|
const deserializeAws_json1_1ListClustersCommand = async (output, context) => {
|
|
1232
937
|
if (output.statusCode >= 300) {
|
|
@@ -1253,27 +958,16 @@ const deserializeAws_json1_1ListClustersCommandError = async (output, context) =
|
|
|
1253
958
|
switch (errorCode) {
|
|
1254
959
|
case "InvalidNextTokenException":
|
|
1255
960
|
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1256
|
-
|
|
1257
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1258
|
-
name: errorCode,
|
|
1259
|
-
$metadata: deserializeMetadata(output),
|
|
1260
|
-
};
|
|
1261
|
-
break;
|
|
961
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1262
962
|
default:
|
|
1263
963
|
const parsedBody = parsedOutput.body;
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
...parsedBody,
|
|
1267
|
-
name: `${errorCode}`,
|
|
1268
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
964
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
965
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1269
966
|
$fault: "client",
|
|
1270
967
|
$metadata: deserializeMetadata(output),
|
|
1271
|
-
};
|
|
968
|
+
});
|
|
969
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1272
970
|
}
|
|
1273
|
-
const message = response.message || response.Message || errorCode;
|
|
1274
|
-
response.message = message;
|
|
1275
|
-
delete response.Message;
|
|
1276
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1277
971
|
};
|
|
1278
972
|
const deserializeAws_json1_1ListCompatibleImagesCommand = async (output, context) => {
|
|
1279
973
|
if (output.statusCode >= 300) {
|
|
@@ -1300,35 +994,19 @@ const deserializeAws_json1_1ListCompatibleImagesCommandError = async (output, co
|
|
|
1300
994
|
switch (errorCode) {
|
|
1301
995
|
case "Ec2RequestFailedException":
|
|
1302
996
|
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
1303
|
-
|
|
1304
|
-
...(await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)),
|
|
1305
|
-
name: errorCode,
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
};
|
|
1308
|
-
break;
|
|
997
|
+
throw await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context);
|
|
1309
998
|
case "InvalidNextTokenException":
|
|
1310
999
|
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1311
|
-
|
|
1312
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1313
|
-
name: errorCode,
|
|
1314
|
-
$metadata: deserializeMetadata(output),
|
|
1315
|
-
};
|
|
1316
|
-
break;
|
|
1000
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1317
1001
|
default:
|
|
1318
1002
|
const parsedBody = parsedOutput.body;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
...parsedBody,
|
|
1322
|
-
name: `${errorCode}`,
|
|
1323
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1003
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
1004
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1324
1005
|
$fault: "client",
|
|
1325
1006
|
$metadata: deserializeMetadata(output),
|
|
1326
|
-
};
|
|
1007
|
+
});
|
|
1008
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1327
1009
|
}
|
|
1328
|
-
const message = response.message || response.Message || errorCode;
|
|
1329
|
-
response.message = message;
|
|
1330
|
-
delete response.Message;
|
|
1331
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1332
1010
|
};
|
|
1333
1011
|
const deserializeAws_json1_1ListJobsCommand = async (output, context) => {
|
|
1334
1012
|
if (output.statusCode >= 300) {
|
|
@@ -1355,27 +1033,16 @@ const deserializeAws_json1_1ListJobsCommandError = async (output, context) => {
|
|
|
1355
1033
|
switch (errorCode) {
|
|
1356
1034
|
case "InvalidNextTokenException":
|
|
1357
1035
|
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1358
|
-
|
|
1359
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1360
|
-
name: errorCode,
|
|
1361
|
-
$metadata: deserializeMetadata(output),
|
|
1362
|
-
};
|
|
1363
|
-
break;
|
|
1036
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1364
1037
|
default:
|
|
1365
1038
|
const parsedBody = parsedOutput.body;
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
...parsedBody,
|
|
1369
|
-
name: `${errorCode}`,
|
|
1370
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1039
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
1040
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1371
1041
|
$fault: "client",
|
|
1372
1042
|
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1043
|
+
});
|
|
1044
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1374
1045
|
}
|
|
1375
|
-
const message = response.message || response.Message || errorCode;
|
|
1376
|
-
response.message = message;
|
|
1377
|
-
delete response.Message;
|
|
1378
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1379
1046
|
};
|
|
1380
1047
|
const deserializeAws_json1_1ListLongTermPricingCommand = async (output, context) => {
|
|
1381
1048
|
if (output.statusCode >= 300) {
|
|
@@ -1402,35 +1069,19 @@ const deserializeAws_json1_1ListLongTermPricingCommandError = async (output, con
|
|
|
1402
1069
|
switch (errorCode) {
|
|
1403
1070
|
case "InvalidNextTokenException":
|
|
1404
1071
|
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1405
|
-
|
|
1406
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1407
|
-
name: errorCode,
|
|
1408
|
-
$metadata: deserializeMetadata(output),
|
|
1409
|
-
};
|
|
1410
|
-
break;
|
|
1072
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1411
1073
|
case "InvalidResourceException":
|
|
1412
1074
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1413
|
-
|
|
1414
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
1415
|
-
name: errorCode,
|
|
1416
|
-
$metadata: deserializeMetadata(output),
|
|
1417
|
-
};
|
|
1418
|
-
break;
|
|
1075
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1419
1076
|
default:
|
|
1420
1077
|
const parsedBody = parsedOutput.body;
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
...parsedBody,
|
|
1424
|
-
name: `${errorCode}`,
|
|
1425
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1078
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
1079
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1426
1080
|
$fault: "client",
|
|
1427
1081
|
$metadata: deserializeMetadata(output),
|
|
1428
|
-
};
|
|
1082
|
+
});
|
|
1083
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1429
1084
|
}
|
|
1430
|
-
const message = response.message || response.Message || errorCode;
|
|
1431
|
-
response.message = message;
|
|
1432
|
-
delete response.Message;
|
|
1433
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1434
1085
|
};
|
|
1435
1086
|
const deserializeAws_json1_1UpdateClusterCommand = async (output, context) => {
|
|
1436
1087
|
if (output.statusCode >= 300) {
|
|
@@ -1457,59 +1108,28 @@ const deserializeAws_json1_1UpdateClusterCommandError = async (output, context)
|
|
|
1457
1108
|
switch (errorCode) {
|
|
1458
1109
|
case "Ec2RequestFailedException":
|
|
1459
1110
|
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
1460
|
-
|
|
1461
|
-
...(await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)),
|
|
1462
|
-
name: errorCode,
|
|
1463
|
-
$metadata: deserializeMetadata(output),
|
|
1464
|
-
};
|
|
1465
|
-
break;
|
|
1111
|
+
throw await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context);
|
|
1466
1112
|
case "InvalidInputCombinationException":
|
|
1467
1113
|
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
1468
|
-
|
|
1469
|
-
...(await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)),
|
|
1470
|
-
name: errorCode,
|
|
1471
|
-
$metadata: deserializeMetadata(output),
|
|
1472
|
-
};
|
|
1473
|
-
break;
|
|
1114
|
+
throw await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context);
|
|
1474
1115
|
case "InvalidJobStateException":
|
|
1475
1116
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1476
|
-
|
|
1477
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
1478
|
-
name: errorCode,
|
|
1479
|
-
$metadata: deserializeMetadata(output),
|
|
1480
|
-
};
|
|
1481
|
-
break;
|
|
1117
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
1482
1118
|
case "InvalidResourceException":
|
|
1483
1119
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1484
|
-
|
|
1485
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
1486
|
-
name: errorCode,
|
|
1487
|
-
$metadata: deserializeMetadata(output),
|
|
1488
|
-
};
|
|
1489
|
-
break;
|
|
1120
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1490
1121
|
case "KMSRequestFailedException":
|
|
1491
1122
|
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
1492
|
-
|
|
1493
|
-
...(await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)),
|
|
1494
|
-
name: errorCode,
|
|
1495
|
-
$metadata: deserializeMetadata(output),
|
|
1496
|
-
};
|
|
1497
|
-
break;
|
|
1123
|
+
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
1498
1124
|
default:
|
|
1499
1125
|
const parsedBody = parsedOutput.body;
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
...parsedBody,
|
|
1503
|
-
name: `${errorCode}`,
|
|
1504
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1126
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
1127
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1505
1128
|
$fault: "client",
|
|
1506
1129
|
$metadata: deserializeMetadata(output),
|
|
1507
|
-
};
|
|
1130
|
+
});
|
|
1131
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1508
1132
|
}
|
|
1509
|
-
const message = response.message || response.Message || errorCode;
|
|
1510
|
-
response.message = message;
|
|
1511
|
-
delete response.Message;
|
|
1512
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1513
1133
|
};
|
|
1514
1134
|
const deserializeAws_json1_1UpdateJobCommand = async (output, context) => {
|
|
1515
1135
|
if (output.statusCode >= 300) {
|
|
@@ -1536,67 +1156,31 @@ const deserializeAws_json1_1UpdateJobCommandError = async (output, context) => {
|
|
|
1536
1156
|
switch (errorCode) {
|
|
1537
1157
|
case "ClusterLimitExceededException":
|
|
1538
1158
|
case "com.amazonaws.snowball#ClusterLimitExceededException":
|
|
1539
|
-
|
|
1540
|
-
...(await deserializeAws_json1_1ClusterLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1541
|
-
name: errorCode,
|
|
1542
|
-
$metadata: deserializeMetadata(output),
|
|
1543
|
-
};
|
|
1544
|
-
break;
|
|
1159
|
+
throw await deserializeAws_json1_1ClusterLimitExceededExceptionResponse(parsedOutput, context);
|
|
1545
1160
|
case "Ec2RequestFailedException":
|
|
1546
1161
|
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
1547
|
-
|
|
1548
|
-
...(await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context)),
|
|
1549
|
-
name: errorCode,
|
|
1550
|
-
$metadata: deserializeMetadata(output),
|
|
1551
|
-
};
|
|
1552
|
-
break;
|
|
1162
|
+
throw await deserializeAws_json1_1Ec2RequestFailedExceptionResponse(parsedOutput, context);
|
|
1553
1163
|
case "InvalidInputCombinationException":
|
|
1554
1164
|
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
1555
|
-
|
|
1556
|
-
...(await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context)),
|
|
1557
|
-
name: errorCode,
|
|
1558
|
-
$metadata: deserializeMetadata(output),
|
|
1559
|
-
};
|
|
1560
|
-
break;
|
|
1165
|
+
throw await deserializeAws_json1_1InvalidInputCombinationExceptionResponse(parsedOutput, context);
|
|
1561
1166
|
case "InvalidJobStateException":
|
|
1562
1167
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1563
|
-
|
|
1564
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
1565
|
-
name: errorCode,
|
|
1566
|
-
$metadata: deserializeMetadata(output),
|
|
1567
|
-
};
|
|
1568
|
-
break;
|
|
1168
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
1569
1169
|
case "InvalidResourceException":
|
|
1570
1170
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1571
|
-
|
|
1572
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
1573
|
-
name: errorCode,
|
|
1574
|
-
$metadata: deserializeMetadata(output),
|
|
1575
|
-
};
|
|
1576
|
-
break;
|
|
1171
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1577
1172
|
case "KMSRequestFailedException":
|
|
1578
1173
|
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
1579
|
-
|
|
1580
|
-
...(await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context)),
|
|
1581
|
-
name: errorCode,
|
|
1582
|
-
$metadata: deserializeMetadata(output),
|
|
1583
|
-
};
|
|
1584
|
-
break;
|
|
1174
|
+
throw await deserializeAws_json1_1KMSRequestFailedExceptionResponse(parsedOutput, context);
|
|
1585
1175
|
default:
|
|
1586
1176
|
const parsedBody = parsedOutput.body;
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
...parsedBody,
|
|
1590
|
-
name: `${errorCode}`,
|
|
1591
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1177
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
1178
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1592
1179
|
$fault: "client",
|
|
1593
1180
|
$metadata: deserializeMetadata(output),
|
|
1594
|
-
};
|
|
1181
|
+
});
|
|
1182
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1595
1183
|
}
|
|
1596
|
-
const message = response.message || response.Message || errorCode;
|
|
1597
|
-
response.message = message;
|
|
1598
|
-
delete response.Message;
|
|
1599
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1600
1184
|
};
|
|
1601
1185
|
const deserializeAws_json1_1UpdateJobShipmentStateCommand = async (output, context) => {
|
|
1602
1186
|
if (output.statusCode >= 300) {
|
|
@@ -1623,35 +1207,19 @@ const deserializeAws_json1_1UpdateJobShipmentStateCommandError = async (output,
|
|
|
1623
1207
|
switch (errorCode) {
|
|
1624
1208
|
case "InvalidJobStateException":
|
|
1625
1209
|
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1626
|
-
|
|
1627
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
1628
|
-
name: errorCode,
|
|
1629
|
-
$metadata: deserializeMetadata(output),
|
|
1630
|
-
};
|
|
1631
|
-
break;
|
|
1210
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
1632
1211
|
case "InvalidResourceException":
|
|
1633
1212
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1634
|
-
|
|
1635
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
1636
|
-
name: errorCode,
|
|
1637
|
-
$metadata: deserializeMetadata(output),
|
|
1638
|
-
};
|
|
1639
|
-
break;
|
|
1213
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1640
1214
|
default:
|
|
1641
1215
|
const parsedBody = parsedOutput.body;
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
...parsedBody,
|
|
1645
|
-
name: `${errorCode}`,
|
|
1646
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1216
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
1217
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1647
1218
|
$fault: "client",
|
|
1648
1219
|
$metadata: deserializeMetadata(output),
|
|
1649
|
-
};
|
|
1220
|
+
});
|
|
1221
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1650
1222
|
}
|
|
1651
|
-
const message = response.message || response.Message || errorCode;
|
|
1652
|
-
response.message = message;
|
|
1653
|
-
delete response.Message;
|
|
1654
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1655
1223
|
};
|
|
1656
1224
|
const deserializeAws_json1_1UpdateLongTermPricingCommand = async (output, context) => {
|
|
1657
1225
|
if (output.statusCode >= 300) {
|
|
@@ -1678,148 +1246,115 @@ const deserializeAws_json1_1UpdateLongTermPricingCommandError = async (output, c
|
|
|
1678
1246
|
switch (errorCode) {
|
|
1679
1247
|
case "InvalidResourceException":
|
|
1680
1248
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1681
|
-
|
|
1682
|
-
...(await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context)),
|
|
1683
|
-
name: errorCode,
|
|
1684
|
-
$metadata: deserializeMetadata(output),
|
|
1685
|
-
};
|
|
1686
|
-
break;
|
|
1249
|
+
throw await deserializeAws_json1_1InvalidResourceExceptionResponse(parsedOutput, context);
|
|
1687
1250
|
default:
|
|
1688
1251
|
const parsedBody = parsedOutput.body;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
...parsedBody,
|
|
1692
|
-
name: `${errorCode}`,
|
|
1693
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1252
|
+
response = new SnowballServiceException_1.SnowballServiceException({
|
|
1253
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1694
1254
|
$fault: "client",
|
|
1695
1255
|
$metadata: deserializeMetadata(output),
|
|
1696
|
-
};
|
|
1256
|
+
});
|
|
1257
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1697
1258
|
}
|
|
1698
|
-
const message = response.message || response.Message || errorCode;
|
|
1699
|
-
response.message = message;
|
|
1700
|
-
delete response.Message;
|
|
1701
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1702
1259
|
};
|
|
1703
1260
|
const deserializeAws_json1_1ClusterLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1704
1261
|
const body = parsedOutput.body;
|
|
1705
1262
|
const deserialized = deserializeAws_json1_1ClusterLimitExceededException(body, context);
|
|
1706
|
-
const
|
|
1707
|
-
name: "ClusterLimitExceededException",
|
|
1708
|
-
$fault: "client",
|
|
1263
|
+
const exception = new models_0_1.ClusterLimitExceededException({
|
|
1709
1264
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1710
1265
|
...deserialized,
|
|
1711
|
-
};
|
|
1712
|
-
return
|
|
1266
|
+
});
|
|
1267
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1713
1268
|
};
|
|
1714
1269
|
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1715
1270
|
const body = parsedOutput.body;
|
|
1716
1271
|
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
1717
|
-
const
|
|
1718
|
-
name: "ConflictException",
|
|
1719
|
-
$fault: "client",
|
|
1272
|
+
const exception = new models_0_1.ConflictException({
|
|
1720
1273
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1721
1274
|
...deserialized,
|
|
1722
|
-
};
|
|
1723
|
-
return
|
|
1275
|
+
});
|
|
1276
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1724
1277
|
};
|
|
1725
1278
|
const deserializeAws_json1_1Ec2RequestFailedExceptionResponse = async (parsedOutput, context) => {
|
|
1726
1279
|
const body = parsedOutput.body;
|
|
1727
1280
|
const deserialized = deserializeAws_json1_1Ec2RequestFailedException(body, context);
|
|
1728
|
-
const
|
|
1729
|
-
name: "Ec2RequestFailedException",
|
|
1730
|
-
$fault: "client",
|
|
1281
|
+
const exception = new models_0_1.Ec2RequestFailedException({
|
|
1731
1282
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1732
1283
|
...deserialized,
|
|
1733
|
-
};
|
|
1734
|
-
return
|
|
1284
|
+
});
|
|
1285
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1735
1286
|
};
|
|
1736
1287
|
const deserializeAws_json1_1InvalidAddressExceptionResponse = async (parsedOutput, context) => {
|
|
1737
1288
|
const body = parsedOutput.body;
|
|
1738
1289
|
const deserialized = deserializeAws_json1_1InvalidAddressException(body, context);
|
|
1739
|
-
const
|
|
1740
|
-
name: "InvalidAddressException",
|
|
1741
|
-
$fault: "client",
|
|
1290
|
+
const exception = new models_0_1.InvalidAddressException({
|
|
1742
1291
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1743
1292
|
...deserialized,
|
|
1744
|
-
};
|
|
1745
|
-
return
|
|
1293
|
+
});
|
|
1294
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1746
1295
|
};
|
|
1747
1296
|
const deserializeAws_json1_1InvalidInputCombinationExceptionResponse = async (parsedOutput, context) => {
|
|
1748
1297
|
const body = parsedOutput.body;
|
|
1749
1298
|
const deserialized = deserializeAws_json1_1InvalidInputCombinationException(body, context);
|
|
1750
|
-
const
|
|
1751
|
-
name: "InvalidInputCombinationException",
|
|
1752
|
-
$fault: "client",
|
|
1299
|
+
const exception = new models_0_1.InvalidInputCombinationException({
|
|
1753
1300
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1754
1301
|
...deserialized,
|
|
1755
|
-
};
|
|
1756
|
-
return
|
|
1302
|
+
});
|
|
1303
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1757
1304
|
};
|
|
1758
1305
|
const deserializeAws_json1_1InvalidJobStateExceptionResponse = async (parsedOutput, context) => {
|
|
1759
1306
|
const body = parsedOutput.body;
|
|
1760
1307
|
const deserialized = deserializeAws_json1_1InvalidJobStateException(body, context);
|
|
1761
|
-
const
|
|
1762
|
-
name: "InvalidJobStateException",
|
|
1763
|
-
$fault: "client",
|
|
1308
|
+
const exception = new models_0_1.InvalidJobStateException({
|
|
1764
1309
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1765
1310
|
...deserialized,
|
|
1766
|
-
};
|
|
1767
|
-
return
|
|
1311
|
+
});
|
|
1312
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1768
1313
|
};
|
|
1769
1314
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
1770
1315
|
const body = parsedOutput.body;
|
|
1771
1316
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
1772
|
-
const
|
|
1773
|
-
name: "InvalidNextTokenException",
|
|
1774
|
-
$fault: "client",
|
|
1317
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
1775
1318
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1776
1319
|
...deserialized,
|
|
1777
|
-
};
|
|
1778
|
-
return
|
|
1320
|
+
});
|
|
1321
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1779
1322
|
};
|
|
1780
1323
|
const deserializeAws_json1_1InvalidResourceExceptionResponse = async (parsedOutput, context) => {
|
|
1781
1324
|
const body = parsedOutput.body;
|
|
1782
1325
|
const deserialized = deserializeAws_json1_1InvalidResourceException(body, context);
|
|
1783
|
-
const
|
|
1784
|
-
name: "InvalidResourceException",
|
|
1785
|
-
$fault: "client",
|
|
1326
|
+
const exception = new models_0_1.InvalidResourceException({
|
|
1786
1327
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1787
1328
|
...deserialized,
|
|
1788
|
-
};
|
|
1789
|
-
return
|
|
1329
|
+
});
|
|
1330
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1790
1331
|
};
|
|
1791
1332
|
const deserializeAws_json1_1KMSRequestFailedExceptionResponse = async (parsedOutput, context) => {
|
|
1792
1333
|
const body = parsedOutput.body;
|
|
1793
1334
|
const deserialized = deserializeAws_json1_1KMSRequestFailedException(body, context);
|
|
1794
|
-
const
|
|
1795
|
-
name: "KMSRequestFailedException",
|
|
1796
|
-
$fault: "client",
|
|
1335
|
+
const exception = new models_0_1.KMSRequestFailedException({
|
|
1797
1336
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1798
1337
|
...deserialized,
|
|
1799
|
-
};
|
|
1800
|
-
return
|
|
1338
|
+
});
|
|
1339
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1801
1340
|
};
|
|
1802
1341
|
const deserializeAws_json1_1ReturnShippingLabelAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
1803
1342
|
const body = parsedOutput.body;
|
|
1804
1343
|
const deserialized = deserializeAws_json1_1ReturnShippingLabelAlreadyExistsException(body, context);
|
|
1805
|
-
const
|
|
1806
|
-
name: "ReturnShippingLabelAlreadyExistsException",
|
|
1807
|
-
$fault: "client",
|
|
1344
|
+
const exception = new models_0_1.ReturnShippingLabelAlreadyExistsException({
|
|
1808
1345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1809
1346
|
...deserialized,
|
|
1810
|
-
};
|
|
1811
|
-
return
|
|
1347
|
+
});
|
|
1348
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1812
1349
|
};
|
|
1813
1350
|
const deserializeAws_json1_1UnsupportedAddressExceptionResponse = async (parsedOutput, context) => {
|
|
1814
1351
|
const body = parsedOutput.body;
|
|
1815
1352
|
const deserialized = deserializeAws_json1_1UnsupportedAddressException(body, context);
|
|
1816
|
-
const
|
|
1817
|
-
name: "UnsupportedAddressException",
|
|
1818
|
-
$fault: "client",
|
|
1353
|
+
const exception = new models_0_1.UnsupportedAddressException({
|
|
1819
1354
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1820
1355
|
...deserialized,
|
|
1821
|
-
};
|
|
1822
|
-
return
|
|
1356
|
+
});
|
|
1357
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1823
1358
|
};
|
|
1824
1359
|
const serializeAws_json1_1Address = (input, context) => {
|
|
1825
1360
|
return {
|
|
@@ -2271,7 +1806,7 @@ const deserializeAws_json1_1Address = (output, context) => {
|
|
|
2271
1806
|
};
|
|
2272
1807
|
};
|
|
2273
1808
|
const deserializeAws_json1_1AddressList = (output, context) => {
|
|
2274
|
-
|
|
1809
|
+
const retVal = (output || [])
|
|
2275
1810
|
.filter((e) => e != null)
|
|
2276
1811
|
.map((entry) => {
|
|
2277
1812
|
if (entry === null) {
|
|
@@ -2279,6 +1814,7 @@ const deserializeAws_json1_1AddressList = (output, context) => {
|
|
|
2279
1814
|
}
|
|
2280
1815
|
return deserializeAws_json1_1Address(entry, context);
|
|
2281
1816
|
});
|
|
1817
|
+
return retVal;
|
|
2282
1818
|
};
|
|
2283
1819
|
const deserializeAws_json1_1CancelClusterResult = (output, context) => {
|
|
2284
1820
|
return {};
|
|
@@ -2302,7 +1838,7 @@ const deserializeAws_json1_1ClusterListEntry = (output, context) => {
|
|
|
2302
1838
|
};
|
|
2303
1839
|
};
|
|
2304
1840
|
const deserializeAws_json1_1ClusterListEntryList = (output, context) => {
|
|
2305
|
-
|
|
1841
|
+
const retVal = (output || [])
|
|
2306
1842
|
.filter((e) => e != null)
|
|
2307
1843
|
.map((entry) => {
|
|
2308
1844
|
if (entry === null) {
|
|
@@ -2310,6 +1846,7 @@ const deserializeAws_json1_1ClusterListEntryList = (output, context) => {
|
|
|
2310
1846
|
}
|
|
2311
1847
|
return deserializeAws_json1_1ClusterListEntry(entry, context);
|
|
2312
1848
|
});
|
|
1849
|
+
return retVal;
|
|
2313
1850
|
};
|
|
2314
1851
|
const deserializeAws_json1_1ClusterMetadata = (output, context) => {
|
|
2315
1852
|
return {
|
|
@@ -2347,7 +1884,7 @@ const deserializeAws_json1_1CompatibleImage = (output, context) => {
|
|
|
2347
1884
|
};
|
|
2348
1885
|
};
|
|
2349
1886
|
const deserializeAws_json1_1CompatibleImageList = (output, context) => {
|
|
2350
|
-
|
|
1887
|
+
const retVal = (output || [])
|
|
2351
1888
|
.filter((e) => e != null)
|
|
2352
1889
|
.map((entry) => {
|
|
2353
1890
|
if (entry === null) {
|
|
@@ -2355,6 +1892,7 @@ const deserializeAws_json1_1CompatibleImageList = (output, context) => {
|
|
|
2355
1892
|
}
|
|
2356
1893
|
return deserializeAws_json1_1CompatibleImage(entry, context);
|
|
2357
1894
|
});
|
|
1895
|
+
return retVal;
|
|
2358
1896
|
};
|
|
2359
1897
|
const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
2360
1898
|
return {
|
|
@@ -2450,7 +1988,7 @@ const deserializeAws_json1_1Ec2AmiResource = (output, context) => {
|
|
|
2450
1988
|
};
|
|
2451
1989
|
};
|
|
2452
1990
|
const deserializeAws_json1_1Ec2AmiResourceList = (output, context) => {
|
|
2453
|
-
|
|
1991
|
+
const retVal = (output || [])
|
|
2454
1992
|
.filter((e) => e != null)
|
|
2455
1993
|
.map((entry) => {
|
|
2456
1994
|
if (entry === null) {
|
|
@@ -2458,6 +1996,7 @@ const deserializeAws_json1_1Ec2AmiResourceList = (output, context) => {
|
|
|
2458
1996
|
}
|
|
2459
1997
|
return deserializeAws_json1_1Ec2AmiResource(entry, context);
|
|
2460
1998
|
});
|
|
1999
|
+
return retVal;
|
|
2461
2000
|
};
|
|
2462
2001
|
const deserializeAws_json1_1Ec2RequestFailedException = (output, context) => {
|
|
2463
2002
|
return {
|
|
@@ -2470,7 +2009,7 @@ const deserializeAws_json1_1EventTriggerDefinition = (output, context) => {
|
|
|
2470
2009
|
};
|
|
2471
2010
|
};
|
|
2472
2011
|
const deserializeAws_json1_1EventTriggerDefinitionList = (output, context) => {
|
|
2473
|
-
|
|
2012
|
+
const retVal = (output || [])
|
|
2474
2013
|
.filter((e) => e != null)
|
|
2475
2014
|
.map((entry) => {
|
|
2476
2015
|
if (entry === null) {
|
|
@@ -2478,6 +2017,7 @@ const deserializeAws_json1_1EventTriggerDefinitionList = (output, context) => {
|
|
|
2478
2017
|
}
|
|
2479
2018
|
return deserializeAws_json1_1EventTriggerDefinition(entry, context);
|
|
2480
2019
|
});
|
|
2020
|
+
return retVal;
|
|
2481
2021
|
};
|
|
2482
2022
|
const deserializeAws_json1_1GetJobManifestResult = (output, context) => {
|
|
2483
2023
|
return {
|
|
@@ -2545,7 +2085,7 @@ const deserializeAws_json1_1JobListEntry = (output, context) => {
|
|
|
2545
2085
|
};
|
|
2546
2086
|
};
|
|
2547
2087
|
const deserializeAws_json1_1JobListEntryList = (output, context) => {
|
|
2548
|
-
|
|
2088
|
+
const retVal = (output || [])
|
|
2549
2089
|
.filter((e) => e != null)
|
|
2550
2090
|
.map((entry) => {
|
|
2551
2091
|
if (entry === null) {
|
|
@@ -2553,6 +2093,7 @@ const deserializeAws_json1_1JobListEntryList = (output, context) => {
|
|
|
2553
2093
|
}
|
|
2554
2094
|
return deserializeAws_json1_1JobListEntry(entry, context);
|
|
2555
2095
|
});
|
|
2096
|
+
return retVal;
|
|
2556
2097
|
};
|
|
2557
2098
|
const deserializeAws_json1_1JobLogs = (output, context) => {
|
|
2558
2099
|
return {
|
|
@@ -2606,7 +2147,7 @@ const deserializeAws_json1_1JobMetadata = (output, context) => {
|
|
|
2606
2147
|
};
|
|
2607
2148
|
};
|
|
2608
2149
|
const deserializeAws_json1_1JobMetadataList = (output, context) => {
|
|
2609
|
-
|
|
2150
|
+
const retVal = (output || [])
|
|
2610
2151
|
.filter((e) => e != null)
|
|
2611
2152
|
.map((entry) => {
|
|
2612
2153
|
if (entry === null) {
|
|
@@ -2614,6 +2155,7 @@ const deserializeAws_json1_1JobMetadataList = (output, context) => {
|
|
|
2614
2155
|
}
|
|
2615
2156
|
return deserializeAws_json1_1JobMetadata(entry, context);
|
|
2616
2157
|
});
|
|
2158
|
+
return retVal;
|
|
2617
2159
|
};
|
|
2618
2160
|
const deserializeAws_json1_1JobResource = (output, context) => {
|
|
2619
2161
|
return {
|
|
@@ -2629,7 +2171,7 @@ const deserializeAws_json1_1JobResource = (output, context) => {
|
|
|
2629
2171
|
};
|
|
2630
2172
|
};
|
|
2631
2173
|
const deserializeAws_json1_1JobStateList = (output, context) => {
|
|
2632
|
-
|
|
2174
|
+
const retVal = (output || [])
|
|
2633
2175
|
.filter((e) => e != null)
|
|
2634
2176
|
.map((entry) => {
|
|
2635
2177
|
if (entry === null) {
|
|
@@ -2637,6 +2179,7 @@ const deserializeAws_json1_1JobStateList = (output, context) => {
|
|
|
2637
2179
|
}
|
|
2638
2180
|
return smithy_client_1.expectString(entry);
|
|
2639
2181
|
});
|
|
2182
|
+
return retVal;
|
|
2640
2183
|
};
|
|
2641
2184
|
const deserializeAws_json1_1KeyRange = (output, context) => {
|
|
2642
2185
|
return {
|
|
@@ -2658,7 +2201,7 @@ const deserializeAws_json1_1LambdaResource = (output, context) => {
|
|
|
2658
2201
|
};
|
|
2659
2202
|
};
|
|
2660
2203
|
const deserializeAws_json1_1LambdaResourceList = (output, context) => {
|
|
2661
|
-
|
|
2204
|
+
const retVal = (output || [])
|
|
2662
2205
|
.filter((e) => e != null)
|
|
2663
2206
|
.map((entry) => {
|
|
2664
2207
|
if (entry === null) {
|
|
@@ -2666,6 +2209,7 @@ const deserializeAws_json1_1LambdaResourceList = (output, context) => {
|
|
|
2666
2209
|
}
|
|
2667
2210
|
return deserializeAws_json1_1LambdaResource(entry, context);
|
|
2668
2211
|
});
|
|
2212
|
+
return retVal;
|
|
2669
2213
|
};
|
|
2670
2214
|
const deserializeAws_json1_1ListClusterJobsResult = (output, context) => {
|
|
2671
2215
|
return {
|
|
@@ -2708,7 +2252,7 @@ const deserializeAws_json1_1ListLongTermPricingResult = (output, context) => {
|
|
|
2708
2252
|
};
|
|
2709
2253
|
};
|
|
2710
2254
|
const deserializeAws_json1_1LongTermPricingAssociatedJobIdList = (output, context) => {
|
|
2711
|
-
|
|
2255
|
+
const retVal = (output || [])
|
|
2712
2256
|
.filter((e) => e != null)
|
|
2713
2257
|
.map((entry) => {
|
|
2714
2258
|
if (entry === null) {
|
|
@@ -2716,9 +2260,10 @@ const deserializeAws_json1_1LongTermPricingAssociatedJobIdList = (output, contex
|
|
|
2716
2260
|
}
|
|
2717
2261
|
return smithy_client_1.expectString(entry);
|
|
2718
2262
|
});
|
|
2263
|
+
return retVal;
|
|
2719
2264
|
};
|
|
2720
2265
|
const deserializeAws_json1_1LongTermPricingEntryList = (output, context) => {
|
|
2721
|
-
|
|
2266
|
+
const retVal = (output || [])
|
|
2722
2267
|
.filter((e) => e != null)
|
|
2723
2268
|
.map((entry) => {
|
|
2724
2269
|
if (entry === null) {
|
|
@@ -2726,6 +2271,7 @@ const deserializeAws_json1_1LongTermPricingEntryList = (output, context) => {
|
|
|
2726
2271
|
}
|
|
2727
2272
|
return deserializeAws_json1_1LongTermPricingListEntry(entry, context);
|
|
2728
2273
|
});
|
|
2274
|
+
return retVal;
|
|
2729
2275
|
};
|
|
2730
2276
|
const deserializeAws_json1_1LongTermPricingListEntry = (output, context) => {
|
|
2731
2277
|
return {
|
|
@@ -2789,7 +2335,7 @@ const deserializeAws_json1_1S3Resource = (output, context) => {
|
|
|
2789
2335
|
};
|
|
2790
2336
|
};
|
|
2791
2337
|
const deserializeAws_json1_1S3ResourceList = (output, context) => {
|
|
2792
|
-
|
|
2338
|
+
const retVal = (output || [])
|
|
2793
2339
|
.filter((e) => e != null)
|
|
2794
2340
|
.map((entry) => {
|
|
2795
2341
|
if (entry === null) {
|
|
@@ -2797,6 +2343,7 @@ const deserializeAws_json1_1S3ResourceList = (output, context) => {
|
|
|
2797
2343
|
}
|
|
2798
2344
|
return deserializeAws_json1_1S3Resource(entry, context);
|
|
2799
2345
|
});
|
|
2346
|
+
return retVal;
|
|
2800
2347
|
};
|
|
2801
2348
|
const deserializeAws_json1_1Shipment = (output, context) => {
|
|
2802
2349
|
return {
|
|
@@ -2829,7 +2376,7 @@ const deserializeAws_json1_1TargetOnDeviceService = (output, context) => {
|
|
|
2829
2376
|
};
|
|
2830
2377
|
};
|
|
2831
2378
|
const deserializeAws_json1_1TargetOnDeviceServiceList = (output, context) => {
|
|
2832
|
-
|
|
2379
|
+
const retVal = (output || [])
|
|
2833
2380
|
.filter((e) => e != null)
|
|
2834
2381
|
.map((entry) => {
|
|
2835
2382
|
if (entry === null) {
|
|
@@ -2837,6 +2384,7 @@ const deserializeAws_json1_1TargetOnDeviceServiceList = (output, context) => {
|
|
|
2837
2384
|
}
|
|
2838
2385
|
return deserializeAws_json1_1TargetOnDeviceService(entry, context);
|
|
2839
2386
|
});
|
|
2387
|
+
return retVal;
|
|
2840
2388
|
};
|
|
2841
2389
|
const deserializeAws_json1_1TaxDocuments = (output, context) => {
|
|
2842
2390
|
return {
|