@aws-sdk/client-appintegrations 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 +164 -438
- package/dist-es/protocols/Aws_restJson1.js +138 -412
- package/package.json +6 -6
|
@@ -13,21 +13,17 @@ const se_CreateDataIntegrationCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
ClientToken:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
...(input.ScheduleConfig != null && { ScheduleConfig: se_ScheduleConfiguration(input.ScheduleConfig, context) }),
|
|
28
|
-
...(input.SourceURI != null && { SourceURI: input.SourceURI }),
|
|
29
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
30
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
18
|
+
Description: [],
|
|
19
|
+
FileConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
KmsKey: [],
|
|
21
|
+
Name: [],
|
|
22
|
+
ObjectConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
+
ScheduleConfig: (_) => (0, smithy_client_1._json)(_),
|
|
24
|
+
SourceURI: [],
|
|
25
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
26
|
+
}));
|
|
31
27
|
return new protocol_http_1.HttpRequest({
|
|
32
28
|
protocol,
|
|
33
29
|
hostname,
|
|
@@ -46,14 +42,14 @@ const se_CreateEventIntegrationCommand = async (input, context) => {
|
|
|
46
42
|
};
|
|
47
43
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations";
|
|
48
44
|
let body;
|
|
49
|
-
body = JSON.stringify({
|
|
50
|
-
ClientToken:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
45
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
46
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
47
|
+
Description: [],
|
|
48
|
+
EventBridgeBus: [],
|
|
49
|
+
EventFilter: (_) => (0, smithy_client_1._json)(_),
|
|
50
|
+
Name: [],
|
|
51
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
52
|
+
}));
|
|
57
53
|
return new protocol_http_1.HttpRequest({
|
|
58
54
|
protocol,
|
|
59
55
|
hostname,
|
|
@@ -140,7 +136,7 @@ const se_ListDataIntegrationAssociationsCommand = async (input, context) => {
|
|
|
140
136
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
141
137
|
"/dataIntegrations/{DataIntegrationIdentifier}/associations";
|
|
142
138
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
|
|
143
|
-
const query = map({
|
|
139
|
+
const query = (0, smithy_client_1.map)({
|
|
144
140
|
nextToken: [, input.NextToken],
|
|
145
141
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
146
142
|
});
|
|
@@ -161,7 +157,7 @@ const se_ListDataIntegrationsCommand = async (input, context) => {
|
|
|
161
157
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
162
158
|
const headers = {};
|
|
163
159
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
|
|
164
|
-
const query = map({
|
|
160
|
+
const query = (0, smithy_client_1.map)({
|
|
165
161
|
nextToken: [, input.NextToken],
|
|
166
162
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
167
163
|
});
|
|
@@ -184,7 +180,7 @@ const se_ListEventIntegrationAssociationsCommand = async (input, context) => {
|
|
|
184
180
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
185
181
|
"/eventIntegrations/{EventIntegrationName}/associations";
|
|
186
182
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
|
|
187
|
-
const query = map({
|
|
183
|
+
const query = (0, smithy_client_1.map)({
|
|
188
184
|
nextToken: [, input.NextToken],
|
|
189
185
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
190
186
|
});
|
|
@@ -205,7 +201,7 @@ const se_ListEventIntegrationsCommand = async (input, context) => {
|
|
|
205
201
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
206
202
|
const headers = {};
|
|
207
203
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations";
|
|
208
|
-
const query = map({
|
|
204
|
+
const query = (0, smithy_client_1.map)({
|
|
209
205
|
nextToken: [, input.NextToken],
|
|
210
206
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
211
207
|
});
|
|
@@ -247,9 +243,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
247
243
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
248
244
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
249
245
|
let body;
|
|
250
|
-
body = JSON.stringify({
|
|
251
|
-
|
|
252
|
-
});
|
|
246
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
247
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
248
|
+
}));
|
|
253
249
|
return new protocol_http_1.HttpRequest({
|
|
254
250
|
protocol,
|
|
255
251
|
hostname,
|
|
@@ -266,7 +262,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
266
262
|
const headers = {};
|
|
267
263
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
268
264
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
269
|
-
const query = map({
|
|
265
|
+
const query = (0, smithy_client_1.map)({
|
|
270
266
|
tagKeys: [
|
|
271
267
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
272
268
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -293,10 +289,10 @@ const se_UpdateDataIntegrationCommand = async (input, context) => {
|
|
|
293
289
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
|
|
294
290
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
295
291
|
let body;
|
|
296
|
-
body = JSON.stringify({
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
});
|
|
292
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
293
|
+
Description: [],
|
|
294
|
+
Name: [],
|
|
295
|
+
}));
|
|
300
296
|
return new protocol_http_1.HttpRequest({
|
|
301
297
|
protocol,
|
|
302
298
|
hostname,
|
|
@@ -316,9 +312,9 @@ const se_UpdateEventIntegrationCommand = async (input, context) => {
|
|
|
316
312
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
|
|
317
313
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
318
314
|
let body;
|
|
319
|
-
body = JSON.stringify({
|
|
320
|
-
|
|
321
|
-
});
|
|
315
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
316
|
+
Description: [],
|
|
317
|
+
}));
|
|
322
318
|
return new protocol_http_1.HttpRequest({
|
|
323
319
|
protocol,
|
|
324
320
|
hostname,
|
|
@@ -334,43 +330,24 @@ const de_CreateDataIntegrationCommand = async (output, context) => {
|
|
|
334
330
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
335
331
|
return de_CreateDataIntegrationCommandError(output, context);
|
|
336
332
|
}
|
|
337
|
-
const contents = map({
|
|
333
|
+
const contents = (0, smithy_client_1.map)({
|
|
338
334
|
$metadata: deserializeMetadata(output),
|
|
339
335
|
});
|
|
340
336
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
if (data.KmsKey != null) {
|
|
357
|
-
contents.KmsKey = (0, smithy_client_1.expectString)(data.KmsKey);
|
|
358
|
-
}
|
|
359
|
-
if (data.Name != null) {
|
|
360
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
361
|
-
}
|
|
362
|
-
if (data.ObjectConfiguration != null) {
|
|
363
|
-
contents.ObjectConfiguration = de_ObjectConfiguration(data.ObjectConfiguration, context);
|
|
364
|
-
}
|
|
365
|
-
if (data.ScheduleConfiguration != null) {
|
|
366
|
-
contents.ScheduleConfiguration = de_ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
367
|
-
}
|
|
368
|
-
if (data.SourceURI != null) {
|
|
369
|
-
contents.SourceURI = (0, smithy_client_1.expectString)(data.SourceURI);
|
|
370
|
-
}
|
|
371
|
-
if (data.Tags != null) {
|
|
372
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
373
|
-
}
|
|
337
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
338
|
+
Arn: smithy_client_1.expectString,
|
|
339
|
+
ClientToken: smithy_client_1.expectString,
|
|
340
|
+
Description: smithy_client_1.expectString,
|
|
341
|
+
FileConfiguration: smithy_client_1._json,
|
|
342
|
+
Id: smithy_client_1.expectString,
|
|
343
|
+
KmsKey: smithy_client_1.expectString,
|
|
344
|
+
Name: smithy_client_1.expectString,
|
|
345
|
+
ObjectConfiguration: smithy_client_1._json,
|
|
346
|
+
ScheduleConfiguration: smithy_client_1._json,
|
|
347
|
+
SourceURI: smithy_client_1.expectString,
|
|
348
|
+
Tags: smithy_client_1._json,
|
|
349
|
+
});
|
|
350
|
+
Object.assign(contents, doc);
|
|
374
351
|
return contents;
|
|
375
352
|
};
|
|
376
353
|
exports.de_CreateDataIntegrationCommand = de_CreateDataIntegrationCommand;
|
|
@@ -401,10 +378,9 @@ const de_CreateDataIntegrationCommandError = async (output, context) => {
|
|
|
401
378
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
402
379
|
default:
|
|
403
380
|
const parsedBody = parsedOutput.body;
|
|
404
|
-
|
|
381
|
+
return throwDefaultError({
|
|
405
382
|
output,
|
|
406
383
|
parsedBody,
|
|
407
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
408
384
|
errorCode,
|
|
409
385
|
});
|
|
410
386
|
}
|
|
@@ -413,13 +389,14 @@ const de_CreateEventIntegrationCommand = async (output, context) => {
|
|
|
413
389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
414
390
|
return de_CreateEventIntegrationCommandError(output, context);
|
|
415
391
|
}
|
|
416
|
-
const contents = map({
|
|
392
|
+
const contents = (0, smithy_client_1.map)({
|
|
417
393
|
$metadata: deserializeMetadata(output),
|
|
418
394
|
});
|
|
419
395
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}
|
|
396
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
397
|
+
EventIntegrationArn: smithy_client_1.expectString,
|
|
398
|
+
});
|
|
399
|
+
Object.assign(contents, doc);
|
|
423
400
|
return contents;
|
|
424
401
|
};
|
|
425
402
|
exports.de_CreateEventIntegrationCommand = de_CreateEventIntegrationCommand;
|
|
@@ -450,10 +427,9 @@ const de_CreateEventIntegrationCommandError = async (output, context) => {
|
|
|
450
427
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
451
428
|
default:
|
|
452
429
|
const parsedBody = parsedOutput.body;
|
|
453
|
-
|
|
430
|
+
return throwDefaultError({
|
|
454
431
|
output,
|
|
455
432
|
parsedBody,
|
|
456
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
457
433
|
errorCode,
|
|
458
434
|
});
|
|
459
435
|
}
|
|
@@ -462,7 +438,7 @@ const de_DeleteDataIntegrationCommand = async (output, context) => {
|
|
|
462
438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
463
439
|
return de_DeleteDataIntegrationCommandError(output, context);
|
|
464
440
|
}
|
|
465
|
-
const contents = map({
|
|
441
|
+
const contents = (0, smithy_client_1.map)({
|
|
466
442
|
$metadata: deserializeMetadata(output),
|
|
467
443
|
});
|
|
468
444
|
await collectBody(output.body, context);
|
|
@@ -493,10 +469,9 @@ const de_DeleteDataIntegrationCommandError = async (output, context) => {
|
|
|
493
469
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
494
470
|
default:
|
|
495
471
|
const parsedBody = parsedOutput.body;
|
|
496
|
-
|
|
472
|
+
return throwDefaultError({
|
|
497
473
|
output,
|
|
498
474
|
parsedBody,
|
|
499
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
500
475
|
errorCode,
|
|
501
476
|
});
|
|
502
477
|
}
|
|
@@ -505,7 +480,7 @@ const de_DeleteEventIntegrationCommand = async (output, context) => {
|
|
|
505
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
506
481
|
return de_DeleteEventIntegrationCommandError(output, context);
|
|
507
482
|
}
|
|
508
|
-
const contents = map({
|
|
483
|
+
const contents = (0, smithy_client_1.map)({
|
|
509
484
|
$metadata: deserializeMetadata(output),
|
|
510
485
|
});
|
|
511
486
|
await collectBody(output.body, context);
|
|
@@ -536,10 +511,9 @@ const de_DeleteEventIntegrationCommandError = async (output, context) => {
|
|
|
536
511
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
537
512
|
default:
|
|
538
513
|
const parsedBody = parsedOutput.body;
|
|
539
|
-
|
|
514
|
+
return throwDefaultError({
|
|
540
515
|
output,
|
|
541
516
|
parsedBody,
|
|
542
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
543
517
|
errorCode,
|
|
544
518
|
});
|
|
545
519
|
}
|
|
@@ -548,40 +522,23 @@ const de_GetDataIntegrationCommand = async (output, context) => {
|
|
|
548
522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
549
523
|
return de_GetDataIntegrationCommandError(output, context);
|
|
550
524
|
}
|
|
551
|
-
const contents = map({
|
|
525
|
+
const contents = (0, smithy_client_1.map)({
|
|
552
526
|
$metadata: deserializeMetadata(output),
|
|
553
527
|
});
|
|
554
528
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
contents.KmsKey = (0, smithy_client_1.expectString)(data.KmsKey);
|
|
569
|
-
}
|
|
570
|
-
if (data.Name != null) {
|
|
571
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
572
|
-
}
|
|
573
|
-
if (data.ObjectConfiguration != null) {
|
|
574
|
-
contents.ObjectConfiguration = de_ObjectConfiguration(data.ObjectConfiguration, context);
|
|
575
|
-
}
|
|
576
|
-
if (data.ScheduleConfiguration != null) {
|
|
577
|
-
contents.ScheduleConfiguration = de_ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
578
|
-
}
|
|
579
|
-
if (data.SourceURI != null) {
|
|
580
|
-
contents.SourceURI = (0, smithy_client_1.expectString)(data.SourceURI);
|
|
581
|
-
}
|
|
582
|
-
if (data.Tags != null) {
|
|
583
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
584
|
-
}
|
|
529
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
530
|
+
Arn: smithy_client_1.expectString,
|
|
531
|
+
Description: smithy_client_1.expectString,
|
|
532
|
+
FileConfiguration: smithy_client_1._json,
|
|
533
|
+
Id: smithy_client_1.expectString,
|
|
534
|
+
KmsKey: smithy_client_1.expectString,
|
|
535
|
+
Name: smithy_client_1.expectString,
|
|
536
|
+
ObjectConfiguration: smithy_client_1._json,
|
|
537
|
+
ScheduleConfiguration: smithy_client_1._json,
|
|
538
|
+
SourceURI: smithy_client_1.expectString,
|
|
539
|
+
Tags: smithy_client_1._json,
|
|
540
|
+
});
|
|
541
|
+
Object.assign(contents, doc);
|
|
585
542
|
return contents;
|
|
586
543
|
};
|
|
587
544
|
exports.de_GetDataIntegrationCommand = de_GetDataIntegrationCommand;
|
|
@@ -609,10 +566,9 @@ const de_GetDataIntegrationCommandError = async (output, context) => {
|
|
|
609
566
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
610
567
|
default:
|
|
611
568
|
const parsedBody = parsedOutput.body;
|
|
612
|
-
|
|
569
|
+
return throwDefaultError({
|
|
613
570
|
output,
|
|
614
571
|
parsedBody,
|
|
615
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
616
572
|
errorCode,
|
|
617
573
|
});
|
|
618
574
|
}
|
|
@@ -621,28 +577,19 @@ const de_GetEventIntegrationCommand = async (output, context) => {
|
|
|
621
577
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
578
|
return de_GetEventIntegrationCommandError(output, context);
|
|
623
579
|
}
|
|
624
|
-
const contents = map({
|
|
580
|
+
const contents = (0, smithy_client_1.map)({
|
|
625
581
|
$metadata: deserializeMetadata(output),
|
|
626
582
|
});
|
|
627
583
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
if (data.EventIntegrationArn != null) {
|
|
638
|
-
contents.EventIntegrationArn = (0, smithy_client_1.expectString)(data.EventIntegrationArn);
|
|
639
|
-
}
|
|
640
|
-
if (data.Name != null) {
|
|
641
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
642
|
-
}
|
|
643
|
-
if (data.Tags != null) {
|
|
644
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
645
|
-
}
|
|
584
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
585
|
+
Description: smithy_client_1.expectString,
|
|
586
|
+
EventBridgeBus: smithy_client_1.expectString,
|
|
587
|
+
EventFilter: smithy_client_1._json,
|
|
588
|
+
EventIntegrationArn: smithy_client_1.expectString,
|
|
589
|
+
Name: smithy_client_1.expectString,
|
|
590
|
+
Tags: smithy_client_1._json,
|
|
591
|
+
});
|
|
592
|
+
Object.assign(contents, doc);
|
|
646
593
|
return contents;
|
|
647
594
|
};
|
|
648
595
|
exports.de_GetEventIntegrationCommand = de_GetEventIntegrationCommand;
|
|
@@ -670,10 +617,9 @@ const de_GetEventIntegrationCommandError = async (output, context) => {
|
|
|
670
617
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
671
618
|
default:
|
|
672
619
|
const parsedBody = parsedOutput.body;
|
|
673
|
-
|
|
620
|
+
return throwDefaultError({
|
|
674
621
|
output,
|
|
675
622
|
parsedBody,
|
|
676
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
677
623
|
errorCode,
|
|
678
624
|
});
|
|
679
625
|
}
|
|
@@ -682,16 +628,15 @@ const de_ListDataIntegrationAssociationsCommand = async (output, context) => {
|
|
|
682
628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
629
|
return de_ListDataIntegrationAssociationsCommandError(output, context);
|
|
684
630
|
}
|
|
685
|
-
const contents = map({
|
|
631
|
+
const contents = (0, smithy_client_1.map)({
|
|
686
632
|
$metadata: deserializeMetadata(output),
|
|
687
633
|
});
|
|
688
634
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
}
|
|
635
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
636
|
+
DataIntegrationAssociations: smithy_client_1._json,
|
|
637
|
+
NextToken: smithy_client_1.expectString,
|
|
638
|
+
});
|
|
639
|
+
Object.assign(contents, doc);
|
|
695
640
|
return contents;
|
|
696
641
|
};
|
|
697
642
|
exports.de_ListDataIntegrationAssociationsCommand = de_ListDataIntegrationAssociationsCommand;
|
|
@@ -719,10 +664,9 @@ const de_ListDataIntegrationAssociationsCommandError = async (output, context) =
|
|
|
719
664
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
720
665
|
default:
|
|
721
666
|
const parsedBody = parsedOutput.body;
|
|
722
|
-
|
|
667
|
+
return throwDefaultError({
|
|
723
668
|
output,
|
|
724
669
|
parsedBody,
|
|
725
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
726
670
|
errorCode,
|
|
727
671
|
});
|
|
728
672
|
}
|
|
@@ -731,16 +675,15 @@ const de_ListDataIntegrationsCommand = async (output, context) => {
|
|
|
731
675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
732
676
|
return de_ListDataIntegrationsCommandError(output, context);
|
|
733
677
|
}
|
|
734
|
-
const contents = map({
|
|
678
|
+
const contents = (0, smithy_client_1.map)({
|
|
735
679
|
$metadata: deserializeMetadata(output),
|
|
736
680
|
});
|
|
737
681
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
}
|
|
682
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
683
|
+
DataIntegrations: smithy_client_1._json,
|
|
684
|
+
NextToken: smithy_client_1.expectString,
|
|
685
|
+
});
|
|
686
|
+
Object.assign(contents, doc);
|
|
744
687
|
return contents;
|
|
745
688
|
};
|
|
746
689
|
exports.de_ListDataIntegrationsCommand = de_ListDataIntegrationsCommand;
|
|
@@ -765,10 +708,9 @@ const de_ListDataIntegrationsCommandError = async (output, context) => {
|
|
|
765
708
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
766
709
|
default:
|
|
767
710
|
const parsedBody = parsedOutput.body;
|
|
768
|
-
|
|
711
|
+
return throwDefaultError({
|
|
769
712
|
output,
|
|
770
713
|
parsedBody,
|
|
771
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
772
714
|
errorCode,
|
|
773
715
|
});
|
|
774
716
|
}
|
|
@@ -777,16 +719,15 @@ const de_ListEventIntegrationAssociationsCommand = async (output, context) => {
|
|
|
777
719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
778
720
|
return de_ListEventIntegrationAssociationsCommandError(output, context);
|
|
779
721
|
}
|
|
780
|
-
const contents = map({
|
|
722
|
+
const contents = (0, smithy_client_1.map)({
|
|
781
723
|
$metadata: deserializeMetadata(output),
|
|
782
724
|
});
|
|
783
725
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
}
|
|
726
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
727
|
+
EventIntegrationAssociations: smithy_client_1._json,
|
|
728
|
+
NextToken: smithy_client_1.expectString,
|
|
729
|
+
});
|
|
730
|
+
Object.assign(contents, doc);
|
|
790
731
|
return contents;
|
|
791
732
|
};
|
|
792
733
|
exports.de_ListEventIntegrationAssociationsCommand = de_ListEventIntegrationAssociationsCommand;
|
|
@@ -814,10 +755,9 @@ const de_ListEventIntegrationAssociationsCommandError = async (output, context)
|
|
|
814
755
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
815
756
|
default:
|
|
816
757
|
const parsedBody = parsedOutput.body;
|
|
817
|
-
|
|
758
|
+
return throwDefaultError({
|
|
818
759
|
output,
|
|
819
760
|
parsedBody,
|
|
820
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
821
761
|
errorCode,
|
|
822
762
|
});
|
|
823
763
|
}
|
|
@@ -826,16 +766,15 @@ const de_ListEventIntegrationsCommand = async (output, context) => {
|
|
|
826
766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
827
767
|
return de_ListEventIntegrationsCommandError(output, context);
|
|
828
768
|
}
|
|
829
|
-
const contents = map({
|
|
769
|
+
const contents = (0, smithy_client_1.map)({
|
|
830
770
|
$metadata: deserializeMetadata(output),
|
|
831
771
|
});
|
|
832
772
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
}
|
|
773
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
774
|
+
EventIntegrations: smithy_client_1._json,
|
|
775
|
+
NextToken: smithy_client_1.expectString,
|
|
776
|
+
});
|
|
777
|
+
Object.assign(contents, doc);
|
|
839
778
|
return contents;
|
|
840
779
|
};
|
|
841
780
|
exports.de_ListEventIntegrationsCommand = de_ListEventIntegrationsCommand;
|
|
@@ -860,10 +799,9 @@ const de_ListEventIntegrationsCommandError = async (output, context) => {
|
|
|
860
799
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
861
800
|
default:
|
|
862
801
|
const parsedBody = parsedOutput.body;
|
|
863
|
-
|
|
802
|
+
return throwDefaultError({
|
|
864
803
|
output,
|
|
865
804
|
parsedBody,
|
|
866
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
867
805
|
errorCode,
|
|
868
806
|
});
|
|
869
807
|
}
|
|
@@ -872,13 +810,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
872
810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
873
811
|
return de_ListTagsForResourceCommandError(output, context);
|
|
874
812
|
}
|
|
875
|
-
const contents = map({
|
|
813
|
+
const contents = (0, smithy_client_1.map)({
|
|
876
814
|
$metadata: deserializeMetadata(output),
|
|
877
815
|
});
|
|
878
816
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
}
|
|
817
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
818
|
+
tags: smithy_client_1._json,
|
|
819
|
+
});
|
|
820
|
+
Object.assign(contents, doc);
|
|
882
821
|
return contents;
|
|
883
822
|
};
|
|
884
823
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -903,10 +842,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
903
842
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
904
843
|
default:
|
|
905
844
|
const parsedBody = parsedOutput.body;
|
|
906
|
-
|
|
845
|
+
return throwDefaultError({
|
|
907
846
|
output,
|
|
908
847
|
parsedBody,
|
|
909
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
910
848
|
errorCode,
|
|
911
849
|
});
|
|
912
850
|
}
|
|
@@ -915,7 +853,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
915
853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
916
854
|
return de_TagResourceCommandError(output, context);
|
|
917
855
|
}
|
|
918
|
-
const contents = map({
|
|
856
|
+
const contents = (0, smithy_client_1.map)({
|
|
919
857
|
$metadata: deserializeMetadata(output),
|
|
920
858
|
});
|
|
921
859
|
await collectBody(output.body, context);
|
|
@@ -943,10 +881,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
943
881
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
944
882
|
default:
|
|
945
883
|
const parsedBody = parsedOutput.body;
|
|
946
|
-
|
|
884
|
+
return throwDefaultError({
|
|
947
885
|
output,
|
|
948
886
|
parsedBody,
|
|
949
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
950
887
|
errorCode,
|
|
951
888
|
});
|
|
952
889
|
}
|
|
@@ -955,7 +892,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
955
892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
956
893
|
return de_UntagResourceCommandError(output, context);
|
|
957
894
|
}
|
|
958
|
-
const contents = map({
|
|
895
|
+
const contents = (0, smithy_client_1.map)({
|
|
959
896
|
$metadata: deserializeMetadata(output),
|
|
960
897
|
});
|
|
961
898
|
await collectBody(output.body, context);
|
|
@@ -983,10 +920,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
983
920
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
984
921
|
default:
|
|
985
922
|
const parsedBody = parsedOutput.body;
|
|
986
|
-
|
|
923
|
+
return throwDefaultError({
|
|
987
924
|
output,
|
|
988
925
|
parsedBody,
|
|
989
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
990
926
|
errorCode,
|
|
991
927
|
});
|
|
992
928
|
}
|
|
@@ -995,7 +931,7 @@ const de_UpdateDataIntegrationCommand = async (output, context) => {
|
|
|
995
931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
932
|
return de_UpdateDataIntegrationCommandError(output, context);
|
|
997
933
|
}
|
|
998
|
-
const contents = map({
|
|
934
|
+
const contents = (0, smithy_client_1.map)({
|
|
999
935
|
$metadata: deserializeMetadata(output),
|
|
1000
936
|
});
|
|
1001
937
|
await collectBody(output.body, context);
|
|
@@ -1026,10 +962,9 @@ const de_UpdateDataIntegrationCommandError = async (output, context) => {
|
|
|
1026
962
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1027
963
|
default:
|
|
1028
964
|
const parsedBody = parsedOutput.body;
|
|
1029
|
-
|
|
965
|
+
return throwDefaultError({
|
|
1030
966
|
output,
|
|
1031
967
|
parsedBody,
|
|
1032
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
1033
968
|
errorCode,
|
|
1034
969
|
});
|
|
1035
970
|
}
|
|
@@ -1038,7 +973,7 @@ const de_UpdateEventIntegrationCommand = async (output, context) => {
|
|
|
1038
973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
974
|
return de_UpdateEventIntegrationCommandError(output, context);
|
|
1040
975
|
}
|
|
1041
|
-
const contents = map({
|
|
976
|
+
const contents = (0, smithy_client_1.map)({
|
|
1042
977
|
$metadata: deserializeMetadata(output),
|
|
1043
978
|
});
|
|
1044
979
|
await collectBody(output.body, context);
|
|
@@ -1069,21 +1004,21 @@ const de_UpdateEventIntegrationCommandError = async (output, context) => {
|
|
|
1069
1004
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1070
1005
|
default:
|
|
1071
1006
|
const parsedBody = parsedOutput.body;
|
|
1072
|
-
|
|
1007
|
+
return throwDefaultError({
|
|
1073
1008
|
output,
|
|
1074
1009
|
parsedBody,
|
|
1075
|
-
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
1076
1010
|
errorCode,
|
|
1077
1011
|
});
|
|
1078
1012
|
}
|
|
1079
1013
|
};
|
|
1080
|
-
const
|
|
1014
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(AppIntegrationsServiceException_1.AppIntegrationsServiceException);
|
|
1081
1015
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1082
|
-
const contents = map({});
|
|
1016
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1083
1017
|
const data = parsedOutput.body;
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
}
|
|
1018
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1019
|
+
Message: smithy_client_1.expectString,
|
|
1020
|
+
});
|
|
1021
|
+
Object.assign(contents, doc);
|
|
1087
1022
|
const exception = new models_0_1.AccessDeniedException({
|
|
1088
1023
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1089
1024
|
...contents,
|
|
@@ -1091,11 +1026,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1091
1026
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1092
1027
|
};
|
|
1093
1028
|
const de_DuplicateResourceExceptionRes = async (parsedOutput, context) => {
|
|
1094
|
-
const contents = map({});
|
|
1029
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1095
1030
|
const data = parsedOutput.body;
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
}
|
|
1031
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1032
|
+
Message: smithy_client_1.expectString,
|
|
1033
|
+
});
|
|
1034
|
+
Object.assign(contents, doc);
|
|
1099
1035
|
const exception = new models_0_1.DuplicateResourceException({
|
|
1100
1036
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1101
1037
|
...contents,
|
|
@@ -1103,11 +1039,12 @@ const de_DuplicateResourceExceptionRes = async (parsedOutput, context) => {
|
|
|
1103
1039
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1104
1040
|
};
|
|
1105
1041
|
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
1106
|
-
const contents = map({});
|
|
1042
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1107
1043
|
const data = parsedOutput.body;
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
}
|
|
1044
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1045
|
+
Message: smithy_client_1.expectString,
|
|
1046
|
+
});
|
|
1047
|
+
Object.assign(contents, doc);
|
|
1111
1048
|
const exception = new models_0_1.InternalServiceError({
|
|
1112
1049
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1113
1050
|
...contents,
|
|
@@ -1115,11 +1052,12 @@ const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
|
1115
1052
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1116
1053
|
};
|
|
1117
1054
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1118
|
-
const contents = map({});
|
|
1055
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1119
1056
|
const data = parsedOutput.body;
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
}
|
|
1057
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1058
|
+
Message: smithy_client_1.expectString,
|
|
1059
|
+
});
|
|
1060
|
+
Object.assign(contents, doc);
|
|
1123
1061
|
const exception = new models_0_1.InvalidRequestException({
|
|
1124
1062
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1125
1063
|
...contents,
|
|
@@ -1127,11 +1065,12 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1127
1065
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1128
1066
|
};
|
|
1129
1067
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1130
|
-
const contents = map({});
|
|
1068
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1131
1069
|
const data = parsedOutput.body;
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
}
|
|
1070
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1071
|
+
Message: smithy_client_1.expectString,
|
|
1072
|
+
});
|
|
1073
|
+
Object.assign(contents, doc);
|
|
1135
1074
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1136
1075
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1137
1076
|
...contents,
|
|
@@ -1139,11 +1078,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1139
1078
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1140
1079
|
};
|
|
1141
1080
|
const de_ResourceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1142
|
-
const contents = map({});
|
|
1081
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1143
1082
|
const data = parsedOutput.body;
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
}
|
|
1083
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1084
|
+
Message: smithy_client_1.expectString,
|
|
1085
|
+
});
|
|
1086
|
+
Object.assign(contents, doc);
|
|
1147
1087
|
const exception = new models_0_1.ResourceQuotaExceededException({
|
|
1148
1088
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1149
1089
|
...contents,
|
|
@@ -1151,232 +1091,18 @@ const de_ResourceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1151
1091
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1152
1092
|
};
|
|
1153
1093
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1154
|
-
const contents = map({});
|
|
1094
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1155
1095
|
const data = parsedOutput.body;
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
}
|
|
1096
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1097
|
+
Message: smithy_client_1.expectString,
|
|
1098
|
+
});
|
|
1099
|
+
Object.assign(contents, doc);
|
|
1159
1100
|
const exception = new models_0_1.ThrottlingException({
|
|
1160
1101
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1161
1102
|
...contents,
|
|
1162
1103
|
});
|
|
1163
1104
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1164
1105
|
};
|
|
1165
|
-
const se_EventFilter = (input, context) => {
|
|
1166
|
-
return {
|
|
1167
|
-
...(input.Source != null && { Source: input.Source }),
|
|
1168
|
-
};
|
|
1169
|
-
};
|
|
1170
|
-
const se_FieldsList = (input, context) => {
|
|
1171
|
-
return input
|
|
1172
|
-
.filter((e) => e != null)
|
|
1173
|
-
.map((entry) => {
|
|
1174
|
-
return entry;
|
|
1175
|
-
});
|
|
1176
|
-
};
|
|
1177
|
-
const se_FieldsMap = (input, context) => {
|
|
1178
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1179
|
-
if (value === null) {
|
|
1180
|
-
return acc;
|
|
1181
|
-
}
|
|
1182
|
-
acc[key] = se_FieldsList(value, context);
|
|
1183
|
-
return acc;
|
|
1184
|
-
}, {});
|
|
1185
|
-
};
|
|
1186
|
-
const se_FileConfiguration = (input, context) => {
|
|
1187
|
-
return {
|
|
1188
|
-
...(input.Filters != null && { Filters: se_FieldsMap(input.Filters, context) }),
|
|
1189
|
-
...(input.Folders != null && { Folders: se_FolderList(input.Folders, context) }),
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
const se_FolderList = (input, context) => {
|
|
1193
|
-
return input
|
|
1194
|
-
.filter((e) => e != null)
|
|
1195
|
-
.map((entry) => {
|
|
1196
|
-
return entry;
|
|
1197
|
-
});
|
|
1198
|
-
};
|
|
1199
|
-
const se_ObjectConfiguration = (input, context) => {
|
|
1200
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1201
|
-
if (value === null) {
|
|
1202
|
-
return acc;
|
|
1203
|
-
}
|
|
1204
|
-
acc[key] = se_FieldsMap(value, context);
|
|
1205
|
-
return acc;
|
|
1206
|
-
}, {});
|
|
1207
|
-
};
|
|
1208
|
-
const se_ScheduleConfiguration = (input, context) => {
|
|
1209
|
-
return {
|
|
1210
|
-
...(input.FirstExecutionFrom != null && { FirstExecutionFrom: input.FirstExecutionFrom }),
|
|
1211
|
-
...(input.Object != null && { Object: input.Object }),
|
|
1212
|
-
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1213
|
-
};
|
|
1214
|
-
};
|
|
1215
|
-
const se_TagMap = (input, context) => {
|
|
1216
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1217
|
-
if (value === null) {
|
|
1218
|
-
return acc;
|
|
1219
|
-
}
|
|
1220
|
-
acc[key] = value;
|
|
1221
|
-
return acc;
|
|
1222
|
-
}, {});
|
|
1223
|
-
};
|
|
1224
|
-
const de_ClientAssociationMetadata = (output, context) => {
|
|
1225
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1226
|
-
if (value === null) {
|
|
1227
|
-
return acc;
|
|
1228
|
-
}
|
|
1229
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1230
|
-
return acc;
|
|
1231
|
-
}, {});
|
|
1232
|
-
};
|
|
1233
|
-
const de_DataIntegrationAssociationsList = (output, context) => {
|
|
1234
|
-
const retVal = (output || [])
|
|
1235
|
-
.filter((e) => e != null)
|
|
1236
|
-
.map((entry) => {
|
|
1237
|
-
if (entry === null) {
|
|
1238
|
-
return null;
|
|
1239
|
-
}
|
|
1240
|
-
return de_DataIntegrationAssociationSummary(entry, context);
|
|
1241
|
-
});
|
|
1242
|
-
return retVal;
|
|
1243
|
-
};
|
|
1244
|
-
const de_DataIntegrationAssociationSummary = (output, context) => {
|
|
1245
|
-
return {
|
|
1246
|
-
ClientId: (0, smithy_client_1.expectString)(output.ClientId),
|
|
1247
|
-
DataIntegrationArn: (0, smithy_client_1.expectString)(output.DataIntegrationArn),
|
|
1248
|
-
DataIntegrationAssociationArn: (0, smithy_client_1.expectString)(output.DataIntegrationAssociationArn),
|
|
1249
|
-
};
|
|
1250
|
-
};
|
|
1251
|
-
const de_DataIntegrationsList = (output, context) => {
|
|
1252
|
-
const retVal = (output || [])
|
|
1253
|
-
.filter((e) => e != null)
|
|
1254
|
-
.map((entry) => {
|
|
1255
|
-
if (entry === null) {
|
|
1256
|
-
return null;
|
|
1257
|
-
}
|
|
1258
|
-
return de_DataIntegrationSummary(entry, context);
|
|
1259
|
-
});
|
|
1260
|
-
return retVal;
|
|
1261
|
-
};
|
|
1262
|
-
const de_DataIntegrationSummary = (output, context) => {
|
|
1263
|
-
return {
|
|
1264
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1265
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1266
|
-
SourceURI: (0, smithy_client_1.expectString)(output.SourceURI),
|
|
1267
|
-
};
|
|
1268
|
-
};
|
|
1269
|
-
const de_EventFilter = (output, context) => {
|
|
1270
|
-
return {
|
|
1271
|
-
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
1272
|
-
};
|
|
1273
|
-
};
|
|
1274
|
-
const de_EventIntegration = (output, context) => {
|
|
1275
|
-
return {
|
|
1276
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1277
|
-
EventBridgeBus: (0, smithy_client_1.expectString)(output.EventBridgeBus),
|
|
1278
|
-
EventFilter: output.EventFilter != null ? de_EventFilter(output.EventFilter, context) : undefined,
|
|
1279
|
-
EventIntegrationArn: (0, smithy_client_1.expectString)(output.EventIntegrationArn),
|
|
1280
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1281
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1282
|
-
};
|
|
1283
|
-
};
|
|
1284
|
-
const de_EventIntegrationAssociation = (output, context) => {
|
|
1285
|
-
return {
|
|
1286
|
-
ClientAssociationMetadata: output.ClientAssociationMetadata != null
|
|
1287
|
-
? de_ClientAssociationMetadata(output.ClientAssociationMetadata, context)
|
|
1288
|
-
: undefined,
|
|
1289
|
-
ClientId: (0, smithy_client_1.expectString)(output.ClientId),
|
|
1290
|
-
EventBridgeRuleName: (0, smithy_client_1.expectString)(output.EventBridgeRuleName),
|
|
1291
|
-
EventIntegrationAssociationArn: (0, smithy_client_1.expectString)(output.EventIntegrationAssociationArn),
|
|
1292
|
-
EventIntegrationAssociationId: (0, smithy_client_1.expectString)(output.EventIntegrationAssociationId),
|
|
1293
|
-
EventIntegrationName: (0, smithy_client_1.expectString)(output.EventIntegrationName),
|
|
1294
|
-
};
|
|
1295
|
-
};
|
|
1296
|
-
const de_EventIntegrationAssociationsList = (output, context) => {
|
|
1297
|
-
const retVal = (output || [])
|
|
1298
|
-
.filter((e) => e != null)
|
|
1299
|
-
.map((entry) => {
|
|
1300
|
-
if (entry === null) {
|
|
1301
|
-
return null;
|
|
1302
|
-
}
|
|
1303
|
-
return de_EventIntegrationAssociation(entry, context);
|
|
1304
|
-
});
|
|
1305
|
-
return retVal;
|
|
1306
|
-
};
|
|
1307
|
-
const de_EventIntegrationsList = (output, context) => {
|
|
1308
|
-
const retVal = (output || [])
|
|
1309
|
-
.filter((e) => e != null)
|
|
1310
|
-
.map((entry) => {
|
|
1311
|
-
if (entry === null) {
|
|
1312
|
-
return null;
|
|
1313
|
-
}
|
|
1314
|
-
return de_EventIntegration(entry, context);
|
|
1315
|
-
});
|
|
1316
|
-
return retVal;
|
|
1317
|
-
};
|
|
1318
|
-
const de_FieldsList = (output, context) => {
|
|
1319
|
-
const retVal = (output || [])
|
|
1320
|
-
.filter((e) => e != null)
|
|
1321
|
-
.map((entry) => {
|
|
1322
|
-
if (entry === null) {
|
|
1323
|
-
return null;
|
|
1324
|
-
}
|
|
1325
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1326
|
-
});
|
|
1327
|
-
return retVal;
|
|
1328
|
-
};
|
|
1329
|
-
const de_FieldsMap = (output, context) => {
|
|
1330
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1331
|
-
if (value === null) {
|
|
1332
|
-
return acc;
|
|
1333
|
-
}
|
|
1334
|
-
acc[key] = de_FieldsList(value, context);
|
|
1335
|
-
return acc;
|
|
1336
|
-
}, {});
|
|
1337
|
-
};
|
|
1338
|
-
const de_FileConfiguration = (output, context) => {
|
|
1339
|
-
return {
|
|
1340
|
-
Filters: output.Filters != null ? de_FieldsMap(output.Filters, context) : undefined,
|
|
1341
|
-
Folders: output.Folders != null ? de_FolderList(output.Folders, context) : undefined,
|
|
1342
|
-
};
|
|
1343
|
-
};
|
|
1344
|
-
const de_FolderList = (output, context) => {
|
|
1345
|
-
const retVal = (output || [])
|
|
1346
|
-
.filter((e) => e != null)
|
|
1347
|
-
.map((entry) => {
|
|
1348
|
-
if (entry === null) {
|
|
1349
|
-
return null;
|
|
1350
|
-
}
|
|
1351
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1352
|
-
});
|
|
1353
|
-
return retVal;
|
|
1354
|
-
};
|
|
1355
|
-
const de_ObjectConfiguration = (output, context) => {
|
|
1356
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1357
|
-
if (value === null) {
|
|
1358
|
-
return acc;
|
|
1359
|
-
}
|
|
1360
|
-
acc[key] = de_FieldsMap(value, context);
|
|
1361
|
-
return acc;
|
|
1362
|
-
}, {});
|
|
1363
|
-
};
|
|
1364
|
-
const de_ScheduleConfiguration = (output, context) => {
|
|
1365
|
-
return {
|
|
1366
|
-
FirstExecutionFrom: (0, smithy_client_1.expectString)(output.FirstExecutionFrom),
|
|
1367
|
-
Object: (0, smithy_client_1.expectString)(output.Object),
|
|
1368
|
-
ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
|
|
1369
|
-
};
|
|
1370
|
-
};
|
|
1371
|
-
const de_TagMap = (output, context) => {
|
|
1372
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1373
|
-
if (value === null) {
|
|
1374
|
-
return acc;
|
|
1375
|
-
}
|
|
1376
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1377
|
-
return acc;
|
|
1378
|
-
}, {});
|
|
1379
|
-
};
|
|
1380
1106
|
const deserializeMetadata = (output) => ({
|
|
1381
1107
|
httpStatusCode: output.statusCode,
|
|
1382
1108
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|