@aws-sdk/client-macie2 3.218.0 → 3.222.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 +1211 -69
- 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 +1199 -84
- 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 +30 -29
|
@@ -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 = {};
|
|
@@ -1251,6 +1401,26 @@ export const serializeAws_restJson1UpdateAllowListCommand = async (input, contex
|
|
|
1251
1401
|
body,
|
|
1252
1402
|
});
|
|
1253
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
|
+
};
|
|
1254
1424
|
export const serializeAws_restJson1UpdateClassificationJobCommand = async (input, context) => {
|
|
1255
1425
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1256
1426
|
const headers = {
|
|
@@ -1272,6 +1442,27 @@ export const serializeAws_restJson1UpdateClassificationJobCommand = async (input
|
|
|
1272
1442
|
body,
|
|
1273
1443
|
});
|
|
1274
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
|
+
};
|
|
1275
1466
|
export const serializeAws_restJson1UpdateFindingsFilterCommand = async (input, context) => {
|
|
1276
1467
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1277
1468
|
const headers = {
|
|
@@ -1362,6 +1553,56 @@ export const serializeAws_restJson1UpdateOrganizationConfigurationCommand = asyn
|
|
|
1362
1553
|
body,
|
|
1363
1554
|
});
|
|
1364
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
|
+
};
|
|
1365
1606
|
export const serializeAws_restJson1UpdateRevealConfigurationCommand = async (input, context) => {
|
|
1366
1607
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1367
1608
|
const headers = {
|
|
@@ -1384,6 +1625,33 @@ export const serializeAws_restJson1UpdateRevealConfigurationCommand = async (inp
|
|
|
1384
1625
|
body,
|
|
1385
1626
|
});
|
|
1386
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
|
+
};
|
|
1387
1655
|
export const deserializeAws_restJson1AcceptInvitationCommand = async (output, context) => {
|
|
1388
1656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1389
1657
|
return deserializeAws_restJson1AcceptInvitationCommandError(output, context);
|
|
@@ -2812,41 +3080,101 @@ const deserializeAws_restJson1GetAllowListCommandError = async (output, context)
|
|
|
2812
3080
|
});
|
|
2813
3081
|
}
|
|
2814
3082
|
};
|
|
2815
|
-
export const
|
|
3083
|
+
export const deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = async (output, context) => {
|
|
2816
3084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2817
|
-
return
|
|
3085
|
+
return deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommandError(output, context);
|
|
2818
3086
|
}
|
|
2819
3087
|
const contents = map({
|
|
2820
3088
|
$metadata: deserializeMetadata(output),
|
|
2821
3089
|
});
|
|
2822
3090
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2823
|
-
if (data.
|
|
2824
|
-
contents.
|
|
2825
|
-
}
|
|
2826
|
-
if (data.bucketCountByEffectivePermission != null) {
|
|
2827
|
-
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
|
|
2828
|
-
}
|
|
2829
|
-
if (data.bucketCountByEncryptionType != null) {
|
|
2830
|
-
contents.bucketCountByEncryptionType = deserializeAws_restJson1BucketCountByEncryptionType(data.bucketCountByEncryptionType, context);
|
|
3091
|
+
if (data.classificationScopeId != null) {
|
|
3092
|
+
contents.classificationScopeId = __expectString(data.classificationScopeId);
|
|
2831
3093
|
}
|
|
2832
|
-
if (data.
|
|
2833
|
-
contents.
|
|
2834
|
-
deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads(data.bucketCountByObjectEncryptionRequirement, context);
|
|
2835
|
-
}
|
|
2836
|
-
if (data.bucketCountBySharedAccessType != null) {
|
|
2837
|
-
contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
|
|
3094
|
+
if (data.disabledAt != null) {
|
|
3095
|
+
contents.disabledAt = __expectNonNull(__parseRfc3339DateTime(data.disabledAt));
|
|
2838
3096
|
}
|
|
2839
|
-
if (data.
|
|
2840
|
-
contents.
|
|
3097
|
+
if (data.firstEnabledAt != null) {
|
|
3098
|
+
contents.firstEnabledAt = __expectNonNull(__parseRfc3339DateTime(data.firstEnabledAt));
|
|
2841
3099
|
}
|
|
2842
|
-
if (data.
|
|
2843
|
-
contents.
|
|
3100
|
+
if (data.lastUpdatedAt != null) {
|
|
3101
|
+
contents.lastUpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.lastUpdatedAt));
|
|
2844
3102
|
}
|
|
2845
|
-
if (data.
|
|
2846
|
-
contents.
|
|
3103
|
+
if (data.sensitivityInspectionTemplateId != null) {
|
|
3104
|
+
contents.sensitivityInspectionTemplateId = __expectString(data.sensitivityInspectionTemplateId);
|
|
2847
3105
|
}
|
|
2848
|
-
if (data.
|
|
2849
|
-
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);
|
|
2850
3178
|
}
|
|
2851
3179
|
if (data.sizeInBytes != null) {
|
|
2852
3180
|
contents.sizeInBytes = __expectLong(data.sizeInBytes);
|
|
@@ -2951,6 +3279,57 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
|
|
|
2951
3279
|
});
|
|
2952
3280
|
}
|
|
2953
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
|
+
};
|
|
2954
3333
|
export const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (output, context) => {
|
|
2955
3334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2956
3335
|
return deserializeAws_restJson1GetCustomDataIdentifierCommandError(output, context);
|
|
@@ -3500,6 +3879,63 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3500
3879
|
});
|
|
3501
3880
|
}
|
|
3502
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
|
+
};
|
|
3503
3939
|
export const deserializeAws_restJson1GetRevealConfigurationCommand = async (output, context) => {
|
|
3504
3940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3505
3941
|
return deserializeAws_restJson1GetRevealConfigurationCommandError(output, context);
|
|
@@ -3641,6 +4077,63 @@ const deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandErro
|
|
|
3641
4077
|
});
|
|
3642
4078
|
}
|
|
3643
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
|
+
};
|
|
3644
4137
|
export const deserializeAws_restJson1GetUsageStatisticsCommand = async (output, context) => {
|
|
3645
4138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3646
4139
|
return deserializeAws_restJson1GetUsageStatisticsCommandError(output, context);
|
|
@@ -3851,6 +4344,51 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
|
|
|
3851
4344
|
});
|
|
3852
4345
|
}
|
|
3853
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
|
+
};
|
|
3854
4392
|
export const deserializeAws_restJson1ListCustomDataIdentifiersCommand = async (output, context) => {
|
|
3855
4393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3856
4394
|
return deserializeAws_restJson1ListCustomDataIdentifiersCommandError(output, context);
|
|
@@ -4205,20 +4743,167 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
4205
4743
|
});
|
|
4206
4744
|
}
|
|
4207
4745
|
};
|
|
4208
|
-
export const
|
|
4746
|
+
export const deserializeAws_restJson1ListResourceProfileArtifactsCommand = async (output, context) => {
|
|
4209
4747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4210
|
-
return
|
|
4748
|
+
return deserializeAws_restJson1ListResourceProfileArtifactsCommandError(output, context);
|
|
4211
4749
|
}
|
|
4212
4750
|
const contents = map({
|
|
4213
4751
|
$metadata: deserializeMetadata(output),
|
|
4214
4752
|
});
|
|
4215
4753
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4216
|
-
if (data.
|
|
4217
|
-
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);
|
|
4218
4759
|
}
|
|
4219
4760
|
return contents;
|
|
4220
4761
|
};
|
|
4221
|
-
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) => {
|
|
4222
4907
|
const parsedOutput = {
|
|
4223
4908
|
...output,
|
|
4224
4909
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4460,33 +5145,210 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (outp
|
|
|
4460
5145
|
});
|
|
4461
5146
|
}
|
|
4462
5147
|
};
|
|
4463
|
-
export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
4464
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4465
|
-
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
4466
|
-
}
|
|
4467
|
-
const contents = map({
|
|
4468
|
-
$metadata: deserializeMetadata(output),
|
|
4469
|
-
});
|
|
4470
|
-
await collectBody(output.body, context);
|
|
4471
|
-
return contents;
|
|
4472
|
-
};
|
|
4473
|
-
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
4474
|
-
const parsedOutput = {
|
|
4475
|
-
...output,
|
|
4476
|
-
body: await parseErrorBody(output.body, context),
|
|
4477
|
-
};
|
|
4478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4479
|
-
const parsedBody = parsedOutput.body;
|
|
4480
|
-
throwDefaultError({
|
|
4481
|
-
output,
|
|
4482
|
-
parsedBody,
|
|
4483
|
-
exceptionCtor: __BaseException,
|
|
4484
|
-
errorCode,
|
|
4485
|
-
});
|
|
4486
|
-
};
|
|
4487
|
-
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) => {
|
|
4488
5350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4489
|
-
return
|
|
5351
|
+
return deserializeAws_restJson1UpdateFindingsFilterCommandError(output, context);
|
|
4490
5352
|
}
|
|
4491
5353
|
const contents = map({
|
|
4492
5354
|
$metadata: deserializeMetadata(output),
|
|
@@ -4500,7 +5362,7 @@ export const deserializeAws_restJson1UpdateAllowListCommand = async (output, con
|
|
|
4500
5362
|
}
|
|
4501
5363
|
return contents;
|
|
4502
5364
|
};
|
|
4503
|
-
const
|
|
5365
|
+
const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output, context) => {
|
|
4504
5366
|
const parsedOutput = {
|
|
4505
5367
|
...output,
|
|
4506
5368
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4510,12 +5372,18 @@ const deserializeAws_restJson1UpdateAllowListCommandError = async (output, conte
|
|
|
4510
5372
|
case "AccessDeniedException":
|
|
4511
5373
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4512
5374
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5375
|
+
case "ConflictException":
|
|
5376
|
+
case "com.amazonaws.macie2#ConflictException":
|
|
5377
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4513
5378
|
case "InternalServerException":
|
|
4514
5379
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4515
5380
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4516
5381
|
case "ResourceNotFoundException":
|
|
4517
5382
|
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4518
5383
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5384
|
+
case "ServiceQuotaExceededException":
|
|
5385
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
5386
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4519
5387
|
case "ThrottlingException":
|
|
4520
5388
|
case "com.amazonaws.macie2#ThrottlingException":
|
|
4521
5389
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -4532,9 +5400,9 @@ const deserializeAws_restJson1UpdateAllowListCommandError = async (output, conte
|
|
|
4532
5400
|
});
|
|
4533
5401
|
}
|
|
4534
5402
|
};
|
|
4535
|
-
export const
|
|
5403
|
+
export const deserializeAws_restJson1UpdateMacieSessionCommand = async (output, context) => {
|
|
4536
5404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4537
|
-
return
|
|
5405
|
+
return deserializeAws_restJson1UpdateMacieSessionCommandError(output, context);
|
|
4538
5406
|
}
|
|
4539
5407
|
const contents = map({
|
|
4540
5408
|
$metadata: deserializeMetadata(output),
|
|
@@ -4542,7 +5410,7 @@ export const deserializeAws_restJson1UpdateClassificationJobCommand = async (out
|
|
|
4542
5410
|
await collectBody(output.body, context);
|
|
4543
5411
|
return contents;
|
|
4544
5412
|
};
|
|
4545
|
-
const
|
|
5413
|
+
const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, context) => {
|
|
4546
5414
|
const parsedOutput = {
|
|
4547
5415
|
...output,
|
|
4548
5416
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4580,23 +5448,17 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
|
|
|
4580
5448
|
});
|
|
4581
5449
|
}
|
|
4582
5450
|
};
|
|
4583
|
-
export const
|
|
5451
|
+
export const deserializeAws_restJson1UpdateMemberSessionCommand = async (output, context) => {
|
|
4584
5452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4585
|
-
return
|
|
5453
|
+
return deserializeAws_restJson1UpdateMemberSessionCommandError(output, context);
|
|
4586
5454
|
}
|
|
4587
5455
|
const contents = map({
|
|
4588
5456
|
$metadata: deserializeMetadata(output),
|
|
4589
5457
|
});
|
|
4590
|
-
|
|
4591
|
-
if (data.arn != null) {
|
|
4592
|
-
contents.arn = __expectString(data.arn);
|
|
4593
|
-
}
|
|
4594
|
-
if (data.id != null) {
|
|
4595
|
-
contents.id = __expectString(data.id);
|
|
4596
|
-
}
|
|
5458
|
+
await collectBody(output.body, context);
|
|
4597
5459
|
return contents;
|
|
4598
5460
|
};
|
|
4599
|
-
const
|
|
5461
|
+
const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, context) => {
|
|
4600
5462
|
const parsedOutput = {
|
|
4601
5463
|
...output,
|
|
4602
5464
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4634,9 +5496,9 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
|
|
|
4634
5496
|
});
|
|
4635
5497
|
}
|
|
4636
5498
|
};
|
|
4637
|
-
export const
|
|
5499
|
+
export const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
4638
5500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4639
|
-
return
|
|
5501
|
+
return deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context);
|
|
4640
5502
|
}
|
|
4641
5503
|
const contents = map({
|
|
4642
5504
|
$metadata: deserializeMetadata(output),
|
|
@@ -4644,7 +5506,7 @@ export const deserializeAws_restJson1UpdateMacieSessionCommand = async (output,
|
|
|
4644
5506
|
await collectBody(output.body, context);
|
|
4645
5507
|
return contents;
|
|
4646
5508
|
};
|
|
4647
|
-
const
|
|
5509
|
+
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
4648
5510
|
const parsedOutput = {
|
|
4649
5511
|
...output,
|
|
4650
5512
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4682,9 +5544,9 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
|
|
|
4682
5544
|
});
|
|
4683
5545
|
}
|
|
4684
5546
|
};
|
|
4685
|
-
export const
|
|
5547
|
+
export const deserializeAws_restJson1UpdateResourceProfileCommand = async (output, context) => {
|
|
4686
5548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4687
|
-
return
|
|
5549
|
+
return deserializeAws_restJson1UpdateResourceProfileCommandError(output, context);
|
|
4688
5550
|
}
|
|
4689
5551
|
const contents = map({
|
|
4690
5552
|
$metadata: deserializeMetadata(output),
|
|
@@ -4692,7 +5554,7 @@ export const deserializeAws_restJson1UpdateMemberSessionCommand = async (output,
|
|
|
4692
5554
|
await collectBody(output.body, context);
|
|
4693
5555
|
return contents;
|
|
4694
5556
|
};
|
|
4695
|
-
const
|
|
5557
|
+
const deserializeAws_restJson1UpdateResourceProfileCommandError = async (output, context) => {
|
|
4696
5558
|
const parsedOutput = {
|
|
4697
5559
|
...output,
|
|
4698
5560
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4702,9 +5564,6 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4702
5564
|
case "AccessDeniedException":
|
|
4703
5565
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4704
5566
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4705
|
-
case "ConflictException":
|
|
4706
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4707
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4708
5567
|
case "InternalServerException":
|
|
4709
5568
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4710
5569
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -4730,9 +5589,9 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4730
5589
|
});
|
|
4731
5590
|
}
|
|
4732
5591
|
};
|
|
4733
|
-
export const
|
|
5592
|
+
export const deserializeAws_restJson1UpdateResourceProfileDetectionsCommand = async (output, context) => {
|
|
4734
5593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4735
|
-
return
|
|
5594
|
+
return deserializeAws_restJson1UpdateResourceProfileDetectionsCommandError(output, context);
|
|
4736
5595
|
}
|
|
4737
5596
|
const contents = map({
|
|
4738
5597
|
$metadata: deserializeMetadata(output),
|
|
@@ -4740,7 +5599,7 @@ export const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = as
|
|
|
4740
5599
|
await collectBody(output.body, context);
|
|
4741
5600
|
return contents;
|
|
4742
5601
|
};
|
|
4743
|
-
const
|
|
5602
|
+
const deserializeAws_restJson1UpdateResourceProfileDetectionsCommandError = async (output, context) => {
|
|
4744
5603
|
const parsedOutput = {
|
|
4745
5604
|
...output,
|
|
4746
5605
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4750,9 +5609,6 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4750
5609
|
case "AccessDeniedException":
|
|
4751
5610
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4752
5611
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4753
|
-
case "ConflictException":
|
|
4754
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4755
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4756
5612
|
case "InternalServerException":
|
|
4757
5613
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4758
5614
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -4820,6 +5676,48 @@ const deserializeAws_restJson1UpdateRevealConfigurationCommandError = async (out
|
|
|
4820
5676
|
});
|
|
4821
5677
|
}
|
|
4822
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
|
+
};
|
|
4823
5721
|
const map = __map;
|
|
4824
5722
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4825
5723
|
const contents = map({});
|
|
@@ -4959,6 +5857,13 @@ const serializeAws_restJson1__listOfS3BucketDefinitionForJob = (input, context)
|
|
|
4959
5857
|
return serializeAws_restJson1S3BucketDefinitionForJob(entry, context);
|
|
4960
5858
|
});
|
|
4961
5859
|
};
|
|
5860
|
+
const serializeAws_restJson1__listOfS3BucketName = (input, context) => {
|
|
5861
|
+
return input
|
|
5862
|
+
.filter((e) => e != null)
|
|
5863
|
+
.map((entry) => {
|
|
5864
|
+
return entry;
|
|
5865
|
+
});
|
|
5866
|
+
};
|
|
4962
5867
|
const serializeAws_restJson1__listOfSearchResourcesCriteria = (input, context) => {
|
|
4963
5868
|
return input
|
|
4964
5869
|
.filter((e) => e != null)
|
|
@@ -4973,6 +5878,13 @@ const serializeAws_restJson1__listOfSearchResourcesTagCriterionPair = (input, co
|
|
|
4973
5878
|
return serializeAws_restJson1SearchResourcesTagCriterionPair(entry, context);
|
|
4974
5879
|
});
|
|
4975
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
|
+
};
|
|
4976
5888
|
const serializeAws_restJson1__listOfTagCriterionPairForJob = (input, context) => {
|
|
4977
5889
|
return input
|
|
4978
5890
|
.filter((e) => e != null)
|
|
@@ -5164,6 +6076,21 @@ const serializeAws_restJson1S3BucketDefinitionForJob = (input, context) => {
|
|
|
5164
6076
|
...(input.buckets != null && { buckets: serializeAws_restJson1__listOf__string(input.buckets, context) }),
|
|
5165
6077
|
};
|
|
5166
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
|
+
};
|
|
5167
6094
|
const serializeAws_restJson1S3Destination = (input, context) => {
|
|
5168
6095
|
return {
|
|
5169
6096
|
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
@@ -5254,6 +6181,26 @@ const serializeAws_restJson1SecurityHubConfiguration = (input, context) => {
|
|
|
5254
6181
|
...(input.publishPolicyFindings != null && { publishPolicyFindings: input.publishPolicyFindings }),
|
|
5255
6182
|
};
|
|
5256
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
|
+
};
|
|
5257
6204
|
const serializeAws_restJson1SeverityLevel = (input, context) => {
|
|
5258
6205
|
return {
|
|
5259
6206
|
...(input.occurrencesThreshold != null && { occurrencesThreshold: input.occurrencesThreshold }),
|
|
@@ -5287,6 +6234,12 @@ const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
|
5287
6234
|
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5288
6235
|
};
|
|
5289
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
|
+
};
|
|
5290
6243
|
const serializeAws_restJson1TagCriterionForJob = (input, context) => {
|
|
5291
6244
|
return {
|
|
5292
6245
|
...(input.comparator != null && { comparator: input.comparator }),
|
|
@@ -5397,6 +6350,17 @@ const deserializeAws_restJson1__listOfBucketMetadata = (output, context) => {
|
|
|
5397
6350
|
});
|
|
5398
6351
|
return retVal;
|
|
5399
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
|
+
};
|
|
5400
6364
|
const deserializeAws_restJson1__listOfCriteriaForJob = (output, context) => {
|
|
5401
6365
|
const retVal = (output || [])
|
|
5402
6366
|
.filter((e) => e != null)
|
|
@@ -5430,6 +6394,17 @@ const deserializeAws_restJson1__listOfDetectedDataDetails = (output, context) =>
|
|
|
5430
6394
|
});
|
|
5431
6395
|
return retVal;
|
|
5432
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
|
+
};
|
|
5433
6408
|
const deserializeAws_restJson1__listOfFinding = (output, context) => {
|
|
5434
6409
|
const retVal = (output || [])
|
|
5435
6410
|
.filter((e) => e != null)
|
|
@@ -5540,6 +6515,17 @@ const deserializeAws_restJson1__listOfMember = (output, context) => {
|
|
|
5540
6515
|
});
|
|
5541
6516
|
return retVal;
|
|
5542
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
|
+
};
|
|
5543
6529
|
const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = (output, context) => {
|
|
5544
6530
|
const retVal = (output || [])
|
|
5545
6531
|
.filter((e) => e != null)
|
|
@@ -5551,6 +6537,28 @@ const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = (output, contex
|
|
|
5551
6537
|
});
|
|
5552
6538
|
return retVal;
|
|
5553
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
|
+
};
|
|
5554
6562
|
const deserializeAws_restJson1__listOfTagCriterionPairForJob = (output, context) => {
|
|
5555
6563
|
const retVal = (output || [])
|
|
5556
6564
|
.filter((e) => e != null)
|
|
@@ -5771,6 +6779,9 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5771
6779
|
errorCode: __expectString(output.errorCode),
|
|
5772
6780
|
errorMessage: __expectString(output.errorMessage),
|
|
5773
6781
|
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
6782
|
+
lastAutomatedDiscoveryTime: output.lastAutomatedDiscoveryTime != null
|
|
6783
|
+
? __expectNonNull(__parseRfc3339DateTime(output.lastAutomatedDiscoveryTime))
|
|
6784
|
+
: undefined,
|
|
5774
6785
|
lastUpdated: output.lastUpdated != null ? __expectNonNull(__parseRfc3339DateTime(output.lastUpdated)) : undefined,
|
|
5775
6786
|
objectCount: __expectLong(output.objectCount),
|
|
5776
6787
|
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
@@ -5783,6 +6794,7 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5783
6794
|
replicationDetails: output.replicationDetails != null
|
|
5784
6795
|
? deserializeAws_restJson1ReplicationDetails(output.replicationDetails, context)
|
|
5785
6796
|
: undefined,
|
|
6797
|
+
sensitivityScore: __expectInt32(output.sensitivityScore),
|
|
5786
6798
|
serverSideEncryption: output.serverSideEncryption != null
|
|
5787
6799
|
? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
|
|
5788
6800
|
: undefined,
|
|
@@ -5829,6 +6841,20 @@ const deserializeAws_restJson1BucketServerSideEncryption = (output, context) =>
|
|
|
5829
6841
|
type: __expectString(output.type),
|
|
5830
6842
|
};
|
|
5831
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
|
+
};
|
|
5832
6858
|
const deserializeAws_restJson1Cell = (output, context) => {
|
|
5833
6859
|
return {
|
|
5834
6860
|
cellReference: __expectString(output.cellReference),
|
|
@@ -5880,6 +6906,12 @@ const deserializeAws_restJson1ClassificationResultStatus = (output, context) =>
|
|
|
5880
6906
|
reason: __expectString(output.reason),
|
|
5881
6907
|
};
|
|
5882
6908
|
};
|
|
6909
|
+
const deserializeAws_restJson1ClassificationScopeSummary = (output, context) => {
|
|
6910
|
+
return {
|
|
6911
|
+
id: __expectString(output.id),
|
|
6912
|
+
name: __expectString(output.name),
|
|
6913
|
+
};
|
|
6914
|
+
};
|
|
5883
6915
|
const deserializeAws_restJson1CriteriaBlockForJob = (output, context) => {
|
|
5884
6916
|
return {
|
|
5885
6917
|
and: output.and != null ? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context) : undefined,
|
|
@@ -5975,6 +7007,16 @@ const deserializeAws_restJson1DetectedDataDetails = (output, context) => {
|
|
|
5975
7007
|
value: __expectString(output.value),
|
|
5976
7008
|
};
|
|
5977
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
|
+
};
|
|
5978
7020
|
const deserializeAws_restJson1DomainDetails = (output, context) => {
|
|
5979
7021
|
return {
|
|
5980
7022
|
domainName: __expectString(output.domainName),
|
|
@@ -6194,10 +7236,14 @@ const deserializeAws_restJson1MatchingBucket = (output, context) => {
|
|
|
6194
7236
|
errorCode: __expectString(output.errorCode),
|
|
6195
7237
|
errorMessage: __expectString(output.errorMessage),
|
|
6196
7238
|
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
7239
|
+
lastAutomatedDiscoveryTime: output.lastAutomatedDiscoveryTime != null
|
|
7240
|
+
? __expectNonNull(__parseRfc3339DateTime(output.lastAutomatedDiscoveryTime))
|
|
7241
|
+
: undefined,
|
|
6197
7242
|
objectCount: __expectLong(output.objectCount),
|
|
6198
7243
|
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
6199
7244
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
6200
7245
|
: undefined,
|
|
7246
|
+
sensitivityScore: __expectInt32(output.sensitivityScore),
|
|
6201
7247
|
sizeInBytes: __expectLong(output.sizeInBytes),
|
|
6202
7248
|
sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed),
|
|
6203
7249
|
unclassifiableObjectCount: output.unclassifiableObjectCount != null
|
|
@@ -6326,12 +7372,32 @@ const deserializeAws_restJson1ReplicationDetails = (output, context) => {
|
|
|
6326
7372
|
: undefined,
|
|
6327
7373
|
};
|
|
6328
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
|
+
};
|
|
6329
7382
|
const deserializeAws_restJson1ResourcesAffected = (output, context) => {
|
|
6330
7383
|
return {
|
|
6331
7384
|
s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3Bucket(output.s3Bucket, context) : undefined,
|
|
6332
7385
|
s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
|
|
6333
7386
|
};
|
|
6334
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
|
+
};
|
|
6335
7401
|
const deserializeAws_restJson1RevealConfiguration = (output, context) => {
|
|
6336
7402
|
return {
|
|
6337
7403
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
@@ -6372,6 +7438,20 @@ const deserializeAws_restJson1S3BucketOwner = (output, context) => {
|
|
|
6372
7438
|
id: __expectString(output.id),
|
|
6373
7439
|
};
|
|
6374
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
|
+
};
|
|
6375
7455
|
const deserializeAws_restJson1S3Destination = (output, context) => {
|
|
6376
7456
|
return {
|
|
6377
7457
|
bucketName: __expectString(output.bucketName),
|
|
@@ -6453,6 +7533,38 @@ const deserializeAws_restJson1SensitiveDataOccurrences = (output, context) => {
|
|
|
6453
7533
|
return acc;
|
|
6454
7534
|
}, {});
|
|
6455
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
|
+
};
|
|
6456
7568
|
const deserializeAws_restJson1ServerSideEncryption = (output, context) => {
|
|
6457
7569
|
return {
|
|
6458
7570
|
encryptionType: __expectString(output.encryptionType),
|
|
@@ -6587,6 +7699,9 @@ const deserializeAws_restJson1UsageByAccount = (output, context) => {
|
|
|
6587
7699
|
const deserializeAws_restJson1UsageRecord = (output, context) => {
|
|
6588
7700
|
return {
|
|
6589
7701
|
accountId: __expectString(output.accountId),
|
|
7702
|
+
automatedDiscoveryFreeTrialStartDate: output.automatedDiscoveryFreeTrialStartDate != null
|
|
7703
|
+
? __expectNonNull(__parseRfc3339DateTime(output.automatedDiscoveryFreeTrialStartDate))
|
|
7704
|
+
: undefined,
|
|
6590
7705
|
freeTrialStartDate: output.freeTrialStartDate != null
|
|
6591
7706
|
? __expectNonNull(__parseRfc3339DateTime(output.freeTrialStartDate))
|
|
6592
7707
|
: undefined,
|