@aws-sdk/client-signer 3.121.0 → 3.130.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 +60 -86
- package/dist-es/protocols/Aws_restJson1.js +44 -70
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-signer
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-signer
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -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,
|
|
@@ -1686,39 +1677,37 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1686
1677
|
};
|
|
1687
1678
|
const serializeAws_restJson1Destination = (input, context) => {
|
|
1688
1679
|
return {
|
|
1689
|
-
...(input.s3
|
|
1680
|
+
...(input.s3 != null && { s3: serializeAws_restJson1S3Destination(input.s3, context) }),
|
|
1690
1681
|
};
|
|
1691
1682
|
};
|
|
1692
1683
|
const serializeAws_restJson1S3Destination = (input, context) => {
|
|
1693
1684
|
return {
|
|
1694
|
-
...(input.bucketName
|
|
1695
|
-
...(input.prefix
|
|
1685
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1686
|
+
...(input.prefix != null && { prefix: input.prefix }),
|
|
1696
1687
|
};
|
|
1697
1688
|
};
|
|
1698
1689
|
const serializeAws_restJson1S3Source = (input, context) => {
|
|
1699
1690
|
return {
|
|
1700
|
-
...(input.bucketName
|
|
1701
|
-
...(input.key
|
|
1702
|
-
...(input.version
|
|
1691
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1692
|
+
...(input.key != null && { key: input.key }),
|
|
1693
|
+
...(input.version != null && { version: input.version }),
|
|
1703
1694
|
};
|
|
1704
1695
|
};
|
|
1705
1696
|
const serializeAws_restJson1SignatureValidityPeriod = (input, context) => {
|
|
1706
1697
|
return {
|
|
1707
|
-
...(input.type
|
|
1708
|
-
...(input.value
|
|
1698
|
+
...(input.type != null && { type: input.type }),
|
|
1699
|
+
...(input.value != null && { value: input.value }),
|
|
1709
1700
|
};
|
|
1710
1701
|
};
|
|
1711
1702
|
const serializeAws_restJson1SigningConfigurationOverrides = (input, context) => {
|
|
1712
1703
|
return {
|
|
1713
|
-
...(input.encryptionAlgorithm
|
|
1714
|
-
|
|
1715
|
-
...(input.hashAlgorithm !== undefined && input.hashAlgorithm !== null && { hashAlgorithm: input.hashAlgorithm }),
|
|
1704
|
+
...(input.encryptionAlgorithm != null && { encryptionAlgorithm: input.encryptionAlgorithm }),
|
|
1705
|
+
...(input.hashAlgorithm != null && { hashAlgorithm: input.hashAlgorithm }),
|
|
1716
1706
|
};
|
|
1717
1707
|
};
|
|
1718
1708
|
const serializeAws_restJson1SigningMaterial = (input, context) => {
|
|
1719
1709
|
return {
|
|
1720
|
-
...(input.certificateArn
|
|
1721
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn }),
|
|
1710
|
+
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
1722
1711
|
};
|
|
1723
1712
|
};
|
|
1724
1713
|
const serializeAws_restJson1SigningParameters = (input, context) => {
|
|
@@ -1734,17 +1723,15 @@ const serializeAws_restJson1SigningParameters = (input, context) => {
|
|
|
1734
1723
|
};
|
|
1735
1724
|
const serializeAws_restJson1SigningPlatformOverrides = (input, context) => {
|
|
1736
1725
|
return {
|
|
1737
|
-
...(input.signingConfiguration
|
|
1738
|
-
input.signingConfiguration !== null && {
|
|
1726
|
+
...(input.signingConfiguration != null && {
|
|
1739
1727
|
signingConfiguration: serializeAws_restJson1SigningConfigurationOverrides(input.signingConfiguration, context),
|
|
1740
1728
|
}),
|
|
1741
|
-
...(input.signingImageFormat
|
|
1742
|
-
input.signingImageFormat !== null && { signingImageFormat: input.signingImageFormat }),
|
|
1729
|
+
...(input.signingImageFormat != null && { signingImageFormat: input.signingImageFormat }),
|
|
1743
1730
|
};
|
|
1744
1731
|
};
|
|
1745
1732
|
const serializeAws_restJson1Source = (input, context) => {
|
|
1746
1733
|
return {
|
|
1747
|
-
...(input.s3
|
|
1734
|
+
...(input.s3 != null && { s3: serializeAws_restJson1S3Source(input.s3, context) }),
|
|
1748
1735
|
};
|
|
1749
1736
|
};
|
|
1750
1737
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -1760,7 +1747,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1760
1747
|
};
|
|
1761
1748
|
const deserializeAws_restJson1EncryptionAlgorithmOptions = (output, context) => {
|
|
1762
1749
|
return {
|
|
1763
|
-
allowedValues: output.allowedValues
|
|
1750
|
+
allowedValues: output.allowedValues != null
|
|
1764
1751
|
? deserializeAws_restJson1EncryptionAlgorithms(output.allowedValues, context)
|
|
1765
1752
|
: undefined,
|
|
1766
1753
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
@@ -1779,9 +1766,7 @@ const deserializeAws_restJson1EncryptionAlgorithms = (output, context) => {
|
|
|
1779
1766
|
};
|
|
1780
1767
|
const deserializeAws_restJson1HashAlgorithmOptions = (output, context) => {
|
|
1781
1768
|
return {
|
|
1782
|
-
allowedValues: output.allowedValues
|
|
1783
|
-
? deserializeAws_restJson1HashAlgorithms(output.allowedValues, context)
|
|
1784
|
-
: undefined,
|
|
1769
|
+
allowedValues: output.allowedValues != null ? deserializeAws_restJson1HashAlgorithms(output.allowedValues, context) : undefined,
|
|
1785
1770
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
1786
1771
|
};
|
|
1787
1772
|
};
|
|
@@ -1847,17 +1832,15 @@ const deserializeAws_restJson1SignatureValidityPeriod = (output, context) => {
|
|
|
1847
1832
|
};
|
|
1848
1833
|
const deserializeAws_restJson1SignedObject = (output, context) => {
|
|
1849
1834
|
return {
|
|
1850
|
-
s3: output.s3
|
|
1851
|
-
? deserializeAws_restJson1S3SignedObject(output.s3, context)
|
|
1852
|
-
: undefined,
|
|
1835
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3SignedObject(output.s3, context) : undefined,
|
|
1853
1836
|
};
|
|
1854
1837
|
};
|
|
1855
1838
|
const deserializeAws_restJson1SigningConfiguration = (output, context) => {
|
|
1856
1839
|
return {
|
|
1857
|
-
encryptionAlgorithmOptions: output.encryptionAlgorithmOptions
|
|
1840
|
+
encryptionAlgorithmOptions: output.encryptionAlgorithmOptions != null
|
|
1858
1841
|
? deserializeAws_restJson1EncryptionAlgorithmOptions(output.encryptionAlgorithmOptions, context)
|
|
1859
1842
|
: undefined,
|
|
1860
|
-
hashAlgorithmOptions: output.hashAlgorithmOptions
|
|
1843
|
+
hashAlgorithmOptions: output.hashAlgorithmOptions != null
|
|
1861
1844
|
? deserializeAws_restJson1HashAlgorithmOptions(output.hashAlgorithmOptions, context)
|
|
1862
1845
|
: undefined,
|
|
1863
1846
|
};
|
|
@@ -1871,16 +1854,14 @@ const deserializeAws_restJson1SigningConfigurationOverrides = (output, context)
|
|
|
1871
1854
|
const deserializeAws_restJson1SigningImageFormat = (output, context) => {
|
|
1872
1855
|
return {
|
|
1873
1856
|
defaultFormat: (0, smithy_client_1.expectString)(output.defaultFormat),
|
|
1874
|
-
supportedFormats: output.supportedFormats
|
|
1857
|
+
supportedFormats: output.supportedFormats != null
|
|
1875
1858
|
? deserializeAws_restJson1ImageFormats(output.supportedFormats, context)
|
|
1876
1859
|
: undefined,
|
|
1877
1860
|
};
|
|
1878
1861
|
};
|
|
1879
1862
|
const deserializeAws_restJson1SigningJob = (output, context) => {
|
|
1880
1863
|
return {
|
|
1881
|
-
createdAt: output.createdAt
|
|
1882
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
1883
|
-
: undefined,
|
|
1864
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1884
1865
|
isRevoked: (0, smithy_client_1.expectBoolean)(output.isRevoked),
|
|
1885
1866
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1886
1867
|
jobInvoker: (0, smithy_client_1.expectString)(output.jobInvoker),
|
|
@@ -1889,27 +1870,21 @@ const deserializeAws_restJson1SigningJob = (output, context) => {
|
|
|
1889
1870
|
platformId: (0, smithy_client_1.expectString)(output.platformId),
|
|
1890
1871
|
profileName: (0, smithy_client_1.expectString)(output.profileName),
|
|
1891
1872
|
profileVersion: (0, smithy_client_1.expectString)(output.profileVersion),
|
|
1892
|
-
signatureExpiresAt: output.signatureExpiresAt
|
|
1873
|
+
signatureExpiresAt: output.signatureExpiresAt != null
|
|
1893
1874
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.signatureExpiresAt)))
|
|
1894
1875
|
: undefined,
|
|
1895
|
-
signedObject: output.signedObject
|
|
1896
|
-
|
|
1897
|
-
: undefined,
|
|
1898
|
-
signingMaterial: output.signingMaterial !== undefined && output.signingMaterial !== null
|
|
1876
|
+
signedObject: output.signedObject != null ? deserializeAws_restJson1SignedObject(output.signedObject, context) : undefined,
|
|
1877
|
+
signingMaterial: output.signingMaterial != null
|
|
1899
1878
|
? deserializeAws_restJson1SigningMaterial(output.signingMaterial, context)
|
|
1900
1879
|
: undefined,
|
|
1901
|
-
source: output.source
|
|
1902
|
-
? deserializeAws_restJson1Source(output.source, context)
|
|
1903
|
-
: undefined,
|
|
1880
|
+
source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
|
|
1904
1881
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1905
1882
|
};
|
|
1906
1883
|
};
|
|
1907
1884
|
const deserializeAws_restJson1SigningJobRevocationRecord = (output, context) => {
|
|
1908
1885
|
return {
|
|
1909
1886
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
1910
|
-
revokedAt: output.revokedAt
|
|
1911
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt)))
|
|
1912
|
-
: undefined,
|
|
1887
|
+
revokedAt: output.revokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt))) : undefined,
|
|
1913
1888
|
revokedBy: (0, smithy_client_1.expectString)(output.revokedBy),
|
|
1914
1889
|
};
|
|
1915
1890
|
};
|
|
@@ -1948,10 +1923,10 @@ const deserializeAws_restJson1SigningPlatform = (output, context) => {
|
|
|
1948
1923
|
partner: (0, smithy_client_1.expectString)(output.partner),
|
|
1949
1924
|
platformId: (0, smithy_client_1.expectString)(output.platformId),
|
|
1950
1925
|
revocationSupported: (0, smithy_client_1.expectBoolean)(output.revocationSupported),
|
|
1951
|
-
signingConfiguration: output.signingConfiguration
|
|
1926
|
+
signingConfiguration: output.signingConfiguration != null
|
|
1952
1927
|
? deserializeAws_restJson1SigningConfiguration(output.signingConfiguration, context)
|
|
1953
1928
|
: undefined,
|
|
1954
|
-
signingImageFormat: output.signingImageFormat
|
|
1929
|
+
signingImageFormat: output.signingImageFormat != null
|
|
1955
1930
|
? deserializeAws_restJson1SigningImageFormat(output.signingImageFormat, context)
|
|
1956
1931
|
: undefined,
|
|
1957
1932
|
target: (0, smithy_client_1.expectString)(output.target),
|
|
@@ -1959,7 +1934,7 @@ const deserializeAws_restJson1SigningPlatform = (output, context) => {
|
|
|
1959
1934
|
};
|
|
1960
1935
|
const deserializeAws_restJson1SigningPlatformOverrides = (output, context) => {
|
|
1961
1936
|
return {
|
|
1962
|
-
signingConfiguration: output.signingConfiguration
|
|
1937
|
+
signingConfiguration: output.signingConfiguration != null
|
|
1963
1938
|
? deserializeAws_restJson1SigningConfigurationOverrides(output.signingConfiguration, context)
|
|
1964
1939
|
: undefined,
|
|
1965
1940
|
signingImageFormat: (0, smithy_client_1.expectString)(output.signingImageFormat),
|
|
@@ -1984,29 +1959,25 @@ const deserializeAws_restJson1SigningProfile = (output, context) => {
|
|
|
1984
1959
|
profileName: (0, smithy_client_1.expectString)(output.profileName),
|
|
1985
1960
|
profileVersion: (0, smithy_client_1.expectString)(output.profileVersion),
|
|
1986
1961
|
profileVersionArn: (0, smithy_client_1.expectString)(output.profileVersionArn),
|
|
1987
|
-
signatureValidityPeriod: output.signatureValidityPeriod
|
|
1962
|
+
signatureValidityPeriod: output.signatureValidityPeriod != null
|
|
1988
1963
|
? deserializeAws_restJson1SignatureValidityPeriod(output.signatureValidityPeriod, context)
|
|
1989
1964
|
: undefined,
|
|
1990
|
-
signingMaterial: output.signingMaterial
|
|
1965
|
+
signingMaterial: output.signingMaterial != null
|
|
1991
1966
|
? deserializeAws_restJson1SigningMaterial(output.signingMaterial, context)
|
|
1992
1967
|
: undefined,
|
|
1993
|
-
signingParameters: output.signingParameters
|
|
1968
|
+
signingParameters: output.signingParameters != null
|
|
1994
1969
|
? deserializeAws_restJson1SigningParameters(output.signingParameters, context)
|
|
1995
1970
|
: undefined,
|
|
1996
1971
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1997
|
-
tags: output.tags
|
|
1998
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1999
|
-
: undefined,
|
|
1972
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
2000
1973
|
};
|
|
2001
1974
|
};
|
|
2002
1975
|
const deserializeAws_restJson1SigningProfileRevocationRecord = (output, context) => {
|
|
2003
1976
|
return {
|
|
2004
|
-
revocationEffectiveFrom: output.revocationEffectiveFrom
|
|
1977
|
+
revocationEffectiveFrom: output.revocationEffectiveFrom != null
|
|
2005
1978
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revocationEffectiveFrom)))
|
|
2006
1979
|
: undefined,
|
|
2007
|
-
revokedAt: output.revokedAt
|
|
2008
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt)))
|
|
2009
|
-
: undefined,
|
|
1980
|
+
revokedAt: output.revokedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.revokedAt))) : undefined,
|
|
2010
1981
|
revokedBy: (0, smithy_client_1.expectString)(output.revokedBy),
|
|
2011
1982
|
};
|
|
2012
1983
|
};
|
|
@@ -2023,7 +1994,7 @@ const deserializeAws_restJson1SigningProfiles = (output, context) => {
|
|
|
2023
1994
|
};
|
|
2024
1995
|
const deserializeAws_restJson1Source = (output, context) => {
|
|
2025
1996
|
return {
|
|
2026
|
-
s3: output.s3
|
|
1997
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3Source(output.s3, context) : undefined,
|
|
2027
1998
|
};
|
|
2028
1999
|
};
|
|
2029
2000
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -2068,6 +2039,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2068
2039
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2069
2040
|
const sanitizeErrorCode = (rawValue) => {
|
|
2070
2041
|
let cleanValue = rawValue;
|
|
2042
|
+
if (typeof cleanValue === "number") {
|
|
2043
|
+
cleanValue = cleanValue.toString();
|
|
2044
|
+
}
|
|
2071
2045
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2072
2046
|
cleanValue = cleanValue.split(":")[0];
|
|
2073
2047
|
}
|
|
@@ -26,8 +26,7 @@ export var serializeAws_restJson1AddProfilePermissionCommand = function (input,
|
|
|
26
26
|
else {
|
|
27
27
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
28
28
|
}
|
|
29
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.action
|
|
30
|
-
input.profileVersion !== null && { profileVersion: input.profileVersion })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId })), (input.statementId !== undefined && input.statementId !== null && { statementId: input.statementId })));
|
|
29
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.principal != null && { principal: input.principal })), (input.profileVersion != null && { profileVersion: input.profileVersion })), (input.revisionId != null && { revisionId: input.revisionId })), (input.statementId != null && { statementId: input.statementId })));
|
|
31
30
|
return [2, new __HttpRequest({
|
|
32
31
|
protocol: protocol,
|
|
33
32
|
hostname: hostname,
|
|
@@ -325,19 +324,15 @@ export var serializeAws_restJson1PutSigningProfileCommand = function (input, con
|
|
|
325
324
|
else {
|
|
326
325
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
327
326
|
}
|
|
328
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.overrides
|
|
329
|
-
input.overrides !== null && {
|
|
327
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.overrides != null && {
|
|
330
328
|
overrides: serializeAws_restJson1SigningPlatformOverrides(input.overrides, context),
|
|
331
|
-
})), (input.platformId
|
|
332
|
-
input.signatureValidityPeriod !== null && {
|
|
329
|
+
})), (input.platformId != null && { platformId: input.platformId })), (input.signatureValidityPeriod != null && {
|
|
333
330
|
signatureValidityPeriod: serializeAws_restJson1SignatureValidityPeriod(input.signatureValidityPeriod, context),
|
|
334
|
-
})), (input.signingMaterial
|
|
335
|
-
input.signingMaterial !== null && {
|
|
331
|
+
})), (input.signingMaterial != null && {
|
|
336
332
|
signingMaterial: serializeAws_restJson1SigningMaterial(input.signingMaterial, context),
|
|
337
|
-
})), (input.signingParameters
|
|
338
|
-
input.signingParameters !== null && {
|
|
333
|
+
})), (input.signingParameters != null && {
|
|
339
334
|
signingParameters: serializeAws_restJson1SigningParameters(input.signingParameters, context),
|
|
340
|
-
})), (input.tags
|
|
335
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
341
336
|
return [2, new __HttpRequest({
|
|
342
337
|
protocol: protocol,
|
|
343
338
|
hostname: hostname,
|
|
@@ -415,7 +410,7 @@ export var serializeAws_restJson1RevokeSignatureCommand = function (input, conte
|
|
|
415
410
|
else {
|
|
416
411
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
417
412
|
}
|
|
418
|
-
body = JSON.stringify(__assign(__assign({}, (input.jobOwner
|
|
413
|
+
body = JSON.stringify(__assign(__assign({}, (input.jobOwner != null && { jobOwner: input.jobOwner })), (input.reason != null && { reason: input.reason })));
|
|
419
414
|
return [2, new __HttpRequest({
|
|
420
415
|
protocol: protocol,
|
|
421
416
|
hostname: hostname,
|
|
@@ -449,9 +444,7 @@ export var serializeAws_restJson1RevokeSigningProfileCommand = function (input,
|
|
|
449
444
|
else {
|
|
450
445
|
throw new Error("No value provided for input HTTP label: profileName.");
|
|
451
446
|
}
|
|
452
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.effectiveTime
|
|
453
|
-
input.effectiveTime !== null && { effectiveTime: Math.round(input.effectiveTime.getTime() / 1000) })), (input.profileVersion !== undefined &&
|
|
454
|
-
input.profileVersion !== null && { profileVersion: input.profileVersion })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })));
|
|
447
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.effectiveTime != null && { effectiveTime: Math.round(input.effectiveTime.getTime() / 1000) })), (input.profileVersion != null && { profileVersion: input.profileVersion })), (input.reason != null && { reason: input.reason })));
|
|
455
448
|
return [2, new __HttpRequest({
|
|
456
449
|
protocol: protocol,
|
|
457
450
|
hostname: hostname,
|
|
@@ -476,9 +469,7 @@ export var serializeAws_restJson1StartSigningJobCommand = function (input, conte
|
|
|
476
469
|
"content-type": "application/json",
|
|
477
470
|
};
|
|
478
471
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/signing-jobs";
|
|
479
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.destination
|
|
480
|
-
input.destination !== null && { destination: serializeAws_restJson1Destination(input.destination, context) })), (input.profileName !== undefined && input.profileName !== null && { profileName: input.profileName })), (input.profileOwner !== undefined && input.profileOwner !== null && { profileOwner: input.profileOwner })), (input.source !== undefined &&
|
|
481
|
-
input.source !== null && { source: serializeAws_restJson1Source(input.source, context) })));
|
|
472
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.destination != null && { destination: serializeAws_restJson1Destination(input.destination, context) })), (input.profileName != null && { profileName: input.profileName })), (input.profileOwner != null && { profileOwner: input.profileOwner })), (input.source != null && { source: serializeAws_restJson1Source(input.source, context) })));
|
|
482
473
|
return [2, new __HttpRequest({
|
|
483
474
|
protocol: protocol,
|
|
484
475
|
hostname: hostname,
|
|
@@ -512,7 +503,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
512
503
|
else {
|
|
513
504
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
514
505
|
}
|
|
515
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
506
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
516
507
|
return [2, new __HttpRequest({
|
|
517
508
|
protocol: protocol,
|
|
518
509
|
hostname: hostname,
|
|
@@ -2084,24 +2075,22 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
2084
2075
|
});
|
|
2085
2076
|
}); };
|
|
2086
2077
|
var serializeAws_restJson1Destination = function (input, context) {
|
|
2087
|
-
return __assign({}, (input.s3
|
|
2078
|
+
return __assign({}, (input.s3 != null && { s3: serializeAws_restJson1S3Destination(input.s3, context) }));
|
|
2088
2079
|
};
|
|
2089
2080
|
var serializeAws_restJson1S3Destination = function (input, context) {
|
|
2090
|
-
return __assign(__assign({}, (input.bucketName
|
|
2081
|
+
return __assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.prefix != null && { prefix: input.prefix }));
|
|
2091
2082
|
};
|
|
2092
2083
|
var serializeAws_restJson1S3Source = function (input, context) {
|
|
2093
|
-
return __assign(__assign(__assign({}, (input.bucketName
|
|
2084
|
+
return __assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.key != null && { key: input.key })), (input.version != null && { version: input.version }));
|
|
2094
2085
|
};
|
|
2095
2086
|
var serializeAws_restJson1SignatureValidityPeriod = function (input, context) {
|
|
2096
|
-
return __assign(__assign({}, (input.type
|
|
2087
|
+
return __assign(__assign({}, (input.type != null && { type: input.type })), (input.value != null && { value: input.value }));
|
|
2097
2088
|
};
|
|
2098
2089
|
var serializeAws_restJson1SigningConfigurationOverrides = function (input, context) {
|
|
2099
|
-
return __assign(__assign({}, (input.encryptionAlgorithm
|
|
2100
|
-
input.encryptionAlgorithm !== null && { encryptionAlgorithm: input.encryptionAlgorithm })), (input.hashAlgorithm !== undefined && input.hashAlgorithm !== null && { hashAlgorithm: input.hashAlgorithm }));
|
|
2090
|
+
return __assign(__assign({}, (input.encryptionAlgorithm != null && { encryptionAlgorithm: input.encryptionAlgorithm })), (input.hashAlgorithm != null && { hashAlgorithm: input.hashAlgorithm }));
|
|
2101
2091
|
};
|
|
2102
2092
|
var serializeAws_restJson1SigningMaterial = function (input, context) {
|
|
2103
|
-
return __assign({}, (input.certificateArn
|
|
2104
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn }));
|
|
2093
|
+
return __assign({}, (input.certificateArn != null && { certificateArn: input.certificateArn }));
|
|
2105
2094
|
};
|
|
2106
2095
|
var serializeAws_restJson1SigningParameters = function (input, context) {
|
|
2107
2096
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -2114,14 +2103,12 @@ var serializeAws_restJson1SigningParameters = function (input, context) {
|
|
|
2114
2103
|
}, {});
|
|
2115
2104
|
};
|
|
2116
2105
|
var serializeAws_restJson1SigningPlatformOverrides = function (input, context) {
|
|
2117
|
-
return __assign(__assign({}, (input.signingConfiguration
|
|
2118
|
-
input.signingConfiguration !== null && {
|
|
2106
|
+
return __assign(__assign({}, (input.signingConfiguration != null && {
|
|
2119
2107
|
signingConfiguration: serializeAws_restJson1SigningConfigurationOverrides(input.signingConfiguration, context),
|
|
2120
|
-
})), (input.signingImageFormat
|
|
2121
|
-
input.signingImageFormat !== null && { signingImageFormat: input.signingImageFormat }));
|
|
2108
|
+
})), (input.signingImageFormat != null && { signingImageFormat: input.signingImageFormat }));
|
|
2122
2109
|
};
|
|
2123
2110
|
var serializeAws_restJson1Source = function (input, context) {
|
|
2124
|
-
return __assign({}, (input.s3
|
|
2111
|
+
return __assign({}, (input.s3 != null && { s3: serializeAws_restJson1S3Source(input.s3, context) }));
|
|
2125
2112
|
};
|
|
2126
2113
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
2127
2114
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -2135,7 +2122,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
2135
2122
|
};
|
|
2136
2123
|
var deserializeAws_restJson1EncryptionAlgorithmOptions = function (output, context) {
|
|
2137
2124
|
return {
|
|
2138
|
-
allowedValues: output.allowedValues
|
|
2125
|
+
allowedValues: output.allowedValues != null
|
|
2139
2126
|
? deserializeAws_restJson1EncryptionAlgorithms(output.allowedValues, context)
|
|
2140
2127
|
: undefined,
|
|
2141
2128
|
defaultValue: __expectString(output.defaultValue),
|
|
@@ -2154,9 +2141,7 @@ var deserializeAws_restJson1EncryptionAlgorithms = function (output, context) {
|
|
|
2154
2141
|
};
|
|
2155
2142
|
var deserializeAws_restJson1HashAlgorithmOptions = function (output, context) {
|
|
2156
2143
|
return {
|
|
2157
|
-
allowedValues: output.allowedValues
|
|
2158
|
-
? deserializeAws_restJson1HashAlgorithms(output.allowedValues, context)
|
|
2159
|
-
: undefined,
|
|
2144
|
+
allowedValues: output.allowedValues != null ? deserializeAws_restJson1HashAlgorithms(output.allowedValues, context) : undefined,
|
|
2160
2145
|
defaultValue: __expectString(output.defaultValue),
|
|
2161
2146
|
};
|
|
2162
2147
|
};
|
|
@@ -2222,17 +2207,15 @@ var deserializeAws_restJson1SignatureValidityPeriod = function (output, context)
|
|
|
2222
2207
|
};
|
|
2223
2208
|
var deserializeAws_restJson1SignedObject = function (output, context) {
|
|
2224
2209
|
return {
|
|
2225
|
-
s3: output.s3
|
|
2226
|
-
? deserializeAws_restJson1S3SignedObject(output.s3, context)
|
|
2227
|
-
: undefined,
|
|
2210
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3SignedObject(output.s3, context) : undefined,
|
|
2228
2211
|
};
|
|
2229
2212
|
};
|
|
2230
2213
|
var deserializeAws_restJson1SigningConfiguration = function (output, context) {
|
|
2231
2214
|
return {
|
|
2232
|
-
encryptionAlgorithmOptions: output.encryptionAlgorithmOptions
|
|
2215
|
+
encryptionAlgorithmOptions: output.encryptionAlgorithmOptions != null
|
|
2233
2216
|
? deserializeAws_restJson1EncryptionAlgorithmOptions(output.encryptionAlgorithmOptions, context)
|
|
2234
2217
|
: undefined,
|
|
2235
|
-
hashAlgorithmOptions: output.hashAlgorithmOptions
|
|
2218
|
+
hashAlgorithmOptions: output.hashAlgorithmOptions != null
|
|
2236
2219
|
? deserializeAws_restJson1HashAlgorithmOptions(output.hashAlgorithmOptions, context)
|
|
2237
2220
|
: undefined,
|
|
2238
2221
|
};
|
|
@@ -2246,16 +2229,14 @@ var deserializeAws_restJson1SigningConfigurationOverrides = function (output, co
|
|
|
2246
2229
|
var deserializeAws_restJson1SigningImageFormat = function (output, context) {
|
|
2247
2230
|
return {
|
|
2248
2231
|
defaultFormat: __expectString(output.defaultFormat),
|
|
2249
|
-
supportedFormats: output.supportedFormats
|
|
2232
|
+
supportedFormats: output.supportedFormats != null
|
|
2250
2233
|
? deserializeAws_restJson1ImageFormats(output.supportedFormats, context)
|
|
2251
2234
|
: undefined,
|
|
2252
2235
|
};
|
|
2253
2236
|
};
|
|
2254
2237
|
var deserializeAws_restJson1SigningJob = function (output, context) {
|
|
2255
2238
|
return {
|
|
2256
|
-
createdAt: output.createdAt
|
|
2257
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
2258
|
-
: undefined,
|
|
2239
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
2259
2240
|
isRevoked: __expectBoolean(output.isRevoked),
|
|
2260
2241
|
jobId: __expectString(output.jobId),
|
|
2261
2242
|
jobInvoker: __expectString(output.jobInvoker),
|
|
@@ -2264,27 +2245,21 @@ var deserializeAws_restJson1SigningJob = function (output, context) {
|
|
|
2264
2245
|
platformId: __expectString(output.platformId),
|
|
2265
2246
|
profileName: __expectString(output.profileName),
|
|
2266
2247
|
profileVersion: __expectString(output.profileVersion),
|
|
2267
|
-
signatureExpiresAt: output.signatureExpiresAt
|
|
2248
|
+
signatureExpiresAt: output.signatureExpiresAt != null
|
|
2268
2249
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.signatureExpiresAt)))
|
|
2269
2250
|
: undefined,
|
|
2270
|
-
signedObject: output.signedObject
|
|
2271
|
-
|
|
2272
|
-
: undefined,
|
|
2273
|
-
signingMaterial: output.signingMaterial !== undefined && output.signingMaterial !== null
|
|
2251
|
+
signedObject: output.signedObject != null ? deserializeAws_restJson1SignedObject(output.signedObject, context) : undefined,
|
|
2252
|
+
signingMaterial: output.signingMaterial != null
|
|
2274
2253
|
? deserializeAws_restJson1SigningMaterial(output.signingMaterial, context)
|
|
2275
2254
|
: undefined,
|
|
2276
|
-
source: output.source
|
|
2277
|
-
? deserializeAws_restJson1Source(output.source, context)
|
|
2278
|
-
: undefined,
|
|
2255
|
+
source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
|
|
2279
2256
|
status: __expectString(output.status),
|
|
2280
2257
|
};
|
|
2281
2258
|
};
|
|
2282
2259
|
var deserializeAws_restJson1SigningJobRevocationRecord = function (output, context) {
|
|
2283
2260
|
return {
|
|
2284
2261
|
reason: __expectString(output.reason),
|
|
2285
|
-
revokedAt: output.revokedAt
|
|
2286
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.revokedAt)))
|
|
2287
|
-
: undefined,
|
|
2262
|
+
revokedAt: output.revokedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.revokedAt))) : undefined,
|
|
2288
2263
|
revokedBy: __expectString(output.revokedBy),
|
|
2289
2264
|
};
|
|
2290
2265
|
};
|
|
@@ -2322,10 +2297,10 @@ var deserializeAws_restJson1SigningPlatform = function (output, context) {
|
|
|
2322
2297
|
partner: __expectString(output.partner),
|
|
2323
2298
|
platformId: __expectString(output.platformId),
|
|
2324
2299
|
revocationSupported: __expectBoolean(output.revocationSupported),
|
|
2325
|
-
signingConfiguration: output.signingConfiguration
|
|
2300
|
+
signingConfiguration: output.signingConfiguration != null
|
|
2326
2301
|
? deserializeAws_restJson1SigningConfiguration(output.signingConfiguration, context)
|
|
2327
2302
|
: undefined,
|
|
2328
|
-
signingImageFormat: output.signingImageFormat
|
|
2303
|
+
signingImageFormat: output.signingImageFormat != null
|
|
2329
2304
|
? deserializeAws_restJson1SigningImageFormat(output.signingImageFormat, context)
|
|
2330
2305
|
: undefined,
|
|
2331
2306
|
target: __expectString(output.target),
|
|
@@ -2333,7 +2308,7 @@ var deserializeAws_restJson1SigningPlatform = function (output, context) {
|
|
|
2333
2308
|
};
|
|
2334
2309
|
var deserializeAws_restJson1SigningPlatformOverrides = function (output, context) {
|
|
2335
2310
|
return {
|
|
2336
|
-
signingConfiguration: output.signingConfiguration
|
|
2311
|
+
signingConfiguration: output.signingConfiguration != null
|
|
2337
2312
|
? deserializeAws_restJson1SigningConfigurationOverrides(output.signingConfiguration, context)
|
|
2338
2313
|
: undefined,
|
|
2339
2314
|
signingImageFormat: __expectString(output.signingImageFormat),
|
|
@@ -2358,29 +2333,25 @@ var deserializeAws_restJson1SigningProfile = function (output, context) {
|
|
|
2358
2333
|
profileName: __expectString(output.profileName),
|
|
2359
2334
|
profileVersion: __expectString(output.profileVersion),
|
|
2360
2335
|
profileVersionArn: __expectString(output.profileVersionArn),
|
|
2361
|
-
signatureValidityPeriod: output.signatureValidityPeriod
|
|
2336
|
+
signatureValidityPeriod: output.signatureValidityPeriod != null
|
|
2362
2337
|
? deserializeAws_restJson1SignatureValidityPeriod(output.signatureValidityPeriod, context)
|
|
2363
2338
|
: undefined,
|
|
2364
|
-
signingMaterial: output.signingMaterial
|
|
2339
|
+
signingMaterial: output.signingMaterial != null
|
|
2365
2340
|
? deserializeAws_restJson1SigningMaterial(output.signingMaterial, context)
|
|
2366
2341
|
: undefined,
|
|
2367
|
-
signingParameters: output.signingParameters
|
|
2342
|
+
signingParameters: output.signingParameters != null
|
|
2368
2343
|
? deserializeAws_restJson1SigningParameters(output.signingParameters, context)
|
|
2369
2344
|
: undefined,
|
|
2370
2345
|
status: __expectString(output.status),
|
|
2371
|
-
tags: output.tags
|
|
2372
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
2373
|
-
: undefined,
|
|
2346
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
2374
2347
|
};
|
|
2375
2348
|
};
|
|
2376
2349
|
var deserializeAws_restJson1SigningProfileRevocationRecord = function (output, context) {
|
|
2377
2350
|
return {
|
|
2378
|
-
revocationEffectiveFrom: output.revocationEffectiveFrom
|
|
2351
|
+
revocationEffectiveFrom: output.revocationEffectiveFrom != null
|
|
2379
2352
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.revocationEffectiveFrom)))
|
|
2380
2353
|
: undefined,
|
|
2381
|
-
revokedAt: output.revokedAt
|
|
2382
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.revokedAt)))
|
|
2383
|
-
: undefined,
|
|
2354
|
+
revokedAt: output.revokedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.revokedAt))) : undefined,
|
|
2384
2355
|
revokedBy: __expectString(output.revokedBy),
|
|
2385
2356
|
};
|
|
2386
2357
|
};
|
|
@@ -2397,7 +2368,7 @@ var deserializeAws_restJson1SigningProfiles = function (output, context) {
|
|
|
2397
2368
|
};
|
|
2398
2369
|
var deserializeAws_restJson1Source = function (output, context) {
|
|
2399
2370
|
return {
|
|
2400
|
-
s3: output.s3
|
|
2371
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3Source(output.s3, context) : undefined,
|
|
2401
2372
|
};
|
|
2402
2373
|
};
|
|
2403
2374
|
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
@@ -2448,6 +2419,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2448
2419
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2449
2420
|
var sanitizeErrorCode = function (rawValue) {
|
|
2450
2421
|
var cleanValue = rawValue;
|
|
2422
|
+
if (typeof cleanValue === "number") {
|
|
2423
|
+
cleanValue = cleanValue.toString();
|
|
2424
|
+
}
|
|
2451
2425
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2452
2426
|
cleanValue = cleanValue.split(":")[0];
|
|
2453
2427
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-signer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Signer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,38 +18,38 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
|
-
"@aws-sdk/util-waiter": "3.
|
|
52
|
+
"@aws-sdk/util-waiter": "3.127.0",
|
|
53
53
|
"tslib": "^2.3.1",
|
|
54
54
|
"uuid": "^8.3.2"
|
|
55
55
|
},
|