@aws-sdk/client-macie2 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/CHANGELOG.md +35 -0
- package/Macie2.ts +38 -1
- package/Macie2Client.ts +6 -0
- package/commands/ListInvitationsCommand.ts +1 -1
- package/commands/ListManagedDataIdentifiersCommand.ts +97 -0
- package/dist/cjs/Macie2.js +15 -0
- package/dist/cjs/Macie2.js.map +1 -1
- package/dist/cjs/Macie2Client.js.map +1 -1
- package/dist/cjs/commands/ListInvitationsCommand.js +1 -1
- package/dist/cjs/commands/ListManagedDataIdentifiersCommand.js +61 -0
- package/dist/cjs/commands/ListManagedDataIdentifiersCommand.js.map +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +39 -5
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +266 -137
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/Macie2.js +15 -0
- package/dist/es/Macie2.js.map +1 -1
- package/dist/es/Macie2Client.js.map +1 -1
- package/dist/es/commands/ListInvitationsCommand.js +1 -1
- package/dist/es/commands/ListManagedDataIdentifiersCommand.js +65 -0
- package/dist/es/commands/ListManagedDataIdentifiersCommand.js.map +1 -0
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/models_0.js +28 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +462 -248
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/Macie2.d.ts +8 -1
- package/dist/types/Macie2Client.d.ts +3 -2
- package/dist/types/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist/types/commands/ListManagedDataIdentifiersCommand.d.ts +35 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/models_0.d.ts +93 -24
- package/dist/types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist/types/ts3.4/Macie2.d.ts +8 -1
- package/dist/types/ts3.4/Macie2Client.d.ts +3 -2
- package/dist/types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist/types/ts3.4/commands/ListManagedDataIdentifiersCommand.d.ts +35 -0
- package/dist/types/ts3.4/index.d.ts +1 -0
- package/dist/types/ts3.4/models/models_0.d.ts +93 -24
- package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/index.ts +1 -0
- package/models/models_0.ts +112 -24
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +307 -136
|
@@ -109,6 +109,10 @@ import {
|
|
|
109
109
|
ListFindingsFiltersCommandOutput,
|
|
110
110
|
} from "../commands/ListFindingsFiltersCommand";
|
|
111
111
|
import { ListInvitationsCommandInput, ListInvitationsCommandOutput } from "../commands/ListInvitationsCommand";
|
|
112
|
+
import {
|
|
113
|
+
ListManagedDataIdentifiersCommandInput,
|
|
114
|
+
ListManagedDataIdentifiersCommandOutput,
|
|
115
|
+
} from "../commands/ListManagedDataIdentifiersCommand";
|
|
112
116
|
import { ListMembersCommandInput, ListMembersCommandOutput } from "../commands/ListMembersCommand";
|
|
113
117
|
import {
|
|
114
118
|
ListOrganizationAdminAccountsCommandInput,
|
|
@@ -216,6 +220,7 @@ import {
|
|
|
216
220
|
ListJobsFilterCriteria,
|
|
217
221
|
ListJobsFilterTerm,
|
|
218
222
|
ListJobsSortCriteria,
|
|
223
|
+
ManagedDataIdentifierSummary,
|
|
219
224
|
MatchingBucket,
|
|
220
225
|
MatchingResource,
|
|
221
226
|
Member,
|
|
@@ -278,10 +283,14 @@ import {
|
|
|
278
283
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
279
284
|
import {
|
|
280
285
|
expectBoolean as __expectBoolean,
|
|
281
|
-
|
|
286
|
+
expectInt32 as __expectInt32,
|
|
287
|
+
expectLong as __expectLong,
|
|
288
|
+
expectNonNull as __expectNonNull,
|
|
289
|
+
expectObject as __expectObject,
|
|
282
290
|
expectString as __expectString,
|
|
283
291
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
284
|
-
|
|
292
|
+
limitedParseDouble as __limitedParseDouble,
|
|
293
|
+
parseRfc3339DateTime as __parseRfc3339DateTime,
|
|
285
294
|
} from "@aws-sdk/smithy-client";
|
|
286
295
|
import {
|
|
287
296
|
Endpoint as __Endpoint,
|
|
@@ -364,6 +373,14 @@ export const serializeAws_restJson1CreateClassificationJobCommand = async (
|
|
|
364
373
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
365
374
|
...(input.initialRun !== undefined && input.initialRun !== null && { initialRun: input.initialRun }),
|
|
366
375
|
...(input.jobType !== undefined && input.jobType !== null && { jobType: input.jobType }),
|
|
376
|
+
...(input.managedDataIdentifierIds !== undefined &&
|
|
377
|
+
input.managedDataIdentifierIds !== null && {
|
|
378
|
+
managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
|
|
379
|
+
}),
|
|
380
|
+
...(input.managedDataIdentifierSelector !== undefined &&
|
|
381
|
+
input.managedDataIdentifierSelector !== null && {
|
|
382
|
+
managedDataIdentifierSelector: input.managedDataIdentifierSelector,
|
|
383
|
+
}),
|
|
367
384
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
368
385
|
...(input.s3JobDefinition !== undefined &&
|
|
369
386
|
input.s3JobDefinition !== null && {
|
|
@@ -1423,6 +1440,31 @@ export const serializeAws_restJson1ListInvitationsCommand = async (
|
|
|
1423
1440
|
});
|
|
1424
1441
|
};
|
|
1425
1442
|
|
|
1443
|
+
export const serializeAws_restJson1ListManagedDataIdentifiersCommand = async (
|
|
1444
|
+
input: ListManagedDataIdentifiersCommandInput,
|
|
1445
|
+
context: __SerdeContext
|
|
1446
|
+
): Promise<__HttpRequest> => {
|
|
1447
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1448
|
+
const headers: any = {
|
|
1449
|
+
"content-type": "application/json",
|
|
1450
|
+
};
|
|
1451
|
+
let resolvedPath =
|
|
1452
|
+
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/managed-data-identifiers/list";
|
|
1453
|
+
let body: any;
|
|
1454
|
+
body = JSON.stringify({
|
|
1455
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1456
|
+
});
|
|
1457
|
+
return new __HttpRequest({
|
|
1458
|
+
protocol,
|
|
1459
|
+
hostname,
|
|
1460
|
+
port,
|
|
1461
|
+
method: "POST",
|
|
1462
|
+
headers,
|
|
1463
|
+
path: resolvedPath,
|
|
1464
|
+
body,
|
|
1465
|
+
});
|
|
1466
|
+
};
|
|
1467
|
+
|
|
1426
1468
|
export const serializeAws_restJson1ListMembersCommand = async (
|
|
1427
1469
|
input: ListMembersCommandInput,
|
|
1428
1470
|
context: __SerdeContext
|
|
@@ -1961,7 +2003,7 @@ export const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = asyn
|
|
|
1961
2003
|
customDataIdentifiers: undefined,
|
|
1962
2004
|
notFoundIdentifierIds: undefined,
|
|
1963
2005
|
};
|
|
1964
|
-
const data: any = await parseBody(output.body, context);
|
|
2006
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1965
2007
|
if (data.customDataIdentifiers !== undefined && data.customDataIdentifiers !== null) {
|
|
1966
2008
|
contents.customDataIdentifiers = deserializeAws_restJson1__listOfBatchGetCustomDataIdentifierSummary(
|
|
1967
2009
|
data.customDataIdentifiers,
|
|
@@ -2071,7 +2113,7 @@ export const deserializeAws_restJson1CreateClassificationJobCommand = async (
|
|
|
2071
2113
|
jobArn: undefined,
|
|
2072
2114
|
jobId: undefined,
|
|
2073
2115
|
};
|
|
2074
|
-
const data: any = await parseBody(output.body, context);
|
|
2116
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2075
2117
|
if (data.jobArn !== undefined && data.jobArn !== null) {
|
|
2076
2118
|
contents.jobArn = __expectString(data.jobArn);
|
|
2077
2119
|
}
|
|
@@ -2177,7 +2219,7 @@ export const deserializeAws_restJson1CreateCustomDataIdentifierCommand = async (
|
|
|
2177
2219
|
$metadata: deserializeMetadata(output),
|
|
2178
2220
|
customDataIdentifierId: undefined,
|
|
2179
2221
|
};
|
|
2180
|
-
const data: any = await parseBody(output.body, context);
|
|
2222
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2181
2223
|
if (data.customDataIdentifierId !== undefined && data.customDataIdentifierId !== null) {
|
|
2182
2224
|
contents.customDataIdentifierId = __expectString(data.customDataIdentifierId);
|
|
2183
2225
|
}
|
|
@@ -2281,7 +2323,7 @@ export const deserializeAws_restJson1CreateFindingsFilterCommand = async (
|
|
|
2281
2323
|
arn: undefined,
|
|
2282
2324
|
id: undefined,
|
|
2283
2325
|
};
|
|
2284
|
-
const data: any = await parseBody(output.body, context);
|
|
2326
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2285
2327
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2286
2328
|
contents.arn = __expectString(data.arn);
|
|
2287
2329
|
}
|
|
@@ -2387,7 +2429,7 @@ export const deserializeAws_restJson1CreateInvitationsCommand = async (
|
|
|
2387
2429
|
$metadata: deserializeMetadata(output),
|
|
2388
2430
|
unprocessedAccounts: undefined,
|
|
2389
2431
|
};
|
|
2390
|
-
const data: any = await parseBody(output.body, context);
|
|
2432
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2391
2433
|
if (data.unprocessedAccounts !== undefined && data.unprocessedAccounts !== null) {
|
|
2392
2434
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(
|
|
2393
2435
|
data.unprocessedAccounts,
|
|
@@ -2493,7 +2535,7 @@ export const deserializeAws_restJson1CreateMemberCommand = async (
|
|
|
2493
2535
|
$metadata: deserializeMetadata(output),
|
|
2494
2536
|
arn: undefined,
|
|
2495
2537
|
};
|
|
2496
|
-
const data: any = await parseBody(output.body, context);
|
|
2538
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2497
2539
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2498
2540
|
contents.arn = __expectString(data.arn);
|
|
2499
2541
|
}
|
|
@@ -2695,7 +2737,7 @@ export const deserializeAws_restJson1DeclineInvitationsCommand = async (
|
|
|
2695
2737
|
$metadata: deserializeMetadata(output),
|
|
2696
2738
|
unprocessedAccounts: undefined,
|
|
2697
2739
|
};
|
|
2698
|
-
const data: any = await parseBody(output.body, context);
|
|
2740
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2699
2741
|
if (data.unprocessedAccounts !== undefined && data.unprocessedAccounts !== null) {
|
|
2700
2742
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(
|
|
2701
2743
|
data.unprocessedAccounts,
|
|
@@ -2999,7 +3041,7 @@ export const deserializeAws_restJson1DeleteInvitationsCommand = async (
|
|
|
2999
3041
|
$metadata: deserializeMetadata(output),
|
|
3000
3042
|
unprocessedAccounts: undefined,
|
|
3001
3043
|
};
|
|
3002
|
-
const data: any = await parseBody(output.body, context);
|
|
3044
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3003
3045
|
if (data.unprocessedAccounts !== undefined && data.unprocessedAccounts !== null) {
|
|
3004
3046
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(
|
|
3005
3047
|
data.unprocessedAccounts,
|
|
@@ -3205,7 +3247,7 @@ export const deserializeAws_restJson1DescribeBucketsCommand = async (
|
|
|
3205
3247
|
buckets: undefined,
|
|
3206
3248
|
nextToken: undefined,
|
|
3207
3249
|
};
|
|
3208
|
-
const data: any = await parseBody(output.body, context);
|
|
3250
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3209
3251
|
if (data.buckets !== undefined && data.buckets !== null) {
|
|
3210
3252
|
contents.buckets = deserializeAws_restJson1__listOfBucketMetadata(data.buckets, context);
|
|
3211
3253
|
}
|
|
@@ -3320,6 +3362,8 @@ export const deserializeAws_restJson1DescribeClassificationJobCommand = async (
|
|
|
3320
3362
|
jobType: undefined,
|
|
3321
3363
|
lastRunErrorStatus: undefined,
|
|
3322
3364
|
lastRunTime: undefined,
|
|
3365
|
+
managedDataIdentifierIds: undefined,
|
|
3366
|
+
managedDataIdentifierSelector: undefined,
|
|
3323
3367
|
name: undefined,
|
|
3324
3368
|
s3JobDefinition: undefined,
|
|
3325
3369
|
samplingPercentage: undefined,
|
|
@@ -3328,12 +3372,12 @@ export const deserializeAws_restJson1DescribeClassificationJobCommand = async (
|
|
|
3328
3372
|
tags: undefined,
|
|
3329
3373
|
userPausedDetails: undefined,
|
|
3330
3374
|
};
|
|
3331
|
-
const data: any = await parseBody(output.body, context);
|
|
3375
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3332
3376
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
3333
3377
|
contents.clientToken = __expectString(data.clientToken);
|
|
3334
3378
|
}
|
|
3335
3379
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
3336
|
-
contents.createdAt =
|
|
3380
|
+
contents.createdAt = __expectNonNull(__parseRfc3339DateTime(data.createdAt));
|
|
3337
3381
|
}
|
|
3338
3382
|
if (data.customDataIdentifierIds !== undefined && data.customDataIdentifierIds !== null) {
|
|
3339
3383
|
contents.customDataIdentifierIds = deserializeAws_restJson1__listOf__string(data.customDataIdentifierIds, context);
|
|
@@ -3360,7 +3404,16 @@ export const deserializeAws_restJson1DescribeClassificationJobCommand = async (
|
|
|
3360
3404
|
contents.lastRunErrorStatus = deserializeAws_restJson1LastRunErrorStatus(data.lastRunErrorStatus, context);
|
|
3361
3405
|
}
|
|
3362
3406
|
if (data.lastRunTime !== undefined && data.lastRunTime !== null) {
|
|
3363
|
-
contents.lastRunTime =
|
|
3407
|
+
contents.lastRunTime = __expectNonNull(__parseRfc3339DateTime(data.lastRunTime));
|
|
3408
|
+
}
|
|
3409
|
+
if (data.managedDataIdentifierIds !== undefined && data.managedDataIdentifierIds !== null) {
|
|
3410
|
+
contents.managedDataIdentifierIds = deserializeAws_restJson1__listOf__string(
|
|
3411
|
+
data.managedDataIdentifierIds,
|
|
3412
|
+
context
|
|
3413
|
+
);
|
|
3414
|
+
}
|
|
3415
|
+
if (data.managedDataIdentifierSelector !== undefined && data.managedDataIdentifierSelector !== null) {
|
|
3416
|
+
contents.managedDataIdentifierSelector = __expectString(data.managedDataIdentifierSelector);
|
|
3364
3417
|
}
|
|
3365
3418
|
if (data.name !== undefined && data.name !== null) {
|
|
3366
3419
|
contents.name = __expectString(data.name);
|
|
@@ -3369,7 +3422,7 @@ export const deserializeAws_restJson1DescribeClassificationJobCommand = async (
|
|
|
3369
3422
|
contents.s3JobDefinition = deserializeAws_restJson1S3JobDefinition(data.s3JobDefinition, context);
|
|
3370
3423
|
}
|
|
3371
3424
|
if (data.samplingPercentage !== undefined && data.samplingPercentage !== null) {
|
|
3372
|
-
contents.samplingPercentage =
|
|
3425
|
+
contents.samplingPercentage = __expectInt32(data.samplingPercentage);
|
|
3373
3426
|
}
|
|
3374
3427
|
if (data.scheduleFrequency !== undefined && data.scheduleFrequency !== null) {
|
|
3375
3428
|
contents.scheduleFrequency = deserializeAws_restJson1JobScheduleFrequency(data.scheduleFrequency, context);
|
|
@@ -3483,7 +3536,7 @@ export const deserializeAws_restJson1DescribeOrganizationConfigurationCommand =
|
|
|
3483
3536
|
autoEnable: undefined,
|
|
3484
3537
|
maxAccountLimitReached: undefined,
|
|
3485
3538
|
};
|
|
3486
|
-
const data: any = await parseBody(output.body, context);
|
|
3539
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3487
3540
|
if (data.autoEnable !== undefined && data.autoEnable !== null) {
|
|
3488
3541
|
contents.autoEnable = __expectBoolean(data.autoEnable);
|
|
3489
3542
|
}
|
|
@@ -4282,7 +4335,7 @@ export const deserializeAws_restJson1GetAdministratorAccountCommand = async (
|
|
|
4282
4335
|
$metadata: deserializeMetadata(output),
|
|
4283
4336
|
administrator: undefined,
|
|
4284
4337
|
};
|
|
4285
|
-
const data: any = await parseBody(output.body, context);
|
|
4338
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4286
4339
|
if (data.administrator !== undefined && data.administrator !== null) {
|
|
4287
4340
|
contents.administrator = deserializeAws_restJson1Invitation(data.administrator, context);
|
|
4288
4341
|
}
|
|
@@ -4397,9 +4450,9 @@ export const deserializeAws_restJson1GetBucketStatisticsCommand = async (
|
|
|
4397
4450
|
unclassifiableObjectCount: undefined,
|
|
4398
4451
|
unclassifiableObjectSizeInBytes: undefined,
|
|
4399
4452
|
};
|
|
4400
|
-
const data: any = await parseBody(output.body, context);
|
|
4453
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4401
4454
|
if (data.bucketCount !== undefined && data.bucketCount !== null) {
|
|
4402
|
-
contents.bucketCount =
|
|
4455
|
+
contents.bucketCount = __expectLong(data.bucketCount);
|
|
4403
4456
|
}
|
|
4404
4457
|
if (data.bucketCountByEffectivePermission !== undefined && data.bucketCountByEffectivePermission !== null) {
|
|
4405
4458
|
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(
|
|
@@ -4430,22 +4483,22 @@ export const deserializeAws_restJson1GetBucketStatisticsCommand = async (
|
|
|
4430
4483
|
);
|
|
4431
4484
|
}
|
|
4432
4485
|
if (data.classifiableObjectCount !== undefined && data.classifiableObjectCount !== null) {
|
|
4433
|
-
contents.classifiableObjectCount =
|
|
4486
|
+
contents.classifiableObjectCount = __expectLong(data.classifiableObjectCount);
|
|
4434
4487
|
}
|
|
4435
4488
|
if (data.classifiableSizeInBytes !== undefined && data.classifiableSizeInBytes !== null) {
|
|
4436
|
-
contents.classifiableSizeInBytes =
|
|
4489
|
+
contents.classifiableSizeInBytes = __expectLong(data.classifiableSizeInBytes);
|
|
4437
4490
|
}
|
|
4438
4491
|
if (data.lastUpdated !== undefined && data.lastUpdated !== null) {
|
|
4439
|
-
contents.lastUpdated =
|
|
4492
|
+
contents.lastUpdated = __expectNonNull(__parseRfc3339DateTime(data.lastUpdated));
|
|
4440
4493
|
}
|
|
4441
4494
|
if (data.objectCount !== undefined && data.objectCount !== null) {
|
|
4442
|
-
contents.objectCount =
|
|
4495
|
+
contents.objectCount = __expectLong(data.objectCount);
|
|
4443
4496
|
}
|
|
4444
4497
|
if (data.sizeInBytes !== undefined && data.sizeInBytes !== null) {
|
|
4445
|
-
contents.sizeInBytes =
|
|
4498
|
+
contents.sizeInBytes = __expectLong(data.sizeInBytes);
|
|
4446
4499
|
}
|
|
4447
4500
|
if (data.sizeInBytesCompressed !== undefined && data.sizeInBytesCompressed !== null) {
|
|
4448
|
-
contents.sizeInBytesCompressed =
|
|
4501
|
+
contents.sizeInBytesCompressed = __expectLong(data.sizeInBytesCompressed);
|
|
4449
4502
|
}
|
|
4450
4503
|
if (data.unclassifiableObjectCount !== undefined && data.unclassifiableObjectCount !== null) {
|
|
4451
4504
|
contents.unclassifiableObjectCount = deserializeAws_restJson1ObjectLevelStatistics(
|
|
@@ -4558,7 +4611,7 @@ export const deserializeAws_restJson1GetClassificationExportConfigurationCommand
|
|
|
4558
4611
|
$metadata: deserializeMetadata(output),
|
|
4559
4612
|
configuration: undefined,
|
|
4560
4613
|
};
|
|
4561
|
-
const data: any = await parseBody(output.body, context);
|
|
4614
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4562
4615
|
if (data.configuration !== undefined && data.configuration !== null) {
|
|
4563
4616
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
4564
4617
|
}
|
|
@@ -4671,12 +4724,12 @@ export const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (
|
|
|
4671
4724
|
regex: undefined,
|
|
4672
4725
|
tags: undefined,
|
|
4673
4726
|
};
|
|
4674
|
-
const data: any = await parseBody(output.body, context);
|
|
4727
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4675
4728
|
if (data.arn !== undefined && data.arn !== null) {
|
|
4676
4729
|
contents.arn = __expectString(data.arn);
|
|
4677
4730
|
}
|
|
4678
4731
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
4679
|
-
contents.createdAt =
|
|
4732
|
+
contents.createdAt = __expectNonNull(__parseRfc3339DateTime(data.createdAt));
|
|
4680
4733
|
}
|
|
4681
4734
|
if (data.deleted !== undefined && data.deleted !== null) {
|
|
4682
4735
|
contents.deleted = __expectBoolean(data.deleted);
|
|
@@ -4694,7 +4747,7 @@ export const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (
|
|
|
4694
4747
|
contents.keywords = deserializeAws_restJson1__listOf__string(data.keywords, context);
|
|
4695
4748
|
}
|
|
4696
4749
|
if (data.maximumMatchDistance !== undefined && data.maximumMatchDistance !== null) {
|
|
4697
|
-
contents.maximumMatchDistance =
|
|
4750
|
+
contents.maximumMatchDistance = __expectInt32(data.maximumMatchDistance);
|
|
4698
4751
|
}
|
|
4699
4752
|
if (data.name !== undefined && data.name !== null) {
|
|
4700
4753
|
contents.name = __expectString(data.name);
|
|
@@ -4804,7 +4857,7 @@ export const deserializeAws_restJson1GetFindingsCommand = async (
|
|
|
4804
4857
|
$metadata: deserializeMetadata(output),
|
|
4805
4858
|
findings: undefined,
|
|
4806
4859
|
};
|
|
4807
|
-
const data: any = await parseBody(output.body, context);
|
|
4860
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4808
4861
|
if (data.findings !== undefined && data.findings !== null) {
|
|
4809
4862
|
contents.findings = deserializeAws_restJson1__listOfFinding(data.findings, context);
|
|
4810
4863
|
}
|
|
@@ -4914,7 +4967,7 @@ export const deserializeAws_restJson1GetFindingsFilterCommand = async (
|
|
|
4914
4967
|
position: undefined,
|
|
4915
4968
|
tags: undefined,
|
|
4916
4969
|
};
|
|
4917
|
-
const data: any = await parseBody(output.body, context);
|
|
4970
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4918
4971
|
if (data.action !== undefined && data.action !== null) {
|
|
4919
4972
|
contents.action = __expectString(data.action);
|
|
4920
4973
|
}
|
|
@@ -4934,7 +4987,7 @@ export const deserializeAws_restJson1GetFindingsFilterCommand = async (
|
|
|
4934
4987
|
contents.name = __expectString(data.name);
|
|
4935
4988
|
}
|
|
4936
4989
|
if (data.position !== undefined && data.position !== null) {
|
|
4937
|
-
contents.position =
|
|
4990
|
+
contents.position = __expectInt32(data.position);
|
|
4938
4991
|
}
|
|
4939
4992
|
if (data.tags !== undefined && data.tags !== null) {
|
|
4940
4993
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
@@ -5038,7 +5091,7 @@ export const deserializeAws_restJson1GetFindingsPublicationConfigurationCommand
|
|
|
5038
5091
|
$metadata: deserializeMetadata(output),
|
|
5039
5092
|
securityHubConfiguration: undefined,
|
|
5040
5093
|
};
|
|
5041
|
-
const data: any = await parseBody(output.body, context);
|
|
5094
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5042
5095
|
if (data.securityHubConfiguration !== undefined && data.securityHubConfiguration !== null) {
|
|
5043
5096
|
contents.securityHubConfiguration = deserializeAws_restJson1SecurityHubConfiguration(
|
|
5044
5097
|
data.securityHubConfiguration,
|
|
@@ -5144,7 +5197,7 @@ export const deserializeAws_restJson1GetFindingStatisticsCommand = async (
|
|
|
5144
5197
|
$metadata: deserializeMetadata(output),
|
|
5145
5198
|
countsByGroup: undefined,
|
|
5146
5199
|
};
|
|
5147
|
-
const data: any = await parseBody(output.body, context);
|
|
5200
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5148
5201
|
if (data.countsByGroup !== undefined && data.countsByGroup !== null) {
|
|
5149
5202
|
contents.countsByGroup = deserializeAws_restJson1__listOfGroupCount(data.countsByGroup, context);
|
|
5150
5203
|
}
|
|
@@ -5247,9 +5300,9 @@ export const deserializeAws_restJson1GetInvitationsCountCommand = async (
|
|
|
5247
5300
|
$metadata: deserializeMetadata(output),
|
|
5248
5301
|
invitationsCount: undefined,
|
|
5249
5302
|
};
|
|
5250
|
-
const data: any = await parseBody(output.body, context);
|
|
5303
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5251
5304
|
if (data.invitationsCount !== undefined && data.invitationsCount !== null) {
|
|
5252
|
-
contents.invitationsCount =
|
|
5305
|
+
contents.invitationsCount = __expectLong(data.invitationsCount);
|
|
5253
5306
|
}
|
|
5254
5307
|
return Promise.resolve(contents);
|
|
5255
5308
|
};
|
|
@@ -5354,9 +5407,9 @@ export const deserializeAws_restJson1GetMacieSessionCommand = async (
|
|
|
5354
5407
|
status: undefined,
|
|
5355
5408
|
updatedAt: undefined,
|
|
5356
5409
|
};
|
|
5357
|
-
const data: any = await parseBody(output.body, context);
|
|
5410
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5358
5411
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
5359
|
-
contents.createdAt =
|
|
5412
|
+
contents.createdAt = __expectNonNull(__parseRfc3339DateTime(data.createdAt));
|
|
5360
5413
|
}
|
|
5361
5414
|
if (data.findingPublishingFrequency !== undefined && data.findingPublishingFrequency !== null) {
|
|
5362
5415
|
contents.findingPublishingFrequency = __expectString(data.findingPublishingFrequency);
|
|
@@ -5368,7 +5421,7 @@ export const deserializeAws_restJson1GetMacieSessionCommand = async (
|
|
|
5368
5421
|
contents.status = __expectString(data.status);
|
|
5369
5422
|
}
|
|
5370
5423
|
if (data.updatedAt !== undefined && data.updatedAt !== null) {
|
|
5371
|
-
contents.updatedAt =
|
|
5424
|
+
contents.updatedAt = __expectNonNull(__parseRfc3339DateTime(data.updatedAt));
|
|
5372
5425
|
}
|
|
5373
5426
|
return Promise.resolve(contents);
|
|
5374
5427
|
};
|
|
@@ -5469,7 +5522,7 @@ export const deserializeAws_restJson1GetMasterAccountCommand = async (
|
|
|
5469
5522
|
$metadata: deserializeMetadata(output),
|
|
5470
5523
|
master: undefined,
|
|
5471
5524
|
};
|
|
5472
|
-
const data: any = await parseBody(output.body, context);
|
|
5525
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5473
5526
|
if (data.master !== undefined && data.master !== null) {
|
|
5474
5527
|
contents.master = deserializeAws_restJson1Invitation(data.master, context);
|
|
5475
5528
|
}
|
|
@@ -5580,7 +5633,7 @@ export const deserializeAws_restJson1GetMemberCommand = async (
|
|
|
5580
5633
|
tags: undefined,
|
|
5581
5634
|
updatedAt: undefined,
|
|
5582
5635
|
};
|
|
5583
|
-
const data: any = await parseBody(output.body, context);
|
|
5636
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5584
5637
|
if (data.accountId !== undefined && data.accountId !== null) {
|
|
5585
5638
|
contents.accountId = __expectString(data.accountId);
|
|
5586
5639
|
}
|
|
@@ -5594,7 +5647,7 @@ export const deserializeAws_restJson1GetMemberCommand = async (
|
|
|
5594
5647
|
contents.email = __expectString(data.email);
|
|
5595
5648
|
}
|
|
5596
5649
|
if (data.invitedAt !== undefined && data.invitedAt !== null) {
|
|
5597
|
-
contents.invitedAt =
|
|
5650
|
+
contents.invitedAt = __expectNonNull(__parseRfc3339DateTime(data.invitedAt));
|
|
5598
5651
|
}
|
|
5599
5652
|
if (data.masterAccountId !== undefined && data.masterAccountId !== null) {
|
|
5600
5653
|
contents.masterAccountId = __expectString(data.masterAccountId);
|
|
@@ -5606,7 +5659,7 @@ export const deserializeAws_restJson1GetMemberCommand = async (
|
|
|
5606
5659
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
5607
5660
|
}
|
|
5608
5661
|
if (data.updatedAt !== undefined && data.updatedAt !== null) {
|
|
5609
|
-
contents.updatedAt =
|
|
5662
|
+
contents.updatedAt = __expectNonNull(__parseRfc3339DateTime(data.updatedAt));
|
|
5610
5663
|
}
|
|
5611
5664
|
return Promise.resolve(contents);
|
|
5612
5665
|
};
|
|
@@ -5709,7 +5762,7 @@ export const deserializeAws_restJson1GetUsageStatisticsCommand = async (
|
|
|
5709
5762
|
records: undefined,
|
|
5710
5763
|
timeRange: undefined,
|
|
5711
5764
|
};
|
|
5712
|
-
const data: any = await parseBody(output.body, context);
|
|
5765
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5713
5766
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5714
5767
|
contents.nextToken = __expectString(data.nextToken);
|
|
5715
5768
|
}
|
|
@@ -5819,7 +5872,7 @@ export const deserializeAws_restJson1GetUsageTotalsCommand = async (
|
|
|
5819
5872
|
timeRange: undefined,
|
|
5820
5873
|
usageTotals: undefined,
|
|
5821
5874
|
};
|
|
5822
|
-
const data: any = await parseBody(output.body, context);
|
|
5875
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5823
5876
|
if (data.timeRange !== undefined && data.timeRange !== null) {
|
|
5824
5877
|
contents.timeRange = __expectString(data.timeRange);
|
|
5825
5878
|
}
|
|
@@ -5926,7 +5979,7 @@ export const deserializeAws_restJson1ListClassificationJobsCommand = async (
|
|
|
5926
5979
|
items: undefined,
|
|
5927
5980
|
nextToken: undefined,
|
|
5928
5981
|
};
|
|
5929
|
-
const data: any = await parseBody(output.body, context);
|
|
5982
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5930
5983
|
if (data.items !== undefined && data.items !== null) {
|
|
5931
5984
|
contents.items = deserializeAws_restJson1__listOfJobSummary(data.items, context);
|
|
5932
5985
|
}
|
|
@@ -6033,7 +6086,7 @@ export const deserializeAws_restJson1ListCustomDataIdentifiersCommand = async (
|
|
|
6033
6086
|
items: undefined,
|
|
6034
6087
|
nextToken: undefined,
|
|
6035
6088
|
};
|
|
6036
|
-
const data: any = await parseBody(output.body, context);
|
|
6089
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6037
6090
|
if (data.items !== undefined && data.items !== null) {
|
|
6038
6091
|
contents.items = deserializeAws_restJson1__listOfCustomDataIdentifierSummary(data.items, context);
|
|
6039
6092
|
}
|
|
@@ -6140,7 +6193,7 @@ export const deserializeAws_restJson1ListFindingsCommand = async (
|
|
|
6140
6193
|
findingIds: undefined,
|
|
6141
6194
|
nextToken: undefined,
|
|
6142
6195
|
};
|
|
6143
|
-
const data: any = await parseBody(output.body, context);
|
|
6196
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6144
6197
|
if (data.findingIds !== undefined && data.findingIds !== null) {
|
|
6145
6198
|
contents.findingIds = deserializeAws_restJson1__listOf__string(data.findingIds, context);
|
|
6146
6199
|
}
|
|
@@ -6247,7 +6300,7 @@ export const deserializeAws_restJson1ListFindingsFiltersCommand = async (
|
|
|
6247
6300
|
findingsFilterListItems: undefined,
|
|
6248
6301
|
nextToken: undefined,
|
|
6249
6302
|
};
|
|
6250
|
-
const data: any = await parseBody(output.body, context);
|
|
6303
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6251
6304
|
if (data.findingsFilterListItems !== undefined && data.findingsFilterListItems !== null) {
|
|
6252
6305
|
contents.findingsFilterListItems = deserializeAws_restJson1__listOfFindingsFilterListItem(
|
|
6253
6306
|
data.findingsFilterListItems,
|
|
@@ -6357,7 +6410,7 @@ export const deserializeAws_restJson1ListInvitationsCommand = async (
|
|
|
6357
6410
|
invitations: undefined,
|
|
6358
6411
|
nextToken: undefined,
|
|
6359
6412
|
};
|
|
6360
|
-
const data: any = await parseBody(output.body, context);
|
|
6413
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6361
6414
|
if (data.invitations !== undefined && data.invitations !== null) {
|
|
6362
6415
|
contents.invitations = deserializeAws_restJson1__listOfInvitation(data.invitations, context);
|
|
6363
6416
|
}
|
|
@@ -6452,6 +6505,57 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (
|
|
|
6452
6505
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
6453
6506
|
};
|
|
6454
6507
|
|
|
6508
|
+
export const deserializeAws_restJson1ListManagedDataIdentifiersCommand = async (
|
|
6509
|
+
output: __HttpResponse,
|
|
6510
|
+
context: __SerdeContext
|
|
6511
|
+
): Promise<ListManagedDataIdentifiersCommandOutput> => {
|
|
6512
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6513
|
+
return deserializeAws_restJson1ListManagedDataIdentifiersCommandError(output, context);
|
|
6514
|
+
}
|
|
6515
|
+
const contents: ListManagedDataIdentifiersCommandOutput = {
|
|
6516
|
+
$metadata: deserializeMetadata(output),
|
|
6517
|
+
items: undefined,
|
|
6518
|
+
nextToken: undefined,
|
|
6519
|
+
};
|
|
6520
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6521
|
+
if (data.items !== undefined && data.items !== null) {
|
|
6522
|
+
contents.items = deserializeAws_restJson1__listOfManagedDataIdentifierSummary(data.items, context);
|
|
6523
|
+
}
|
|
6524
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6525
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
6526
|
+
}
|
|
6527
|
+
return Promise.resolve(contents);
|
|
6528
|
+
};
|
|
6529
|
+
|
|
6530
|
+
const deserializeAws_restJson1ListManagedDataIdentifiersCommandError = async (
|
|
6531
|
+
output: __HttpResponse,
|
|
6532
|
+
context: __SerdeContext
|
|
6533
|
+
): Promise<ListManagedDataIdentifiersCommandOutput> => {
|
|
6534
|
+
const parsedOutput: any = {
|
|
6535
|
+
...output,
|
|
6536
|
+
body: await parseBody(output.body, context),
|
|
6537
|
+
};
|
|
6538
|
+
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
6539
|
+
let errorCode: string = "UnknownError";
|
|
6540
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6541
|
+
switch (errorCode) {
|
|
6542
|
+
default:
|
|
6543
|
+
const parsedBody = parsedOutput.body;
|
|
6544
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
6545
|
+
response = {
|
|
6546
|
+
...parsedBody,
|
|
6547
|
+
name: `${errorCode}`,
|
|
6548
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6549
|
+
$fault: "client",
|
|
6550
|
+
$metadata: deserializeMetadata(output),
|
|
6551
|
+
} as any;
|
|
6552
|
+
}
|
|
6553
|
+
const message = response.message || response.Message || errorCode;
|
|
6554
|
+
response.message = message;
|
|
6555
|
+
delete response.Message;
|
|
6556
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
6557
|
+
};
|
|
6558
|
+
|
|
6455
6559
|
export const deserializeAws_restJson1ListMembersCommand = async (
|
|
6456
6560
|
output: __HttpResponse,
|
|
6457
6561
|
context: __SerdeContext
|
|
@@ -6464,7 +6568,7 @@ export const deserializeAws_restJson1ListMembersCommand = async (
|
|
|
6464
6568
|
members: undefined,
|
|
6465
6569
|
nextToken: undefined,
|
|
6466
6570
|
};
|
|
6467
|
-
const data: any = await parseBody(output.body, context);
|
|
6571
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6468
6572
|
if (data.members !== undefined && data.members !== null) {
|
|
6469
6573
|
contents.members = deserializeAws_restJson1__listOfMember(data.members, context);
|
|
6470
6574
|
}
|
|
@@ -6571,7 +6675,7 @@ export const deserializeAws_restJson1ListOrganizationAdminAccountsCommand = asyn
|
|
|
6571
6675
|
adminAccounts: undefined,
|
|
6572
6676
|
nextToken: undefined,
|
|
6573
6677
|
};
|
|
6574
|
-
const data: any = await parseBody(output.body, context);
|
|
6678
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6575
6679
|
if (data.adminAccounts !== undefined && data.adminAccounts !== null) {
|
|
6576
6680
|
contents.adminAccounts = deserializeAws_restJson1__listOfAdminAccount(data.adminAccounts, context);
|
|
6577
6681
|
}
|
|
@@ -6677,7 +6781,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
|
|
|
6677
6781
|
$metadata: deserializeMetadata(output),
|
|
6678
6782
|
tags: undefined,
|
|
6679
6783
|
};
|
|
6680
|
-
const data: any = await parseBody(output.body, context);
|
|
6784
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6681
6785
|
if (data.tags !== undefined && data.tags !== null) {
|
|
6682
6786
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
6683
6787
|
}
|
|
@@ -6724,7 +6828,7 @@ export const deserializeAws_restJson1PutClassificationExportConfigurationCommand
|
|
|
6724
6828
|
$metadata: deserializeMetadata(output),
|
|
6725
6829
|
configuration: undefined,
|
|
6726
6830
|
};
|
|
6727
|
-
const data: any = await parseBody(output.body, context);
|
|
6831
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6728
6832
|
if (data.configuration !== undefined && data.configuration !== null) {
|
|
6729
6833
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
6730
6834
|
}
|
|
@@ -6927,7 +7031,7 @@ export const deserializeAws_restJson1SearchResourcesCommand = async (
|
|
|
6927
7031
|
matchingResources: undefined,
|
|
6928
7032
|
nextToken: undefined,
|
|
6929
7033
|
};
|
|
6930
|
-
const data: any = await parseBody(output.body, context);
|
|
7034
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6931
7035
|
if (data.matchingResources !== undefined && data.matchingResources !== null) {
|
|
6932
7036
|
contents.matchingResources = deserializeAws_restJson1__listOfMatchingResource(data.matchingResources, context);
|
|
6933
7037
|
}
|
|
@@ -7076,9 +7180,9 @@ export const deserializeAws_restJson1TestCustomDataIdentifierCommand = async (
|
|
|
7076
7180
|
$metadata: deserializeMetadata(output),
|
|
7077
7181
|
matchCount: undefined,
|
|
7078
7182
|
};
|
|
7079
|
-
const data: any = await parseBody(output.body, context);
|
|
7183
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7080
7184
|
if (data.matchCount !== undefined && data.matchCount !== null) {
|
|
7081
|
-
contents.matchCount =
|
|
7185
|
+
contents.matchCount = __expectInt32(data.matchCount);
|
|
7082
7186
|
}
|
|
7083
7187
|
return Promise.resolve(contents);
|
|
7084
7188
|
};
|
|
@@ -7322,7 +7426,7 @@ export const deserializeAws_restJson1UpdateFindingsFilterCommand = async (
|
|
|
7322
7426
|
arn: undefined,
|
|
7323
7427
|
id: undefined,
|
|
7324
7428
|
};
|
|
7325
|
-
const data: any = await parseBody(output.body, context);
|
|
7429
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
7326
7430
|
if (data.arn !== undefined && data.arn !== null) {
|
|
7327
7431
|
contents.arn = __expectString(data.arn);
|
|
7328
7432
|
}
|
|
@@ -8574,6 +8678,20 @@ const deserializeAws_restJson1__listOfKeyValuePair = (output: any, context: __Se
|
|
|
8574
8678
|
});
|
|
8575
8679
|
};
|
|
8576
8680
|
|
|
8681
|
+
const deserializeAws_restJson1__listOfManagedDataIdentifierSummary = (
|
|
8682
|
+
output: any,
|
|
8683
|
+
context: __SerdeContext
|
|
8684
|
+
): ManagedDataIdentifierSummary[] => {
|
|
8685
|
+
return (output || [])
|
|
8686
|
+
.filter((e: any) => e != null)
|
|
8687
|
+
.map((entry: any) => {
|
|
8688
|
+
if (entry === null) {
|
|
8689
|
+
return null as any;
|
|
8690
|
+
}
|
|
8691
|
+
return deserializeAws_restJson1ManagedDataIdentifierSummary(entry, context);
|
|
8692
|
+
});
|
|
8693
|
+
};
|
|
8694
|
+
|
|
8577
8695
|
const deserializeAws_restJson1__listOfMatchingResource = (output: any, context: __SerdeContext): MatchingResource[] => {
|
|
8578
8696
|
return (output || [])
|
|
8579
8697
|
.filter((e: any) => e != null)
|
|
@@ -8712,8 +8830,14 @@ const deserializeAws_restJson1ApiCallDetails = (output: any, context: __SerdeCon
|
|
|
8712
8830
|
return {
|
|
8713
8831
|
api: __expectString(output.api),
|
|
8714
8832
|
apiServiceName: __expectString(output.apiServiceName),
|
|
8715
|
-
firstSeen:
|
|
8716
|
-
|
|
8833
|
+
firstSeen:
|
|
8834
|
+
output.firstSeen !== undefined && output.firstSeen !== null
|
|
8835
|
+
? __expectNonNull(__parseRfc3339DateTime(output.firstSeen))
|
|
8836
|
+
: undefined,
|
|
8837
|
+
lastSeen:
|
|
8838
|
+
output.lastSeen !== undefined && output.lastSeen !== null
|
|
8839
|
+
? __expectNonNull(__parseRfc3339DateTime(output.lastSeen))
|
|
8840
|
+
: undefined,
|
|
8717
8841
|
} as any;
|
|
8718
8842
|
};
|
|
8719
8843
|
|
|
@@ -8749,7 +8873,10 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifierSummary = (
|
|
|
8749
8873
|
): BatchGetCustomDataIdentifierSummary => {
|
|
8750
8874
|
return {
|
|
8751
8875
|
arn: __expectString(output.arn),
|
|
8752
|
-
createdAt:
|
|
8876
|
+
createdAt:
|
|
8877
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
8878
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
8879
|
+
: undefined,
|
|
8753
8880
|
deleted: __expectBoolean(output.deleted),
|
|
8754
8881
|
description: __expectString(output.description),
|
|
8755
8882
|
id: __expectString(output.id),
|
|
@@ -8771,10 +8898,10 @@ const deserializeAws_restJson1BucketCountByEffectivePermission = (
|
|
|
8771
8898
|
context: __SerdeContext
|
|
8772
8899
|
): BucketCountByEffectivePermission => {
|
|
8773
8900
|
return {
|
|
8774
|
-
publiclyAccessible:
|
|
8775
|
-
publiclyReadable:
|
|
8776
|
-
publiclyWritable:
|
|
8777
|
-
unknown:
|
|
8901
|
+
publiclyAccessible: __expectLong(output.publiclyAccessible),
|
|
8902
|
+
publiclyReadable: __expectLong(output.publiclyReadable),
|
|
8903
|
+
publiclyWritable: __expectLong(output.publiclyWritable),
|
|
8904
|
+
unknown: __expectLong(output.unknown),
|
|
8778
8905
|
} as any;
|
|
8779
8906
|
};
|
|
8780
8907
|
|
|
@@ -8783,10 +8910,10 @@ const deserializeAws_restJson1BucketCountByEncryptionType = (
|
|
|
8783
8910
|
context: __SerdeContext
|
|
8784
8911
|
): BucketCountByEncryptionType => {
|
|
8785
8912
|
return {
|
|
8786
|
-
kmsManaged:
|
|
8787
|
-
s3Managed:
|
|
8788
|
-
unencrypted:
|
|
8789
|
-
unknown:
|
|
8913
|
+
kmsManaged: __expectLong(output.kmsManaged),
|
|
8914
|
+
s3Managed: __expectLong(output.s3Managed),
|
|
8915
|
+
unencrypted: __expectLong(output.unencrypted),
|
|
8916
|
+
unknown: __expectLong(output.unknown),
|
|
8790
8917
|
} as any;
|
|
8791
8918
|
};
|
|
8792
8919
|
|
|
@@ -8795,10 +8922,10 @@ const deserializeAws_restJson1BucketCountBySharedAccessType = (
|
|
|
8795
8922
|
context: __SerdeContext
|
|
8796
8923
|
): BucketCountBySharedAccessType => {
|
|
8797
8924
|
return {
|
|
8798
|
-
external:
|
|
8799
|
-
internal:
|
|
8800
|
-
notShared:
|
|
8801
|
-
unknown:
|
|
8925
|
+
external: __expectLong(output.external),
|
|
8926
|
+
internal: __expectLong(output.internal),
|
|
8927
|
+
notShared: __expectLong(output.notShared),
|
|
8928
|
+
unknown: __expectLong(output.unknown),
|
|
8802
8929
|
} as any;
|
|
8803
8930
|
};
|
|
8804
8931
|
|
|
@@ -8807,9 +8934,9 @@ const deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads =
|
|
|
8807
8934
|
context: __SerdeContext
|
|
8808
8935
|
): BucketCountPolicyAllowsUnencryptedObjectUploads => {
|
|
8809
8936
|
return {
|
|
8810
|
-
allowsUnencryptedObjectUploads:
|
|
8811
|
-
deniesUnencryptedObjectUploads:
|
|
8812
|
-
unknown:
|
|
8937
|
+
allowsUnencryptedObjectUploads: __expectLong(output.allowsUnencryptedObjectUploads),
|
|
8938
|
+
deniesUnencryptedObjectUploads: __expectLong(output.deniesUnencryptedObjectUploads),
|
|
8939
|
+
unknown: __expectLong(output.unknown),
|
|
8813
8940
|
} as any;
|
|
8814
8941
|
};
|
|
8815
8942
|
|
|
@@ -8840,18 +8967,20 @@ const deserializeAws_restJson1BucketMetadata = (output: any, context: __SerdeCon
|
|
|
8840
8967
|
bucketArn: __expectString(output.bucketArn),
|
|
8841
8968
|
bucketCreatedAt:
|
|
8842
8969
|
output.bucketCreatedAt !== undefined && output.bucketCreatedAt !== null
|
|
8843
|
-
?
|
|
8970
|
+
? __expectNonNull(__parseRfc3339DateTime(output.bucketCreatedAt))
|
|
8844
8971
|
: undefined,
|
|
8845
8972
|
bucketName: __expectString(output.bucketName),
|
|
8846
|
-
classifiableObjectCount:
|
|
8847
|
-
classifiableSizeInBytes:
|
|
8973
|
+
classifiableObjectCount: __expectLong(output.classifiableObjectCount),
|
|
8974
|
+
classifiableSizeInBytes: __expectLong(output.classifiableSizeInBytes),
|
|
8848
8975
|
jobDetails:
|
|
8849
8976
|
output.jobDetails !== undefined && output.jobDetails !== null
|
|
8850
8977
|
? deserializeAws_restJson1JobDetails(output.jobDetails, context)
|
|
8851
8978
|
: undefined,
|
|
8852
8979
|
lastUpdated:
|
|
8853
|
-
output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
8854
|
-
|
|
8980
|
+
output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
8981
|
+
? __expectNonNull(__parseRfc3339DateTime(output.lastUpdated))
|
|
8982
|
+
: undefined,
|
|
8983
|
+
objectCount: __expectLong(output.objectCount),
|
|
8855
8984
|
objectCountByEncryptionType:
|
|
8856
8985
|
output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null
|
|
8857
8986
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
@@ -8870,8 +8999,8 @@ const deserializeAws_restJson1BucketMetadata = (output: any, context: __SerdeCon
|
|
|
8870
8999
|
? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
|
|
8871
9000
|
: undefined,
|
|
8872
9001
|
sharedAccess: __expectString(output.sharedAccess),
|
|
8873
|
-
sizeInBytes:
|
|
8874
|
-
sizeInBytesCompressed:
|
|
9002
|
+
sizeInBytes: __expectLong(output.sizeInBytes),
|
|
9003
|
+
sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed),
|
|
8875
9004
|
tags:
|
|
8876
9005
|
output.tags !== undefined && output.tags !== null
|
|
8877
9006
|
? deserializeAws_restJson1__listOfKeyValuePair(output.tags, context)
|
|
@@ -8934,9 +9063,9 @@ const deserializeAws_restJson1BucketServerSideEncryption = (
|
|
|
8934
9063
|
const deserializeAws_restJson1Cell = (output: any, context: __SerdeContext): Cell => {
|
|
8935
9064
|
return {
|
|
8936
9065
|
cellReference: __expectString(output.cellReference),
|
|
8937
|
-
column:
|
|
9066
|
+
column: __expectLong(output.column),
|
|
8938
9067
|
columnName: __expectString(output.columnName),
|
|
8939
|
-
row:
|
|
9068
|
+
row: __expectLong(output.row),
|
|
8940
9069
|
} as any;
|
|
8941
9070
|
};
|
|
8942
9071
|
|
|
@@ -8987,7 +9116,7 @@ const deserializeAws_restJson1ClassificationResult = (output: any, context: __Se
|
|
|
8987
9116
|
output.sensitiveData !== undefined && output.sensitiveData !== null
|
|
8988
9117
|
? deserializeAws_restJson1SensitiveData(output.sensitiveData, context)
|
|
8989
9118
|
: undefined,
|
|
8990
|
-
sizeClassified:
|
|
9119
|
+
sizeClassified: __expectLong(output.sizeClassified),
|
|
8991
9120
|
status:
|
|
8992
9121
|
output.status !== undefined && output.status !== null
|
|
8993
9122
|
? deserializeAws_restJson1ClassificationResultStatus(output.status, context)
|
|
@@ -9058,10 +9187,10 @@ const deserializeAws_restJson1CriterionAdditionalProperties = (
|
|
|
9058
9187
|
output.eqExactMatch !== undefined && output.eqExactMatch !== null
|
|
9059
9188
|
? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context)
|
|
9060
9189
|
: undefined,
|
|
9061
|
-
gt:
|
|
9062
|
-
gte:
|
|
9063
|
-
lt:
|
|
9064
|
-
lte:
|
|
9190
|
+
gt: __expectLong(output.gt),
|
|
9191
|
+
gte: __expectLong(output.gte),
|
|
9192
|
+
lt: __expectLong(output.lt),
|
|
9193
|
+
lte: __expectLong(output.lte),
|
|
9065
9194
|
neq:
|
|
9066
9195
|
output.neq !== undefined && output.neq !== null
|
|
9067
9196
|
? deserializeAws_restJson1__listOf__string(output.neq, context)
|
|
@@ -9075,7 +9204,7 @@ const deserializeAws_restJson1CustomDataIdentifiers = (output: any, context: __S
|
|
|
9075
9204
|
output.detections !== undefined && output.detections !== null
|
|
9076
9205
|
? deserializeAws_restJson1CustomDetections(output.detections, context)
|
|
9077
9206
|
: undefined,
|
|
9078
|
-
totalCount:
|
|
9207
|
+
totalCount: __expectLong(output.totalCount),
|
|
9079
9208
|
} as any;
|
|
9080
9209
|
};
|
|
9081
9210
|
|
|
@@ -9085,7 +9214,10 @@ const deserializeAws_restJson1CustomDataIdentifierSummary = (
|
|
|
9085
9214
|
): CustomDataIdentifierSummary => {
|
|
9086
9215
|
return {
|
|
9087
9216
|
arn: __expectString(output.arn),
|
|
9088
|
-
createdAt:
|
|
9217
|
+
createdAt:
|
|
9218
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
9219
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
9220
|
+
: undefined,
|
|
9089
9221
|
description: __expectString(output.description),
|
|
9090
9222
|
id: __expectString(output.id),
|
|
9091
9223
|
name: __expectString(output.name),
|
|
@@ -9095,7 +9227,7 @@ const deserializeAws_restJson1CustomDataIdentifierSummary = (
|
|
|
9095
9227
|
const deserializeAws_restJson1CustomDetection = (output: any, context: __SerdeContext): CustomDetection => {
|
|
9096
9228
|
return {
|
|
9097
9229
|
arn: __expectString(output.arn),
|
|
9098
|
-
count:
|
|
9230
|
+
count: __expectLong(output.count),
|
|
9099
9231
|
name: __expectString(output.name),
|
|
9100
9232
|
occurrences:
|
|
9101
9233
|
output.occurrences !== undefined && output.occurrences !== null
|
|
@@ -9121,7 +9253,7 @@ const deserializeAws_restJson1DailySchedule = (output: any, context: __SerdeCont
|
|
|
9121
9253
|
|
|
9122
9254
|
const deserializeAws_restJson1DefaultDetection = (output: any, context: __SerdeContext): DefaultDetection => {
|
|
9123
9255
|
return {
|
|
9124
|
-
count:
|
|
9256
|
+
count: __expectLong(output.count),
|
|
9125
9257
|
occurrences:
|
|
9126
9258
|
output.occurrences !== undefined && output.occurrences !== null
|
|
9127
9259
|
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
@@ -9169,8 +9301,11 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext):
|
|
|
9169
9301
|
output.classificationDetails !== undefined && output.classificationDetails !== null
|
|
9170
9302
|
? deserializeAws_restJson1ClassificationDetails(output.classificationDetails, context)
|
|
9171
9303
|
: undefined,
|
|
9172
|
-
count:
|
|
9173
|
-
createdAt:
|
|
9304
|
+
count: __expectLong(output.count),
|
|
9305
|
+
createdAt:
|
|
9306
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
9307
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
9308
|
+
: undefined,
|
|
9174
9309
|
description: __expectString(output.description),
|
|
9175
9310
|
id: __expectString(output.id),
|
|
9176
9311
|
partition: __expectString(output.partition),
|
|
@@ -9191,7 +9326,10 @@ const deserializeAws_restJson1Finding = (output: any, context: __SerdeContext):
|
|
|
9191
9326
|
: undefined,
|
|
9192
9327
|
title: __expectString(output.title),
|
|
9193
9328
|
type: __expectString(output.type),
|
|
9194
|
-
updatedAt:
|
|
9329
|
+
updatedAt:
|
|
9330
|
+
output.updatedAt !== undefined && output.updatedAt !== null
|
|
9331
|
+
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
9332
|
+
: undefined,
|
|
9195
9333
|
} as any;
|
|
9196
9334
|
};
|
|
9197
9335
|
|
|
@@ -9249,7 +9387,7 @@ const deserializeAws_restJson1FindingsFilterListItem = (
|
|
|
9249
9387
|
|
|
9250
9388
|
const deserializeAws_restJson1GroupCount = (output: any, context: __SerdeContext): GroupCount => {
|
|
9251
9389
|
return {
|
|
9252
|
-
count:
|
|
9390
|
+
count: __expectLong(output.count),
|
|
9253
9391
|
groupKey: __expectString(output.groupKey),
|
|
9254
9392
|
} as any;
|
|
9255
9393
|
};
|
|
@@ -9267,7 +9405,10 @@ const deserializeAws_restJson1Invitation = (output: any, context: __SerdeContext
|
|
|
9267
9405
|
return {
|
|
9268
9406
|
accountId: __expectString(output.accountId),
|
|
9269
9407
|
invitationId: __expectString(output.invitationId),
|
|
9270
|
-
invitedAt:
|
|
9408
|
+
invitedAt:
|
|
9409
|
+
output.invitedAt !== undefined && output.invitedAt !== null
|
|
9410
|
+
? __expectNonNull(__parseRfc3339DateTime(output.invitedAt))
|
|
9411
|
+
: undefined,
|
|
9271
9412
|
relationshipStatus: __expectString(output.relationshipStatus),
|
|
9272
9413
|
} as any;
|
|
9273
9414
|
};
|
|
@@ -9309,8 +9450,8 @@ const deserializeAws_restJson1IpCountry = (output: any, context: __SerdeContext)
|
|
|
9309
9450
|
|
|
9310
9451
|
const deserializeAws_restJson1IpGeoLocation = (output: any, context: __SerdeContext): IpGeoLocation => {
|
|
9311
9452
|
return {
|
|
9312
|
-
lat:
|
|
9313
|
-
lon:
|
|
9453
|
+
lat: __limitedParseDouble(output.lat),
|
|
9454
|
+
lon: __limitedParseDouble(output.lon),
|
|
9314
9455
|
} as any;
|
|
9315
9456
|
};
|
|
9316
9457
|
|
|
@@ -9330,7 +9471,7 @@ const deserializeAws_restJson1JobDetails = (output: any, context: __SerdeContext
|
|
|
9330
9471
|
lastJobId: __expectString(output.lastJobId),
|
|
9331
9472
|
lastJobRunTime:
|
|
9332
9473
|
output.lastJobRunTime !== undefined && output.lastJobRunTime !== null
|
|
9333
|
-
?
|
|
9474
|
+
? __expectNonNull(__parseRfc3339DateTime(output.lastJobRunTime))
|
|
9334
9475
|
: undefined,
|
|
9335
9476
|
} as any;
|
|
9336
9477
|
};
|
|
@@ -9384,7 +9525,10 @@ const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext
|
|
|
9384
9525
|
output.bucketDefinitions !== undefined && output.bucketDefinitions !== null
|
|
9385
9526
|
? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
|
|
9386
9527
|
: undefined,
|
|
9387
|
-
createdAt:
|
|
9528
|
+
createdAt:
|
|
9529
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
9530
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
9531
|
+
: undefined,
|
|
9388
9532
|
jobId: __expectString(output.jobId),
|
|
9389
9533
|
jobStatus: __expectString(output.jobStatus),
|
|
9390
9534
|
jobType: __expectString(output.jobType),
|
|
@@ -9424,23 +9568,33 @@ const deserializeAws_restJson1LastRunErrorStatus = (output: any, context: __Serd
|
|
|
9424
9568
|
} as any;
|
|
9425
9569
|
};
|
|
9426
9570
|
|
|
9571
|
+
const deserializeAws_restJson1ManagedDataIdentifierSummary = (
|
|
9572
|
+
output: any,
|
|
9573
|
+
context: __SerdeContext
|
|
9574
|
+
): ManagedDataIdentifierSummary => {
|
|
9575
|
+
return {
|
|
9576
|
+
category: __expectString(output.category),
|
|
9577
|
+
id: __expectString(output.id),
|
|
9578
|
+
} as any;
|
|
9579
|
+
};
|
|
9580
|
+
|
|
9427
9581
|
const deserializeAws_restJson1MatchingBucket = (output: any, context: __SerdeContext): MatchingBucket => {
|
|
9428
9582
|
return {
|
|
9429
9583
|
accountId: __expectString(output.accountId),
|
|
9430
9584
|
bucketName: __expectString(output.bucketName),
|
|
9431
|
-
classifiableObjectCount:
|
|
9432
|
-
classifiableSizeInBytes:
|
|
9585
|
+
classifiableObjectCount: __expectLong(output.classifiableObjectCount),
|
|
9586
|
+
classifiableSizeInBytes: __expectLong(output.classifiableSizeInBytes),
|
|
9433
9587
|
jobDetails:
|
|
9434
9588
|
output.jobDetails !== undefined && output.jobDetails !== null
|
|
9435
9589
|
? deserializeAws_restJson1JobDetails(output.jobDetails, context)
|
|
9436
9590
|
: undefined,
|
|
9437
|
-
objectCount:
|
|
9591
|
+
objectCount: __expectLong(output.objectCount),
|
|
9438
9592
|
objectCountByEncryptionType:
|
|
9439
9593
|
output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null
|
|
9440
9594
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
9441
9595
|
: undefined,
|
|
9442
|
-
sizeInBytes:
|
|
9443
|
-
sizeInBytesCompressed:
|
|
9596
|
+
sizeInBytes: __expectLong(output.sizeInBytes),
|
|
9597
|
+
sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed),
|
|
9444
9598
|
unclassifiableObjectCount:
|
|
9445
9599
|
output.unclassifiableObjectCount !== undefined && output.unclassifiableObjectCount !== null
|
|
9446
9600
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
|
|
@@ -9467,20 +9621,26 @@ const deserializeAws_restJson1Member = (output: any, context: __SerdeContext): M
|
|
|
9467
9621
|
administratorAccountId: __expectString(output.administratorAccountId),
|
|
9468
9622
|
arn: __expectString(output.arn),
|
|
9469
9623
|
email: __expectString(output.email),
|
|
9470
|
-
invitedAt:
|
|
9624
|
+
invitedAt:
|
|
9625
|
+
output.invitedAt !== undefined && output.invitedAt !== null
|
|
9626
|
+
? __expectNonNull(__parseRfc3339DateTime(output.invitedAt))
|
|
9627
|
+
: undefined,
|
|
9471
9628
|
masterAccountId: __expectString(output.masterAccountId),
|
|
9472
9629
|
relationshipStatus: __expectString(output.relationshipStatus),
|
|
9473
9630
|
tags:
|
|
9474
9631
|
output.tags !== undefined && output.tags !== null
|
|
9475
9632
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
9476
9633
|
: undefined,
|
|
9477
|
-
updatedAt:
|
|
9634
|
+
updatedAt:
|
|
9635
|
+
output.updatedAt !== undefined && output.updatedAt !== null
|
|
9636
|
+
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
9637
|
+
: undefined,
|
|
9478
9638
|
} as any;
|
|
9479
9639
|
};
|
|
9480
9640
|
|
|
9481
9641
|
const deserializeAws_restJson1MonthlySchedule = (output: any, context: __SerdeContext): MonthlySchedule => {
|
|
9482
9642
|
return {
|
|
9483
|
-
dayOfMonth:
|
|
9643
|
+
dayOfMonth: __expectInt32(output.dayOfMonth),
|
|
9484
9644
|
} as any;
|
|
9485
9645
|
};
|
|
9486
9646
|
|
|
@@ -9489,19 +9649,19 @@ const deserializeAws_restJson1ObjectCountByEncryptionType = (
|
|
|
9489
9649
|
context: __SerdeContext
|
|
9490
9650
|
): ObjectCountByEncryptionType => {
|
|
9491
9651
|
return {
|
|
9492
|
-
customerManaged:
|
|
9493
|
-
kmsManaged:
|
|
9494
|
-
s3Managed:
|
|
9495
|
-
unencrypted:
|
|
9496
|
-
unknown:
|
|
9652
|
+
customerManaged: __expectLong(output.customerManaged),
|
|
9653
|
+
kmsManaged: __expectLong(output.kmsManaged),
|
|
9654
|
+
s3Managed: __expectLong(output.s3Managed),
|
|
9655
|
+
unencrypted: __expectLong(output.unencrypted),
|
|
9656
|
+
unknown: __expectLong(output.unknown),
|
|
9497
9657
|
} as any;
|
|
9498
9658
|
};
|
|
9499
9659
|
|
|
9500
9660
|
const deserializeAws_restJson1ObjectLevelStatistics = (output: any, context: __SerdeContext): ObjectLevelStatistics => {
|
|
9501
9661
|
return {
|
|
9502
|
-
fileType:
|
|
9503
|
-
storageClass:
|
|
9504
|
-
total:
|
|
9662
|
+
fileType: __expectLong(output.fileType),
|
|
9663
|
+
storageClass: __expectLong(output.storageClass),
|
|
9664
|
+
total: __expectLong(output.total),
|
|
9505
9665
|
} as any;
|
|
9506
9666
|
};
|
|
9507
9667
|
|
|
@@ -9540,7 +9700,7 @@ const deserializeAws_restJson1Page = (output: any, context: __SerdeContext): Pag
|
|
|
9540
9700
|
output.offsetRange !== undefined && output.offsetRange !== null
|
|
9541
9701
|
? deserializeAws_restJson1Range(output.offsetRange, context)
|
|
9542
9702
|
: undefined,
|
|
9543
|
-
pageNumber:
|
|
9703
|
+
pageNumber: __expectLong(output.pageNumber),
|
|
9544
9704
|
} as any;
|
|
9545
9705
|
};
|
|
9546
9706
|
|
|
@@ -9570,9 +9730,9 @@ const deserializeAws_restJson1PolicyDetails = (output: any, context: __SerdeCont
|
|
|
9570
9730
|
|
|
9571
9731
|
const deserializeAws_restJson1Range = (output: any, context: __SerdeContext): Range => {
|
|
9572
9732
|
return {
|
|
9573
|
-
end:
|
|
9574
|
-
start:
|
|
9575
|
-
startColumn:
|
|
9733
|
+
end: __expectLong(output.end),
|
|
9734
|
+
start: __expectLong(output.start),
|
|
9735
|
+
startColumn: __expectLong(output.startColumn),
|
|
9576
9736
|
} as any;
|
|
9577
9737
|
};
|
|
9578
9738
|
|
|
@@ -9590,7 +9750,7 @@ const deserializeAws_restJson1Ranges = (output: any, context: __SerdeContext): R
|
|
|
9590
9750
|
const deserializeAws_restJson1_Record = (output: any, context: __SerdeContext): _Record => {
|
|
9591
9751
|
return {
|
|
9592
9752
|
jsonPath: __expectString(output.jsonPath),
|
|
9593
|
-
recordIndex:
|
|
9753
|
+
recordIndex: __expectLong(output.recordIndex),
|
|
9594
9754
|
} as any;
|
|
9595
9755
|
};
|
|
9596
9756
|
|
|
@@ -9633,7 +9793,10 @@ const deserializeAws_restJson1S3Bucket = (output: any, context: __SerdeContext):
|
|
|
9633
9793
|
return {
|
|
9634
9794
|
allowsUnencryptedObjectUploads: __expectString(output.allowsUnencryptedObjectUploads),
|
|
9635
9795
|
arn: __expectString(output.arn),
|
|
9636
|
-
createdAt:
|
|
9796
|
+
createdAt:
|
|
9797
|
+
output.createdAt !== undefined && output.createdAt !== null
|
|
9798
|
+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
9799
|
+
: undefined,
|
|
9637
9800
|
defaultServerSideEncryption:
|
|
9638
9801
|
output.defaultServerSideEncryption !== undefined && output.defaultServerSideEncryption !== null
|
|
9639
9802
|
? deserializeAws_restJson1ServerSideEncryption(output.defaultServerSideEncryption, context)
|
|
@@ -9722,14 +9885,16 @@ const deserializeAws_restJson1S3Object = (output: any, context: __SerdeContext):
|
|
|
9722
9885
|
extension: __expectString(output.extension),
|
|
9723
9886
|
key: __expectString(output.key),
|
|
9724
9887
|
lastModified:
|
|
9725
|
-
output.lastModified !== undefined && output.lastModified !== null
|
|
9888
|
+
output.lastModified !== undefined && output.lastModified !== null
|
|
9889
|
+
? __expectNonNull(__parseRfc3339DateTime(output.lastModified))
|
|
9890
|
+
: undefined,
|
|
9726
9891
|
path: __expectString(output.path),
|
|
9727
9892
|
publicAccess: __expectBoolean(output.publicAccess),
|
|
9728
9893
|
serverSideEncryption:
|
|
9729
9894
|
output.serverSideEncryption !== undefined && output.serverSideEncryption !== null
|
|
9730
9895
|
? deserializeAws_restJson1ServerSideEncryption(output.serverSideEncryption, context)
|
|
9731
9896
|
: undefined,
|
|
9732
|
-
size:
|
|
9897
|
+
size: __expectLong(output.size),
|
|
9733
9898
|
storageClass: __expectString(output.storageClass),
|
|
9734
9899
|
tags:
|
|
9735
9900
|
output.tags !== undefined && output.tags !== null
|
|
@@ -9780,7 +9945,7 @@ const deserializeAws_restJson1SensitiveDataItem = (output: any, context: __Serde
|
|
|
9780
9945
|
output.detections !== undefined && output.detections !== null
|
|
9781
9946
|
? deserializeAws_restJson1DefaultDetections(output.detections, context)
|
|
9782
9947
|
: undefined,
|
|
9783
|
-
totalCount:
|
|
9948
|
+
totalCount: __expectLong(output.totalCount),
|
|
9784
9949
|
} as any;
|
|
9785
9950
|
};
|
|
9786
9951
|
|
|
@@ -9795,7 +9960,7 @@ const deserializeAws_restJson1ServiceLimit = (output: any, context: __SerdeConte
|
|
|
9795
9960
|
return {
|
|
9796
9961
|
isServiceLimited: __expectBoolean(output.isServiceLimited),
|
|
9797
9962
|
unit: __expectString(output.unit),
|
|
9798
|
-
value:
|
|
9963
|
+
value: __expectLong(output.value),
|
|
9799
9964
|
} as any;
|
|
9800
9965
|
};
|
|
9801
9966
|
|
|
@@ -9818,7 +9983,9 @@ const deserializeAws_restJson1SessionContextAttributes = (
|
|
|
9818
9983
|
): SessionContextAttributes => {
|
|
9819
9984
|
return {
|
|
9820
9985
|
creationDate:
|
|
9821
|
-
output.creationDate !== undefined && output.creationDate !== null
|
|
9986
|
+
output.creationDate !== undefined && output.creationDate !== null
|
|
9987
|
+
? __expectNonNull(__parseRfc3339DateTime(output.creationDate))
|
|
9988
|
+
: undefined,
|
|
9822
9989
|
mfaAuthenticated: __expectBoolean(output.mfaAuthenticated),
|
|
9823
9990
|
} as any;
|
|
9824
9991
|
};
|
|
@@ -9836,7 +10003,7 @@ const deserializeAws_restJson1SessionIssuer = (output: any, context: __SerdeCont
|
|
|
9836
10003
|
const deserializeAws_restJson1Severity = (output: any, context: __SerdeContext): Severity => {
|
|
9837
10004
|
return {
|
|
9838
10005
|
description: __expectString(output.description),
|
|
9839
|
-
score:
|
|
10006
|
+
score: __expectLong(output.score),
|
|
9840
10007
|
} as any;
|
|
9841
10008
|
};
|
|
9842
10009
|
|
|
@@ -9864,8 +10031,8 @@ const deserializeAws_restJson1SimpleScopeTerm = (output: any, context: __SerdeCo
|
|
|
9864
10031
|
|
|
9865
10032
|
const deserializeAws_restJson1Statistics = (output: any, context: __SerdeContext): Statistics => {
|
|
9866
10033
|
return {
|
|
9867
|
-
approximateNumberOfObjectsToProcess:
|
|
9868
|
-
numberOfRuns:
|
|
10034
|
+
approximateNumberOfObjectsToProcess: __limitedParseDouble(output.approximateNumberOfObjectsToProcess),
|
|
10035
|
+
numberOfRuns: __limitedParseDouble(output.numberOfRuns),
|
|
9869
10036
|
} as any;
|
|
9870
10037
|
};
|
|
9871
10038
|
|
|
@@ -9945,7 +10112,7 @@ const deserializeAws_restJson1UsageRecord = (output: any, context: __SerdeContex
|
|
|
9945
10112
|
accountId: __expectString(output.accountId),
|
|
9946
10113
|
freeTrialStartDate:
|
|
9947
10114
|
output.freeTrialStartDate !== undefined && output.freeTrialStartDate !== null
|
|
9948
|
-
?
|
|
10115
|
+
? __expectNonNull(__parseRfc3339DateTime(output.freeTrialStartDate))
|
|
9949
10116
|
: undefined,
|
|
9950
10117
|
usage:
|
|
9951
10118
|
output.usage !== undefined && output.usage !== null
|
|
@@ -10003,10 +10170,14 @@ const deserializeAws_restJson1UserIdentityRoot = (output: any, context: __SerdeC
|
|
|
10003
10170
|
const deserializeAws_restJson1UserPausedDetails = (output: any, context: __SerdeContext): UserPausedDetails => {
|
|
10004
10171
|
return {
|
|
10005
10172
|
jobExpiresAt:
|
|
10006
|
-
output.jobExpiresAt !== undefined && output.jobExpiresAt !== null
|
|
10173
|
+
output.jobExpiresAt !== undefined && output.jobExpiresAt !== null
|
|
10174
|
+
? __expectNonNull(__parseRfc3339DateTime(output.jobExpiresAt))
|
|
10175
|
+
: undefined,
|
|
10007
10176
|
jobImminentExpirationHealthEventArn: __expectString(output.jobImminentExpirationHealthEventArn),
|
|
10008
10177
|
jobPausedAt:
|
|
10009
|
-
output.jobPausedAt !== undefined && output.jobPausedAt !== null
|
|
10178
|
+
output.jobPausedAt !== undefined && output.jobPausedAt !== null
|
|
10179
|
+
? __expectNonNull(__parseRfc3339DateTime(output.jobPausedAt))
|
|
10180
|
+
: undefined,
|
|
10010
10181
|
} as any;
|
|
10011
10182
|
};
|
|
10012
10183
|
|