@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
|
@@ -112,10 +112,14 @@ import {
|
|
|
112
112
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
113
113
|
import {
|
|
114
114
|
expectBoolean as __expectBoolean,
|
|
115
|
-
|
|
115
|
+
expectInt32 as __expectInt32,
|
|
116
|
+
expectNonNull as __expectNonNull,
|
|
117
|
+
expectObject as __expectObject,
|
|
116
118
|
expectString as __expectString,
|
|
119
|
+
expectUnion as __expectUnion,
|
|
117
120
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
118
|
-
|
|
121
|
+
parseRfc3339DateTime as __parseRfc3339DateTime,
|
|
122
|
+
strictParseInt32 as __strictParseInt32,
|
|
119
123
|
} from "@aws-sdk/smithy-client";
|
|
120
124
|
import {
|
|
121
125
|
Endpoint as __Endpoint,
|
|
@@ -1179,7 +1183,7 @@ export const deserializeAws_restJson1CreateAccessPreviewCommand = async (
|
|
|
1179
1183
|
$metadata: deserializeMetadata(output),
|
|
1180
1184
|
id: undefined,
|
|
1181
1185
|
};
|
|
1182
|
-
const data: any = await parseBody(output.body, context);
|
|
1186
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1183
1187
|
if (data.id !== undefined && data.id !== null) {
|
|
1184
1188
|
contents.id = __expectString(data.id);
|
|
1185
1189
|
}
|
|
@@ -1282,7 +1286,7 @@ export const deserializeAws_restJson1CreateAnalyzerCommand = async (
|
|
|
1282
1286
|
$metadata: deserializeMetadata(output),
|
|
1283
1287
|
arn: undefined,
|
|
1284
1288
|
};
|
|
1285
|
-
const data: any = await parseBody(output.body, context);
|
|
1289
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1286
1290
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1287
1291
|
contents.arn = __expectString(data.arn);
|
|
1288
1292
|
}
|
|
@@ -1642,7 +1646,7 @@ export const deserializeAws_restJson1GetAccessPreviewCommand = async (
|
|
|
1642
1646
|
$metadata: deserializeMetadata(output),
|
|
1643
1647
|
accessPreview: undefined,
|
|
1644
1648
|
};
|
|
1645
|
-
const data: any = await parseBody(output.body, context);
|
|
1649
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1646
1650
|
if (data.accessPreview !== undefined && data.accessPreview !== null) {
|
|
1647
1651
|
contents.accessPreview = deserializeAws_restJson1AccessPreview(data.accessPreview, context);
|
|
1648
1652
|
}
|
|
@@ -1729,7 +1733,7 @@ export const deserializeAws_restJson1GetAnalyzedResourceCommand = async (
|
|
|
1729
1733
|
$metadata: deserializeMetadata(output),
|
|
1730
1734
|
resource: undefined,
|
|
1731
1735
|
};
|
|
1732
|
-
const data: any = await parseBody(output.body, context);
|
|
1736
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1733
1737
|
if (data.resource !== undefined && data.resource !== null) {
|
|
1734
1738
|
contents.resource = deserializeAws_restJson1AnalyzedResource(data.resource, context);
|
|
1735
1739
|
}
|
|
@@ -1816,7 +1820,7 @@ export const deserializeAws_restJson1GetAnalyzerCommand = async (
|
|
|
1816
1820
|
$metadata: deserializeMetadata(output),
|
|
1817
1821
|
analyzer: undefined,
|
|
1818
1822
|
};
|
|
1819
|
-
const data: any = await parseBody(output.body, context);
|
|
1823
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1820
1824
|
if (data.analyzer !== undefined && data.analyzer !== null) {
|
|
1821
1825
|
contents.analyzer = deserializeAws_restJson1AnalyzerSummary(data.analyzer, context);
|
|
1822
1826
|
}
|
|
@@ -1903,7 +1907,7 @@ export const deserializeAws_restJson1GetArchiveRuleCommand = async (
|
|
|
1903
1907
|
$metadata: deserializeMetadata(output),
|
|
1904
1908
|
archiveRule: undefined,
|
|
1905
1909
|
};
|
|
1906
|
-
const data: any = await parseBody(output.body, context);
|
|
1910
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1907
1911
|
if (data.archiveRule !== undefined && data.archiveRule !== null) {
|
|
1908
1912
|
contents.archiveRule = deserializeAws_restJson1ArchiveRuleSummary(data.archiveRule, context);
|
|
1909
1913
|
}
|
|
@@ -1990,7 +1994,7 @@ export const deserializeAws_restJson1GetFindingCommand = async (
|
|
|
1990
1994
|
$metadata: deserializeMetadata(output),
|
|
1991
1995
|
finding: undefined,
|
|
1992
1996
|
};
|
|
1993
|
-
const data: any = await parseBody(output.body, context);
|
|
1997
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1994
1998
|
if (data.finding !== undefined && data.finding !== null) {
|
|
1995
1999
|
contents.finding = deserializeAws_restJson1Finding(data.finding, context);
|
|
1996
2000
|
}
|
|
@@ -2078,7 +2082,7 @@ export const deserializeAws_restJson1GetGeneratedPolicyCommand = async (
|
|
|
2078
2082
|
generatedPolicyResult: undefined,
|
|
2079
2083
|
jobDetails: undefined,
|
|
2080
2084
|
};
|
|
2081
|
-
const data: any = await parseBody(output.body, context);
|
|
2085
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2082
2086
|
if (data.generatedPolicyResult !== undefined && data.generatedPolicyResult !== null) {
|
|
2083
2087
|
contents.generatedPolicyResult = deserializeAws_restJson1GeneratedPolicyResult(data.generatedPolicyResult, context);
|
|
2084
2088
|
}
|
|
@@ -2161,7 +2165,7 @@ export const deserializeAws_restJson1ListAccessPreviewFindingsCommand = async (
|
|
|
2161
2165
|
findings: undefined,
|
|
2162
2166
|
nextToken: undefined,
|
|
2163
2167
|
};
|
|
2164
|
-
const data: any = await parseBody(output.body, context);
|
|
2168
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2165
2169
|
if (data.findings !== undefined && data.findings !== null) {
|
|
2166
2170
|
contents.findings = deserializeAws_restJson1AccessPreviewFindingsList(data.findings, context);
|
|
2167
2171
|
}
|
|
@@ -2260,7 +2264,7 @@ export const deserializeAws_restJson1ListAccessPreviewsCommand = async (
|
|
|
2260
2264
|
accessPreviews: undefined,
|
|
2261
2265
|
nextToken: undefined,
|
|
2262
2266
|
};
|
|
2263
|
-
const data: any = await parseBody(output.body, context);
|
|
2267
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2264
2268
|
if (data.accessPreviews !== undefined && data.accessPreviews !== null) {
|
|
2265
2269
|
contents.accessPreviews = deserializeAws_restJson1AccessPreviewsList(data.accessPreviews, context);
|
|
2266
2270
|
}
|
|
@@ -2351,7 +2355,7 @@ export const deserializeAws_restJson1ListAnalyzedResourcesCommand = async (
|
|
|
2351
2355
|
analyzedResources: undefined,
|
|
2352
2356
|
nextToken: undefined,
|
|
2353
2357
|
};
|
|
2354
|
-
const data: any = await parseBody(output.body, context);
|
|
2358
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2355
2359
|
if (data.analyzedResources !== undefined && data.analyzedResources !== null) {
|
|
2356
2360
|
contents.analyzedResources = deserializeAws_restJson1AnalyzedResourcesList(data.analyzedResources, context);
|
|
2357
2361
|
}
|
|
@@ -2442,7 +2446,7 @@ export const deserializeAws_restJson1ListAnalyzersCommand = async (
|
|
|
2442
2446
|
analyzers: undefined,
|
|
2443
2447
|
nextToken: undefined,
|
|
2444
2448
|
};
|
|
2445
|
-
const data: any = await parseBody(output.body, context);
|
|
2449
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2446
2450
|
if (data.analyzers !== undefined && data.analyzers !== null) {
|
|
2447
2451
|
contents.analyzers = deserializeAws_restJson1AnalyzersList(data.analyzers, context);
|
|
2448
2452
|
}
|
|
@@ -2525,7 +2529,7 @@ export const deserializeAws_restJson1ListArchiveRulesCommand = async (
|
|
|
2525
2529
|
archiveRules: undefined,
|
|
2526
2530
|
nextToken: undefined,
|
|
2527
2531
|
};
|
|
2528
|
-
const data: any = await parseBody(output.body, context);
|
|
2532
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2529
2533
|
if (data.archiveRules !== undefined && data.archiveRules !== null) {
|
|
2530
2534
|
contents.archiveRules = deserializeAws_restJson1ArchiveRulesList(data.archiveRules, context);
|
|
2531
2535
|
}
|
|
@@ -2608,7 +2612,7 @@ export const deserializeAws_restJson1ListFindingsCommand = async (
|
|
|
2608
2612
|
findings: undefined,
|
|
2609
2613
|
nextToken: undefined,
|
|
2610
2614
|
};
|
|
2611
|
-
const data: any = await parseBody(output.body, context);
|
|
2615
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2612
2616
|
if (data.findings !== undefined && data.findings !== null) {
|
|
2613
2617
|
contents.findings = deserializeAws_restJson1FindingsList(data.findings, context);
|
|
2614
2618
|
}
|
|
@@ -2699,7 +2703,7 @@ export const deserializeAws_restJson1ListPolicyGenerationsCommand = async (
|
|
|
2699
2703
|
nextToken: undefined,
|
|
2700
2704
|
policyGenerations: undefined,
|
|
2701
2705
|
};
|
|
2702
|
-
const data: any = await parseBody(output.body, context);
|
|
2706
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2703
2707
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2704
2708
|
contents.nextToken = __expectString(data.nextToken);
|
|
2705
2709
|
}
|
|
@@ -2781,7 +2785,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
|
|
|
2781
2785
|
$metadata: deserializeMetadata(output),
|
|
2782
2786
|
tags: undefined,
|
|
2783
2787
|
};
|
|
2784
|
-
const data: any = await parseBody(output.body, context);
|
|
2788
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2785
2789
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2786
2790
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2787
2791
|
}
|
|
@@ -2868,7 +2872,7 @@ export const deserializeAws_restJson1StartPolicyGenerationCommand = async (
|
|
|
2868
2872
|
$metadata: deserializeMetadata(output),
|
|
2869
2873
|
jobId: undefined,
|
|
2870
2874
|
};
|
|
2871
|
-
const data: any = await parseBody(output.body, context);
|
|
2875
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2872
2876
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
2873
2877
|
contents.jobId = __expectString(data.jobId);
|
|
2874
2878
|
}
|
|
@@ -3379,7 +3383,7 @@ export const deserializeAws_restJson1ValidatePolicyCommand = async (
|
|
|
3379
3383
|
findings: undefined,
|
|
3380
3384
|
nextToken: undefined,
|
|
3381
3385
|
};
|
|
3382
|
-
const data: any = await parseBody(output.body, context);
|
|
3386
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3383
3387
|
if (data.findings !== undefined && data.findings !== null) {
|
|
3384
3388
|
contents.findings = deserializeAws_restJson1ValidatePolicyFindingList(data.findings, context);
|
|
3385
3389
|
}
|
|
@@ -3505,7 +3509,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (
|
|
|
3505
3509
|
retryAfterSeconds: undefined,
|
|
3506
3510
|
};
|
|
3507
3511
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3508
|
-
contents.retryAfterSeconds =
|
|
3512
|
+
contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3509
3513
|
}
|
|
3510
3514
|
const data: any = parsedOutput.body;
|
|
3511
3515
|
if (data.message !== undefined && data.message !== null) {
|
|
@@ -3579,7 +3583,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (
|
|
|
3579
3583
|
retryAfterSeconds: undefined,
|
|
3580
3584
|
};
|
|
3581
3585
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
3582
|
-
contents.retryAfterSeconds =
|
|
3586
|
+
contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
3583
3587
|
}
|
|
3584
3588
|
const data: any = parsedOutput.body;
|
|
3585
3589
|
if (data.message !== undefined && data.message !== null) {
|
|
@@ -4021,7 +4025,10 @@ const deserializeAws_restJson1AccessPreview = (output: any, context: __SerdeCont
|
|
|
4021
4025
|
output.configurations !== undefined && output.configurations !== null
|
|
4022
4026
|
? deserializeAws_restJson1ConfigurationsMap(output.configurations, context)
|
|
4023
4027
|
: undefined,
|
|
4024
|
-
createdAt:
|
|
4028
|
+
createdAt:
|
|
4029
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
4030
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
4031
|
+
: undefined,
|
|
4025
4032
|
id: __expectString(output.id),
|
|
4026
4033
|
status: __expectString(output.status),
|
|
4027
4034
|
statusReason:
|
|
@@ -4042,7 +4049,10 @@ const deserializeAws_restJson1AccessPreviewFinding = (output: any, context: __Se
|
|
|
4042
4049
|
output.condition !== undefined && output.condition !== null
|
|
4043
4050
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
4044
4051
|
: undefined,
|
|
4045
|
-
createdAt:
|
|
4052
|
+
createdAt:
|
|
4053
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
4054
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
4055
|
+
: undefined,
|
|
4046
4056
|
error: __expectString(output.error),
|
|
4047
4057
|
existingFindingId: __expectString(output.existingFindingId),
|
|
4048
4058
|
existingFindingStatus: __expectString(output.existingFindingStatus),
|
|
@@ -4100,7 +4110,10 @@ const deserializeAws_restJson1AccessPreviewStatusReason = (
|
|
|
4100
4110
|
const deserializeAws_restJson1AccessPreviewSummary = (output: any, context: __SerdeContext): AccessPreviewSummary => {
|
|
4101
4111
|
return {
|
|
4102
4112
|
analyzerArn: __expectString(output.analyzerArn),
|
|
4103
|
-
createdAt:
|
|
4113
|
+
createdAt:
|
|
4114
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
4115
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
4116
|
+
: undefined,
|
|
4104
4117
|
id: __expectString(output.id),
|
|
4105
4118
|
status: __expectString(output.status),
|
|
4106
4119
|
statusReason:
|
|
@@ -4137,8 +4150,14 @@ const deserializeAws_restJson1AnalyzedResource = (output: any, context: __SerdeC
|
|
|
4137
4150
|
output.actions !== undefined && output.actions !== null
|
|
4138
4151
|
? deserializeAws_restJson1ActionList(output.actions, context)
|
|
4139
4152
|
: undefined,
|
|
4140
|
-
analyzedAt:
|
|
4141
|
-
|
|
4153
|
+
analyzedAt:
|
|
4154
|
+
output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
4155
|
+
? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt))
|
|
4156
|
+
: undefined,
|
|
4157
|
+
createdAt:
|
|
4158
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
4159
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
4160
|
+
: undefined,
|
|
4142
4161
|
error: __expectString(output.error),
|
|
4143
4162
|
isPublic: __expectBoolean(output.isPublic),
|
|
4144
4163
|
resourceArn: __expectString(output.resourceArn),
|
|
@@ -4149,7 +4168,10 @@ const deserializeAws_restJson1AnalyzedResource = (output: any, context: __SerdeC
|
|
|
4149
4168
|
? deserializeAws_restJson1SharedViaList(output.sharedVia, context)
|
|
4150
4169
|
: undefined,
|
|
4151
4170
|
status: __expectString(output.status),
|
|
4152
|
-
updatedAt:
|
|
4171
|
+
updatedAt:
|
|
4172
|
+
output.updatedAt !== undefined && output.updatedAt !== null
|
|
4173
|
+
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
4174
|
+
: undefined,
|
|
4153
4175
|
} as any;
|
|
4154
4176
|
};
|
|
4155
4177
|
|
|
@@ -4192,11 +4214,14 @@ const deserializeAws_restJson1AnalyzersList = (output: any, context: __SerdeCont
|
|
|
4192
4214
|
const deserializeAws_restJson1AnalyzerSummary = (output: any, context: __SerdeContext): AnalyzerSummary => {
|
|
4193
4215
|
return {
|
|
4194
4216
|
arn: __expectString(output.arn),
|
|
4195
|
-
createdAt:
|
|
4217
|
+
createdAt:
|
|
4218
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
4219
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
4220
|
+
: undefined,
|
|
4196
4221
|
lastResourceAnalyzed: __expectString(output.lastResourceAnalyzed),
|
|
4197
4222
|
lastResourceAnalyzedAt:
|
|
4198
4223
|
output.lastResourceAnalyzedAt !== undefined && output.lastResourceAnalyzedAt !== null
|
|
4199
|
-
?
|
|
4224
|
+
? __expectNonNull(__parseRfc3339DateTime(output.lastResourceAnalyzedAt))
|
|
4200
4225
|
: undefined,
|
|
4201
4226
|
name: __expectString(output.name),
|
|
4202
4227
|
status: __expectString(output.status),
|
|
@@ -4225,20 +4250,32 @@ const deserializeAws_restJson1ArchiveRulesList = (output: any, context: __SerdeC
|
|
|
4225
4250
|
|
|
4226
4251
|
const deserializeAws_restJson1ArchiveRuleSummary = (output: any, context: __SerdeContext): ArchiveRuleSummary => {
|
|
4227
4252
|
return {
|
|
4228
|
-
createdAt:
|
|
4253
|
+
createdAt:
|
|
4254
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
4255
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
4256
|
+
: undefined,
|
|
4229
4257
|
filter:
|
|
4230
4258
|
output.filter !== undefined && output.filter !== null
|
|
4231
4259
|
? deserializeAws_restJson1FilterCriteriaMap(output.filter, context)
|
|
4232
4260
|
: undefined,
|
|
4233
4261
|
ruleName: __expectString(output.ruleName),
|
|
4234
|
-
updatedAt:
|
|
4262
|
+
updatedAt:
|
|
4263
|
+
output.updatedAt !== undefined && output.updatedAt !== null
|
|
4264
|
+
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
4265
|
+
: undefined,
|
|
4235
4266
|
} as any;
|
|
4236
4267
|
};
|
|
4237
4268
|
|
|
4238
4269
|
const deserializeAws_restJson1CloudTrailProperties = (output: any, context: __SerdeContext): CloudTrailProperties => {
|
|
4239
4270
|
return {
|
|
4240
|
-
endTime:
|
|
4241
|
-
|
|
4271
|
+
endTime:
|
|
4272
|
+
output.endTime !== undefined && output.endTime !== null
|
|
4273
|
+
? __expectNonNull(__parseRfc3339DateTime(output.endTime))
|
|
4274
|
+
: undefined,
|
|
4275
|
+
startTime:
|
|
4276
|
+
output.startTime !== undefined && output.startTime !== null
|
|
4277
|
+
? __expectNonNull(__parseRfc3339DateTime(output.startTime))
|
|
4278
|
+
: undefined,
|
|
4242
4279
|
trailProperties:
|
|
4243
4280
|
output.trailProperties !== undefined && output.trailProperties !== null
|
|
4244
4281
|
? deserializeAws_restJson1TrailPropertiesList(output.trailProperties, context)
|
|
@@ -4300,7 +4337,7 @@ const deserializeAws_restJson1ConfigurationsMap = (
|
|
|
4300
4337
|
}
|
|
4301
4338
|
return {
|
|
4302
4339
|
...acc,
|
|
4303
|
-
[key]: deserializeAws_restJson1Configuration(value, context),
|
|
4340
|
+
[key]: deserializeAws_restJson1Configuration(__expectUnion(value), context),
|
|
4304
4341
|
};
|
|
4305
4342
|
}, {});
|
|
4306
4343
|
};
|
|
@@ -4342,12 +4379,18 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext):
|
|
|
4342
4379
|
output.action !== undefined && output.action !== null
|
|
4343
4380
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
4344
4381
|
: undefined,
|
|
4345
|
-
analyzedAt:
|
|
4382
|
+
analyzedAt:
|
|
4383
|
+
output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
4384
|
+
? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt))
|
|
4385
|
+
: undefined,
|
|
4346
4386
|
condition:
|
|
4347
4387
|
output.condition !== undefined && output.condition !== null
|
|
4348
4388
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
4349
4389
|
: undefined,
|
|
4350
|
-
createdAt:
|
|
4390
|
+
createdAt:
|
|
4391
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
4392
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
4393
|
+
: undefined,
|
|
4351
4394
|
error: __expectString(output.error),
|
|
4352
4395
|
id: __expectString(output.id),
|
|
4353
4396
|
isPublic: __expectBoolean(output.isPublic),
|
|
@@ -4363,7 +4406,10 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext):
|
|
|
4363
4406
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
4364
4407
|
: undefined,
|
|
4365
4408
|
status: __expectString(output.status),
|
|
4366
|
-
updatedAt:
|
|
4409
|
+
updatedAt:
|
|
4410
|
+
output.updatedAt !== undefined && output.updatedAt !== null
|
|
4411
|
+
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
4412
|
+
: undefined,
|
|
4367
4413
|
} as any;
|
|
4368
4414
|
};
|
|
4369
4415
|
|
|
@@ -4411,12 +4457,18 @@ const deserializeAws_restJson1FindingSummary = (output: any, context: __SerdeCon
|
|
|
4411
4457
|
output.action !== undefined && output.action !== null
|
|
4412
4458
|
? deserializeAws_restJson1ActionList(output.action, context)
|
|
4413
4459
|
: undefined,
|
|
4414
|
-
analyzedAt:
|
|
4460
|
+
analyzedAt:
|
|
4461
|
+
output.analyzedAt !== undefined && output.analyzedAt !== null
|
|
4462
|
+
? __expectNonNull(__parseRfc3339DateTime(output.analyzedAt))
|
|
4463
|
+
: undefined,
|
|
4415
4464
|
condition:
|
|
4416
4465
|
output.condition !== undefined && output.condition !== null
|
|
4417
4466
|
? deserializeAws_restJson1ConditionKeyMap(output.condition, context)
|
|
4418
4467
|
: undefined,
|
|
4419
|
-
createdAt:
|
|
4468
|
+
createdAt:
|
|
4469
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
4470
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
4471
|
+
: undefined,
|
|
4420
4472
|
error: __expectString(output.error),
|
|
4421
4473
|
id: __expectString(output.id),
|
|
4422
4474
|
isPublic: __expectBoolean(output.isPublic),
|
|
@@ -4432,7 +4484,10 @@ const deserializeAws_restJson1FindingSummary = (output: any, context: __SerdeCon
|
|
|
4432
4484
|
? deserializeAws_restJson1FindingSourceList(output.sources, context)
|
|
4433
4485
|
: undefined,
|
|
4434
4486
|
status: __expectString(output.status),
|
|
4435
|
-
updatedAt:
|
|
4487
|
+
updatedAt:
|
|
4488
|
+
output.updatedAt !== undefined && output.updatedAt !== null
|
|
4489
|
+
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
4490
|
+
: undefined,
|
|
4436
4491
|
} as any;
|
|
4437
4492
|
};
|
|
4438
4493
|
|
|
@@ -4493,13 +4548,18 @@ const deserializeAws_restJson1InternetConfiguration = (output: any, context: __S
|
|
|
4493
4548
|
const deserializeAws_restJson1JobDetails = (output: any, context: __SerdeContext): JobDetails => {
|
|
4494
4549
|
return {
|
|
4495
4550
|
completedOn:
|
|
4496
|
-
output.completedOn !== undefined && output.completedOn !== null
|
|
4551
|
+
output.completedOn !== undefined && output.completedOn !== null
|
|
4552
|
+
? __expectNonNull(__parseRfc3339DateTime(output.completedOn))
|
|
4553
|
+
: undefined,
|
|
4497
4554
|
jobError:
|
|
4498
4555
|
output.jobError !== undefined && output.jobError !== null
|
|
4499
4556
|
? deserializeAws_restJson1JobError(output.jobError, context)
|
|
4500
4557
|
: undefined,
|
|
4501
4558
|
jobId: __expectString(output.jobId),
|
|
4502
|
-
startedOn:
|
|
4559
|
+
startedOn:
|
|
4560
|
+
output.startedOn !== undefined && output.startedOn !== null
|
|
4561
|
+
? __expectNonNull(__parseRfc3339DateTime(output.startedOn))
|
|
4562
|
+
: undefined,
|
|
4503
4563
|
status: __expectString(output.status),
|
|
4504
4564
|
} as any;
|
|
4505
4565
|
};
|
|
@@ -4647,8 +4707,8 @@ const deserializeAws_restJson1NetworkOriginConfiguration = (
|
|
|
4647
4707
|
};
|
|
4648
4708
|
|
|
4649
4709
|
const deserializeAws_restJson1PathElement = (output: any, context: __SerdeContext): PathElement => {
|
|
4650
|
-
if (
|
|
4651
|
-
return { index:
|
|
4710
|
+
if (__expectInt32(output.index) !== undefined) {
|
|
4711
|
+
return { index: __expectInt32(output.index) as any };
|
|
4652
4712
|
}
|
|
4653
4713
|
if (__expectString(output.key) !== undefined) {
|
|
4654
4714
|
return { key: __expectString(output.key) as any };
|
|
@@ -4671,17 +4731,22 @@ const deserializeAws_restJson1PathElementList = (output: any, context: __SerdeCo
|
|
|
4671
4731
|
if (entry === null) {
|
|
4672
4732
|
return null as any;
|
|
4673
4733
|
}
|
|
4674
|
-
return deserializeAws_restJson1PathElement(entry, context);
|
|
4734
|
+
return deserializeAws_restJson1PathElement(__expectUnion(entry), context);
|
|
4675
4735
|
});
|
|
4676
4736
|
};
|
|
4677
4737
|
|
|
4678
4738
|
const deserializeAws_restJson1PolicyGeneration = (output: any, context: __SerdeContext): PolicyGeneration => {
|
|
4679
4739
|
return {
|
|
4680
4740
|
completedOn:
|
|
4681
|
-
output.completedOn !== undefined && output.completedOn !== null
|
|
4741
|
+
output.completedOn !== undefined && output.completedOn !== null
|
|
4742
|
+
? __expectNonNull(__parseRfc3339DateTime(output.completedOn))
|
|
4743
|
+
: undefined,
|
|
4682
4744
|
jobId: __expectString(output.jobId),
|
|
4683
4745
|
principalArn: __expectString(output.principalArn),
|
|
4684
|
-
startedOn:
|
|
4746
|
+
startedOn:
|
|
4747
|
+
output.startedOn !== undefined && output.startedOn !== null
|
|
4748
|
+
? __expectNonNull(__parseRfc3339DateTime(output.startedOn))
|
|
4749
|
+
: undefined,
|
|
4685
4750
|
status: __expectString(output.status),
|
|
4686
4751
|
} as any;
|
|
4687
4752
|
};
|
|
@@ -4699,9 +4764,9 @@ const deserializeAws_restJson1PolicyGenerationList = (output: any, context: __Se
|
|
|
4699
4764
|
|
|
4700
4765
|
const deserializeAws_restJson1Position = (output: any, context: __SerdeContext): Position => {
|
|
4701
4766
|
return {
|
|
4702
|
-
column:
|
|
4703
|
-
line:
|
|
4704
|
-
offset:
|
|
4767
|
+
column: __expectInt32(output.column),
|
|
4768
|
+
line: __expectInt32(output.line),
|
|
4769
|
+
offset: __expectInt32(output.offset),
|
|
4705
4770
|
} as any;
|
|
4706
4771
|
};
|
|
4707
4772
|
|
|
@@ -4736,7 +4801,7 @@ const deserializeAws_restJson1S3AccessPointConfiguration = (
|
|
|
4736
4801
|
accessPointPolicy: __expectString(output.accessPointPolicy),
|
|
4737
4802
|
networkOrigin:
|
|
4738
4803
|
output.networkOrigin !== undefined && output.networkOrigin !== null
|
|
4739
|
-
? deserializeAws_restJson1NetworkOriginConfiguration(output.networkOrigin, context)
|
|
4804
|
+
? deserializeAws_restJson1NetworkOriginConfiguration(__expectUnion(output.networkOrigin), context)
|
|
4740
4805
|
: undefined,
|
|
4741
4806
|
publicAccessBlock:
|
|
4742
4807
|
output.publicAccessBlock !== undefined && output.publicAccessBlock !== null
|
|
@@ -4770,7 +4835,7 @@ const deserializeAws_restJson1S3BucketAclGrantConfiguration = (
|
|
|
4770
4835
|
return {
|
|
4771
4836
|
grantee:
|
|
4772
4837
|
output.grantee !== undefined && output.grantee !== null
|
|
4773
|
-
? deserializeAws_restJson1AclGrantee(output.grantee, context)
|
|
4838
|
+
? deserializeAws_restJson1AclGrantee(__expectUnion(output.grantee), context)
|
|
4774
4839
|
: undefined,
|
|
4775
4840
|
permission: __expectString(output.permission),
|
|
4776
4841
|
} as any;
|
|
@@ -4866,8 +4931,8 @@ const deserializeAws_restJson1StatusReason = (output: any, context: __SerdeConte
|
|
|
4866
4931
|
|
|
4867
4932
|
const deserializeAws_restJson1Substring = (output: any, context: __SerdeContext): Substring => {
|
|
4868
4933
|
return {
|
|
4869
|
-
length:
|
|
4870
|
-
start:
|
|
4934
|
+
length: __expectInt32(output.length),
|
|
4935
|
+
start: __expectInt32(output.start),
|
|
4871
4936
|
} as any;
|
|
4872
4937
|
};
|
|
4873
4938
|
|