@aws-sdk/client-healthlake 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_json1_0.js +150 -404
- package/dist-es/protocols/Aws_json1_0.js +152 -406
- package/package.json +6 -6
|
@@ -16,28 +16,28 @@ exports.se_CreateFHIRDatastoreCommand = se_CreateFHIRDatastoreCommand;
|
|
|
16
16
|
const se_DeleteFHIRDatastoreCommand = async (input, context) => {
|
|
17
17
|
const headers = sharedHeaders("DeleteFHIRDatastore");
|
|
18
18
|
let body;
|
|
19
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
21
|
};
|
|
22
22
|
exports.se_DeleteFHIRDatastoreCommand = se_DeleteFHIRDatastoreCommand;
|
|
23
23
|
const se_DescribeFHIRDatastoreCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("DescribeFHIRDatastore");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
exports.se_DescribeFHIRDatastoreCommand = se_DescribeFHIRDatastoreCommand;
|
|
30
30
|
const se_DescribeFHIRExportJobCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("DescribeFHIRExportJob");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.se_DescribeFHIRExportJobCommand = se_DescribeFHIRExportJobCommand;
|
|
37
37
|
const se_DescribeFHIRImportJobCommand = async (input, context) => {
|
|
38
38
|
const headers = sharedHeaders("DescribeFHIRImportJob");
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
42
|
};
|
|
43
43
|
exports.se_DescribeFHIRImportJobCommand = se_DescribeFHIRImportJobCommand;
|
|
@@ -65,7 +65,7 @@ exports.se_ListFHIRImportJobsCommand = se_ListFHIRImportJobsCommand;
|
|
|
65
65
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("ListTagsForResource");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
@@ -86,14 +86,14 @@ exports.se_StartFHIRImportJobCommand = se_StartFHIRImportJobCommand;
|
|
|
86
86
|
const se_TagResourceCommand = async (input, context) => {
|
|
87
87
|
const headers = sharedHeaders("TagResource");
|
|
88
88
|
let body;
|
|
89
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
91
|
};
|
|
92
92
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
93
93
|
const se_UntagResourceCommand = async (input, context) => {
|
|
94
94
|
const headers = sharedHeaders("UntagResource");
|
|
95
95
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
98
|
};
|
|
99
99
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
@@ -103,12 +103,12 @@ const de_CreateFHIRDatastoreCommand = async (output, context) => {
|
|
|
103
103
|
}
|
|
104
104
|
const data = await parseBody(output.body, context);
|
|
105
105
|
let contents = {};
|
|
106
|
-
contents =
|
|
106
|
+
contents = (0, smithy_client_1._json)(data);
|
|
107
107
|
const response = {
|
|
108
108
|
$metadata: deserializeMetadata(output),
|
|
109
109
|
...contents,
|
|
110
110
|
};
|
|
111
|
-
return
|
|
111
|
+
return response;
|
|
112
112
|
};
|
|
113
113
|
exports.de_CreateFHIRDatastoreCommand = de_CreateFHIRDatastoreCommand;
|
|
114
114
|
const de_CreateFHIRDatastoreCommandError = async (output, context) => {
|
|
@@ -132,10 +132,9 @@ const de_CreateFHIRDatastoreCommandError = async (output, context) => {
|
|
|
132
132
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
133
133
|
default:
|
|
134
134
|
const parsedBody = parsedOutput.body;
|
|
135
|
-
|
|
135
|
+
return throwDefaultError({
|
|
136
136
|
output,
|
|
137
137
|
parsedBody,
|
|
138
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
139
138
|
errorCode,
|
|
140
139
|
});
|
|
141
140
|
}
|
|
@@ -146,12 +145,12 @@ const de_DeleteFHIRDatastoreCommand = async (output, context) => {
|
|
|
146
145
|
}
|
|
147
146
|
const data = await parseBody(output.body, context);
|
|
148
147
|
let contents = {};
|
|
149
|
-
contents =
|
|
148
|
+
contents = (0, smithy_client_1._json)(data);
|
|
150
149
|
const response = {
|
|
151
150
|
$metadata: deserializeMetadata(output),
|
|
152
151
|
...contents,
|
|
153
152
|
};
|
|
154
|
-
return
|
|
153
|
+
return response;
|
|
155
154
|
};
|
|
156
155
|
exports.de_DeleteFHIRDatastoreCommand = de_DeleteFHIRDatastoreCommand;
|
|
157
156
|
const de_DeleteFHIRDatastoreCommandError = async (output, context) => {
|
|
@@ -181,10 +180,9 @@ const de_DeleteFHIRDatastoreCommandError = async (output, context) => {
|
|
|
181
180
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
182
181
|
default:
|
|
183
182
|
const parsedBody = parsedOutput.body;
|
|
184
|
-
|
|
183
|
+
return throwDefaultError({
|
|
185
184
|
output,
|
|
186
185
|
parsedBody,
|
|
187
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
188
186
|
errorCode,
|
|
189
187
|
});
|
|
190
188
|
}
|
|
@@ -200,7 +198,7 @@ const de_DescribeFHIRDatastoreCommand = async (output, context) => {
|
|
|
200
198
|
$metadata: deserializeMetadata(output),
|
|
201
199
|
...contents,
|
|
202
200
|
};
|
|
203
|
-
return
|
|
201
|
+
return response;
|
|
204
202
|
};
|
|
205
203
|
exports.de_DescribeFHIRDatastoreCommand = de_DescribeFHIRDatastoreCommand;
|
|
206
204
|
const de_DescribeFHIRDatastoreCommandError = async (output, context) => {
|
|
@@ -224,10 +222,9 @@ const de_DescribeFHIRDatastoreCommandError = async (output, context) => {
|
|
|
224
222
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
225
223
|
default:
|
|
226
224
|
const parsedBody = parsedOutput.body;
|
|
227
|
-
|
|
225
|
+
return throwDefaultError({
|
|
228
226
|
output,
|
|
229
227
|
parsedBody,
|
|
230
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
231
228
|
errorCode,
|
|
232
229
|
});
|
|
233
230
|
}
|
|
@@ -243,7 +240,7 @@ const de_DescribeFHIRExportJobCommand = async (output, context) => {
|
|
|
243
240
|
$metadata: deserializeMetadata(output),
|
|
244
241
|
...contents,
|
|
245
242
|
};
|
|
246
|
-
return
|
|
243
|
+
return response;
|
|
247
244
|
};
|
|
248
245
|
exports.de_DescribeFHIRExportJobCommand = de_DescribeFHIRExportJobCommand;
|
|
249
246
|
const de_DescribeFHIRExportJobCommandError = async (output, context) => {
|
|
@@ -267,10 +264,9 @@ const de_DescribeFHIRExportJobCommandError = async (output, context) => {
|
|
|
267
264
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
268
265
|
default:
|
|
269
266
|
const parsedBody = parsedOutput.body;
|
|
270
|
-
|
|
267
|
+
return throwDefaultError({
|
|
271
268
|
output,
|
|
272
269
|
parsedBody,
|
|
273
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
274
270
|
errorCode,
|
|
275
271
|
});
|
|
276
272
|
}
|
|
@@ -286,7 +282,7 @@ const de_DescribeFHIRImportJobCommand = async (output, context) => {
|
|
|
286
282
|
$metadata: deserializeMetadata(output),
|
|
287
283
|
...contents,
|
|
288
284
|
};
|
|
289
|
-
return
|
|
285
|
+
return response;
|
|
290
286
|
};
|
|
291
287
|
exports.de_DescribeFHIRImportJobCommand = de_DescribeFHIRImportJobCommand;
|
|
292
288
|
const de_DescribeFHIRImportJobCommandError = async (output, context) => {
|
|
@@ -310,10 +306,9 @@ const de_DescribeFHIRImportJobCommandError = async (output, context) => {
|
|
|
310
306
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
311
307
|
default:
|
|
312
308
|
const parsedBody = parsedOutput.body;
|
|
313
|
-
|
|
309
|
+
return throwDefaultError({
|
|
314
310
|
output,
|
|
315
311
|
parsedBody,
|
|
316
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
317
312
|
errorCode,
|
|
318
313
|
});
|
|
319
314
|
}
|
|
@@ -329,7 +324,7 @@ const de_ListFHIRDatastoresCommand = async (output, context) => {
|
|
|
329
324
|
$metadata: deserializeMetadata(output),
|
|
330
325
|
...contents,
|
|
331
326
|
};
|
|
332
|
-
return
|
|
327
|
+
return response;
|
|
333
328
|
};
|
|
334
329
|
exports.de_ListFHIRDatastoresCommand = de_ListFHIRDatastoresCommand;
|
|
335
330
|
const de_ListFHIRDatastoresCommandError = async (output, context) => {
|
|
@@ -350,10 +345,9 @@ const de_ListFHIRDatastoresCommandError = async (output, context) => {
|
|
|
350
345
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
351
346
|
default:
|
|
352
347
|
const parsedBody = parsedOutput.body;
|
|
353
|
-
|
|
348
|
+
return throwDefaultError({
|
|
354
349
|
output,
|
|
355
350
|
parsedBody,
|
|
356
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
357
351
|
errorCode,
|
|
358
352
|
});
|
|
359
353
|
}
|
|
@@ -369,7 +363,7 @@ const de_ListFHIRExportJobsCommand = async (output, context) => {
|
|
|
369
363
|
$metadata: deserializeMetadata(output),
|
|
370
364
|
...contents,
|
|
371
365
|
};
|
|
372
|
-
return
|
|
366
|
+
return response;
|
|
373
367
|
};
|
|
374
368
|
exports.de_ListFHIRExportJobsCommand = de_ListFHIRExportJobsCommand;
|
|
375
369
|
const de_ListFHIRExportJobsCommandError = async (output, context) => {
|
|
@@ -396,10 +390,9 @@ const de_ListFHIRExportJobsCommandError = async (output, context) => {
|
|
|
396
390
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
397
391
|
default:
|
|
398
392
|
const parsedBody = parsedOutput.body;
|
|
399
|
-
|
|
393
|
+
return throwDefaultError({
|
|
400
394
|
output,
|
|
401
395
|
parsedBody,
|
|
402
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
403
396
|
errorCode,
|
|
404
397
|
});
|
|
405
398
|
}
|
|
@@ -415,7 +408,7 @@ const de_ListFHIRImportJobsCommand = async (output, context) => {
|
|
|
415
408
|
$metadata: deserializeMetadata(output),
|
|
416
409
|
...contents,
|
|
417
410
|
};
|
|
418
|
-
return
|
|
411
|
+
return response;
|
|
419
412
|
};
|
|
420
413
|
exports.de_ListFHIRImportJobsCommand = de_ListFHIRImportJobsCommand;
|
|
421
414
|
const de_ListFHIRImportJobsCommandError = async (output, context) => {
|
|
@@ -442,10 +435,9 @@ const de_ListFHIRImportJobsCommandError = async (output, context) => {
|
|
|
442
435
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
443
436
|
default:
|
|
444
437
|
const parsedBody = parsedOutput.body;
|
|
445
|
-
|
|
438
|
+
return throwDefaultError({
|
|
446
439
|
output,
|
|
447
440
|
parsedBody,
|
|
448
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
449
441
|
errorCode,
|
|
450
442
|
});
|
|
451
443
|
}
|
|
@@ -456,12 +448,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
456
448
|
}
|
|
457
449
|
const data = await parseBody(output.body, context);
|
|
458
450
|
let contents = {};
|
|
459
|
-
contents =
|
|
451
|
+
contents = (0, smithy_client_1._json)(data);
|
|
460
452
|
const response = {
|
|
461
453
|
$metadata: deserializeMetadata(output),
|
|
462
454
|
...contents,
|
|
463
455
|
};
|
|
464
|
-
return
|
|
456
|
+
return response;
|
|
465
457
|
};
|
|
466
458
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
467
459
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -479,10 +471,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
479
471
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
480
472
|
default:
|
|
481
473
|
const parsedBody = parsedOutput.body;
|
|
482
|
-
|
|
474
|
+
return throwDefaultError({
|
|
483
475
|
output,
|
|
484
476
|
parsedBody,
|
|
485
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
486
477
|
errorCode,
|
|
487
478
|
});
|
|
488
479
|
}
|
|
@@ -493,12 +484,12 @@ const de_StartFHIRExportJobCommand = async (output, context) => {
|
|
|
493
484
|
}
|
|
494
485
|
const data = await parseBody(output.body, context);
|
|
495
486
|
let contents = {};
|
|
496
|
-
contents =
|
|
487
|
+
contents = (0, smithy_client_1._json)(data);
|
|
497
488
|
const response = {
|
|
498
489
|
$metadata: deserializeMetadata(output),
|
|
499
490
|
...contents,
|
|
500
491
|
};
|
|
501
|
-
return
|
|
492
|
+
return response;
|
|
502
493
|
};
|
|
503
494
|
exports.de_StartFHIRExportJobCommand = de_StartFHIRExportJobCommand;
|
|
504
495
|
const de_StartFHIRExportJobCommandError = async (output, context) => {
|
|
@@ -525,10 +516,9 @@ const de_StartFHIRExportJobCommandError = async (output, context) => {
|
|
|
525
516
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
526
517
|
default:
|
|
527
518
|
const parsedBody = parsedOutput.body;
|
|
528
|
-
|
|
519
|
+
return throwDefaultError({
|
|
529
520
|
output,
|
|
530
521
|
parsedBody,
|
|
531
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
532
522
|
errorCode,
|
|
533
523
|
});
|
|
534
524
|
}
|
|
@@ -539,12 +529,12 @@ const de_StartFHIRImportJobCommand = async (output, context) => {
|
|
|
539
529
|
}
|
|
540
530
|
const data = await parseBody(output.body, context);
|
|
541
531
|
let contents = {};
|
|
542
|
-
contents =
|
|
532
|
+
contents = (0, smithy_client_1._json)(data);
|
|
543
533
|
const response = {
|
|
544
534
|
$metadata: deserializeMetadata(output),
|
|
545
535
|
...contents,
|
|
546
536
|
};
|
|
547
|
-
return
|
|
537
|
+
return response;
|
|
548
538
|
};
|
|
549
539
|
exports.de_StartFHIRImportJobCommand = de_StartFHIRImportJobCommand;
|
|
550
540
|
const de_StartFHIRImportJobCommandError = async (output, context) => {
|
|
@@ -571,10 +561,9 @@ const de_StartFHIRImportJobCommandError = async (output, context) => {
|
|
|
571
561
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
572
562
|
default:
|
|
573
563
|
const parsedBody = parsedOutput.body;
|
|
574
|
-
|
|
564
|
+
return throwDefaultError({
|
|
575
565
|
output,
|
|
576
566
|
parsedBody,
|
|
577
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
578
567
|
errorCode,
|
|
579
568
|
});
|
|
580
569
|
}
|
|
@@ -585,12 +574,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
585
574
|
}
|
|
586
575
|
const data = await parseBody(output.body, context);
|
|
587
576
|
let contents = {};
|
|
588
|
-
contents =
|
|
577
|
+
contents = (0, smithy_client_1._json)(data);
|
|
589
578
|
const response = {
|
|
590
579
|
$metadata: deserializeMetadata(output),
|
|
591
580
|
...contents,
|
|
592
581
|
};
|
|
593
|
-
return
|
|
582
|
+
return response;
|
|
594
583
|
};
|
|
595
584
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
596
585
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -608,10 +597,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
608
597
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
609
598
|
default:
|
|
610
599
|
const parsedBody = parsedOutput.body;
|
|
611
|
-
|
|
600
|
+
return throwDefaultError({
|
|
612
601
|
output,
|
|
613
602
|
parsedBody,
|
|
614
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
615
603
|
errorCode,
|
|
616
604
|
});
|
|
617
605
|
}
|
|
@@ -622,12 +610,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
622
610
|
}
|
|
623
611
|
const data = await parseBody(output.body, context);
|
|
624
612
|
let contents = {};
|
|
625
|
-
contents =
|
|
613
|
+
contents = (0, smithy_client_1._json)(data);
|
|
626
614
|
const response = {
|
|
627
615
|
$metadata: deserializeMetadata(output),
|
|
628
616
|
...contents,
|
|
629
617
|
};
|
|
630
|
-
return
|
|
618
|
+
return response;
|
|
631
619
|
};
|
|
632
620
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
633
621
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -645,17 +633,16 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
645
633
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
646
634
|
default:
|
|
647
635
|
const parsedBody = parsedOutput.body;
|
|
648
|
-
|
|
636
|
+
return throwDefaultError({
|
|
649
637
|
output,
|
|
650
638
|
parsedBody,
|
|
651
|
-
exceptionCtor: HealthLakeServiceException_1.HealthLakeServiceException,
|
|
652
639
|
errorCode,
|
|
653
640
|
});
|
|
654
641
|
}
|
|
655
642
|
};
|
|
656
643
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
657
644
|
const body = parsedOutput.body;
|
|
658
|
-
const deserialized =
|
|
645
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
659
646
|
const exception = new models_0_1.AccessDeniedException({
|
|
660
647
|
$metadata: deserializeMetadata(parsedOutput),
|
|
661
648
|
...deserialized,
|
|
@@ -664,7 +651,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
664
651
|
};
|
|
665
652
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
666
653
|
const body = parsedOutput.body;
|
|
667
|
-
const deserialized =
|
|
654
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
668
655
|
const exception = new models_0_1.ConflictException({
|
|
669
656
|
$metadata: deserializeMetadata(parsedOutput),
|
|
670
657
|
...deserialized,
|
|
@@ -673,7 +660,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
673
660
|
};
|
|
674
661
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
675
662
|
const body = parsedOutput.body;
|
|
676
|
-
const deserialized =
|
|
663
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
677
664
|
const exception = new models_0_1.InternalServerException({
|
|
678
665
|
$metadata: deserializeMetadata(parsedOutput),
|
|
679
666
|
...deserialized,
|
|
@@ -682,7 +669,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
682
669
|
};
|
|
683
670
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
684
671
|
const body = parsedOutput.body;
|
|
685
|
-
const deserialized =
|
|
672
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
686
673
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
687
674
|
$metadata: deserializeMetadata(parsedOutput),
|
|
688
675
|
...deserialized,
|
|
@@ -691,7 +678,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
691
678
|
};
|
|
692
679
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
693
680
|
const body = parsedOutput.body;
|
|
694
|
-
const deserialized =
|
|
681
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
695
682
|
const exception = new models_0_1.ThrottlingException({
|
|
696
683
|
$metadata: deserializeMetadata(parsedOutput),
|
|
697
684
|
...deserialized,
|
|
@@ -700,7 +687,7 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
700
687
|
};
|
|
701
688
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
702
689
|
const body = parsedOutput.body;
|
|
703
|
-
const deserialized =
|
|
690
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
704
691
|
const exception = new models_0_1.ValidationException({
|
|
705
692
|
$metadata: deserializeMetadata(parsedOutput),
|
|
706
693
|
...deserialized,
|
|
@@ -708,409 +695,167 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
708
695
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
709
696
|
};
|
|
710
697
|
const se_CreateFHIRDatastoreRequest = (input, context) => {
|
|
711
|
-
return {
|
|
712
|
-
ClientToken:
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
720
|
-
};
|
|
698
|
+
return (0, smithy_client_1.take)(input, {
|
|
699
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
700
|
+
DatastoreName: [],
|
|
701
|
+
DatastoreTypeVersion: [],
|
|
702
|
+
PreloadDataConfig: smithy_client_1._json,
|
|
703
|
+
SseConfiguration: smithy_client_1._json,
|
|
704
|
+
Tags: smithy_client_1._json,
|
|
705
|
+
});
|
|
721
706
|
};
|
|
722
707
|
const se_DatastoreFilter = (input, context) => {
|
|
723
|
-
return {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
};
|
|
729
|
-
};
|
|
730
|
-
const se_DeleteFHIRDatastoreRequest = (input, context) => {
|
|
731
|
-
return {
|
|
732
|
-
...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
const se_DescribeFHIRDatastoreRequest = (input, context) => {
|
|
736
|
-
return {
|
|
737
|
-
...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
|
|
738
|
-
};
|
|
739
|
-
};
|
|
740
|
-
const se_DescribeFHIRExportJobRequest = (input, context) => {
|
|
741
|
-
return {
|
|
742
|
-
...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
|
|
743
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
744
|
-
};
|
|
745
|
-
};
|
|
746
|
-
const se_DescribeFHIRImportJobRequest = (input, context) => {
|
|
747
|
-
return {
|
|
748
|
-
...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
|
|
749
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
750
|
-
};
|
|
751
|
-
};
|
|
752
|
-
const se_InputDataConfig = (input, context) => {
|
|
753
|
-
return models_0_1.InputDataConfig.visit(input, {
|
|
754
|
-
S3Uri: (value) => ({ S3Uri: value }),
|
|
755
|
-
_: (name, value) => ({ name: value }),
|
|
708
|
+
return (0, smithy_client_1.take)(input, {
|
|
709
|
+
CreatedAfter: (_) => Math.round(_.getTime() / 1000),
|
|
710
|
+
CreatedBefore: (_) => Math.round(_.getTime() / 1000),
|
|
711
|
+
DatastoreName: [],
|
|
712
|
+
DatastoreStatus: [],
|
|
756
713
|
});
|
|
757
714
|
};
|
|
758
|
-
const se_KmsEncryptionConfig = (input, context) => {
|
|
759
|
-
return {
|
|
760
|
-
...(input.CmkType != null && { CmkType: input.CmkType }),
|
|
761
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
762
|
-
};
|
|
763
|
-
};
|
|
764
715
|
const se_ListFHIRDatastoresRequest = (input, context) => {
|
|
765
|
-
return {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
};
|
|
716
|
+
return (0, smithy_client_1.take)(input, {
|
|
717
|
+
Filter: (_) => se_DatastoreFilter(_, context),
|
|
718
|
+
MaxResults: [],
|
|
719
|
+
NextToken: [],
|
|
720
|
+
});
|
|
770
721
|
};
|
|
771
722
|
const se_ListFHIRExportJobsRequest = (input, context) => {
|
|
772
|
-
return {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
};
|
|
723
|
+
return (0, smithy_client_1.take)(input, {
|
|
724
|
+
DatastoreId: [],
|
|
725
|
+
JobName: [],
|
|
726
|
+
JobStatus: [],
|
|
727
|
+
MaxResults: [],
|
|
728
|
+
NextToken: [],
|
|
729
|
+
SubmittedAfter: (_) => Math.round(_.getTime() / 1000),
|
|
730
|
+
SubmittedBefore: (_) => Math.round(_.getTime() / 1000),
|
|
731
|
+
});
|
|
781
732
|
};
|
|
782
733
|
const se_ListFHIRImportJobsRequest = (input, context) => {
|
|
783
|
-
return {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
};
|
|
792
|
-
};
|
|
793
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
794
|
-
return {
|
|
795
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
const se_OutputDataConfig = (input, context) => {
|
|
799
|
-
return models_0_1.OutputDataConfig.visit(input, {
|
|
800
|
-
S3Configuration: (value) => ({ S3Configuration: se_S3Configuration(value, context) }),
|
|
801
|
-
_: (name, value) => ({ name: value }),
|
|
734
|
+
return (0, smithy_client_1.take)(input, {
|
|
735
|
+
DatastoreId: [],
|
|
736
|
+
JobName: [],
|
|
737
|
+
JobStatus: [],
|
|
738
|
+
MaxResults: [],
|
|
739
|
+
NextToken: [],
|
|
740
|
+
SubmittedAfter: (_) => Math.round(_.getTime() / 1000),
|
|
741
|
+
SubmittedBefore: (_) => Math.round(_.getTime() / 1000),
|
|
802
742
|
});
|
|
803
743
|
};
|
|
804
|
-
const se_PreloadDataConfig = (input, context) => {
|
|
805
|
-
return {
|
|
806
|
-
...(input.PreloadDataType != null && { PreloadDataType: input.PreloadDataType }),
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
|
-
const se_S3Configuration = (input, context) => {
|
|
810
|
-
return {
|
|
811
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
812
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
813
|
-
};
|
|
814
|
-
};
|
|
815
|
-
const se_SseConfiguration = (input, context) => {
|
|
816
|
-
return {
|
|
817
|
-
...(input.KmsEncryptionConfig != null && {
|
|
818
|
-
KmsEncryptionConfig: se_KmsEncryptionConfig(input.KmsEncryptionConfig, context),
|
|
819
|
-
}),
|
|
820
|
-
};
|
|
821
|
-
};
|
|
822
744
|
const se_StartFHIRExportJobRequest = (input, context) => {
|
|
823
|
-
return {
|
|
824
|
-
ClientToken:
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
};
|
|
830
|
-
};
|
|
831
|
-
const se_StartFHIRImportJobRequest = (input, context) => {
|
|
832
|
-
return {
|
|
833
|
-
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
834
|
-
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
835
|
-
...(input.DatastoreId != null && { DatastoreId: input.DatastoreId }),
|
|
836
|
-
...(input.InputDataConfig != null && { InputDataConfig: se_InputDataConfig(input.InputDataConfig, context) }),
|
|
837
|
-
...(input.JobName != null && { JobName: input.JobName }),
|
|
838
|
-
...(input.JobOutputDataConfig != null && {
|
|
839
|
-
JobOutputDataConfig: se_OutputDataConfig(input.JobOutputDataConfig, context),
|
|
840
|
-
}),
|
|
841
|
-
};
|
|
842
|
-
};
|
|
843
|
-
const se_Tag = (input, context) => {
|
|
844
|
-
return {
|
|
845
|
-
...(input.Key != null && { Key: input.Key }),
|
|
846
|
-
...(input.Value != null && { Value: input.Value }),
|
|
847
|
-
};
|
|
848
|
-
};
|
|
849
|
-
const se_TagKeyList = (input, context) => {
|
|
850
|
-
return input
|
|
851
|
-
.filter((e) => e != null)
|
|
852
|
-
.map((entry) => {
|
|
853
|
-
return entry;
|
|
745
|
+
return (0, smithy_client_1.take)(input, {
|
|
746
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
747
|
+
DataAccessRoleArn: [],
|
|
748
|
+
DatastoreId: [],
|
|
749
|
+
JobName: [],
|
|
750
|
+
OutputDataConfig: smithy_client_1._json,
|
|
854
751
|
});
|
|
855
752
|
};
|
|
856
|
-
const
|
|
857
|
-
return input
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
753
|
+
const se_StartFHIRImportJobRequest = (input, context) => {
|
|
754
|
+
return (0, smithy_client_1.take)(input, {
|
|
755
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
756
|
+
DataAccessRoleArn: [],
|
|
757
|
+
DatastoreId: [],
|
|
758
|
+
InputDataConfig: smithy_client_1._json,
|
|
759
|
+
JobName: [],
|
|
760
|
+
JobOutputDataConfig: smithy_client_1._json,
|
|
861
761
|
});
|
|
862
762
|
};
|
|
863
|
-
const se_TagResourceRequest = (input, context) => {
|
|
864
|
-
return {
|
|
865
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
866
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
867
|
-
};
|
|
868
|
-
};
|
|
869
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
870
|
-
return {
|
|
871
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
872
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
873
|
-
};
|
|
874
|
-
};
|
|
875
|
-
const de_AccessDeniedException = (output, context) => {
|
|
876
|
-
return {
|
|
877
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
|
-
const de_ConflictException = (output, context) => {
|
|
881
|
-
return {
|
|
882
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
883
|
-
};
|
|
884
|
-
};
|
|
885
|
-
const de_CreateFHIRDatastoreResponse = (output, context) => {
|
|
886
|
-
return {
|
|
887
|
-
DatastoreArn: (0, smithy_client_1.expectString)(output.DatastoreArn),
|
|
888
|
-
DatastoreEndpoint: (0, smithy_client_1.expectString)(output.DatastoreEndpoint),
|
|
889
|
-
DatastoreId: (0, smithy_client_1.expectString)(output.DatastoreId),
|
|
890
|
-
DatastoreStatus: (0, smithy_client_1.expectString)(output.DatastoreStatus),
|
|
891
|
-
};
|
|
892
|
-
};
|
|
893
763
|
const de_DatastoreProperties = (output, context) => {
|
|
894
|
-
return {
|
|
895
|
-
CreatedAt:
|
|
896
|
-
DatastoreArn:
|
|
897
|
-
DatastoreEndpoint:
|
|
898
|
-
DatastoreId:
|
|
899
|
-
DatastoreName:
|
|
900
|
-
DatastoreStatus:
|
|
901
|
-
DatastoreTypeVersion:
|
|
902
|
-
PreloadDataConfig:
|
|
903
|
-
SseConfiguration:
|
|
904
|
-
};
|
|
764
|
+
return (0, smithy_client_1.take)(output, {
|
|
765
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
766
|
+
DatastoreArn: smithy_client_1.expectString,
|
|
767
|
+
DatastoreEndpoint: smithy_client_1.expectString,
|
|
768
|
+
DatastoreId: smithy_client_1.expectString,
|
|
769
|
+
DatastoreName: smithy_client_1.expectString,
|
|
770
|
+
DatastoreStatus: smithy_client_1.expectString,
|
|
771
|
+
DatastoreTypeVersion: smithy_client_1.expectString,
|
|
772
|
+
PreloadDataConfig: smithy_client_1._json,
|
|
773
|
+
SseConfiguration: smithy_client_1._json,
|
|
774
|
+
});
|
|
905
775
|
};
|
|
906
776
|
const de_DatastorePropertiesList = (output, context) => {
|
|
907
777
|
const retVal = (output || [])
|
|
908
778
|
.filter((e) => e != null)
|
|
909
779
|
.map((entry) => {
|
|
910
|
-
if (entry === null) {
|
|
911
|
-
return null;
|
|
912
|
-
}
|
|
913
780
|
return de_DatastoreProperties(entry, context);
|
|
914
781
|
});
|
|
915
782
|
return retVal;
|
|
916
783
|
};
|
|
917
|
-
const de_DeleteFHIRDatastoreResponse = (output, context) => {
|
|
918
|
-
return {
|
|
919
|
-
DatastoreArn: (0, smithy_client_1.expectString)(output.DatastoreArn),
|
|
920
|
-
DatastoreEndpoint: (0, smithy_client_1.expectString)(output.DatastoreEndpoint),
|
|
921
|
-
DatastoreId: (0, smithy_client_1.expectString)(output.DatastoreId),
|
|
922
|
-
DatastoreStatus: (0, smithy_client_1.expectString)(output.DatastoreStatus),
|
|
923
|
-
};
|
|
924
|
-
};
|
|
925
784
|
const de_DescribeFHIRDatastoreResponse = (output, context) => {
|
|
926
|
-
return {
|
|
927
|
-
DatastoreProperties:
|
|
928
|
-
};
|
|
785
|
+
return (0, smithy_client_1.take)(output, {
|
|
786
|
+
DatastoreProperties: (_) => de_DatastoreProperties(_, context),
|
|
787
|
+
});
|
|
929
788
|
};
|
|
930
789
|
const de_DescribeFHIRExportJobResponse = (output, context) => {
|
|
931
|
-
return {
|
|
932
|
-
ExportJobProperties:
|
|
933
|
-
};
|
|
790
|
+
return (0, smithy_client_1.take)(output, {
|
|
791
|
+
ExportJobProperties: (_) => de_ExportJobProperties(_, context),
|
|
792
|
+
});
|
|
934
793
|
};
|
|
935
794
|
const de_DescribeFHIRImportJobResponse = (output, context) => {
|
|
936
|
-
return {
|
|
937
|
-
ImportJobProperties:
|
|
938
|
-
};
|
|
795
|
+
return (0, smithy_client_1.take)(output, {
|
|
796
|
+
ImportJobProperties: (_) => de_ImportJobProperties(_, context),
|
|
797
|
+
});
|
|
939
798
|
};
|
|
940
799
|
const de_ExportJobProperties = (output, context) => {
|
|
941
|
-
return {
|
|
942
|
-
DataAccessRoleArn:
|
|
943
|
-
DatastoreId:
|
|
944
|
-
EndTime:
|
|
945
|
-
JobId:
|
|
946
|
-
JobName:
|
|
947
|
-
JobStatus:
|
|
948
|
-
Message:
|
|
949
|
-
OutputDataConfig:
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
953
|
-
};
|
|
800
|
+
return (0, smithy_client_1.take)(output, {
|
|
801
|
+
DataAccessRoleArn: smithy_client_1.expectString,
|
|
802
|
+
DatastoreId: smithy_client_1.expectString,
|
|
803
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
804
|
+
JobId: smithy_client_1.expectString,
|
|
805
|
+
JobName: smithy_client_1.expectString,
|
|
806
|
+
JobStatus: smithy_client_1.expectString,
|
|
807
|
+
Message: smithy_client_1.expectString,
|
|
808
|
+
OutputDataConfig: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
809
|
+
SubmitTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
810
|
+
});
|
|
954
811
|
};
|
|
955
812
|
const de_ExportJobPropertiesList = (output, context) => {
|
|
956
813
|
const retVal = (output || [])
|
|
957
814
|
.filter((e) => e != null)
|
|
958
815
|
.map((entry) => {
|
|
959
|
-
if (entry === null) {
|
|
960
|
-
return null;
|
|
961
|
-
}
|
|
962
816
|
return de_ExportJobProperties(entry, context);
|
|
963
817
|
});
|
|
964
818
|
return retVal;
|
|
965
819
|
};
|
|
966
820
|
const de_ImportJobProperties = (output, context) => {
|
|
967
|
-
return {
|
|
968
|
-
DataAccessRoleArn:
|
|
969
|
-
DatastoreId:
|
|
970
|
-
EndTime:
|
|
971
|
-
InputDataConfig:
|
|
972
|
-
JobId:
|
|
973
|
-
JobName:
|
|
974
|
-
JobOutputDataConfig:
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
980
|
-
};
|
|
821
|
+
return (0, smithy_client_1.take)(output, {
|
|
822
|
+
DataAccessRoleArn: smithy_client_1.expectString,
|
|
823
|
+
DatastoreId: smithy_client_1.expectString,
|
|
824
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
825
|
+
InputDataConfig: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
826
|
+
JobId: smithy_client_1.expectString,
|
|
827
|
+
JobName: smithy_client_1.expectString,
|
|
828
|
+
JobOutputDataConfig: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
829
|
+
JobStatus: smithy_client_1.expectString,
|
|
830
|
+
Message: smithy_client_1.expectString,
|
|
831
|
+
SubmitTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
832
|
+
});
|
|
981
833
|
};
|
|
982
834
|
const de_ImportJobPropertiesList = (output, context) => {
|
|
983
835
|
const retVal = (output || [])
|
|
984
836
|
.filter((e) => e != null)
|
|
985
837
|
.map((entry) => {
|
|
986
|
-
if (entry === null) {
|
|
987
|
-
return null;
|
|
988
|
-
}
|
|
989
838
|
return de_ImportJobProperties(entry, context);
|
|
990
839
|
});
|
|
991
840
|
return retVal;
|
|
992
841
|
};
|
|
993
|
-
const de_InputDataConfig = (output, context) => {
|
|
994
|
-
if ((0, smithy_client_1.expectString)(output.S3Uri) !== undefined) {
|
|
995
|
-
return { S3Uri: (0, smithy_client_1.expectString)(output.S3Uri) };
|
|
996
|
-
}
|
|
997
|
-
return { $unknown: Object.entries(output)[0] };
|
|
998
|
-
};
|
|
999
|
-
const de_InternalServerException = (output, context) => {
|
|
1000
|
-
return {
|
|
1001
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1002
|
-
};
|
|
1003
|
-
};
|
|
1004
|
-
const de_KmsEncryptionConfig = (output, context) => {
|
|
1005
|
-
return {
|
|
1006
|
-
CmkType: (0, smithy_client_1.expectString)(output.CmkType),
|
|
1007
|
-
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
1008
|
-
};
|
|
1009
|
-
};
|
|
1010
842
|
const de_ListFHIRDatastoresResponse = (output, context) => {
|
|
1011
|
-
return {
|
|
1012
|
-
DatastorePropertiesList:
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1016
|
-
};
|
|
843
|
+
return (0, smithy_client_1.take)(output, {
|
|
844
|
+
DatastorePropertiesList: (_) => de_DatastorePropertiesList(_, context),
|
|
845
|
+
NextToken: smithy_client_1.expectString,
|
|
846
|
+
});
|
|
1017
847
|
};
|
|
1018
848
|
const de_ListFHIRExportJobsResponse = (output, context) => {
|
|
1019
|
-
return {
|
|
1020
|
-
ExportJobPropertiesList:
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1024
|
-
};
|
|
849
|
+
return (0, smithy_client_1.take)(output, {
|
|
850
|
+
ExportJobPropertiesList: (_) => de_ExportJobPropertiesList(_, context),
|
|
851
|
+
NextToken: smithy_client_1.expectString,
|
|
852
|
+
});
|
|
1025
853
|
};
|
|
1026
854
|
const de_ListFHIRImportJobsResponse = (output, context) => {
|
|
1027
|
-
return {
|
|
1028
|
-
ImportJobPropertiesList:
|
|
1029
|
-
|
|
1030
|
-
: undefined,
|
|
1031
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1032
|
-
};
|
|
1033
|
-
};
|
|
1034
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1035
|
-
return {
|
|
1036
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1037
|
-
};
|
|
1038
|
-
};
|
|
1039
|
-
const de_OutputDataConfig = (output, context) => {
|
|
1040
|
-
if (output.S3Configuration != null) {
|
|
1041
|
-
return {
|
|
1042
|
-
S3Configuration: de_S3Configuration(output.S3Configuration, context),
|
|
1043
|
-
};
|
|
1044
|
-
}
|
|
1045
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1046
|
-
};
|
|
1047
|
-
const de_PreloadDataConfig = (output, context) => {
|
|
1048
|
-
return {
|
|
1049
|
-
PreloadDataType: (0, smithy_client_1.expectString)(output.PreloadDataType),
|
|
1050
|
-
};
|
|
1051
|
-
};
|
|
1052
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1053
|
-
return {
|
|
1054
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1055
|
-
};
|
|
1056
|
-
};
|
|
1057
|
-
const de_S3Configuration = (output, context) => {
|
|
1058
|
-
return {
|
|
1059
|
-
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
1060
|
-
S3Uri: (0, smithy_client_1.expectString)(output.S3Uri),
|
|
1061
|
-
};
|
|
1062
|
-
};
|
|
1063
|
-
const de_SseConfiguration = (output, context) => {
|
|
1064
|
-
return {
|
|
1065
|
-
KmsEncryptionConfig: output.KmsEncryptionConfig != null ? de_KmsEncryptionConfig(output.KmsEncryptionConfig, context) : undefined,
|
|
1066
|
-
};
|
|
1067
|
-
};
|
|
1068
|
-
const de_StartFHIRExportJobResponse = (output, context) => {
|
|
1069
|
-
return {
|
|
1070
|
-
DatastoreId: (0, smithy_client_1.expectString)(output.DatastoreId),
|
|
1071
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1072
|
-
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1073
|
-
};
|
|
1074
|
-
};
|
|
1075
|
-
const de_StartFHIRImportJobResponse = (output, context) => {
|
|
1076
|
-
return {
|
|
1077
|
-
DatastoreId: (0, smithy_client_1.expectString)(output.DatastoreId),
|
|
1078
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1079
|
-
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1080
|
-
};
|
|
1081
|
-
};
|
|
1082
|
-
const de_Tag = (output, context) => {
|
|
1083
|
-
return {
|
|
1084
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1085
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1086
|
-
};
|
|
1087
|
-
};
|
|
1088
|
-
const de_TagList = (output, context) => {
|
|
1089
|
-
const retVal = (output || [])
|
|
1090
|
-
.filter((e) => e != null)
|
|
1091
|
-
.map((entry) => {
|
|
1092
|
-
if (entry === null) {
|
|
1093
|
-
return null;
|
|
1094
|
-
}
|
|
1095
|
-
return de_Tag(entry, context);
|
|
855
|
+
return (0, smithy_client_1.take)(output, {
|
|
856
|
+
ImportJobPropertiesList: (_) => de_ImportJobPropertiesList(_, context),
|
|
857
|
+
NextToken: smithy_client_1.expectString,
|
|
1096
858
|
});
|
|
1097
|
-
return retVal;
|
|
1098
|
-
};
|
|
1099
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1100
|
-
return {};
|
|
1101
|
-
};
|
|
1102
|
-
const de_ThrottlingException = (output, context) => {
|
|
1103
|
-
return {
|
|
1104
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1105
|
-
};
|
|
1106
|
-
};
|
|
1107
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1108
|
-
return {};
|
|
1109
|
-
};
|
|
1110
|
-
const de_ValidationException = (output, context) => {
|
|
1111
|
-
return {
|
|
1112
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1113
|
-
};
|
|
1114
859
|
};
|
|
1115
860
|
const deserializeMetadata = (output) => ({
|
|
1116
861
|
httpStatusCode: output.statusCode,
|
|
@@ -1125,6 +870,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1125
870
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1126
871
|
};
|
|
1127
872
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
873
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(HealthLakeServiceException_1.HealthLakeServiceException);
|
|
1128
874
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1129
875
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1130
876
|
const contents = {
|