@aws-sdk/client-glacier 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +227 -799
- package/dist-es/protocols/Aws_restJson1.js +175 -747
- package/package.json +6 -6
|
@@ -53,13 +53,13 @@ const se_AddTagsToVaultCommand = async (input, context) => {
|
|
|
53
53
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
|
|
54
54
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
55
55
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
56
|
-
const query = map({
|
|
56
|
+
const query = (0, smithy_client_1.map)({
|
|
57
57
|
operation: [, "add"],
|
|
58
58
|
});
|
|
59
59
|
let body;
|
|
60
|
-
body = JSON.stringify({
|
|
61
|
-
|
|
62
|
-
});
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
61
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
62
|
+
}));
|
|
63
63
|
return new protocol_http_1.HttpRequest({
|
|
64
64
|
protocol,
|
|
65
65
|
hostname,
|
|
@@ -74,7 +74,7 @@ const se_AddTagsToVaultCommand = async (input, context) => {
|
|
|
74
74
|
exports.se_AddTagsToVaultCommand = se_AddTagsToVaultCommand;
|
|
75
75
|
const se_CompleteMultipartUploadCommand = async (input, context) => {
|
|
76
76
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
77
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
77
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
78
78
|
"x-amz-archive-size": input.archiveSize,
|
|
79
79
|
"x-amz-sha256-tree-hash": input.checksum,
|
|
80
80
|
});
|
|
@@ -266,7 +266,7 @@ const se_GetDataRetrievalPolicyCommand = async (input, context) => {
|
|
|
266
266
|
exports.se_GetDataRetrievalPolicyCommand = se_GetDataRetrievalPolicyCommand;
|
|
267
267
|
const se_GetJobOutputCommand = async (input, context) => {
|
|
268
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
269
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
270
270
|
range: input.range,
|
|
271
271
|
});
|
|
272
272
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -353,7 +353,7 @@ const se_InitiateJobCommand = async (input, context) => {
|
|
|
353
353
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
354
354
|
let body;
|
|
355
355
|
if (input.jobParameters !== undefined) {
|
|
356
|
-
body =
|
|
356
|
+
body = (0, smithy_client_1._json)(input.jobParameters);
|
|
357
357
|
}
|
|
358
358
|
if (body === undefined) {
|
|
359
359
|
body = {};
|
|
@@ -372,7 +372,7 @@ const se_InitiateJobCommand = async (input, context) => {
|
|
|
372
372
|
exports.se_InitiateJobCommand = se_InitiateJobCommand;
|
|
373
373
|
const se_InitiateMultipartUploadCommand = async (input, context) => {
|
|
374
374
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
375
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
375
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
376
376
|
"x-amz-archive-description": input.archiveDescription,
|
|
377
377
|
"x-amz-part-size": input.partSize,
|
|
378
378
|
});
|
|
@@ -403,7 +403,7 @@ const se_InitiateVaultLockCommand = async (input, context) => {
|
|
|
403
403
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
404
404
|
let body;
|
|
405
405
|
if (input.policy !== undefined) {
|
|
406
|
-
body =
|
|
406
|
+
body = (0, smithy_client_1._json)(input.policy);
|
|
407
407
|
}
|
|
408
408
|
if (body === undefined) {
|
|
409
409
|
body = {};
|
|
@@ -426,7 +426,7 @@ const se_ListJobsCommand = async (input, context) => {
|
|
|
426
426
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs";
|
|
427
427
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
428
428
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
429
|
-
const query = map({
|
|
429
|
+
const query = (0, smithy_client_1.map)({
|
|
430
430
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
431
431
|
marker: [, input.marker],
|
|
432
432
|
statuscode: [, input.statuscode],
|
|
@@ -452,7 +452,7 @@ const se_ListMultipartUploadsCommand = async (input, context) => {
|
|
|
452
452
|
"/{accountId}/vaults/{vaultName}/multipart-uploads";
|
|
453
453
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
454
454
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
455
|
-
const query = map({
|
|
455
|
+
const query = (0, smithy_client_1.map)({
|
|
456
456
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
457
457
|
marker: [, input.marker],
|
|
458
458
|
});
|
|
@@ -477,7 +477,7 @@ const se_ListPartsCommand = async (input, context) => {
|
|
|
477
477
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
478
478
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
479
479
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "uploadId", () => input.uploadId, "{uploadId}", false);
|
|
480
|
-
const query = map({
|
|
480
|
+
const query = (0, smithy_client_1.map)({
|
|
481
481
|
marker: [, input.marker],
|
|
482
482
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
483
483
|
});
|
|
@@ -534,7 +534,7 @@ const se_ListVaultsCommand = async (input, context) => {
|
|
|
534
534
|
const headers = {};
|
|
535
535
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults";
|
|
536
536
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
537
|
-
const query = map({
|
|
537
|
+
const query = (0, smithy_client_1.map)({
|
|
538
538
|
marker: [, input.marker],
|
|
539
539
|
limit: [() => input.limit !== void 0, () => input.limit.toString()],
|
|
540
540
|
});
|
|
@@ -576,13 +576,13 @@ const se_RemoveTagsFromVaultCommand = async (input, context) => {
|
|
|
576
576
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
|
|
577
577
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
578
578
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
579
|
-
const query = map({
|
|
579
|
+
const query = (0, smithy_client_1.map)({
|
|
580
580
|
operation: [, "remove"],
|
|
581
581
|
});
|
|
582
582
|
let body;
|
|
583
|
-
body = JSON.stringify({
|
|
584
|
-
|
|
585
|
-
});
|
|
583
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
584
|
+
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
585
|
+
}));
|
|
586
586
|
return new protocol_http_1.HttpRequest({
|
|
587
587
|
protocol,
|
|
588
588
|
hostname,
|
|
@@ -603,9 +603,9 @@ const se_SetDataRetrievalPolicyCommand = async (input, context) => {
|
|
|
603
603
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval";
|
|
604
604
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
605
605
|
let body;
|
|
606
|
-
body = JSON.stringify({
|
|
607
|
-
|
|
608
|
-
});
|
|
606
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
607
|
+
Policy: (_) => (0, smithy_client_1._json)(_),
|
|
608
|
+
}));
|
|
609
609
|
return new protocol_http_1.HttpRequest({
|
|
610
610
|
protocol,
|
|
611
611
|
hostname,
|
|
@@ -628,7 +628,7 @@ const se_SetVaultAccessPolicyCommand = async (input, context) => {
|
|
|
628
628
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
629
629
|
let body;
|
|
630
630
|
if (input.policy !== undefined) {
|
|
631
|
-
body =
|
|
631
|
+
body = (0, smithy_client_1._json)(input.policy);
|
|
632
632
|
}
|
|
633
633
|
if (body === undefined) {
|
|
634
634
|
body = {};
|
|
@@ -656,7 +656,7 @@ const se_SetVaultNotificationsCommand = async (input, context) => {
|
|
|
656
656
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
|
|
657
657
|
let body;
|
|
658
658
|
if (input.vaultNotificationConfig !== undefined) {
|
|
659
|
-
body =
|
|
659
|
+
body = (0, smithy_client_1._json)(input.vaultNotificationConfig);
|
|
660
660
|
}
|
|
661
661
|
if (body === undefined) {
|
|
662
662
|
body = {};
|
|
@@ -675,7 +675,7 @@ const se_SetVaultNotificationsCommand = async (input, context) => {
|
|
|
675
675
|
exports.se_SetVaultNotificationsCommand = se_SetVaultNotificationsCommand;
|
|
676
676
|
const se_UploadArchiveCommand = async (input, context) => {
|
|
677
677
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
678
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
678
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
679
679
|
"content-type": "application/octet-stream",
|
|
680
680
|
"x-amz-archive-description": input.archiveDescription,
|
|
681
681
|
"x-amz-sha256-tree-hash": input.checksum,
|
|
@@ -700,7 +700,7 @@ const se_UploadArchiveCommand = async (input, context) => {
|
|
|
700
700
|
exports.se_UploadArchiveCommand = se_UploadArchiveCommand;
|
|
701
701
|
const se_UploadMultipartPartCommand = async (input, context) => {
|
|
702
702
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
703
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
703
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
704
704
|
"content-type": "application/octet-stream",
|
|
705
705
|
"x-amz-sha256-tree-hash": input.checksum,
|
|
706
706
|
"content-range": input.range,
|
|
@@ -729,7 +729,7 @@ const de_AbortMultipartUploadCommand = async (output, context) => {
|
|
|
729
729
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
730
730
|
return de_AbortMultipartUploadCommandError(output, context);
|
|
731
731
|
}
|
|
732
|
-
const contents = map({
|
|
732
|
+
const contents = (0, smithy_client_1.map)({
|
|
733
733
|
$metadata: deserializeMetadata(output),
|
|
734
734
|
});
|
|
735
735
|
await collectBody(output.body, context);
|
|
@@ -757,10 +757,9 @@ const de_AbortMultipartUploadCommandError = async (output, context) => {
|
|
|
757
757
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
758
758
|
default:
|
|
759
759
|
const parsedBody = parsedOutput.body;
|
|
760
|
-
|
|
760
|
+
return throwDefaultError({
|
|
761
761
|
output,
|
|
762
762
|
parsedBody,
|
|
763
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
764
763
|
errorCode,
|
|
765
764
|
});
|
|
766
765
|
}
|
|
@@ -769,7 +768,7 @@ const de_AbortVaultLockCommand = async (output, context) => {
|
|
|
769
768
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
770
769
|
return de_AbortVaultLockCommandError(output, context);
|
|
771
770
|
}
|
|
772
|
-
const contents = map({
|
|
771
|
+
const contents = (0, smithy_client_1.map)({
|
|
773
772
|
$metadata: deserializeMetadata(output),
|
|
774
773
|
});
|
|
775
774
|
await collectBody(output.body, context);
|
|
@@ -797,10 +796,9 @@ const de_AbortVaultLockCommandError = async (output, context) => {
|
|
|
797
796
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
798
797
|
default:
|
|
799
798
|
const parsedBody = parsedOutput.body;
|
|
800
|
-
|
|
799
|
+
return throwDefaultError({
|
|
801
800
|
output,
|
|
802
801
|
parsedBody,
|
|
803
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
804
802
|
errorCode,
|
|
805
803
|
});
|
|
806
804
|
}
|
|
@@ -809,7 +807,7 @@ const de_AddTagsToVaultCommand = async (output, context) => {
|
|
|
809
807
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
810
808
|
return de_AddTagsToVaultCommandError(output, context);
|
|
811
809
|
}
|
|
812
|
-
const contents = map({
|
|
810
|
+
const contents = (0, smithy_client_1.map)({
|
|
813
811
|
$metadata: deserializeMetadata(output),
|
|
814
812
|
});
|
|
815
813
|
await collectBody(output.body, context);
|
|
@@ -840,10 +838,9 @@ const de_AddTagsToVaultCommandError = async (output, context) => {
|
|
|
840
838
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
841
839
|
default:
|
|
842
840
|
const parsedBody = parsedOutput.body;
|
|
843
|
-
|
|
841
|
+
return throwDefaultError({
|
|
844
842
|
output,
|
|
845
843
|
parsedBody,
|
|
846
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
847
844
|
errorCode,
|
|
848
845
|
});
|
|
849
846
|
}
|
|
@@ -852,7 +849,7 @@ const de_CompleteMultipartUploadCommand = async (output, context) => {
|
|
|
852
849
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
853
850
|
return de_CompleteMultipartUploadCommandError(output, context);
|
|
854
851
|
}
|
|
855
|
-
const contents = map({
|
|
852
|
+
const contents = (0, smithy_client_1.map)({
|
|
856
853
|
$metadata: deserializeMetadata(output),
|
|
857
854
|
location: [, output.headers["location"]],
|
|
858
855
|
checksum: [, output.headers["x-amz-sha256-tree-hash"]],
|
|
@@ -883,10 +880,9 @@ const de_CompleteMultipartUploadCommandError = async (output, context) => {
|
|
|
883
880
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
884
881
|
default:
|
|
885
882
|
const parsedBody = parsedOutput.body;
|
|
886
|
-
|
|
883
|
+
return throwDefaultError({
|
|
887
884
|
output,
|
|
888
885
|
parsedBody,
|
|
889
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
890
886
|
errorCode,
|
|
891
887
|
});
|
|
892
888
|
}
|
|
@@ -895,7 +891,7 @@ const de_CompleteVaultLockCommand = async (output, context) => {
|
|
|
895
891
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
896
892
|
return de_CompleteVaultLockCommandError(output, context);
|
|
897
893
|
}
|
|
898
|
-
const contents = map({
|
|
894
|
+
const contents = (0, smithy_client_1.map)({
|
|
899
895
|
$metadata: deserializeMetadata(output),
|
|
900
896
|
});
|
|
901
897
|
await collectBody(output.body, context);
|
|
@@ -923,10 +919,9 @@ const de_CompleteVaultLockCommandError = async (output, context) => {
|
|
|
923
919
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
924
920
|
default:
|
|
925
921
|
const parsedBody = parsedOutput.body;
|
|
926
|
-
|
|
922
|
+
return throwDefaultError({
|
|
927
923
|
output,
|
|
928
924
|
parsedBody,
|
|
929
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
930
925
|
errorCode,
|
|
931
926
|
});
|
|
932
927
|
}
|
|
@@ -935,7 +930,7 @@ const de_CreateVaultCommand = async (output, context) => {
|
|
|
935
930
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
936
931
|
return de_CreateVaultCommandError(output, context);
|
|
937
932
|
}
|
|
938
|
-
const contents = map({
|
|
933
|
+
const contents = (0, smithy_client_1.map)({
|
|
939
934
|
$metadata: deserializeMetadata(output),
|
|
940
935
|
location: [, output.headers["location"]],
|
|
941
936
|
});
|
|
@@ -964,10 +959,9 @@ const de_CreateVaultCommandError = async (output, context) => {
|
|
|
964
959
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
965
960
|
default:
|
|
966
961
|
const parsedBody = parsedOutput.body;
|
|
967
|
-
|
|
962
|
+
return throwDefaultError({
|
|
968
963
|
output,
|
|
969
964
|
parsedBody,
|
|
970
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
971
965
|
errorCode,
|
|
972
966
|
});
|
|
973
967
|
}
|
|
@@ -976,7 +970,7 @@ const de_DeleteArchiveCommand = async (output, context) => {
|
|
|
976
970
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
977
971
|
return de_DeleteArchiveCommandError(output, context);
|
|
978
972
|
}
|
|
979
|
-
const contents = map({
|
|
973
|
+
const contents = (0, smithy_client_1.map)({
|
|
980
974
|
$metadata: deserializeMetadata(output),
|
|
981
975
|
});
|
|
982
976
|
await collectBody(output.body, context);
|
|
@@ -1004,10 +998,9 @@ const de_DeleteArchiveCommandError = async (output, context) => {
|
|
|
1004
998
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1005
999
|
default:
|
|
1006
1000
|
const parsedBody = parsedOutput.body;
|
|
1007
|
-
|
|
1001
|
+
return throwDefaultError({
|
|
1008
1002
|
output,
|
|
1009
1003
|
parsedBody,
|
|
1010
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1011
1004
|
errorCode,
|
|
1012
1005
|
});
|
|
1013
1006
|
}
|
|
@@ -1016,7 +1009,7 @@ const de_DeleteVaultCommand = async (output, context) => {
|
|
|
1016
1009
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1017
1010
|
return de_DeleteVaultCommandError(output, context);
|
|
1018
1011
|
}
|
|
1019
|
-
const contents = map({
|
|
1012
|
+
const contents = (0, smithy_client_1.map)({
|
|
1020
1013
|
$metadata: deserializeMetadata(output),
|
|
1021
1014
|
});
|
|
1022
1015
|
await collectBody(output.body, context);
|
|
@@ -1044,10 +1037,9 @@ const de_DeleteVaultCommandError = async (output, context) => {
|
|
|
1044
1037
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1045
1038
|
default:
|
|
1046
1039
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
|
|
1040
|
+
return throwDefaultError({
|
|
1048
1041
|
output,
|
|
1049
1042
|
parsedBody,
|
|
1050
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1051
1043
|
errorCode,
|
|
1052
1044
|
});
|
|
1053
1045
|
}
|
|
@@ -1056,7 +1048,7 @@ const de_DeleteVaultAccessPolicyCommand = async (output, context) => {
|
|
|
1056
1048
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1057
1049
|
return de_DeleteVaultAccessPolicyCommandError(output, context);
|
|
1058
1050
|
}
|
|
1059
|
-
const contents = map({
|
|
1051
|
+
const contents = (0, smithy_client_1.map)({
|
|
1060
1052
|
$metadata: deserializeMetadata(output),
|
|
1061
1053
|
});
|
|
1062
1054
|
await collectBody(output.body, context);
|
|
@@ -1084,10 +1076,9 @@ const de_DeleteVaultAccessPolicyCommandError = async (output, context) => {
|
|
|
1084
1076
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1085
1077
|
default:
|
|
1086
1078
|
const parsedBody = parsedOutput.body;
|
|
1087
|
-
|
|
1079
|
+
return throwDefaultError({
|
|
1088
1080
|
output,
|
|
1089
1081
|
parsedBody,
|
|
1090
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1091
1082
|
errorCode,
|
|
1092
1083
|
});
|
|
1093
1084
|
}
|
|
@@ -1096,7 +1087,7 @@ const de_DeleteVaultNotificationsCommand = async (output, context) => {
|
|
|
1096
1087
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1097
1088
|
return de_DeleteVaultNotificationsCommandError(output, context);
|
|
1098
1089
|
}
|
|
1099
|
-
const contents = map({
|
|
1090
|
+
const contents = (0, smithy_client_1.map)({
|
|
1100
1091
|
$metadata: deserializeMetadata(output),
|
|
1101
1092
|
});
|
|
1102
1093
|
await collectBody(output.body, context);
|
|
@@ -1124,10 +1115,9 @@ const de_DeleteVaultNotificationsCommandError = async (output, context) => {
|
|
|
1124
1115
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1125
1116
|
default:
|
|
1126
1117
|
const parsedBody = parsedOutput.body;
|
|
1127
|
-
|
|
1118
|
+
return throwDefaultError({
|
|
1128
1119
|
output,
|
|
1129
1120
|
parsedBody,
|
|
1130
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1131
1121
|
errorCode,
|
|
1132
1122
|
});
|
|
1133
1123
|
}
|
|
@@ -1136,73 +1126,34 @@ const de_DescribeJobCommand = async (output, context) => {
|
|
|
1136
1126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
1127
|
return de_DescribeJobCommandError(output, context);
|
|
1138
1128
|
}
|
|
1139
|
-
const contents = map({
|
|
1129
|
+
const contents = (0, smithy_client_1.map)({
|
|
1140
1130
|
$metadata: deserializeMetadata(output),
|
|
1141
1131
|
});
|
|
1142
1132
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
if (data.InventorySizeInBytes != null) {
|
|
1168
|
-
contents.InventorySizeInBytes = (0, smithy_client_1.expectLong)(data.InventorySizeInBytes);
|
|
1169
|
-
}
|
|
1170
|
-
if (data.JobDescription != null) {
|
|
1171
|
-
contents.JobDescription = (0, smithy_client_1.expectString)(data.JobDescription);
|
|
1172
|
-
}
|
|
1173
|
-
if (data.JobId != null) {
|
|
1174
|
-
contents.JobId = (0, smithy_client_1.expectString)(data.JobId);
|
|
1175
|
-
}
|
|
1176
|
-
if (data.JobOutputPath != null) {
|
|
1177
|
-
contents.JobOutputPath = (0, smithy_client_1.expectString)(data.JobOutputPath);
|
|
1178
|
-
}
|
|
1179
|
-
if (data.OutputLocation != null) {
|
|
1180
|
-
contents.OutputLocation = de_OutputLocation(data.OutputLocation, context);
|
|
1181
|
-
}
|
|
1182
|
-
if (data.RetrievalByteRange != null) {
|
|
1183
|
-
contents.RetrievalByteRange = (0, smithy_client_1.expectString)(data.RetrievalByteRange);
|
|
1184
|
-
}
|
|
1185
|
-
if (data.SHA256TreeHash != null) {
|
|
1186
|
-
contents.SHA256TreeHash = (0, smithy_client_1.expectString)(data.SHA256TreeHash);
|
|
1187
|
-
}
|
|
1188
|
-
if (data.SNSTopic != null) {
|
|
1189
|
-
contents.SNSTopic = (0, smithy_client_1.expectString)(data.SNSTopic);
|
|
1190
|
-
}
|
|
1191
|
-
if (data.SelectParameters != null) {
|
|
1192
|
-
contents.SelectParameters = de_SelectParameters(data.SelectParameters, context);
|
|
1193
|
-
}
|
|
1194
|
-
if (data.StatusCode != null) {
|
|
1195
|
-
contents.StatusCode = (0, smithy_client_1.expectString)(data.StatusCode);
|
|
1196
|
-
}
|
|
1197
|
-
if (data.StatusMessage != null) {
|
|
1198
|
-
contents.StatusMessage = (0, smithy_client_1.expectString)(data.StatusMessage);
|
|
1199
|
-
}
|
|
1200
|
-
if (data.Tier != null) {
|
|
1201
|
-
contents.Tier = (0, smithy_client_1.expectString)(data.Tier);
|
|
1202
|
-
}
|
|
1203
|
-
if (data.VaultARN != null) {
|
|
1204
|
-
contents.VaultARN = (0, smithy_client_1.expectString)(data.VaultARN);
|
|
1205
|
-
}
|
|
1133
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1134
|
+
Action: smithy_client_1.expectString,
|
|
1135
|
+
ArchiveId: smithy_client_1.expectString,
|
|
1136
|
+
ArchiveSHA256TreeHash: smithy_client_1.expectString,
|
|
1137
|
+
ArchiveSizeInBytes: smithy_client_1.expectLong,
|
|
1138
|
+
Completed: smithy_client_1.expectBoolean,
|
|
1139
|
+
CompletionDate: smithy_client_1.expectString,
|
|
1140
|
+
CreationDate: smithy_client_1.expectString,
|
|
1141
|
+
InventoryRetrievalParameters: smithy_client_1._json,
|
|
1142
|
+
InventorySizeInBytes: smithy_client_1.expectLong,
|
|
1143
|
+
JobDescription: smithy_client_1.expectString,
|
|
1144
|
+
JobId: smithy_client_1.expectString,
|
|
1145
|
+
JobOutputPath: smithy_client_1.expectString,
|
|
1146
|
+
OutputLocation: smithy_client_1._json,
|
|
1147
|
+
RetrievalByteRange: smithy_client_1.expectString,
|
|
1148
|
+
SHA256TreeHash: smithy_client_1.expectString,
|
|
1149
|
+
SNSTopic: smithy_client_1.expectString,
|
|
1150
|
+
SelectParameters: smithy_client_1._json,
|
|
1151
|
+
StatusCode: smithy_client_1.expectString,
|
|
1152
|
+
StatusMessage: smithy_client_1.expectString,
|
|
1153
|
+
Tier: smithy_client_1.expectString,
|
|
1154
|
+
VaultARN: smithy_client_1.expectString,
|
|
1155
|
+
});
|
|
1156
|
+
Object.assign(contents, doc);
|
|
1206
1157
|
return contents;
|
|
1207
1158
|
};
|
|
1208
1159
|
exports.de_DescribeJobCommand = de_DescribeJobCommand;
|
|
@@ -1227,10 +1178,9 @@ const de_DescribeJobCommandError = async (output, context) => {
|
|
|
1227
1178
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1228
1179
|
default:
|
|
1229
1180
|
const parsedBody = parsedOutput.body;
|
|
1230
|
-
|
|
1181
|
+
return throwDefaultError({
|
|
1231
1182
|
output,
|
|
1232
1183
|
parsedBody,
|
|
1233
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1234
1184
|
errorCode,
|
|
1235
1185
|
});
|
|
1236
1186
|
}
|
|
@@ -1239,28 +1189,19 @@ const de_DescribeVaultCommand = async (output, context) => {
|
|
|
1239
1189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1240
1190
|
return de_DescribeVaultCommandError(output, context);
|
|
1241
1191
|
}
|
|
1242
|
-
const contents = map({
|
|
1192
|
+
const contents = (0, smithy_client_1.map)({
|
|
1243
1193
|
$metadata: deserializeMetadata(output),
|
|
1244
1194
|
});
|
|
1245
1195
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
if (data.SizeInBytes != null) {
|
|
1256
|
-
contents.SizeInBytes = (0, smithy_client_1.expectLong)(data.SizeInBytes);
|
|
1257
|
-
}
|
|
1258
|
-
if (data.VaultARN != null) {
|
|
1259
|
-
contents.VaultARN = (0, smithy_client_1.expectString)(data.VaultARN);
|
|
1260
|
-
}
|
|
1261
|
-
if (data.VaultName != null) {
|
|
1262
|
-
contents.VaultName = (0, smithy_client_1.expectString)(data.VaultName);
|
|
1263
|
-
}
|
|
1196
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1197
|
+
CreationDate: smithy_client_1.expectString,
|
|
1198
|
+
LastInventoryDate: smithy_client_1.expectString,
|
|
1199
|
+
NumberOfArchives: smithy_client_1.expectLong,
|
|
1200
|
+
SizeInBytes: smithy_client_1.expectLong,
|
|
1201
|
+
VaultARN: smithy_client_1.expectString,
|
|
1202
|
+
VaultName: smithy_client_1.expectString,
|
|
1203
|
+
});
|
|
1204
|
+
Object.assign(contents, doc);
|
|
1264
1205
|
return contents;
|
|
1265
1206
|
};
|
|
1266
1207
|
exports.de_DescribeVaultCommand = de_DescribeVaultCommand;
|
|
@@ -1285,10 +1226,9 @@ const de_DescribeVaultCommandError = async (output, context) => {
|
|
|
1285
1226
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1286
1227
|
default:
|
|
1287
1228
|
const parsedBody = parsedOutput.body;
|
|
1288
|
-
|
|
1229
|
+
return throwDefaultError({
|
|
1289
1230
|
output,
|
|
1290
1231
|
parsedBody,
|
|
1291
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1292
1232
|
errorCode,
|
|
1293
1233
|
});
|
|
1294
1234
|
}
|
|
@@ -1297,13 +1237,14 @@ const de_GetDataRetrievalPolicyCommand = async (output, context) => {
|
|
|
1297
1237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
1238
|
return de_GetDataRetrievalPolicyCommandError(output, context);
|
|
1299
1239
|
}
|
|
1300
|
-
const contents = map({
|
|
1240
|
+
const contents = (0, smithy_client_1.map)({
|
|
1301
1241
|
$metadata: deserializeMetadata(output),
|
|
1302
1242
|
});
|
|
1303
1243
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
}
|
|
1244
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1245
|
+
Policy: smithy_client_1._json,
|
|
1246
|
+
});
|
|
1247
|
+
Object.assign(contents, doc);
|
|
1307
1248
|
return contents;
|
|
1308
1249
|
};
|
|
1309
1250
|
exports.de_GetDataRetrievalPolicyCommand = de_GetDataRetrievalPolicyCommand;
|
|
@@ -1325,10 +1266,9 @@ const de_GetDataRetrievalPolicyCommandError = async (output, context) => {
|
|
|
1325
1266
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1326
1267
|
default:
|
|
1327
1268
|
const parsedBody = parsedOutput.body;
|
|
1328
|
-
|
|
1269
|
+
return throwDefaultError({
|
|
1329
1270
|
output,
|
|
1330
1271
|
parsedBody,
|
|
1331
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1332
1272
|
errorCode,
|
|
1333
1273
|
});
|
|
1334
1274
|
}
|
|
@@ -1337,7 +1277,7 @@ const de_GetJobOutputCommand = async (output, context) => {
|
|
|
1337
1277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1338
1278
|
return de_GetJobOutputCommandError(output, context);
|
|
1339
1279
|
}
|
|
1340
|
-
const contents = map({
|
|
1280
|
+
const contents = (0, smithy_client_1.map)({
|
|
1341
1281
|
$metadata: deserializeMetadata(output),
|
|
1342
1282
|
checksum: [, output.headers["x-amz-sha256-tree-hash"]],
|
|
1343
1283
|
contentRange: [, output.headers["content-range"]],
|
|
@@ -1348,7 +1288,7 @@ const de_GetJobOutputCommand = async (output, context) => {
|
|
|
1348
1288
|
const data = output.body;
|
|
1349
1289
|
context.sdkStreamMixin(data);
|
|
1350
1290
|
contents.body = data;
|
|
1351
|
-
map(contents, {
|
|
1291
|
+
(0, smithy_client_1.map)(contents, {
|
|
1352
1292
|
status: [, output.statusCode],
|
|
1353
1293
|
});
|
|
1354
1294
|
return contents;
|
|
@@ -1375,10 +1315,9 @@ const de_GetJobOutputCommandError = async (output, context) => {
|
|
|
1375
1315
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1376
1316
|
default:
|
|
1377
1317
|
const parsedBody = parsedOutput.body;
|
|
1378
|
-
|
|
1318
|
+
return throwDefaultError({
|
|
1379
1319
|
output,
|
|
1380
1320
|
parsedBody,
|
|
1381
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1382
1321
|
errorCode,
|
|
1383
1322
|
});
|
|
1384
1323
|
}
|
|
@@ -1387,11 +1326,11 @@ const de_GetVaultAccessPolicyCommand = async (output, context) => {
|
|
|
1387
1326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1388
1327
|
return de_GetVaultAccessPolicyCommandError(output, context);
|
|
1389
1328
|
}
|
|
1390
|
-
const contents = map({
|
|
1329
|
+
const contents = (0, smithy_client_1.map)({
|
|
1391
1330
|
$metadata: deserializeMetadata(output),
|
|
1392
1331
|
});
|
|
1393
1332
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1394
|
-
contents.policy =
|
|
1333
|
+
contents.policy = (0, smithy_client_1._json)(data);
|
|
1395
1334
|
return contents;
|
|
1396
1335
|
};
|
|
1397
1336
|
exports.de_GetVaultAccessPolicyCommand = de_GetVaultAccessPolicyCommand;
|
|
@@ -1416,10 +1355,9 @@ const de_GetVaultAccessPolicyCommandError = async (output, context) => {
|
|
|
1416
1355
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1417
1356
|
default:
|
|
1418
1357
|
const parsedBody = parsedOutput.body;
|
|
1419
|
-
|
|
1358
|
+
return throwDefaultError({
|
|
1420
1359
|
output,
|
|
1421
1360
|
parsedBody,
|
|
1422
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1423
1361
|
errorCode,
|
|
1424
1362
|
});
|
|
1425
1363
|
}
|
|
@@ -1428,22 +1366,17 @@ const de_GetVaultLockCommand = async (output, context) => {
|
|
|
1428
1366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
1367
|
return de_GetVaultLockCommandError(output, context);
|
|
1430
1368
|
}
|
|
1431
|
-
const contents = map({
|
|
1369
|
+
const contents = (0, smithy_client_1.map)({
|
|
1432
1370
|
$metadata: deserializeMetadata(output),
|
|
1433
1371
|
});
|
|
1434
1372
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
contents.Policy = (0, smithy_client_1.expectString)(data.Policy);
|
|
1443
|
-
}
|
|
1444
|
-
if (data.State != null) {
|
|
1445
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1446
|
-
}
|
|
1373
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1374
|
+
CreationDate: smithy_client_1.expectString,
|
|
1375
|
+
ExpirationDate: smithy_client_1.expectString,
|
|
1376
|
+
Policy: smithy_client_1.expectString,
|
|
1377
|
+
State: smithy_client_1.expectString,
|
|
1378
|
+
});
|
|
1379
|
+
Object.assign(contents, doc);
|
|
1447
1380
|
return contents;
|
|
1448
1381
|
};
|
|
1449
1382
|
exports.de_GetVaultLockCommand = de_GetVaultLockCommand;
|
|
@@ -1468,10 +1401,9 @@ const de_GetVaultLockCommandError = async (output, context) => {
|
|
|
1468
1401
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1469
1402
|
default:
|
|
1470
1403
|
const parsedBody = parsedOutput.body;
|
|
1471
|
-
|
|
1404
|
+
return throwDefaultError({
|
|
1472
1405
|
output,
|
|
1473
1406
|
parsedBody,
|
|
1474
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1475
1407
|
errorCode,
|
|
1476
1408
|
});
|
|
1477
1409
|
}
|
|
@@ -1480,11 +1412,11 @@ const de_GetVaultNotificationsCommand = async (output, context) => {
|
|
|
1480
1412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
1413
|
return de_GetVaultNotificationsCommandError(output, context);
|
|
1482
1414
|
}
|
|
1483
|
-
const contents = map({
|
|
1415
|
+
const contents = (0, smithy_client_1.map)({
|
|
1484
1416
|
$metadata: deserializeMetadata(output),
|
|
1485
1417
|
});
|
|
1486
1418
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1487
|
-
contents.vaultNotificationConfig =
|
|
1419
|
+
contents.vaultNotificationConfig = (0, smithy_client_1._json)(data);
|
|
1488
1420
|
return contents;
|
|
1489
1421
|
};
|
|
1490
1422
|
exports.de_GetVaultNotificationsCommand = de_GetVaultNotificationsCommand;
|
|
@@ -1509,10 +1441,9 @@ const de_GetVaultNotificationsCommandError = async (output, context) => {
|
|
|
1509
1441
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1510
1442
|
default:
|
|
1511
1443
|
const parsedBody = parsedOutput.body;
|
|
1512
|
-
|
|
1444
|
+
return throwDefaultError({
|
|
1513
1445
|
output,
|
|
1514
1446
|
parsedBody,
|
|
1515
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1516
1447
|
errorCode,
|
|
1517
1448
|
});
|
|
1518
1449
|
}
|
|
@@ -1521,7 +1452,7 @@ const de_InitiateJobCommand = async (output, context) => {
|
|
|
1521
1452
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1522
1453
|
return de_InitiateJobCommandError(output, context);
|
|
1523
1454
|
}
|
|
1524
|
-
const contents = map({
|
|
1455
|
+
const contents = (0, smithy_client_1.map)({
|
|
1525
1456
|
$metadata: deserializeMetadata(output),
|
|
1526
1457
|
location: [, output.headers["location"]],
|
|
1527
1458
|
jobId: [, output.headers["x-amz-job-id"]],
|
|
@@ -1558,10 +1489,9 @@ const de_InitiateJobCommandError = async (output, context) => {
|
|
|
1558
1489
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1559
1490
|
default:
|
|
1560
1491
|
const parsedBody = parsedOutput.body;
|
|
1561
|
-
|
|
1492
|
+
return throwDefaultError({
|
|
1562
1493
|
output,
|
|
1563
1494
|
parsedBody,
|
|
1564
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1565
1495
|
errorCode,
|
|
1566
1496
|
});
|
|
1567
1497
|
}
|
|
@@ -1570,7 +1500,7 @@ const de_InitiateMultipartUploadCommand = async (output, context) => {
|
|
|
1570
1500
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1571
1501
|
return de_InitiateMultipartUploadCommandError(output, context);
|
|
1572
1502
|
}
|
|
1573
|
-
const contents = map({
|
|
1503
|
+
const contents = (0, smithy_client_1.map)({
|
|
1574
1504
|
$metadata: deserializeMetadata(output),
|
|
1575
1505
|
location: [, output.headers["location"]],
|
|
1576
1506
|
uploadId: [, output.headers["x-amz-multipart-upload-id"]],
|
|
@@ -1600,10 +1530,9 @@ const de_InitiateMultipartUploadCommandError = async (output, context) => {
|
|
|
1600
1530
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1601
1531
|
default:
|
|
1602
1532
|
const parsedBody = parsedOutput.body;
|
|
1603
|
-
|
|
1533
|
+
return throwDefaultError({
|
|
1604
1534
|
output,
|
|
1605
1535
|
parsedBody,
|
|
1606
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1607
1536
|
errorCode,
|
|
1608
1537
|
});
|
|
1609
1538
|
}
|
|
@@ -1612,7 +1541,7 @@ const de_InitiateVaultLockCommand = async (output, context) => {
|
|
|
1612
1541
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1613
1542
|
return de_InitiateVaultLockCommandError(output, context);
|
|
1614
1543
|
}
|
|
1615
|
-
const contents = map({
|
|
1544
|
+
const contents = (0, smithy_client_1.map)({
|
|
1616
1545
|
$metadata: deserializeMetadata(output),
|
|
1617
1546
|
lockId: [, output.headers["x-amz-lock-id"]],
|
|
1618
1547
|
});
|
|
@@ -1641,10 +1570,9 @@ const de_InitiateVaultLockCommandError = async (output, context) => {
|
|
|
1641
1570
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1642
1571
|
default:
|
|
1643
1572
|
const parsedBody = parsedOutput.body;
|
|
1644
|
-
|
|
1573
|
+
return throwDefaultError({
|
|
1645
1574
|
output,
|
|
1646
1575
|
parsedBody,
|
|
1647
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1648
1576
|
errorCode,
|
|
1649
1577
|
});
|
|
1650
1578
|
}
|
|
@@ -1653,16 +1581,15 @@ const de_ListJobsCommand = async (output, context) => {
|
|
|
1653
1581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1654
1582
|
return de_ListJobsCommandError(output, context);
|
|
1655
1583
|
}
|
|
1656
|
-
const contents = map({
|
|
1584
|
+
const contents = (0, smithy_client_1.map)({
|
|
1657
1585
|
$metadata: deserializeMetadata(output),
|
|
1658
1586
|
});
|
|
1659
1587
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
}
|
|
1588
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1589
|
+
JobList: smithy_client_1._json,
|
|
1590
|
+
Marker: smithy_client_1.expectString,
|
|
1591
|
+
});
|
|
1592
|
+
Object.assign(contents, doc);
|
|
1666
1593
|
return contents;
|
|
1667
1594
|
};
|
|
1668
1595
|
exports.de_ListJobsCommand = de_ListJobsCommand;
|
|
@@ -1687,10 +1614,9 @@ const de_ListJobsCommandError = async (output, context) => {
|
|
|
1687
1614
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1688
1615
|
default:
|
|
1689
1616
|
const parsedBody = parsedOutput.body;
|
|
1690
|
-
|
|
1617
|
+
return throwDefaultError({
|
|
1691
1618
|
output,
|
|
1692
1619
|
parsedBody,
|
|
1693
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1694
1620
|
errorCode,
|
|
1695
1621
|
});
|
|
1696
1622
|
}
|
|
@@ -1699,16 +1625,15 @@ const de_ListMultipartUploadsCommand = async (output, context) => {
|
|
|
1699
1625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1700
1626
|
return de_ListMultipartUploadsCommandError(output, context);
|
|
1701
1627
|
}
|
|
1702
|
-
const contents = map({
|
|
1628
|
+
const contents = (0, smithy_client_1.map)({
|
|
1703
1629
|
$metadata: deserializeMetadata(output),
|
|
1704
1630
|
});
|
|
1705
1631
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
}
|
|
1632
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1633
|
+
Marker: smithy_client_1.expectString,
|
|
1634
|
+
UploadsList: smithy_client_1._json,
|
|
1635
|
+
});
|
|
1636
|
+
Object.assign(contents, doc);
|
|
1712
1637
|
return contents;
|
|
1713
1638
|
};
|
|
1714
1639
|
exports.de_ListMultipartUploadsCommand = de_ListMultipartUploadsCommand;
|
|
@@ -1733,10 +1658,9 @@ const de_ListMultipartUploadsCommandError = async (output, context) => {
|
|
|
1733
1658
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1734
1659
|
default:
|
|
1735
1660
|
const parsedBody = parsedOutput.body;
|
|
1736
|
-
|
|
1661
|
+
return throwDefaultError({
|
|
1737
1662
|
output,
|
|
1738
1663
|
parsedBody,
|
|
1739
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1740
1664
|
errorCode,
|
|
1741
1665
|
});
|
|
1742
1666
|
}
|
|
@@ -1745,31 +1669,20 @@ const de_ListPartsCommand = async (output, context) => {
|
|
|
1745
1669
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1746
1670
|
return de_ListPartsCommandError(output, context);
|
|
1747
1671
|
}
|
|
1748
|
-
const contents = map({
|
|
1672
|
+
const contents = (0, smithy_client_1.map)({
|
|
1749
1673
|
$metadata: deserializeMetadata(output),
|
|
1750
1674
|
});
|
|
1751
1675
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
contents.MultipartUploadId = (0, smithy_client_1.expectString)(data.MultipartUploadId);
|
|
1763
|
-
}
|
|
1764
|
-
if (data.PartSizeInBytes != null) {
|
|
1765
|
-
contents.PartSizeInBytes = (0, smithy_client_1.expectLong)(data.PartSizeInBytes);
|
|
1766
|
-
}
|
|
1767
|
-
if (data.Parts != null) {
|
|
1768
|
-
contents.Parts = de_PartList(data.Parts, context);
|
|
1769
|
-
}
|
|
1770
|
-
if (data.VaultARN != null) {
|
|
1771
|
-
contents.VaultARN = (0, smithy_client_1.expectString)(data.VaultARN);
|
|
1772
|
-
}
|
|
1676
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1677
|
+
ArchiveDescription: smithy_client_1.expectString,
|
|
1678
|
+
CreationDate: smithy_client_1.expectString,
|
|
1679
|
+
Marker: smithy_client_1.expectString,
|
|
1680
|
+
MultipartUploadId: smithy_client_1.expectString,
|
|
1681
|
+
PartSizeInBytes: smithy_client_1.expectLong,
|
|
1682
|
+
Parts: smithy_client_1._json,
|
|
1683
|
+
VaultARN: smithy_client_1.expectString,
|
|
1684
|
+
});
|
|
1685
|
+
Object.assign(contents, doc);
|
|
1773
1686
|
return contents;
|
|
1774
1687
|
};
|
|
1775
1688
|
exports.de_ListPartsCommand = de_ListPartsCommand;
|
|
@@ -1794,10 +1707,9 @@ const de_ListPartsCommandError = async (output, context) => {
|
|
|
1794
1707
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1795
1708
|
default:
|
|
1796
1709
|
const parsedBody = parsedOutput.body;
|
|
1797
|
-
|
|
1710
|
+
return throwDefaultError({
|
|
1798
1711
|
output,
|
|
1799
1712
|
parsedBody,
|
|
1800
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1801
1713
|
errorCode,
|
|
1802
1714
|
});
|
|
1803
1715
|
}
|
|
@@ -1806,13 +1718,14 @@ const de_ListProvisionedCapacityCommand = async (output, context) => {
|
|
|
1806
1718
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
1719
|
return de_ListProvisionedCapacityCommandError(output, context);
|
|
1808
1720
|
}
|
|
1809
|
-
const contents = map({
|
|
1721
|
+
const contents = (0, smithy_client_1.map)({
|
|
1810
1722
|
$metadata: deserializeMetadata(output),
|
|
1811
1723
|
});
|
|
1812
1724
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
}
|
|
1725
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1726
|
+
ProvisionedCapacityList: smithy_client_1._json,
|
|
1727
|
+
});
|
|
1728
|
+
Object.assign(contents, doc);
|
|
1816
1729
|
return contents;
|
|
1817
1730
|
};
|
|
1818
1731
|
exports.de_ListProvisionedCapacityCommand = de_ListProvisionedCapacityCommand;
|
|
@@ -1834,10 +1747,9 @@ const de_ListProvisionedCapacityCommandError = async (output, context) => {
|
|
|
1834
1747
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1835
1748
|
default:
|
|
1836
1749
|
const parsedBody = parsedOutput.body;
|
|
1837
|
-
|
|
1750
|
+
return throwDefaultError({
|
|
1838
1751
|
output,
|
|
1839
1752
|
parsedBody,
|
|
1840
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1841
1753
|
errorCode,
|
|
1842
1754
|
});
|
|
1843
1755
|
}
|
|
@@ -1846,13 +1758,14 @@ const de_ListTagsForVaultCommand = async (output, context) => {
|
|
|
1846
1758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1847
1759
|
return de_ListTagsForVaultCommandError(output, context);
|
|
1848
1760
|
}
|
|
1849
|
-
const contents = map({
|
|
1761
|
+
const contents = (0, smithy_client_1.map)({
|
|
1850
1762
|
$metadata: deserializeMetadata(output),
|
|
1851
1763
|
});
|
|
1852
1764
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
}
|
|
1765
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1766
|
+
Tags: smithy_client_1._json,
|
|
1767
|
+
});
|
|
1768
|
+
Object.assign(contents, doc);
|
|
1856
1769
|
return contents;
|
|
1857
1770
|
};
|
|
1858
1771
|
exports.de_ListTagsForVaultCommand = de_ListTagsForVaultCommand;
|
|
@@ -1877,10 +1790,9 @@ const de_ListTagsForVaultCommandError = async (output, context) => {
|
|
|
1877
1790
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1878
1791
|
default:
|
|
1879
1792
|
const parsedBody = parsedOutput.body;
|
|
1880
|
-
|
|
1793
|
+
return throwDefaultError({
|
|
1881
1794
|
output,
|
|
1882
1795
|
parsedBody,
|
|
1883
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1884
1796
|
errorCode,
|
|
1885
1797
|
});
|
|
1886
1798
|
}
|
|
@@ -1889,16 +1801,15 @@ const de_ListVaultsCommand = async (output, context) => {
|
|
|
1889
1801
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1890
1802
|
return de_ListVaultsCommandError(output, context);
|
|
1891
1803
|
}
|
|
1892
|
-
const contents = map({
|
|
1804
|
+
const contents = (0, smithy_client_1.map)({
|
|
1893
1805
|
$metadata: deserializeMetadata(output),
|
|
1894
1806
|
});
|
|
1895
1807
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
}
|
|
1808
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1809
|
+
Marker: smithy_client_1.expectString,
|
|
1810
|
+
VaultList: smithy_client_1._json,
|
|
1811
|
+
});
|
|
1812
|
+
Object.assign(contents, doc);
|
|
1902
1813
|
return contents;
|
|
1903
1814
|
};
|
|
1904
1815
|
exports.de_ListVaultsCommand = de_ListVaultsCommand;
|
|
@@ -1923,10 +1834,9 @@ const de_ListVaultsCommandError = async (output, context) => {
|
|
|
1923
1834
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1924
1835
|
default:
|
|
1925
1836
|
const parsedBody = parsedOutput.body;
|
|
1926
|
-
|
|
1837
|
+
return throwDefaultError({
|
|
1927
1838
|
output,
|
|
1928
1839
|
parsedBody,
|
|
1929
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1930
1840
|
errorCode,
|
|
1931
1841
|
});
|
|
1932
1842
|
}
|
|
@@ -1935,7 +1845,7 @@ const de_PurchaseProvisionedCapacityCommand = async (output, context) => {
|
|
|
1935
1845
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1936
1846
|
return de_PurchaseProvisionedCapacityCommandError(output, context);
|
|
1937
1847
|
}
|
|
1938
|
-
const contents = map({
|
|
1848
|
+
const contents = (0, smithy_client_1.map)({
|
|
1939
1849
|
$metadata: deserializeMetadata(output),
|
|
1940
1850
|
capacityId: [, output.headers["x-amz-capacity-id"]],
|
|
1941
1851
|
});
|
|
@@ -1964,10 +1874,9 @@ const de_PurchaseProvisionedCapacityCommandError = async (output, context) => {
|
|
|
1964
1874
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1965
1875
|
default:
|
|
1966
1876
|
const parsedBody = parsedOutput.body;
|
|
1967
|
-
|
|
1877
|
+
return throwDefaultError({
|
|
1968
1878
|
output,
|
|
1969
1879
|
parsedBody,
|
|
1970
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
1971
1880
|
errorCode,
|
|
1972
1881
|
});
|
|
1973
1882
|
}
|
|
@@ -1976,7 +1885,7 @@ const de_RemoveTagsFromVaultCommand = async (output, context) => {
|
|
|
1976
1885
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1977
1886
|
return de_RemoveTagsFromVaultCommandError(output, context);
|
|
1978
1887
|
}
|
|
1979
|
-
const contents = map({
|
|
1888
|
+
const contents = (0, smithy_client_1.map)({
|
|
1980
1889
|
$metadata: deserializeMetadata(output),
|
|
1981
1890
|
});
|
|
1982
1891
|
await collectBody(output.body, context);
|
|
@@ -2004,10 +1913,9 @@ const de_RemoveTagsFromVaultCommandError = async (output, context) => {
|
|
|
2004
1913
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2005
1914
|
default:
|
|
2006
1915
|
const parsedBody = parsedOutput.body;
|
|
2007
|
-
|
|
1916
|
+
return throwDefaultError({
|
|
2008
1917
|
output,
|
|
2009
1918
|
parsedBody,
|
|
2010
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
2011
1919
|
errorCode,
|
|
2012
1920
|
});
|
|
2013
1921
|
}
|
|
@@ -2016,7 +1924,7 @@ const de_SetDataRetrievalPolicyCommand = async (output, context) => {
|
|
|
2016
1924
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2017
1925
|
return de_SetDataRetrievalPolicyCommandError(output, context);
|
|
2018
1926
|
}
|
|
2019
|
-
const contents = map({
|
|
1927
|
+
const contents = (0, smithy_client_1.map)({
|
|
2020
1928
|
$metadata: deserializeMetadata(output),
|
|
2021
1929
|
});
|
|
2022
1930
|
await collectBody(output.body, context);
|
|
@@ -2041,10 +1949,9 @@ const de_SetDataRetrievalPolicyCommandError = async (output, context) => {
|
|
|
2041
1949
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2042
1950
|
default:
|
|
2043
1951
|
const parsedBody = parsedOutput.body;
|
|
2044
|
-
|
|
1952
|
+
return throwDefaultError({
|
|
2045
1953
|
output,
|
|
2046
1954
|
parsedBody,
|
|
2047
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
2048
1955
|
errorCode,
|
|
2049
1956
|
});
|
|
2050
1957
|
}
|
|
@@ -2053,7 +1960,7 @@ const de_SetVaultAccessPolicyCommand = async (output, context) => {
|
|
|
2053
1960
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2054
1961
|
return de_SetVaultAccessPolicyCommandError(output, context);
|
|
2055
1962
|
}
|
|
2056
|
-
const contents = map({
|
|
1963
|
+
const contents = (0, smithy_client_1.map)({
|
|
2057
1964
|
$metadata: deserializeMetadata(output),
|
|
2058
1965
|
});
|
|
2059
1966
|
await collectBody(output.body, context);
|
|
@@ -2081,10 +1988,9 @@ const de_SetVaultAccessPolicyCommandError = async (output, context) => {
|
|
|
2081
1988
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2082
1989
|
default:
|
|
2083
1990
|
const parsedBody = parsedOutput.body;
|
|
2084
|
-
|
|
1991
|
+
return throwDefaultError({
|
|
2085
1992
|
output,
|
|
2086
1993
|
parsedBody,
|
|
2087
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
2088
1994
|
errorCode,
|
|
2089
1995
|
});
|
|
2090
1996
|
}
|
|
@@ -2093,7 +1999,7 @@ const de_SetVaultNotificationsCommand = async (output, context) => {
|
|
|
2093
1999
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2094
2000
|
return de_SetVaultNotificationsCommandError(output, context);
|
|
2095
2001
|
}
|
|
2096
|
-
const contents = map({
|
|
2002
|
+
const contents = (0, smithy_client_1.map)({
|
|
2097
2003
|
$metadata: deserializeMetadata(output),
|
|
2098
2004
|
});
|
|
2099
2005
|
await collectBody(output.body, context);
|
|
@@ -2121,10 +2027,9 @@ const de_SetVaultNotificationsCommandError = async (output, context) => {
|
|
|
2121
2027
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2122
2028
|
default:
|
|
2123
2029
|
const parsedBody = parsedOutput.body;
|
|
2124
|
-
|
|
2030
|
+
return throwDefaultError({
|
|
2125
2031
|
output,
|
|
2126
2032
|
parsedBody,
|
|
2127
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
2128
2033
|
errorCode,
|
|
2129
2034
|
});
|
|
2130
2035
|
}
|
|
@@ -2133,7 +2038,7 @@ const de_UploadArchiveCommand = async (output, context) => {
|
|
|
2133
2038
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2134
2039
|
return de_UploadArchiveCommandError(output, context);
|
|
2135
2040
|
}
|
|
2136
|
-
const contents = map({
|
|
2041
|
+
const contents = (0, smithy_client_1.map)({
|
|
2137
2042
|
$metadata: deserializeMetadata(output),
|
|
2138
2043
|
location: [, output.headers["location"]],
|
|
2139
2044
|
checksum: [, output.headers["x-amz-sha256-tree-hash"]],
|
|
@@ -2167,10 +2072,9 @@ const de_UploadArchiveCommandError = async (output, context) => {
|
|
|
2167
2072
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2168
2073
|
default:
|
|
2169
2074
|
const parsedBody = parsedOutput.body;
|
|
2170
|
-
|
|
2075
|
+
return throwDefaultError({
|
|
2171
2076
|
output,
|
|
2172
2077
|
parsedBody,
|
|
2173
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
2174
2078
|
errorCode,
|
|
2175
2079
|
});
|
|
2176
2080
|
}
|
|
@@ -2179,7 +2083,7 @@ const de_UploadMultipartPartCommand = async (output, context) => {
|
|
|
2179
2083
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2180
2084
|
return de_UploadMultipartPartCommandError(output, context);
|
|
2181
2085
|
}
|
|
2182
|
-
const contents = map({
|
|
2086
|
+
const contents = (0, smithy_client_1.map)({
|
|
2183
2087
|
$metadata: deserializeMetadata(output),
|
|
2184
2088
|
checksum: [, output.headers["x-amz-sha256-tree-hash"]],
|
|
2185
2089
|
});
|
|
@@ -2211,27 +2115,23 @@ const de_UploadMultipartPartCommandError = async (output, context) => {
|
|
|
2211
2115
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2212
2116
|
default:
|
|
2213
2117
|
const parsedBody = parsedOutput.body;
|
|
2214
|
-
|
|
2118
|
+
return throwDefaultError({
|
|
2215
2119
|
output,
|
|
2216
2120
|
parsedBody,
|
|
2217
|
-
exceptionCtor: GlacierServiceException_1.GlacierServiceException,
|
|
2218
2121
|
errorCode,
|
|
2219
2122
|
});
|
|
2220
2123
|
}
|
|
2221
2124
|
};
|
|
2222
|
-
const
|
|
2125
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(GlacierServiceException_1.GlacierServiceException);
|
|
2223
2126
|
const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
2224
|
-
const contents = map({});
|
|
2127
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2225
2128
|
const data = parsedOutput.body;
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
if (data.type != null) {
|
|
2233
|
-
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
2234
|
-
}
|
|
2129
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2130
|
+
code: smithy_client_1.expectString,
|
|
2131
|
+
message: smithy_client_1.expectString,
|
|
2132
|
+
type: smithy_client_1.expectString,
|
|
2133
|
+
});
|
|
2134
|
+
Object.assign(contents, doc);
|
|
2235
2135
|
const exception = new models_0_1.InsufficientCapacityException({
|
|
2236
2136
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2237
2137
|
...contents,
|
|
@@ -2239,17 +2139,14 @@ const de_InsufficientCapacityExceptionRes = async (parsedOutput, context) => {
|
|
|
2239
2139
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2240
2140
|
};
|
|
2241
2141
|
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2242
|
-
const contents = map({});
|
|
2142
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2243
2143
|
const data = parsedOutput.body;
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
if (data.type != null) {
|
|
2251
|
-
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
2252
|
-
}
|
|
2144
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2145
|
+
code: smithy_client_1.expectString,
|
|
2146
|
+
message: smithy_client_1.expectString,
|
|
2147
|
+
type: smithy_client_1.expectString,
|
|
2148
|
+
});
|
|
2149
|
+
Object.assign(contents, doc);
|
|
2253
2150
|
const exception = new models_0_1.InvalidParameterValueException({
|
|
2254
2151
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2255
2152
|
...contents,
|
|
@@ -2257,17 +2154,14 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
|
2257
2154
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2258
2155
|
};
|
|
2259
2156
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2260
|
-
const contents = map({});
|
|
2157
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2261
2158
|
const data = parsedOutput.body;
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
if (data.type != null) {
|
|
2269
|
-
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
2270
|
-
}
|
|
2159
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2160
|
+
code: smithy_client_1.expectString,
|
|
2161
|
+
message: smithy_client_1.expectString,
|
|
2162
|
+
type: smithy_client_1.expectString,
|
|
2163
|
+
});
|
|
2164
|
+
Object.assign(contents, doc);
|
|
2271
2165
|
const exception = new models_0_1.LimitExceededException({
|
|
2272
2166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2273
2167
|
...contents,
|
|
@@ -2275,17 +2169,14 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2275
2169
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2276
2170
|
};
|
|
2277
2171
|
const de_MissingParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2278
|
-
const contents = map({});
|
|
2172
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2279
2173
|
const data = parsedOutput.body;
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
if (data.type != null) {
|
|
2287
|
-
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
2288
|
-
}
|
|
2174
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2175
|
+
code: smithy_client_1.expectString,
|
|
2176
|
+
message: smithy_client_1.expectString,
|
|
2177
|
+
type: smithy_client_1.expectString,
|
|
2178
|
+
});
|
|
2179
|
+
Object.assign(contents, doc);
|
|
2289
2180
|
const exception = new models_0_1.MissingParameterValueException({
|
|
2290
2181
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2291
2182
|
...contents,
|
|
@@ -2293,17 +2184,14 @@ const de_MissingParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
|
2293
2184
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2294
2185
|
};
|
|
2295
2186
|
const de_PolicyEnforcedExceptionRes = async (parsedOutput, context) => {
|
|
2296
|
-
const contents = map({});
|
|
2187
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2297
2188
|
const data = parsedOutput.body;
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
if (data.type != null) {
|
|
2305
|
-
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
2306
|
-
}
|
|
2189
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2190
|
+
code: smithy_client_1.expectString,
|
|
2191
|
+
message: smithy_client_1.expectString,
|
|
2192
|
+
type: smithy_client_1.expectString,
|
|
2193
|
+
});
|
|
2194
|
+
Object.assign(contents, doc);
|
|
2307
2195
|
const exception = new models_0_1.PolicyEnforcedException({
|
|
2308
2196
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2309
2197
|
...contents,
|
|
@@ -2311,17 +2199,14 @@ const de_PolicyEnforcedExceptionRes = async (parsedOutput, context) => {
|
|
|
2311
2199
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2312
2200
|
};
|
|
2313
2201
|
const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2314
|
-
const contents = map({});
|
|
2202
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2315
2203
|
const data = parsedOutput.body;
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
if (data.type != null) {
|
|
2323
|
-
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
2324
|
-
}
|
|
2204
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2205
|
+
code: smithy_client_1.expectString,
|
|
2206
|
+
message: smithy_client_1.expectString,
|
|
2207
|
+
type: smithy_client_1.expectString,
|
|
2208
|
+
});
|
|
2209
|
+
Object.assign(contents, doc);
|
|
2325
2210
|
const exception = new models_0_1.RequestTimeoutException({
|
|
2326
2211
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2327
2212
|
...contents,
|
|
@@ -2329,17 +2214,14 @@ const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
2329
2214
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2330
2215
|
};
|
|
2331
2216
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2332
|
-
const contents = map({});
|
|
2217
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2333
2218
|
const data = parsedOutput.body;
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
if (data.type != null) {
|
|
2341
|
-
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
2342
|
-
}
|
|
2219
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2220
|
+
code: smithy_client_1.expectString,
|
|
2221
|
+
message: smithy_client_1.expectString,
|
|
2222
|
+
type: smithy_client_1.expectString,
|
|
2223
|
+
});
|
|
2224
|
+
Object.assign(contents, doc);
|
|
2343
2225
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2344
2226
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2345
2227
|
...contents,
|
|
@@ -2347,474 +2229,20 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2347
2229
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2348
2230
|
};
|
|
2349
2231
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2350
|
-
const contents = map({});
|
|
2232
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2351
2233
|
const data = parsedOutput.body;
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
if (data.type != null) {
|
|
2359
|
-
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
2360
|
-
}
|
|
2234
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2235
|
+
code: smithy_client_1.expectString,
|
|
2236
|
+
message: smithy_client_1.expectString,
|
|
2237
|
+
type: smithy_client_1.expectString,
|
|
2238
|
+
});
|
|
2239
|
+
Object.assign(contents, doc);
|
|
2361
2240
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
2362
2241
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2363
2242
|
...contents,
|
|
2364
2243
|
});
|
|
2365
2244
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2366
2245
|
};
|
|
2367
|
-
const se_AccessControlPolicyList = (input, context) => {
|
|
2368
|
-
return input
|
|
2369
|
-
.filter((e) => e != null)
|
|
2370
|
-
.map((entry) => {
|
|
2371
|
-
return se_Grant(entry, context);
|
|
2372
|
-
});
|
|
2373
|
-
};
|
|
2374
|
-
const se_CSVInput = (input, context) => {
|
|
2375
|
-
return {
|
|
2376
|
-
...(input.Comments != null && { Comments: input.Comments }),
|
|
2377
|
-
...(input.FieldDelimiter != null && { FieldDelimiter: input.FieldDelimiter }),
|
|
2378
|
-
...(input.FileHeaderInfo != null && { FileHeaderInfo: input.FileHeaderInfo }),
|
|
2379
|
-
...(input.QuoteCharacter != null && { QuoteCharacter: input.QuoteCharacter }),
|
|
2380
|
-
...(input.QuoteEscapeCharacter != null && { QuoteEscapeCharacter: input.QuoteEscapeCharacter }),
|
|
2381
|
-
...(input.RecordDelimiter != null && { RecordDelimiter: input.RecordDelimiter }),
|
|
2382
|
-
};
|
|
2383
|
-
};
|
|
2384
|
-
const se_CSVOutput = (input, context) => {
|
|
2385
|
-
return {
|
|
2386
|
-
...(input.FieldDelimiter != null && { FieldDelimiter: input.FieldDelimiter }),
|
|
2387
|
-
...(input.QuoteCharacter != null && { QuoteCharacter: input.QuoteCharacter }),
|
|
2388
|
-
...(input.QuoteEscapeCharacter != null && { QuoteEscapeCharacter: input.QuoteEscapeCharacter }),
|
|
2389
|
-
...(input.QuoteFields != null && { QuoteFields: input.QuoteFields }),
|
|
2390
|
-
...(input.RecordDelimiter != null && { RecordDelimiter: input.RecordDelimiter }),
|
|
2391
|
-
};
|
|
2392
|
-
};
|
|
2393
|
-
const se_DataRetrievalPolicy = (input, context) => {
|
|
2394
|
-
return {
|
|
2395
|
-
...(input.Rules != null && { Rules: se_DataRetrievalRulesList(input.Rules, context) }),
|
|
2396
|
-
};
|
|
2397
|
-
};
|
|
2398
|
-
const se_DataRetrievalRule = (input, context) => {
|
|
2399
|
-
return {
|
|
2400
|
-
...(input.BytesPerHour != null && { BytesPerHour: input.BytesPerHour }),
|
|
2401
|
-
...(input.Strategy != null && { Strategy: input.Strategy }),
|
|
2402
|
-
};
|
|
2403
|
-
};
|
|
2404
|
-
const se_DataRetrievalRulesList = (input, context) => {
|
|
2405
|
-
return input
|
|
2406
|
-
.filter((e) => e != null)
|
|
2407
|
-
.map((entry) => {
|
|
2408
|
-
return se_DataRetrievalRule(entry, context);
|
|
2409
|
-
});
|
|
2410
|
-
};
|
|
2411
|
-
const se_Encryption = (input, context) => {
|
|
2412
|
-
return {
|
|
2413
|
-
...(input.EncryptionType != null && { EncryptionType: input.EncryptionType }),
|
|
2414
|
-
...(input.KMSContext != null && { KMSContext: input.KMSContext }),
|
|
2415
|
-
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
2416
|
-
};
|
|
2417
|
-
};
|
|
2418
|
-
const se_Grant = (input, context) => {
|
|
2419
|
-
return {
|
|
2420
|
-
...(input.Grantee != null && { Grantee: se_Grantee(input.Grantee, context) }),
|
|
2421
|
-
...(input.Permission != null && { Permission: input.Permission }),
|
|
2422
|
-
};
|
|
2423
|
-
};
|
|
2424
|
-
const se_Grantee = (input, context) => {
|
|
2425
|
-
return {
|
|
2426
|
-
...(input.DisplayName != null && { DisplayName: input.DisplayName }),
|
|
2427
|
-
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
2428
|
-
...(input.ID != null && { ID: input.ID }),
|
|
2429
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2430
|
-
...(input.URI != null && { URI: input.URI }),
|
|
2431
|
-
};
|
|
2432
|
-
};
|
|
2433
|
-
const se_hashmap = (input, context) => {
|
|
2434
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2435
|
-
if (value === null) {
|
|
2436
|
-
return acc;
|
|
2437
|
-
}
|
|
2438
|
-
acc[key] = value;
|
|
2439
|
-
return acc;
|
|
2440
|
-
}, {});
|
|
2441
|
-
};
|
|
2442
|
-
const se_InputSerialization = (input, context) => {
|
|
2443
|
-
return {
|
|
2444
|
-
...(input.csv != null && { csv: se_CSVInput(input.csv, context) }),
|
|
2445
|
-
};
|
|
2446
|
-
};
|
|
2447
|
-
const se_InventoryRetrievalJobInput = (input, context) => {
|
|
2448
|
-
return {
|
|
2449
|
-
...(input.EndDate != null && { EndDate: input.EndDate }),
|
|
2450
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
2451
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
2452
|
-
...(input.StartDate != null && { StartDate: input.StartDate }),
|
|
2453
|
-
};
|
|
2454
|
-
};
|
|
2455
|
-
const se_JobParameters = (input, context) => {
|
|
2456
|
-
return {
|
|
2457
|
-
...(input.ArchiveId != null && { ArchiveId: input.ArchiveId }),
|
|
2458
|
-
...(input.Description != null && { Description: input.Description }),
|
|
2459
|
-
...(input.Format != null && { Format: input.Format }),
|
|
2460
|
-
...(input.InventoryRetrievalParameters != null && {
|
|
2461
|
-
InventoryRetrievalParameters: se_InventoryRetrievalJobInput(input.InventoryRetrievalParameters, context),
|
|
2462
|
-
}),
|
|
2463
|
-
...(input.OutputLocation != null && { OutputLocation: se_OutputLocation(input.OutputLocation, context) }),
|
|
2464
|
-
...(input.RetrievalByteRange != null && { RetrievalByteRange: input.RetrievalByteRange }),
|
|
2465
|
-
...(input.SNSTopic != null && { SNSTopic: input.SNSTopic }),
|
|
2466
|
-
...(input.SelectParameters != null && { SelectParameters: se_SelectParameters(input.SelectParameters, context) }),
|
|
2467
|
-
...(input.Tier != null && { Tier: input.Tier }),
|
|
2468
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2469
|
-
};
|
|
2470
|
-
};
|
|
2471
|
-
const se_NotificationEventList = (input, context) => {
|
|
2472
|
-
return input
|
|
2473
|
-
.filter((e) => e != null)
|
|
2474
|
-
.map((entry) => {
|
|
2475
|
-
return entry;
|
|
2476
|
-
});
|
|
2477
|
-
};
|
|
2478
|
-
const se_OutputLocation = (input, context) => {
|
|
2479
|
-
return {
|
|
2480
|
-
...(input.S3 != null && { S3: se_S3Location(input.S3, context) }),
|
|
2481
|
-
};
|
|
2482
|
-
};
|
|
2483
|
-
const se_OutputSerialization = (input, context) => {
|
|
2484
|
-
return {
|
|
2485
|
-
...(input.csv != null && { csv: se_CSVOutput(input.csv, context) }),
|
|
2486
|
-
};
|
|
2487
|
-
};
|
|
2488
|
-
const se_S3Location = (input, context) => {
|
|
2489
|
-
return {
|
|
2490
|
-
...(input.AccessControlList != null && {
|
|
2491
|
-
AccessControlList: se_AccessControlPolicyList(input.AccessControlList, context),
|
|
2492
|
-
}),
|
|
2493
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
2494
|
-
...(input.CannedACL != null && { CannedACL: input.CannedACL }),
|
|
2495
|
-
...(input.Encryption != null && { Encryption: se_Encryption(input.Encryption, context) }),
|
|
2496
|
-
...(input.Prefix != null && { Prefix: input.Prefix }),
|
|
2497
|
-
...(input.StorageClass != null && { StorageClass: input.StorageClass }),
|
|
2498
|
-
...(input.Tagging != null && { Tagging: se_hashmap(input.Tagging, context) }),
|
|
2499
|
-
...(input.UserMetadata != null && { UserMetadata: se_hashmap(input.UserMetadata, context) }),
|
|
2500
|
-
};
|
|
2501
|
-
};
|
|
2502
|
-
const se_SelectParameters = (input, context) => {
|
|
2503
|
-
return {
|
|
2504
|
-
...(input.Expression != null && { Expression: input.Expression }),
|
|
2505
|
-
...(input.ExpressionType != null && { ExpressionType: input.ExpressionType }),
|
|
2506
|
-
...(input.InputSerialization != null && {
|
|
2507
|
-
InputSerialization: se_InputSerialization(input.InputSerialization, context),
|
|
2508
|
-
}),
|
|
2509
|
-
...(input.OutputSerialization != null && {
|
|
2510
|
-
OutputSerialization: se_OutputSerialization(input.OutputSerialization, context),
|
|
2511
|
-
}),
|
|
2512
|
-
};
|
|
2513
|
-
};
|
|
2514
|
-
const se_TagKeyList = (input, context) => {
|
|
2515
|
-
return input
|
|
2516
|
-
.filter((e) => e != null)
|
|
2517
|
-
.map((entry) => {
|
|
2518
|
-
return entry;
|
|
2519
|
-
});
|
|
2520
|
-
};
|
|
2521
|
-
const se_TagMap = (input, context) => {
|
|
2522
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2523
|
-
if (value === null) {
|
|
2524
|
-
return acc;
|
|
2525
|
-
}
|
|
2526
|
-
acc[key] = value;
|
|
2527
|
-
return acc;
|
|
2528
|
-
}, {});
|
|
2529
|
-
};
|
|
2530
|
-
const se_VaultAccessPolicy = (input, context) => {
|
|
2531
|
-
return {
|
|
2532
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
2533
|
-
};
|
|
2534
|
-
};
|
|
2535
|
-
const se_VaultLockPolicy = (input, context) => {
|
|
2536
|
-
return {
|
|
2537
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
2538
|
-
};
|
|
2539
|
-
};
|
|
2540
|
-
const se_VaultNotificationConfig = (input, context) => {
|
|
2541
|
-
return {
|
|
2542
|
-
...(input.Events != null && { Events: se_NotificationEventList(input.Events, context) }),
|
|
2543
|
-
...(input.SNSTopic != null && { SNSTopic: input.SNSTopic }),
|
|
2544
|
-
};
|
|
2545
|
-
};
|
|
2546
|
-
const de_AccessControlPolicyList = (output, context) => {
|
|
2547
|
-
const retVal = (output || [])
|
|
2548
|
-
.filter((e) => e != null)
|
|
2549
|
-
.map((entry) => {
|
|
2550
|
-
if (entry === null) {
|
|
2551
|
-
return null;
|
|
2552
|
-
}
|
|
2553
|
-
return de_Grant(entry, context);
|
|
2554
|
-
});
|
|
2555
|
-
return retVal;
|
|
2556
|
-
};
|
|
2557
|
-
const de_CSVInput = (output, context) => {
|
|
2558
|
-
return {
|
|
2559
|
-
Comments: (0, smithy_client_1.expectString)(output.Comments),
|
|
2560
|
-
FieldDelimiter: (0, smithy_client_1.expectString)(output.FieldDelimiter),
|
|
2561
|
-
FileHeaderInfo: (0, smithy_client_1.expectString)(output.FileHeaderInfo),
|
|
2562
|
-
QuoteCharacter: (0, smithy_client_1.expectString)(output.QuoteCharacter),
|
|
2563
|
-
QuoteEscapeCharacter: (0, smithy_client_1.expectString)(output.QuoteEscapeCharacter),
|
|
2564
|
-
RecordDelimiter: (0, smithy_client_1.expectString)(output.RecordDelimiter),
|
|
2565
|
-
};
|
|
2566
|
-
};
|
|
2567
|
-
const de_CSVOutput = (output, context) => {
|
|
2568
|
-
return {
|
|
2569
|
-
FieldDelimiter: (0, smithy_client_1.expectString)(output.FieldDelimiter),
|
|
2570
|
-
QuoteCharacter: (0, smithy_client_1.expectString)(output.QuoteCharacter),
|
|
2571
|
-
QuoteEscapeCharacter: (0, smithy_client_1.expectString)(output.QuoteEscapeCharacter),
|
|
2572
|
-
QuoteFields: (0, smithy_client_1.expectString)(output.QuoteFields),
|
|
2573
|
-
RecordDelimiter: (0, smithy_client_1.expectString)(output.RecordDelimiter),
|
|
2574
|
-
};
|
|
2575
|
-
};
|
|
2576
|
-
const de_DataRetrievalPolicy = (output, context) => {
|
|
2577
|
-
return {
|
|
2578
|
-
Rules: output.Rules != null ? de_DataRetrievalRulesList(output.Rules, context) : undefined,
|
|
2579
|
-
};
|
|
2580
|
-
};
|
|
2581
|
-
const de_DataRetrievalRule = (output, context) => {
|
|
2582
|
-
return {
|
|
2583
|
-
BytesPerHour: (0, smithy_client_1.expectLong)(output.BytesPerHour),
|
|
2584
|
-
Strategy: (0, smithy_client_1.expectString)(output.Strategy),
|
|
2585
|
-
};
|
|
2586
|
-
};
|
|
2587
|
-
const de_DataRetrievalRulesList = (output, context) => {
|
|
2588
|
-
const retVal = (output || [])
|
|
2589
|
-
.filter((e) => e != null)
|
|
2590
|
-
.map((entry) => {
|
|
2591
|
-
if (entry === null) {
|
|
2592
|
-
return null;
|
|
2593
|
-
}
|
|
2594
|
-
return de_DataRetrievalRule(entry, context);
|
|
2595
|
-
});
|
|
2596
|
-
return retVal;
|
|
2597
|
-
};
|
|
2598
|
-
const de_DescribeVaultOutput = (output, context) => {
|
|
2599
|
-
return {
|
|
2600
|
-
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
2601
|
-
LastInventoryDate: (0, smithy_client_1.expectString)(output.LastInventoryDate),
|
|
2602
|
-
NumberOfArchives: (0, smithy_client_1.expectLong)(output.NumberOfArchives),
|
|
2603
|
-
SizeInBytes: (0, smithy_client_1.expectLong)(output.SizeInBytes),
|
|
2604
|
-
VaultARN: (0, smithy_client_1.expectString)(output.VaultARN),
|
|
2605
|
-
VaultName: (0, smithy_client_1.expectString)(output.VaultName),
|
|
2606
|
-
};
|
|
2607
|
-
};
|
|
2608
|
-
const de_Encryption = (output, context) => {
|
|
2609
|
-
return {
|
|
2610
|
-
EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
|
|
2611
|
-
KMSContext: (0, smithy_client_1.expectString)(output.KMSContext),
|
|
2612
|
-
KMSKeyId: (0, smithy_client_1.expectString)(output.KMSKeyId),
|
|
2613
|
-
};
|
|
2614
|
-
};
|
|
2615
|
-
const de_GlacierJobDescription = (output, context) => {
|
|
2616
|
-
return {
|
|
2617
|
-
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
2618
|
-
ArchiveId: (0, smithy_client_1.expectString)(output.ArchiveId),
|
|
2619
|
-
ArchiveSHA256TreeHash: (0, smithy_client_1.expectString)(output.ArchiveSHA256TreeHash),
|
|
2620
|
-
ArchiveSizeInBytes: (0, smithy_client_1.expectLong)(output.ArchiveSizeInBytes),
|
|
2621
|
-
Completed: (0, smithy_client_1.expectBoolean)(output.Completed),
|
|
2622
|
-
CompletionDate: (0, smithy_client_1.expectString)(output.CompletionDate),
|
|
2623
|
-
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
2624
|
-
InventoryRetrievalParameters: output.InventoryRetrievalParameters != null
|
|
2625
|
-
? de_InventoryRetrievalJobDescription(output.InventoryRetrievalParameters, context)
|
|
2626
|
-
: undefined,
|
|
2627
|
-
InventorySizeInBytes: (0, smithy_client_1.expectLong)(output.InventorySizeInBytes),
|
|
2628
|
-
JobDescription: (0, smithy_client_1.expectString)(output.JobDescription),
|
|
2629
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2630
|
-
JobOutputPath: (0, smithy_client_1.expectString)(output.JobOutputPath),
|
|
2631
|
-
OutputLocation: output.OutputLocation != null ? de_OutputLocation(output.OutputLocation, context) : undefined,
|
|
2632
|
-
RetrievalByteRange: (0, smithy_client_1.expectString)(output.RetrievalByteRange),
|
|
2633
|
-
SHA256TreeHash: (0, smithy_client_1.expectString)(output.SHA256TreeHash),
|
|
2634
|
-
SNSTopic: (0, smithy_client_1.expectString)(output.SNSTopic),
|
|
2635
|
-
SelectParameters: output.SelectParameters != null ? de_SelectParameters(output.SelectParameters, context) : undefined,
|
|
2636
|
-
StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
|
|
2637
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
2638
|
-
Tier: (0, smithy_client_1.expectString)(output.Tier),
|
|
2639
|
-
VaultARN: (0, smithy_client_1.expectString)(output.VaultARN),
|
|
2640
|
-
};
|
|
2641
|
-
};
|
|
2642
|
-
const de_Grant = (output, context) => {
|
|
2643
|
-
return {
|
|
2644
|
-
Grantee: output.Grantee != null ? de_Grantee(output.Grantee, context) : undefined,
|
|
2645
|
-
Permission: (0, smithy_client_1.expectString)(output.Permission),
|
|
2646
|
-
};
|
|
2647
|
-
};
|
|
2648
|
-
const de_Grantee = (output, context) => {
|
|
2649
|
-
return {
|
|
2650
|
-
DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
|
|
2651
|
-
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
2652
|
-
ID: (0, smithy_client_1.expectString)(output.ID),
|
|
2653
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2654
|
-
URI: (0, smithy_client_1.expectString)(output.URI),
|
|
2655
|
-
};
|
|
2656
|
-
};
|
|
2657
|
-
const de_hashmap = (output, context) => {
|
|
2658
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2659
|
-
if (value === null) {
|
|
2660
|
-
return acc;
|
|
2661
|
-
}
|
|
2662
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2663
|
-
return acc;
|
|
2664
|
-
}, {});
|
|
2665
|
-
};
|
|
2666
|
-
const de_InputSerialization = (output, context) => {
|
|
2667
|
-
return {
|
|
2668
|
-
csv: output.csv != null ? de_CSVInput(output.csv, context) : undefined,
|
|
2669
|
-
};
|
|
2670
|
-
};
|
|
2671
|
-
const de_InventoryRetrievalJobDescription = (output, context) => {
|
|
2672
|
-
return {
|
|
2673
|
-
EndDate: (0, smithy_client_1.expectString)(output.EndDate),
|
|
2674
|
-
Format: (0, smithy_client_1.expectString)(output.Format),
|
|
2675
|
-
Limit: (0, smithy_client_1.expectString)(output.Limit),
|
|
2676
|
-
Marker: (0, smithy_client_1.expectString)(output.Marker),
|
|
2677
|
-
StartDate: (0, smithy_client_1.expectString)(output.StartDate),
|
|
2678
|
-
};
|
|
2679
|
-
};
|
|
2680
|
-
const de_JobList = (output, context) => {
|
|
2681
|
-
const retVal = (output || [])
|
|
2682
|
-
.filter((e) => e != null)
|
|
2683
|
-
.map((entry) => {
|
|
2684
|
-
if (entry === null) {
|
|
2685
|
-
return null;
|
|
2686
|
-
}
|
|
2687
|
-
return de_GlacierJobDescription(entry, context);
|
|
2688
|
-
});
|
|
2689
|
-
return retVal;
|
|
2690
|
-
};
|
|
2691
|
-
const de_NotificationEventList = (output, context) => {
|
|
2692
|
-
const retVal = (output || [])
|
|
2693
|
-
.filter((e) => e != null)
|
|
2694
|
-
.map((entry) => {
|
|
2695
|
-
if (entry === null) {
|
|
2696
|
-
return null;
|
|
2697
|
-
}
|
|
2698
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2699
|
-
});
|
|
2700
|
-
return retVal;
|
|
2701
|
-
};
|
|
2702
|
-
const de_OutputLocation = (output, context) => {
|
|
2703
|
-
return {
|
|
2704
|
-
S3: output.S3 != null ? de_S3Location(output.S3, context) : undefined,
|
|
2705
|
-
};
|
|
2706
|
-
};
|
|
2707
|
-
const de_OutputSerialization = (output, context) => {
|
|
2708
|
-
return {
|
|
2709
|
-
csv: output.csv != null ? de_CSVOutput(output.csv, context) : undefined,
|
|
2710
|
-
};
|
|
2711
|
-
};
|
|
2712
|
-
const de_PartList = (output, context) => {
|
|
2713
|
-
const retVal = (output || [])
|
|
2714
|
-
.filter((e) => e != null)
|
|
2715
|
-
.map((entry) => {
|
|
2716
|
-
if (entry === null) {
|
|
2717
|
-
return null;
|
|
2718
|
-
}
|
|
2719
|
-
return de_PartListElement(entry, context);
|
|
2720
|
-
});
|
|
2721
|
-
return retVal;
|
|
2722
|
-
};
|
|
2723
|
-
const de_PartListElement = (output, context) => {
|
|
2724
|
-
return {
|
|
2725
|
-
RangeInBytes: (0, smithy_client_1.expectString)(output.RangeInBytes),
|
|
2726
|
-
SHA256TreeHash: (0, smithy_client_1.expectString)(output.SHA256TreeHash),
|
|
2727
|
-
};
|
|
2728
|
-
};
|
|
2729
|
-
const de_ProvisionedCapacityDescription = (output, context) => {
|
|
2730
|
-
return {
|
|
2731
|
-
CapacityId: (0, smithy_client_1.expectString)(output.CapacityId),
|
|
2732
|
-
ExpirationDate: (0, smithy_client_1.expectString)(output.ExpirationDate),
|
|
2733
|
-
StartDate: (0, smithy_client_1.expectString)(output.StartDate),
|
|
2734
|
-
};
|
|
2735
|
-
};
|
|
2736
|
-
const de_ProvisionedCapacityList = (output, context) => {
|
|
2737
|
-
const retVal = (output || [])
|
|
2738
|
-
.filter((e) => e != null)
|
|
2739
|
-
.map((entry) => {
|
|
2740
|
-
if (entry === null) {
|
|
2741
|
-
return null;
|
|
2742
|
-
}
|
|
2743
|
-
return de_ProvisionedCapacityDescription(entry, context);
|
|
2744
|
-
});
|
|
2745
|
-
return retVal;
|
|
2746
|
-
};
|
|
2747
|
-
const de_S3Location = (output, context) => {
|
|
2748
|
-
return {
|
|
2749
|
-
AccessControlList: output.AccessControlList != null ? de_AccessControlPolicyList(output.AccessControlList, context) : undefined,
|
|
2750
|
-
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
2751
|
-
CannedACL: (0, smithy_client_1.expectString)(output.CannedACL),
|
|
2752
|
-
Encryption: output.Encryption != null ? de_Encryption(output.Encryption, context) : undefined,
|
|
2753
|
-
Prefix: (0, smithy_client_1.expectString)(output.Prefix),
|
|
2754
|
-
StorageClass: (0, smithy_client_1.expectString)(output.StorageClass),
|
|
2755
|
-
Tagging: output.Tagging != null ? de_hashmap(output.Tagging, context) : undefined,
|
|
2756
|
-
UserMetadata: output.UserMetadata != null ? de_hashmap(output.UserMetadata, context) : undefined,
|
|
2757
|
-
};
|
|
2758
|
-
};
|
|
2759
|
-
const de_SelectParameters = (output, context) => {
|
|
2760
|
-
return {
|
|
2761
|
-
Expression: (0, smithy_client_1.expectString)(output.Expression),
|
|
2762
|
-
ExpressionType: (0, smithy_client_1.expectString)(output.ExpressionType),
|
|
2763
|
-
InputSerialization: output.InputSerialization != null ? de_InputSerialization(output.InputSerialization, context) : undefined,
|
|
2764
|
-
OutputSerialization: output.OutputSerialization != null ? de_OutputSerialization(output.OutputSerialization, context) : undefined,
|
|
2765
|
-
};
|
|
2766
|
-
};
|
|
2767
|
-
const de_TagMap = (output, context) => {
|
|
2768
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2769
|
-
if (value === null) {
|
|
2770
|
-
return acc;
|
|
2771
|
-
}
|
|
2772
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2773
|
-
return acc;
|
|
2774
|
-
}, {});
|
|
2775
|
-
};
|
|
2776
|
-
const de_UploadListElement = (output, context) => {
|
|
2777
|
-
return {
|
|
2778
|
-
ArchiveDescription: (0, smithy_client_1.expectString)(output.ArchiveDescription),
|
|
2779
|
-
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
2780
|
-
MultipartUploadId: (0, smithy_client_1.expectString)(output.MultipartUploadId),
|
|
2781
|
-
PartSizeInBytes: (0, smithy_client_1.expectLong)(output.PartSizeInBytes),
|
|
2782
|
-
VaultARN: (0, smithy_client_1.expectString)(output.VaultARN),
|
|
2783
|
-
};
|
|
2784
|
-
};
|
|
2785
|
-
const de_UploadsList = (output, context) => {
|
|
2786
|
-
const retVal = (output || [])
|
|
2787
|
-
.filter((e) => e != null)
|
|
2788
|
-
.map((entry) => {
|
|
2789
|
-
if (entry === null) {
|
|
2790
|
-
return null;
|
|
2791
|
-
}
|
|
2792
|
-
return de_UploadListElement(entry, context);
|
|
2793
|
-
});
|
|
2794
|
-
return retVal;
|
|
2795
|
-
};
|
|
2796
|
-
const de_VaultAccessPolicy = (output, context) => {
|
|
2797
|
-
return {
|
|
2798
|
-
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
2799
|
-
};
|
|
2800
|
-
};
|
|
2801
|
-
const de_VaultList = (output, context) => {
|
|
2802
|
-
const retVal = (output || [])
|
|
2803
|
-
.filter((e) => e != null)
|
|
2804
|
-
.map((entry) => {
|
|
2805
|
-
if (entry === null) {
|
|
2806
|
-
return null;
|
|
2807
|
-
}
|
|
2808
|
-
return de_DescribeVaultOutput(entry, context);
|
|
2809
|
-
});
|
|
2810
|
-
return retVal;
|
|
2811
|
-
};
|
|
2812
|
-
const de_VaultNotificationConfig = (output, context) => {
|
|
2813
|
-
return {
|
|
2814
|
-
Events: output.Events != null ? de_NotificationEventList(output.Events, context) : undefined,
|
|
2815
|
-
SNSTopic: (0, smithy_client_1.expectString)(output.SNSTopic),
|
|
2816
|
-
};
|
|
2817
|
-
};
|
|
2818
2246
|
const deserializeMetadata = (output) => ({
|
|
2819
2247
|
httpStatusCode: output.statusCode,
|
|
2820
2248
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|