@aws-sdk/client-macie2 3.216.0 → 3.219.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/README.md +1 -1
- package/dist-cjs/Macie2.js +195 -0
- package/dist-cjs/commands/GetAutomatedDiscoveryConfigurationCommand.js +46 -0
- package/dist-cjs/commands/GetClassificationScopeCommand.js +46 -0
- package/dist-cjs/commands/GetResourceProfileCommand.js +46 -0
- package/dist-cjs/commands/GetSensitivityInspectionTemplateCommand.js +46 -0
- package/dist-cjs/commands/ListClassificationScopesCommand.js +46 -0
- package/dist-cjs/commands/ListInvitationsCommand.js +3 -3
- package/dist-cjs/commands/ListManagedDataIdentifiersCommand.js +3 -3
- package/dist-cjs/commands/ListMembersCommand.js +3 -3
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +3 -3
- package/dist-cjs/commands/ListResourceProfileArtifactsCommand.js +46 -0
- package/dist-cjs/commands/ListResourceProfileDetectionsCommand.js +46 -0
- package/dist-cjs/commands/ListSensitivityInspectionTemplatesCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/PutClassificationExportConfigurationCommand.js +3 -3
- package/dist-cjs/commands/PutFindingsPublicationConfigurationCommand.js +3 -3
- package/dist-cjs/commands/SearchResourcesCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/TestCustomDataIdentifierCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +1 -2
- package/dist-cjs/commands/UpdateAutomatedDiscoveryConfigurationCommand.js +46 -0
- package/dist-cjs/commands/UpdateClassificationScopeCommand.js +46 -0
- package/dist-cjs/commands/UpdateResourceProfileCommand.js +46 -0
- package/dist-cjs/commands/UpdateResourceProfileDetectionsCommand.js +46 -0
- package/dist-cjs/commands/UpdateSensitivityInspectionTemplateCommand.js +46 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +113 -109
- package/dist-cjs/models/models_1.js +177 -1
- package/dist-cjs/pagination/ListAllowListsPaginator.js +36 -0
- package/dist-cjs/pagination/ListClassificationScopesPaginator.js +35 -0
- package/dist-cjs/pagination/ListManagedDataIdentifiersPaginator.js +35 -0
- package/dist-cjs/pagination/ListResourceProfileArtifactsPaginator.js +35 -0
- package/dist-cjs/pagination/ListResourceProfileDetectionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSensitivityInspectionTemplatesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1216 -71
- package/dist-es/Macie2.js +195 -0
- package/dist-es/commands/GetAutomatedDiscoveryConfigurationCommand.js +42 -0
- package/dist-es/commands/GetClassificationScopeCommand.js +42 -0
- package/dist-es/commands/GetResourceProfileCommand.js +42 -0
- package/dist-es/commands/GetSensitivityInspectionTemplateCommand.js +42 -0
- package/dist-es/commands/ListClassificationScopesCommand.js +42 -0
- package/dist-es/commands/ListInvitationsCommand.js +1 -1
- package/dist-es/commands/ListManagedDataIdentifiersCommand.js +1 -1
- package/dist-es/commands/ListMembersCommand.js +1 -1
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +1 -1
- package/dist-es/commands/ListResourceProfileArtifactsCommand.js +42 -0
- package/dist-es/commands/ListResourceProfileDetectionsCommand.js +42 -0
- package/dist-es/commands/ListSensitivityInspectionTemplatesCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -1
- package/dist-es/commands/PutClassificationExportConfigurationCommand.js +1 -1
- package/dist-es/commands/PutFindingsPublicationConfigurationCommand.js +1 -1
- package/dist-es/commands/SearchResourcesCommand.js +1 -1
- package/dist-es/commands/TagResourceCommand.js +1 -1
- package/dist-es/commands/TestCustomDataIdentifierCommand.js +1 -1
- package/dist-es/commands/UntagResourceCommand.js +1 -2
- package/dist-es/commands/UpdateAutomatedDiscoveryConfigurationCommand.js +42 -0
- package/dist-es/commands/UpdateClassificationScopeCommand.js +42 -0
- package/dist-es/commands/UpdateResourceProfileCommand.js +42 -0
- package/dist-es/commands/UpdateResourceProfileDetectionsCommand.js +42 -0
- package/dist-es/commands/UpdateSensitivityInspectionTemplateCommand.js +42 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +85 -79
- package/dist-es/models/models_1.js +133 -0
- package/dist-es/pagination/ListAllowListsPaginator.js +32 -0
- package/dist-es/pagination/ListClassificationScopesPaginator.js +31 -0
- package/dist-es/pagination/ListManagedDataIdentifiersPaginator.js +31 -0
- package/dist-es/pagination/ListResourceProfileArtifactsPaginator.js +31 -0
- package/dist-es/pagination/ListResourceProfileDetectionsPaginator.js +32 -0
- package/dist-es/pagination/ListSensitivityInspectionTemplatesPaginator.js +32 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +1204 -86
- package/dist-types/Macie2.d.ts +95 -4
- package/dist-types/Macie2Client.d.ts +16 -3
- package/dist-types/commands/DescribeBucketsCommand.d.ts +1 -1
- package/dist-types/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/GetBucketStatisticsCommand.d.ts +1 -1
- package/dist-types/commands/GetClassificationScopeCommand.d.ts +37 -0
- package/dist-types/commands/GetMacieSessionCommand.d.ts +1 -1
- package/dist-types/commands/GetResourceProfileCommand.d.ts +37 -0
- package/dist-types/commands/GetSensitivityInspectionTemplateCommand.d.ts +37 -0
- package/dist-types/commands/ListClassificationScopesCommand.d.ts +37 -0
- package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/ListManagedDataIdentifiersCommand.d.ts +1 -1
- package/dist-types/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
- package/dist-types/commands/ListResourceProfileArtifactsCommand.d.ts +37 -0
- package/dist-types/commands/ListResourceProfileDetectionsCommand.d.ts +37 -0
- package/dist-types/commands/ListSensitivityInspectionTemplatesCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutClassificationExportConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutFindingsPublicationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/SearchResourcesCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/TestCustomDataIdentifierCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -2
- package/dist-types/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateClassificationScopeCommand.d.ts +37 -0
- package/dist-types/commands/UpdateResourceProfileCommand.d.ts +37 -0
- package/dist-types/commands/UpdateResourceProfileDetectionsCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +501 -372
- package/dist-types/models/models_1.d.ts +559 -6
- package/dist-types/pagination/ListAllowListsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListClassificationScopesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListManagedDataIdentifiersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListResourceProfileArtifactsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListResourceProfileDetectionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +39 -0
- package/dist-types/ts3.4/Macie2.d.ts +245 -0
- package/dist-types/ts3.4/Macie2Client.d.ts +80 -2
- package/dist-types/ts3.4/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetClassificationScopeCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetResourceProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSensitivityInspectionTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListClassificationScopesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListManagedDataIdentifiersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListResourceProfileArtifactsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListResourceProfileDetectionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSensitivityInspectionTemplatesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutClassificationExportConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutFindingsPublicationConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchResourcesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TestCustomDataIdentifierCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateClassificationScopeCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateResourceProfileCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateResourceProfileDetectionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +194 -169
- package/dist-types/ts3.4/models/models_1.d.ts +297 -1
- package/dist-types/ts3.4/pagination/ListAllowListsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListClassificationScopesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListManagedDataIdentifiersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourceProfileArtifactsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourceProfileDetectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +3 -3
|
@@ -428,7 +428,7 @@ export const serializeAws_restJson1DisableOrganizationAdminAccountCommand = asyn
|
|
|
428
428
|
const headers = {};
|
|
429
429
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/admin";
|
|
430
430
|
const query = map({
|
|
431
|
-
adminAccountId: [, input.adminAccountId],
|
|
431
|
+
adminAccountId: [, __expectNonNull(input.adminAccountId, `adminAccountId`)],
|
|
432
432
|
});
|
|
433
433
|
let body;
|
|
434
434
|
return new __HttpRequest({
|
|
@@ -571,6 +571,24 @@ export const serializeAws_restJson1GetAllowListCommand = async (input, context)
|
|
|
571
571
|
body,
|
|
572
572
|
});
|
|
573
573
|
};
|
|
574
|
+
export const serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = async (input, context) => {
|
|
575
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
576
|
+
const headers = {
|
|
577
|
+
"content-type": "application/json",
|
|
578
|
+
};
|
|
579
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automated-discovery/configuration";
|
|
580
|
+
let body;
|
|
581
|
+
body = "";
|
|
582
|
+
return new __HttpRequest({
|
|
583
|
+
protocol,
|
|
584
|
+
hostname,
|
|
585
|
+
port,
|
|
586
|
+
method: "GET",
|
|
587
|
+
headers,
|
|
588
|
+
path: resolvedPath,
|
|
589
|
+
body,
|
|
590
|
+
});
|
|
591
|
+
};
|
|
574
592
|
export const serializeAws_restJson1GetBucketStatisticsCommand = async (input, context) => {
|
|
575
593
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
576
594
|
const headers = {
|
|
@@ -609,6 +627,22 @@ export const serializeAws_restJson1GetClassificationExportConfigurationCommand =
|
|
|
609
627
|
body,
|
|
610
628
|
});
|
|
611
629
|
};
|
|
630
|
+
export const serializeAws_restJson1GetClassificationScopeCommand = async (input, context) => {
|
|
631
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
632
|
+
const headers = {};
|
|
633
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes/{id}";
|
|
634
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
635
|
+
let body;
|
|
636
|
+
return new __HttpRequest({
|
|
637
|
+
protocol,
|
|
638
|
+
hostname,
|
|
639
|
+
port,
|
|
640
|
+
method: "GET",
|
|
641
|
+
headers,
|
|
642
|
+
path: resolvedPath,
|
|
643
|
+
body,
|
|
644
|
+
});
|
|
645
|
+
};
|
|
612
646
|
export const serializeAws_restJson1GetCustomDataIdentifierCommand = async (input, context) => {
|
|
613
647
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
614
648
|
const headers = {};
|
|
@@ -779,6 +813,25 @@ export const serializeAws_restJson1GetMemberCommand = async (input, context) =>
|
|
|
779
813
|
body,
|
|
780
814
|
});
|
|
781
815
|
};
|
|
816
|
+
export const serializeAws_restJson1GetResourceProfileCommand = async (input, context) => {
|
|
817
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
818
|
+
const headers = {};
|
|
819
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles";
|
|
820
|
+
const query = map({
|
|
821
|
+
resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
|
|
822
|
+
});
|
|
823
|
+
let body;
|
|
824
|
+
return new __HttpRequest({
|
|
825
|
+
protocol,
|
|
826
|
+
hostname,
|
|
827
|
+
port,
|
|
828
|
+
method: "GET",
|
|
829
|
+
headers,
|
|
830
|
+
path: resolvedPath,
|
|
831
|
+
query,
|
|
832
|
+
body,
|
|
833
|
+
});
|
|
834
|
+
};
|
|
782
835
|
export const serializeAws_restJson1GetRevealConfigurationCommand = async (input, context) => {
|
|
783
836
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
784
837
|
const headers = {
|
|
@@ -829,6 +882,22 @@ export const serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityComman
|
|
|
829
882
|
body,
|
|
830
883
|
});
|
|
831
884
|
};
|
|
885
|
+
export const serializeAws_restJson1GetSensitivityInspectionTemplateCommand = async (input, context) => {
|
|
886
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
887
|
+
const headers = {};
|
|
888
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections/{id}";
|
|
889
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
890
|
+
let body;
|
|
891
|
+
return new __HttpRequest({
|
|
892
|
+
protocol,
|
|
893
|
+
hostname,
|
|
894
|
+
port,
|
|
895
|
+
method: "GET",
|
|
896
|
+
headers,
|
|
897
|
+
path: resolvedPath,
|
|
898
|
+
body,
|
|
899
|
+
});
|
|
900
|
+
};
|
|
832
901
|
export const serializeAws_restJson1GetUsageStatisticsCommand = async (input, context) => {
|
|
833
902
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
834
903
|
const headers = {
|
|
@@ -921,6 +990,26 @@ export const serializeAws_restJson1ListClassificationJobsCommand = async (input,
|
|
|
921
990
|
body,
|
|
922
991
|
});
|
|
923
992
|
};
|
|
993
|
+
export const serializeAws_restJson1ListClassificationScopesCommand = async (input, context) => {
|
|
994
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
995
|
+
const headers = {};
|
|
996
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes";
|
|
997
|
+
const query = map({
|
|
998
|
+
name: [, input.name],
|
|
999
|
+
nextToken: [, input.nextToken],
|
|
1000
|
+
});
|
|
1001
|
+
let body;
|
|
1002
|
+
return new __HttpRequest({
|
|
1003
|
+
protocol,
|
|
1004
|
+
hostname,
|
|
1005
|
+
port,
|
|
1006
|
+
method: "GET",
|
|
1007
|
+
headers,
|
|
1008
|
+
path: resolvedPath,
|
|
1009
|
+
query,
|
|
1010
|
+
body,
|
|
1011
|
+
});
|
|
1012
|
+
};
|
|
924
1013
|
export const serializeAws_restJson1ListCustomDataIdentifiersCommand = async (input, context) => {
|
|
925
1014
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
926
1015
|
const headers = {
|
|
@@ -1070,6 +1159,67 @@ export const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async
|
|
|
1070
1159
|
body,
|
|
1071
1160
|
});
|
|
1072
1161
|
};
|
|
1162
|
+
export const serializeAws_restJson1ListResourceProfileArtifactsCommand = async (input, context) => {
|
|
1163
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1164
|
+
const headers = {};
|
|
1165
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/artifacts";
|
|
1166
|
+
const query = map({
|
|
1167
|
+
nextToken: [, input.nextToken],
|
|
1168
|
+
resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
|
|
1169
|
+
});
|
|
1170
|
+
let body;
|
|
1171
|
+
return new __HttpRequest({
|
|
1172
|
+
protocol,
|
|
1173
|
+
hostname,
|
|
1174
|
+
port,
|
|
1175
|
+
method: "GET",
|
|
1176
|
+
headers,
|
|
1177
|
+
path: resolvedPath,
|
|
1178
|
+
query,
|
|
1179
|
+
body,
|
|
1180
|
+
});
|
|
1181
|
+
};
|
|
1182
|
+
export const serializeAws_restJson1ListResourceProfileDetectionsCommand = async (input, context) => {
|
|
1183
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1184
|
+
const headers = {};
|
|
1185
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/detections";
|
|
1186
|
+
const query = map({
|
|
1187
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1188
|
+
nextToken: [, input.nextToken],
|
|
1189
|
+
resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
|
|
1190
|
+
});
|
|
1191
|
+
let body;
|
|
1192
|
+
return new __HttpRequest({
|
|
1193
|
+
protocol,
|
|
1194
|
+
hostname,
|
|
1195
|
+
port,
|
|
1196
|
+
method: "GET",
|
|
1197
|
+
headers,
|
|
1198
|
+
path: resolvedPath,
|
|
1199
|
+
query,
|
|
1200
|
+
body,
|
|
1201
|
+
});
|
|
1202
|
+
};
|
|
1203
|
+
export const serializeAws_restJson1ListSensitivityInspectionTemplatesCommand = async (input, context) => {
|
|
1204
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1205
|
+
const headers = {};
|
|
1206
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections";
|
|
1207
|
+
const query = map({
|
|
1208
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1209
|
+
nextToken: [, input.nextToken],
|
|
1210
|
+
});
|
|
1211
|
+
let body;
|
|
1212
|
+
return new __HttpRequest({
|
|
1213
|
+
protocol,
|
|
1214
|
+
hostname,
|
|
1215
|
+
port,
|
|
1216
|
+
method: "GET",
|
|
1217
|
+
headers,
|
|
1218
|
+
path: resolvedPath,
|
|
1219
|
+
query,
|
|
1220
|
+
body,
|
|
1221
|
+
});
|
|
1222
|
+
};
|
|
1073
1223
|
export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1074
1224
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1075
1225
|
const headers = {};
|
|
@@ -1211,7 +1361,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
1211
1361
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1212
1362
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1213
1363
|
const query = map({
|
|
1214
|
-
tagKeys: [
|
|
1364
|
+
tagKeys: [
|
|
1365
|
+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
1366
|
+
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
1367
|
+
],
|
|
1215
1368
|
});
|
|
1216
1369
|
let body;
|
|
1217
1370
|
return new __HttpRequest({
|
|
@@ -1248,6 +1401,26 @@ export const serializeAws_restJson1UpdateAllowListCommand = async (input, contex
|
|
|
1248
1401
|
body,
|
|
1249
1402
|
});
|
|
1250
1403
|
};
|
|
1404
|
+
export const serializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = async (input, context) => {
|
|
1405
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1406
|
+
const headers = {
|
|
1407
|
+
"content-type": "application/json",
|
|
1408
|
+
};
|
|
1409
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automated-discovery/configuration";
|
|
1410
|
+
let body;
|
|
1411
|
+
body = JSON.stringify({
|
|
1412
|
+
...(input.status != null && { status: input.status }),
|
|
1413
|
+
});
|
|
1414
|
+
return new __HttpRequest({
|
|
1415
|
+
protocol,
|
|
1416
|
+
hostname,
|
|
1417
|
+
port,
|
|
1418
|
+
method: "PUT",
|
|
1419
|
+
headers,
|
|
1420
|
+
path: resolvedPath,
|
|
1421
|
+
body,
|
|
1422
|
+
});
|
|
1423
|
+
};
|
|
1251
1424
|
export const serializeAws_restJson1UpdateClassificationJobCommand = async (input, context) => {
|
|
1252
1425
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1253
1426
|
const headers = {
|
|
@@ -1269,6 +1442,27 @@ export const serializeAws_restJson1UpdateClassificationJobCommand = async (input
|
|
|
1269
1442
|
body,
|
|
1270
1443
|
});
|
|
1271
1444
|
};
|
|
1445
|
+
export const serializeAws_restJson1UpdateClassificationScopeCommand = async (input, context) => {
|
|
1446
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1447
|
+
const headers = {
|
|
1448
|
+
"content-type": "application/json",
|
|
1449
|
+
};
|
|
1450
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes/{id}";
|
|
1451
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
1452
|
+
let body;
|
|
1453
|
+
body = JSON.stringify({
|
|
1454
|
+
...(input.s3 != null && { s3: serializeAws_restJson1S3ClassificationScopeUpdate(input.s3, context) }),
|
|
1455
|
+
});
|
|
1456
|
+
return new __HttpRequest({
|
|
1457
|
+
protocol,
|
|
1458
|
+
hostname,
|
|
1459
|
+
port,
|
|
1460
|
+
method: "PATCH",
|
|
1461
|
+
headers,
|
|
1462
|
+
path: resolvedPath,
|
|
1463
|
+
body,
|
|
1464
|
+
});
|
|
1465
|
+
};
|
|
1272
1466
|
export const serializeAws_restJson1UpdateFindingsFilterCommand = async (input, context) => {
|
|
1273
1467
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1274
1468
|
const headers = {
|
|
@@ -1359,6 +1553,56 @@ export const serializeAws_restJson1UpdateOrganizationConfigurationCommand = asyn
|
|
|
1359
1553
|
body,
|
|
1360
1554
|
});
|
|
1361
1555
|
};
|
|
1556
|
+
export const serializeAws_restJson1UpdateResourceProfileCommand = async (input, context) => {
|
|
1557
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1558
|
+
const headers = {
|
|
1559
|
+
"content-type": "application/json",
|
|
1560
|
+
};
|
|
1561
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles";
|
|
1562
|
+
const query = map({
|
|
1563
|
+
resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
|
|
1564
|
+
});
|
|
1565
|
+
let body;
|
|
1566
|
+
body = JSON.stringify({
|
|
1567
|
+
...(input.sensitivityScoreOverride != null && { sensitivityScoreOverride: input.sensitivityScoreOverride }),
|
|
1568
|
+
});
|
|
1569
|
+
return new __HttpRequest({
|
|
1570
|
+
protocol,
|
|
1571
|
+
hostname,
|
|
1572
|
+
port,
|
|
1573
|
+
method: "PATCH",
|
|
1574
|
+
headers,
|
|
1575
|
+
path: resolvedPath,
|
|
1576
|
+
query,
|
|
1577
|
+
body,
|
|
1578
|
+
});
|
|
1579
|
+
};
|
|
1580
|
+
export const serializeAws_restJson1UpdateResourceProfileDetectionsCommand = async (input, context) => {
|
|
1581
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1582
|
+
const headers = {
|
|
1583
|
+
"content-type": "application/json",
|
|
1584
|
+
};
|
|
1585
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/detections";
|
|
1586
|
+
const query = map({
|
|
1587
|
+
resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
|
|
1588
|
+
});
|
|
1589
|
+
let body;
|
|
1590
|
+
body = JSON.stringify({
|
|
1591
|
+
...(input.suppressDataIdentifiers != null && {
|
|
1592
|
+
suppressDataIdentifiers: serializeAws_restJson1__listOfSuppressDataIdentifier(input.suppressDataIdentifiers, context),
|
|
1593
|
+
}),
|
|
1594
|
+
});
|
|
1595
|
+
return new __HttpRequest({
|
|
1596
|
+
protocol,
|
|
1597
|
+
hostname,
|
|
1598
|
+
port,
|
|
1599
|
+
method: "PATCH",
|
|
1600
|
+
headers,
|
|
1601
|
+
path: resolvedPath,
|
|
1602
|
+
query,
|
|
1603
|
+
body,
|
|
1604
|
+
});
|
|
1605
|
+
};
|
|
1362
1606
|
export const serializeAws_restJson1UpdateRevealConfigurationCommand = async (input, context) => {
|
|
1363
1607
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1364
1608
|
const headers = {
|
|
@@ -1381,6 +1625,33 @@ export const serializeAws_restJson1UpdateRevealConfigurationCommand = async (inp
|
|
|
1381
1625
|
body,
|
|
1382
1626
|
});
|
|
1383
1627
|
};
|
|
1628
|
+
export const serializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = async (input, context) => {
|
|
1629
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1630
|
+
const headers = {
|
|
1631
|
+
"content-type": "application/json",
|
|
1632
|
+
};
|
|
1633
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections/{id}";
|
|
1634
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
1635
|
+
let body;
|
|
1636
|
+
body = JSON.stringify({
|
|
1637
|
+
...(input.description != null && { description: input.description }),
|
|
1638
|
+
...(input.excludes != null && {
|
|
1639
|
+
excludes: serializeAws_restJson1SensitivityInspectionTemplateExcludes(input.excludes, context),
|
|
1640
|
+
}),
|
|
1641
|
+
...(input.includes != null && {
|
|
1642
|
+
includes: serializeAws_restJson1SensitivityInspectionTemplateIncludes(input.includes, context),
|
|
1643
|
+
}),
|
|
1644
|
+
});
|
|
1645
|
+
return new __HttpRequest({
|
|
1646
|
+
protocol,
|
|
1647
|
+
hostname,
|
|
1648
|
+
port,
|
|
1649
|
+
method: "PUT",
|
|
1650
|
+
headers,
|
|
1651
|
+
path: resolvedPath,
|
|
1652
|
+
body,
|
|
1653
|
+
});
|
|
1654
|
+
};
|
|
1384
1655
|
export const deserializeAws_restJson1AcceptInvitationCommand = async (output, context) => {
|
|
1385
1656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1386
1657
|
return deserializeAws_restJson1AcceptInvitationCommandError(output, context);
|
|
@@ -2809,41 +3080,101 @@ const deserializeAws_restJson1GetAllowListCommandError = async (output, context)
|
|
|
2809
3080
|
});
|
|
2810
3081
|
}
|
|
2811
3082
|
};
|
|
2812
|
-
export const
|
|
3083
|
+
export const deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = async (output, context) => {
|
|
2813
3084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2814
|
-
return
|
|
3085
|
+
return deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommandError(output, context);
|
|
2815
3086
|
}
|
|
2816
3087
|
const contents = map({
|
|
2817
3088
|
$metadata: deserializeMetadata(output),
|
|
2818
3089
|
});
|
|
2819
3090
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2820
|
-
if (data.
|
|
2821
|
-
contents.
|
|
2822
|
-
}
|
|
2823
|
-
if (data.bucketCountByEffectivePermission != null) {
|
|
2824
|
-
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
|
|
2825
|
-
}
|
|
2826
|
-
if (data.bucketCountByEncryptionType != null) {
|
|
2827
|
-
contents.bucketCountByEncryptionType = deserializeAws_restJson1BucketCountByEncryptionType(data.bucketCountByEncryptionType, context);
|
|
3091
|
+
if (data.classificationScopeId != null) {
|
|
3092
|
+
contents.classificationScopeId = __expectString(data.classificationScopeId);
|
|
2828
3093
|
}
|
|
2829
|
-
if (data.
|
|
2830
|
-
contents.
|
|
2831
|
-
deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads(data.bucketCountByObjectEncryptionRequirement, context);
|
|
2832
|
-
}
|
|
2833
|
-
if (data.bucketCountBySharedAccessType != null) {
|
|
2834
|
-
contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
|
|
3094
|
+
if (data.disabledAt != null) {
|
|
3095
|
+
contents.disabledAt = __expectNonNull(__parseRfc3339DateTime(data.disabledAt));
|
|
2835
3096
|
}
|
|
2836
|
-
if (data.
|
|
2837
|
-
contents.
|
|
3097
|
+
if (data.firstEnabledAt != null) {
|
|
3098
|
+
contents.firstEnabledAt = __expectNonNull(__parseRfc3339DateTime(data.firstEnabledAt));
|
|
2838
3099
|
}
|
|
2839
|
-
if (data.
|
|
2840
|
-
contents.
|
|
3100
|
+
if (data.lastUpdatedAt != null) {
|
|
3101
|
+
contents.lastUpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.lastUpdatedAt));
|
|
2841
3102
|
}
|
|
2842
|
-
if (data.
|
|
2843
|
-
contents.
|
|
3103
|
+
if (data.sensitivityInspectionTemplateId != null) {
|
|
3104
|
+
contents.sensitivityInspectionTemplateId = __expectString(data.sensitivityInspectionTemplateId);
|
|
2844
3105
|
}
|
|
2845
|
-
if (data.
|
|
2846
|
-
contents.
|
|
3106
|
+
if (data.status != null) {
|
|
3107
|
+
contents.status = __expectString(data.status);
|
|
3108
|
+
}
|
|
3109
|
+
return contents;
|
|
3110
|
+
};
|
|
3111
|
+
const deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommandError = async (output, context) => {
|
|
3112
|
+
const parsedOutput = {
|
|
3113
|
+
...output,
|
|
3114
|
+
body: await parseErrorBody(output.body, context),
|
|
3115
|
+
};
|
|
3116
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3117
|
+
switch (errorCode) {
|
|
3118
|
+
case "AccessDeniedException":
|
|
3119
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3120
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3121
|
+
case "InternalServerException":
|
|
3122
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3123
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3124
|
+
case "ThrottlingException":
|
|
3125
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3126
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3127
|
+
case "ValidationException":
|
|
3128
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
3129
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3130
|
+
default:
|
|
3131
|
+
const parsedBody = parsedOutput.body;
|
|
3132
|
+
throwDefaultError({
|
|
3133
|
+
output,
|
|
3134
|
+
parsedBody,
|
|
3135
|
+
exceptionCtor: __BaseException,
|
|
3136
|
+
errorCode,
|
|
3137
|
+
});
|
|
3138
|
+
}
|
|
3139
|
+
};
|
|
3140
|
+
export const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, context) => {
|
|
3141
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3142
|
+
return deserializeAws_restJson1GetBucketStatisticsCommandError(output, context);
|
|
3143
|
+
}
|
|
3144
|
+
const contents = map({
|
|
3145
|
+
$metadata: deserializeMetadata(output),
|
|
3146
|
+
});
|
|
3147
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3148
|
+
if (data.bucketCount != null) {
|
|
3149
|
+
contents.bucketCount = __expectLong(data.bucketCount);
|
|
3150
|
+
}
|
|
3151
|
+
if (data.bucketCountByEffectivePermission != null) {
|
|
3152
|
+
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
|
|
3153
|
+
}
|
|
3154
|
+
if (data.bucketCountByEncryptionType != null) {
|
|
3155
|
+
contents.bucketCountByEncryptionType = deserializeAws_restJson1BucketCountByEncryptionType(data.bucketCountByEncryptionType, context);
|
|
3156
|
+
}
|
|
3157
|
+
if (data.bucketCountByObjectEncryptionRequirement != null) {
|
|
3158
|
+
contents.bucketCountByObjectEncryptionRequirement =
|
|
3159
|
+
deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads(data.bucketCountByObjectEncryptionRequirement, context);
|
|
3160
|
+
}
|
|
3161
|
+
if (data.bucketCountBySharedAccessType != null) {
|
|
3162
|
+
contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
|
|
3163
|
+
}
|
|
3164
|
+
if (data.bucketStatisticsBySensitivity != null) {
|
|
3165
|
+
contents.bucketStatisticsBySensitivity = deserializeAws_restJson1BucketStatisticsBySensitivity(data.bucketStatisticsBySensitivity, context);
|
|
3166
|
+
}
|
|
3167
|
+
if (data.classifiableObjectCount != null) {
|
|
3168
|
+
contents.classifiableObjectCount = __expectLong(data.classifiableObjectCount);
|
|
3169
|
+
}
|
|
3170
|
+
if (data.classifiableSizeInBytes != null) {
|
|
3171
|
+
contents.classifiableSizeInBytes = __expectLong(data.classifiableSizeInBytes);
|
|
3172
|
+
}
|
|
3173
|
+
if (data.lastUpdated != null) {
|
|
3174
|
+
contents.lastUpdated = __expectNonNull(__parseRfc3339DateTime(data.lastUpdated));
|
|
3175
|
+
}
|
|
3176
|
+
if (data.objectCount != null) {
|
|
3177
|
+
contents.objectCount = __expectLong(data.objectCount);
|
|
2847
3178
|
}
|
|
2848
3179
|
if (data.sizeInBytes != null) {
|
|
2849
3180
|
contents.sizeInBytes = __expectLong(data.sizeInBytes);
|
|
@@ -2948,6 +3279,57 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
|
|
|
2948
3279
|
});
|
|
2949
3280
|
}
|
|
2950
3281
|
};
|
|
3282
|
+
export const deserializeAws_restJson1GetClassificationScopeCommand = async (output, context) => {
|
|
3283
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3284
|
+
return deserializeAws_restJson1GetClassificationScopeCommandError(output, context);
|
|
3285
|
+
}
|
|
3286
|
+
const contents = map({
|
|
3287
|
+
$metadata: deserializeMetadata(output),
|
|
3288
|
+
});
|
|
3289
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3290
|
+
if (data.id != null) {
|
|
3291
|
+
contents.id = __expectString(data.id);
|
|
3292
|
+
}
|
|
3293
|
+
if (data.name != null) {
|
|
3294
|
+
contents.name = __expectString(data.name);
|
|
3295
|
+
}
|
|
3296
|
+
if (data.s3 != null) {
|
|
3297
|
+
contents.s3 = deserializeAws_restJson1S3ClassificationScope(data.s3, context);
|
|
3298
|
+
}
|
|
3299
|
+
return contents;
|
|
3300
|
+
};
|
|
3301
|
+
const deserializeAws_restJson1GetClassificationScopeCommandError = async (output, context) => {
|
|
3302
|
+
const parsedOutput = {
|
|
3303
|
+
...output,
|
|
3304
|
+
body: await parseErrorBody(output.body, context),
|
|
3305
|
+
};
|
|
3306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3307
|
+
switch (errorCode) {
|
|
3308
|
+
case "AccessDeniedException":
|
|
3309
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3310
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3311
|
+
case "InternalServerException":
|
|
3312
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3313
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3314
|
+
case "ResourceNotFoundException":
|
|
3315
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3316
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3317
|
+
case "ThrottlingException":
|
|
3318
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3319
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3320
|
+
case "ValidationException":
|
|
3321
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
3322
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3323
|
+
default:
|
|
3324
|
+
const parsedBody = parsedOutput.body;
|
|
3325
|
+
throwDefaultError({
|
|
3326
|
+
output,
|
|
3327
|
+
parsedBody,
|
|
3328
|
+
exceptionCtor: __BaseException,
|
|
3329
|
+
errorCode,
|
|
3330
|
+
});
|
|
3331
|
+
}
|
|
3332
|
+
};
|
|
2951
3333
|
export const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (output, context) => {
|
|
2952
3334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2953
3335
|
return deserializeAws_restJson1GetCustomDataIdentifierCommandError(output, context);
|
|
@@ -3497,6 +3879,63 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3497
3879
|
});
|
|
3498
3880
|
}
|
|
3499
3881
|
};
|
|
3882
|
+
export const deserializeAws_restJson1GetResourceProfileCommand = async (output, context) => {
|
|
3883
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3884
|
+
return deserializeAws_restJson1GetResourceProfileCommandError(output, context);
|
|
3885
|
+
}
|
|
3886
|
+
const contents = map({
|
|
3887
|
+
$metadata: deserializeMetadata(output),
|
|
3888
|
+
});
|
|
3889
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3890
|
+
if (data.profileUpdatedAt != null) {
|
|
3891
|
+
contents.profileUpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.profileUpdatedAt));
|
|
3892
|
+
}
|
|
3893
|
+
if (data.sensitivityScore != null) {
|
|
3894
|
+
contents.sensitivityScore = __expectInt32(data.sensitivityScore);
|
|
3895
|
+
}
|
|
3896
|
+
if (data.sensitivityScoreOverridden != null) {
|
|
3897
|
+
contents.sensitivityScoreOverridden = __expectBoolean(data.sensitivityScoreOverridden);
|
|
3898
|
+
}
|
|
3899
|
+
if (data.statistics != null) {
|
|
3900
|
+
contents.statistics = deserializeAws_restJson1ResourceStatistics(data.statistics, context);
|
|
3901
|
+
}
|
|
3902
|
+
return contents;
|
|
3903
|
+
};
|
|
3904
|
+
const deserializeAws_restJson1GetResourceProfileCommandError = async (output, context) => {
|
|
3905
|
+
const parsedOutput = {
|
|
3906
|
+
...output,
|
|
3907
|
+
body: await parseErrorBody(output.body, context),
|
|
3908
|
+
};
|
|
3909
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3910
|
+
switch (errorCode) {
|
|
3911
|
+
case "AccessDeniedException":
|
|
3912
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3913
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3914
|
+
case "InternalServerException":
|
|
3915
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3916
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3917
|
+
case "ResourceNotFoundException":
|
|
3918
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3919
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3920
|
+
case "ServiceQuotaExceededException":
|
|
3921
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3922
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
3923
|
+
case "ThrottlingException":
|
|
3924
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3925
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3926
|
+
case "ValidationException":
|
|
3927
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
3928
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3929
|
+
default:
|
|
3930
|
+
const parsedBody = parsedOutput.body;
|
|
3931
|
+
throwDefaultError({
|
|
3932
|
+
output,
|
|
3933
|
+
parsedBody,
|
|
3934
|
+
exceptionCtor: __BaseException,
|
|
3935
|
+
errorCode,
|
|
3936
|
+
});
|
|
3937
|
+
}
|
|
3938
|
+
};
|
|
3500
3939
|
export const deserializeAws_restJson1GetRevealConfigurationCommand = async (output, context) => {
|
|
3501
3940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3502
3941
|
return deserializeAws_restJson1GetRevealConfigurationCommandError(output, context);
|
|
@@ -3638,6 +4077,63 @@ const deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandErro
|
|
|
3638
4077
|
});
|
|
3639
4078
|
}
|
|
3640
4079
|
};
|
|
4080
|
+
export const deserializeAws_restJson1GetSensitivityInspectionTemplateCommand = async (output, context) => {
|
|
4081
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4082
|
+
return deserializeAws_restJson1GetSensitivityInspectionTemplateCommandError(output, context);
|
|
4083
|
+
}
|
|
4084
|
+
const contents = map({
|
|
4085
|
+
$metadata: deserializeMetadata(output),
|
|
4086
|
+
});
|
|
4087
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4088
|
+
if (data.description != null) {
|
|
4089
|
+
contents.description = __expectString(data.description);
|
|
4090
|
+
}
|
|
4091
|
+
if (data.excludes != null) {
|
|
4092
|
+
contents.excludes = deserializeAws_restJson1SensitivityInspectionTemplateExcludes(data.excludes, context);
|
|
4093
|
+
}
|
|
4094
|
+
if (data.includes != null) {
|
|
4095
|
+
contents.includes = deserializeAws_restJson1SensitivityInspectionTemplateIncludes(data.includes, context);
|
|
4096
|
+
}
|
|
4097
|
+
if (data.name != null) {
|
|
4098
|
+
contents.name = __expectString(data.name);
|
|
4099
|
+
}
|
|
4100
|
+
if (data.sensitivityInspectionTemplateId != null) {
|
|
4101
|
+
contents.sensitivityInspectionTemplateId = __expectString(data.sensitivityInspectionTemplateId);
|
|
4102
|
+
}
|
|
4103
|
+
return contents;
|
|
4104
|
+
};
|
|
4105
|
+
const deserializeAws_restJson1GetSensitivityInspectionTemplateCommandError = async (output, context) => {
|
|
4106
|
+
const parsedOutput = {
|
|
4107
|
+
...output,
|
|
4108
|
+
body: await parseErrorBody(output.body, context),
|
|
4109
|
+
};
|
|
4110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4111
|
+
switch (errorCode) {
|
|
4112
|
+
case "AccessDeniedException":
|
|
4113
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4114
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4115
|
+
case "InternalServerException":
|
|
4116
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4117
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4118
|
+
case "ResourceNotFoundException":
|
|
4119
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4120
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4121
|
+
case "ThrottlingException":
|
|
4122
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4123
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4124
|
+
case "ValidationException":
|
|
4125
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4126
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4127
|
+
default:
|
|
4128
|
+
const parsedBody = parsedOutput.body;
|
|
4129
|
+
throwDefaultError({
|
|
4130
|
+
output,
|
|
4131
|
+
parsedBody,
|
|
4132
|
+
exceptionCtor: __BaseException,
|
|
4133
|
+
errorCode,
|
|
4134
|
+
});
|
|
4135
|
+
}
|
|
4136
|
+
};
|
|
3641
4137
|
export const deserializeAws_restJson1GetUsageStatisticsCommand = async (output, context) => {
|
|
3642
4138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3643
4139
|
return deserializeAws_restJson1GetUsageStatisticsCommandError(output, context);
|
|
@@ -3848,6 +4344,51 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
|
|
|
3848
4344
|
});
|
|
3849
4345
|
}
|
|
3850
4346
|
};
|
|
4347
|
+
export const deserializeAws_restJson1ListClassificationScopesCommand = async (output, context) => {
|
|
4348
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4349
|
+
return deserializeAws_restJson1ListClassificationScopesCommandError(output, context);
|
|
4350
|
+
}
|
|
4351
|
+
const contents = map({
|
|
4352
|
+
$metadata: deserializeMetadata(output),
|
|
4353
|
+
});
|
|
4354
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4355
|
+
if (data.classificationScopes != null) {
|
|
4356
|
+
contents.classificationScopes = deserializeAws_restJson1__listOfClassificationScopeSummary(data.classificationScopes, context);
|
|
4357
|
+
}
|
|
4358
|
+
if (data.nextToken != null) {
|
|
4359
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
4360
|
+
}
|
|
4361
|
+
return contents;
|
|
4362
|
+
};
|
|
4363
|
+
const deserializeAws_restJson1ListClassificationScopesCommandError = async (output, context) => {
|
|
4364
|
+
const parsedOutput = {
|
|
4365
|
+
...output,
|
|
4366
|
+
body: await parseErrorBody(output.body, context),
|
|
4367
|
+
};
|
|
4368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4369
|
+
switch (errorCode) {
|
|
4370
|
+
case "AccessDeniedException":
|
|
4371
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4372
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4373
|
+
case "InternalServerException":
|
|
4374
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4375
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4376
|
+
case "ThrottlingException":
|
|
4377
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4378
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4379
|
+
case "ValidationException":
|
|
4380
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4381
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4382
|
+
default:
|
|
4383
|
+
const parsedBody = parsedOutput.body;
|
|
4384
|
+
throwDefaultError({
|
|
4385
|
+
output,
|
|
4386
|
+
parsedBody,
|
|
4387
|
+
exceptionCtor: __BaseException,
|
|
4388
|
+
errorCode,
|
|
4389
|
+
});
|
|
4390
|
+
}
|
|
4391
|
+
};
|
|
3851
4392
|
export const deserializeAws_restJson1ListCustomDataIdentifiersCommand = async (output, context) => {
|
|
3852
4393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3853
4394
|
return deserializeAws_restJson1ListCustomDataIdentifiersCommandError(output, context);
|
|
@@ -4202,20 +4743,167 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
4202
4743
|
});
|
|
4203
4744
|
}
|
|
4204
4745
|
};
|
|
4205
|
-
export const
|
|
4746
|
+
export const deserializeAws_restJson1ListResourceProfileArtifactsCommand = async (output, context) => {
|
|
4206
4747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4207
|
-
return
|
|
4748
|
+
return deserializeAws_restJson1ListResourceProfileArtifactsCommandError(output, context);
|
|
4208
4749
|
}
|
|
4209
4750
|
const contents = map({
|
|
4210
4751
|
$metadata: deserializeMetadata(output),
|
|
4211
4752
|
});
|
|
4212
4753
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4213
|
-
if (data.
|
|
4214
|
-
contents.
|
|
4754
|
+
if (data.artifacts != null) {
|
|
4755
|
+
contents.artifacts = deserializeAws_restJson1__listOfResourceProfileArtifact(data.artifacts, context);
|
|
4756
|
+
}
|
|
4757
|
+
if (data.nextToken != null) {
|
|
4758
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
4215
4759
|
}
|
|
4216
4760
|
return contents;
|
|
4217
4761
|
};
|
|
4218
|
-
const
|
|
4762
|
+
const deserializeAws_restJson1ListResourceProfileArtifactsCommandError = async (output, context) => {
|
|
4763
|
+
const parsedOutput = {
|
|
4764
|
+
...output,
|
|
4765
|
+
body: await parseErrorBody(output.body, context),
|
|
4766
|
+
};
|
|
4767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4768
|
+
switch (errorCode) {
|
|
4769
|
+
case "AccessDeniedException":
|
|
4770
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4771
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4772
|
+
case "InternalServerException":
|
|
4773
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4774
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4775
|
+
case "ResourceNotFoundException":
|
|
4776
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4777
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4778
|
+
case "ThrottlingException":
|
|
4779
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4780
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4781
|
+
case "ValidationException":
|
|
4782
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4783
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4784
|
+
default:
|
|
4785
|
+
const parsedBody = parsedOutput.body;
|
|
4786
|
+
throwDefaultError({
|
|
4787
|
+
output,
|
|
4788
|
+
parsedBody,
|
|
4789
|
+
exceptionCtor: __BaseException,
|
|
4790
|
+
errorCode,
|
|
4791
|
+
});
|
|
4792
|
+
}
|
|
4793
|
+
};
|
|
4794
|
+
export const deserializeAws_restJson1ListResourceProfileDetectionsCommand = async (output, context) => {
|
|
4795
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4796
|
+
return deserializeAws_restJson1ListResourceProfileDetectionsCommandError(output, context);
|
|
4797
|
+
}
|
|
4798
|
+
const contents = map({
|
|
4799
|
+
$metadata: deserializeMetadata(output),
|
|
4800
|
+
});
|
|
4801
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4802
|
+
if (data.detections != null) {
|
|
4803
|
+
contents.detections = deserializeAws_restJson1__listOfDetection(data.detections, context);
|
|
4804
|
+
}
|
|
4805
|
+
if (data.nextToken != null) {
|
|
4806
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
4807
|
+
}
|
|
4808
|
+
return contents;
|
|
4809
|
+
};
|
|
4810
|
+
const deserializeAws_restJson1ListResourceProfileDetectionsCommandError = async (output, context) => {
|
|
4811
|
+
const parsedOutput = {
|
|
4812
|
+
...output,
|
|
4813
|
+
body: await parseErrorBody(output.body, context),
|
|
4814
|
+
};
|
|
4815
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4816
|
+
switch (errorCode) {
|
|
4817
|
+
case "AccessDeniedException":
|
|
4818
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4819
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4820
|
+
case "InternalServerException":
|
|
4821
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4822
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4823
|
+
case "ResourceNotFoundException":
|
|
4824
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4825
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4826
|
+
case "ServiceQuotaExceededException":
|
|
4827
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4828
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4829
|
+
case "ThrottlingException":
|
|
4830
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4831
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4832
|
+
case "ValidationException":
|
|
4833
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4834
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4835
|
+
default:
|
|
4836
|
+
const parsedBody = parsedOutput.body;
|
|
4837
|
+
throwDefaultError({
|
|
4838
|
+
output,
|
|
4839
|
+
parsedBody,
|
|
4840
|
+
exceptionCtor: __BaseException,
|
|
4841
|
+
errorCode,
|
|
4842
|
+
});
|
|
4843
|
+
}
|
|
4844
|
+
};
|
|
4845
|
+
export const deserializeAws_restJson1ListSensitivityInspectionTemplatesCommand = async (output, context) => {
|
|
4846
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4847
|
+
return deserializeAws_restJson1ListSensitivityInspectionTemplatesCommandError(output, context);
|
|
4848
|
+
}
|
|
4849
|
+
const contents = map({
|
|
4850
|
+
$metadata: deserializeMetadata(output),
|
|
4851
|
+
});
|
|
4852
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4853
|
+
if (data.nextToken != null) {
|
|
4854
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
4855
|
+
}
|
|
4856
|
+
if (data.sensitivityInspectionTemplates != null) {
|
|
4857
|
+
contents.sensitivityInspectionTemplates = deserializeAws_restJson1__listOfSensitivityInspectionTemplatesEntry(data.sensitivityInspectionTemplates, context);
|
|
4858
|
+
}
|
|
4859
|
+
return contents;
|
|
4860
|
+
};
|
|
4861
|
+
const deserializeAws_restJson1ListSensitivityInspectionTemplatesCommandError = async (output, context) => {
|
|
4862
|
+
const parsedOutput = {
|
|
4863
|
+
...output,
|
|
4864
|
+
body: await parseErrorBody(output.body, context),
|
|
4865
|
+
};
|
|
4866
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4867
|
+
switch (errorCode) {
|
|
4868
|
+
case "AccessDeniedException":
|
|
4869
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4870
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4871
|
+
case "InternalServerException":
|
|
4872
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4873
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4874
|
+
case "ServiceQuotaExceededException":
|
|
4875
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4876
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4877
|
+
case "ThrottlingException":
|
|
4878
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4879
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4880
|
+
case "ValidationException":
|
|
4881
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4882
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4883
|
+
default:
|
|
4884
|
+
const parsedBody = parsedOutput.body;
|
|
4885
|
+
throwDefaultError({
|
|
4886
|
+
output,
|
|
4887
|
+
parsedBody,
|
|
4888
|
+
exceptionCtor: __BaseException,
|
|
4889
|
+
errorCode,
|
|
4890
|
+
});
|
|
4891
|
+
}
|
|
4892
|
+
};
|
|
4893
|
+
export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
4894
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4895
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
4896
|
+
}
|
|
4897
|
+
const contents = map({
|
|
4898
|
+
$metadata: deserializeMetadata(output),
|
|
4899
|
+
});
|
|
4900
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4901
|
+
if (data.tags != null) {
|
|
4902
|
+
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4903
|
+
}
|
|
4904
|
+
return contents;
|
|
4905
|
+
};
|
|
4906
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
4219
4907
|
const parsedOutput = {
|
|
4220
4908
|
...output,
|
|
4221
4909
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4457,33 +5145,210 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (outp
|
|
|
4457
5145
|
});
|
|
4458
5146
|
}
|
|
4459
5147
|
};
|
|
4460
|
-
export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
4461
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4462
|
-
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
4463
|
-
}
|
|
4464
|
-
const contents = map({
|
|
4465
|
-
$metadata: deserializeMetadata(output),
|
|
4466
|
-
});
|
|
4467
|
-
await collectBody(output.body, context);
|
|
4468
|
-
return contents;
|
|
4469
|
-
};
|
|
4470
|
-
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
4471
|
-
const parsedOutput = {
|
|
4472
|
-
...output,
|
|
4473
|
-
body: await parseErrorBody(output.body, context),
|
|
4474
|
-
};
|
|
4475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4476
|
-
const parsedBody = parsedOutput.body;
|
|
4477
|
-
throwDefaultError({
|
|
4478
|
-
output,
|
|
4479
|
-
parsedBody,
|
|
4480
|
-
exceptionCtor: __BaseException,
|
|
4481
|
-
errorCode,
|
|
4482
|
-
});
|
|
4483
|
-
};
|
|
4484
|
-
export const deserializeAws_restJson1UpdateAllowListCommand = async (output, context) => {
|
|
5148
|
+
export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
5149
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5150
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
5151
|
+
}
|
|
5152
|
+
const contents = map({
|
|
5153
|
+
$metadata: deserializeMetadata(output),
|
|
5154
|
+
});
|
|
5155
|
+
await collectBody(output.body, context);
|
|
5156
|
+
return contents;
|
|
5157
|
+
};
|
|
5158
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
5159
|
+
const parsedOutput = {
|
|
5160
|
+
...output,
|
|
5161
|
+
body: await parseErrorBody(output.body, context),
|
|
5162
|
+
};
|
|
5163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5164
|
+
const parsedBody = parsedOutput.body;
|
|
5165
|
+
throwDefaultError({
|
|
5166
|
+
output,
|
|
5167
|
+
parsedBody,
|
|
5168
|
+
exceptionCtor: __BaseException,
|
|
5169
|
+
errorCode,
|
|
5170
|
+
});
|
|
5171
|
+
};
|
|
5172
|
+
export const deserializeAws_restJson1UpdateAllowListCommand = async (output, context) => {
|
|
5173
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5174
|
+
return deserializeAws_restJson1UpdateAllowListCommandError(output, context);
|
|
5175
|
+
}
|
|
5176
|
+
const contents = map({
|
|
5177
|
+
$metadata: deserializeMetadata(output),
|
|
5178
|
+
});
|
|
5179
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5180
|
+
if (data.arn != null) {
|
|
5181
|
+
contents.arn = __expectString(data.arn);
|
|
5182
|
+
}
|
|
5183
|
+
if (data.id != null) {
|
|
5184
|
+
contents.id = __expectString(data.id);
|
|
5185
|
+
}
|
|
5186
|
+
return contents;
|
|
5187
|
+
};
|
|
5188
|
+
const deserializeAws_restJson1UpdateAllowListCommandError = async (output, context) => {
|
|
5189
|
+
const parsedOutput = {
|
|
5190
|
+
...output,
|
|
5191
|
+
body: await parseErrorBody(output.body, context),
|
|
5192
|
+
};
|
|
5193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5194
|
+
switch (errorCode) {
|
|
5195
|
+
case "AccessDeniedException":
|
|
5196
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5197
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5198
|
+
case "InternalServerException":
|
|
5199
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5200
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5201
|
+
case "ResourceNotFoundException":
|
|
5202
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
5203
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5204
|
+
case "ThrottlingException":
|
|
5205
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5206
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5207
|
+
case "ValidationException":
|
|
5208
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5209
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5210
|
+
default:
|
|
5211
|
+
const parsedBody = parsedOutput.body;
|
|
5212
|
+
throwDefaultError({
|
|
5213
|
+
output,
|
|
5214
|
+
parsedBody,
|
|
5215
|
+
exceptionCtor: __BaseException,
|
|
5216
|
+
errorCode,
|
|
5217
|
+
});
|
|
5218
|
+
}
|
|
5219
|
+
};
|
|
5220
|
+
export const deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = async (output, context) => {
|
|
5221
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5222
|
+
return deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommandError(output, context);
|
|
5223
|
+
}
|
|
5224
|
+
const contents = map({
|
|
5225
|
+
$metadata: deserializeMetadata(output),
|
|
5226
|
+
});
|
|
5227
|
+
await collectBody(output.body, context);
|
|
5228
|
+
return contents;
|
|
5229
|
+
};
|
|
5230
|
+
const deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommandError = async (output, context) => {
|
|
5231
|
+
const parsedOutput = {
|
|
5232
|
+
...output,
|
|
5233
|
+
body: await parseErrorBody(output.body, context),
|
|
5234
|
+
};
|
|
5235
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5236
|
+
switch (errorCode) {
|
|
5237
|
+
case "AccessDeniedException":
|
|
5238
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5239
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5240
|
+
case "InternalServerException":
|
|
5241
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5242
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5243
|
+
case "ThrottlingException":
|
|
5244
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5245
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5246
|
+
case "ValidationException":
|
|
5247
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5248
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5249
|
+
default:
|
|
5250
|
+
const parsedBody = parsedOutput.body;
|
|
5251
|
+
throwDefaultError({
|
|
5252
|
+
output,
|
|
5253
|
+
parsedBody,
|
|
5254
|
+
exceptionCtor: __BaseException,
|
|
5255
|
+
errorCode,
|
|
5256
|
+
});
|
|
5257
|
+
}
|
|
5258
|
+
};
|
|
5259
|
+
export const deserializeAws_restJson1UpdateClassificationJobCommand = async (output, context) => {
|
|
5260
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5261
|
+
return deserializeAws_restJson1UpdateClassificationJobCommandError(output, context);
|
|
5262
|
+
}
|
|
5263
|
+
const contents = map({
|
|
5264
|
+
$metadata: deserializeMetadata(output),
|
|
5265
|
+
});
|
|
5266
|
+
await collectBody(output.body, context);
|
|
5267
|
+
return contents;
|
|
5268
|
+
};
|
|
5269
|
+
const deserializeAws_restJson1UpdateClassificationJobCommandError = async (output, context) => {
|
|
5270
|
+
const parsedOutput = {
|
|
5271
|
+
...output,
|
|
5272
|
+
body: await parseErrorBody(output.body, context),
|
|
5273
|
+
};
|
|
5274
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5275
|
+
switch (errorCode) {
|
|
5276
|
+
case "AccessDeniedException":
|
|
5277
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5278
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5279
|
+
case "ConflictException":
|
|
5280
|
+
case "com.amazonaws.macie2#ConflictException":
|
|
5281
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
5282
|
+
case "InternalServerException":
|
|
5283
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5284
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5285
|
+
case "ResourceNotFoundException":
|
|
5286
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
5287
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5288
|
+
case "ServiceQuotaExceededException":
|
|
5289
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
5290
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
5291
|
+
case "ThrottlingException":
|
|
5292
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5293
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5294
|
+
case "ValidationException":
|
|
5295
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5296
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5297
|
+
default:
|
|
5298
|
+
const parsedBody = parsedOutput.body;
|
|
5299
|
+
throwDefaultError({
|
|
5300
|
+
output,
|
|
5301
|
+
parsedBody,
|
|
5302
|
+
exceptionCtor: __BaseException,
|
|
5303
|
+
errorCode,
|
|
5304
|
+
});
|
|
5305
|
+
}
|
|
5306
|
+
};
|
|
5307
|
+
export const deserializeAws_restJson1UpdateClassificationScopeCommand = async (output, context) => {
|
|
5308
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5309
|
+
return deserializeAws_restJson1UpdateClassificationScopeCommandError(output, context);
|
|
5310
|
+
}
|
|
5311
|
+
const contents = map({
|
|
5312
|
+
$metadata: deserializeMetadata(output),
|
|
5313
|
+
});
|
|
5314
|
+
await collectBody(output.body, context);
|
|
5315
|
+
return contents;
|
|
5316
|
+
};
|
|
5317
|
+
const deserializeAws_restJson1UpdateClassificationScopeCommandError = async (output, context) => {
|
|
5318
|
+
const parsedOutput = {
|
|
5319
|
+
...output,
|
|
5320
|
+
body: await parseErrorBody(output.body, context),
|
|
5321
|
+
};
|
|
5322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5323
|
+
switch (errorCode) {
|
|
5324
|
+
case "AccessDeniedException":
|
|
5325
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5326
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5327
|
+
case "InternalServerException":
|
|
5328
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5329
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5330
|
+
case "ResourceNotFoundException":
|
|
5331
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
5332
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5333
|
+
case "ThrottlingException":
|
|
5334
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5335
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5336
|
+
case "ValidationException":
|
|
5337
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5338
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5339
|
+
default:
|
|
5340
|
+
const parsedBody = parsedOutput.body;
|
|
5341
|
+
throwDefaultError({
|
|
5342
|
+
output,
|
|
5343
|
+
parsedBody,
|
|
5344
|
+
exceptionCtor: __BaseException,
|
|
5345
|
+
errorCode,
|
|
5346
|
+
});
|
|
5347
|
+
}
|
|
5348
|
+
};
|
|
5349
|
+
export const deserializeAws_restJson1UpdateFindingsFilterCommand = async (output, context) => {
|
|
4485
5350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4486
|
-
return
|
|
5351
|
+
return deserializeAws_restJson1UpdateFindingsFilterCommandError(output, context);
|
|
4487
5352
|
}
|
|
4488
5353
|
const contents = map({
|
|
4489
5354
|
$metadata: deserializeMetadata(output),
|
|
@@ -4497,7 +5362,7 @@ export const deserializeAws_restJson1UpdateAllowListCommand = async (output, con
|
|
|
4497
5362
|
}
|
|
4498
5363
|
return contents;
|
|
4499
5364
|
};
|
|
4500
|
-
const
|
|
5365
|
+
const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output, context) => {
|
|
4501
5366
|
const parsedOutput = {
|
|
4502
5367
|
...output,
|
|
4503
5368
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4507,12 +5372,18 @@ const deserializeAws_restJson1UpdateAllowListCommandError = async (output, conte
|
|
|
4507
5372
|
case "AccessDeniedException":
|
|
4508
5373
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4509
5374
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5375
|
+
case "ConflictException":
|
|
5376
|
+
case "com.amazonaws.macie2#ConflictException":
|
|
5377
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4510
5378
|
case "InternalServerException":
|
|
4511
5379
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4512
5380
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4513
5381
|
case "ResourceNotFoundException":
|
|
4514
5382
|
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4515
5383
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5384
|
+
case "ServiceQuotaExceededException":
|
|
5385
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
5386
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4516
5387
|
case "ThrottlingException":
|
|
4517
5388
|
case "com.amazonaws.macie2#ThrottlingException":
|
|
4518
5389
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -4529,9 +5400,9 @@ const deserializeAws_restJson1UpdateAllowListCommandError = async (output, conte
|
|
|
4529
5400
|
});
|
|
4530
5401
|
}
|
|
4531
5402
|
};
|
|
4532
|
-
export const
|
|
5403
|
+
export const deserializeAws_restJson1UpdateMacieSessionCommand = async (output, context) => {
|
|
4533
5404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4534
|
-
return
|
|
5405
|
+
return deserializeAws_restJson1UpdateMacieSessionCommandError(output, context);
|
|
4535
5406
|
}
|
|
4536
5407
|
const contents = map({
|
|
4537
5408
|
$metadata: deserializeMetadata(output),
|
|
@@ -4539,7 +5410,7 @@ export const deserializeAws_restJson1UpdateClassificationJobCommand = async (out
|
|
|
4539
5410
|
await collectBody(output.body, context);
|
|
4540
5411
|
return contents;
|
|
4541
5412
|
};
|
|
4542
|
-
const
|
|
5413
|
+
const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, context) => {
|
|
4543
5414
|
const parsedOutput = {
|
|
4544
5415
|
...output,
|
|
4545
5416
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4577,23 +5448,17 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
|
|
|
4577
5448
|
});
|
|
4578
5449
|
}
|
|
4579
5450
|
};
|
|
4580
|
-
export const
|
|
5451
|
+
export const deserializeAws_restJson1UpdateMemberSessionCommand = async (output, context) => {
|
|
4581
5452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4582
|
-
return
|
|
5453
|
+
return deserializeAws_restJson1UpdateMemberSessionCommandError(output, context);
|
|
4583
5454
|
}
|
|
4584
5455
|
const contents = map({
|
|
4585
5456
|
$metadata: deserializeMetadata(output),
|
|
4586
5457
|
});
|
|
4587
|
-
|
|
4588
|
-
if (data.arn != null) {
|
|
4589
|
-
contents.arn = __expectString(data.arn);
|
|
4590
|
-
}
|
|
4591
|
-
if (data.id != null) {
|
|
4592
|
-
contents.id = __expectString(data.id);
|
|
4593
|
-
}
|
|
5458
|
+
await collectBody(output.body, context);
|
|
4594
5459
|
return contents;
|
|
4595
5460
|
};
|
|
4596
|
-
const
|
|
5461
|
+
const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, context) => {
|
|
4597
5462
|
const parsedOutput = {
|
|
4598
5463
|
...output,
|
|
4599
5464
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4631,9 +5496,9 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
|
|
|
4631
5496
|
});
|
|
4632
5497
|
}
|
|
4633
5498
|
};
|
|
4634
|
-
export const
|
|
5499
|
+
export const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
4635
5500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4636
|
-
return
|
|
5501
|
+
return deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context);
|
|
4637
5502
|
}
|
|
4638
5503
|
const contents = map({
|
|
4639
5504
|
$metadata: deserializeMetadata(output),
|
|
@@ -4641,7 +5506,7 @@ export const deserializeAws_restJson1UpdateMacieSessionCommand = async (output,
|
|
|
4641
5506
|
await collectBody(output.body, context);
|
|
4642
5507
|
return contents;
|
|
4643
5508
|
};
|
|
4644
|
-
const
|
|
5509
|
+
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
4645
5510
|
const parsedOutput = {
|
|
4646
5511
|
...output,
|
|
4647
5512
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4679,9 +5544,9 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
|
|
|
4679
5544
|
});
|
|
4680
5545
|
}
|
|
4681
5546
|
};
|
|
4682
|
-
export const
|
|
5547
|
+
export const deserializeAws_restJson1UpdateResourceProfileCommand = async (output, context) => {
|
|
4683
5548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4684
|
-
return
|
|
5549
|
+
return deserializeAws_restJson1UpdateResourceProfileCommandError(output, context);
|
|
4685
5550
|
}
|
|
4686
5551
|
const contents = map({
|
|
4687
5552
|
$metadata: deserializeMetadata(output),
|
|
@@ -4689,7 +5554,7 @@ export const deserializeAws_restJson1UpdateMemberSessionCommand = async (output,
|
|
|
4689
5554
|
await collectBody(output.body, context);
|
|
4690
5555
|
return contents;
|
|
4691
5556
|
};
|
|
4692
|
-
const
|
|
5557
|
+
const deserializeAws_restJson1UpdateResourceProfileCommandError = async (output, context) => {
|
|
4693
5558
|
const parsedOutput = {
|
|
4694
5559
|
...output,
|
|
4695
5560
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4699,9 +5564,6 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4699
5564
|
case "AccessDeniedException":
|
|
4700
5565
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4701
5566
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4702
|
-
case "ConflictException":
|
|
4703
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4704
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4705
5567
|
case "InternalServerException":
|
|
4706
5568
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4707
5569
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -4727,9 +5589,9 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4727
5589
|
});
|
|
4728
5590
|
}
|
|
4729
5591
|
};
|
|
4730
|
-
export const
|
|
5592
|
+
export const deserializeAws_restJson1UpdateResourceProfileDetectionsCommand = async (output, context) => {
|
|
4731
5593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4732
|
-
return
|
|
5594
|
+
return deserializeAws_restJson1UpdateResourceProfileDetectionsCommandError(output, context);
|
|
4733
5595
|
}
|
|
4734
5596
|
const contents = map({
|
|
4735
5597
|
$metadata: deserializeMetadata(output),
|
|
@@ -4737,7 +5599,7 @@ export const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = as
|
|
|
4737
5599
|
await collectBody(output.body, context);
|
|
4738
5600
|
return contents;
|
|
4739
5601
|
};
|
|
4740
|
-
const
|
|
5602
|
+
const deserializeAws_restJson1UpdateResourceProfileDetectionsCommandError = async (output, context) => {
|
|
4741
5603
|
const parsedOutput = {
|
|
4742
5604
|
...output,
|
|
4743
5605
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4747,9 +5609,6 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4747
5609
|
case "AccessDeniedException":
|
|
4748
5610
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4749
5611
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4750
|
-
case "ConflictException":
|
|
4751
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4752
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4753
5612
|
case "InternalServerException":
|
|
4754
5613
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4755
5614
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -4817,6 +5676,48 @@ const deserializeAws_restJson1UpdateRevealConfigurationCommandError = async (out
|
|
|
4817
5676
|
});
|
|
4818
5677
|
}
|
|
4819
5678
|
};
|
|
5679
|
+
export const deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = async (output, context) => {
|
|
5680
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5681
|
+
return deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommandError(output, context);
|
|
5682
|
+
}
|
|
5683
|
+
const contents = map({
|
|
5684
|
+
$metadata: deserializeMetadata(output),
|
|
5685
|
+
});
|
|
5686
|
+
await collectBody(output.body, context);
|
|
5687
|
+
return contents;
|
|
5688
|
+
};
|
|
5689
|
+
const deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommandError = async (output, context) => {
|
|
5690
|
+
const parsedOutput = {
|
|
5691
|
+
...output,
|
|
5692
|
+
body: await parseErrorBody(output.body, context),
|
|
5693
|
+
};
|
|
5694
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5695
|
+
switch (errorCode) {
|
|
5696
|
+
case "AccessDeniedException":
|
|
5697
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5698
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5699
|
+
case "InternalServerException":
|
|
5700
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5701
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5702
|
+
case "ResourceNotFoundException":
|
|
5703
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
5704
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5705
|
+
case "ThrottlingException":
|
|
5706
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5707
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5708
|
+
case "ValidationException":
|
|
5709
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5710
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5711
|
+
default:
|
|
5712
|
+
const parsedBody = parsedOutput.body;
|
|
5713
|
+
throwDefaultError({
|
|
5714
|
+
output,
|
|
5715
|
+
parsedBody,
|
|
5716
|
+
exceptionCtor: __BaseException,
|
|
5717
|
+
errorCode,
|
|
5718
|
+
});
|
|
5719
|
+
}
|
|
5720
|
+
};
|
|
4820
5721
|
const map = __map;
|
|
4821
5722
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4822
5723
|
const contents = map({});
|
|
@@ -4956,6 +5857,13 @@ const serializeAws_restJson1__listOfS3BucketDefinitionForJob = (input, context)
|
|
|
4956
5857
|
return serializeAws_restJson1S3BucketDefinitionForJob(entry, context);
|
|
4957
5858
|
});
|
|
4958
5859
|
};
|
|
5860
|
+
const serializeAws_restJson1__listOfS3BucketName = (input, context) => {
|
|
5861
|
+
return input
|
|
5862
|
+
.filter((e) => e != null)
|
|
5863
|
+
.map((entry) => {
|
|
5864
|
+
return entry;
|
|
5865
|
+
});
|
|
5866
|
+
};
|
|
4959
5867
|
const serializeAws_restJson1__listOfSearchResourcesCriteria = (input, context) => {
|
|
4960
5868
|
return input
|
|
4961
5869
|
.filter((e) => e != null)
|
|
@@ -4970,6 +5878,13 @@ const serializeAws_restJson1__listOfSearchResourcesTagCriterionPair = (input, co
|
|
|
4970
5878
|
return serializeAws_restJson1SearchResourcesTagCriterionPair(entry, context);
|
|
4971
5879
|
});
|
|
4972
5880
|
};
|
|
5881
|
+
const serializeAws_restJson1__listOfSuppressDataIdentifier = (input, context) => {
|
|
5882
|
+
return input
|
|
5883
|
+
.filter((e) => e != null)
|
|
5884
|
+
.map((entry) => {
|
|
5885
|
+
return serializeAws_restJson1SuppressDataIdentifier(entry, context);
|
|
5886
|
+
});
|
|
5887
|
+
};
|
|
4973
5888
|
const serializeAws_restJson1__listOfTagCriterionPairForJob = (input, context) => {
|
|
4974
5889
|
return input
|
|
4975
5890
|
.filter((e) => e != null)
|
|
@@ -5161,6 +6076,21 @@ const serializeAws_restJson1S3BucketDefinitionForJob = (input, context) => {
|
|
|
5161
6076
|
...(input.buckets != null && { buckets: serializeAws_restJson1__listOf__string(input.buckets, context) }),
|
|
5162
6077
|
};
|
|
5163
6078
|
};
|
|
6079
|
+
const serializeAws_restJson1S3ClassificationScopeExclusionUpdate = (input, context) => {
|
|
6080
|
+
return {
|
|
6081
|
+
...(input.bucketNames != null && {
|
|
6082
|
+
bucketNames: serializeAws_restJson1__listOfS3BucketName(input.bucketNames, context),
|
|
6083
|
+
}),
|
|
6084
|
+
...(input.operation != null && { operation: input.operation }),
|
|
6085
|
+
};
|
|
6086
|
+
};
|
|
6087
|
+
const serializeAws_restJson1S3ClassificationScopeUpdate = (input, context) => {
|
|
6088
|
+
return {
|
|
6089
|
+
...(input.excludes != null && {
|
|
6090
|
+
excludes: serializeAws_restJson1S3ClassificationScopeExclusionUpdate(input.excludes, context),
|
|
6091
|
+
}),
|
|
6092
|
+
};
|
|
6093
|
+
};
|
|
5164
6094
|
const serializeAws_restJson1S3Destination = (input, context) => {
|
|
5165
6095
|
return {
|
|
5166
6096
|
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
@@ -5251,6 +6181,26 @@ const serializeAws_restJson1SecurityHubConfiguration = (input, context) => {
|
|
|
5251
6181
|
...(input.publishPolicyFindings != null && { publishPolicyFindings: input.publishPolicyFindings }),
|
|
5252
6182
|
};
|
|
5253
6183
|
};
|
|
6184
|
+
const serializeAws_restJson1SensitivityInspectionTemplateExcludes = (input, context) => {
|
|
6185
|
+
return {
|
|
6186
|
+
...(input.managedDataIdentifierIds != null && {
|
|
6187
|
+
managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
|
|
6188
|
+
}),
|
|
6189
|
+
};
|
|
6190
|
+
};
|
|
6191
|
+
const serializeAws_restJson1SensitivityInspectionTemplateIncludes = (input, context) => {
|
|
6192
|
+
return {
|
|
6193
|
+
...(input.allowListIds != null && {
|
|
6194
|
+
allowListIds: serializeAws_restJson1__listOf__string(input.allowListIds, context),
|
|
6195
|
+
}),
|
|
6196
|
+
...(input.customDataIdentifierIds != null && {
|
|
6197
|
+
customDataIdentifierIds: serializeAws_restJson1__listOf__string(input.customDataIdentifierIds, context),
|
|
6198
|
+
}),
|
|
6199
|
+
...(input.managedDataIdentifierIds != null && {
|
|
6200
|
+
managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
|
|
6201
|
+
}),
|
|
6202
|
+
};
|
|
6203
|
+
};
|
|
5254
6204
|
const serializeAws_restJson1SeverityLevel = (input, context) => {
|
|
5255
6205
|
return {
|
|
5256
6206
|
...(input.occurrencesThreshold != null && { occurrencesThreshold: input.occurrencesThreshold }),
|
|
@@ -5284,6 +6234,12 @@ const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
|
5284
6234
|
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5285
6235
|
};
|
|
5286
6236
|
};
|
|
6237
|
+
const serializeAws_restJson1SuppressDataIdentifier = (input, context) => {
|
|
6238
|
+
return {
|
|
6239
|
+
...(input.id != null && { id: input.id }),
|
|
6240
|
+
...(input.type != null && { type: input.type }),
|
|
6241
|
+
};
|
|
6242
|
+
};
|
|
5287
6243
|
const serializeAws_restJson1TagCriterionForJob = (input, context) => {
|
|
5288
6244
|
return {
|
|
5289
6245
|
...(input.comparator != null && { comparator: input.comparator }),
|
|
@@ -5394,6 +6350,17 @@ const deserializeAws_restJson1__listOfBucketMetadata = (output, context) => {
|
|
|
5394
6350
|
});
|
|
5395
6351
|
return retVal;
|
|
5396
6352
|
};
|
|
6353
|
+
const deserializeAws_restJson1__listOfClassificationScopeSummary = (output, context) => {
|
|
6354
|
+
const retVal = (output || [])
|
|
6355
|
+
.filter((e) => e != null)
|
|
6356
|
+
.map((entry) => {
|
|
6357
|
+
if (entry === null) {
|
|
6358
|
+
return null;
|
|
6359
|
+
}
|
|
6360
|
+
return deserializeAws_restJson1ClassificationScopeSummary(entry, context);
|
|
6361
|
+
});
|
|
6362
|
+
return retVal;
|
|
6363
|
+
};
|
|
5397
6364
|
const deserializeAws_restJson1__listOfCriteriaForJob = (output, context) => {
|
|
5398
6365
|
const retVal = (output || [])
|
|
5399
6366
|
.filter((e) => e != null)
|
|
@@ -5427,6 +6394,17 @@ const deserializeAws_restJson1__listOfDetectedDataDetails = (output, context) =>
|
|
|
5427
6394
|
});
|
|
5428
6395
|
return retVal;
|
|
5429
6396
|
};
|
|
6397
|
+
const deserializeAws_restJson1__listOfDetection = (output, context) => {
|
|
6398
|
+
const retVal = (output || [])
|
|
6399
|
+
.filter((e) => e != null)
|
|
6400
|
+
.map((entry) => {
|
|
6401
|
+
if (entry === null) {
|
|
6402
|
+
return null;
|
|
6403
|
+
}
|
|
6404
|
+
return deserializeAws_restJson1Detection(entry, context);
|
|
6405
|
+
});
|
|
6406
|
+
return retVal;
|
|
6407
|
+
};
|
|
5430
6408
|
const deserializeAws_restJson1__listOfFinding = (output, context) => {
|
|
5431
6409
|
const retVal = (output || [])
|
|
5432
6410
|
.filter((e) => e != null)
|
|
@@ -5537,6 +6515,17 @@ const deserializeAws_restJson1__listOfMember = (output, context) => {
|
|
|
5537
6515
|
});
|
|
5538
6516
|
return retVal;
|
|
5539
6517
|
};
|
|
6518
|
+
const deserializeAws_restJson1__listOfResourceProfileArtifact = (output, context) => {
|
|
6519
|
+
const retVal = (output || [])
|
|
6520
|
+
.filter((e) => e != null)
|
|
6521
|
+
.map((entry) => {
|
|
6522
|
+
if (entry === null) {
|
|
6523
|
+
return null;
|
|
6524
|
+
}
|
|
6525
|
+
return deserializeAws_restJson1ResourceProfileArtifact(entry, context);
|
|
6526
|
+
});
|
|
6527
|
+
return retVal;
|
|
6528
|
+
};
|
|
5540
6529
|
const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = (output, context) => {
|
|
5541
6530
|
const retVal = (output || [])
|
|
5542
6531
|
.filter((e) => e != null)
|
|
@@ -5548,6 +6537,28 @@ const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = (output, contex
|
|
|
5548
6537
|
});
|
|
5549
6538
|
return retVal;
|
|
5550
6539
|
};
|
|
6540
|
+
const deserializeAws_restJson1__listOfS3BucketName = (output, context) => {
|
|
6541
|
+
const retVal = (output || [])
|
|
6542
|
+
.filter((e) => e != null)
|
|
6543
|
+
.map((entry) => {
|
|
6544
|
+
if (entry === null) {
|
|
6545
|
+
return null;
|
|
6546
|
+
}
|
|
6547
|
+
return __expectString(entry);
|
|
6548
|
+
});
|
|
6549
|
+
return retVal;
|
|
6550
|
+
};
|
|
6551
|
+
const deserializeAws_restJson1__listOfSensitivityInspectionTemplatesEntry = (output, context) => {
|
|
6552
|
+
const retVal = (output || [])
|
|
6553
|
+
.filter((e) => e != null)
|
|
6554
|
+
.map((entry) => {
|
|
6555
|
+
if (entry === null) {
|
|
6556
|
+
return null;
|
|
6557
|
+
}
|
|
6558
|
+
return deserializeAws_restJson1SensitivityInspectionTemplatesEntry(entry, context);
|
|
6559
|
+
});
|
|
6560
|
+
return retVal;
|
|
6561
|
+
};
|
|
5551
6562
|
const deserializeAws_restJson1__listOfTagCriterionPairForJob = (output, context) => {
|
|
5552
6563
|
const retVal = (output || [])
|
|
5553
6564
|
.filter((e) => e != null)
|
|
@@ -5768,6 +6779,9 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5768
6779
|
errorCode: __expectString(output.errorCode),
|
|
5769
6780
|
errorMessage: __expectString(output.errorMessage),
|
|
5770
6781
|
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
6782
|
+
lastAutomatedDiscoveryTime: output.lastAutomatedDiscoveryTime != null
|
|
6783
|
+
? __expectNonNull(__parseRfc3339DateTime(output.lastAutomatedDiscoveryTime))
|
|
6784
|
+
: undefined,
|
|
5771
6785
|
lastUpdated: output.lastUpdated != null ? __expectNonNull(__parseRfc3339DateTime(output.lastUpdated)) : undefined,
|
|
5772
6786
|
objectCount: __expectLong(output.objectCount),
|
|
5773
6787
|
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
@@ -5780,6 +6794,7 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5780
6794
|
replicationDetails: output.replicationDetails != null
|
|
5781
6795
|
? deserializeAws_restJson1ReplicationDetails(output.replicationDetails, context)
|
|
5782
6796
|
: undefined,
|
|
6797
|
+
sensitivityScore: __expectInt32(output.sensitivityScore),
|
|
5783
6798
|
serverSideEncryption: output.serverSideEncryption != null
|
|
5784
6799
|
? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
|
|
5785
6800
|
: undefined,
|
|
@@ -5826,6 +6841,20 @@ const deserializeAws_restJson1BucketServerSideEncryption = (output, context) =>
|
|
|
5826
6841
|
type: __expectString(output.type),
|
|
5827
6842
|
};
|
|
5828
6843
|
};
|
|
6844
|
+
const deserializeAws_restJson1BucketStatisticsBySensitivity = (output, context) => {
|
|
6845
|
+
return {
|
|
6846
|
+
classificationError: output.classificationError != null
|
|
6847
|
+
? deserializeAws_restJson1SensitivityAggregations(output.classificationError, context)
|
|
6848
|
+
: undefined,
|
|
6849
|
+
notClassified: output.notClassified != null
|
|
6850
|
+
? deserializeAws_restJson1SensitivityAggregations(output.notClassified, context)
|
|
6851
|
+
: undefined,
|
|
6852
|
+
notSensitive: output.notSensitive != null
|
|
6853
|
+
? deserializeAws_restJson1SensitivityAggregations(output.notSensitive, context)
|
|
6854
|
+
: undefined,
|
|
6855
|
+
sensitive: output.sensitive != null ? deserializeAws_restJson1SensitivityAggregations(output.sensitive, context) : undefined,
|
|
6856
|
+
};
|
|
6857
|
+
};
|
|
5829
6858
|
const deserializeAws_restJson1Cell = (output, context) => {
|
|
5830
6859
|
return {
|
|
5831
6860
|
cellReference: __expectString(output.cellReference),
|
|
@@ -5877,6 +6906,12 @@ const deserializeAws_restJson1ClassificationResultStatus = (output, context) =>
|
|
|
5877
6906
|
reason: __expectString(output.reason),
|
|
5878
6907
|
};
|
|
5879
6908
|
};
|
|
6909
|
+
const deserializeAws_restJson1ClassificationScopeSummary = (output, context) => {
|
|
6910
|
+
return {
|
|
6911
|
+
id: __expectString(output.id),
|
|
6912
|
+
name: __expectString(output.name),
|
|
6913
|
+
};
|
|
6914
|
+
};
|
|
5880
6915
|
const deserializeAws_restJson1CriteriaBlockForJob = (output, context) => {
|
|
5881
6916
|
return {
|
|
5882
6917
|
and: output.and != null ? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context) : undefined,
|
|
@@ -5972,6 +7007,16 @@ const deserializeAws_restJson1DetectedDataDetails = (output, context) => {
|
|
|
5972
7007
|
value: __expectString(output.value),
|
|
5973
7008
|
};
|
|
5974
7009
|
};
|
|
7010
|
+
const deserializeAws_restJson1Detection = (output, context) => {
|
|
7011
|
+
return {
|
|
7012
|
+
arn: __expectString(output.arn),
|
|
7013
|
+
count: __expectLong(output.count),
|
|
7014
|
+
id: __expectString(output.id),
|
|
7015
|
+
name: __expectString(output.name),
|
|
7016
|
+
suppressed: __expectBoolean(output.suppressed),
|
|
7017
|
+
type: __expectString(output.type),
|
|
7018
|
+
};
|
|
7019
|
+
};
|
|
5975
7020
|
const deserializeAws_restJson1DomainDetails = (output, context) => {
|
|
5976
7021
|
return {
|
|
5977
7022
|
domainName: __expectString(output.domainName),
|
|
@@ -6191,10 +7236,14 @@ const deserializeAws_restJson1MatchingBucket = (output, context) => {
|
|
|
6191
7236
|
errorCode: __expectString(output.errorCode),
|
|
6192
7237
|
errorMessage: __expectString(output.errorMessage),
|
|
6193
7238
|
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
7239
|
+
lastAutomatedDiscoveryTime: output.lastAutomatedDiscoveryTime != null
|
|
7240
|
+
? __expectNonNull(__parseRfc3339DateTime(output.lastAutomatedDiscoveryTime))
|
|
7241
|
+
: undefined,
|
|
6194
7242
|
objectCount: __expectLong(output.objectCount),
|
|
6195
7243
|
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
6196
7244
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
6197
7245
|
: undefined,
|
|
7246
|
+
sensitivityScore: __expectInt32(output.sensitivityScore),
|
|
6198
7247
|
sizeInBytes: __expectLong(output.sizeInBytes),
|
|
6199
7248
|
sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed),
|
|
6200
7249
|
unclassifiableObjectCount: output.unclassifiableObjectCount != null
|
|
@@ -6323,12 +7372,32 @@ const deserializeAws_restJson1ReplicationDetails = (output, context) => {
|
|
|
6323
7372
|
: undefined,
|
|
6324
7373
|
};
|
|
6325
7374
|
};
|
|
7375
|
+
const deserializeAws_restJson1ResourceProfileArtifact = (output, context) => {
|
|
7376
|
+
return {
|
|
7377
|
+
arn: __expectString(output.arn),
|
|
7378
|
+
classificationResultStatus: __expectString(output.classificationResultStatus),
|
|
7379
|
+
sensitive: __expectBoolean(output.sensitive),
|
|
7380
|
+
};
|
|
7381
|
+
};
|
|
6326
7382
|
const deserializeAws_restJson1ResourcesAffected = (output, context) => {
|
|
6327
7383
|
return {
|
|
6328
7384
|
s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3Bucket(output.s3Bucket, context) : undefined,
|
|
6329
7385
|
s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
|
|
6330
7386
|
};
|
|
6331
7387
|
};
|
|
7388
|
+
const deserializeAws_restJson1ResourceStatistics = (output, context) => {
|
|
7389
|
+
return {
|
|
7390
|
+
totalBytesClassified: __expectLong(output.totalBytesClassified),
|
|
7391
|
+
totalDetections: __expectLong(output.totalDetections),
|
|
7392
|
+
totalDetectionsSuppressed: __expectLong(output.totalDetectionsSuppressed),
|
|
7393
|
+
totalItemsClassified: __expectLong(output.totalItemsClassified),
|
|
7394
|
+
totalItemsSensitive: __expectLong(output.totalItemsSensitive),
|
|
7395
|
+
totalItemsSkipped: __expectLong(output.totalItemsSkipped),
|
|
7396
|
+
totalItemsSkippedInvalidEncryption: __expectLong(output.totalItemsSkippedInvalidEncryption),
|
|
7397
|
+
totalItemsSkippedInvalidKms: __expectLong(output.totalItemsSkippedInvalidKms),
|
|
7398
|
+
totalItemsSkippedPermissionDenied: __expectLong(output.totalItemsSkippedPermissionDenied),
|
|
7399
|
+
};
|
|
7400
|
+
};
|
|
6332
7401
|
const deserializeAws_restJson1RevealConfiguration = (output, context) => {
|
|
6333
7402
|
return {
|
|
6334
7403
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
@@ -6369,6 +7438,20 @@ const deserializeAws_restJson1S3BucketOwner = (output, context) => {
|
|
|
6369
7438
|
id: __expectString(output.id),
|
|
6370
7439
|
};
|
|
6371
7440
|
};
|
|
7441
|
+
const deserializeAws_restJson1S3ClassificationScope = (output, context) => {
|
|
7442
|
+
return {
|
|
7443
|
+
excludes: output.excludes != null
|
|
7444
|
+
? deserializeAws_restJson1S3ClassificationScopeExclusion(output.excludes, context)
|
|
7445
|
+
: undefined,
|
|
7446
|
+
};
|
|
7447
|
+
};
|
|
7448
|
+
const deserializeAws_restJson1S3ClassificationScopeExclusion = (output, context) => {
|
|
7449
|
+
return {
|
|
7450
|
+
bucketNames: output.bucketNames != null
|
|
7451
|
+
? deserializeAws_restJson1__listOfS3BucketName(output.bucketNames, context)
|
|
7452
|
+
: undefined,
|
|
7453
|
+
};
|
|
7454
|
+
};
|
|
6372
7455
|
const deserializeAws_restJson1S3Destination = (output, context) => {
|
|
6373
7456
|
return {
|
|
6374
7457
|
bucketName: __expectString(output.bucketName),
|
|
@@ -6450,6 +7533,38 @@ const deserializeAws_restJson1SensitiveDataOccurrences = (output, context) => {
|
|
|
6450
7533
|
return acc;
|
|
6451
7534
|
}, {});
|
|
6452
7535
|
};
|
|
7536
|
+
const deserializeAws_restJson1SensitivityAggregations = (output, context) => {
|
|
7537
|
+
return {
|
|
7538
|
+
classifiableSizeInBytes: __expectLong(output.classifiableSizeInBytes),
|
|
7539
|
+
publiclyAccessibleCount: __expectLong(output.publiclyAccessibleCount),
|
|
7540
|
+
totalCount: __expectLong(output.totalCount),
|
|
7541
|
+
totalSizeInBytes: __expectLong(output.totalSizeInBytes),
|
|
7542
|
+
};
|
|
7543
|
+
};
|
|
7544
|
+
const deserializeAws_restJson1SensitivityInspectionTemplateExcludes = (output, context) => {
|
|
7545
|
+
return {
|
|
7546
|
+
managedDataIdentifierIds: output.managedDataIdentifierIds != null
|
|
7547
|
+
? deserializeAws_restJson1__listOf__string(output.managedDataIdentifierIds, context)
|
|
7548
|
+
: undefined,
|
|
7549
|
+
};
|
|
7550
|
+
};
|
|
7551
|
+
const deserializeAws_restJson1SensitivityInspectionTemplateIncludes = (output, context) => {
|
|
7552
|
+
return {
|
|
7553
|
+
allowListIds: output.allowListIds != null ? deserializeAws_restJson1__listOf__string(output.allowListIds, context) : undefined,
|
|
7554
|
+
customDataIdentifierIds: output.customDataIdentifierIds != null
|
|
7555
|
+
? deserializeAws_restJson1__listOf__string(output.customDataIdentifierIds, context)
|
|
7556
|
+
: undefined,
|
|
7557
|
+
managedDataIdentifierIds: output.managedDataIdentifierIds != null
|
|
7558
|
+
? deserializeAws_restJson1__listOf__string(output.managedDataIdentifierIds, context)
|
|
7559
|
+
: undefined,
|
|
7560
|
+
};
|
|
7561
|
+
};
|
|
7562
|
+
const deserializeAws_restJson1SensitivityInspectionTemplatesEntry = (output, context) => {
|
|
7563
|
+
return {
|
|
7564
|
+
id: __expectString(output.id),
|
|
7565
|
+
name: __expectString(output.name),
|
|
7566
|
+
};
|
|
7567
|
+
};
|
|
6453
7568
|
const deserializeAws_restJson1ServerSideEncryption = (output, context) => {
|
|
6454
7569
|
return {
|
|
6455
7570
|
encryptionType: __expectString(output.encryptionType),
|
|
@@ -6584,6 +7699,9 @@ const deserializeAws_restJson1UsageByAccount = (output, context) => {
|
|
|
6584
7699
|
const deserializeAws_restJson1UsageRecord = (output, context) => {
|
|
6585
7700
|
return {
|
|
6586
7701
|
accountId: __expectString(output.accountId),
|
|
7702
|
+
automatedDiscoveryFreeTrialStartDate: output.automatedDiscoveryFreeTrialStartDate != null
|
|
7703
|
+
? __expectNonNull(__parseRfc3339DateTime(output.automatedDiscoveryFreeTrialStartDate))
|
|
7704
|
+
: undefined,
|
|
6587
7705
|
freeTrialStartDate: output.freeTrialStartDate != null
|
|
6588
7706
|
? __expectNonNull(__parseRfc3339DateTime(output.freeTrialStartDate))
|
|
6589
7707
|
: undefined,
|