@aws-sdk/client-macie2 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +594 -776
- package/dist-es/protocols/Aws_restJson1.js +509 -691
- package/package.json +26 -26
|
@@ -16,10 +16,9 @@ const serializeAws_restJson1AcceptInvitationCommand = async (input, context) =>
|
|
|
16
16
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/accept";
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
|
-
...(input.administratorAccountId
|
|
20
|
-
|
|
21
|
-
...(input.
|
|
22
|
-
...(input.masterAccount !== undefined && input.masterAccount !== null && { masterAccount: input.masterAccount }),
|
|
19
|
+
...(input.administratorAccountId != null && { administratorAccountId: input.administratorAccountId }),
|
|
20
|
+
...(input.invitationId != null && { invitationId: input.invitationId }),
|
|
21
|
+
...(input.masterAccount != null && { masterAccount: input.masterAccount }),
|
|
23
22
|
});
|
|
24
23
|
return new protocol_http_1.HttpRequest({
|
|
25
24
|
protocol,
|
|
@@ -40,8 +39,7 @@ const serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = async (input,
|
|
|
40
39
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/get";
|
|
41
40
|
let body;
|
|
42
41
|
body = JSON.stringify({
|
|
43
|
-
...(input.ids
|
|
44
|
-
input.ids !== null && { ids: serializeAws_restJson1__listOf__string(input.ids, context) }),
|
|
42
|
+
...(input.ids != null && { ids: serializeAws_restJson1__listOf__string(input.ids, context) }),
|
|
45
43
|
});
|
|
46
44
|
return new protocol_http_1.HttpRequest({
|
|
47
45
|
protocol,
|
|
@@ -64,33 +62,27 @@ const serializeAws_restJson1CreateClassificationJobCommand = async (input, conte
|
|
|
64
62
|
let body;
|
|
65
63
|
body = JSON.stringify({
|
|
66
64
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
67
|
-
...(input.customDataIdentifierIds
|
|
68
|
-
input.customDataIdentifierIds !== null && {
|
|
65
|
+
...(input.customDataIdentifierIds != null && {
|
|
69
66
|
customDataIdentifierIds: serializeAws_restJson1__listOf__string(input.customDataIdentifierIds, context),
|
|
70
67
|
}),
|
|
71
|
-
...(input.description
|
|
72
|
-
...(input.initialRun
|
|
73
|
-
...(input.jobType
|
|
74
|
-
...(input.managedDataIdentifierIds
|
|
75
|
-
input.managedDataIdentifierIds !== null && {
|
|
68
|
+
...(input.description != null && { description: input.description }),
|
|
69
|
+
...(input.initialRun != null && { initialRun: input.initialRun }),
|
|
70
|
+
...(input.jobType != null && { jobType: input.jobType }),
|
|
71
|
+
...(input.managedDataIdentifierIds != null && {
|
|
76
72
|
managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
|
|
77
73
|
}),
|
|
78
|
-
...(input.managedDataIdentifierSelector
|
|
79
|
-
input.managedDataIdentifierSelector !== null && {
|
|
74
|
+
...(input.managedDataIdentifierSelector != null && {
|
|
80
75
|
managedDataIdentifierSelector: input.managedDataIdentifierSelector,
|
|
81
76
|
}),
|
|
82
|
-
...(input.name
|
|
83
|
-
...(input.s3JobDefinition
|
|
84
|
-
input.s3JobDefinition !== null && {
|
|
77
|
+
...(input.name != null && { name: input.name }),
|
|
78
|
+
...(input.s3JobDefinition != null && {
|
|
85
79
|
s3JobDefinition: serializeAws_restJson1S3JobDefinition(input.s3JobDefinition, context),
|
|
86
80
|
}),
|
|
87
|
-
...(input.samplingPercentage
|
|
88
|
-
|
|
89
|
-
...(input.scheduleFrequency !== undefined &&
|
|
90
|
-
input.scheduleFrequency !== null && {
|
|
81
|
+
...(input.samplingPercentage != null && { samplingPercentage: input.samplingPercentage }),
|
|
82
|
+
...(input.scheduleFrequency != null && {
|
|
91
83
|
scheduleFrequency: serializeAws_restJson1JobScheduleFrequency(input.scheduleFrequency, context),
|
|
92
84
|
}),
|
|
93
|
-
...(input.tags
|
|
85
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
94
86
|
});
|
|
95
87
|
return new protocol_http_1.HttpRequest({
|
|
96
88
|
protocol,
|
|
@@ -113,22 +105,18 @@ const serializeAws_restJson1CreateCustomDataIdentifierCommand = async (input, co
|
|
|
113
105
|
let body;
|
|
114
106
|
body = JSON.stringify({
|
|
115
107
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
116
|
-
...(input.description
|
|
117
|
-
...(input.ignoreWords
|
|
118
|
-
input.ignoreWords !== null && {
|
|
108
|
+
...(input.description != null && { description: input.description }),
|
|
109
|
+
...(input.ignoreWords != null && {
|
|
119
110
|
ignoreWords: serializeAws_restJson1__listOf__string(input.ignoreWords, context),
|
|
120
111
|
}),
|
|
121
|
-
...(input.keywords
|
|
122
|
-
|
|
123
|
-
...(input.
|
|
124
|
-
|
|
125
|
-
...(input.
|
|
126
|
-
...(input.regex !== undefined && input.regex !== null && { regex: input.regex }),
|
|
127
|
-
...(input.severityLevels !== undefined &&
|
|
128
|
-
input.severityLevels !== null && {
|
|
112
|
+
...(input.keywords != null && { keywords: serializeAws_restJson1__listOf__string(input.keywords, context) }),
|
|
113
|
+
...(input.maximumMatchDistance != null && { maximumMatchDistance: input.maximumMatchDistance }),
|
|
114
|
+
...(input.name != null && { name: input.name }),
|
|
115
|
+
...(input.regex != null && { regex: input.regex }),
|
|
116
|
+
...(input.severityLevels != null && {
|
|
129
117
|
severityLevels: serializeAws_restJson1SeverityLevelList(input.severityLevels, context),
|
|
130
118
|
}),
|
|
131
|
-
...(input.tags
|
|
119
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
132
120
|
});
|
|
133
121
|
return new protocol_http_1.HttpRequest({
|
|
134
122
|
protocol,
|
|
@@ -150,16 +138,15 @@ const serializeAws_restJson1CreateFindingsFilterCommand = async (input, context)
|
|
|
150
138
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters";
|
|
151
139
|
let body;
|
|
152
140
|
body = JSON.stringify({
|
|
153
|
-
...(input.action
|
|
141
|
+
...(input.action != null && { action: input.action }),
|
|
154
142
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
155
|
-
...(input.description
|
|
156
|
-
...(input.findingCriteria
|
|
157
|
-
input.findingCriteria !== null && {
|
|
143
|
+
...(input.description != null && { description: input.description }),
|
|
144
|
+
...(input.findingCriteria != null && {
|
|
158
145
|
findingCriteria: serializeAws_restJson1FindingCriteria(input.findingCriteria, context),
|
|
159
146
|
}),
|
|
160
|
-
...(input.name
|
|
161
|
-
...(input.position
|
|
162
|
-
...(input.tags
|
|
147
|
+
...(input.name != null && { name: input.name }),
|
|
148
|
+
...(input.position != null && { position: input.position }),
|
|
149
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
163
150
|
});
|
|
164
151
|
return new protocol_http_1.HttpRequest({
|
|
165
152
|
protocol,
|
|
@@ -180,11 +167,9 @@ const serializeAws_restJson1CreateInvitationsCommand = async (input, context) =>
|
|
|
180
167
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitations";
|
|
181
168
|
let body;
|
|
182
169
|
body = JSON.stringify({
|
|
183
|
-
...(input.accountIds
|
|
184
|
-
|
|
185
|
-
...(input.
|
|
186
|
-
input.disableEmailNotification !== null && { disableEmailNotification: input.disableEmailNotification }),
|
|
187
|
-
...(input.message !== undefined && input.message !== null && { message: input.message }),
|
|
170
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) }),
|
|
171
|
+
...(input.disableEmailNotification != null && { disableEmailNotification: input.disableEmailNotification }),
|
|
172
|
+
...(input.message != null && { message: input.message }),
|
|
188
173
|
});
|
|
189
174
|
return new protocol_http_1.HttpRequest({
|
|
190
175
|
protocol,
|
|
@@ -205,9 +190,8 @@ const serializeAws_restJson1CreateMemberCommand = async (input, context) => {
|
|
|
205
190
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members";
|
|
206
191
|
let body;
|
|
207
192
|
body = JSON.stringify({
|
|
208
|
-
...(input.account
|
|
209
|
-
|
|
210
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
193
|
+
...(input.account != null && { account: serializeAws_restJson1AccountDetail(input.account, context) }),
|
|
194
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
211
195
|
});
|
|
212
196
|
return new protocol_http_1.HttpRequest({
|
|
213
197
|
protocol,
|
|
@@ -228,8 +212,7 @@ const serializeAws_restJson1CreateSampleFindingsCommand = async (input, context)
|
|
|
228
212
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/sample";
|
|
229
213
|
let body;
|
|
230
214
|
body = JSON.stringify({
|
|
231
|
-
...(input.findingTypes
|
|
232
|
-
input.findingTypes !== null && {
|
|
215
|
+
...(input.findingTypes != null && {
|
|
233
216
|
findingTypes: serializeAws_restJson1__listOfFindingType(input.findingTypes, context),
|
|
234
217
|
}),
|
|
235
218
|
});
|
|
@@ -252,8 +235,7 @@ const serializeAws_restJson1DeclineInvitationsCommand = async (input, context) =
|
|
|
252
235
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/decline";
|
|
253
236
|
let body;
|
|
254
237
|
body = JSON.stringify({
|
|
255
|
-
...(input.accountIds
|
|
256
|
-
input.accountIds !== null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) }),
|
|
238
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) }),
|
|
257
239
|
});
|
|
258
240
|
return new protocol_http_1.HttpRequest({
|
|
259
241
|
protocol,
|
|
@@ -326,8 +308,7 @@ const serializeAws_restJson1DeleteInvitationsCommand = async (input, context) =>
|
|
|
326
308
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/delete";
|
|
327
309
|
let body;
|
|
328
310
|
body = JSON.stringify({
|
|
329
|
-
...(input.accountIds
|
|
330
|
-
input.accountIds !== null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) }),
|
|
311
|
+
...(input.accountIds != null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) }),
|
|
331
312
|
});
|
|
332
313
|
return new protocol_http_1.HttpRequest({
|
|
333
314
|
protocol,
|
|
@@ -374,12 +355,10 @@ const serializeAws_restJson1DescribeBucketsCommand = async (input, context) => {
|
|
|
374
355
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasources/s3";
|
|
375
356
|
let body;
|
|
376
357
|
body = JSON.stringify({
|
|
377
|
-
...(input.criteria
|
|
378
|
-
|
|
379
|
-
...(input.
|
|
380
|
-
...(input.
|
|
381
|
-
...(input.sortCriteria !== undefined &&
|
|
382
|
-
input.sortCriteria !== null && {
|
|
358
|
+
...(input.criteria != null && { criteria: serializeAws_restJson1BucketCriteria(input.criteria, context) }),
|
|
359
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
360
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
361
|
+
...(input.sortCriteria != null && {
|
|
383
362
|
sortCriteria: serializeAws_restJson1BucketSortCriteria(input.sortCriteria, context),
|
|
384
363
|
}),
|
|
385
364
|
});
|
|
@@ -552,9 +531,8 @@ const serializeAws_restJson1EnableMacieCommand = async (input, context) => {
|
|
|
552
531
|
let body;
|
|
553
532
|
body = JSON.stringify({
|
|
554
533
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
555
|
-
...(input.findingPublishingFrequency
|
|
556
|
-
|
|
557
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
534
|
+
...(input.findingPublishingFrequency != null && { findingPublishingFrequency: input.findingPublishingFrequency }),
|
|
535
|
+
...(input.status != null && { status: input.status }),
|
|
558
536
|
});
|
|
559
537
|
return new protocol_http_1.HttpRequest({
|
|
560
538
|
protocol,
|
|
@@ -576,8 +554,7 @@ const serializeAws_restJson1EnableOrganizationAdminAccountCommand = async (input
|
|
|
576
554
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/admin";
|
|
577
555
|
let body;
|
|
578
556
|
body = JSON.stringify({
|
|
579
|
-
...(input.adminAccountId
|
|
580
|
-
input.adminAccountId !== null && { adminAccountId: input.adminAccountId }),
|
|
557
|
+
...(input.adminAccountId != null && { adminAccountId: input.adminAccountId }),
|
|
581
558
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
582
559
|
});
|
|
583
560
|
return new protocol_http_1.HttpRequest({
|
|
@@ -618,7 +595,7 @@ const serializeAws_restJson1GetBucketStatisticsCommand = async (input, context)
|
|
|
618
595
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasources/s3/statistics";
|
|
619
596
|
let body;
|
|
620
597
|
body = JSON.stringify({
|
|
621
|
-
...(input.accountId
|
|
598
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
622
599
|
});
|
|
623
600
|
return new protocol_http_1.HttpRequest({
|
|
624
601
|
protocol,
|
|
@@ -684,10 +661,10 @@ const serializeAws_restJson1GetFindingsCommand = async (input, context) => {
|
|
|
684
661
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/describe";
|
|
685
662
|
let body;
|
|
686
663
|
body = JSON.stringify({
|
|
687
|
-
...(input.findingIds
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
664
|
+
...(input.findingIds != null && { findingIds: serializeAws_restJson1__listOf__string(input.findingIds, context) }),
|
|
665
|
+
...(input.sortCriteria != null && {
|
|
666
|
+
sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
|
|
667
|
+
}),
|
|
691
668
|
});
|
|
692
669
|
return new protocol_http_1.HttpRequest({
|
|
693
670
|
protocol,
|
|
@@ -753,14 +730,12 @@ const serializeAws_restJson1GetFindingStatisticsCommand = async (input, context)
|
|
|
753
730
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/statistics";
|
|
754
731
|
let body;
|
|
755
732
|
body = JSON.stringify({
|
|
756
|
-
...(input.findingCriteria
|
|
757
|
-
input.findingCriteria !== null && {
|
|
733
|
+
...(input.findingCriteria != null && {
|
|
758
734
|
findingCriteria: serializeAws_restJson1FindingCriteria(input.findingCriteria, context),
|
|
759
735
|
}),
|
|
760
|
-
...(input.groupBy
|
|
761
|
-
...(input.size
|
|
762
|
-
...(input.sortCriteria
|
|
763
|
-
input.sortCriteria !== null && {
|
|
736
|
+
...(input.groupBy != null && { groupBy: input.groupBy }),
|
|
737
|
+
...(input.size != null && { size: input.size }),
|
|
738
|
+
...(input.sortCriteria != null && {
|
|
764
739
|
sortCriteria: serializeAws_restJson1FindingStatisticsSortCriteria(input.sortCriteria, context),
|
|
765
740
|
}),
|
|
766
741
|
});
|
|
@@ -866,15 +841,13 @@ const serializeAws_restJson1GetUsageStatisticsCommand = async (input, context) =
|
|
|
866
841
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/usage/statistics";
|
|
867
842
|
let body;
|
|
868
843
|
body = JSON.stringify({
|
|
869
|
-
...(input.filterBy
|
|
870
|
-
input.filterBy !== null && {
|
|
844
|
+
...(input.filterBy != null && {
|
|
871
845
|
filterBy: serializeAws_restJson1__listOfUsageStatisticsFilter(input.filterBy, context),
|
|
872
846
|
}),
|
|
873
|
-
...(input.maxResults
|
|
874
|
-
...(input.nextToken
|
|
875
|
-
...(input.sortBy
|
|
876
|
-
|
|
877
|
-
...(input.timeRange !== undefined && input.timeRange !== null && { timeRange: input.timeRange }),
|
|
847
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
848
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
849
|
+
...(input.sortBy != null && { sortBy: serializeAws_restJson1UsageStatisticsSortBy(input.sortBy, context) }),
|
|
850
|
+
...(input.timeRange != null && { timeRange: input.timeRange }),
|
|
878
851
|
});
|
|
879
852
|
return new protocol_http_1.HttpRequest({
|
|
880
853
|
protocol,
|
|
@@ -915,14 +888,12 @@ const serializeAws_restJson1ListClassificationJobsCommand = async (input, contex
|
|
|
915
888
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/list";
|
|
916
889
|
let body;
|
|
917
890
|
body = JSON.stringify({
|
|
918
|
-
...(input.filterCriteria
|
|
919
|
-
input.filterCriteria !== null && {
|
|
891
|
+
...(input.filterCriteria != null && {
|
|
920
892
|
filterCriteria: serializeAws_restJson1ListJobsFilterCriteria(input.filterCriteria, context),
|
|
921
893
|
}),
|
|
922
|
-
...(input.maxResults
|
|
923
|
-
...(input.nextToken
|
|
924
|
-
...(input.sortCriteria
|
|
925
|
-
input.sortCriteria !== null && {
|
|
894
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
895
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
896
|
+
...(input.sortCriteria != null && {
|
|
926
897
|
sortCriteria: serializeAws_restJson1ListJobsSortCriteria(input.sortCriteria, context),
|
|
927
898
|
}),
|
|
928
899
|
});
|
|
@@ -945,8 +916,8 @@ const serializeAws_restJson1ListCustomDataIdentifiersCommand = async (input, con
|
|
|
945
916
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/list";
|
|
946
917
|
let body;
|
|
947
918
|
body = JSON.stringify({
|
|
948
|
-
...(input.maxResults
|
|
949
|
-
...(input.nextToken
|
|
919
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
920
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
950
921
|
});
|
|
951
922
|
return new protocol_http_1.HttpRequest({
|
|
952
923
|
protocol,
|
|
@@ -967,14 +938,14 @@ const serializeAws_restJson1ListFindingsCommand = async (input, context) => {
|
|
|
967
938
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings";
|
|
968
939
|
let body;
|
|
969
940
|
body = JSON.stringify({
|
|
970
|
-
...(input.findingCriteria
|
|
971
|
-
input.findingCriteria !== null && {
|
|
941
|
+
...(input.findingCriteria != null && {
|
|
972
942
|
findingCriteria: serializeAws_restJson1FindingCriteria(input.findingCriteria, context),
|
|
973
943
|
}),
|
|
974
|
-
...(input.maxResults
|
|
975
|
-
...(input.nextToken
|
|
976
|
-
...(input.sortCriteria
|
|
977
|
-
|
|
944
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
945
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
946
|
+
...(input.sortCriteria != null && {
|
|
947
|
+
sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
|
|
948
|
+
}),
|
|
978
949
|
});
|
|
979
950
|
return new protocol_http_1.HttpRequest({
|
|
980
951
|
protocol,
|
|
@@ -1037,7 +1008,7 @@ const serializeAws_restJson1ListManagedDataIdentifiersCommand = async (input, co
|
|
|
1037
1008
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/managed-data-identifiers/list";
|
|
1038
1009
|
let body;
|
|
1039
1010
|
body = JSON.stringify({
|
|
1040
|
-
...(input.nextToken
|
|
1011
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1041
1012
|
});
|
|
1042
1013
|
return new protocol_http_1.HttpRequest({
|
|
1043
1014
|
protocol,
|
|
@@ -1127,8 +1098,7 @@ const serializeAws_restJson1PutClassificationExportConfigurationCommand = async
|
|
|
1127
1098
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/classification-export-configuration";
|
|
1128
1099
|
let body;
|
|
1129
1100
|
body = JSON.stringify({
|
|
1130
|
-
...(input.configuration
|
|
1131
|
-
input.configuration !== null && {
|
|
1101
|
+
...(input.configuration != null && {
|
|
1132
1102
|
configuration: serializeAws_restJson1ClassificationExportConfiguration(input.configuration, context),
|
|
1133
1103
|
}),
|
|
1134
1104
|
});
|
|
@@ -1153,8 +1123,7 @@ const serializeAws_restJson1PutFindingsPublicationConfigurationCommand = async (
|
|
|
1153
1123
|
let body;
|
|
1154
1124
|
body = JSON.stringify({
|
|
1155
1125
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1156
|
-
...(input.securityHubConfiguration
|
|
1157
|
-
input.securityHubConfiguration !== null && {
|
|
1126
|
+
...(input.securityHubConfiguration != null && {
|
|
1158
1127
|
securityHubConfiguration: serializeAws_restJson1SecurityHubConfiguration(input.securityHubConfiguration, context),
|
|
1159
1128
|
}),
|
|
1160
1129
|
});
|
|
@@ -1177,14 +1146,12 @@ const serializeAws_restJson1SearchResourcesCommand = async (input, context) => {
|
|
|
1177
1146
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasources/search-resources";
|
|
1178
1147
|
let body;
|
|
1179
1148
|
body = JSON.stringify({
|
|
1180
|
-
...(input.bucketCriteria
|
|
1181
|
-
input.bucketCriteria !== null && {
|
|
1149
|
+
...(input.bucketCriteria != null && {
|
|
1182
1150
|
bucketCriteria: serializeAws_restJson1SearchResourcesBucketCriteria(input.bucketCriteria, context),
|
|
1183
1151
|
}),
|
|
1184
|
-
...(input.maxResults
|
|
1185
|
-
...(input.nextToken
|
|
1186
|
-
...(input.sortCriteria
|
|
1187
|
-
input.sortCriteria !== null && {
|
|
1152
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1153
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1154
|
+
...(input.sortCriteria != null && {
|
|
1188
1155
|
sortCriteria: serializeAws_restJson1SearchResourcesSortCriteria(input.sortCriteria, context),
|
|
1189
1156
|
}),
|
|
1190
1157
|
});
|
|
@@ -1217,7 +1184,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1217
1184
|
}
|
|
1218
1185
|
let body;
|
|
1219
1186
|
body = JSON.stringify({
|
|
1220
|
-
...(input.tags
|
|
1187
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
1221
1188
|
});
|
|
1222
1189
|
return new protocol_http_1.HttpRequest({
|
|
1223
1190
|
protocol,
|
|
@@ -1238,16 +1205,13 @@ const serializeAws_restJson1TestCustomDataIdentifierCommand = async (input, cont
|
|
|
1238
1205
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/test";
|
|
1239
1206
|
let body;
|
|
1240
1207
|
body = JSON.stringify({
|
|
1241
|
-
...(input.ignoreWords
|
|
1242
|
-
input.ignoreWords !== null && {
|
|
1208
|
+
...(input.ignoreWords != null && {
|
|
1243
1209
|
ignoreWords: serializeAws_restJson1__listOf__string(input.ignoreWords, context),
|
|
1244
1210
|
}),
|
|
1245
|
-
...(input.keywords
|
|
1246
|
-
|
|
1247
|
-
...(input.
|
|
1248
|
-
|
|
1249
|
-
...(input.regex !== undefined && input.regex !== null && { regex: input.regex }),
|
|
1250
|
-
...(input.sampleText !== undefined && input.sampleText !== null && { sampleText: input.sampleText }),
|
|
1211
|
+
...(input.keywords != null && { keywords: serializeAws_restJson1__listOf__string(input.keywords, context) }),
|
|
1212
|
+
...(input.maximumMatchDistance != null && { maximumMatchDistance: input.maximumMatchDistance }),
|
|
1213
|
+
...(input.regex != null && { regex: input.regex }),
|
|
1214
|
+
...(input.sampleText != null && { sampleText: input.sampleText }),
|
|
1251
1215
|
});
|
|
1252
1216
|
return new protocol_http_1.HttpRequest({
|
|
1253
1217
|
protocol,
|
|
@@ -1308,7 +1272,7 @@ const serializeAws_restJson1UpdateClassificationJobCommand = async (input, conte
|
|
|
1308
1272
|
}
|
|
1309
1273
|
let body;
|
|
1310
1274
|
body = JSON.stringify({
|
|
1311
|
-
...(input.jobStatus
|
|
1275
|
+
...(input.jobStatus != null && { jobStatus: input.jobStatus }),
|
|
1312
1276
|
});
|
|
1313
1277
|
return new protocol_http_1.HttpRequest({
|
|
1314
1278
|
protocol,
|
|
@@ -1340,15 +1304,14 @@ const serializeAws_restJson1UpdateFindingsFilterCommand = async (input, context)
|
|
|
1340
1304
|
}
|
|
1341
1305
|
let body;
|
|
1342
1306
|
body = JSON.stringify({
|
|
1343
|
-
...(input.action
|
|
1307
|
+
...(input.action != null && { action: input.action }),
|
|
1344
1308
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1345
|
-
...(input.description
|
|
1346
|
-
...(input.findingCriteria
|
|
1347
|
-
input.findingCriteria !== null && {
|
|
1309
|
+
...(input.description != null && { description: input.description }),
|
|
1310
|
+
...(input.findingCriteria != null && {
|
|
1348
1311
|
findingCriteria: serializeAws_restJson1FindingCriteria(input.findingCriteria, context),
|
|
1349
1312
|
}),
|
|
1350
|
-
...(input.name
|
|
1351
|
-
...(input.position
|
|
1313
|
+
...(input.name != null && { name: input.name }),
|
|
1314
|
+
...(input.position != null && { position: input.position }),
|
|
1352
1315
|
});
|
|
1353
1316
|
return new protocol_http_1.HttpRequest({
|
|
1354
1317
|
protocol,
|
|
@@ -1369,9 +1332,8 @@ const serializeAws_restJson1UpdateMacieSessionCommand = async (input, context) =
|
|
|
1369
1332
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/macie";
|
|
1370
1333
|
let body;
|
|
1371
1334
|
body = JSON.stringify({
|
|
1372
|
-
...(input.findingPublishingFrequency
|
|
1373
|
-
|
|
1374
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
1335
|
+
...(input.findingPublishingFrequency != null && { findingPublishingFrequency: input.findingPublishingFrequency }),
|
|
1336
|
+
...(input.status != null && { status: input.status }),
|
|
1375
1337
|
});
|
|
1376
1338
|
return new protocol_http_1.HttpRequest({
|
|
1377
1339
|
protocol,
|
|
@@ -1402,7 +1364,7 @@ const serializeAws_restJson1UpdateMemberSessionCommand = async (input, context)
|
|
|
1402
1364
|
}
|
|
1403
1365
|
let body;
|
|
1404
1366
|
body = JSON.stringify({
|
|
1405
|
-
...(input.status
|
|
1367
|
+
...(input.status != null && { status: input.status }),
|
|
1406
1368
|
});
|
|
1407
1369
|
return new protocol_http_1.HttpRequest({
|
|
1408
1370
|
protocol,
|
|
@@ -1423,7 +1385,7 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
1423
1385
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/admin/configuration";
|
|
1424
1386
|
let body;
|
|
1425
1387
|
body = JSON.stringify({
|
|
1426
|
-
...(input.autoEnable
|
|
1388
|
+
...(input.autoEnable != null && { autoEnable: input.autoEnable }),
|
|
1427
1389
|
});
|
|
1428
1390
|
return new protocol_http_1.HttpRequest({
|
|
1429
1391
|
protocol,
|
|
@@ -1453,8 +1415,7 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
1453
1415
|
body: await parseBody(output.body, context),
|
|
1454
1416
|
};
|
|
1455
1417
|
let response;
|
|
1456
|
-
|
|
1457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1419
|
switch (errorCode) {
|
|
1459
1420
|
case "AccessDeniedException":
|
|
1460
1421
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1479,10 +1440,12 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
1479
1440
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1480
1441
|
default:
|
|
1481
1442
|
const parsedBody = parsedOutput.body;
|
|
1443
|
+
const $metadata = deserializeMetadata(output);
|
|
1444
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1482
1445
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1483
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1446
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1484
1447
|
$fault: "client",
|
|
1485
|
-
$metadata
|
|
1448
|
+
$metadata,
|
|
1486
1449
|
});
|
|
1487
1450
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1488
1451
|
}
|
|
@@ -1512,8 +1475,7 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = async
|
|
|
1512
1475
|
body: await parseBody(output.body, context),
|
|
1513
1476
|
};
|
|
1514
1477
|
let response;
|
|
1515
|
-
|
|
1516
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1517
1479
|
switch (errorCode) {
|
|
1518
1480
|
case "AccessDeniedException":
|
|
1519
1481
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1538,10 +1500,12 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = async
|
|
|
1538
1500
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1539
1501
|
default:
|
|
1540
1502
|
const parsedBody = parsedOutput.body;
|
|
1503
|
+
const $metadata = deserializeMetadata(output);
|
|
1504
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1541
1505
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1542
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1506
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1543
1507
|
$fault: "client",
|
|
1544
|
-
$metadata
|
|
1508
|
+
$metadata,
|
|
1545
1509
|
});
|
|
1546
1510
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1547
1511
|
}
|
|
@@ -1571,8 +1535,7 @@ const deserializeAws_restJson1CreateClassificationJobCommandError = async (outpu
|
|
|
1571
1535
|
body: await parseBody(output.body, context),
|
|
1572
1536
|
};
|
|
1573
1537
|
let response;
|
|
1574
|
-
|
|
1575
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1538
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
1539
|
switch (errorCode) {
|
|
1577
1540
|
case "AccessDeniedException":
|
|
1578
1541
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1597,10 +1560,12 @@ const deserializeAws_restJson1CreateClassificationJobCommandError = async (outpu
|
|
|
1597
1560
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1598
1561
|
default:
|
|
1599
1562
|
const parsedBody = parsedOutput.body;
|
|
1563
|
+
const $metadata = deserializeMetadata(output);
|
|
1564
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1600
1565
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1601
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1566
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1602
1567
|
$fault: "client",
|
|
1603
|
-
$metadata
|
|
1568
|
+
$metadata,
|
|
1604
1569
|
});
|
|
1605
1570
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1606
1571
|
}
|
|
@@ -1626,8 +1591,7 @@ const deserializeAws_restJson1CreateCustomDataIdentifierCommandError = async (ou
|
|
|
1626
1591
|
body: await parseBody(output.body, context),
|
|
1627
1592
|
};
|
|
1628
1593
|
let response;
|
|
1629
|
-
|
|
1630
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
1595
|
switch (errorCode) {
|
|
1632
1596
|
case "AccessDeniedException":
|
|
1633
1597
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1652,10 +1616,12 @@ const deserializeAws_restJson1CreateCustomDataIdentifierCommandError = async (ou
|
|
|
1652
1616
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1653
1617
|
default:
|
|
1654
1618
|
const parsedBody = parsedOutput.body;
|
|
1619
|
+
const $metadata = deserializeMetadata(output);
|
|
1620
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1655
1621
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1656
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1657
1623
|
$fault: "client",
|
|
1658
|
-
$metadata
|
|
1624
|
+
$metadata,
|
|
1659
1625
|
});
|
|
1660
1626
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1661
1627
|
}
|
|
@@ -1685,8 +1651,7 @@ const deserializeAws_restJson1CreateFindingsFilterCommandError = async (output,
|
|
|
1685
1651
|
body: await parseBody(output.body, context),
|
|
1686
1652
|
};
|
|
1687
1653
|
let response;
|
|
1688
|
-
|
|
1689
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1655
|
switch (errorCode) {
|
|
1691
1656
|
case "AccessDeniedException":
|
|
1692
1657
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1711,10 +1676,12 @@ const deserializeAws_restJson1CreateFindingsFilterCommandError = async (output,
|
|
|
1711
1676
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1712
1677
|
default:
|
|
1713
1678
|
const parsedBody = parsedOutput.body;
|
|
1679
|
+
const $metadata = deserializeMetadata(output);
|
|
1680
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1714
1681
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1682
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1716
1683
|
$fault: "client",
|
|
1717
|
-
$metadata
|
|
1684
|
+
$metadata,
|
|
1718
1685
|
});
|
|
1719
1686
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1720
1687
|
}
|
|
@@ -1740,8 +1707,7 @@ const deserializeAws_restJson1CreateInvitationsCommandError = async (output, con
|
|
|
1740
1707
|
body: await parseBody(output.body, context),
|
|
1741
1708
|
};
|
|
1742
1709
|
let response;
|
|
1743
|
-
|
|
1744
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
1711
|
switch (errorCode) {
|
|
1746
1712
|
case "AccessDeniedException":
|
|
1747
1713
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1766,10 +1732,12 @@ const deserializeAws_restJson1CreateInvitationsCommandError = async (output, con
|
|
|
1766
1732
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1767
1733
|
default:
|
|
1768
1734
|
const parsedBody = parsedOutput.body;
|
|
1735
|
+
const $metadata = deserializeMetadata(output);
|
|
1736
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1769
1737
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1770
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1738
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1771
1739
|
$fault: "client",
|
|
1772
|
-
$metadata
|
|
1740
|
+
$metadata,
|
|
1773
1741
|
});
|
|
1774
1742
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1775
1743
|
}
|
|
@@ -1795,8 +1763,7 @@ const deserializeAws_restJson1CreateMemberCommandError = async (output, context)
|
|
|
1795
1763
|
body: await parseBody(output.body, context),
|
|
1796
1764
|
};
|
|
1797
1765
|
let response;
|
|
1798
|
-
|
|
1799
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
1767
|
switch (errorCode) {
|
|
1801
1768
|
case "AccessDeniedException":
|
|
1802
1769
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1821,10 +1788,12 @@ const deserializeAws_restJson1CreateMemberCommandError = async (output, context)
|
|
|
1821
1788
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1822
1789
|
default:
|
|
1823
1790
|
const parsedBody = parsedOutput.body;
|
|
1791
|
+
const $metadata = deserializeMetadata(output);
|
|
1792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1824
1793
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1794
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1826
1795
|
$fault: "client",
|
|
1827
|
-
$metadata
|
|
1796
|
+
$metadata,
|
|
1828
1797
|
});
|
|
1829
1798
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1830
1799
|
}
|
|
@@ -1846,8 +1815,7 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
1846
1815
|
body: await parseBody(output.body, context),
|
|
1847
1816
|
};
|
|
1848
1817
|
let response;
|
|
1849
|
-
|
|
1850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
1819
|
switch (errorCode) {
|
|
1852
1820
|
case "AccessDeniedException":
|
|
1853
1821
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1872,10 +1840,12 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
1872
1840
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1873
1841
|
default:
|
|
1874
1842
|
const parsedBody = parsedOutput.body;
|
|
1843
|
+
const $metadata = deserializeMetadata(output);
|
|
1844
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1875
1845
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1876
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1846
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1877
1847
|
$fault: "client",
|
|
1878
|
-
$metadata
|
|
1848
|
+
$metadata,
|
|
1879
1849
|
});
|
|
1880
1850
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1881
1851
|
}
|
|
@@ -1901,8 +1871,7 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
1901
1871
|
body: await parseBody(output.body, context),
|
|
1902
1872
|
};
|
|
1903
1873
|
let response;
|
|
1904
|
-
|
|
1905
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
1875
|
switch (errorCode) {
|
|
1907
1876
|
case "AccessDeniedException":
|
|
1908
1877
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1927,10 +1896,12 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
1927
1896
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1928
1897
|
default:
|
|
1929
1898
|
const parsedBody = parsedOutput.body;
|
|
1899
|
+
const $metadata = deserializeMetadata(output);
|
|
1900
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1930
1901
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1931
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1902
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1932
1903
|
$fault: "client",
|
|
1933
|
-
$metadata
|
|
1904
|
+
$metadata,
|
|
1934
1905
|
});
|
|
1935
1906
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1936
1907
|
}
|
|
@@ -1952,8 +1923,7 @@ const deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = async (ou
|
|
|
1952
1923
|
body: await parseBody(output.body, context),
|
|
1953
1924
|
};
|
|
1954
1925
|
let response;
|
|
1955
|
-
|
|
1956
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1926
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
1927
|
switch (errorCode) {
|
|
1958
1928
|
case "AccessDeniedException":
|
|
1959
1929
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -1978,10 +1948,12 @@ const deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = async (ou
|
|
|
1978
1948
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1979
1949
|
default:
|
|
1980
1950
|
const parsedBody = parsedOutput.body;
|
|
1951
|
+
const $metadata = deserializeMetadata(output);
|
|
1952
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1981
1953
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
1982
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1954
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1983
1955
|
$fault: "client",
|
|
1984
|
-
$metadata
|
|
1956
|
+
$metadata,
|
|
1985
1957
|
});
|
|
1986
1958
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1987
1959
|
}
|
|
@@ -2003,8 +1975,7 @@ const deserializeAws_restJson1DeleteFindingsFilterCommandError = async (output,
|
|
|
2003
1975
|
body: await parseBody(output.body, context),
|
|
2004
1976
|
};
|
|
2005
1977
|
let response;
|
|
2006
|
-
|
|
2007
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1978
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
1979
|
switch (errorCode) {
|
|
2009
1980
|
case "AccessDeniedException":
|
|
2010
1981
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2029,10 +2000,12 @@ const deserializeAws_restJson1DeleteFindingsFilterCommandError = async (output,
|
|
|
2029
2000
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2030
2001
|
default:
|
|
2031
2002
|
const parsedBody = parsedOutput.body;
|
|
2003
|
+
const $metadata = deserializeMetadata(output);
|
|
2004
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2032
2005
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2033
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2006
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2034
2007
|
$fault: "client",
|
|
2035
|
-
$metadata
|
|
2008
|
+
$metadata,
|
|
2036
2009
|
});
|
|
2037
2010
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2038
2011
|
}
|
|
@@ -2058,8 +2031,7 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2058
2031
|
body: await parseBody(output.body, context),
|
|
2059
2032
|
};
|
|
2060
2033
|
let response;
|
|
2061
|
-
|
|
2062
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2034
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2063
2035
|
switch (errorCode) {
|
|
2064
2036
|
case "AccessDeniedException":
|
|
2065
2037
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2084,10 +2056,12 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2084
2056
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2085
2057
|
default:
|
|
2086
2058
|
const parsedBody = parsedOutput.body;
|
|
2059
|
+
const $metadata = deserializeMetadata(output);
|
|
2060
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2087
2061
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2062
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2089
2063
|
$fault: "client",
|
|
2090
|
-
$metadata
|
|
2064
|
+
$metadata,
|
|
2091
2065
|
});
|
|
2092
2066
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2093
2067
|
}
|
|
@@ -2109,8 +2083,7 @@ const deserializeAws_restJson1DeleteMemberCommandError = async (output, context)
|
|
|
2109
2083
|
body: await parseBody(output.body, context),
|
|
2110
2084
|
};
|
|
2111
2085
|
let response;
|
|
2112
|
-
|
|
2113
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2086
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
2087
|
switch (errorCode) {
|
|
2115
2088
|
case "AccessDeniedException":
|
|
2116
2089
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2135,10 +2108,12 @@ const deserializeAws_restJson1DeleteMemberCommandError = async (output, context)
|
|
|
2135
2108
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2136
2109
|
default:
|
|
2137
2110
|
const parsedBody = parsedOutput.body;
|
|
2111
|
+
const $metadata = deserializeMetadata(output);
|
|
2112
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2138
2113
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2139
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2114
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2140
2115
|
$fault: "client",
|
|
2141
|
-
$metadata
|
|
2116
|
+
$metadata,
|
|
2142
2117
|
});
|
|
2143
2118
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2144
2119
|
}
|
|
@@ -2168,8 +2143,7 @@ const deserializeAws_restJson1DescribeBucketsCommandError = async (output, conte
|
|
|
2168
2143
|
body: await parseBody(output.body, context),
|
|
2169
2144
|
};
|
|
2170
2145
|
let response;
|
|
2171
|
-
|
|
2172
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2146
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
2147
|
switch (errorCode) {
|
|
2174
2148
|
case "AccessDeniedException":
|
|
2175
2149
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2194,10 +2168,12 @@ const deserializeAws_restJson1DescribeBucketsCommandError = async (output, conte
|
|
|
2194
2168
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2195
2169
|
default:
|
|
2196
2170
|
const parsedBody = parsedOutput.body;
|
|
2171
|
+
const $metadata = deserializeMetadata(output);
|
|
2172
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2197
2173
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2198
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2199
2175
|
$fault: "client",
|
|
2200
|
-
$metadata
|
|
2176
|
+
$metadata,
|
|
2201
2177
|
});
|
|
2202
2178
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2203
2179
|
}
|
|
@@ -2299,8 +2275,7 @@ const deserializeAws_restJson1DescribeClassificationJobCommandError = async (out
|
|
|
2299
2275
|
body: await parseBody(output.body, context),
|
|
2300
2276
|
};
|
|
2301
2277
|
let response;
|
|
2302
|
-
|
|
2303
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
2279
|
switch (errorCode) {
|
|
2305
2280
|
case "AccessDeniedException":
|
|
2306
2281
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2325,10 +2300,12 @@ const deserializeAws_restJson1DescribeClassificationJobCommandError = async (out
|
|
|
2325
2300
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2326
2301
|
default:
|
|
2327
2302
|
const parsedBody = parsedOutput.body;
|
|
2303
|
+
const $metadata = deserializeMetadata(output);
|
|
2304
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2328
2305
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2329
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2306
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2330
2307
|
$fault: "client",
|
|
2331
|
-
$metadata
|
|
2308
|
+
$metadata,
|
|
2332
2309
|
});
|
|
2333
2310
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2334
2311
|
}
|
|
@@ -2358,8 +2335,7 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2358
2335
|
body: await parseBody(output.body, context),
|
|
2359
2336
|
};
|
|
2360
2337
|
let response;
|
|
2361
|
-
|
|
2362
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2338
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2363
2339
|
switch (errorCode) {
|
|
2364
2340
|
case "AccessDeniedException":
|
|
2365
2341
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2384,10 +2360,12 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2384
2360
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2385
2361
|
default:
|
|
2386
2362
|
const parsedBody = parsedOutput.body;
|
|
2363
|
+
const $metadata = deserializeMetadata(output);
|
|
2364
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2387
2365
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2388
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2366
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2389
2367
|
$fault: "client",
|
|
2390
|
-
$metadata
|
|
2368
|
+
$metadata,
|
|
2391
2369
|
});
|
|
2392
2370
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2393
2371
|
}
|
|
@@ -2409,8 +2387,7 @@ const deserializeAws_restJson1DisableMacieCommandError = async (output, context)
|
|
|
2409
2387
|
body: await parseBody(output.body, context),
|
|
2410
2388
|
};
|
|
2411
2389
|
let response;
|
|
2412
|
-
|
|
2413
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
2391
|
switch (errorCode) {
|
|
2415
2392
|
case "AccessDeniedException":
|
|
2416
2393
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2435,10 +2412,12 @@ const deserializeAws_restJson1DisableMacieCommandError = async (output, context)
|
|
|
2435
2412
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2436
2413
|
default:
|
|
2437
2414
|
const parsedBody = parsedOutput.body;
|
|
2415
|
+
const $metadata = deserializeMetadata(output);
|
|
2416
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2438
2417
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2439
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2440
2419
|
$fault: "client",
|
|
2441
|
-
$metadata
|
|
2420
|
+
$metadata,
|
|
2442
2421
|
});
|
|
2443
2422
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2444
2423
|
}
|
|
@@ -2460,8 +2439,7 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2460
2439
|
body: await parseBody(output.body, context),
|
|
2461
2440
|
};
|
|
2462
2441
|
let response;
|
|
2463
|
-
|
|
2464
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
2443
|
switch (errorCode) {
|
|
2466
2444
|
case "AccessDeniedException":
|
|
2467
2445
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2486,10 +2464,12 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2486
2464
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2487
2465
|
default:
|
|
2488
2466
|
const parsedBody = parsedOutput.body;
|
|
2467
|
+
const $metadata = deserializeMetadata(output);
|
|
2468
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2489
2469
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2490
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2470
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2491
2471
|
$fault: "client",
|
|
2492
|
-
$metadata
|
|
2472
|
+
$metadata,
|
|
2493
2473
|
});
|
|
2494
2474
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2495
2475
|
}
|
|
@@ -2511,8 +2491,7 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2511
2491
|
body: await parseBody(output.body, context),
|
|
2512
2492
|
};
|
|
2513
2493
|
let response;
|
|
2514
|
-
|
|
2515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
2495
|
switch (errorCode) {
|
|
2517
2496
|
case "AccessDeniedException":
|
|
2518
2497
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2537,10 +2516,12 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2537
2516
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2538
2517
|
default:
|
|
2539
2518
|
const parsedBody = parsedOutput.body;
|
|
2519
|
+
const $metadata = deserializeMetadata(output);
|
|
2520
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2540
2521
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2541
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2542
2523
|
$fault: "client",
|
|
2543
|
-
$metadata
|
|
2524
|
+
$metadata,
|
|
2544
2525
|
});
|
|
2545
2526
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2546
2527
|
}
|
|
@@ -2562,8 +2543,7 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2562
2543
|
body: await parseBody(output.body, context),
|
|
2563
2544
|
};
|
|
2564
2545
|
let response;
|
|
2565
|
-
|
|
2566
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
2547
|
switch (errorCode) {
|
|
2568
2548
|
case "AccessDeniedException":
|
|
2569
2549
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2588,10 +2568,12 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2588
2568
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2589
2569
|
default:
|
|
2590
2570
|
const parsedBody = parsedOutput.body;
|
|
2571
|
+
const $metadata = deserializeMetadata(output);
|
|
2572
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2591
2573
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2592
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2574
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2593
2575
|
$fault: "client",
|
|
2594
|
-
$metadata
|
|
2576
|
+
$metadata,
|
|
2595
2577
|
});
|
|
2596
2578
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2597
2579
|
}
|
|
@@ -2613,8 +2595,7 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
2613
2595
|
body: await parseBody(output.body, context),
|
|
2614
2596
|
};
|
|
2615
2597
|
let response;
|
|
2616
|
-
|
|
2617
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2598
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
2599
|
switch (errorCode) {
|
|
2619
2600
|
case "AccessDeniedException":
|
|
2620
2601
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2639,10 +2620,12 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
2639
2620
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2640
2621
|
default:
|
|
2641
2622
|
const parsedBody = parsedOutput.body;
|
|
2623
|
+
const $metadata = deserializeMetadata(output);
|
|
2624
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2642
2625
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2626
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2644
2627
|
$fault: "client",
|
|
2645
|
-
$metadata
|
|
2628
|
+
$metadata,
|
|
2646
2629
|
});
|
|
2647
2630
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2648
2631
|
}
|
|
@@ -2664,8 +2647,7 @@ const deserializeAws_restJson1EnableMacieCommandError = async (output, context)
|
|
|
2664
2647
|
body: await parseBody(output.body, context),
|
|
2665
2648
|
};
|
|
2666
2649
|
let response;
|
|
2667
|
-
|
|
2668
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2669
2651
|
switch (errorCode) {
|
|
2670
2652
|
case "AccessDeniedException":
|
|
2671
2653
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2690,10 +2672,12 @@ const deserializeAws_restJson1EnableMacieCommandError = async (output, context)
|
|
|
2690
2672
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2691
2673
|
default:
|
|
2692
2674
|
const parsedBody = parsedOutput.body;
|
|
2675
|
+
const $metadata = deserializeMetadata(output);
|
|
2676
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2693
2677
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2678
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2695
2679
|
$fault: "client",
|
|
2696
|
-
$metadata
|
|
2680
|
+
$metadata,
|
|
2697
2681
|
});
|
|
2698
2682
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2699
2683
|
}
|
|
@@ -2715,8 +2699,7 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2715
2699
|
body: await parseBody(output.body, context),
|
|
2716
2700
|
};
|
|
2717
2701
|
let response;
|
|
2718
|
-
|
|
2719
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2702
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2720
2703
|
switch (errorCode) {
|
|
2721
2704
|
case "AccessDeniedException":
|
|
2722
2705
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2741,10 +2724,12 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2741
2724
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2742
2725
|
default:
|
|
2743
2726
|
const parsedBody = parsedOutput.body;
|
|
2727
|
+
const $metadata = deserializeMetadata(output);
|
|
2728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2744
2729
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2746
2731
|
$fault: "client",
|
|
2747
|
-
$metadata
|
|
2732
|
+
$metadata,
|
|
2748
2733
|
});
|
|
2749
2734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2750
2735
|
}
|
|
@@ -2770,8 +2755,7 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
2770
2755
|
body: await parseBody(output.body, context),
|
|
2771
2756
|
};
|
|
2772
2757
|
let response;
|
|
2773
|
-
|
|
2774
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2775
2759
|
switch (errorCode) {
|
|
2776
2760
|
case "AccessDeniedException":
|
|
2777
2761
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2796,10 +2780,12 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
2796
2780
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2797
2781
|
default:
|
|
2798
2782
|
const parsedBody = parsedOutput.body;
|
|
2783
|
+
const $metadata = deserializeMetadata(output);
|
|
2784
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2799
2785
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2786
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2801
2787
|
$fault: "client",
|
|
2802
|
-
$metadata
|
|
2788
|
+
$metadata,
|
|
2803
2789
|
});
|
|
2804
2790
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2805
2791
|
}
|
|
@@ -2875,8 +2861,7 @@ const deserializeAws_restJson1GetBucketStatisticsCommandError = async (output, c
|
|
|
2875
2861
|
body: await parseBody(output.body, context),
|
|
2876
2862
|
};
|
|
2877
2863
|
let response;
|
|
2878
|
-
|
|
2879
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2880
2865
|
switch (errorCode) {
|
|
2881
2866
|
case "AccessDeniedException":
|
|
2882
2867
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2901,10 +2886,12 @@ const deserializeAws_restJson1GetBucketStatisticsCommandError = async (output, c
|
|
|
2901
2886
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2902
2887
|
default:
|
|
2903
2888
|
const parsedBody = parsedOutput.body;
|
|
2889
|
+
const $metadata = deserializeMetadata(output);
|
|
2890
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2904
2891
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2905
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2906
2893
|
$fault: "client",
|
|
2907
|
-
$metadata
|
|
2894
|
+
$metadata,
|
|
2908
2895
|
});
|
|
2909
2896
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2910
2897
|
}
|
|
@@ -2930,8 +2917,7 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
|
|
|
2930
2917
|
body: await parseBody(output.body, context),
|
|
2931
2918
|
};
|
|
2932
2919
|
let response;
|
|
2933
|
-
|
|
2934
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
2921
|
switch (errorCode) {
|
|
2936
2922
|
case "AccessDeniedException":
|
|
2937
2923
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -2956,10 +2942,12 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
|
|
|
2956
2942
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2957
2943
|
default:
|
|
2958
2944
|
const parsedBody = parsedOutput.body;
|
|
2945
|
+
const $metadata = deserializeMetadata(output);
|
|
2946
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2959
2947
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
2960
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2948
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2961
2949
|
$fault: "client",
|
|
2962
|
-
$metadata
|
|
2950
|
+
$metadata,
|
|
2963
2951
|
});
|
|
2964
2952
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2965
2953
|
}
|
|
@@ -3029,8 +3017,7 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommandError = async (outpu
|
|
|
3029
3017
|
body: await parseBody(output.body, context),
|
|
3030
3018
|
};
|
|
3031
3019
|
let response;
|
|
3032
|
-
|
|
3033
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3020
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3034
3021
|
switch (errorCode) {
|
|
3035
3022
|
case "AccessDeniedException":
|
|
3036
3023
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3055,10 +3042,12 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommandError = async (outpu
|
|
|
3055
3042
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3056
3043
|
default:
|
|
3057
3044
|
const parsedBody = parsedOutput.body;
|
|
3045
|
+
const $metadata = deserializeMetadata(output);
|
|
3046
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3058
3047
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3059
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3048
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3060
3049
|
$fault: "client",
|
|
3061
|
-
$metadata
|
|
3050
|
+
$metadata,
|
|
3062
3051
|
});
|
|
3063
3052
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3064
3053
|
}
|
|
@@ -3084,8 +3073,7 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3084
3073
|
body: await parseBody(output.body, context),
|
|
3085
3074
|
};
|
|
3086
3075
|
let response;
|
|
3087
|
-
|
|
3088
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3076
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3089
3077
|
switch (errorCode) {
|
|
3090
3078
|
case "AccessDeniedException":
|
|
3091
3079
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3110,10 +3098,12 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3110
3098
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3111
3099
|
default:
|
|
3112
3100
|
const parsedBody = parsedOutput.body;
|
|
3101
|
+
const $metadata = deserializeMetadata(output);
|
|
3102
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3113
3103
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3114
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3104
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3115
3105
|
$fault: "client",
|
|
3116
|
-
$metadata
|
|
3106
|
+
$metadata,
|
|
3117
3107
|
});
|
|
3118
3108
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3119
3109
|
}
|
|
@@ -3167,8 +3157,7 @@ const deserializeAws_restJson1GetFindingsFilterCommandError = async (output, con
|
|
|
3167
3157
|
body: await parseBody(output.body, context),
|
|
3168
3158
|
};
|
|
3169
3159
|
let response;
|
|
3170
|
-
|
|
3171
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3160
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3172
3161
|
switch (errorCode) {
|
|
3173
3162
|
case "AccessDeniedException":
|
|
3174
3163
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3193,10 +3182,12 @@ const deserializeAws_restJson1GetFindingsFilterCommandError = async (output, con
|
|
|
3193
3182
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3194
3183
|
default:
|
|
3195
3184
|
const parsedBody = parsedOutput.body;
|
|
3185
|
+
const $metadata = deserializeMetadata(output);
|
|
3186
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3196
3187
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3197
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3198
3189
|
$fault: "client",
|
|
3199
|
-
$metadata
|
|
3190
|
+
$metadata,
|
|
3200
3191
|
});
|
|
3201
3192
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3202
3193
|
}
|
|
@@ -3222,8 +3213,7 @@ const deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError =
|
|
|
3222
3213
|
body: await parseBody(output.body, context),
|
|
3223
3214
|
};
|
|
3224
3215
|
let response;
|
|
3225
|
-
|
|
3226
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3216
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3227
3217
|
switch (errorCode) {
|
|
3228
3218
|
case "AccessDeniedException":
|
|
3229
3219
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3248,10 +3238,12 @@ const deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError =
|
|
|
3248
3238
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3249
3239
|
default:
|
|
3250
3240
|
const parsedBody = parsedOutput.body;
|
|
3241
|
+
const $metadata = deserializeMetadata(output);
|
|
3242
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3251
3243
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3252
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3253
3245
|
$fault: "client",
|
|
3254
|
-
$metadata
|
|
3246
|
+
$metadata,
|
|
3255
3247
|
});
|
|
3256
3248
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3257
3249
|
}
|
|
@@ -3277,8 +3269,7 @@ const deserializeAws_restJson1GetFindingStatisticsCommandError = async (output,
|
|
|
3277
3269
|
body: await parseBody(output.body, context),
|
|
3278
3270
|
};
|
|
3279
3271
|
let response;
|
|
3280
|
-
|
|
3281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3282
3273
|
switch (errorCode) {
|
|
3283
3274
|
case "AccessDeniedException":
|
|
3284
3275
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3303,10 +3294,12 @@ const deserializeAws_restJson1GetFindingStatisticsCommandError = async (output,
|
|
|
3303
3294
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3304
3295
|
default:
|
|
3305
3296
|
const parsedBody = parsedOutput.body;
|
|
3297
|
+
const $metadata = deserializeMetadata(output);
|
|
3298
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3306
3299
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3300
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3308
3301
|
$fault: "client",
|
|
3309
|
-
$metadata
|
|
3302
|
+
$metadata,
|
|
3310
3303
|
});
|
|
3311
3304
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3312
3305
|
}
|
|
@@ -3332,8 +3325,7 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3332
3325
|
body: await parseBody(output.body, context),
|
|
3333
3326
|
};
|
|
3334
3327
|
let response;
|
|
3335
|
-
|
|
3336
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3337
3329
|
switch (errorCode) {
|
|
3338
3330
|
case "AccessDeniedException":
|
|
3339
3331
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3358,10 +3350,12 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3358
3350
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3359
3351
|
default:
|
|
3360
3352
|
const parsedBody = parsedOutput.body;
|
|
3353
|
+
const $metadata = deserializeMetadata(output);
|
|
3354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3361
3355
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3363
3357
|
$fault: "client",
|
|
3364
|
-
$metadata
|
|
3358
|
+
$metadata,
|
|
3365
3359
|
});
|
|
3366
3360
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3367
3361
|
}
|
|
@@ -3403,8 +3397,7 @@ const deserializeAws_restJson1GetMacieSessionCommandError = async (output, conte
|
|
|
3403
3397
|
body: await parseBody(output.body, context),
|
|
3404
3398
|
};
|
|
3405
3399
|
let response;
|
|
3406
|
-
|
|
3407
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3400
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3408
3401
|
switch (errorCode) {
|
|
3409
3402
|
case "AccessDeniedException":
|
|
3410
3403
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3429,10 +3422,12 @@ const deserializeAws_restJson1GetMacieSessionCommandError = async (output, conte
|
|
|
3429
3422
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3430
3423
|
default:
|
|
3431
3424
|
const parsedBody = parsedOutput.body;
|
|
3425
|
+
const $metadata = deserializeMetadata(output);
|
|
3426
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3432
3427
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3433
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3428
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3434
3429
|
$fault: "client",
|
|
3435
|
-
$metadata
|
|
3430
|
+
$metadata,
|
|
3436
3431
|
});
|
|
3437
3432
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3438
3433
|
}
|
|
@@ -3458,8 +3453,7 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3458
3453
|
body: await parseBody(output.body, context),
|
|
3459
3454
|
};
|
|
3460
3455
|
let response;
|
|
3461
|
-
|
|
3462
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3456
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3463
3457
|
switch (errorCode) {
|
|
3464
3458
|
case "AccessDeniedException":
|
|
3465
3459
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3484,10 +3478,12 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3484
3478
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3485
3479
|
default:
|
|
3486
3480
|
const parsedBody = parsedOutput.body;
|
|
3481
|
+
const $metadata = deserializeMetadata(output);
|
|
3482
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3487
3483
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3488
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3484
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3489
3485
|
$fault: "client",
|
|
3490
|
-
$metadata
|
|
3486
|
+
$metadata,
|
|
3491
3487
|
});
|
|
3492
3488
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3493
3489
|
}
|
|
@@ -3545,8 +3541,7 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3545
3541
|
body: await parseBody(output.body, context),
|
|
3546
3542
|
};
|
|
3547
3543
|
let response;
|
|
3548
|
-
|
|
3549
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3550
3545
|
switch (errorCode) {
|
|
3551
3546
|
case "AccessDeniedException":
|
|
3552
3547
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3571,10 +3566,12 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3571
3566
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3572
3567
|
default:
|
|
3573
3568
|
const parsedBody = parsedOutput.body;
|
|
3569
|
+
const $metadata = deserializeMetadata(output);
|
|
3570
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3574
3571
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3572
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3576
3573
|
$fault: "client",
|
|
3577
|
-
$metadata
|
|
3574
|
+
$metadata,
|
|
3578
3575
|
});
|
|
3579
3576
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3580
3577
|
}
|
|
@@ -3608,8 +3605,7 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3608
3605
|
body: await parseBody(output.body, context),
|
|
3609
3606
|
};
|
|
3610
3607
|
let response;
|
|
3611
|
-
|
|
3612
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3608
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3613
3609
|
switch (errorCode) {
|
|
3614
3610
|
case "AccessDeniedException":
|
|
3615
3611
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3634,10 +3630,12 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3634
3630
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3635
3631
|
default:
|
|
3636
3632
|
const parsedBody = parsedOutput.body;
|
|
3633
|
+
const $metadata = deserializeMetadata(output);
|
|
3634
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3637
3635
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3638
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3639
3637
|
$fault: "client",
|
|
3640
|
-
$metadata
|
|
3638
|
+
$metadata,
|
|
3641
3639
|
});
|
|
3642
3640
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3643
3641
|
}
|
|
@@ -3667,8 +3665,7 @@ const deserializeAws_restJson1GetUsageTotalsCommandError = async (output, contex
|
|
|
3667
3665
|
body: await parseBody(output.body, context),
|
|
3668
3666
|
};
|
|
3669
3667
|
let response;
|
|
3670
|
-
|
|
3671
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3668
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3672
3669
|
switch (errorCode) {
|
|
3673
3670
|
case "AccessDeniedException":
|
|
3674
3671
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3693,10 +3690,12 @@ const deserializeAws_restJson1GetUsageTotalsCommandError = async (output, contex
|
|
|
3693
3690
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3694
3691
|
default:
|
|
3695
3692
|
const parsedBody = parsedOutput.body;
|
|
3693
|
+
const $metadata = deserializeMetadata(output);
|
|
3694
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3696
3695
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3697
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3696
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3698
3697
|
$fault: "client",
|
|
3699
|
-
$metadata
|
|
3698
|
+
$metadata,
|
|
3700
3699
|
});
|
|
3701
3700
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3702
3701
|
}
|
|
@@ -3726,8 +3725,7 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
|
|
|
3726
3725
|
body: await parseBody(output.body, context),
|
|
3727
3726
|
};
|
|
3728
3727
|
let response;
|
|
3729
|
-
|
|
3730
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3728
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3731
3729
|
switch (errorCode) {
|
|
3732
3730
|
case "AccessDeniedException":
|
|
3733
3731
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3752,10 +3750,12 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
|
|
|
3752
3750
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3753
3751
|
default:
|
|
3754
3752
|
const parsedBody = parsedOutput.body;
|
|
3753
|
+
const $metadata = deserializeMetadata(output);
|
|
3754
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3755
3755
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3756
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3757
3757
|
$fault: "client",
|
|
3758
|
-
$metadata
|
|
3758
|
+
$metadata,
|
|
3759
3759
|
});
|
|
3760
3760
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3761
3761
|
}
|
|
@@ -3785,8 +3785,7 @@ const deserializeAws_restJson1ListCustomDataIdentifiersCommandError = async (out
|
|
|
3785
3785
|
body: await parseBody(output.body, context),
|
|
3786
3786
|
};
|
|
3787
3787
|
let response;
|
|
3788
|
-
|
|
3789
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3790
3789
|
switch (errorCode) {
|
|
3791
3790
|
case "AccessDeniedException":
|
|
3792
3791
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3811,10 +3810,12 @@ const deserializeAws_restJson1ListCustomDataIdentifiersCommandError = async (out
|
|
|
3811
3810
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3812
3811
|
default:
|
|
3813
3812
|
const parsedBody = parsedOutput.body;
|
|
3813
|
+
const $metadata = deserializeMetadata(output);
|
|
3814
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3814
3815
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3815
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3816
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3816
3817
|
$fault: "client",
|
|
3817
|
-
$metadata
|
|
3818
|
+
$metadata,
|
|
3818
3819
|
});
|
|
3819
3820
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3820
3821
|
}
|
|
@@ -3844,8 +3845,7 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3844
3845
|
body: await parseBody(output.body, context),
|
|
3845
3846
|
};
|
|
3846
3847
|
let response;
|
|
3847
|
-
|
|
3848
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3848
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3849
3849
|
switch (errorCode) {
|
|
3850
3850
|
case "AccessDeniedException":
|
|
3851
3851
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3870,10 +3870,12 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3870
3870
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3871
3871
|
default:
|
|
3872
3872
|
const parsedBody = parsedOutput.body;
|
|
3873
|
+
const $metadata = deserializeMetadata(output);
|
|
3874
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3873
3875
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3874
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3876
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3875
3877
|
$fault: "client",
|
|
3876
|
-
$metadata
|
|
3878
|
+
$metadata,
|
|
3877
3879
|
});
|
|
3878
3880
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3879
3881
|
}
|
|
@@ -3903,8 +3905,7 @@ const deserializeAws_restJson1ListFindingsFiltersCommandError = async (output, c
|
|
|
3903
3905
|
body: await parseBody(output.body, context),
|
|
3904
3906
|
};
|
|
3905
3907
|
let response;
|
|
3906
|
-
|
|
3907
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3908
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3908
3909
|
switch (errorCode) {
|
|
3909
3910
|
case "AccessDeniedException":
|
|
3910
3911
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3929,10 +3930,12 @@ const deserializeAws_restJson1ListFindingsFiltersCommandError = async (output, c
|
|
|
3929
3930
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3930
3931
|
default:
|
|
3931
3932
|
const parsedBody = parsedOutput.body;
|
|
3933
|
+
const $metadata = deserializeMetadata(output);
|
|
3934
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3932
3935
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3933
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3936
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3934
3937
|
$fault: "client",
|
|
3935
|
-
$metadata
|
|
3938
|
+
$metadata,
|
|
3936
3939
|
});
|
|
3937
3940
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3938
3941
|
}
|
|
@@ -3962,8 +3965,7 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3962
3965
|
body: await parseBody(output.body, context),
|
|
3963
3966
|
};
|
|
3964
3967
|
let response;
|
|
3965
|
-
|
|
3966
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3968
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3967
3969
|
switch (errorCode) {
|
|
3968
3970
|
case "AccessDeniedException":
|
|
3969
3971
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -3988,10 +3990,12 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3988
3990
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3989
3991
|
default:
|
|
3990
3992
|
const parsedBody = parsedOutput.body;
|
|
3993
|
+
const $metadata = deserializeMetadata(output);
|
|
3994
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3991
3995
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3992
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3996
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3993
3997
|
$fault: "client",
|
|
3994
|
-
$metadata
|
|
3998
|
+
$metadata,
|
|
3995
3999
|
});
|
|
3996
4000
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3997
4001
|
}
|
|
@@ -4021,15 +4025,16 @@ const deserializeAws_restJson1ListManagedDataIdentifiersCommandError = async (ou
|
|
|
4021
4025
|
body: await parseBody(output.body, context),
|
|
4022
4026
|
};
|
|
4023
4027
|
let response;
|
|
4024
|
-
|
|
4025
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4026
4029
|
switch (errorCode) {
|
|
4027
4030
|
default:
|
|
4028
4031
|
const parsedBody = parsedOutput.body;
|
|
4032
|
+
const $metadata = deserializeMetadata(output);
|
|
4033
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4029
4034
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4035
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4031
4036
|
$fault: "client",
|
|
4032
|
-
$metadata
|
|
4037
|
+
$metadata,
|
|
4033
4038
|
});
|
|
4034
4039
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4035
4040
|
}
|
|
@@ -4059,8 +4064,7 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
4059
4064
|
body: await parseBody(output.body, context),
|
|
4060
4065
|
};
|
|
4061
4066
|
let response;
|
|
4062
|
-
|
|
4063
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4064
4068
|
switch (errorCode) {
|
|
4065
4069
|
case "AccessDeniedException":
|
|
4066
4070
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4085,10 +4089,12 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
4085
4089
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4086
4090
|
default:
|
|
4087
4091
|
const parsedBody = parsedOutput.body;
|
|
4092
|
+
const $metadata = deserializeMetadata(output);
|
|
4093
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4088
4094
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4089
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4095
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4090
4096
|
$fault: "client",
|
|
4091
|
-
$metadata
|
|
4097
|
+
$metadata,
|
|
4092
4098
|
});
|
|
4093
4099
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4094
4100
|
}
|
|
@@ -4118,8 +4124,7 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
4118
4124
|
body: await parseBody(output.body, context),
|
|
4119
4125
|
};
|
|
4120
4126
|
let response;
|
|
4121
|
-
|
|
4122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4127
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4123
4128
|
switch (errorCode) {
|
|
4124
4129
|
case "AccessDeniedException":
|
|
4125
4130
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4144,10 +4149,12 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
4144
4149
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4145
4150
|
default:
|
|
4146
4151
|
const parsedBody = parsedOutput.body;
|
|
4152
|
+
const $metadata = deserializeMetadata(output);
|
|
4153
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4147
4154
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4155
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4149
4156
|
$fault: "client",
|
|
4150
|
-
$metadata
|
|
4157
|
+
$metadata,
|
|
4151
4158
|
});
|
|
4152
4159
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4153
4160
|
}
|
|
@@ -4173,15 +4180,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4173
4180
|
body: await parseBody(output.body, context),
|
|
4174
4181
|
};
|
|
4175
4182
|
let response;
|
|
4176
|
-
|
|
4177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4183
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4178
4184
|
switch (errorCode) {
|
|
4179
4185
|
default:
|
|
4180
4186
|
const parsedBody = parsedOutput.body;
|
|
4187
|
+
const $metadata = deserializeMetadata(output);
|
|
4188
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4181
4189
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4182
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4190
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4183
4191
|
$fault: "client",
|
|
4184
|
-
$metadata
|
|
4192
|
+
$metadata,
|
|
4185
4193
|
});
|
|
4186
4194
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4187
4195
|
}
|
|
@@ -4207,8 +4215,7 @@ const deserializeAws_restJson1PutClassificationExportConfigurationCommandError =
|
|
|
4207
4215
|
body: await parseBody(output.body, context),
|
|
4208
4216
|
};
|
|
4209
4217
|
let response;
|
|
4210
|
-
|
|
4211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4218
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4212
4219
|
switch (errorCode) {
|
|
4213
4220
|
case "AccessDeniedException":
|
|
4214
4221
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4233,10 +4240,12 @@ const deserializeAws_restJson1PutClassificationExportConfigurationCommandError =
|
|
|
4233
4240
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4234
4241
|
default:
|
|
4235
4242
|
const parsedBody = parsedOutput.body;
|
|
4243
|
+
const $metadata = deserializeMetadata(output);
|
|
4244
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4236
4245
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4237
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4246
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4238
4247
|
$fault: "client",
|
|
4239
|
-
$metadata
|
|
4248
|
+
$metadata,
|
|
4240
4249
|
});
|
|
4241
4250
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4242
4251
|
}
|
|
@@ -4258,8 +4267,7 @@ const deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError =
|
|
|
4258
4267
|
body: await parseBody(output.body, context),
|
|
4259
4268
|
};
|
|
4260
4269
|
let response;
|
|
4261
|
-
|
|
4262
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4270
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4263
4271
|
switch (errorCode) {
|
|
4264
4272
|
case "AccessDeniedException":
|
|
4265
4273
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4284,10 +4292,12 @@ const deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError =
|
|
|
4284
4292
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4285
4293
|
default:
|
|
4286
4294
|
const parsedBody = parsedOutput.body;
|
|
4295
|
+
const $metadata = deserializeMetadata(output);
|
|
4296
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4287
4297
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4288
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4298
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4289
4299
|
$fault: "client",
|
|
4290
|
-
$metadata
|
|
4300
|
+
$metadata,
|
|
4291
4301
|
});
|
|
4292
4302
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4293
4303
|
}
|
|
@@ -4317,8 +4327,7 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
4317
4327
|
body: await parseBody(output.body, context),
|
|
4318
4328
|
};
|
|
4319
4329
|
let response;
|
|
4320
|
-
|
|
4321
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4330
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4322
4331
|
switch (errorCode) {
|
|
4323
4332
|
case "AccessDeniedException":
|
|
4324
4333
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4343,10 +4352,12 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
4343
4352
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4344
4353
|
default:
|
|
4345
4354
|
const parsedBody = parsedOutput.body;
|
|
4355
|
+
const $metadata = deserializeMetadata(output);
|
|
4356
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4346
4357
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4347
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4358
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4348
4359
|
$fault: "client",
|
|
4349
|
-
$metadata
|
|
4360
|
+
$metadata,
|
|
4350
4361
|
});
|
|
4351
4362
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4352
4363
|
}
|
|
@@ -4368,15 +4379,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4368
4379
|
body: await parseBody(output.body, context),
|
|
4369
4380
|
};
|
|
4370
4381
|
let response;
|
|
4371
|
-
|
|
4372
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4373
4383
|
switch (errorCode) {
|
|
4374
4384
|
default:
|
|
4375
4385
|
const parsedBody = parsedOutput.body;
|
|
4386
|
+
const $metadata = deserializeMetadata(output);
|
|
4387
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4376
4388
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4377
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4389
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4378
4390
|
$fault: "client",
|
|
4379
|
-
$metadata
|
|
4391
|
+
$metadata,
|
|
4380
4392
|
});
|
|
4381
4393
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4382
4394
|
}
|
|
@@ -4402,8 +4414,7 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (outp
|
|
|
4402
4414
|
body: await parseBody(output.body, context),
|
|
4403
4415
|
};
|
|
4404
4416
|
let response;
|
|
4405
|
-
|
|
4406
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4407
4418
|
switch (errorCode) {
|
|
4408
4419
|
case "AccessDeniedException":
|
|
4409
4420
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4428,10 +4439,12 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (outp
|
|
|
4428
4439
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4429
4440
|
default:
|
|
4430
4441
|
const parsedBody = parsedOutput.body;
|
|
4442
|
+
const $metadata = deserializeMetadata(output);
|
|
4443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4431
4444
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4432
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4433
4446
|
$fault: "client",
|
|
4434
|
-
$metadata
|
|
4447
|
+
$metadata,
|
|
4435
4448
|
});
|
|
4436
4449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4437
4450
|
}
|
|
@@ -4453,15 +4466,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4453
4466
|
body: await parseBody(output.body, context),
|
|
4454
4467
|
};
|
|
4455
4468
|
let response;
|
|
4456
|
-
|
|
4457
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4458
4470
|
switch (errorCode) {
|
|
4459
4471
|
default:
|
|
4460
4472
|
const parsedBody = parsedOutput.body;
|
|
4473
|
+
const $metadata = deserializeMetadata(output);
|
|
4474
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4461
4475
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4462
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4476
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4463
4477
|
$fault: "client",
|
|
4464
|
-
$metadata
|
|
4478
|
+
$metadata,
|
|
4465
4479
|
});
|
|
4466
4480
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4467
4481
|
}
|
|
@@ -4483,8 +4497,7 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
|
|
|
4483
4497
|
body: await parseBody(output.body, context),
|
|
4484
4498
|
};
|
|
4485
4499
|
let response;
|
|
4486
|
-
|
|
4487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4488
4501
|
switch (errorCode) {
|
|
4489
4502
|
case "AccessDeniedException":
|
|
4490
4503
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4509,10 +4522,12 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
|
|
|
4509
4522
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4510
4523
|
default:
|
|
4511
4524
|
const parsedBody = parsedOutput.body;
|
|
4525
|
+
const $metadata = deserializeMetadata(output);
|
|
4526
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4512
4527
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4513
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4514
4529
|
$fault: "client",
|
|
4515
|
-
$metadata
|
|
4530
|
+
$metadata,
|
|
4516
4531
|
});
|
|
4517
4532
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4518
4533
|
}
|
|
@@ -4542,8 +4557,7 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
|
|
|
4542
4557
|
body: await parseBody(output.body, context),
|
|
4543
4558
|
};
|
|
4544
4559
|
let response;
|
|
4545
|
-
|
|
4546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4560
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4547
4561
|
switch (errorCode) {
|
|
4548
4562
|
case "AccessDeniedException":
|
|
4549
4563
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4568,10 +4582,12 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
|
|
|
4568
4582
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4569
4583
|
default:
|
|
4570
4584
|
const parsedBody = parsedOutput.body;
|
|
4585
|
+
const $metadata = deserializeMetadata(output);
|
|
4586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4571
4587
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4572
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4573
4589
|
$fault: "client",
|
|
4574
|
-
$metadata
|
|
4590
|
+
$metadata,
|
|
4575
4591
|
});
|
|
4576
4592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4577
4593
|
}
|
|
@@ -4593,8 +4609,7 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
|
|
|
4593
4609
|
body: await parseBody(output.body, context),
|
|
4594
4610
|
};
|
|
4595
4611
|
let response;
|
|
4596
|
-
|
|
4597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4598
4613
|
switch (errorCode) {
|
|
4599
4614
|
case "AccessDeniedException":
|
|
4600
4615
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4619,10 +4634,12 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
|
|
|
4619
4634
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4620
4635
|
default:
|
|
4621
4636
|
const parsedBody = parsedOutput.body;
|
|
4637
|
+
const $metadata = deserializeMetadata(output);
|
|
4638
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4622
4639
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4623
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4640
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4624
4641
|
$fault: "client",
|
|
4625
|
-
$metadata
|
|
4642
|
+
$metadata,
|
|
4626
4643
|
});
|
|
4627
4644
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4628
4645
|
}
|
|
@@ -4644,8 +4661,7 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4644
4661
|
body: await parseBody(output.body, context),
|
|
4645
4662
|
};
|
|
4646
4663
|
let response;
|
|
4647
|
-
|
|
4648
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4664
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4649
4665
|
switch (errorCode) {
|
|
4650
4666
|
case "AccessDeniedException":
|
|
4651
4667
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4670,10 +4686,12 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4670
4686
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4671
4687
|
default:
|
|
4672
4688
|
const parsedBody = parsedOutput.body;
|
|
4689
|
+
const $metadata = deserializeMetadata(output);
|
|
4690
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4673
4691
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4674
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4692
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4675
4693
|
$fault: "client",
|
|
4676
|
-
$metadata
|
|
4694
|
+
$metadata,
|
|
4677
4695
|
});
|
|
4678
4696
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4679
4697
|
}
|
|
@@ -4695,8 +4713,7 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4695
4713
|
body: await parseBody(output.body, context),
|
|
4696
4714
|
};
|
|
4697
4715
|
let response;
|
|
4698
|
-
|
|
4699
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4700
4717
|
switch (errorCode) {
|
|
4701
4718
|
case "AccessDeniedException":
|
|
4702
4719
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
@@ -4721,10 +4738,12 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4721
4738
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4722
4739
|
default:
|
|
4723
4740
|
const parsedBody = parsedOutput.body;
|
|
4741
|
+
const $metadata = deserializeMetadata(output);
|
|
4742
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4724
4743
|
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
4725
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4744
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4726
4745
|
$fault: "client",
|
|
4727
|
-
$metadata
|
|
4746
|
+
$metadata,
|
|
4728
4747
|
});
|
|
4729
4748
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4730
4749
|
}
|
|
@@ -4925,8 +4944,8 @@ const serializeAws_restJson1__listOfUsageStatisticsFilter = (input, context) =>
|
|
|
4925
4944
|
};
|
|
4926
4945
|
const serializeAws_restJson1AccountDetail = (input, context) => {
|
|
4927
4946
|
return {
|
|
4928
|
-
...(input.accountId
|
|
4929
|
-
...(input.email
|
|
4947
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
4948
|
+
...(input.email != null && { email: input.email }),
|
|
4930
4949
|
};
|
|
4931
4950
|
};
|
|
4932
4951
|
const serializeAws_restJson1BucketCriteria = (input, context) => {
|
|
@@ -4942,45 +4961,39 @@ const serializeAws_restJson1BucketCriteria = (input, context) => {
|
|
|
4942
4961
|
};
|
|
4943
4962
|
const serializeAws_restJson1BucketCriteriaAdditionalProperties = (input, context) => {
|
|
4944
4963
|
return {
|
|
4945
|
-
...(input.eq
|
|
4946
|
-
|
|
4947
|
-
...(input.
|
|
4948
|
-
...(input.
|
|
4949
|
-
...(input.
|
|
4950
|
-
...(input.
|
|
4951
|
-
...(input.
|
|
4952
|
-
input.neq !== null && { neq: serializeAws_restJson1__listOf__string(input.neq, context) }),
|
|
4953
|
-
...(input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }),
|
|
4964
|
+
...(input.eq != null && { eq: serializeAws_restJson1__listOf__string(input.eq, context) }),
|
|
4965
|
+
...(input.gt != null && { gt: input.gt }),
|
|
4966
|
+
...(input.gte != null && { gte: input.gte }),
|
|
4967
|
+
...(input.lt != null && { lt: input.lt }),
|
|
4968
|
+
...(input.lte != null && { lte: input.lte }),
|
|
4969
|
+
...(input.neq != null && { neq: serializeAws_restJson1__listOf__string(input.neq, context) }),
|
|
4970
|
+
...(input.prefix != null && { prefix: input.prefix }),
|
|
4954
4971
|
};
|
|
4955
4972
|
};
|
|
4956
4973
|
const serializeAws_restJson1BucketSortCriteria = (input, context) => {
|
|
4957
4974
|
return {
|
|
4958
|
-
...(input.attributeName
|
|
4959
|
-
...(input.orderBy
|
|
4975
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
4976
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
4960
4977
|
};
|
|
4961
4978
|
};
|
|
4962
4979
|
const serializeAws_restJson1ClassificationExportConfiguration = (input, context) => {
|
|
4963
4980
|
return {
|
|
4964
|
-
...(input.s3Destination
|
|
4965
|
-
input.s3Destination !== null && {
|
|
4981
|
+
...(input.s3Destination != null && {
|
|
4966
4982
|
s3Destination: serializeAws_restJson1S3Destination(input.s3Destination, context),
|
|
4967
4983
|
}),
|
|
4968
4984
|
};
|
|
4969
4985
|
};
|
|
4970
4986
|
const serializeAws_restJson1CriteriaBlockForJob = (input, context) => {
|
|
4971
4987
|
return {
|
|
4972
|
-
...(input.and
|
|
4973
|
-
input.and !== null && { and: serializeAws_restJson1__listOfCriteriaForJob(input.and, context) }),
|
|
4988
|
+
...(input.and != null && { and: serializeAws_restJson1__listOfCriteriaForJob(input.and, context) }),
|
|
4974
4989
|
};
|
|
4975
4990
|
};
|
|
4976
4991
|
const serializeAws_restJson1CriteriaForJob = (input, context) => {
|
|
4977
4992
|
return {
|
|
4978
|
-
...(input.simpleCriterion
|
|
4979
|
-
input.simpleCriterion !== null && {
|
|
4993
|
+
...(input.simpleCriterion != null && {
|
|
4980
4994
|
simpleCriterion: serializeAws_restJson1SimpleCriterionForJob(input.simpleCriterion, context),
|
|
4981
4995
|
}),
|
|
4982
|
-
...(input.tagCriterion
|
|
4983
|
-
input.tagCriterion !== null && {
|
|
4996
|
+
...(input.tagCriterion != null && {
|
|
4984
4997
|
tagCriterion: serializeAws_restJson1TagCriterionForJob(input.tagCriterion, context),
|
|
4985
4998
|
}),
|
|
4986
4999
|
};
|
|
@@ -4998,18 +5011,15 @@ const serializeAws_restJson1Criterion = (input, context) => {
|
|
|
4998
5011
|
};
|
|
4999
5012
|
const serializeAws_restJson1CriterionAdditionalProperties = (input, context) => {
|
|
5000
5013
|
return {
|
|
5001
|
-
...(input.eq
|
|
5002
|
-
|
|
5003
|
-
...(input.eqExactMatch !== undefined &&
|
|
5004
|
-
input.eqExactMatch !== null && {
|
|
5014
|
+
...(input.eq != null && { eq: serializeAws_restJson1__listOf__string(input.eq, context) }),
|
|
5015
|
+
...(input.eqExactMatch != null && {
|
|
5005
5016
|
eqExactMatch: serializeAws_restJson1__listOf__string(input.eqExactMatch, context),
|
|
5006
5017
|
}),
|
|
5007
|
-
...(input.gt
|
|
5008
|
-
...(input.gte
|
|
5009
|
-
...(input.lt
|
|
5010
|
-
...(input.lte
|
|
5011
|
-
...(input.neq
|
|
5012
|
-
input.neq !== null && { neq: serializeAws_restJson1__listOf__string(input.neq, context) }),
|
|
5018
|
+
...(input.gt != null && { gt: input.gt }),
|
|
5019
|
+
...(input.gte != null && { gte: input.gte }),
|
|
5020
|
+
...(input.lt != null && { lt: input.lt }),
|
|
5021
|
+
...(input.lte != null && { lte: input.lte }),
|
|
5022
|
+
...(input.neq != null && { neq: serializeAws_restJson1__listOf__string(input.neq, context) }),
|
|
5013
5023
|
};
|
|
5014
5024
|
};
|
|
5015
5025
|
const serializeAws_restJson1DailySchedule = (input, context) => {
|
|
@@ -5017,197 +5027,171 @@ const serializeAws_restJson1DailySchedule = (input, context) => {
|
|
|
5017
5027
|
};
|
|
5018
5028
|
const serializeAws_restJson1FindingCriteria = (input, context) => {
|
|
5019
5029
|
return {
|
|
5020
|
-
...(input.criterion
|
|
5021
|
-
input.criterion !== null && { criterion: serializeAws_restJson1Criterion(input.criterion, context) }),
|
|
5030
|
+
...(input.criterion != null && { criterion: serializeAws_restJson1Criterion(input.criterion, context) }),
|
|
5022
5031
|
};
|
|
5023
5032
|
};
|
|
5024
5033
|
const serializeAws_restJson1FindingStatisticsSortCriteria = (input, context) => {
|
|
5025
5034
|
return {
|
|
5026
|
-
...(input.attributeName
|
|
5027
|
-
...(input.orderBy
|
|
5035
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
5036
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5028
5037
|
};
|
|
5029
5038
|
};
|
|
5030
5039
|
const serializeAws_restJson1JobScheduleFrequency = (input, context) => {
|
|
5031
5040
|
return {
|
|
5032
|
-
...(input.dailySchedule
|
|
5033
|
-
input.dailySchedule !== null && {
|
|
5041
|
+
...(input.dailySchedule != null && {
|
|
5034
5042
|
dailySchedule: serializeAws_restJson1DailySchedule(input.dailySchedule, context),
|
|
5035
5043
|
}),
|
|
5036
|
-
...(input.monthlySchedule
|
|
5037
|
-
input.monthlySchedule !== null && {
|
|
5044
|
+
...(input.monthlySchedule != null && {
|
|
5038
5045
|
monthlySchedule: serializeAws_restJson1MonthlySchedule(input.monthlySchedule, context),
|
|
5039
5046
|
}),
|
|
5040
|
-
...(input.weeklySchedule
|
|
5041
|
-
input.weeklySchedule !== null && {
|
|
5047
|
+
...(input.weeklySchedule != null && {
|
|
5042
5048
|
weeklySchedule: serializeAws_restJson1WeeklySchedule(input.weeklySchedule, context),
|
|
5043
5049
|
}),
|
|
5044
5050
|
};
|
|
5045
5051
|
};
|
|
5046
5052
|
const serializeAws_restJson1JobScopeTerm = (input, context) => {
|
|
5047
5053
|
return {
|
|
5048
|
-
...(input.simpleScopeTerm
|
|
5049
|
-
input.simpleScopeTerm !== null && {
|
|
5054
|
+
...(input.simpleScopeTerm != null && {
|
|
5050
5055
|
simpleScopeTerm: serializeAws_restJson1SimpleScopeTerm(input.simpleScopeTerm, context),
|
|
5051
5056
|
}),
|
|
5052
|
-
...(input.tagScopeTerm
|
|
5053
|
-
|
|
5057
|
+
...(input.tagScopeTerm != null && {
|
|
5058
|
+
tagScopeTerm: serializeAws_restJson1TagScopeTerm(input.tagScopeTerm, context),
|
|
5059
|
+
}),
|
|
5054
5060
|
};
|
|
5055
5061
|
};
|
|
5056
5062
|
const serializeAws_restJson1JobScopingBlock = (input, context) => {
|
|
5057
5063
|
return {
|
|
5058
|
-
...(input.and
|
|
5059
|
-
input.and !== null && { and: serializeAws_restJson1__listOfJobScopeTerm(input.and, context) }),
|
|
5064
|
+
...(input.and != null && { and: serializeAws_restJson1__listOfJobScopeTerm(input.and, context) }),
|
|
5060
5065
|
};
|
|
5061
5066
|
};
|
|
5062
5067
|
const serializeAws_restJson1ListJobsFilterCriteria = (input, context) => {
|
|
5063
5068
|
return {
|
|
5064
|
-
...(input.excludes
|
|
5065
|
-
input.excludes !== null && {
|
|
5069
|
+
...(input.excludes != null && {
|
|
5066
5070
|
excludes: serializeAws_restJson1__listOfListJobsFilterTerm(input.excludes, context),
|
|
5067
5071
|
}),
|
|
5068
|
-
...(input.includes
|
|
5069
|
-
input.includes !== null && {
|
|
5072
|
+
...(input.includes != null && {
|
|
5070
5073
|
includes: serializeAws_restJson1__listOfListJobsFilterTerm(input.includes, context),
|
|
5071
5074
|
}),
|
|
5072
5075
|
};
|
|
5073
5076
|
};
|
|
5074
5077
|
const serializeAws_restJson1ListJobsFilterTerm = (input, context) => {
|
|
5075
5078
|
return {
|
|
5076
|
-
...(input.comparator
|
|
5077
|
-
...(input.key
|
|
5078
|
-
...(input.values
|
|
5079
|
-
input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5079
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5080
|
+
...(input.key != null && { key: input.key }),
|
|
5081
|
+
...(input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5080
5082
|
};
|
|
5081
5083
|
};
|
|
5082
5084
|
const serializeAws_restJson1ListJobsSortCriteria = (input, context) => {
|
|
5083
5085
|
return {
|
|
5084
|
-
...(input.attributeName
|
|
5085
|
-
...(input.orderBy
|
|
5086
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
5087
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5086
5088
|
};
|
|
5087
5089
|
};
|
|
5088
5090
|
const serializeAws_restJson1MonthlySchedule = (input, context) => {
|
|
5089
5091
|
return {
|
|
5090
|
-
...(input.dayOfMonth
|
|
5092
|
+
...(input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth }),
|
|
5091
5093
|
};
|
|
5092
5094
|
};
|
|
5093
5095
|
const serializeAws_restJson1S3BucketCriteriaForJob = (input, context) => {
|
|
5094
5096
|
return {
|
|
5095
|
-
...(input.excludes
|
|
5096
|
-
|
|
5097
|
-
...(input.includes !== undefined &&
|
|
5098
|
-
input.includes !== null && { includes: serializeAws_restJson1CriteriaBlockForJob(input.includes, context) }),
|
|
5097
|
+
...(input.excludes != null && { excludes: serializeAws_restJson1CriteriaBlockForJob(input.excludes, context) }),
|
|
5098
|
+
...(input.includes != null && { includes: serializeAws_restJson1CriteriaBlockForJob(input.includes, context) }),
|
|
5099
5099
|
};
|
|
5100
5100
|
};
|
|
5101
5101
|
const serializeAws_restJson1S3BucketDefinitionForJob = (input, context) => {
|
|
5102
5102
|
return {
|
|
5103
|
-
...(input.accountId
|
|
5104
|
-
...(input.buckets
|
|
5105
|
-
input.buckets !== null && { buckets: serializeAws_restJson1__listOf__string(input.buckets, context) }),
|
|
5103
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
5104
|
+
...(input.buckets != null && { buckets: serializeAws_restJson1__listOf__string(input.buckets, context) }),
|
|
5106
5105
|
};
|
|
5107
5106
|
};
|
|
5108
5107
|
const serializeAws_restJson1S3Destination = (input, context) => {
|
|
5109
5108
|
return {
|
|
5110
|
-
...(input.bucketName
|
|
5111
|
-
...(input.keyPrefix
|
|
5112
|
-
...(input.kmsKeyArn
|
|
5109
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
5110
|
+
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
5111
|
+
...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
|
|
5113
5112
|
};
|
|
5114
5113
|
};
|
|
5115
5114
|
const serializeAws_restJson1S3JobDefinition = (input, context) => {
|
|
5116
5115
|
return {
|
|
5117
|
-
...(input.bucketCriteria
|
|
5118
|
-
input.bucketCriteria !== null && {
|
|
5116
|
+
...(input.bucketCriteria != null && {
|
|
5119
5117
|
bucketCriteria: serializeAws_restJson1S3BucketCriteriaForJob(input.bucketCriteria, context),
|
|
5120
5118
|
}),
|
|
5121
|
-
...(input.bucketDefinitions
|
|
5122
|
-
input.bucketDefinitions !== null && {
|
|
5119
|
+
...(input.bucketDefinitions != null && {
|
|
5123
5120
|
bucketDefinitions: serializeAws_restJson1__listOfS3BucketDefinitionForJob(input.bucketDefinitions, context),
|
|
5124
5121
|
}),
|
|
5125
|
-
...(input.scoping
|
|
5126
|
-
input.scoping !== null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }),
|
|
5122
|
+
...(input.scoping != null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }),
|
|
5127
5123
|
};
|
|
5128
5124
|
};
|
|
5129
5125
|
const serializeAws_restJson1Scoping = (input, context) => {
|
|
5130
5126
|
return {
|
|
5131
|
-
...(input.excludes
|
|
5132
|
-
|
|
5133
|
-
...(input.includes !== undefined &&
|
|
5134
|
-
input.includes !== null && { includes: serializeAws_restJson1JobScopingBlock(input.includes, context) }),
|
|
5127
|
+
...(input.excludes != null && { excludes: serializeAws_restJson1JobScopingBlock(input.excludes, context) }),
|
|
5128
|
+
...(input.includes != null && { includes: serializeAws_restJson1JobScopingBlock(input.includes, context) }),
|
|
5135
5129
|
};
|
|
5136
5130
|
};
|
|
5137
5131
|
const serializeAws_restJson1SearchResourcesBucketCriteria = (input, context) => {
|
|
5138
5132
|
return {
|
|
5139
|
-
...(input.excludes
|
|
5140
|
-
input.excludes !== null && {
|
|
5133
|
+
...(input.excludes != null && {
|
|
5141
5134
|
excludes: serializeAws_restJson1SearchResourcesCriteriaBlock(input.excludes, context),
|
|
5142
5135
|
}),
|
|
5143
|
-
...(input.includes
|
|
5144
|
-
input.includes !== null && {
|
|
5136
|
+
...(input.includes != null && {
|
|
5145
5137
|
includes: serializeAws_restJson1SearchResourcesCriteriaBlock(input.includes, context),
|
|
5146
5138
|
}),
|
|
5147
5139
|
};
|
|
5148
5140
|
};
|
|
5149
5141
|
const serializeAws_restJson1SearchResourcesCriteria = (input, context) => {
|
|
5150
5142
|
return {
|
|
5151
|
-
...(input.simpleCriterion
|
|
5152
|
-
input.simpleCriterion !== null && {
|
|
5143
|
+
...(input.simpleCriterion != null && {
|
|
5153
5144
|
simpleCriterion: serializeAws_restJson1SearchResourcesSimpleCriterion(input.simpleCriterion, context),
|
|
5154
5145
|
}),
|
|
5155
|
-
...(input.tagCriterion
|
|
5156
|
-
input.tagCriterion !== null && {
|
|
5146
|
+
...(input.tagCriterion != null && {
|
|
5157
5147
|
tagCriterion: serializeAws_restJson1SearchResourcesTagCriterion(input.tagCriterion, context),
|
|
5158
5148
|
}),
|
|
5159
5149
|
};
|
|
5160
5150
|
};
|
|
5161
5151
|
const serializeAws_restJson1SearchResourcesCriteriaBlock = (input, context) => {
|
|
5162
5152
|
return {
|
|
5163
|
-
...(input.and
|
|
5164
|
-
input.and !== null && { and: serializeAws_restJson1__listOfSearchResourcesCriteria(input.and, context) }),
|
|
5153
|
+
...(input.and != null && { and: serializeAws_restJson1__listOfSearchResourcesCriteria(input.and, context) }),
|
|
5165
5154
|
};
|
|
5166
5155
|
};
|
|
5167
5156
|
const serializeAws_restJson1SearchResourcesSimpleCriterion = (input, context) => {
|
|
5168
5157
|
return {
|
|
5169
|
-
...(input.comparator
|
|
5170
|
-
...(input.key
|
|
5171
|
-
...(input.values
|
|
5172
|
-
input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5158
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5159
|
+
...(input.key != null && { key: input.key }),
|
|
5160
|
+
...(input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5173
5161
|
};
|
|
5174
5162
|
};
|
|
5175
5163
|
const serializeAws_restJson1SearchResourcesSortCriteria = (input, context) => {
|
|
5176
5164
|
return {
|
|
5177
|
-
...(input.attributeName
|
|
5178
|
-
...(input.orderBy
|
|
5165
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
5166
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5179
5167
|
};
|
|
5180
5168
|
};
|
|
5181
5169
|
const serializeAws_restJson1SearchResourcesTagCriterion = (input, context) => {
|
|
5182
5170
|
return {
|
|
5183
|
-
...(input.comparator
|
|
5184
|
-
...(input.tagValues
|
|
5185
|
-
input.tagValues !== null && {
|
|
5171
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5172
|
+
...(input.tagValues != null && {
|
|
5186
5173
|
tagValues: serializeAws_restJson1__listOfSearchResourcesTagCriterionPair(input.tagValues, context),
|
|
5187
5174
|
}),
|
|
5188
5175
|
};
|
|
5189
5176
|
};
|
|
5190
5177
|
const serializeAws_restJson1SearchResourcesTagCriterionPair = (input, context) => {
|
|
5191
5178
|
return {
|
|
5192
|
-
...(input.key
|
|
5193
|
-
...(input.value
|
|
5179
|
+
...(input.key != null && { key: input.key }),
|
|
5180
|
+
...(input.value != null && { value: input.value }),
|
|
5194
5181
|
};
|
|
5195
5182
|
};
|
|
5196
5183
|
const serializeAws_restJson1SecurityHubConfiguration = (input, context) => {
|
|
5197
5184
|
return {
|
|
5198
|
-
...(input.publishClassificationFindings
|
|
5199
|
-
input.publishClassificationFindings !== null && {
|
|
5185
|
+
...(input.publishClassificationFindings != null && {
|
|
5200
5186
|
publishClassificationFindings: input.publishClassificationFindings,
|
|
5201
5187
|
}),
|
|
5202
|
-
...(input.publishPolicyFindings
|
|
5203
|
-
input.publishPolicyFindings !== null && { publishPolicyFindings: input.publishPolicyFindings }),
|
|
5188
|
+
...(input.publishPolicyFindings != null && { publishPolicyFindings: input.publishPolicyFindings }),
|
|
5204
5189
|
};
|
|
5205
5190
|
};
|
|
5206
5191
|
const serializeAws_restJson1SeverityLevel = (input, context) => {
|
|
5207
5192
|
return {
|
|
5208
|
-
...(input.occurrencesThreshold
|
|
5209
|
-
|
|
5210
|
-
...(input.severity !== undefined && input.severity !== null && { severity: input.severity }),
|
|
5193
|
+
...(input.occurrencesThreshold != null && { occurrencesThreshold: input.occurrencesThreshold }),
|
|
5194
|
+
...(input.severity != null && { severity: input.severity }),
|
|
5211
5195
|
};
|
|
5212
5196
|
};
|
|
5213
5197
|
const serializeAws_restJson1SeverityLevelList = (input, context) => {
|
|
@@ -5222,39 +5206,36 @@ const serializeAws_restJson1SeverityLevelList = (input, context) => {
|
|
|
5222
5206
|
};
|
|
5223
5207
|
const serializeAws_restJson1SimpleCriterionForJob = (input, context) => {
|
|
5224
5208
|
return {
|
|
5225
|
-
...(input.comparator
|
|
5226
|
-
...(input.key
|
|
5227
|
-
...(input.values
|
|
5228
|
-
input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5209
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5210
|
+
...(input.key != null && { key: input.key }),
|
|
5211
|
+
...(input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5229
5212
|
};
|
|
5230
5213
|
};
|
|
5231
5214
|
const serializeAws_restJson1SimpleScopeTerm = (input, context) => {
|
|
5232
5215
|
return {
|
|
5233
|
-
...(input.comparator
|
|
5234
|
-
...(input.key
|
|
5235
|
-
...(input.values
|
|
5236
|
-
input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5216
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5217
|
+
...(input.key != null && { key: input.key }),
|
|
5218
|
+
...(input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5237
5219
|
};
|
|
5238
5220
|
};
|
|
5239
5221
|
const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
5240
5222
|
return {
|
|
5241
|
-
...(input.attributeName
|
|
5242
|
-
...(input.orderBy
|
|
5223
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
5224
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5243
5225
|
};
|
|
5244
5226
|
};
|
|
5245
5227
|
const serializeAws_restJson1TagCriterionForJob = (input, context) => {
|
|
5246
5228
|
return {
|
|
5247
|
-
...(input.comparator
|
|
5248
|
-
...(input.tagValues
|
|
5249
|
-
input.tagValues !== null && {
|
|
5229
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5230
|
+
...(input.tagValues != null && {
|
|
5250
5231
|
tagValues: serializeAws_restJson1__listOfTagCriterionPairForJob(input.tagValues, context),
|
|
5251
5232
|
}),
|
|
5252
5233
|
};
|
|
5253
5234
|
};
|
|
5254
5235
|
const serializeAws_restJson1TagCriterionPairForJob = (input, context) => {
|
|
5255
5236
|
return {
|
|
5256
|
-
...(input.key
|
|
5257
|
-
...(input.value
|
|
5237
|
+
...(input.key != null && { key: input.key }),
|
|
5238
|
+
...(input.value != null && { value: input.value }),
|
|
5258
5239
|
};
|
|
5259
5240
|
};
|
|
5260
5241
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -5270,36 +5251,34 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
5270
5251
|
};
|
|
5271
5252
|
const serializeAws_restJson1TagScopeTerm = (input, context) => {
|
|
5272
5253
|
return {
|
|
5273
|
-
...(input.comparator
|
|
5274
|
-
...(input.key
|
|
5275
|
-
...(input.tagValues
|
|
5276
|
-
|
|
5277
|
-
...(input.target !== undefined && input.target !== null && { target: input.target }),
|
|
5254
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5255
|
+
...(input.key != null && { key: input.key }),
|
|
5256
|
+
...(input.tagValues != null && { tagValues: serializeAws_restJson1__listOfTagValuePair(input.tagValues, context) }),
|
|
5257
|
+
...(input.target != null && { target: input.target }),
|
|
5278
5258
|
};
|
|
5279
5259
|
};
|
|
5280
5260
|
const serializeAws_restJson1TagValuePair = (input, context) => {
|
|
5281
5261
|
return {
|
|
5282
|
-
...(input.key
|
|
5283
|
-
...(input.value
|
|
5262
|
+
...(input.key != null && { key: input.key }),
|
|
5263
|
+
...(input.value != null && { value: input.value }),
|
|
5284
5264
|
};
|
|
5285
5265
|
};
|
|
5286
5266
|
const serializeAws_restJson1UsageStatisticsFilter = (input, context) => {
|
|
5287
5267
|
return {
|
|
5288
|
-
...(input.comparator
|
|
5289
|
-
...(input.key
|
|
5290
|
-
...(input.values
|
|
5291
|
-
input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5268
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5269
|
+
...(input.key != null && { key: input.key }),
|
|
5270
|
+
...(input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }),
|
|
5292
5271
|
};
|
|
5293
5272
|
};
|
|
5294
5273
|
const serializeAws_restJson1UsageStatisticsSortBy = (input, context) => {
|
|
5295
5274
|
return {
|
|
5296
|
-
...(input.key
|
|
5297
|
-
...(input.orderBy
|
|
5275
|
+
...(input.key != null && { key: input.key }),
|
|
5276
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5298
5277
|
};
|
|
5299
5278
|
};
|
|
5300
5279
|
const serializeAws_restJson1WeeklySchedule = (input, context) => {
|
|
5301
5280
|
return {
|
|
5302
|
-
...(input.dayOfWeek
|
|
5281
|
+
...(input.dayOfWeek != null && { dayOfWeek: input.dayOfWeek }),
|
|
5303
5282
|
};
|
|
5304
5283
|
};
|
|
5305
5284
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
@@ -5563,7 +5542,7 @@ const deserializeAws_restJson1AccessControlList = (output, context) => {
|
|
|
5563
5542
|
};
|
|
5564
5543
|
const deserializeAws_restJson1AccountLevelPermissions = (output, context) => {
|
|
5565
5544
|
return {
|
|
5566
|
-
blockPublicAccess: output.blockPublicAccess
|
|
5545
|
+
blockPublicAccess: output.blockPublicAccess != null
|
|
5567
5546
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
5568
5547
|
: undefined,
|
|
5569
5548
|
};
|
|
@@ -5578,12 +5557,8 @@ const deserializeAws_restJson1ApiCallDetails = (output, context) => {
|
|
|
5578
5557
|
return {
|
|
5579
5558
|
api: (0, smithy_client_1.expectString)(output.api),
|
|
5580
5559
|
apiServiceName: (0, smithy_client_1.expectString)(output.apiServiceName),
|
|
5581
|
-
firstSeen: output.firstSeen
|
|
5582
|
-
|
|
5583
|
-
: undefined,
|
|
5584
|
-
lastSeen: output.lastSeen !== undefined && output.lastSeen !== null
|
|
5585
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastSeen))
|
|
5586
|
-
: undefined,
|
|
5560
|
+
firstSeen: output.firstSeen != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.firstSeen)) : undefined,
|
|
5561
|
+
lastSeen: output.lastSeen != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastSeen)) : undefined,
|
|
5587
5562
|
};
|
|
5588
5563
|
};
|
|
5589
5564
|
const deserializeAws_restJson1AssumedRole = (output, context) => {
|
|
@@ -5592,7 +5567,7 @@ const deserializeAws_restJson1AssumedRole = (output, context) => {
|
|
|
5592
5567
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5593
5568
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5594
5569
|
principalId: (0, smithy_client_1.expectString)(output.principalId),
|
|
5595
|
-
sessionContext: output.sessionContext
|
|
5570
|
+
sessionContext: output.sessionContext != null
|
|
5596
5571
|
? deserializeAws_restJson1SessionContext(output.sessionContext, context)
|
|
5597
5572
|
: undefined,
|
|
5598
5573
|
};
|
|
@@ -5611,9 +5586,7 @@ const deserializeAws_restJson1AwsService = (output, context) => {
|
|
|
5611
5586
|
const deserializeAws_restJson1BatchGetCustomDataIdentifierSummary = (output, context) => {
|
|
5612
5587
|
return {
|
|
5613
5588
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5614
|
-
createdAt: output.createdAt
|
|
5615
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
5616
|
-
: undefined,
|
|
5589
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
5617
5590
|
deleted: (0, smithy_client_1.expectBoolean)(output.deleted),
|
|
5618
5591
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5619
5592
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
@@ -5661,15 +5634,13 @@ const deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads =
|
|
|
5661
5634
|
};
|
|
5662
5635
|
const deserializeAws_restJson1BucketLevelPermissions = (output, context) => {
|
|
5663
5636
|
return {
|
|
5664
|
-
accessControlList: output.accessControlList
|
|
5637
|
+
accessControlList: output.accessControlList != null
|
|
5665
5638
|
? deserializeAws_restJson1AccessControlList(output.accessControlList, context)
|
|
5666
5639
|
: undefined,
|
|
5667
|
-
blockPublicAccess: output.blockPublicAccess
|
|
5640
|
+
blockPublicAccess: output.blockPublicAccess != null
|
|
5668
5641
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
5669
5642
|
: undefined,
|
|
5670
|
-
bucketPolicy: output.bucketPolicy
|
|
5671
|
-
? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context)
|
|
5672
|
-
: undefined,
|
|
5643
|
+
bucketPolicy: output.bucketPolicy != null ? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context) : undefined,
|
|
5673
5644
|
};
|
|
5674
5645
|
};
|
|
5675
5646
|
const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
@@ -5677,44 +5648,36 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5677
5648
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5678
5649
|
allowsUnencryptedObjectUploads: (0, smithy_client_1.expectString)(output.allowsUnencryptedObjectUploads),
|
|
5679
5650
|
bucketArn: (0, smithy_client_1.expectString)(output.bucketArn),
|
|
5680
|
-
bucketCreatedAt: output.bucketCreatedAt
|
|
5681
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.bucketCreatedAt))
|
|
5682
|
-
: undefined,
|
|
5651
|
+
bucketCreatedAt: output.bucketCreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.bucketCreatedAt)) : undefined,
|
|
5683
5652
|
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
5684
5653
|
classifiableObjectCount: (0, smithy_client_1.expectLong)(output.classifiableObjectCount),
|
|
5685
5654
|
classifiableSizeInBytes: (0, smithy_client_1.expectLong)(output.classifiableSizeInBytes),
|
|
5686
5655
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
5687
5656
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
5688
|
-
jobDetails: output.jobDetails
|
|
5689
|
-
|
|
5690
|
-
: undefined,
|
|
5691
|
-
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
5692
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdated))
|
|
5693
|
-
: undefined,
|
|
5657
|
+
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
5658
|
+
lastUpdated: output.lastUpdated != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdated)) : undefined,
|
|
5694
5659
|
objectCount: (0, smithy_client_1.expectLong)(output.objectCount),
|
|
5695
|
-
objectCountByEncryptionType: output.objectCountByEncryptionType
|
|
5660
|
+
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
5696
5661
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
5697
5662
|
: undefined,
|
|
5698
|
-
publicAccess: output.publicAccess
|
|
5663
|
+
publicAccess: output.publicAccess != null
|
|
5699
5664
|
? deserializeAws_restJson1BucketPublicAccess(output.publicAccess, context)
|
|
5700
5665
|
: undefined,
|
|
5701
5666
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
5702
|
-
replicationDetails: output.replicationDetails
|
|
5667
|
+
replicationDetails: output.replicationDetails != null
|
|
5703
5668
|
? deserializeAws_restJson1ReplicationDetails(output.replicationDetails, context)
|
|
5704
5669
|
: undefined,
|
|
5705
|
-
serverSideEncryption: output.serverSideEncryption
|
|
5670
|
+
serverSideEncryption: output.serverSideEncryption != null
|
|
5706
5671
|
? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
|
|
5707
5672
|
: undefined,
|
|
5708
5673
|
sharedAccess: (0, smithy_client_1.expectString)(output.sharedAccess),
|
|
5709
5674
|
sizeInBytes: (0, smithy_client_1.expectLong)(output.sizeInBytes),
|
|
5710
5675
|
sizeInBytesCompressed: (0, smithy_client_1.expectLong)(output.sizeInBytesCompressed),
|
|
5711
|
-
tags: output.tags
|
|
5712
|
-
|
|
5713
|
-
: undefined,
|
|
5714
|
-
unclassifiableObjectCount: output.unclassifiableObjectCount !== undefined && output.unclassifiableObjectCount !== null
|
|
5676
|
+
tags: output.tags != null ? deserializeAws_restJson1__listOfKeyValuePair(output.tags, context) : undefined,
|
|
5677
|
+
unclassifiableObjectCount: output.unclassifiableObjectCount != null
|
|
5715
5678
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
|
|
5716
5679
|
: undefined,
|
|
5717
|
-
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes
|
|
5680
|
+
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes != null
|
|
5718
5681
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectSizeInBytes, context)
|
|
5719
5682
|
: undefined,
|
|
5720
5683
|
versioning: (0, smithy_client_1.expectBoolean)(output.versioning),
|
|
@@ -5722,10 +5685,10 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5722
5685
|
};
|
|
5723
5686
|
const deserializeAws_restJson1BucketPermissionConfiguration = (output, context) => {
|
|
5724
5687
|
return {
|
|
5725
|
-
accountLevelPermissions: output.accountLevelPermissions
|
|
5688
|
+
accountLevelPermissions: output.accountLevelPermissions != null
|
|
5726
5689
|
? deserializeAws_restJson1AccountLevelPermissions(output.accountLevelPermissions, context)
|
|
5727
5690
|
: undefined,
|
|
5728
|
-
bucketLevelPermissions: output.bucketLevelPermissions
|
|
5691
|
+
bucketLevelPermissions: output.bucketLevelPermissions != null
|
|
5729
5692
|
? deserializeAws_restJson1BucketLevelPermissions(output.bucketLevelPermissions, context)
|
|
5730
5693
|
: undefined,
|
|
5731
5694
|
};
|
|
@@ -5739,7 +5702,7 @@ const deserializeAws_restJson1BucketPolicy = (output, context) => {
|
|
|
5739
5702
|
const deserializeAws_restJson1BucketPublicAccess = (output, context) => {
|
|
5740
5703
|
return {
|
|
5741
5704
|
effectivePermission: (0, smithy_client_1.expectString)(output.effectivePermission),
|
|
5742
|
-
permissionConfiguration: output.permissionConfiguration
|
|
5705
|
+
permissionConfiguration: output.permissionConfiguration != null
|
|
5743
5706
|
? deserializeAws_restJson1BucketPermissionConfiguration(output.permissionConfiguration, context)
|
|
5744
5707
|
: undefined,
|
|
5745
5708
|
};
|
|
@@ -5775,32 +5738,24 @@ const deserializeAws_restJson1ClassificationDetails = (output, context) => {
|
|
|
5775
5738
|
jobArn: (0, smithy_client_1.expectString)(output.jobArn),
|
|
5776
5739
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
5777
5740
|
originType: (0, smithy_client_1.expectString)(output.originType),
|
|
5778
|
-
result: output.result
|
|
5779
|
-
? deserializeAws_restJson1ClassificationResult(output.result, context)
|
|
5780
|
-
: undefined,
|
|
5741
|
+
result: output.result != null ? deserializeAws_restJson1ClassificationResult(output.result, context) : undefined,
|
|
5781
5742
|
};
|
|
5782
5743
|
};
|
|
5783
5744
|
const deserializeAws_restJson1ClassificationExportConfiguration = (output, context) => {
|
|
5784
5745
|
return {
|
|
5785
|
-
s3Destination: output.s3Destination
|
|
5786
|
-
? deserializeAws_restJson1S3Destination(output.s3Destination, context)
|
|
5787
|
-
: undefined,
|
|
5746
|
+
s3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
|
|
5788
5747
|
};
|
|
5789
5748
|
};
|
|
5790
5749
|
const deserializeAws_restJson1ClassificationResult = (output, context) => {
|
|
5791
5750
|
return {
|
|
5792
5751
|
additionalOccurrences: (0, smithy_client_1.expectBoolean)(output.additionalOccurrences),
|
|
5793
|
-
customDataIdentifiers: output.customDataIdentifiers
|
|
5752
|
+
customDataIdentifiers: output.customDataIdentifiers != null
|
|
5794
5753
|
? deserializeAws_restJson1CustomDataIdentifiers(output.customDataIdentifiers, context)
|
|
5795
5754
|
: undefined,
|
|
5796
5755
|
mimeType: (0, smithy_client_1.expectString)(output.mimeType),
|
|
5797
|
-
sensitiveData: output.sensitiveData
|
|
5798
|
-
? deserializeAws_restJson1SensitiveData(output.sensitiveData, context)
|
|
5799
|
-
: undefined,
|
|
5756
|
+
sensitiveData: output.sensitiveData != null ? deserializeAws_restJson1SensitiveData(output.sensitiveData, context) : undefined,
|
|
5800
5757
|
sizeClassified: (0, smithy_client_1.expectLong)(output.sizeClassified),
|
|
5801
|
-
status: output.status
|
|
5802
|
-
? deserializeAws_restJson1ClassificationResultStatus(output.status, context)
|
|
5803
|
-
: undefined,
|
|
5758
|
+
status: output.status != null ? deserializeAws_restJson1ClassificationResultStatus(output.status, context) : undefined,
|
|
5804
5759
|
};
|
|
5805
5760
|
};
|
|
5806
5761
|
const deserializeAws_restJson1ClassificationResultStatus = (output, context) => {
|
|
@@ -5811,17 +5766,15 @@ const deserializeAws_restJson1ClassificationResultStatus = (output, context) =>
|
|
|
5811
5766
|
};
|
|
5812
5767
|
const deserializeAws_restJson1CriteriaBlockForJob = (output, context) => {
|
|
5813
5768
|
return {
|
|
5814
|
-
and: output.and
|
|
5815
|
-
? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context)
|
|
5816
|
-
: undefined,
|
|
5769
|
+
and: output.and != null ? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context) : undefined,
|
|
5817
5770
|
};
|
|
5818
5771
|
};
|
|
5819
5772
|
const deserializeAws_restJson1CriteriaForJob = (output, context) => {
|
|
5820
5773
|
return {
|
|
5821
|
-
simpleCriterion: output.simpleCriterion
|
|
5774
|
+
simpleCriterion: output.simpleCriterion != null
|
|
5822
5775
|
? deserializeAws_restJson1SimpleCriterionForJob(output.simpleCriterion, context)
|
|
5823
5776
|
: undefined,
|
|
5824
|
-
tagCriterion: output.tagCriterion
|
|
5777
|
+
tagCriterion: output.tagCriterion != null
|
|
5825
5778
|
? deserializeAws_restJson1TagCriterionForJob(output.tagCriterion, context)
|
|
5826
5779
|
: undefined,
|
|
5827
5780
|
};
|
|
@@ -5839,35 +5792,25 @@ const deserializeAws_restJson1Criterion = (output, context) => {
|
|
|
5839
5792
|
};
|
|
5840
5793
|
const deserializeAws_restJson1CriterionAdditionalProperties = (output, context) => {
|
|
5841
5794
|
return {
|
|
5842
|
-
eq: output.eq
|
|
5843
|
-
|
|
5844
|
-
: undefined,
|
|
5845
|
-
eqExactMatch: output.eqExactMatch !== undefined && output.eqExactMatch !== null
|
|
5846
|
-
? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context)
|
|
5847
|
-
: undefined,
|
|
5795
|
+
eq: output.eq != null ? deserializeAws_restJson1__listOf__string(output.eq, context) : undefined,
|
|
5796
|
+
eqExactMatch: output.eqExactMatch != null ? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context) : undefined,
|
|
5848
5797
|
gt: (0, smithy_client_1.expectLong)(output.gt),
|
|
5849
5798
|
gte: (0, smithy_client_1.expectLong)(output.gte),
|
|
5850
5799
|
lt: (0, smithy_client_1.expectLong)(output.lt),
|
|
5851
5800
|
lte: (0, smithy_client_1.expectLong)(output.lte),
|
|
5852
|
-
neq: output.neq
|
|
5853
|
-
? deserializeAws_restJson1__listOf__string(output.neq, context)
|
|
5854
|
-
: undefined,
|
|
5801
|
+
neq: output.neq != null ? deserializeAws_restJson1__listOf__string(output.neq, context) : undefined,
|
|
5855
5802
|
};
|
|
5856
5803
|
};
|
|
5857
5804
|
const deserializeAws_restJson1CustomDataIdentifiers = (output, context) => {
|
|
5858
5805
|
return {
|
|
5859
|
-
detections: output.detections
|
|
5860
|
-
? deserializeAws_restJson1CustomDetections(output.detections, context)
|
|
5861
|
-
: undefined,
|
|
5806
|
+
detections: output.detections != null ? deserializeAws_restJson1CustomDetections(output.detections, context) : undefined,
|
|
5862
5807
|
totalCount: (0, smithy_client_1.expectLong)(output.totalCount),
|
|
5863
5808
|
};
|
|
5864
5809
|
};
|
|
5865
5810
|
const deserializeAws_restJson1CustomDataIdentifierSummary = (output, context) => {
|
|
5866
5811
|
return {
|
|
5867
5812
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5868
|
-
createdAt: output.createdAt
|
|
5869
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
5870
|
-
: undefined,
|
|
5813
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
5871
5814
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5872
5815
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5873
5816
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5878,9 +5821,7 @@ const deserializeAws_restJson1CustomDetection = (output, context) => {
|
|
|
5878
5821
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5879
5822
|
count: (0, smithy_client_1.expectLong)(output.count),
|
|
5880
5823
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5881
|
-
occurrences: output.occurrences
|
|
5882
|
-
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
5883
|
-
: undefined,
|
|
5824
|
+
occurrences: output.occurrences != null ? deserializeAws_restJson1Occurrences(output.occurrences, context) : undefined,
|
|
5884
5825
|
};
|
|
5885
5826
|
};
|
|
5886
5827
|
const deserializeAws_restJson1CustomDetections = (output, context) => {
|
|
@@ -5900,9 +5841,7 @@ const deserializeAws_restJson1DailySchedule = (output, context) => {
|
|
|
5900
5841
|
const deserializeAws_restJson1DefaultDetection = (output, context) => {
|
|
5901
5842
|
return {
|
|
5902
5843
|
count: (0, smithy_client_1.expectLong)(output.count),
|
|
5903
|
-
occurrences: output.occurrences
|
|
5904
|
-
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
5905
|
-
: undefined,
|
|
5844
|
+
occurrences: output.occurrences != null ? deserializeAws_restJson1Occurrences(output.occurrences, context) : undefined,
|
|
5906
5845
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5907
5846
|
};
|
|
5908
5847
|
};
|
|
@@ -5928,7 +5867,7 @@ const deserializeAws_restJson1FederatedUser = (output, context) => {
|
|
|
5928
5867
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5929
5868
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5930
5869
|
principalId: (0, smithy_client_1.expectString)(output.principalId),
|
|
5931
|
-
sessionContext: output.sessionContext
|
|
5870
|
+
sessionContext: output.sessionContext != null
|
|
5932
5871
|
? deserializeAws_restJson1SessionContext(output.sessionContext, context)
|
|
5933
5872
|
: undefined,
|
|
5934
5873
|
};
|
|
@@ -5938,61 +5877,47 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
5938
5877
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5939
5878
|
archived: (0, smithy_client_1.expectBoolean)(output.archived),
|
|
5940
5879
|
category: (0, smithy_client_1.expectString)(output.category),
|
|
5941
|
-
classificationDetails: output.classificationDetails
|
|
5880
|
+
classificationDetails: output.classificationDetails != null
|
|
5942
5881
|
? deserializeAws_restJson1ClassificationDetails(output.classificationDetails, context)
|
|
5943
5882
|
: undefined,
|
|
5944
5883
|
count: (0, smithy_client_1.expectLong)(output.count),
|
|
5945
|
-
createdAt: output.createdAt
|
|
5946
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
5947
|
-
: undefined,
|
|
5884
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
5948
5885
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5949
5886
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5950
5887
|
partition: (0, smithy_client_1.expectString)(output.partition),
|
|
5951
|
-
policyDetails: output.policyDetails
|
|
5952
|
-
? deserializeAws_restJson1PolicyDetails(output.policyDetails, context)
|
|
5953
|
-
: undefined,
|
|
5888
|
+
policyDetails: output.policyDetails != null ? deserializeAws_restJson1PolicyDetails(output.policyDetails, context) : undefined,
|
|
5954
5889
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
5955
|
-
resourcesAffected: output.resourcesAffected
|
|
5890
|
+
resourcesAffected: output.resourcesAffected != null
|
|
5956
5891
|
? deserializeAws_restJson1ResourcesAffected(output.resourcesAffected, context)
|
|
5957
5892
|
: undefined,
|
|
5958
5893
|
sample: (0, smithy_client_1.expectBoolean)(output.sample),
|
|
5959
5894
|
schemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
|
|
5960
|
-
severity: output.severity
|
|
5961
|
-
? deserializeAws_restJson1Severity(output.severity, context)
|
|
5962
|
-
: undefined,
|
|
5895
|
+
severity: output.severity != null ? deserializeAws_restJson1Severity(output.severity, context) : undefined,
|
|
5963
5896
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
5964
5897
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5965
|
-
updatedAt: output.updatedAt
|
|
5966
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
5967
|
-
: undefined,
|
|
5898
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
5968
5899
|
};
|
|
5969
5900
|
};
|
|
5970
5901
|
const deserializeAws_restJson1FindingAction = (output, context) => {
|
|
5971
5902
|
return {
|
|
5972
5903
|
actionType: (0, smithy_client_1.expectString)(output.actionType),
|
|
5973
|
-
apiCallDetails: output.apiCallDetails
|
|
5904
|
+
apiCallDetails: output.apiCallDetails != null
|
|
5974
5905
|
? deserializeAws_restJson1ApiCallDetails(output.apiCallDetails, context)
|
|
5975
5906
|
: undefined,
|
|
5976
5907
|
};
|
|
5977
5908
|
};
|
|
5978
5909
|
const deserializeAws_restJson1FindingActor = (output, context) => {
|
|
5979
5910
|
return {
|
|
5980
|
-
domainDetails: output.domainDetails
|
|
5981
|
-
|
|
5982
|
-
: undefined,
|
|
5983
|
-
ipAddressDetails: output.ipAddressDetails !== undefined && output.ipAddressDetails !== null
|
|
5911
|
+
domainDetails: output.domainDetails != null ? deserializeAws_restJson1DomainDetails(output.domainDetails, context) : undefined,
|
|
5912
|
+
ipAddressDetails: output.ipAddressDetails != null
|
|
5984
5913
|
? deserializeAws_restJson1IpAddressDetails(output.ipAddressDetails, context)
|
|
5985
5914
|
: undefined,
|
|
5986
|
-
userIdentity: output.userIdentity
|
|
5987
|
-
? deserializeAws_restJson1UserIdentity(output.userIdentity, context)
|
|
5988
|
-
: undefined,
|
|
5915
|
+
userIdentity: output.userIdentity != null ? deserializeAws_restJson1UserIdentity(output.userIdentity, context) : undefined,
|
|
5989
5916
|
};
|
|
5990
5917
|
};
|
|
5991
5918
|
const deserializeAws_restJson1FindingCriteria = (output, context) => {
|
|
5992
5919
|
return {
|
|
5993
|
-
criterion: output.criterion
|
|
5994
|
-
? deserializeAws_restJson1Criterion(output.criterion, context)
|
|
5995
|
-
: undefined,
|
|
5920
|
+
criterion: output.criterion != null ? deserializeAws_restJson1Criterion(output.criterion, context) : undefined,
|
|
5996
5921
|
};
|
|
5997
5922
|
};
|
|
5998
5923
|
const deserializeAws_restJson1FindingsFilterListItem = (output, context) => {
|
|
@@ -6001,9 +5926,7 @@ const deserializeAws_restJson1FindingsFilterListItem = (output, context) => {
|
|
|
6001
5926
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6002
5927
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
6003
5928
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6004
|
-
tags: output.tags
|
|
6005
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6006
|
-
: undefined,
|
|
5929
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6007
5930
|
};
|
|
6008
5931
|
};
|
|
6009
5932
|
const deserializeAws_restJson1GroupCount = (output, context) => {
|
|
@@ -6024,27 +5947,17 @@ const deserializeAws_restJson1Invitation = (output, context) => {
|
|
|
6024
5947
|
return {
|
|
6025
5948
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
6026
5949
|
invitationId: (0, smithy_client_1.expectString)(output.invitationId),
|
|
6027
|
-
invitedAt: output.invitedAt
|
|
6028
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.invitedAt))
|
|
6029
|
-
: undefined,
|
|
5950
|
+
invitedAt: output.invitedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.invitedAt)) : undefined,
|
|
6030
5951
|
relationshipStatus: (0, smithy_client_1.expectString)(output.relationshipStatus),
|
|
6031
5952
|
};
|
|
6032
5953
|
};
|
|
6033
5954
|
const deserializeAws_restJson1IpAddressDetails = (output, context) => {
|
|
6034
5955
|
return {
|
|
6035
5956
|
ipAddressV4: (0, smithy_client_1.expectString)(output.ipAddressV4),
|
|
6036
|
-
ipCity: output.ipCity
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
? deserializeAws_restJson1IpCountry(output.ipCountry, context)
|
|
6041
|
-
: undefined,
|
|
6042
|
-
ipGeoLocation: output.ipGeoLocation !== undefined && output.ipGeoLocation !== null
|
|
6043
|
-
? deserializeAws_restJson1IpGeoLocation(output.ipGeoLocation, context)
|
|
6044
|
-
: undefined,
|
|
6045
|
-
ipOwner: output.ipOwner !== undefined && output.ipOwner !== null
|
|
6046
|
-
? deserializeAws_restJson1IpOwner(output.ipOwner, context)
|
|
6047
|
-
: undefined,
|
|
5957
|
+
ipCity: output.ipCity != null ? deserializeAws_restJson1IpCity(output.ipCity, context) : undefined,
|
|
5958
|
+
ipCountry: output.ipCountry != null ? deserializeAws_restJson1IpCountry(output.ipCountry, context) : undefined,
|
|
5959
|
+
ipGeoLocation: output.ipGeoLocation != null ? deserializeAws_restJson1IpGeoLocation(output.ipGeoLocation, context) : undefined,
|
|
5960
|
+
ipOwner: output.ipOwner != null ? deserializeAws_restJson1IpOwner(output.ipOwner, context) : undefined,
|
|
6048
5961
|
};
|
|
6049
5962
|
};
|
|
6050
5963
|
const deserializeAws_restJson1IpCity = (output, context) => {
|
|
@@ -6077,60 +5990,50 @@ const deserializeAws_restJson1JobDetails = (output, context) => {
|
|
|
6077
5990
|
isDefinedInJob: (0, smithy_client_1.expectString)(output.isDefinedInJob),
|
|
6078
5991
|
isMonitoredByJob: (0, smithy_client_1.expectString)(output.isMonitoredByJob),
|
|
6079
5992
|
lastJobId: (0, smithy_client_1.expectString)(output.lastJobId),
|
|
6080
|
-
lastJobRunTime: output.lastJobRunTime
|
|
6081
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastJobRunTime))
|
|
6082
|
-
: undefined,
|
|
5993
|
+
lastJobRunTime: output.lastJobRunTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastJobRunTime)) : undefined,
|
|
6083
5994
|
};
|
|
6084
5995
|
};
|
|
6085
5996
|
const deserializeAws_restJson1JobScheduleFrequency = (output, context) => {
|
|
6086
5997
|
return {
|
|
6087
|
-
dailySchedule: output.dailySchedule
|
|
6088
|
-
|
|
6089
|
-
: undefined,
|
|
6090
|
-
monthlySchedule: output.monthlySchedule !== undefined && output.monthlySchedule !== null
|
|
5998
|
+
dailySchedule: output.dailySchedule != null ? deserializeAws_restJson1DailySchedule(output.dailySchedule, context) : undefined,
|
|
5999
|
+
monthlySchedule: output.monthlySchedule != null
|
|
6091
6000
|
? deserializeAws_restJson1MonthlySchedule(output.monthlySchedule, context)
|
|
6092
6001
|
: undefined,
|
|
6093
|
-
weeklySchedule: output.weeklySchedule
|
|
6002
|
+
weeklySchedule: output.weeklySchedule != null
|
|
6094
6003
|
? deserializeAws_restJson1WeeklySchedule(output.weeklySchedule, context)
|
|
6095
6004
|
: undefined,
|
|
6096
6005
|
};
|
|
6097
6006
|
};
|
|
6098
6007
|
const deserializeAws_restJson1JobScopeTerm = (output, context) => {
|
|
6099
6008
|
return {
|
|
6100
|
-
simpleScopeTerm: output.simpleScopeTerm
|
|
6009
|
+
simpleScopeTerm: output.simpleScopeTerm != null
|
|
6101
6010
|
? deserializeAws_restJson1SimpleScopeTerm(output.simpleScopeTerm, context)
|
|
6102
6011
|
: undefined,
|
|
6103
|
-
tagScopeTerm: output.tagScopeTerm
|
|
6104
|
-
? deserializeAws_restJson1TagScopeTerm(output.tagScopeTerm, context)
|
|
6105
|
-
: undefined,
|
|
6012
|
+
tagScopeTerm: output.tagScopeTerm != null ? deserializeAws_restJson1TagScopeTerm(output.tagScopeTerm, context) : undefined,
|
|
6106
6013
|
};
|
|
6107
6014
|
};
|
|
6108
6015
|
const deserializeAws_restJson1JobScopingBlock = (output, context) => {
|
|
6109
6016
|
return {
|
|
6110
|
-
and: output.and
|
|
6111
|
-
? deserializeAws_restJson1__listOfJobScopeTerm(output.and, context)
|
|
6112
|
-
: undefined,
|
|
6017
|
+
and: output.and != null ? deserializeAws_restJson1__listOfJobScopeTerm(output.and, context) : undefined,
|
|
6113
6018
|
};
|
|
6114
6019
|
};
|
|
6115
6020
|
const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
6116
6021
|
return {
|
|
6117
|
-
bucketCriteria: output.bucketCriteria
|
|
6022
|
+
bucketCriteria: output.bucketCriteria != null
|
|
6118
6023
|
? deserializeAws_restJson1S3BucketCriteriaForJob(output.bucketCriteria, context)
|
|
6119
6024
|
: undefined,
|
|
6120
|
-
bucketDefinitions: output.bucketDefinitions
|
|
6025
|
+
bucketDefinitions: output.bucketDefinitions != null
|
|
6121
6026
|
? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
|
|
6122
6027
|
: undefined,
|
|
6123
|
-
createdAt: output.createdAt
|
|
6124
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
6125
|
-
: undefined,
|
|
6028
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
6126
6029
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
6127
6030
|
jobStatus: (0, smithy_client_1.expectString)(output.jobStatus),
|
|
6128
6031
|
jobType: (0, smithy_client_1.expectString)(output.jobType),
|
|
6129
|
-
lastRunErrorStatus: output.lastRunErrorStatus
|
|
6032
|
+
lastRunErrorStatus: output.lastRunErrorStatus != null
|
|
6130
6033
|
? deserializeAws_restJson1LastRunErrorStatus(output.lastRunErrorStatus, context)
|
|
6131
6034
|
: undefined,
|
|
6132
6035
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6133
|
-
userPausedDetails: output.userPausedDetails
|
|
6036
|
+
userPausedDetails: output.userPausedDetails != null
|
|
6134
6037
|
? deserializeAws_restJson1UserPausedDetails(output.userPausedDetails, context)
|
|
6135
6038
|
: undefined,
|
|
6136
6039
|
};
|
|
@@ -6171,26 +6074,24 @@ const deserializeAws_restJson1MatchingBucket = (output, context) => {
|
|
|
6171
6074
|
classifiableSizeInBytes: (0, smithy_client_1.expectLong)(output.classifiableSizeInBytes),
|
|
6172
6075
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
6173
6076
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
6174
|
-
jobDetails: output.jobDetails
|
|
6175
|
-
? deserializeAws_restJson1JobDetails(output.jobDetails, context)
|
|
6176
|
-
: undefined,
|
|
6077
|
+
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
6177
6078
|
objectCount: (0, smithy_client_1.expectLong)(output.objectCount),
|
|
6178
|
-
objectCountByEncryptionType: output.objectCountByEncryptionType
|
|
6079
|
+
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
6179
6080
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
6180
6081
|
: undefined,
|
|
6181
6082
|
sizeInBytes: (0, smithy_client_1.expectLong)(output.sizeInBytes),
|
|
6182
6083
|
sizeInBytesCompressed: (0, smithy_client_1.expectLong)(output.sizeInBytesCompressed),
|
|
6183
|
-
unclassifiableObjectCount: output.unclassifiableObjectCount
|
|
6084
|
+
unclassifiableObjectCount: output.unclassifiableObjectCount != null
|
|
6184
6085
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
|
|
6185
6086
|
: undefined,
|
|
6186
|
-
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes
|
|
6087
|
+
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes != null
|
|
6187
6088
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectSizeInBytes, context)
|
|
6188
6089
|
: undefined,
|
|
6189
6090
|
};
|
|
6190
6091
|
};
|
|
6191
6092
|
const deserializeAws_restJson1MatchingResource = (output, context) => {
|
|
6192
6093
|
return {
|
|
6193
|
-
matchingBucket: output.matchingBucket
|
|
6094
|
+
matchingBucket: output.matchingBucket != null
|
|
6194
6095
|
? deserializeAws_restJson1MatchingBucket(output.matchingBucket, context)
|
|
6195
6096
|
: undefined,
|
|
6196
6097
|
};
|
|
@@ -6201,17 +6102,11 @@ const deserializeAws_restJson1Member = (output, context) => {
|
|
|
6201
6102
|
administratorAccountId: (0, smithy_client_1.expectString)(output.administratorAccountId),
|
|
6202
6103
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6203
6104
|
email: (0, smithy_client_1.expectString)(output.email),
|
|
6204
|
-
invitedAt: output.invitedAt
|
|
6205
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.invitedAt))
|
|
6206
|
-
: undefined,
|
|
6105
|
+
invitedAt: output.invitedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.invitedAt)) : undefined,
|
|
6207
6106
|
masterAccountId: (0, smithy_client_1.expectString)(output.masterAccountId),
|
|
6208
6107
|
relationshipStatus: (0, smithy_client_1.expectString)(output.relationshipStatus),
|
|
6209
|
-
tags: output.tags
|
|
6210
|
-
|
|
6211
|
-
: undefined,
|
|
6212
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
6213
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
6214
|
-
: undefined,
|
|
6108
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6109
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
6215
6110
|
};
|
|
6216
6111
|
};
|
|
6217
6112
|
const deserializeAws_restJson1MonthlySchedule = (output, context) => {
|
|
@@ -6237,31 +6132,17 @@ const deserializeAws_restJson1ObjectLevelStatistics = (output, context) => {
|
|
|
6237
6132
|
};
|
|
6238
6133
|
const deserializeAws_restJson1Occurrences = (output, context) => {
|
|
6239
6134
|
return {
|
|
6240
|
-
cells: output.cells
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
: undefined,
|
|
6246
|
-
offsetRanges: output.offsetRanges !== undefined && output.offsetRanges !== null
|
|
6247
|
-
? deserializeAws_restJson1Ranges(output.offsetRanges, context)
|
|
6248
|
-
: undefined,
|
|
6249
|
-
pages: output.pages !== undefined && output.pages !== null
|
|
6250
|
-
? deserializeAws_restJson1Pages(output.pages, context)
|
|
6251
|
-
: undefined,
|
|
6252
|
-
records: output.records !== undefined && output.records !== null
|
|
6253
|
-
? deserializeAws_restJson1Records(output.records, context)
|
|
6254
|
-
: undefined,
|
|
6135
|
+
cells: output.cells != null ? deserializeAws_restJson1Cells(output.cells, context) : undefined,
|
|
6136
|
+
lineRanges: output.lineRanges != null ? deserializeAws_restJson1Ranges(output.lineRanges, context) : undefined,
|
|
6137
|
+
offsetRanges: output.offsetRanges != null ? deserializeAws_restJson1Ranges(output.offsetRanges, context) : undefined,
|
|
6138
|
+
pages: output.pages != null ? deserializeAws_restJson1Pages(output.pages, context) : undefined,
|
|
6139
|
+
records: output.records != null ? deserializeAws_restJson1Records(output.records, context) : undefined,
|
|
6255
6140
|
};
|
|
6256
6141
|
};
|
|
6257
6142
|
const deserializeAws_restJson1Page = (output, context) => {
|
|
6258
6143
|
return {
|
|
6259
|
-
lineRange: output.lineRange
|
|
6260
|
-
|
|
6261
|
-
: undefined,
|
|
6262
|
-
offsetRange: output.offsetRange !== undefined && output.offsetRange !== null
|
|
6263
|
-
? deserializeAws_restJson1Range(output.offsetRange, context)
|
|
6264
|
-
: undefined,
|
|
6144
|
+
lineRange: output.lineRange != null ? deserializeAws_restJson1Range(output.lineRange, context) : undefined,
|
|
6145
|
+
offsetRange: output.offsetRange != null ? deserializeAws_restJson1Range(output.offsetRange, context) : undefined,
|
|
6265
6146
|
pageNumber: (0, smithy_client_1.expectLong)(output.pageNumber),
|
|
6266
6147
|
};
|
|
6267
6148
|
};
|
|
@@ -6278,12 +6159,8 @@ const deserializeAws_restJson1Pages = (output, context) => {
|
|
|
6278
6159
|
};
|
|
6279
6160
|
const deserializeAws_restJson1PolicyDetails = (output, context) => {
|
|
6280
6161
|
return {
|
|
6281
|
-
action: output.action
|
|
6282
|
-
|
|
6283
|
-
: undefined,
|
|
6284
|
-
actor: output.actor !== undefined && output.actor !== null
|
|
6285
|
-
? deserializeAws_restJson1FindingActor(output.actor, context)
|
|
6286
|
-
: undefined,
|
|
6162
|
+
action: output.action != null ? deserializeAws_restJson1FindingAction(output.action, context) : undefined,
|
|
6163
|
+
actor: output.actor != null ? deserializeAws_restJson1FindingActor(output.actor, context) : undefined,
|
|
6287
6164
|
};
|
|
6288
6165
|
};
|
|
6289
6166
|
const deserializeAws_restJson1Range = (output, context) => {
|
|
@@ -6325,59 +6202,43 @@ const deserializeAws_restJson1ReplicationDetails = (output, context) => {
|
|
|
6325
6202
|
return {
|
|
6326
6203
|
replicated: (0, smithy_client_1.expectBoolean)(output.replicated),
|
|
6327
6204
|
replicatedExternally: (0, smithy_client_1.expectBoolean)(output.replicatedExternally),
|
|
6328
|
-
replicationAccounts: output.replicationAccounts
|
|
6205
|
+
replicationAccounts: output.replicationAccounts != null
|
|
6329
6206
|
? deserializeAws_restJson1__listOf__string(output.replicationAccounts, context)
|
|
6330
6207
|
: undefined,
|
|
6331
6208
|
};
|
|
6332
6209
|
};
|
|
6333
6210
|
const deserializeAws_restJson1ResourcesAffected = (output, context) => {
|
|
6334
6211
|
return {
|
|
6335
|
-
s3Bucket: output.s3Bucket
|
|
6336
|
-
|
|
6337
|
-
: undefined,
|
|
6338
|
-
s3Object: output.s3Object !== undefined && output.s3Object !== null
|
|
6339
|
-
? deserializeAws_restJson1S3Object(output.s3Object, context)
|
|
6340
|
-
: undefined,
|
|
6212
|
+
s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3Bucket(output.s3Bucket, context) : undefined,
|
|
6213
|
+
s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
|
|
6341
6214
|
};
|
|
6342
6215
|
};
|
|
6343
6216
|
const deserializeAws_restJson1S3Bucket = (output, context) => {
|
|
6344
6217
|
return {
|
|
6345
6218
|
allowsUnencryptedObjectUploads: (0, smithy_client_1.expectString)(output.allowsUnencryptedObjectUploads),
|
|
6346
6219
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6347
|
-
createdAt: output.createdAt
|
|
6348
|
-
|
|
6349
|
-
: undefined,
|
|
6350
|
-
defaultServerSideEncryption: output.defaultServerSideEncryption !== undefined && output.defaultServerSideEncryption !== null
|
|
6220
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
6221
|
+
defaultServerSideEncryption: output.defaultServerSideEncryption != null
|
|
6351
6222
|
? deserializeAws_restJson1ServerSideEncryption(output.defaultServerSideEncryption, context)
|
|
6352
6223
|
: undefined,
|
|
6353
6224
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6354
|
-
owner: output.owner
|
|
6355
|
-
|
|
6356
|
-
: undefined,
|
|
6357
|
-
publicAccess: output.publicAccess !== undefined && output.publicAccess !== null
|
|
6225
|
+
owner: output.owner != null ? deserializeAws_restJson1S3BucketOwner(output.owner, context) : undefined,
|
|
6226
|
+
publicAccess: output.publicAccess != null
|
|
6358
6227
|
? deserializeAws_restJson1BucketPublicAccess(output.publicAccess, context)
|
|
6359
6228
|
: undefined,
|
|
6360
|
-
tags: output.tags
|
|
6361
|
-
? deserializeAws_restJson1KeyValuePairList(output.tags, context)
|
|
6362
|
-
: undefined,
|
|
6229
|
+
tags: output.tags != null ? deserializeAws_restJson1KeyValuePairList(output.tags, context) : undefined,
|
|
6363
6230
|
};
|
|
6364
6231
|
};
|
|
6365
6232
|
const deserializeAws_restJson1S3BucketCriteriaForJob = (output, context) => {
|
|
6366
6233
|
return {
|
|
6367
|
-
excludes: output.excludes
|
|
6368
|
-
|
|
6369
|
-
: undefined,
|
|
6370
|
-
includes: output.includes !== undefined && output.includes !== null
|
|
6371
|
-
? deserializeAws_restJson1CriteriaBlockForJob(output.includes, context)
|
|
6372
|
-
: undefined,
|
|
6234
|
+
excludes: output.excludes != null ? deserializeAws_restJson1CriteriaBlockForJob(output.excludes, context) : undefined,
|
|
6235
|
+
includes: output.includes != null ? deserializeAws_restJson1CriteriaBlockForJob(output.includes, context) : undefined,
|
|
6373
6236
|
};
|
|
6374
6237
|
};
|
|
6375
6238
|
const deserializeAws_restJson1S3BucketDefinitionForJob = (output, context) => {
|
|
6376
6239
|
return {
|
|
6377
6240
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
6378
|
-
buckets: output.buckets
|
|
6379
|
-
? deserializeAws_restJson1__listOf__string(output.buckets, context)
|
|
6380
|
-
: undefined,
|
|
6241
|
+
buckets: output.buckets != null ? deserializeAws_restJson1__listOf__string(output.buckets, context) : undefined,
|
|
6381
6242
|
};
|
|
6382
6243
|
};
|
|
6383
6244
|
const deserializeAws_restJson1S3BucketOwner = (output, context) => {
|
|
@@ -6395,15 +6256,13 @@ const deserializeAws_restJson1S3Destination = (output, context) => {
|
|
|
6395
6256
|
};
|
|
6396
6257
|
const deserializeAws_restJson1S3JobDefinition = (output, context) => {
|
|
6397
6258
|
return {
|
|
6398
|
-
bucketCriteria: output.bucketCriteria
|
|
6259
|
+
bucketCriteria: output.bucketCriteria != null
|
|
6399
6260
|
? deserializeAws_restJson1S3BucketCriteriaForJob(output.bucketCriteria, context)
|
|
6400
6261
|
: undefined,
|
|
6401
|
-
bucketDefinitions: output.bucketDefinitions
|
|
6262
|
+
bucketDefinitions: output.bucketDefinitions != null
|
|
6402
6263
|
? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
|
|
6403
6264
|
: undefined,
|
|
6404
|
-
scoping: output.scoping
|
|
6405
|
-
? deserializeAws_restJson1Scoping(output.scoping, context)
|
|
6406
|
-
: undefined,
|
|
6265
|
+
scoping: output.scoping != null ? deserializeAws_restJson1Scoping(output.scoping, context) : undefined,
|
|
6407
6266
|
};
|
|
6408
6267
|
};
|
|
6409
6268
|
const deserializeAws_restJson1S3Object = (output, context) => {
|
|
@@ -6412,30 +6271,22 @@ const deserializeAws_restJson1S3Object = (output, context) => {
|
|
|
6412
6271
|
eTag: (0, smithy_client_1.expectString)(output.eTag),
|
|
6413
6272
|
extension: (0, smithy_client_1.expectString)(output.extension),
|
|
6414
6273
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
6415
|
-
lastModified: output.lastModified
|
|
6416
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastModified))
|
|
6417
|
-
: undefined,
|
|
6274
|
+
lastModified: output.lastModified != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastModified)) : undefined,
|
|
6418
6275
|
path: (0, smithy_client_1.expectString)(output.path),
|
|
6419
6276
|
publicAccess: (0, smithy_client_1.expectBoolean)(output.publicAccess),
|
|
6420
|
-
serverSideEncryption: output.serverSideEncryption
|
|
6277
|
+
serverSideEncryption: output.serverSideEncryption != null
|
|
6421
6278
|
? deserializeAws_restJson1ServerSideEncryption(output.serverSideEncryption, context)
|
|
6422
6279
|
: undefined,
|
|
6423
6280
|
size: (0, smithy_client_1.expectLong)(output.size),
|
|
6424
6281
|
storageClass: (0, smithy_client_1.expectString)(output.storageClass),
|
|
6425
|
-
tags: output.tags
|
|
6426
|
-
? deserializeAws_restJson1KeyValuePairList(output.tags, context)
|
|
6427
|
-
: undefined,
|
|
6282
|
+
tags: output.tags != null ? deserializeAws_restJson1KeyValuePairList(output.tags, context) : undefined,
|
|
6428
6283
|
versionId: (0, smithy_client_1.expectString)(output.versionId),
|
|
6429
6284
|
};
|
|
6430
6285
|
};
|
|
6431
6286
|
const deserializeAws_restJson1Scoping = (output, context) => {
|
|
6432
6287
|
return {
|
|
6433
|
-
excludes: output.excludes
|
|
6434
|
-
|
|
6435
|
-
: undefined,
|
|
6436
|
-
includes: output.includes !== undefined && output.includes !== null
|
|
6437
|
-
? deserializeAws_restJson1JobScopingBlock(output.includes, context)
|
|
6438
|
-
: undefined,
|
|
6288
|
+
excludes: output.excludes != null ? deserializeAws_restJson1JobScopingBlock(output.excludes, context) : undefined,
|
|
6289
|
+
includes: output.includes != null ? deserializeAws_restJson1JobScopingBlock(output.includes, context) : undefined,
|
|
6439
6290
|
};
|
|
6440
6291
|
};
|
|
6441
6292
|
const deserializeAws_restJson1SecurityHubConfiguration = (output, context) => {
|
|
@@ -6458,9 +6309,7 @@ const deserializeAws_restJson1SensitiveData = (output, context) => {
|
|
|
6458
6309
|
const deserializeAws_restJson1SensitiveDataItem = (output, context) => {
|
|
6459
6310
|
return {
|
|
6460
6311
|
category: (0, smithy_client_1.expectString)(output.category),
|
|
6461
|
-
detections: output.detections
|
|
6462
|
-
? deserializeAws_restJson1DefaultDetections(output.detections, context)
|
|
6463
|
-
: undefined,
|
|
6312
|
+
detections: output.detections != null ? deserializeAws_restJson1DefaultDetections(output.detections, context) : undefined,
|
|
6464
6313
|
totalCount: (0, smithy_client_1.expectLong)(output.totalCount),
|
|
6465
6314
|
};
|
|
6466
6315
|
};
|
|
@@ -6479,19 +6328,15 @@ const deserializeAws_restJson1ServiceLimit = (output, context) => {
|
|
|
6479
6328
|
};
|
|
6480
6329
|
const deserializeAws_restJson1SessionContext = (output, context) => {
|
|
6481
6330
|
return {
|
|
6482
|
-
attributes: output.attributes
|
|
6331
|
+
attributes: output.attributes != null
|
|
6483
6332
|
? deserializeAws_restJson1SessionContextAttributes(output.attributes, context)
|
|
6484
6333
|
: undefined,
|
|
6485
|
-
sessionIssuer: output.sessionIssuer
|
|
6486
|
-
? deserializeAws_restJson1SessionIssuer(output.sessionIssuer, context)
|
|
6487
|
-
: undefined,
|
|
6334
|
+
sessionIssuer: output.sessionIssuer != null ? deserializeAws_restJson1SessionIssuer(output.sessionIssuer, context) : undefined,
|
|
6488
6335
|
};
|
|
6489
6336
|
};
|
|
6490
6337
|
const deserializeAws_restJson1SessionContextAttributes = (output, context) => {
|
|
6491
6338
|
return {
|
|
6492
|
-
creationDate: output.creationDate
|
|
6493
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate))
|
|
6494
|
-
: undefined,
|
|
6339
|
+
creationDate: output.creationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate)) : undefined,
|
|
6495
6340
|
mfaAuthenticated: (0, smithy_client_1.expectBoolean)(output.mfaAuthenticated),
|
|
6496
6341
|
};
|
|
6497
6342
|
};
|
|
@@ -6531,18 +6376,14 @@ const deserializeAws_restJson1SimpleCriterionForJob = (output, context) => {
|
|
|
6531
6376
|
return {
|
|
6532
6377
|
comparator: (0, smithy_client_1.expectString)(output.comparator),
|
|
6533
6378
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
6534
|
-
values: output.values
|
|
6535
|
-
? deserializeAws_restJson1__listOf__string(output.values, context)
|
|
6536
|
-
: undefined,
|
|
6379
|
+
values: output.values != null ? deserializeAws_restJson1__listOf__string(output.values, context) : undefined,
|
|
6537
6380
|
};
|
|
6538
6381
|
};
|
|
6539
6382
|
const deserializeAws_restJson1SimpleScopeTerm = (output, context) => {
|
|
6540
6383
|
return {
|
|
6541
6384
|
comparator: (0, smithy_client_1.expectString)(output.comparator),
|
|
6542
6385
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
6543
|
-
values: output.values
|
|
6544
|
-
? deserializeAws_restJson1__listOf__string(output.values, context)
|
|
6545
|
-
: undefined,
|
|
6386
|
+
values: output.values != null ? deserializeAws_restJson1__listOf__string(output.values, context) : undefined,
|
|
6546
6387
|
};
|
|
6547
6388
|
};
|
|
6548
6389
|
const deserializeAws_restJson1Statistics = (output, context) => {
|
|
@@ -6554,7 +6395,7 @@ const deserializeAws_restJson1Statistics = (output, context) => {
|
|
|
6554
6395
|
const deserializeAws_restJson1TagCriterionForJob = (output, context) => {
|
|
6555
6396
|
return {
|
|
6556
6397
|
comparator: (0, smithy_client_1.expectString)(output.comparator),
|
|
6557
|
-
tagValues: output.tagValues
|
|
6398
|
+
tagValues: output.tagValues != null
|
|
6558
6399
|
? deserializeAws_restJson1__listOfTagCriterionPairForJob(output.tagValues, context)
|
|
6559
6400
|
: undefined,
|
|
6560
6401
|
};
|
|
@@ -6580,9 +6421,7 @@ const deserializeAws_restJson1TagScopeTerm = (output, context) => {
|
|
|
6580
6421
|
return {
|
|
6581
6422
|
comparator: (0, smithy_client_1.expectString)(output.comparator),
|
|
6582
6423
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
6583
|
-
tagValues: output.tagValues
|
|
6584
|
-
? deserializeAws_restJson1__listOfTagValuePair(output.tagValues, context)
|
|
6585
|
-
: undefined,
|
|
6424
|
+
tagValues: output.tagValues != null ? deserializeAws_restJson1__listOfTagValuePair(output.tagValues, context) : undefined,
|
|
6586
6425
|
target: (0, smithy_client_1.expectString)(output.target),
|
|
6587
6426
|
};
|
|
6588
6427
|
};
|
|
@@ -6603,21 +6442,17 @@ const deserializeAws_restJson1UsageByAccount = (output, context) => {
|
|
|
6603
6442
|
return {
|
|
6604
6443
|
currency: (0, smithy_client_1.expectString)(output.currency),
|
|
6605
6444
|
estimatedCost: (0, smithy_client_1.expectString)(output.estimatedCost),
|
|
6606
|
-
serviceLimit: output.serviceLimit
|
|
6607
|
-
? deserializeAws_restJson1ServiceLimit(output.serviceLimit, context)
|
|
6608
|
-
: undefined,
|
|
6445
|
+
serviceLimit: output.serviceLimit != null ? deserializeAws_restJson1ServiceLimit(output.serviceLimit, context) : undefined,
|
|
6609
6446
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
6610
6447
|
};
|
|
6611
6448
|
};
|
|
6612
6449
|
const deserializeAws_restJson1UsageRecord = (output, context) => {
|
|
6613
6450
|
return {
|
|
6614
6451
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
6615
|
-
freeTrialStartDate: output.freeTrialStartDate
|
|
6452
|
+
freeTrialStartDate: output.freeTrialStartDate != null
|
|
6616
6453
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.freeTrialStartDate))
|
|
6617
6454
|
: undefined,
|
|
6618
|
-
usage: output.usage
|
|
6619
|
-
? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context)
|
|
6620
|
-
: undefined,
|
|
6455
|
+
usage: output.usage != null ? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context) : undefined,
|
|
6621
6456
|
};
|
|
6622
6457
|
};
|
|
6623
6458
|
const deserializeAws_restJson1UsageTotal = (output, context) => {
|
|
@@ -6629,24 +6464,12 @@ const deserializeAws_restJson1UsageTotal = (output, context) => {
|
|
|
6629
6464
|
};
|
|
6630
6465
|
const deserializeAws_restJson1UserIdentity = (output, context) => {
|
|
6631
6466
|
return {
|
|
6632
|
-
assumedRole: output.assumedRole
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
awsService: output.awsService !== undefined && output.awsService !== null
|
|
6639
|
-
? deserializeAws_restJson1AwsService(output.awsService, context)
|
|
6640
|
-
: undefined,
|
|
6641
|
-
federatedUser: output.federatedUser !== undefined && output.federatedUser !== null
|
|
6642
|
-
? deserializeAws_restJson1FederatedUser(output.federatedUser, context)
|
|
6643
|
-
: undefined,
|
|
6644
|
-
iamUser: output.iamUser !== undefined && output.iamUser !== null
|
|
6645
|
-
? deserializeAws_restJson1IamUser(output.iamUser, context)
|
|
6646
|
-
: undefined,
|
|
6647
|
-
root: output.root !== undefined && output.root !== null
|
|
6648
|
-
? deserializeAws_restJson1UserIdentityRoot(output.root, context)
|
|
6649
|
-
: undefined,
|
|
6467
|
+
assumedRole: output.assumedRole != null ? deserializeAws_restJson1AssumedRole(output.assumedRole, context) : undefined,
|
|
6468
|
+
awsAccount: output.awsAccount != null ? deserializeAws_restJson1AwsAccount(output.awsAccount, context) : undefined,
|
|
6469
|
+
awsService: output.awsService != null ? deserializeAws_restJson1AwsService(output.awsService, context) : undefined,
|
|
6470
|
+
federatedUser: output.federatedUser != null ? deserializeAws_restJson1FederatedUser(output.federatedUser, context) : undefined,
|
|
6471
|
+
iamUser: output.iamUser != null ? deserializeAws_restJson1IamUser(output.iamUser, context) : undefined,
|
|
6472
|
+
root: output.root != null ? deserializeAws_restJson1UserIdentityRoot(output.root, context) : undefined,
|
|
6650
6473
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
6651
6474
|
};
|
|
6652
6475
|
};
|
|
@@ -6659,13 +6482,9 @@ const deserializeAws_restJson1UserIdentityRoot = (output, context) => {
|
|
|
6659
6482
|
};
|
|
6660
6483
|
const deserializeAws_restJson1UserPausedDetails = (output, context) => {
|
|
6661
6484
|
return {
|
|
6662
|
-
jobExpiresAt: output.jobExpiresAt
|
|
6663
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.jobExpiresAt))
|
|
6664
|
-
: undefined,
|
|
6485
|
+
jobExpiresAt: output.jobExpiresAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.jobExpiresAt)) : undefined,
|
|
6665
6486
|
jobImminentExpirationHealthEventArn: (0, smithy_client_1.expectString)(output.jobImminentExpirationHealthEventArn),
|
|
6666
|
-
jobPausedAt: output.jobPausedAt
|
|
6667
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.jobPausedAt))
|
|
6668
|
-
: undefined,
|
|
6487
|
+
jobPausedAt: output.jobPausedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.jobPausedAt)) : undefined,
|
|
6669
6488
|
};
|
|
6670
6489
|
};
|
|
6671
6490
|
const deserializeAws_restJson1WeeklySchedule = (output, context) => {
|
|
@@ -6722,5 +6541,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6722
6541
|
if (data["__type"] !== undefined) {
|
|
6723
6542
|
return sanitizeErrorCode(data["__type"]);
|
|
6724
6543
|
}
|
|
6725
|
-
return "";
|
|
6726
6544
|
};
|