@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.
@@ -15,8 +15,7 @@ export var serializeAws_restJson1AcceptInvitationCommand = function (input, cont
15
15
  "content-type": "application/json",
16
16
  };
17
17
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/accept";
18
- body = JSON.stringify(__assign(__assign(__assign({}, (input.administratorAccountId !== undefined &&
19
- input.administratorAccountId !== null && { administratorAccountId: input.administratorAccountId })), (input.invitationId !== undefined && input.invitationId !== null && { invitationId: input.invitationId })), (input.masterAccount !== undefined && input.masterAccount !== null && { masterAccount: input.masterAccount })));
18
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.administratorAccountId != null && { administratorAccountId: input.administratorAccountId })), (input.invitationId != null && { invitationId: input.invitationId })), (input.masterAccount != null && { masterAccount: input.masterAccount })));
20
19
  return [2, new __HttpRequest({
21
20
  protocol: protocol,
22
21
  hostname: hostname,
@@ -40,8 +39,7 @@ export var serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = function
40
39
  "content-type": "application/json",
41
40
  };
42
41
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-data-identifiers/get";
43
- body = JSON.stringify(__assign({}, (input.ids !== undefined &&
44
- input.ids !== null && { ids: serializeAws_restJson1__listOf__string(input.ids, context) })));
42
+ body = JSON.stringify(__assign({}, (input.ids != null && { ids: serializeAws_restJson1__listOf__string(input.ids, context) })));
45
43
  return [2, new __HttpRequest({
46
44
  protocol: protocol,
47
45
  hostname: hostname,
@@ -66,23 +64,17 @@ export var serializeAws_restJson1CreateClassificationJobCommand = function (inpu
66
64
  "content-type": "application/json",
67
65
  };
68
66
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs";
69
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.customDataIdentifierIds !== undefined &&
70
- input.customDataIdentifierIds !== null && {
67
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.customDataIdentifierIds != null && {
71
68
  customDataIdentifierIds: serializeAws_restJson1__listOf__string(input.customDataIdentifierIds, context),
72
- })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.initialRun !== undefined && input.initialRun !== null && { initialRun: input.initialRun })), (input.jobType !== undefined && input.jobType !== null && { jobType: input.jobType })), (input.managedDataIdentifierIds !== undefined &&
73
- input.managedDataIdentifierIds !== null && {
69
+ })), (input.description != null && { description: input.description })), (input.initialRun != null && { initialRun: input.initialRun })), (input.jobType != null && { jobType: input.jobType })), (input.managedDataIdentifierIds != null && {
74
70
  managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
75
- })), (input.managedDataIdentifierSelector !== undefined &&
76
- input.managedDataIdentifierSelector !== null && {
71
+ })), (input.managedDataIdentifierSelector != null && {
77
72
  managedDataIdentifierSelector: input.managedDataIdentifierSelector,
78
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.s3JobDefinition !== undefined &&
79
- input.s3JobDefinition !== null && {
73
+ })), (input.name != null && { name: input.name })), (input.s3JobDefinition != null && {
80
74
  s3JobDefinition: serializeAws_restJson1S3JobDefinition(input.s3JobDefinition, context),
81
- })), (input.samplingPercentage !== undefined &&
82
- input.samplingPercentage !== null && { samplingPercentage: input.samplingPercentage })), (input.scheduleFrequency !== undefined &&
83
- input.scheduleFrequency !== null && {
75
+ })), (input.samplingPercentage != null && { samplingPercentage: input.samplingPercentage })), (input.scheduleFrequency != null && {
84
76
  scheduleFrequency: serializeAws_restJson1JobScheduleFrequency(input.scheduleFrequency, context),
85
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
77
+ })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
86
78
  return [2, new __HttpRequest({
87
79
  protocol: protocol,
88
80
  hostname: hostname,
@@ -107,15 +99,11 @@ export var serializeAws_restJson1CreateCustomDataIdentifierCommand = function (i
107
99
  "content-type": "application/json",
108
100
  };
109
101
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-data-identifiers";
110
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.ignoreWords !== undefined &&
111
- input.ignoreWords !== null && {
102
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.ignoreWords != null && {
112
103
  ignoreWords: serializeAws_restJson1__listOf__string(input.ignoreWords, context),
113
- })), (input.keywords !== undefined &&
114
- input.keywords !== null && { keywords: serializeAws_restJson1__listOf__string(input.keywords, context) })), (input.maximumMatchDistance !== undefined &&
115
- input.maximumMatchDistance !== null && { maximumMatchDistance: input.maximumMatchDistance })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.regex !== undefined && input.regex !== null && { regex: input.regex })), (input.severityLevels !== undefined &&
116
- input.severityLevels !== null && {
104
+ })), (input.keywords != null && { keywords: serializeAws_restJson1__listOf__string(input.keywords, context) })), (input.maximumMatchDistance != null && { maximumMatchDistance: input.maximumMatchDistance })), (input.name != null && { name: input.name })), (input.regex != null && { regex: input.regex })), (input.severityLevels != null && {
117
105
  severityLevels: serializeAws_restJson1SeverityLevelList(input.severityLevels, context),
118
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
106
+ })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
119
107
  return [2, new __HttpRequest({
120
108
  protocol: protocol,
121
109
  hostname: hostname,
@@ -140,10 +128,9 @@ export var serializeAws_restJson1CreateFindingsFilterCommand = function (input,
140
128
  "content-type": "application/json",
141
129
  };
142
130
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingsfilters";
143
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description !== undefined && input.description !== null && { description: input.description })), (input.findingCriteria !== undefined &&
144
- input.findingCriteria !== null && {
131
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description != null && { description: input.description })), (input.findingCriteria != null && {
145
132
  findingCriteria: serializeAws_restJson1FindingCriteria(input.findingCriteria, context),
146
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.position !== undefined && input.position !== null && { position: input.position })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
133
+ })), (input.name != null && { name: input.name })), (input.position != null && { position: input.position })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
147
134
  return [2, new __HttpRequest({
148
135
  protocol: protocol,
149
136
  hostname: hostname,
@@ -167,9 +154,7 @@ export var serializeAws_restJson1CreateInvitationsCommand = function (input, con
167
154
  "content-type": "application/json",
168
155
  };
169
156
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations";
170
- body = JSON.stringify(__assign(__assign(__assign({}, (input.accountIds !== undefined &&
171
- input.accountIds !== null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) })), (input.disableEmailNotification !== undefined &&
172
- input.disableEmailNotification !== null && { disableEmailNotification: input.disableEmailNotification })), (input.message !== undefined && input.message !== null && { message: input.message })));
157
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.accountIds != null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) })), (input.disableEmailNotification != null && { disableEmailNotification: input.disableEmailNotification })), (input.message != null && { message: input.message })));
173
158
  return [2, new __HttpRequest({
174
159
  protocol: protocol,
175
160
  hostname: hostname,
@@ -193,8 +178,7 @@ export var serializeAws_restJson1CreateMemberCommand = function (input, context)
193
178
  "content-type": "application/json",
194
179
  };
195
180
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members";
196
- body = JSON.stringify(__assign(__assign({}, (input.account !== undefined &&
197
- input.account !== null && { account: serializeAws_restJson1AccountDetail(input.account, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
181
+ body = JSON.stringify(__assign(__assign({}, (input.account != null && { account: serializeAws_restJson1AccountDetail(input.account, context) })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
198
182
  return [2, new __HttpRequest({
199
183
  protocol: protocol,
200
184
  hostname: hostname,
@@ -218,8 +202,7 @@ export var serializeAws_restJson1CreateSampleFindingsCommand = function (input,
218
202
  "content-type": "application/json",
219
203
  };
220
204
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/sample";
221
- body = JSON.stringify(__assign({}, (input.findingTypes !== undefined &&
222
- input.findingTypes !== null && {
205
+ body = JSON.stringify(__assign({}, (input.findingTypes != null && {
223
206
  findingTypes: serializeAws_restJson1__listOfFindingType(input.findingTypes, context),
224
207
  })));
225
208
  return [2, new __HttpRequest({
@@ -245,8 +228,7 @@ export var serializeAws_restJson1DeclineInvitationsCommand = function (input, co
245
228
  "content-type": "application/json",
246
229
  };
247
230
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/decline";
248
- body = JSON.stringify(__assign({}, (input.accountIds !== undefined &&
249
- input.accountIds !== null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) })));
231
+ body = JSON.stringify(__assign({}, (input.accountIds != null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) })));
250
232
  return [2, new __HttpRequest({
251
233
  protocol: protocol,
252
234
  hostname: hostname,
@@ -332,8 +314,7 @@ export var serializeAws_restJson1DeleteInvitationsCommand = function (input, con
332
314
  "content-type": "application/json",
333
315
  };
334
316
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/delete";
335
- body = JSON.stringify(__assign({}, (input.accountIds !== undefined &&
336
- input.accountIds !== null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) })));
317
+ body = JSON.stringify(__assign({}, (input.accountIds != null && { accountIds: serializeAws_restJson1__listOf__string(input.accountIds, context) })));
337
318
  return [2, new __HttpRequest({
338
319
  protocol: protocol,
339
320
  hostname: hostname,
@@ -388,9 +369,7 @@ export var serializeAws_restJson1DescribeBucketsCommand = function (input, conte
388
369
  "content-type": "application/json",
389
370
  };
390
371
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasources/s3";
391
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.criteria !== undefined &&
392
- input.criteria !== null && { criteria: serializeAws_restJson1BucketCriteria(input.criteria, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortCriteria !== undefined &&
393
- input.sortCriteria !== null && {
372
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.criteria != null && { criteria: serializeAws_restJson1BucketCriteria(input.criteria, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortCriteria != null && {
394
373
  sortCriteria: serializeAws_restJson1BucketSortCriteria(input.sortCriteria, context),
395
374
  })));
396
375
  return [2, new __HttpRequest({
@@ -598,8 +577,7 @@ export var serializeAws_restJson1EnableMacieCommand = function (input, context)
598
577
  "content-type": "application/json",
599
578
  };
600
579
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/macie";
601
- body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.findingPublishingFrequency !== undefined &&
602
- input.findingPublishingFrequency !== null && { findingPublishingFrequency: input.findingPublishingFrequency })), (input.status !== undefined && input.status !== null && { status: input.status })));
580
+ body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.findingPublishingFrequency != null && { findingPublishingFrequency: input.findingPublishingFrequency })), (input.status != null && { status: input.status })));
603
581
  return [2, new __HttpRequest({
604
582
  protocol: protocol,
605
583
  hostname: hostname,
@@ -624,8 +602,7 @@ export var serializeAws_restJson1EnableOrganizationAdminAccountCommand = functio
624
602
  "content-type": "application/json",
625
603
  };
626
604
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/admin";
627
- body = JSON.stringify(__assign(__assign({}, (input.adminAccountId !== undefined &&
628
- input.adminAccountId !== null && { adminAccountId: input.adminAccountId })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
605
+ body = JSON.stringify(__assign(__assign({}, (input.adminAccountId != null && { adminAccountId: input.adminAccountId })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
629
606
  return [2, new __HttpRequest({
630
607
  protocol: protocol,
631
608
  hostname: hostname,
@@ -673,7 +650,7 @@ export var serializeAws_restJson1GetBucketStatisticsCommand = function (input, c
673
650
  "content-type": "application/json",
674
651
  };
675
652
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasources/s3/statistics";
676
- body = JSON.stringify(__assign({}, (input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId })));
653
+ body = JSON.stringify(__assign({}, (input.accountId != null && { accountId: input.accountId })));
677
654
  return [2, new __HttpRequest({
678
655
  protocol: protocol,
679
656
  hostname: hostname,
@@ -752,9 +729,9 @@ export var serializeAws_restJson1GetFindingsCommand = function (input, context)
752
729
  "content-type": "application/json",
753
730
  };
754
731
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/describe";
755
- body = JSON.stringify(__assign(__assign({}, (input.findingIds !== undefined &&
756
- input.findingIds !== null && { findingIds: serializeAws_restJson1__listOf__string(input.findingIds, context) })), (input.sortCriteria !== undefined &&
757
- input.sortCriteria !== null && { sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context) })));
732
+ body = JSON.stringify(__assign(__assign({}, (input.findingIds != null && { findingIds: serializeAws_restJson1__listOf__string(input.findingIds, context) })), (input.sortCriteria != null && {
733
+ sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
734
+ })));
758
735
  return [2, new __HttpRequest({
759
736
  protocol: protocol,
760
737
  hostname: hostname,
@@ -833,11 +810,9 @@ export var serializeAws_restJson1GetFindingStatisticsCommand = function (input,
833
810
  "content-type": "application/json",
834
811
  };
835
812
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/statistics";
836
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.findingCriteria !== undefined &&
837
- input.findingCriteria !== null && {
813
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.findingCriteria != null && {
838
814
  findingCriteria: serializeAws_restJson1FindingCriteria(input.findingCriteria, context),
839
- })), (input.groupBy !== undefined && input.groupBy !== null && { groupBy: input.groupBy })), (input.size !== undefined && input.size !== null && { size: input.size })), (input.sortCriteria !== undefined &&
840
- input.sortCriteria !== null && {
815
+ })), (input.groupBy != null && { groupBy: input.groupBy })), (input.size != null && { size: input.size })), (input.sortCriteria != null && {
841
816
  sortCriteria: serializeAws_restJson1FindingStatisticsSortCriteria(input.sortCriteria, context),
842
817
  })));
843
818
  return [2, new __HttpRequest({
@@ -966,11 +941,9 @@ export var serializeAws_restJson1GetUsageStatisticsCommand = function (input, co
966
941
  "content-type": "application/json",
967
942
  };
968
943
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usage/statistics";
969
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.filterBy !== undefined &&
970
- input.filterBy !== null && {
944
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.filterBy != null && {
971
945
  filterBy: serializeAws_restJson1__listOfUsageStatisticsFilter(input.filterBy, context),
972
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined &&
973
- input.sortBy !== null && { sortBy: serializeAws_restJson1UsageStatisticsSortBy(input.sortBy, context) })), (input.timeRange !== undefined && input.timeRange !== null && { timeRange: input.timeRange })));
946
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: serializeAws_restJson1UsageStatisticsSortBy(input.sortBy, context) })), (input.timeRange != null && { timeRange: input.timeRange })));
974
947
  return [2, new __HttpRequest({
975
948
  protocol: protocol,
976
949
  hostname: hostname,
@@ -1017,11 +990,9 @@ export var serializeAws_restJson1ListClassificationJobsCommand = function (input
1017
990
  "content-type": "application/json",
1018
991
  };
1019
992
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/list";
1020
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filterCriteria !== undefined &&
1021
- input.filterCriteria !== null && {
993
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filterCriteria != null && {
1022
994
  filterCriteria: serializeAws_restJson1ListJobsFilterCriteria(input.filterCriteria, context),
1023
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortCriteria !== undefined &&
1024
- input.sortCriteria !== null && {
995
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortCriteria != null && {
1025
996
  sortCriteria: serializeAws_restJson1ListJobsSortCriteria(input.sortCriteria, context),
1026
997
  })));
1027
998
  return [2, new __HttpRequest({
@@ -1047,7 +1018,7 @@ export var serializeAws_restJson1ListCustomDataIdentifiersCommand = function (in
1047
1018
  "content-type": "application/json",
1048
1019
  };
1049
1020
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-data-identifiers/list";
1050
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
1021
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
1051
1022
  return [2, new __HttpRequest({
1052
1023
  protocol: protocol,
1053
1024
  hostname: hostname,
@@ -1071,11 +1042,11 @@ export var serializeAws_restJson1ListFindingsCommand = function (input, context)
1071
1042
  "content-type": "application/json",
1072
1043
  };
1073
1044
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings";
1074
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.findingCriteria !== undefined &&
1075
- input.findingCriteria !== null && {
1045
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.findingCriteria != null && {
1076
1046
  findingCriteria: serializeAws_restJson1FindingCriteria(input.findingCriteria, context),
1077
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortCriteria !== undefined &&
1078
- input.sortCriteria !== null && { sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context) })));
1047
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortCriteria != null && {
1048
+ sortCriteria: serializeAws_restJson1SortCriteria(input.sortCriteria, context),
1049
+ })));
1079
1050
  return [2, new __HttpRequest({
1080
1051
  protocol: protocol,
1081
1052
  hostname: hostname,
@@ -1145,7 +1116,7 @@ export var serializeAws_restJson1ListManagedDataIdentifiersCommand = function (i
1145
1116
  "content-type": "application/json",
1146
1117
  };
1147
1118
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/managed-data-identifiers/list";
1148
- body = JSON.stringify(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
1119
+ body = JSON.stringify(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })));
1149
1120
  return [2, new __HttpRequest({
1150
1121
  protocol: protocol,
1151
1122
  hostname: hostname,
@@ -1246,8 +1217,7 @@ export var serializeAws_restJson1PutClassificationExportConfigurationCommand = f
1246
1217
  "content-type": "application/json",
1247
1218
  };
1248
1219
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/classification-export-configuration";
1249
- body = JSON.stringify(__assign({}, (input.configuration !== undefined &&
1250
- input.configuration !== null && {
1220
+ body = JSON.stringify(__assign({}, (input.configuration != null && {
1251
1221
  configuration: serializeAws_restJson1ClassificationExportConfiguration(input.configuration, context),
1252
1222
  })));
1253
1223
  return [2, new __HttpRequest({
@@ -1274,8 +1244,7 @@ export var serializeAws_restJson1PutFindingsPublicationConfigurationCommand = fu
1274
1244
  "content-type": "application/json",
1275
1245
  };
1276
1246
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings-publication-configuration";
1277
- body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.securityHubConfiguration !== undefined &&
1278
- input.securityHubConfiguration !== null && {
1247
+ body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.securityHubConfiguration != null && {
1279
1248
  securityHubConfiguration: serializeAws_restJson1SecurityHubConfiguration(input.securityHubConfiguration, context),
1280
1249
  })));
1281
1250
  return [2, new __HttpRequest({
@@ -1301,11 +1270,9 @@ export var serializeAws_restJson1SearchResourcesCommand = function (input, conte
1301
1270
  "content-type": "application/json",
1302
1271
  };
1303
1272
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasources/search-resources";
1304
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.bucketCriteria !== undefined &&
1305
- input.bucketCriteria !== null && {
1273
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.bucketCriteria != null && {
1306
1274
  bucketCriteria: serializeAws_restJson1SearchResourcesBucketCriteria(input.bucketCriteria, context),
1307
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortCriteria !== undefined &&
1308
- input.sortCriteria !== null && {
1275
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortCriteria != null && {
1309
1276
  sortCriteria: serializeAws_restJson1SearchResourcesSortCriteria(input.sortCriteria, context),
1310
1277
  })));
1311
1278
  return [2, new __HttpRequest({
@@ -1341,7 +1308,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1341
1308
  else {
1342
1309
  throw new Error("No value provided for input HTTP label: resourceArn.");
1343
1310
  }
1344
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
1311
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
1345
1312
  return [2, new __HttpRequest({
1346
1313
  protocol: protocol,
1347
1314
  hostname: hostname,
@@ -1365,12 +1332,9 @@ export var serializeAws_restJson1TestCustomDataIdentifierCommand = function (inp
1365
1332
  "content-type": "application/json",
1366
1333
  };
1367
1334
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-data-identifiers/test";
1368
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ignoreWords !== undefined &&
1369
- input.ignoreWords !== null && {
1335
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ignoreWords != null && {
1370
1336
  ignoreWords: serializeAws_restJson1__listOf__string(input.ignoreWords, context),
1371
- })), (input.keywords !== undefined &&
1372
- input.keywords !== null && { keywords: serializeAws_restJson1__listOf__string(input.keywords, context) })), (input.maximumMatchDistance !== undefined &&
1373
- input.maximumMatchDistance !== null && { maximumMatchDistance: input.maximumMatchDistance })), (input.regex !== undefined && input.regex !== null && { regex: input.regex })), (input.sampleText !== undefined && input.sampleText !== null && { sampleText: input.sampleText })));
1337
+ })), (input.keywords != null && { keywords: serializeAws_restJson1__listOf__string(input.keywords, context) })), (input.maximumMatchDistance != null && { maximumMatchDistance: input.maximumMatchDistance })), (input.regex != null && { regex: input.regex })), (input.sampleText != null && { sampleText: input.sampleText })));
1374
1338
  return [2, new __HttpRequest({
1375
1339
  protocol: protocol,
1376
1340
  hostname: hostname,
@@ -1437,7 +1401,7 @@ export var serializeAws_restJson1UpdateClassificationJobCommand = function (inpu
1437
1401
  else {
1438
1402
  throw new Error("No value provided for input HTTP label: jobId.");
1439
1403
  }
1440
- body = JSON.stringify(__assign({}, (input.jobStatus !== undefined && input.jobStatus !== null && { jobStatus: input.jobStatus })));
1404
+ body = JSON.stringify(__assign({}, (input.jobStatus != null && { jobStatus: input.jobStatus })));
1441
1405
  return [2, new __HttpRequest({
1442
1406
  protocol: protocol,
1443
1407
  hostname: hostname,
@@ -1472,10 +1436,9 @@ export var serializeAws_restJson1UpdateFindingsFilterCommand = function (input,
1472
1436
  else {
1473
1437
  throw new Error("No value provided for input HTTP label: id.");
1474
1438
  }
1475
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description !== undefined && input.description !== null && { description: input.description })), (input.findingCriteria !== undefined &&
1476
- input.findingCriteria !== null && {
1439
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description != null && { description: input.description })), (input.findingCriteria != null && {
1477
1440
  findingCriteria: serializeAws_restJson1FindingCriteria(input.findingCriteria, context),
1478
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.position !== undefined && input.position !== null && { position: input.position })));
1441
+ })), (input.name != null && { name: input.name })), (input.position != null && { position: input.position })));
1479
1442
  return [2, new __HttpRequest({
1480
1443
  protocol: protocol,
1481
1444
  hostname: hostname,
@@ -1499,8 +1462,7 @@ export var serializeAws_restJson1UpdateMacieSessionCommand = function (input, co
1499
1462
  "content-type": "application/json",
1500
1463
  };
1501
1464
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/macie";
1502
- body = JSON.stringify(__assign(__assign({}, (input.findingPublishingFrequency !== undefined &&
1503
- input.findingPublishingFrequency !== null && { findingPublishingFrequency: input.findingPublishingFrequency })), (input.status !== undefined && input.status !== null && { status: input.status })));
1465
+ body = JSON.stringify(__assign(__assign({}, (input.findingPublishingFrequency != null && { findingPublishingFrequency: input.findingPublishingFrequency })), (input.status != null && { status: input.status })));
1504
1466
  return [2, new __HttpRequest({
1505
1467
  protocol: protocol,
1506
1468
  hostname: hostname,
@@ -1534,7 +1496,7 @@ export var serializeAws_restJson1UpdateMemberSessionCommand = function (input, c
1534
1496
  else {
1535
1497
  throw new Error("No value provided for input HTTP label: id.");
1536
1498
  }
1537
- body = JSON.stringify(__assign({}, (input.status !== undefined && input.status !== null && { status: input.status })));
1499
+ body = JSON.stringify(__assign({}, (input.status != null && { status: input.status })));
1538
1500
  return [2, new __HttpRequest({
1539
1501
  protocol: protocol,
1540
1502
  hostname: hostname,
@@ -1558,7 +1520,7 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
1558
1520
  "content-type": "application/json",
1559
1521
  };
1560
1522
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/admin/configuration";
1561
- body = JSON.stringify(__assign({}, (input.autoEnable !== undefined && input.autoEnable !== null && { autoEnable: input.autoEnable })));
1523
+ body = JSON.stringify(__assign({}, (input.autoEnable != null && { autoEnable: input.autoEnable })));
1562
1524
  return [2, new __HttpRequest({
1563
1525
  protocol: protocol,
1564
1526
  hostname: hostname,
@@ -6471,7 +6433,7 @@ var serializeAws_restJson1__listOfUsageStatisticsFilter = function (input, conte
6471
6433
  });
6472
6434
  };
6473
6435
  var serializeAws_restJson1AccountDetail = function (input, context) {
6474
- return __assign(__assign({}, (input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId })), (input.email !== undefined && input.email !== null && { email: input.email }));
6436
+ return __assign(__assign({}, (input.accountId != null && { accountId: input.accountId })), (input.email != null && { email: input.email }));
6475
6437
  };
6476
6438
  var serializeAws_restJson1BucketCriteria = function (input, context) {
6477
6439
  return Object.entries(input).reduce(function (acc, _a) {
@@ -6484,29 +6446,23 @@ var serializeAws_restJson1BucketCriteria = function (input, context) {
6484
6446
  }, {});
6485
6447
  };
6486
6448
  var serializeAws_restJson1BucketCriteriaAdditionalProperties = function (input, context) {
6487
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.eq !== undefined &&
6488
- input.eq !== null && { eq: serializeAws_restJson1__listOf__string(input.eq, context) })), (input.gt !== undefined && input.gt !== null && { gt: input.gt })), (input.gte !== undefined && input.gte !== null && { gte: input.gte })), (input.lt !== undefined && input.lt !== null && { lt: input.lt })), (input.lte !== undefined && input.lte !== null && { lte: input.lte })), (input.neq !== undefined &&
6489
- input.neq !== null && { neq: serializeAws_restJson1__listOf__string(input.neq, context) })), (input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }));
6449
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.eq != null && { eq: serializeAws_restJson1__listOf__string(input.eq, context) })), (input.gt != null && { gt: input.gt })), (input.gte != null && { gte: input.gte })), (input.lt != null && { lt: input.lt })), (input.lte != null && { lte: input.lte })), (input.neq != null && { neq: serializeAws_restJson1__listOf__string(input.neq, context) })), (input.prefix != null && { prefix: input.prefix }));
6490
6450
  };
6491
6451
  var serializeAws_restJson1BucketSortCriteria = function (input, context) {
6492
- return __assign(__assign({}, (input.attributeName !== undefined && input.attributeName !== null && { attributeName: input.attributeName })), (input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }));
6452
+ return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
6493
6453
  };
6494
6454
  var serializeAws_restJson1ClassificationExportConfiguration = function (input, context) {
6495
- return __assign({}, (input.s3Destination !== undefined &&
6496
- input.s3Destination !== null && {
6455
+ return __assign({}, (input.s3Destination != null && {
6497
6456
  s3Destination: serializeAws_restJson1S3Destination(input.s3Destination, context),
6498
6457
  }));
6499
6458
  };
6500
6459
  var serializeAws_restJson1CriteriaBlockForJob = function (input, context) {
6501
- return __assign({}, (input.and !== undefined &&
6502
- input.and !== null && { and: serializeAws_restJson1__listOfCriteriaForJob(input.and, context) }));
6460
+ return __assign({}, (input.and != null && { and: serializeAws_restJson1__listOfCriteriaForJob(input.and, context) }));
6503
6461
  };
6504
6462
  var serializeAws_restJson1CriteriaForJob = function (input, context) {
6505
- return __assign(__assign({}, (input.simpleCriterion !== undefined &&
6506
- input.simpleCriterion !== null && {
6463
+ return __assign(__assign({}, (input.simpleCriterion != null && {
6507
6464
  simpleCriterion: serializeAws_restJson1SimpleCriterionForJob(input.simpleCriterion, context),
6508
- })), (input.tagCriterion !== undefined &&
6509
- input.tagCriterion !== null && {
6465
+ })), (input.tagCriterion != null && {
6510
6466
  tagCriterion: serializeAws_restJson1TagCriterionForJob(input.tagCriterion, context),
6511
6467
  }));
6512
6468
  };
@@ -6521,140 +6477,111 @@ var serializeAws_restJson1Criterion = function (input, context) {
6521
6477
  }, {});
6522
6478
  };
6523
6479
  var serializeAws_restJson1CriterionAdditionalProperties = function (input, context) {
6524
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.eq !== undefined &&
6525
- input.eq !== null && { eq: serializeAws_restJson1__listOf__string(input.eq, context) })), (input.eqExactMatch !== undefined &&
6526
- input.eqExactMatch !== null && {
6480
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.eq != null && { eq: serializeAws_restJson1__listOf__string(input.eq, context) })), (input.eqExactMatch != null && {
6527
6481
  eqExactMatch: serializeAws_restJson1__listOf__string(input.eqExactMatch, context),
6528
- })), (input.gt !== undefined && input.gt !== null && { gt: input.gt })), (input.gte !== undefined && input.gte !== null && { gte: input.gte })), (input.lt !== undefined && input.lt !== null && { lt: input.lt })), (input.lte !== undefined && input.lte !== null && { lte: input.lte })), (input.neq !== undefined &&
6529
- input.neq !== null && { neq: serializeAws_restJson1__listOf__string(input.neq, context) }));
6482
+ })), (input.gt != null && { gt: input.gt })), (input.gte != null && { gte: input.gte })), (input.lt != null && { lt: input.lt })), (input.lte != null && { lte: input.lte })), (input.neq != null && { neq: serializeAws_restJson1__listOf__string(input.neq, context) }));
6530
6483
  };
6531
6484
  var serializeAws_restJson1DailySchedule = function (input, context) {
6532
6485
  return {};
6533
6486
  };
6534
6487
  var serializeAws_restJson1FindingCriteria = function (input, context) {
6535
- return __assign({}, (input.criterion !== undefined &&
6536
- input.criterion !== null && { criterion: serializeAws_restJson1Criterion(input.criterion, context) }));
6488
+ return __assign({}, (input.criterion != null && { criterion: serializeAws_restJson1Criterion(input.criterion, context) }));
6537
6489
  };
6538
6490
  var serializeAws_restJson1FindingStatisticsSortCriteria = function (input, context) {
6539
- return __assign(__assign({}, (input.attributeName !== undefined && input.attributeName !== null && { attributeName: input.attributeName })), (input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }));
6491
+ return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
6540
6492
  };
6541
6493
  var serializeAws_restJson1JobScheduleFrequency = function (input, context) {
6542
- return __assign(__assign(__assign({}, (input.dailySchedule !== undefined &&
6543
- input.dailySchedule !== null && {
6494
+ return __assign(__assign(__assign({}, (input.dailySchedule != null && {
6544
6495
  dailySchedule: serializeAws_restJson1DailySchedule(input.dailySchedule, context),
6545
- })), (input.monthlySchedule !== undefined &&
6546
- input.monthlySchedule !== null && {
6496
+ })), (input.monthlySchedule != null && {
6547
6497
  monthlySchedule: serializeAws_restJson1MonthlySchedule(input.monthlySchedule, context),
6548
- })), (input.weeklySchedule !== undefined &&
6549
- input.weeklySchedule !== null && {
6498
+ })), (input.weeklySchedule != null && {
6550
6499
  weeklySchedule: serializeAws_restJson1WeeklySchedule(input.weeklySchedule, context),
6551
6500
  }));
6552
6501
  };
6553
6502
  var serializeAws_restJson1JobScopeTerm = function (input, context) {
6554
- return __assign(__assign({}, (input.simpleScopeTerm !== undefined &&
6555
- input.simpleScopeTerm !== null && {
6503
+ return __assign(__assign({}, (input.simpleScopeTerm != null && {
6556
6504
  simpleScopeTerm: serializeAws_restJson1SimpleScopeTerm(input.simpleScopeTerm, context),
6557
- })), (input.tagScopeTerm !== undefined &&
6558
- input.tagScopeTerm !== null && { tagScopeTerm: serializeAws_restJson1TagScopeTerm(input.tagScopeTerm, context) }));
6505
+ })), (input.tagScopeTerm != null && {
6506
+ tagScopeTerm: serializeAws_restJson1TagScopeTerm(input.tagScopeTerm, context),
6507
+ }));
6559
6508
  };
6560
6509
  var serializeAws_restJson1JobScopingBlock = function (input, context) {
6561
- return __assign({}, (input.and !== undefined &&
6562
- input.and !== null && { and: serializeAws_restJson1__listOfJobScopeTerm(input.and, context) }));
6510
+ return __assign({}, (input.and != null && { and: serializeAws_restJson1__listOfJobScopeTerm(input.and, context) }));
6563
6511
  };
6564
6512
  var serializeAws_restJson1ListJobsFilterCriteria = function (input, context) {
6565
- return __assign(__assign({}, (input.excludes !== undefined &&
6566
- input.excludes !== null && {
6513
+ return __assign(__assign({}, (input.excludes != null && {
6567
6514
  excludes: serializeAws_restJson1__listOfListJobsFilterTerm(input.excludes, context),
6568
- })), (input.includes !== undefined &&
6569
- input.includes !== null && {
6515
+ })), (input.includes != null && {
6570
6516
  includes: serializeAws_restJson1__listOfListJobsFilterTerm(input.includes, context),
6571
6517
  }));
6572
6518
  };
6573
6519
  var serializeAws_restJson1ListJobsFilterTerm = function (input, context) {
6574
- return __assign(__assign(__assign({}, (input.comparator !== undefined && input.comparator !== null && { comparator: input.comparator })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.values !== undefined &&
6575
- input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6520
+ return __assign(__assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.key != null && { key: input.key })), (input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6576
6521
  };
6577
6522
  var serializeAws_restJson1ListJobsSortCriteria = function (input, context) {
6578
- return __assign(__assign({}, (input.attributeName !== undefined && input.attributeName !== null && { attributeName: input.attributeName })), (input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }));
6523
+ return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
6579
6524
  };
6580
6525
  var serializeAws_restJson1MonthlySchedule = function (input, context) {
6581
- return __assign({}, (input.dayOfMonth !== undefined && input.dayOfMonth !== null && { dayOfMonth: input.dayOfMonth }));
6526
+ return __assign({}, (input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth }));
6582
6527
  };
6583
6528
  var serializeAws_restJson1S3BucketCriteriaForJob = function (input, context) {
6584
- return __assign(__assign({}, (input.excludes !== undefined &&
6585
- input.excludes !== null && { excludes: serializeAws_restJson1CriteriaBlockForJob(input.excludes, context) })), (input.includes !== undefined &&
6586
- input.includes !== null && { includes: serializeAws_restJson1CriteriaBlockForJob(input.includes, context) }));
6529
+ return __assign(__assign({}, (input.excludes != null && { excludes: serializeAws_restJson1CriteriaBlockForJob(input.excludes, context) })), (input.includes != null && { includes: serializeAws_restJson1CriteriaBlockForJob(input.includes, context) }));
6587
6530
  };
6588
6531
  var serializeAws_restJson1S3BucketDefinitionForJob = function (input, context) {
6589
- return __assign(__assign({}, (input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId })), (input.buckets !== undefined &&
6590
- input.buckets !== null && { buckets: serializeAws_restJson1__listOf__string(input.buckets, context) }));
6532
+ return __assign(__assign({}, (input.accountId != null && { accountId: input.accountId })), (input.buckets != null && { buckets: serializeAws_restJson1__listOf__string(input.buckets, context) }));
6591
6533
  };
6592
6534
  var serializeAws_restJson1S3Destination = function (input, context) {
6593
- return __assign(__assign(__assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.keyPrefix !== undefined && input.keyPrefix !== null && { keyPrefix: input.keyPrefix })), (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }));
6535
+ return __assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.keyPrefix != null && { keyPrefix: input.keyPrefix })), (input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }));
6594
6536
  };
6595
6537
  var serializeAws_restJson1S3JobDefinition = function (input, context) {
6596
- return __assign(__assign(__assign({}, (input.bucketCriteria !== undefined &&
6597
- input.bucketCriteria !== null && {
6538
+ return __assign(__assign(__assign({}, (input.bucketCriteria != null && {
6598
6539
  bucketCriteria: serializeAws_restJson1S3BucketCriteriaForJob(input.bucketCriteria, context),
6599
- })), (input.bucketDefinitions !== undefined &&
6600
- input.bucketDefinitions !== null && {
6540
+ })), (input.bucketDefinitions != null && {
6601
6541
  bucketDefinitions: serializeAws_restJson1__listOfS3BucketDefinitionForJob(input.bucketDefinitions, context),
6602
- })), (input.scoping !== undefined &&
6603
- input.scoping !== null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }));
6542
+ })), (input.scoping != null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }));
6604
6543
  };
6605
6544
  var serializeAws_restJson1Scoping = function (input, context) {
6606
- return __assign(__assign({}, (input.excludes !== undefined &&
6607
- input.excludes !== null && { excludes: serializeAws_restJson1JobScopingBlock(input.excludes, context) })), (input.includes !== undefined &&
6608
- input.includes !== null && { includes: serializeAws_restJson1JobScopingBlock(input.includes, context) }));
6545
+ return __assign(__assign({}, (input.excludes != null && { excludes: serializeAws_restJson1JobScopingBlock(input.excludes, context) })), (input.includes != null && { includes: serializeAws_restJson1JobScopingBlock(input.includes, context) }));
6609
6546
  };
6610
6547
  var serializeAws_restJson1SearchResourcesBucketCriteria = function (input, context) {
6611
- return __assign(__assign({}, (input.excludes !== undefined &&
6612
- input.excludes !== null && {
6548
+ return __assign(__assign({}, (input.excludes != null && {
6613
6549
  excludes: serializeAws_restJson1SearchResourcesCriteriaBlock(input.excludes, context),
6614
- })), (input.includes !== undefined &&
6615
- input.includes !== null && {
6550
+ })), (input.includes != null && {
6616
6551
  includes: serializeAws_restJson1SearchResourcesCriteriaBlock(input.includes, context),
6617
6552
  }));
6618
6553
  };
6619
6554
  var serializeAws_restJson1SearchResourcesCriteria = function (input, context) {
6620
- return __assign(__assign({}, (input.simpleCriterion !== undefined &&
6621
- input.simpleCriterion !== null && {
6555
+ return __assign(__assign({}, (input.simpleCriterion != null && {
6622
6556
  simpleCriterion: serializeAws_restJson1SearchResourcesSimpleCriterion(input.simpleCriterion, context),
6623
- })), (input.tagCriterion !== undefined &&
6624
- input.tagCriterion !== null && {
6557
+ })), (input.tagCriterion != null && {
6625
6558
  tagCriterion: serializeAws_restJson1SearchResourcesTagCriterion(input.tagCriterion, context),
6626
6559
  }));
6627
6560
  };
6628
6561
  var serializeAws_restJson1SearchResourcesCriteriaBlock = function (input, context) {
6629
- return __assign({}, (input.and !== undefined &&
6630
- input.and !== null && { and: serializeAws_restJson1__listOfSearchResourcesCriteria(input.and, context) }));
6562
+ return __assign({}, (input.and != null && { and: serializeAws_restJson1__listOfSearchResourcesCriteria(input.and, context) }));
6631
6563
  };
6632
6564
  var serializeAws_restJson1SearchResourcesSimpleCriterion = function (input, context) {
6633
- return __assign(__assign(__assign({}, (input.comparator !== undefined && input.comparator !== null && { comparator: input.comparator })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.values !== undefined &&
6634
- input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6565
+ return __assign(__assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.key != null && { key: input.key })), (input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6635
6566
  };
6636
6567
  var serializeAws_restJson1SearchResourcesSortCriteria = function (input, context) {
6637
- return __assign(__assign({}, (input.attributeName !== undefined && input.attributeName !== null && { attributeName: input.attributeName })), (input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }));
6568
+ return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
6638
6569
  };
6639
6570
  var serializeAws_restJson1SearchResourcesTagCriterion = function (input, context) {
6640
- return __assign(__assign({}, (input.comparator !== undefined && input.comparator !== null && { comparator: input.comparator })), (input.tagValues !== undefined &&
6641
- input.tagValues !== null && {
6571
+ return __assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.tagValues != null && {
6642
6572
  tagValues: serializeAws_restJson1__listOfSearchResourcesTagCriterionPair(input.tagValues, context),
6643
6573
  }));
6644
6574
  };
6645
6575
  var serializeAws_restJson1SearchResourcesTagCriterionPair = function (input, context) {
6646
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
6576
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
6647
6577
  };
6648
6578
  var serializeAws_restJson1SecurityHubConfiguration = function (input, context) {
6649
- return __assign(__assign({}, (input.publishClassificationFindings !== undefined &&
6650
- input.publishClassificationFindings !== null && {
6579
+ return __assign(__assign({}, (input.publishClassificationFindings != null && {
6651
6580
  publishClassificationFindings: input.publishClassificationFindings,
6652
- })), (input.publishPolicyFindings !== undefined &&
6653
- input.publishPolicyFindings !== null && { publishPolicyFindings: input.publishPolicyFindings }));
6581
+ })), (input.publishPolicyFindings != null && { publishPolicyFindings: input.publishPolicyFindings }));
6654
6582
  };
6655
6583
  var serializeAws_restJson1SeverityLevel = function (input, context) {
6656
- return __assign(__assign({}, (input.occurrencesThreshold !== undefined &&
6657
- input.occurrencesThreshold !== null && { occurrencesThreshold: input.occurrencesThreshold })), (input.severity !== undefined && input.severity !== null && { severity: input.severity }));
6584
+ return __assign(__assign({}, (input.occurrencesThreshold != null && { occurrencesThreshold: input.occurrencesThreshold })), (input.severity != null && { severity: input.severity }));
6658
6585
  };
6659
6586
  var serializeAws_restJson1SeverityLevelList = function (input, context) {
6660
6587
  return input
@@ -6667,24 +6594,21 @@ var serializeAws_restJson1SeverityLevelList = function (input, context) {
6667
6594
  });
6668
6595
  };
6669
6596
  var serializeAws_restJson1SimpleCriterionForJob = function (input, context) {
6670
- return __assign(__assign(__assign({}, (input.comparator !== undefined && input.comparator !== null && { comparator: input.comparator })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.values !== undefined &&
6671
- input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6597
+ return __assign(__assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.key != null && { key: input.key })), (input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6672
6598
  };
6673
6599
  var serializeAws_restJson1SimpleScopeTerm = function (input, context) {
6674
- return __assign(__assign(__assign({}, (input.comparator !== undefined && input.comparator !== null && { comparator: input.comparator })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.values !== undefined &&
6675
- input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6600
+ return __assign(__assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.key != null && { key: input.key })), (input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6676
6601
  };
6677
6602
  var serializeAws_restJson1SortCriteria = function (input, context) {
6678
- return __assign(__assign({}, (input.attributeName !== undefined && input.attributeName !== null && { attributeName: input.attributeName })), (input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }));
6603
+ return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
6679
6604
  };
6680
6605
  var serializeAws_restJson1TagCriterionForJob = function (input, context) {
6681
- return __assign(__assign({}, (input.comparator !== undefined && input.comparator !== null && { comparator: input.comparator })), (input.tagValues !== undefined &&
6682
- input.tagValues !== null && {
6606
+ return __assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.tagValues != null && {
6683
6607
  tagValues: serializeAws_restJson1__listOfTagCriterionPairForJob(input.tagValues, context),
6684
6608
  }));
6685
6609
  };
6686
6610
  var serializeAws_restJson1TagCriterionPairForJob = function (input, context) {
6687
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
6611
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
6688
6612
  };
6689
6613
  var serializeAws_restJson1TagMap = function (input, context) {
6690
6614
  return Object.entries(input).reduce(function (acc, _a) {
@@ -6697,21 +6621,19 @@ var serializeAws_restJson1TagMap = function (input, context) {
6697
6621
  }, {});
6698
6622
  };
6699
6623
  var serializeAws_restJson1TagScopeTerm = function (input, context) {
6700
- return __assign(__assign(__assign(__assign({}, (input.comparator !== undefined && input.comparator !== null && { comparator: input.comparator })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.tagValues !== undefined &&
6701
- input.tagValues !== null && { tagValues: serializeAws_restJson1__listOfTagValuePair(input.tagValues, context) })), (input.target !== undefined && input.target !== null && { target: input.target }));
6624
+ return __assign(__assign(__assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.key != null && { key: input.key })), (input.tagValues != null && { tagValues: serializeAws_restJson1__listOfTagValuePair(input.tagValues, context) })), (input.target != null && { target: input.target }));
6702
6625
  };
6703
6626
  var serializeAws_restJson1TagValuePair = function (input, context) {
6704
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
6627
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
6705
6628
  };
6706
6629
  var serializeAws_restJson1UsageStatisticsFilter = function (input, context) {
6707
- return __assign(__assign(__assign({}, (input.comparator !== undefined && input.comparator !== null && { comparator: input.comparator })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.values !== undefined &&
6708
- input.values !== null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6630
+ return __assign(__assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.key != null && { key: input.key })), (input.values != null && { values: serializeAws_restJson1__listOf__string(input.values, context) }));
6709
6631
  };
6710
6632
  var serializeAws_restJson1UsageStatisticsSortBy = function (input, context) {
6711
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.orderBy !== undefined && input.orderBy !== null && { orderBy: input.orderBy }));
6633
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.orderBy != null && { orderBy: input.orderBy }));
6712
6634
  };
6713
6635
  var serializeAws_restJson1WeeklySchedule = function (input, context) {
6714
- return __assign({}, (input.dayOfWeek !== undefined && input.dayOfWeek !== null && { dayOfWeek: input.dayOfWeek }));
6636
+ return __assign({}, (input.dayOfWeek != null && { dayOfWeek: input.dayOfWeek }));
6715
6637
  };
6716
6638
  var deserializeAws_restJson1__listOf__string = function (output, context) {
6717
6639
  var retVal = (output || [])
@@ -6974,7 +6896,7 @@ var deserializeAws_restJson1AccessControlList = function (output, context) {
6974
6896
  };
6975
6897
  var deserializeAws_restJson1AccountLevelPermissions = function (output, context) {
6976
6898
  return {
6977
- blockPublicAccess: output.blockPublicAccess !== undefined && output.blockPublicAccess !== null
6899
+ blockPublicAccess: output.blockPublicAccess != null
6978
6900
  ? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
6979
6901
  : undefined,
6980
6902
  };
@@ -6989,12 +6911,8 @@ var deserializeAws_restJson1ApiCallDetails = function (output, context) {
6989
6911
  return {
6990
6912
  api: __expectString(output.api),
6991
6913
  apiServiceName: __expectString(output.apiServiceName),
6992
- firstSeen: output.firstSeen !== undefined && output.firstSeen !== null
6993
- ? __expectNonNull(__parseRfc3339DateTime(output.firstSeen))
6994
- : undefined,
6995
- lastSeen: output.lastSeen !== undefined && output.lastSeen !== null
6996
- ? __expectNonNull(__parseRfc3339DateTime(output.lastSeen))
6997
- : undefined,
6914
+ firstSeen: output.firstSeen != null ? __expectNonNull(__parseRfc3339DateTime(output.firstSeen)) : undefined,
6915
+ lastSeen: output.lastSeen != null ? __expectNonNull(__parseRfc3339DateTime(output.lastSeen)) : undefined,
6998
6916
  };
6999
6917
  };
7000
6918
  var deserializeAws_restJson1AssumedRole = function (output, context) {
@@ -7003,7 +6921,7 @@ var deserializeAws_restJson1AssumedRole = function (output, context) {
7003
6921
  accountId: __expectString(output.accountId),
7004
6922
  arn: __expectString(output.arn),
7005
6923
  principalId: __expectString(output.principalId),
7006
- sessionContext: output.sessionContext !== undefined && output.sessionContext !== null
6924
+ sessionContext: output.sessionContext != null
7007
6925
  ? deserializeAws_restJson1SessionContext(output.sessionContext, context)
7008
6926
  : undefined,
7009
6927
  };
@@ -7022,9 +6940,7 @@ var deserializeAws_restJson1AwsService = function (output, context) {
7022
6940
  var deserializeAws_restJson1BatchGetCustomDataIdentifierSummary = function (output, context) {
7023
6941
  return {
7024
6942
  arn: __expectString(output.arn),
7025
- createdAt: output.createdAt !== undefined && output.createdAt !== null
7026
- ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
7027
- : undefined,
6943
+ createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
7028
6944
  deleted: __expectBoolean(output.deleted),
7029
6945
  description: __expectString(output.description),
7030
6946
  id: __expectString(output.id),
@@ -7072,15 +6988,13 @@ var deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads = fu
7072
6988
  };
7073
6989
  var deserializeAws_restJson1BucketLevelPermissions = function (output, context) {
7074
6990
  return {
7075
- accessControlList: output.accessControlList !== undefined && output.accessControlList !== null
6991
+ accessControlList: output.accessControlList != null
7076
6992
  ? deserializeAws_restJson1AccessControlList(output.accessControlList, context)
7077
6993
  : undefined,
7078
- blockPublicAccess: output.blockPublicAccess !== undefined && output.blockPublicAccess !== null
6994
+ blockPublicAccess: output.blockPublicAccess != null
7079
6995
  ? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
7080
6996
  : undefined,
7081
- bucketPolicy: output.bucketPolicy !== undefined && output.bucketPolicy !== null
7082
- ? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context)
7083
- : undefined,
6997
+ bucketPolicy: output.bucketPolicy != null ? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context) : undefined,
7084
6998
  };
7085
6999
  };
7086
7000
  var deserializeAws_restJson1BucketMetadata = function (output, context) {
@@ -7088,44 +7002,36 @@ var deserializeAws_restJson1BucketMetadata = function (output, context) {
7088
7002
  accountId: __expectString(output.accountId),
7089
7003
  allowsUnencryptedObjectUploads: __expectString(output.allowsUnencryptedObjectUploads),
7090
7004
  bucketArn: __expectString(output.bucketArn),
7091
- bucketCreatedAt: output.bucketCreatedAt !== undefined && output.bucketCreatedAt !== null
7092
- ? __expectNonNull(__parseRfc3339DateTime(output.bucketCreatedAt))
7093
- : undefined,
7005
+ bucketCreatedAt: output.bucketCreatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.bucketCreatedAt)) : undefined,
7094
7006
  bucketName: __expectString(output.bucketName),
7095
7007
  classifiableObjectCount: __expectLong(output.classifiableObjectCount),
7096
7008
  classifiableSizeInBytes: __expectLong(output.classifiableSizeInBytes),
7097
7009
  errorCode: __expectString(output.errorCode),
7098
7010
  errorMessage: __expectString(output.errorMessage),
7099
- jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
7100
- ? deserializeAws_restJson1JobDetails(output.jobDetails, context)
7101
- : undefined,
7102
- lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
7103
- ? __expectNonNull(__parseRfc3339DateTime(output.lastUpdated))
7104
- : undefined,
7011
+ jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
7012
+ lastUpdated: output.lastUpdated != null ? __expectNonNull(__parseRfc3339DateTime(output.lastUpdated)) : undefined,
7105
7013
  objectCount: __expectLong(output.objectCount),
7106
- objectCountByEncryptionType: output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null
7014
+ objectCountByEncryptionType: output.objectCountByEncryptionType != null
7107
7015
  ? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
7108
7016
  : undefined,
7109
- publicAccess: output.publicAccess !== undefined && output.publicAccess !== null
7017
+ publicAccess: output.publicAccess != null
7110
7018
  ? deserializeAws_restJson1BucketPublicAccess(output.publicAccess, context)
7111
7019
  : undefined,
7112
7020
  region: __expectString(output.region),
7113
- replicationDetails: output.replicationDetails !== undefined && output.replicationDetails !== null
7021
+ replicationDetails: output.replicationDetails != null
7114
7022
  ? deserializeAws_restJson1ReplicationDetails(output.replicationDetails, context)
7115
7023
  : undefined,
7116
- serverSideEncryption: output.serverSideEncryption !== undefined && output.serverSideEncryption !== null
7024
+ serverSideEncryption: output.serverSideEncryption != null
7117
7025
  ? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
7118
7026
  : undefined,
7119
7027
  sharedAccess: __expectString(output.sharedAccess),
7120
7028
  sizeInBytes: __expectLong(output.sizeInBytes),
7121
7029
  sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed),
7122
- tags: output.tags !== undefined && output.tags !== null
7123
- ? deserializeAws_restJson1__listOfKeyValuePair(output.tags, context)
7124
- : undefined,
7125
- unclassifiableObjectCount: output.unclassifiableObjectCount !== undefined && output.unclassifiableObjectCount !== null
7030
+ tags: output.tags != null ? deserializeAws_restJson1__listOfKeyValuePair(output.tags, context) : undefined,
7031
+ unclassifiableObjectCount: output.unclassifiableObjectCount != null
7126
7032
  ? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
7127
7033
  : undefined,
7128
- unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes !== undefined && output.unclassifiableObjectSizeInBytes !== null
7034
+ unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes != null
7129
7035
  ? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectSizeInBytes, context)
7130
7036
  : undefined,
7131
7037
  versioning: __expectBoolean(output.versioning),
@@ -7133,10 +7039,10 @@ var deserializeAws_restJson1BucketMetadata = function (output, context) {
7133
7039
  };
7134
7040
  var deserializeAws_restJson1BucketPermissionConfiguration = function (output, context) {
7135
7041
  return {
7136
- accountLevelPermissions: output.accountLevelPermissions !== undefined && output.accountLevelPermissions !== null
7042
+ accountLevelPermissions: output.accountLevelPermissions != null
7137
7043
  ? deserializeAws_restJson1AccountLevelPermissions(output.accountLevelPermissions, context)
7138
7044
  : undefined,
7139
- bucketLevelPermissions: output.bucketLevelPermissions !== undefined && output.bucketLevelPermissions !== null
7045
+ bucketLevelPermissions: output.bucketLevelPermissions != null
7140
7046
  ? deserializeAws_restJson1BucketLevelPermissions(output.bucketLevelPermissions, context)
7141
7047
  : undefined,
7142
7048
  };
@@ -7150,7 +7056,7 @@ var deserializeAws_restJson1BucketPolicy = function (output, context) {
7150
7056
  var deserializeAws_restJson1BucketPublicAccess = function (output, context) {
7151
7057
  return {
7152
7058
  effectivePermission: __expectString(output.effectivePermission),
7153
- permissionConfiguration: output.permissionConfiguration !== undefined && output.permissionConfiguration !== null
7059
+ permissionConfiguration: output.permissionConfiguration != null
7154
7060
  ? deserializeAws_restJson1BucketPermissionConfiguration(output.permissionConfiguration, context)
7155
7061
  : undefined,
7156
7062
  };
@@ -7186,32 +7092,24 @@ var deserializeAws_restJson1ClassificationDetails = function (output, context) {
7186
7092
  jobArn: __expectString(output.jobArn),
7187
7093
  jobId: __expectString(output.jobId),
7188
7094
  originType: __expectString(output.originType),
7189
- result: output.result !== undefined && output.result !== null
7190
- ? deserializeAws_restJson1ClassificationResult(output.result, context)
7191
- : undefined,
7095
+ result: output.result != null ? deserializeAws_restJson1ClassificationResult(output.result, context) : undefined,
7192
7096
  };
7193
7097
  };
7194
7098
  var deserializeAws_restJson1ClassificationExportConfiguration = function (output, context) {
7195
7099
  return {
7196
- s3Destination: output.s3Destination !== undefined && output.s3Destination !== null
7197
- ? deserializeAws_restJson1S3Destination(output.s3Destination, context)
7198
- : undefined,
7100
+ s3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
7199
7101
  };
7200
7102
  };
7201
7103
  var deserializeAws_restJson1ClassificationResult = function (output, context) {
7202
7104
  return {
7203
7105
  additionalOccurrences: __expectBoolean(output.additionalOccurrences),
7204
- customDataIdentifiers: output.customDataIdentifiers !== undefined && output.customDataIdentifiers !== null
7106
+ customDataIdentifiers: output.customDataIdentifiers != null
7205
7107
  ? deserializeAws_restJson1CustomDataIdentifiers(output.customDataIdentifiers, context)
7206
7108
  : undefined,
7207
7109
  mimeType: __expectString(output.mimeType),
7208
- sensitiveData: output.sensitiveData !== undefined && output.sensitiveData !== null
7209
- ? deserializeAws_restJson1SensitiveData(output.sensitiveData, context)
7210
- : undefined,
7110
+ sensitiveData: output.sensitiveData != null ? deserializeAws_restJson1SensitiveData(output.sensitiveData, context) : undefined,
7211
7111
  sizeClassified: __expectLong(output.sizeClassified),
7212
- status: output.status !== undefined && output.status !== null
7213
- ? deserializeAws_restJson1ClassificationResultStatus(output.status, context)
7214
- : undefined,
7112
+ status: output.status != null ? deserializeAws_restJson1ClassificationResultStatus(output.status, context) : undefined,
7215
7113
  };
7216
7114
  };
7217
7115
  var deserializeAws_restJson1ClassificationResultStatus = function (output, context) {
@@ -7222,17 +7120,15 @@ var deserializeAws_restJson1ClassificationResultStatus = function (output, conte
7222
7120
  };
7223
7121
  var deserializeAws_restJson1CriteriaBlockForJob = function (output, context) {
7224
7122
  return {
7225
- and: output.and !== undefined && output.and !== null
7226
- ? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context)
7227
- : undefined,
7123
+ and: output.and != null ? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context) : undefined,
7228
7124
  };
7229
7125
  };
7230
7126
  var deserializeAws_restJson1CriteriaForJob = function (output, context) {
7231
7127
  return {
7232
- simpleCriterion: output.simpleCriterion !== undefined && output.simpleCriterion !== null
7128
+ simpleCriterion: output.simpleCriterion != null
7233
7129
  ? deserializeAws_restJson1SimpleCriterionForJob(output.simpleCriterion, context)
7234
7130
  : undefined,
7235
- tagCriterion: output.tagCriterion !== undefined && output.tagCriterion !== null
7131
+ tagCriterion: output.tagCriterion != null
7236
7132
  ? deserializeAws_restJson1TagCriterionForJob(output.tagCriterion, context)
7237
7133
  : undefined,
7238
7134
  };
@@ -7249,35 +7145,25 @@ var deserializeAws_restJson1Criterion = function (output, context) {
7249
7145
  };
7250
7146
  var deserializeAws_restJson1CriterionAdditionalProperties = function (output, context) {
7251
7147
  return {
7252
- eq: output.eq !== undefined && output.eq !== null
7253
- ? deserializeAws_restJson1__listOf__string(output.eq, context)
7254
- : undefined,
7255
- eqExactMatch: output.eqExactMatch !== undefined && output.eqExactMatch !== null
7256
- ? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context)
7257
- : undefined,
7148
+ eq: output.eq != null ? deserializeAws_restJson1__listOf__string(output.eq, context) : undefined,
7149
+ eqExactMatch: output.eqExactMatch != null ? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context) : undefined,
7258
7150
  gt: __expectLong(output.gt),
7259
7151
  gte: __expectLong(output.gte),
7260
7152
  lt: __expectLong(output.lt),
7261
7153
  lte: __expectLong(output.lte),
7262
- neq: output.neq !== undefined && output.neq !== null
7263
- ? deserializeAws_restJson1__listOf__string(output.neq, context)
7264
- : undefined,
7154
+ neq: output.neq != null ? deserializeAws_restJson1__listOf__string(output.neq, context) : undefined,
7265
7155
  };
7266
7156
  };
7267
7157
  var deserializeAws_restJson1CustomDataIdentifiers = function (output, context) {
7268
7158
  return {
7269
- detections: output.detections !== undefined && output.detections !== null
7270
- ? deserializeAws_restJson1CustomDetections(output.detections, context)
7271
- : undefined,
7159
+ detections: output.detections != null ? deserializeAws_restJson1CustomDetections(output.detections, context) : undefined,
7272
7160
  totalCount: __expectLong(output.totalCount),
7273
7161
  };
7274
7162
  };
7275
7163
  var deserializeAws_restJson1CustomDataIdentifierSummary = function (output, context) {
7276
7164
  return {
7277
7165
  arn: __expectString(output.arn),
7278
- createdAt: output.createdAt !== undefined && output.createdAt !== null
7279
- ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
7280
- : undefined,
7166
+ createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
7281
7167
  description: __expectString(output.description),
7282
7168
  id: __expectString(output.id),
7283
7169
  name: __expectString(output.name),
@@ -7288,9 +7174,7 @@ var deserializeAws_restJson1CustomDetection = function (output, context) {
7288
7174
  arn: __expectString(output.arn),
7289
7175
  count: __expectLong(output.count),
7290
7176
  name: __expectString(output.name),
7291
- occurrences: output.occurrences !== undefined && output.occurrences !== null
7292
- ? deserializeAws_restJson1Occurrences(output.occurrences, context)
7293
- : undefined,
7177
+ occurrences: output.occurrences != null ? deserializeAws_restJson1Occurrences(output.occurrences, context) : undefined,
7294
7178
  };
7295
7179
  };
7296
7180
  var deserializeAws_restJson1CustomDetections = function (output, context) {
@@ -7310,9 +7194,7 @@ var deserializeAws_restJson1DailySchedule = function (output, context) {
7310
7194
  var deserializeAws_restJson1DefaultDetection = function (output, context) {
7311
7195
  return {
7312
7196
  count: __expectLong(output.count),
7313
- occurrences: output.occurrences !== undefined && output.occurrences !== null
7314
- ? deserializeAws_restJson1Occurrences(output.occurrences, context)
7315
- : undefined,
7197
+ occurrences: output.occurrences != null ? deserializeAws_restJson1Occurrences(output.occurrences, context) : undefined,
7316
7198
  type: __expectString(output.type),
7317
7199
  };
7318
7200
  };
@@ -7338,7 +7220,7 @@ var deserializeAws_restJson1FederatedUser = function (output, context) {
7338
7220
  accountId: __expectString(output.accountId),
7339
7221
  arn: __expectString(output.arn),
7340
7222
  principalId: __expectString(output.principalId),
7341
- sessionContext: output.sessionContext !== undefined && output.sessionContext !== null
7223
+ sessionContext: output.sessionContext != null
7342
7224
  ? deserializeAws_restJson1SessionContext(output.sessionContext, context)
7343
7225
  : undefined,
7344
7226
  };
@@ -7348,61 +7230,47 @@ var deserializeAws_restJson1Finding = function (output, context) {
7348
7230
  accountId: __expectString(output.accountId),
7349
7231
  archived: __expectBoolean(output.archived),
7350
7232
  category: __expectString(output.category),
7351
- classificationDetails: output.classificationDetails !== undefined && output.classificationDetails !== null
7233
+ classificationDetails: output.classificationDetails != null
7352
7234
  ? deserializeAws_restJson1ClassificationDetails(output.classificationDetails, context)
7353
7235
  : undefined,
7354
7236
  count: __expectLong(output.count),
7355
- createdAt: output.createdAt !== undefined && output.createdAt !== null
7356
- ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
7357
- : undefined,
7237
+ createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
7358
7238
  description: __expectString(output.description),
7359
7239
  id: __expectString(output.id),
7360
7240
  partition: __expectString(output.partition),
7361
- policyDetails: output.policyDetails !== undefined && output.policyDetails !== null
7362
- ? deserializeAws_restJson1PolicyDetails(output.policyDetails, context)
7363
- : undefined,
7241
+ policyDetails: output.policyDetails != null ? deserializeAws_restJson1PolicyDetails(output.policyDetails, context) : undefined,
7364
7242
  region: __expectString(output.region),
7365
- resourcesAffected: output.resourcesAffected !== undefined && output.resourcesAffected !== null
7243
+ resourcesAffected: output.resourcesAffected != null
7366
7244
  ? deserializeAws_restJson1ResourcesAffected(output.resourcesAffected, context)
7367
7245
  : undefined,
7368
7246
  sample: __expectBoolean(output.sample),
7369
7247
  schemaVersion: __expectString(output.schemaVersion),
7370
- severity: output.severity !== undefined && output.severity !== null
7371
- ? deserializeAws_restJson1Severity(output.severity, context)
7372
- : undefined,
7248
+ severity: output.severity != null ? deserializeAws_restJson1Severity(output.severity, context) : undefined,
7373
7249
  title: __expectString(output.title),
7374
7250
  type: __expectString(output.type),
7375
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
7376
- ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
7377
- : undefined,
7251
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
7378
7252
  };
7379
7253
  };
7380
7254
  var deserializeAws_restJson1FindingAction = function (output, context) {
7381
7255
  return {
7382
7256
  actionType: __expectString(output.actionType),
7383
- apiCallDetails: output.apiCallDetails !== undefined && output.apiCallDetails !== null
7257
+ apiCallDetails: output.apiCallDetails != null
7384
7258
  ? deserializeAws_restJson1ApiCallDetails(output.apiCallDetails, context)
7385
7259
  : undefined,
7386
7260
  };
7387
7261
  };
7388
7262
  var deserializeAws_restJson1FindingActor = function (output, context) {
7389
7263
  return {
7390
- domainDetails: output.domainDetails !== undefined && output.domainDetails !== null
7391
- ? deserializeAws_restJson1DomainDetails(output.domainDetails, context)
7392
- : undefined,
7393
- ipAddressDetails: output.ipAddressDetails !== undefined && output.ipAddressDetails !== null
7264
+ domainDetails: output.domainDetails != null ? deserializeAws_restJson1DomainDetails(output.domainDetails, context) : undefined,
7265
+ ipAddressDetails: output.ipAddressDetails != null
7394
7266
  ? deserializeAws_restJson1IpAddressDetails(output.ipAddressDetails, context)
7395
7267
  : undefined,
7396
- userIdentity: output.userIdentity !== undefined && output.userIdentity !== null
7397
- ? deserializeAws_restJson1UserIdentity(output.userIdentity, context)
7398
- : undefined,
7268
+ userIdentity: output.userIdentity != null ? deserializeAws_restJson1UserIdentity(output.userIdentity, context) : undefined,
7399
7269
  };
7400
7270
  };
7401
7271
  var deserializeAws_restJson1FindingCriteria = function (output, context) {
7402
7272
  return {
7403
- criterion: output.criterion !== undefined && output.criterion !== null
7404
- ? deserializeAws_restJson1Criterion(output.criterion, context)
7405
- : undefined,
7273
+ criterion: output.criterion != null ? deserializeAws_restJson1Criterion(output.criterion, context) : undefined,
7406
7274
  };
7407
7275
  };
7408
7276
  var deserializeAws_restJson1FindingsFilterListItem = function (output, context) {
@@ -7411,9 +7279,7 @@ var deserializeAws_restJson1FindingsFilterListItem = function (output, context)
7411
7279
  arn: __expectString(output.arn),
7412
7280
  id: __expectString(output.id),
7413
7281
  name: __expectString(output.name),
7414
- tags: output.tags !== undefined && output.tags !== null
7415
- ? deserializeAws_restJson1TagMap(output.tags, context)
7416
- : undefined,
7282
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
7417
7283
  };
7418
7284
  };
7419
7285
  var deserializeAws_restJson1GroupCount = function (output, context) {
@@ -7434,27 +7300,17 @@ var deserializeAws_restJson1Invitation = function (output, context) {
7434
7300
  return {
7435
7301
  accountId: __expectString(output.accountId),
7436
7302
  invitationId: __expectString(output.invitationId),
7437
- invitedAt: output.invitedAt !== undefined && output.invitedAt !== null
7438
- ? __expectNonNull(__parseRfc3339DateTime(output.invitedAt))
7439
- : undefined,
7303
+ invitedAt: output.invitedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.invitedAt)) : undefined,
7440
7304
  relationshipStatus: __expectString(output.relationshipStatus),
7441
7305
  };
7442
7306
  };
7443
7307
  var deserializeAws_restJson1IpAddressDetails = function (output, context) {
7444
7308
  return {
7445
7309
  ipAddressV4: __expectString(output.ipAddressV4),
7446
- ipCity: output.ipCity !== undefined && output.ipCity !== null
7447
- ? deserializeAws_restJson1IpCity(output.ipCity, context)
7448
- : undefined,
7449
- ipCountry: output.ipCountry !== undefined && output.ipCountry !== null
7450
- ? deserializeAws_restJson1IpCountry(output.ipCountry, context)
7451
- : undefined,
7452
- ipGeoLocation: output.ipGeoLocation !== undefined && output.ipGeoLocation !== null
7453
- ? deserializeAws_restJson1IpGeoLocation(output.ipGeoLocation, context)
7454
- : undefined,
7455
- ipOwner: output.ipOwner !== undefined && output.ipOwner !== null
7456
- ? deserializeAws_restJson1IpOwner(output.ipOwner, context)
7457
- : undefined,
7310
+ ipCity: output.ipCity != null ? deserializeAws_restJson1IpCity(output.ipCity, context) : undefined,
7311
+ ipCountry: output.ipCountry != null ? deserializeAws_restJson1IpCountry(output.ipCountry, context) : undefined,
7312
+ ipGeoLocation: output.ipGeoLocation != null ? deserializeAws_restJson1IpGeoLocation(output.ipGeoLocation, context) : undefined,
7313
+ ipOwner: output.ipOwner != null ? deserializeAws_restJson1IpOwner(output.ipOwner, context) : undefined,
7458
7314
  };
7459
7315
  };
7460
7316
  var deserializeAws_restJson1IpCity = function (output, context) {
@@ -7487,60 +7343,50 @@ var deserializeAws_restJson1JobDetails = function (output, context) {
7487
7343
  isDefinedInJob: __expectString(output.isDefinedInJob),
7488
7344
  isMonitoredByJob: __expectString(output.isMonitoredByJob),
7489
7345
  lastJobId: __expectString(output.lastJobId),
7490
- lastJobRunTime: output.lastJobRunTime !== undefined && output.lastJobRunTime !== null
7491
- ? __expectNonNull(__parseRfc3339DateTime(output.lastJobRunTime))
7492
- : undefined,
7346
+ lastJobRunTime: output.lastJobRunTime != null ? __expectNonNull(__parseRfc3339DateTime(output.lastJobRunTime)) : undefined,
7493
7347
  };
7494
7348
  };
7495
7349
  var deserializeAws_restJson1JobScheduleFrequency = function (output, context) {
7496
7350
  return {
7497
- dailySchedule: output.dailySchedule !== undefined && output.dailySchedule !== null
7498
- ? deserializeAws_restJson1DailySchedule(output.dailySchedule, context)
7499
- : undefined,
7500
- monthlySchedule: output.monthlySchedule !== undefined && output.monthlySchedule !== null
7351
+ dailySchedule: output.dailySchedule != null ? deserializeAws_restJson1DailySchedule(output.dailySchedule, context) : undefined,
7352
+ monthlySchedule: output.monthlySchedule != null
7501
7353
  ? deserializeAws_restJson1MonthlySchedule(output.monthlySchedule, context)
7502
7354
  : undefined,
7503
- weeklySchedule: output.weeklySchedule !== undefined && output.weeklySchedule !== null
7355
+ weeklySchedule: output.weeklySchedule != null
7504
7356
  ? deserializeAws_restJson1WeeklySchedule(output.weeklySchedule, context)
7505
7357
  : undefined,
7506
7358
  };
7507
7359
  };
7508
7360
  var deserializeAws_restJson1JobScopeTerm = function (output, context) {
7509
7361
  return {
7510
- simpleScopeTerm: output.simpleScopeTerm !== undefined && output.simpleScopeTerm !== null
7362
+ simpleScopeTerm: output.simpleScopeTerm != null
7511
7363
  ? deserializeAws_restJson1SimpleScopeTerm(output.simpleScopeTerm, context)
7512
7364
  : undefined,
7513
- tagScopeTerm: output.tagScopeTerm !== undefined && output.tagScopeTerm !== null
7514
- ? deserializeAws_restJson1TagScopeTerm(output.tagScopeTerm, context)
7515
- : undefined,
7365
+ tagScopeTerm: output.tagScopeTerm != null ? deserializeAws_restJson1TagScopeTerm(output.tagScopeTerm, context) : undefined,
7516
7366
  };
7517
7367
  };
7518
7368
  var deserializeAws_restJson1JobScopingBlock = function (output, context) {
7519
7369
  return {
7520
- and: output.and !== undefined && output.and !== null
7521
- ? deserializeAws_restJson1__listOfJobScopeTerm(output.and, context)
7522
- : undefined,
7370
+ and: output.and != null ? deserializeAws_restJson1__listOfJobScopeTerm(output.and, context) : undefined,
7523
7371
  };
7524
7372
  };
7525
7373
  var deserializeAws_restJson1JobSummary = function (output, context) {
7526
7374
  return {
7527
- bucketCriteria: output.bucketCriteria !== undefined && output.bucketCriteria !== null
7375
+ bucketCriteria: output.bucketCriteria != null
7528
7376
  ? deserializeAws_restJson1S3BucketCriteriaForJob(output.bucketCriteria, context)
7529
7377
  : undefined,
7530
- bucketDefinitions: output.bucketDefinitions !== undefined && output.bucketDefinitions !== null
7378
+ bucketDefinitions: output.bucketDefinitions != null
7531
7379
  ? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
7532
7380
  : undefined,
7533
- createdAt: output.createdAt !== undefined && output.createdAt !== null
7534
- ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
7535
- : undefined,
7381
+ createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
7536
7382
  jobId: __expectString(output.jobId),
7537
7383
  jobStatus: __expectString(output.jobStatus),
7538
7384
  jobType: __expectString(output.jobType),
7539
- lastRunErrorStatus: output.lastRunErrorStatus !== undefined && output.lastRunErrorStatus !== null
7385
+ lastRunErrorStatus: output.lastRunErrorStatus != null
7540
7386
  ? deserializeAws_restJson1LastRunErrorStatus(output.lastRunErrorStatus, context)
7541
7387
  : undefined,
7542
7388
  name: __expectString(output.name),
7543
- userPausedDetails: output.userPausedDetails !== undefined && output.userPausedDetails !== null
7389
+ userPausedDetails: output.userPausedDetails != null
7544
7390
  ? deserializeAws_restJson1UserPausedDetails(output.userPausedDetails, context)
7545
7391
  : undefined,
7546
7392
  };
@@ -7581,26 +7427,24 @@ var deserializeAws_restJson1MatchingBucket = function (output, context) {
7581
7427
  classifiableSizeInBytes: __expectLong(output.classifiableSizeInBytes),
7582
7428
  errorCode: __expectString(output.errorCode),
7583
7429
  errorMessage: __expectString(output.errorMessage),
7584
- jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
7585
- ? deserializeAws_restJson1JobDetails(output.jobDetails, context)
7586
- : undefined,
7430
+ jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
7587
7431
  objectCount: __expectLong(output.objectCount),
7588
- objectCountByEncryptionType: output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null
7432
+ objectCountByEncryptionType: output.objectCountByEncryptionType != null
7589
7433
  ? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
7590
7434
  : undefined,
7591
7435
  sizeInBytes: __expectLong(output.sizeInBytes),
7592
7436
  sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed),
7593
- unclassifiableObjectCount: output.unclassifiableObjectCount !== undefined && output.unclassifiableObjectCount !== null
7437
+ unclassifiableObjectCount: output.unclassifiableObjectCount != null
7594
7438
  ? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
7595
7439
  : undefined,
7596
- unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes !== undefined && output.unclassifiableObjectSizeInBytes !== null
7440
+ unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes != null
7597
7441
  ? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectSizeInBytes, context)
7598
7442
  : undefined,
7599
7443
  };
7600
7444
  };
7601
7445
  var deserializeAws_restJson1MatchingResource = function (output, context) {
7602
7446
  return {
7603
- matchingBucket: output.matchingBucket !== undefined && output.matchingBucket !== null
7447
+ matchingBucket: output.matchingBucket != null
7604
7448
  ? deserializeAws_restJson1MatchingBucket(output.matchingBucket, context)
7605
7449
  : undefined,
7606
7450
  };
@@ -7611,17 +7455,11 @@ var deserializeAws_restJson1Member = function (output, context) {
7611
7455
  administratorAccountId: __expectString(output.administratorAccountId),
7612
7456
  arn: __expectString(output.arn),
7613
7457
  email: __expectString(output.email),
7614
- invitedAt: output.invitedAt !== undefined && output.invitedAt !== null
7615
- ? __expectNonNull(__parseRfc3339DateTime(output.invitedAt))
7616
- : undefined,
7458
+ invitedAt: output.invitedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.invitedAt)) : undefined,
7617
7459
  masterAccountId: __expectString(output.masterAccountId),
7618
7460
  relationshipStatus: __expectString(output.relationshipStatus),
7619
- tags: output.tags !== undefined && output.tags !== null
7620
- ? deserializeAws_restJson1TagMap(output.tags, context)
7621
- : undefined,
7622
- updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
7623
- ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
7624
- : undefined,
7461
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
7462
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
7625
7463
  };
7626
7464
  };
7627
7465
  var deserializeAws_restJson1MonthlySchedule = function (output, context) {
@@ -7647,31 +7485,17 @@ var deserializeAws_restJson1ObjectLevelStatistics = function (output, context) {
7647
7485
  };
7648
7486
  var deserializeAws_restJson1Occurrences = function (output, context) {
7649
7487
  return {
7650
- cells: output.cells !== undefined && output.cells !== null
7651
- ? deserializeAws_restJson1Cells(output.cells, context)
7652
- : undefined,
7653
- lineRanges: output.lineRanges !== undefined && output.lineRanges !== null
7654
- ? deserializeAws_restJson1Ranges(output.lineRanges, context)
7655
- : undefined,
7656
- offsetRanges: output.offsetRanges !== undefined && output.offsetRanges !== null
7657
- ? deserializeAws_restJson1Ranges(output.offsetRanges, context)
7658
- : undefined,
7659
- pages: output.pages !== undefined && output.pages !== null
7660
- ? deserializeAws_restJson1Pages(output.pages, context)
7661
- : undefined,
7662
- records: output.records !== undefined && output.records !== null
7663
- ? deserializeAws_restJson1Records(output.records, context)
7664
- : undefined,
7488
+ cells: output.cells != null ? deserializeAws_restJson1Cells(output.cells, context) : undefined,
7489
+ lineRanges: output.lineRanges != null ? deserializeAws_restJson1Ranges(output.lineRanges, context) : undefined,
7490
+ offsetRanges: output.offsetRanges != null ? deserializeAws_restJson1Ranges(output.offsetRanges, context) : undefined,
7491
+ pages: output.pages != null ? deserializeAws_restJson1Pages(output.pages, context) : undefined,
7492
+ records: output.records != null ? deserializeAws_restJson1Records(output.records, context) : undefined,
7665
7493
  };
7666
7494
  };
7667
7495
  var deserializeAws_restJson1Page = function (output, context) {
7668
7496
  return {
7669
- lineRange: output.lineRange !== undefined && output.lineRange !== null
7670
- ? deserializeAws_restJson1Range(output.lineRange, context)
7671
- : undefined,
7672
- offsetRange: output.offsetRange !== undefined && output.offsetRange !== null
7673
- ? deserializeAws_restJson1Range(output.offsetRange, context)
7674
- : undefined,
7497
+ lineRange: output.lineRange != null ? deserializeAws_restJson1Range(output.lineRange, context) : undefined,
7498
+ offsetRange: output.offsetRange != null ? deserializeAws_restJson1Range(output.offsetRange, context) : undefined,
7675
7499
  pageNumber: __expectLong(output.pageNumber),
7676
7500
  };
7677
7501
  };
@@ -7688,12 +7512,8 @@ var deserializeAws_restJson1Pages = function (output, context) {
7688
7512
  };
7689
7513
  var deserializeAws_restJson1PolicyDetails = function (output, context) {
7690
7514
  return {
7691
- action: output.action !== undefined && output.action !== null
7692
- ? deserializeAws_restJson1FindingAction(output.action, context)
7693
- : undefined,
7694
- actor: output.actor !== undefined && output.actor !== null
7695
- ? deserializeAws_restJson1FindingActor(output.actor, context)
7696
- : undefined,
7515
+ action: output.action != null ? deserializeAws_restJson1FindingAction(output.action, context) : undefined,
7516
+ actor: output.actor != null ? deserializeAws_restJson1FindingActor(output.actor, context) : undefined,
7697
7517
  };
7698
7518
  };
7699
7519
  var deserializeAws_restJson1Range = function (output, context) {
@@ -7735,59 +7555,43 @@ var deserializeAws_restJson1ReplicationDetails = function (output, context) {
7735
7555
  return {
7736
7556
  replicated: __expectBoolean(output.replicated),
7737
7557
  replicatedExternally: __expectBoolean(output.replicatedExternally),
7738
- replicationAccounts: output.replicationAccounts !== undefined && output.replicationAccounts !== null
7558
+ replicationAccounts: output.replicationAccounts != null
7739
7559
  ? deserializeAws_restJson1__listOf__string(output.replicationAccounts, context)
7740
7560
  : undefined,
7741
7561
  };
7742
7562
  };
7743
7563
  var deserializeAws_restJson1ResourcesAffected = function (output, context) {
7744
7564
  return {
7745
- s3Bucket: output.s3Bucket !== undefined && output.s3Bucket !== null
7746
- ? deserializeAws_restJson1S3Bucket(output.s3Bucket, context)
7747
- : undefined,
7748
- s3Object: output.s3Object !== undefined && output.s3Object !== null
7749
- ? deserializeAws_restJson1S3Object(output.s3Object, context)
7750
- : undefined,
7565
+ s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3Bucket(output.s3Bucket, context) : undefined,
7566
+ s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
7751
7567
  };
7752
7568
  };
7753
7569
  var deserializeAws_restJson1S3Bucket = function (output, context) {
7754
7570
  return {
7755
7571
  allowsUnencryptedObjectUploads: __expectString(output.allowsUnencryptedObjectUploads),
7756
7572
  arn: __expectString(output.arn),
7757
- createdAt: output.createdAt !== undefined && output.createdAt !== null
7758
- ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
7759
- : undefined,
7760
- defaultServerSideEncryption: output.defaultServerSideEncryption !== undefined && output.defaultServerSideEncryption !== null
7573
+ createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
7574
+ defaultServerSideEncryption: output.defaultServerSideEncryption != null
7761
7575
  ? deserializeAws_restJson1ServerSideEncryption(output.defaultServerSideEncryption, context)
7762
7576
  : undefined,
7763
7577
  name: __expectString(output.name),
7764
- owner: output.owner !== undefined && output.owner !== null
7765
- ? deserializeAws_restJson1S3BucketOwner(output.owner, context)
7766
- : undefined,
7767
- publicAccess: output.publicAccess !== undefined && output.publicAccess !== null
7578
+ owner: output.owner != null ? deserializeAws_restJson1S3BucketOwner(output.owner, context) : undefined,
7579
+ publicAccess: output.publicAccess != null
7768
7580
  ? deserializeAws_restJson1BucketPublicAccess(output.publicAccess, context)
7769
7581
  : undefined,
7770
- tags: output.tags !== undefined && output.tags !== null
7771
- ? deserializeAws_restJson1KeyValuePairList(output.tags, context)
7772
- : undefined,
7582
+ tags: output.tags != null ? deserializeAws_restJson1KeyValuePairList(output.tags, context) : undefined,
7773
7583
  };
7774
7584
  };
7775
7585
  var deserializeAws_restJson1S3BucketCriteriaForJob = function (output, context) {
7776
7586
  return {
7777
- excludes: output.excludes !== undefined && output.excludes !== null
7778
- ? deserializeAws_restJson1CriteriaBlockForJob(output.excludes, context)
7779
- : undefined,
7780
- includes: output.includes !== undefined && output.includes !== null
7781
- ? deserializeAws_restJson1CriteriaBlockForJob(output.includes, context)
7782
- : undefined,
7587
+ excludes: output.excludes != null ? deserializeAws_restJson1CriteriaBlockForJob(output.excludes, context) : undefined,
7588
+ includes: output.includes != null ? deserializeAws_restJson1CriteriaBlockForJob(output.includes, context) : undefined,
7783
7589
  };
7784
7590
  };
7785
7591
  var deserializeAws_restJson1S3BucketDefinitionForJob = function (output, context) {
7786
7592
  return {
7787
7593
  accountId: __expectString(output.accountId),
7788
- buckets: output.buckets !== undefined && output.buckets !== null
7789
- ? deserializeAws_restJson1__listOf__string(output.buckets, context)
7790
- : undefined,
7594
+ buckets: output.buckets != null ? deserializeAws_restJson1__listOf__string(output.buckets, context) : undefined,
7791
7595
  };
7792
7596
  };
7793
7597
  var deserializeAws_restJson1S3BucketOwner = function (output, context) {
@@ -7805,15 +7609,13 @@ var deserializeAws_restJson1S3Destination = function (output, context) {
7805
7609
  };
7806
7610
  var deserializeAws_restJson1S3JobDefinition = function (output, context) {
7807
7611
  return {
7808
- bucketCriteria: output.bucketCriteria !== undefined && output.bucketCriteria !== null
7612
+ bucketCriteria: output.bucketCriteria != null
7809
7613
  ? deserializeAws_restJson1S3BucketCriteriaForJob(output.bucketCriteria, context)
7810
7614
  : undefined,
7811
- bucketDefinitions: output.bucketDefinitions !== undefined && output.bucketDefinitions !== null
7615
+ bucketDefinitions: output.bucketDefinitions != null
7812
7616
  ? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
7813
7617
  : undefined,
7814
- scoping: output.scoping !== undefined && output.scoping !== null
7815
- ? deserializeAws_restJson1Scoping(output.scoping, context)
7816
- : undefined,
7618
+ scoping: output.scoping != null ? deserializeAws_restJson1Scoping(output.scoping, context) : undefined,
7817
7619
  };
7818
7620
  };
7819
7621
  var deserializeAws_restJson1S3Object = function (output, context) {
@@ -7822,30 +7624,22 @@ var deserializeAws_restJson1S3Object = function (output, context) {
7822
7624
  eTag: __expectString(output.eTag),
7823
7625
  extension: __expectString(output.extension),
7824
7626
  key: __expectString(output.key),
7825
- lastModified: output.lastModified !== undefined && output.lastModified !== null
7826
- ? __expectNonNull(__parseRfc3339DateTime(output.lastModified))
7827
- : undefined,
7627
+ lastModified: output.lastModified != null ? __expectNonNull(__parseRfc3339DateTime(output.lastModified)) : undefined,
7828
7628
  path: __expectString(output.path),
7829
7629
  publicAccess: __expectBoolean(output.publicAccess),
7830
- serverSideEncryption: output.serverSideEncryption !== undefined && output.serverSideEncryption !== null
7630
+ serverSideEncryption: output.serverSideEncryption != null
7831
7631
  ? deserializeAws_restJson1ServerSideEncryption(output.serverSideEncryption, context)
7832
7632
  : undefined,
7833
7633
  size: __expectLong(output.size),
7834
7634
  storageClass: __expectString(output.storageClass),
7835
- tags: output.tags !== undefined && output.tags !== null
7836
- ? deserializeAws_restJson1KeyValuePairList(output.tags, context)
7837
- : undefined,
7635
+ tags: output.tags != null ? deserializeAws_restJson1KeyValuePairList(output.tags, context) : undefined,
7838
7636
  versionId: __expectString(output.versionId),
7839
7637
  };
7840
7638
  };
7841
7639
  var deserializeAws_restJson1Scoping = function (output, context) {
7842
7640
  return {
7843
- excludes: output.excludes !== undefined && output.excludes !== null
7844
- ? deserializeAws_restJson1JobScopingBlock(output.excludes, context)
7845
- : undefined,
7846
- includes: output.includes !== undefined && output.includes !== null
7847
- ? deserializeAws_restJson1JobScopingBlock(output.includes, context)
7848
- : undefined,
7641
+ excludes: output.excludes != null ? deserializeAws_restJson1JobScopingBlock(output.excludes, context) : undefined,
7642
+ includes: output.includes != null ? deserializeAws_restJson1JobScopingBlock(output.includes, context) : undefined,
7849
7643
  };
7850
7644
  };
7851
7645
  var deserializeAws_restJson1SecurityHubConfiguration = function (output, context) {
@@ -7868,9 +7662,7 @@ var deserializeAws_restJson1SensitiveData = function (output, context) {
7868
7662
  var deserializeAws_restJson1SensitiveDataItem = function (output, context) {
7869
7663
  return {
7870
7664
  category: __expectString(output.category),
7871
- detections: output.detections !== undefined && output.detections !== null
7872
- ? deserializeAws_restJson1DefaultDetections(output.detections, context)
7873
- : undefined,
7665
+ detections: output.detections != null ? deserializeAws_restJson1DefaultDetections(output.detections, context) : undefined,
7874
7666
  totalCount: __expectLong(output.totalCount),
7875
7667
  };
7876
7668
  };
@@ -7889,19 +7681,15 @@ var deserializeAws_restJson1ServiceLimit = function (output, context) {
7889
7681
  };
7890
7682
  var deserializeAws_restJson1SessionContext = function (output, context) {
7891
7683
  return {
7892
- attributes: output.attributes !== undefined && output.attributes !== null
7684
+ attributes: output.attributes != null
7893
7685
  ? deserializeAws_restJson1SessionContextAttributes(output.attributes, context)
7894
7686
  : undefined,
7895
- sessionIssuer: output.sessionIssuer !== undefined && output.sessionIssuer !== null
7896
- ? deserializeAws_restJson1SessionIssuer(output.sessionIssuer, context)
7897
- : undefined,
7687
+ sessionIssuer: output.sessionIssuer != null ? deserializeAws_restJson1SessionIssuer(output.sessionIssuer, context) : undefined,
7898
7688
  };
7899
7689
  };
7900
7690
  var deserializeAws_restJson1SessionContextAttributes = function (output, context) {
7901
7691
  return {
7902
- creationDate: output.creationDate !== undefined && output.creationDate !== null
7903
- ? __expectNonNull(__parseRfc3339DateTime(output.creationDate))
7904
- : undefined,
7692
+ creationDate: output.creationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.creationDate)) : undefined,
7905
7693
  mfaAuthenticated: __expectBoolean(output.mfaAuthenticated),
7906
7694
  };
7907
7695
  };
@@ -7941,18 +7729,14 @@ var deserializeAws_restJson1SimpleCriterionForJob = function (output, context) {
7941
7729
  return {
7942
7730
  comparator: __expectString(output.comparator),
7943
7731
  key: __expectString(output.key),
7944
- values: output.values !== undefined && output.values !== null
7945
- ? deserializeAws_restJson1__listOf__string(output.values, context)
7946
- : undefined,
7732
+ values: output.values != null ? deserializeAws_restJson1__listOf__string(output.values, context) : undefined,
7947
7733
  };
7948
7734
  };
7949
7735
  var deserializeAws_restJson1SimpleScopeTerm = function (output, context) {
7950
7736
  return {
7951
7737
  comparator: __expectString(output.comparator),
7952
7738
  key: __expectString(output.key),
7953
- values: output.values !== undefined && output.values !== null
7954
- ? deserializeAws_restJson1__listOf__string(output.values, context)
7955
- : undefined,
7739
+ values: output.values != null ? deserializeAws_restJson1__listOf__string(output.values, context) : undefined,
7956
7740
  };
7957
7741
  };
7958
7742
  var deserializeAws_restJson1Statistics = function (output, context) {
@@ -7964,7 +7748,7 @@ var deserializeAws_restJson1Statistics = function (output, context) {
7964
7748
  var deserializeAws_restJson1TagCriterionForJob = function (output, context) {
7965
7749
  return {
7966
7750
  comparator: __expectString(output.comparator),
7967
- tagValues: output.tagValues !== undefined && output.tagValues !== null
7751
+ tagValues: output.tagValues != null
7968
7752
  ? deserializeAws_restJson1__listOfTagCriterionPairForJob(output.tagValues, context)
7969
7753
  : undefined,
7970
7754
  };
@@ -7989,9 +7773,7 @@ var deserializeAws_restJson1TagScopeTerm = function (output, context) {
7989
7773
  return {
7990
7774
  comparator: __expectString(output.comparator),
7991
7775
  key: __expectString(output.key),
7992
- tagValues: output.tagValues !== undefined && output.tagValues !== null
7993
- ? deserializeAws_restJson1__listOfTagValuePair(output.tagValues, context)
7994
- : undefined,
7776
+ tagValues: output.tagValues != null ? deserializeAws_restJson1__listOfTagValuePair(output.tagValues, context) : undefined,
7995
7777
  target: __expectString(output.target),
7996
7778
  };
7997
7779
  };
@@ -8012,21 +7794,17 @@ var deserializeAws_restJson1UsageByAccount = function (output, context) {
8012
7794
  return {
8013
7795
  currency: __expectString(output.currency),
8014
7796
  estimatedCost: __expectString(output.estimatedCost),
8015
- serviceLimit: output.serviceLimit !== undefined && output.serviceLimit !== null
8016
- ? deserializeAws_restJson1ServiceLimit(output.serviceLimit, context)
8017
- : undefined,
7797
+ serviceLimit: output.serviceLimit != null ? deserializeAws_restJson1ServiceLimit(output.serviceLimit, context) : undefined,
8018
7798
  type: __expectString(output.type),
8019
7799
  };
8020
7800
  };
8021
7801
  var deserializeAws_restJson1UsageRecord = function (output, context) {
8022
7802
  return {
8023
7803
  accountId: __expectString(output.accountId),
8024
- freeTrialStartDate: output.freeTrialStartDate !== undefined && output.freeTrialStartDate !== null
7804
+ freeTrialStartDate: output.freeTrialStartDate != null
8025
7805
  ? __expectNonNull(__parseRfc3339DateTime(output.freeTrialStartDate))
8026
7806
  : undefined,
8027
- usage: output.usage !== undefined && output.usage !== null
8028
- ? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context)
8029
- : undefined,
7807
+ usage: output.usage != null ? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context) : undefined,
8030
7808
  };
8031
7809
  };
8032
7810
  var deserializeAws_restJson1UsageTotal = function (output, context) {
@@ -8038,24 +7816,12 @@ var deserializeAws_restJson1UsageTotal = function (output, context) {
8038
7816
  };
8039
7817
  var deserializeAws_restJson1UserIdentity = function (output, context) {
8040
7818
  return {
8041
- assumedRole: output.assumedRole !== undefined && output.assumedRole !== null
8042
- ? deserializeAws_restJson1AssumedRole(output.assumedRole, context)
8043
- : undefined,
8044
- awsAccount: output.awsAccount !== undefined && output.awsAccount !== null
8045
- ? deserializeAws_restJson1AwsAccount(output.awsAccount, context)
8046
- : undefined,
8047
- awsService: output.awsService !== undefined && output.awsService !== null
8048
- ? deserializeAws_restJson1AwsService(output.awsService, context)
8049
- : undefined,
8050
- federatedUser: output.federatedUser !== undefined && output.federatedUser !== null
8051
- ? deserializeAws_restJson1FederatedUser(output.federatedUser, context)
8052
- : undefined,
8053
- iamUser: output.iamUser !== undefined && output.iamUser !== null
8054
- ? deserializeAws_restJson1IamUser(output.iamUser, context)
8055
- : undefined,
8056
- root: output.root !== undefined && output.root !== null
8057
- ? deserializeAws_restJson1UserIdentityRoot(output.root, context)
8058
- : undefined,
7819
+ assumedRole: output.assumedRole != null ? deserializeAws_restJson1AssumedRole(output.assumedRole, context) : undefined,
7820
+ awsAccount: output.awsAccount != null ? deserializeAws_restJson1AwsAccount(output.awsAccount, context) : undefined,
7821
+ awsService: output.awsService != null ? deserializeAws_restJson1AwsService(output.awsService, context) : undefined,
7822
+ federatedUser: output.federatedUser != null ? deserializeAws_restJson1FederatedUser(output.federatedUser, context) : undefined,
7823
+ iamUser: output.iamUser != null ? deserializeAws_restJson1IamUser(output.iamUser, context) : undefined,
7824
+ root: output.root != null ? deserializeAws_restJson1UserIdentityRoot(output.root, context) : undefined,
8059
7825
  type: __expectString(output.type),
8060
7826
  };
8061
7827
  };
@@ -8068,13 +7834,9 @@ var deserializeAws_restJson1UserIdentityRoot = function (output, context) {
8068
7834
  };
8069
7835
  var deserializeAws_restJson1UserPausedDetails = function (output, context) {
8070
7836
  return {
8071
- jobExpiresAt: output.jobExpiresAt !== undefined && output.jobExpiresAt !== null
8072
- ? __expectNonNull(__parseRfc3339DateTime(output.jobExpiresAt))
8073
- : undefined,
7837
+ jobExpiresAt: output.jobExpiresAt != null ? __expectNonNull(__parseRfc3339DateTime(output.jobExpiresAt)) : undefined,
8074
7838
  jobImminentExpirationHealthEventArn: __expectString(output.jobImminentExpirationHealthEventArn),
8075
- jobPausedAt: output.jobPausedAt !== undefined && output.jobPausedAt !== null
8076
- ? __expectNonNull(__parseRfc3339DateTime(output.jobPausedAt))
8077
- : undefined,
7839
+ jobPausedAt: output.jobPausedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.jobPausedAt)) : undefined,
8078
7840
  };
8079
7841
  };
8080
7842
  var deserializeAws_restJson1WeeklySchedule = function (output, context) {
@@ -8120,6 +7882,9 @@ var loadRestJsonErrorCode = function (output, data) {
8120
7882
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
8121
7883
  var sanitizeErrorCode = function (rawValue) {
8122
7884
  var cleanValue = rawValue;
7885
+ if (typeof cleanValue === "number") {
7886
+ cleanValue = cleanValue.toString();
7887
+ }
8123
7888
  if (cleanValue.indexOf(":") >= 0) {
8124
7889
  cleanValue = cleanValue.split(":")[0];
8125
7890
  }