@aws-sdk/client-macie2 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +594 -776
- package/dist-es/protocols/Aws_restJson1.js +509 -691
- package/package.json +26 -26
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
76
|
-
input.managedDataIdentifierSelector !== null && {
|
|
71
|
+
})), (input.managedDataIdentifierSelector != null && {
|
|
77
72
|
managedDataIdentifierSelector: input.managedDataIdentifierSelector,
|
|
78
|
-
})), (input.name
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 !==
|
|
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
|
|
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
|
|
756
|
-
|
|
757
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1078
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
@@ -1590,7 +1552,7 @@ export var deserializeAws_restJson1AcceptInvitationCommand = function (output, c
|
|
|
1590
1552
|
});
|
|
1591
1553
|
}); };
|
|
1592
1554
|
var deserializeAws_restJson1AcceptInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1593
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1555
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1594
1556
|
var _c;
|
|
1595
1557
|
return __generator(this, function (_d) {
|
|
1596
1558
|
switch (_d.label) {
|
|
@@ -1600,7 +1562,6 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
1600
1562
|
return [4, parseBody(output.body, context)];
|
|
1601
1563
|
case 1:
|
|
1602
1564
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1603
|
-
errorCode = "UnknownError";
|
|
1604
1565
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1605
1566
|
_b = errorCode;
|
|
1606
1567
|
switch (_b) {
|
|
@@ -1636,10 +1597,12 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
1636
1597
|
case 15: throw _d.sent();
|
|
1637
1598
|
case 16:
|
|
1638
1599
|
parsedBody = parsedOutput.body;
|
|
1600
|
+
$metadata = deserializeMetadata(output);
|
|
1601
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1639
1602
|
response = new __BaseException({
|
|
1640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1641
1604
|
$fault: "client",
|
|
1642
|
-
$metadata:
|
|
1605
|
+
$metadata: $metadata,
|
|
1643
1606
|
});
|
|
1644
1607
|
throw __decorateServiceException(response, parsedBody);
|
|
1645
1608
|
}
|
|
@@ -1674,7 +1637,7 @@ export var deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = functi
|
|
|
1674
1637
|
});
|
|
1675
1638
|
}); };
|
|
1676
1639
|
var deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1677
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1640
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1678
1641
|
var _c;
|
|
1679
1642
|
return __generator(this, function (_d) {
|
|
1680
1643
|
switch (_d.label) {
|
|
@@ -1684,7 +1647,6 @@ var deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = function
|
|
|
1684
1647
|
return [4, parseBody(output.body, context)];
|
|
1685
1648
|
case 1:
|
|
1686
1649
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1687
|
-
errorCode = "UnknownError";
|
|
1688
1650
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
1651
|
_b = errorCode;
|
|
1690
1652
|
switch (_b) {
|
|
@@ -1720,10 +1682,12 @@ var deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = function
|
|
|
1720
1682
|
case 15: throw _d.sent();
|
|
1721
1683
|
case 16:
|
|
1722
1684
|
parsedBody = parsedOutput.body;
|
|
1685
|
+
$metadata = deserializeMetadata(output);
|
|
1686
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1723
1687
|
response = new __BaseException({
|
|
1724
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1688
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1725
1689
|
$fault: "client",
|
|
1726
|
-
$metadata:
|
|
1690
|
+
$metadata: $metadata,
|
|
1727
1691
|
});
|
|
1728
1692
|
throw __decorateServiceException(response, parsedBody);
|
|
1729
1693
|
}
|
|
@@ -1758,7 +1722,7 @@ export var deserializeAws_restJson1CreateClassificationJobCommand = function (ou
|
|
|
1758
1722
|
});
|
|
1759
1723
|
}); };
|
|
1760
1724
|
var deserializeAws_restJson1CreateClassificationJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1761
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1725
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1762
1726
|
var _c;
|
|
1763
1727
|
return __generator(this, function (_d) {
|
|
1764
1728
|
switch (_d.label) {
|
|
@@ -1768,7 +1732,6 @@ var deserializeAws_restJson1CreateClassificationJobCommandError = function (outp
|
|
|
1768
1732
|
return [4, parseBody(output.body, context)];
|
|
1769
1733
|
case 1:
|
|
1770
1734
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1771
|
-
errorCode = "UnknownError";
|
|
1772
1735
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
1736
|
_b = errorCode;
|
|
1774
1737
|
switch (_b) {
|
|
@@ -1804,10 +1767,12 @@ var deserializeAws_restJson1CreateClassificationJobCommandError = function (outp
|
|
|
1804
1767
|
case 15: throw _d.sent();
|
|
1805
1768
|
case 16:
|
|
1806
1769
|
parsedBody = parsedOutput.body;
|
|
1770
|
+
$metadata = deserializeMetadata(output);
|
|
1771
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1807
1772
|
response = new __BaseException({
|
|
1808
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1773
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1809
1774
|
$fault: "client",
|
|
1810
|
-
$metadata:
|
|
1775
|
+
$metadata: $metadata,
|
|
1811
1776
|
});
|
|
1812
1777
|
throw __decorateServiceException(response, parsedBody);
|
|
1813
1778
|
}
|
|
@@ -1838,7 +1803,7 @@ export var deserializeAws_restJson1CreateCustomDataIdentifierCommand = function
|
|
|
1838
1803
|
});
|
|
1839
1804
|
}); };
|
|
1840
1805
|
var deserializeAws_restJson1CreateCustomDataIdentifierCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1841
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1806
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1842
1807
|
var _c;
|
|
1843
1808
|
return __generator(this, function (_d) {
|
|
1844
1809
|
switch (_d.label) {
|
|
@@ -1848,7 +1813,6 @@ var deserializeAws_restJson1CreateCustomDataIdentifierCommandError = function (o
|
|
|
1848
1813
|
return [4, parseBody(output.body, context)];
|
|
1849
1814
|
case 1:
|
|
1850
1815
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1851
|
-
errorCode = "UnknownError";
|
|
1852
1816
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
1817
|
_b = errorCode;
|
|
1854
1818
|
switch (_b) {
|
|
@@ -1884,10 +1848,12 @@ var deserializeAws_restJson1CreateCustomDataIdentifierCommandError = function (o
|
|
|
1884
1848
|
case 15: throw _d.sent();
|
|
1885
1849
|
case 16:
|
|
1886
1850
|
parsedBody = parsedOutput.body;
|
|
1851
|
+
$metadata = deserializeMetadata(output);
|
|
1852
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1887
1853
|
response = new __BaseException({
|
|
1888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1854
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1889
1855
|
$fault: "client",
|
|
1890
|
-
$metadata:
|
|
1856
|
+
$metadata: $metadata,
|
|
1891
1857
|
});
|
|
1892
1858
|
throw __decorateServiceException(response, parsedBody);
|
|
1893
1859
|
}
|
|
@@ -1922,7 +1888,7 @@ export var deserializeAws_restJson1CreateFindingsFilterCommand = function (outpu
|
|
|
1922
1888
|
});
|
|
1923
1889
|
}); };
|
|
1924
1890
|
var deserializeAws_restJson1CreateFindingsFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1925
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1891
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1926
1892
|
var _c;
|
|
1927
1893
|
return __generator(this, function (_d) {
|
|
1928
1894
|
switch (_d.label) {
|
|
@@ -1932,7 +1898,6 @@ var deserializeAws_restJson1CreateFindingsFilterCommandError = function (output,
|
|
|
1932
1898
|
return [4, parseBody(output.body, context)];
|
|
1933
1899
|
case 1:
|
|
1934
1900
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1935
|
-
errorCode = "UnknownError";
|
|
1936
1901
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
1902
|
_b = errorCode;
|
|
1938
1903
|
switch (_b) {
|
|
@@ -1968,10 +1933,12 @@ var deserializeAws_restJson1CreateFindingsFilterCommandError = function (output,
|
|
|
1968
1933
|
case 15: throw _d.sent();
|
|
1969
1934
|
case 16:
|
|
1970
1935
|
parsedBody = parsedOutput.body;
|
|
1936
|
+
$metadata = deserializeMetadata(output);
|
|
1937
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1971
1938
|
response = new __BaseException({
|
|
1972
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1973
1940
|
$fault: "client",
|
|
1974
|
-
$metadata:
|
|
1941
|
+
$metadata: $metadata,
|
|
1975
1942
|
});
|
|
1976
1943
|
throw __decorateServiceException(response, parsedBody);
|
|
1977
1944
|
}
|
|
@@ -2002,7 +1969,7 @@ export var deserializeAws_restJson1CreateInvitationsCommand = function (output,
|
|
|
2002
1969
|
});
|
|
2003
1970
|
}); };
|
|
2004
1971
|
var deserializeAws_restJson1CreateInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2005
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1972
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2006
1973
|
var _c;
|
|
2007
1974
|
return __generator(this, function (_d) {
|
|
2008
1975
|
switch (_d.label) {
|
|
@@ -2012,7 +1979,6 @@ var deserializeAws_restJson1CreateInvitationsCommandError = function (output, co
|
|
|
2012
1979
|
return [4, parseBody(output.body, context)];
|
|
2013
1980
|
case 1:
|
|
2014
1981
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2015
|
-
errorCode = "UnknownError";
|
|
2016
1982
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
1983
|
_b = errorCode;
|
|
2018
1984
|
switch (_b) {
|
|
@@ -2048,10 +2014,12 @@ var deserializeAws_restJson1CreateInvitationsCommandError = function (output, co
|
|
|
2048
2014
|
case 15: throw _d.sent();
|
|
2049
2015
|
case 16:
|
|
2050
2016
|
parsedBody = parsedOutput.body;
|
|
2017
|
+
$metadata = deserializeMetadata(output);
|
|
2018
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2051
2019
|
response = new __BaseException({
|
|
2052
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2020
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2053
2021
|
$fault: "client",
|
|
2054
|
-
$metadata:
|
|
2022
|
+
$metadata: $metadata,
|
|
2055
2023
|
});
|
|
2056
2024
|
throw __decorateServiceException(response, parsedBody);
|
|
2057
2025
|
}
|
|
@@ -2082,7 +2050,7 @@ export var deserializeAws_restJson1CreateMemberCommand = function (output, conte
|
|
|
2082
2050
|
});
|
|
2083
2051
|
}); };
|
|
2084
2052
|
var deserializeAws_restJson1CreateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2085
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2053
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2086
2054
|
var _c;
|
|
2087
2055
|
return __generator(this, function (_d) {
|
|
2088
2056
|
switch (_d.label) {
|
|
@@ -2092,7 +2060,6 @@ var deserializeAws_restJson1CreateMemberCommandError = function (output, context
|
|
|
2092
2060
|
return [4, parseBody(output.body, context)];
|
|
2093
2061
|
case 1:
|
|
2094
2062
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2095
|
-
errorCode = "UnknownError";
|
|
2096
2063
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2097
2064
|
_b = errorCode;
|
|
2098
2065
|
switch (_b) {
|
|
@@ -2128,10 +2095,12 @@ var deserializeAws_restJson1CreateMemberCommandError = function (output, context
|
|
|
2128
2095
|
case 15: throw _d.sent();
|
|
2129
2096
|
case 16:
|
|
2130
2097
|
parsedBody = parsedOutput.body;
|
|
2098
|
+
$metadata = deserializeMetadata(output);
|
|
2099
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2131
2100
|
response = new __BaseException({
|
|
2132
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2101
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2133
2102
|
$fault: "client",
|
|
2134
|
-
$metadata:
|
|
2103
|
+
$metadata: $metadata,
|
|
2135
2104
|
});
|
|
2136
2105
|
throw __decorateServiceException(response, parsedBody);
|
|
2137
2106
|
}
|
|
@@ -2156,7 +2125,7 @@ export var deserializeAws_restJson1CreateSampleFindingsCommand = function (outpu
|
|
|
2156
2125
|
});
|
|
2157
2126
|
}); };
|
|
2158
2127
|
var deserializeAws_restJson1CreateSampleFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2159
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2128
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2160
2129
|
var _c;
|
|
2161
2130
|
return __generator(this, function (_d) {
|
|
2162
2131
|
switch (_d.label) {
|
|
@@ -2166,7 +2135,6 @@ var deserializeAws_restJson1CreateSampleFindingsCommandError = function (output,
|
|
|
2166
2135
|
return [4, parseBody(output.body, context)];
|
|
2167
2136
|
case 1:
|
|
2168
2137
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2169
|
-
errorCode = "UnknownError";
|
|
2170
2138
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2171
2139
|
_b = errorCode;
|
|
2172
2140
|
switch (_b) {
|
|
@@ -2202,10 +2170,12 @@ var deserializeAws_restJson1CreateSampleFindingsCommandError = function (output,
|
|
|
2202
2170
|
case 15: throw _d.sent();
|
|
2203
2171
|
case 16:
|
|
2204
2172
|
parsedBody = parsedOutput.body;
|
|
2173
|
+
$metadata = deserializeMetadata(output);
|
|
2174
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2205
2175
|
response = new __BaseException({
|
|
2206
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2207
2177
|
$fault: "client",
|
|
2208
|
-
$metadata:
|
|
2178
|
+
$metadata: $metadata,
|
|
2209
2179
|
});
|
|
2210
2180
|
throw __decorateServiceException(response, parsedBody);
|
|
2211
2181
|
}
|
|
@@ -2236,7 +2206,7 @@ export var deserializeAws_restJson1DeclineInvitationsCommand = function (output,
|
|
|
2236
2206
|
});
|
|
2237
2207
|
}); };
|
|
2238
2208
|
var deserializeAws_restJson1DeclineInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2239
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2209
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2240
2210
|
var _c;
|
|
2241
2211
|
return __generator(this, function (_d) {
|
|
2242
2212
|
switch (_d.label) {
|
|
@@ -2246,7 +2216,6 @@ var deserializeAws_restJson1DeclineInvitationsCommandError = function (output, c
|
|
|
2246
2216
|
return [4, parseBody(output.body, context)];
|
|
2247
2217
|
case 1:
|
|
2248
2218
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2249
|
-
errorCode = "UnknownError";
|
|
2250
2219
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
2220
|
_b = errorCode;
|
|
2252
2221
|
switch (_b) {
|
|
@@ -2282,10 +2251,12 @@ var deserializeAws_restJson1DeclineInvitationsCommandError = function (output, c
|
|
|
2282
2251
|
case 15: throw _d.sent();
|
|
2283
2252
|
case 16:
|
|
2284
2253
|
parsedBody = parsedOutput.body;
|
|
2254
|
+
$metadata = deserializeMetadata(output);
|
|
2255
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2285
2256
|
response = new __BaseException({
|
|
2286
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2257
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2287
2258
|
$fault: "client",
|
|
2288
|
-
$metadata:
|
|
2259
|
+
$metadata: $metadata,
|
|
2289
2260
|
});
|
|
2290
2261
|
throw __decorateServiceException(response, parsedBody);
|
|
2291
2262
|
}
|
|
@@ -2310,7 +2281,7 @@ export var deserializeAws_restJson1DeleteCustomDataIdentifierCommand = function
|
|
|
2310
2281
|
});
|
|
2311
2282
|
}); };
|
|
2312
2283
|
var deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2313
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2284
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2314
2285
|
var _c;
|
|
2315
2286
|
return __generator(this, function (_d) {
|
|
2316
2287
|
switch (_d.label) {
|
|
@@ -2320,7 +2291,6 @@ var deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = function (o
|
|
|
2320
2291
|
return [4, parseBody(output.body, context)];
|
|
2321
2292
|
case 1:
|
|
2322
2293
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2323
|
-
errorCode = "UnknownError";
|
|
2324
2294
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
2295
|
_b = errorCode;
|
|
2326
2296
|
switch (_b) {
|
|
@@ -2356,10 +2326,12 @@ var deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = function (o
|
|
|
2356
2326
|
case 15: throw _d.sent();
|
|
2357
2327
|
case 16:
|
|
2358
2328
|
parsedBody = parsedOutput.body;
|
|
2329
|
+
$metadata = deserializeMetadata(output);
|
|
2330
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2359
2331
|
response = new __BaseException({
|
|
2360
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2332
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2361
2333
|
$fault: "client",
|
|
2362
|
-
$metadata:
|
|
2334
|
+
$metadata: $metadata,
|
|
2363
2335
|
});
|
|
2364
2336
|
throw __decorateServiceException(response, parsedBody);
|
|
2365
2337
|
}
|
|
@@ -2384,7 +2356,7 @@ export var deserializeAws_restJson1DeleteFindingsFilterCommand = function (outpu
|
|
|
2384
2356
|
});
|
|
2385
2357
|
}); };
|
|
2386
2358
|
var deserializeAws_restJson1DeleteFindingsFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2387
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2359
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2388
2360
|
var _c;
|
|
2389
2361
|
return __generator(this, function (_d) {
|
|
2390
2362
|
switch (_d.label) {
|
|
@@ -2394,7 +2366,6 @@ var deserializeAws_restJson1DeleteFindingsFilterCommandError = function (output,
|
|
|
2394
2366
|
return [4, parseBody(output.body, context)];
|
|
2395
2367
|
case 1:
|
|
2396
2368
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2397
|
-
errorCode = "UnknownError";
|
|
2398
2369
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2399
2370
|
_b = errorCode;
|
|
2400
2371
|
switch (_b) {
|
|
@@ -2430,10 +2401,12 @@ var deserializeAws_restJson1DeleteFindingsFilterCommandError = function (output,
|
|
|
2430
2401
|
case 15: throw _d.sent();
|
|
2431
2402
|
case 16:
|
|
2432
2403
|
parsedBody = parsedOutput.body;
|
|
2404
|
+
$metadata = deserializeMetadata(output);
|
|
2405
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2433
2406
|
response = new __BaseException({
|
|
2434
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2407
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2435
2408
|
$fault: "client",
|
|
2436
|
-
$metadata:
|
|
2409
|
+
$metadata: $metadata,
|
|
2437
2410
|
});
|
|
2438
2411
|
throw __decorateServiceException(response, parsedBody);
|
|
2439
2412
|
}
|
|
@@ -2464,7 +2437,7 @@ export var deserializeAws_restJson1DeleteInvitationsCommand = function (output,
|
|
|
2464
2437
|
});
|
|
2465
2438
|
}); };
|
|
2466
2439
|
var deserializeAws_restJson1DeleteInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2467
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2440
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2468
2441
|
var _c;
|
|
2469
2442
|
return __generator(this, function (_d) {
|
|
2470
2443
|
switch (_d.label) {
|
|
@@ -2474,7 +2447,6 @@ var deserializeAws_restJson1DeleteInvitationsCommandError = function (output, co
|
|
|
2474
2447
|
return [4, parseBody(output.body, context)];
|
|
2475
2448
|
case 1:
|
|
2476
2449
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2477
|
-
errorCode = "UnknownError";
|
|
2478
2450
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2479
2451
|
_b = errorCode;
|
|
2480
2452
|
switch (_b) {
|
|
@@ -2510,10 +2482,12 @@ var deserializeAws_restJson1DeleteInvitationsCommandError = function (output, co
|
|
|
2510
2482
|
case 15: throw _d.sent();
|
|
2511
2483
|
case 16:
|
|
2512
2484
|
parsedBody = parsedOutput.body;
|
|
2485
|
+
$metadata = deserializeMetadata(output);
|
|
2486
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2513
2487
|
response = new __BaseException({
|
|
2514
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2488
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2515
2489
|
$fault: "client",
|
|
2516
|
-
$metadata:
|
|
2490
|
+
$metadata: $metadata,
|
|
2517
2491
|
});
|
|
2518
2492
|
throw __decorateServiceException(response, parsedBody);
|
|
2519
2493
|
}
|
|
@@ -2538,7 +2512,7 @@ export var deserializeAws_restJson1DeleteMemberCommand = function (output, conte
|
|
|
2538
2512
|
});
|
|
2539
2513
|
}); };
|
|
2540
2514
|
var deserializeAws_restJson1DeleteMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2541
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2515
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2542
2516
|
var _c;
|
|
2543
2517
|
return __generator(this, function (_d) {
|
|
2544
2518
|
switch (_d.label) {
|
|
@@ -2548,7 +2522,6 @@ var deserializeAws_restJson1DeleteMemberCommandError = function (output, context
|
|
|
2548
2522
|
return [4, parseBody(output.body, context)];
|
|
2549
2523
|
case 1:
|
|
2550
2524
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2551
|
-
errorCode = "UnknownError";
|
|
2552
2525
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
2526
|
_b = errorCode;
|
|
2554
2527
|
switch (_b) {
|
|
@@ -2584,10 +2557,12 @@ var deserializeAws_restJson1DeleteMemberCommandError = function (output, context
|
|
|
2584
2557
|
case 15: throw _d.sent();
|
|
2585
2558
|
case 16:
|
|
2586
2559
|
parsedBody = parsedOutput.body;
|
|
2560
|
+
$metadata = deserializeMetadata(output);
|
|
2561
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2587
2562
|
response = new __BaseException({
|
|
2588
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2563
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2589
2564
|
$fault: "client",
|
|
2590
|
-
$metadata:
|
|
2565
|
+
$metadata: $metadata,
|
|
2591
2566
|
});
|
|
2592
2567
|
throw __decorateServiceException(response, parsedBody);
|
|
2593
2568
|
}
|
|
@@ -2622,7 +2597,7 @@ export var deserializeAws_restJson1DescribeBucketsCommand = function (output, co
|
|
|
2622
2597
|
});
|
|
2623
2598
|
}); };
|
|
2624
2599
|
var deserializeAws_restJson1DescribeBucketsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2625
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2600
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2626
2601
|
var _c;
|
|
2627
2602
|
return __generator(this, function (_d) {
|
|
2628
2603
|
switch (_d.label) {
|
|
@@ -2632,7 +2607,6 @@ var deserializeAws_restJson1DescribeBucketsCommandError = function (output, cont
|
|
|
2632
2607
|
return [4, parseBody(output.body, context)];
|
|
2633
2608
|
case 1:
|
|
2634
2609
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2635
|
-
errorCode = "UnknownError";
|
|
2636
2610
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2637
2611
|
_b = errorCode;
|
|
2638
2612
|
switch (_b) {
|
|
@@ -2668,10 +2642,12 @@ var deserializeAws_restJson1DescribeBucketsCommandError = function (output, cont
|
|
|
2668
2642
|
case 15: throw _d.sent();
|
|
2669
2643
|
case 16:
|
|
2670
2644
|
parsedBody = parsedOutput.body;
|
|
2645
|
+
$metadata = deserializeMetadata(output);
|
|
2646
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2671
2647
|
response = new __BaseException({
|
|
2672
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2673
2649
|
$fault: "client",
|
|
2674
|
-
$metadata:
|
|
2650
|
+
$metadata: $metadata,
|
|
2675
2651
|
});
|
|
2676
2652
|
throw __decorateServiceException(response, parsedBody);
|
|
2677
2653
|
}
|
|
@@ -2778,7 +2754,7 @@ export var deserializeAws_restJson1DescribeClassificationJobCommand = function (
|
|
|
2778
2754
|
});
|
|
2779
2755
|
}); };
|
|
2780
2756
|
var deserializeAws_restJson1DescribeClassificationJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2781
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2757
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2782
2758
|
var _c;
|
|
2783
2759
|
return __generator(this, function (_d) {
|
|
2784
2760
|
switch (_d.label) {
|
|
@@ -2788,7 +2764,6 @@ var deserializeAws_restJson1DescribeClassificationJobCommandError = function (ou
|
|
|
2788
2764
|
return [4, parseBody(output.body, context)];
|
|
2789
2765
|
case 1:
|
|
2790
2766
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2791
|
-
errorCode = "UnknownError";
|
|
2792
2767
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2793
2768
|
_b = errorCode;
|
|
2794
2769
|
switch (_b) {
|
|
@@ -2824,10 +2799,12 @@ var deserializeAws_restJson1DescribeClassificationJobCommandError = function (ou
|
|
|
2824
2799
|
case 15: throw _d.sent();
|
|
2825
2800
|
case 16:
|
|
2826
2801
|
parsedBody = parsedOutput.body;
|
|
2802
|
+
$metadata = deserializeMetadata(output);
|
|
2803
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2827
2804
|
response = new __BaseException({
|
|
2828
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2805
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2829
2806
|
$fault: "client",
|
|
2830
|
-
$metadata:
|
|
2807
|
+
$metadata: $metadata,
|
|
2831
2808
|
});
|
|
2832
2809
|
throw __decorateServiceException(response, parsedBody);
|
|
2833
2810
|
}
|
|
@@ -2862,7 +2839,7 @@ export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = fu
|
|
|
2862
2839
|
});
|
|
2863
2840
|
}); };
|
|
2864
2841
|
var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2865
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2842
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2866
2843
|
var _c;
|
|
2867
2844
|
return __generator(this, function (_d) {
|
|
2868
2845
|
switch (_d.label) {
|
|
@@ -2872,7 +2849,6 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
2872
2849
|
return [4, parseBody(output.body, context)];
|
|
2873
2850
|
case 1:
|
|
2874
2851
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2875
|
-
errorCode = "UnknownError";
|
|
2876
2852
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
2853
|
_b = errorCode;
|
|
2878
2854
|
switch (_b) {
|
|
@@ -2908,10 +2884,12 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
2908
2884
|
case 15: throw _d.sent();
|
|
2909
2885
|
case 16:
|
|
2910
2886
|
parsedBody = parsedOutput.body;
|
|
2887
|
+
$metadata = deserializeMetadata(output);
|
|
2888
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2911
2889
|
response = new __BaseException({
|
|
2912
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2890
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2913
2891
|
$fault: "client",
|
|
2914
|
-
$metadata:
|
|
2892
|
+
$metadata: $metadata,
|
|
2915
2893
|
});
|
|
2916
2894
|
throw __decorateServiceException(response, parsedBody);
|
|
2917
2895
|
}
|
|
@@ -2936,7 +2914,7 @@ export var deserializeAws_restJson1DisableMacieCommand = function (output, conte
|
|
|
2936
2914
|
});
|
|
2937
2915
|
}); };
|
|
2938
2916
|
var deserializeAws_restJson1DisableMacieCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2939
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2917
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2940
2918
|
var _c;
|
|
2941
2919
|
return __generator(this, function (_d) {
|
|
2942
2920
|
switch (_d.label) {
|
|
@@ -2946,7 +2924,6 @@ var deserializeAws_restJson1DisableMacieCommandError = function (output, context
|
|
|
2946
2924
|
return [4, parseBody(output.body, context)];
|
|
2947
2925
|
case 1:
|
|
2948
2926
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2949
|
-
errorCode = "UnknownError";
|
|
2950
2927
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2951
2928
|
_b = errorCode;
|
|
2952
2929
|
switch (_b) {
|
|
@@ -2982,10 +2959,12 @@ var deserializeAws_restJson1DisableMacieCommandError = function (output, context
|
|
|
2982
2959
|
case 15: throw _d.sent();
|
|
2983
2960
|
case 16:
|
|
2984
2961
|
parsedBody = parsedOutput.body;
|
|
2962
|
+
$metadata = deserializeMetadata(output);
|
|
2963
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2985
2964
|
response = new __BaseException({
|
|
2986
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2965
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2987
2966
|
$fault: "client",
|
|
2988
|
-
$metadata:
|
|
2967
|
+
$metadata: $metadata,
|
|
2989
2968
|
});
|
|
2990
2969
|
throw __decorateServiceException(response, parsedBody);
|
|
2991
2970
|
}
|
|
@@ -3010,7 +2989,7 @@ export var deserializeAws_restJson1DisableOrganizationAdminAccountCommand = func
|
|
|
3010
2989
|
});
|
|
3011
2990
|
}); };
|
|
3012
2991
|
var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3013
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2992
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3014
2993
|
var _c;
|
|
3015
2994
|
return __generator(this, function (_d) {
|
|
3016
2995
|
switch (_d.label) {
|
|
@@ -3020,7 +2999,6 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
|
|
|
3020
2999
|
return [4, parseBody(output.body, context)];
|
|
3021
3000
|
case 1:
|
|
3022
3001
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3023
|
-
errorCode = "UnknownError";
|
|
3024
3002
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3025
3003
|
_b = errorCode;
|
|
3026
3004
|
switch (_b) {
|
|
@@ -3056,10 +3034,12 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
|
|
|
3056
3034
|
case 15: throw _d.sent();
|
|
3057
3035
|
case 16:
|
|
3058
3036
|
parsedBody = parsedOutput.body;
|
|
3037
|
+
$metadata = deserializeMetadata(output);
|
|
3038
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3059
3039
|
response = new __BaseException({
|
|
3060
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3040
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3061
3041
|
$fault: "client",
|
|
3062
|
-
$metadata:
|
|
3042
|
+
$metadata: $metadata,
|
|
3063
3043
|
});
|
|
3064
3044
|
throw __decorateServiceException(response, parsedBody);
|
|
3065
3045
|
}
|
|
@@ -3084,7 +3064,7 @@ export var deserializeAws_restJson1DisassociateFromAdministratorAccountCommand =
|
|
|
3084
3064
|
});
|
|
3085
3065
|
}); };
|
|
3086
3066
|
var deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3087
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3067
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3088
3068
|
var _c;
|
|
3089
3069
|
return __generator(this, function (_d) {
|
|
3090
3070
|
switch (_d.label) {
|
|
@@ -3094,7 +3074,6 @@ var deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = f
|
|
|
3094
3074
|
return [4, parseBody(output.body, context)];
|
|
3095
3075
|
case 1:
|
|
3096
3076
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3097
|
-
errorCode = "UnknownError";
|
|
3098
3077
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3099
3078
|
_b = errorCode;
|
|
3100
3079
|
switch (_b) {
|
|
@@ -3130,10 +3109,12 @@ var deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = f
|
|
|
3130
3109
|
case 15: throw _d.sent();
|
|
3131
3110
|
case 16:
|
|
3132
3111
|
parsedBody = parsedOutput.body;
|
|
3112
|
+
$metadata = deserializeMetadata(output);
|
|
3113
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3133
3114
|
response = new __BaseException({
|
|
3134
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3115
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3135
3116
|
$fault: "client",
|
|
3136
|
-
$metadata:
|
|
3117
|
+
$metadata: $metadata,
|
|
3137
3118
|
});
|
|
3138
3119
|
throw __decorateServiceException(response, parsedBody);
|
|
3139
3120
|
}
|
|
@@ -3158,7 +3139,7 @@ export var deserializeAws_restJson1DisassociateFromMasterAccountCommand = functi
|
|
|
3158
3139
|
});
|
|
3159
3140
|
}); };
|
|
3160
3141
|
var deserializeAws_restJson1DisassociateFromMasterAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3161
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3142
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3162
3143
|
var _c;
|
|
3163
3144
|
return __generator(this, function (_d) {
|
|
3164
3145
|
switch (_d.label) {
|
|
@@ -3168,7 +3149,6 @@ var deserializeAws_restJson1DisassociateFromMasterAccountCommandError = function
|
|
|
3168
3149
|
return [4, parseBody(output.body, context)];
|
|
3169
3150
|
case 1:
|
|
3170
3151
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3171
|
-
errorCode = "UnknownError";
|
|
3172
3152
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3173
3153
|
_b = errorCode;
|
|
3174
3154
|
switch (_b) {
|
|
@@ -3204,10 +3184,12 @@ var deserializeAws_restJson1DisassociateFromMasterAccountCommandError = function
|
|
|
3204
3184
|
case 15: throw _d.sent();
|
|
3205
3185
|
case 16:
|
|
3206
3186
|
parsedBody = parsedOutput.body;
|
|
3187
|
+
$metadata = deserializeMetadata(output);
|
|
3188
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3207
3189
|
response = new __BaseException({
|
|
3208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3190
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3209
3191
|
$fault: "client",
|
|
3210
|
-
$metadata:
|
|
3192
|
+
$metadata: $metadata,
|
|
3211
3193
|
});
|
|
3212
3194
|
throw __decorateServiceException(response, parsedBody);
|
|
3213
3195
|
}
|
|
@@ -3232,7 +3214,7 @@ export var deserializeAws_restJson1DisassociateMemberCommand = function (output,
|
|
|
3232
3214
|
});
|
|
3233
3215
|
}); };
|
|
3234
3216
|
var deserializeAws_restJson1DisassociateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3235
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3217
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3236
3218
|
var _c;
|
|
3237
3219
|
return __generator(this, function (_d) {
|
|
3238
3220
|
switch (_d.label) {
|
|
@@ -3242,7 +3224,6 @@ var deserializeAws_restJson1DisassociateMemberCommandError = function (output, c
|
|
|
3242
3224
|
return [4, parseBody(output.body, context)];
|
|
3243
3225
|
case 1:
|
|
3244
3226
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3245
|
-
errorCode = "UnknownError";
|
|
3246
3227
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3247
3228
|
_b = errorCode;
|
|
3248
3229
|
switch (_b) {
|
|
@@ -3278,10 +3259,12 @@ var deserializeAws_restJson1DisassociateMemberCommandError = function (output, c
|
|
|
3278
3259
|
case 15: throw _d.sent();
|
|
3279
3260
|
case 16:
|
|
3280
3261
|
parsedBody = parsedOutput.body;
|
|
3262
|
+
$metadata = deserializeMetadata(output);
|
|
3263
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3281
3264
|
response = new __BaseException({
|
|
3282
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3265
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3283
3266
|
$fault: "client",
|
|
3284
|
-
$metadata:
|
|
3267
|
+
$metadata: $metadata,
|
|
3285
3268
|
});
|
|
3286
3269
|
throw __decorateServiceException(response, parsedBody);
|
|
3287
3270
|
}
|
|
@@ -3306,7 +3289,7 @@ export var deserializeAws_restJson1EnableMacieCommand = function (output, contex
|
|
|
3306
3289
|
});
|
|
3307
3290
|
}); };
|
|
3308
3291
|
var deserializeAws_restJson1EnableMacieCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3309
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3292
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3310
3293
|
var _c;
|
|
3311
3294
|
return __generator(this, function (_d) {
|
|
3312
3295
|
switch (_d.label) {
|
|
@@ -3316,7 +3299,6 @@ var deserializeAws_restJson1EnableMacieCommandError = function (output, context)
|
|
|
3316
3299
|
return [4, parseBody(output.body, context)];
|
|
3317
3300
|
case 1:
|
|
3318
3301
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3319
|
-
errorCode = "UnknownError";
|
|
3320
3302
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3321
3303
|
_b = errorCode;
|
|
3322
3304
|
switch (_b) {
|
|
@@ -3352,10 +3334,12 @@ var deserializeAws_restJson1EnableMacieCommandError = function (output, context)
|
|
|
3352
3334
|
case 15: throw _d.sent();
|
|
3353
3335
|
case 16:
|
|
3354
3336
|
parsedBody = parsedOutput.body;
|
|
3337
|
+
$metadata = deserializeMetadata(output);
|
|
3338
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3355
3339
|
response = new __BaseException({
|
|
3356
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3340
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3357
3341
|
$fault: "client",
|
|
3358
|
-
$metadata:
|
|
3342
|
+
$metadata: $metadata,
|
|
3359
3343
|
});
|
|
3360
3344
|
throw __decorateServiceException(response, parsedBody);
|
|
3361
3345
|
}
|
|
@@ -3380,7 +3364,7 @@ export var deserializeAws_restJson1EnableOrganizationAdminAccountCommand = funct
|
|
|
3380
3364
|
});
|
|
3381
3365
|
}); };
|
|
3382
3366
|
var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3383
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3367
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3384
3368
|
var _c;
|
|
3385
3369
|
return __generator(this, function (_d) {
|
|
3386
3370
|
switch (_d.label) {
|
|
@@ -3390,7 +3374,6 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
|
|
|
3390
3374
|
return [4, parseBody(output.body, context)];
|
|
3391
3375
|
case 1:
|
|
3392
3376
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3393
|
-
errorCode = "UnknownError";
|
|
3394
3377
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3395
3378
|
_b = errorCode;
|
|
3396
3379
|
switch (_b) {
|
|
@@ -3426,10 +3409,12 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
|
|
|
3426
3409
|
case 15: throw _d.sent();
|
|
3427
3410
|
case 16:
|
|
3428
3411
|
parsedBody = parsedOutput.body;
|
|
3412
|
+
$metadata = deserializeMetadata(output);
|
|
3413
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3429
3414
|
response = new __BaseException({
|
|
3430
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3415
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3431
3416
|
$fault: "client",
|
|
3432
|
-
$metadata:
|
|
3417
|
+
$metadata: $metadata,
|
|
3433
3418
|
});
|
|
3434
3419
|
throw __decorateServiceException(response, parsedBody);
|
|
3435
3420
|
}
|
|
@@ -3460,7 +3445,7 @@ export var deserializeAws_restJson1GetAdministratorAccountCommand = function (ou
|
|
|
3460
3445
|
});
|
|
3461
3446
|
}); };
|
|
3462
3447
|
var deserializeAws_restJson1GetAdministratorAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3463
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3448
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3464
3449
|
var _c;
|
|
3465
3450
|
return __generator(this, function (_d) {
|
|
3466
3451
|
switch (_d.label) {
|
|
@@ -3470,7 +3455,6 @@ var deserializeAws_restJson1GetAdministratorAccountCommandError = function (outp
|
|
|
3470
3455
|
return [4, parseBody(output.body, context)];
|
|
3471
3456
|
case 1:
|
|
3472
3457
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3473
|
-
errorCode = "UnknownError";
|
|
3474
3458
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3475
3459
|
_b = errorCode;
|
|
3476
3460
|
switch (_b) {
|
|
@@ -3506,10 +3490,12 @@ var deserializeAws_restJson1GetAdministratorAccountCommandError = function (outp
|
|
|
3506
3490
|
case 15: throw _d.sent();
|
|
3507
3491
|
case 16:
|
|
3508
3492
|
parsedBody = parsedOutput.body;
|
|
3493
|
+
$metadata = deserializeMetadata(output);
|
|
3494
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3509
3495
|
response = new __BaseException({
|
|
3510
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3496
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3511
3497
|
$fault: "client",
|
|
3512
|
-
$metadata:
|
|
3498
|
+
$metadata: $metadata,
|
|
3513
3499
|
});
|
|
3514
3500
|
throw __decorateServiceException(response, parsedBody);
|
|
3515
3501
|
}
|
|
@@ -3590,7 +3576,7 @@ export var deserializeAws_restJson1GetBucketStatisticsCommand = function (output
|
|
|
3590
3576
|
});
|
|
3591
3577
|
}); };
|
|
3592
3578
|
var deserializeAws_restJson1GetBucketStatisticsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3593
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3579
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3594
3580
|
var _c;
|
|
3595
3581
|
return __generator(this, function (_d) {
|
|
3596
3582
|
switch (_d.label) {
|
|
@@ -3600,7 +3586,6 @@ var deserializeAws_restJson1GetBucketStatisticsCommandError = function (output,
|
|
|
3600
3586
|
return [4, parseBody(output.body, context)];
|
|
3601
3587
|
case 1:
|
|
3602
3588
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3603
|
-
errorCode = "UnknownError";
|
|
3604
3589
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3605
3590
|
_b = errorCode;
|
|
3606
3591
|
switch (_b) {
|
|
@@ -3636,10 +3621,12 @@ var deserializeAws_restJson1GetBucketStatisticsCommandError = function (output,
|
|
|
3636
3621
|
case 15: throw _d.sent();
|
|
3637
3622
|
case 16:
|
|
3638
3623
|
parsedBody = parsedOutput.body;
|
|
3624
|
+
$metadata = deserializeMetadata(output);
|
|
3625
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3639
3626
|
response = new __BaseException({
|
|
3640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3627
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3641
3628
|
$fault: "client",
|
|
3642
|
-
$metadata:
|
|
3629
|
+
$metadata: $metadata,
|
|
3643
3630
|
});
|
|
3644
3631
|
throw __decorateServiceException(response, parsedBody);
|
|
3645
3632
|
}
|
|
@@ -3670,7 +3657,7 @@ export var deserializeAws_restJson1GetClassificationExportConfigurationCommand =
|
|
|
3670
3657
|
});
|
|
3671
3658
|
}); };
|
|
3672
3659
|
var deserializeAws_restJson1GetClassificationExportConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3673
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3660
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3674
3661
|
var _c;
|
|
3675
3662
|
return __generator(this, function (_d) {
|
|
3676
3663
|
switch (_d.label) {
|
|
@@ -3680,7 +3667,6 @@ var deserializeAws_restJson1GetClassificationExportConfigurationCommandError = f
|
|
|
3680
3667
|
return [4, parseBody(output.body, context)];
|
|
3681
3668
|
case 1:
|
|
3682
3669
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3683
|
-
errorCode = "UnknownError";
|
|
3684
3670
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3685
3671
|
_b = errorCode;
|
|
3686
3672
|
switch (_b) {
|
|
@@ -3716,10 +3702,12 @@ var deserializeAws_restJson1GetClassificationExportConfigurationCommandError = f
|
|
|
3716
3702
|
case 15: throw _d.sent();
|
|
3717
3703
|
case 16:
|
|
3718
3704
|
parsedBody = parsedOutput.body;
|
|
3705
|
+
$metadata = deserializeMetadata(output);
|
|
3706
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3719
3707
|
response = new __BaseException({
|
|
3720
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3708
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3721
3709
|
$fault: "client",
|
|
3722
|
-
$metadata:
|
|
3710
|
+
$metadata: $metadata,
|
|
3723
3711
|
});
|
|
3724
3712
|
throw __decorateServiceException(response, parsedBody);
|
|
3725
3713
|
}
|
|
@@ -3794,7 +3782,7 @@ export var deserializeAws_restJson1GetCustomDataIdentifierCommand = function (ou
|
|
|
3794
3782
|
});
|
|
3795
3783
|
}); };
|
|
3796
3784
|
var deserializeAws_restJson1GetCustomDataIdentifierCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3797
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3785
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3798
3786
|
var _c;
|
|
3799
3787
|
return __generator(this, function (_d) {
|
|
3800
3788
|
switch (_d.label) {
|
|
@@ -3804,7 +3792,6 @@ var deserializeAws_restJson1GetCustomDataIdentifierCommandError = function (outp
|
|
|
3804
3792
|
return [4, parseBody(output.body, context)];
|
|
3805
3793
|
case 1:
|
|
3806
3794
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3807
|
-
errorCode = "UnknownError";
|
|
3808
3795
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3809
3796
|
_b = errorCode;
|
|
3810
3797
|
switch (_b) {
|
|
@@ -3840,10 +3827,12 @@ var deserializeAws_restJson1GetCustomDataIdentifierCommandError = function (outp
|
|
|
3840
3827
|
case 15: throw _d.sent();
|
|
3841
3828
|
case 16:
|
|
3842
3829
|
parsedBody = parsedOutput.body;
|
|
3830
|
+
$metadata = deserializeMetadata(output);
|
|
3831
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3843
3832
|
response = new __BaseException({
|
|
3844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3833
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3845
3834
|
$fault: "client",
|
|
3846
|
-
$metadata:
|
|
3835
|
+
$metadata: $metadata,
|
|
3847
3836
|
});
|
|
3848
3837
|
throw __decorateServiceException(response, parsedBody);
|
|
3849
3838
|
}
|
|
@@ -3874,7 +3863,7 @@ export var deserializeAws_restJson1GetFindingsCommand = function (output, contex
|
|
|
3874
3863
|
});
|
|
3875
3864
|
}); };
|
|
3876
3865
|
var deserializeAws_restJson1GetFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3877
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3866
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3878
3867
|
var _c;
|
|
3879
3868
|
return __generator(this, function (_d) {
|
|
3880
3869
|
switch (_d.label) {
|
|
@@ -3884,7 +3873,6 @@ var deserializeAws_restJson1GetFindingsCommandError = function (output, context)
|
|
|
3884
3873
|
return [4, parseBody(output.body, context)];
|
|
3885
3874
|
case 1:
|
|
3886
3875
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3887
|
-
errorCode = "UnknownError";
|
|
3888
3876
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3889
3877
|
_b = errorCode;
|
|
3890
3878
|
switch (_b) {
|
|
@@ -3920,10 +3908,12 @@ var deserializeAws_restJson1GetFindingsCommandError = function (output, context)
|
|
|
3920
3908
|
case 15: throw _d.sent();
|
|
3921
3909
|
case 16:
|
|
3922
3910
|
parsedBody = parsedOutput.body;
|
|
3911
|
+
$metadata = deserializeMetadata(output);
|
|
3912
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3923
3913
|
response = new __BaseException({
|
|
3924
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3925
3915
|
$fault: "client",
|
|
3926
|
-
$metadata:
|
|
3916
|
+
$metadata: $metadata,
|
|
3927
3917
|
});
|
|
3928
3918
|
throw __decorateServiceException(response, parsedBody);
|
|
3929
3919
|
}
|
|
@@ -3982,7 +3972,7 @@ export var deserializeAws_restJson1GetFindingsFilterCommand = function (output,
|
|
|
3982
3972
|
});
|
|
3983
3973
|
}); };
|
|
3984
3974
|
var deserializeAws_restJson1GetFindingsFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3985
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3975
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3986
3976
|
var _c;
|
|
3987
3977
|
return __generator(this, function (_d) {
|
|
3988
3978
|
switch (_d.label) {
|
|
@@ -3992,7 +3982,6 @@ var deserializeAws_restJson1GetFindingsFilterCommandError = function (output, co
|
|
|
3992
3982
|
return [4, parseBody(output.body, context)];
|
|
3993
3983
|
case 1:
|
|
3994
3984
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3995
|
-
errorCode = "UnknownError";
|
|
3996
3985
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3997
3986
|
_b = errorCode;
|
|
3998
3987
|
switch (_b) {
|
|
@@ -4028,10 +4017,12 @@ var deserializeAws_restJson1GetFindingsFilterCommandError = function (output, co
|
|
|
4028
4017
|
case 15: throw _d.sent();
|
|
4029
4018
|
case 16:
|
|
4030
4019
|
parsedBody = parsedOutput.body;
|
|
4020
|
+
$metadata = deserializeMetadata(output);
|
|
4021
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4031
4022
|
response = new __BaseException({
|
|
4032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4023
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4033
4024
|
$fault: "client",
|
|
4034
|
-
$metadata:
|
|
4025
|
+
$metadata: $metadata,
|
|
4035
4026
|
});
|
|
4036
4027
|
throw __decorateServiceException(response, parsedBody);
|
|
4037
4028
|
}
|
|
@@ -4062,7 +4053,7 @@ export var deserializeAws_restJson1GetFindingsPublicationConfigurationCommand =
|
|
|
4062
4053
|
});
|
|
4063
4054
|
}); };
|
|
4064
4055
|
var deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4065
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4056
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4066
4057
|
var _c;
|
|
4067
4058
|
return __generator(this, function (_d) {
|
|
4068
4059
|
switch (_d.label) {
|
|
@@ -4072,7 +4063,6 @@ var deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError = fu
|
|
|
4072
4063
|
return [4, parseBody(output.body, context)];
|
|
4073
4064
|
case 1:
|
|
4074
4065
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4075
|
-
errorCode = "UnknownError";
|
|
4076
4066
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4077
4067
|
_b = errorCode;
|
|
4078
4068
|
switch (_b) {
|
|
@@ -4108,10 +4098,12 @@ var deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError = fu
|
|
|
4108
4098
|
case 15: throw _d.sent();
|
|
4109
4099
|
case 16:
|
|
4110
4100
|
parsedBody = parsedOutput.body;
|
|
4101
|
+
$metadata = deserializeMetadata(output);
|
|
4102
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4111
4103
|
response = new __BaseException({
|
|
4112
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4104
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4113
4105
|
$fault: "client",
|
|
4114
|
-
$metadata:
|
|
4106
|
+
$metadata: $metadata,
|
|
4115
4107
|
});
|
|
4116
4108
|
throw __decorateServiceException(response, parsedBody);
|
|
4117
4109
|
}
|
|
@@ -4142,7 +4134,7 @@ export var deserializeAws_restJson1GetFindingStatisticsCommand = function (outpu
|
|
|
4142
4134
|
});
|
|
4143
4135
|
}); };
|
|
4144
4136
|
var deserializeAws_restJson1GetFindingStatisticsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4145
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4137
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4146
4138
|
var _c;
|
|
4147
4139
|
return __generator(this, function (_d) {
|
|
4148
4140
|
switch (_d.label) {
|
|
@@ -4152,7 +4144,6 @@ var deserializeAws_restJson1GetFindingStatisticsCommandError = function (output,
|
|
|
4152
4144
|
return [4, parseBody(output.body, context)];
|
|
4153
4145
|
case 1:
|
|
4154
4146
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4155
|
-
errorCode = "UnknownError";
|
|
4156
4147
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4157
4148
|
_b = errorCode;
|
|
4158
4149
|
switch (_b) {
|
|
@@ -4188,10 +4179,12 @@ var deserializeAws_restJson1GetFindingStatisticsCommandError = function (output,
|
|
|
4188
4179
|
case 15: throw _d.sent();
|
|
4189
4180
|
case 16:
|
|
4190
4181
|
parsedBody = parsedOutput.body;
|
|
4182
|
+
$metadata = deserializeMetadata(output);
|
|
4183
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4191
4184
|
response = new __BaseException({
|
|
4192
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4185
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4193
4186
|
$fault: "client",
|
|
4194
|
-
$metadata:
|
|
4187
|
+
$metadata: $metadata,
|
|
4195
4188
|
});
|
|
4196
4189
|
throw __decorateServiceException(response, parsedBody);
|
|
4197
4190
|
}
|
|
@@ -4222,7 +4215,7 @@ export var deserializeAws_restJson1GetInvitationsCountCommand = function (output
|
|
|
4222
4215
|
});
|
|
4223
4216
|
}); };
|
|
4224
4217
|
var deserializeAws_restJson1GetInvitationsCountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4225
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4218
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4226
4219
|
var _c;
|
|
4227
4220
|
return __generator(this, function (_d) {
|
|
4228
4221
|
switch (_d.label) {
|
|
@@ -4232,7 +4225,6 @@ var deserializeAws_restJson1GetInvitationsCountCommandError = function (output,
|
|
|
4232
4225
|
return [4, parseBody(output.body, context)];
|
|
4233
4226
|
case 1:
|
|
4234
4227
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4235
|
-
errorCode = "UnknownError";
|
|
4236
4228
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4237
4229
|
_b = errorCode;
|
|
4238
4230
|
switch (_b) {
|
|
@@ -4268,10 +4260,12 @@ var deserializeAws_restJson1GetInvitationsCountCommandError = function (output,
|
|
|
4268
4260
|
case 15: throw _d.sent();
|
|
4269
4261
|
case 16:
|
|
4270
4262
|
parsedBody = parsedOutput.body;
|
|
4263
|
+
$metadata = deserializeMetadata(output);
|
|
4264
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4271
4265
|
response = new __BaseException({
|
|
4272
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4273
4267
|
$fault: "client",
|
|
4274
|
-
$metadata:
|
|
4268
|
+
$metadata: $metadata,
|
|
4275
4269
|
});
|
|
4276
4270
|
throw __decorateServiceException(response, parsedBody);
|
|
4277
4271
|
}
|
|
@@ -4318,7 +4312,7 @@ export var deserializeAws_restJson1GetMacieSessionCommand = function (output, co
|
|
|
4318
4312
|
});
|
|
4319
4313
|
}); };
|
|
4320
4314
|
var deserializeAws_restJson1GetMacieSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4321
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4315
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4322
4316
|
var _c;
|
|
4323
4317
|
return __generator(this, function (_d) {
|
|
4324
4318
|
switch (_d.label) {
|
|
@@ -4328,7 +4322,6 @@ var deserializeAws_restJson1GetMacieSessionCommandError = function (output, cont
|
|
|
4328
4322
|
return [4, parseBody(output.body, context)];
|
|
4329
4323
|
case 1:
|
|
4330
4324
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4331
|
-
errorCode = "UnknownError";
|
|
4332
4325
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4333
4326
|
_b = errorCode;
|
|
4334
4327
|
switch (_b) {
|
|
@@ -4364,10 +4357,12 @@ var deserializeAws_restJson1GetMacieSessionCommandError = function (output, cont
|
|
|
4364
4357
|
case 15: throw _d.sent();
|
|
4365
4358
|
case 16:
|
|
4366
4359
|
parsedBody = parsedOutput.body;
|
|
4360
|
+
$metadata = deserializeMetadata(output);
|
|
4361
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4367
4362
|
response = new __BaseException({
|
|
4368
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4363
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4369
4364
|
$fault: "client",
|
|
4370
|
-
$metadata:
|
|
4365
|
+
$metadata: $metadata,
|
|
4371
4366
|
});
|
|
4372
4367
|
throw __decorateServiceException(response, parsedBody);
|
|
4373
4368
|
}
|
|
@@ -4398,7 +4393,7 @@ export var deserializeAws_restJson1GetMasterAccountCommand = function (output, c
|
|
|
4398
4393
|
});
|
|
4399
4394
|
}); };
|
|
4400
4395
|
var deserializeAws_restJson1GetMasterAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4401
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4396
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4402
4397
|
var _c;
|
|
4403
4398
|
return __generator(this, function (_d) {
|
|
4404
4399
|
switch (_d.label) {
|
|
@@ -4408,7 +4403,6 @@ var deserializeAws_restJson1GetMasterAccountCommandError = function (output, con
|
|
|
4408
4403
|
return [4, parseBody(output.body, context)];
|
|
4409
4404
|
case 1:
|
|
4410
4405
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4411
|
-
errorCode = "UnknownError";
|
|
4412
4406
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4413
4407
|
_b = errorCode;
|
|
4414
4408
|
switch (_b) {
|
|
@@ -4444,10 +4438,12 @@ var deserializeAws_restJson1GetMasterAccountCommandError = function (output, con
|
|
|
4444
4438
|
case 15: throw _d.sent();
|
|
4445
4439
|
case 16:
|
|
4446
4440
|
parsedBody = parsedOutput.body;
|
|
4441
|
+
$metadata = deserializeMetadata(output);
|
|
4442
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4447
4443
|
response = new __BaseException({
|
|
4448
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4449
4445
|
$fault: "client",
|
|
4450
|
-
$metadata:
|
|
4446
|
+
$metadata: $metadata,
|
|
4451
4447
|
});
|
|
4452
4448
|
throw __decorateServiceException(response, parsedBody);
|
|
4453
4449
|
}
|
|
@@ -4510,7 +4506,7 @@ export var deserializeAws_restJson1GetMemberCommand = function (output, context)
|
|
|
4510
4506
|
});
|
|
4511
4507
|
}); };
|
|
4512
4508
|
var deserializeAws_restJson1GetMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4513
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4509
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4514
4510
|
var _c;
|
|
4515
4511
|
return __generator(this, function (_d) {
|
|
4516
4512
|
switch (_d.label) {
|
|
@@ -4520,7 +4516,6 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
4520
4516
|
return [4, parseBody(output.body, context)];
|
|
4521
4517
|
case 1:
|
|
4522
4518
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4523
|
-
errorCode = "UnknownError";
|
|
4524
4519
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4525
4520
|
_b = errorCode;
|
|
4526
4521
|
switch (_b) {
|
|
@@ -4556,10 +4551,12 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
4556
4551
|
case 15: throw _d.sent();
|
|
4557
4552
|
case 16:
|
|
4558
4553
|
parsedBody = parsedOutput.body;
|
|
4554
|
+
$metadata = deserializeMetadata(output);
|
|
4555
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4559
4556
|
response = new __BaseException({
|
|
4560
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4557
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4561
4558
|
$fault: "client",
|
|
4562
|
-
$metadata:
|
|
4559
|
+
$metadata: $metadata,
|
|
4563
4560
|
});
|
|
4564
4561
|
throw __decorateServiceException(response, parsedBody);
|
|
4565
4562
|
}
|
|
@@ -4598,7 +4595,7 @@ export var deserializeAws_restJson1GetUsageStatisticsCommand = function (output,
|
|
|
4598
4595
|
});
|
|
4599
4596
|
}); };
|
|
4600
4597
|
var deserializeAws_restJson1GetUsageStatisticsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4601
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4598
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4602
4599
|
var _c;
|
|
4603
4600
|
return __generator(this, function (_d) {
|
|
4604
4601
|
switch (_d.label) {
|
|
@@ -4608,7 +4605,6 @@ var deserializeAws_restJson1GetUsageStatisticsCommandError = function (output, c
|
|
|
4608
4605
|
return [4, parseBody(output.body, context)];
|
|
4609
4606
|
case 1:
|
|
4610
4607
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4611
|
-
errorCode = "UnknownError";
|
|
4612
4608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4613
4609
|
_b = errorCode;
|
|
4614
4610
|
switch (_b) {
|
|
@@ -4644,10 +4640,12 @@ var deserializeAws_restJson1GetUsageStatisticsCommandError = function (output, c
|
|
|
4644
4640
|
case 15: throw _d.sent();
|
|
4645
4641
|
case 16:
|
|
4646
4642
|
parsedBody = parsedOutput.body;
|
|
4643
|
+
$metadata = deserializeMetadata(output);
|
|
4644
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4647
4645
|
response = new __BaseException({
|
|
4648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4649
4647
|
$fault: "client",
|
|
4650
|
-
$metadata:
|
|
4648
|
+
$metadata: $metadata,
|
|
4651
4649
|
});
|
|
4652
4650
|
throw __decorateServiceException(response, parsedBody);
|
|
4653
4651
|
}
|
|
@@ -4682,7 +4680,7 @@ export var deserializeAws_restJson1GetUsageTotalsCommand = function (output, con
|
|
|
4682
4680
|
});
|
|
4683
4681
|
}); };
|
|
4684
4682
|
var deserializeAws_restJson1GetUsageTotalsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4685
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4683
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4686
4684
|
var _c;
|
|
4687
4685
|
return __generator(this, function (_d) {
|
|
4688
4686
|
switch (_d.label) {
|
|
@@ -4692,7 +4690,6 @@ var deserializeAws_restJson1GetUsageTotalsCommandError = function (output, conte
|
|
|
4692
4690
|
return [4, parseBody(output.body, context)];
|
|
4693
4691
|
case 1:
|
|
4694
4692
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4695
|
-
errorCode = "UnknownError";
|
|
4696
4693
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4697
4694
|
_b = errorCode;
|
|
4698
4695
|
switch (_b) {
|
|
@@ -4728,10 +4725,12 @@ var deserializeAws_restJson1GetUsageTotalsCommandError = function (output, conte
|
|
|
4728
4725
|
case 15: throw _d.sent();
|
|
4729
4726
|
case 16:
|
|
4730
4727
|
parsedBody = parsedOutput.body;
|
|
4728
|
+
$metadata = deserializeMetadata(output);
|
|
4729
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4731
4730
|
response = new __BaseException({
|
|
4732
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4731
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4733
4732
|
$fault: "client",
|
|
4734
|
-
$metadata:
|
|
4733
|
+
$metadata: $metadata,
|
|
4735
4734
|
});
|
|
4736
4735
|
throw __decorateServiceException(response, parsedBody);
|
|
4737
4736
|
}
|
|
@@ -4766,7 +4765,7 @@ export var deserializeAws_restJson1ListClassificationJobsCommand = function (out
|
|
|
4766
4765
|
});
|
|
4767
4766
|
}); };
|
|
4768
4767
|
var deserializeAws_restJson1ListClassificationJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4769
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4768
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4770
4769
|
var _c;
|
|
4771
4770
|
return __generator(this, function (_d) {
|
|
4772
4771
|
switch (_d.label) {
|
|
@@ -4776,7 +4775,6 @@ var deserializeAws_restJson1ListClassificationJobsCommandError = function (outpu
|
|
|
4776
4775
|
return [4, parseBody(output.body, context)];
|
|
4777
4776
|
case 1:
|
|
4778
4777
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4779
|
-
errorCode = "UnknownError";
|
|
4780
4778
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4781
4779
|
_b = errorCode;
|
|
4782
4780
|
switch (_b) {
|
|
@@ -4812,10 +4810,12 @@ var deserializeAws_restJson1ListClassificationJobsCommandError = function (outpu
|
|
|
4812
4810
|
case 15: throw _d.sent();
|
|
4813
4811
|
case 16:
|
|
4814
4812
|
parsedBody = parsedOutput.body;
|
|
4813
|
+
$metadata = deserializeMetadata(output);
|
|
4814
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4815
4815
|
response = new __BaseException({
|
|
4816
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4816
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4817
4817
|
$fault: "client",
|
|
4818
|
-
$metadata:
|
|
4818
|
+
$metadata: $metadata,
|
|
4819
4819
|
});
|
|
4820
4820
|
throw __decorateServiceException(response, parsedBody);
|
|
4821
4821
|
}
|
|
@@ -4850,7 +4850,7 @@ export var deserializeAws_restJson1ListCustomDataIdentifiersCommand = function (
|
|
|
4850
4850
|
});
|
|
4851
4851
|
}); };
|
|
4852
4852
|
var deserializeAws_restJson1ListCustomDataIdentifiersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4853
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4853
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4854
4854
|
var _c;
|
|
4855
4855
|
return __generator(this, function (_d) {
|
|
4856
4856
|
switch (_d.label) {
|
|
@@ -4860,7 +4860,6 @@ var deserializeAws_restJson1ListCustomDataIdentifiersCommandError = function (ou
|
|
|
4860
4860
|
return [4, parseBody(output.body, context)];
|
|
4861
4861
|
case 1:
|
|
4862
4862
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4863
|
-
errorCode = "UnknownError";
|
|
4864
4863
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4865
4864
|
_b = errorCode;
|
|
4866
4865
|
switch (_b) {
|
|
@@ -4896,10 +4895,12 @@ var deserializeAws_restJson1ListCustomDataIdentifiersCommandError = function (ou
|
|
|
4896
4895
|
case 15: throw _d.sent();
|
|
4897
4896
|
case 16:
|
|
4898
4897
|
parsedBody = parsedOutput.body;
|
|
4898
|
+
$metadata = deserializeMetadata(output);
|
|
4899
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4899
4900
|
response = new __BaseException({
|
|
4900
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4901
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4901
4902
|
$fault: "client",
|
|
4902
|
-
$metadata:
|
|
4903
|
+
$metadata: $metadata,
|
|
4903
4904
|
});
|
|
4904
4905
|
throw __decorateServiceException(response, parsedBody);
|
|
4905
4906
|
}
|
|
@@ -4934,7 +4935,7 @@ export var deserializeAws_restJson1ListFindingsCommand = function (output, conte
|
|
|
4934
4935
|
});
|
|
4935
4936
|
}); };
|
|
4936
4937
|
var deserializeAws_restJson1ListFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4937
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4938
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4938
4939
|
var _c;
|
|
4939
4940
|
return __generator(this, function (_d) {
|
|
4940
4941
|
switch (_d.label) {
|
|
@@ -4944,7 +4945,6 @@ var deserializeAws_restJson1ListFindingsCommandError = function (output, context
|
|
|
4944
4945
|
return [4, parseBody(output.body, context)];
|
|
4945
4946
|
case 1:
|
|
4946
4947
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4947
|
-
errorCode = "UnknownError";
|
|
4948
4948
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4949
4949
|
_b = errorCode;
|
|
4950
4950
|
switch (_b) {
|
|
@@ -4980,10 +4980,12 @@ var deserializeAws_restJson1ListFindingsCommandError = function (output, context
|
|
|
4980
4980
|
case 15: throw _d.sent();
|
|
4981
4981
|
case 16:
|
|
4982
4982
|
parsedBody = parsedOutput.body;
|
|
4983
|
+
$metadata = deserializeMetadata(output);
|
|
4984
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4983
4985
|
response = new __BaseException({
|
|
4984
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4986
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4985
4987
|
$fault: "client",
|
|
4986
|
-
$metadata:
|
|
4988
|
+
$metadata: $metadata,
|
|
4987
4989
|
});
|
|
4988
4990
|
throw __decorateServiceException(response, parsedBody);
|
|
4989
4991
|
}
|
|
@@ -5018,7 +5020,7 @@ export var deserializeAws_restJson1ListFindingsFiltersCommand = function (output
|
|
|
5018
5020
|
});
|
|
5019
5021
|
}); };
|
|
5020
5022
|
var deserializeAws_restJson1ListFindingsFiltersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5021
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5023
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5022
5024
|
var _c;
|
|
5023
5025
|
return __generator(this, function (_d) {
|
|
5024
5026
|
switch (_d.label) {
|
|
@@ -5028,7 +5030,6 @@ var deserializeAws_restJson1ListFindingsFiltersCommandError = function (output,
|
|
|
5028
5030
|
return [4, parseBody(output.body, context)];
|
|
5029
5031
|
case 1:
|
|
5030
5032
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5031
|
-
errorCode = "UnknownError";
|
|
5032
5033
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5033
5034
|
_b = errorCode;
|
|
5034
5035
|
switch (_b) {
|
|
@@ -5064,10 +5065,12 @@ var deserializeAws_restJson1ListFindingsFiltersCommandError = function (output,
|
|
|
5064
5065
|
case 15: throw _d.sent();
|
|
5065
5066
|
case 16:
|
|
5066
5067
|
parsedBody = parsedOutput.body;
|
|
5068
|
+
$metadata = deserializeMetadata(output);
|
|
5069
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5067
5070
|
response = new __BaseException({
|
|
5068
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5071
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5069
5072
|
$fault: "client",
|
|
5070
|
-
$metadata:
|
|
5073
|
+
$metadata: $metadata,
|
|
5071
5074
|
});
|
|
5072
5075
|
throw __decorateServiceException(response, parsedBody);
|
|
5073
5076
|
}
|
|
@@ -5102,7 +5105,7 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
5102
5105
|
});
|
|
5103
5106
|
}); };
|
|
5104
5107
|
var deserializeAws_restJson1ListInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5105
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5108
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5106
5109
|
var _c;
|
|
5107
5110
|
return __generator(this, function (_d) {
|
|
5108
5111
|
switch (_d.label) {
|
|
@@ -5112,7 +5115,6 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
5112
5115
|
return [4, parseBody(output.body, context)];
|
|
5113
5116
|
case 1:
|
|
5114
5117
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5115
|
-
errorCode = "UnknownError";
|
|
5116
5118
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5117
5119
|
_b = errorCode;
|
|
5118
5120
|
switch (_b) {
|
|
@@ -5148,10 +5150,12 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
5148
5150
|
case 15: throw _d.sent();
|
|
5149
5151
|
case 16:
|
|
5150
5152
|
parsedBody = parsedOutput.body;
|
|
5153
|
+
$metadata = deserializeMetadata(output);
|
|
5154
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5151
5155
|
response = new __BaseException({
|
|
5152
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5156
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5153
5157
|
$fault: "client",
|
|
5154
|
-
$metadata:
|
|
5158
|
+
$metadata: $metadata,
|
|
5155
5159
|
});
|
|
5156
5160
|
throw __decorateServiceException(response, parsedBody);
|
|
5157
5161
|
}
|
|
@@ -5186,7 +5190,7 @@ export var deserializeAws_restJson1ListManagedDataIdentifiersCommand = function
|
|
|
5186
5190
|
});
|
|
5187
5191
|
}); };
|
|
5188
5192
|
var deserializeAws_restJson1ListManagedDataIdentifiersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5189
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
5193
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
5190
5194
|
var _b;
|
|
5191
5195
|
return __generator(this, function (_c) {
|
|
5192
5196
|
switch (_c.label) {
|
|
@@ -5196,15 +5200,16 @@ var deserializeAws_restJson1ListManagedDataIdentifiersCommandError = function (o
|
|
|
5196
5200
|
return [4, parseBody(output.body, context)];
|
|
5197
5201
|
case 1:
|
|
5198
5202
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5199
|
-
errorCode = "UnknownError";
|
|
5200
5203
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5201
5204
|
switch (errorCode) {
|
|
5202
5205
|
default:
|
|
5203
5206
|
parsedBody = parsedOutput.body;
|
|
5207
|
+
$metadata = deserializeMetadata(output);
|
|
5208
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5204
5209
|
response = new __BaseException({
|
|
5205
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5210
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5206
5211
|
$fault: "client",
|
|
5207
|
-
$metadata:
|
|
5212
|
+
$metadata: $metadata,
|
|
5208
5213
|
});
|
|
5209
5214
|
throw __decorateServiceException(response, parsedBody);
|
|
5210
5215
|
}
|
|
@@ -5241,7 +5246,7 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
5241
5246
|
});
|
|
5242
5247
|
}); };
|
|
5243
5248
|
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5244
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5249
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5245
5250
|
var _c;
|
|
5246
5251
|
return __generator(this, function (_d) {
|
|
5247
5252
|
switch (_d.label) {
|
|
@@ -5251,7 +5256,6 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
5251
5256
|
return [4, parseBody(output.body, context)];
|
|
5252
5257
|
case 1:
|
|
5253
5258
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5254
|
-
errorCode = "UnknownError";
|
|
5255
5259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5256
5260
|
_b = errorCode;
|
|
5257
5261
|
switch (_b) {
|
|
@@ -5287,10 +5291,12 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
5287
5291
|
case 15: throw _d.sent();
|
|
5288
5292
|
case 16:
|
|
5289
5293
|
parsedBody = parsedOutput.body;
|
|
5294
|
+
$metadata = deserializeMetadata(output);
|
|
5295
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5290
5296
|
response = new __BaseException({
|
|
5291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5297
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5292
5298
|
$fault: "client",
|
|
5293
|
-
$metadata:
|
|
5299
|
+
$metadata: $metadata,
|
|
5294
5300
|
});
|
|
5295
5301
|
throw __decorateServiceException(response, parsedBody);
|
|
5296
5302
|
}
|
|
@@ -5325,7 +5331,7 @@ export var deserializeAws_restJson1ListOrganizationAdminAccountsCommand = functi
|
|
|
5325
5331
|
});
|
|
5326
5332
|
}); };
|
|
5327
5333
|
var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5328
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5334
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5329
5335
|
var _c;
|
|
5330
5336
|
return __generator(this, function (_d) {
|
|
5331
5337
|
switch (_d.label) {
|
|
@@ -5335,7 +5341,6 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
|
|
|
5335
5341
|
return [4, parseBody(output.body, context)];
|
|
5336
5342
|
case 1:
|
|
5337
5343
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5338
|
-
errorCode = "UnknownError";
|
|
5339
5344
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5340
5345
|
_b = errorCode;
|
|
5341
5346
|
switch (_b) {
|
|
@@ -5371,10 +5376,12 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
|
|
|
5371
5376
|
case 15: throw _d.sent();
|
|
5372
5377
|
case 16:
|
|
5373
5378
|
parsedBody = parsedOutput.body;
|
|
5379
|
+
$metadata = deserializeMetadata(output);
|
|
5380
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5374
5381
|
response = new __BaseException({
|
|
5375
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5382
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5376
5383
|
$fault: "client",
|
|
5377
|
-
$metadata:
|
|
5384
|
+
$metadata: $metadata,
|
|
5378
5385
|
});
|
|
5379
5386
|
throw __decorateServiceException(response, parsedBody);
|
|
5380
5387
|
}
|
|
@@ -5405,7 +5412,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
5405
5412
|
});
|
|
5406
5413
|
}); };
|
|
5407
5414
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5408
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
5415
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
5409
5416
|
var _b;
|
|
5410
5417
|
return __generator(this, function (_c) {
|
|
5411
5418
|
switch (_c.label) {
|
|
@@ -5415,15 +5422,16 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
5415
5422
|
return [4, parseBody(output.body, context)];
|
|
5416
5423
|
case 1:
|
|
5417
5424
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5418
|
-
errorCode = "UnknownError";
|
|
5419
5425
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5420
5426
|
switch (errorCode) {
|
|
5421
5427
|
default:
|
|
5422
5428
|
parsedBody = parsedOutput.body;
|
|
5429
|
+
$metadata = deserializeMetadata(output);
|
|
5430
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5423
5431
|
response = new __BaseException({
|
|
5424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5432
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5425
5433
|
$fault: "client",
|
|
5426
|
-
$metadata:
|
|
5434
|
+
$metadata: $metadata,
|
|
5427
5435
|
});
|
|
5428
5436
|
throw __decorateServiceException(response, parsedBody);
|
|
5429
5437
|
}
|
|
@@ -5456,7 +5464,7 @@ export var deserializeAws_restJson1PutClassificationExportConfigurationCommand =
|
|
|
5456
5464
|
});
|
|
5457
5465
|
}); };
|
|
5458
5466
|
var deserializeAws_restJson1PutClassificationExportConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5459
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5467
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5460
5468
|
var _c;
|
|
5461
5469
|
return __generator(this, function (_d) {
|
|
5462
5470
|
switch (_d.label) {
|
|
@@ -5466,7 +5474,6 @@ var deserializeAws_restJson1PutClassificationExportConfigurationCommandError = f
|
|
|
5466
5474
|
return [4, parseBody(output.body, context)];
|
|
5467
5475
|
case 1:
|
|
5468
5476
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5469
|
-
errorCode = "UnknownError";
|
|
5470
5477
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5471
5478
|
_b = errorCode;
|
|
5472
5479
|
switch (_b) {
|
|
@@ -5502,10 +5509,12 @@ var deserializeAws_restJson1PutClassificationExportConfigurationCommandError = f
|
|
|
5502
5509
|
case 15: throw _d.sent();
|
|
5503
5510
|
case 16:
|
|
5504
5511
|
parsedBody = parsedOutput.body;
|
|
5512
|
+
$metadata = deserializeMetadata(output);
|
|
5513
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5505
5514
|
response = new __BaseException({
|
|
5506
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5515
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5507
5516
|
$fault: "client",
|
|
5508
|
-
$metadata:
|
|
5517
|
+
$metadata: $metadata,
|
|
5509
5518
|
});
|
|
5510
5519
|
throw __decorateServiceException(response, parsedBody);
|
|
5511
5520
|
}
|
|
@@ -5530,7 +5539,7 @@ export var deserializeAws_restJson1PutFindingsPublicationConfigurationCommand =
|
|
|
5530
5539
|
});
|
|
5531
5540
|
}); };
|
|
5532
5541
|
var deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5533
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5542
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5534
5543
|
var _c;
|
|
5535
5544
|
return __generator(this, function (_d) {
|
|
5536
5545
|
switch (_d.label) {
|
|
@@ -5540,7 +5549,6 @@ var deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError = fu
|
|
|
5540
5549
|
return [4, parseBody(output.body, context)];
|
|
5541
5550
|
case 1:
|
|
5542
5551
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5543
|
-
errorCode = "UnknownError";
|
|
5544
5552
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5545
5553
|
_b = errorCode;
|
|
5546
5554
|
switch (_b) {
|
|
@@ -5576,10 +5584,12 @@ var deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError = fu
|
|
|
5576
5584
|
case 15: throw _d.sent();
|
|
5577
5585
|
case 16:
|
|
5578
5586
|
parsedBody = parsedOutput.body;
|
|
5587
|
+
$metadata = deserializeMetadata(output);
|
|
5588
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5579
5589
|
response = new __BaseException({
|
|
5580
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5590
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5581
5591
|
$fault: "client",
|
|
5582
|
-
$metadata:
|
|
5592
|
+
$metadata: $metadata,
|
|
5583
5593
|
});
|
|
5584
5594
|
throw __decorateServiceException(response, parsedBody);
|
|
5585
5595
|
}
|
|
@@ -5614,7 +5624,7 @@ export var deserializeAws_restJson1SearchResourcesCommand = function (output, co
|
|
|
5614
5624
|
});
|
|
5615
5625
|
}); };
|
|
5616
5626
|
var deserializeAws_restJson1SearchResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5617
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5627
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5618
5628
|
var _c;
|
|
5619
5629
|
return __generator(this, function (_d) {
|
|
5620
5630
|
switch (_d.label) {
|
|
@@ -5624,7 +5634,6 @@ var deserializeAws_restJson1SearchResourcesCommandError = function (output, cont
|
|
|
5624
5634
|
return [4, parseBody(output.body, context)];
|
|
5625
5635
|
case 1:
|
|
5626
5636
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5627
|
-
errorCode = "UnknownError";
|
|
5628
5637
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5629
5638
|
_b = errorCode;
|
|
5630
5639
|
switch (_b) {
|
|
@@ -5660,10 +5669,12 @@ var deserializeAws_restJson1SearchResourcesCommandError = function (output, cont
|
|
|
5660
5669
|
case 15: throw _d.sent();
|
|
5661
5670
|
case 16:
|
|
5662
5671
|
parsedBody = parsedOutput.body;
|
|
5672
|
+
$metadata = deserializeMetadata(output);
|
|
5673
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5663
5674
|
response = new __BaseException({
|
|
5664
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5665
5676
|
$fault: "client",
|
|
5666
|
-
$metadata:
|
|
5677
|
+
$metadata: $metadata,
|
|
5667
5678
|
});
|
|
5668
5679
|
throw __decorateServiceException(response, parsedBody);
|
|
5669
5680
|
}
|
|
@@ -5688,7 +5699,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
5688
5699
|
});
|
|
5689
5700
|
}); };
|
|
5690
5701
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5691
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
5702
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
5692
5703
|
var _b;
|
|
5693
5704
|
return __generator(this, function (_c) {
|
|
5694
5705
|
switch (_c.label) {
|
|
@@ -5698,15 +5709,16 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
5698
5709
|
return [4, parseBody(output.body, context)];
|
|
5699
5710
|
case 1:
|
|
5700
5711
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5701
|
-
errorCode = "UnknownError";
|
|
5702
5712
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5703
5713
|
switch (errorCode) {
|
|
5704
5714
|
default:
|
|
5705
5715
|
parsedBody = parsedOutput.body;
|
|
5716
|
+
$metadata = deserializeMetadata(output);
|
|
5717
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5706
5718
|
response = new __BaseException({
|
|
5707
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5719
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5708
5720
|
$fault: "client",
|
|
5709
|
-
$metadata:
|
|
5721
|
+
$metadata: $metadata,
|
|
5710
5722
|
});
|
|
5711
5723
|
throw __decorateServiceException(response, parsedBody);
|
|
5712
5724
|
}
|
|
@@ -5739,7 +5751,7 @@ export var deserializeAws_restJson1TestCustomDataIdentifierCommand = function (o
|
|
|
5739
5751
|
});
|
|
5740
5752
|
}); };
|
|
5741
5753
|
var deserializeAws_restJson1TestCustomDataIdentifierCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5742
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5754
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5743
5755
|
var _c;
|
|
5744
5756
|
return __generator(this, function (_d) {
|
|
5745
5757
|
switch (_d.label) {
|
|
@@ -5749,7 +5761,6 @@ var deserializeAws_restJson1TestCustomDataIdentifierCommandError = function (out
|
|
|
5749
5761
|
return [4, parseBody(output.body, context)];
|
|
5750
5762
|
case 1:
|
|
5751
5763
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5752
|
-
errorCode = "UnknownError";
|
|
5753
5764
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5754
5765
|
_b = errorCode;
|
|
5755
5766
|
switch (_b) {
|
|
@@ -5785,10 +5796,12 @@ var deserializeAws_restJson1TestCustomDataIdentifierCommandError = function (out
|
|
|
5785
5796
|
case 15: throw _d.sent();
|
|
5786
5797
|
case 16:
|
|
5787
5798
|
parsedBody = parsedOutput.body;
|
|
5799
|
+
$metadata = deserializeMetadata(output);
|
|
5800
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5788
5801
|
response = new __BaseException({
|
|
5789
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5790
5803
|
$fault: "client",
|
|
5791
|
-
$metadata:
|
|
5804
|
+
$metadata: $metadata,
|
|
5792
5805
|
});
|
|
5793
5806
|
throw __decorateServiceException(response, parsedBody);
|
|
5794
5807
|
}
|
|
@@ -5813,7 +5826,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
5813
5826
|
});
|
|
5814
5827
|
}); };
|
|
5815
5828
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5816
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
5829
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
5817
5830
|
var _b;
|
|
5818
5831
|
return __generator(this, function (_c) {
|
|
5819
5832
|
switch (_c.label) {
|
|
@@ -5823,15 +5836,16 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
5823
5836
|
return [4, parseBody(output.body, context)];
|
|
5824
5837
|
case 1:
|
|
5825
5838
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5826
|
-
errorCode = "UnknownError";
|
|
5827
5839
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5828
5840
|
switch (errorCode) {
|
|
5829
5841
|
default:
|
|
5830
5842
|
parsedBody = parsedOutput.body;
|
|
5843
|
+
$metadata = deserializeMetadata(output);
|
|
5844
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5831
5845
|
response = new __BaseException({
|
|
5832
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5846
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5833
5847
|
$fault: "client",
|
|
5834
|
-
$metadata:
|
|
5848
|
+
$metadata: $metadata,
|
|
5835
5849
|
});
|
|
5836
5850
|
throw __decorateServiceException(response, parsedBody);
|
|
5837
5851
|
}
|
|
@@ -5858,7 +5872,7 @@ export var deserializeAws_restJson1UpdateClassificationJobCommand = function (ou
|
|
|
5858
5872
|
});
|
|
5859
5873
|
}); };
|
|
5860
5874
|
var deserializeAws_restJson1UpdateClassificationJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5861
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5875
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5862
5876
|
var _c;
|
|
5863
5877
|
return __generator(this, function (_d) {
|
|
5864
5878
|
switch (_d.label) {
|
|
@@ -5868,7 +5882,6 @@ var deserializeAws_restJson1UpdateClassificationJobCommandError = function (outp
|
|
|
5868
5882
|
return [4, parseBody(output.body, context)];
|
|
5869
5883
|
case 1:
|
|
5870
5884
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5871
|
-
errorCode = "UnknownError";
|
|
5872
5885
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5873
5886
|
_b = errorCode;
|
|
5874
5887
|
switch (_b) {
|
|
@@ -5904,10 +5917,12 @@ var deserializeAws_restJson1UpdateClassificationJobCommandError = function (outp
|
|
|
5904
5917
|
case 15: throw _d.sent();
|
|
5905
5918
|
case 16:
|
|
5906
5919
|
parsedBody = parsedOutput.body;
|
|
5920
|
+
$metadata = deserializeMetadata(output);
|
|
5921
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5907
5922
|
response = new __BaseException({
|
|
5908
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5923
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5909
5924
|
$fault: "client",
|
|
5910
|
-
$metadata:
|
|
5925
|
+
$metadata: $metadata,
|
|
5911
5926
|
});
|
|
5912
5927
|
throw __decorateServiceException(response, parsedBody);
|
|
5913
5928
|
}
|
|
@@ -5942,7 +5957,7 @@ export var deserializeAws_restJson1UpdateFindingsFilterCommand = function (outpu
|
|
|
5942
5957
|
});
|
|
5943
5958
|
}); };
|
|
5944
5959
|
var deserializeAws_restJson1UpdateFindingsFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5945
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5960
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5946
5961
|
var _c;
|
|
5947
5962
|
return __generator(this, function (_d) {
|
|
5948
5963
|
switch (_d.label) {
|
|
@@ -5952,7 +5967,6 @@ var deserializeAws_restJson1UpdateFindingsFilterCommandError = function (output,
|
|
|
5952
5967
|
return [4, parseBody(output.body, context)];
|
|
5953
5968
|
case 1:
|
|
5954
5969
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5955
|
-
errorCode = "UnknownError";
|
|
5956
5970
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5957
5971
|
_b = errorCode;
|
|
5958
5972
|
switch (_b) {
|
|
@@ -5988,10 +6002,12 @@ var deserializeAws_restJson1UpdateFindingsFilterCommandError = function (output,
|
|
|
5988
6002
|
case 15: throw _d.sent();
|
|
5989
6003
|
case 16:
|
|
5990
6004
|
parsedBody = parsedOutput.body;
|
|
6005
|
+
$metadata = deserializeMetadata(output);
|
|
6006
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5991
6007
|
response = new __BaseException({
|
|
5992
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6008
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5993
6009
|
$fault: "client",
|
|
5994
|
-
$metadata:
|
|
6010
|
+
$metadata: $metadata,
|
|
5995
6011
|
});
|
|
5996
6012
|
throw __decorateServiceException(response, parsedBody);
|
|
5997
6013
|
}
|
|
@@ -6016,7 +6032,7 @@ export var deserializeAws_restJson1UpdateMacieSessionCommand = function (output,
|
|
|
6016
6032
|
});
|
|
6017
6033
|
}); };
|
|
6018
6034
|
var deserializeAws_restJson1UpdateMacieSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6019
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6035
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6020
6036
|
var _c;
|
|
6021
6037
|
return __generator(this, function (_d) {
|
|
6022
6038
|
switch (_d.label) {
|
|
@@ -6026,7 +6042,6 @@ var deserializeAws_restJson1UpdateMacieSessionCommandError = function (output, c
|
|
|
6026
6042
|
return [4, parseBody(output.body, context)];
|
|
6027
6043
|
case 1:
|
|
6028
6044
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6029
|
-
errorCode = "UnknownError";
|
|
6030
6045
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6031
6046
|
_b = errorCode;
|
|
6032
6047
|
switch (_b) {
|
|
@@ -6062,10 +6077,12 @@ var deserializeAws_restJson1UpdateMacieSessionCommandError = function (output, c
|
|
|
6062
6077
|
case 15: throw _d.sent();
|
|
6063
6078
|
case 16:
|
|
6064
6079
|
parsedBody = parsedOutput.body;
|
|
6080
|
+
$metadata = deserializeMetadata(output);
|
|
6081
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6065
6082
|
response = new __BaseException({
|
|
6066
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6067
6084
|
$fault: "client",
|
|
6068
|
-
$metadata:
|
|
6085
|
+
$metadata: $metadata,
|
|
6069
6086
|
});
|
|
6070
6087
|
throw __decorateServiceException(response, parsedBody);
|
|
6071
6088
|
}
|
|
@@ -6090,7 +6107,7 @@ export var deserializeAws_restJson1UpdateMemberSessionCommand = function (output
|
|
|
6090
6107
|
});
|
|
6091
6108
|
}); };
|
|
6092
6109
|
var deserializeAws_restJson1UpdateMemberSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6093
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6110
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6094
6111
|
var _c;
|
|
6095
6112
|
return __generator(this, function (_d) {
|
|
6096
6113
|
switch (_d.label) {
|
|
@@ -6100,7 +6117,6 @@ var deserializeAws_restJson1UpdateMemberSessionCommandError = function (output,
|
|
|
6100
6117
|
return [4, parseBody(output.body, context)];
|
|
6101
6118
|
case 1:
|
|
6102
6119
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6103
|
-
errorCode = "UnknownError";
|
|
6104
6120
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6105
6121
|
_b = errorCode;
|
|
6106
6122
|
switch (_b) {
|
|
@@ -6136,10 +6152,12 @@ var deserializeAws_restJson1UpdateMemberSessionCommandError = function (output,
|
|
|
6136
6152
|
case 15: throw _d.sent();
|
|
6137
6153
|
case 16:
|
|
6138
6154
|
parsedBody = parsedOutput.body;
|
|
6155
|
+
$metadata = deserializeMetadata(output);
|
|
6156
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6139
6157
|
response = new __BaseException({
|
|
6140
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6158
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6141
6159
|
$fault: "client",
|
|
6142
|
-
$metadata:
|
|
6160
|
+
$metadata: $metadata,
|
|
6143
6161
|
});
|
|
6144
6162
|
throw __decorateServiceException(response, parsedBody);
|
|
6145
6163
|
}
|
|
@@ -6164,7 +6182,7 @@ export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = func
|
|
|
6164
6182
|
});
|
|
6165
6183
|
}); };
|
|
6166
6184
|
var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6167
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6185
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6168
6186
|
var _c;
|
|
6169
6187
|
return __generator(this, function (_d) {
|
|
6170
6188
|
switch (_d.label) {
|
|
@@ -6174,7 +6192,6 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
6174
6192
|
return [4, parseBody(output.body, context)];
|
|
6175
6193
|
case 1:
|
|
6176
6194
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6177
|
-
errorCode = "UnknownError";
|
|
6178
6195
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6179
6196
|
_b = errorCode;
|
|
6180
6197
|
switch (_b) {
|
|
@@ -6210,10 +6227,12 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
6210
6227
|
case 15: throw _d.sent();
|
|
6211
6228
|
case 16:
|
|
6212
6229
|
parsedBody = parsedOutput.body;
|
|
6230
|
+
$metadata = deserializeMetadata(output);
|
|
6231
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6213
6232
|
response = new __BaseException({
|
|
6214
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6215
6234
|
$fault: "client",
|
|
6216
|
-
$metadata:
|
|
6235
|
+
$metadata: $metadata,
|
|
6217
6236
|
});
|
|
6218
6237
|
throw __decorateServiceException(response, parsedBody);
|
|
6219
6238
|
}
|
|
@@ -6414,7 +6433,7 @@ var serializeAws_restJson1__listOfUsageStatisticsFilter = function (input, conte
|
|
|
6414
6433
|
});
|
|
6415
6434
|
};
|
|
6416
6435
|
var serializeAws_restJson1AccountDetail = function (input, context) {
|
|
6417
|
-
return __assign(__assign({}, (input.accountId
|
|
6436
|
+
return __assign(__assign({}, (input.accountId != null && { accountId: input.accountId })), (input.email != null && { email: input.email }));
|
|
6418
6437
|
};
|
|
6419
6438
|
var serializeAws_restJson1BucketCriteria = function (input, context) {
|
|
6420
6439
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -6427,29 +6446,23 @@ var serializeAws_restJson1BucketCriteria = function (input, context) {
|
|
|
6427
6446
|
}, {});
|
|
6428
6447
|
};
|
|
6429
6448
|
var serializeAws_restJson1BucketCriteriaAdditionalProperties = function (input, context) {
|
|
6430
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.eq
|
|
6431
|
-
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 &&
|
|
6432
|
-
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 }));
|
|
6433
6450
|
};
|
|
6434
6451
|
var serializeAws_restJson1BucketSortCriteria = function (input, context) {
|
|
6435
|
-
return __assign(__assign({}, (input.attributeName
|
|
6452
|
+
return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
|
|
6436
6453
|
};
|
|
6437
6454
|
var serializeAws_restJson1ClassificationExportConfiguration = function (input, context) {
|
|
6438
|
-
return __assign({}, (input.s3Destination
|
|
6439
|
-
input.s3Destination !== null && {
|
|
6455
|
+
return __assign({}, (input.s3Destination != null && {
|
|
6440
6456
|
s3Destination: serializeAws_restJson1S3Destination(input.s3Destination, context),
|
|
6441
6457
|
}));
|
|
6442
6458
|
};
|
|
6443
6459
|
var serializeAws_restJson1CriteriaBlockForJob = function (input, context) {
|
|
6444
|
-
return __assign({}, (input.and
|
|
6445
|
-
input.and !== null && { and: serializeAws_restJson1__listOfCriteriaForJob(input.and, context) }));
|
|
6460
|
+
return __assign({}, (input.and != null && { and: serializeAws_restJson1__listOfCriteriaForJob(input.and, context) }));
|
|
6446
6461
|
};
|
|
6447
6462
|
var serializeAws_restJson1CriteriaForJob = function (input, context) {
|
|
6448
|
-
return __assign(__assign({}, (input.simpleCriterion
|
|
6449
|
-
input.simpleCriterion !== null && {
|
|
6463
|
+
return __assign(__assign({}, (input.simpleCriterion != null && {
|
|
6450
6464
|
simpleCriterion: serializeAws_restJson1SimpleCriterionForJob(input.simpleCriterion, context),
|
|
6451
|
-
})), (input.tagCriterion
|
|
6452
|
-
input.tagCriterion !== null && {
|
|
6465
|
+
})), (input.tagCriterion != null && {
|
|
6453
6466
|
tagCriterion: serializeAws_restJson1TagCriterionForJob(input.tagCriterion, context),
|
|
6454
6467
|
}));
|
|
6455
6468
|
};
|
|
@@ -6464,140 +6477,111 @@ var serializeAws_restJson1Criterion = function (input, context) {
|
|
|
6464
6477
|
}, {});
|
|
6465
6478
|
};
|
|
6466
6479
|
var serializeAws_restJson1CriterionAdditionalProperties = function (input, context) {
|
|
6467
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.eq
|
|
6468
|
-
input.eq !== null && { eq: serializeAws_restJson1__listOf__string(input.eq, context) })), (input.eqExactMatch !== undefined &&
|
|
6469
|
-
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 && {
|
|
6470
6481
|
eqExactMatch: serializeAws_restJson1__listOf__string(input.eqExactMatch, context),
|
|
6471
|
-
})), (input.gt
|
|
6472
|
-
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) }));
|
|
6473
6483
|
};
|
|
6474
6484
|
var serializeAws_restJson1DailySchedule = function (input, context) {
|
|
6475
6485
|
return {};
|
|
6476
6486
|
};
|
|
6477
6487
|
var serializeAws_restJson1FindingCriteria = function (input, context) {
|
|
6478
|
-
return __assign({}, (input.criterion
|
|
6479
|
-
input.criterion !== null && { criterion: serializeAws_restJson1Criterion(input.criterion, context) }));
|
|
6488
|
+
return __assign({}, (input.criterion != null && { criterion: serializeAws_restJson1Criterion(input.criterion, context) }));
|
|
6480
6489
|
};
|
|
6481
6490
|
var serializeAws_restJson1FindingStatisticsSortCriteria = function (input, context) {
|
|
6482
|
-
return __assign(__assign({}, (input.attributeName
|
|
6491
|
+
return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
|
|
6483
6492
|
};
|
|
6484
6493
|
var serializeAws_restJson1JobScheduleFrequency = function (input, context) {
|
|
6485
|
-
return __assign(__assign(__assign({}, (input.dailySchedule
|
|
6486
|
-
input.dailySchedule !== null && {
|
|
6494
|
+
return __assign(__assign(__assign({}, (input.dailySchedule != null && {
|
|
6487
6495
|
dailySchedule: serializeAws_restJson1DailySchedule(input.dailySchedule, context),
|
|
6488
|
-
})), (input.monthlySchedule
|
|
6489
|
-
input.monthlySchedule !== null && {
|
|
6496
|
+
})), (input.monthlySchedule != null && {
|
|
6490
6497
|
monthlySchedule: serializeAws_restJson1MonthlySchedule(input.monthlySchedule, context),
|
|
6491
|
-
})), (input.weeklySchedule
|
|
6492
|
-
input.weeklySchedule !== null && {
|
|
6498
|
+
})), (input.weeklySchedule != null && {
|
|
6493
6499
|
weeklySchedule: serializeAws_restJson1WeeklySchedule(input.weeklySchedule, context),
|
|
6494
6500
|
}));
|
|
6495
6501
|
};
|
|
6496
6502
|
var serializeAws_restJson1JobScopeTerm = function (input, context) {
|
|
6497
|
-
return __assign(__assign({}, (input.simpleScopeTerm
|
|
6498
|
-
input.simpleScopeTerm !== null && {
|
|
6503
|
+
return __assign(__assign({}, (input.simpleScopeTerm != null && {
|
|
6499
6504
|
simpleScopeTerm: serializeAws_restJson1SimpleScopeTerm(input.simpleScopeTerm, context),
|
|
6500
|
-
})), (input.tagScopeTerm
|
|
6501
|
-
|
|
6505
|
+
})), (input.tagScopeTerm != null && {
|
|
6506
|
+
tagScopeTerm: serializeAws_restJson1TagScopeTerm(input.tagScopeTerm, context),
|
|
6507
|
+
}));
|
|
6502
6508
|
};
|
|
6503
6509
|
var serializeAws_restJson1JobScopingBlock = function (input, context) {
|
|
6504
|
-
return __assign({}, (input.and
|
|
6505
|
-
input.and !== null && { and: serializeAws_restJson1__listOfJobScopeTerm(input.and, context) }));
|
|
6510
|
+
return __assign({}, (input.and != null && { and: serializeAws_restJson1__listOfJobScopeTerm(input.and, context) }));
|
|
6506
6511
|
};
|
|
6507
6512
|
var serializeAws_restJson1ListJobsFilterCriteria = function (input, context) {
|
|
6508
|
-
return __assign(__assign({}, (input.excludes
|
|
6509
|
-
input.excludes !== null && {
|
|
6513
|
+
return __assign(__assign({}, (input.excludes != null && {
|
|
6510
6514
|
excludes: serializeAws_restJson1__listOfListJobsFilterTerm(input.excludes, context),
|
|
6511
|
-
})), (input.includes
|
|
6512
|
-
input.includes !== null && {
|
|
6515
|
+
})), (input.includes != null && {
|
|
6513
6516
|
includes: serializeAws_restJson1__listOfListJobsFilterTerm(input.includes, context),
|
|
6514
6517
|
}));
|
|
6515
6518
|
};
|
|
6516
6519
|
var serializeAws_restJson1ListJobsFilterTerm = function (input, context) {
|
|
6517
|
-
return __assign(__assign(__assign({}, (input.comparator
|
|
6518
|
-
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) }));
|
|
6519
6521
|
};
|
|
6520
6522
|
var serializeAws_restJson1ListJobsSortCriteria = function (input, context) {
|
|
6521
|
-
return __assign(__assign({}, (input.attributeName
|
|
6523
|
+
return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
|
|
6522
6524
|
};
|
|
6523
6525
|
var serializeAws_restJson1MonthlySchedule = function (input, context) {
|
|
6524
|
-
return __assign({}, (input.dayOfMonth
|
|
6526
|
+
return __assign({}, (input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth }));
|
|
6525
6527
|
};
|
|
6526
6528
|
var serializeAws_restJson1S3BucketCriteriaForJob = function (input, context) {
|
|
6527
|
-
return __assign(__assign({}, (input.excludes
|
|
6528
|
-
input.excludes !== null && { excludes: serializeAws_restJson1CriteriaBlockForJob(input.excludes, context) })), (input.includes !== undefined &&
|
|
6529
|
-
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) }));
|
|
6530
6530
|
};
|
|
6531
6531
|
var serializeAws_restJson1S3BucketDefinitionForJob = function (input, context) {
|
|
6532
|
-
return __assign(__assign({}, (input.accountId
|
|
6533
|
-
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) }));
|
|
6534
6533
|
};
|
|
6535
6534
|
var serializeAws_restJson1S3Destination = function (input, context) {
|
|
6536
|
-
return __assign(__assign(__assign({}, (input.bucketName
|
|
6535
|
+
return __assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.keyPrefix != null && { keyPrefix: input.keyPrefix })), (input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }));
|
|
6537
6536
|
};
|
|
6538
6537
|
var serializeAws_restJson1S3JobDefinition = function (input, context) {
|
|
6539
|
-
return __assign(__assign(__assign({}, (input.bucketCriteria
|
|
6540
|
-
input.bucketCriteria !== null && {
|
|
6538
|
+
return __assign(__assign(__assign({}, (input.bucketCriteria != null && {
|
|
6541
6539
|
bucketCriteria: serializeAws_restJson1S3BucketCriteriaForJob(input.bucketCriteria, context),
|
|
6542
|
-
})), (input.bucketDefinitions
|
|
6543
|
-
input.bucketDefinitions !== null && {
|
|
6540
|
+
})), (input.bucketDefinitions != null && {
|
|
6544
6541
|
bucketDefinitions: serializeAws_restJson1__listOfS3BucketDefinitionForJob(input.bucketDefinitions, context),
|
|
6545
|
-
})), (input.scoping
|
|
6546
|
-
input.scoping !== null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }));
|
|
6542
|
+
})), (input.scoping != null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }));
|
|
6547
6543
|
};
|
|
6548
6544
|
var serializeAws_restJson1Scoping = function (input, context) {
|
|
6549
|
-
return __assign(__assign({}, (input.excludes
|
|
6550
|
-
input.excludes !== null && { excludes: serializeAws_restJson1JobScopingBlock(input.excludes, context) })), (input.includes !== undefined &&
|
|
6551
|
-
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) }));
|
|
6552
6546
|
};
|
|
6553
6547
|
var serializeAws_restJson1SearchResourcesBucketCriteria = function (input, context) {
|
|
6554
|
-
return __assign(__assign({}, (input.excludes
|
|
6555
|
-
input.excludes !== null && {
|
|
6548
|
+
return __assign(__assign({}, (input.excludes != null && {
|
|
6556
6549
|
excludes: serializeAws_restJson1SearchResourcesCriteriaBlock(input.excludes, context),
|
|
6557
|
-
})), (input.includes
|
|
6558
|
-
input.includes !== null && {
|
|
6550
|
+
})), (input.includes != null && {
|
|
6559
6551
|
includes: serializeAws_restJson1SearchResourcesCriteriaBlock(input.includes, context),
|
|
6560
6552
|
}));
|
|
6561
6553
|
};
|
|
6562
6554
|
var serializeAws_restJson1SearchResourcesCriteria = function (input, context) {
|
|
6563
|
-
return __assign(__assign({}, (input.simpleCriterion
|
|
6564
|
-
input.simpleCriterion !== null && {
|
|
6555
|
+
return __assign(__assign({}, (input.simpleCriterion != null && {
|
|
6565
6556
|
simpleCriterion: serializeAws_restJson1SearchResourcesSimpleCriterion(input.simpleCriterion, context),
|
|
6566
|
-
})), (input.tagCriterion
|
|
6567
|
-
input.tagCriterion !== null && {
|
|
6557
|
+
})), (input.tagCriterion != null && {
|
|
6568
6558
|
tagCriterion: serializeAws_restJson1SearchResourcesTagCriterion(input.tagCriterion, context),
|
|
6569
6559
|
}));
|
|
6570
6560
|
};
|
|
6571
6561
|
var serializeAws_restJson1SearchResourcesCriteriaBlock = function (input, context) {
|
|
6572
|
-
return __assign({}, (input.and
|
|
6573
|
-
input.and !== null && { and: serializeAws_restJson1__listOfSearchResourcesCriteria(input.and, context) }));
|
|
6562
|
+
return __assign({}, (input.and != null && { and: serializeAws_restJson1__listOfSearchResourcesCriteria(input.and, context) }));
|
|
6574
6563
|
};
|
|
6575
6564
|
var serializeAws_restJson1SearchResourcesSimpleCriterion = function (input, context) {
|
|
6576
|
-
return __assign(__assign(__assign({}, (input.comparator
|
|
6577
|
-
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) }));
|
|
6578
6566
|
};
|
|
6579
6567
|
var serializeAws_restJson1SearchResourcesSortCriteria = function (input, context) {
|
|
6580
|
-
return __assign(__assign({}, (input.attributeName
|
|
6568
|
+
return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
|
|
6581
6569
|
};
|
|
6582
6570
|
var serializeAws_restJson1SearchResourcesTagCriterion = function (input, context) {
|
|
6583
|
-
return __assign(__assign({}, (input.comparator
|
|
6584
|
-
input.tagValues !== null && {
|
|
6571
|
+
return __assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.tagValues != null && {
|
|
6585
6572
|
tagValues: serializeAws_restJson1__listOfSearchResourcesTagCriterionPair(input.tagValues, context),
|
|
6586
6573
|
}));
|
|
6587
6574
|
};
|
|
6588
6575
|
var serializeAws_restJson1SearchResourcesTagCriterionPair = function (input, context) {
|
|
6589
|
-
return __assign(__assign({}, (input.key
|
|
6576
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
6590
6577
|
};
|
|
6591
6578
|
var serializeAws_restJson1SecurityHubConfiguration = function (input, context) {
|
|
6592
|
-
return __assign(__assign({}, (input.publishClassificationFindings
|
|
6593
|
-
input.publishClassificationFindings !== null && {
|
|
6579
|
+
return __assign(__assign({}, (input.publishClassificationFindings != null && {
|
|
6594
6580
|
publishClassificationFindings: input.publishClassificationFindings,
|
|
6595
|
-
})), (input.publishPolicyFindings
|
|
6596
|
-
input.publishPolicyFindings !== null && { publishPolicyFindings: input.publishPolicyFindings }));
|
|
6581
|
+
})), (input.publishPolicyFindings != null && { publishPolicyFindings: input.publishPolicyFindings }));
|
|
6597
6582
|
};
|
|
6598
6583
|
var serializeAws_restJson1SeverityLevel = function (input, context) {
|
|
6599
|
-
return __assign(__assign({}, (input.occurrencesThreshold
|
|
6600
|
-
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 }));
|
|
6601
6585
|
};
|
|
6602
6586
|
var serializeAws_restJson1SeverityLevelList = function (input, context) {
|
|
6603
6587
|
return input
|
|
@@ -6610,24 +6594,21 @@ var serializeAws_restJson1SeverityLevelList = function (input, context) {
|
|
|
6610
6594
|
});
|
|
6611
6595
|
};
|
|
6612
6596
|
var serializeAws_restJson1SimpleCriterionForJob = function (input, context) {
|
|
6613
|
-
return __assign(__assign(__assign({}, (input.comparator
|
|
6614
|
-
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) }));
|
|
6615
6598
|
};
|
|
6616
6599
|
var serializeAws_restJson1SimpleScopeTerm = function (input, context) {
|
|
6617
|
-
return __assign(__assign(__assign({}, (input.comparator
|
|
6618
|
-
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) }));
|
|
6619
6601
|
};
|
|
6620
6602
|
var serializeAws_restJson1SortCriteria = function (input, context) {
|
|
6621
|
-
return __assign(__assign({}, (input.attributeName
|
|
6603
|
+
return __assign(__assign({}, (input.attributeName != null && { attributeName: input.attributeName })), (input.orderBy != null && { orderBy: input.orderBy }));
|
|
6622
6604
|
};
|
|
6623
6605
|
var serializeAws_restJson1TagCriterionForJob = function (input, context) {
|
|
6624
|
-
return __assign(__assign({}, (input.comparator
|
|
6625
|
-
input.tagValues !== null && {
|
|
6606
|
+
return __assign(__assign({}, (input.comparator != null && { comparator: input.comparator })), (input.tagValues != null && {
|
|
6626
6607
|
tagValues: serializeAws_restJson1__listOfTagCriterionPairForJob(input.tagValues, context),
|
|
6627
6608
|
}));
|
|
6628
6609
|
};
|
|
6629
6610
|
var serializeAws_restJson1TagCriterionPairForJob = function (input, context) {
|
|
6630
|
-
return __assign(__assign({}, (input.key
|
|
6611
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
6631
6612
|
};
|
|
6632
6613
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
6633
6614
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -6640,21 +6621,19 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
6640
6621
|
}, {});
|
|
6641
6622
|
};
|
|
6642
6623
|
var serializeAws_restJson1TagScopeTerm = function (input, context) {
|
|
6643
|
-
return __assign(__assign(__assign(__assign({}, (input.comparator
|
|
6644
|
-
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 }));
|
|
6645
6625
|
};
|
|
6646
6626
|
var serializeAws_restJson1TagValuePair = function (input, context) {
|
|
6647
|
-
return __assign(__assign({}, (input.key
|
|
6627
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
6648
6628
|
};
|
|
6649
6629
|
var serializeAws_restJson1UsageStatisticsFilter = function (input, context) {
|
|
6650
|
-
return __assign(__assign(__assign({}, (input.comparator
|
|
6651
|
-
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) }));
|
|
6652
6631
|
};
|
|
6653
6632
|
var serializeAws_restJson1UsageStatisticsSortBy = function (input, context) {
|
|
6654
|
-
return __assign(__assign({}, (input.key
|
|
6633
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.orderBy != null && { orderBy: input.orderBy }));
|
|
6655
6634
|
};
|
|
6656
6635
|
var serializeAws_restJson1WeeklySchedule = function (input, context) {
|
|
6657
|
-
return __assign({}, (input.dayOfWeek
|
|
6636
|
+
return __assign({}, (input.dayOfWeek != null && { dayOfWeek: input.dayOfWeek }));
|
|
6658
6637
|
};
|
|
6659
6638
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
6660
6639
|
var retVal = (output || [])
|
|
@@ -6917,7 +6896,7 @@ var deserializeAws_restJson1AccessControlList = function (output, context) {
|
|
|
6917
6896
|
};
|
|
6918
6897
|
var deserializeAws_restJson1AccountLevelPermissions = function (output, context) {
|
|
6919
6898
|
return {
|
|
6920
|
-
blockPublicAccess: output.blockPublicAccess
|
|
6899
|
+
blockPublicAccess: output.blockPublicAccess != null
|
|
6921
6900
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
6922
6901
|
: undefined,
|
|
6923
6902
|
};
|
|
@@ -6932,12 +6911,8 @@ var deserializeAws_restJson1ApiCallDetails = function (output, context) {
|
|
|
6932
6911
|
return {
|
|
6933
6912
|
api: __expectString(output.api),
|
|
6934
6913
|
apiServiceName: __expectString(output.apiServiceName),
|
|
6935
|
-
firstSeen: output.firstSeen
|
|
6936
|
-
|
|
6937
|
-
: undefined,
|
|
6938
|
-
lastSeen: output.lastSeen !== undefined && output.lastSeen !== null
|
|
6939
|
-
? __expectNonNull(__parseRfc3339DateTime(output.lastSeen))
|
|
6940
|
-
: undefined,
|
|
6914
|
+
firstSeen: output.firstSeen != null ? __expectNonNull(__parseRfc3339DateTime(output.firstSeen)) : undefined,
|
|
6915
|
+
lastSeen: output.lastSeen != null ? __expectNonNull(__parseRfc3339DateTime(output.lastSeen)) : undefined,
|
|
6941
6916
|
};
|
|
6942
6917
|
};
|
|
6943
6918
|
var deserializeAws_restJson1AssumedRole = function (output, context) {
|
|
@@ -6946,7 +6921,7 @@ var deserializeAws_restJson1AssumedRole = function (output, context) {
|
|
|
6946
6921
|
accountId: __expectString(output.accountId),
|
|
6947
6922
|
arn: __expectString(output.arn),
|
|
6948
6923
|
principalId: __expectString(output.principalId),
|
|
6949
|
-
sessionContext: output.sessionContext
|
|
6924
|
+
sessionContext: output.sessionContext != null
|
|
6950
6925
|
? deserializeAws_restJson1SessionContext(output.sessionContext, context)
|
|
6951
6926
|
: undefined,
|
|
6952
6927
|
};
|
|
@@ -6965,9 +6940,7 @@ var deserializeAws_restJson1AwsService = function (output, context) {
|
|
|
6965
6940
|
var deserializeAws_restJson1BatchGetCustomDataIdentifierSummary = function (output, context) {
|
|
6966
6941
|
return {
|
|
6967
6942
|
arn: __expectString(output.arn),
|
|
6968
|
-
createdAt: output.createdAt
|
|
6969
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
6970
|
-
: undefined,
|
|
6943
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
6971
6944
|
deleted: __expectBoolean(output.deleted),
|
|
6972
6945
|
description: __expectString(output.description),
|
|
6973
6946
|
id: __expectString(output.id),
|
|
@@ -7015,15 +6988,13 @@ var deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads = fu
|
|
|
7015
6988
|
};
|
|
7016
6989
|
var deserializeAws_restJson1BucketLevelPermissions = function (output, context) {
|
|
7017
6990
|
return {
|
|
7018
|
-
accessControlList: output.accessControlList
|
|
6991
|
+
accessControlList: output.accessControlList != null
|
|
7019
6992
|
? deserializeAws_restJson1AccessControlList(output.accessControlList, context)
|
|
7020
6993
|
: undefined,
|
|
7021
|
-
blockPublicAccess: output.blockPublicAccess
|
|
6994
|
+
blockPublicAccess: output.blockPublicAccess != null
|
|
7022
6995
|
? deserializeAws_restJson1BlockPublicAccess(output.blockPublicAccess, context)
|
|
7023
6996
|
: undefined,
|
|
7024
|
-
bucketPolicy: output.bucketPolicy
|
|
7025
|
-
? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context)
|
|
7026
|
-
: undefined,
|
|
6997
|
+
bucketPolicy: output.bucketPolicy != null ? deserializeAws_restJson1BucketPolicy(output.bucketPolicy, context) : undefined,
|
|
7027
6998
|
};
|
|
7028
6999
|
};
|
|
7029
7000
|
var deserializeAws_restJson1BucketMetadata = function (output, context) {
|
|
@@ -7031,44 +7002,36 @@ var deserializeAws_restJson1BucketMetadata = function (output, context) {
|
|
|
7031
7002
|
accountId: __expectString(output.accountId),
|
|
7032
7003
|
allowsUnencryptedObjectUploads: __expectString(output.allowsUnencryptedObjectUploads),
|
|
7033
7004
|
bucketArn: __expectString(output.bucketArn),
|
|
7034
|
-
bucketCreatedAt: output.bucketCreatedAt
|
|
7035
|
-
? __expectNonNull(__parseRfc3339DateTime(output.bucketCreatedAt))
|
|
7036
|
-
: undefined,
|
|
7005
|
+
bucketCreatedAt: output.bucketCreatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.bucketCreatedAt)) : undefined,
|
|
7037
7006
|
bucketName: __expectString(output.bucketName),
|
|
7038
7007
|
classifiableObjectCount: __expectLong(output.classifiableObjectCount),
|
|
7039
7008
|
classifiableSizeInBytes: __expectLong(output.classifiableSizeInBytes),
|
|
7040
7009
|
errorCode: __expectString(output.errorCode),
|
|
7041
7010
|
errorMessage: __expectString(output.errorMessage),
|
|
7042
|
-
jobDetails: output.jobDetails
|
|
7043
|
-
|
|
7044
|
-
: undefined,
|
|
7045
|
-
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7046
|
-
? __expectNonNull(__parseRfc3339DateTime(output.lastUpdated))
|
|
7047
|
-
: undefined,
|
|
7011
|
+
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
7012
|
+
lastUpdated: output.lastUpdated != null ? __expectNonNull(__parseRfc3339DateTime(output.lastUpdated)) : undefined,
|
|
7048
7013
|
objectCount: __expectLong(output.objectCount),
|
|
7049
|
-
objectCountByEncryptionType: output.objectCountByEncryptionType
|
|
7014
|
+
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
7050
7015
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
7051
7016
|
: undefined,
|
|
7052
|
-
publicAccess: output.publicAccess
|
|
7017
|
+
publicAccess: output.publicAccess != null
|
|
7053
7018
|
? deserializeAws_restJson1BucketPublicAccess(output.publicAccess, context)
|
|
7054
7019
|
: undefined,
|
|
7055
7020
|
region: __expectString(output.region),
|
|
7056
|
-
replicationDetails: output.replicationDetails
|
|
7021
|
+
replicationDetails: output.replicationDetails != null
|
|
7057
7022
|
? deserializeAws_restJson1ReplicationDetails(output.replicationDetails, context)
|
|
7058
7023
|
: undefined,
|
|
7059
|
-
serverSideEncryption: output.serverSideEncryption
|
|
7024
|
+
serverSideEncryption: output.serverSideEncryption != null
|
|
7060
7025
|
? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
|
|
7061
7026
|
: undefined,
|
|
7062
7027
|
sharedAccess: __expectString(output.sharedAccess),
|
|
7063
7028
|
sizeInBytes: __expectLong(output.sizeInBytes),
|
|
7064
7029
|
sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed),
|
|
7065
|
-
tags: output.tags
|
|
7066
|
-
|
|
7067
|
-
: undefined,
|
|
7068
|
-
unclassifiableObjectCount: output.unclassifiableObjectCount !== undefined && output.unclassifiableObjectCount !== null
|
|
7030
|
+
tags: output.tags != null ? deserializeAws_restJson1__listOfKeyValuePair(output.tags, context) : undefined,
|
|
7031
|
+
unclassifiableObjectCount: output.unclassifiableObjectCount != null
|
|
7069
7032
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
|
|
7070
7033
|
: undefined,
|
|
7071
|
-
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes
|
|
7034
|
+
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes != null
|
|
7072
7035
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectSizeInBytes, context)
|
|
7073
7036
|
: undefined,
|
|
7074
7037
|
versioning: __expectBoolean(output.versioning),
|
|
@@ -7076,10 +7039,10 @@ var deserializeAws_restJson1BucketMetadata = function (output, context) {
|
|
|
7076
7039
|
};
|
|
7077
7040
|
var deserializeAws_restJson1BucketPermissionConfiguration = function (output, context) {
|
|
7078
7041
|
return {
|
|
7079
|
-
accountLevelPermissions: output.accountLevelPermissions
|
|
7042
|
+
accountLevelPermissions: output.accountLevelPermissions != null
|
|
7080
7043
|
? deserializeAws_restJson1AccountLevelPermissions(output.accountLevelPermissions, context)
|
|
7081
7044
|
: undefined,
|
|
7082
|
-
bucketLevelPermissions: output.bucketLevelPermissions
|
|
7045
|
+
bucketLevelPermissions: output.bucketLevelPermissions != null
|
|
7083
7046
|
? deserializeAws_restJson1BucketLevelPermissions(output.bucketLevelPermissions, context)
|
|
7084
7047
|
: undefined,
|
|
7085
7048
|
};
|
|
@@ -7093,7 +7056,7 @@ var deserializeAws_restJson1BucketPolicy = function (output, context) {
|
|
|
7093
7056
|
var deserializeAws_restJson1BucketPublicAccess = function (output, context) {
|
|
7094
7057
|
return {
|
|
7095
7058
|
effectivePermission: __expectString(output.effectivePermission),
|
|
7096
|
-
permissionConfiguration: output.permissionConfiguration
|
|
7059
|
+
permissionConfiguration: output.permissionConfiguration != null
|
|
7097
7060
|
? deserializeAws_restJson1BucketPermissionConfiguration(output.permissionConfiguration, context)
|
|
7098
7061
|
: undefined,
|
|
7099
7062
|
};
|
|
@@ -7129,32 +7092,24 @@ var deserializeAws_restJson1ClassificationDetails = function (output, context) {
|
|
|
7129
7092
|
jobArn: __expectString(output.jobArn),
|
|
7130
7093
|
jobId: __expectString(output.jobId),
|
|
7131
7094
|
originType: __expectString(output.originType),
|
|
7132
|
-
result: output.result
|
|
7133
|
-
? deserializeAws_restJson1ClassificationResult(output.result, context)
|
|
7134
|
-
: undefined,
|
|
7095
|
+
result: output.result != null ? deserializeAws_restJson1ClassificationResult(output.result, context) : undefined,
|
|
7135
7096
|
};
|
|
7136
7097
|
};
|
|
7137
7098
|
var deserializeAws_restJson1ClassificationExportConfiguration = function (output, context) {
|
|
7138
7099
|
return {
|
|
7139
|
-
s3Destination: output.s3Destination
|
|
7140
|
-
? deserializeAws_restJson1S3Destination(output.s3Destination, context)
|
|
7141
|
-
: undefined,
|
|
7100
|
+
s3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
|
|
7142
7101
|
};
|
|
7143
7102
|
};
|
|
7144
7103
|
var deserializeAws_restJson1ClassificationResult = function (output, context) {
|
|
7145
7104
|
return {
|
|
7146
7105
|
additionalOccurrences: __expectBoolean(output.additionalOccurrences),
|
|
7147
|
-
customDataIdentifiers: output.customDataIdentifiers
|
|
7106
|
+
customDataIdentifiers: output.customDataIdentifiers != null
|
|
7148
7107
|
? deserializeAws_restJson1CustomDataIdentifiers(output.customDataIdentifiers, context)
|
|
7149
7108
|
: undefined,
|
|
7150
7109
|
mimeType: __expectString(output.mimeType),
|
|
7151
|
-
sensitiveData: output.sensitiveData
|
|
7152
|
-
? deserializeAws_restJson1SensitiveData(output.sensitiveData, context)
|
|
7153
|
-
: undefined,
|
|
7110
|
+
sensitiveData: output.sensitiveData != null ? deserializeAws_restJson1SensitiveData(output.sensitiveData, context) : undefined,
|
|
7154
7111
|
sizeClassified: __expectLong(output.sizeClassified),
|
|
7155
|
-
status: output.status
|
|
7156
|
-
? deserializeAws_restJson1ClassificationResultStatus(output.status, context)
|
|
7157
|
-
: undefined,
|
|
7112
|
+
status: output.status != null ? deserializeAws_restJson1ClassificationResultStatus(output.status, context) : undefined,
|
|
7158
7113
|
};
|
|
7159
7114
|
};
|
|
7160
7115
|
var deserializeAws_restJson1ClassificationResultStatus = function (output, context) {
|
|
@@ -7165,17 +7120,15 @@ var deserializeAws_restJson1ClassificationResultStatus = function (output, conte
|
|
|
7165
7120
|
};
|
|
7166
7121
|
var deserializeAws_restJson1CriteriaBlockForJob = function (output, context) {
|
|
7167
7122
|
return {
|
|
7168
|
-
and: output.and
|
|
7169
|
-
? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context)
|
|
7170
|
-
: undefined,
|
|
7123
|
+
and: output.and != null ? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context) : undefined,
|
|
7171
7124
|
};
|
|
7172
7125
|
};
|
|
7173
7126
|
var deserializeAws_restJson1CriteriaForJob = function (output, context) {
|
|
7174
7127
|
return {
|
|
7175
|
-
simpleCriterion: output.simpleCriterion
|
|
7128
|
+
simpleCriterion: output.simpleCriterion != null
|
|
7176
7129
|
? deserializeAws_restJson1SimpleCriterionForJob(output.simpleCriterion, context)
|
|
7177
7130
|
: undefined,
|
|
7178
|
-
tagCriterion: output.tagCriterion
|
|
7131
|
+
tagCriterion: output.tagCriterion != null
|
|
7179
7132
|
? deserializeAws_restJson1TagCriterionForJob(output.tagCriterion, context)
|
|
7180
7133
|
: undefined,
|
|
7181
7134
|
};
|
|
@@ -7192,35 +7145,25 @@ var deserializeAws_restJson1Criterion = function (output, context) {
|
|
|
7192
7145
|
};
|
|
7193
7146
|
var deserializeAws_restJson1CriterionAdditionalProperties = function (output, context) {
|
|
7194
7147
|
return {
|
|
7195
|
-
eq: output.eq
|
|
7196
|
-
|
|
7197
|
-
: undefined,
|
|
7198
|
-
eqExactMatch: output.eqExactMatch !== undefined && output.eqExactMatch !== null
|
|
7199
|
-
? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context)
|
|
7200
|
-
: 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,
|
|
7201
7150
|
gt: __expectLong(output.gt),
|
|
7202
7151
|
gte: __expectLong(output.gte),
|
|
7203
7152
|
lt: __expectLong(output.lt),
|
|
7204
7153
|
lte: __expectLong(output.lte),
|
|
7205
|
-
neq: output.neq
|
|
7206
|
-
? deserializeAws_restJson1__listOf__string(output.neq, context)
|
|
7207
|
-
: undefined,
|
|
7154
|
+
neq: output.neq != null ? deserializeAws_restJson1__listOf__string(output.neq, context) : undefined,
|
|
7208
7155
|
};
|
|
7209
7156
|
};
|
|
7210
7157
|
var deserializeAws_restJson1CustomDataIdentifiers = function (output, context) {
|
|
7211
7158
|
return {
|
|
7212
|
-
detections: output.detections
|
|
7213
|
-
? deserializeAws_restJson1CustomDetections(output.detections, context)
|
|
7214
|
-
: undefined,
|
|
7159
|
+
detections: output.detections != null ? deserializeAws_restJson1CustomDetections(output.detections, context) : undefined,
|
|
7215
7160
|
totalCount: __expectLong(output.totalCount),
|
|
7216
7161
|
};
|
|
7217
7162
|
};
|
|
7218
7163
|
var deserializeAws_restJson1CustomDataIdentifierSummary = function (output, context) {
|
|
7219
7164
|
return {
|
|
7220
7165
|
arn: __expectString(output.arn),
|
|
7221
|
-
createdAt: output.createdAt
|
|
7222
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
7223
|
-
: undefined,
|
|
7166
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
7224
7167
|
description: __expectString(output.description),
|
|
7225
7168
|
id: __expectString(output.id),
|
|
7226
7169
|
name: __expectString(output.name),
|
|
@@ -7231,9 +7174,7 @@ var deserializeAws_restJson1CustomDetection = function (output, context) {
|
|
|
7231
7174
|
arn: __expectString(output.arn),
|
|
7232
7175
|
count: __expectLong(output.count),
|
|
7233
7176
|
name: __expectString(output.name),
|
|
7234
|
-
occurrences: output.occurrences
|
|
7235
|
-
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
7236
|
-
: undefined,
|
|
7177
|
+
occurrences: output.occurrences != null ? deserializeAws_restJson1Occurrences(output.occurrences, context) : undefined,
|
|
7237
7178
|
};
|
|
7238
7179
|
};
|
|
7239
7180
|
var deserializeAws_restJson1CustomDetections = function (output, context) {
|
|
@@ -7253,9 +7194,7 @@ var deserializeAws_restJson1DailySchedule = function (output, context) {
|
|
|
7253
7194
|
var deserializeAws_restJson1DefaultDetection = function (output, context) {
|
|
7254
7195
|
return {
|
|
7255
7196
|
count: __expectLong(output.count),
|
|
7256
|
-
occurrences: output.occurrences
|
|
7257
|
-
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
7258
|
-
: undefined,
|
|
7197
|
+
occurrences: output.occurrences != null ? deserializeAws_restJson1Occurrences(output.occurrences, context) : undefined,
|
|
7259
7198
|
type: __expectString(output.type),
|
|
7260
7199
|
};
|
|
7261
7200
|
};
|
|
@@ -7281,7 +7220,7 @@ var deserializeAws_restJson1FederatedUser = function (output, context) {
|
|
|
7281
7220
|
accountId: __expectString(output.accountId),
|
|
7282
7221
|
arn: __expectString(output.arn),
|
|
7283
7222
|
principalId: __expectString(output.principalId),
|
|
7284
|
-
sessionContext: output.sessionContext
|
|
7223
|
+
sessionContext: output.sessionContext != null
|
|
7285
7224
|
? deserializeAws_restJson1SessionContext(output.sessionContext, context)
|
|
7286
7225
|
: undefined,
|
|
7287
7226
|
};
|
|
@@ -7291,61 +7230,47 @@ var deserializeAws_restJson1Finding = function (output, context) {
|
|
|
7291
7230
|
accountId: __expectString(output.accountId),
|
|
7292
7231
|
archived: __expectBoolean(output.archived),
|
|
7293
7232
|
category: __expectString(output.category),
|
|
7294
|
-
classificationDetails: output.classificationDetails
|
|
7233
|
+
classificationDetails: output.classificationDetails != null
|
|
7295
7234
|
? deserializeAws_restJson1ClassificationDetails(output.classificationDetails, context)
|
|
7296
7235
|
: undefined,
|
|
7297
7236
|
count: __expectLong(output.count),
|
|
7298
|
-
createdAt: output.createdAt
|
|
7299
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
7300
|
-
: undefined,
|
|
7237
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
7301
7238
|
description: __expectString(output.description),
|
|
7302
7239
|
id: __expectString(output.id),
|
|
7303
7240
|
partition: __expectString(output.partition),
|
|
7304
|
-
policyDetails: output.policyDetails
|
|
7305
|
-
? deserializeAws_restJson1PolicyDetails(output.policyDetails, context)
|
|
7306
|
-
: undefined,
|
|
7241
|
+
policyDetails: output.policyDetails != null ? deserializeAws_restJson1PolicyDetails(output.policyDetails, context) : undefined,
|
|
7307
7242
|
region: __expectString(output.region),
|
|
7308
|
-
resourcesAffected: output.resourcesAffected
|
|
7243
|
+
resourcesAffected: output.resourcesAffected != null
|
|
7309
7244
|
? deserializeAws_restJson1ResourcesAffected(output.resourcesAffected, context)
|
|
7310
7245
|
: undefined,
|
|
7311
7246
|
sample: __expectBoolean(output.sample),
|
|
7312
7247
|
schemaVersion: __expectString(output.schemaVersion),
|
|
7313
|
-
severity: output.severity
|
|
7314
|
-
? deserializeAws_restJson1Severity(output.severity, context)
|
|
7315
|
-
: undefined,
|
|
7248
|
+
severity: output.severity != null ? deserializeAws_restJson1Severity(output.severity, context) : undefined,
|
|
7316
7249
|
title: __expectString(output.title),
|
|
7317
7250
|
type: __expectString(output.type),
|
|
7318
|
-
updatedAt: output.updatedAt
|
|
7319
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
7320
|
-
: undefined,
|
|
7251
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
7321
7252
|
};
|
|
7322
7253
|
};
|
|
7323
7254
|
var deserializeAws_restJson1FindingAction = function (output, context) {
|
|
7324
7255
|
return {
|
|
7325
7256
|
actionType: __expectString(output.actionType),
|
|
7326
|
-
apiCallDetails: output.apiCallDetails
|
|
7257
|
+
apiCallDetails: output.apiCallDetails != null
|
|
7327
7258
|
? deserializeAws_restJson1ApiCallDetails(output.apiCallDetails, context)
|
|
7328
7259
|
: undefined,
|
|
7329
7260
|
};
|
|
7330
7261
|
};
|
|
7331
7262
|
var deserializeAws_restJson1FindingActor = function (output, context) {
|
|
7332
7263
|
return {
|
|
7333
|
-
domainDetails: output.domainDetails
|
|
7334
|
-
|
|
7335
|
-
: undefined,
|
|
7336
|
-
ipAddressDetails: output.ipAddressDetails !== undefined && output.ipAddressDetails !== null
|
|
7264
|
+
domainDetails: output.domainDetails != null ? deserializeAws_restJson1DomainDetails(output.domainDetails, context) : undefined,
|
|
7265
|
+
ipAddressDetails: output.ipAddressDetails != null
|
|
7337
7266
|
? deserializeAws_restJson1IpAddressDetails(output.ipAddressDetails, context)
|
|
7338
7267
|
: undefined,
|
|
7339
|
-
userIdentity: output.userIdentity
|
|
7340
|
-
? deserializeAws_restJson1UserIdentity(output.userIdentity, context)
|
|
7341
|
-
: undefined,
|
|
7268
|
+
userIdentity: output.userIdentity != null ? deserializeAws_restJson1UserIdentity(output.userIdentity, context) : undefined,
|
|
7342
7269
|
};
|
|
7343
7270
|
};
|
|
7344
7271
|
var deserializeAws_restJson1FindingCriteria = function (output, context) {
|
|
7345
7272
|
return {
|
|
7346
|
-
criterion: output.criterion
|
|
7347
|
-
? deserializeAws_restJson1Criterion(output.criterion, context)
|
|
7348
|
-
: undefined,
|
|
7273
|
+
criterion: output.criterion != null ? deserializeAws_restJson1Criterion(output.criterion, context) : undefined,
|
|
7349
7274
|
};
|
|
7350
7275
|
};
|
|
7351
7276
|
var deserializeAws_restJson1FindingsFilterListItem = function (output, context) {
|
|
@@ -7354,9 +7279,7 @@ var deserializeAws_restJson1FindingsFilterListItem = function (output, context)
|
|
|
7354
7279
|
arn: __expectString(output.arn),
|
|
7355
7280
|
id: __expectString(output.id),
|
|
7356
7281
|
name: __expectString(output.name),
|
|
7357
|
-
tags: output.tags
|
|
7358
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
7359
|
-
: undefined,
|
|
7282
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
7360
7283
|
};
|
|
7361
7284
|
};
|
|
7362
7285
|
var deserializeAws_restJson1GroupCount = function (output, context) {
|
|
@@ -7377,27 +7300,17 @@ var deserializeAws_restJson1Invitation = function (output, context) {
|
|
|
7377
7300
|
return {
|
|
7378
7301
|
accountId: __expectString(output.accountId),
|
|
7379
7302
|
invitationId: __expectString(output.invitationId),
|
|
7380
|
-
invitedAt: output.invitedAt
|
|
7381
|
-
? __expectNonNull(__parseRfc3339DateTime(output.invitedAt))
|
|
7382
|
-
: undefined,
|
|
7303
|
+
invitedAt: output.invitedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.invitedAt)) : undefined,
|
|
7383
7304
|
relationshipStatus: __expectString(output.relationshipStatus),
|
|
7384
7305
|
};
|
|
7385
7306
|
};
|
|
7386
7307
|
var deserializeAws_restJson1IpAddressDetails = function (output, context) {
|
|
7387
7308
|
return {
|
|
7388
7309
|
ipAddressV4: __expectString(output.ipAddressV4),
|
|
7389
|
-
ipCity: output.ipCity
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
? deserializeAws_restJson1IpCountry(output.ipCountry, context)
|
|
7394
|
-
: undefined,
|
|
7395
|
-
ipGeoLocation: output.ipGeoLocation !== undefined && output.ipGeoLocation !== null
|
|
7396
|
-
? deserializeAws_restJson1IpGeoLocation(output.ipGeoLocation, context)
|
|
7397
|
-
: undefined,
|
|
7398
|
-
ipOwner: output.ipOwner !== undefined && output.ipOwner !== null
|
|
7399
|
-
? deserializeAws_restJson1IpOwner(output.ipOwner, context)
|
|
7400
|
-
: 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,
|
|
7401
7314
|
};
|
|
7402
7315
|
};
|
|
7403
7316
|
var deserializeAws_restJson1IpCity = function (output, context) {
|
|
@@ -7430,60 +7343,50 @@ var deserializeAws_restJson1JobDetails = function (output, context) {
|
|
|
7430
7343
|
isDefinedInJob: __expectString(output.isDefinedInJob),
|
|
7431
7344
|
isMonitoredByJob: __expectString(output.isMonitoredByJob),
|
|
7432
7345
|
lastJobId: __expectString(output.lastJobId),
|
|
7433
|
-
lastJobRunTime: output.lastJobRunTime
|
|
7434
|
-
? __expectNonNull(__parseRfc3339DateTime(output.lastJobRunTime))
|
|
7435
|
-
: undefined,
|
|
7346
|
+
lastJobRunTime: output.lastJobRunTime != null ? __expectNonNull(__parseRfc3339DateTime(output.lastJobRunTime)) : undefined,
|
|
7436
7347
|
};
|
|
7437
7348
|
};
|
|
7438
7349
|
var deserializeAws_restJson1JobScheduleFrequency = function (output, context) {
|
|
7439
7350
|
return {
|
|
7440
|
-
dailySchedule: output.dailySchedule
|
|
7441
|
-
|
|
7442
|
-
: undefined,
|
|
7443
|
-
monthlySchedule: output.monthlySchedule !== undefined && output.monthlySchedule !== null
|
|
7351
|
+
dailySchedule: output.dailySchedule != null ? deserializeAws_restJson1DailySchedule(output.dailySchedule, context) : undefined,
|
|
7352
|
+
monthlySchedule: output.monthlySchedule != null
|
|
7444
7353
|
? deserializeAws_restJson1MonthlySchedule(output.monthlySchedule, context)
|
|
7445
7354
|
: undefined,
|
|
7446
|
-
weeklySchedule: output.weeklySchedule
|
|
7355
|
+
weeklySchedule: output.weeklySchedule != null
|
|
7447
7356
|
? deserializeAws_restJson1WeeklySchedule(output.weeklySchedule, context)
|
|
7448
7357
|
: undefined,
|
|
7449
7358
|
};
|
|
7450
7359
|
};
|
|
7451
7360
|
var deserializeAws_restJson1JobScopeTerm = function (output, context) {
|
|
7452
7361
|
return {
|
|
7453
|
-
simpleScopeTerm: output.simpleScopeTerm
|
|
7362
|
+
simpleScopeTerm: output.simpleScopeTerm != null
|
|
7454
7363
|
? deserializeAws_restJson1SimpleScopeTerm(output.simpleScopeTerm, context)
|
|
7455
7364
|
: undefined,
|
|
7456
|
-
tagScopeTerm: output.tagScopeTerm
|
|
7457
|
-
? deserializeAws_restJson1TagScopeTerm(output.tagScopeTerm, context)
|
|
7458
|
-
: undefined,
|
|
7365
|
+
tagScopeTerm: output.tagScopeTerm != null ? deserializeAws_restJson1TagScopeTerm(output.tagScopeTerm, context) : undefined,
|
|
7459
7366
|
};
|
|
7460
7367
|
};
|
|
7461
7368
|
var deserializeAws_restJson1JobScopingBlock = function (output, context) {
|
|
7462
7369
|
return {
|
|
7463
|
-
and: output.and
|
|
7464
|
-
? deserializeAws_restJson1__listOfJobScopeTerm(output.and, context)
|
|
7465
|
-
: undefined,
|
|
7370
|
+
and: output.and != null ? deserializeAws_restJson1__listOfJobScopeTerm(output.and, context) : undefined,
|
|
7466
7371
|
};
|
|
7467
7372
|
};
|
|
7468
7373
|
var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
7469
7374
|
return {
|
|
7470
|
-
bucketCriteria: output.bucketCriteria
|
|
7375
|
+
bucketCriteria: output.bucketCriteria != null
|
|
7471
7376
|
? deserializeAws_restJson1S3BucketCriteriaForJob(output.bucketCriteria, context)
|
|
7472
7377
|
: undefined,
|
|
7473
|
-
bucketDefinitions: output.bucketDefinitions
|
|
7378
|
+
bucketDefinitions: output.bucketDefinitions != null
|
|
7474
7379
|
? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
|
|
7475
7380
|
: undefined,
|
|
7476
|
-
createdAt: output.createdAt
|
|
7477
|
-
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
7478
|
-
: undefined,
|
|
7381
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
7479
7382
|
jobId: __expectString(output.jobId),
|
|
7480
7383
|
jobStatus: __expectString(output.jobStatus),
|
|
7481
7384
|
jobType: __expectString(output.jobType),
|
|
7482
|
-
lastRunErrorStatus: output.lastRunErrorStatus
|
|
7385
|
+
lastRunErrorStatus: output.lastRunErrorStatus != null
|
|
7483
7386
|
? deserializeAws_restJson1LastRunErrorStatus(output.lastRunErrorStatus, context)
|
|
7484
7387
|
: undefined,
|
|
7485
7388
|
name: __expectString(output.name),
|
|
7486
|
-
userPausedDetails: output.userPausedDetails
|
|
7389
|
+
userPausedDetails: output.userPausedDetails != null
|
|
7487
7390
|
? deserializeAws_restJson1UserPausedDetails(output.userPausedDetails, context)
|
|
7488
7391
|
: undefined,
|
|
7489
7392
|
};
|
|
@@ -7524,26 +7427,24 @@ var deserializeAws_restJson1MatchingBucket = function (output, context) {
|
|
|
7524
7427
|
classifiableSizeInBytes: __expectLong(output.classifiableSizeInBytes),
|
|
7525
7428
|
errorCode: __expectString(output.errorCode),
|
|
7526
7429
|
errorMessage: __expectString(output.errorMessage),
|
|
7527
|
-
jobDetails: output.jobDetails
|
|
7528
|
-
? deserializeAws_restJson1JobDetails(output.jobDetails, context)
|
|
7529
|
-
: undefined,
|
|
7430
|
+
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
7530
7431
|
objectCount: __expectLong(output.objectCount),
|
|
7531
|
-
objectCountByEncryptionType: output.objectCountByEncryptionType
|
|
7432
|
+
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
7532
7433
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
7533
7434
|
: undefined,
|
|
7534
7435
|
sizeInBytes: __expectLong(output.sizeInBytes),
|
|
7535
7436
|
sizeInBytesCompressed: __expectLong(output.sizeInBytesCompressed),
|
|
7536
|
-
unclassifiableObjectCount: output.unclassifiableObjectCount
|
|
7437
|
+
unclassifiableObjectCount: output.unclassifiableObjectCount != null
|
|
7537
7438
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
|
|
7538
7439
|
: undefined,
|
|
7539
|
-
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes
|
|
7440
|
+
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes != null
|
|
7540
7441
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectSizeInBytes, context)
|
|
7541
7442
|
: undefined,
|
|
7542
7443
|
};
|
|
7543
7444
|
};
|
|
7544
7445
|
var deserializeAws_restJson1MatchingResource = function (output, context) {
|
|
7545
7446
|
return {
|
|
7546
|
-
matchingBucket: output.matchingBucket
|
|
7447
|
+
matchingBucket: output.matchingBucket != null
|
|
7547
7448
|
? deserializeAws_restJson1MatchingBucket(output.matchingBucket, context)
|
|
7548
7449
|
: undefined,
|
|
7549
7450
|
};
|
|
@@ -7554,17 +7455,11 @@ var deserializeAws_restJson1Member = function (output, context) {
|
|
|
7554
7455
|
administratorAccountId: __expectString(output.administratorAccountId),
|
|
7555
7456
|
arn: __expectString(output.arn),
|
|
7556
7457
|
email: __expectString(output.email),
|
|
7557
|
-
invitedAt: output.invitedAt
|
|
7558
|
-
? __expectNonNull(__parseRfc3339DateTime(output.invitedAt))
|
|
7559
|
-
: undefined,
|
|
7458
|
+
invitedAt: output.invitedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.invitedAt)) : undefined,
|
|
7560
7459
|
masterAccountId: __expectString(output.masterAccountId),
|
|
7561
7460
|
relationshipStatus: __expectString(output.relationshipStatus),
|
|
7562
|
-
tags: output.tags
|
|
7563
|
-
|
|
7564
|
-
: undefined,
|
|
7565
|
-
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
7566
|
-
? __expectNonNull(__parseRfc3339DateTime(output.updatedAt))
|
|
7567
|
-
: undefined,
|
|
7461
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
7462
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
7568
7463
|
};
|
|
7569
7464
|
};
|
|
7570
7465
|
var deserializeAws_restJson1MonthlySchedule = function (output, context) {
|
|
@@ -7590,31 +7485,17 @@ var deserializeAws_restJson1ObjectLevelStatistics = function (output, context) {
|
|
|
7590
7485
|
};
|
|
7591
7486
|
var deserializeAws_restJson1Occurrences = function (output, context) {
|
|
7592
7487
|
return {
|
|
7593
|
-
cells: output.cells
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
: undefined,
|
|
7599
|
-
offsetRanges: output.offsetRanges !== undefined && output.offsetRanges !== null
|
|
7600
|
-
? deserializeAws_restJson1Ranges(output.offsetRanges, context)
|
|
7601
|
-
: undefined,
|
|
7602
|
-
pages: output.pages !== undefined && output.pages !== null
|
|
7603
|
-
? deserializeAws_restJson1Pages(output.pages, context)
|
|
7604
|
-
: undefined,
|
|
7605
|
-
records: output.records !== undefined && output.records !== null
|
|
7606
|
-
? deserializeAws_restJson1Records(output.records, context)
|
|
7607
|
-
: 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,
|
|
7608
7493
|
};
|
|
7609
7494
|
};
|
|
7610
7495
|
var deserializeAws_restJson1Page = function (output, context) {
|
|
7611
7496
|
return {
|
|
7612
|
-
lineRange: output.lineRange
|
|
7613
|
-
|
|
7614
|
-
: undefined,
|
|
7615
|
-
offsetRange: output.offsetRange !== undefined && output.offsetRange !== null
|
|
7616
|
-
? deserializeAws_restJson1Range(output.offsetRange, context)
|
|
7617
|
-
: undefined,
|
|
7497
|
+
lineRange: output.lineRange != null ? deserializeAws_restJson1Range(output.lineRange, context) : undefined,
|
|
7498
|
+
offsetRange: output.offsetRange != null ? deserializeAws_restJson1Range(output.offsetRange, context) : undefined,
|
|
7618
7499
|
pageNumber: __expectLong(output.pageNumber),
|
|
7619
7500
|
};
|
|
7620
7501
|
};
|
|
@@ -7631,12 +7512,8 @@ var deserializeAws_restJson1Pages = function (output, context) {
|
|
|
7631
7512
|
};
|
|
7632
7513
|
var deserializeAws_restJson1PolicyDetails = function (output, context) {
|
|
7633
7514
|
return {
|
|
7634
|
-
action: output.action
|
|
7635
|
-
|
|
7636
|
-
: undefined,
|
|
7637
|
-
actor: output.actor !== undefined && output.actor !== null
|
|
7638
|
-
? deserializeAws_restJson1FindingActor(output.actor, context)
|
|
7639
|
-
: undefined,
|
|
7515
|
+
action: output.action != null ? deserializeAws_restJson1FindingAction(output.action, context) : undefined,
|
|
7516
|
+
actor: output.actor != null ? deserializeAws_restJson1FindingActor(output.actor, context) : undefined,
|
|
7640
7517
|
};
|
|
7641
7518
|
};
|
|
7642
7519
|
var deserializeAws_restJson1Range = function (output, context) {
|
|
@@ -7678,59 +7555,43 @@ var deserializeAws_restJson1ReplicationDetails = function (output, context) {
|
|
|
7678
7555
|
return {
|
|
7679
7556
|
replicated: __expectBoolean(output.replicated),
|
|
7680
7557
|
replicatedExternally: __expectBoolean(output.replicatedExternally),
|
|
7681
|
-
replicationAccounts: output.replicationAccounts
|
|
7558
|
+
replicationAccounts: output.replicationAccounts != null
|
|
7682
7559
|
? deserializeAws_restJson1__listOf__string(output.replicationAccounts, context)
|
|
7683
7560
|
: undefined,
|
|
7684
7561
|
};
|
|
7685
7562
|
};
|
|
7686
7563
|
var deserializeAws_restJson1ResourcesAffected = function (output, context) {
|
|
7687
7564
|
return {
|
|
7688
|
-
s3Bucket: output.s3Bucket
|
|
7689
|
-
|
|
7690
|
-
: undefined,
|
|
7691
|
-
s3Object: output.s3Object !== undefined && output.s3Object !== null
|
|
7692
|
-
? deserializeAws_restJson1S3Object(output.s3Object, context)
|
|
7693
|
-
: undefined,
|
|
7565
|
+
s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3Bucket(output.s3Bucket, context) : undefined,
|
|
7566
|
+
s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
|
|
7694
7567
|
};
|
|
7695
7568
|
};
|
|
7696
7569
|
var deserializeAws_restJson1S3Bucket = function (output, context) {
|
|
7697
7570
|
return {
|
|
7698
7571
|
allowsUnencryptedObjectUploads: __expectString(output.allowsUnencryptedObjectUploads),
|
|
7699
7572
|
arn: __expectString(output.arn),
|
|
7700
|
-
createdAt: output.createdAt
|
|
7701
|
-
|
|
7702
|
-
: undefined,
|
|
7703
|
-
defaultServerSideEncryption: output.defaultServerSideEncryption !== undefined && output.defaultServerSideEncryption !== null
|
|
7573
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
7574
|
+
defaultServerSideEncryption: output.defaultServerSideEncryption != null
|
|
7704
7575
|
? deserializeAws_restJson1ServerSideEncryption(output.defaultServerSideEncryption, context)
|
|
7705
7576
|
: undefined,
|
|
7706
7577
|
name: __expectString(output.name),
|
|
7707
|
-
owner: output.owner
|
|
7708
|
-
|
|
7709
|
-
: undefined,
|
|
7710
|
-
publicAccess: output.publicAccess !== undefined && output.publicAccess !== null
|
|
7578
|
+
owner: output.owner != null ? deserializeAws_restJson1S3BucketOwner(output.owner, context) : undefined,
|
|
7579
|
+
publicAccess: output.publicAccess != null
|
|
7711
7580
|
? deserializeAws_restJson1BucketPublicAccess(output.publicAccess, context)
|
|
7712
7581
|
: undefined,
|
|
7713
|
-
tags: output.tags
|
|
7714
|
-
? deserializeAws_restJson1KeyValuePairList(output.tags, context)
|
|
7715
|
-
: undefined,
|
|
7582
|
+
tags: output.tags != null ? deserializeAws_restJson1KeyValuePairList(output.tags, context) : undefined,
|
|
7716
7583
|
};
|
|
7717
7584
|
};
|
|
7718
7585
|
var deserializeAws_restJson1S3BucketCriteriaForJob = function (output, context) {
|
|
7719
7586
|
return {
|
|
7720
|
-
excludes: output.excludes
|
|
7721
|
-
|
|
7722
|
-
: undefined,
|
|
7723
|
-
includes: output.includes !== undefined && output.includes !== null
|
|
7724
|
-
? deserializeAws_restJson1CriteriaBlockForJob(output.includes, context)
|
|
7725
|
-
: undefined,
|
|
7587
|
+
excludes: output.excludes != null ? deserializeAws_restJson1CriteriaBlockForJob(output.excludes, context) : undefined,
|
|
7588
|
+
includes: output.includes != null ? deserializeAws_restJson1CriteriaBlockForJob(output.includes, context) : undefined,
|
|
7726
7589
|
};
|
|
7727
7590
|
};
|
|
7728
7591
|
var deserializeAws_restJson1S3BucketDefinitionForJob = function (output, context) {
|
|
7729
7592
|
return {
|
|
7730
7593
|
accountId: __expectString(output.accountId),
|
|
7731
|
-
buckets: output.buckets
|
|
7732
|
-
? deserializeAws_restJson1__listOf__string(output.buckets, context)
|
|
7733
|
-
: undefined,
|
|
7594
|
+
buckets: output.buckets != null ? deserializeAws_restJson1__listOf__string(output.buckets, context) : undefined,
|
|
7734
7595
|
};
|
|
7735
7596
|
};
|
|
7736
7597
|
var deserializeAws_restJson1S3BucketOwner = function (output, context) {
|
|
@@ -7748,15 +7609,13 @@ var deserializeAws_restJson1S3Destination = function (output, context) {
|
|
|
7748
7609
|
};
|
|
7749
7610
|
var deserializeAws_restJson1S3JobDefinition = function (output, context) {
|
|
7750
7611
|
return {
|
|
7751
|
-
bucketCriteria: output.bucketCriteria
|
|
7612
|
+
bucketCriteria: output.bucketCriteria != null
|
|
7752
7613
|
? deserializeAws_restJson1S3BucketCriteriaForJob(output.bucketCriteria, context)
|
|
7753
7614
|
: undefined,
|
|
7754
|
-
bucketDefinitions: output.bucketDefinitions
|
|
7615
|
+
bucketDefinitions: output.bucketDefinitions != null
|
|
7755
7616
|
? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
|
|
7756
7617
|
: undefined,
|
|
7757
|
-
scoping: output.scoping
|
|
7758
|
-
? deserializeAws_restJson1Scoping(output.scoping, context)
|
|
7759
|
-
: undefined,
|
|
7618
|
+
scoping: output.scoping != null ? deserializeAws_restJson1Scoping(output.scoping, context) : undefined,
|
|
7760
7619
|
};
|
|
7761
7620
|
};
|
|
7762
7621
|
var deserializeAws_restJson1S3Object = function (output, context) {
|
|
@@ -7765,30 +7624,22 @@ var deserializeAws_restJson1S3Object = function (output, context) {
|
|
|
7765
7624
|
eTag: __expectString(output.eTag),
|
|
7766
7625
|
extension: __expectString(output.extension),
|
|
7767
7626
|
key: __expectString(output.key),
|
|
7768
|
-
lastModified: output.lastModified
|
|
7769
|
-
? __expectNonNull(__parseRfc3339DateTime(output.lastModified))
|
|
7770
|
-
: undefined,
|
|
7627
|
+
lastModified: output.lastModified != null ? __expectNonNull(__parseRfc3339DateTime(output.lastModified)) : undefined,
|
|
7771
7628
|
path: __expectString(output.path),
|
|
7772
7629
|
publicAccess: __expectBoolean(output.publicAccess),
|
|
7773
|
-
serverSideEncryption: output.serverSideEncryption
|
|
7630
|
+
serverSideEncryption: output.serverSideEncryption != null
|
|
7774
7631
|
? deserializeAws_restJson1ServerSideEncryption(output.serverSideEncryption, context)
|
|
7775
7632
|
: undefined,
|
|
7776
7633
|
size: __expectLong(output.size),
|
|
7777
7634
|
storageClass: __expectString(output.storageClass),
|
|
7778
|
-
tags: output.tags
|
|
7779
|
-
? deserializeAws_restJson1KeyValuePairList(output.tags, context)
|
|
7780
|
-
: undefined,
|
|
7635
|
+
tags: output.tags != null ? deserializeAws_restJson1KeyValuePairList(output.tags, context) : undefined,
|
|
7781
7636
|
versionId: __expectString(output.versionId),
|
|
7782
7637
|
};
|
|
7783
7638
|
};
|
|
7784
7639
|
var deserializeAws_restJson1Scoping = function (output, context) {
|
|
7785
7640
|
return {
|
|
7786
|
-
excludes: output.excludes
|
|
7787
|
-
|
|
7788
|
-
: undefined,
|
|
7789
|
-
includes: output.includes !== undefined && output.includes !== null
|
|
7790
|
-
? deserializeAws_restJson1JobScopingBlock(output.includes, context)
|
|
7791
|
-
: undefined,
|
|
7641
|
+
excludes: output.excludes != null ? deserializeAws_restJson1JobScopingBlock(output.excludes, context) : undefined,
|
|
7642
|
+
includes: output.includes != null ? deserializeAws_restJson1JobScopingBlock(output.includes, context) : undefined,
|
|
7792
7643
|
};
|
|
7793
7644
|
};
|
|
7794
7645
|
var deserializeAws_restJson1SecurityHubConfiguration = function (output, context) {
|
|
@@ -7811,9 +7662,7 @@ var deserializeAws_restJson1SensitiveData = function (output, context) {
|
|
|
7811
7662
|
var deserializeAws_restJson1SensitiveDataItem = function (output, context) {
|
|
7812
7663
|
return {
|
|
7813
7664
|
category: __expectString(output.category),
|
|
7814
|
-
detections: output.detections
|
|
7815
|
-
? deserializeAws_restJson1DefaultDetections(output.detections, context)
|
|
7816
|
-
: undefined,
|
|
7665
|
+
detections: output.detections != null ? deserializeAws_restJson1DefaultDetections(output.detections, context) : undefined,
|
|
7817
7666
|
totalCount: __expectLong(output.totalCount),
|
|
7818
7667
|
};
|
|
7819
7668
|
};
|
|
@@ -7832,19 +7681,15 @@ var deserializeAws_restJson1ServiceLimit = function (output, context) {
|
|
|
7832
7681
|
};
|
|
7833
7682
|
var deserializeAws_restJson1SessionContext = function (output, context) {
|
|
7834
7683
|
return {
|
|
7835
|
-
attributes: output.attributes
|
|
7684
|
+
attributes: output.attributes != null
|
|
7836
7685
|
? deserializeAws_restJson1SessionContextAttributes(output.attributes, context)
|
|
7837
7686
|
: undefined,
|
|
7838
|
-
sessionIssuer: output.sessionIssuer
|
|
7839
|
-
? deserializeAws_restJson1SessionIssuer(output.sessionIssuer, context)
|
|
7840
|
-
: undefined,
|
|
7687
|
+
sessionIssuer: output.sessionIssuer != null ? deserializeAws_restJson1SessionIssuer(output.sessionIssuer, context) : undefined,
|
|
7841
7688
|
};
|
|
7842
7689
|
};
|
|
7843
7690
|
var deserializeAws_restJson1SessionContextAttributes = function (output, context) {
|
|
7844
7691
|
return {
|
|
7845
|
-
creationDate: output.creationDate
|
|
7846
|
-
? __expectNonNull(__parseRfc3339DateTime(output.creationDate))
|
|
7847
|
-
: undefined,
|
|
7692
|
+
creationDate: output.creationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.creationDate)) : undefined,
|
|
7848
7693
|
mfaAuthenticated: __expectBoolean(output.mfaAuthenticated),
|
|
7849
7694
|
};
|
|
7850
7695
|
};
|
|
@@ -7884,18 +7729,14 @@ var deserializeAws_restJson1SimpleCriterionForJob = function (output, context) {
|
|
|
7884
7729
|
return {
|
|
7885
7730
|
comparator: __expectString(output.comparator),
|
|
7886
7731
|
key: __expectString(output.key),
|
|
7887
|
-
values: output.values
|
|
7888
|
-
? deserializeAws_restJson1__listOf__string(output.values, context)
|
|
7889
|
-
: undefined,
|
|
7732
|
+
values: output.values != null ? deserializeAws_restJson1__listOf__string(output.values, context) : undefined,
|
|
7890
7733
|
};
|
|
7891
7734
|
};
|
|
7892
7735
|
var deserializeAws_restJson1SimpleScopeTerm = function (output, context) {
|
|
7893
7736
|
return {
|
|
7894
7737
|
comparator: __expectString(output.comparator),
|
|
7895
7738
|
key: __expectString(output.key),
|
|
7896
|
-
values: output.values
|
|
7897
|
-
? deserializeAws_restJson1__listOf__string(output.values, context)
|
|
7898
|
-
: undefined,
|
|
7739
|
+
values: output.values != null ? deserializeAws_restJson1__listOf__string(output.values, context) : undefined,
|
|
7899
7740
|
};
|
|
7900
7741
|
};
|
|
7901
7742
|
var deserializeAws_restJson1Statistics = function (output, context) {
|
|
@@ -7907,7 +7748,7 @@ var deserializeAws_restJson1Statistics = function (output, context) {
|
|
|
7907
7748
|
var deserializeAws_restJson1TagCriterionForJob = function (output, context) {
|
|
7908
7749
|
return {
|
|
7909
7750
|
comparator: __expectString(output.comparator),
|
|
7910
|
-
tagValues: output.tagValues
|
|
7751
|
+
tagValues: output.tagValues != null
|
|
7911
7752
|
? deserializeAws_restJson1__listOfTagCriterionPairForJob(output.tagValues, context)
|
|
7912
7753
|
: undefined,
|
|
7913
7754
|
};
|
|
@@ -7932,9 +7773,7 @@ var deserializeAws_restJson1TagScopeTerm = function (output, context) {
|
|
|
7932
7773
|
return {
|
|
7933
7774
|
comparator: __expectString(output.comparator),
|
|
7934
7775
|
key: __expectString(output.key),
|
|
7935
|
-
tagValues: output.tagValues
|
|
7936
|
-
? deserializeAws_restJson1__listOfTagValuePair(output.tagValues, context)
|
|
7937
|
-
: undefined,
|
|
7776
|
+
tagValues: output.tagValues != null ? deserializeAws_restJson1__listOfTagValuePair(output.tagValues, context) : undefined,
|
|
7938
7777
|
target: __expectString(output.target),
|
|
7939
7778
|
};
|
|
7940
7779
|
};
|
|
@@ -7955,21 +7794,17 @@ var deserializeAws_restJson1UsageByAccount = function (output, context) {
|
|
|
7955
7794
|
return {
|
|
7956
7795
|
currency: __expectString(output.currency),
|
|
7957
7796
|
estimatedCost: __expectString(output.estimatedCost),
|
|
7958
|
-
serviceLimit: output.serviceLimit
|
|
7959
|
-
? deserializeAws_restJson1ServiceLimit(output.serviceLimit, context)
|
|
7960
|
-
: undefined,
|
|
7797
|
+
serviceLimit: output.serviceLimit != null ? deserializeAws_restJson1ServiceLimit(output.serviceLimit, context) : undefined,
|
|
7961
7798
|
type: __expectString(output.type),
|
|
7962
7799
|
};
|
|
7963
7800
|
};
|
|
7964
7801
|
var deserializeAws_restJson1UsageRecord = function (output, context) {
|
|
7965
7802
|
return {
|
|
7966
7803
|
accountId: __expectString(output.accountId),
|
|
7967
|
-
freeTrialStartDate: output.freeTrialStartDate
|
|
7804
|
+
freeTrialStartDate: output.freeTrialStartDate != null
|
|
7968
7805
|
? __expectNonNull(__parseRfc3339DateTime(output.freeTrialStartDate))
|
|
7969
7806
|
: undefined,
|
|
7970
|
-
usage: output.usage
|
|
7971
|
-
? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context)
|
|
7972
|
-
: undefined,
|
|
7807
|
+
usage: output.usage != null ? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context) : undefined,
|
|
7973
7808
|
};
|
|
7974
7809
|
};
|
|
7975
7810
|
var deserializeAws_restJson1UsageTotal = function (output, context) {
|
|
@@ -7981,24 +7816,12 @@ var deserializeAws_restJson1UsageTotal = function (output, context) {
|
|
|
7981
7816
|
};
|
|
7982
7817
|
var deserializeAws_restJson1UserIdentity = function (output, context) {
|
|
7983
7818
|
return {
|
|
7984
|
-
assumedRole: output.assumedRole
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
awsService: output.awsService !== undefined && output.awsService !== null
|
|
7991
|
-
? deserializeAws_restJson1AwsService(output.awsService, context)
|
|
7992
|
-
: undefined,
|
|
7993
|
-
federatedUser: output.federatedUser !== undefined && output.federatedUser !== null
|
|
7994
|
-
? deserializeAws_restJson1FederatedUser(output.federatedUser, context)
|
|
7995
|
-
: undefined,
|
|
7996
|
-
iamUser: output.iamUser !== undefined && output.iamUser !== null
|
|
7997
|
-
? deserializeAws_restJson1IamUser(output.iamUser, context)
|
|
7998
|
-
: undefined,
|
|
7999
|
-
root: output.root !== undefined && output.root !== null
|
|
8000
|
-
? deserializeAws_restJson1UserIdentityRoot(output.root, context)
|
|
8001
|
-
: 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,
|
|
8002
7825
|
type: __expectString(output.type),
|
|
8003
7826
|
};
|
|
8004
7827
|
};
|
|
@@ -8011,13 +7834,9 @@ var deserializeAws_restJson1UserIdentityRoot = function (output, context) {
|
|
|
8011
7834
|
};
|
|
8012
7835
|
var deserializeAws_restJson1UserPausedDetails = function (output, context) {
|
|
8013
7836
|
return {
|
|
8014
|
-
jobExpiresAt: output.jobExpiresAt
|
|
8015
|
-
? __expectNonNull(__parseRfc3339DateTime(output.jobExpiresAt))
|
|
8016
|
-
: undefined,
|
|
7837
|
+
jobExpiresAt: output.jobExpiresAt != null ? __expectNonNull(__parseRfc3339DateTime(output.jobExpiresAt)) : undefined,
|
|
8017
7838
|
jobImminentExpirationHealthEventArn: __expectString(output.jobImminentExpirationHealthEventArn),
|
|
8018
|
-
jobPausedAt: output.jobPausedAt
|
|
8019
|
-
? __expectNonNull(__parseRfc3339DateTime(output.jobPausedAt))
|
|
8020
|
-
: undefined,
|
|
7839
|
+
jobPausedAt: output.jobPausedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.jobPausedAt)) : undefined,
|
|
8021
7840
|
};
|
|
8022
7841
|
};
|
|
8023
7842
|
var deserializeAws_restJson1WeeklySchedule = function (output, context) {
|
|
@@ -8081,5 +7900,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
8081
7900
|
if (data["__type"] !== undefined) {
|
|
8082
7901
|
return sanitizeErrorCode(data["__type"]);
|
|
8083
7902
|
}
|
|
8084
|
-
return "";
|
|
8085
7903
|
};
|