@aws-sdk/client-signer 3.53.0 → 3.55.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 +24 -0
- package/dist-cjs/SignerClient.js +13 -13
- package/dist-cjs/commands/AddProfilePermissionCommand.js +3 -3
- package/dist-cjs/commands/CancelSigningProfileCommand.js +3 -3
- package/dist-cjs/commands/DescribeSigningJobCommand.js +3 -3
- package/dist-cjs/commands/GetSigningPlatformCommand.js +3 -3
- package/dist-cjs/commands/GetSigningProfileCommand.js +3 -3
- package/dist-cjs/commands/ListProfilePermissionsCommand.js +3 -3
- package/dist-cjs/commands/ListSigningJobsCommand.js +3 -3
- package/dist-cjs/commands/ListSigningPlatformsCommand.js +3 -3
- package/dist-cjs/commands/ListSigningProfilesCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/PutSigningProfileCommand.js +3 -3
- package/dist-cjs/commands/RemoveProfilePermissionCommand.js +3 -3
- package/dist-cjs/commands/RevokeSignatureCommand.js +3 -3
- package/dist-cjs/commands/RevokeSigningProfileCommand.js +3 -3
- package/dist-cjs/commands/StartSigningJobCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +169 -169
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-cjs/waiters/waitForSuccessfulSigningJob.js +3 -3
- package/dist-es/Signer.js +17 -17
- package/dist-es/pagination/ListSigningJobsPaginator.js +4 -4
- package/dist-es/pagination/ListSigningPlatformsPaginator.js +4 -4
- package/dist-es/pagination/ListSigningProfilesPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +17 -17
- package/dist-types/SignerClient.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/SignerClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +35 -35
|
@@ -18,7 +18,7 @@ const serializeAws_restJson1AddProfilePermissionCommand = async (input, context)
|
|
|
18
18
|
if (labelValue.length <= 0) {
|
|
19
19
|
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
20
20
|
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{profileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
21
|
+
resolvedPath = resolvedPath.replace("{profileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
@@ -52,7 +52,7 @@ const serializeAws_restJson1CancelSigningProfileCommand = async (input, context)
|
|
|
52
52
|
if (labelValue.length <= 0) {
|
|
53
53
|
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
54
54
|
}
|
|
55
|
-
resolvedPath = resolvedPath.replace("{profileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
55
|
+
resolvedPath = resolvedPath.replace("{profileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
58
58
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
@@ -78,7 +78,7 @@ const serializeAws_restJson1DescribeSigningJobCommand = async (input, context) =
|
|
|
78
78
|
if (labelValue.length <= 0) {
|
|
79
79
|
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
80
80
|
}
|
|
81
|
-
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
81
|
+
resolvedPath = resolvedPath.replace("{jobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
82
82
|
}
|
|
83
83
|
else {
|
|
84
84
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
@@ -104,7 +104,7 @@ const serializeAws_restJson1GetSigningPlatformCommand = async (input, context) =
|
|
|
104
104
|
if (labelValue.length <= 0) {
|
|
105
105
|
throw new Error("Empty value provided for input HTTP label: platformId.");
|
|
106
106
|
}
|
|
107
|
-
resolvedPath = resolvedPath.replace("{platformId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
107
|
+
resolvedPath = resolvedPath.replace("{platformId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
108
108
|
}
|
|
109
109
|
else {
|
|
110
110
|
throw new Error("No value provided for input HTTP label: platformId.");
|
|
@@ -130,7 +130,7 @@ const serializeAws_restJson1GetSigningProfileCommand = async (input, context) =>
|
|
|
130
130
|
if (labelValue.length <= 0) {
|
|
131
131
|
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
132
132
|
}
|
|
133
|
-
resolvedPath = resolvedPath.replace("{profileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
133
|
+
resolvedPath = resolvedPath.replace("{profileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
134
134
|
}
|
|
135
135
|
else {
|
|
136
136
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
@@ -161,7 +161,7 @@ const serializeAws_restJson1ListProfilePermissionsCommand = async (input, contex
|
|
|
161
161
|
if (labelValue.length <= 0) {
|
|
162
162
|
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
163
163
|
}
|
|
164
|
-
resolvedPath = resolvedPath.replace("{profileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
164
|
+
resolvedPath = resolvedPath.replace("{profileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
165
165
|
}
|
|
166
166
|
else {
|
|
167
167
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
@@ -271,7 +271,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
271
271
|
if (labelValue.length <= 0) {
|
|
272
272
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
273
273
|
}
|
|
274
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
274
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
275
275
|
}
|
|
276
276
|
else {
|
|
277
277
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -299,7 +299,7 @@ const serializeAws_restJson1PutSigningProfileCommand = async (input, context) =>
|
|
|
299
299
|
if (labelValue.length <= 0) {
|
|
300
300
|
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
301
301
|
}
|
|
302
|
-
resolvedPath = resolvedPath.replace("{profileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
302
|
+
resolvedPath = resolvedPath.replace("{profileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
303
303
|
}
|
|
304
304
|
else {
|
|
305
305
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
@@ -346,7 +346,7 @@ const serializeAws_restJson1RemoveProfilePermissionCommand = async (input, conte
|
|
|
346
346
|
if (labelValue.length <= 0) {
|
|
347
347
|
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
348
348
|
}
|
|
349
|
-
resolvedPath = resolvedPath.replace("{profileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
349
|
+
resolvedPath = resolvedPath.replace("{profileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
350
350
|
}
|
|
351
351
|
else {
|
|
352
352
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
@@ -356,7 +356,7 @@ const serializeAws_restJson1RemoveProfilePermissionCommand = async (input, conte
|
|
|
356
356
|
if (labelValue.length <= 0) {
|
|
357
357
|
throw new Error("Empty value provided for input HTTP label: statementId.");
|
|
358
358
|
}
|
|
359
|
-
resolvedPath = resolvedPath.replace("{statementId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
359
|
+
resolvedPath = resolvedPath.replace("{statementId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
360
360
|
}
|
|
361
361
|
else {
|
|
362
362
|
throw new Error("No value provided for input HTTP label: statementId.");
|
|
@@ -388,7 +388,7 @@ const serializeAws_restJson1RevokeSignatureCommand = async (input, context) => {
|
|
|
388
388
|
if (labelValue.length <= 0) {
|
|
389
389
|
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
390
390
|
}
|
|
391
|
-
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
391
|
+
resolvedPath = resolvedPath.replace("{jobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
392
392
|
}
|
|
393
393
|
else {
|
|
394
394
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
@@ -420,7 +420,7 @@ const serializeAws_restJson1RevokeSigningProfileCommand = async (input, context)
|
|
|
420
420
|
if (labelValue.length <= 0) {
|
|
421
421
|
throw new Error("Empty value provided for input HTTP label: profileName.");
|
|
422
422
|
}
|
|
423
|
-
resolvedPath = resolvedPath.replace("{profileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
423
|
+
resolvedPath = resolvedPath.replace("{profileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
424
424
|
}
|
|
425
425
|
else {
|
|
426
426
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
@@ -453,7 +453,7 @@ const serializeAws_restJson1StartSigningJobCommand = async (input, context) => {
|
|
|
453
453
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/signing-jobs";
|
|
454
454
|
let body;
|
|
455
455
|
body = JSON.stringify({
|
|
456
|
-
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
456
|
+
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
457
457
|
...(input.destination !== undefined &&
|
|
458
458
|
input.destination !== null && { destination: serializeAws_restJson1Destination(input.destination, context) }),
|
|
459
459
|
...(input.profileName !== undefined && input.profileName !== null && { profileName: input.profileName }),
|
|
@@ -483,7 +483,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
483
483
|
if (labelValue.length <= 0) {
|
|
484
484
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
485
485
|
}
|
|
486
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
486
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
487
487
|
}
|
|
488
488
|
else {
|
|
489
489
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -512,7 +512,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
512
512
|
if (labelValue.length <= 0) {
|
|
513
513
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
514
514
|
}
|
|
515
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
515
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
516
516
|
}
|
|
517
517
|
else {
|
|
518
518
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -541,9 +541,9 @@ const deserializeAws_restJson1AddProfilePermissionCommand = async (output, conte
|
|
|
541
541
|
$metadata: deserializeMetadata(output),
|
|
542
542
|
revisionId: undefined,
|
|
543
543
|
};
|
|
544
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
544
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
545
545
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
546
|
-
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
546
|
+
contents.revisionId = (0, smithy_client_1.expectString)(data.revisionId);
|
|
547
547
|
}
|
|
548
548
|
return Promise.resolve(contents);
|
|
549
549
|
};
|
|
@@ -585,7 +585,7 @@ const deserializeAws_restJson1AddProfilePermissionCommandError = async (output,
|
|
|
585
585
|
$fault: "client",
|
|
586
586
|
$metadata: deserializeMetadata(output),
|
|
587
587
|
});
|
|
588
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
588
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
589
589
|
}
|
|
590
590
|
};
|
|
591
591
|
const deserializeAws_restJson1CancelSigningProfileCommand = async (output, context) => {
|
|
@@ -627,7 +627,7 @@ const deserializeAws_restJson1CancelSigningProfileCommandError = async (output,
|
|
|
627
627
|
$fault: "client",
|
|
628
628
|
$metadata: deserializeMetadata(output),
|
|
629
629
|
});
|
|
630
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
630
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
631
631
|
}
|
|
632
632
|
};
|
|
633
633
|
const deserializeAws_restJson1DescribeSigningJobCommand = async (output, context) => {
|
|
@@ -656,45 +656,45 @@ const deserializeAws_restJson1DescribeSigningJobCommand = async (output, context
|
|
|
656
656
|
status: undefined,
|
|
657
657
|
statusReason: undefined,
|
|
658
658
|
};
|
|
659
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
659
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
660
660
|
if (data.completedAt !== undefined && data.completedAt !== null) {
|
|
661
|
-
contents.completedAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.completedAt)));
|
|
661
|
+
contents.completedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.completedAt)));
|
|
662
662
|
}
|
|
663
663
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
664
|
-
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.createdAt)));
|
|
664
|
+
contents.createdAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.createdAt)));
|
|
665
665
|
}
|
|
666
666
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
667
|
-
contents.jobId = smithy_client_1.expectString(data.jobId);
|
|
667
|
+
contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
|
|
668
668
|
}
|
|
669
669
|
if (data.jobInvoker !== undefined && data.jobInvoker !== null) {
|
|
670
|
-
contents.jobInvoker = smithy_client_1.expectString(data.jobInvoker);
|
|
670
|
+
contents.jobInvoker = (0, smithy_client_1.expectString)(data.jobInvoker);
|
|
671
671
|
}
|
|
672
672
|
if (data.jobOwner !== undefined && data.jobOwner !== null) {
|
|
673
|
-
contents.jobOwner = smithy_client_1.expectString(data.jobOwner);
|
|
673
|
+
contents.jobOwner = (0, smithy_client_1.expectString)(data.jobOwner);
|
|
674
674
|
}
|
|
675
675
|
if (data.overrides !== undefined && data.overrides !== null) {
|
|
676
676
|
contents.overrides = deserializeAws_restJson1SigningPlatformOverrides(data.overrides, context);
|
|
677
677
|
}
|
|
678
678
|
if (data.platformDisplayName !== undefined && data.platformDisplayName !== null) {
|
|
679
|
-
contents.platformDisplayName = smithy_client_1.expectString(data.platformDisplayName);
|
|
679
|
+
contents.platformDisplayName = (0, smithy_client_1.expectString)(data.platformDisplayName);
|
|
680
680
|
}
|
|
681
681
|
if (data.platformId !== undefined && data.platformId !== null) {
|
|
682
|
-
contents.platformId = smithy_client_1.expectString(data.platformId);
|
|
682
|
+
contents.platformId = (0, smithy_client_1.expectString)(data.platformId);
|
|
683
683
|
}
|
|
684
684
|
if (data.profileName !== undefined && data.profileName !== null) {
|
|
685
|
-
contents.profileName = smithy_client_1.expectString(data.profileName);
|
|
685
|
+
contents.profileName = (0, smithy_client_1.expectString)(data.profileName);
|
|
686
686
|
}
|
|
687
687
|
if (data.profileVersion !== undefined && data.profileVersion !== null) {
|
|
688
|
-
contents.profileVersion = smithy_client_1.expectString(data.profileVersion);
|
|
688
|
+
contents.profileVersion = (0, smithy_client_1.expectString)(data.profileVersion);
|
|
689
689
|
}
|
|
690
690
|
if (data.requestedBy !== undefined && data.requestedBy !== null) {
|
|
691
|
-
contents.requestedBy = smithy_client_1.expectString(data.requestedBy);
|
|
691
|
+
contents.requestedBy = (0, smithy_client_1.expectString)(data.requestedBy);
|
|
692
692
|
}
|
|
693
693
|
if (data.revocationRecord !== undefined && data.revocationRecord !== null) {
|
|
694
694
|
contents.revocationRecord = deserializeAws_restJson1SigningJobRevocationRecord(data.revocationRecord, context);
|
|
695
695
|
}
|
|
696
696
|
if (data.signatureExpiresAt !== undefined && data.signatureExpiresAt !== null) {
|
|
697
|
-
contents.signatureExpiresAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.signatureExpiresAt)));
|
|
697
|
+
contents.signatureExpiresAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.signatureExpiresAt)));
|
|
698
698
|
}
|
|
699
699
|
if (data.signedObject !== undefined && data.signedObject !== null) {
|
|
700
700
|
contents.signedObject = deserializeAws_restJson1SignedObject(data.signedObject, context);
|
|
@@ -709,10 +709,10 @@ const deserializeAws_restJson1DescribeSigningJobCommand = async (output, context
|
|
|
709
709
|
contents.source = deserializeAws_restJson1Source(data.source, context);
|
|
710
710
|
}
|
|
711
711
|
if (data.status !== undefined && data.status !== null) {
|
|
712
|
-
contents.status = smithy_client_1.expectString(data.status);
|
|
712
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
713
713
|
}
|
|
714
714
|
if (data.statusReason !== undefined && data.statusReason !== null) {
|
|
715
|
-
contents.statusReason = smithy_client_1.expectString(data.statusReason);
|
|
715
|
+
contents.statusReason = (0, smithy_client_1.expectString)(data.statusReason);
|
|
716
716
|
}
|
|
717
717
|
return Promise.resolve(contents);
|
|
718
718
|
};
|
|
@@ -745,7 +745,7 @@ const deserializeAws_restJson1DescribeSigningJobCommandError = async (output, co
|
|
|
745
745
|
$fault: "client",
|
|
746
746
|
$metadata: deserializeMetadata(output),
|
|
747
747
|
});
|
|
748
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
748
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
751
|
const deserializeAws_restJson1GetSigningPlatformCommand = async (output, context) => {
|
|
@@ -764,24 +764,24 @@ const deserializeAws_restJson1GetSigningPlatformCommand = async (output, context
|
|
|
764
764
|
signingImageFormat: undefined,
|
|
765
765
|
target: undefined,
|
|
766
766
|
};
|
|
767
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
767
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
768
768
|
if (data.category !== undefined && data.category !== null) {
|
|
769
|
-
contents.category = smithy_client_1.expectString(data.category);
|
|
769
|
+
contents.category = (0, smithy_client_1.expectString)(data.category);
|
|
770
770
|
}
|
|
771
771
|
if (data.displayName !== undefined && data.displayName !== null) {
|
|
772
|
-
contents.displayName = smithy_client_1.expectString(data.displayName);
|
|
772
|
+
contents.displayName = (0, smithy_client_1.expectString)(data.displayName);
|
|
773
773
|
}
|
|
774
774
|
if (data.maxSizeInMB !== undefined && data.maxSizeInMB !== null) {
|
|
775
|
-
contents.maxSizeInMB = smithy_client_1.expectInt32(data.maxSizeInMB);
|
|
775
|
+
contents.maxSizeInMB = (0, smithy_client_1.expectInt32)(data.maxSizeInMB);
|
|
776
776
|
}
|
|
777
777
|
if (data.partner !== undefined && data.partner !== null) {
|
|
778
|
-
contents.partner = smithy_client_1.expectString(data.partner);
|
|
778
|
+
contents.partner = (0, smithy_client_1.expectString)(data.partner);
|
|
779
779
|
}
|
|
780
780
|
if (data.platformId !== undefined && data.platformId !== null) {
|
|
781
|
-
contents.platformId = smithy_client_1.expectString(data.platformId);
|
|
781
|
+
contents.platformId = (0, smithy_client_1.expectString)(data.platformId);
|
|
782
782
|
}
|
|
783
783
|
if (data.revocationSupported !== undefined && data.revocationSupported !== null) {
|
|
784
|
-
contents.revocationSupported = smithy_client_1.expectBoolean(data.revocationSupported);
|
|
784
|
+
contents.revocationSupported = (0, smithy_client_1.expectBoolean)(data.revocationSupported);
|
|
785
785
|
}
|
|
786
786
|
if (data.signingConfiguration !== undefined && data.signingConfiguration !== null) {
|
|
787
787
|
contents.signingConfiguration = deserializeAws_restJson1SigningConfiguration(data.signingConfiguration, context);
|
|
@@ -790,7 +790,7 @@ const deserializeAws_restJson1GetSigningPlatformCommand = async (output, context
|
|
|
790
790
|
contents.signingImageFormat = deserializeAws_restJson1SigningImageFormat(data.signingImageFormat, context);
|
|
791
791
|
}
|
|
792
792
|
if (data.target !== undefined && data.target !== null) {
|
|
793
|
-
contents.target = smithy_client_1.expectString(data.target);
|
|
793
|
+
contents.target = (0, smithy_client_1.expectString)(data.target);
|
|
794
794
|
}
|
|
795
795
|
return Promise.resolve(contents);
|
|
796
796
|
};
|
|
@@ -823,7 +823,7 @@ const deserializeAws_restJson1GetSigningPlatformCommandError = async (output, co
|
|
|
823
823
|
$fault: "client",
|
|
824
824
|
$metadata: deserializeMetadata(output),
|
|
825
825
|
});
|
|
826
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
826
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
829
|
const deserializeAws_restJson1GetSigningProfileCommand = async (output, context) => {
|
|
@@ -847,27 +847,27 @@ const deserializeAws_restJson1GetSigningProfileCommand = async (output, context)
|
|
|
847
847
|
statusReason: undefined,
|
|
848
848
|
tags: undefined,
|
|
849
849
|
};
|
|
850
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
850
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
851
851
|
if (data.arn !== undefined && data.arn !== null) {
|
|
852
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
852
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
853
853
|
}
|
|
854
854
|
if (data.overrides !== undefined && data.overrides !== null) {
|
|
855
855
|
contents.overrides = deserializeAws_restJson1SigningPlatformOverrides(data.overrides, context);
|
|
856
856
|
}
|
|
857
857
|
if (data.platformDisplayName !== undefined && data.platformDisplayName !== null) {
|
|
858
|
-
contents.platformDisplayName = smithy_client_1.expectString(data.platformDisplayName);
|
|
858
|
+
contents.platformDisplayName = (0, smithy_client_1.expectString)(data.platformDisplayName);
|
|
859
859
|
}
|
|
860
860
|
if (data.platformId !== undefined && data.platformId !== null) {
|
|
861
|
-
contents.platformId = smithy_client_1.expectString(data.platformId);
|
|
861
|
+
contents.platformId = (0, smithy_client_1.expectString)(data.platformId);
|
|
862
862
|
}
|
|
863
863
|
if (data.profileName !== undefined && data.profileName !== null) {
|
|
864
|
-
contents.profileName = smithy_client_1.expectString(data.profileName);
|
|
864
|
+
contents.profileName = (0, smithy_client_1.expectString)(data.profileName);
|
|
865
865
|
}
|
|
866
866
|
if (data.profileVersion !== undefined && data.profileVersion !== null) {
|
|
867
|
-
contents.profileVersion = smithy_client_1.expectString(data.profileVersion);
|
|
867
|
+
contents.profileVersion = (0, smithy_client_1.expectString)(data.profileVersion);
|
|
868
868
|
}
|
|
869
869
|
if (data.profileVersionArn !== undefined && data.profileVersionArn !== null) {
|
|
870
|
-
contents.profileVersionArn = smithy_client_1.expectString(data.profileVersionArn);
|
|
870
|
+
contents.profileVersionArn = (0, smithy_client_1.expectString)(data.profileVersionArn);
|
|
871
871
|
}
|
|
872
872
|
if (data.revocationRecord !== undefined && data.revocationRecord !== null) {
|
|
873
873
|
contents.revocationRecord = deserializeAws_restJson1SigningProfileRevocationRecord(data.revocationRecord, context);
|
|
@@ -882,10 +882,10 @@ const deserializeAws_restJson1GetSigningProfileCommand = async (output, context)
|
|
|
882
882
|
contents.signingParameters = deserializeAws_restJson1SigningParameters(data.signingParameters, context);
|
|
883
883
|
}
|
|
884
884
|
if (data.status !== undefined && data.status !== null) {
|
|
885
|
-
contents.status = smithy_client_1.expectString(data.status);
|
|
885
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
886
886
|
}
|
|
887
887
|
if (data.statusReason !== undefined && data.statusReason !== null) {
|
|
888
|
-
contents.statusReason = smithy_client_1.expectString(data.statusReason);
|
|
888
|
+
contents.statusReason = (0, smithy_client_1.expectString)(data.statusReason);
|
|
889
889
|
}
|
|
890
890
|
if (data.tags !== undefined && data.tags !== null) {
|
|
891
891
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
@@ -921,7 +921,7 @@ const deserializeAws_restJson1GetSigningProfileCommandError = async (output, con
|
|
|
921
921
|
$fault: "client",
|
|
922
922
|
$metadata: deserializeMetadata(output),
|
|
923
923
|
});
|
|
924
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
924
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
927
|
const deserializeAws_restJson1ListProfilePermissionsCommand = async (output, context) => {
|
|
@@ -935,18 +935,18 @@ const deserializeAws_restJson1ListProfilePermissionsCommand = async (output, con
|
|
|
935
935
|
policySizeBytes: undefined,
|
|
936
936
|
revisionId: undefined,
|
|
937
937
|
};
|
|
938
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
938
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
939
939
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
940
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
940
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
941
941
|
}
|
|
942
942
|
if (data.permissions !== undefined && data.permissions !== null) {
|
|
943
943
|
contents.permissions = deserializeAws_restJson1Permissions(data.permissions, context);
|
|
944
944
|
}
|
|
945
945
|
if (data.policySizeBytes !== undefined && data.policySizeBytes !== null) {
|
|
946
|
-
contents.policySizeBytes = smithy_client_1.expectInt32(data.policySizeBytes);
|
|
946
|
+
contents.policySizeBytes = (0, smithy_client_1.expectInt32)(data.policySizeBytes);
|
|
947
947
|
}
|
|
948
948
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
949
|
-
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
949
|
+
contents.revisionId = (0, smithy_client_1.expectString)(data.revisionId);
|
|
950
950
|
}
|
|
951
951
|
return Promise.resolve(contents);
|
|
952
952
|
};
|
|
@@ -982,7 +982,7 @@ const deserializeAws_restJson1ListProfilePermissionsCommandError = async (output
|
|
|
982
982
|
$fault: "client",
|
|
983
983
|
$metadata: deserializeMetadata(output),
|
|
984
984
|
});
|
|
985
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
985
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
const deserializeAws_restJson1ListSigningJobsCommand = async (output, context) => {
|
|
@@ -994,12 +994,12 @@ const deserializeAws_restJson1ListSigningJobsCommand = async (output, context) =
|
|
|
994
994
|
jobs: undefined,
|
|
995
995
|
nextToken: undefined,
|
|
996
996
|
};
|
|
997
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
997
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
998
998
|
if (data.jobs !== undefined && data.jobs !== null) {
|
|
999
999
|
contents.jobs = deserializeAws_restJson1SigningJobs(data.jobs, context);
|
|
1000
1000
|
}
|
|
1001
1001
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1002
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1002
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1003
1003
|
}
|
|
1004
1004
|
return Promise.resolve(contents);
|
|
1005
1005
|
};
|
|
@@ -1032,7 +1032,7 @@ const deserializeAws_restJson1ListSigningJobsCommandError = async (output, conte
|
|
|
1032
1032
|
$fault: "client",
|
|
1033
1033
|
$metadata: deserializeMetadata(output),
|
|
1034
1034
|
});
|
|
1035
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1035
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1036
1036
|
}
|
|
1037
1037
|
};
|
|
1038
1038
|
const deserializeAws_restJson1ListSigningPlatformsCommand = async (output, context) => {
|
|
@@ -1044,9 +1044,9 @@ const deserializeAws_restJson1ListSigningPlatformsCommand = async (output, conte
|
|
|
1044
1044
|
nextToken: undefined,
|
|
1045
1045
|
platforms: undefined,
|
|
1046
1046
|
};
|
|
1047
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1047
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1048
1048
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1049
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1049
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1050
1050
|
}
|
|
1051
1051
|
if (data.platforms !== undefined && data.platforms !== null) {
|
|
1052
1052
|
contents.platforms = deserializeAws_restJson1SigningPlatforms(data.platforms, context);
|
|
@@ -1082,7 +1082,7 @@ const deserializeAws_restJson1ListSigningPlatformsCommandError = async (output,
|
|
|
1082
1082
|
$fault: "client",
|
|
1083
1083
|
$metadata: deserializeMetadata(output),
|
|
1084
1084
|
});
|
|
1085
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1085
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
1088
|
const deserializeAws_restJson1ListSigningProfilesCommand = async (output, context) => {
|
|
@@ -1094,9 +1094,9 @@ const deserializeAws_restJson1ListSigningProfilesCommand = async (output, contex
|
|
|
1094
1094
|
nextToken: undefined,
|
|
1095
1095
|
profiles: undefined,
|
|
1096
1096
|
};
|
|
1097
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1097
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1098
1098
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1099
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1099
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1100
1100
|
}
|
|
1101
1101
|
if (data.profiles !== undefined && data.profiles !== null) {
|
|
1102
1102
|
contents.profiles = deserializeAws_restJson1SigningProfiles(data.profiles, context);
|
|
@@ -1129,7 +1129,7 @@ const deserializeAws_restJson1ListSigningProfilesCommandError = async (output, c
|
|
|
1129
1129
|
$fault: "client",
|
|
1130
1130
|
$metadata: deserializeMetadata(output),
|
|
1131
1131
|
});
|
|
1132
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1132
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1133
1133
|
}
|
|
1134
1134
|
};
|
|
1135
1135
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1140,7 +1140,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
1140
1140
|
$metadata: deserializeMetadata(output),
|
|
1141
1141
|
tags: undefined,
|
|
1142
1142
|
};
|
|
1143
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1143
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1144
1144
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1145
1145
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1146
1146
|
}
|
|
@@ -1175,7 +1175,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1175
1175
|
$fault: "client",
|
|
1176
1176
|
$metadata: deserializeMetadata(output),
|
|
1177
1177
|
});
|
|
1178
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1178
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1179
1179
|
}
|
|
1180
1180
|
};
|
|
1181
1181
|
const deserializeAws_restJson1PutSigningProfileCommand = async (output, context) => {
|
|
@@ -1188,15 +1188,15 @@ const deserializeAws_restJson1PutSigningProfileCommand = async (output, context)
|
|
|
1188
1188
|
profileVersion: undefined,
|
|
1189
1189
|
profileVersionArn: undefined,
|
|
1190
1190
|
};
|
|
1191
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1191
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1192
1192
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1193
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1193
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1194
1194
|
}
|
|
1195
1195
|
if (data.profileVersion !== undefined && data.profileVersion !== null) {
|
|
1196
|
-
contents.profileVersion = smithy_client_1.expectString(data.profileVersion);
|
|
1196
|
+
contents.profileVersion = (0, smithy_client_1.expectString)(data.profileVersion);
|
|
1197
1197
|
}
|
|
1198
1198
|
if (data.profileVersionArn !== undefined && data.profileVersionArn !== null) {
|
|
1199
|
-
contents.profileVersionArn = smithy_client_1.expectString(data.profileVersionArn);
|
|
1199
|
+
contents.profileVersionArn = (0, smithy_client_1.expectString)(data.profileVersionArn);
|
|
1200
1200
|
}
|
|
1201
1201
|
return Promise.resolve(contents);
|
|
1202
1202
|
};
|
|
@@ -1232,7 +1232,7 @@ const deserializeAws_restJson1PutSigningProfileCommandError = async (output, con
|
|
|
1232
1232
|
$fault: "client",
|
|
1233
1233
|
$metadata: deserializeMetadata(output),
|
|
1234
1234
|
});
|
|
1235
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1235
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
|
1238
1238
|
const deserializeAws_restJson1RemoveProfilePermissionCommand = async (output, context) => {
|
|
@@ -1243,9 +1243,9 @@ const deserializeAws_restJson1RemoveProfilePermissionCommand = async (output, co
|
|
|
1243
1243
|
$metadata: deserializeMetadata(output),
|
|
1244
1244
|
revisionId: undefined,
|
|
1245
1245
|
};
|
|
1246
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1246
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1247
1247
|
if (data.revisionId !== undefined && data.revisionId !== null) {
|
|
1248
|
-
contents.revisionId = smithy_client_1.expectString(data.revisionId);
|
|
1248
|
+
contents.revisionId = (0, smithy_client_1.expectString)(data.revisionId);
|
|
1249
1249
|
}
|
|
1250
1250
|
return Promise.resolve(contents);
|
|
1251
1251
|
};
|
|
@@ -1284,7 +1284,7 @@ const deserializeAws_restJson1RemoveProfilePermissionCommandError = async (outpu
|
|
|
1284
1284
|
$fault: "client",
|
|
1285
1285
|
$metadata: deserializeMetadata(output),
|
|
1286
1286
|
});
|
|
1287
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1287
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1288
1288
|
}
|
|
1289
1289
|
};
|
|
1290
1290
|
const deserializeAws_restJson1RevokeSignatureCommand = async (output, context) => {
|
|
@@ -1329,7 +1329,7 @@ const deserializeAws_restJson1RevokeSignatureCommandError = async (output, conte
|
|
|
1329
1329
|
$fault: "client",
|
|
1330
1330
|
$metadata: deserializeMetadata(output),
|
|
1331
1331
|
});
|
|
1332
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1332
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1333
1333
|
}
|
|
1334
1334
|
};
|
|
1335
1335
|
const deserializeAws_restJson1RevokeSigningProfileCommand = async (output, context) => {
|
|
@@ -1374,7 +1374,7 @@ const deserializeAws_restJson1RevokeSigningProfileCommandError = async (output,
|
|
|
1374
1374
|
$fault: "client",
|
|
1375
1375
|
$metadata: deserializeMetadata(output),
|
|
1376
1376
|
});
|
|
1377
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1377
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1378
1378
|
}
|
|
1379
1379
|
};
|
|
1380
1380
|
const deserializeAws_restJson1StartSigningJobCommand = async (output, context) => {
|
|
@@ -1386,12 +1386,12 @@ const deserializeAws_restJson1StartSigningJobCommand = async (output, context) =
|
|
|
1386
1386
|
jobId: undefined,
|
|
1387
1387
|
jobOwner: undefined,
|
|
1388
1388
|
};
|
|
1389
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1389
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1390
1390
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1391
|
-
contents.jobId = smithy_client_1.expectString(data.jobId);
|
|
1391
|
+
contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
|
|
1392
1392
|
}
|
|
1393
1393
|
if (data.jobOwner !== undefined && data.jobOwner !== null) {
|
|
1394
|
-
contents.jobOwner = smithy_client_1.expectString(data.jobOwner);
|
|
1394
|
+
contents.jobOwner = (0, smithy_client_1.expectString)(data.jobOwner);
|
|
1395
1395
|
}
|
|
1396
1396
|
return Promise.resolve(contents);
|
|
1397
1397
|
};
|
|
@@ -1430,7 +1430,7 @@ const deserializeAws_restJson1StartSigningJobCommandError = async (output, conte
|
|
|
1430
1430
|
$fault: "client",
|
|
1431
1431
|
$metadata: deserializeMetadata(output),
|
|
1432
1432
|
});
|
|
1433
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1433
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1434
1434
|
}
|
|
1435
1435
|
};
|
|
1436
1436
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -1472,7 +1472,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1472
1472
|
$fault: "client",
|
|
1473
1473
|
$metadata: deserializeMetadata(output),
|
|
1474
1474
|
});
|
|
1475
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1475
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1476
1476
|
}
|
|
1477
1477
|
};
|
|
1478
1478
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -1514,158 +1514,158 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1514
1514
|
$fault: "client",
|
|
1515
1515
|
$metadata: deserializeMetadata(output),
|
|
1516
1516
|
});
|
|
1517
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1517
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1518
1518
|
}
|
|
1519
1519
|
};
|
|
1520
1520
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1521
1521
|
const contents = {};
|
|
1522
1522
|
const data = parsedOutput.body;
|
|
1523
1523
|
if (data.code !== undefined && data.code !== null) {
|
|
1524
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1524
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1525
1525
|
}
|
|
1526
1526
|
if (data.message !== undefined && data.message !== null) {
|
|
1527
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1527
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1528
1528
|
}
|
|
1529
1529
|
const exception = new models_0_1.AccessDeniedException({
|
|
1530
1530
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1531
1531
|
...contents,
|
|
1532
1532
|
});
|
|
1533
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1533
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1534
1534
|
};
|
|
1535
1535
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1536
1536
|
const contents = {};
|
|
1537
1537
|
const data = parsedOutput.body;
|
|
1538
1538
|
if (data.code !== undefined && data.code !== null) {
|
|
1539
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1539
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1540
1540
|
}
|
|
1541
1541
|
if (data.message !== undefined && data.message !== null) {
|
|
1542
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1542
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1543
1543
|
}
|
|
1544
1544
|
const exception = new models_0_1.BadRequestException({
|
|
1545
1545
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1546
1546
|
...contents,
|
|
1547
1547
|
});
|
|
1548
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1548
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1549
1549
|
};
|
|
1550
1550
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1551
1551
|
const contents = {};
|
|
1552
1552
|
const data = parsedOutput.body;
|
|
1553
1553
|
if (data.code !== undefined && data.code !== null) {
|
|
1554
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1554
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1555
1555
|
}
|
|
1556
1556
|
if (data.message !== undefined && data.message !== null) {
|
|
1557
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1557
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1558
1558
|
}
|
|
1559
1559
|
const exception = new models_0_1.ConflictException({
|
|
1560
1560
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1561
1561
|
...contents,
|
|
1562
1562
|
});
|
|
1563
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1563
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1564
1564
|
};
|
|
1565
1565
|
const deserializeAws_restJson1InternalServiceErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1566
1566
|
const contents = {};
|
|
1567
1567
|
const data = parsedOutput.body;
|
|
1568
1568
|
if (data.code !== undefined && data.code !== null) {
|
|
1569
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1569
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1570
1570
|
}
|
|
1571
1571
|
if (data.message !== undefined && data.message !== null) {
|
|
1572
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1572
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1573
1573
|
}
|
|
1574
1574
|
const exception = new models_0_1.InternalServiceErrorException({
|
|
1575
1575
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1576
1576
|
...contents,
|
|
1577
1577
|
});
|
|
1578
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1578
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1579
1579
|
};
|
|
1580
1580
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1581
1581
|
const contents = {};
|
|
1582
1582
|
const data = parsedOutput.body;
|
|
1583
1583
|
if (data.code !== undefined && data.code !== null) {
|
|
1584
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1584
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1585
1585
|
}
|
|
1586
1586
|
if (data.message !== undefined && data.message !== null) {
|
|
1587
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1587
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1588
1588
|
}
|
|
1589
1589
|
const exception = new models_0_1.NotFoundException({
|
|
1590
1590
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1591
1591
|
...contents,
|
|
1592
1592
|
});
|
|
1593
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1593
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1594
1594
|
};
|
|
1595
1595
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1596
1596
|
const contents = {};
|
|
1597
1597
|
const data = parsedOutput.body;
|
|
1598
1598
|
if (data.code !== undefined && data.code !== null) {
|
|
1599
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1599
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1600
1600
|
}
|
|
1601
1601
|
if (data.message !== undefined && data.message !== null) {
|
|
1602
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1602
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1603
1603
|
}
|
|
1604
1604
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1605
1605
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1606
1606
|
...contents,
|
|
1607
1607
|
});
|
|
1608
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1608
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1609
1609
|
};
|
|
1610
1610
|
const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1611
1611
|
const contents = {};
|
|
1612
1612
|
const data = parsedOutput.body;
|
|
1613
1613
|
if (data.code !== undefined && data.code !== null) {
|
|
1614
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1614
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1615
1615
|
}
|
|
1616
1616
|
if (data.message !== undefined && data.message !== null) {
|
|
1617
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1617
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1618
1618
|
}
|
|
1619
1619
|
const exception = new models_0_1.ServiceLimitExceededException({
|
|
1620
1620
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1621
1621
|
...contents,
|
|
1622
1622
|
});
|
|
1623
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1623
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1624
1624
|
};
|
|
1625
1625
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1626
1626
|
const contents = {};
|
|
1627
1627
|
const data = parsedOutput.body;
|
|
1628
1628
|
if (data.code !== undefined && data.code !== null) {
|
|
1629
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1629
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1630
1630
|
}
|
|
1631
1631
|
if (data.message !== undefined && data.message !== null) {
|
|
1632
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1632
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1633
1633
|
}
|
|
1634
1634
|
const exception = new models_0_1.ThrottlingException({
|
|
1635
1635
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1636
1636
|
...contents,
|
|
1637
1637
|
});
|
|
1638
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1638
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1639
1639
|
};
|
|
1640
1640
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1641
1641
|
const contents = {};
|
|
1642
1642
|
const data = parsedOutput.body;
|
|
1643
1643
|
if (data.code !== undefined && data.code !== null) {
|
|
1644
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1644
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1645
1645
|
}
|
|
1646
1646
|
if (data.message !== undefined && data.message !== null) {
|
|
1647
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1647
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1648
1648
|
}
|
|
1649
1649
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1650
1650
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1651
1651
|
...contents,
|
|
1652
1652
|
});
|
|
1653
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1653
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1654
1654
|
};
|
|
1655
1655
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1656
1656
|
const contents = {};
|
|
1657
1657
|
const data = parsedOutput.body;
|
|
1658
1658
|
if (data.code !== undefined && data.code !== null) {
|
|
1659
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
1659
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
1660
1660
|
}
|
|
1661
1661
|
if (data.message !== undefined && data.message !== null) {
|
|
1662
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1662
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1663
1663
|
}
|
|
1664
1664
|
const exception = new models_0_1.ValidationException({
|
|
1665
1665
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1666
1666
|
...contents,
|
|
1667
1667
|
});
|
|
1668
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1668
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1669
1669
|
};
|
|
1670
1670
|
const serializeAws_restJson1Destination = (input, context) => {
|
|
1671
1671
|
return {
|
|
@@ -1746,7 +1746,7 @@ const deserializeAws_restJson1EncryptionAlgorithmOptions = (output, context) =>
|
|
|
1746
1746
|
allowedValues: output.allowedValues !== undefined && output.allowedValues !== null
|
|
1747
1747
|
? deserializeAws_restJson1EncryptionAlgorithms(output.allowedValues, context)
|
|
1748
1748
|
: undefined,
|
|
1749
|
-
defaultValue: smithy_client_1.expectString(output.defaultValue),
|
|
1749
|
+
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
1750
1750
|
};
|
|
1751
1751
|
};
|
|
1752
1752
|
const deserializeAws_restJson1EncryptionAlgorithms = (output, context) => {
|
|
@@ -1756,7 +1756,7 @@ const deserializeAws_restJson1EncryptionAlgorithms = (output, context) => {
|
|
|
1756
1756
|
if (entry === null) {
|
|
1757
1757
|
return null;
|
|
1758
1758
|
}
|
|
1759
|
-
return smithy_client_1.expectString(entry);
|
|
1759
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1760
1760
|
});
|
|
1761
1761
|
return retVal;
|
|
1762
1762
|
};
|
|
@@ -1765,7 +1765,7 @@ const deserializeAws_restJson1HashAlgorithmOptions = (output, context) => {
|
|
|
1765
1765
|
allowedValues: output.allowedValues !== undefined && output.allowedValues !== null
|
|
1766
1766
|
? deserializeAws_restJson1HashAlgorithms(output.allowedValues, context)
|
|
1767
1767
|
: undefined,
|
|
1768
|
-
defaultValue: smithy_client_1.expectString(output.defaultValue),
|
|
1768
|
+
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
1769
1769
|
};
|
|
1770
1770
|
};
|
|
1771
1771
|
const deserializeAws_restJson1HashAlgorithms = (output, context) => {
|
|
@@ -1775,7 +1775,7 @@ const deserializeAws_restJson1HashAlgorithms = (output, context) => {
|
|
|
1775
1775
|
if (entry === null) {
|
|
1776
1776
|
return null;
|
|
1777
1777
|
}
|
|
1778
|
-
return smithy_client_1.expectString(entry);
|
|
1778
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1779
1779
|
});
|
|
1780
1780
|
return retVal;
|
|
1781
1781
|
};
|
|
@@ -1786,16 +1786,16 @@ const deserializeAws_restJson1ImageFormats = (output, context) => {
|
|
|
1786
1786
|
if (entry === null) {
|
|
1787
1787
|
return null;
|
|
1788
1788
|
}
|
|
1789
|
-
return smithy_client_1.expectString(entry);
|
|
1789
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1790
1790
|
});
|
|
1791
1791
|
return retVal;
|
|
1792
1792
|
};
|
|
1793
1793
|
const deserializeAws_restJson1Permission = (output, context) => {
|
|
1794
1794
|
return {
|
|
1795
|
-
action: smithy_client_1.expectString(output.action),
|
|
1796
|
-
principal: smithy_client_1.expectString(output.principal),
|
|
1797
|
-
profileVersion: smithy_client_1.expectString(output.profileVersion),
|
|
1798
|
-
statementId: smithy_client_1.expectString(output.statementId),
|
|
1795
|
+
action: (0, smithy_client_1.expectString)(output.action),
|
|
1796
|
+
principal: (0, smithy_client_1.expectString)(output.principal),
|
|
1797
|
+
profileVersion: (0, smithy_client_1.expectString)(output.profileVersion),
|
|
1798
|
+
statementId: (0, smithy_client_1.expectString)(output.statementId),
|
|
1799
1799
|
};
|
|
1800
1800
|
};
|
|
1801
1801
|
const deserializeAws_restJson1Permissions = (output, context) => {
|
|
@@ -1811,21 +1811,21 @@ const deserializeAws_restJson1Permissions = (output, context) => {
|
|
|
1811
1811
|
};
|
|
1812
1812
|
const deserializeAws_restJson1S3SignedObject = (output, context) => {
|
|
1813
1813
|
return {
|
|
1814
|
-
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
1815
|
-
key: smithy_client_1.expectString(output.key),
|
|
1814
|
+
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
1815
|
+
key: (0, smithy_client_1.expectString)(output.key),
|
|
1816
1816
|
};
|
|
1817
1817
|
};
|
|
1818
1818
|
const deserializeAws_restJson1S3Source = (output, context) => {
|
|
1819
1819
|
return {
|
|
1820
|
-
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
1821
|
-
key: smithy_client_1.expectString(output.key),
|
|
1822
|
-
version: smithy_client_1.expectString(output.version),
|
|
1820
|
+
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
1821
|
+
key: (0, smithy_client_1.expectString)(output.key),
|
|
1822
|
+
version: (0, smithy_client_1.expectString)(output.version),
|
|
1823
1823
|
};
|
|
1824
1824
|
};
|
|
1825
1825
|
const deserializeAws_restJson1SignatureValidityPeriod = (output, context) => {
|
|
1826
1826
|
return {
|
|
1827
|
-
type: smithy_client_1.expectString(output.type),
|
|
1828
|
-
value: smithy_client_1.expectInt32(output.value),
|
|
1827
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1828
|
+
value: (0, smithy_client_1.expectInt32)(output.value),
|
|
1829
1829
|
};
|
|
1830
1830
|
};
|
|
1831
1831
|
const deserializeAws_restJson1SignedObject = (output, context) => {
|
|
@@ -1847,13 +1847,13 @@ const deserializeAws_restJson1SigningConfiguration = (output, context) => {
|
|
|
1847
1847
|
};
|
|
1848
1848
|
const deserializeAws_restJson1SigningConfigurationOverrides = (output, context) => {
|
|
1849
1849
|
return {
|
|
1850
|
-
encryptionAlgorithm: smithy_client_1.expectString(output.encryptionAlgorithm),
|
|
1851
|
-
hashAlgorithm: smithy_client_1.expectString(output.hashAlgorithm),
|
|
1850
|
+
encryptionAlgorithm: (0, smithy_client_1.expectString)(output.encryptionAlgorithm),
|
|
1851
|
+
hashAlgorithm: (0, smithy_client_1.expectString)(output.hashAlgorithm),
|
|
1852
1852
|
};
|
|
1853
1853
|
};
|
|
1854
1854
|
const deserializeAws_restJson1SigningImageFormat = (output, context) => {
|
|
1855
1855
|
return {
|
|
1856
|
-
defaultFormat: smithy_client_1.expectString(output.defaultFormat),
|
|
1856
|
+
defaultFormat: (0, smithy_client_1.expectString)(output.defaultFormat),
|
|
1857
1857
|
supportedFormats: output.supportedFormats !== undefined && output.supportedFormats !== null
|
|
1858
1858
|
? deserializeAws_restJson1ImageFormats(output.supportedFormats, context)
|
|
1859
1859
|
: undefined,
|
|
@@ -1862,18 +1862,18 @@ const deserializeAws_restJson1SigningImageFormat = (output, context) => {
|
|
|
1862
1862
|
const deserializeAws_restJson1SigningJob = (output, context) => {
|
|
1863
1863
|
return {
|
|
1864
1864
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
1865
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
1865
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
1866
1866
|
: undefined,
|
|
1867
|
-
isRevoked: smithy_client_1.expectBoolean(output.isRevoked),
|
|
1868
|
-
jobId: smithy_client_1.expectString(output.jobId),
|
|
1869
|
-
jobInvoker: smithy_client_1.expectString(output.jobInvoker),
|
|
1870
|
-
jobOwner: smithy_client_1.expectString(output.jobOwner),
|
|
1871
|
-
platformDisplayName: smithy_client_1.expectString(output.platformDisplayName),
|
|
1872
|
-
platformId: smithy_client_1.expectString(output.platformId),
|
|
1873
|
-
profileName: smithy_client_1.expectString(output.profileName),
|
|
1874
|
-
profileVersion: smithy_client_1.expectString(output.profileVersion),
|
|
1867
|
+
isRevoked: (0, smithy_client_1.expectBoolean)(output.isRevoked),
|
|
1868
|
+
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1869
|
+
jobInvoker: (0, smithy_client_1.expectString)(output.jobInvoker),
|
|
1870
|
+
jobOwner: (0, smithy_client_1.expectString)(output.jobOwner),
|
|
1871
|
+
platformDisplayName: (0, smithy_client_1.expectString)(output.platformDisplayName),
|
|
1872
|
+
platformId: (0, smithy_client_1.expectString)(output.platformId),
|
|
1873
|
+
profileName: (0, smithy_client_1.expectString)(output.profileName),
|
|
1874
|
+
profileVersion: (0, smithy_client_1.expectString)(output.profileVersion),
|
|
1875
1875
|
signatureExpiresAt: output.signatureExpiresAt !== undefined && output.signatureExpiresAt !== null
|
|
1876
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.signatureExpiresAt)))
|
|
1876
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.signatureExpiresAt)))
|
|
1877
1877
|
: undefined,
|
|
1878
1878
|
signedObject: output.signedObject !== undefined && output.signedObject !== null
|
|
1879
1879
|
? deserializeAws_restJson1SignedObject(output.signedObject, context)
|
|
@@ -1884,16 +1884,16 @@ const deserializeAws_restJson1SigningJob = (output, context) => {
|
|
|
1884
1884
|
source: output.source !== undefined && output.source !== null
|
|
1885
1885
|
? deserializeAws_restJson1Source(output.source, context)
|
|
1886
1886
|
: undefined,
|
|
1887
|
-
status: smithy_client_1.expectString(output.status),
|
|
1887
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1888
1888
|
};
|
|
1889
1889
|
};
|
|
1890
1890
|
const deserializeAws_restJson1SigningJobRevocationRecord = (output, context) => {
|
|
1891
1891
|
return {
|
|
1892
|
-
reason: smithy_client_1.expectString(output.reason),
|
|
1892
|
+
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
1893
1893
|
revokedAt: output.revokedAt !== undefined && output.revokedAt !== null
|
|
1894
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.revokedAt)))
|
|
1894
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt)))
|
|
1895
1895
|
: undefined,
|
|
1896
|
-
revokedBy: smithy_client_1.expectString(output.revokedBy),
|
|
1896
|
+
revokedBy: (0, smithy_client_1.expectString)(output.revokedBy),
|
|
1897
1897
|
};
|
|
1898
1898
|
};
|
|
1899
1899
|
const deserializeAws_restJson1SigningJobs = (output, context) => {
|
|
@@ -1909,7 +1909,7 @@ const deserializeAws_restJson1SigningJobs = (output, context) => {
|
|
|
1909
1909
|
};
|
|
1910
1910
|
const deserializeAws_restJson1SigningMaterial = (output, context) => {
|
|
1911
1911
|
return {
|
|
1912
|
-
certificateArn: smithy_client_1.expectString(output.certificateArn),
|
|
1912
|
+
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
1913
1913
|
};
|
|
1914
1914
|
};
|
|
1915
1915
|
const deserializeAws_restJson1SigningParameters = (output, context) => {
|
|
@@ -1919,25 +1919,25 @@ const deserializeAws_restJson1SigningParameters = (output, context) => {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
return {
|
|
1921
1921
|
...acc,
|
|
1922
|
-
[key]: smithy_client_1.expectString(value),
|
|
1922
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1923
1923
|
};
|
|
1924
1924
|
}, {});
|
|
1925
1925
|
};
|
|
1926
1926
|
const deserializeAws_restJson1SigningPlatform = (output, context) => {
|
|
1927
1927
|
return {
|
|
1928
|
-
category: smithy_client_1.expectString(output.category),
|
|
1929
|
-
displayName: smithy_client_1.expectString(output.displayName),
|
|
1930
|
-
maxSizeInMB: smithy_client_1.expectInt32(output.maxSizeInMB),
|
|
1931
|
-
partner: smithy_client_1.expectString(output.partner),
|
|
1932
|
-
platformId: smithy_client_1.expectString(output.platformId),
|
|
1933
|
-
revocationSupported: smithy_client_1.expectBoolean(output.revocationSupported),
|
|
1928
|
+
category: (0, smithy_client_1.expectString)(output.category),
|
|
1929
|
+
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
1930
|
+
maxSizeInMB: (0, smithy_client_1.expectInt32)(output.maxSizeInMB),
|
|
1931
|
+
partner: (0, smithy_client_1.expectString)(output.partner),
|
|
1932
|
+
platformId: (0, smithy_client_1.expectString)(output.platformId),
|
|
1933
|
+
revocationSupported: (0, smithy_client_1.expectBoolean)(output.revocationSupported),
|
|
1934
1934
|
signingConfiguration: output.signingConfiguration !== undefined && output.signingConfiguration !== null
|
|
1935
1935
|
? deserializeAws_restJson1SigningConfiguration(output.signingConfiguration, context)
|
|
1936
1936
|
: undefined,
|
|
1937
1937
|
signingImageFormat: output.signingImageFormat !== undefined && output.signingImageFormat !== null
|
|
1938
1938
|
? deserializeAws_restJson1SigningImageFormat(output.signingImageFormat, context)
|
|
1939
1939
|
: undefined,
|
|
1940
|
-
target: smithy_client_1.expectString(output.target),
|
|
1940
|
+
target: (0, smithy_client_1.expectString)(output.target),
|
|
1941
1941
|
};
|
|
1942
1942
|
};
|
|
1943
1943
|
const deserializeAws_restJson1SigningPlatformOverrides = (output, context) => {
|
|
@@ -1945,7 +1945,7 @@ const deserializeAws_restJson1SigningPlatformOverrides = (output, context) => {
|
|
|
1945
1945
|
signingConfiguration: output.signingConfiguration !== undefined && output.signingConfiguration !== null
|
|
1946
1946
|
? deserializeAws_restJson1SigningConfigurationOverrides(output.signingConfiguration, context)
|
|
1947
1947
|
: undefined,
|
|
1948
|
-
signingImageFormat: smithy_client_1.expectString(output.signingImageFormat),
|
|
1948
|
+
signingImageFormat: (0, smithy_client_1.expectString)(output.signingImageFormat),
|
|
1949
1949
|
};
|
|
1950
1950
|
};
|
|
1951
1951
|
const deserializeAws_restJson1SigningPlatforms = (output, context) => {
|
|
@@ -1961,12 +1961,12 @@ const deserializeAws_restJson1SigningPlatforms = (output, context) => {
|
|
|
1961
1961
|
};
|
|
1962
1962
|
const deserializeAws_restJson1SigningProfile = (output, context) => {
|
|
1963
1963
|
return {
|
|
1964
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
1965
|
-
platformDisplayName: smithy_client_1.expectString(output.platformDisplayName),
|
|
1966
|
-
platformId: smithy_client_1.expectString(output.platformId),
|
|
1967
|
-
profileName: smithy_client_1.expectString(output.profileName),
|
|
1968
|
-
profileVersion: smithy_client_1.expectString(output.profileVersion),
|
|
1969
|
-
profileVersionArn: smithy_client_1.expectString(output.profileVersionArn),
|
|
1964
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1965
|
+
platformDisplayName: (0, smithy_client_1.expectString)(output.platformDisplayName),
|
|
1966
|
+
platformId: (0, smithy_client_1.expectString)(output.platformId),
|
|
1967
|
+
profileName: (0, smithy_client_1.expectString)(output.profileName),
|
|
1968
|
+
profileVersion: (0, smithy_client_1.expectString)(output.profileVersion),
|
|
1969
|
+
profileVersionArn: (0, smithy_client_1.expectString)(output.profileVersionArn),
|
|
1970
1970
|
signatureValidityPeriod: output.signatureValidityPeriod !== undefined && output.signatureValidityPeriod !== null
|
|
1971
1971
|
? deserializeAws_restJson1SignatureValidityPeriod(output.signatureValidityPeriod, context)
|
|
1972
1972
|
: undefined,
|
|
@@ -1976,7 +1976,7 @@ const deserializeAws_restJson1SigningProfile = (output, context) => {
|
|
|
1976
1976
|
signingParameters: output.signingParameters !== undefined && output.signingParameters !== null
|
|
1977
1977
|
? deserializeAws_restJson1SigningParameters(output.signingParameters, context)
|
|
1978
1978
|
: undefined,
|
|
1979
|
-
status: smithy_client_1.expectString(output.status),
|
|
1979
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1980
1980
|
tags: output.tags !== undefined && output.tags !== null
|
|
1981
1981
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1982
1982
|
: undefined,
|
|
@@ -1985,12 +1985,12 @@ const deserializeAws_restJson1SigningProfile = (output, context) => {
|
|
|
1985
1985
|
const deserializeAws_restJson1SigningProfileRevocationRecord = (output, context) => {
|
|
1986
1986
|
return {
|
|
1987
1987
|
revocationEffectiveFrom: output.revocationEffectiveFrom !== undefined && output.revocationEffectiveFrom !== null
|
|
1988
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.revocationEffectiveFrom)))
|
|
1988
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revocationEffectiveFrom)))
|
|
1989
1989
|
: undefined,
|
|
1990
1990
|
revokedAt: output.revokedAt !== undefined && output.revokedAt !== null
|
|
1991
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.revokedAt)))
|
|
1991
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt)))
|
|
1992
1992
|
: undefined,
|
|
1993
|
-
revokedBy: smithy_client_1.expectString(output.revokedBy),
|
|
1993
|
+
revokedBy: (0, smithy_client_1.expectString)(output.revokedBy),
|
|
1994
1994
|
};
|
|
1995
1995
|
};
|
|
1996
1996
|
const deserializeAws_restJson1SigningProfiles = (output, context) => {
|
|
@@ -2016,7 +2016,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
return {
|
|
2018
2018
|
...acc,
|
|
2019
|
-
[key]: smithy_client_1.expectString(value),
|
|
2019
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
2020
2020
|
};
|
|
2021
2021
|
}, {});
|
|
2022
2022
|
};
|