@aws-sdk/client-signer 3.118.0 → 3.127.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/protocols/Aws_restJson1.js +142 -155
- package/dist-es/protocols/Aws_restJson1.js +126 -139
- package/package.json +27 -27
|
@@ -25,12 +25,11 @@ const serializeAws_restJson1AddProfilePermissionCommand = async (input, context)
|
|
|
25
25
|
}
|
|
26
26
|
let body;
|
|
27
27
|
body = JSON.stringify({
|
|
28
|
-
...(input.action
|
|
29
|
-
...(input.principal
|
|
30
|
-
...(input.profileVersion
|
|
31
|
-
|
|
32
|
-
...(input.
|
|
33
|
-
...(input.statementId !== undefined && input.statementId !== null && { statementId: input.statementId }),
|
|
28
|
+
...(input.action != null && { action: input.action }),
|
|
29
|
+
...(input.principal != null && { principal: input.principal }),
|
|
30
|
+
...(input.profileVersion != null && { profileVersion: input.profileVersion }),
|
|
31
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
32
|
+
...(input.statementId != null && { statementId: input.statementId }),
|
|
34
33
|
});
|
|
35
34
|
return new protocol_http_1.HttpRequest({
|
|
36
35
|
protocol,
|
|
@@ -306,24 +305,20 @@ const serializeAws_restJson1PutSigningProfileCommand = async (input, context) =>
|
|
|
306
305
|
}
|
|
307
306
|
let body;
|
|
308
307
|
body = JSON.stringify({
|
|
309
|
-
...(input.overrides
|
|
310
|
-
input.overrides !== null && {
|
|
308
|
+
...(input.overrides != null && {
|
|
311
309
|
overrides: serializeAws_restJson1SigningPlatformOverrides(input.overrides, context),
|
|
312
310
|
}),
|
|
313
|
-
...(input.platformId
|
|
314
|
-
...(input.signatureValidityPeriod
|
|
315
|
-
input.signatureValidityPeriod !== null && {
|
|
311
|
+
...(input.platformId != null && { platformId: input.platformId }),
|
|
312
|
+
...(input.signatureValidityPeriod != null && {
|
|
316
313
|
signatureValidityPeriod: serializeAws_restJson1SignatureValidityPeriod(input.signatureValidityPeriod, context),
|
|
317
314
|
}),
|
|
318
|
-
...(input.signingMaterial
|
|
319
|
-
input.signingMaterial !== null && {
|
|
315
|
+
...(input.signingMaterial != null && {
|
|
320
316
|
signingMaterial: serializeAws_restJson1SigningMaterial(input.signingMaterial, context),
|
|
321
317
|
}),
|
|
322
|
-
...(input.signingParameters
|
|
323
|
-
input.signingParameters !== null && {
|
|
318
|
+
...(input.signingParameters != null && {
|
|
324
319
|
signingParameters: serializeAws_restJson1SigningParameters(input.signingParameters, context),
|
|
325
320
|
}),
|
|
326
|
-
...(input.tags
|
|
321
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
327
322
|
});
|
|
328
323
|
return new protocol_http_1.HttpRequest({
|
|
329
324
|
protocol,
|
|
@@ -395,8 +390,8 @@ const serializeAws_restJson1RevokeSignatureCommand = async (input, context) => {
|
|
|
395
390
|
}
|
|
396
391
|
let body;
|
|
397
392
|
body = JSON.stringify({
|
|
398
|
-
...(input.jobOwner
|
|
399
|
-
...(input.reason
|
|
393
|
+
...(input.jobOwner != null && { jobOwner: input.jobOwner }),
|
|
394
|
+
...(input.reason != null && { reason: input.reason }),
|
|
400
395
|
});
|
|
401
396
|
return new protocol_http_1.HttpRequest({
|
|
402
397
|
protocol,
|
|
@@ -427,11 +422,9 @@ const serializeAws_restJson1RevokeSigningProfileCommand = async (input, context)
|
|
|
427
422
|
}
|
|
428
423
|
let body;
|
|
429
424
|
body = JSON.stringify({
|
|
430
|
-
...(input.effectiveTime
|
|
431
|
-
|
|
432
|
-
...(input.
|
|
433
|
-
input.profileVersion !== null && { profileVersion: input.profileVersion }),
|
|
434
|
-
...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
|
|
425
|
+
...(input.effectiveTime != null && { effectiveTime: Math.round(input.effectiveTime.getTime() / 1000) }),
|
|
426
|
+
...(input.profileVersion != null && { profileVersion: input.profileVersion }),
|
|
427
|
+
...(input.reason != null && { reason: input.reason }),
|
|
435
428
|
});
|
|
436
429
|
return new protocol_http_1.HttpRequest({
|
|
437
430
|
protocol,
|
|
@@ -454,12 +447,10 @@ const serializeAws_restJson1StartSigningJobCommand = async (input, context) => {
|
|
|
454
447
|
let body;
|
|
455
448
|
body = JSON.stringify({
|
|
456
449
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
457
|
-
...(input.destination
|
|
458
|
-
|
|
459
|
-
...(input.
|
|
460
|
-
...(input.
|
|
461
|
-
...(input.source !== undefined &&
|
|
462
|
-
input.source !== null && { source: serializeAws_restJson1Source(input.source, context) }),
|
|
450
|
+
...(input.destination != null && { destination: serializeAws_restJson1Destination(input.destination, context) }),
|
|
451
|
+
...(input.profileName != null && { profileName: input.profileName }),
|
|
452
|
+
...(input.profileOwner != null && { profileOwner: input.profileOwner }),
|
|
453
|
+
...(input.source != null && { source: serializeAws_restJson1Source(input.source, context) }),
|
|
463
454
|
});
|
|
464
455
|
return new protocol_http_1.HttpRequest({
|
|
465
456
|
protocol,
|
|
@@ -490,7 +481,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
490
481
|
}
|
|
491
482
|
let body;
|
|
492
483
|
body = JSON.stringify({
|
|
493
|
-
...(input.tags
|
|
484
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
494
485
|
});
|
|
495
486
|
return new protocol_http_1.HttpRequest({
|
|
496
487
|
protocol,
|
|
@@ -554,8 +545,7 @@ const deserializeAws_restJson1AddProfilePermissionCommandError = async (output,
|
|
|
554
545
|
body: await parseBody(output.body, context),
|
|
555
546
|
};
|
|
556
547
|
let response;
|
|
557
|
-
|
|
558
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
549
|
switch (errorCode) {
|
|
560
550
|
case "AccessDeniedException":
|
|
561
551
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -580,10 +570,12 @@ const deserializeAws_restJson1AddProfilePermissionCommandError = async (output,
|
|
|
580
570
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
581
571
|
default:
|
|
582
572
|
const parsedBody = parsedOutput.body;
|
|
573
|
+
const $metadata = deserializeMetadata(output);
|
|
574
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
583
575
|
response = new SignerServiceException_1.SignerServiceException({
|
|
584
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
576
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
585
577
|
$fault: "client",
|
|
586
|
-
$metadata
|
|
578
|
+
$metadata,
|
|
587
579
|
});
|
|
588
580
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
589
581
|
}
|
|
@@ -605,8 +597,7 @@ const deserializeAws_restJson1CancelSigningProfileCommandError = async (output,
|
|
|
605
597
|
body: await parseBody(output.body, context),
|
|
606
598
|
};
|
|
607
599
|
let response;
|
|
608
|
-
|
|
609
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
601
|
switch (errorCode) {
|
|
611
602
|
case "AccessDeniedException":
|
|
612
603
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -622,10 +613,12 @@ const deserializeAws_restJson1CancelSigningProfileCommandError = async (output,
|
|
|
622
613
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
623
614
|
default:
|
|
624
615
|
const parsedBody = parsedOutput.body;
|
|
616
|
+
const $metadata = deserializeMetadata(output);
|
|
617
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
625
618
|
response = new SignerServiceException_1.SignerServiceException({
|
|
626
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
619
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
627
620
|
$fault: "client",
|
|
628
|
-
$metadata
|
|
621
|
+
$metadata,
|
|
629
622
|
});
|
|
630
623
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
631
624
|
}
|
|
@@ -723,8 +716,7 @@ const deserializeAws_restJson1DescribeSigningJobCommandError = async (output, co
|
|
|
723
716
|
body: await parseBody(output.body, context),
|
|
724
717
|
};
|
|
725
718
|
let response;
|
|
726
|
-
|
|
727
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
720
|
switch (errorCode) {
|
|
729
721
|
case "AccessDeniedException":
|
|
730
722
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -740,10 +732,12 @@ const deserializeAws_restJson1DescribeSigningJobCommandError = async (output, co
|
|
|
740
732
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
741
733
|
default:
|
|
742
734
|
const parsedBody = parsedOutput.body;
|
|
735
|
+
const $metadata = deserializeMetadata(output);
|
|
736
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
743
737
|
response = new SignerServiceException_1.SignerServiceException({
|
|
744
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
738
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
745
739
|
$fault: "client",
|
|
746
|
-
$metadata
|
|
740
|
+
$metadata,
|
|
747
741
|
});
|
|
748
742
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
749
743
|
}
|
|
@@ -801,8 +795,7 @@ const deserializeAws_restJson1GetSigningPlatformCommandError = async (output, co
|
|
|
801
795
|
body: await parseBody(output.body, context),
|
|
802
796
|
};
|
|
803
797
|
let response;
|
|
804
|
-
|
|
805
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
799
|
switch (errorCode) {
|
|
807
800
|
case "AccessDeniedException":
|
|
808
801
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -818,10 +811,12 @@ const deserializeAws_restJson1GetSigningPlatformCommandError = async (output, co
|
|
|
818
811
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
819
812
|
default:
|
|
820
813
|
const parsedBody = parsedOutput.body;
|
|
814
|
+
const $metadata = deserializeMetadata(output);
|
|
815
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
821
816
|
response = new SignerServiceException_1.SignerServiceException({
|
|
822
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
817
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
823
818
|
$fault: "client",
|
|
824
|
-
$metadata
|
|
819
|
+
$metadata,
|
|
825
820
|
});
|
|
826
821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
827
822
|
}
|
|
@@ -899,8 +894,7 @@ const deserializeAws_restJson1GetSigningProfileCommandError = async (output, con
|
|
|
899
894
|
body: await parseBody(output.body, context),
|
|
900
895
|
};
|
|
901
896
|
let response;
|
|
902
|
-
|
|
903
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
898
|
switch (errorCode) {
|
|
905
899
|
case "AccessDeniedException":
|
|
906
900
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -916,10 +910,12 @@ const deserializeAws_restJson1GetSigningProfileCommandError = async (output, con
|
|
|
916
910
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
917
911
|
default:
|
|
918
912
|
const parsedBody = parsedOutput.body;
|
|
913
|
+
const $metadata = deserializeMetadata(output);
|
|
914
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
919
915
|
response = new SignerServiceException_1.SignerServiceException({
|
|
920
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
916
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
921
917
|
$fault: "client",
|
|
922
|
-
$metadata
|
|
918
|
+
$metadata,
|
|
923
919
|
});
|
|
924
920
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
925
921
|
}
|
|
@@ -957,8 +953,7 @@ const deserializeAws_restJson1ListProfilePermissionsCommandError = async (output
|
|
|
957
953
|
body: await parseBody(output.body, context),
|
|
958
954
|
};
|
|
959
955
|
let response;
|
|
960
|
-
|
|
961
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
957
|
switch (errorCode) {
|
|
963
958
|
case "AccessDeniedException":
|
|
964
959
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -977,10 +972,12 @@ const deserializeAws_restJson1ListProfilePermissionsCommandError = async (output
|
|
|
977
972
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
978
973
|
default:
|
|
979
974
|
const parsedBody = parsedOutput.body;
|
|
975
|
+
const $metadata = deserializeMetadata(output);
|
|
976
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
980
977
|
response = new SignerServiceException_1.SignerServiceException({
|
|
981
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
978
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
982
979
|
$fault: "client",
|
|
983
|
-
$metadata
|
|
980
|
+
$metadata,
|
|
984
981
|
});
|
|
985
982
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
986
983
|
}
|
|
@@ -1010,8 +1007,7 @@ const deserializeAws_restJson1ListSigningJobsCommandError = async (output, conte
|
|
|
1010
1007
|
body: await parseBody(output.body, context),
|
|
1011
1008
|
};
|
|
1012
1009
|
let response;
|
|
1013
|
-
|
|
1014
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1011
|
switch (errorCode) {
|
|
1016
1012
|
case "AccessDeniedException":
|
|
1017
1013
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -1027,10 +1023,12 @@ const deserializeAws_restJson1ListSigningJobsCommandError = async (output, conte
|
|
|
1027
1023
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1028
1024
|
default:
|
|
1029
1025
|
const parsedBody = parsedOutput.body;
|
|
1026
|
+
const $metadata = deserializeMetadata(output);
|
|
1027
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1030
1028
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1031
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1029
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1032
1030
|
$fault: "client",
|
|
1033
|
-
$metadata
|
|
1031
|
+
$metadata,
|
|
1034
1032
|
});
|
|
1035
1033
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1036
1034
|
}
|
|
@@ -1060,8 +1058,7 @@ const deserializeAws_restJson1ListSigningPlatformsCommandError = async (output,
|
|
|
1060
1058
|
body: await parseBody(output.body, context),
|
|
1061
1059
|
};
|
|
1062
1060
|
let response;
|
|
1063
|
-
|
|
1064
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1065
1062
|
switch (errorCode) {
|
|
1066
1063
|
case "AccessDeniedException":
|
|
1067
1064
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -1077,10 +1074,12 @@ const deserializeAws_restJson1ListSigningPlatformsCommandError = async (output,
|
|
|
1077
1074
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1078
1075
|
default:
|
|
1079
1076
|
const parsedBody = parsedOutput.body;
|
|
1077
|
+
const $metadata = deserializeMetadata(output);
|
|
1078
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1080
1079
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1081
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1080
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1082
1081
|
$fault: "client",
|
|
1083
|
-
$metadata
|
|
1082
|
+
$metadata,
|
|
1084
1083
|
});
|
|
1085
1084
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1086
1085
|
}
|
|
@@ -1110,8 +1109,7 @@ const deserializeAws_restJson1ListSigningProfilesCommandError = async (output, c
|
|
|
1110
1109
|
body: await parseBody(output.body, context),
|
|
1111
1110
|
};
|
|
1112
1111
|
let response;
|
|
1113
|
-
|
|
1114
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1112
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1115
1113
|
switch (errorCode) {
|
|
1116
1114
|
case "AccessDeniedException":
|
|
1117
1115
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -1124,10 +1122,12 @@ const deserializeAws_restJson1ListSigningProfilesCommandError = async (output, c
|
|
|
1124
1122
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1125
1123
|
default:
|
|
1126
1124
|
const parsedBody = parsedOutput.body;
|
|
1125
|
+
const $metadata = deserializeMetadata(output);
|
|
1126
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1127
1127
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1128
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1128
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1129
1129
|
$fault: "client",
|
|
1130
|
-
$metadata
|
|
1130
|
+
$metadata,
|
|
1131
1131
|
});
|
|
1132
1132
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1133
1133
|
}
|
|
@@ -1153,8 +1153,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1153
1153
|
body: await parseBody(output.body, context),
|
|
1154
1154
|
};
|
|
1155
1155
|
let response;
|
|
1156
|
-
|
|
1157
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1158
1157
|
switch (errorCode) {
|
|
1159
1158
|
case "BadRequestException":
|
|
1160
1159
|
case "com.amazonaws.signer#BadRequestException":
|
|
@@ -1170,10 +1169,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1170
1169
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1171
1170
|
default:
|
|
1172
1171
|
const parsedBody = parsedOutput.body;
|
|
1172
|
+
const $metadata = deserializeMetadata(output);
|
|
1173
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1173
1174
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1174
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1175
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1175
1176
|
$fault: "client",
|
|
1176
|
-
$metadata
|
|
1177
|
+
$metadata,
|
|
1177
1178
|
});
|
|
1178
1179
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1179
1180
|
}
|
|
@@ -1207,8 +1208,7 @@ const deserializeAws_restJson1PutSigningProfileCommandError = async (output, con
|
|
|
1207
1208
|
body: await parseBody(output.body, context),
|
|
1208
1209
|
};
|
|
1209
1210
|
let response;
|
|
1210
|
-
|
|
1211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
1212
|
switch (errorCode) {
|
|
1213
1213
|
case "AccessDeniedException":
|
|
1214
1214
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -1227,10 +1227,12 @@ const deserializeAws_restJson1PutSigningProfileCommandError = async (output, con
|
|
|
1227
1227
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1228
1228
|
default:
|
|
1229
1229
|
const parsedBody = parsedOutput.body;
|
|
1230
|
+
const $metadata = deserializeMetadata(output);
|
|
1231
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1230
1232
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1231
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1232
1234
|
$fault: "client",
|
|
1233
|
-
$metadata
|
|
1235
|
+
$metadata,
|
|
1234
1236
|
});
|
|
1235
1237
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1236
1238
|
}
|
|
@@ -1256,8 +1258,7 @@ const deserializeAws_restJson1RemoveProfilePermissionCommandError = async (outpu
|
|
|
1256
1258
|
body: await parseBody(output.body, context),
|
|
1257
1259
|
};
|
|
1258
1260
|
let response;
|
|
1259
|
-
|
|
1260
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
1262
|
switch (errorCode) {
|
|
1262
1263
|
case "AccessDeniedException":
|
|
1263
1264
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -1279,10 +1280,12 @@ const deserializeAws_restJson1RemoveProfilePermissionCommandError = async (outpu
|
|
|
1279
1280
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1280
1281
|
default:
|
|
1281
1282
|
const parsedBody = parsedOutput.body;
|
|
1283
|
+
const $metadata = deserializeMetadata(output);
|
|
1284
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1282
1285
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1286
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1284
1287
|
$fault: "client",
|
|
1285
|
-
$metadata
|
|
1288
|
+
$metadata,
|
|
1286
1289
|
});
|
|
1287
1290
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1288
1291
|
}
|
|
@@ -1304,8 +1307,7 @@ const deserializeAws_restJson1RevokeSignatureCommandError = async (output, conte
|
|
|
1304
1307
|
body: await parseBody(output.body, context),
|
|
1305
1308
|
};
|
|
1306
1309
|
let response;
|
|
1307
|
-
|
|
1308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
1311
|
switch (errorCode) {
|
|
1310
1312
|
case "AccessDeniedException":
|
|
1311
1313
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -1324,10 +1326,12 @@ const deserializeAws_restJson1RevokeSignatureCommandError = async (output, conte
|
|
|
1324
1326
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1325
1327
|
default:
|
|
1326
1328
|
const parsedBody = parsedOutput.body;
|
|
1329
|
+
const $metadata = deserializeMetadata(output);
|
|
1330
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1327
1331
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1328
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1332
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1329
1333
|
$fault: "client",
|
|
1330
|
-
$metadata
|
|
1334
|
+
$metadata,
|
|
1331
1335
|
});
|
|
1332
1336
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1333
1337
|
}
|
|
@@ -1349,8 +1353,7 @@ const deserializeAws_restJson1RevokeSigningProfileCommandError = async (output,
|
|
|
1349
1353
|
body: await parseBody(output.body, context),
|
|
1350
1354
|
};
|
|
1351
1355
|
let response;
|
|
1352
|
-
|
|
1353
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1357
|
switch (errorCode) {
|
|
1355
1358
|
case "AccessDeniedException":
|
|
1356
1359
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -1369,10 +1372,12 @@ const deserializeAws_restJson1RevokeSigningProfileCommandError = async (output,
|
|
|
1369
1372
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1370
1373
|
default:
|
|
1371
1374
|
const parsedBody = parsedOutput.body;
|
|
1375
|
+
const $metadata = deserializeMetadata(output);
|
|
1376
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1372
1377
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1373
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1374
1379
|
$fault: "client",
|
|
1375
|
-
$metadata
|
|
1380
|
+
$metadata,
|
|
1376
1381
|
});
|
|
1377
1382
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1378
1383
|
}
|
|
@@ -1402,8 +1407,7 @@ const deserializeAws_restJson1StartSigningJobCommandError = async (output, conte
|
|
|
1402
1407
|
body: await parseBody(output.body, context),
|
|
1403
1408
|
};
|
|
1404
1409
|
let response;
|
|
1405
|
-
|
|
1406
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1407
1411
|
switch (errorCode) {
|
|
1408
1412
|
case "AccessDeniedException":
|
|
1409
1413
|
case "com.amazonaws.signer#AccessDeniedException":
|
|
@@ -1425,10 +1429,12 @@ const deserializeAws_restJson1StartSigningJobCommandError = async (output, conte
|
|
|
1425
1429
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1426
1430
|
default:
|
|
1427
1431
|
const parsedBody = parsedOutput.body;
|
|
1432
|
+
const $metadata = deserializeMetadata(output);
|
|
1433
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1428
1434
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1429
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1435
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1430
1436
|
$fault: "client",
|
|
1431
|
-
$metadata
|
|
1437
|
+
$metadata,
|
|
1432
1438
|
});
|
|
1433
1439
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1434
1440
|
}
|
|
@@ -1450,8 +1456,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1450
1456
|
body: await parseBody(output.body, context),
|
|
1451
1457
|
};
|
|
1452
1458
|
let response;
|
|
1453
|
-
|
|
1454
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1460
|
switch (errorCode) {
|
|
1456
1461
|
case "BadRequestException":
|
|
1457
1462
|
case "com.amazonaws.signer#BadRequestException":
|
|
@@ -1467,10 +1472,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1467
1472
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1468
1473
|
default:
|
|
1469
1474
|
const parsedBody = parsedOutput.body;
|
|
1475
|
+
const $metadata = deserializeMetadata(output);
|
|
1476
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1470
1477
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1478
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1472
1479
|
$fault: "client",
|
|
1473
|
-
$metadata
|
|
1480
|
+
$metadata,
|
|
1474
1481
|
});
|
|
1475
1482
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1476
1483
|
}
|
|
@@ -1492,8 +1499,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1492
1499
|
body: await parseBody(output.body, context),
|
|
1493
1500
|
};
|
|
1494
1501
|
let response;
|
|
1495
|
-
|
|
1496
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
1503
|
switch (errorCode) {
|
|
1498
1504
|
case "BadRequestException":
|
|
1499
1505
|
case "com.amazonaws.signer#BadRequestException":
|
|
@@ -1509,10 +1515,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1509
1515
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1510
1516
|
default:
|
|
1511
1517
|
const parsedBody = parsedOutput.body;
|
|
1518
|
+
const $metadata = deserializeMetadata(output);
|
|
1519
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1512
1520
|
response = new SignerServiceException_1.SignerServiceException({
|
|
1513
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1521
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1514
1522
|
$fault: "client",
|
|
1515
|
-
$metadata
|
|
1523
|
+
$metadata,
|
|
1516
1524
|
});
|
|
1517
1525
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1518
1526
|
}
|
|
@@ -1669,39 +1677,37 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1669
1677
|
};
|
|
1670
1678
|
const serializeAws_restJson1Destination = (input, context) => {
|
|
1671
1679
|
return {
|
|
1672
|
-
...(input.s3
|
|
1680
|
+
...(input.s3 != null && { s3: serializeAws_restJson1S3Destination(input.s3, context) }),
|
|
1673
1681
|
};
|
|
1674
1682
|
};
|
|
1675
1683
|
const serializeAws_restJson1S3Destination = (input, context) => {
|
|
1676
1684
|
return {
|
|
1677
|
-
...(input.bucketName
|
|
1678
|
-
...(input.prefix
|
|
1685
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1686
|
+
...(input.prefix != null && { prefix: input.prefix }),
|
|
1679
1687
|
};
|
|
1680
1688
|
};
|
|
1681
1689
|
const serializeAws_restJson1S3Source = (input, context) => {
|
|
1682
1690
|
return {
|
|
1683
|
-
...(input.bucketName
|
|
1684
|
-
...(input.key
|
|
1685
|
-
...(input.version
|
|
1691
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1692
|
+
...(input.key != null && { key: input.key }),
|
|
1693
|
+
...(input.version != null && { version: input.version }),
|
|
1686
1694
|
};
|
|
1687
1695
|
};
|
|
1688
1696
|
const serializeAws_restJson1SignatureValidityPeriod = (input, context) => {
|
|
1689
1697
|
return {
|
|
1690
|
-
...(input.type
|
|
1691
|
-
...(input.value
|
|
1698
|
+
...(input.type != null && { type: input.type }),
|
|
1699
|
+
...(input.value != null && { value: input.value }),
|
|
1692
1700
|
};
|
|
1693
1701
|
};
|
|
1694
1702
|
const serializeAws_restJson1SigningConfigurationOverrides = (input, context) => {
|
|
1695
1703
|
return {
|
|
1696
|
-
...(input.encryptionAlgorithm
|
|
1697
|
-
|
|
1698
|
-
...(input.hashAlgorithm !== undefined && input.hashAlgorithm !== null && { hashAlgorithm: input.hashAlgorithm }),
|
|
1704
|
+
...(input.encryptionAlgorithm != null && { encryptionAlgorithm: input.encryptionAlgorithm }),
|
|
1705
|
+
...(input.hashAlgorithm != null && { hashAlgorithm: input.hashAlgorithm }),
|
|
1699
1706
|
};
|
|
1700
1707
|
};
|
|
1701
1708
|
const serializeAws_restJson1SigningMaterial = (input, context) => {
|
|
1702
1709
|
return {
|
|
1703
|
-
...(input.certificateArn
|
|
1704
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn }),
|
|
1710
|
+
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
1705
1711
|
};
|
|
1706
1712
|
};
|
|
1707
1713
|
const serializeAws_restJson1SigningParameters = (input, context) => {
|
|
@@ -1717,17 +1723,15 @@ const serializeAws_restJson1SigningParameters = (input, context) => {
|
|
|
1717
1723
|
};
|
|
1718
1724
|
const serializeAws_restJson1SigningPlatformOverrides = (input, context) => {
|
|
1719
1725
|
return {
|
|
1720
|
-
...(input.signingConfiguration
|
|
1721
|
-
input.signingConfiguration !== null && {
|
|
1726
|
+
...(input.signingConfiguration != null && {
|
|
1722
1727
|
signingConfiguration: serializeAws_restJson1SigningConfigurationOverrides(input.signingConfiguration, context),
|
|
1723
1728
|
}),
|
|
1724
|
-
...(input.signingImageFormat
|
|
1725
|
-
input.signingImageFormat !== null && { signingImageFormat: input.signingImageFormat }),
|
|
1729
|
+
...(input.signingImageFormat != null && { signingImageFormat: input.signingImageFormat }),
|
|
1726
1730
|
};
|
|
1727
1731
|
};
|
|
1728
1732
|
const serializeAws_restJson1Source = (input, context) => {
|
|
1729
1733
|
return {
|
|
1730
|
-
...(input.s3
|
|
1734
|
+
...(input.s3 != null && { s3: serializeAws_restJson1S3Source(input.s3, context) }),
|
|
1731
1735
|
};
|
|
1732
1736
|
};
|
|
1733
1737
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -1743,7 +1747,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1743
1747
|
};
|
|
1744
1748
|
const deserializeAws_restJson1EncryptionAlgorithmOptions = (output, context) => {
|
|
1745
1749
|
return {
|
|
1746
|
-
allowedValues: output.allowedValues
|
|
1750
|
+
allowedValues: output.allowedValues != null
|
|
1747
1751
|
? deserializeAws_restJson1EncryptionAlgorithms(output.allowedValues, context)
|
|
1748
1752
|
: undefined,
|
|
1749
1753
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
@@ -1762,9 +1766,7 @@ const deserializeAws_restJson1EncryptionAlgorithms = (output, context) => {
|
|
|
1762
1766
|
};
|
|
1763
1767
|
const deserializeAws_restJson1HashAlgorithmOptions = (output, context) => {
|
|
1764
1768
|
return {
|
|
1765
|
-
allowedValues: output.allowedValues
|
|
1766
|
-
? deserializeAws_restJson1HashAlgorithms(output.allowedValues, context)
|
|
1767
|
-
: undefined,
|
|
1769
|
+
allowedValues: output.allowedValues != null ? deserializeAws_restJson1HashAlgorithms(output.allowedValues, context) : undefined,
|
|
1768
1770
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
1769
1771
|
};
|
|
1770
1772
|
};
|
|
@@ -1830,17 +1832,15 @@ const deserializeAws_restJson1SignatureValidityPeriod = (output, context) => {
|
|
|
1830
1832
|
};
|
|
1831
1833
|
const deserializeAws_restJson1SignedObject = (output, context) => {
|
|
1832
1834
|
return {
|
|
1833
|
-
s3: output.s3
|
|
1834
|
-
? deserializeAws_restJson1S3SignedObject(output.s3, context)
|
|
1835
|
-
: undefined,
|
|
1835
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3SignedObject(output.s3, context) : undefined,
|
|
1836
1836
|
};
|
|
1837
1837
|
};
|
|
1838
1838
|
const deserializeAws_restJson1SigningConfiguration = (output, context) => {
|
|
1839
1839
|
return {
|
|
1840
|
-
encryptionAlgorithmOptions: output.encryptionAlgorithmOptions
|
|
1840
|
+
encryptionAlgorithmOptions: output.encryptionAlgorithmOptions != null
|
|
1841
1841
|
? deserializeAws_restJson1EncryptionAlgorithmOptions(output.encryptionAlgorithmOptions, context)
|
|
1842
1842
|
: undefined,
|
|
1843
|
-
hashAlgorithmOptions: output.hashAlgorithmOptions
|
|
1843
|
+
hashAlgorithmOptions: output.hashAlgorithmOptions != null
|
|
1844
1844
|
? deserializeAws_restJson1HashAlgorithmOptions(output.hashAlgorithmOptions, context)
|
|
1845
1845
|
: undefined,
|
|
1846
1846
|
};
|
|
@@ -1854,16 +1854,14 @@ const deserializeAws_restJson1SigningConfigurationOverrides = (output, context)
|
|
|
1854
1854
|
const deserializeAws_restJson1SigningImageFormat = (output, context) => {
|
|
1855
1855
|
return {
|
|
1856
1856
|
defaultFormat: (0, smithy_client_1.expectString)(output.defaultFormat),
|
|
1857
|
-
supportedFormats: output.supportedFormats
|
|
1857
|
+
supportedFormats: output.supportedFormats != null
|
|
1858
1858
|
? deserializeAws_restJson1ImageFormats(output.supportedFormats, context)
|
|
1859
1859
|
: undefined,
|
|
1860
1860
|
};
|
|
1861
1861
|
};
|
|
1862
1862
|
const deserializeAws_restJson1SigningJob = (output, context) => {
|
|
1863
1863
|
return {
|
|
1864
|
-
createdAt: output.createdAt
|
|
1865
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
1866
|
-
: undefined,
|
|
1864
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1867
1865
|
isRevoked: (0, smithy_client_1.expectBoolean)(output.isRevoked),
|
|
1868
1866
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1869
1867
|
jobInvoker: (0, smithy_client_1.expectString)(output.jobInvoker),
|
|
@@ -1872,27 +1870,21 @@ const deserializeAws_restJson1SigningJob = (output, context) => {
|
|
|
1872
1870
|
platformId: (0, smithy_client_1.expectString)(output.platformId),
|
|
1873
1871
|
profileName: (0, smithy_client_1.expectString)(output.profileName),
|
|
1874
1872
|
profileVersion: (0, smithy_client_1.expectString)(output.profileVersion),
|
|
1875
|
-
signatureExpiresAt: output.signatureExpiresAt
|
|
1873
|
+
signatureExpiresAt: output.signatureExpiresAt != null
|
|
1876
1874
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.signatureExpiresAt)))
|
|
1877
1875
|
: undefined,
|
|
1878
|
-
signedObject: output.signedObject
|
|
1879
|
-
|
|
1880
|
-
: undefined,
|
|
1881
|
-
signingMaterial: output.signingMaterial !== undefined && output.signingMaterial !== null
|
|
1876
|
+
signedObject: output.signedObject != null ? deserializeAws_restJson1SignedObject(output.signedObject, context) : undefined,
|
|
1877
|
+
signingMaterial: output.signingMaterial != null
|
|
1882
1878
|
? deserializeAws_restJson1SigningMaterial(output.signingMaterial, context)
|
|
1883
1879
|
: undefined,
|
|
1884
|
-
source: output.source
|
|
1885
|
-
? deserializeAws_restJson1Source(output.source, context)
|
|
1886
|
-
: undefined,
|
|
1880
|
+
source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
|
|
1887
1881
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1888
1882
|
};
|
|
1889
1883
|
};
|
|
1890
1884
|
const deserializeAws_restJson1SigningJobRevocationRecord = (output, context) => {
|
|
1891
1885
|
return {
|
|
1892
1886
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
1893
|
-
revokedAt: output.revokedAt
|
|
1894
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt)))
|
|
1895
|
-
: undefined,
|
|
1887
|
+
revokedAt: output.revokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt))) : undefined,
|
|
1896
1888
|
revokedBy: (0, smithy_client_1.expectString)(output.revokedBy),
|
|
1897
1889
|
};
|
|
1898
1890
|
};
|
|
@@ -1931,10 +1923,10 @@ const deserializeAws_restJson1SigningPlatform = (output, context) => {
|
|
|
1931
1923
|
partner: (0, smithy_client_1.expectString)(output.partner),
|
|
1932
1924
|
platformId: (0, smithy_client_1.expectString)(output.platformId),
|
|
1933
1925
|
revocationSupported: (0, smithy_client_1.expectBoolean)(output.revocationSupported),
|
|
1934
|
-
signingConfiguration: output.signingConfiguration
|
|
1926
|
+
signingConfiguration: output.signingConfiguration != null
|
|
1935
1927
|
? deserializeAws_restJson1SigningConfiguration(output.signingConfiguration, context)
|
|
1936
1928
|
: undefined,
|
|
1937
|
-
signingImageFormat: output.signingImageFormat
|
|
1929
|
+
signingImageFormat: output.signingImageFormat != null
|
|
1938
1930
|
? deserializeAws_restJson1SigningImageFormat(output.signingImageFormat, context)
|
|
1939
1931
|
: undefined,
|
|
1940
1932
|
target: (0, smithy_client_1.expectString)(output.target),
|
|
@@ -1942,7 +1934,7 @@ const deserializeAws_restJson1SigningPlatform = (output, context) => {
|
|
|
1942
1934
|
};
|
|
1943
1935
|
const deserializeAws_restJson1SigningPlatformOverrides = (output, context) => {
|
|
1944
1936
|
return {
|
|
1945
|
-
signingConfiguration: output.signingConfiguration
|
|
1937
|
+
signingConfiguration: output.signingConfiguration != null
|
|
1946
1938
|
? deserializeAws_restJson1SigningConfigurationOverrides(output.signingConfiguration, context)
|
|
1947
1939
|
: undefined,
|
|
1948
1940
|
signingImageFormat: (0, smithy_client_1.expectString)(output.signingImageFormat),
|
|
@@ -1967,29 +1959,25 @@ const deserializeAws_restJson1SigningProfile = (output, context) => {
|
|
|
1967
1959
|
profileName: (0, smithy_client_1.expectString)(output.profileName),
|
|
1968
1960
|
profileVersion: (0, smithy_client_1.expectString)(output.profileVersion),
|
|
1969
1961
|
profileVersionArn: (0, smithy_client_1.expectString)(output.profileVersionArn),
|
|
1970
|
-
signatureValidityPeriod: output.signatureValidityPeriod
|
|
1962
|
+
signatureValidityPeriod: output.signatureValidityPeriod != null
|
|
1971
1963
|
? deserializeAws_restJson1SignatureValidityPeriod(output.signatureValidityPeriod, context)
|
|
1972
1964
|
: undefined,
|
|
1973
|
-
signingMaterial: output.signingMaterial
|
|
1965
|
+
signingMaterial: output.signingMaterial != null
|
|
1974
1966
|
? deserializeAws_restJson1SigningMaterial(output.signingMaterial, context)
|
|
1975
1967
|
: undefined,
|
|
1976
|
-
signingParameters: output.signingParameters
|
|
1968
|
+
signingParameters: output.signingParameters != null
|
|
1977
1969
|
? deserializeAws_restJson1SigningParameters(output.signingParameters, context)
|
|
1978
1970
|
: undefined,
|
|
1979
1971
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1980
|
-
tags: output.tags
|
|
1981
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1982
|
-
: undefined,
|
|
1972
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
1983
1973
|
};
|
|
1984
1974
|
};
|
|
1985
1975
|
const deserializeAws_restJson1SigningProfileRevocationRecord = (output, context) => {
|
|
1986
1976
|
return {
|
|
1987
|
-
revocationEffectiveFrom: output.revocationEffectiveFrom
|
|
1977
|
+
revocationEffectiveFrom: output.revocationEffectiveFrom != null
|
|
1988
1978
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revocationEffectiveFrom)))
|
|
1989
1979
|
: undefined,
|
|
1990
|
-
revokedAt: output.revokedAt
|
|
1991
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt)))
|
|
1992
|
-
: undefined,
|
|
1980
|
+
revokedAt: output.revokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt))) : undefined,
|
|
1993
1981
|
revokedBy: (0, smithy_client_1.expectString)(output.revokedBy),
|
|
1994
1982
|
};
|
|
1995
1983
|
};
|
|
@@ -2006,7 +1994,7 @@ const deserializeAws_restJson1SigningProfiles = (output, context) => {
|
|
|
2006
1994
|
};
|
|
2007
1995
|
const deserializeAws_restJson1Source = (output, context) => {
|
|
2008
1996
|
return {
|
|
2009
|
-
s3: output.s3
|
|
1997
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3Source(output.s3, context) : undefined,
|
|
2010
1998
|
};
|
|
2011
1999
|
};
|
|
2012
2000
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -2069,5 +2057,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2069
2057
|
if (data["__type"] !== undefined) {
|
|
2070
2058
|
return sanitizeErrorCode(data["__type"]);
|
|
2071
2059
|
}
|
|
2072
|
-
return "";
|
|
2073
2060
|
};
|