@aws-sdk/client-rolesanywhere 3.123.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 +24 -0
- package/dist-cjs/protocols/Aws_restJson1.js +59 -108
- package/dist-es/protocols/Aws_restJson1.js +37 -86
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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
|
+
**Note:** Version bump only for package @aws-sdk/client-rolesanywhere
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-rolesanywhere
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-rolesanywhere
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
# [3.123.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.122.0...v3.123.0) (2022-07-05)
|
|
7
31
|
|
|
8
32
|
|
|
@@ -14,21 +14,16 @@ const serializeAws_restJson1CreateProfileCommand = async (input, context) => {
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.durationSeconds
|
|
18
|
-
|
|
19
|
-
...(input.
|
|
20
|
-
...(input.managedPolicyArns !== undefined &&
|
|
21
|
-
input.managedPolicyArns !== null && {
|
|
17
|
+
...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
|
|
18
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
19
|
+
...(input.managedPolicyArns != null && {
|
|
22
20
|
managedPolicyArns: serializeAws_restJson1ManagedPolicyList(input.managedPolicyArns, context),
|
|
23
21
|
}),
|
|
24
|
-
...(input.name
|
|
25
|
-
...(input.requireInstanceProperties
|
|
26
|
-
|
|
27
|
-
...(input.
|
|
28
|
-
|
|
29
|
-
...(input.sessionPolicy !== undefined && input.sessionPolicy !== null && { sessionPolicy: input.sessionPolicy }),
|
|
30
|
-
...(input.tags !== undefined &&
|
|
31
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
22
|
+
...(input.name != null && { name: input.name }),
|
|
23
|
+
...(input.requireInstanceProperties != null && { requireInstanceProperties: input.requireInstanceProperties }),
|
|
24
|
+
...(input.roleArns != null && { roleArns: serializeAws_restJson1RoleArnList(input.roleArns, context) }),
|
|
25
|
+
...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
|
|
26
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
32
27
|
});
|
|
33
28
|
return new protocol_http_1.HttpRequest({
|
|
34
29
|
protocol,
|
|
@@ -49,12 +44,10 @@ const serializeAws_restJson1CreateTrustAnchorCommand = async (input, context) =>
|
|
|
49
44
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
|
|
50
45
|
let body;
|
|
51
46
|
body = JSON.stringify({
|
|
52
|
-
...(input.enabled
|
|
53
|
-
...(input.name
|
|
54
|
-
...(input.source
|
|
55
|
-
|
|
56
|
-
...(input.tags !== undefined &&
|
|
57
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
47
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
48
|
+
...(input.name != null && { name: input.name }),
|
|
49
|
+
...(input.source != null && { source: serializeAws_restJson1Source(input.source, context) }),
|
|
50
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
58
51
|
});
|
|
59
52
|
return new protocol_http_1.HttpRequest({
|
|
60
53
|
protocol,
|
|
@@ -413,13 +406,11 @@ const serializeAws_restJson1ImportCrlCommand = async (input, context) => {
|
|
|
413
406
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/crls";
|
|
414
407
|
let body;
|
|
415
408
|
body = JSON.stringify({
|
|
416
|
-
...(input.crlData
|
|
417
|
-
...(input.enabled
|
|
418
|
-
...(input.name
|
|
419
|
-
...(input.tags
|
|
420
|
-
|
|
421
|
-
...(input.trustAnchorArn !== undefined &&
|
|
422
|
-
input.trustAnchorArn !== null && { trustAnchorArn: input.trustAnchorArn }),
|
|
409
|
+
...(input.crlData != null && { crlData: context.base64Encoder(input.crlData) }),
|
|
410
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
411
|
+
...(input.name != null && { name: input.name }),
|
|
412
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
413
|
+
...(input.trustAnchorArn != null && { trustAnchorArn: input.trustAnchorArn }),
|
|
423
414
|
});
|
|
424
415
|
return new protocol_http_1.HttpRequest({
|
|
425
416
|
protocol,
|
|
@@ -544,9 +535,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
544
535
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
|
|
545
536
|
let body;
|
|
546
537
|
body = JSON.stringify({
|
|
547
|
-
...(input.resourceArn
|
|
548
|
-
...(input.tags
|
|
549
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
538
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
539
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
550
540
|
});
|
|
551
541
|
return new protocol_http_1.HttpRequest({
|
|
552
542
|
protocol,
|
|
@@ -567,9 +557,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
567
557
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
|
|
568
558
|
let body;
|
|
569
559
|
body = JSON.stringify({
|
|
570
|
-
...(input.resourceArn
|
|
571
|
-
...(input.tagKeys
|
|
572
|
-
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
|
|
560
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
561
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
|
|
573
562
|
});
|
|
574
563
|
return new protocol_http_1.HttpRequest({
|
|
575
564
|
protocol,
|
|
@@ -600,8 +589,8 @@ const serializeAws_restJson1UpdateCrlCommand = async (input, context) => {
|
|
|
600
589
|
}
|
|
601
590
|
let body;
|
|
602
591
|
body = JSON.stringify({
|
|
603
|
-
...(input.crlData
|
|
604
|
-
...(input.name
|
|
592
|
+
...(input.crlData != null && { crlData: context.base64Encoder(input.crlData) }),
|
|
593
|
+
...(input.name != null && { name: input.name }),
|
|
605
594
|
});
|
|
606
595
|
return new protocol_http_1.HttpRequest({
|
|
607
596
|
protocol,
|
|
@@ -632,16 +621,13 @@ const serializeAws_restJson1UpdateProfileCommand = async (input, context) => {
|
|
|
632
621
|
}
|
|
633
622
|
let body;
|
|
634
623
|
body = JSON.stringify({
|
|
635
|
-
...(input.durationSeconds
|
|
636
|
-
|
|
637
|
-
...(input.managedPolicyArns !== undefined &&
|
|
638
|
-
input.managedPolicyArns !== null && {
|
|
624
|
+
...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
|
|
625
|
+
...(input.managedPolicyArns != null && {
|
|
639
626
|
managedPolicyArns: serializeAws_restJson1ManagedPolicyList(input.managedPolicyArns, context),
|
|
640
627
|
}),
|
|
641
|
-
...(input.name
|
|
642
|
-
...(input.roleArns
|
|
643
|
-
|
|
644
|
-
...(input.sessionPolicy !== undefined && input.sessionPolicy !== null && { sessionPolicy: input.sessionPolicy }),
|
|
628
|
+
...(input.name != null && { name: input.name }),
|
|
629
|
+
...(input.roleArns != null && { roleArns: serializeAws_restJson1RoleArnList(input.roleArns, context) }),
|
|
630
|
+
...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
|
|
645
631
|
});
|
|
646
632
|
return new protocol_http_1.HttpRequest({
|
|
647
633
|
protocol,
|
|
@@ -672,9 +658,8 @@ const serializeAws_restJson1UpdateTrustAnchorCommand = async (input, context) =>
|
|
|
672
658
|
}
|
|
673
659
|
let body;
|
|
674
660
|
body = JSON.stringify({
|
|
675
|
-
...(input.name
|
|
676
|
-
...(input.source
|
|
677
|
-
input.source !== null && { source: serializeAws_restJson1Source(input.source, context) }),
|
|
661
|
+
...(input.name != null && { name: input.name }),
|
|
662
|
+
...(input.source != null && { source: serializeAws_restJson1Source(input.source, context) }),
|
|
678
663
|
});
|
|
679
664
|
return new protocol_http_1.HttpRequest({
|
|
680
665
|
protocol,
|
|
@@ -1852,9 +1837,8 @@ const serializeAws_restJson1RoleArnList = (input, context) => {
|
|
|
1852
1837
|
};
|
|
1853
1838
|
const serializeAws_restJson1Source = (input, context) => {
|
|
1854
1839
|
return {
|
|
1855
|
-
...(input.sourceData
|
|
1856
|
-
|
|
1857
|
-
...(input.sourceType !== undefined && input.sourceType !== null && { sourceType: input.sourceType }),
|
|
1840
|
+
...(input.sourceData != null && { sourceData: serializeAws_restJson1SourceData(input.sourceData, context) }),
|
|
1841
|
+
...(input.sourceType != null && { sourceType: input.sourceType }),
|
|
1858
1842
|
};
|
|
1859
1843
|
};
|
|
1860
1844
|
const serializeAws_restJson1SourceData = (input, context) => {
|
|
@@ -1866,8 +1850,8 @@ const serializeAws_restJson1SourceData = (input, context) => {
|
|
|
1866
1850
|
};
|
|
1867
1851
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
1868
1852
|
return {
|
|
1869
|
-
...(input.key
|
|
1870
|
-
...(input.value
|
|
1853
|
+
...(input.key != null && { key: input.key }),
|
|
1854
|
+
...(input.value != null && { value: input.value }),
|
|
1871
1855
|
};
|
|
1872
1856
|
};
|
|
1873
1857
|
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
@@ -1906,27 +1890,21 @@ const deserializeAws_restJson1CredentialSummary = (output, context) => {
|
|
|
1906
1890
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1907
1891
|
failed: (0, smithy_client_1.expectBoolean)(output.failed),
|
|
1908
1892
|
issuer: (0, smithy_client_1.expectString)(output.issuer),
|
|
1909
|
-
seenAt: output.seenAt
|
|
1910
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.seenAt))
|
|
1911
|
-
: undefined,
|
|
1893
|
+
seenAt: output.seenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.seenAt)) : undefined,
|
|
1912
1894
|
serialNumber: (0, smithy_client_1.expectString)(output.serialNumber),
|
|
1913
1895
|
x509CertificateData: (0, smithy_client_1.expectString)(output.x509CertificateData),
|
|
1914
1896
|
};
|
|
1915
1897
|
};
|
|
1916
1898
|
const deserializeAws_restJson1CrlDetail = (output, context) => {
|
|
1917
1899
|
return {
|
|
1918
|
-
createdAt: output.createdAt
|
|
1919
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
1920
|
-
: undefined,
|
|
1900
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
1921
1901
|
crlArn: (0, smithy_client_1.expectString)(output.crlArn),
|
|
1922
|
-
crlData: output.crlData
|
|
1902
|
+
crlData: output.crlData != null ? context.base64Decoder(output.crlData) : undefined,
|
|
1923
1903
|
crlId: (0, smithy_client_1.expectString)(output.crlId),
|
|
1924
1904
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1925
1905
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1926
1906
|
trustAnchorArn: (0, smithy_client_1.expectString)(output.trustAnchorArn),
|
|
1927
|
-
updatedAt: output.updatedAt
|
|
1928
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
1929
|
-
: undefined,
|
|
1907
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
1930
1908
|
};
|
|
1931
1909
|
};
|
|
1932
1910
|
const deserializeAws_restJson1CrlDetails = (output, context) => {
|
|
@@ -1954,12 +1932,8 @@ const deserializeAws_restJson1InstanceProperties = (output, context) => {
|
|
|
1954
1932
|
const deserializeAws_restJson1InstanceProperty = (output, context) => {
|
|
1955
1933
|
return {
|
|
1956
1934
|
failed: (0, smithy_client_1.expectBoolean)(output.failed),
|
|
1957
|
-
properties: output.properties
|
|
1958
|
-
|
|
1959
|
-
: undefined,
|
|
1960
|
-
seenAt: output.seenAt !== undefined && output.seenAt !== null
|
|
1961
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.seenAt))
|
|
1962
|
-
: undefined,
|
|
1935
|
+
properties: output.properties != null ? deserializeAws_restJson1InstancePropertyMap(output.properties, context) : undefined,
|
|
1936
|
+
seenAt: output.seenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.seenAt)) : undefined,
|
|
1963
1937
|
};
|
|
1964
1938
|
};
|
|
1965
1939
|
const deserializeAws_restJson1InstancePropertyMap = (output, context) => {
|
|
@@ -1986,26 +1960,20 @@ const deserializeAws_restJson1ManagedPolicyList = (output, context) => {
|
|
|
1986
1960
|
};
|
|
1987
1961
|
const deserializeAws_restJson1ProfileDetail = (output, context) => {
|
|
1988
1962
|
return {
|
|
1989
|
-
createdAt: output.createdAt
|
|
1990
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
1991
|
-
: undefined,
|
|
1963
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
1992
1964
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
1993
1965
|
durationSeconds: (0, smithy_client_1.expectInt32)(output.durationSeconds),
|
|
1994
1966
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1995
|
-
managedPolicyArns: output.managedPolicyArns
|
|
1967
|
+
managedPolicyArns: output.managedPolicyArns != null
|
|
1996
1968
|
? deserializeAws_restJson1ManagedPolicyList(output.managedPolicyArns, context)
|
|
1997
1969
|
: undefined,
|
|
1998
1970
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1999
1971
|
profileArn: (0, smithy_client_1.expectString)(output.profileArn),
|
|
2000
1972
|
profileId: (0, smithy_client_1.expectString)(output.profileId),
|
|
2001
1973
|
requireInstanceProperties: (0, smithy_client_1.expectBoolean)(output.requireInstanceProperties),
|
|
2002
|
-
roleArns: output.roleArns
|
|
2003
|
-
? deserializeAws_restJson1RoleArnList(output.roleArns, context)
|
|
2004
|
-
: undefined,
|
|
1974
|
+
roleArns: output.roleArns != null ? deserializeAws_restJson1RoleArnList(output.roleArns, context) : undefined,
|
|
2005
1975
|
sessionPolicy: (0, smithy_client_1.expectString)(output.sessionPolicy),
|
|
2006
|
-
updatedAt: output.updatedAt
|
|
2007
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
2008
|
-
: undefined,
|
|
1976
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
2009
1977
|
};
|
|
2010
1978
|
};
|
|
2011
1979
|
const deserializeAws_restJson1ProfileDetails = (output, context) => {
|
|
@@ -2032,7 +2000,7 @@ const deserializeAws_restJson1RoleArnList = (output, context) => {
|
|
|
2032
2000
|
};
|
|
2033
2001
|
const deserializeAws_restJson1Source = (output, context) => {
|
|
2034
2002
|
return {
|
|
2035
|
-
sourceData: output.sourceData
|
|
2003
|
+
sourceData: output.sourceData != null
|
|
2036
2004
|
? deserializeAws_restJson1SourceData((0, smithy_client_1.expectUnion)(output.sourceData), context)
|
|
2037
2005
|
: undefined,
|
|
2038
2006
|
sourceType: (0, smithy_client_1.expectString)(output.sourceType),
|
|
@@ -2049,24 +2017,16 @@ const deserializeAws_restJson1SourceData = (output, context) => {
|
|
|
2049
2017
|
};
|
|
2050
2018
|
const deserializeAws_restJson1SubjectDetail = (output, context) => {
|
|
2051
2019
|
return {
|
|
2052
|
-
createdAt: output.createdAt
|
|
2053
|
-
|
|
2054
|
-
: undefined,
|
|
2055
|
-
credentials: output.credentials !== undefined && output.credentials !== null
|
|
2056
|
-
? deserializeAws_restJson1CredentialSummaries(output.credentials, context)
|
|
2057
|
-
: undefined,
|
|
2020
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
2021
|
+
credentials: output.credentials != null ? deserializeAws_restJson1CredentialSummaries(output.credentials, context) : undefined,
|
|
2058
2022
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2059
|
-
instanceProperties: output.instanceProperties
|
|
2023
|
+
instanceProperties: output.instanceProperties != null
|
|
2060
2024
|
? deserializeAws_restJson1InstanceProperties(output.instanceProperties, context)
|
|
2061
2025
|
: undefined,
|
|
2062
|
-
lastSeenAt: output.lastSeenAt
|
|
2063
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastSeenAt))
|
|
2064
|
-
: undefined,
|
|
2026
|
+
lastSeenAt: output.lastSeenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastSeenAt)) : undefined,
|
|
2065
2027
|
subjectArn: (0, smithy_client_1.expectString)(output.subjectArn),
|
|
2066
2028
|
subjectId: (0, smithy_client_1.expectString)(output.subjectId),
|
|
2067
|
-
updatedAt: output.updatedAt
|
|
2068
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
2069
|
-
: undefined,
|
|
2029
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
2070
2030
|
x509Subject: (0, smithy_client_1.expectString)(output.x509Subject),
|
|
2071
2031
|
};
|
|
2072
2032
|
};
|
|
@@ -2083,18 +2043,12 @@ const deserializeAws_restJson1SubjectSummaries = (output, context) => {
|
|
|
2083
2043
|
};
|
|
2084
2044
|
const deserializeAws_restJson1SubjectSummary = (output, context) => {
|
|
2085
2045
|
return {
|
|
2086
|
-
createdAt: output.createdAt
|
|
2087
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2088
|
-
: undefined,
|
|
2046
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
2089
2047
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2090
|
-
lastSeenAt: output.lastSeenAt
|
|
2091
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastSeenAt))
|
|
2092
|
-
: undefined,
|
|
2048
|
+
lastSeenAt: output.lastSeenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastSeenAt)) : undefined,
|
|
2093
2049
|
subjectArn: (0, smithy_client_1.expectString)(output.subjectArn),
|
|
2094
2050
|
subjectId: (0, smithy_client_1.expectString)(output.subjectId),
|
|
2095
|
-
updatedAt: output.updatedAt
|
|
2096
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
2097
|
-
: undefined,
|
|
2051
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
2098
2052
|
x509Subject: (0, smithy_client_1.expectString)(output.x509Subject),
|
|
2099
2053
|
};
|
|
2100
2054
|
};
|
|
@@ -2117,19 +2071,13 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
2117
2071
|
};
|
|
2118
2072
|
const deserializeAws_restJson1TrustAnchorDetail = (output, context) => {
|
|
2119
2073
|
return {
|
|
2120
|
-
createdAt: output.createdAt
|
|
2121
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
2122
|
-
: undefined,
|
|
2074
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
2123
2075
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2124
2076
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2125
|
-
source: output.source
|
|
2126
|
-
? deserializeAws_restJson1Source(output.source, context)
|
|
2127
|
-
: undefined,
|
|
2077
|
+
source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
|
|
2128
2078
|
trustAnchorArn: (0, smithy_client_1.expectString)(output.trustAnchorArn),
|
|
2129
2079
|
trustAnchorId: (0, smithy_client_1.expectString)(output.trustAnchorId),
|
|
2130
|
-
updatedAt: output.updatedAt
|
|
2131
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
2132
|
-
: undefined,
|
|
2080
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
2133
2081
|
};
|
|
2134
2082
|
};
|
|
2135
2083
|
const deserializeAws_restJson1TrustAnchorDetails = (output, context) => {
|
|
@@ -2174,6 +2122,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2174
2122
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2175
2123
|
const sanitizeErrorCode = (rawValue) => {
|
|
2176
2124
|
let cleanValue = rawValue;
|
|
2125
|
+
if (typeof cleanValue === "number") {
|
|
2126
|
+
cleanValue = cleanValue.toString();
|
|
2127
|
+
}
|
|
2177
2128
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2178
2129
|
cleanValue = cleanValue.split(":")[0];
|
|
2179
2130
|
}
|
|
@@ -14,14 +14,9 @@ export var serializeAws_restJson1CreateProfileCommand = function (input, context
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/profiles";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.durationSeconds
|
|
18
|
-
input.durationSeconds !== null && { durationSeconds: input.durationSeconds })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.managedPolicyArns !== undefined &&
|
|
19
|
-
input.managedPolicyArns !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.durationSeconds != null && { durationSeconds: input.durationSeconds })), (input.enabled != null && { enabled: input.enabled })), (input.managedPolicyArns != null && {
|
|
20
18
|
managedPolicyArns: serializeAws_restJson1ManagedPolicyList(input.managedPolicyArns, context),
|
|
21
|
-
})), (input.name
|
|
22
|
-
input.requireInstanceProperties !== null && { requireInstanceProperties: input.requireInstanceProperties })), (input.roleArns !== undefined &&
|
|
23
|
-
input.roleArns !== null && { roleArns: serializeAws_restJson1RoleArnList(input.roleArns, context) })), (input.sessionPolicy !== undefined && input.sessionPolicy !== null && { sessionPolicy: input.sessionPolicy })), (input.tags !== undefined &&
|
|
24
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
19
|
+
})), (input.name != null && { name: input.name })), (input.requireInstanceProperties != null && { requireInstanceProperties: input.requireInstanceProperties })), (input.roleArns != null && { roleArns: serializeAws_restJson1RoleArnList(input.roleArns, context) })), (input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
25
20
|
return [2, new __HttpRequest({
|
|
26
21
|
protocol: protocol,
|
|
27
22
|
hostname: hostname,
|
|
@@ -45,9 +40,7 @@ export var serializeAws_restJson1CreateTrustAnchorCommand = function (input, con
|
|
|
45
40
|
"content-type": "application/json",
|
|
46
41
|
};
|
|
47
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/trustanchors";
|
|
48
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.enabled
|
|
49
|
-
input.source !== null && { source: serializeAws_restJson1Source(input.source, context) })), (input.tags !== undefined &&
|
|
50
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
43
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.name != null && { name: input.name })), (input.source != null && { source: serializeAws_restJson1Source(input.source, context) })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
51
44
|
return [2, new __HttpRequest({
|
|
52
45
|
protocol: protocol,
|
|
53
46
|
hostname: hostname,
|
|
@@ -474,9 +467,7 @@ export var serializeAws_restJson1ImportCrlCommand = function (input, context) {
|
|
|
474
467
|
"content-type": "application/json",
|
|
475
468
|
};
|
|
476
469
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/crls";
|
|
477
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.crlData
|
|
478
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.trustAnchorArn !== undefined &&
|
|
479
|
-
input.trustAnchorArn !== null && { trustAnchorArn: input.trustAnchorArn })));
|
|
470
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.crlData != null && { crlData: context.base64Encoder(input.crlData) })), (input.enabled != null && { enabled: input.enabled })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.trustAnchorArn != null && { trustAnchorArn: input.trustAnchorArn })));
|
|
480
471
|
return [2, new __HttpRequest({
|
|
481
472
|
protocol: protocol,
|
|
482
473
|
hostname: hostname,
|
|
@@ -615,8 +606,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
615
606
|
"content-type": "application/json",
|
|
616
607
|
};
|
|
617
608
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/TagResource";
|
|
618
|
-
body = JSON.stringify(__assign(__assign({}, (input.resourceArn
|
|
619
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
609
|
+
body = JSON.stringify(__assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
620
610
|
return [2, new __HttpRequest({
|
|
621
611
|
protocol: protocol,
|
|
622
612
|
hostname: hostname,
|
|
@@ -640,8 +630,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
640
630
|
"content-type": "application/json",
|
|
641
631
|
};
|
|
642
632
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UntagResource";
|
|
643
|
-
body = JSON.stringify(__assign(__assign({}, (input.resourceArn
|
|
644
|
-
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
633
|
+
body = JSON.stringify(__assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
645
634
|
return [2, new __HttpRequest({
|
|
646
635
|
protocol: protocol,
|
|
647
636
|
hostname: hostname,
|
|
@@ -675,7 +664,7 @@ export var serializeAws_restJson1UpdateCrlCommand = function (input, context) {
|
|
|
675
664
|
else {
|
|
676
665
|
throw new Error("No value provided for input HTTP label: crlId.");
|
|
677
666
|
}
|
|
678
|
-
body = JSON.stringify(__assign(__assign({}, (input.crlData
|
|
667
|
+
body = JSON.stringify(__assign(__assign({}, (input.crlData != null && { crlData: context.base64Encoder(input.crlData) })), (input.name != null && { name: input.name })));
|
|
679
668
|
return [2, new __HttpRequest({
|
|
680
669
|
protocol: protocol,
|
|
681
670
|
hostname: hostname,
|
|
@@ -709,12 +698,9 @@ export var serializeAws_restJson1UpdateProfileCommand = function (input, context
|
|
|
709
698
|
else {
|
|
710
699
|
throw new Error("No value provided for input HTTP label: profileId.");
|
|
711
700
|
}
|
|
712
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.durationSeconds
|
|
713
|
-
input.durationSeconds !== null && { durationSeconds: input.durationSeconds })), (input.managedPolicyArns !== undefined &&
|
|
714
|
-
input.managedPolicyArns !== null && {
|
|
701
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.durationSeconds != null && { durationSeconds: input.durationSeconds })), (input.managedPolicyArns != null && {
|
|
715
702
|
managedPolicyArns: serializeAws_restJson1ManagedPolicyList(input.managedPolicyArns, context),
|
|
716
|
-
})), (input.name
|
|
717
|
-
input.roleArns !== null && { roleArns: serializeAws_restJson1RoleArnList(input.roleArns, context) })), (input.sessionPolicy !== undefined && input.sessionPolicy !== null && { sessionPolicy: input.sessionPolicy })));
|
|
703
|
+
})), (input.name != null && { name: input.name })), (input.roleArns != null && { roleArns: serializeAws_restJson1RoleArnList(input.roleArns, context) })), (input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy })));
|
|
718
704
|
return [2, new __HttpRequest({
|
|
719
705
|
protocol: protocol,
|
|
720
706
|
hostname: hostname,
|
|
@@ -748,8 +734,7 @@ export var serializeAws_restJson1UpdateTrustAnchorCommand = function (input, con
|
|
|
748
734
|
else {
|
|
749
735
|
throw new Error("No value provided for input HTTP label: trustAnchorId.");
|
|
750
736
|
}
|
|
751
|
-
body = JSON.stringify(__assign(__assign({}, (input.name
|
|
752
|
-
input.source !== null && { source: serializeAws_restJson1Source(input.source, context) })));
|
|
737
|
+
body = JSON.stringify(__assign(__assign({}, (input.name != null && { name: input.name })), (input.source != null && { source: serializeAws_restJson1Source(input.source, context) })));
|
|
753
738
|
return [2, new __HttpRequest({
|
|
754
739
|
protocol: protocol,
|
|
755
740
|
hostname: hostname,
|
|
@@ -2449,8 +2434,7 @@ var serializeAws_restJson1RoleArnList = function (input, context) {
|
|
|
2449
2434
|
});
|
|
2450
2435
|
};
|
|
2451
2436
|
var serializeAws_restJson1Source = function (input, context) {
|
|
2452
|
-
return __assign(__assign({}, (input.sourceData
|
|
2453
|
-
input.sourceData !== null && { sourceData: serializeAws_restJson1SourceData(input.sourceData, context) })), (input.sourceType !== undefined && input.sourceType !== null && { sourceType: input.sourceType }));
|
|
2437
|
+
return __assign(__assign({}, (input.sourceData != null && { sourceData: serializeAws_restJson1SourceData(input.sourceData, context) })), (input.sourceType != null && { sourceType: input.sourceType }));
|
|
2454
2438
|
};
|
|
2455
2439
|
var serializeAws_restJson1SourceData = function (input, context) {
|
|
2456
2440
|
return SourceData.visit(input, {
|
|
@@ -2460,7 +2444,7 @@ var serializeAws_restJson1SourceData = function (input, context) {
|
|
|
2460
2444
|
});
|
|
2461
2445
|
};
|
|
2462
2446
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
2463
|
-
return __assign(__assign({}, (input.key
|
|
2447
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
2464
2448
|
};
|
|
2465
2449
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
2466
2450
|
return input
|
|
@@ -2498,27 +2482,21 @@ var deserializeAws_restJson1CredentialSummary = function (output, context) {
|
|
|
2498
2482
|
enabled: __expectBoolean(output.enabled),
|
|
2499
2483
|
failed: __expectBoolean(output.failed),
|
|
2500
2484
|
issuer: __expectString(output.issuer),
|
|
2501
|
-
seenAt: output.seenAt
|
|
2502
|
-
? __expectNonNull(__parseRfc3339DateTime(output.seenAt))
|
|
2503
|
-
: undefined,
|
|
2485
|
+
seenAt: output.seenAt != null ? __expectNonNull(__parseRfc3339DateTime(output.seenAt)) : undefined,
|
|
2504
2486
|
serialNumber: __expectString(output.serialNumber),
|
|
2505
2487
|
x509CertificateData: __expectString(output.x509CertificateData),
|
|
2506
2488
|
};
|
|
2507
2489
|
};
|
|
2508
2490
|
var deserializeAws_restJson1CrlDetail = function (output, context) {
|
|
2509
2491
|
return {
|
|
2510
|
-
createdAt: output.createdAt
|
|
2511
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
2512
|
-
: undefined,
|
|
2492
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
2513
2493
|
crlArn: __expectString(output.crlArn),
|
|
2514
|
-
crlData: output.crlData
|
|
2494
|
+
crlData: output.crlData != null ? context.base64Decoder(output.crlData) : undefined,
|
|
2515
2495
|
crlId: __expectString(output.crlId),
|
|
2516
2496
|
enabled: __expectBoolean(output.enabled),
|
|
2517
2497
|
name: __expectString(output.name),
|
|
2518
2498
|
trustAnchorArn: __expectString(output.trustAnchorArn),
|
|
2519
|
-
updatedAt: output.updatedAt
|
|
2520
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
2521
|
-
: undefined,
|
|
2499
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
2522
2500
|
};
|
|
2523
2501
|
};
|
|
2524
2502
|
var deserializeAws_restJson1CrlDetails = function (output, context) {
|
|
@@ -2546,12 +2524,8 @@ var deserializeAws_restJson1InstanceProperties = function (output, context) {
|
|
|
2546
2524
|
var deserializeAws_restJson1InstanceProperty = function (output, context) {
|
|
2547
2525
|
return {
|
|
2548
2526
|
failed: __expectBoolean(output.failed),
|
|
2549
|
-
properties: output.properties
|
|
2550
|
-
|
|
2551
|
-
: undefined,
|
|
2552
|
-
seenAt: output.seenAt !== undefined && output.seenAt !== null
|
|
2553
|
-
? __expectNonNull(__parseRfc3339DateTime(output.seenAt))
|
|
2554
|
-
: undefined,
|
|
2527
|
+
properties: output.properties != null ? deserializeAws_restJson1InstancePropertyMap(output.properties, context) : undefined,
|
|
2528
|
+
seenAt: output.seenAt != null ? __expectNonNull(__parseRfc3339DateTime(output.seenAt)) : undefined,
|
|
2555
2529
|
};
|
|
2556
2530
|
};
|
|
2557
2531
|
var deserializeAws_restJson1InstancePropertyMap = function (output, context) {
|
|
@@ -2577,26 +2551,20 @@ var deserializeAws_restJson1ManagedPolicyList = function (output, context) {
|
|
|
2577
2551
|
};
|
|
2578
2552
|
var deserializeAws_restJson1ProfileDetail = function (output, context) {
|
|
2579
2553
|
return {
|
|
2580
|
-
createdAt: output.createdAt
|
|
2581
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
2582
|
-
: undefined,
|
|
2554
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
2583
2555
|
createdBy: __expectString(output.createdBy),
|
|
2584
2556
|
durationSeconds: __expectInt32(output.durationSeconds),
|
|
2585
2557
|
enabled: __expectBoolean(output.enabled),
|
|
2586
|
-
managedPolicyArns: output.managedPolicyArns
|
|
2558
|
+
managedPolicyArns: output.managedPolicyArns != null
|
|
2587
2559
|
? deserializeAws_restJson1ManagedPolicyList(output.managedPolicyArns, context)
|
|
2588
2560
|
: undefined,
|
|
2589
2561
|
name: __expectString(output.name),
|
|
2590
2562
|
profileArn: __expectString(output.profileArn),
|
|
2591
2563
|
profileId: __expectString(output.profileId),
|
|
2592
2564
|
requireInstanceProperties: __expectBoolean(output.requireInstanceProperties),
|
|
2593
|
-
roleArns: output.roleArns
|
|
2594
|
-
? deserializeAws_restJson1RoleArnList(output.roleArns, context)
|
|
2595
|
-
: undefined,
|
|
2565
|
+
roleArns: output.roleArns != null ? deserializeAws_restJson1RoleArnList(output.roleArns, context) : undefined,
|
|
2596
2566
|
sessionPolicy: __expectString(output.sessionPolicy),
|
|
2597
|
-
updatedAt: output.updatedAt
|
|
2598
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
2599
|
-
: undefined,
|
|
2567
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
2600
2568
|
};
|
|
2601
2569
|
};
|
|
2602
2570
|
var deserializeAws_restJson1ProfileDetails = function (output, context) {
|
|
@@ -2623,7 +2591,7 @@ var deserializeAws_restJson1RoleArnList = function (output, context) {
|
|
|
2623
2591
|
};
|
|
2624
2592
|
var deserializeAws_restJson1Source = function (output, context) {
|
|
2625
2593
|
return {
|
|
2626
|
-
sourceData: output.sourceData
|
|
2594
|
+
sourceData: output.sourceData != null
|
|
2627
2595
|
? deserializeAws_restJson1SourceData(__expectUnion(output.sourceData), context)
|
|
2628
2596
|
: undefined,
|
|
2629
2597
|
sourceType: __expectString(output.sourceType),
|
|
@@ -2640,24 +2608,16 @@ var deserializeAws_restJson1SourceData = function (output, context) {
|
|
|
2640
2608
|
};
|
|
2641
2609
|
var deserializeAws_restJson1SubjectDetail = function (output, context) {
|
|
2642
2610
|
return {
|
|
2643
|
-
createdAt: output.createdAt
|
|
2644
|
-
|
|
2645
|
-
: undefined,
|
|
2646
|
-
credentials: output.credentials !== undefined && output.credentials !== null
|
|
2647
|
-
? deserializeAws_restJson1CredentialSummaries(output.credentials, context)
|
|
2648
|
-
: undefined,
|
|
2611
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
2612
|
+
credentials: output.credentials != null ? deserializeAws_restJson1CredentialSummaries(output.credentials, context) : undefined,
|
|
2649
2613
|
enabled: __expectBoolean(output.enabled),
|
|
2650
|
-
instanceProperties: output.instanceProperties
|
|
2614
|
+
instanceProperties: output.instanceProperties != null
|
|
2651
2615
|
? deserializeAws_restJson1InstanceProperties(output.instanceProperties, context)
|
|
2652
2616
|
: undefined,
|
|
2653
|
-
lastSeenAt: output.lastSeenAt
|
|
2654
|
-
? __expectNonNull(__parseRfc3339DateTime(output.lastSeenAt))
|
|
2655
|
-
: undefined,
|
|
2617
|
+
lastSeenAt: output.lastSeenAt != null ? __expectNonNull(__parseRfc3339DateTime(output.lastSeenAt)) : undefined,
|
|
2656
2618
|
subjectArn: __expectString(output.subjectArn),
|
|
2657
2619
|
subjectId: __expectString(output.subjectId),
|
|
2658
|
-
updatedAt: output.updatedAt
|
|
2659
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
2660
|
-
: undefined,
|
|
2620
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
2661
2621
|
x509Subject: __expectString(output.x509Subject),
|
|
2662
2622
|
};
|
|
2663
2623
|
};
|
|
@@ -2674,18 +2634,12 @@ var deserializeAws_restJson1SubjectSummaries = function (output, context) {
|
|
|
2674
2634
|
};
|
|
2675
2635
|
var deserializeAws_restJson1SubjectSummary = function (output, context) {
|
|
2676
2636
|
return {
|
|
2677
|
-
createdAt: output.createdAt
|
|
2678
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
2679
|
-
: undefined,
|
|
2637
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
2680
2638
|
enabled: __expectBoolean(output.enabled),
|
|
2681
|
-
lastSeenAt: output.lastSeenAt
|
|
2682
|
-
? __expectNonNull(__parseRfc3339DateTime(output.lastSeenAt))
|
|
2683
|
-
: undefined,
|
|
2639
|
+
lastSeenAt: output.lastSeenAt != null ? __expectNonNull(__parseRfc3339DateTime(output.lastSeenAt)) : undefined,
|
|
2684
2640
|
subjectArn: __expectString(output.subjectArn),
|
|
2685
2641
|
subjectId: __expectString(output.subjectId),
|
|
2686
|
-
updatedAt: output.updatedAt
|
|
2687
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
2688
|
-
: undefined,
|
|
2642
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
2689
2643
|
x509Subject: __expectString(output.x509Subject),
|
|
2690
2644
|
};
|
|
2691
2645
|
};
|
|
@@ -2708,19 +2662,13 @@ var deserializeAws_restJson1TagList = function (output, context) {
|
|
|
2708
2662
|
};
|
|
2709
2663
|
var deserializeAws_restJson1TrustAnchorDetail = function (output, context) {
|
|
2710
2664
|
return {
|
|
2711
|
-
createdAt: output.createdAt
|
|
2712
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
2713
|
-
: undefined,
|
|
2665
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
2714
2666
|
enabled: __expectBoolean(output.enabled),
|
|
2715
2667
|
name: __expectString(output.name),
|
|
2716
|
-
source: output.source
|
|
2717
|
-
? deserializeAws_restJson1Source(output.source, context)
|
|
2718
|
-
: undefined,
|
|
2668
|
+
source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
|
|
2719
2669
|
trustAnchorArn: __expectString(output.trustAnchorArn),
|
|
2720
2670
|
trustAnchorId: __expectString(output.trustAnchorId),
|
|
2721
|
-
updatedAt: output.updatedAt
|
|
2722
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
2723
|
-
: undefined,
|
|
2671
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
2724
2672
|
};
|
|
2725
2673
|
};
|
|
2726
2674
|
var deserializeAws_restJson1TrustAnchorDetails = function (output, context) {
|
|
@@ -2772,6 +2720,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2772
2720
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2773
2721
|
var sanitizeErrorCode = function (rawValue) {
|
|
2774
2722
|
var cleanValue = rawValue;
|
|
2723
|
+
if (typeof cleanValue === "number") {
|
|
2724
|
+
cleanValue = cleanValue.toString();
|
|
2725
|
+
}
|
|
2775
2726
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2776
2727
|
cleanValue = cleanValue.split(":")[0];
|
|
2777
2728
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rolesanywhere",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rolesanywhere 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,35 +18,35 @@
|
|
|
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
52
|
"tslib": "^2.3.1"
|