@aws-sdk/client-healthlake 3.1074.0 → 3.1076.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/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultHealthLakeHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateFHIRDatastore$, DeleteFHIRDatastore$, DescribeFHIRDatastore$, DescribeFHIRExportJob$, DescribeFHIRImportJob$, ListFHIRDatastores$, ListFHIRExportJobs$, ListFHIRImportJobs$, ListTagsForResource$, StartFHIRExportJob$, StartFHIRImportJob$, TagResource$, UntagResource$, UpdateFHIRDatastore$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { HealthLakeServiceException } = require("./models/HealthLakeServiceException");
18
- exports.HealthLakeServiceException = HealthLakeServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultHealthLakeHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "healthlake",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultHealthLakeHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,674 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://healthlake-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://healthlake-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://healthlake.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://healthlake.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class HealthLakeServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, HealthLakeServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends HealthLakeServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class ConflictException extends HealthLakeServiceException {
154
+ name = "ConflictException";
155
+ $fault = "client";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "ConflictException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ConflictException.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class InternalServerException extends HealthLakeServiceException {
168
+ name = "InternalServerException";
169
+ $fault = "server";
170
+ Message;
171
+ constructor(opts) {
172
+ super({
173
+ name: "InternalServerException",
174
+ $fault: "server",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, InternalServerException.prototype);
178
+ this.Message = opts.Message;
179
+ }
180
+ }
181
+ class ThrottlingException extends HealthLakeServiceException {
182
+ name = "ThrottlingException";
183
+ $fault = "client";
184
+ Message;
185
+ constructor(opts) {
186
+ super({
187
+ name: "ThrottlingException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
192
+ this.Message = opts.Message;
193
+ }
194
+ }
195
+ class ValidationException extends HealthLakeServiceException {
196
+ name = "ValidationException";
197
+ $fault = "client";
198
+ Message;
199
+ constructor(opts) {
200
+ super({
201
+ name: "ValidationException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, ValidationException.prototype);
206
+ this.Message = opts.Message;
207
+ }
208
+ }
209
+ class ResourceNotFoundException extends HealthLakeServiceException {
210
+ name = "ResourceNotFoundException";
211
+ $fault = "client";
212
+ Message;
213
+ constructor(opts) {
214
+ super({
215
+ name: "ResourceNotFoundException",
216
+ $fault: "client",
217
+ ...opts,
218
+ });
219
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
220
+ this.Message = opts.Message;
221
+ }
222
+ }
223
+
224
+ const _AC = "AnalyticsConfiguration";
225
+ const _ADE = "AccessDeniedException";
226
+ const _AS = "AuthorizationStrategy";
227
+ const _CA = "CreatedAfter";
228
+ const _CAr = "CreatedAt";
229
+ const _CB = "CreatedBefore";
230
+ const _CE = "ConflictException";
231
+ const _CFHIRD = "CreateFHIRDatastore";
232
+ const _CFHIRDR = "CreateFHIRDatastoreRequest";
233
+ const _CFHIRDRr = "CreateFHIRDatastoreResponse";
234
+ const _CT = "ClientToken";
235
+ const _CTm = "CmkType";
236
+ const _DA = "DatastoreArn";
237
+ const _DARA = "DataAccessRoleArn";
238
+ const _DE = "DatastoreEndpoint";
239
+ const _DF = "DatastoreFilter";
240
+ const _DFHIRD = "DeleteFHIRDatastore";
241
+ const _DFHIRDR = "DeleteFHIRDatastoreRequest";
242
+ const _DFHIRDRe = "DeleteFHIRDatastoreResponse";
243
+ const _DFHIRDRes = "DescribeFHIRDatastoreRequest";
244
+ const _DFHIRDResc = "DescribeFHIRDatastoreResponse";
245
+ const _DFHIRDe = "DescribeFHIRDatastore";
246
+ const _DFHIREJ = "DescribeFHIRExportJob";
247
+ const _DFHIREJR = "DescribeFHIRExportJobRequest";
248
+ const _DFHIREJRe = "DescribeFHIRExportJobResponse";
249
+ const _DFHIRIJ = "DescribeFHIRImportJob";
250
+ const _DFHIRIJR = "DescribeFHIRImportJobRequest";
251
+ const _DFHIRIJRe = "DescribeFHIRImportJobResponse";
252
+ const _DI = "DatastoreId";
253
+ const _DN = "DatastoreName";
254
+ const _DP = "DatastoreProperties";
255
+ const _DPL = "DatastorePropertiesList";
256
+ const _DPe = "DefaultProfiles";
257
+ const _DS = "DatastoreStatus";
258
+ const _DTV = "DatastoreTypeVersion";
259
+ const _EC = "ErrorCause";
260
+ const _ECr = "ErrorCategory";
261
+ const _EJP = "ExportJobProperties";
262
+ const _EJPL = "ExportJobPropertiesList";
263
+ const _EM = "ErrorMessage";
264
+ const _ET = "EndTime";
265
+ const _F = "Filter";
266
+ const _FGAE = "FineGrainedAuthorizationEnabled";
267
+ const _IDC = "InputDataConfig";
268
+ const _IJP = "ImportJobProperties";
269
+ const _IJPL = "ImportJobPropertiesList";
270
+ const _ILA = "IdpLambdaArn";
271
+ const _IPC = "IdentityProviderConfiguration";
272
+ const _ISE = "InternalServerException";
273
+ const _JI = "JobId";
274
+ const _JN = "JobName";
275
+ const _JODC = "JobOutputDataConfig";
276
+ const _JPR = "JobProgressReport";
277
+ const _JS = "JobStatus";
278
+ const _K = "Key";
279
+ const _KEC = "KmsEncryptionConfig";
280
+ const _KKI = "KmsKeyId";
281
+ const _LFHIRD = "ListFHIRDatastores";
282
+ const _LFHIRDR = "ListFHIRDatastoresRequest";
283
+ const _LFHIRDRi = "ListFHIRDatastoresResponse";
284
+ const _LFHIREJ = "ListFHIRExportJobs";
285
+ const _LFHIREJR = "ListFHIRExportJobsRequest";
286
+ const _LFHIREJRi = "ListFHIRExportJobsResponse";
287
+ const _LFHIRIJ = "ListFHIRImportJobs";
288
+ const _LFHIRIJR = "ListFHIRImportJobsRequest";
289
+ const _LFHIRIJRi = "ListFHIRImportJobsResponse";
290
+ const _LTFR = "ListTagsForResource";
291
+ const _LTFRR = "ListTagsForResourceRequest";
292
+ const _LTFRRi = "ListTagsForResourceResponse";
293
+ const _M = "Message";
294
+ const _MR = "MaxResults";
295
+ const _Me = "Metadata";
296
+ const _NC = "NlpConfiguration";
297
+ const _NT = "NextToken";
298
+ const _ODC = "OutputDataConfig";
299
+ const _PC = "ProfileConfiguration";
300
+ const _PDC = "PreloadDataConfig";
301
+ const _PDT = "PreloadDataType";
302
+ const _RARN = "ResourceARN";
303
+ const _RNFE = "ResourceNotFoundException";
304
+ const _S = "Status";
305
+ const _SA = "SubmittedAfter";
306
+ const _SB = "SubmittedBefore";
307
+ const _SC = "SseConfiguration";
308
+ const _SCo = "S3Configuration";
309
+ const _SFHIREJ = "StartFHIRExportJob";
310
+ const _SFHIREJR = "StartFHIRExportJobRequest";
311
+ const _SFHIREJRt = "StartFHIRExportJobResponse";
312
+ const _SFHIRIJ = "StartFHIRImportJob";
313
+ const _SFHIRIJR = "StartFHIRImportJobRequest";
314
+ const _SFHIRIJRt = "StartFHIRImportJobResponse";
315
+ const _ST = "SubmitTime";
316
+ const _SU = "S3Uri";
317
+ const _T = "Tags";
318
+ const _TE = "ThrottlingException";
319
+ const _TK = "TagKeys";
320
+ const _TL = "TagList";
321
+ const _TNOFRWCE = "TotalNumberOfFilesReadWithCustomerError";
322
+ const _TNOIF = "TotalNumberOfImportedFiles";
323
+ const _TNORI = "TotalNumberOfResourcesImported";
324
+ const _TNORS = "TotalNumberOfResourcesScanned";
325
+ const _TNORWCE = "TotalNumberOfResourcesWithCustomerError";
326
+ const _TNOSF = "TotalNumberOfScannedFiles";
327
+ const _TR = "TagResource";
328
+ const _TRR = "TagResourceRequest";
329
+ const _TRRa = "TagResourceResponse";
330
+ const _TSOSFIMB = "TotalSizeOfScannedFilesInMB";
331
+ const _Ta = "Tag";
332
+ const _Th = "Throughput";
333
+ const _UFHIRD = "UpdateFHIRDatastore";
334
+ const _UFHIRDR = "UpdateFHIRDatastoreRequest";
335
+ const _UFHIRDRp = "UpdateFHIRDatastoreResponse";
336
+ const _UR = "UntagResource";
337
+ const _URR = "UntagResourceRequest";
338
+ const _URRn = "UntagResourceResponse";
339
+ const _V = "Value";
340
+ const _VE = "ValidationException";
341
+ const _VL = "ValidationLevel";
342
+ const _c = "client";
343
+ const _e = "error";
344
+ const _hE = "httpError";
345
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.healthlake";
346
+ const _se = "server";
347
+ const n0 = "com.amazonaws.healthlake";
348
+ const _s_registry = TypeRegistry.for(_s);
349
+ var HealthLakeServiceException$ = [-3, _s, "HealthLakeServiceException", 0, [], []];
350
+ _s_registry.registerError(HealthLakeServiceException$, HealthLakeServiceException);
351
+ const n0_registry = TypeRegistry.for(n0);
352
+ var AccessDeniedException$ = [-3, n0, _ADE,
353
+ { [_e]: _c, [_hE]: 403 },
354
+ [_M],
355
+ [0]
356
+ ];
357
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
358
+ var ConflictException$ = [-3, n0, _CE,
359
+ { [_e]: _c, [_hE]: 409 },
360
+ [_M],
361
+ [0]
362
+ ];
363
+ n0_registry.registerError(ConflictException$, ConflictException);
364
+ var InternalServerException$ = [-3, n0, _ISE,
365
+ { [_e]: _se, [_hE]: 500 },
366
+ [_M],
367
+ [0]
368
+ ];
369
+ n0_registry.registerError(InternalServerException$, InternalServerException);
370
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
371
+ { [_e]: _c, [_hE]: 404 },
372
+ [_M],
373
+ [0]
374
+ ];
375
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
376
+ var ThrottlingException$ = [-3, n0, _TE,
377
+ { [_e]: _c, [_hE]: 429 },
378
+ [_M],
379
+ [0]
380
+ ];
381
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
382
+ var ValidationException$ = [-3, n0, _VE,
383
+ { [_e]: _c, [_hE]: 400 },
384
+ [_M],
385
+ [0]
386
+ ];
387
+ n0_registry.registerError(ValidationException$, ValidationException);
388
+ const errorTypeRegistries = [
389
+ _s_registry,
390
+ n0_registry,
391
+ ];
392
+ var AnalyticsConfiguration$ = [3, n0, _AC,
393
+ 0,
394
+ [_S],
395
+ [0]
396
+ ];
397
+ var CreateFHIRDatastoreRequest$ = [3, n0, _CFHIRDR,
398
+ 0,
399
+ [_DTV, _DN, _SC, _PDC, _CT, _T, _IPC, _AC, _NC, _PC],
400
+ [0, 0, () => SseConfiguration$, () => PreloadDataConfig$, [0, 4], () => TagList, () => IdentityProviderConfiguration$, () => AnalyticsConfiguration$, () => NlpConfiguration$, () => ProfileConfiguration$], 1
401
+ ];
402
+ var CreateFHIRDatastoreResponse$ = [3, n0, _CFHIRDRr,
403
+ 0,
404
+ [_DI, _DA, _DS, _DE],
405
+ [0, 0, 0, 0], 4
406
+ ];
407
+ var DatastoreFilter$ = [3, n0, _DF,
408
+ 0,
409
+ [_DN, _DS, _CB, _CA],
410
+ [0, 0, 4, 4]
411
+ ];
412
+ var DatastoreProperties$ = [3, n0, _DP,
413
+ 0,
414
+ [_DI, _DA, _DS, _DTV, _DE, _DN, _CAr, _SC, _PDC, _IPC, _EC, _NC, _AC, _PC],
415
+ [0, 0, 0, 0, 0, 0, 4, () => SseConfiguration$, () => PreloadDataConfig$, () => IdentityProviderConfiguration$, () => ErrorCause$, () => NlpConfiguration$, () => AnalyticsConfiguration$, () => ProfileConfiguration$], 5
416
+ ];
417
+ var DeleteFHIRDatastoreRequest$ = [3, n0, _DFHIRDR,
418
+ 0,
419
+ [_DI],
420
+ [0], 1
421
+ ];
422
+ var DeleteFHIRDatastoreResponse$ = [3, n0, _DFHIRDRe,
423
+ 0,
424
+ [_DI, _DA, _DS, _DE],
425
+ [0, 0, 0, 0], 4
426
+ ];
427
+ var DescribeFHIRDatastoreRequest$ = [3, n0, _DFHIRDRes,
428
+ 0,
429
+ [_DI],
430
+ [0], 1
431
+ ];
432
+ var DescribeFHIRDatastoreResponse$ = [3, n0, _DFHIRDResc,
433
+ 0,
434
+ [_DP],
435
+ [() => DatastoreProperties$], 1
436
+ ];
437
+ var DescribeFHIRExportJobRequest$ = [3, n0, _DFHIREJR,
438
+ 0,
439
+ [_DI, _JI],
440
+ [0, 0], 2
441
+ ];
442
+ var DescribeFHIRExportJobResponse$ = [3, n0, _DFHIREJRe,
443
+ 0,
444
+ [_EJP],
445
+ [() => ExportJobProperties$], 1
446
+ ];
447
+ var DescribeFHIRImportJobRequest$ = [3, n0, _DFHIRIJR,
448
+ 0,
449
+ [_DI, _JI],
450
+ [0, 0], 2
451
+ ];
452
+ var DescribeFHIRImportJobResponse$ = [3, n0, _DFHIRIJRe,
453
+ 0,
454
+ [_IJP],
455
+ [() => ImportJobProperties$], 1
456
+ ];
457
+ var ErrorCause$ = [3, n0, _EC,
458
+ 0,
459
+ [_EM, _ECr],
460
+ [0, 0]
461
+ ];
462
+ var ExportJobProperties$ = [3, n0, _EJP,
463
+ 0,
464
+ [_JI, _JS, _ST, _DI, _ODC, _JN, _ET, _DARA, _M],
465
+ [0, 0, 4, 0, () => OutputDataConfig$, 0, 4, 0, 0], 5
466
+ ];
467
+ var IdentityProviderConfiguration$ = [3, n0, _IPC,
468
+ 0,
469
+ [_AS, _FGAE, _Me, _ILA],
470
+ [0, 2, 0, 0], 1
471
+ ];
472
+ var ImportJobProperties$ = [3, n0, _IJP,
473
+ 0,
474
+ [_JI, _JS, _ST, _DI, _IDC, _JN, _ET, _JODC, _JPR, _DARA, _M, _VL],
475
+ [0, 0, 4, 0, () => InputDataConfig$, 0, 4, () => OutputDataConfig$, () => JobProgressReport$, 0, 0, 0], 5
476
+ ];
477
+ var JobProgressReport$ = [3, n0, _JPR,
478
+ 0,
479
+ [_TNOSF, _TSOSFIMB, _TNOIF, _TNORS, _TNORI, _TNORWCE, _TNOFRWCE, _Th],
480
+ [1, 1, 1, 1, 1, 1, 1, 1]
481
+ ];
482
+ var KmsEncryptionConfig$ = [3, n0, _KEC,
483
+ 0,
484
+ [_CTm, _KKI],
485
+ [0, 0], 1
486
+ ];
487
+ var ListFHIRDatastoresRequest$ = [3, n0, _LFHIRDR,
488
+ 0,
489
+ [_F, _NT, _MR],
490
+ [() => DatastoreFilter$, 0, 1]
491
+ ];
492
+ var ListFHIRDatastoresResponse$ = [3, n0, _LFHIRDRi,
493
+ 0,
494
+ [_DPL, _NT],
495
+ [() => DatastorePropertiesList, 0], 1
496
+ ];
497
+ var ListFHIRExportJobsRequest$ = [3, n0, _LFHIREJR,
498
+ 0,
499
+ [_DI, _NT, _MR, _JN, _JS, _SB, _SA],
500
+ [0, 0, 1, 0, 0, 4, 4], 1
501
+ ];
502
+ var ListFHIRExportJobsResponse$ = [3, n0, _LFHIREJRi,
503
+ 0,
504
+ [_EJPL, _NT],
505
+ [() => ExportJobPropertiesList, 0], 1
506
+ ];
507
+ var ListFHIRImportJobsRequest$ = [3, n0, _LFHIRIJR,
508
+ 0,
509
+ [_DI, _NT, _MR, _JN, _JS, _SB, _SA],
510
+ [0, 0, 1, 0, 0, 4, 4], 1
511
+ ];
512
+ var ListFHIRImportJobsResponse$ = [3, n0, _LFHIRIJRi,
513
+ 0,
514
+ [_IJPL, _NT],
515
+ [() => ImportJobPropertiesList, 0], 1
516
+ ];
517
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
518
+ 0,
519
+ [_RARN],
520
+ [0], 1
521
+ ];
522
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
523
+ 0,
524
+ [_T],
525
+ [() => TagList]
526
+ ];
527
+ var NlpConfiguration$ = [3, n0, _NC,
528
+ 0,
529
+ [_S],
530
+ [0]
531
+ ];
532
+ var PreloadDataConfig$ = [3, n0, _PDC,
533
+ 0,
534
+ [_PDT],
535
+ [0], 1
536
+ ];
537
+ var ProfileConfiguration$ = [3, n0, _PC,
538
+ 0,
539
+ [_DPe],
540
+ [64 | 0]
541
+ ];
542
+ var S3Configuration$ = [3, n0, _SCo,
543
+ 0,
544
+ [_SU, _KKI],
545
+ [0, 0], 2
546
+ ];
547
+ var SseConfiguration$ = [3, n0, _SC,
548
+ 0,
549
+ [_KEC],
550
+ [() => KmsEncryptionConfig$], 1
551
+ ];
552
+ var StartFHIRExportJobRequest$ = [3, n0, _SFHIREJR,
553
+ 0,
554
+ [_ODC, _DI, _DARA, _JN, _CT],
555
+ [() => OutputDataConfig$, 0, 0, 0, [0, 4]], 3
556
+ ];
557
+ var StartFHIRExportJobResponse$ = [3, n0, _SFHIREJRt,
558
+ 0,
559
+ [_JI, _JS, _DI],
560
+ [0, 0, 0], 2
561
+ ];
562
+ var StartFHIRImportJobRequest$ = [3, n0, _SFHIRIJR,
563
+ 0,
564
+ [_IDC, _JODC, _DI, _DARA, _JN, _CT, _VL],
565
+ [() => InputDataConfig$, () => OutputDataConfig$, 0, 0, 0, [0, 4], 0], 4
566
+ ];
567
+ var StartFHIRImportJobResponse$ = [3, n0, _SFHIRIJRt,
568
+ 0,
569
+ [_JI, _JS, _DI],
570
+ [0, 0, 0], 2
571
+ ];
572
+ var Tag$ = [3, n0, _Ta,
573
+ 0,
574
+ [_K, _V],
575
+ [0, 0], 2
576
+ ];
577
+ var TagResourceRequest$ = [3, n0, _TRR,
578
+ 0,
579
+ [_RARN, _T],
580
+ [0, () => TagList], 2
581
+ ];
582
+ var TagResourceResponse$ = [3, n0, _TRRa,
583
+ 0,
584
+ [],
585
+ []
586
+ ];
587
+ var UntagResourceRequest$ = [3, n0, _URR,
588
+ 0,
589
+ [_RARN, _TK],
590
+ [0, 64 | 0], 2
591
+ ];
592
+ var UntagResourceResponse$ = [3, n0, _URRn,
593
+ 0,
594
+ [],
595
+ []
596
+ ];
597
+ var UpdateFHIRDatastoreRequest$ = [3, n0, _UFHIRDR,
598
+ 0,
599
+ [_DI, _DN, _NC, _AC, _PC, _IPC],
600
+ [0, 0, () => NlpConfiguration$, () => AnalyticsConfiguration$, () => ProfileConfiguration$, () => IdentityProviderConfiguration$], 1
601
+ ];
602
+ var UpdateFHIRDatastoreResponse$ = [3, n0, _UFHIRDRp,
603
+ 0,
604
+ [_DP],
605
+ [() => DatastoreProperties$], 1
606
+ ];
607
+ var DatastorePropertiesList = [1, n0, _DPL,
608
+ 0, () => DatastoreProperties$
609
+ ];
610
+ var ExportJobPropertiesList = [1, n0, _EJPL,
611
+ 0, () => ExportJobProperties$
612
+ ];
613
+ var ImportJobPropertiesList = [1, n0, _IJPL,
614
+ 0, () => ImportJobProperties$
615
+ ];
616
+ var TagList = [1, n0, _TL,
617
+ 0, () => Tag$
618
+ ];
619
+ var InputDataConfig$ = [4, n0, _IDC,
620
+ 0,
621
+ [_SU],
622
+ [0]
623
+ ];
624
+ var OutputDataConfig$ = [4, n0, _ODC,
625
+ 0,
626
+ [_SCo],
627
+ [() => S3Configuration$]
628
+ ];
629
+ var CreateFHIRDatastore$ = [9, n0, _CFHIRD,
630
+ 0, () => CreateFHIRDatastoreRequest$, () => CreateFHIRDatastoreResponse$
631
+ ];
632
+ var DeleteFHIRDatastore$ = [9, n0, _DFHIRD,
633
+ 0, () => DeleteFHIRDatastoreRequest$, () => DeleteFHIRDatastoreResponse$
634
+ ];
635
+ var DescribeFHIRDatastore$ = [9, n0, _DFHIRDe,
636
+ 0, () => DescribeFHIRDatastoreRequest$, () => DescribeFHIRDatastoreResponse$
637
+ ];
638
+ var DescribeFHIRExportJob$ = [9, n0, _DFHIREJ,
639
+ 0, () => DescribeFHIRExportJobRequest$, () => DescribeFHIRExportJobResponse$
640
+ ];
641
+ var DescribeFHIRImportJob$ = [9, n0, _DFHIRIJ,
642
+ 0, () => DescribeFHIRImportJobRequest$, () => DescribeFHIRImportJobResponse$
643
+ ];
644
+ var ListFHIRDatastores$ = [9, n0, _LFHIRD,
645
+ 0, () => ListFHIRDatastoresRequest$, () => ListFHIRDatastoresResponse$
646
+ ];
647
+ var ListFHIRExportJobs$ = [9, n0, _LFHIREJ,
648
+ 0, () => ListFHIRExportJobsRequest$, () => ListFHIRExportJobsResponse$
649
+ ];
650
+ var ListFHIRImportJobs$ = [9, n0, _LFHIRIJ,
651
+ 0, () => ListFHIRImportJobsRequest$, () => ListFHIRImportJobsResponse$
652
+ ];
653
+ var ListTagsForResource$ = [9, n0, _LTFR,
654
+ 0, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
655
+ ];
656
+ var StartFHIRExportJob$ = [9, n0, _SFHIREJ,
657
+ 0, () => StartFHIRExportJobRequest$, () => StartFHIRExportJobResponse$
658
+ ];
659
+ var StartFHIRImportJob$ = [9, n0, _SFHIRIJ,
660
+ 0, () => StartFHIRImportJobRequest$, () => StartFHIRImportJobResponse$
661
+ ];
662
+ var TagResource$ = [9, n0, _TR,
663
+ 0, () => TagResourceRequest$, () => TagResourceResponse$
664
+ ];
665
+ var UntagResource$ = [9, n0, _UR,
666
+ 0, () => UntagResourceRequest$, () => UntagResourceResponse$
667
+ ];
668
+ var UpdateFHIRDatastore$ = [9, n0, _UFHIRD,
669
+ 0, () => UpdateFHIRDatastoreRequest$, () => UpdateFHIRDatastoreResponse$
670
+ ];
671
+
672
+ const getRuntimeConfig$1 = (config) => {
673
+ return {
674
+ apiVersion: "2017-07-01",
675
+ base64Decoder: config?.base64Decoder ?? fromBase64,
676
+ base64Encoder: config?.base64Encoder ?? toBase64,
677
+ disableHostPrefix: config?.disableHostPrefix ?? false,
678
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
679
+ extensions: config?.extensions ?? [],
680
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultHealthLakeHttpAuthSchemeProvider,
681
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
682
+ {
683
+ schemeId: "aws.auth#sigv4",
684
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
685
+ signer: new AwsSdkSigV4Signer(),
686
+ },
687
+ ],
688
+ logger: config?.logger ?? new NoOpLogger(),
689
+ protocol: config?.protocol ?? AwsJson1_0Protocol,
690
+ protocolSettings: config?.protocolSettings ?? {
691
+ defaultNamespace: "com.amazonaws.healthlake",
692
+ errorTypeRegistries,
693
+ version: "2017-07-01",
694
+ serviceTarget: "HealthLake",
695
+ },
696
+ serviceId: config?.serviceId ?? "HealthLake",
697
+ urlParser: config?.urlParser ?? parseUrl,
698
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
699
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
700
+ };
701
+ };
702
+
703
+ const getRuntimeConfig = (config) => {
704
+ emitWarningIfUnsupportedVersion(process.version);
705
+ const defaultsMode = resolveDefaultsModeConfig(config);
706
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
707
+ const clientSharedValues = getRuntimeConfig$1(config);
708
+ emitWarningIfUnsupportedVersion$1(process.version);
709
+ const loaderConfig = {
710
+ profile: config?.profile,
711
+ logger: clientSharedValues.logger,
712
+ };
713
+ return {
714
+ ...clientSharedValues,
715
+ ...config,
716
+ runtime: "node",
717
+ defaultsMode,
718
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
719
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
720
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
721
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
722
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
723
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
724
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
725
+ retryMode: config?.retryMode ??
726
+ loadConfig({
727
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
728
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
729
+ }, config),
730
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
731
+ streamCollector: config?.streamCollector ?? streamCollector,
732
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
733
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
734
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
735
+ };
736
+ };
737
+
34
738
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
739
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
740
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -568,32 +1272,106 @@ const ValidationLevel = {
568
1272
  STRUCTURE_ONLY: "structure-only",
569
1273
  };
570
1274
 
1275
+ exports.AccessDeniedException = AccessDeniedException;
1276
+ exports.AccessDeniedException$ = AccessDeniedException$;
1277
+ exports.AnalyticsConfiguration$ = AnalyticsConfiguration$;
571
1278
  exports.AnalyticsStatus = AnalyticsStatus;
572
1279
  exports.AuthorizationStrategy = AuthorizationStrategy;
573
1280
  exports.CmkType = CmkType;
1281
+ exports.ConflictException = ConflictException;
1282
+ exports.ConflictException$ = ConflictException$;
1283
+ exports.CreateFHIRDatastore$ = CreateFHIRDatastore$;
574
1284
  exports.CreateFHIRDatastoreCommand = CreateFHIRDatastoreCommand;
1285
+ exports.CreateFHIRDatastoreRequest$ = CreateFHIRDatastoreRequest$;
1286
+ exports.CreateFHIRDatastoreResponse$ = CreateFHIRDatastoreResponse$;
1287
+ exports.DatastoreFilter$ = DatastoreFilter$;
1288
+ exports.DatastoreProperties$ = DatastoreProperties$;
575
1289
  exports.DatastoreStatus = DatastoreStatus;
1290
+ exports.DeleteFHIRDatastore$ = DeleteFHIRDatastore$;
576
1291
  exports.DeleteFHIRDatastoreCommand = DeleteFHIRDatastoreCommand;
1292
+ exports.DeleteFHIRDatastoreRequest$ = DeleteFHIRDatastoreRequest$;
1293
+ exports.DeleteFHIRDatastoreResponse$ = DeleteFHIRDatastoreResponse$;
1294
+ exports.DescribeFHIRDatastore$ = DescribeFHIRDatastore$;
577
1295
  exports.DescribeFHIRDatastoreCommand = DescribeFHIRDatastoreCommand;
1296
+ exports.DescribeFHIRDatastoreRequest$ = DescribeFHIRDatastoreRequest$;
1297
+ exports.DescribeFHIRDatastoreResponse$ = DescribeFHIRDatastoreResponse$;
1298
+ exports.DescribeFHIRExportJob$ = DescribeFHIRExportJob$;
578
1299
  exports.DescribeFHIRExportJobCommand = DescribeFHIRExportJobCommand;
1300
+ exports.DescribeFHIRExportJobRequest$ = DescribeFHIRExportJobRequest$;
1301
+ exports.DescribeFHIRExportJobResponse$ = DescribeFHIRExportJobResponse$;
1302
+ exports.DescribeFHIRImportJob$ = DescribeFHIRImportJob$;
579
1303
  exports.DescribeFHIRImportJobCommand = DescribeFHIRImportJobCommand;
1304
+ exports.DescribeFHIRImportJobRequest$ = DescribeFHIRImportJobRequest$;
1305
+ exports.DescribeFHIRImportJobResponse$ = DescribeFHIRImportJobResponse$;
580
1306
  exports.ErrorCategory = ErrorCategory;
1307
+ exports.ErrorCause$ = ErrorCause$;
1308
+ exports.ExportJobProperties$ = ExportJobProperties$;
581
1309
  exports.FHIRVersion = FHIRVersion;
582
1310
  exports.HealthLake = HealthLake;
583
1311
  exports.HealthLakeClient = HealthLakeClient;
1312
+ exports.HealthLakeServiceException = HealthLakeServiceException;
1313
+ exports.HealthLakeServiceException$ = HealthLakeServiceException$;
1314
+ exports.IdentityProviderConfiguration$ = IdentityProviderConfiguration$;
1315
+ exports.ImportJobProperties$ = ImportJobProperties$;
1316
+ exports.InputDataConfig$ = InputDataConfig$;
1317
+ exports.InternalServerException = InternalServerException;
1318
+ exports.InternalServerException$ = InternalServerException$;
1319
+ exports.JobProgressReport$ = JobProgressReport$;
584
1320
  exports.JobStatus = JobStatus;
1321
+ exports.KmsEncryptionConfig$ = KmsEncryptionConfig$;
1322
+ exports.ListFHIRDatastores$ = ListFHIRDatastores$;
585
1323
  exports.ListFHIRDatastoresCommand = ListFHIRDatastoresCommand;
1324
+ exports.ListFHIRDatastoresRequest$ = ListFHIRDatastoresRequest$;
1325
+ exports.ListFHIRDatastoresResponse$ = ListFHIRDatastoresResponse$;
1326
+ exports.ListFHIRExportJobs$ = ListFHIRExportJobs$;
586
1327
  exports.ListFHIRExportJobsCommand = ListFHIRExportJobsCommand;
1328
+ exports.ListFHIRExportJobsRequest$ = ListFHIRExportJobsRequest$;
1329
+ exports.ListFHIRExportJobsResponse$ = ListFHIRExportJobsResponse$;
1330
+ exports.ListFHIRImportJobs$ = ListFHIRImportJobs$;
587
1331
  exports.ListFHIRImportJobsCommand = ListFHIRImportJobsCommand;
1332
+ exports.ListFHIRImportJobsRequest$ = ListFHIRImportJobsRequest$;
1333
+ exports.ListFHIRImportJobsResponse$ = ListFHIRImportJobsResponse$;
1334
+ exports.ListTagsForResource$ = ListTagsForResource$;
588
1335
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1336
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1337
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1338
+ exports.NlpConfiguration$ = NlpConfiguration$;
589
1339
  exports.NlpStatus = NlpStatus;
1340
+ exports.OutputDataConfig$ = OutputDataConfig$;
1341
+ exports.PreloadDataConfig$ = PreloadDataConfig$;
590
1342
  exports.PreloadDataType = PreloadDataType;
1343
+ exports.ProfileConfiguration$ = ProfileConfiguration$;
1344
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1345
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1346
+ exports.S3Configuration$ = S3Configuration$;
1347
+ exports.SseConfiguration$ = SseConfiguration$;
1348
+ exports.StartFHIRExportJob$ = StartFHIRExportJob$;
591
1349
  exports.StartFHIRExportJobCommand = StartFHIRExportJobCommand;
1350
+ exports.StartFHIRExportJobRequest$ = StartFHIRExportJobRequest$;
1351
+ exports.StartFHIRExportJobResponse$ = StartFHIRExportJobResponse$;
1352
+ exports.StartFHIRImportJob$ = StartFHIRImportJob$;
592
1353
  exports.StartFHIRImportJobCommand = StartFHIRImportJobCommand;
1354
+ exports.StartFHIRImportJobRequest$ = StartFHIRImportJobRequest$;
1355
+ exports.StartFHIRImportJobResponse$ = StartFHIRImportJobResponse$;
1356
+ exports.Tag$ = Tag$;
1357
+ exports.TagResource$ = TagResource$;
593
1358
  exports.TagResourceCommand = TagResourceCommand;
1359
+ exports.TagResourceRequest$ = TagResourceRequest$;
1360
+ exports.TagResourceResponse$ = TagResourceResponse$;
1361
+ exports.ThrottlingException = ThrottlingException;
1362
+ exports.ThrottlingException$ = ThrottlingException$;
1363
+ exports.UntagResource$ = UntagResource$;
594
1364
  exports.UntagResourceCommand = UntagResourceCommand;
1365
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1366
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1367
+ exports.UpdateFHIRDatastore$ = UpdateFHIRDatastore$;
595
1368
  exports.UpdateFHIRDatastoreCommand = UpdateFHIRDatastoreCommand;
1369
+ exports.UpdateFHIRDatastoreRequest$ = UpdateFHIRDatastoreRequest$;
1370
+ exports.UpdateFHIRDatastoreResponse$ = UpdateFHIRDatastoreResponse$;
1371
+ exports.ValidationException = ValidationException;
1372
+ exports.ValidationException$ = ValidationException$;
596
1373
  exports.ValidationLevel = ValidationLevel;
1374
+ exports.errorTypeRegistries = errorTypeRegistries;
597
1375
  exports.paginateListFHIRDatastores = paginateListFHIRDatastores;
598
1376
  exports.paginateListFHIRExportJobs = paginateListFHIRExportJobs;
599
1377
  exports.paginateListFHIRImportJobs = paginateListFHIRImportJobs;