@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchResourcesCommand = exports.serializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1PutClassificationExportConfigurationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListManagedDataIdentifiersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingsFiltersCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListCustomDataIdentifiersCommand = exports.serializeAws_restJson1ListClassificationJobsCommand = exports.serializeAws_restJson1GetUsageTotalsCommand = exports.serializeAws_restJson1GetUsageStatisticsCommand = exports.serializeAws_restJson1GetMemberCommand = exports.serializeAws_restJson1GetMasterAccountCommand = exports.serializeAws_restJson1GetMacieSessionCommand = exports.serializeAws_restJson1GetInvitationsCountCommand = exports.serializeAws_restJson1GetFindingStatisticsCommand = exports.serializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1GetFindingsFilterCommand = exports.serializeAws_restJson1GetFindingsCommand = exports.serializeAws_restJson1GetCustomDataIdentifierCommand = exports.serializeAws_restJson1GetClassificationExportConfigurationCommand = exports.serializeAws_restJson1GetBucketStatisticsCommand = exports.serializeAws_restJson1GetAdministratorAccountCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1EnableMacieCommand = exports.serializeAws_restJson1DisassociateMemberCommand = exports.serializeAws_restJson1DisassociateFromMasterAccountCommand = exports.serializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisableMacieCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DescribeClassificationJobCommand = exports.serializeAws_restJson1DescribeBucketsCommand = exports.serializeAws_restJson1DeleteMemberCommand = exports.serializeAws_restJson1DeleteInvitationsCommand = exports.serializeAws_restJson1DeleteFindingsFilterCommand = exports.serializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.serializeAws_restJson1DeclineInvitationsCommand = exports.serializeAws_restJson1CreateSampleFindingsCommand = exports.serializeAws_restJson1CreateMemberCommand = exports.serializeAws_restJson1CreateInvitationsCommand = exports.serializeAws_restJson1CreateFindingsFilterCommand = exports.serializeAws_restJson1CreateCustomDataIdentifierCommand = exports.serializeAws_restJson1CreateClassificationJobCommand = exports.serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.serializeAws_restJson1AcceptInvitationCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingsFiltersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListCustomDataIdentifiersCommand = exports.deserializeAws_restJson1ListClassificationJobsCommand = exports.deserializeAws_restJson1GetUsageTotalsCommand = exports.deserializeAws_restJson1GetUsageStatisticsCommand = exports.deserializeAws_restJson1GetMemberCommand = exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetMacieSessionCommand = exports.deserializeAws_restJson1GetInvitationsCountCommand = exports.deserializeAws_restJson1GetFindingStatisticsCommand = exports.deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1GetFindingsFilterCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetCustomDataIdentifierCommand = exports.deserializeAws_restJson1GetClassificationExportConfigurationCommand = exports.deserializeAws_restJson1GetBucketStatisticsCommand = exports.deserializeAws_restJson1GetAdministratorAccountCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1EnableMacieCommand = exports.deserializeAws_restJson1DisassociateMemberCommand = exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisableMacieCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DescribeClassificationJobCommand = exports.deserializeAws_restJson1DescribeBucketsCommand = exports.deserializeAws_restJson1DeleteMemberCommand = exports.deserializeAws_restJson1DeleteInvitationsCommand = exports.deserializeAws_restJson1DeleteFindingsFilterCommand = exports.deserializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.deserializeAws_restJson1DeclineInvitationsCommand = exports.deserializeAws_restJson1CreateSampleFindingsCommand = exports.deserializeAws_restJson1CreateMemberCommand = exports.deserializeAws_restJson1CreateInvitationsCommand = exports.deserializeAws_restJson1CreateFindingsFilterCommand = exports.deserializeAws_restJson1CreateCustomDataIdentifierCommand = exports.deserializeAws_restJson1CreateClassificationJobCommand = exports.deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateMemberSessionCommand = exports.serializeAws_restJson1UpdateMacieSessionCommand = exports.serializeAws_restJson1UpdateFindingsFilterCommand = exports.serializeAws_restJson1UpdateClassificationJobCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestCustomDataIdentifierCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -69,6 +69,14 @@ const serializeAws_restJson1CreateClassificationJobCommand = async (input, conte
|
|
|
69
69
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
70
70
|
...(input.initialRun !== undefined && input.initialRun !== null && { initialRun: input.initialRun }),
|
|
71
71
|
...(input.jobType !== undefined && input.jobType !== null && { jobType: input.jobType }),
|
|
72
|
+
...(input.managedDataIdentifierIds !== undefined &&
|
|
73
|
+
input.managedDataIdentifierIds !== null && {
|
|
74
|
+
managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
|
|
75
|
+
}),
|
|
76
|
+
...(input.managedDataIdentifierSelector !== undefined &&
|
|
77
|
+
input.managedDataIdentifierSelector !== null && {
|
|
78
|
+
managedDataIdentifierSelector: input.managedDataIdentifierSelector,
|
|
79
|
+
}),
|
|
72
80
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
73
81
|
...(input.s3JobDefinition !== undefined &&
|
|
74
82
|
input.s3JobDefinition !== null && {
|
|
@@ -1015,6 +1023,27 @@ const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
|
|
|
1015
1023
|
});
|
|
1016
1024
|
};
|
|
1017
1025
|
exports.serializeAws_restJson1ListInvitationsCommand = serializeAws_restJson1ListInvitationsCommand;
|
|
1026
|
+
const serializeAws_restJson1ListManagedDataIdentifiersCommand = async (input, context) => {
|
|
1027
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1028
|
+
const headers = {
|
|
1029
|
+
"content-type": "application/json",
|
|
1030
|
+
};
|
|
1031
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/managed-data-identifiers/list";
|
|
1032
|
+
let body;
|
|
1033
|
+
body = JSON.stringify({
|
|
1034
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1035
|
+
});
|
|
1036
|
+
return new protocol_http_1.HttpRequest({
|
|
1037
|
+
protocol,
|
|
1038
|
+
hostname,
|
|
1039
|
+
port,
|
|
1040
|
+
method: "POST",
|
|
1041
|
+
headers,
|
|
1042
|
+
path: resolvedPath,
|
|
1043
|
+
body,
|
|
1044
|
+
});
|
|
1045
|
+
};
|
|
1046
|
+
exports.serializeAws_restJson1ListManagedDataIdentifiersCommand = serializeAws_restJson1ListManagedDataIdentifiersCommand;
|
|
1018
1047
|
const serializeAws_restJson1ListMembersCommand = async (input, context) => {
|
|
1019
1048
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1020
1049
|
const headers = {};
|
|
@@ -1502,7 +1531,7 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = async (outp
|
|
|
1502
1531
|
customDataIdentifiers: undefined,
|
|
1503
1532
|
notFoundIdentifierIds: undefined,
|
|
1504
1533
|
};
|
|
1505
|
-
const data = await parseBody(output.body, context);
|
|
1534
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1506
1535
|
if (data.customDataIdentifiers !== undefined && data.customDataIdentifiers !== null) {
|
|
1507
1536
|
contents.customDataIdentifiers = deserializeAws_restJson1__listOfBatchGetCustomDataIdentifierSummary(data.customDataIdentifiers, context);
|
|
1508
1537
|
}
|
|
@@ -1602,7 +1631,7 @@ const deserializeAws_restJson1CreateClassificationJobCommand = async (output, co
|
|
|
1602
1631
|
jobArn: undefined,
|
|
1603
1632
|
jobId: undefined,
|
|
1604
1633
|
};
|
|
1605
|
-
const data = await parseBody(output.body, context);
|
|
1634
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1606
1635
|
if (data.jobArn !== undefined && data.jobArn !== null) {
|
|
1607
1636
|
contents.jobArn = smithy_client_1.expectString(data.jobArn);
|
|
1608
1637
|
}
|
|
@@ -1701,7 +1730,7 @@ const deserializeAws_restJson1CreateCustomDataIdentifierCommand = async (output,
|
|
|
1701
1730
|
$metadata: deserializeMetadata(output),
|
|
1702
1731
|
customDataIdentifierId: undefined,
|
|
1703
1732
|
};
|
|
1704
|
-
const data = await parseBody(output.body, context);
|
|
1733
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1705
1734
|
if (data.customDataIdentifierId !== undefined && data.customDataIdentifierId !== null) {
|
|
1706
1735
|
contents.customDataIdentifierId = smithy_client_1.expectString(data.customDataIdentifierId);
|
|
1707
1736
|
}
|
|
@@ -1798,7 +1827,7 @@ const deserializeAws_restJson1CreateFindingsFilterCommand = async (output, conte
|
|
|
1798
1827
|
arn: undefined,
|
|
1799
1828
|
id: undefined,
|
|
1800
1829
|
};
|
|
1801
|
-
const data = await parseBody(output.body, context);
|
|
1830
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1802
1831
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1803
1832
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1804
1833
|
}
|
|
@@ -1897,7 +1926,7 @@ const deserializeAws_restJson1CreateInvitationsCommand = async (output, context)
|
|
|
1897
1926
|
$metadata: deserializeMetadata(output),
|
|
1898
1927
|
unprocessedAccounts: undefined,
|
|
1899
1928
|
};
|
|
1900
|
-
const data = await parseBody(output.body, context);
|
|
1929
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1901
1930
|
if (data.unprocessedAccounts !== undefined && data.unprocessedAccounts !== null) {
|
|
1902
1931
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
1903
1932
|
}
|
|
@@ -1993,7 +2022,7 @@ const deserializeAws_restJson1CreateMemberCommand = async (output, context) => {
|
|
|
1993
2022
|
$metadata: deserializeMetadata(output),
|
|
1994
2023
|
arn: undefined,
|
|
1995
2024
|
};
|
|
1996
|
-
const data = await parseBody(output.body, context);
|
|
2025
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1997
2026
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1998
2027
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1999
2028
|
}
|
|
@@ -2181,7 +2210,7 @@ const deserializeAws_restJson1DeclineInvitationsCommand = async (output, context
|
|
|
2181
2210
|
$metadata: deserializeMetadata(output),
|
|
2182
2211
|
unprocessedAccounts: undefined,
|
|
2183
2212
|
};
|
|
2184
|
-
const data = await parseBody(output.body, context);
|
|
2213
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2185
2214
|
if (data.unprocessedAccounts !== undefined && data.unprocessedAccounts !== null) {
|
|
2186
2215
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
2187
2216
|
}
|
|
@@ -2461,7 +2490,7 @@ const deserializeAws_restJson1DeleteInvitationsCommand = async (output, context)
|
|
|
2461
2490
|
$metadata: deserializeMetadata(output),
|
|
2462
2491
|
unprocessedAccounts: undefined,
|
|
2463
2492
|
};
|
|
2464
|
-
const data = await parseBody(output.body, context);
|
|
2493
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2465
2494
|
if (data.unprocessedAccounts !== undefined && data.unprocessedAccounts !== null) {
|
|
2466
2495
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
2467
2496
|
}
|
|
@@ -2650,7 +2679,7 @@ const deserializeAws_restJson1DescribeBucketsCommand = async (output, context) =
|
|
|
2650
2679
|
buckets: undefined,
|
|
2651
2680
|
nextToken: undefined,
|
|
2652
2681
|
};
|
|
2653
|
-
const data = await parseBody(output.body, context);
|
|
2682
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2654
2683
|
if (data.buckets !== undefined && data.buckets !== null) {
|
|
2655
2684
|
contents.buckets = deserializeAws_restJson1__listOfBucketMetadata(data.buckets, context);
|
|
2656
2685
|
}
|
|
@@ -2758,6 +2787,8 @@ const deserializeAws_restJson1DescribeClassificationJobCommand = async (output,
|
|
|
2758
2787
|
jobType: undefined,
|
|
2759
2788
|
lastRunErrorStatus: undefined,
|
|
2760
2789
|
lastRunTime: undefined,
|
|
2790
|
+
managedDataIdentifierIds: undefined,
|
|
2791
|
+
managedDataIdentifierSelector: undefined,
|
|
2761
2792
|
name: undefined,
|
|
2762
2793
|
s3JobDefinition: undefined,
|
|
2763
2794
|
samplingPercentage: undefined,
|
|
@@ -2766,12 +2797,12 @@ const deserializeAws_restJson1DescribeClassificationJobCommand = async (output,
|
|
|
2766
2797
|
tags: undefined,
|
|
2767
2798
|
userPausedDetails: undefined,
|
|
2768
2799
|
};
|
|
2769
|
-
const data = await parseBody(output.body, context);
|
|
2800
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2770
2801
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
2771
2802
|
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
2772
2803
|
}
|
|
2773
2804
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
2774
|
-
contents.createdAt =
|
|
2805
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.createdAt));
|
|
2775
2806
|
}
|
|
2776
2807
|
if (data.customDataIdentifierIds !== undefined && data.customDataIdentifierIds !== null) {
|
|
2777
2808
|
contents.customDataIdentifierIds = deserializeAws_restJson1__listOf__string(data.customDataIdentifierIds, context);
|
|
@@ -2798,7 +2829,13 @@ const deserializeAws_restJson1DescribeClassificationJobCommand = async (output,
|
|
|
2798
2829
|
contents.lastRunErrorStatus = deserializeAws_restJson1LastRunErrorStatus(data.lastRunErrorStatus, context);
|
|
2799
2830
|
}
|
|
2800
2831
|
if (data.lastRunTime !== undefined && data.lastRunTime !== null) {
|
|
2801
|
-
contents.lastRunTime =
|
|
2832
|
+
contents.lastRunTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.lastRunTime));
|
|
2833
|
+
}
|
|
2834
|
+
if (data.managedDataIdentifierIds !== undefined && data.managedDataIdentifierIds !== null) {
|
|
2835
|
+
contents.managedDataIdentifierIds = deserializeAws_restJson1__listOf__string(data.managedDataIdentifierIds, context);
|
|
2836
|
+
}
|
|
2837
|
+
if (data.managedDataIdentifierSelector !== undefined && data.managedDataIdentifierSelector !== null) {
|
|
2838
|
+
contents.managedDataIdentifierSelector = smithy_client_1.expectString(data.managedDataIdentifierSelector);
|
|
2802
2839
|
}
|
|
2803
2840
|
if (data.name !== undefined && data.name !== null) {
|
|
2804
2841
|
contents.name = smithy_client_1.expectString(data.name);
|
|
@@ -2807,7 +2844,7 @@ const deserializeAws_restJson1DescribeClassificationJobCommand = async (output,
|
|
|
2807
2844
|
contents.s3JobDefinition = deserializeAws_restJson1S3JobDefinition(data.s3JobDefinition, context);
|
|
2808
2845
|
}
|
|
2809
2846
|
if (data.samplingPercentage !== undefined && data.samplingPercentage !== null) {
|
|
2810
|
-
contents.samplingPercentage = smithy_client_1.
|
|
2847
|
+
contents.samplingPercentage = smithy_client_1.expectInt32(data.samplingPercentage);
|
|
2811
2848
|
}
|
|
2812
2849
|
if (data.scheduleFrequency !== undefined && data.scheduleFrequency !== null) {
|
|
2813
2850
|
contents.scheduleFrequency = deserializeAws_restJson1JobScheduleFrequency(data.scheduleFrequency, context);
|
|
@@ -2914,7 +2951,7 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (
|
|
|
2914
2951
|
autoEnable: undefined,
|
|
2915
2952
|
maxAccountLimitReached: undefined,
|
|
2916
2953
|
};
|
|
2917
|
-
const data = await parseBody(output.body, context);
|
|
2954
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2918
2955
|
if (data.autoEnable !== undefined && data.autoEnable !== null) {
|
|
2919
2956
|
contents.autoEnable = smithy_client_1.expectBoolean(data.autoEnable);
|
|
2920
2957
|
}
|
|
@@ -3657,7 +3694,7 @@ const deserializeAws_restJson1GetAdministratorAccountCommand = async (output, co
|
|
|
3657
3694
|
$metadata: deserializeMetadata(output),
|
|
3658
3695
|
administrator: undefined,
|
|
3659
3696
|
};
|
|
3660
|
-
const data = await parseBody(output.body, context);
|
|
3697
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3661
3698
|
if (data.administrator !== undefined && data.administrator !== null) {
|
|
3662
3699
|
contents.administrator = deserializeAws_restJson1Invitation(data.administrator, context);
|
|
3663
3700
|
}
|
|
@@ -3765,9 +3802,9 @@ const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, contex
|
|
|
3765
3802
|
unclassifiableObjectCount: undefined,
|
|
3766
3803
|
unclassifiableObjectSizeInBytes: undefined,
|
|
3767
3804
|
};
|
|
3768
|
-
const data = await parseBody(output.body, context);
|
|
3805
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3769
3806
|
if (data.bucketCount !== undefined && data.bucketCount !== null) {
|
|
3770
|
-
contents.bucketCount = smithy_client_1.
|
|
3807
|
+
contents.bucketCount = smithy_client_1.expectLong(data.bucketCount);
|
|
3771
3808
|
}
|
|
3772
3809
|
if (data.bucketCountByEffectivePermission !== undefined && data.bucketCountByEffectivePermission !== null) {
|
|
3773
3810
|
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
|
|
@@ -3784,22 +3821,22 @@ const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, contex
|
|
|
3784
3821
|
contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
|
|
3785
3822
|
}
|
|
3786
3823
|
if (data.classifiableObjectCount !== undefined && data.classifiableObjectCount !== null) {
|
|
3787
|
-
contents.classifiableObjectCount = smithy_client_1.
|
|
3824
|
+
contents.classifiableObjectCount = smithy_client_1.expectLong(data.classifiableObjectCount);
|
|
3788
3825
|
}
|
|
3789
3826
|
if (data.classifiableSizeInBytes !== undefined && data.classifiableSizeInBytes !== null) {
|
|
3790
|
-
contents.classifiableSizeInBytes = smithy_client_1.
|
|
3827
|
+
contents.classifiableSizeInBytes = smithy_client_1.expectLong(data.classifiableSizeInBytes);
|
|
3791
3828
|
}
|
|
3792
3829
|
if (data.lastUpdated !== undefined && data.lastUpdated !== null) {
|
|
3793
|
-
contents.lastUpdated =
|
|
3830
|
+
contents.lastUpdated = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.lastUpdated));
|
|
3794
3831
|
}
|
|
3795
3832
|
if (data.objectCount !== undefined && data.objectCount !== null) {
|
|
3796
|
-
contents.objectCount = smithy_client_1.
|
|
3833
|
+
contents.objectCount = smithy_client_1.expectLong(data.objectCount);
|
|
3797
3834
|
}
|
|
3798
3835
|
if (data.sizeInBytes !== undefined && data.sizeInBytes !== null) {
|
|
3799
|
-
contents.sizeInBytes = smithy_client_1.
|
|
3836
|
+
contents.sizeInBytes = smithy_client_1.expectLong(data.sizeInBytes);
|
|
3800
3837
|
}
|
|
3801
3838
|
if (data.sizeInBytesCompressed !== undefined && data.sizeInBytesCompressed !== null) {
|
|
3802
|
-
contents.sizeInBytesCompressed = smithy_client_1.
|
|
3839
|
+
contents.sizeInBytesCompressed = smithy_client_1.expectLong(data.sizeInBytesCompressed);
|
|
3803
3840
|
}
|
|
3804
3841
|
if (data.unclassifiableObjectCount !== undefined && data.unclassifiableObjectCount !== null) {
|
|
3805
3842
|
contents.unclassifiableObjectCount = deserializeAws_restJson1ObjectLevelStatistics(data.unclassifiableObjectCount, context);
|
|
@@ -3899,7 +3936,7 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommand = asyn
|
|
|
3899
3936
|
$metadata: deserializeMetadata(output),
|
|
3900
3937
|
configuration: undefined,
|
|
3901
3938
|
};
|
|
3902
|
-
const data = await parseBody(output.body, context);
|
|
3939
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3903
3940
|
if (data.configuration !== undefined && data.configuration !== null) {
|
|
3904
3941
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
3905
3942
|
}
|
|
@@ -4005,12 +4042,12 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (output, co
|
|
|
4005
4042
|
regex: undefined,
|
|
4006
4043
|
tags: undefined,
|
|
4007
4044
|
};
|
|
4008
|
-
const data = await parseBody(output.body, context);
|
|
4045
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4009
4046
|
if (data.arn !== undefined && data.arn !== null) {
|
|
4010
4047
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
4011
4048
|
}
|
|
4012
4049
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
4013
|
-
contents.createdAt =
|
|
4050
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.createdAt));
|
|
4014
4051
|
}
|
|
4015
4052
|
if (data.deleted !== undefined && data.deleted !== null) {
|
|
4016
4053
|
contents.deleted = smithy_client_1.expectBoolean(data.deleted);
|
|
@@ -4028,7 +4065,7 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (output, co
|
|
|
4028
4065
|
contents.keywords = deserializeAws_restJson1__listOf__string(data.keywords, context);
|
|
4029
4066
|
}
|
|
4030
4067
|
if (data.maximumMatchDistance !== undefined && data.maximumMatchDistance !== null) {
|
|
4031
|
-
contents.maximumMatchDistance = smithy_client_1.
|
|
4068
|
+
contents.maximumMatchDistance = smithy_client_1.expectInt32(data.maximumMatchDistance);
|
|
4032
4069
|
}
|
|
4033
4070
|
if (data.name !== undefined && data.name !== null) {
|
|
4034
4071
|
contents.name = smithy_client_1.expectString(data.name);
|
|
@@ -4131,7 +4168,7 @@ const deserializeAws_restJson1GetFindingsCommand = async (output, context) => {
|
|
|
4131
4168
|
$metadata: deserializeMetadata(output),
|
|
4132
4169
|
findings: undefined,
|
|
4133
4170
|
};
|
|
4134
|
-
const data = await parseBody(output.body, context);
|
|
4171
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4135
4172
|
if (data.findings !== undefined && data.findings !== null) {
|
|
4136
4173
|
contents.findings = deserializeAws_restJson1__listOfFinding(data.findings, context);
|
|
4137
4174
|
}
|
|
@@ -4234,7 +4271,7 @@ const deserializeAws_restJson1GetFindingsFilterCommand = async (output, context)
|
|
|
4234
4271
|
position: undefined,
|
|
4235
4272
|
tags: undefined,
|
|
4236
4273
|
};
|
|
4237
|
-
const data = await parseBody(output.body, context);
|
|
4274
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4238
4275
|
if (data.action !== undefined && data.action !== null) {
|
|
4239
4276
|
contents.action = smithy_client_1.expectString(data.action);
|
|
4240
4277
|
}
|
|
@@ -4254,7 +4291,7 @@ const deserializeAws_restJson1GetFindingsFilterCommand = async (output, context)
|
|
|
4254
4291
|
contents.name = smithy_client_1.expectString(data.name);
|
|
4255
4292
|
}
|
|
4256
4293
|
if (data.position !== undefined && data.position !== null) {
|
|
4257
|
-
contents.position = smithy_client_1.
|
|
4294
|
+
contents.position = smithy_client_1.expectInt32(data.position);
|
|
4258
4295
|
}
|
|
4259
4296
|
if (data.tags !== undefined && data.tags !== null) {
|
|
4260
4297
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
@@ -4351,7 +4388,7 @@ const deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = async
|
|
|
4351
4388
|
$metadata: deserializeMetadata(output),
|
|
4352
4389
|
securityHubConfiguration: undefined,
|
|
4353
4390
|
};
|
|
4354
|
-
const data = await parseBody(output.body, context);
|
|
4391
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4355
4392
|
if (data.securityHubConfiguration !== undefined && data.securityHubConfiguration !== null) {
|
|
4356
4393
|
contents.securityHubConfiguration = deserializeAws_restJson1SecurityHubConfiguration(data.securityHubConfiguration, context);
|
|
4357
4394
|
}
|
|
@@ -4447,7 +4484,7 @@ const deserializeAws_restJson1GetFindingStatisticsCommand = async (output, conte
|
|
|
4447
4484
|
$metadata: deserializeMetadata(output),
|
|
4448
4485
|
countsByGroup: undefined,
|
|
4449
4486
|
};
|
|
4450
|
-
const data = await parseBody(output.body, context);
|
|
4487
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4451
4488
|
if (data.countsByGroup !== undefined && data.countsByGroup !== null) {
|
|
4452
4489
|
contents.countsByGroup = deserializeAws_restJson1__listOfGroupCount(data.countsByGroup, context);
|
|
4453
4490
|
}
|
|
@@ -4543,9 +4580,9 @@ const deserializeAws_restJson1GetInvitationsCountCommand = async (output, contex
|
|
|
4543
4580
|
$metadata: deserializeMetadata(output),
|
|
4544
4581
|
invitationsCount: undefined,
|
|
4545
4582
|
};
|
|
4546
|
-
const data = await parseBody(output.body, context);
|
|
4583
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4547
4584
|
if (data.invitationsCount !== undefined && data.invitationsCount !== null) {
|
|
4548
|
-
contents.invitationsCount = smithy_client_1.
|
|
4585
|
+
contents.invitationsCount = smithy_client_1.expectLong(data.invitationsCount);
|
|
4549
4586
|
}
|
|
4550
4587
|
return Promise.resolve(contents);
|
|
4551
4588
|
};
|
|
@@ -4643,9 +4680,9 @@ const deserializeAws_restJson1GetMacieSessionCommand = async (output, context) =
|
|
|
4643
4680
|
status: undefined,
|
|
4644
4681
|
updatedAt: undefined,
|
|
4645
4682
|
};
|
|
4646
|
-
const data = await parseBody(output.body, context);
|
|
4683
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4647
4684
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
4648
|
-
contents.createdAt =
|
|
4685
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.createdAt));
|
|
4649
4686
|
}
|
|
4650
4687
|
if (data.findingPublishingFrequency !== undefined && data.findingPublishingFrequency !== null) {
|
|
4651
4688
|
contents.findingPublishingFrequency = smithy_client_1.expectString(data.findingPublishingFrequency);
|
|
@@ -4657,7 +4694,7 @@ const deserializeAws_restJson1GetMacieSessionCommand = async (output, context) =
|
|
|
4657
4694
|
contents.status = smithy_client_1.expectString(data.status);
|
|
4658
4695
|
}
|
|
4659
4696
|
if (data.updatedAt !== undefined && data.updatedAt !== null) {
|
|
4660
|
-
contents.updatedAt =
|
|
4697
|
+
contents.updatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.updatedAt));
|
|
4661
4698
|
}
|
|
4662
4699
|
return Promise.resolve(contents);
|
|
4663
4700
|
};
|
|
@@ -4751,7 +4788,7 @@ const deserializeAws_restJson1GetMasterAccountCommand = async (output, context)
|
|
|
4751
4788
|
$metadata: deserializeMetadata(output),
|
|
4752
4789
|
master: undefined,
|
|
4753
4790
|
};
|
|
4754
|
-
const data = await parseBody(output.body, context);
|
|
4791
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4755
4792
|
if (data.master !== undefined && data.master !== null) {
|
|
4756
4793
|
contents.master = deserializeAws_restJson1Invitation(data.master, context);
|
|
4757
4794
|
}
|
|
@@ -4855,7 +4892,7 @@ const deserializeAws_restJson1GetMemberCommand = async (output, context) => {
|
|
|
4855
4892
|
tags: undefined,
|
|
4856
4893
|
updatedAt: undefined,
|
|
4857
4894
|
};
|
|
4858
|
-
const data = await parseBody(output.body, context);
|
|
4895
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4859
4896
|
if (data.accountId !== undefined && data.accountId !== null) {
|
|
4860
4897
|
contents.accountId = smithy_client_1.expectString(data.accountId);
|
|
4861
4898
|
}
|
|
@@ -4869,7 +4906,7 @@ const deserializeAws_restJson1GetMemberCommand = async (output, context) => {
|
|
|
4869
4906
|
contents.email = smithy_client_1.expectString(data.email);
|
|
4870
4907
|
}
|
|
4871
4908
|
if (data.invitedAt !== undefined && data.invitedAt !== null) {
|
|
4872
|
-
contents.invitedAt =
|
|
4909
|
+
contents.invitedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.invitedAt));
|
|
4873
4910
|
}
|
|
4874
4911
|
if (data.masterAccountId !== undefined && data.masterAccountId !== null) {
|
|
4875
4912
|
contents.masterAccountId = smithy_client_1.expectString(data.masterAccountId);
|
|
@@ -4881,7 +4918,7 @@ const deserializeAws_restJson1GetMemberCommand = async (output, context) => {
|
|
|
4881
4918
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4882
4919
|
}
|
|
4883
4920
|
if (data.updatedAt !== undefined && data.updatedAt !== null) {
|
|
4884
|
-
contents.updatedAt =
|
|
4921
|
+
contents.updatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.updatedAt));
|
|
4885
4922
|
}
|
|
4886
4923
|
return Promise.resolve(contents);
|
|
4887
4924
|
};
|
|
@@ -4977,7 +5014,7 @@ const deserializeAws_restJson1GetUsageStatisticsCommand = async (output, context
|
|
|
4977
5014
|
records: undefined,
|
|
4978
5015
|
timeRange: undefined,
|
|
4979
5016
|
};
|
|
4980
|
-
const data = await parseBody(output.body, context);
|
|
5017
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4981
5018
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4982
5019
|
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4983
5020
|
}
|
|
@@ -5080,7 +5117,7 @@ const deserializeAws_restJson1GetUsageTotalsCommand = async (output, context) =>
|
|
|
5080
5117
|
timeRange: undefined,
|
|
5081
5118
|
usageTotals: undefined,
|
|
5082
5119
|
};
|
|
5083
|
-
const data = await parseBody(output.body, context);
|
|
5120
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5084
5121
|
if (data.timeRange !== undefined && data.timeRange !== null) {
|
|
5085
5122
|
contents.timeRange = smithy_client_1.expectString(data.timeRange);
|
|
5086
5123
|
}
|
|
@@ -5180,7 +5217,7 @@ const deserializeAws_restJson1ListClassificationJobsCommand = async (output, con
|
|
|
5180
5217
|
items: undefined,
|
|
5181
5218
|
nextToken: undefined,
|
|
5182
5219
|
};
|
|
5183
|
-
const data = await parseBody(output.body, context);
|
|
5220
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5184
5221
|
if (data.items !== undefined && data.items !== null) {
|
|
5185
5222
|
contents.items = deserializeAws_restJson1__listOfJobSummary(data.items, context);
|
|
5186
5223
|
}
|
|
@@ -5280,7 +5317,7 @@ const deserializeAws_restJson1ListCustomDataIdentifiersCommand = async (output,
|
|
|
5280
5317
|
items: undefined,
|
|
5281
5318
|
nextToken: undefined,
|
|
5282
5319
|
};
|
|
5283
|
-
const data = await parseBody(output.body, context);
|
|
5320
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5284
5321
|
if (data.items !== undefined && data.items !== null) {
|
|
5285
5322
|
contents.items = deserializeAws_restJson1__listOfCustomDataIdentifierSummary(data.items, context);
|
|
5286
5323
|
}
|
|
@@ -5380,7 +5417,7 @@ const deserializeAws_restJson1ListFindingsCommand = async (output, context) => {
|
|
|
5380
5417
|
findingIds: undefined,
|
|
5381
5418
|
nextToken: undefined,
|
|
5382
5419
|
};
|
|
5383
|
-
const data = await parseBody(output.body, context);
|
|
5420
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5384
5421
|
if (data.findingIds !== undefined && data.findingIds !== null) {
|
|
5385
5422
|
contents.findingIds = deserializeAws_restJson1__listOf__string(data.findingIds, context);
|
|
5386
5423
|
}
|
|
@@ -5480,7 +5517,7 @@ const deserializeAws_restJson1ListFindingsFiltersCommand = async (output, contex
|
|
|
5480
5517
|
findingsFilterListItems: undefined,
|
|
5481
5518
|
nextToken: undefined,
|
|
5482
5519
|
};
|
|
5483
|
-
const data = await parseBody(output.body, context);
|
|
5520
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5484
5521
|
if (data.findingsFilterListItems !== undefined && data.findingsFilterListItems !== null) {
|
|
5485
5522
|
contents.findingsFilterListItems = deserializeAws_restJson1__listOfFindingsFilterListItem(data.findingsFilterListItems, context);
|
|
5486
5523
|
}
|
|
@@ -5580,7 +5617,7 @@ const deserializeAws_restJson1ListInvitationsCommand = async (output, context) =
|
|
|
5580
5617
|
invitations: undefined,
|
|
5581
5618
|
nextToken: undefined,
|
|
5582
5619
|
};
|
|
5583
|
-
const data = await parseBody(output.body, context);
|
|
5620
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5584
5621
|
if (data.invitations !== undefined && data.invitations !== null) {
|
|
5585
5622
|
contents.invitations = deserializeAws_restJson1__listOfInvitation(data.invitations, context);
|
|
5586
5623
|
}
|
|
@@ -5671,6 +5708,50 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
5671
5708
|
delete response.Message;
|
|
5672
5709
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
5673
5710
|
};
|
|
5711
|
+
const deserializeAws_restJson1ListManagedDataIdentifiersCommand = async (output, context) => {
|
|
5712
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5713
|
+
return deserializeAws_restJson1ListManagedDataIdentifiersCommandError(output, context);
|
|
5714
|
+
}
|
|
5715
|
+
const contents = {
|
|
5716
|
+
$metadata: deserializeMetadata(output),
|
|
5717
|
+
items: undefined,
|
|
5718
|
+
nextToken: undefined,
|
|
5719
|
+
};
|
|
5720
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5721
|
+
if (data.items !== undefined && data.items !== null) {
|
|
5722
|
+
contents.items = deserializeAws_restJson1__listOfManagedDataIdentifierSummary(data.items, context);
|
|
5723
|
+
}
|
|
5724
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5725
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5726
|
+
}
|
|
5727
|
+
return Promise.resolve(contents);
|
|
5728
|
+
};
|
|
5729
|
+
exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = deserializeAws_restJson1ListManagedDataIdentifiersCommand;
|
|
5730
|
+
const deserializeAws_restJson1ListManagedDataIdentifiersCommandError = async (output, context) => {
|
|
5731
|
+
const parsedOutput = {
|
|
5732
|
+
...output,
|
|
5733
|
+
body: await parseBody(output.body, context),
|
|
5734
|
+
};
|
|
5735
|
+
let response;
|
|
5736
|
+
let errorCode = "UnknownError";
|
|
5737
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5738
|
+
switch (errorCode) {
|
|
5739
|
+
default:
|
|
5740
|
+
const parsedBody = parsedOutput.body;
|
|
5741
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5742
|
+
response = {
|
|
5743
|
+
...parsedBody,
|
|
5744
|
+
name: `${errorCode}`,
|
|
5745
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5746
|
+
$fault: "client",
|
|
5747
|
+
$metadata: deserializeMetadata(output),
|
|
5748
|
+
};
|
|
5749
|
+
}
|
|
5750
|
+
const message = response.message || response.Message || errorCode;
|
|
5751
|
+
response.message = message;
|
|
5752
|
+
delete response.Message;
|
|
5753
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5754
|
+
};
|
|
5674
5755
|
const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
|
|
5675
5756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5676
5757
|
return deserializeAws_restJson1ListMembersCommandError(output, context);
|
|
@@ -5680,7 +5761,7 @@ const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
|
|
|
5680
5761
|
members: undefined,
|
|
5681
5762
|
nextToken: undefined,
|
|
5682
5763
|
};
|
|
5683
|
-
const data = await parseBody(output.body, context);
|
|
5764
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5684
5765
|
if (data.members !== undefined && data.members !== null) {
|
|
5685
5766
|
contents.members = deserializeAws_restJson1__listOfMember(data.members, context);
|
|
5686
5767
|
}
|
|
@@ -5780,7 +5861,7 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommand = async (outp
|
|
|
5780
5861
|
adminAccounts: undefined,
|
|
5781
5862
|
nextToken: undefined,
|
|
5782
5863
|
};
|
|
5783
|
-
const data = await parseBody(output.body, context);
|
|
5864
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5784
5865
|
if (data.adminAccounts !== undefined && data.adminAccounts !== null) {
|
|
5785
5866
|
contents.adminAccounts = deserializeAws_restJson1__listOfAdminAccount(data.adminAccounts, context);
|
|
5786
5867
|
}
|
|
@@ -5879,7 +5960,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
5879
5960
|
$metadata: deserializeMetadata(output),
|
|
5880
5961
|
tags: undefined,
|
|
5881
5962
|
};
|
|
5882
|
-
const data = await parseBody(output.body, context);
|
|
5963
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5883
5964
|
if (data.tags !== undefined && data.tags !== null) {
|
|
5884
5965
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
5885
5966
|
}
|
|
@@ -5919,7 +6000,7 @@ const deserializeAws_restJson1PutClassificationExportConfigurationCommand = asyn
|
|
|
5919
6000
|
$metadata: deserializeMetadata(output),
|
|
5920
6001
|
configuration: undefined,
|
|
5921
6002
|
};
|
|
5922
|
-
const data = await parseBody(output.body, context);
|
|
6003
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5923
6004
|
if (data.configuration !== undefined && data.configuration !== null) {
|
|
5924
6005
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
5925
6006
|
}
|
|
@@ -6108,7 +6189,7 @@ const deserializeAws_restJson1SearchResourcesCommand = async (output, context) =
|
|
|
6108
6189
|
matchingResources: undefined,
|
|
6109
6190
|
nextToken: undefined,
|
|
6110
6191
|
};
|
|
6111
|
-
const data = await parseBody(output.body, context);
|
|
6192
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6112
6193
|
if (data.matchingResources !== undefined && data.matchingResources !== null) {
|
|
6113
6194
|
contents.matchingResources = deserializeAws_restJson1__listOfMatchingResource(data.matchingResources, context);
|
|
6114
6195
|
}
|
|
@@ -6243,9 +6324,9 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommand = async (output, c
|
|
|
6243
6324
|
$metadata: deserializeMetadata(output),
|
|
6244
6325
|
matchCount: undefined,
|
|
6245
6326
|
};
|
|
6246
|
-
const data = await parseBody(output.body, context);
|
|
6327
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6247
6328
|
if (data.matchCount !== undefined && data.matchCount !== null) {
|
|
6248
|
-
contents.matchCount = smithy_client_1.
|
|
6329
|
+
contents.matchCount = smithy_client_1.expectInt32(data.matchCount);
|
|
6249
6330
|
}
|
|
6250
6331
|
return Promise.resolve(contents);
|
|
6251
6332
|
};
|
|
@@ -6468,7 +6549,7 @@ const deserializeAws_restJson1UpdateFindingsFilterCommand = async (output, conte
|
|
|
6468
6549
|
arn: undefined,
|
|
6469
6550
|
id: undefined,
|
|
6470
6551
|
};
|
|
6471
|
-
const data = await parseBody(output.body, context);
|
|
6552
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6472
6553
|
if (data.arn !== undefined && data.arn !== null) {
|
|
6473
6554
|
contents.arn = smithy_client_1.expectString(data.arn);
|
|
6474
6555
|
}
|
|
@@ -7528,6 +7609,16 @@ const deserializeAws_restJson1__listOfKeyValuePair = (output, context) => {
|
|
|
7528
7609
|
return deserializeAws_restJson1KeyValuePair(entry, context);
|
|
7529
7610
|
});
|
|
7530
7611
|
};
|
|
7612
|
+
const deserializeAws_restJson1__listOfManagedDataIdentifierSummary = (output, context) => {
|
|
7613
|
+
return (output || [])
|
|
7614
|
+
.filter((e) => e != null)
|
|
7615
|
+
.map((entry) => {
|
|
7616
|
+
if (entry === null) {
|
|
7617
|
+
return null;
|
|
7618
|
+
}
|
|
7619
|
+
return deserializeAws_restJson1ManagedDataIdentifierSummary(entry, context);
|
|
7620
|
+
});
|
|
7621
|
+
};
|
|
7531
7622
|
const deserializeAws_restJson1__listOfMatchingResource = (output, context) => {
|
|
7532
7623
|
return (output || [])
|
|
7533
7624
|
.filter((e) => e != null)
|
|
@@ -7641,8 +7732,12 @@ const deserializeAws_restJson1ApiCallDetails = (output, context) => {
|
|
|
7641
7732
|
return {
|
|
7642
7733
|
api: smithy_client_1.expectString(output.api),
|
|
7643
7734
|
apiServiceName: smithy_client_1.expectString(output.apiServiceName),
|
|
7644
|
-
firstSeen: output.firstSeen !== undefined && output.firstSeen !== null
|
|
7645
|
-
|
|
7735
|
+
firstSeen: output.firstSeen !== undefined && output.firstSeen !== null
|
|
7736
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.firstSeen))
|
|
7737
|
+
: undefined,
|
|
7738
|
+
lastSeen: output.lastSeen !== undefined && output.lastSeen !== null
|
|
7739
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastSeen))
|
|
7740
|
+
: undefined,
|
|
7646
7741
|
};
|
|
7647
7742
|
};
|
|
7648
7743
|
const deserializeAws_restJson1AssumedRole = (output, context) => {
|
|
@@ -7670,7 +7765,9 @@ const deserializeAws_restJson1AwsService = (output, context) => {
|
|
|
7670
7765
|
const deserializeAws_restJson1BatchGetCustomDataIdentifierSummary = (output, context) => {
|
|
7671
7766
|
return {
|
|
7672
7767
|
arn: smithy_client_1.expectString(output.arn),
|
|
7673
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
7768
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
7769
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
7770
|
+
: undefined,
|
|
7674
7771
|
deleted: smithy_client_1.expectBoolean(output.deleted),
|
|
7675
7772
|
description: smithy_client_1.expectString(output.description),
|
|
7676
7773
|
id: smithy_client_1.expectString(output.id),
|
|
@@ -7687,33 +7784,33 @@ const deserializeAws_restJson1BlockPublicAccess = (output, context) => {
|
|
|
7687
7784
|
};
|
|
7688
7785
|
const deserializeAws_restJson1BucketCountByEffectivePermission = (output, context) => {
|
|
7689
7786
|
return {
|
|
7690
|
-
publiclyAccessible: smithy_client_1.
|
|
7691
|
-
publiclyReadable: smithy_client_1.
|
|
7692
|
-
publiclyWritable: smithy_client_1.
|
|
7693
|
-
unknown: smithy_client_1.
|
|
7787
|
+
publiclyAccessible: smithy_client_1.expectLong(output.publiclyAccessible),
|
|
7788
|
+
publiclyReadable: smithy_client_1.expectLong(output.publiclyReadable),
|
|
7789
|
+
publiclyWritable: smithy_client_1.expectLong(output.publiclyWritable),
|
|
7790
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
7694
7791
|
};
|
|
7695
7792
|
};
|
|
7696
7793
|
const deserializeAws_restJson1BucketCountByEncryptionType = (output, context) => {
|
|
7697
7794
|
return {
|
|
7698
|
-
kmsManaged: smithy_client_1.
|
|
7699
|
-
s3Managed: smithy_client_1.
|
|
7700
|
-
unencrypted: smithy_client_1.
|
|
7701
|
-
unknown: smithy_client_1.
|
|
7795
|
+
kmsManaged: smithy_client_1.expectLong(output.kmsManaged),
|
|
7796
|
+
s3Managed: smithy_client_1.expectLong(output.s3Managed),
|
|
7797
|
+
unencrypted: smithy_client_1.expectLong(output.unencrypted),
|
|
7798
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
7702
7799
|
};
|
|
7703
7800
|
};
|
|
7704
7801
|
const deserializeAws_restJson1BucketCountBySharedAccessType = (output, context) => {
|
|
7705
7802
|
return {
|
|
7706
|
-
external: smithy_client_1.
|
|
7707
|
-
internal: smithy_client_1.
|
|
7708
|
-
notShared: smithy_client_1.
|
|
7709
|
-
unknown: smithy_client_1.
|
|
7803
|
+
external: smithy_client_1.expectLong(output.external),
|
|
7804
|
+
internal: smithy_client_1.expectLong(output.internal),
|
|
7805
|
+
notShared: smithy_client_1.expectLong(output.notShared),
|
|
7806
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
7710
7807
|
};
|
|
7711
7808
|
};
|
|
7712
7809
|
const deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads = (output, context) => {
|
|
7713
7810
|
return {
|
|
7714
|
-
allowsUnencryptedObjectUploads: smithy_client_1.
|
|
7715
|
-
deniesUnencryptedObjectUploads: smithy_client_1.
|
|
7716
|
-
unknown: smithy_client_1.
|
|
7811
|
+
allowsUnencryptedObjectUploads: smithy_client_1.expectLong(output.allowsUnencryptedObjectUploads),
|
|
7812
|
+
deniesUnencryptedObjectUploads: smithy_client_1.expectLong(output.deniesUnencryptedObjectUploads),
|
|
7813
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
7717
7814
|
};
|
|
7718
7815
|
};
|
|
7719
7816
|
const deserializeAws_restJson1BucketLevelPermissions = (output, context) => {
|
|
@@ -7735,16 +7832,18 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
7735
7832
|
allowsUnencryptedObjectUploads: smithy_client_1.expectString(output.allowsUnencryptedObjectUploads),
|
|
7736
7833
|
bucketArn: smithy_client_1.expectString(output.bucketArn),
|
|
7737
7834
|
bucketCreatedAt: output.bucketCreatedAt !== undefined && output.bucketCreatedAt !== null
|
|
7738
|
-
?
|
|
7835
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.bucketCreatedAt))
|
|
7739
7836
|
: undefined,
|
|
7740
7837
|
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
7741
|
-
classifiableObjectCount: smithy_client_1.
|
|
7742
|
-
classifiableSizeInBytes: smithy_client_1.
|
|
7838
|
+
classifiableObjectCount: smithy_client_1.expectLong(output.classifiableObjectCount),
|
|
7839
|
+
classifiableSizeInBytes: smithy_client_1.expectLong(output.classifiableSizeInBytes),
|
|
7743
7840
|
jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
|
|
7744
7841
|
? deserializeAws_restJson1JobDetails(output.jobDetails, context)
|
|
7745
7842
|
: undefined,
|
|
7746
|
-
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7747
|
-
|
|
7843
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7844
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastUpdated))
|
|
7845
|
+
: undefined,
|
|
7846
|
+
objectCount: smithy_client_1.expectLong(output.objectCount),
|
|
7748
7847
|
objectCountByEncryptionType: output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null
|
|
7749
7848
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
7750
7849
|
: undefined,
|
|
@@ -7759,8 +7858,8 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
7759
7858
|
? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
|
|
7760
7859
|
: undefined,
|
|
7761
7860
|
sharedAccess: smithy_client_1.expectString(output.sharedAccess),
|
|
7762
|
-
sizeInBytes: smithy_client_1.
|
|
7763
|
-
sizeInBytesCompressed: smithy_client_1.
|
|
7861
|
+
sizeInBytes: smithy_client_1.expectLong(output.sizeInBytes),
|
|
7862
|
+
sizeInBytesCompressed: smithy_client_1.expectLong(output.sizeInBytesCompressed),
|
|
7764
7863
|
tags: output.tags !== undefined && output.tags !== null
|
|
7765
7864
|
? deserializeAws_restJson1__listOfKeyValuePair(output.tags, context)
|
|
7766
7865
|
: undefined,
|
|
@@ -7806,9 +7905,9 @@ const deserializeAws_restJson1BucketServerSideEncryption = (output, context) =>
|
|
|
7806
7905
|
const deserializeAws_restJson1Cell = (output, context) => {
|
|
7807
7906
|
return {
|
|
7808
7907
|
cellReference: smithy_client_1.expectString(output.cellReference),
|
|
7809
|
-
column: smithy_client_1.
|
|
7908
|
+
column: smithy_client_1.expectLong(output.column),
|
|
7810
7909
|
columnName: smithy_client_1.expectString(output.columnName),
|
|
7811
|
-
row: smithy_client_1.
|
|
7910
|
+
row: smithy_client_1.expectLong(output.row),
|
|
7812
7911
|
};
|
|
7813
7912
|
};
|
|
7814
7913
|
const deserializeAws_restJson1Cells = (output, context) => {
|
|
@@ -7848,7 +7947,7 @@ const deserializeAws_restJson1ClassificationResult = (output, context) => {
|
|
|
7848
7947
|
sensitiveData: output.sensitiveData !== undefined && output.sensitiveData !== null
|
|
7849
7948
|
? deserializeAws_restJson1SensitiveData(output.sensitiveData, context)
|
|
7850
7949
|
: undefined,
|
|
7851
|
-
sizeClassified: smithy_client_1.
|
|
7950
|
+
sizeClassified: smithy_client_1.expectLong(output.sizeClassified),
|
|
7852
7951
|
status: output.status !== undefined && output.status !== null
|
|
7853
7952
|
? deserializeAws_restJson1ClassificationResultStatus(output.status, context)
|
|
7854
7953
|
: undefined,
|
|
@@ -7896,10 +7995,10 @@ const deserializeAws_restJson1CriterionAdditionalProperties = (output, context)
|
|
|
7896
7995
|
eqExactMatch: output.eqExactMatch !== undefined && output.eqExactMatch !== null
|
|
7897
7996
|
? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context)
|
|
7898
7997
|
: undefined,
|
|
7899
|
-
gt: smithy_client_1.
|
|
7900
|
-
gte: smithy_client_1.
|
|
7901
|
-
lt: smithy_client_1.
|
|
7902
|
-
lte: smithy_client_1.
|
|
7998
|
+
gt: smithy_client_1.expectLong(output.gt),
|
|
7999
|
+
gte: smithy_client_1.expectLong(output.gte),
|
|
8000
|
+
lt: smithy_client_1.expectLong(output.lt),
|
|
8001
|
+
lte: smithy_client_1.expectLong(output.lte),
|
|
7903
8002
|
neq: output.neq !== undefined && output.neq !== null
|
|
7904
8003
|
? deserializeAws_restJson1__listOf__string(output.neq, context)
|
|
7905
8004
|
: undefined,
|
|
@@ -7910,13 +8009,15 @@ const deserializeAws_restJson1CustomDataIdentifiers = (output, context) => {
|
|
|
7910
8009
|
detections: output.detections !== undefined && output.detections !== null
|
|
7911
8010
|
? deserializeAws_restJson1CustomDetections(output.detections, context)
|
|
7912
8011
|
: undefined,
|
|
7913
|
-
totalCount: smithy_client_1.
|
|
8012
|
+
totalCount: smithy_client_1.expectLong(output.totalCount),
|
|
7914
8013
|
};
|
|
7915
8014
|
};
|
|
7916
8015
|
const deserializeAws_restJson1CustomDataIdentifierSummary = (output, context) => {
|
|
7917
8016
|
return {
|
|
7918
8017
|
arn: smithy_client_1.expectString(output.arn),
|
|
7919
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8018
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8019
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
8020
|
+
: undefined,
|
|
7920
8021
|
description: smithy_client_1.expectString(output.description),
|
|
7921
8022
|
id: smithy_client_1.expectString(output.id),
|
|
7922
8023
|
name: smithy_client_1.expectString(output.name),
|
|
@@ -7925,7 +8026,7 @@ const deserializeAws_restJson1CustomDataIdentifierSummary = (output, context) =>
|
|
|
7925
8026
|
const deserializeAws_restJson1CustomDetection = (output, context) => {
|
|
7926
8027
|
return {
|
|
7927
8028
|
arn: smithy_client_1.expectString(output.arn),
|
|
7928
|
-
count: smithy_client_1.
|
|
8029
|
+
count: smithy_client_1.expectLong(output.count),
|
|
7929
8030
|
name: smithy_client_1.expectString(output.name),
|
|
7930
8031
|
occurrences: output.occurrences !== undefined && output.occurrences !== null
|
|
7931
8032
|
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
@@ -7947,7 +8048,7 @@ const deserializeAws_restJson1DailySchedule = (output, context) => {
|
|
|
7947
8048
|
};
|
|
7948
8049
|
const deserializeAws_restJson1DefaultDetection = (output, context) => {
|
|
7949
8050
|
return {
|
|
7950
|
-
count: smithy_client_1.
|
|
8051
|
+
count: smithy_client_1.expectLong(output.count),
|
|
7951
8052
|
occurrences: output.occurrences !== undefined && output.occurrences !== null
|
|
7952
8053
|
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
7953
8054
|
: undefined,
|
|
@@ -7988,8 +8089,10 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
7988
8089
|
classificationDetails: output.classificationDetails !== undefined && output.classificationDetails !== null
|
|
7989
8090
|
? deserializeAws_restJson1ClassificationDetails(output.classificationDetails, context)
|
|
7990
8091
|
: undefined,
|
|
7991
|
-
count: smithy_client_1.
|
|
7992
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8092
|
+
count: smithy_client_1.expectLong(output.count),
|
|
8093
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8094
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
8095
|
+
: undefined,
|
|
7993
8096
|
description: smithy_client_1.expectString(output.description),
|
|
7994
8097
|
id: smithy_client_1.expectString(output.id),
|
|
7995
8098
|
partition: smithy_client_1.expectString(output.partition),
|
|
@@ -8007,7 +8110,9 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
8007
8110
|
: undefined,
|
|
8008
8111
|
title: smithy_client_1.expectString(output.title),
|
|
8009
8112
|
type: smithy_client_1.expectString(output.type),
|
|
8010
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
8113
|
+
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
8114
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
8115
|
+
: undefined,
|
|
8011
8116
|
};
|
|
8012
8117
|
};
|
|
8013
8118
|
const deserializeAws_restJson1FindingAction = (output, context) => {
|
|
@@ -8051,7 +8156,7 @@ const deserializeAws_restJson1FindingsFilterListItem = (output, context) => {
|
|
|
8051
8156
|
};
|
|
8052
8157
|
const deserializeAws_restJson1GroupCount = (output, context) => {
|
|
8053
8158
|
return {
|
|
8054
|
-
count: smithy_client_1.
|
|
8159
|
+
count: smithy_client_1.expectLong(output.count),
|
|
8055
8160
|
groupKey: smithy_client_1.expectString(output.groupKey),
|
|
8056
8161
|
};
|
|
8057
8162
|
};
|
|
@@ -8067,7 +8172,9 @@ const deserializeAws_restJson1Invitation = (output, context) => {
|
|
|
8067
8172
|
return {
|
|
8068
8173
|
accountId: smithy_client_1.expectString(output.accountId),
|
|
8069
8174
|
invitationId: smithy_client_1.expectString(output.invitationId),
|
|
8070
|
-
invitedAt: output.invitedAt !== undefined && output.invitedAt !== null
|
|
8175
|
+
invitedAt: output.invitedAt !== undefined && output.invitedAt !== null
|
|
8176
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.invitedAt))
|
|
8177
|
+
: undefined,
|
|
8071
8178
|
relationshipStatus: smithy_client_1.expectString(output.relationshipStatus),
|
|
8072
8179
|
};
|
|
8073
8180
|
};
|
|
@@ -8101,8 +8208,8 @@ const deserializeAws_restJson1IpCountry = (output, context) => {
|
|
|
8101
8208
|
};
|
|
8102
8209
|
const deserializeAws_restJson1IpGeoLocation = (output, context) => {
|
|
8103
8210
|
return {
|
|
8104
|
-
lat: smithy_client_1.
|
|
8105
|
-
lon: smithy_client_1.
|
|
8211
|
+
lat: smithy_client_1.limitedParseDouble(output.lat),
|
|
8212
|
+
lon: smithy_client_1.limitedParseDouble(output.lon),
|
|
8106
8213
|
};
|
|
8107
8214
|
};
|
|
8108
8215
|
const deserializeAws_restJson1IpOwner = (output, context) => {
|
|
@@ -8119,7 +8226,7 @@ const deserializeAws_restJson1JobDetails = (output, context) => {
|
|
|
8119
8226
|
isMonitoredByJob: smithy_client_1.expectString(output.isMonitoredByJob),
|
|
8120
8227
|
lastJobId: smithy_client_1.expectString(output.lastJobId),
|
|
8121
8228
|
lastJobRunTime: output.lastJobRunTime !== undefined && output.lastJobRunTime !== null
|
|
8122
|
-
?
|
|
8229
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastJobRunTime))
|
|
8123
8230
|
: undefined,
|
|
8124
8231
|
};
|
|
8125
8232
|
};
|
|
@@ -8161,7 +8268,9 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
|
8161
8268
|
bucketDefinitions: output.bucketDefinitions !== undefined && output.bucketDefinitions !== null
|
|
8162
8269
|
? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
|
|
8163
8270
|
: undefined,
|
|
8164
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8271
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8272
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
8273
|
+
: undefined,
|
|
8165
8274
|
jobId: smithy_client_1.expectString(output.jobId),
|
|
8166
8275
|
jobStatus: smithy_client_1.expectString(output.jobStatus),
|
|
8167
8276
|
jobType: smithy_client_1.expectString(output.jobType),
|
|
@@ -8195,21 +8304,27 @@ const deserializeAws_restJson1LastRunErrorStatus = (output, context) => {
|
|
|
8195
8304
|
code: smithy_client_1.expectString(output.code),
|
|
8196
8305
|
};
|
|
8197
8306
|
};
|
|
8307
|
+
const deserializeAws_restJson1ManagedDataIdentifierSummary = (output, context) => {
|
|
8308
|
+
return {
|
|
8309
|
+
category: smithy_client_1.expectString(output.category),
|
|
8310
|
+
id: smithy_client_1.expectString(output.id),
|
|
8311
|
+
};
|
|
8312
|
+
};
|
|
8198
8313
|
const deserializeAws_restJson1MatchingBucket = (output, context) => {
|
|
8199
8314
|
return {
|
|
8200
8315
|
accountId: smithy_client_1.expectString(output.accountId),
|
|
8201
8316
|
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
8202
|
-
classifiableObjectCount: smithy_client_1.
|
|
8203
|
-
classifiableSizeInBytes: smithy_client_1.
|
|
8317
|
+
classifiableObjectCount: smithy_client_1.expectLong(output.classifiableObjectCount),
|
|
8318
|
+
classifiableSizeInBytes: smithy_client_1.expectLong(output.classifiableSizeInBytes),
|
|
8204
8319
|
jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
|
|
8205
8320
|
? deserializeAws_restJson1JobDetails(output.jobDetails, context)
|
|
8206
8321
|
: undefined,
|
|
8207
|
-
objectCount: smithy_client_1.
|
|
8322
|
+
objectCount: smithy_client_1.expectLong(output.objectCount),
|
|
8208
8323
|
objectCountByEncryptionType: output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null
|
|
8209
8324
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
8210
8325
|
: undefined,
|
|
8211
|
-
sizeInBytes: smithy_client_1.
|
|
8212
|
-
sizeInBytesCompressed: smithy_client_1.
|
|
8326
|
+
sizeInBytes: smithy_client_1.expectLong(output.sizeInBytes),
|
|
8327
|
+
sizeInBytesCompressed: smithy_client_1.expectLong(output.sizeInBytesCompressed),
|
|
8213
8328
|
unclassifiableObjectCount: output.unclassifiableObjectCount !== undefined && output.unclassifiableObjectCount !== null
|
|
8214
8329
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
|
|
8215
8330
|
: undefined,
|
|
@@ -8231,34 +8346,38 @@ const deserializeAws_restJson1Member = (output, context) => {
|
|
|
8231
8346
|
administratorAccountId: smithy_client_1.expectString(output.administratorAccountId),
|
|
8232
8347
|
arn: smithy_client_1.expectString(output.arn),
|
|
8233
8348
|
email: smithy_client_1.expectString(output.email),
|
|
8234
|
-
invitedAt: output.invitedAt !== undefined && output.invitedAt !== null
|
|
8349
|
+
invitedAt: output.invitedAt !== undefined && output.invitedAt !== null
|
|
8350
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.invitedAt))
|
|
8351
|
+
: undefined,
|
|
8235
8352
|
masterAccountId: smithy_client_1.expectString(output.masterAccountId),
|
|
8236
8353
|
relationshipStatus: smithy_client_1.expectString(output.relationshipStatus),
|
|
8237
8354
|
tags: output.tags !== undefined && output.tags !== null
|
|
8238
8355
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
8239
8356
|
: undefined,
|
|
8240
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
8357
|
+
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
8358
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
8359
|
+
: undefined,
|
|
8241
8360
|
};
|
|
8242
8361
|
};
|
|
8243
8362
|
const deserializeAws_restJson1MonthlySchedule = (output, context) => {
|
|
8244
8363
|
return {
|
|
8245
|
-
dayOfMonth: smithy_client_1.
|
|
8364
|
+
dayOfMonth: smithy_client_1.expectInt32(output.dayOfMonth),
|
|
8246
8365
|
};
|
|
8247
8366
|
};
|
|
8248
8367
|
const deserializeAws_restJson1ObjectCountByEncryptionType = (output, context) => {
|
|
8249
8368
|
return {
|
|
8250
|
-
customerManaged: smithy_client_1.
|
|
8251
|
-
kmsManaged: smithy_client_1.
|
|
8252
|
-
s3Managed: smithy_client_1.
|
|
8253
|
-
unencrypted: smithy_client_1.
|
|
8254
|
-
unknown: smithy_client_1.
|
|
8369
|
+
customerManaged: smithy_client_1.expectLong(output.customerManaged),
|
|
8370
|
+
kmsManaged: smithy_client_1.expectLong(output.kmsManaged),
|
|
8371
|
+
s3Managed: smithy_client_1.expectLong(output.s3Managed),
|
|
8372
|
+
unencrypted: smithy_client_1.expectLong(output.unencrypted),
|
|
8373
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
8255
8374
|
};
|
|
8256
8375
|
};
|
|
8257
8376
|
const deserializeAws_restJson1ObjectLevelStatistics = (output, context) => {
|
|
8258
8377
|
return {
|
|
8259
|
-
fileType: smithy_client_1.
|
|
8260
|
-
storageClass: smithy_client_1.
|
|
8261
|
-
total: smithy_client_1.
|
|
8378
|
+
fileType: smithy_client_1.expectLong(output.fileType),
|
|
8379
|
+
storageClass: smithy_client_1.expectLong(output.storageClass),
|
|
8380
|
+
total: smithy_client_1.expectLong(output.total),
|
|
8262
8381
|
};
|
|
8263
8382
|
};
|
|
8264
8383
|
const deserializeAws_restJson1Occurrences = (output, context) => {
|
|
@@ -8288,7 +8407,7 @@ const deserializeAws_restJson1Page = (output, context) => {
|
|
|
8288
8407
|
offsetRange: output.offsetRange !== undefined && output.offsetRange !== null
|
|
8289
8408
|
? deserializeAws_restJson1Range(output.offsetRange, context)
|
|
8290
8409
|
: undefined,
|
|
8291
|
-
pageNumber: smithy_client_1.
|
|
8410
|
+
pageNumber: smithy_client_1.expectLong(output.pageNumber),
|
|
8292
8411
|
};
|
|
8293
8412
|
};
|
|
8294
8413
|
const deserializeAws_restJson1Pages = (output, context) => {
|
|
@@ -8313,9 +8432,9 @@ const deserializeAws_restJson1PolicyDetails = (output, context) => {
|
|
|
8313
8432
|
};
|
|
8314
8433
|
const deserializeAws_restJson1Range = (output, context) => {
|
|
8315
8434
|
return {
|
|
8316
|
-
end: smithy_client_1.
|
|
8317
|
-
start: smithy_client_1.
|
|
8318
|
-
startColumn: smithy_client_1.
|
|
8435
|
+
end: smithy_client_1.expectLong(output.end),
|
|
8436
|
+
start: smithy_client_1.expectLong(output.start),
|
|
8437
|
+
startColumn: smithy_client_1.expectLong(output.startColumn),
|
|
8319
8438
|
};
|
|
8320
8439
|
};
|
|
8321
8440
|
const deserializeAws_restJson1Ranges = (output, context) => {
|
|
@@ -8331,7 +8450,7 @@ const deserializeAws_restJson1Ranges = (output, context) => {
|
|
|
8331
8450
|
const deserializeAws_restJson1_Record = (output, context) => {
|
|
8332
8451
|
return {
|
|
8333
8452
|
jsonPath: smithy_client_1.expectString(output.jsonPath),
|
|
8334
|
-
recordIndex: smithy_client_1.
|
|
8453
|
+
recordIndex: smithy_client_1.expectLong(output.recordIndex),
|
|
8335
8454
|
};
|
|
8336
8455
|
};
|
|
8337
8456
|
const deserializeAws_restJson1Records = (output, context) => {
|
|
@@ -8367,7 +8486,9 @@ const deserializeAws_restJson1S3Bucket = (output, context) => {
|
|
|
8367
8486
|
return {
|
|
8368
8487
|
allowsUnencryptedObjectUploads: smithy_client_1.expectString(output.allowsUnencryptedObjectUploads),
|
|
8369
8488
|
arn: smithy_client_1.expectString(output.arn),
|
|
8370
|
-
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8489
|
+
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8490
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
8491
|
+
: undefined,
|
|
8371
8492
|
defaultServerSideEncryption: output.defaultServerSideEncryption !== undefined && output.defaultServerSideEncryption !== null
|
|
8372
8493
|
? deserializeAws_restJson1ServerSideEncryption(output.defaultServerSideEncryption, context)
|
|
8373
8494
|
: undefined,
|
|
@@ -8433,13 +8554,15 @@ const deserializeAws_restJson1S3Object = (output, context) => {
|
|
|
8433
8554
|
eTag: smithy_client_1.expectString(output.eTag),
|
|
8434
8555
|
extension: smithy_client_1.expectString(output.extension),
|
|
8435
8556
|
key: smithy_client_1.expectString(output.key),
|
|
8436
|
-
lastModified: output.lastModified !== undefined && output.lastModified !== null
|
|
8557
|
+
lastModified: output.lastModified !== undefined && output.lastModified !== null
|
|
8558
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastModified))
|
|
8559
|
+
: undefined,
|
|
8437
8560
|
path: smithy_client_1.expectString(output.path),
|
|
8438
8561
|
publicAccess: smithy_client_1.expectBoolean(output.publicAccess),
|
|
8439
8562
|
serverSideEncryption: output.serverSideEncryption !== undefined && output.serverSideEncryption !== null
|
|
8440
8563
|
? deserializeAws_restJson1ServerSideEncryption(output.serverSideEncryption, context)
|
|
8441
8564
|
: undefined,
|
|
8442
|
-
size: smithy_client_1.
|
|
8565
|
+
size: smithy_client_1.expectLong(output.size),
|
|
8443
8566
|
storageClass: smithy_client_1.expectString(output.storageClass),
|
|
8444
8567
|
tags: output.tags !== undefined && output.tags !== null
|
|
8445
8568
|
? deserializeAws_restJson1KeyValuePairList(output.tags, context)
|
|
@@ -8479,7 +8602,7 @@ const deserializeAws_restJson1SensitiveDataItem = (output, context) => {
|
|
|
8479
8602
|
detections: output.detections !== undefined && output.detections !== null
|
|
8480
8603
|
? deserializeAws_restJson1DefaultDetections(output.detections, context)
|
|
8481
8604
|
: undefined,
|
|
8482
|
-
totalCount: smithy_client_1.
|
|
8605
|
+
totalCount: smithy_client_1.expectLong(output.totalCount),
|
|
8483
8606
|
};
|
|
8484
8607
|
};
|
|
8485
8608
|
const deserializeAws_restJson1ServerSideEncryption = (output, context) => {
|
|
@@ -8492,7 +8615,7 @@ const deserializeAws_restJson1ServiceLimit = (output, context) => {
|
|
|
8492
8615
|
return {
|
|
8493
8616
|
isServiceLimited: smithy_client_1.expectBoolean(output.isServiceLimited),
|
|
8494
8617
|
unit: smithy_client_1.expectString(output.unit),
|
|
8495
|
-
value: smithy_client_1.
|
|
8618
|
+
value: smithy_client_1.expectLong(output.value),
|
|
8496
8619
|
};
|
|
8497
8620
|
};
|
|
8498
8621
|
const deserializeAws_restJson1SessionContext = (output, context) => {
|
|
@@ -8507,7 +8630,9 @@ const deserializeAws_restJson1SessionContext = (output, context) => {
|
|
|
8507
8630
|
};
|
|
8508
8631
|
const deserializeAws_restJson1SessionContextAttributes = (output, context) => {
|
|
8509
8632
|
return {
|
|
8510
|
-
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8633
|
+
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8634
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationDate))
|
|
8635
|
+
: undefined,
|
|
8511
8636
|
mfaAuthenticated: smithy_client_1.expectBoolean(output.mfaAuthenticated),
|
|
8512
8637
|
};
|
|
8513
8638
|
};
|
|
@@ -8523,7 +8648,7 @@ const deserializeAws_restJson1SessionIssuer = (output, context) => {
|
|
|
8523
8648
|
const deserializeAws_restJson1Severity = (output, context) => {
|
|
8524
8649
|
return {
|
|
8525
8650
|
description: smithy_client_1.expectString(output.description),
|
|
8526
|
-
score: smithy_client_1.
|
|
8651
|
+
score: smithy_client_1.expectLong(output.score),
|
|
8527
8652
|
};
|
|
8528
8653
|
};
|
|
8529
8654
|
const deserializeAws_restJson1SimpleCriterionForJob = (output, context) => {
|
|
@@ -8546,8 +8671,8 @@ const deserializeAws_restJson1SimpleScopeTerm = (output, context) => {
|
|
|
8546
8671
|
};
|
|
8547
8672
|
const deserializeAws_restJson1Statistics = (output, context) => {
|
|
8548
8673
|
return {
|
|
8549
|
-
approximateNumberOfObjectsToProcess: smithy_client_1.
|
|
8550
|
-
numberOfRuns: smithy_client_1.
|
|
8674
|
+
approximateNumberOfObjectsToProcess: smithy_client_1.limitedParseDouble(output.approximateNumberOfObjectsToProcess),
|
|
8675
|
+
numberOfRuns: smithy_client_1.limitedParseDouble(output.numberOfRuns),
|
|
8551
8676
|
};
|
|
8552
8677
|
};
|
|
8553
8678
|
const deserializeAws_restJson1TagCriterionForJob = (output, context) => {
|
|
@@ -8612,7 +8737,7 @@ const deserializeAws_restJson1UsageRecord = (output, context) => {
|
|
|
8612
8737
|
return {
|
|
8613
8738
|
accountId: smithy_client_1.expectString(output.accountId),
|
|
8614
8739
|
freeTrialStartDate: output.freeTrialStartDate !== undefined && output.freeTrialStartDate !== null
|
|
8615
|
-
?
|
|
8740
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.freeTrialStartDate))
|
|
8616
8741
|
: undefined,
|
|
8617
8742
|
usage: output.usage !== undefined && output.usage !== null
|
|
8618
8743
|
? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context)
|
|
@@ -8658,9 +8783,13 @@ const deserializeAws_restJson1UserIdentityRoot = (output, context) => {
|
|
|
8658
8783
|
};
|
|
8659
8784
|
const deserializeAws_restJson1UserPausedDetails = (output, context) => {
|
|
8660
8785
|
return {
|
|
8661
|
-
jobExpiresAt: output.jobExpiresAt !== undefined && output.jobExpiresAt !== null
|
|
8786
|
+
jobExpiresAt: output.jobExpiresAt !== undefined && output.jobExpiresAt !== null
|
|
8787
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.jobExpiresAt))
|
|
8788
|
+
: undefined,
|
|
8662
8789
|
jobImminentExpirationHealthEventArn: smithy_client_1.expectString(output.jobImminentExpirationHealthEventArn),
|
|
8663
|
-
jobPausedAt: output.jobPausedAt !== undefined && output.jobPausedAt !== null
|
|
8790
|
+
jobPausedAt: output.jobPausedAt !== undefined && output.jobPausedAt !== null
|
|
8791
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.jobPausedAt))
|
|
8792
|
+
: undefined,
|
|
8664
8793
|
};
|
|
8665
8794
|
};
|
|
8666
8795
|
const deserializeAws_restJson1WeeklySchedule = (output, context) => {
|