@aws-sdk/client-securitylake 3.312.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +361 -820
- package/dist-es/protocols/Aws_restJson1.js +315 -774
- package/package.json +6 -6
|
@@ -13,18 +13,12 @@ const se_CreateAwsLogSourceCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/aws";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}),
|
|
23
|
-
...(input.enableTwoDimensions != null && {
|
|
24
|
-
enableTwoDimensions: se_TwoDimensionsMap(input.enableTwoDimensions, context),
|
|
25
|
-
}),
|
|
26
|
-
...(input.inputOrder != null && { inputOrder: se_DimensionSet(input.inputOrder, context) }),
|
|
27
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
enableAllDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
enableSingleDimension: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
+
enableTwoDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
inputOrder: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
+
}));
|
|
28
22
|
return new protocol_http_1.HttpRequest({
|
|
29
23
|
protocol,
|
|
30
24
|
hostname,
|
|
@@ -43,12 +37,12 @@ const se_CreateCustomLogSourceCommand = async (input, context) => {
|
|
|
43
37
|
};
|
|
44
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/custom";
|
|
45
39
|
let body;
|
|
46
|
-
body = JSON.stringify({
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
customSourceName: [],
|
|
42
|
+
eventClass: [],
|
|
43
|
+
glueInvocationRoleArn: [],
|
|
44
|
+
logProviderAccountId: [],
|
|
45
|
+
}));
|
|
52
46
|
return new protocol_http_1.HttpRequest({
|
|
53
47
|
protocol,
|
|
54
48
|
hostname,
|
|
@@ -67,14 +61,12 @@ const se_CreateDatalakeCommand = async (input, context) => {
|
|
|
67
61
|
};
|
|
68
62
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
69
63
|
let body;
|
|
70
|
-
body = JSON.stringify({
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
...(input.regions != null && { regions: se_RegionSet(input.regions, context) }),
|
|
77
|
-
});
|
|
64
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
|
+
configurations: (_) => (0, smithy_client_1._json)(_),
|
|
66
|
+
enableAll: [],
|
|
67
|
+
metaStoreManagerRoleArn: [],
|
|
68
|
+
regions: (_) => (0, smithy_client_1._json)(_),
|
|
69
|
+
}));
|
|
78
70
|
return new protocol_http_1.HttpRequest({
|
|
79
71
|
protocol,
|
|
80
72
|
hostname,
|
|
@@ -93,11 +85,9 @@ const se_CreateDatalakeAutoEnableCommand = async (input, context) => {
|
|
|
93
85
|
};
|
|
94
86
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/autoenable";
|
|
95
87
|
let body;
|
|
96
|
-
body = JSON.stringify({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}),
|
|
100
|
-
});
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
89
|
+
configurationForNewAccounts: (_) => (0, smithy_client_1._json)(_),
|
|
90
|
+
}));
|
|
101
91
|
return new protocol_http_1.HttpRequest({
|
|
102
92
|
protocol,
|
|
103
93
|
hostname,
|
|
@@ -116,9 +106,9 @@ const se_CreateDatalakeDelegatedAdminCommand = async (input, context) => {
|
|
|
116
106
|
};
|
|
117
107
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/delegate";
|
|
118
108
|
let body;
|
|
119
|
-
body = JSON.stringify({
|
|
120
|
-
|
|
121
|
-
});
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
110
|
+
account: [],
|
|
111
|
+
}));
|
|
122
112
|
return new protocol_http_1.HttpRequest({
|
|
123
113
|
protocol,
|
|
124
114
|
hostname,
|
|
@@ -137,10 +127,10 @@ const se_CreateDatalakeExceptionsSubscriptionCommand = async (input, context) =>
|
|
|
137
127
|
};
|
|
138
128
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
139
129
|
let body;
|
|
140
|
-
body = JSON.stringify({
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
});
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
131
|
+
notificationEndpoint: [],
|
|
132
|
+
subscriptionProtocol: [],
|
|
133
|
+
}));
|
|
144
134
|
return new protocol_http_1.HttpRequest({
|
|
145
135
|
protocol,
|
|
146
136
|
hostname,
|
|
@@ -159,14 +149,14 @@ const se_CreateSubscriberCommand = async (input, context) => {
|
|
|
159
149
|
};
|
|
160
150
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
|
|
161
151
|
let body;
|
|
162
|
-
body = JSON.stringify({
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
});
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
153
|
+
accessTypes: (_) => (0, smithy_client_1._json)(_),
|
|
154
|
+
accountId: [],
|
|
155
|
+
externalId: [],
|
|
156
|
+
sourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
157
|
+
subscriberDescription: [],
|
|
158
|
+
subscriberName: [],
|
|
159
|
+
}));
|
|
170
160
|
return new protocol_http_1.HttpRequest({
|
|
171
161
|
protocol,
|
|
172
162
|
hostname,
|
|
@@ -187,14 +177,14 @@ const se_CreateSubscriptionNotificationConfigurationCommand = async (input, cont
|
|
|
187
177
|
"/subscription-notifications/{subscriptionId}";
|
|
188
178
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriptionId", () => input.subscriptionId, "{subscriptionId}", false);
|
|
189
179
|
let body;
|
|
190
|
-
body = JSON.stringify({
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
});
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
181
|
+
createSqs: [],
|
|
182
|
+
httpsApiKeyName: [],
|
|
183
|
+
httpsApiKeyValue: [],
|
|
184
|
+
httpsMethod: [],
|
|
185
|
+
roleArn: [],
|
|
186
|
+
subscriptionEndpoint: [],
|
|
187
|
+
}));
|
|
198
188
|
return new protocol_http_1.HttpRequest({
|
|
199
189
|
protocol,
|
|
200
190
|
hostname,
|
|
@@ -213,18 +203,12 @@ const se_DeleteAwsLogSourceCommand = async (input, context) => {
|
|
|
213
203
|
};
|
|
214
204
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/aws/delete";
|
|
215
205
|
let body;
|
|
216
|
-
body = JSON.stringify({
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}),
|
|
223
|
-
...(input.disableTwoDimensions != null && {
|
|
224
|
-
disableTwoDimensions: se_TwoDimensionsMap(input.disableTwoDimensions, context),
|
|
225
|
-
}),
|
|
226
|
-
...(input.inputOrder != null && { inputOrder: se_DimensionSet(input.inputOrder, context) }),
|
|
227
|
-
});
|
|
206
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
207
|
+
disableAllDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
208
|
+
disableSingleDimension: (_) => (0, smithy_client_1._json)(_),
|
|
209
|
+
disableTwoDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
210
|
+
inputOrder: (_) => (0, smithy_client_1._json)(_),
|
|
211
|
+
}));
|
|
228
212
|
return new protocol_http_1.HttpRequest({
|
|
229
213
|
protocol,
|
|
230
214
|
hostname,
|
|
@@ -240,7 +224,7 @@ const se_DeleteCustomLogSourceCommand = async (input, context) => {
|
|
|
240
224
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
241
225
|
const headers = {};
|
|
242
226
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/custom";
|
|
243
|
-
const query = map({
|
|
227
|
+
const query = (0, smithy_client_1.map)({
|
|
244
228
|
customSourceName: [, (0, smithy_client_1.expectNonNull)(input.customSourceName, `customSourceName`)],
|
|
245
229
|
});
|
|
246
230
|
let body;
|
|
@@ -282,11 +266,9 @@ const se_DeleteDatalakeAutoEnableCommand = async (input, context) => {
|
|
|
282
266
|
};
|
|
283
267
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/autoenable/delete";
|
|
284
268
|
let body;
|
|
285
|
-
body = JSON.stringify({
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}),
|
|
289
|
-
});
|
|
269
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
270
|
+
removeFromConfigurationForNewAccounts: (_) => (0, smithy_client_1._json)(_),
|
|
271
|
+
}));
|
|
290
272
|
return new protocol_http_1.HttpRequest({
|
|
291
273
|
protocol,
|
|
292
274
|
hostname,
|
|
@@ -338,7 +320,7 @@ const se_DeleteSubscriberCommand = async (input, context) => {
|
|
|
338
320
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
339
321
|
const headers = {};
|
|
340
322
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
|
|
341
|
-
const query = map({
|
|
323
|
+
const query = (0, smithy_client_1.map)({
|
|
342
324
|
id: [, (0, smithy_client_1.expectNonNull)(input.id, `id`)],
|
|
343
325
|
});
|
|
344
326
|
let body;
|
|
@@ -455,11 +437,11 @@ const se_GetDatalakeStatusCommand = async (input, context) => {
|
|
|
455
437
|
};
|
|
456
438
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/status";
|
|
457
439
|
let body;
|
|
458
|
-
body = JSON.stringify({
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
});
|
|
440
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
441
|
+
accountSet: (_) => (0, smithy_client_1._json)(_),
|
|
442
|
+
maxAccountResults: [],
|
|
443
|
+
nextToken: [],
|
|
444
|
+
}));
|
|
463
445
|
return new protocol_http_1.HttpRequest({
|
|
464
446
|
protocol,
|
|
465
447
|
hostname,
|
|
@@ -495,11 +477,11 @@ const se_ListDatalakeExceptionsCommand = async (input, context) => {
|
|
|
495
477
|
};
|
|
496
478
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions";
|
|
497
479
|
let body;
|
|
498
|
-
body = JSON.stringify({
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
});
|
|
480
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
481
|
+
maxFailures: [],
|
|
482
|
+
nextToken: [],
|
|
483
|
+
regionSet: (_) => (0, smithy_client_1._json)(_),
|
|
484
|
+
}));
|
|
503
485
|
return new protocol_http_1.HttpRequest({
|
|
504
486
|
protocol,
|
|
505
487
|
hostname,
|
|
@@ -518,18 +500,14 @@ const se_ListLogSourcesCommand = async (input, context) => {
|
|
|
518
500
|
};
|
|
519
501
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/logsources/list";
|
|
520
502
|
let body;
|
|
521
|
-
body = JSON.stringify({
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
}),
|
|
530
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
531
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
532
|
-
});
|
|
503
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
504
|
+
inputOrder: (_) => (0, smithy_client_1._json)(_),
|
|
505
|
+
listAllDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
506
|
+
listSingleDimension: (_) => (0, smithy_client_1._json)(_),
|
|
507
|
+
listTwoDimensions: (_) => (0, smithy_client_1._json)(_),
|
|
508
|
+
maxResults: [],
|
|
509
|
+
nextToken: [],
|
|
510
|
+
}));
|
|
533
511
|
return new protocol_http_1.HttpRequest({
|
|
534
512
|
protocol,
|
|
535
513
|
hostname,
|
|
@@ -545,7 +523,7 @@ const se_ListSubscribersCommand = async (input, context) => {
|
|
|
545
523
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
546
524
|
const headers = {};
|
|
547
525
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers";
|
|
548
|
-
const query = map({
|
|
526
|
+
const query = (0, smithy_client_1.map)({
|
|
549
527
|
nextToken: [, input.nextToken],
|
|
550
528
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
551
529
|
});
|
|
@@ -569,11 +547,9 @@ const se_UpdateDatalakeCommand = async (input, context) => {
|
|
|
569
547
|
};
|
|
570
548
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake";
|
|
571
549
|
let body;
|
|
572
|
-
body = JSON.stringify({
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}),
|
|
576
|
-
});
|
|
550
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
551
|
+
configurations: (_) => (0, smithy_client_1._json)(_),
|
|
552
|
+
}));
|
|
577
553
|
return new protocol_http_1.HttpRequest({
|
|
578
554
|
protocol,
|
|
579
555
|
hostname,
|
|
@@ -592,9 +568,9 @@ const se_UpdateDatalakeExceptionsExpiryCommand = async (input, context) => {
|
|
|
592
568
|
};
|
|
593
569
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/expiry";
|
|
594
570
|
let body;
|
|
595
|
-
body = JSON.stringify({
|
|
596
|
-
|
|
597
|
-
});
|
|
571
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
572
|
+
exceptionMessageExpiry: [],
|
|
573
|
+
}));
|
|
598
574
|
return new protocol_http_1.HttpRequest({
|
|
599
575
|
protocol,
|
|
600
576
|
hostname,
|
|
@@ -613,10 +589,10 @@ const se_UpdateDatalakeExceptionsSubscriptionCommand = async (input, context) =>
|
|
|
613
589
|
};
|
|
614
590
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datalake/exceptions/subscription";
|
|
615
591
|
let body;
|
|
616
|
-
body = JSON.stringify({
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
});
|
|
592
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
593
|
+
notificationEndpoint: [],
|
|
594
|
+
subscriptionProtocol: [],
|
|
595
|
+
}));
|
|
620
596
|
return new protocol_http_1.HttpRequest({
|
|
621
597
|
protocol,
|
|
622
598
|
hostname,
|
|
@@ -636,12 +612,12 @@ const se_UpdateSubscriberCommand = async (input, context) => {
|
|
|
636
612
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/subscribers/{id}";
|
|
637
613
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
638
614
|
let body;
|
|
639
|
-
body = JSON.stringify({
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
});
|
|
615
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
616
|
+
externalId: [],
|
|
617
|
+
sourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
618
|
+
subscriberDescription: [],
|
|
619
|
+
subscriberName: [],
|
|
620
|
+
}));
|
|
645
621
|
return new protocol_http_1.HttpRequest({
|
|
646
622
|
protocol,
|
|
647
623
|
hostname,
|
|
@@ -662,14 +638,14 @@ const se_UpdateSubscriptionNotificationConfigurationCommand = async (input, cont
|
|
|
662
638
|
"/subscription-notifications/{subscriptionId}";
|
|
663
639
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "subscriptionId", () => input.subscriptionId, "{subscriptionId}", false);
|
|
664
640
|
let body;
|
|
665
|
-
body = JSON.stringify({
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
});
|
|
641
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
642
|
+
createSqs: [],
|
|
643
|
+
httpsApiKeyName: [],
|
|
644
|
+
httpsApiKeyValue: [],
|
|
645
|
+
httpsMethod: [],
|
|
646
|
+
roleArn: [],
|
|
647
|
+
subscriptionEndpoint: [],
|
|
648
|
+
}));
|
|
673
649
|
return new protocol_http_1.HttpRequest({
|
|
674
650
|
protocol,
|
|
675
651
|
hostname,
|
|
@@ -685,16 +661,15 @@ const de_CreateAwsLogSourceCommand = async (output, context) => {
|
|
|
685
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
686
662
|
return de_CreateAwsLogSourceCommandError(output, context);
|
|
687
663
|
}
|
|
688
|
-
const contents = map({
|
|
664
|
+
const contents = (0, smithy_client_1.map)({
|
|
689
665
|
$metadata: deserializeMetadata(output),
|
|
690
666
|
});
|
|
691
667
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}
|
|
668
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
669
|
+
failed: smithy_client_1._json,
|
|
670
|
+
processing: smithy_client_1._json,
|
|
671
|
+
});
|
|
672
|
+
Object.assign(contents, doc);
|
|
698
673
|
return contents;
|
|
699
674
|
};
|
|
700
675
|
exports.de_CreateAwsLogSourceCommand = de_CreateAwsLogSourceCommand;
|
|
@@ -725,10 +700,9 @@ const de_CreateAwsLogSourceCommandError = async (output, context) => {
|
|
|
725
700
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
726
701
|
default:
|
|
727
702
|
const parsedBody = parsedOutput.body;
|
|
728
|
-
|
|
703
|
+
return throwDefaultError({
|
|
729
704
|
output,
|
|
730
705
|
parsedBody,
|
|
731
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
732
706
|
errorCode,
|
|
733
707
|
});
|
|
734
708
|
}
|
|
@@ -737,25 +711,18 @@ const de_CreateCustomLogSourceCommand = async (output, context) => {
|
|
|
737
711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
712
|
return de_CreateCustomLogSourceCommandError(output, context);
|
|
739
713
|
}
|
|
740
|
-
const contents = map({
|
|
714
|
+
const contents = (0, smithy_client_1.map)({
|
|
741
715
|
$metadata: deserializeMetadata(output),
|
|
742
716
|
});
|
|
743
717
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
}
|
|
753
|
-
if (data.glueTableName != null) {
|
|
754
|
-
contents.glueTableName = (0, smithy_client_1.expectString)(data.glueTableName);
|
|
755
|
-
}
|
|
756
|
-
if (data.logProviderAccessRoleArn != null) {
|
|
757
|
-
contents.logProviderAccessRoleArn = (0, smithy_client_1.expectString)(data.logProviderAccessRoleArn);
|
|
758
|
-
}
|
|
718
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
719
|
+
customDataLocation: smithy_client_1.expectString,
|
|
720
|
+
glueCrawlerName: smithy_client_1.expectString,
|
|
721
|
+
glueDatabaseName: smithy_client_1.expectString,
|
|
722
|
+
glueTableName: smithy_client_1.expectString,
|
|
723
|
+
logProviderAccessRoleArn: smithy_client_1.expectString,
|
|
724
|
+
});
|
|
725
|
+
Object.assign(contents, doc);
|
|
759
726
|
return contents;
|
|
760
727
|
};
|
|
761
728
|
exports.de_CreateCustomLogSourceCommand = de_CreateCustomLogSourceCommand;
|
|
@@ -789,10 +756,9 @@ const de_CreateCustomLogSourceCommandError = async (output, context) => {
|
|
|
789
756
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
790
757
|
default:
|
|
791
758
|
const parsedBody = parsedOutput.body;
|
|
792
|
-
|
|
759
|
+
return throwDefaultError({
|
|
793
760
|
output,
|
|
794
761
|
parsedBody,
|
|
795
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
796
762
|
errorCode,
|
|
797
763
|
});
|
|
798
764
|
}
|
|
@@ -801,7 +767,7 @@ const de_CreateDatalakeCommand = async (output, context) => {
|
|
|
801
767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
802
768
|
return de_CreateDatalakeCommandError(output, context);
|
|
803
769
|
}
|
|
804
|
-
const contents = map({
|
|
770
|
+
const contents = (0, smithy_client_1.map)({
|
|
805
771
|
$metadata: deserializeMetadata(output),
|
|
806
772
|
});
|
|
807
773
|
await collectBody(output.body, context);
|
|
@@ -838,10 +804,9 @@ const de_CreateDatalakeCommandError = async (output, context) => {
|
|
|
838
804
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
839
805
|
default:
|
|
840
806
|
const parsedBody = parsedOutput.body;
|
|
841
|
-
|
|
807
|
+
return throwDefaultError({
|
|
842
808
|
output,
|
|
843
809
|
parsedBody,
|
|
844
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
845
810
|
errorCode,
|
|
846
811
|
});
|
|
847
812
|
}
|
|
@@ -850,7 +815,7 @@ const de_CreateDatalakeAutoEnableCommand = async (output, context) => {
|
|
|
850
815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
851
816
|
return de_CreateDatalakeAutoEnableCommandError(output, context);
|
|
852
817
|
}
|
|
853
|
-
const contents = map({
|
|
818
|
+
const contents = (0, smithy_client_1.map)({
|
|
854
819
|
$metadata: deserializeMetadata(output),
|
|
855
820
|
});
|
|
856
821
|
await collectBody(output.body, context);
|
|
@@ -878,10 +843,9 @@ const de_CreateDatalakeAutoEnableCommandError = async (output, context) => {
|
|
|
878
843
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
879
844
|
default:
|
|
880
845
|
const parsedBody = parsedOutput.body;
|
|
881
|
-
|
|
846
|
+
return throwDefaultError({
|
|
882
847
|
output,
|
|
883
848
|
parsedBody,
|
|
884
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
885
849
|
errorCode,
|
|
886
850
|
});
|
|
887
851
|
}
|
|
@@ -890,7 +854,7 @@ const de_CreateDatalakeDelegatedAdminCommand = async (output, context) => {
|
|
|
890
854
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
855
|
return de_CreateDatalakeDelegatedAdminCommandError(output, context);
|
|
892
856
|
}
|
|
893
|
-
const contents = map({
|
|
857
|
+
const contents = (0, smithy_client_1.map)({
|
|
894
858
|
$metadata: deserializeMetadata(output),
|
|
895
859
|
});
|
|
896
860
|
await collectBody(output.body, context);
|
|
@@ -918,10 +882,9 @@ const de_CreateDatalakeDelegatedAdminCommandError = async (output, context) => {
|
|
|
918
882
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
883
|
default:
|
|
920
884
|
const parsedBody = parsedOutput.body;
|
|
921
|
-
|
|
885
|
+
return throwDefaultError({
|
|
922
886
|
output,
|
|
923
887
|
parsedBody,
|
|
924
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
925
888
|
errorCode,
|
|
926
889
|
});
|
|
927
890
|
}
|
|
@@ -930,7 +893,7 @@ const de_CreateDatalakeExceptionsSubscriptionCommand = async (output, context) =
|
|
|
930
893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
931
894
|
return de_CreateDatalakeExceptionsSubscriptionCommandError(output, context);
|
|
932
895
|
}
|
|
933
|
-
const contents = map({
|
|
896
|
+
const contents = (0, smithy_client_1.map)({
|
|
934
897
|
$metadata: deserializeMetadata(output),
|
|
935
898
|
});
|
|
936
899
|
await collectBody(output.body, context);
|
|
@@ -958,10 +921,9 @@ const de_CreateDatalakeExceptionsSubscriptionCommandError = async (output, conte
|
|
|
958
921
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
959
922
|
default:
|
|
960
923
|
const parsedBody = parsedOutput.body;
|
|
961
|
-
|
|
924
|
+
return throwDefaultError({
|
|
962
925
|
output,
|
|
963
926
|
parsedBody,
|
|
964
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
965
927
|
errorCode,
|
|
966
928
|
});
|
|
967
929
|
}
|
|
@@ -970,28 +932,19 @@ const de_CreateSubscriberCommand = async (output, context) => {
|
|
|
970
932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
933
|
return de_CreateSubscriberCommandError(output, context);
|
|
972
934
|
}
|
|
973
|
-
const contents = map({
|
|
935
|
+
const contents = (0, smithy_client_1.map)({
|
|
974
936
|
$metadata: deserializeMetadata(output),
|
|
975
937
|
});
|
|
976
938
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
if (data.s3BucketArn != null) {
|
|
987
|
-
contents.s3BucketArn = (0, smithy_client_1.expectString)(data.s3BucketArn);
|
|
988
|
-
}
|
|
989
|
-
if (data.snsArn != null) {
|
|
990
|
-
contents.snsArn = (0, smithy_client_1.expectString)(data.snsArn);
|
|
991
|
-
}
|
|
992
|
-
if (data.subscriptionId != null) {
|
|
993
|
-
contents.subscriptionId = (0, smithy_client_1.expectString)(data.subscriptionId);
|
|
994
|
-
}
|
|
939
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
940
|
+
resourceShareArn: smithy_client_1.expectString,
|
|
941
|
+
resourceShareName: smithy_client_1.expectString,
|
|
942
|
+
roleArn: smithy_client_1.expectString,
|
|
943
|
+
s3BucketArn: smithy_client_1.expectString,
|
|
944
|
+
snsArn: smithy_client_1.expectString,
|
|
945
|
+
subscriptionId: smithy_client_1.expectString,
|
|
946
|
+
});
|
|
947
|
+
Object.assign(contents, doc);
|
|
995
948
|
return contents;
|
|
996
949
|
};
|
|
997
950
|
exports.de_CreateSubscriberCommand = de_CreateSubscriberCommand;
|
|
@@ -1028,10 +981,9 @@ const de_CreateSubscriberCommandError = async (output, context) => {
|
|
|
1028
981
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1029
982
|
default:
|
|
1030
983
|
const parsedBody = parsedOutput.body;
|
|
1031
|
-
|
|
984
|
+
return throwDefaultError({
|
|
1032
985
|
output,
|
|
1033
986
|
parsedBody,
|
|
1034
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1035
987
|
errorCode,
|
|
1036
988
|
});
|
|
1037
989
|
}
|
|
@@ -1040,13 +992,14 @@ const de_CreateSubscriptionNotificationConfigurationCommand = async (output, con
|
|
|
1040
992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1041
993
|
return de_CreateSubscriptionNotificationConfigurationCommandError(output, context);
|
|
1042
994
|
}
|
|
1043
|
-
const contents = map({
|
|
995
|
+
const contents = (0, smithy_client_1.map)({
|
|
1044
996
|
$metadata: deserializeMetadata(output),
|
|
1045
997
|
});
|
|
1046
998
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
}
|
|
999
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1000
|
+
queueArn: smithy_client_1.expectString,
|
|
1001
|
+
});
|
|
1002
|
+
Object.assign(contents, doc);
|
|
1050
1003
|
return contents;
|
|
1051
1004
|
};
|
|
1052
1005
|
exports.de_CreateSubscriptionNotificationConfigurationCommand = de_CreateSubscriptionNotificationConfigurationCommand;
|
|
@@ -1080,10 +1033,9 @@ const de_CreateSubscriptionNotificationConfigurationCommandError = async (output
|
|
|
1080
1033
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1081
1034
|
default:
|
|
1082
1035
|
const parsedBody = parsedOutput.body;
|
|
1083
|
-
|
|
1036
|
+
return throwDefaultError({
|
|
1084
1037
|
output,
|
|
1085
1038
|
parsedBody,
|
|
1086
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1087
1039
|
errorCode,
|
|
1088
1040
|
});
|
|
1089
1041
|
}
|
|
@@ -1092,16 +1044,15 @@ const de_DeleteAwsLogSourceCommand = async (output, context) => {
|
|
|
1092
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1093
1045
|
return de_DeleteAwsLogSourceCommandError(output, context);
|
|
1094
1046
|
}
|
|
1095
|
-
const contents = map({
|
|
1047
|
+
const contents = (0, smithy_client_1.map)({
|
|
1096
1048
|
$metadata: deserializeMetadata(output),
|
|
1097
1049
|
});
|
|
1098
1050
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
}
|
|
1051
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1052
|
+
failed: smithy_client_1._json,
|
|
1053
|
+
processing: smithy_client_1._json,
|
|
1054
|
+
});
|
|
1055
|
+
Object.assign(contents, doc);
|
|
1105
1056
|
return contents;
|
|
1106
1057
|
};
|
|
1107
1058
|
exports.de_DeleteAwsLogSourceCommand = de_DeleteAwsLogSourceCommand;
|
|
@@ -1126,10 +1077,9 @@ const de_DeleteAwsLogSourceCommandError = async (output, context) => {
|
|
|
1126
1077
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1127
1078
|
default:
|
|
1128
1079
|
const parsedBody = parsedOutput.body;
|
|
1129
|
-
|
|
1080
|
+
return throwDefaultError({
|
|
1130
1081
|
output,
|
|
1131
1082
|
parsedBody,
|
|
1132
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1133
1083
|
errorCode,
|
|
1134
1084
|
});
|
|
1135
1085
|
}
|
|
@@ -1138,13 +1088,14 @@ const de_DeleteCustomLogSourceCommand = async (output, context) => {
|
|
|
1138
1088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1139
1089
|
return de_DeleteCustomLogSourceCommandError(output, context);
|
|
1140
1090
|
}
|
|
1141
|
-
const contents = map({
|
|
1091
|
+
const contents = (0, smithy_client_1.map)({
|
|
1142
1092
|
$metadata: deserializeMetadata(output),
|
|
1143
1093
|
});
|
|
1144
1094
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
}
|
|
1095
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1096
|
+
customDataLocation: smithy_client_1.expectString,
|
|
1097
|
+
});
|
|
1098
|
+
Object.assign(contents, doc);
|
|
1148
1099
|
return contents;
|
|
1149
1100
|
};
|
|
1150
1101
|
exports.de_DeleteCustomLogSourceCommand = de_DeleteCustomLogSourceCommand;
|
|
@@ -1178,10 +1129,9 @@ const de_DeleteCustomLogSourceCommandError = async (output, context) => {
|
|
|
1178
1129
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1179
1130
|
default:
|
|
1180
1131
|
const parsedBody = parsedOutput.body;
|
|
1181
|
-
|
|
1132
|
+
return throwDefaultError({
|
|
1182
1133
|
output,
|
|
1183
1134
|
parsedBody,
|
|
1184
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1185
1135
|
errorCode,
|
|
1186
1136
|
});
|
|
1187
1137
|
}
|
|
@@ -1190,7 +1140,7 @@ const de_DeleteDatalakeCommand = async (output, context) => {
|
|
|
1190
1140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1191
1141
|
return de_DeleteDatalakeCommandError(output, context);
|
|
1192
1142
|
}
|
|
1193
|
-
const contents = map({
|
|
1143
|
+
const contents = (0, smithy_client_1.map)({
|
|
1194
1144
|
$metadata: deserializeMetadata(output),
|
|
1195
1145
|
});
|
|
1196
1146
|
await collectBody(output.body, context);
|
|
@@ -1227,10 +1177,9 @@ const de_DeleteDatalakeCommandError = async (output, context) => {
|
|
|
1227
1177
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1228
1178
|
default:
|
|
1229
1179
|
const parsedBody = parsedOutput.body;
|
|
1230
|
-
|
|
1180
|
+
return throwDefaultError({
|
|
1231
1181
|
output,
|
|
1232
1182
|
parsedBody,
|
|
1233
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1234
1183
|
errorCode,
|
|
1235
1184
|
});
|
|
1236
1185
|
}
|
|
@@ -1239,7 +1188,7 @@ const de_DeleteDatalakeAutoEnableCommand = async (output, context) => {
|
|
|
1239
1188
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1240
1189
|
return de_DeleteDatalakeAutoEnableCommandError(output, context);
|
|
1241
1190
|
}
|
|
1242
|
-
const contents = map({
|
|
1191
|
+
const contents = (0, smithy_client_1.map)({
|
|
1243
1192
|
$metadata: deserializeMetadata(output),
|
|
1244
1193
|
});
|
|
1245
1194
|
await collectBody(output.body, context);
|
|
@@ -1267,10 +1216,9 @@ const de_DeleteDatalakeAutoEnableCommandError = async (output, context) => {
|
|
|
1267
1216
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1268
1217
|
default:
|
|
1269
1218
|
const parsedBody = parsedOutput.body;
|
|
1270
|
-
|
|
1219
|
+
return throwDefaultError({
|
|
1271
1220
|
output,
|
|
1272
1221
|
parsedBody,
|
|
1273
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1274
1222
|
errorCode,
|
|
1275
1223
|
});
|
|
1276
1224
|
}
|
|
@@ -1279,7 +1227,7 @@ const de_DeleteDatalakeDelegatedAdminCommand = async (output, context) => {
|
|
|
1279
1227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1280
1228
|
return de_DeleteDatalakeDelegatedAdminCommandError(output, context);
|
|
1281
1229
|
}
|
|
1282
|
-
const contents = map({
|
|
1230
|
+
const contents = (0, smithy_client_1.map)({
|
|
1283
1231
|
$metadata: deserializeMetadata(output),
|
|
1284
1232
|
});
|
|
1285
1233
|
await collectBody(output.body, context);
|
|
@@ -1307,10 +1255,9 @@ const de_DeleteDatalakeDelegatedAdminCommandError = async (output, context) => {
|
|
|
1307
1255
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1308
1256
|
default:
|
|
1309
1257
|
const parsedBody = parsedOutput.body;
|
|
1310
|
-
|
|
1258
|
+
return throwDefaultError({
|
|
1311
1259
|
output,
|
|
1312
1260
|
parsedBody,
|
|
1313
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1314
1261
|
errorCode,
|
|
1315
1262
|
});
|
|
1316
1263
|
}
|
|
@@ -1319,13 +1266,14 @@ const de_DeleteDatalakeExceptionsSubscriptionCommand = async (output, context) =
|
|
|
1319
1266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1320
1267
|
return de_DeleteDatalakeExceptionsSubscriptionCommandError(output, context);
|
|
1321
1268
|
}
|
|
1322
|
-
const contents = map({
|
|
1269
|
+
const contents = (0, smithy_client_1.map)({
|
|
1323
1270
|
$metadata: deserializeMetadata(output),
|
|
1324
1271
|
});
|
|
1325
1272
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
}
|
|
1273
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1274
|
+
status: smithy_client_1.expectString,
|
|
1275
|
+
});
|
|
1276
|
+
Object.assign(contents, doc);
|
|
1329
1277
|
return contents;
|
|
1330
1278
|
};
|
|
1331
1279
|
exports.de_DeleteDatalakeExceptionsSubscriptionCommand = de_DeleteDatalakeExceptionsSubscriptionCommand;
|
|
@@ -1350,10 +1298,9 @@ const de_DeleteDatalakeExceptionsSubscriptionCommandError = async (output, conte
|
|
|
1350
1298
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1351
1299
|
default:
|
|
1352
1300
|
const parsedBody = parsedOutput.body;
|
|
1353
|
-
|
|
1301
|
+
return throwDefaultError({
|
|
1354
1302
|
output,
|
|
1355
1303
|
parsedBody,
|
|
1356
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1357
1304
|
errorCode,
|
|
1358
1305
|
});
|
|
1359
1306
|
}
|
|
@@ -1362,7 +1309,7 @@ const de_DeleteSubscriberCommand = async (output, context) => {
|
|
|
1362
1309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
1310
|
return de_DeleteSubscriberCommandError(output, context);
|
|
1364
1311
|
}
|
|
1365
|
-
const contents = map({
|
|
1312
|
+
const contents = (0, smithy_client_1.map)({
|
|
1366
1313
|
$metadata: deserializeMetadata(output),
|
|
1367
1314
|
});
|
|
1368
1315
|
await collectBody(output.body, context);
|
|
@@ -1402,10 +1349,9 @@ const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
|
1402
1349
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1403
1350
|
default:
|
|
1404
1351
|
const parsedBody = parsedOutput.body;
|
|
1405
|
-
|
|
1352
|
+
return throwDefaultError({
|
|
1406
1353
|
output,
|
|
1407
1354
|
parsedBody,
|
|
1408
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1409
1355
|
errorCode,
|
|
1410
1356
|
});
|
|
1411
1357
|
}
|
|
@@ -1414,7 +1360,7 @@ const de_DeleteSubscriptionNotificationConfigurationCommand = async (output, con
|
|
|
1414
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1415
1361
|
return de_DeleteSubscriptionNotificationConfigurationCommandError(output, context);
|
|
1416
1362
|
}
|
|
1417
|
-
const contents = map({
|
|
1363
|
+
const contents = (0, smithy_client_1.map)({
|
|
1418
1364
|
$metadata: deserializeMetadata(output),
|
|
1419
1365
|
});
|
|
1420
1366
|
await collectBody(output.body, context);
|
|
@@ -1451,10 +1397,9 @@ const de_DeleteSubscriptionNotificationConfigurationCommandError = async (output
|
|
|
1451
1397
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1452
1398
|
default:
|
|
1453
1399
|
const parsedBody = parsedOutput.body;
|
|
1454
|
-
|
|
1400
|
+
return throwDefaultError({
|
|
1455
1401
|
output,
|
|
1456
1402
|
parsedBody,
|
|
1457
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1458
1403
|
errorCode,
|
|
1459
1404
|
});
|
|
1460
1405
|
}
|
|
@@ -1463,13 +1408,14 @@ const de_GetDatalakeCommand = async (output, context) => {
|
|
|
1463
1408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1464
1409
|
return de_GetDatalakeCommandError(output, context);
|
|
1465
1410
|
}
|
|
1466
|
-
const contents = map({
|
|
1411
|
+
const contents = (0, smithy_client_1.map)({
|
|
1467
1412
|
$metadata: deserializeMetadata(output),
|
|
1468
1413
|
});
|
|
1469
1414
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
}
|
|
1415
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1416
|
+
configurations: smithy_client_1._json,
|
|
1417
|
+
});
|
|
1418
|
+
Object.assign(contents, doc);
|
|
1473
1419
|
return contents;
|
|
1474
1420
|
};
|
|
1475
1421
|
exports.de_GetDatalakeCommand = de_GetDatalakeCommand;
|
|
@@ -1497,10 +1443,9 @@ const de_GetDatalakeCommandError = async (output, context) => {
|
|
|
1497
1443
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1498
1444
|
default:
|
|
1499
1445
|
const parsedBody = parsedOutput.body;
|
|
1500
|
-
|
|
1446
|
+
return throwDefaultError({
|
|
1501
1447
|
output,
|
|
1502
1448
|
parsedBody,
|
|
1503
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1504
1449
|
errorCode,
|
|
1505
1450
|
});
|
|
1506
1451
|
}
|
|
@@ -1509,13 +1454,14 @@ const de_GetDatalakeAutoEnableCommand = async (output, context) => {
|
|
|
1509
1454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1510
1455
|
return de_GetDatalakeAutoEnableCommandError(output, context);
|
|
1511
1456
|
}
|
|
1512
|
-
const contents = map({
|
|
1457
|
+
const contents = (0, smithy_client_1.map)({
|
|
1513
1458
|
$metadata: deserializeMetadata(output),
|
|
1514
1459
|
});
|
|
1515
1460
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
}
|
|
1461
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1462
|
+
autoEnableNewAccounts: smithy_client_1._json,
|
|
1463
|
+
});
|
|
1464
|
+
Object.assign(contents, doc);
|
|
1519
1465
|
return contents;
|
|
1520
1466
|
};
|
|
1521
1467
|
exports.de_GetDatalakeAutoEnableCommand = de_GetDatalakeAutoEnableCommand;
|
|
@@ -1540,10 +1486,9 @@ const de_GetDatalakeAutoEnableCommandError = async (output, context) => {
|
|
|
1540
1486
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1541
1487
|
default:
|
|
1542
1488
|
const parsedBody = parsedOutput.body;
|
|
1543
|
-
|
|
1489
|
+
return throwDefaultError({
|
|
1544
1490
|
output,
|
|
1545
1491
|
parsedBody,
|
|
1546
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1547
1492
|
errorCode,
|
|
1548
1493
|
});
|
|
1549
1494
|
}
|
|
@@ -1552,13 +1497,14 @@ const de_GetDatalakeExceptionsExpiryCommand = async (output, context) => {
|
|
|
1552
1497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1553
1498
|
return de_GetDatalakeExceptionsExpiryCommandError(output, context);
|
|
1554
1499
|
}
|
|
1555
|
-
const contents = map({
|
|
1500
|
+
const contents = (0, smithy_client_1.map)({
|
|
1556
1501
|
$metadata: deserializeMetadata(output),
|
|
1557
1502
|
});
|
|
1558
1503
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
}
|
|
1504
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1505
|
+
exceptionMessageExpiry: smithy_client_1.expectLong,
|
|
1506
|
+
});
|
|
1507
|
+
Object.assign(contents, doc);
|
|
1562
1508
|
return contents;
|
|
1563
1509
|
};
|
|
1564
1510
|
exports.de_GetDatalakeExceptionsExpiryCommand = de_GetDatalakeExceptionsExpiryCommand;
|
|
@@ -1583,10 +1529,9 @@ const de_GetDatalakeExceptionsExpiryCommandError = async (output, context) => {
|
|
|
1583
1529
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1584
1530
|
default:
|
|
1585
1531
|
const parsedBody = parsedOutput.body;
|
|
1586
|
-
|
|
1532
|
+
return throwDefaultError({
|
|
1587
1533
|
output,
|
|
1588
1534
|
parsedBody,
|
|
1589
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1590
1535
|
errorCode,
|
|
1591
1536
|
});
|
|
1592
1537
|
}
|
|
@@ -1595,13 +1540,14 @@ const de_GetDatalakeExceptionsSubscriptionCommand = async (output, context) => {
|
|
|
1595
1540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1596
1541
|
return de_GetDatalakeExceptionsSubscriptionCommandError(output, context);
|
|
1597
1542
|
}
|
|
1598
|
-
const contents = map({
|
|
1543
|
+
const contents = (0, smithy_client_1.map)({
|
|
1599
1544
|
$metadata: deserializeMetadata(output),
|
|
1600
1545
|
});
|
|
1601
1546
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
}
|
|
1547
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1548
|
+
protocolAndNotificationEndpoint: smithy_client_1._json,
|
|
1549
|
+
});
|
|
1550
|
+
Object.assign(contents, doc);
|
|
1605
1551
|
return contents;
|
|
1606
1552
|
};
|
|
1607
1553
|
exports.de_GetDatalakeExceptionsSubscriptionCommand = de_GetDatalakeExceptionsSubscriptionCommand;
|
|
@@ -1626,10 +1572,9 @@ const de_GetDatalakeExceptionsSubscriptionCommandError = async (output, context)
|
|
|
1626
1572
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1627
1573
|
default:
|
|
1628
1574
|
const parsedBody = parsedOutput.body;
|
|
1629
|
-
|
|
1575
|
+
return throwDefaultError({
|
|
1630
1576
|
output,
|
|
1631
1577
|
parsedBody,
|
|
1632
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1633
1578
|
errorCode,
|
|
1634
1579
|
});
|
|
1635
1580
|
}
|
|
@@ -1638,16 +1583,15 @@ const de_GetDatalakeStatusCommand = async (output, context) => {
|
|
|
1638
1583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1639
1584
|
return de_GetDatalakeStatusCommandError(output, context);
|
|
1640
1585
|
}
|
|
1641
|
-
const contents = map({
|
|
1586
|
+
const contents = (0, smithy_client_1.map)({
|
|
1642
1587
|
$metadata: deserializeMetadata(output),
|
|
1643
1588
|
});
|
|
1644
1589
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
}
|
|
1590
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1591
|
+
accountSourcesList: smithy_client_1._json,
|
|
1592
|
+
nextToken: smithy_client_1.expectString,
|
|
1593
|
+
});
|
|
1594
|
+
Object.assign(contents, doc);
|
|
1651
1595
|
return contents;
|
|
1652
1596
|
};
|
|
1653
1597
|
exports.de_GetDatalakeStatusCommand = de_GetDatalakeStatusCommand;
|
|
@@ -1672,10 +1616,9 @@ const de_GetDatalakeStatusCommandError = async (output, context) => {
|
|
|
1672
1616
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1673
1617
|
default:
|
|
1674
1618
|
const parsedBody = parsedOutput.body;
|
|
1675
|
-
|
|
1619
|
+
return throwDefaultError({
|
|
1676
1620
|
output,
|
|
1677
1621
|
parsedBody,
|
|
1678
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1679
1622
|
errorCode,
|
|
1680
1623
|
});
|
|
1681
1624
|
}
|
|
@@ -1684,13 +1627,14 @@ const de_GetSubscriberCommand = async (output, context) => {
|
|
|
1684
1627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1685
1628
|
return de_GetSubscriberCommandError(output, context);
|
|
1686
1629
|
}
|
|
1687
|
-
const contents = map({
|
|
1630
|
+
const contents = (0, smithy_client_1.map)({
|
|
1688
1631
|
$metadata: deserializeMetadata(output),
|
|
1689
1632
|
});
|
|
1690
1633
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
}
|
|
1634
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1635
|
+
subscriber: (_) => de_SubscriberResource(_, context),
|
|
1636
|
+
});
|
|
1637
|
+
Object.assign(contents, doc);
|
|
1694
1638
|
return contents;
|
|
1695
1639
|
};
|
|
1696
1640
|
exports.de_GetSubscriberCommand = de_GetSubscriberCommand;
|
|
@@ -1718,10 +1662,9 @@ const de_GetSubscriberCommandError = async (output, context) => {
|
|
|
1718
1662
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1719
1663
|
default:
|
|
1720
1664
|
const parsedBody = parsedOutput.body;
|
|
1721
|
-
|
|
1665
|
+
return throwDefaultError({
|
|
1722
1666
|
output,
|
|
1723
1667
|
parsedBody,
|
|
1724
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1725
1668
|
errorCode,
|
|
1726
1669
|
});
|
|
1727
1670
|
}
|
|
@@ -1730,16 +1673,15 @@ const de_ListDatalakeExceptionsCommand = async (output, context) => {
|
|
|
1730
1673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1731
1674
|
return de_ListDatalakeExceptionsCommandError(output, context);
|
|
1732
1675
|
}
|
|
1733
|
-
const contents = map({
|
|
1676
|
+
const contents = (0, smithy_client_1.map)({
|
|
1734
1677
|
$metadata: deserializeMetadata(output),
|
|
1735
1678
|
});
|
|
1736
1679
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
}
|
|
1680
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1681
|
+
nextToken: smithy_client_1.expectString,
|
|
1682
|
+
nonRetryableFailures: (_) => de_FailuresResponseList(_, context),
|
|
1683
|
+
});
|
|
1684
|
+
Object.assign(contents, doc);
|
|
1743
1685
|
return contents;
|
|
1744
1686
|
};
|
|
1745
1687
|
exports.de_ListDatalakeExceptionsCommand = de_ListDatalakeExceptionsCommand;
|
|
@@ -1764,10 +1706,9 @@ const de_ListDatalakeExceptionsCommandError = async (output, context) => {
|
|
|
1764
1706
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1765
1707
|
default:
|
|
1766
1708
|
const parsedBody = parsedOutput.body;
|
|
1767
|
-
|
|
1709
|
+
return throwDefaultError({
|
|
1768
1710
|
output,
|
|
1769
1711
|
parsedBody,
|
|
1770
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1771
1712
|
errorCode,
|
|
1772
1713
|
});
|
|
1773
1714
|
}
|
|
@@ -1776,16 +1717,15 @@ const de_ListLogSourcesCommand = async (output, context) => {
|
|
|
1776
1717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1777
1718
|
return de_ListLogSourcesCommandError(output, context);
|
|
1778
1719
|
}
|
|
1779
|
-
const contents = map({
|
|
1720
|
+
const contents = (0, smithy_client_1.map)({
|
|
1780
1721
|
$metadata: deserializeMetadata(output),
|
|
1781
1722
|
});
|
|
1782
1723
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
}
|
|
1724
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1725
|
+
nextToken: smithy_client_1.expectString,
|
|
1726
|
+
regionSourceTypesAccountsList: smithy_client_1._json,
|
|
1727
|
+
});
|
|
1728
|
+
Object.assign(contents, doc);
|
|
1789
1729
|
return contents;
|
|
1790
1730
|
};
|
|
1791
1731
|
exports.de_ListLogSourcesCommand = de_ListLogSourcesCommand;
|
|
@@ -1813,10 +1753,9 @@ const de_ListLogSourcesCommandError = async (output, context) => {
|
|
|
1813
1753
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1814
1754
|
default:
|
|
1815
1755
|
const parsedBody = parsedOutput.body;
|
|
1816
|
-
|
|
1756
|
+
return throwDefaultError({
|
|
1817
1757
|
output,
|
|
1818
1758
|
parsedBody,
|
|
1819
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1820
1759
|
errorCode,
|
|
1821
1760
|
});
|
|
1822
1761
|
}
|
|
@@ -1825,16 +1764,15 @@ const de_ListSubscribersCommand = async (output, context) => {
|
|
|
1825
1764
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1826
1765
|
return de_ListSubscribersCommandError(output, context);
|
|
1827
1766
|
}
|
|
1828
|
-
const contents = map({
|
|
1767
|
+
const contents = (0, smithy_client_1.map)({
|
|
1829
1768
|
$metadata: deserializeMetadata(output),
|
|
1830
1769
|
});
|
|
1831
1770
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
}
|
|
1771
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1772
|
+
nextToken: smithy_client_1.expectString,
|
|
1773
|
+
subscribers: (_) => de_SubscriberList(_, context),
|
|
1774
|
+
});
|
|
1775
|
+
Object.assign(contents, doc);
|
|
1838
1776
|
return contents;
|
|
1839
1777
|
};
|
|
1840
1778
|
exports.de_ListSubscribersCommand = de_ListSubscribersCommand;
|
|
@@ -1865,10 +1803,9 @@ const de_ListSubscribersCommandError = async (output, context) => {
|
|
|
1865
1803
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1866
1804
|
default:
|
|
1867
1805
|
const parsedBody = parsedOutput.body;
|
|
1868
|
-
|
|
1806
|
+
return throwDefaultError({
|
|
1869
1807
|
output,
|
|
1870
1808
|
parsedBody,
|
|
1871
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1872
1809
|
errorCode,
|
|
1873
1810
|
});
|
|
1874
1811
|
}
|
|
@@ -1877,7 +1814,7 @@ const de_UpdateDatalakeCommand = async (output, context) => {
|
|
|
1877
1814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1878
1815
|
return de_UpdateDatalakeCommandError(output, context);
|
|
1879
1816
|
}
|
|
1880
|
-
const contents = map({
|
|
1817
|
+
const contents = (0, smithy_client_1.map)({
|
|
1881
1818
|
$metadata: deserializeMetadata(output),
|
|
1882
1819
|
});
|
|
1883
1820
|
await collectBody(output.body, context);
|
|
@@ -1908,10 +1845,9 @@ const de_UpdateDatalakeCommandError = async (output, context) => {
|
|
|
1908
1845
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1909
1846
|
default:
|
|
1910
1847
|
const parsedBody = parsedOutput.body;
|
|
1911
|
-
|
|
1848
|
+
return throwDefaultError({
|
|
1912
1849
|
output,
|
|
1913
1850
|
parsedBody,
|
|
1914
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1915
1851
|
errorCode,
|
|
1916
1852
|
});
|
|
1917
1853
|
}
|
|
@@ -1920,7 +1856,7 @@ const de_UpdateDatalakeExceptionsExpiryCommand = async (output, context) => {
|
|
|
1920
1856
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1921
1857
|
return de_UpdateDatalakeExceptionsExpiryCommandError(output, context);
|
|
1922
1858
|
}
|
|
1923
|
-
const contents = map({
|
|
1859
|
+
const contents = (0, smithy_client_1.map)({
|
|
1924
1860
|
$metadata: deserializeMetadata(output),
|
|
1925
1861
|
});
|
|
1926
1862
|
await collectBody(output.body, context);
|
|
@@ -1948,10 +1884,9 @@ const de_UpdateDatalakeExceptionsExpiryCommandError = async (output, context) =>
|
|
|
1948
1884
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1949
1885
|
default:
|
|
1950
1886
|
const parsedBody = parsedOutput.body;
|
|
1951
|
-
|
|
1887
|
+
return throwDefaultError({
|
|
1952
1888
|
output,
|
|
1953
1889
|
parsedBody,
|
|
1954
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1955
1890
|
errorCode,
|
|
1956
1891
|
});
|
|
1957
1892
|
}
|
|
@@ -1960,7 +1895,7 @@ const de_UpdateDatalakeExceptionsSubscriptionCommand = async (output, context) =
|
|
|
1960
1895
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1961
1896
|
return de_UpdateDatalakeExceptionsSubscriptionCommandError(output, context);
|
|
1962
1897
|
}
|
|
1963
|
-
const contents = map({
|
|
1898
|
+
const contents = (0, smithy_client_1.map)({
|
|
1964
1899
|
$metadata: deserializeMetadata(output),
|
|
1965
1900
|
});
|
|
1966
1901
|
await collectBody(output.body, context);
|
|
@@ -1988,10 +1923,9 @@ const de_UpdateDatalakeExceptionsSubscriptionCommandError = async (output, conte
|
|
|
1988
1923
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1989
1924
|
default:
|
|
1990
1925
|
const parsedBody = parsedOutput.body;
|
|
1991
|
-
|
|
1926
|
+
return throwDefaultError({
|
|
1992
1927
|
output,
|
|
1993
1928
|
parsedBody,
|
|
1994
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
1995
1929
|
errorCode,
|
|
1996
1930
|
});
|
|
1997
1931
|
}
|
|
@@ -2000,13 +1934,14 @@ const de_UpdateSubscriberCommand = async (output, context) => {
|
|
|
2000
1934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2001
1935
|
return de_UpdateSubscriberCommandError(output, context);
|
|
2002
1936
|
}
|
|
2003
|
-
const contents = map({
|
|
1937
|
+
const contents = (0, smithy_client_1.map)({
|
|
2004
1938
|
$metadata: deserializeMetadata(output),
|
|
2005
1939
|
});
|
|
2006
1940
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
}
|
|
1941
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1942
|
+
subscriber: (_) => de_SubscriberResource(_, context),
|
|
1943
|
+
});
|
|
1944
|
+
Object.assign(contents, doc);
|
|
2010
1945
|
return contents;
|
|
2011
1946
|
};
|
|
2012
1947
|
exports.de_UpdateSubscriberCommand = de_UpdateSubscriberCommand;
|
|
@@ -2040,10 +1975,9 @@ const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
|
2040
1975
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2041
1976
|
default:
|
|
2042
1977
|
const parsedBody = parsedOutput.body;
|
|
2043
|
-
|
|
1978
|
+
return throwDefaultError({
|
|
2044
1979
|
output,
|
|
2045
1980
|
parsedBody,
|
|
2046
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
2047
1981
|
errorCode,
|
|
2048
1982
|
});
|
|
2049
1983
|
}
|
|
@@ -2052,13 +1986,14 @@ const de_UpdateSubscriptionNotificationConfigurationCommand = async (output, con
|
|
|
2052
1986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2053
1987
|
return de_UpdateSubscriptionNotificationConfigurationCommandError(output, context);
|
|
2054
1988
|
}
|
|
2055
|
-
const contents = map({
|
|
1989
|
+
const contents = (0, smithy_client_1.map)({
|
|
2056
1990
|
$metadata: deserializeMetadata(output),
|
|
2057
1991
|
});
|
|
2058
1992
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
}
|
|
1993
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1994
|
+
queueArn: smithy_client_1.expectString,
|
|
1995
|
+
});
|
|
1996
|
+
Object.assign(contents, doc);
|
|
2062
1997
|
return contents;
|
|
2063
1998
|
};
|
|
2064
1999
|
exports.de_UpdateSubscriptionNotificationConfigurationCommand = de_UpdateSubscriptionNotificationConfigurationCommand;
|
|
@@ -2092,24 +2027,22 @@ const de_UpdateSubscriptionNotificationConfigurationCommandError = async (output
|
|
|
2092
2027
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2093
2028
|
default:
|
|
2094
2029
|
const parsedBody = parsedOutput.body;
|
|
2095
|
-
|
|
2030
|
+
return throwDefaultError({
|
|
2096
2031
|
output,
|
|
2097
2032
|
parsedBody,
|
|
2098
|
-
exceptionCtor: SecurityLakeServiceException_1.SecurityLakeServiceException,
|
|
2099
2033
|
errorCode,
|
|
2100
2034
|
});
|
|
2101
2035
|
}
|
|
2102
2036
|
};
|
|
2103
|
-
const
|
|
2037
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SecurityLakeServiceException_1.SecurityLakeServiceException);
|
|
2104
2038
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2105
|
-
const contents = map({});
|
|
2039
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2106
2040
|
const data = parsedOutput.body;
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
}
|
|
2041
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2042
|
+
errorCode: smithy_client_1.expectString,
|
|
2043
|
+
message: smithy_client_1.expectString,
|
|
2044
|
+
});
|
|
2045
|
+
Object.assign(contents, doc);
|
|
2113
2046
|
const exception = new models_0_1.AccessDeniedException({
|
|
2114
2047
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2115
2048
|
...contents,
|
|
@@ -2117,11 +2050,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2117
2050
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2118
2051
|
};
|
|
2119
2052
|
const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2120
|
-
const contents = map({});
|
|
2053
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2121
2054
|
const data = parsedOutput.body;
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
}
|
|
2055
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2056
|
+
message: smithy_client_1.expectString,
|
|
2057
|
+
});
|
|
2058
|
+
Object.assign(contents, doc);
|
|
2125
2059
|
const exception = new models_0_1.AccountNotFoundException({
|
|
2126
2060
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2127
2061
|
...contents,
|
|
@@ -2129,11 +2063,12 @@ const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2129
2063
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2130
2064
|
};
|
|
2131
2065
|
const de_BucketNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2132
|
-
const contents = map({});
|
|
2066
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2133
2067
|
const data = parsedOutput.body;
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
}
|
|
2068
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2069
|
+
message: smithy_client_1.expectString,
|
|
2070
|
+
});
|
|
2071
|
+
Object.assign(contents, doc);
|
|
2137
2072
|
const exception = new models_0_1.BucketNotFoundException({
|
|
2138
2073
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2139
2074
|
...contents,
|
|
@@ -2141,11 +2076,12 @@ const de_BucketNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2141
2076
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2142
2077
|
};
|
|
2143
2078
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
2144
|
-
const contents = map({});
|
|
2079
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2145
2080
|
const data = parsedOutput.body;
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
}
|
|
2081
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2082
|
+
message: smithy_client_1.expectString,
|
|
2083
|
+
});
|
|
2084
|
+
Object.assign(contents, doc);
|
|
2149
2085
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
2150
2086
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2151
2087
|
...contents,
|
|
@@ -2153,17 +2089,14 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
2153
2089
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2154
2090
|
};
|
|
2155
2091
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2156
|
-
const contents = map({});
|
|
2092
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2157
2093
|
const data = parsedOutput.body;
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
if (data.resourceType != null) {
|
|
2165
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2166
|
-
}
|
|
2094
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2095
|
+
message: smithy_client_1.expectString,
|
|
2096
|
+
resourceId: smithy_client_1.expectString,
|
|
2097
|
+
resourceType: smithy_client_1.expectString,
|
|
2098
|
+
});
|
|
2099
|
+
Object.assign(contents, doc);
|
|
2167
2100
|
const exception = new models_0_1.ConflictException({
|
|
2168
2101
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2169
2102
|
...contents,
|
|
@@ -2171,11 +2104,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2171
2104
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2172
2105
|
};
|
|
2173
2106
|
const de_ConflictSourceNamesExceptionRes = async (parsedOutput, context) => {
|
|
2174
|
-
const contents = map({});
|
|
2107
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2175
2108
|
const data = parsedOutput.body;
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
}
|
|
2109
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2110
|
+
message: smithy_client_1.expectString,
|
|
2111
|
+
});
|
|
2112
|
+
Object.assign(contents, doc);
|
|
2179
2113
|
const exception = new models_0_1.ConflictSourceNamesException({
|
|
2180
2114
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2181
2115
|
...contents,
|
|
@@ -2183,11 +2117,12 @@ const de_ConflictSourceNamesExceptionRes = async (parsedOutput, context) => {
|
|
|
2183
2117
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2184
2118
|
};
|
|
2185
2119
|
const de_ConflictSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
2186
|
-
const contents = map({});
|
|
2120
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2187
2121
|
const data = parsedOutput.body;
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
}
|
|
2122
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2123
|
+
message: smithy_client_1.expectString,
|
|
2124
|
+
});
|
|
2125
|
+
Object.assign(contents, doc);
|
|
2191
2126
|
const exception = new models_0_1.ConflictSubscriptionException({
|
|
2192
2127
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2193
2128
|
...contents,
|
|
@@ -2195,11 +2130,12 @@ const de_ConflictSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
|
2195
2130
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2196
2131
|
};
|
|
2197
2132
|
const de_EventBridgeExceptionRes = async (parsedOutput, context) => {
|
|
2198
|
-
const contents = map({});
|
|
2133
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2199
2134
|
const data = parsedOutput.body;
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
}
|
|
2135
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2136
|
+
message: smithy_client_1.expectString,
|
|
2137
|
+
});
|
|
2138
|
+
Object.assign(contents, doc);
|
|
2203
2139
|
const exception = new models_0_1.EventBridgeException({
|
|
2204
2140
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2205
2141
|
...contents,
|
|
@@ -2207,16 +2143,17 @@ const de_EventBridgeExceptionRes = async (parsedOutput, context) => {
|
|
|
2207
2143
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2208
2144
|
};
|
|
2209
2145
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2210
|
-
const contents = map({
|
|
2146
|
+
const contents = (0, smithy_client_1.map)({
|
|
2211
2147
|
retryAfterSeconds: [
|
|
2212
2148
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2213
2149
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2214
2150
|
],
|
|
2215
2151
|
});
|
|
2216
2152
|
const data = parsedOutput.body;
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
}
|
|
2153
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2154
|
+
message: smithy_client_1.expectString,
|
|
2155
|
+
});
|
|
2156
|
+
Object.assign(contents, doc);
|
|
2220
2157
|
const exception = new models_0_1.InternalServerException({
|
|
2221
2158
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2222
2159
|
...contents,
|
|
@@ -2224,11 +2161,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2224
2161
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2225
2162
|
};
|
|
2226
2163
|
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
2227
|
-
const contents = map({});
|
|
2164
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2228
2165
|
const data = parsedOutput.body;
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
}
|
|
2166
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2167
|
+
message: smithy_client_1.expectString,
|
|
2168
|
+
});
|
|
2169
|
+
Object.assign(contents, doc);
|
|
2232
2170
|
const exception = new models_0_1.InvalidInputException({
|
|
2233
2171
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2234
2172
|
...contents,
|
|
@@ -2236,17 +2174,14 @@ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
|
2236
2174
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2237
2175
|
};
|
|
2238
2176
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2239
|
-
const contents = map({});
|
|
2177
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2240
2178
|
const data = parsedOutput.body;
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
if (data.resourceType != null) {
|
|
2248
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2249
|
-
}
|
|
2179
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2180
|
+
message: smithy_client_1.expectString,
|
|
2181
|
+
resourceId: smithy_client_1.expectString,
|
|
2182
|
+
resourceType: smithy_client_1.expectString,
|
|
2183
|
+
});
|
|
2184
|
+
Object.assign(contents, doc);
|
|
2250
2185
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2251
2186
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2252
2187
|
...contents,
|
|
@@ -2254,11 +2189,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2254
2189
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2255
2190
|
};
|
|
2256
2191
|
const de_S3ExceptionRes = async (parsedOutput, context) => {
|
|
2257
|
-
const contents = map({});
|
|
2192
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2258
2193
|
const data = parsedOutput.body;
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
}
|
|
2194
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2195
|
+
message: smithy_client_1.expectString,
|
|
2196
|
+
});
|
|
2197
|
+
Object.assign(contents, doc);
|
|
2262
2198
|
const exception = new models_0_1.S3Exception({
|
|
2263
2199
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2264
2200
|
...contents,
|
|
@@ -2266,23 +2202,16 @@ const de_S3ExceptionRes = async (parsedOutput, context) => {
|
|
|
2266
2202
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2267
2203
|
};
|
|
2268
2204
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2269
|
-
const contents = map({});
|
|
2205
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2270
2206
|
const data = parsedOutput.body;
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
}
|
|
2280
|
-
if (data.resourceType != null) {
|
|
2281
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2282
|
-
}
|
|
2283
|
-
if (data.serviceCode != null) {
|
|
2284
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2285
|
-
}
|
|
2207
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2208
|
+
message: smithy_client_1.expectString,
|
|
2209
|
+
quotaCode: smithy_client_1.expectString,
|
|
2210
|
+
resourceId: smithy_client_1.expectString,
|
|
2211
|
+
resourceType: smithy_client_1.expectString,
|
|
2212
|
+
serviceCode: smithy_client_1.expectString,
|
|
2213
|
+
});
|
|
2214
|
+
Object.assign(contents, doc);
|
|
2286
2215
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2287
2216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2288
2217
|
...contents,
|
|
@@ -2290,22 +2219,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2290
2219
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2291
2220
|
};
|
|
2292
2221
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2293
|
-
const contents = map({
|
|
2222
|
+
const contents = (0, smithy_client_1.map)({
|
|
2294
2223
|
retryAfterSeconds: [
|
|
2295
2224
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2296
2225
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2297
2226
|
],
|
|
2298
2227
|
});
|
|
2299
2228
|
const data = parsedOutput.body;
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
if (data.serviceCode != null) {
|
|
2307
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2308
|
-
}
|
|
2229
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2230
|
+
message: smithy_client_1.expectString,
|
|
2231
|
+
quotaCode: smithy_client_1.expectString,
|
|
2232
|
+
serviceCode: smithy_client_1.expectString,
|
|
2233
|
+
});
|
|
2234
|
+
Object.assign(contents, doc);
|
|
2309
2235
|
const exception = new models_0_1.ThrottlingException({
|
|
2310
2236
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2311
2237
|
...contents,
|
|
@@ -2313,462 +2239,77 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2313
2239
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2314
2240
|
};
|
|
2315
2241
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2316
|
-
const contents = map({});
|
|
2242
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2317
2243
|
const data = parsedOutput.body;
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
if (data.reason != null) {
|
|
2325
|
-
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
2326
|
-
}
|
|
2244
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2245
|
+
fieldList: smithy_client_1._json,
|
|
2246
|
+
message: smithy_client_1.expectString,
|
|
2247
|
+
reason: smithy_client_1.expectString,
|
|
2248
|
+
});
|
|
2249
|
+
Object.assign(contents, doc);
|
|
2327
2250
|
const exception = new models_0_1.ValidationException({
|
|
2328
2251
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2329
2252
|
...contents,
|
|
2330
2253
|
});
|
|
2331
2254
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2332
2255
|
};
|
|
2333
|
-
const se_AccessTypeList = (input, context) => {
|
|
2334
|
-
return input
|
|
2335
|
-
.filter((e) => e != null)
|
|
2336
|
-
.map((entry) => {
|
|
2337
|
-
return entry;
|
|
2338
|
-
});
|
|
2339
|
-
};
|
|
2340
|
-
const se_AllDimensionsMap = (input, context) => {
|
|
2341
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2342
|
-
if (value === null) {
|
|
2343
|
-
return acc;
|
|
2344
|
-
}
|
|
2345
|
-
acc[key] = se_TwoDimensionsMap(value, context);
|
|
2346
|
-
return acc;
|
|
2347
|
-
}, {});
|
|
2348
|
-
};
|
|
2349
|
-
const se_AutoEnableNewRegionConfiguration = (input, context) => {
|
|
2350
|
-
return {
|
|
2351
|
-
...(input.region != null && { region: input.region }),
|
|
2352
|
-
...(input.sources != null && { sources: se_AwsSourceTypeList(input.sources, context) }),
|
|
2353
|
-
};
|
|
2354
|
-
};
|
|
2355
|
-
const se_AutoEnableNewRegionConfigurationList = (input, context) => {
|
|
2356
|
-
return input
|
|
2357
|
-
.filter((e) => e != null)
|
|
2358
|
-
.map((entry) => {
|
|
2359
|
-
return se_AutoEnableNewRegionConfiguration(entry, context);
|
|
2360
|
-
});
|
|
2361
|
-
};
|
|
2362
|
-
const se_AwsSourceTypeList = (input, context) => {
|
|
2363
|
-
return input
|
|
2364
|
-
.filter((e) => e != null)
|
|
2365
|
-
.map((entry) => {
|
|
2366
|
-
return entry;
|
|
2367
|
-
});
|
|
2368
|
-
};
|
|
2369
|
-
const se_DimensionSet = (input, context) => {
|
|
2370
|
-
return input
|
|
2371
|
-
.filter((e) => e != null)
|
|
2372
|
-
.map((entry) => {
|
|
2373
|
-
return entry;
|
|
2374
|
-
});
|
|
2375
|
-
};
|
|
2376
|
-
const se_InputSet = (input, context) => {
|
|
2377
|
-
return input
|
|
2378
|
-
.filter((e) => e != null)
|
|
2379
|
-
.map((entry) => {
|
|
2380
|
-
return entry;
|
|
2381
|
-
});
|
|
2382
|
-
};
|
|
2383
|
-
const se_LakeConfigurationRequest = (input, context) => {
|
|
2384
|
-
return {
|
|
2385
|
-
...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
|
|
2386
|
-
...(input.replicationDestinationRegions != null && {
|
|
2387
|
-
replicationDestinationRegions: se_RegionSet(input.replicationDestinationRegions, context),
|
|
2388
|
-
}),
|
|
2389
|
-
...(input.replicationRoleArn != null && { replicationRoleArn: input.replicationRoleArn }),
|
|
2390
|
-
...(input.retentionSettings != null && {
|
|
2391
|
-
retentionSettings: se_RetentionSettingList(input.retentionSettings, context),
|
|
2392
|
-
}),
|
|
2393
|
-
...(input.tagsMap != null && { tagsMap: se_TagsMap(input.tagsMap, context) }),
|
|
2394
|
-
};
|
|
2395
|
-
};
|
|
2396
|
-
const se_LakeConfigurationRequestMap = (input, context) => {
|
|
2397
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2398
|
-
if (value === null) {
|
|
2399
|
-
return acc;
|
|
2400
|
-
}
|
|
2401
|
-
acc[key] = se_LakeConfigurationRequest(value, context);
|
|
2402
|
-
return acc;
|
|
2403
|
-
}, {});
|
|
2404
|
-
};
|
|
2405
|
-
const se_RegionSet = (input, context) => {
|
|
2406
|
-
return input
|
|
2407
|
-
.filter((e) => e != null)
|
|
2408
|
-
.map((entry) => {
|
|
2409
|
-
return entry;
|
|
2410
|
-
});
|
|
2411
|
-
};
|
|
2412
|
-
const se_RetentionSetting = (input, context) => {
|
|
2413
|
-
return {
|
|
2414
|
-
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2415
|
-
...(input.storageClass != null && { storageClass: input.storageClass }),
|
|
2416
|
-
};
|
|
2417
|
-
};
|
|
2418
|
-
const se_RetentionSettingList = (input, context) => {
|
|
2419
|
-
return input
|
|
2420
|
-
.filter((e) => e != null)
|
|
2421
|
-
.map((entry) => {
|
|
2422
|
-
return se_RetentionSetting(entry, context);
|
|
2423
|
-
});
|
|
2424
|
-
};
|
|
2425
|
-
const se_SourceType = (input, context) => {
|
|
2426
|
-
return models_0_1.SourceType.visit(input, {
|
|
2427
|
-
awsSourceType: (value) => ({ awsSourceType: value }),
|
|
2428
|
-
customSourceType: (value) => ({ customSourceType: value }),
|
|
2429
|
-
_: (name, value) => ({ name: value }),
|
|
2430
|
-
});
|
|
2431
|
-
};
|
|
2432
|
-
const se_SourceTypeList = (input, context) => {
|
|
2433
|
-
return input
|
|
2434
|
-
.filter((e) => e != null)
|
|
2435
|
-
.map((entry) => {
|
|
2436
|
-
return se_SourceType(entry, context);
|
|
2437
|
-
});
|
|
2438
|
-
};
|
|
2439
|
-
const se_TagsMap = (input, context) => {
|
|
2440
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2441
|
-
if (value === null) {
|
|
2442
|
-
return acc;
|
|
2443
|
-
}
|
|
2444
|
-
acc[key] = value;
|
|
2445
|
-
return acc;
|
|
2446
|
-
}, {});
|
|
2447
|
-
};
|
|
2448
|
-
const se_TwoDimensionsMap = (input, context) => {
|
|
2449
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2450
|
-
if (value === null) {
|
|
2451
|
-
return acc;
|
|
2452
|
-
}
|
|
2453
|
-
acc[key] = se_ValueSet(value, context);
|
|
2454
|
-
return acc;
|
|
2455
|
-
}, {});
|
|
2456
|
-
};
|
|
2457
|
-
const se_ValueSet = (input, context) => {
|
|
2458
|
-
return input
|
|
2459
|
-
.filter((e) => e != null)
|
|
2460
|
-
.map((entry) => {
|
|
2461
|
-
return entry;
|
|
2462
|
-
});
|
|
2463
|
-
};
|
|
2464
|
-
const de_AccessTypeList = (output, context) => {
|
|
2465
|
-
const retVal = (output || [])
|
|
2466
|
-
.filter((e) => e != null)
|
|
2467
|
-
.map((entry) => {
|
|
2468
|
-
if (entry === null) {
|
|
2469
|
-
return null;
|
|
2470
|
-
}
|
|
2471
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2472
|
-
});
|
|
2473
|
-
return retVal;
|
|
2474
|
-
};
|
|
2475
|
-
const de_AccountList = (output, context) => {
|
|
2476
|
-
const retVal = (output || [])
|
|
2477
|
-
.filter((e) => e != null)
|
|
2478
|
-
.map((entry) => {
|
|
2479
|
-
if (entry === null) {
|
|
2480
|
-
return null;
|
|
2481
|
-
}
|
|
2482
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2483
|
-
});
|
|
2484
|
-
return retVal;
|
|
2485
|
-
};
|
|
2486
|
-
const de_AccountSources = (output, context) => {
|
|
2487
|
-
return {
|
|
2488
|
-
account: (0, smithy_client_1.expectString)(output.account),
|
|
2489
|
-
eventClass: (0, smithy_client_1.expectString)(output.eventClass),
|
|
2490
|
-
logsStatus: output.logsStatus != null ? de_LogsStatusList(output.logsStatus, context) : undefined,
|
|
2491
|
-
sourceType: (0, smithy_client_1.expectString)(output.sourceType),
|
|
2492
|
-
};
|
|
2493
|
-
};
|
|
2494
|
-
const de_AccountSourcesList = (output, context) => {
|
|
2495
|
-
const retVal = (output || [])
|
|
2496
|
-
.filter((e) => e != null)
|
|
2497
|
-
.map((entry) => {
|
|
2498
|
-
if (entry === null) {
|
|
2499
|
-
return null;
|
|
2500
|
-
}
|
|
2501
|
-
return de_AccountSources(entry, context);
|
|
2502
|
-
});
|
|
2503
|
-
return retVal;
|
|
2504
|
-
};
|
|
2505
|
-
const de_AllDimensionsMap = (output, context) => {
|
|
2506
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2507
|
-
if (value === null) {
|
|
2508
|
-
return acc;
|
|
2509
|
-
}
|
|
2510
|
-
acc[key] = de_TwoDimensionsMap(value, context);
|
|
2511
|
-
return acc;
|
|
2512
|
-
}, {});
|
|
2513
|
-
};
|
|
2514
|
-
const de_AutoEnableNewRegionConfiguration = (output, context) => {
|
|
2515
|
-
return {
|
|
2516
|
-
region: (0, smithy_client_1.expectString)(output.region),
|
|
2517
|
-
sources: output.sources != null ? de_AwsSourceTypeList(output.sources, context) : undefined,
|
|
2518
|
-
};
|
|
2519
|
-
};
|
|
2520
|
-
const de_AutoEnableNewRegionConfigurationList = (output, context) => {
|
|
2521
|
-
const retVal = (output || [])
|
|
2522
|
-
.filter((e) => e != null)
|
|
2523
|
-
.map((entry) => {
|
|
2524
|
-
if (entry === null) {
|
|
2525
|
-
return null;
|
|
2526
|
-
}
|
|
2527
|
-
return de_AutoEnableNewRegionConfiguration(entry, context);
|
|
2528
|
-
});
|
|
2529
|
-
return retVal;
|
|
2530
|
-
};
|
|
2531
|
-
const de_AwsSourceTypeList = (output, context) => {
|
|
2532
|
-
const retVal = (output || [])
|
|
2533
|
-
.filter((e) => e != null)
|
|
2534
|
-
.map((entry) => {
|
|
2535
|
-
if (entry === null) {
|
|
2536
|
-
return null;
|
|
2537
|
-
}
|
|
2538
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2539
|
-
});
|
|
2540
|
-
return retVal;
|
|
2541
|
-
};
|
|
2542
2256
|
const de_Failures = (output, context) => {
|
|
2543
|
-
return {
|
|
2544
|
-
exceptionMessage:
|
|
2545
|
-
remediation:
|
|
2546
|
-
timestamp:
|
|
2547
|
-
};
|
|
2257
|
+
return (0, smithy_client_1.take)(output, {
|
|
2258
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
2259
|
+
remediation: smithy_client_1.expectString,
|
|
2260
|
+
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2261
|
+
});
|
|
2548
2262
|
};
|
|
2549
2263
|
const de_Failureslist = (output, context) => {
|
|
2550
2264
|
const retVal = (output || [])
|
|
2551
2265
|
.filter((e) => e != null)
|
|
2552
2266
|
.map((entry) => {
|
|
2553
|
-
if (entry === null) {
|
|
2554
|
-
return null;
|
|
2555
|
-
}
|
|
2556
2267
|
return de_Failures(entry, context);
|
|
2557
2268
|
});
|
|
2558
2269
|
return retVal;
|
|
2559
2270
|
};
|
|
2560
2271
|
const de_FailuresResponse = (output, context) => {
|
|
2561
|
-
return {
|
|
2562
|
-
failures:
|
|
2563
|
-
region:
|
|
2564
|
-
};
|
|
2272
|
+
return (0, smithy_client_1.take)(output, {
|
|
2273
|
+
failures: (_) => de_Failureslist(_, context),
|
|
2274
|
+
region: smithy_client_1.expectString,
|
|
2275
|
+
});
|
|
2565
2276
|
};
|
|
2566
2277
|
const de_FailuresResponseList = (output, context) => {
|
|
2567
2278
|
const retVal = (output || [])
|
|
2568
2279
|
.filter((e) => e != null)
|
|
2569
2280
|
.map((entry) => {
|
|
2570
|
-
if (entry === null) {
|
|
2571
|
-
return null;
|
|
2572
|
-
}
|
|
2573
2281
|
return de_FailuresResponse(entry, context);
|
|
2574
2282
|
});
|
|
2575
2283
|
return retVal;
|
|
2576
2284
|
};
|
|
2577
|
-
const de_LakeConfigurationResponse = (output, context) => {
|
|
2578
|
-
return {
|
|
2579
|
-
encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
|
|
2580
|
-
replicationDestinationRegions: output.replicationDestinationRegions != null
|
|
2581
|
-
? de_RegionSet(output.replicationDestinationRegions, context)
|
|
2582
|
-
: undefined,
|
|
2583
|
-
replicationRoleArn: (0, smithy_client_1.expectString)(output.replicationRoleArn),
|
|
2584
|
-
retentionSettings: output.retentionSettings != null ? de_RetentionSettingList(output.retentionSettings, context) : undefined,
|
|
2585
|
-
s3BucketArn: (0, smithy_client_1.expectString)(output.s3BucketArn),
|
|
2586
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2587
|
-
tagsMap: output.tagsMap != null ? de_TagsMap(output.tagsMap, context) : undefined,
|
|
2588
|
-
updateStatus: output.updateStatus != null ? de_UpdateStatus(output.updateStatus, context) : undefined,
|
|
2589
|
-
};
|
|
2590
|
-
};
|
|
2591
|
-
const de_LakeConfigurationResponseMap = (output, context) => {
|
|
2592
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2593
|
-
if (value === null) {
|
|
2594
|
-
return acc;
|
|
2595
|
-
}
|
|
2596
|
-
acc[key] = de_LakeConfigurationResponse(value, context);
|
|
2597
|
-
return acc;
|
|
2598
|
-
}, {});
|
|
2599
|
-
};
|
|
2600
|
-
const de_LastUpdateFailure = (output, context) => {
|
|
2601
|
-
return {
|
|
2602
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
2603
|
-
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2604
|
-
};
|
|
2605
|
-
};
|
|
2606
|
-
const de_LogsStatus = (output, context) => {
|
|
2607
|
-
return {
|
|
2608
|
-
healthStatus: (0, smithy_client_1.expectString)(output.healthStatus),
|
|
2609
|
-
pathToLogs: (0, smithy_client_1.expectString)(output.pathToLogs),
|
|
2610
|
-
};
|
|
2611
|
-
};
|
|
2612
|
-
const de_LogsStatusList = (output, context) => {
|
|
2613
|
-
const retVal = (output || [])
|
|
2614
|
-
.filter((e) => e != null)
|
|
2615
|
-
.map((entry) => {
|
|
2616
|
-
if (entry === null) {
|
|
2617
|
-
return null;
|
|
2618
|
-
}
|
|
2619
|
-
return de_LogsStatus(entry, context);
|
|
2620
|
-
});
|
|
2621
|
-
return retVal;
|
|
2622
|
-
};
|
|
2623
|
-
const de_ProtocolAndNotificationEndpoint = (output, context) => {
|
|
2624
|
-
return {
|
|
2625
|
-
endpoint: (0, smithy_client_1.expectString)(output.endpoint),
|
|
2626
|
-
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
2627
|
-
};
|
|
2628
|
-
};
|
|
2629
|
-
const de_RegionSet = (output, context) => {
|
|
2630
|
-
const retVal = (output || [])
|
|
2631
|
-
.filter((e) => e != null)
|
|
2632
|
-
.map((entry) => {
|
|
2633
|
-
if (entry === null) {
|
|
2634
|
-
return null;
|
|
2635
|
-
}
|
|
2636
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2637
|
-
});
|
|
2638
|
-
return retVal;
|
|
2639
|
-
};
|
|
2640
|
-
const de_RegionSourceTypesAccountsList = (output, context) => {
|
|
2641
|
-
const retVal = (output || [])
|
|
2642
|
-
.filter((e) => e != null)
|
|
2643
|
-
.map((entry) => {
|
|
2644
|
-
if (entry === null) {
|
|
2645
|
-
return null;
|
|
2646
|
-
}
|
|
2647
|
-
return de_AllDimensionsMap(entry, context);
|
|
2648
|
-
});
|
|
2649
|
-
return retVal;
|
|
2650
|
-
};
|
|
2651
|
-
const de_RetentionSetting = (output, context) => {
|
|
2652
|
-
return {
|
|
2653
|
-
retentionPeriod: (0, smithy_client_1.expectInt32)(output.retentionPeriod),
|
|
2654
|
-
storageClass: (0, smithy_client_1.expectString)(output.storageClass),
|
|
2655
|
-
};
|
|
2656
|
-
};
|
|
2657
|
-
const de_RetentionSettingList = (output, context) => {
|
|
2658
|
-
const retVal = (output || [])
|
|
2659
|
-
.filter((e) => e != null)
|
|
2660
|
-
.map((entry) => {
|
|
2661
|
-
if (entry === null) {
|
|
2662
|
-
return null;
|
|
2663
|
-
}
|
|
2664
|
-
return de_RetentionSetting(entry, context);
|
|
2665
|
-
});
|
|
2666
|
-
return retVal;
|
|
2667
|
-
};
|
|
2668
|
-
const de_SourceType = (output, context) => {
|
|
2669
|
-
if ((0, smithy_client_1.expectString)(output.awsSourceType) !== undefined) {
|
|
2670
|
-
return { awsSourceType: (0, smithy_client_1.expectString)(output.awsSourceType) };
|
|
2671
|
-
}
|
|
2672
|
-
if ((0, smithy_client_1.expectString)(output.customSourceType) !== undefined) {
|
|
2673
|
-
return { customSourceType: (0, smithy_client_1.expectString)(output.customSourceType) };
|
|
2674
|
-
}
|
|
2675
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2676
|
-
};
|
|
2677
|
-
const de_SourceTypeList = (output, context) => {
|
|
2678
|
-
const retVal = (output || [])
|
|
2679
|
-
.filter((e) => e != null)
|
|
2680
|
-
.map((entry) => {
|
|
2681
|
-
if (entry === null) {
|
|
2682
|
-
return null;
|
|
2683
|
-
}
|
|
2684
|
-
return de_SourceType((0, smithy_client_1.expectUnion)(entry), context);
|
|
2685
|
-
});
|
|
2686
|
-
return retVal;
|
|
2687
|
-
};
|
|
2688
2285
|
const de_SubscriberList = (output, context) => {
|
|
2689
2286
|
const retVal = (output || [])
|
|
2690
2287
|
.filter((e) => e != null)
|
|
2691
2288
|
.map((entry) => {
|
|
2692
|
-
if (entry === null) {
|
|
2693
|
-
return null;
|
|
2694
|
-
}
|
|
2695
2289
|
return de_SubscriberResource(entry, context);
|
|
2696
2290
|
});
|
|
2697
2291
|
return retVal;
|
|
2698
2292
|
};
|
|
2699
2293
|
const de_SubscriberResource = (output, context) => {
|
|
2700
|
-
return {
|
|
2701
|
-
accessTypes:
|
|
2702
|
-
accountId:
|
|
2703
|
-
createdAt:
|
|
2704
|
-
externalId:
|
|
2705
|
-
resourceShareArn:
|
|
2706
|
-
resourceShareName:
|
|
2707
|
-
roleArn:
|
|
2708
|
-
s3BucketArn:
|
|
2709
|
-
snsArn:
|
|
2710
|
-
sourceTypes:
|
|
2711
|
-
subscriberDescription:
|
|
2712
|
-
subscriberName:
|
|
2713
|
-
subscriptionEndpoint:
|
|
2714
|
-
subscriptionId:
|
|
2715
|
-
subscriptionProtocol:
|
|
2716
|
-
subscriptionStatus:
|
|
2717
|
-
updatedAt:
|
|
2718
|
-
};
|
|
2719
|
-
};
|
|
2720
|
-
const de_TagsMap = (output, context) => {
|
|
2721
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2722
|
-
if (value === null) {
|
|
2723
|
-
return acc;
|
|
2724
|
-
}
|
|
2725
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2726
|
-
return acc;
|
|
2727
|
-
}, {});
|
|
2728
|
-
};
|
|
2729
|
-
const de_TwoDimensionsMap = (output, context) => {
|
|
2730
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2731
|
-
if (value === null) {
|
|
2732
|
-
return acc;
|
|
2733
|
-
}
|
|
2734
|
-
acc[key] = de_ValueSet(value, context);
|
|
2735
|
-
return acc;
|
|
2736
|
-
}, {});
|
|
2737
|
-
};
|
|
2738
|
-
const de_UpdateStatus = (output, context) => {
|
|
2739
|
-
return {
|
|
2740
|
-
lastUpdateFailure: output.lastUpdateFailure != null ? de_LastUpdateFailure(output.lastUpdateFailure, context) : undefined,
|
|
2741
|
-
lastUpdateRequestId: (0, smithy_client_1.expectString)(output.lastUpdateRequestId),
|
|
2742
|
-
lastUpdateStatus: (0, smithy_client_1.expectString)(output.lastUpdateStatus),
|
|
2743
|
-
};
|
|
2744
|
-
};
|
|
2745
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
2746
|
-
return {
|
|
2747
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2748
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2749
|
-
};
|
|
2750
|
-
};
|
|
2751
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
2752
|
-
const retVal = (output || [])
|
|
2753
|
-
.filter((e) => e != null)
|
|
2754
|
-
.map((entry) => {
|
|
2755
|
-
if (entry === null) {
|
|
2756
|
-
return null;
|
|
2757
|
-
}
|
|
2758
|
-
return de_ValidationExceptionField(entry, context);
|
|
2294
|
+
return (0, smithy_client_1.take)(output, {
|
|
2295
|
+
accessTypes: smithy_client_1._json,
|
|
2296
|
+
accountId: smithy_client_1.expectString,
|
|
2297
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2298
|
+
externalId: smithy_client_1.expectString,
|
|
2299
|
+
resourceShareArn: smithy_client_1.expectString,
|
|
2300
|
+
resourceShareName: smithy_client_1.expectString,
|
|
2301
|
+
roleArn: smithy_client_1.expectString,
|
|
2302
|
+
s3BucketArn: smithy_client_1.expectString,
|
|
2303
|
+
snsArn: smithy_client_1.expectString,
|
|
2304
|
+
sourceTypes: smithy_client_1._json,
|
|
2305
|
+
subscriberDescription: smithy_client_1.expectString,
|
|
2306
|
+
subscriberName: smithy_client_1.expectString,
|
|
2307
|
+
subscriptionEndpoint: smithy_client_1.expectString,
|
|
2308
|
+
subscriptionId: smithy_client_1.expectString,
|
|
2309
|
+
subscriptionProtocol: smithy_client_1.expectString,
|
|
2310
|
+
subscriptionStatus: smithy_client_1.expectString,
|
|
2311
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2759
2312
|
});
|
|
2760
|
-
return retVal;
|
|
2761
|
-
};
|
|
2762
|
-
const de_ValueSet = (output, context) => {
|
|
2763
|
-
const retVal = (output || [])
|
|
2764
|
-
.filter((e) => e != null)
|
|
2765
|
-
.map((entry) => {
|
|
2766
|
-
if (entry === null) {
|
|
2767
|
-
return null;
|
|
2768
|
-
}
|
|
2769
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2770
|
-
});
|
|
2771
|
-
return retVal;
|
|
2772
2313
|
};
|
|
2773
2314
|
const deserializeMetadata = (output) => ({
|
|
2774
2315
|
httpStatusCode: output.statusCode,
|