@aws-sdk/client-healthlake 3.490.0 → 3.496.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.
Files changed (30) hide show
  1. package/dist-cjs/HealthLake.js +1 -37
  2. package/dist-cjs/HealthLakeClient.js +1 -43
  3. package/dist-cjs/commands/CreateFHIRDatastoreCommand.js +1 -28
  4. package/dist-cjs/commands/DeleteFHIRDatastoreCommand.js +1 -28
  5. package/dist-cjs/commands/DescribeFHIRDatastoreCommand.js +1 -28
  6. package/dist-cjs/commands/DescribeFHIRExportJobCommand.js +1 -28
  7. package/dist-cjs/commands/DescribeFHIRImportJobCommand.js +1 -28
  8. package/dist-cjs/commands/ListFHIRDatastoresCommand.js +1 -28
  9. package/dist-cjs/commands/ListFHIRExportJobsCommand.js +1 -28
  10. package/dist-cjs/commands/ListFHIRImportJobsCommand.js +1 -28
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  12. package/dist-cjs/commands/StartFHIRExportJobCommand.js +1 -28
  13. package/dist-cjs/commands/StartFHIRImportJobCommand.js +1 -28
  14. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  15. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  16. package/dist-cjs/commands/index.js +1 -16
  17. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  18. package/dist-cjs/extensionConfiguration.js +1 -2
  19. package/dist-cjs/index.js +1518 -11
  20. package/dist-cjs/models/HealthLakeServiceException.js +1 -12
  21. package/dist-cjs/models/index.js +1 -4
  22. package/dist-cjs/models/models_0.js +1 -135
  23. package/dist-cjs/pagination/Interfaces.js +1 -2
  24. package/dist-cjs/pagination/ListFHIRDatastoresPaginator.js +1 -7
  25. package/dist-cjs/pagination/ListFHIRExportJobsPaginator.js +1 -7
  26. package/dist-cjs/pagination/ListFHIRImportJobsPaginator.js +1 -7
  27. package/dist-cjs/pagination/index.js +1 -7
  28. package/dist-cjs/protocols/Aws_json1_0.js +1 -934
  29. package/dist-cjs/runtimeExtensions.js +1 -22
  30. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,1519 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HealthLakeServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./HealthLakeClient"), exports);
6
- tslib_1.__exportStar(require("./HealthLake"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var HealthLakeServiceException_1 = require("./models/HealthLakeServiceException");
12
- Object.defineProperty(exports, "HealthLakeServiceException", { enumerable: true, get: function () { return HealthLakeServiceException_1.HealthLakeServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AuthorizationStrategy: () => AuthorizationStrategy,
26
+ CmkType: () => CmkType,
27
+ ConflictException: () => ConflictException,
28
+ CreateFHIRDatastoreCommand: () => CreateFHIRDatastoreCommand,
29
+ DatastoreStatus: () => DatastoreStatus,
30
+ DeleteFHIRDatastoreCommand: () => DeleteFHIRDatastoreCommand,
31
+ DescribeFHIRDatastoreCommand: () => DescribeFHIRDatastoreCommand,
32
+ DescribeFHIRExportJobCommand: () => DescribeFHIRExportJobCommand,
33
+ DescribeFHIRImportJobCommand: () => DescribeFHIRImportJobCommand,
34
+ FHIRVersion: () => FHIRVersion,
35
+ HealthLake: () => HealthLake,
36
+ HealthLakeClient: () => HealthLakeClient,
37
+ HealthLakeServiceException: () => HealthLakeServiceException,
38
+ InputDataConfig: () => InputDataConfig,
39
+ InternalServerException: () => InternalServerException,
40
+ JobStatus: () => JobStatus,
41
+ ListFHIRDatastoresCommand: () => ListFHIRDatastoresCommand,
42
+ ListFHIRExportJobsCommand: () => ListFHIRExportJobsCommand,
43
+ ListFHIRImportJobsCommand: () => ListFHIRImportJobsCommand,
44
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
45
+ OutputDataConfig: () => OutputDataConfig,
46
+ PreloadDataType: () => PreloadDataType,
47
+ ResourceNotFoundException: () => ResourceNotFoundException,
48
+ StartFHIRExportJobCommand: () => StartFHIRExportJobCommand,
49
+ StartFHIRImportJobCommand: () => StartFHIRImportJobCommand,
50
+ TagResourceCommand: () => TagResourceCommand,
51
+ ThrottlingException: () => ThrottlingException,
52
+ UntagResourceCommand: () => UntagResourceCommand,
53
+ ValidationException: () => ValidationException,
54
+ __Client: () => import_smithy_client.Client,
55
+ paginateListFHIRDatastores: () => paginateListFHIRDatastores,
56
+ paginateListFHIRExportJobs: () => paginateListFHIRExportJobs,
57
+ paginateListFHIRImportJobs: () => paginateListFHIRImportJobs
58
+ });
59
+ module.exports = __toCommonJS(src_exports);
60
+
61
+ // src/HealthLakeClient.ts
62
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
63
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
64
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
65
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
66
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
67
+ var import_config_resolver = require("@smithy/config-resolver");
68
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
69
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
70
+ var import_middleware_retry = require("@smithy/middleware-retry");
71
+
72
+
73
+ // src/endpoint/EndpointParameters.ts
74
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
75
+ return {
76
+ ...options,
77
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
78
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
79
+ defaultSigningName: "healthlake"
80
+ };
81
+ }, "resolveClientEndpointParameters");
82
+ var commonParams = {
83
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
84
+ Endpoint: { type: "builtInParams", name: "endpoint" },
85
+ Region: { type: "builtInParams", name: "region" },
86
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
87
+ };
88
+
89
+ // src/HealthLakeClient.ts
90
+ var import_runtimeConfig = require("././runtimeConfig");
91
+
92
+ // src/runtimeExtensions.ts
93
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
94
+ var import_protocol_http = require("@smithy/protocol-http");
95
+ var import_smithy_client = require("@smithy/smithy-client");
96
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
97
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
98
+ const extensionConfiguration = {
99
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
100
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
101
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
102
+ };
103
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
104
+ return {
105
+ ...runtimeConfig,
106
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
107
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
108
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
109
+ };
110
+ }, "resolveRuntimeExtensions");
111
+
112
+ // src/HealthLakeClient.ts
113
+ var _HealthLakeClient = class _HealthLakeClient extends import_smithy_client.Client {
114
+ constructor(...[configuration]) {
115
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
116
+ const _config_1 = resolveClientEndpointParameters(_config_0);
117
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
118
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
119
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
120
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
121
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
122
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
123
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
124
+ super(_config_8);
125
+ this.config = _config_8;
126
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
127
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
128
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
129
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
130
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
131
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
132
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
133
+ }
134
+ /**
135
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
136
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
137
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
138
+ */
139
+ destroy() {
140
+ super.destroy();
141
+ }
142
+ };
143
+ __name(_HealthLakeClient, "HealthLakeClient");
144
+ var HealthLakeClient = _HealthLakeClient;
145
+
146
+ // src/HealthLake.ts
147
+
148
+
149
+ // src/commands/CreateFHIRDatastoreCommand.ts
150
+
151
+ var import_middleware_serde = require("@smithy/middleware-serde");
152
+
153
+ var import_types = require("@smithy/types");
154
+
155
+ // src/protocols/Aws_json1_0.ts
156
+ var import_core = require("@aws-sdk/core");
157
+
158
+
159
+ var import_uuid = require("uuid");
160
+
161
+ // src/models/HealthLakeServiceException.ts
162
+
163
+ var _HealthLakeServiceException = class _HealthLakeServiceException extends import_smithy_client.ServiceException {
164
+ /**
165
+ * @internal
166
+ */
167
+ constructor(options) {
168
+ super(options);
169
+ Object.setPrototypeOf(this, _HealthLakeServiceException.prototype);
170
+ }
171
+ };
172
+ __name(_HealthLakeServiceException, "HealthLakeServiceException");
173
+ var HealthLakeServiceException = _HealthLakeServiceException;
174
+
175
+ // src/models/models_0.ts
176
+ var _AccessDeniedException = class _AccessDeniedException extends HealthLakeServiceException {
177
+ /**
178
+ * @internal
179
+ */
180
+ constructor(opts) {
181
+ super({
182
+ name: "AccessDeniedException",
183
+ $fault: "client",
184
+ ...opts
185
+ });
186
+ this.name = "AccessDeniedException";
187
+ this.$fault = "client";
188
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
189
+ this.Message = opts.Message;
190
+ }
191
+ };
192
+ __name(_AccessDeniedException, "AccessDeniedException");
193
+ var AccessDeniedException = _AccessDeniedException;
194
+ var AuthorizationStrategy = {
195
+ AWS_AUTH: "AWS_AUTH",
196
+ SMARTV1: "SMART_ON_FHIR_V1"
197
+ };
198
+ var CmkType = {
199
+ AO_CMK: "AWS_OWNED_KMS_KEY",
200
+ CM_CMK: "CUSTOMER_MANAGED_KMS_KEY"
201
+ };
202
+ var _ConflictException = class _ConflictException extends HealthLakeServiceException {
203
+ /**
204
+ * @internal
205
+ */
206
+ constructor(opts) {
207
+ super({
208
+ name: "ConflictException",
209
+ $fault: "client",
210
+ ...opts
211
+ });
212
+ this.name = "ConflictException";
213
+ this.$fault = "client";
214
+ Object.setPrototypeOf(this, _ConflictException.prototype);
215
+ this.Message = opts.Message;
216
+ }
217
+ };
218
+ __name(_ConflictException, "ConflictException");
219
+ var ConflictException = _ConflictException;
220
+ var FHIRVersion = {
221
+ R4: "R4"
222
+ };
223
+ var PreloadDataType = {
224
+ SYNTHEA: "SYNTHEA"
225
+ };
226
+ var DatastoreStatus = {
227
+ ACTIVE: "ACTIVE",
228
+ CREATING: "CREATING",
229
+ DELETED: "DELETED",
230
+ DELETING: "DELETING"
231
+ };
232
+ var _InternalServerException = class _InternalServerException extends HealthLakeServiceException {
233
+ /**
234
+ * @internal
235
+ */
236
+ constructor(opts) {
237
+ super({
238
+ name: "InternalServerException",
239
+ $fault: "server",
240
+ ...opts
241
+ });
242
+ this.name = "InternalServerException";
243
+ this.$fault = "server";
244
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
245
+ this.Message = opts.Message;
246
+ }
247
+ };
248
+ __name(_InternalServerException, "InternalServerException");
249
+ var InternalServerException = _InternalServerException;
250
+ var _ThrottlingException = class _ThrottlingException extends HealthLakeServiceException {
251
+ /**
252
+ * @internal
253
+ */
254
+ constructor(opts) {
255
+ super({
256
+ name: "ThrottlingException",
257
+ $fault: "client",
258
+ ...opts
259
+ });
260
+ this.name = "ThrottlingException";
261
+ this.$fault = "client";
262
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
263
+ this.Message = opts.Message;
264
+ }
265
+ };
266
+ __name(_ThrottlingException, "ThrottlingException");
267
+ var ThrottlingException = _ThrottlingException;
268
+ var _ValidationException = class _ValidationException extends HealthLakeServiceException {
269
+ /**
270
+ * @internal
271
+ */
272
+ constructor(opts) {
273
+ super({
274
+ name: "ValidationException",
275
+ $fault: "client",
276
+ ...opts
277
+ });
278
+ this.name = "ValidationException";
279
+ this.$fault = "client";
280
+ Object.setPrototypeOf(this, _ValidationException.prototype);
281
+ this.Message = opts.Message;
282
+ }
283
+ };
284
+ __name(_ValidationException, "ValidationException");
285
+ var ValidationException = _ValidationException;
286
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends HealthLakeServiceException {
287
+ /**
288
+ * @internal
289
+ */
290
+ constructor(opts) {
291
+ super({
292
+ name: "ResourceNotFoundException",
293
+ $fault: "client",
294
+ ...opts
295
+ });
296
+ this.name = "ResourceNotFoundException";
297
+ this.$fault = "client";
298
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
299
+ this.Message = opts.Message;
300
+ }
301
+ };
302
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
303
+ var ResourceNotFoundException = _ResourceNotFoundException;
304
+ var JobStatus = {
305
+ CANCEL_COMPLETED: "CANCEL_COMPLETED",
306
+ CANCEL_FAILED: "CANCEL_FAILED",
307
+ CANCEL_IN_PROGRESS: "CANCEL_IN_PROGRESS",
308
+ CANCEL_SUBMITTED: "CANCEL_SUBMITTED",
309
+ COMPLETED: "COMPLETED",
310
+ COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
311
+ FAILED: "FAILED",
312
+ IN_PROGRESS: "IN_PROGRESS",
313
+ SUBMITTED: "SUBMITTED"
314
+ };
315
+ var OutputDataConfig;
316
+ ((OutputDataConfig3) => {
317
+ OutputDataConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
318
+ if (value.S3Configuration !== void 0)
319
+ return visitor.S3Configuration(value.S3Configuration);
320
+ return visitor._(value.$unknown[0], value.$unknown[1]);
321
+ }, "visit");
322
+ })(OutputDataConfig || (OutputDataConfig = {}));
323
+ var InputDataConfig;
324
+ ((InputDataConfig3) => {
325
+ InputDataConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
326
+ if (value.S3Uri !== void 0)
327
+ return visitor.S3Uri(value.S3Uri);
328
+ return visitor._(value.$unknown[0], value.$unknown[1]);
329
+ }, "visit");
330
+ })(InputDataConfig || (InputDataConfig = {}));
331
+
332
+ // src/protocols/Aws_json1_0.ts
333
+ var se_CreateFHIRDatastoreCommand = /* @__PURE__ */ __name(async (input, context) => {
334
+ const headers = sharedHeaders("CreateFHIRDatastore");
335
+ let body;
336
+ body = JSON.stringify(se_CreateFHIRDatastoreRequest(input, context));
337
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
338
+ }, "se_CreateFHIRDatastoreCommand");
339
+ var se_DeleteFHIRDatastoreCommand = /* @__PURE__ */ __name(async (input, context) => {
340
+ const headers = sharedHeaders("DeleteFHIRDatastore");
341
+ let body;
342
+ body = JSON.stringify((0, import_smithy_client._json)(input));
343
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
344
+ }, "se_DeleteFHIRDatastoreCommand");
345
+ var se_DescribeFHIRDatastoreCommand = /* @__PURE__ */ __name(async (input, context) => {
346
+ const headers = sharedHeaders("DescribeFHIRDatastore");
347
+ let body;
348
+ body = JSON.stringify((0, import_smithy_client._json)(input));
349
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
350
+ }, "se_DescribeFHIRDatastoreCommand");
351
+ var se_DescribeFHIRExportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
352
+ const headers = sharedHeaders("DescribeFHIRExportJob");
353
+ let body;
354
+ body = JSON.stringify((0, import_smithy_client._json)(input));
355
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
356
+ }, "se_DescribeFHIRExportJobCommand");
357
+ var se_DescribeFHIRImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
358
+ const headers = sharedHeaders("DescribeFHIRImportJob");
359
+ let body;
360
+ body = JSON.stringify((0, import_smithy_client._json)(input));
361
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
362
+ }, "se_DescribeFHIRImportJobCommand");
363
+ var se_ListFHIRDatastoresCommand = /* @__PURE__ */ __name(async (input, context) => {
364
+ const headers = sharedHeaders("ListFHIRDatastores");
365
+ let body;
366
+ body = JSON.stringify(se_ListFHIRDatastoresRequest(input, context));
367
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
368
+ }, "se_ListFHIRDatastoresCommand");
369
+ var se_ListFHIRExportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
370
+ const headers = sharedHeaders("ListFHIRExportJobs");
371
+ let body;
372
+ body = JSON.stringify(se_ListFHIRExportJobsRequest(input, context));
373
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
374
+ }, "se_ListFHIRExportJobsCommand");
375
+ var se_ListFHIRImportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
376
+ const headers = sharedHeaders("ListFHIRImportJobs");
377
+ let body;
378
+ body = JSON.stringify(se_ListFHIRImportJobsRequest(input, context));
379
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
380
+ }, "se_ListFHIRImportJobsCommand");
381
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
382
+ const headers = sharedHeaders("ListTagsForResource");
383
+ let body;
384
+ body = JSON.stringify((0, import_smithy_client._json)(input));
385
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
386
+ }, "se_ListTagsForResourceCommand");
387
+ var se_StartFHIRExportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
388
+ const headers = sharedHeaders("StartFHIRExportJob");
389
+ let body;
390
+ body = JSON.stringify(se_StartFHIRExportJobRequest(input, context));
391
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
392
+ }, "se_StartFHIRExportJobCommand");
393
+ var se_StartFHIRImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
394
+ const headers = sharedHeaders("StartFHIRImportJob");
395
+ let body;
396
+ body = JSON.stringify(se_StartFHIRImportJobRequest(input, context));
397
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
398
+ }, "se_StartFHIRImportJobCommand");
399
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
400
+ const headers = sharedHeaders("TagResource");
401
+ let body;
402
+ body = JSON.stringify((0, import_smithy_client._json)(input));
403
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
404
+ }, "se_TagResourceCommand");
405
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
406
+ const headers = sharedHeaders("UntagResource");
407
+ let body;
408
+ body = JSON.stringify((0, import_smithy_client._json)(input));
409
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
410
+ }, "se_UntagResourceCommand");
411
+ var de_CreateFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
412
+ if (output.statusCode >= 300) {
413
+ return de_CreateFHIRDatastoreCommandError(output, context);
414
+ }
415
+ const data = await parseBody(output.body, context);
416
+ let contents = {};
417
+ contents = (0, import_smithy_client._json)(data);
418
+ const response = {
419
+ $metadata: deserializeMetadata(output),
420
+ ...contents
421
+ };
422
+ return response;
423
+ }, "de_CreateFHIRDatastoreCommand");
424
+ var de_CreateFHIRDatastoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
425
+ const parsedOutput = {
426
+ ...output,
427
+ body: await parseErrorBody(output.body, context)
428
+ };
429
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
430
+ switch (errorCode) {
431
+ case "AccessDeniedException":
432
+ case "com.amazonaws.healthlake#AccessDeniedException":
433
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
434
+ case "InternalServerException":
435
+ case "com.amazonaws.healthlake#InternalServerException":
436
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
437
+ case "ThrottlingException":
438
+ case "com.amazonaws.healthlake#ThrottlingException":
439
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
440
+ case "ValidationException":
441
+ case "com.amazonaws.healthlake#ValidationException":
442
+ throw await de_ValidationExceptionRes(parsedOutput, context);
443
+ default:
444
+ const parsedBody = parsedOutput.body;
445
+ return throwDefaultError({
446
+ output,
447
+ parsedBody,
448
+ errorCode
449
+ });
450
+ }
451
+ }, "de_CreateFHIRDatastoreCommandError");
452
+ var de_DeleteFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
453
+ if (output.statusCode >= 300) {
454
+ return de_DeleteFHIRDatastoreCommandError(output, context);
455
+ }
456
+ const data = await parseBody(output.body, context);
457
+ let contents = {};
458
+ contents = (0, import_smithy_client._json)(data);
459
+ const response = {
460
+ $metadata: deserializeMetadata(output),
461
+ ...contents
462
+ };
463
+ return response;
464
+ }, "de_DeleteFHIRDatastoreCommand");
465
+ var de_DeleteFHIRDatastoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
466
+ const parsedOutput = {
467
+ ...output,
468
+ body: await parseErrorBody(output.body, context)
469
+ };
470
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
471
+ switch (errorCode) {
472
+ case "AccessDeniedException":
473
+ case "com.amazonaws.healthlake#AccessDeniedException":
474
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
475
+ case "ConflictException":
476
+ case "com.amazonaws.healthlake#ConflictException":
477
+ throw await de_ConflictExceptionRes(parsedOutput, context);
478
+ case "InternalServerException":
479
+ case "com.amazonaws.healthlake#InternalServerException":
480
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
481
+ case "ResourceNotFoundException":
482
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
483
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
484
+ case "ThrottlingException":
485
+ case "com.amazonaws.healthlake#ThrottlingException":
486
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
487
+ case "ValidationException":
488
+ case "com.amazonaws.healthlake#ValidationException":
489
+ throw await de_ValidationExceptionRes(parsedOutput, context);
490
+ default:
491
+ const parsedBody = parsedOutput.body;
492
+ return throwDefaultError({
493
+ output,
494
+ parsedBody,
495
+ errorCode
496
+ });
497
+ }
498
+ }, "de_DeleteFHIRDatastoreCommandError");
499
+ var de_DescribeFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
500
+ if (output.statusCode >= 300) {
501
+ return de_DescribeFHIRDatastoreCommandError(output, context);
502
+ }
503
+ const data = await parseBody(output.body, context);
504
+ let contents = {};
505
+ contents = de_DescribeFHIRDatastoreResponse(data, context);
506
+ const response = {
507
+ $metadata: deserializeMetadata(output),
508
+ ...contents
509
+ };
510
+ return response;
511
+ }, "de_DescribeFHIRDatastoreCommand");
512
+ var de_DescribeFHIRDatastoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
513
+ const parsedOutput = {
514
+ ...output,
515
+ body: await parseErrorBody(output.body, context)
516
+ };
517
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
518
+ switch (errorCode) {
519
+ case "InternalServerException":
520
+ case "com.amazonaws.healthlake#InternalServerException":
521
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
522
+ case "ResourceNotFoundException":
523
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
524
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
525
+ case "ThrottlingException":
526
+ case "com.amazonaws.healthlake#ThrottlingException":
527
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
528
+ case "ValidationException":
529
+ case "com.amazonaws.healthlake#ValidationException":
530
+ throw await de_ValidationExceptionRes(parsedOutput, context);
531
+ default:
532
+ const parsedBody = parsedOutput.body;
533
+ return throwDefaultError({
534
+ output,
535
+ parsedBody,
536
+ errorCode
537
+ });
538
+ }
539
+ }, "de_DescribeFHIRDatastoreCommandError");
540
+ var de_DescribeFHIRExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
541
+ if (output.statusCode >= 300) {
542
+ return de_DescribeFHIRExportJobCommandError(output, context);
543
+ }
544
+ const data = await parseBody(output.body, context);
545
+ let contents = {};
546
+ contents = de_DescribeFHIRExportJobResponse(data, context);
547
+ const response = {
548
+ $metadata: deserializeMetadata(output),
549
+ ...contents
550
+ };
551
+ return response;
552
+ }, "de_DescribeFHIRExportJobCommand");
553
+ var de_DescribeFHIRExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
554
+ const parsedOutput = {
555
+ ...output,
556
+ body: await parseErrorBody(output.body, context)
557
+ };
558
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
559
+ switch (errorCode) {
560
+ case "InternalServerException":
561
+ case "com.amazonaws.healthlake#InternalServerException":
562
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
563
+ case "ResourceNotFoundException":
564
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
565
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
566
+ case "ThrottlingException":
567
+ case "com.amazonaws.healthlake#ThrottlingException":
568
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
569
+ case "ValidationException":
570
+ case "com.amazonaws.healthlake#ValidationException":
571
+ throw await de_ValidationExceptionRes(parsedOutput, context);
572
+ default:
573
+ const parsedBody = parsedOutput.body;
574
+ return throwDefaultError({
575
+ output,
576
+ parsedBody,
577
+ errorCode
578
+ });
579
+ }
580
+ }, "de_DescribeFHIRExportJobCommandError");
581
+ var de_DescribeFHIRImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
582
+ if (output.statusCode >= 300) {
583
+ return de_DescribeFHIRImportJobCommandError(output, context);
584
+ }
585
+ const data = await parseBody(output.body, context);
586
+ let contents = {};
587
+ contents = de_DescribeFHIRImportJobResponse(data, context);
588
+ const response = {
589
+ $metadata: deserializeMetadata(output),
590
+ ...contents
591
+ };
592
+ return response;
593
+ }, "de_DescribeFHIRImportJobCommand");
594
+ var de_DescribeFHIRImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
595
+ const parsedOutput = {
596
+ ...output,
597
+ body: await parseErrorBody(output.body, context)
598
+ };
599
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
600
+ switch (errorCode) {
601
+ case "InternalServerException":
602
+ case "com.amazonaws.healthlake#InternalServerException":
603
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
604
+ case "ResourceNotFoundException":
605
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
606
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
607
+ case "ThrottlingException":
608
+ case "com.amazonaws.healthlake#ThrottlingException":
609
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
610
+ case "ValidationException":
611
+ case "com.amazonaws.healthlake#ValidationException":
612
+ throw await de_ValidationExceptionRes(parsedOutput, context);
613
+ default:
614
+ const parsedBody = parsedOutput.body;
615
+ return throwDefaultError({
616
+ output,
617
+ parsedBody,
618
+ errorCode
619
+ });
620
+ }
621
+ }, "de_DescribeFHIRImportJobCommandError");
622
+ var de_ListFHIRDatastoresCommand = /* @__PURE__ */ __name(async (output, context) => {
623
+ if (output.statusCode >= 300) {
624
+ return de_ListFHIRDatastoresCommandError(output, context);
625
+ }
626
+ const data = await parseBody(output.body, context);
627
+ let contents = {};
628
+ contents = de_ListFHIRDatastoresResponse(data, context);
629
+ const response = {
630
+ $metadata: deserializeMetadata(output),
631
+ ...contents
632
+ };
633
+ return response;
634
+ }, "de_ListFHIRDatastoresCommand");
635
+ var de_ListFHIRDatastoresCommandError = /* @__PURE__ */ __name(async (output, context) => {
636
+ const parsedOutput = {
637
+ ...output,
638
+ body: await parseErrorBody(output.body, context)
639
+ };
640
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
641
+ switch (errorCode) {
642
+ case "InternalServerException":
643
+ case "com.amazonaws.healthlake#InternalServerException":
644
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
645
+ case "ThrottlingException":
646
+ case "com.amazonaws.healthlake#ThrottlingException":
647
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
648
+ case "ValidationException":
649
+ case "com.amazonaws.healthlake#ValidationException":
650
+ throw await de_ValidationExceptionRes(parsedOutput, context);
651
+ default:
652
+ const parsedBody = parsedOutput.body;
653
+ return throwDefaultError({
654
+ output,
655
+ parsedBody,
656
+ errorCode
657
+ });
658
+ }
659
+ }, "de_ListFHIRDatastoresCommandError");
660
+ var de_ListFHIRExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
661
+ if (output.statusCode >= 300) {
662
+ return de_ListFHIRExportJobsCommandError(output, context);
663
+ }
664
+ const data = await parseBody(output.body, context);
665
+ let contents = {};
666
+ contents = de_ListFHIRExportJobsResponse(data, context);
667
+ const response = {
668
+ $metadata: deserializeMetadata(output),
669
+ ...contents
670
+ };
671
+ return response;
672
+ }, "de_ListFHIRExportJobsCommand");
673
+ var de_ListFHIRExportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
674
+ const parsedOutput = {
675
+ ...output,
676
+ body: await parseErrorBody(output.body, context)
677
+ };
678
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
679
+ switch (errorCode) {
680
+ case "AccessDeniedException":
681
+ case "com.amazonaws.healthlake#AccessDeniedException":
682
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
683
+ case "InternalServerException":
684
+ case "com.amazonaws.healthlake#InternalServerException":
685
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
686
+ case "ResourceNotFoundException":
687
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
688
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
689
+ case "ThrottlingException":
690
+ case "com.amazonaws.healthlake#ThrottlingException":
691
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
692
+ case "ValidationException":
693
+ case "com.amazonaws.healthlake#ValidationException":
694
+ throw await de_ValidationExceptionRes(parsedOutput, context);
695
+ default:
696
+ const parsedBody = parsedOutput.body;
697
+ return throwDefaultError({
698
+ output,
699
+ parsedBody,
700
+ errorCode
701
+ });
702
+ }
703
+ }, "de_ListFHIRExportJobsCommandError");
704
+ var de_ListFHIRImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
705
+ if (output.statusCode >= 300) {
706
+ return de_ListFHIRImportJobsCommandError(output, context);
707
+ }
708
+ const data = await parseBody(output.body, context);
709
+ let contents = {};
710
+ contents = de_ListFHIRImportJobsResponse(data, context);
711
+ const response = {
712
+ $metadata: deserializeMetadata(output),
713
+ ...contents
714
+ };
715
+ return response;
716
+ }, "de_ListFHIRImportJobsCommand");
717
+ var de_ListFHIRImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
718
+ const parsedOutput = {
719
+ ...output,
720
+ body: await parseErrorBody(output.body, context)
721
+ };
722
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
723
+ switch (errorCode) {
724
+ case "AccessDeniedException":
725
+ case "com.amazonaws.healthlake#AccessDeniedException":
726
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
727
+ case "InternalServerException":
728
+ case "com.amazonaws.healthlake#InternalServerException":
729
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
730
+ case "ResourceNotFoundException":
731
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
732
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
733
+ case "ThrottlingException":
734
+ case "com.amazonaws.healthlake#ThrottlingException":
735
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
736
+ case "ValidationException":
737
+ case "com.amazonaws.healthlake#ValidationException":
738
+ throw await de_ValidationExceptionRes(parsedOutput, context);
739
+ default:
740
+ const parsedBody = parsedOutput.body;
741
+ return throwDefaultError({
742
+ output,
743
+ parsedBody,
744
+ errorCode
745
+ });
746
+ }
747
+ }, "de_ListFHIRImportJobsCommandError");
748
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
749
+ if (output.statusCode >= 300) {
750
+ return de_ListTagsForResourceCommandError(output, context);
751
+ }
752
+ const data = await parseBody(output.body, context);
753
+ let contents = {};
754
+ contents = (0, import_smithy_client._json)(data);
755
+ const response = {
756
+ $metadata: deserializeMetadata(output),
757
+ ...contents
758
+ };
759
+ return response;
760
+ }, "de_ListTagsForResourceCommand");
761
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
762
+ const parsedOutput = {
763
+ ...output,
764
+ body: await parseErrorBody(output.body, context)
765
+ };
766
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
767
+ switch (errorCode) {
768
+ case "ResourceNotFoundException":
769
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
770
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
771
+ case "ValidationException":
772
+ case "com.amazonaws.healthlake#ValidationException":
773
+ throw await de_ValidationExceptionRes(parsedOutput, context);
774
+ default:
775
+ const parsedBody = parsedOutput.body;
776
+ return throwDefaultError({
777
+ output,
778
+ parsedBody,
779
+ errorCode
780
+ });
781
+ }
782
+ }, "de_ListTagsForResourceCommandError");
783
+ var de_StartFHIRExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
784
+ if (output.statusCode >= 300) {
785
+ return de_StartFHIRExportJobCommandError(output, context);
786
+ }
787
+ const data = await parseBody(output.body, context);
788
+ let contents = {};
789
+ contents = (0, import_smithy_client._json)(data);
790
+ const response = {
791
+ $metadata: deserializeMetadata(output),
792
+ ...contents
793
+ };
794
+ return response;
795
+ }, "de_StartFHIRExportJobCommand");
796
+ var de_StartFHIRExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
797
+ const parsedOutput = {
798
+ ...output,
799
+ body: await parseErrorBody(output.body, context)
800
+ };
801
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
802
+ switch (errorCode) {
803
+ case "AccessDeniedException":
804
+ case "com.amazonaws.healthlake#AccessDeniedException":
805
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
806
+ case "InternalServerException":
807
+ case "com.amazonaws.healthlake#InternalServerException":
808
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
809
+ case "ResourceNotFoundException":
810
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
811
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
812
+ case "ThrottlingException":
813
+ case "com.amazonaws.healthlake#ThrottlingException":
814
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
815
+ case "ValidationException":
816
+ case "com.amazonaws.healthlake#ValidationException":
817
+ throw await de_ValidationExceptionRes(parsedOutput, context);
818
+ default:
819
+ const parsedBody = parsedOutput.body;
820
+ return throwDefaultError({
821
+ output,
822
+ parsedBody,
823
+ errorCode
824
+ });
825
+ }
826
+ }, "de_StartFHIRExportJobCommandError");
827
+ var de_StartFHIRImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
828
+ if (output.statusCode >= 300) {
829
+ return de_StartFHIRImportJobCommandError(output, context);
830
+ }
831
+ const data = await parseBody(output.body, context);
832
+ let contents = {};
833
+ contents = (0, import_smithy_client._json)(data);
834
+ const response = {
835
+ $metadata: deserializeMetadata(output),
836
+ ...contents
837
+ };
838
+ return response;
839
+ }, "de_StartFHIRImportJobCommand");
840
+ var de_StartFHIRImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
841
+ const parsedOutput = {
842
+ ...output,
843
+ body: await parseErrorBody(output.body, context)
844
+ };
845
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
846
+ switch (errorCode) {
847
+ case "AccessDeniedException":
848
+ case "com.amazonaws.healthlake#AccessDeniedException":
849
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
850
+ case "InternalServerException":
851
+ case "com.amazonaws.healthlake#InternalServerException":
852
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
853
+ case "ResourceNotFoundException":
854
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
855
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
856
+ case "ThrottlingException":
857
+ case "com.amazonaws.healthlake#ThrottlingException":
858
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
859
+ case "ValidationException":
860
+ case "com.amazonaws.healthlake#ValidationException":
861
+ throw await de_ValidationExceptionRes(parsedOutput, context);
862
+ default:
863
+ const parsedBody = parsedOutput.body;
864
+ return throwDefaultError({
865
+ output,
866
+ parsedBody,
867
+ errorCode
868
+ });
869
+ }
870
+ }, "de_StartFHIRImportJobCommandError");
871
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
872
+ if (output.statusCode >= 300) {
873
+ return de_TagResourceCommandError(output, context);
874
+ }
875
+ const data = await parseBody(output.body, context);
876
+ let contents = {};
877
+ contents = (0, import_smithy_client._json)(data);
878
+ const response = {
879
+ $metadata: deserializeMetadata(output),
880
+ ...contents
881
+ };
882
+ return response;
883
+ }, "de_TagResourceCommand");
884
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
885
+ const parsedOutput = {
886
+ ...output,
887
+ body: await parseErrorBody(output.body, context)
888
+ };
889
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
+ switch (errorCode) {
891
+ case "ResourceNotFoundException":
892
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
893
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
894
+ case "ValidationException":
895
+ case "com.amazonaws.healthlake#ValidationException":
896
+ throw await de_ValidationExceptionRes(parsedOutput, context);
897
+ default:
898
+ const parsedBody = parsedOutput.body;
899
+ return throwDefaultError({
900
+ output,
901
+ parsedBody,
902
+ errorCode
903
+ });
904
+ }
905
+ }, "de_TagResourceCommandError");
906
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
907
+ if (output.statusCode >= 300) {
908
+ return de_UntagResourceCommandError(output, context);
909
+ }
910
+ const data = await parseBody(output.body, context);
911
+ let contents = {};
912
+ contents = (0, import_smithy_client._json)(data);
913
+ const response = {
914
+ $metadata: deserializeMetadata(output),
915
+ ...contents
916
+ };
917
+ return response;
918
+ }, "de_UntagResourceCommand");
919
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
920
+ const parsedOutput = {
921
+ ...output,
922
+ body: await parseErrorBody(output.body, context)
923
+ };
924
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
925
+ switch (errorCode) {
926
+ case "ResourceNotFoundException":
927
+ case "com.amazonaws.healthlake#ResourceNotFoundException":
928
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
929
+ case "ValidationException":
930
+ case "com.amazonaws.healthlake#ValidationException":
931
+ throw await de_ValidationExceptionRes(parsedOutput, context);
932
+ default:
933
+ const parsedBody = parsedOutput.body;
934
+ return throwDefaultError({
935
+ output,
936
+ parsedBody,
937
+ errorCode
938
+ });
939
+ }
940
+ }, "de_UntagResourceCommandError");
941
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
942
+ const body = parsedOutput.body;
943
+ const deserialized = (0, import_smithy_client._json)(body);
944
+ const exception = new AccessDeniedException({
945
+ $metadata: deserializeMetadata(parsedOutput),
946
+ ...deserialized
947
+ });
948
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
949
+ }, "de_AccessDeniedExceptionRes");
950
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
951
+ const body = parsedOutput.body;
952
+ const deserialized = (0, import_smithy_client._json)(body);
953
+ const exception = new ConflictException({
954
+ $metadata: deserializeMetadata(parsedOutput),
955
+ ...deserialized
956
+ });
957
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
958
+ }, "de_ConflictExceptionRes");
959
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
960
+ const body = parsedOutput.body;
961
+ const deserialized = (0, import_smithy_client._json)(body);
962
+ const exception = new InternalServerException({
963
+ $metadata: deserializeMetadata(parsedOutput),
964
+ ...deserialized
965
+ });
966
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
967
+ }, "de_InternalServerExceptionRes");
968
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
969
+ const body = parsedOutput.body;
970
+ const deserialized = (0, import_smithy_client._json)(body);
971
+ const exception = new ResourceNotFoundException({
972
+ $metadata: deserializeMetadata(parsedOutput),
973
+ ...deserialized
974
+ });
975
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
976
+ }, "de_ResourceNotFoundExceptionRes");
977
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
978
+ const body = parsedOutput.body;
979
+ const deserialized = (0, import_smithy_client._json)(body);
980
+ const exception = new ThrottlingException({
981
+ $metadata: deserializeMetadata(parsedOutput),
982
+ ...deserialized
983
+ });
984
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
985
+ }, "de_ThrottlingExceptionRes");
986
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
987
+ const body = parsedOutput.body;
988
+ const deserialized = (0, import_smithy_client._json)(body);
989
+ const exception = new ValidationException({
990
+ $metadata: deserializeMetadata(parsedOutput),
991
+ ...deserialized
992
+ });
993
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
994
+ }, "de_ValidationExceptionRes");
995
+ var se_CreateFHIRDatastoreRequest = /* @__PURE__ */ __name((input, context) => {
996
+ return (0, import_smithy_client.take)(input, {
997
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
998
+ DatastoreName: [],
999
+ DatastoreTypeVersion: [],
1000
+ IdentityProviderConfiguration: import_smithy_client._json,
1001
+ PreloadDataConfig: import_smithy_client._json,
1002
+ SseConfiguration: import_smithy_client._json,
1003
+ Tags: import_smithy_client._json
1004
+ });
1005
+ }, "se_CreateFHIRDatastoreRequest");
1006
+ var se_DatastoreFilter = /* @__PURE__ */ __name((input, context) => {
1007
+ return (0, import_smithy_client.take)(input, {
1008
+ CreatedAfter: (_) => Math.round(_.getTime() / 1e3),
1009
+ CreatedBefore: (_) => Math.round(_.getTime() / 1e3),
1010
+ DatastoreName: [],
1011
+ DatastoreStatus: []
1012
+ });
1013
+ }, "se_DatastoreFilter");
1014
+ var se_ListFHIRDatastoresRequest = /* @__PURE__ */ __name((input, context) => {
1015
+ return (0, import_smithy_client.take)(input, {
1016
+ Filter: (_) => se_DatastoreFilter(_, context),
1017
+ MaxResults: [],
1018
+ NextToken: []
1019
+ });
1020
+ }, "se_ListFHIRDatastoresRequest");
1021
+ var se_ListFHIRExportJobsRequest = /* @__PURE__ */ __name((input, context) => {
1022
+ return (0, import_smithy_client.take)(input, {
1023
+ DatastoreId: [],
1024
+ JobName: [],
1025
+ JobStatus: [],
1026
+ MaxResults: [],
1027
+ NextToken: [],
1028
+ SubmittedAfter: (_) => Math.round(_.getTime() / 1e3),
1029
+ SubmittedBefore: (_) => Math.round(_.getTime() / 1e3)
1030
+ });
1031
+ }, "se_ListFHIRExportJobsRequest");
1032
+ var se_ListFHIRImportJobsRequest = /* @__PURE__ */ __name((input, context) => {
1033
+ return (0, import_smithy_client.take)(input, {
1034
+ DatastoreId: [],
1035
+ JobName: [],
1036
+ JobStatus: [],
1037
+ MaxResults: [],
1038
+ NextToken: [],
1039
+ SubmittedAfter: (_) => Math.round(_.getTime() / 1e3),
1040
+ SubmittedBefore: (_) => Math.round(_.getTime() / 1e3)
1041
+ });
1042
+ }, "se_ListFHIRImportJobsRequest");
1043
+ var se_StartFHIRExportJobRequest = /* @__PURE__ */ __name((input, context) => {
1044
+ return (0, import_smithy_client.take)(input, {
1045
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1046
+ DataAccessRoleArn: [],
1047
+ DatastoreId: [],
1048
+ JobName: [],
1049
+ OutputDataConfig: import_smithy_client._json
1050
+ });
1051
+ }, "se_StartFHIRExportJobRequest");
1052
+ var se_StartFHIRImportJobRequest = /* @__PURE__ */ __name((input, context) => {
1053
+ return (0, import_smithy_client.take)(input, {
1054
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1055
+ DataAccessRoleArn: [],
1056
+ DatastoreId: [],
1057
+ InputDataConfig: import_smithy_client._json,
1058
+ JobName: [],
1059
+ JobOutputDataConfig: import_smithy_client._json
1060
+ });
1061
+ }, "se_StartFHIRImportJobRequest");
1062
+ var de_DatastoreProperties = /* @__PURE__ */ __name((output, context) => {
1063
+ return (0, import_smithy_client.take)(output, {
1064
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1065
+ DatastoreArn: import_smithy_client.expectString,
1066
+ DatastoreEndpoint: import_smithy_client.expectString,
1067
+ DatastoreId: import_smithy_client.expectString,
1068
+ DatastoreName: import_smithy_client.expectString,
1069
+ DatastoreStatus: import_smithy_client.expectString,
1070
+ DatastoreTypeVersion: import_smithy_client.expectString,
1071
+ IdentityProviderConfiguration: import_smithy_client._json,
1072
+ PreloadDataConfig: import_smithy_client._json,
1073
+ SseConfiguration: import_smithy_client._json
1074
+ });
1075
+ }, "de_DatastoreProperties");
1076
+ var de_DatastorePropertiesList = /* @__PURE__ */ __name((output, context) => {
1077
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1078
+ return de_DatastoreProperties(entry, context);
1079
+ });
1080
+ return retVal;
1081
+ }, "de_DatastorePropertiesList");
1082
+ var de_DescribeFHIRDatastoreResponse = /* @__PURE__ */ __name((output, context) => {
1083
+ return (0, import_smithy_client.take)(output, {
1084
+ DatastoreProperties: (_) => de_DatastoreProperties(_, context)
1085
+ });
1086
+ }, "de_DescribeFHIRDatastoreResponse");
1087
+ var de_DescribeFHIRExportJobResponse = /* @__PURE__ */ __name((output, context) => {
1088
+ return (0, import_smithy_client.take)(output, {
1089
+ ExportJobProperties: (_) => de_ExportJobProperties(_, context)
1090
+ });
1091
+ }, "de_DescribeFHIRExportJobResponse");
1092
+ var de_DescribeFHIRImportJobResponse = /* @__PURE__ */ __name((output, context) => {
1093
+ return (0, import_smithy_client.take)(output, {
1094
+ ImportJobProperties: (_) => de_ImportJobProperties(_, context)
1095
+ });
1096
+ }, "de_DescribeFHIRImportJobResponse");
1097
+ var de_ExportJobProperties = /* @__PURE__ */ __name((output, context) => {
1098
+ return (0, import_smithy_client.take)(output, {
1099
+ DataAccessRoleArn: import_smithy_client.expectString,
1100
+ DatastoreId: import_smithy_client.expectString,
1101
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1102
+ JobId: import_smithy_client.expectString,
1103
+ JobName: import_smithy_client.expectString,
1104
+ JobStatus: import_smithy_client.expectString,
1105
+ Message: import_smithy_client.expectString,
1106
+ OutputDataConfig: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1107
+ SubmitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1108
+ });
1109
+ }, "de_ExportJobProperties");
1110
+ var de_ExportJobPropertiesList = /* @__PURE__ */ __name((output, context) => {
1111
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1112
+ return de_ExportJobProperties(entry, context);
1113
+ });
1114
+ return retVal;
1115
+ }, "de_ExportJobPropertiesList");
1116
+ var de_ImportJobProperties = /* @__PURE__ */ __name((output, context) => {
1117
+ return (0, import_smithy_client.take)(output, {
1118
+ DataAccessRoleArn: import_smithy_client.expectString,
1119
+ DatastoreId: import_smithy_client.expectString,
1120
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1121
+ InputDataConfig: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1122
+ JobId: import_smithy_client.expectString,
1123
+ JobName: import_smithy_client.expectString,
1124
+ JobOutputDataConfig: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1125
+ JobStatus: import_smithy_client.expectString,
1126
+ Message: import_smithy_client.expectString,
1127
+ SubmitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1128
+ });
1129
+ }, "de_ImportJobProperties");
1130
+ var de_ImportJobPropertiesList = /* @__PURE__ */ __name((output, context) => {
1131
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1132
+ return de_ImportJobProperties(entry, context);
1133
+ });
1134
+ return retVal;
1135
+ }, "de_ImportJobPropertiesList");
1136
+ var de_ListFHIRDatastoresResponse = /* @__PURE__ */ __name((output, context) => {
1137
+ return (0, import_smithy_client.take)(output, {
1138
+ DatastorePropertiesList: (_) => de_DatastorePropertiesList(_, context),
1139
+ NextToken: import_smithy_client.expectString
1140
+ });
1141
+ }, "de_ListFHIRDatastoresResponse");
1142
+ var de_ListFHIRExportJobsResponse = /* @__PURE__ */ __name((output, context) => {
1143
+ return (0, import_smithy_client.take)(output, {
1144
+ ExportJobPropertiesList: (_) => de_ExportJobPropertiesList(_, context),
1145
+ NextToken: import_smithy_client.expectString
1146
+ });
1147
+ }, "de_ListFHIRExportJobsResponse");
1148
+ var de_ListFHIRImportJobsResponse = /* @__PURE__ */ __name((output, context) => {
1149
+ return (0, import_smithy_client.take)(output, {
1150
+ ImportJobPropertiesList: (_) => de_ImportJobPropertiesList(_, context),
1151
+ NextToken: import_smithy_client.expectString
1152
+ });
1153
+ }, "de_ListFHIRImportJobsResponse");
1154
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1155
+ httpStatusCode: output.statusCode,
1156
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1157
+ extendedRequestId: output.headers["x-amz-id-2"],
1158
+ cfId: output.headers["x-amz-cf-id"]
1159
+ }), "deserializeMetadata");
1160
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1161
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(HealthLakeServiceException);
1162
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1163
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1164
+ const contents = {
1165
+ protocol,
1166
+ hostname,
1167
+ port,
1168
+ method: "POST",
1169
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1170
+ headers
1171
+ };
1172
+ if (resolvedHostname !== void 0) {
1173
+ contents.hostname = resolvedHostname;
1174
+ }
1175
+ if (body !== void 0) {
1176
+ contents.body = body;
1177
+ }
1178
+ return new import_protocol_http.HttpRequest(contents);
1179
+ }, "buildHttpRpcRequest");
1180
+ function sharedHeaders(operation) {
1181
+ return {
1182
+ "content-type": "application/x-amz-json-1.0",
1183
+ "x-amz-target": `HealthLake.${operation}`
1184
+ };
1185
+ }
1186
+ __name(sharedHeaders, "sharedHeaders");
1187
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1188
+ if (encoded.length) {
1189
+ return JSON.parse(encoded);
1190
+ }
1191
+ return {};
1192
+ }), "parseBody");
1193
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1194
+ const value = await parseBody(errorBody, context);
1195
+ value.message = value.message ?? value.Message;
1196
+ return value;
1197
+ }, "parseErrorBody");
1198
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1199
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1200
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1201
+ let cleanValue = rawValue;
1202
+ if (typeof cleanValue === "number") {
1203
+ cleanValue = cleanValue.toString();
1204
+ }
1205
+ if (cleanValue.indexOf(",") >= 0) {
1206
+ cleanValue = cleanValue.split(",")[0];
1207
+ }
1208
+ if (cleanValue.indexOf(":") >= 0) {
1209
+ cleanValue = cleanValue.split(":")[0];
1210
+ }
1211
+ if (cleanValue.indexOf("#") >= 0) {
1212
+ cleanValue = cleanValue.split("#")[1];
1213
+ }
1214
+ return cleanValue;
1215
+ }, "sanitizeErrorCode");
1216
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1217
+ if (headerKey !== void 0) {
1218
+ return sanitizeErrorCode(output.headers[headerKey]);
1219
+ }
1220
+ if (data.code !== void 0) {
1221
+ return sanitizeErrorCode(data.code);
1222
+ }
1223
+ if (data["__type"] !== void 0) {
1224
+ return sanitizeErrorCode(data["__type"]);
1225
+ }
1226
+ }, "loadRestJsonErrorCode");
1227
+
1228
+ // src/commands/CreateFHIRDatastoreCommand.ts
1229
+ var _CreateFHIRDatastoreCommand = class _CreateFHIRDatastoreCommand extends import_smithy_client.Command.classBuilder().ep({
1230
+ ...commonParams
1231
+ }).m(function(Command, cs, config, o) {
1232
+ return [
1233
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1234
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1235
+ ];
1236
+ }).s("HealthLake", "CreateFHIRDatastore", {}).n("HealthLakeClient", "CreateFHIRDatastoreCommand").f(void 0, void 0).ser(se_CreateFHIRDatastoreCommand).de(de_CreateFHIRDatastoreCommand).build() {
1237
+ };
1238
+ __name(_CreateFHIRDatastoreCommand, "CreateFHIRDatastoreCommand");
1239
+ var CreateFHIRDatastoreCommand = _CreateFHIRDatastoreCommand;
1240
+
1241
+ // src/commands/DeleteFHIRDatastoreCommand.ts
1242
+
1243
+
1244
+
1245
+
1246
+ var _DeleteFHIRDatastoreCommand = class _DeleteFHIRDatastoreCommand extends import_smithy_client.Command.classBuilder().ep({
1247
+ ...commonParams
1248
+ }).m(function(Command, cs, config, o) {
1249
+ return [
1250
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1251
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1252
+ ];
1253
+ }).s("HealthLake", "DeleteFHIRDatastore", {}).n("HealthLakeClient", "DeleteFHIRDatastoreCommand").f(void 0, void 0).ser(se_DeleteFHIRDatastoreCommand).de(de_DeleteFHIRDatastoreCommand).build() {
1254
+ };
1255
+ __name(_DeleteFHIRDatastoreCommand, "DeleteFHIRDatastoreCommand");
1256
+ var DeleteFHIRDatastoreCommand = _DeleteFHIRDatastoreCommand;
1257
+
1258
+ // src/commands/DescribeFHIRDatastoreCommand.ts
1259
+
1260
+
1261
+
1262
+
1263
+ var _DescribeFHIRDatastoreCommand = class _DescribeFHIRDatastoreCommand extends import_smithy_client.Command.classBuilder().ep({
1264
+ ...commonParams
1265
+ }).m(function(Command, cs, config, o) {
1266
+ return [
1267
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1268
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1269
+ ];
1270
+ }).s("HealthLake", "DescribeFHIRDatastore", {}).n("HealthLakeClient", "DescribeFHIRDatastoreCommand").f(void 0, void 0).ser(se_DescribeFHIRDatastoreCommand).de(de_DescribeFHIRDatastoreCommand).build() {
1271
+ };
1272
+ __name(_DescribeFHIRDatastoreCommand, "DescribeFHIRDatastoreCommand");
1273
+ var DescribeFHIRDatastoreCommand = _DescribeFHIRDatastoreCommand;
1274
+
1275
+ // src/commands/DescribeFHIRExportJobCommand.ts
1276
+
1277
+
1278
+
1279
+
1280
+ var _DescribeFHIRExportJobCommand = class _DescribeFHIRExportJobCommand extends import_smithy_client.Command.classBuilder().ep({
1281
+ ...commonParams
1282
+ }).m(function(Command, cs, config, o) {
1283
+ return [
1284
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1285
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1286
+ ];
1287
+ }).s("HealthLake", "DescribeFHIRExportJob", {}).n("HealthLakeClient", "DescribeFHIRExportJobCommand").f(void 0, void 0).ser(se_DescribeFHIRExportJobCommand).de(de_DescribeFHIRExportJobCommand).build() {
1288
+ };
1289
+ __name(_DescribeFHIRExportJobCommand, "DescribeFHIRExportJobCommand");
1290
+ var DescribeFHIRExportJobCommand = _DescribeFHIRExportJobCommand;
1291
+
1292
+ // src/commands/DescribeFHIRImportJobCommand.ts
1293
+
1294
+
1295
+
1296
+
1297
+ var _DescribeFHIRImportJobCommand = class _DescribeFHIRImportJobCommand extends import_smithy_client.Command.classBuilder().ep({
1298
+ ...commonParams
1299
+ }).m(function(Command, cs, config, o) {
1300
+ return [
1301
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1302
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1303
+ ];
1304
+ }).s("HealthLake", "DescribeFHIRImportJob", {}).n("HealthLakeClient", "DescribeFHIRImportJobCommand").f(void 0, void 0).ser(se_DescribeFHIRImportJobCommand).de(de_DescribeFHIRImportJobCommand).build() {
1305
+ };
1306
+ __name(_DescribeFHIRImportJobCommand, "DescribeFHIRImportJobCommand");
1307
+ var DescribeFHIRImportJobCommand = _DescribeFHIRImportJobCommand;
1308
+
1309
+ // src/commands/ListFHIRDatastoresCommand.ts
1310
+
1311
+
1312
+
1313
+
1314
+ var _ListFHIRDatastoresCommand = class _ListFHIRDatastoresCommand extends import_smithy_client.Command.classBuilder().ep({
1315
+ ...commonParams
1316
+ }).m(function(Command, cs, config, o) {
1317
+ return [
1318
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1319
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1320
+ ];
1321
+ }).s("HealthLake", "ListFHIRDatastores", {}).n("HealthLakeClient", "ListFHIRDatastoresCommand").f(void 0, void 0).ser(se_ListFHIRDatastoresCommand).de(de_ListFHIRDatastoresCommand).build() {
1322
+ };
1323
+ __name(_ListFHIRDatastoresCommand, "ListFHIRDatastoresCommand");
1324
+ var ListFHIRDatastoresCommand = _ListFHIRDatastoresCommand;
1325
+
1326
+ // src/commands/ListFHIRExportJobsCommand.ts
1327
+
1328
+
1329
+
1330
+
1331
+ var _ListFHIRExportJobsCommand = class _ListFHIRExportJobsCommand extends import_smithy_client.Command.classBuilder().ep({
1332
+ ...commonParams
1333
+ }).m(function(Command, cs, config, o) {
1334
+ return [
1335
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1336
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1337
+ ];
1338
+ }).s("HealthLake", "ListFHIRExportJobs", {}).n("HealthLakeClient", "ListFHIRExportJobsCommand").f(void 0, void 0).ser(se_ListFHIRExportJobsCommand).de(de_ListFHIRExportJobsCommand).build() {
1339
+ };
1340
+ __name(_ListFHIRExportJobsCommand, "ListFHIRExportJobsCommand");
1341
+ var ListFHIRExportJobsCommand = _ListFHIRExportJobsCommand;
1342
+
1343
+ // src/commands/ListFHIRImportJobsCommand.ts
1344
+
1345
+
1346
+
1347
+
1348
+ var _ListFHIRImportJobsCommand = class _ListFHIRImportJobsCommand extends import_smithy_client.Command.classBuilder().ep({
1349
+ ...commonParams
1350
+ }).m(function(Command, cs, config, o) {
1351
+ return [
1352
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1353
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1354
+ ];
1355
+ }).s("HealthLake", "ListFHIRImportJobs", {}).n("HealthLakeClient", "ListFHIRImportJobsCommand").f(void 0, void 0).ser(se_ListFHIRImportJobsCommand).de(de_ListFHIRImportJobsCommand).build() {
1356
+ };
1357
+ __name(_ListFHIRImportJobsCommand, "ListFHIRImportJobsCommand");
1358
+ var ListFHIRImportJobsCommand = _ListFHIRImportJobsCommand;
1359
+
1360
+ // src/commands/ListTagsForResourceCommand.ts
1361
+
1362
+
1363
+
1364
+
1365
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1366
+ ...commonParams
1367
+ }).m(function(Command, cs, config, o) {
1368
+ return [
1369
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1370
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1371
+ ];
1372
+ }).s("HealthLake", "ListTagsForResource", {}).n("HealthLakeClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1373
+ };
1374
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1375
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1376
+
1377
+ // src/commands/StartFHIRExportJobCommand.ts
1378
+
1379
+
1380
+
1381
+
1382
+ var _StartFHIRExportJobCommand = class _StartFHIRExportJobCommand extends import_smithy_client.Command.classBuilder().ep({
1383
+ ...commonParams
1384
+ }).m(function(Command, cs, config, o) {
1385
+ return [
1386
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1387
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1388
+ ];
1389
+ }).s("HealthLake", "StartFHIRExportJob", {}).n("HealthLakeClient", "StartFHIRExportJobCommand").f(void 0, void 0).ser(se_StartFHIRExportJobCommand).de(de_StartFHIRExportJobCommand).build() {
1390
+ };
1391
+ __name(_StartFHIRExportJobCommand, "StartFHIRExportJobCommand");
1392
+ var StartFHIRExportJobCommand = _StartFHIRExportJobCommand;
1393
+
1394
+ // src/commands/StartFHIRImportJobCommand.ts
1395
+
1396
+
1397
+
1398
+
1399
+ var _StartFHIRImportJobCommand = class _StartFHIRImportJobCommand extends import_smithy_client.Command.classBuilder().ep({
1400
+ ...commonParams
1401
+ }).m(function(Command, cs, config, o) {
1402
+ return [
1403
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1404
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1405
+ ];
1406
+ }).s("HealthLake", "StartFHIRImportJob", {}).n("HealthLakeClient", "StartFHIRImportJobCommand").f(void 0, void 0).ser(se_StartFHIRImportJobCommand).de(de_StartFHIRImportJobCommand).build() {
1407
+ };
1408
+ __name(_StartFHIRImportJobCommand, "StartFHIRImportJobCommand");
1409
+ var StartFHIRImportJobCommand = _StartFHIRImportJobCommand;
1410
+
1411
+ // src/commands/TagResourceCommand.ts
1412
+
1413
+
1414
+
1415
+
1416
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1417
+ ...commonParams
1418
+ }).m(function(Command, cs, config, o) {
1419
+ return [
1420
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1421
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1422
+ ];
1423
+ }).s("HealthLake", "TagResource", {}).n("HealthLakeClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1424
+ };
1425
+ __name(_TagResourceCommand, "TagResourceCommand");
1426
+ var TagResourceCommand = _TagResourceCommand;
1427
+
1428
+ // src/commands/UntagResourceCommand.ts
1429
+
1430
+
1431
+
1432
+
1433
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1434
+ ...commonParams
1435
+ }).m(function(Command, cs, config, o) {
1436
+ return [
1437
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1438
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1439
+ ];
1440
+ }).s("HealthLake", "UntagResource", {}).n("HealthLakeClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1441
+ };
1442
+ __name(_UntagResourceCommand, "UntagResourceCommand");
1443
+ var UntagResourceCommand = _UntagResourceCommand;
1444
+
1445
+ // src/HealthLake.ts
1446
+ var commands = {
1447
+ CreateFHIRDatastoreCommand,
1448
+ DeleteFHIRDatastoreCommand,
1449
+ DescribeFHIRDatastoreCommand,
1450
+ DescribeFHIRExportJobCommand,
1451
+ DescribeFHIRImportJobCommand,
1452
+ ListFHIRDatastoresCommand,
1453
+ ListFHIRExportJobsCommand,
1454
+ ListFHIRImportJobsCommand,
1455
+ ListTagsForResourceCommand,
1456
+ StartFHIRExportJobCommand,
1457
+ StartFHIRImportJobCommand,
1458
+ TagResourceCommand,
1459
+ UntagResourceCommand
1460
+ };
1461
+ var _HealthLake = class _HealthLake extends HealthLakeClient {
1462
+ };
1463
+ __name(_HealthLake, "HealthLake");
1464
+ var HealthLake = _HealthLake;
1465
+ (0, import_smithy_client.createAggregatedClient)(commands, HealthLake);
1466
+
1467
+ // src/pagination/ListFHIRDatastoresPaginator.ts
1468
+ var import_core2 = require("@smithy/core");
1469
+ var paginateListFHIRDatastores = (0, import_core2.createPaginator)(HealthLakeClient, ListFHIRDatastoresCommand, "NextToken", "NextToken", "MaxResults");
1470
+
1471
+ // src/pagination/ListFHIRExportJobsPaginator.ts
1472
+ var import_core3 = require("@smithy/core");
1473
+ var paginateListFHIRExportJobs = (0, import_core3.createPaginator)(HealthLakeClient, ListFHIRExportJobsCommand, "NextToken", "NextToken", "MaxResults");
1474
+
1475
+ // src/pagination/ListFHIRImportJobsPaginator.ts
1476
+ var import_core4 = require("@smithy/core");
1477
+ var paginateListFHIRImportJobs = (0, import_core4.createPaginator)(HealthLakeClient, ListFHIRImportJobsCommand, "NextToken", "NextToken", "MaxResults");
1478
+
1479
+ // src/index.ts
1480
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1481
+ // Annotate the CommonJS export names for ESM import in node:
1482
+
1483
+ 0 && (module.exports = {
1484
+ AccessDeniedException,
1485
+ AuthorizationStrategy,
1486
+ CmkType,
1487
+ ConflictException,
1488
+ CreateFHIRDatastoreCommand,
1489
+ DatastoreStatus,
1490
+ DeleteFHIRDatastoreCommand,
1491
+ DescribeFHIRDatastoreCommand,
1492
+ DescribeFHIRExportJobCommand,
1493
+ DescribeFHIRImportJobCommand,
1494
+ FHIRVersion,
1495
+ HealthLake,
1496
+ HealthLakeClient,
1497
+ HealthLakeServiceException,
1498
+ InputDataConfig,
1499
+ InternalServerException,
1500
+ JobStatus,
1501
+ ListFHIRDatastoresCommand,
1502
+ ListFHIRExportJobsCommand,
1503
+ ListFHIRImportJobsCommand,
1504
+ ListTagsForResourceCommand,
1505
+ OutputDataConfig,
1506
+ PreloadDataType,
1507
+ ResourceNotFoundException,
1508
+ StartFHIRExportJobCommand,
1509
+ StartFHIRImportJobCommand,
1510
+ TagResourceCommand,
1511
+ ThrottlingException,
1512
+ UntagResourceCommand,
1513
+ ValidationException,
1514
+ __Client,
1515
+ paginateListFHIRDatastores,
1516
+ paginateListFHIRExportJobs,
1517
+ paginateListFHIRImportJobs
1518
+ });
1519
+