@aws-sdk/client-macie2 3.121.0 → 3.130.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 +312 -547
- package/dist-es/protocols/Aws_restJson1.js +227 -462
- 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,
|
|
@@ -4982,8 +4944,8 @@ const serializeAws_restJson1__listOfUsageStatisticsFilter = (input, context) =>
|
|
|
4982
4944
|
};
|
|
4983
4945
|
const serializeAws_restJson1AccountDetail = (input, context) => {
|
|
4984
4946
|
return {
|
|
4985
|
-
...(input.accountId
|
|
4986
|
-
...(input.email
|
|
4947
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
4948
|
+
...(input.email != null && { email: input.email }),
|
|
4987
4949
|
};
|
|
4988
4950
|
};
|
|
4989
4951
|
const serializeAws_restJson1BucketCriteria = (input, context) => {
|
|
@@ -4999,45 +4961,39 @@ const serializeAws_restJson1BucketCriteria = (input, context) => {
|
|
|
4999
4961
|
};
|
|
5000
4962
|
const serializeAws_restJson1BucketCriteriaAdditionalProperties = (input, context) => {
|
|
5001
4963
|
return {
|
|
5002
|
-
...(input.eq
|
|
5003
|
-
|
|
5004
|
-
...(input.
|
|
5005
|
-
...(input.
|
|
5006
|
-
...(input.
|
|
5007
|
-
...(input.
|
|
5008
|
-
...(input.
|
|
5009
|
-
input.neq !== null && { neq: serializeAws_restJson1__listOf__string(input.neq, context) }),
|
|
5010
|
-
...(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 }),
|
|
5011
4971
|
};
|
|
5012
4972
|
};
|
|
5013
4973
|
const serializeAws_restJson1BucketSortCriteria = (input, context) => {
|
|
5014
4974
|
return {
|
|
5015
|
-
...(input.attributeName
|
|
5016
|
-
...(input.orderBy
|
|
4975
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
4976
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5017
4977
|
};
|
|
5018
4978
|
};
|
|
5019
4979
|
const serializeAws_restJson1ClassificationExportConfiguration = (input, context) => {
|
|
5020
4980
|
return {
|
|
5021
|
-
...(input.s3Destination
|
|
5022
|
-
input.s3Destination !== null && {
|
|
4981
|
+
...(input.s3Destination != null && {
|
|
5023
4982
|
s3Destination: serializeAws_restJson1S3Destination(input.s3Destination, context),
|
|
5024
4983
|
}),
|
|
5025
4984
|
};
|
|
5026
4985
|
};
|
|
5027
4986
|
const serializeAws_restJson1CriteriaBlockForJob = (input, context) => {
|
|
5028
4987
|
return {
|
|
5029
|
-
...(input.and
|
|
5030
|
-
input.and !== null && { and: serializeAws_restJson1__listOfCriteriaForJob(input.and, context) }),
|
|
4988
|
+
...(input.and != null && { and: serializeAws_restJson1__listOfCriteriaForJob(input.and, context) }),
|
|
5031
4989
|
};
|
|
5032
4990
|
};
|
|
5033
4991
|
const serializeAws_restJson1CriteriaForJob = (input, context) => {
|
|
5034
4992
|
return {
|
|
5035
|
-
...(input.simpleCriterion
|
|
5036
|
-
input.simpleCriterion !== null && {
|
|
4993
|
+
...(input.simpleCriterion != null && {
|
|
5037
4994
|
simpleCriterion: serializeAws_restJson1SimpleCriterionForJob(input.simpleCriterion, context),
|
|
5038
4995
|
}),
|
|
5039
|
-
...(input.tagCriterion
|
|
5040
|
-
input.tagCriterion !== null && {
|
|
4996
|
+
...(input.tagCriterion != null && {
|
|
5041
4997
|
tagCriterion: serializeAws_restJson1TagCriterionForJob(input.tagCriterion, context),
|
|
5042
4998
|
}),
|
|
5043
4999
|
};
|
|
@@ -5055,18 +5011,15 @@ const serializeAws_restJson1Criterion = (input, context) => {
|
|
|
5055
5011
|
};
|
|
5056
5012
|
const serializeAws_restJson1CriterionAdditionalProperties = (input, context) => {
|
|
5057
5013
|
return {
|
|
5058
|
-
...(input.eq
|
|
5059
|
-
|
|
5060
|
-
...(input.eqExactMatch !== undefined &&
|
|
5061
|
-
input.eqExactMatch !== null && {
|
|
5014
|
+
...(input.eq != null && { eq: serializeAws_restJson1__listOf__string(input.eq, context) }),
|
|
5015
|
+
...(input.eqExactMatch != null && {
|
|
5062
5016
|
eqExactMatch: serializeAws_restJson1__listOf__string(input.eqExactMatch, context),
|
|
5063
5017
|
}),
|
|
5064
|
-
...(input.gt
|
|
5065
|
-
...(input.gte
|
|
5066
|
-
...(input.lt
|
|
5067
|
-
...(input.lte
|
|
5068
|
-
...(input.neq
|
|
5069
|
-
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) }),
|
|
5070
5023
|
};
|
|
5071
5024
|
};
|
|
5072
5025
|
const serializeAws_restJson1DailySchedule = (input, context) => {
|
|
@@ -5074,197 +5027,171 @@ const serializeAws_restJson1DailySchedule = (input, context) => {
|
|
|
5074
5027
|
};
|
|
5075
5028
|
const serializeAws_restJson1FindingCriteria = (input, context) => {
|
|
5076
5029
|
return {
|
|
5077
|
-
...(input.criterion
|
|
5078
|
-
input.criterion !== null && { criterion: serializeAws_restJson1Criterion(input.criterion, context) }),
|
|
5030
|
+
...(input.criterion != null && { criterion: serializeAws_restJson1Criterion(input.criterion, context) }),
|
|
5079
5031
|
};
|
|
5080
5032
|
};
|
|
5081
5033
|
const serializeAws_restJson1FindingStatisticsSortCriteria = (input, context) => {
|
|
5082
5034
|
return {
|
|
5083
|
-
...(input.attributeName
|
|
5084
|
-
...(input.orderBy
|
|
5035
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
5036
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5085
5037
|
};
|
|
5086
5038
|
};
|
|
5087
5039
|
const serializeAws_restJson1JobScheduleFrequency = (input, context) => {
|
|
5088
5040
|
return {
|
|
5089
|
-
...(input.dailySchedule
|
|
5090
|
-
input.dailySchedule !== null && {
|
|
5041
|
+
...(input.dailySchedule != null && {
|
|
5091
5042
|
dailySchedule: serializeAws_restJson1DailySchedule(input.dailySchedule, context),
|
|
5092
5043
|
}),
|
|
5093
|
-
...(input.monthlySchedule
|
|
5094
|
-
input.monthlySchedule !== null && {
|
|
5044
|
+
...(input.monthlySchedule != null && {
|
|
5095
5045
|
monthlySchedule: serializeAws_restJson1MonthlySchedule(input.monthlySchedule, context),
|
|
5096
5046
|
}),
|
|
5097
|
-
...(input.weeklySchedule
|
|
5098
|
-
input.weeklySchedule !== null && {
|
|
5047
|
+
...(input.weeklySchedule != null && {
|
|
5099
5048
|
weeklySchedule: serializeAws_restJson1WeeklySchedule(input.weeklySchedule, context),
|
|
5100
5049
|
}),
|
|
5101
5050
|
};
|
|
5102
5051
|
};
|
|
5103
5052
|
const serializeAws_restJson1JobScopeTerm = (input, context) => {
|
|
5104
5053
|
return {
|
|
5105
|
-
...(input.simpleScopeTerm
|
|
5106
|
-
input.simpleScopeTerm !== null && {
|
|
5054
|
+
...(input.simpleScopeTerm != null && {
|
|
5107
5055
|
simpleScopeTerm: serializeAws_restJson1SimpleScopeTerm(input.simpleScopeTerm, context),
|
|
5108
5056
|
}),
|
|
5109
|
-
...(input.tagScopeTerm
|
|
5110
|
-
|
|
5057
|
+
...(input.tagScopeTerm != null && {
|
|
5058
|
+
tagScopeTerm: serializeAws_restJson1TagScopeTerm(input.tagScopeTerm, context),
|
|
5059
|
+
}),
|
|
5111
5060
|
};
|
|
5112
5061
|
};
|
|
5113
5062
|
const serializeAws_restJson1JobScopingBlock = (input, context) => {
|
|
5114
5063
|
return {
|
|
5115
|
-
...(input.and
|
|
5116
|
-
input.and !== null && { and: serializeAws_restJson1__listOfJobScopeTerm(input.and, context) }),
|
|
5064
|
+
...(input.and != null && { and: serializeAws_restJson1__listOfJobScopeTerm(input.and, context) }),
|
|
5117
5065
|
};
|
|
5118
5066
|
};
|
|
5119
5067
|
const serializeAws_restJson1ListJobsFilterCriteria = (input, context) => {
|
|
5120
5068
|
return {
|
|
5121
|
-
...(input.excludes
|
|
5122
|
-
input.excludes !== null && {
|
|
5069
|
+
...(input.excludes != null && {
|
|
5123
5070
|
excludes: serializeAws_restJson1__listOfListJobsFilterTerm(input.excludes, context),
|
|
5124
5071
|
}),
|
|
5125
|
-
...(input.includes
|
|
5126
|
-
input.includes !== null && {
|
|
5072
|
+
...(input.includes != null && {
|
|
5127
5073
|
includes: serializeAws_restJson1__listOfListJobsFilterTerm(input.includes, context),
|
|
5128
5074
|
}),
|
|
5129
5075
|
};
|
|
5130
5076
|
};
|
|
5131
5077
|
const serializeAws_restJson1ListJobsFilterTerm = (input, context) => {
|
|
5132
5078
|
return {
|
|
5133
|
-
...(input.comparator
|
|
5134
|
-
...(input.key
|
|
5135
|
-
...(input.values
|
|
5136
|
-
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) }),
|
|
5137
5082
|
};
|
|
5138
5083
|
};
|
|
5139
5084
|
const serializeAws_restJson1ListJobsSortCriteria = (input, context) => {
|
|
5140
5085
|
return {
|
|
5141
|
-
...(input.attributeName
|
|
5142
|
-
...(input.orderBy
|
|
5086
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
5087
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5143
5088
|
};
|
|
5144
5089
|
};
|
|
5145
5090
|
const serializeAws_restJson1MonthlySchedule = (input, context) => {
|
|
5146
5091
|
return {
|
|
5147
|
-
...(input.dayOfMonth
|
|
5092
|
+
...(input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth }),
|
|
5148
5093
|
};
|
|
5149
5094
|
};
|
|
5150
5095
|
const serializeAws_restJson1S3BucketCriteriaForJob = (input, context) => {
|
|
5151
5096
|
return {
|
|
5152
|
-
...(input.excludes
|
|
5153
|
-
|
|
5154
|
-
...(input.includes !== undefined &&
|
|
5155
|
-
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) }),
|
|
5156
5099
|
};
|
|
5157
5100
|
};
|
|
5158
5101
|
const serializeAws_restJson1S3BucketDefinitionForJob = (input, context) => {
|
|
5159
5102
|
return {
|
|
5160
|
-
...(input.accountId
|
|
5161
|
-
...(input.buckets
|
|
5162
|
-
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) }),
|
|
5163
5105
|
};
|
|
5164
5106
|
};
|
|
5165
5107
|
const serializeAws_restJson1S3Destination = (input, context) => {
|
|
5166
5108
|
return {
|
|
5167
|
-
...(input.bucketName
|
|
5168
|
-
...(input.keyPrefix
|
|
5169
|
-
...(input.kmsKeyArn
|
|
5109
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
5110
|
+
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
5111
|
+
...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
|
|
5170
5112
|
};
|
|
5171
5113
|
};
|
|
5172
5114
|
const serializeAws_restJson1S3JobDefinition = (input, context) => {
|
|
5173
5115
|
return {
|
|
5174
|
-
...(input.bucketCriteria
|
|
5175
|
-
input.bucketCriteria !== null && {
|
|
5116
|
+
...(input.bucketCriteria != null && {
|
|
5176
5117
|
bucketCriteria: serializeAws_restJson1S3BucketCriteriaForJob(input.bucketCriteria, context),
|
|
5177
5118
|
}),
|
|
5178
|
-
...(input.bucketDefinitions
|
|
5179
|
-
input.bucketDefinitions !== null && {
|
|
5119
|
+
...(input.bucketDefinitions != null && {
|
|
5180
5120
|
bucketDefinitions: serializeAws_restJson1__listOfS3BucketDefinitionForJob(input.bucketDefinitions, context),
|
|
5181
5121
|
}),
|
|
5182
|
-
...(input.scoping
|
|
5183
|
-
input.scoping !== null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }),
|
|
5122
|
+
...(input.scoping != null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }),
|
|
5184
5123
|
};
|
|
5185
5124
|
};
|
|
5186
5125
|
const serializeAws_restJson1Scoping = (input, context) => {
|
|
5187
5126
|
return {
|
|
5188
|
-
...(input.excludes
|
|
5189
|
-
|
|
5190
|
-
...(input.includes !== undefined &&
|
|
5191
|
-
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) }),
|
|
5192
5129
|
};
|
|
5193
5130
|
};
|
|
5194
5131
|
const serializeAws_restJson1SearchResourcesBucketCriteria = (input, context) => {
|
|
5195
5132
|
return {
|
|
5196
|
-
...(input.excludes
|
|
5197
|
-
input.excludes !== null && {
|
|
5133
|
+
...(input.excludes != null && {
|
|
5198
5134
|
excludes: serializeAws_restJson1SearchResourcesCriteriaBlock(input.excludes, context),
|
|
5199
5135
|
}),
|
|
5200
|
-
...(input.includes
|
|
5201
|
-
input.includes !== null && {
|
|
5136
|
+
...(input.includes != null && {
|
|
5202
5137
|
includes: serializeAws_restJson1SearchResourcesCriteriaBlock(input.includes, context),
|
|
5203
5138
|
}),
|
|
5204
5139
|
};
|
|
5205
5140
|
};
|
|
5206
5141
|
const serializeAws_restJson1SearchResourcesCriteria = (input, context) => {
|
|
5207
5142
|
return {
|
|
5208
|
-
...(input.simpleCriterion
|
|
5209
|
-
input.simpleCriterion !== null && {
|
|
5143
|
+
...(input.simpleCriterion != null && {
|
|
5210
5144
|
simpleCriterion: serializeAws_restJson1SearchResourcesSimpleCriterion(input.simpleCriterion, context),
|
|
5211
5145
|
}),
|
|
5212
|
-
...(input.tagCriterion
|
|
5213
|
-
input.tagCriterion !== null && {
|
|
5146
|
+
...(input.tagCriterion != null && {
|
|
5214
5147
|
tagCriterion: serializeAws_restJson1SearchResourcesTagCriterion(input.tagCriterion, context),
|
|
5215
5148
|
}),
|
|
5216
5149
|
};
|
|
5217
5150
|
};
|
|
5218
5151
|
const serializeAws_restJson1SearchResourcesCriteriaBlock = (input, context) => {
|
|
5219
5152
|
return {
|
|
5220
|
-
...(input.and
|
|
5221
|
-
input.and !== null && { and: serializeAws_restJson1__listOfSearchResourcesCriteria(input.and, context) }),
|
|
5153
|
+
...(input.and != null && { and: serializeAws_restJson1__listOfSearchResourcesCriteria(input.and, context) }),
|
|
5222
5154
|
};
|
|
5223
5155
|
};
|
|
5224
5156
|
const serializeAws_restJson1SearchResourcesSimpleCriterion = (input, context) => {
|
|
5225
5157
|
return {
|
|
5226
|
-
...(input.comparator
|
|
5227
|
-
...(input.key
|
|
5228
|
-
...(input.values
|
|
5229
|
-
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) }),
|
|
5230
5161
|
};
|
|
5231
5162
|
};
|
|
5232
5163
|
const serializeAws_restJson1SearchResourcesSortCriteria = (input, context) => {
|
|
5233
5164
|
return {
|
|
5234
|
-
...(input.attributeName
|
|
5235
|
-
...(input.orderBy
|
|
5165
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
5166
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5236
5167
|
};
|
|
5237
5168
|
};
|
|
5238
5169
|
const serializeAws_restJson1SearchResourcesTagCriterion = (input, context) => {
|
|
5239
5170
|
return {
|
|
5240
|
-
...(input.comparator
|
|
5241
|
-
...(input.tagValues
|
|
5242
|
-
input.tagValues !== null && {
|
|
5171
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5172
|
+
...(input.tagValues != null && {
|
|
5243
5173
|
tagValues: serializeAws_restJson1__listOfSearchResourcesTagCriterionPair(input.tagValues, context),
|
|
5244
5174
|
}),
|
|
5245
5175
|
};
|
|
5246
5176
|
};
|
|
5247
5177
|
const serializeAws_restJson1SearchResourcesTagCriterionPair = (input, context) => {
|
|
5248
5178
|
return {
|
|
5249
|
-
...(input.key
|
|
5250
|
-
...(input.value
|
|
5179
|
+
...(input.key != null && { key: input.key }),
|
|
5180
|
+
...(input.value != null && { value: input.value }),
|
|
5251
5181
|
};
|
|
5252
5182
|
};
|
|
5253
5183
|
const serializeAws_restJson1SecurityHubConfiguration = (input, context) => {
|
|
5254
5184
|
return {
|
|
5255
|
-
...(input.publishClassificationFindings
|
|
5256
|
-
input.publishClassificationFindings !== null && {
|
|
5185
|
+
...(input.publishClassificationFindings != null && {
|
|
5257
5186
|
publishClassificationFindings: input.publishClassificationFindings,
|
|
5258
5187
|
}),
|
|
5259
|
-
...(input.publishPolicyFindings
|
|
5260
|
-
input.publishPolicyFindings !== null && { publishPolicyFindings: input.publishPolicyFindings }),
|
|
5188
|
+
...(input.publishPolicyFindings != null && { publishPolicyFindings: input.publishPolicyFindings }),
|
|
5261
5189
|
};
|
|
5262
5190
|
};
|
|
5263
5191
|
const serializeAws_restJson1SeverityLevel = (input, context) => {
|
|
5264
5192
|
return {
|
|
5265
|
-
...(input.occurrencesThreshold
|
|
5266
|
-
|
|
5267
|
-
...(input.severity !== undefined && input.severity !== null && { severity: input.severity }),
|
|
5193
|
+
...(input.occurrencesThreshold != null && { occurrencesThreshold: input.occurrencesThreshold }),
|
|
5194
|
+
...(input.severity != null && { severity: input.severity }),
|
|
5268
5195
|
};
|
|
5269
5196
|
};
|
|
5270
5197
|
const serializeAws_restJson1SeverityLevelList = (input, context) => {
|
|
@@ -5279,39 +5206,36 @@ const serializeAws_restJson1SeverityLevelList = (input, context) => {
|
|
|
5279
5206
|
};
|
|
5280
5207
|
const serializeAws_restJson1SimpleCriterionForJob = (input, context) => {
|
|
5281
5208
|
return {
|
|
5282
|
-
...(input.comparator
|
|
5283
|
-
...(input.key
|
|
5284
|
-
...(input.values
|
|
5285
|
-
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) }),
|
|
5286
5212
|
};
|
|
5287
5213
|
};
|
|
5288
5214
|
const serializeAws_restJson1SimpleScopeTerm = (input, context) => {
|
|
5289
5215
|
return {
|
|
5290
|
-
...(input.comparator
|
|
5291
|
-
...(input.key
|
|
5292
|
-
...(input.values
|
|
5293
|
-
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) }),
|
|
5294
5219
|
};
|
|
5295
5220
|
};
|
|
5296
5221
|
const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
5297
5222
|
return {
|
|
5298
|
-
...(input.attributeName
|
|
5299
|
-
...(input.orderBy
|
|
5223
|
+
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
5224
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5300
5225
|
};
|
|
5301
5226
|
};
|
|
5302
5227
|
const serializeAws_restJson1TagCriterionForJob = (input, context) => {
|
|
5303
5228
|
return {
|
|
5304
|
-
...(input.comparator
|
|
5305
|
-
...(input.tagValues
|
|
5306
|
-
input.tagValues !== null && {
|
|
5229
|
+
...(input.comparator != null && { comparator: input.comparator }),
|
|
5230
|
+
...(input.tagValues != null && {
|
|
5307
5231
|
tagValues: serializeAws_restJson1__listOfTagCriterionPairForJob(input.tagValues, context),
|
|
5308
5232
|
}),
|
|
5309
5233
|
};
|
|
5310
5234
|
};
|
|
5311
5235
|
const serializeAws_restJson1TagCriterionPairForJob = (input, context) => {
|
|
5312
5236
|
return {
|
|
5313
|
-
...(input.key
|
|
5314
|
-
...(input.value
|
|
5237
|
+
...(input.key != null && { key: input.key }),
|
|
5238
|
+
...(input.value != null && { value: input.value }),
|
|
5315
5239
|
};
|
|
5316
5240
|
};
|
|
5317
5241
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -5327,36 +5251,34 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
5327
5251
|
};
|
|
5328
5252
|
const serializeAws_restJson1TagScopeTerm = (input, context) => {
|
|
5329
5253
|
return {
|
|
5330
|
-
...(input.comparator
|
|
5331
|
-
...(input.key
|
|
5332
|
-
...(input.tagValues
|
|
5333
|
-
|
|
5334
|
-
...(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 }),
|
|
5335
5258
|
};
|
|
5336
5259
|
};
|
|
5337
5260
|
const serializeAws_restJson1TagValuePair = (input, context) => {
|
|
5338
5261
|
return {
|
|
5339
|
-
...(input.key
|
|
5340
|
-
...(input.value
|
|
5262
|
+
...(input.key != null && { key: input.key }),
|
|
5263
|
+
...(input.value != null && { value: input.value }),
|
|
5341
5264
|
};
|
|
5342
5265
|
};
|
|
5343
5266
|
const serializeAws_restJson1UsageStatisticsFilter = (input, context) => {
|
|
5344
5267
|
return {
|
|
5345
|
-
...(input.comparator
|
|
5346
|
-
...(input.key
|
|
5347
|
-
...(input.values
|
|
5348
|
-
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) }),
|
|
5349
5271
|
};
|
|
5350
5272
|
};
|
|
5351
5273
|
const serializeAws_restJson1UsageStatisticsSortBy = (input, context) => {
|
|
5352
5274
|
return {
|
|
5353
|
-
...(input.key
|
|
5354
|
-
...(input.orderBy
|
|
5275
|
+
...(input.key != null && { key: input.key }),
|
|
5276
|
+
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5355
5277
|
};
|
|
5356
5278
|
};
|
|
5357
5279
|
const serializeAws_restJson1WeeklySchedule = (input, context) => {
|
|
5358
5280
|
return {
|
|
5359
|
-
...(input.dayOfWeek
|
|
5281
|
+
...(input.dayOfWeek != null && { dayOfWeek: input.dayOfWeek }),
|
|
5360
5282
|
};
|
|
5361
5283
|
};
|
|
5362
5284
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
@@ -5620,7 +5542,7 @@ const deserializeAws_restJson1AccessControlList = (output, context) => {
|
|
|
5620
5542
|
};
|
|
5621
5543
|
const deserializeAws_restJson1AccountLevelPermissions = (output, context) => {
|
|
5622
5544
|
return {
|
|
5623
|
-
blockPublicAccess: output.blockPublicAccess
|
|
5545
|
+
blockPublicAccess: output.blockPublicAccess != null
|
|
5624
5546
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
5625
5547
|
: undefined,
|
|
5626
5548
|
};
|
|
@@ -5635,12 +5557,8 @@ const deserializeAws_restJson1ApiCallDetails = (output, context) => {
|
|
|
5635
5557
|
return {
|
|
5636
5558
|
api: (0, smithy_client_1.expectString)(output.api),
|
|
5637
5559
|
apiServiceName: (0, smithy_client_1.expectString)(output.apiServiceName),
|
|
5638
|
-
firstSeen: output.firstSeen
|
|
5639
|
-
|
|
5640
|
-
: undefined,
|
|
5641
|
-
lastSeen: output.lastSeen !== undefined && output.lastSeen !== null
|
|
5642
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastSeen))
|
|
5643
|
-
: 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,
|
|
5644
5562
|
};
|
|
5645
5563
|
};
|
|
5646
5564
|
const deserializeAws_restJson1AssumedRole = (output, context) => {
|
|
@@ -5649,7 +5567,7 @@ const deserializeAws_restJson1AssumedRole = (output, context) => {
|
|
|
5649
5567
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5650
5568
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5651
5569
|
principalId: (0, smithy_client_1.expectString)(output.principalId),
|
|
5652
|
-
sessionContext: output.sessionContext
|
|
5570
|
+
sessionContext: output.sessionContext != null
|
|
5653
5571
|
? deserializeAws_restJson1SessionContext(output.sessionContext, context)
|
|
5654
5572
|
: undefined,
|
|
5655
5573
|
};
|
|
@@ -5668,9 +5586,7 @@ const deserializeAws_restJson1AwsService = (output, context) => {
|
|
|
5668
5586
|
const deserializeAws_restJson1BatchGetCustomDataIdentifierSummary = (output, context) => {
|
|
5669
5587
|
return {
|
|
5670
5588
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5671
|
-
createdAt: output.createdAt
|
|
5672
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
5673
|
-
: undefined,
|
|
5589
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
5674
5590
|
deleted: (0, smithy_client_1.expectBoolean)(output.deleted),
|
|
5675
5591
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5676
5592
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
@@ -5718,15 +5634,13 @@ const deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads =
|
|
|
5718
5634
|
};
|
|
5719
5635
|
const deserializeAws_restJson1BucketLevelPermissions = (output, context) => {
|
|
5720
5636
|
return {
|
|
5721
|
-
accessControlList: output.accessControlList
|
|
5637
|
+
accessControlList: output.accessControlList != null
|
|
5722
5638
|
? deserializeAws_restJson1AccessControlList(output.accessControlList, context)
|
|
5723
5639
|
: undefined,
|
|
5724
|
-
blockPublicAccess: output.blockPublicAccess
|
|
5640
|
+
blockPublicAccess: output.blockPublicAccess != null
|
|
5725
5641
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
5726
5642
|
: undefined,
|
|
5727
|
-
bucketPolicy: output.bucketPolicy
|
|
5728
|
-
? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context)
|
|
5729
|
-
: undefined,
|
|
5643
|
+
bucketPolicy: output.bucketPolicy != null ? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context) : undefined,
|
|
5730
5644
|
};
|
|
5731
5645
|
};
|
|
5732
5646
|
const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
@@ -5734,44 +5648,36 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5734
5648
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5735
5649
|
allowsUnencryptedObjectUploads: (0, smithy_client_1.expectString)(output.allowsUnencryptedObjectUploads),
|
|
5736
5650
|
bucketArn: (0, smithy_client_1.expectString)(output.bucketArn),
|
|
5737
|
-
bucketCreatedAt: output.bucketCreatedAt
|
|
5738
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.bucketCreatedAt))
|
|
5739
|
-
: undefined,
|
|
5651
|
+
bucketCreatedAt: output.bucketCreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.bucketCreatedAt)) : undefined,
|
|
5740
5652
|
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
5741
5653
|
classifiableObjectCount: (0, smithy_client_1.expectLong)(output.classifiableObjectCount),
|
|
5742
5654
|
classifiableSizeInBytes: (0, smithy_client_1.expectLong)(output.classifiableSizeInBytes),
|
|
5743
5655
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
5744
5656
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
5745
|
-
jobDetails: output.jobDetails
|
|
5746
|
-
|
|
5747
|
-
: undefined,
|
|
5748
|
-
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
5749
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdated))
|
|
5750
|
-
: 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,
|
|
5751
5659
|
objectCount: (0, smithy_client_1.expectLong)(output.objectCount),
|
|
5752
|
-
objectCountByEncryptionType: output.objectCountByEncryptionType
|
|
5660
|
+
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
5753
5661
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
5754
5662
|
: undefined,
|
|
5755
|
-
publicAccess: output.publicAccess
|
|
5663
|
+
publicAccess: output.publicAccess != null
|
|
5756
5664
|
? deserializeAws_restJson1BucketPublicAccess(output.publicAccess, context)
|
|
5757
5665
|
: undefined,
|
|
5758
5666
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
5759
|
-
replicationDetails: output.replicationDetails
|
|
5667
|
+
replicationDetails: output.replicationDetails != null
|
|
5760
5668
|
? deserializeAws_restJson1ReplicationDetails(output.replicationDetails, context)
|
|
5761
5669
|
: undefined,
|
|
5762
|
-
serverSideEncryption: output.serverSideEncryption
|
|
5670
|
+
serverSideEncryption: output.serverSideEncryption != null
|
|
5763
5671
|
? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
|
|
5764
5672
|
: undefined,
|
|
5765
5673
|
sharedAccess: (0, smithy_client_1.expectString)(output.sharedAccess),
|
|
5766
5674
|
sizeInBytes: (0, smithy_client_1.expectLong)(output.sizeInBytes),
|
|
5767
5675
|
sizeInBytesCompressed: (0, smithy_client_1.expectLong)(output.sizeInBytesCompressed),
|
|
5768
|
-
tags: output.tags
|
|
5769
|
-
|
|
5770
|
-
: undefined,
|
|
5771
|
-
unclassifiableObjectCount: output.unclassifiableObjectCount !== undefined && output.unclassifiableObjectCount !== null
|
|
5676
|
+
tags: output.tags != null ? deserializeAws_restJson1__listOfKeyValuePair(output.tags, context) : undefined,
|
|
5677
|
+
unclassifiableObjectCount: output.unclassifiableObjectCount != null
|
|
5772
5678
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
|
|
5773
5679
|
: undefined,
|
|
5774
|
-
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes
|
|
5680
|
+
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes != null
|
|
5775
5681
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectSizeInBytes, context)
|
|
5776
5682
|
: undefined,
|
|
5777
5683
|
versioning: (0, smithy_client_1.expectBoolean)(output.versioning),
|
|
@@ -5779,10 +5685,10 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5779
5685
|
};
|
|
5780
5686
|
const deserializeAws_restJson1BucketPermissionConfiguration = (output, context) => {
|
|
5781
5687
|
return {
|
|
5782
|
-
accountLevelPermissions: output.accountLevelPermissions
|
|
5688
|
+
accountLevelPermissions: output.accountLevelPermissions != null
|
|
5783
5689
|
? deserializeAws_restJson1AccountLevelPermissions(output.accountLevelPermissions, context)
|
|
5784
5690
|
: undefined,
|
|
5785
|
-
bucketLevelPermissions: output.bucketLevelPermissions
|
|
5691
|
+
bucketLevelPermissions: output.bucketLevelPermissions != null
|
|
5786
5692
|
? deserializeAws_restJson1BucketLevelPermissions(output.bucketLevelPermissions, context)
|
|
5787
5693
|
: undefined,
|
|
5788
5694
|
};
|
|
@@ -5796,7 +5702,7 @@ const deserializeAws_restJson1BucketPolicy = (output, context) => {
|
|
|
5796
5702
|
const deserializeAws_restJson1BucketPublicAccess = (output, context) => {
|
|
5797
5703
|
return {
|
|
5798
5704
|
effectivePermission: (0, smithy_client_1.expectString)(output.effectivePermission),
|
|
5799
|
-
permissionConfiguration: output.permissionConfiguration
|
|
5705
|
+
permissionConfiguration: output.permissionConfiguration != null
|
|
5800
5706
|
? deserializeAws_restJson1BucketPermissionConfiguration(output.permissionConfiguration, context)
|
|
5801
5707
|
: undefined,
|
|
5802
5708
|
};
|
|
@@ -5832,32 +5738,24 @@ const deserializeAws_restJson1ClassificationDetails = (output, context) => {
|
|
|
5832
5738
|
jobArn: (0, smithy_client_1.expectString)(output.jobArn),
|
|
5833
5739
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
5834
5740
|
originType: (0, smithy_client_1.expectString)(output.originType),
|
|
5835
|
-
result: output.result
|
|
5836
|
-
? deserializeAws_restJson1ClassificationResult(output.result, context)
|
|
5837
|
-
: undefined,
|
|
5741
|
+
result: output.result != null ? deserializeAws_restJson1ClassificationResult(output.result, context) : undefined,
|
|
5838
5742
|
};
|
|
5839
5743
|
};
|
|
5840
5744
|
const deserializeAws_restJson1ClassificationExportConfiguration = (output, context) => {
|
|
5841
5745
|
return {
|
|
5842
|
-
s3Destination: output.s3Destination
|
|
5843
|
-
? deserializeAws_restJson1S3Destination(output.s3Destination, context)
|
|
5844
|
-
: undefined,
|
|
5746
|
+
s3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
|
|
5845
5747
|
};
|
|
5846
5748
|
};
|
|
5847
5749
|
const deserializeAws_restJson1ClassificationResult = (output, context) => {
|
|
5848
5750
|
return {
|
|
5849
5751
|
additionalOccurrences: (0, smithy_client_1.expectBoolean)(output.additionalOccurrences),
|
|
5850
|
-
customDataIdentifiers: output.customDataIdentifiers
|
|
5752
|
+
customDataIdentifiers: output.customDataIdentifiers != null
|
|
5851
5753
|
? deserializeAws_restJson1CustomDataIdentifiers(output.customDataIdentifiers, context)
|
|
5852
5754
|
: undefined,
|
|
5853
5755
|
mimeType: (0, smithy_client_1.expectString)(output.mimeType),
|
|
5854
|
-
sensitiveData: output.sensitiveData
|
|
5855
|
-
? deserializeAws_restJson1SensitiveData(output.sensitiveData, context)
|
|
5856
|
-
: undefined,
|
|
5756
|
+
sensitiveData: output.sensitiveData != null ? deserializeAws_restJson1SensitiveData(output.sensitiveData, context) : undefined,
|
|
5857
5757
|
sizeClassified: (0, smithy_client_1.expectLong)(output.sizeClassified),
|
|
5858
|
-
status: output.status
|
|
5859
|
-
? deserializeAws_restJson1ClassificationResultStatus(output.status, context)
|
|
5860
|
-
: undefined,
|
|
5758
|
+
status: output.status != null ? deserializeAws_restJson1ClassificationResultStatus(output.status, context) : undefined,
|
|
5861
5759
|
};
|
|
5862
5760
|
};
|
|
5863
5761
|
const deserializeAws_restJson1ClassificationResultStatus = (output, context) => {
|
|
@@ -5868,17 +5766,15 @@ const deserializeAws_restJson1ClassificationResultStatus = (output, context) =>
|
|
|
5868
5766
|
};
|
|
5869
5767
|
const deserializeAws_restJson1CriteriaBlockForJob = (output, context) => {
|
|
5870
5768
|
return {
|
|
5871
|
-
and: output.and
|
|
5872
|
-
? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context)
|
|
5873
|
-
: undefined,
|
|
5769
|
+
and: output.and != null ? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context) : undefined,
|
|
5874
5770
|
};
|
|
5875
5771
|
};
|
|
5876
5772
|
const deserializeAws_restJson1CriteriaForJob = (output, context) => {
|
|
5877
5773
|
return {
|
|
5878
|
-
simpleCriterion: output.simpleCriterion
|
|
5774
|
+
simpleCriterion: output.simpleCriterion != null
|
|
5879
5775
|
? deserializeAws_restJson1SimpleCriterionForJob(output.simpleCriterion, context)
|
|
5880
5776
|
: undefined,
|
|
5881
|
-
tagCriterion: output.tagCriterion
|
|
5777
|
+
tagCriterion: output.tagCriterion != null
|
|
5882
5778
|
? deserializeAws_restJson1TagCriterionForJob(output.tagCriterion, context)
|
|
5883
5779
|
: undefined,
|
|
5884
5780
|
};
|
|
@@ -5896,35 +5792,25 @@ const deserializeAws_restJson1Criterion = (output, context) => {
|
|
|
5896
5792
|
};
|
|
5897
5793
|
const deserializeAws_restJson1CriterionAdditionalProperties = (output, context) => {
|
|
5898
5794
|
return {
|
|
5899
|
-
eq: output.eq
|
|
5900
|
-
|
|
5901
|
-
: undefined,
|
|
5902
|
-
eqExactMatch: output.eqExactMatch !== undefined && output.eqExactMatch !== null
|
|
5903
|
-
? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context)
|
|
5904
|
-
: 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,
|
|
5905
5797
|
gt: (0, smithy_client_1.expectLong)(output.gt),
|
|
5906
5798
|
gte: (0, smithy_client_1.expectLong)(output.gte),
|
|
5907
5799
|
lt: (0, smithy_client_1.expectLong)(output.lt),
|
|
5908
5800
|
lte: (0, smithy_client_1.expectLong)(output.lte),
|
|
5909
|
-
neq: output.neq
|
|
5910
|
-
? deserializeAws_restJson1__listOf__string(output.neq, context)
|
|
5911
|
-
: undefined,
|
|
5801
|
+
neq: output.neq != null ? deserializeAws_restJson1__listOf__string(output.neq, context) : undefined,
|
|
5912
5802
|
};
|
|
5913
5803
|
};
|
|
5914
5804
|
const deserializeAws_restJson1CustomDataIdentifiers = (output, context) => {
|
|
5915
5805
|
return {
|
|
5916
|
-
detections: output.detections
|
|
5917
|
-
? deserializeAws_restJson1CustomDetections(output.detections, context)
|
|
5918
|
-
: undefined,
|
|
5806
|
+
detections: output.detections != null ? deserializeAws_restJson1CustomDetections(output.detections, context) : undefined,
|
|
5919
5807
|
totalCount: (0, smithy_client_1.expectLong)(output.totalCount),
|
|
5920
5808
|
};
|
|
5921
5809
|
};
|
|
5922
5810
|
const deserializeAws_restJson1CustomDataIdentifierSummary = (output, context) => {
|
|
5923
5811
|
return {
|
|
5924
5812
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5925
|
-
createdAt: output.createdAt
|
|
5926
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
5927
|
-
: undefined,
|
|
5813
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
5928
5814
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5929
5815
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
5930
5816
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -5935,9 +5821,7 @@ const deserializeAws_restJson1CustomDetection = (output, context) => {
|
|
|
5935
5821
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5936
5822
|
count: (0, smithy_client_1.expectLong)(output.count),
|
|
5937
5823
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5938
|
-
occurrences: output.occurrences
|
|
5939
|
-
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
5940
|
-
: undefined,
|
|
5824
|
+
occurrences: output.occurrences != null ? deserializeAws_restJson1Occurrences(output.occurrences, context) : undefined,
|
|
5941
5825
|
};
|
|
5942
5826
|
};
|
|
5943
5827
|
const deserializeAws_restJson1CustomDetections = (output, context) => {
|
|
@@ -5957,9 +5841,7 @@ const deserializeAws_restJson1DailySchedule = (output, context) => {
|
|
|
5957
5841
|
const deserializeAws_restJson1DefaultDetection = (output, context) => {
|
|
5958
5842
|
return {
|
|
5959
5843
|
count: (0, smithy_client_1.expectLong)(output.count),
|
|
5960
|
-
occurrences: output.occurrences
|
|
5961
|
-
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
5962
|
-
: undefined,
|
|
5844
|
+
occurrences: output.occurrences != null ? deserializeAws_restJson1Occurrences(output.occurrences, context) : undefined,
|
|
5963
5845
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5964
5846
|
};
|
|
5965
5847
|
};
|
|
@@ -5985,7 +5867,7 @@ const deserializeAws_restJson1FederatedUser = (output, context) => {
|
|
|
5985
5867
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5986
5868
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5987
5869
|
principalId: (0, smithy_client_1.expectString)(output.principalId),
|
|
5988
|
-
sessionContext: output.sessionContext
|
|
5870
|
+
sessionContext: output.sessionContext != null
|
|
5989
5871
|
? deserializeAws_restJson1SessionContext(output.sessionContext, context)
|
|
5990
5872
|
: undefined,
|
|
5991
5873
|
};
|
|
@@ -5995,61 +5877,47 @@ const deserializeAws_restJson1Finding = (output, context) => {
|
|
|
5995
5877
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5996
5878
|
archived: (0, smithy_client_1.expectBoolean)(output.archived),
|
|
5997
5879
|
category: (0, smithy_client_1.expectString)(output.category),
|
|
5998
|
-
classificationDetails: output.classificationDetails
|
|
5880
|
+
classificationDetails: output.classificationDetails != null
|
|
5999
5881
|
? deserializeAws_restJson1ClassificationDetails(output.classificationDetails, context)
|
|
6000
5882
|
: undefined,
|
|
6001
5883
|
count: (0, smithy_client_1.expectLong)(output.count),
|
|
6002
|
-
createdAt: output.createdAt
|
|
6003
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
6004
|
-
: undefined,
|
|
5884
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
6005
5885
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
6006
5886
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
6007
5887
|
partition: (0, smithy_client_1.expectString)(output.partition),
|
|
6008
|
-
policyDetails: output.policyDetails
|
|
6009
|
-
? deserializeAws_restJson1PolicyDetails(output.policyDetails, context)
|
|
6010
|
-
: undefined,
|
|
5888
|
+
policyDetails: output.policyDetails != null ? deserializeAws_restJson1PolicyDetails(output.policyDetails, context) : undefined,
|
|
6011
5889
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
6012
|
-
resourcesAffected: output.resourcesAffected
|
|
5890
|
+
resourcesAffected: output.resourcesAffected != null
|
|
6013
5891
|
? deserializeAws_restJson1ResourcesAffected(output.resourcesAffected, context)
|
|
6014
5892
|
: undefined,
|
|
6015
5893
|
sample: (0, smithy_client_1.expectBoolean)(output.sample),
|
|
6016
5894
|
schemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
|
|
6017
|
-
severity: output.severity
|
|
6018
|
-
? deserializeAws_restJson1Severity(output.severity, context)
|
|
6019
|
-
: undefined,
|
|
5895
|
+
severity: output.severity != null ? deserializeAws_restJson1Severity(output.severity, context) : undefined,
|
|
6020
5896
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
6021
5897
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
6022
|
-
updatedAt: output.updatedAt
|
|
6023
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
6024
|
-
: undefined,
|
|
5898
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
6025
5899
|
};
|
|
6026
5900
|
};
|
|
6027
5901
|
const deserializeAws_restJson1FindingAction = (output, context) => {
|
|
6028
5902
|
return {
|
|
6029
5903
|
actionType: (0, smithy_client_1.expectString)(output.actionType),
|
|
6030
|
-
apiCallDetails: output.apiCallDetails
|
|
5904
|
+
apiCallDetails: output.apiCallDetails != null
|
|
6031
5905
|
? deserializeAws_restJson1ApiCallDetails(output.apiCallDetails, context)
|
|
6032
5906
|
: undefined,
|
|
6033
5907
|
};
|
|
6034
5908
|
};
|
|
6035
5909
|
const deserializeAws_restJson1FindingActor = (output, context) => {
|
|
6036
5910
|
return {
|
|
6037
|
-
domainDetails: output.domainDetails
|
|
6038
|
-
|
|
6039
|
-
: undefined,
|
|
6040
|
-
ipAddressDetails: output.ipAddressDetails !== undefined && output.ipAddressDetails !== null
|
|
5911
|
+
domainDetails: output.domainDetails != null ? deserializeAws_restJson1DomainDetails(output.domainDetails, context) : undefined,
|
|
5912
|
+
ipAddressDetails: output.ipAddressDetails != null
|
|
6041
5913
|
? deserializeAws_restJson1IpAddressDetails(output.ipAddressDetails, context)
|
|
6042
5914
|
: undefined,
|
|
6043
|
-
userIdentity: output.userIdentity
|
|
6044
|
-
? deserializeAws_restJson1UserIdentity(output.userIdentity, context)
|
|
6045
|
-
: undefined,
|
|
5915
|
+
userIdentity: output.userIdentity != null ? deserializeAws_restJson1UserIdentity(output.userIdentity, context) : undefined,
|
|
6046
5916
|
};
|
|
6047
5917
|
};
|
|
6048
5918
|
const deserializeAws_restJson1FindingCriteria = (output, context) => {
|
|
6049
5919
|
return {
|
|
6050
|
-
criterion: output.criterion
|
|
6051
|
-
? deserializeAws_restJson1Criterion(output.criterion, context)
|
|
6052
|
-
: undefined,
|
|
5920
|
+
criterion: output.criterion != null ? deserializeAws_restJson1Criterion(output.criterion, context) : undefined,
|
|
6053
5921
|
};
|
|
6054
5922
|
};
|
|
6055
5923
|
const deserializeAws_restJson1FindingsFilterListItem = (output, context) => {
|
|
@@ -6058,9 +5926,7 @@ const deserializeAws_restJson1FindingsFilterListItem = (output, context) => {
|
|
|
6058
5926
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6059
5927
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
6060
5928
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6061
|
-
tags: output.tags
|
|
6062
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6063
|
-
: undefined,
|
|
5929
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6064
5930
|
};
|
|
6065
5931
|
};
|
|
6066
5932
|
const deserializeAws_restJson1GroupCount = (output, context) => {
|
|
@@ -6081,27 +5947,17 @@ const deserializeAws_restJson1Invitation = (output, context) => {
|
|
|
6081
5947
|
return {
|
|
6082
5948
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
6083
5949
|
invitationId: (0, smithy_client_1.expectString)(output.invitationId),
|
|
6084
|
-
invitedAt: output.invitedAt
|
|
6085
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.invitedAt))
|
|
6086
|
-
: undefined,
|
|
5950
|
+
invitedAt: output.invitedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.invitedAt)) : undefined,
|
|
6087
5951
|
relationshipStatus: (0, smithy_client_1.expectString)(output.relationshipStatus),
|
|
6088
5952
|
};
|
|
6089
5953
|
};
|
|
6090
5954
|
const deserializeAws_restJson1IpAddressDetails = (output, context) => {
|
|
6091
5955
|
return {
|
|
6092
5956
|
ipAddressV4: (0, smithy_client_1.expectString)(output.ipAddressV4),
|
|
6093
|
-
ipCity: output.ipCity
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
? deserializeAws_restJson1IpCountry(output.ipCountry, context)
|
|
6098
|
-
: undefined,
|
|
6099
|
-
ipGeoLocation: output.ipGeoLocation !== undefined && output.ipGeoLocation !== null
|
|
6100
|
-
? deserializeAws_restJson1IpGeoLocation(output.ipGeoLocation, context)
|
|
6101
|
-
: undefined,
|
|
6102
|
-
ipOwner: output.ipOwner !== undefined && output.ipOwner !== null
|
|
6103
|
-
? deserializeAws_restJson1IpOwner(output.ipOwner, context)
|
|
6104
|
-
: 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,
|
|
6105
5961
|
};
|
|
6106
5962
|
};
|
|
6107
5963
|
const deserializeAws_restJson1IpCity = (output, context) => {
|
|
@@ -6134,60 +5990,50 @@ const deserializeAws_restJson1JobDetails = (output, context) => {
|
|
|
6134
5990
|
isDefinedInJob: (0, smithy_client_1.expectString)(output.isDefinedInJob),
|
|
6135
5991
|
isMonitoredByJob: (0, smithy_client_1.expectString)(output.isMonitoredByJob),
|
|
6136
5992
|
lastJobId: (0, smithy_client_1.expectString)(output.lastJobId),
|
|
6137
|
-
lastJobRunTime: output.lastJobRunTime
|
|
6138
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastJobRunTime))
|
|
6139
|
-
: undefined,
|
|
5993
|
+
lastJobRunTime: output.lastJobRunTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastJobRunTime)) : undefined,
|
|
6140
5994
|
};
|
|
6141
5995
|
};
|
|
6142
5996
|
const deserializeAws_restJson1JobScheduleFrequency = (output, context) => {
|
|
6143
5997
|
return {
|
|
6144
|
-
dailySchedule: output.dailySchedule
|
|
6145
|
-
|
|
6146
|
-
: undefined,
|
|
6147
|
-
monthlySchedule: output.monthlySchedule !== undefined && output.monthlySchedule !== null
|
|
5998
|
+
dailySchedule: output.dailySchedule != null ? deserializeAws_restJson1DailySchedule(output.dailySchedule, context) : undefined,
|
|
5999
|
+
monthlySchedule: output.monthlySchedule != null
|
|
6148
6000
|
? deserializeAws_restJson1MonthlySchedule(output.monthlySchedule, context)
|
|
6149
6001
|
: undefined,
|
|
6150
|
-
weeklySchedule: output.weeklySchedule
|
|
6002
|
+
weeklySchedule: output.weeklySchedule != null
|
|
6151
6003
|
? deserializeAws_restJson1WeeklySchedule(output.weeklySchedule, context)
|
|
6152
6004
|
: undefined,
|
|
6153
6005
|
};
|
|
6154
6006
|
};
|
|
6155
6007
|
const deserializeAws_restJson1JobScopeTerm = (output, context) => {
|
|
6156
6008
|
return {
|
|
6157
|
-
simpleScopeTerm: output.simpleScopeTerm
|
|
6009
|
+
simpleScopeTerm: output.simpleScopeTerm != null
|
|
6158
6010
|
? deserializeAws_restJson1SimpleScopeTerm(output.simpleScopeTerm, context)
|
|
6159
6011
|
: undefined,
|
|
6160
|
-
tagScopeTerm: output.tagScopeTerm
|
|
6161
|
-
? deserializeAws_restJson1TagScopeTerm(output.tagScopeTerm, context)
|
|
6162
|
-
: undefined,
|
|
6012
|
+
tagScopeTerm: output.tagScopeTerm != null ? deserializeAws_restJson1TagScopeTerm(output.tagScopeTerm, context) : undefined,
|
|
6163
6013
|
};
|
|
6164
6014
|
};
|
|
6165
6015
|
const deserializeAws_restJson1JobScopingBlock = (output, context) => {
|
|
6166
6016
|
return {
|
|
6167
|
-
and: output.and
|
|
6168
|
-
? deserializeAws_restJson1__listOfJobScopeTerm(output.and, context)
|
|
6169
|
-
: undefined,
|
|
6017
|
+
and: output.and != null ? deserializeAws_restJson1__listOfJobScopeTerm(output.and, context) : undefined,
|
|
6170
6018
|
};
|
|
6171
6019
|
};
|
|
6172
6020
|
const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
6173
6021
|
return {
|
|
6174
|
-
bucketCriteria: output.bucketCriteria
|
|
6022
|
+
bucketCriteria: output.bucketCriteria != null
|
|
6175
6023
|
? deserializeAws_restJson1S3BucketCriteriaForJob(output.bucketCriteria, context)
|
|
6176
6024
|
: undefined,
|
|
6177
|
-
bucketDefinitions: output.bucketDefinitions
|
|
6025
|
+
bucketDefinitions: output.bucketDefinitions != null
|
|
6178
6026
|
? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
|
|
6179
6027
|
: undefined,
|
|
6180
|
-
createdAt: output.createdAt
|
|
6181
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
|
|
6182
|
-
: undefined,
|
|
6028
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
6183
6029
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
6184
6030
|
jobStatus: (0, smithy_client_1.expectString)(output.jobStatus),
|
|
6185
6031
|
jobType: (0, smithy_client_1.expectString)(output.jobType),
|
|
6186
|
-
lastRunErrorStatus: output.lastRunErrorStatus
|
|
6032
|
+
lastRunErrorStatus: output.lastRunErrorStatus != null
|
|
6187
6033
|
? deserializeAws_restJson1LastRunErrorStatus(output.lastRunErrorStatus, context)
|
|
6188
6034
|
: undefined,
|
|
6189
6035
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6190
|
-
userPausedDetails: output.userPausedDetails
|
|
6036
|
+
userPausedDetails: output.userPausedDetails != null
|
|
6191
6037
|
? deserializeAws_restJson1UserPausedDetails(output.userPausedDetails, context)
|
|
6192
6038
|
: undefined,
|
|
6193
6039
|
};
|
|
@@ -6228,26 +6074,24 @@ const deserializeAws_restJson1MatchingBucket = (output, context) => {
|
|
|
6228
6074
|
classifiableSizeInBytes: (0, smithy_client_1.expectLong)(output.classifiableSizeInBytes),
|
|
6229
6075
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
6230
6076
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
6231
|
-
jobDetails: output.jobDetails
|
|
6232
|
-
? deserializeAws_restJson1JobDetails(output.jobDetails, context)
|
|
6233
|
-
: undefined,
|
|
6077
|
+
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
6234
6078
|
objectCount: (0, smithy_client_1.expectLong)(output.objectCount),
|
|
6235
|
-
objectCountByEncryptionType: output.objectCountByEncryptionType
|
|
6079
|
+
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
6236
6080
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
6237
6081
|
: undefined,
|
|
6238
6082
|
sizeInBytes: (0, smithy_client_1.expectLong)(output.sizeInBytes),
|
|
6239
6083
|
sizeInBytesCompressed: (0, smithy_client_1.expectLong)(output.sizeInBytesCompressed),
|
|
6240
|
-
unclassifiableObjectCount: output.unclassifiableObjectCount
|
|
6084
|
+
unclassifiableObjectCount: output.unclassifiableObjectCount != null
|
|
6241
6085
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
|
|
6242
6086
|
: undefined,
|
|
6243
|
-
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes
|
|
6087
|
+
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes != null
|
|
6244
6088
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectSizeInBytes, context)
|
|
6245
6089
|
: undefined,
|
|
6246
6090
|
};
|
|
6247
6091
|
};
|
|
6248
6092
|
const deserializeAws_restJson1MatchingResource = (output, context) => {
|
|
6249
6093
|
return {
|
|
6250
|
-
matchingBucket: output.matchingBucket
|
|
6094
|
+
matchingBucket: output.matchingBucket != null
|
|
6251
6095
|
? deserializeAws_restJson1MatchingBucket(output.matchingBucket, context)
|
|
6252
6096
|
: undefined,
|
|
6253
6097
|
};
|
|
@@ -6258,17 +6102,11 @@ const deserializeAws_restJson1Member = (output, context) => {
|
|
|
6258
6102
|
administratorAccountId: (0, smithy_client_1.expectString)(output.administratorAccountId),
|
|
6259
6103
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6260
6104
|
email: (0, smithy_client_1.expectString)(output.email),
|
|
6261
|
-
invitedAt: output.invitedAt
|
|
6262
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.invitedAt))
|
|
6263
|
-
: undefined,
|
|
6105
|
+
invitedAt: output.invitedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.invitedAt)) : undefined,
|
|
6264
6106
|
masterAccountId: (0, smithy_client_1.expectString)(output.masterAccountId),
|
|
6265
6107
|
relationshipStatus: (0, smithy_client_1.expectString)(output.relationshipStatus),
|
|
6266
|
-
tags: output.tags
|
|
6267
|
-
|
|
6268
|
-
: undefined,
|
|
6269
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
6270
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt))
|
|
6271
|
-
: 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,
|
|
6272
6110
|
};
|
|
6273
6111
|
};
|
|
6274
6112
|
const deserializeAws_restJson1MonthlySchedule = (output, context) => {
|
|
@@ -6294,31 +6132,17 @@ const deserializeAws_restJson1ObjectLevelStatistics = (output, context) => {
|
|
|
6294
6132
|
};
|
|
6295
6133
|
const deserializeAws_restJson1Occurrences = (output, context) => {
|
|
6296
6134
|
return {
|
|
6297
|
-
cells: output.cells
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
: undefined,
|
|
6303
|
-
offsetRanges: output.offsetRanges !== undefined && output.offsetRanges !== null
|
|
6304
|
-
? deserializeAws_restJson1Ranges(output.offsetRanges, context)
|
|
6305
|
-
: undefined,
|
|
6306
|
-
pages: output.pages !== undefined && output.pages !== null
|
|
6307
|
-
? deserializeAws_restJson1Pages(output.pages, context)
|
|
6308
|
-
: undefined,
|
|
6309
|
-
records: output.records !== undefined && output.records !== null
|
|
6310
|
-
? deserializeAws_restJson1Records(output.records, context)
|
|
6311
|
-
: 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,
|
|
6312
6140
|
};
|
|
6313
6141
|
};
|
|
6314
6142
|
const deserializeAws_restJson1Page = (output, context) => {
|
|
6315
6143
|
return {
|
|
6316
|
-
lineRange: output.lineRange
|
|
6317
|
-
|
|
6318
|
-
: undefined,
|
|
6319
|
-
offsetRange: output.offsetRange !== undefined && output.offsetRange !== null
|
|
6320
|
-
? deserializeAws_restJson1Range(output.offsetRange, context)
|
|
6321
|
-
: undefined,
|
|
6144
|
+
lineRange: output.lineRange != null ? deserializeAws_restJson1Range(output.lineRange, context) : undefined,
|
|
6145
|
+
offsetRange: output.offsetRange != null ? deserializeAws_restJson1Range(output.offsetRange, context) : undefined,
|
|
6322
6146
|
pageNumber: (0, smithy_client_1.expectLong)(output.pageNumber),
|
|
6323
6147
|
};
|
|
6324
6148
|
};
|
|
@@ -6335,12 +6159,8 @@ const deserializeAws_restJson1Pages = (output, context) => {
|
|
|
6335
6159
|
};
|
|
6336
6160
|
const deserializeAws_restJson1PolicyDetails = (output, context) => {
|
|
6337
6161
|
return {
|
|
6338
|
-
action: output.action
|
|
6339
|
-
|
|
6340
|
-
: undefined,
|
|
6341
|
-
actor: output.actor !== undefined && output.actor !== null
|
|
6342
|
-
? deserializeAws_restJson1FindingActor(output.actor, context)
|
|
6343
|
-
: undefined,
|
|
6162
|
+
action: output.action != null ? deserializeAws_restJson1FindingAction(output.action, context) : undefined,
|
|
6163
|
+
actor: output.actor != null ? deserializeAws_restJson1FindingActor(output.actor, context) : undefined,
|
|
6344
6164
|
};
|
|
6345
6165
|
};
|
|
6346
6166
|
const deserializeAws_restJson1Range = (output, context) => {
|
|
@@ -6382,59 +6202,43 @@ const deserializeAws_restJson1ReplicationDetails = (output, context) => {
|
|
|
6382
6202
|
return {
|
|
6383
6203
|
replicated: (0, smithy_client_1.expectBoolean)(output.replicated),
|
|
6384
6204
|
replicatedExternally: (0, smithy_client_1.expectBoolean)(output.replicatedExternally),
|
|
6385
|
-
replicationAccounts: output.replicationAccounts
|
|
6205
|
+
replicationAccounts: output.replicationAccounts != null
|
|
6386
6206
|
? deserializeAws_restJson1__listOf__string(output.replicationAccounts, context)
|
|
6387
6207
|
: undefined,
|
|
6388
6208
|
};
|
|
6389
6209
|
};
|
|
6390
6210
|
const deserializeAws_restJson1ResourcesAffected = (output, context) => {
|
|
6391
6211
|
return {
|
|
6392
|
-
s3Bucket: output.s3Bucket
|
|
6393
|
-
|
|
6394
|
-
: undefined,
|
|
6395
|
-
s3Object: output.s3Object !== undefined && output.s3Object !== null
|
|
6396
|
-
? deserializeAws_restJson1S3Object(output.s3Object, context)
|
|
6397
|
-
: undefined,
|
|
6212
|
+
s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3Bucket(output.s3Bucket, context) : undefined,
|
|
6213
|
+
s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
|
|
6398
6214
|
};
|
|
6399
6215
|
};
|
|
6400
6216
|
const deserializeAws_restJson1S3Bucket = (output, context) => {
|
|
6401
6217
|
return {
|
|
6402
6218
|
allowsUnencryptedObjectUploads: (0, smithy_client_1.expectString)(output.allowsUnencryptedObjectUploads),
|
|
6403
6219
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
6404
|
-
createdAt: output.createdAt
|
|
6405
|
-
|
|
6406
|
-
: undefined,
|
|
6407
|
-
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
|
|
6408
6222
|
? deserializeAws_restJson1ServerSideEncryption(output.defaultServerSideEncryption, context)
|
|
6409
6223
|
: undefined,
|
|
6410
6224
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6411
|
-
owner: output.owner
|
|
6412
|
-
|
|
6413
|
-
: undefined,
|
|
6414
|
-
publicAccess: output.publicAccess !== undefined && output.publicAccess !== null
|
|
6225
|
+
owner: output.owner != null ? deserializeAws_restJson1S3BucketOwner(output.owner, context) : undefined,
|
|
6226
|
+
publicAccess: output.publicAccess != null
|
|
6415
6227
|
? deserializeAws_restJson1BucketPublicAccess(output.publicAccess, context)
|
|
6416
6228
|
: undefined,
|
|
6417
|
-
tags: output.tags
|
|
6418
|
-
? deserializeAws_restJson1KeyValuePairList(output.tags, context)
|
|
6419
|
-
: undefined,
|
|
6229
|
+
tags: output.tags != null ? deserializeAws_restJson1KeyValuePairList(output.tags, context) : undefined,
|
|
6420
6230
|
};
|
|
6421
6231
|
};
|
|
6422
6232
|
const deserializeAws_restJson1S3BucketCriteriaForJob = (output, context) => {
|
|
6423
6233
|
return {
|
|
6424
|
-
excludes: output.excludes
|
|
6425
|
-
|
|
6426
|
-
: undefined,
|
|
6427
|
-
includes: output.includes !== undefined && output.includes !== null
|
|
6428
|
-
? deserializeAws_restJson1CriteriaBlockForJob(output.includes, context)
|
|
6429
|
-
: undefined,
|
|
6234
|
+
excludes: output.excludes != null ? deserializeAws_restJson1CriteriaBlockForJob(output.excludes, context) : undefined,
|
|
6235
|
+
includes: output.includes != null ? deserializeAws_restJson1CriteriaBlockForJob(output.includes, context) : undefined,
|
|
6430
6236
|
};
|
|
6431
6237
|
};
|
|
6432
6238
|
const deserializeAws_restJson1S3BucketDefinitionForJob = (output, context) => {
|
|
6433
6239
|
return {
|
|
6434
6240
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
6435
|
-
buckets: output.buckets
|
|
6436
|
-
? deserializeAws_restJson1__listOf__string(output.buckets, context)
|
|
6437
|
-
: undefined,
|
|
6241
|
+
buckets: output.buckets != null ? deserializeAws_restJson1__listOf__string(output.buckets, context) : undefined,
|
|
6438
6242
|
};
|
|
6439
6243
|
};
|
|
6440
6244
|
const deserializeAws_restJson1S3BucketOwner = (output, context) => {
|
|
@@ -6452,15 +6256,13 @@ const deserializeAws_restJson1S3Destination = (output, context) => {
|
|
|
6452
6256
|
};
|
|
6453
6257
|
const deserializeAws_restJson1S3JobDefinition = (output, context) => {
|
|
6454
6258
|
return {
|
|
6455
|
-
bucketCriteria: output.bucketCriteria
|
|
6259
|
+
bucketCriteria: output.bucketCriteria != null
|
|
6456
6260
|
? deserializeAws_restJson1S3BucketCriteriaForJob(output.bucketCriteria, context)
|
|
6457
6261
|
: undefined,
|
|
6458
|
-
bucketDefinitions: output.bucketDefinitions
|
|
6262
|
+
bucketDefinitions: output.bucketDefinitions != null
|
|
6459
6263
|
? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
|
|
6460
6264
|
: undefined,
|
|
6461
|
-
scoping: output.scoping
|
|
6462
|
-
? deserializeAws_restJson1Scoping(output.scoping, context)
|
|
6463
|
-
: undefined,
|
|
6265
|
+
scoping: output.scoping != null ? deserializeAws_restJson1Scoping(output.scoping, context) : undefined,
|
|
6464
6266
|
};
|
|
6465
6267
|
};
|
|
6466
6268
|
const deserializeAws_restJson1S3Object = (output, context) => {
|
|
@@ -6469,30 +6271,22 @@ const deserializeAws_restJson1S3Object = (output, context) => {
|
|
|
6469
6271
|
eTag: (0, smithy_client_1.expectString)(output.eTag),
|
|
6470
6272
|
extension: (0, smithy_client_1.expectString)(output.extension),
|
|
6471
6273
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
6472
|
-
lastModified: output.lastModified
|
|
6473
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastModified))
|
|
6474
|
-
: undefined,
|
|
6274
|
+
lastModified: output.lastModified != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastModified)) : undefined,
|
|
6475
6275
|
path: (0, smithy_client_1.expectString)(output.path),
|
|
6476
6276
|
publicAccess: (0, smithy_client_1.expectBoolean)(output.publicAccess),
|
|
6477
|
-
serverSideEncryption: output.serverSideEncryption
|
|
6277
|
+
serverSideEncryption: output.serverSideEncryption != null
|
|
6478
6278
|
? deserializeAws_restJson1ServerSideEncryption(output.serverSideEncryption, context)
|
|
6479
6279
|
: undefined,
|
|
6480
6280
|
size: (0, smithy_client_1.expectLong)(output.size),
|
|
6481
6281
|
storageClass: (0, smithy_client_1.expectString)(output.storageClass),
|
|
6482
|
-
tags: output.tags
|
|
6483
|
-
? deserializeAws_restJson1KeyValuePairList(output.tags, context)
|
|
6484
|
-
: undefined,
|
|
6282
|
+
tags: output.tags != null ? deserializeAws_restJson1KeyValuePairList(output.tags, context) : undefined,
|
|
6485
6283
|
versionId: (0, smithy_client_1.expectString)(output.versionId),
|
|
6486
6284
|
};
|
|
6487
6285
|
};
|
|
6488
6286
|
const deserializeAws_restJson1Scoping = (output, context) => {
|
|
6489
6287
|
return {
|
|
6490
|
-
excludes: output.excludes
|
|
6491
|
-
|
|
6492
|
-
: undefined,
|
|
6493
|
-
includes: output.includes !== undefined && output.includes !== null
|
|
6494
|
-
? deserializeAws_restJson1JobScopingBlock(output.includes, context)
|
|
6495
|
-
: undefined,
|
|
6288
|
+
excludes: output.excludes != null ? deserializeAws_restJson1JobScopingBlock(output.excludes, context) : undefined,
|
|
6289
|
+
includes: output.includes != null ? deserializeAws_restJson1JobScopingBlock(output.includes, context) : undefined,
|
|
6496
6290
|
};
|
|
6497
6291
|
};
|
|
6498
6292
|
const deserializeAws_restJson1SecurityHubConfiguration = (output, context) => {
|
|
@@ -6515,9 +6309,7 @@ const deserializeAws_restJson1SensitiveData = (output, context) => {
|
|
|
6515
6309
|
const deserializeAws_restJson1SensitiveDataItem = (output, context) => {
|
|
6516
6310
|
return {
|
|
6517
6311
|
category: (0, smithy_client_1.expectString)(output.category),
|
|
6518
|
-
detections: output.detections
|
|
6519
|
-
? deserializeAws_restJson1DefaultDetections(output.detections, context)
|
|
6520
|
-
: undefined,
|
|
6312
|
+
detections: output.detections != null ? deserializeAws_restJson1DefaultDetections(output.detections, context) : undefined,
|
|
6521
6313
|
totalCount: (0, smithy_client_1.expectLong)(output.totalCount),
|
|
6522
6314
|
};
|
|
6523
6315
|
};
|
|
@@ -6536,19 +6328,15 @@ const deserializeAws_restJson1ServiceLimit = (output, context) => {
|
|
|
6536
6328
|
};
|
|
6537
6329
|
const deserializeAws_restJson1SessionContext = (output, context) => {
|
|
6538
6330
|
return {
|
|
6539
|
-
attributes: output.attributes
|
|
6331
|
+
attributes: output.attributes != null
|
|
6540
6332
|
? deserializeAws_restJson1SessionContextAttributes(output.attributes, context)
|
|
6541
6333
|
: undefined,
|
|
6542
|
-
sessionIssuer: output.sessionIssuer
|
|
6543
|
-
? deserializeAws_restJson1SessionIssuer(output.sessionIssuer, context)
|
|
6544
|
-
: undefined,
|
|
6334
|
+
sessionIssuer: output.sessionIssuer != null ? deserializeAws_restJson1SessionIssuer(output.sessionIssuer, context) : undefined,
|
|
6545
6335
|
};
|
|
6546
6336
|
};
|
|
6547
6337
|
const deserializeAws_restJson1SessionContextAttributes = (output, context) => {
|
|
6548
6338
|
return {
|
|
6549
|
-
creationDate: output.creationDate
|
|
6550
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate))
|
|
6551
|
-
: undefined,
|
|
6339
|
+
creationDate: output.creationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate)) : undefined,
|
|
6552
6340
|
mfaAuthenticated: (0, smithy_client_1.expectBoolean)(output.mfaAuthenticated),
|
|
6553
6341
|
};
|
|
6554
6342
|
};
|
|
@@ -6588,18 +6376,14 @@ const deserializeAws_restJson1SimpleCriterionForJob = (output, context) => {
|
|
|
6588
6376
|
return {
|
|
6589
6377
|
comparator: (0, smithy_client_1.expectString)(output.comparator),
|
|
6590
6378
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
6591
|
-
values: output.values
|
|
6592
|
-
? deserializeAws_restJson1__listOf__string(output.values, context)
|
|
6593
|
-
: undefined,
|
|
6379
|
+
values: output.values != null ? deserializeAws_restJson1__listOf__string(output.values, context) : undefined,
|
|
6594
6380
|
};
|
|
6595
6381
|
};
|
|
6596
6382
|
const deserializeAws_restJson1SimpleScopeTerm = (output, context) => {
|
|
6597
6383
|
return {
|
|
6598
6384
|
comparator: (0, smithy_client_1.expectString)(output.comparator),
|
|
6599
6385
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
6600
|
-
values: output.values
|
|
6601
|
-
? deserializeAws_restJson1__listOf__string(output.values, context)
|
|
6602
|
-
: undefined,
|
|
6386
|
+
values: output.values != null ? deserializeAws_restJson1__listOf__string(output.values, context) : undefined,
|
|
6603
6387
|
};
|
|
6604
6388
|
};
|
|
6605
6389
|
const deserializeAws_restJson1Statistics = (output, context) => {
|
|
@@ -6611,7 +6395,7 @@ const deserializeAws_restJson1Statistics = (output, context) => {
|
|
|
6611
6395
|
const deserializeAws_restJson1TagCriterionForJob = (output, context) => {
|
|
6612
6396
|
return {
|
|
6613
6397
|
comparator: (0, smithy_client_1.expectString)(output.comparator),
|
|
6614
|
-
tagValues: output.tagValues
|
|
6398
|
+
tagValues: output.tagValues != null
|
|
6615
6399
|
? deserializeAws_restJson1__listOfTagCriterionPairForJob(output.tagValues, context)
|
|
6616
6400
|
: undefined,
|
|
6617
6401
|
};
|
|
@@ -6637,9 +6421,7 @@ const deserializeAws_restJson1TagScopeTerm = (output, context) => {
|
|
|
6637
6421
|
return {
|
|
6638
6422
|
comparator: (0, smithy_client_1.expectString)(output.comparator),
|
|
6639
6423
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
6640
|
-
tagValues: output.tagValues
|
|
6641
|
-
? deserializeAws_restJson1__listOfTagValuePair(output.tagValues, context)
|
|
6642
|
-
: undefined,
|
|
6424
|
+
tagValues: output.tagValues != null ? deserializeAws_restJson1__listOfTagValuePair(output.tagValues, context) : undefined,
|
|
6643
6425
|
target: (0, smithy_client_1.expectString)(output.target),
|
|
6644
6426
|
};
|
|
6645
6427
|
};
|
|
@@ -6660,21 +6442,17 @@ const deserializeAws_restJson1UsageByAccount = (output, context) => {
|
|
|
6660
6442
|
return {
|
|
6661
6443
|
currency: (0, smithy_client_1.expectString)(output.currency),
|
|
6662
6444
|
estimatedCost: (0, smithy_client_1.expectString)(output.estimatedCost),
|
|
6663
|
-
serviceLimit: output.serviceLimit
|
|
6664
|
-
? deserializeAws_restJson1ServiceLimit(output.serviceLimit, context)
|
|
6665
|
-
: undefined,
|
|
6445
|
+
serviceLimit: output.serviceLimit != null ? deserializeAws_restJson1ServiceLimit(output.serviceLimit, context) : undefined,
|
|
6666
6446
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
6667
6447
|
};
|
|
6668
6448
|
};
|
|
6669
6449
|
const deserializeAws_restJson1UsageRecord = (output, context) => {
|
|
6670
6450
|
return {
|
|
6671
6451
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
6672
|
-
freeTrialStartDate: output.freeTrialStartDate
|
|
6452
|
+
freeTrialStartDate: output.freeTrialStartDate != null
|
|
6673
6453
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.freeTrialStartDate))
|
|
6674
6454
|
: undefined,
|
|
6675
|
-
usage: output.usage
|
|
6676
|
-
? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context)
|
|
6677
|
-
: undefined,
|
|
6455
|
+
usage: output.usage != null ? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context) : undefined,
|
|
6678
6456
|
};
|
|
6679
6457
|
};
|
|
6680
6458
|
const deserializeAws_restJson1UsageTotal = (output, context) => {
|
|
@@ -6686,24 +6464,12 @@ const deserializeAws_restJson1UsageTotal = (output, context) => {
|
|
|
6686
6464
|
};
|
|
6687
6465
|
const deserializeAws_restJson1UserIdentity = (output, context) => {
|
|
6688
6466
|
return {
|
|
6689
|
-
assumedRole: output.assumedRole
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
awsService: output.awsService !== undefined && output.awsService !== null
|
|
6696
|
-
? deserializeAws_restJson1AwsService(output.awsService, context)
|
|
6697
|
-
: undefined,
|
|
6698
|
-
federatedUser: output.federatedUser !== undefined && output.federatedUser !== null
|
|
6699
|
-
? deserializeAws_restJson1FederatedUser(output.federatedUser, context)
|
|
6700
|
-
: undefined,
|
|
6701
|
-
iamUser: output.iamUser !== undefined && output.iamUser !== null
|
|
6702
|
-
? deserializeAws_restJson1IamUser(output.iamUser, context)
|
|
6703
|
-
: undefined,
|
|
6704
|
-
root: output.root !== undefined && output.root !== null
|
|
6705
|
-
? deserializeAws_restJson1UserIdentityRoot(output.root, context)
|
|
6706
|
-
: 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,
|
|
6707
6473
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
6708
6474
|
};
|
|
6709
6475
|
};
|
|
@@ -6716,13 +6482,9 @@ const deserializeAws_restJson1UserIdentityRoot = (output, context) => {
|
|
|
6716
6482
|
};
|
|
6717
6483
|
const deserializeAws_restJson1UserPausedDetails = (output, context) => {
|
|
6718
6484
|
return {
|
|
6719
|
-
jobExpiresAt: output.jobExpiresAt
|
|
6720
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.jobExpiresAt))
|
|
6721
|
-
: undefined,
|
|
6485
|
+
jobExpiresAt: output.jobExpiresAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.jobExpiresAt)) : undefined,
|
|
6722
6486
|
jobImminentExpirationHealthEventArn: (0, smithy_client_1.expectString)(output.jobImminentExpirationHealthEventArn),
|
|
6723
|
-
jobPausedAt: output.jobPausedAt
|
|
6724
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.jobPausedAt))
|
|
6725
|
-
: undefined,
|
|
6487
|
+
jobPausedAt: output.jobPausedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.jobPausedAt)) : undefined,
|
|
6726
6488
|
};
|
|
6727
6489
|
};
|
|
6728
6490
|
const deserializeAws_restJson1WeeklySchedule = (output, context) => {
|
|
@@ -6761,6 +6523,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6761
6523
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6762
6524
|
const sanitizeErrorCode = (rawValue) => {
|
|
6763
6525
|
let cleanValue = rawValue;
|
|
6526
|
+
if (typeof cleanValue === "number") {
|
|
6527
|
+
cleanValue = cleanValue.toString();
|
|
6528
|
+
}
|
|
6764
6529
|
if (cleanValue.indexOf(":") >= 0) {
|
|
6765
6530
|
cleanValue = cleanValue.split(":")[0];
|
|
6766
6531
|
}
|