@aws-sdk/client-accessanalyzer 3.28.0 → 3.32.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/AccessAnalyzer.ts +17 -20
- package/AccessAnalyzerClient.ts +9 -9
- package/CHANGELOG.md +35 -0
- package/README.md +9 -9
- package/commands/CreateAccessPreviewCommand.ts +2 -2
- package/commands/CreateArchiveRuleCommand.ts +1 -2
- package/commands/DeleteAnalyzerCommand.ts +3 -3
- package/commands/GetArchiveRuleCommand.ts +1 -2
- package/commands/ListFindingsCommand.ts +1 -2
- package/dist/cjs/AccessAnalyzer.js +9 -9
- package/dist/cjs/AccessAnalyzer.js.map +1 -1
- package/dist/cjs/AccessAnalyzerClient.js +9 -9
- package/dist/cjs/commands/CreateAccessPreviewCommand.js +2 -2
- package/dist/cjs/commands/CreateArchiveRuleCommand.js +1 -2
- package/dist/cjs/commands/CreateArchiveRuleCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAnalyzerCommand.js +3 -3
- package/dist/cjs/commands/GetArchiveRuleCommand.js +1 -2
- package/dist/cjs/commands/GetArchiveRuleCommand.js.map +1 -1
- package/dist/cjs/commands/ListFindingsCommand.js +1 -2
- package/dist/cjs/commands/ListFindingsCommand.js.map +1 -1
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +95 -53
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/AccessAnalyzer.js +9 -9
- package/dist/es/AccessAnalyzer.js.map +1 -1
- package/dist/es/AccessAnalyzerClient.js +9 -9
- package/dist/es/commands/CreateAccessPreviewCommand.js +2 -2
- package/dist/es/commands/CreateArchiveRuleCommand.js +1 -2
- package/dist/es/commands/CreateArchiveRuleCommand.js.map +1 -1
- package/dist/es/commands/DeleteAnalyzerCommand.js +3 -3
- package/dist/es/commands/GetArchiveRuleCommand.js +1 -2
- package/dist/es/commands/GetArchiveRuleCommand.js.map +1 -1
- package/dist/es/commands/ListFindingsCommand.js +1 -2
- package/dist/es/commands/ListFindingsCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +186 -108
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/AccessAnalyzer.d.ts +17 -20
- package/dist/types/AccessAnalyzerClient.d.ts +9 -9
- package/dist/types/commands/CreateAccessPreviewCommand.d.ts +2 -2
- package/dist/types/commands/CreateArchiveRuleCommand.d.ts +1 -2
- package/dist/types/commands/DeleteAnalyzerCommand.d.ts +3 -3
- package/dist/types/commands/GetArchiveRuleCommand.d.ts +1 -2
- package/dist/types/commands/ListFindingsCommand.d.ts +1 -2
- package/dist/types/models/models_0.d.ts +105 -98
- package/dist/types/ts3.4/AccessAnalyzer.d.ts +17 -20
- package/dist/types/ts3.4/AccessAnalyzerClient.d.ts +9 -9
- package/dist/types/ts3.4/commands/CreateAccessPreviewCommand.d.ts +2 -2
- package/dist/types/ts3.4/commands/CreateArchiveRuleCommand.d.ts +1 -2
- package/dist/types/ts3.4/commands/DeleteAnalyzerCommand.d.ts +3 -3
- package/dist/types/ts3.4/commands/GetArchiveRuleCommand.d.ts +1 -2
- package/dist/types/ts3.4/commands/ListFindingsCommand.d.ts +1 -2
- package/dist/types/ts3.4/models/models_0.d.ts +105 -98
- package/models/models_0.ts +105 -98
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +120 -55
package/dist/cjs/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-accessanalyzer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Accessanalyzer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,39 +27,39 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0",
|
|
59
59
|
"uuid": "^8.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
62
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
63
63
|
"@types/node": "^12.7.5",
|
|
64
64
|
"@types/uuid": "^8.3.0",
|
|
65
65
|
"downlevel-dts": "0.7.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"rimraf": "^3.0.0",
|
|
68
68
|
"ts-jest": "^26.4.1",
|
|
69
69
|
"typedoc": "^0.19.2",
|
|
70
|
-
"typescript": "~4.3.
|
|
70
|
+
"typescript": "~4.3.5"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=10.0.0"
|
|
@@ -974,7 +974,7 @@ const deserializeAws_restJson1CreateAccessPreviewCommand = async (output, contex
|
|
|
974
974
|
$metadata: deserializeMetadata(output),
|
|
975
975
|
id: undefined,
|
|
976
976
|
};
|
|
977
|
-
const data = await parseBody(output.body, context);
|
|
977
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
978
978
|
if (data.id !== undefined && data.id !== null) {
|
|
979
979
|
contents.id = smithy_client_1.expectString(data.id);
|
|
980
980
|
}
|
|
@@ -1070,7 +1070,7 @@ const deserializeAws_restJson1CreateAnalyzerCommand = async (output, context) =>
|
|
|
1070
1070
|
$metadata: deserializeMetadata(output),
|
|
1071
1071
|
arn: undefined,
|
|
1072
1072
|
};
|
|
1073
|
-
const data = await parseBody(output.body, context);
|
|
1073
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1074
1074
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1075
1075
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1076
1076
|
}
|
|
@@ -1402,7 +1402,7 @@ const deserializeAws_restJson1GetAccessPreviewCommand = async (output, context)
|
|
|
1402
1402
|
$metadata: deserializeMetadata(output),
|
|
1403
1403
|
accessPreview: undefined,
|
|
1404
1404
|
};
|
|
1405
|
-
const data = await parseBody(output.body, context);
|
|
1405
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1406
1406
|
if (data.accessPreview !== undefined && data.accessPreview !== null) {
|
|
1407
1407
|
contents.accessPreview = deserializeAws_restJson1AccessPreview(data.accessPreview, context);
|
|
1408
1408
|
}
|
|
@@ -1482,7 +1482,7 @@ const deserializeAws_restJson1GetAnalyzedResourceCommand = async (output, contex
|
|
|
1482
1482
|
$metadata: deserializeMetadata(output),
|
|
1483
1483
|
resource: undefined,
|
|
1484
1484
|
};
|
|
1485
|
-
const data = await parseBody(output.body, context);
|
|
1485
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1486
1486
|
if (data.resource !== undefined && data.resource !== null) {
|
|
1487
1487
|
contents.resource = deserializeAws_restJson1AnalyzedResource(data.resource, context);
|
|
1488
1488
|
}
|
|
@@ -1562,7 +1562,7 @@ const deserializeAws_restJson1GetAnalyzerCommand = async (output, context) => {
|
|
|
1562
1562
|
$metadata: deserializeMetadata(output),
|
|
1563
1563
|
analyzer: undefined,
|
|
1564
1564
|
};
|
|
1565
|
-
const data = await parseBody(output.body, context);
|
|
1565
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1566
1566
|
if (data.analyzer !== undefined && data.analyzer !== null) {
|
|
1567
1567
|
contents.analyzer = deserializeAws_restJson1AnalyzerSummary(data.analyzer, context);
|
|
1568
1568
|
}
|
|
@@ -1642,7 +1642,7 @@ const deserializeAws_restJson1GetArchiveRuleCommand = async (output, context) =>
|
|
|
1642
1642
|
$metadata: deserializeMetadata(output),
|
|
1643
1643
|
archiveRule: undefined,
|
|
1644
1644
|
};
|
|
1645
|
-
const data = await parseBody(output.body, context);
|
|
1645
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1646
1646
|
if (data.archiveRule !== undefined && data.archiveRule !== null) {
|
|
1647
1647
|
contents.archiveRule = deserializeAws_restJson1ArchiveRuleSummary(data.archiveRule, context);
|
|
1648
1648
|
}
|
|
@@ -1722,7 +1722,7 @@ const deserializeAws_restJson1GetFindingCommand = async (output, context) => {
|
|
|
1722
1722
|
$metadata: deserializeMetadata(output),
|
|
1723
1723
|
finding: undefined,
|
|
1724
1724
|
};
|
|
1725
|
-
const data = await parseBody(output.body, context);
|
|
1725
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1726
1726
|
if (data.finding !== undefined && data.finding !== null) {
|
|
1727
1727
|
contents.finding = deserializeAws_restJson1Finding(data.finding, context);
|
|
1728
1728
|
}
|
|
@@ -1803,7 +1803,7 @@ const deserializeAws_restJson1GetGeneratedPolicyCommand = async (output, context
|
|
|
1803
1803
|
generatedPolicyResult: undefined,
|
|
1804
1804
|
jobDetails: undefined,
|
|
1805
1805
|
};
|
|
1806
|
-
const data = await parseBody(output.body, context);
|
|
1806
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1807
1807
|
if (data.generatedPolicyResult !== undefined && data.generatedPolicyResult !== null) {
|
|
1808
1808
|
contents.generatedPolicyResult = deserializeAws_restJson1GeneratedPolicyResult(data.generatedPolicyResult, context);
|
|
1809
1809
|
}
|
|
@@ -1879,7 +1879,7 @@ const deserializeAws_restJson1ListAccessPreviewFindingsCommand = async (output,
|
|
|
1879
1879
|
findings: undefined,
|
|
1880
1880
|
nextToken: undefined,
|
|
1881
1881
|
};
|
|
1882
|
-
const data = await parseBody(output.body, context);
|
|
1882
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1883
1883
|
if (data.findings !== undefined && data.findings !== null) {
|
|
1884
1884
|
contents.findings = deserializeAws_restJson1AccessPreviewFindingsList(data.findings, context);
|
|
1885
1885
|
}
|
|
@@ -1971,7 +1971,7 @@ const deserializeAws_restJson1ListAccessPreviewsCommand = async (output, context
|
|
|
1971
1971
|
accessPreviews: undefined,
|
|
1972
1972
|
nextToken: undefined,
|
|
1973
1973
|
};
|
|
1974
|
-
const data = await parseBody(output.body, context);
|
|
1974
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1975
1975
|
if (data.accessPreviews !== undefined && data.accessPreviews !== null) {
|
|
1976
1976
|
contents.accessPreviews = deserializeAws_restJson1AccessPreviewsList(data.accessPreviews, context);
|
|
1977
1977
|
}
|
|
@@ -2055,7 +2055,7 @@ const deserializeAws_restJson1ListAnalyzedResourcesCommand = async (output, cont
|
|
|
2055
2055
|
analyzedResources: undefined,
|
|
2056
2056
|
nextToken: undefined,
|
|
2057
2057
|
};
|
|
2058
|
-
const data = await parseBody(output.body, context);
|
|
2058
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2059
2059
|
if (data.analyzedResources !== undefined && data.analyzedResources !== null) {
|
|
2060
2060
|
contents.analyzedResources = deserializeAws_restJson1AnalyzedResourcesList(data.analyzedResources, context);
|
|
2061
2061
|
}
|
|
@@ -2139,7 +2139,7 @@ const deserializeAws_restJson1ListAnalyzersCommand = async (output, context) =>
|
|
|
2139
2139
|
analyzers: undefined,
|
|
2140
2140
|
nextToken: undefined,
|
|
2141
2141
|
};
|
|
2142
|
-
const data = await parseBody(output.body, context);
|
|
2142
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2143
2143
|
if (data.analyzers !== undefined && data.analyzers !== null) {
|
|
2144
2144
|
contents.analyzers = deserializeAws_restJson1AnalyzersList(data.analyzers, context);
|
|
2145
2145
|
}
|
|
@@ -2215,7 +2215,7 @@ const deserializeAws_restJson1ListArchiveRulesCommand = async (output, context)
|
|
|
2215
2215
|
archiveRules: undefined,
|
|
2216
2216
|
nextToken: undefined,
|
|
2217
2217
|
};
|
|
2218
|
-
const data = await parseBody(output.body, context);
|
|
2218
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2219
2219
|
if (data.archiveRules !== undefined && data.archiveRules !== null) {
|
|
2220
2220
|
contents.archiveRules = deserializeAws_restJson1ArchiveRulesList(data.archiveRules, context);
|
|
2221
2221
|
}
|
|
@@ -2291,7 +2291,7 @@ const deserializeAws_restJson1ListFindingsCommand = async (output, context) => {
|
|
|
2291
2291
|
findings: undefined,
|
|
2292
2292
|
nextToken: undefined,
|
|
2293
2293
|
};
|
|
2294
|
-
const data = await parseBody(output.body, context);
|
|
2294
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2295
2295
|
if (data.findings !== undefined && data.findings !== null) {
|
|
2296
2296
|
contents.findings = deserializeAws_restJson1FindingsList(data.findings, context);
|
|
2297
2297
|
}
|
|
@@ -2375,7 +2375,7 @@ const deserializeAws_restJson1ListPolicyGenerationsCommand = async (output, cont
|
|
|
2375
2375
|
nextToken: undefined,
|
|
2376
2376
|
policyGenerations: undefined,
|
|
2377
2377
|
};
|
|
2378
|
-
const data = await parseBody(output.body, context);
|
|
2378
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2379
2379
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2380
2380
|
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2381
2381
|
}
|
|
@@ -2450,7 +2450,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2450
2450
|
$metadata: deserializeMetadata(output),
|
|
2451
2451
|
tags: undefined,
|
|
2452
2452
|
};
|
|
2453
|
-
const data = await parseBody(output.body, context);
|
|
2453
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2454
2454
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2455
2455
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2456
2456
|
}
|
|
@@ -2530,7 +2530,7 @@ const deserializeAws_restJson1StartPolicyGenerationCommand = async (output, cont
|
|
|
2530
2530
|
$metadata: deserializeMetadata(output),
|
|
2531
2531
|
jobId: undefined,
|
|
2532
2532
|
};
|
|
2533
|
-
const data = await parseBody(output.body, context);
|
|
2533
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2534
2534
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
2535
2535
|
contents.jobId = smithy_client_1.expectString(data.jobId);
|
|
2536
2536
|
}
|
|
@@ -2999,7 +2999,7 @@ const deserializeAws_restJson1ValidatePolicyCommand = async (output, context) =>
|
|
|
2999
2999
|
findings: undefined,
|
|
3000
3000
|
nextToken: undefined,
|
|
3001
3001
|
};
|
|
3002
|
-
const data = await parseBody(output.body, context);
|
|
3002
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3003
3003
|
if (data.findings !== undefined && data.findings !== null) {
|
|
3004
3004
|
contents.findings = deserializeAws_restJson1ValidatePolicyFindingList(data.findings, context);
|
|
3005
3005
|
}
|
|
@@ -3110,7 +3110,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3110
3110
|
retryAfterSeconds: undefined,
|
|
3111
3111
|
};
|
|
3112
3112
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3113
|
-
contents.retryAfterSeconds = smithy_client_1.
|
|
3113
|
+
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3114
3114
|
}
|
|
3115
3115
|
const data = parsedOutput.body;
|
|
3116
3116
|
if (data.message !== undefined && data.message !== null) {
|
|
@@ -3172,7 +3172,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3172
3172
|
retryAfterSeconds: undefined,
|
|
3173
3173
|
};
|
|
3174
3174
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3175
|
-
contents.retryAfterSeconds = smithy_client_1.
|
|
3175
|
+
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3176
3176
|
}
|
|
3177
3177
|
const data = parsedOutput.body;
|
|
3178
3178
|
if (data.message !== undefined && data.message !== null) {
|
|
@@ -3537,7 +3537,9 @@ const deserializeAws_restJson1AccessPreview = (output, context) => {
|
|
|
3537
3537
|
configurations: output.configurations !== undefined && output.configurations !== null
|
|
3538
3538
|
? deserializeAws_restJson1ConfigurationsMap(output.configurations, context)
|
|
3539
3539
|
: undefined,
|
|
3540
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3540
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3541
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3542
|
+
: undefined,
|
|
3541
3543
|
id: smithy_client_1.expectString(output.id),
|
|
3542
3544
|
status: smithy_client_1.expectString(output.status),
|
|
3543
3545
|
statusReason: output.statusReason !== undefined && output.statusReason !== null
|
|
@@ -3554,7 +3556,9 @@ const deserializeAws_restJson1AccessPreviewFinding = (output, context) => {
|
|
|
3554
3556
|
condition: output.condition !== undefined && output.condition !== null
|
|
3555
3557
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
3556
3558
|
: undefined,
|
|
3557
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3559
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3560
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3561
|
+
: undefined,
|
|
3558
3562
|
error: smithy_client_1.expectString(output.error),
|
|
3559
3563
|
existingFindingId: smithy_client_1.expectString(output.existingFindingId),
|
|
3560
3564
|
existingFindingStatus: smithy_client_1.expectString(output.existingFindingStatus),
|
|
@@ -3600,7 +3604,9 @@ const deserializeAws_restJson1AccessPreviewStatusReason = (output, context) => {
|
|
|
3600
3604
|
const deserializeAws_restJson1AccessPreviewSummary = (output, context) => {
|
|
3601
3605
|
return {
|
|
3602
3606
|
analyzerArn: smithy_client_1.expectString(output.analyzerArn),
|
|
3603
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3607
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3608
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3609
|
+
: undefined,
|
|
3604
3610
|
id: smithy_client_1.expectString(output.id),
|
|
3605
3611
|
status: smithy_client_1.expectString(output.status),
|
|
3606
3612
|
statusReason: output.statusReason !== undefined && output.statusReason !== null
|
|
@@ -3632,8 +3638,12 @@ const deserializeAws_restJson1AnalyzedResource = (output, context) => {
|
|
|
3632
3638
|
actions: output.actions !== undefined && output.actions !== null
|
|
3633
3639
|
? deserializeAws_restJson1ActionList(output.actions, context)
|
|
3634
3640
|
: undefined,
|
|
3635
|
-
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3636
|
-
|
|
3641
|
+
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3642
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.analyzedAt))
|
|
3643
|
+
: undefined,
|
|
3644
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3645
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3646
|
+
: undefined,
|
|
3637
3647
|
error: smithy_client_1.expectString(output.error),
|
|
3638
3648
|
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
3639
3649
|
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
@@ -3643,7 +3653,9 @@ const deserializeAws_restJson1AnalyzedResource = (output, context) => {
|
|
|
3643
3653
|
? deserializeAws_restJson1SharedViaList(output.sharedVia, context)
|
|
3644
3654
|
: undefined,
|
|
3645
3655
|
status: smithy_client_1.expectString(output.status),
|
|
3646
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3656
|
+
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3657
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
3658
|
+
: undefined,
|
|
3647
3659
|
};
|
|
3648
3660
|
};
|
|
3649
3661
|
const deserializeAws_restJson1AnalyzedResourcesList = (output, context) => {
|
|
@@ -3676,10 +3688,12 @@ const deserializeAws_restJson1AnalyzersList = (output, context) => {
|
|
|
3676
3688
|
const deserializeAws_restJson1AnalyzerSummary = (output, context) => {
|
|
3677
3689
|
return {
|
|
3678
3690
|
arn: smithy_client_1.expectString(output.arn),
|
|
3679
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3691
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3692
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3693
|
+
: undefined,
|
|
3680
3694
|
lastResourceAnalyzed: smithy_client_1.expectString(output.lastResourceAnalyzed),
|
|
3681
3695
|
lastResourceAnalyzedAt: output.lastResourceAnalyzedAt !== undefined && output.lastResourceAnalyzedAt !== null
|
|
3682
|
-
?
|
|
3696
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastResourceAnalyzedAt))
|
|
3683
3697
|
: undefined,
|
|
3684
3698
|
name: smithy_client_1.expectString(output.name),
|
|
3685
3699
|
status: smithy_client_1.expectString(output.status),
|
|
@@ -3704,18 +3718,26 @@ const deserializeAws_restJson1ArchiveRulesList = (output, context) => {
|
|
|
3704
3718
|
};
|
|
3705
3719
|
const deserializeAws_restJson1ArchiveRuleSummary = (output, context) => {
|
|
3706
3720
|
return {
|
|
3707
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3721
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3722
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3723
|
+
: undefined,
|
|
3708
3724
|
filter: output.filter !== undefined && output.filter !== null
|
|
3709
3725
|
? deserializeAws_restJson1FilterCriteriaMap(output.filter, context)
|
|
3710
3726
|
: undefined,
|
|
3711
3727
|
ruleName: smithy_client_1.expectString(output.ruleName),
|
|
3712
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3728
|
+
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3729
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
3730
|
+
: undefined,
|
|
3713
3731
|
};
|
|
3714
3732
|
};
|
|
3715
3733
|
const deserializeAws_restJson1CloudTrailProperties = (output, context) => {
|
|
3716
3734
|
return {
|
|
3717
|
-
endTime: output.endTime !== undefined && output.endTime !== null
|
|
3718
|
-
|
|
3735
|
+
endTime: output.endTime !== undefined && output.endTime !== null
|
|
3736
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.endTime))
|
|
3737
|
+
: undefined,
|
|
3738
|
+
startTime: output.startTime !== undefined && output.startTime !== null
|
|
3739
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startTime))
|
|
3740
|
+
: undefined,
|
|
3719
3741
|
trailProperties: output.trailProperties !== undefined && output.trailProperties !== null
|
|
3720
3742
|
? deserializeAws_restJson1TrailPropertiesList(output.trailProperties, context)
|
|
3721
3743
|
: undefined,
|
|
@@ -3767,7 +3789,7 @@ const deserializeAws_restJson1ConfigurationsMap = (output, context) => {
|
|
|
3767
3789
|
}
|
|
3768
3790
|
return {
|
|
3769
3791
|
...acc,
|
|
3770
|
-
[key]: deserializeAws_restJson1Configuration(value, context),
|
|
3792
|
+
[key]: deserializeAws_restJson1Configuration(smithy_client_1.expectUnion(value), context),
|
|
3771
3793
|
};
|
|
3772
3794
|
}, {});
|
|
3773
3795
|
};
|
|
@@ -3799,11 +3821,15 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3799
3821
|
action: output.action !== undefined && output.action !== null
|
|
3800
3822
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
3801
3823
|
: undefined,
|
|
3802
|
-
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3824
|
+
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3825
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.analyzedAt))
|
|
3826
|
+
: undefined,
|
|
3803
3827
|
condition: output.condition !== undefined && output.condition !== null
|
|
3804
3828
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
3805
3829
|
: undefined,
|
|
3806
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3830
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3831
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3832
|
+
: undefined,
|
|
3807
3833
|
error: smithy_client_1.expectString(output.error),
|
|
3808
3834
|
id: smithy_client_1.expectString(output.id),
|
|
3809
3835
|
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
@@ -3817,7 +3843,9 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
3817
3843
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
3818
3844
|
: undefined,
|
|
3819
3845
|
status: smithy_client_1.expectString(output.status),
|
|
3820
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3846
|
+
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3847
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
3848
|
+
: undefined,
|
|
3821
3849
|
};
|
|
3822
3850
|
};
|
|
3823
3851
|
const deserializeAws_restJson1FindingsList = (output, context) => {
|
|
@@ -3858,11 +3886,15 @@ const deserializeAws_restJson1FindingSummary = (output, context) => {
|
|
|
3858
3886
|
action: output.action !== undefined && output.action !== null
|
|
3859
3887
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
3860
3888
|
: undefined,
|
|
3861
|
-
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3889
|
+
analyzedAt: output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
3890
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.analyzedAt))
|
|
3891
|
+
: undefined,
|
|
3862
3892
|
condition: output.condition !== undefined && output.condition !== null
|
|
3863
3893
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
3864
3894
|
: undefined,
|
|
3865
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3895
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
3896
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
3897
|
+
: undefined,
|
|
3866
3898
|
error: smithy_client_1.expectString(output.error),
|
|
3867
3899
|
id: smithy_client_1.expectString(output.id),
|
|
3868
3900
|
isPublic: smithy_client_1.expectBoolean(output.isPublic),
|
|
@@ -3876,7 +3908,9 @@ const deserializeAws_restJson1FindingSummary = (output, context) => {
|
|
|
3876
3908
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
3877
3909
|
: undefined,
|
|
3878
3910
|
status: smithy_client_1.expectString(output.status),
|
|
3879
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3911
|
+
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
3912
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
3913
|
+
: undefined,
|
|
3880
3914
|
};
|
|
3881
3915
|
};
|
|
3882
3916
|
const deserializeAws_restJson1GeneratedPolicy = (output, context) => {
|
|
@@ -3923,12 +3957,16 @@ const deserializeAws_restJson1InternetConfiguration = (output, context) => {
|
|
|
3923
3957
|
};
|
|
3924
3958
|
const deserializeAws_restJson1JobDetails = (output, context) => {
|
|
3925
3959
|
return {
|
|
3926
|
-
completedOn: output.completedOn !== undefined && output.completedOn !== null
|
|
3960
|
+
completedOn: output.completedOn !== undefined && output.completedOn !== null
|
|
3961
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.completedOn))
|
|
3962
|
+
: undefined,
|
|
3927
3963
|
jobError: output.jobError !== undefined && output.jobError !== null
|
|
3928
3964
|
? deserializeAws_restJson1JobError(output.jobError, context)
|
|
3929
3965
|
: undefined,
|
|
3930
3966
|
jobId: smithy_client_1.expectString(output.jobId),
|
|
3931
|
-
startedOn: output.startedOn !== undefined && output.startedOn !== null
|
|
3967
|
+
startedOn: output.startedOn !== undefined && output.startedOn !== null
|
|
3968
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startedOn))
|
|
3969
|
+
: undefined,
|
|
3932
3970
|
status: smithy_client_1.expectString(output.status),
|
|
3933
3971
|
};
|
|
3934
3972
|
};
|
|
@@ -4047,8 +4085,8 @@ const deserializeAws_restJson1NetworkOriginConfiguration = (output, context) =>
|
|
|
4047
4085
|
return { $unknown: Object.entries(output)[0] };
|
|
4048
4086
|
};
|
|
4049
4087
|
const deserializeAws_restJson1PathElement = (output, context) => {
|
|
4050
|
-
if (smithy_client_1.
|
|
4051
|
-
return { index: smithy_client_1.
|
|
4088
|
+
if (smithy_client_1.expectInt32(output.index) !== undefined) {
|
|
4089
|
+
return { index: smithy_client_1.expectInt32(output.index) };
|
|
4052
4090
|
}
|
|
4053
4091
|
if (smithy_client_1.expectString(output.key) !== undefined) {
|
|
4054
4092
|
return { key: smithy_client_1.expectString(output.key) };
|
|
@@ -4070,15 +4108,19 @@ const deserializeAws_restJson1PathElementList = (output, context) => {
|
|
|
4070
4108
|
if (entry === null) {
|
|
4071
4109
|
return null;
|
|
4072
4110
|
}
|
|
4073
|
-
return deserializeAws_restJson1PathElement(entry, context);
|
|
4111
|
+
return deserializeAws_restJson1PathElement(smithy_client_1.expectUnion(entry), context);
|
|
4074
4112
|
});
|
|
4075
4113
|
};
|
|
4076
4114
|
const deserializeAws_restJson1PolicyGeneration = (output, context) => {
|
|
4077
4115
|
return {
|
|
4078
|
-
completedOn: output.completedOn !== undefined && output.completedOn !== null
|
|
4116
|
+
completedOn: output.completedOn !== undefined && output.completedOn !== null
|
|
4117
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.completedOn))
|
|
4118
|
+
: undefined,
|
|
4079
4119
|
jobId: smithy_client_1.expectString(output.jobId),
|
|
4080
4120
|
principalArn: smithy_client_1.expectString(output.principalArn),
|
|
4081
|
-
startedOn: output.startedOn !== undefined && output.startedOn !== null
|
|
4121
|
+
startedOn: output.startedOn !== undefined && output.startedOn !== null
|
|
4122
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.startedOn))
|
|
4123
|
+
: undefined,
|
|
4082
4124
|
status: smithy_client_1.expectString(output.status),
|
|
4083
4125
|
};
|
|
4084
4126
|
};
|
|
@@ -4094,9 +4136,9 @@ const deserializeAws_restJson1PolicyGenerationList = (output, context) => {
|
|
|
4094
4136
|
};
|
|
4095
4137
|
const deserializeAws_restJson1Position = (output, context) => {
|
|
4096
4138
|
return {
|
|
4097
|
-
column: smithy_client_1.
|
|
4098
|
-
line: smithy_client_1.
|
|
4099
|
-
offset: smithy_client_1.
|
|
4139
|
+
column: smithy_client_1.expectInt32(output.column),
|
|
4140
|
+
line: smithy_client_1.expectInt32(output.line),
|
|
4141
|
+
offset: smithy_client_1.expectInt32(output.offset),
|
|
4100
4142
|
};
|
|
4101
4143
|
};
|
|
4102
4144
|
const deserializeAws_restJson1PrincipalMap = (output, context) => {
|
|
@@ -4124,7 +4166,7 @@ const deserializeAws_restJson1S3AccessPointConfiguration = (output, context) =>
|
|
|
4124
4166
|
return {
|
|
4125
4167
|
accessPointPolicy: smithy_client_1.expectString(output.accessPointPolicy),
|
|
4126
4168
|
networkOrigin: output.networkOrigin !== undefined && output.networkOrigin !== null
|
|
4127
|
-
? deserializeAws_restJson1NetworkOriginConfiguration(output.networkOrigin, context)
|
|
4169
|
+
? deserializeAws_restJson1NetworkOriginConfiguration(smithy_client_1.expectUnion(output.networkOrigin), context)
|
|
4128
4170
|
: undefined,
|
|
4129
4171
|
publicAccessBlock: output.publicAccessBlock !== undefined && output.publicAccessBlock !== null
|
|
4130
4172
|
? deserializeAws_restJson1S3PublicAccessBlockConfiguration(output.publicAccessBlock, context)
|
|
@@ -4145,7 +4187,7 @@ const deserializeAws_restJson1S3AccessPointConfigurationsMap = (output, context)
|
|
|
4145
4187
|
const deserializeAws_restJson1S3BucketAclGrantConfiguration = (output, context) => {
|
|
4146
4188
|
return {
|
|
4147
4189
|
grantee: output.grantee !== undefined && output.grantee !== null
|
|
4148
|
-
? deserializeAws_restJson1AclGrantee(output.grantee, context)
|
|
4190
|
+
? deserializeAws_restJson1AclGrantee(smithy_client_1.expectUnion(output.grantee), context)
|
|
4149
4191
|
: undefined,
|
|
4150
4192
|
permission: smithy_client_1.expectString(output.permission),
|
|
4151
4193
|
};
|
|
@@ -4218,8 +4260,8 @@ const deserializeAws_restJson1StatusReason = (output, context) => {
|
|
|
4218
4260
|
};
|
|
4219
4261
|
const deserializeAws_restJson1Substring = (output, context) => {
|
|
4220
4262
|
return {
|
|
4221
|
-
length: smithy_client_1.
|
|
4222
|
-
start: smithy_client_1.
|
|
4263
|
+
length: smithy_client_1.expectInt32(output.length),
|
|
4264
|
+
start: smithy_client_1.expectInt32(output.start),
|
|
4223
4265
|
};
|
|
4224
4266
|
};
|
|
4225
4267
|
const deserializeAws_restJson1TagsMap = (output, context) => {
|