@aws-sdk/client-healthlake 3.873.0 → 3.878.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/README.md +3 -2
- package/dist-cjs/index.js +225 -4
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_json1_0.js +2 -0
- package/dist-es/waiters/index.js +4 -0
- package/dist-es/waiters/waitForFHIRDatastoreActive.js +49 -0
- package/dist-es/waiters/waitForFHIRDatastoreDeleted.js +31 -0
- package/dist-es/waiters/waitForFHIRExportJobCompleted.js +67 -0
- package/dist-es/waiters/waitForFHIRImportJobCompleted.js +49 -0
- package/dist-types/HealthLake.d.ts +3 -2
- package/dist-types/HealthLakeClient.d.ts +3 -2
- package/dist-types/commands/CreateFHIRDatastoreCommand.d.ts +2 -2
- package/dist-types/commands/DeleteFHIRDatastoreCommand.d.ts +5 -4
- package/dist-types/commands/DescribeFHIRDatastoreCommand.d.ts +3 -4
- package/dist-types/commands/DescribeFHIRExportJobCommand.d.ts +3 -3
- package/dist-types/commands/DescribeFHIRImportJobCommand.d.ts +4 -3
- package/dist-types/commands/ListFHIRDatastoresCommand.d.ts +3 -2
- package/dist-types/commands/ListFHIRExportJobsCommand.d.ts +3 -5
- package/dist-types/commands/ListFHIRImportJobsCommand.d.ts +4 -5
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -4
- package/dist-types/commands/StartFHIRExportJobCommand.d.ts +3 -3
- package/dist-types/commands/StartFHIRImportJobCommand.d.ts +6 -3
- package/dist-types/commands/TagResourceCommand.d.ts +2 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -4
- package/dist-types/index.d.ts +4 -2
- package/dist-types/models/models_0.d.ts +224 -230
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/dist-types/ts3.4/waiters/index.d.ts +4 -0
- package/dist-types/ts3.4/waiters/waitForFHIRDatastoreActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForFHIRDatastoreDeleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForFHIRExportJobCompleted.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForFHIRImportJobCompleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +4 -0
- package/dist-types/waiters/waitForFHIRDatastoreActive.d.ts +14 -0
- package/dist-types/waiters/waitForFHIRDatastoreDeleted.d.ts +14 -0
- package/dist-types/waiters/waitForFHIRExportJobCompleted.d.ts +14 -0
- package/dist-types/waiters/waitForFHIRImportJobCompleted.d.ts +14 -0
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript HealthLake Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<p>
|
|
10
|
-
|
|
9
|
+
<p>This is the <i>AWS HealthLake API Reference</i>. For an introduction to
|
|
10
|
+
the service, see <a href="https://docs.aws.amazon.com/healthlake/latest/devguide/what-is.html">What is AWS HealthLake?</a> in the <i>AWS HealthLake Developer
|
|
11
|
+
Guide</i>.</p>
|
|
11
12
|
|
|
12
13
|
## Installing
|
|
13
14
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -52,10 +52,19 @@ __export(index_exports, {
|
|
|
52
52
|
ThrottlingException: () => ThrottlingException,
|
|
53
53
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
54
54
|
ValidationException: () => ValidationException,
|
|
55
|
+
ValidationLevel: () => ValidationLevel,
|
|
55
56
|
__Client: () => import_smithy_client.Client,
|
|
56
57
|
paginateListFHIRDatastores: () => paginateListFHIRDatastores,
|
|
57
58
|
paginateListFHIRExportJobs: () => paginateListFHIRExportJobs,
|
|
58
|
-
paginateListFHIRImportJobs: () => paginateListFHIRImportJobs
|
|
59
|
+
paginateListFHIRImportJobs: () => paginateListFHIRImportJobs,
|
|
60
|
+
waitForFHIRDatastoreActive: () => waitForFHIRDatastoreActive,
|
|
61
|
+
waitForFHIRDatastoreDeleted: () => waitForFHIRDatastoreDeleted,
|
|
62
|
+
waitForFHIRExportJobCompleted: () => waitForFHIRExportJobCompleted,
|
|
63
|
+
waitForFHIRImportJobCompleted: () => waitForFHIRImportJobCompleted,
|
|
64
|
+
waitUntilFHIRDatastoreActive: () => waitUntilFHIRDatastoreActive,
|
|
65
|
+
waitUntilFHIRDatastoreDeleted: () => waitUntilFHIRDatastoreDeleted,
|
|
66
|
+
waitUntilFHIRExportJobCompleted: () => waitUntilFHIRExportJobCompleted,
|
|
67
|
+
waitUntilFHIRImportJobCompleted: () => waitUntilFHIRImportJobCompleted
|
|
59
68
|
});
|
|
60
69
|
module.exports = __toCommonJS(index_exports);
|
|
61
70
|
|
|
@@ -402,6 +411,11 @@ var InputDataConfig;
|
|
|
402
411
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
403
412
|
}, "visit");
|
|
404
413
|
})(InputDataConfig || (InputDataConfig = {}));
|
|
414
|
+
var ValidationLevel = {
|
|
415
|
+
MINIMAL: "minimal",
|
|
416
|
+
STRICT: "strict",
|
|
417
|
+
STRUCTURE_ONLY: "structure-only"
|
|
418
|
+
};
|
|
405
419
|
|
|
406
420
|
// src/protocols/Aws_json1_0.ts
|
|
407
421
|
var se_CreateFHIRDatastoreCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -803,7 +817,8 @@ var se_StartFHIRImportJobRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
803
817
|
DatastoreId: [],
|
|
804
818
|
InputDataConfig: import_smithy_client._json,
|
|
805
819
|
JobName: [],
|
|
806
|
-
JobOutputDataConfig: import_smithy_client._json
|
|
820
|
+
JobOutputDataConfig: import_smithy_client._json,
|
|
821
|
+
ValidationLevel: []
|
|
807
822
|
});
|
|
808
823
|
}, "se_StartFHIRImportJobRequest");
|
|
809
824
|
var de_DatastoreProperties = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -873,7 +888,8 @@ var de_ImportJobProperties = /* @__PURE__ */ __name((output, context) => {
|
|
|
873
888
|
JobProgressReport: /* @__PURE__ */ __name((_) => de_JobProgressReport(_, context), "JobProgressReport"),
|
|
874
889
|
JobStatus: import_smithy_client.expectString,
|
|
875
890
|
Message: import_smithy_client.expectString,
|
|
876
|
-
SubmitTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "SubmitTime")
|
|
891
|
+
SubmitTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "SubmitTime"),
|
|
892
|
+
ValidationLevel: import_smithy_client.expectString
|
|
877
893
|
});
|
|
878
894
|
}, "de_ImportJobProperties");
|
|
879
895
|
var de_ImportJobPropertiesList = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1171,6 +1187,202 @@ var paginateListFHIRExportJobs = (0, import_core.createPaginator)(HealthLakeClie
|
|
|
1171
1187
|
// src/pagination/ListFHIRImportJobsPaginator.ts
|
|
1172
1188
|
|
|
1173
1189
|
var paginateListFHIRImportJobs = (0, import_core.createPaginator)(HealthLakeClient, ListFHIRImportJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1190
|
+
|
|
1191
|
+
// src/waiters/waitForFHIRDatastoreActive.ts
|
|
1192
|
+
var import_util_waiter = require("@smithy/util-waiter");
|
|
1193
|
+
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
1194
|
+
let reason;
|
|
1195
|
+
try {
|
|
1196
|
+
const result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
1197
|
+
reason = result;
|
|
1198
|
+
try {
|
|
1199
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1200
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
1201
|
+
}, "returnComparator");
|
|
1202
|
+
if (returnComparator() === "ACTIVE") {
|
|
1203
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
1204
|
+
}
|
|
1205
|
+
} catch (e) {
|
|
1206
|
+
}
|
|
1207
|
+
try {
|
|
1208
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1209
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
1210
|
+
}, "returnComparator");
|
|
1211
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
1212
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1213
|
+
}
|
|
1214
|
+
} catch (e) {
|
|
1215
|
+
}
|
|
1216
|
+
try {
|
|
1217
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1218
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
1219
|
+
}, "returnComparator");
|
|
1220
|
+
if (returnComparator() === "DELETED") {
|
|
1221
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1222
|
+
}
|
|
1223
|
+
} catch (e) {
|
|
1224
|
+
}
|
|
1225
|
+
} catch (exception) {
|
|
1226
|
+
reason = exception;
|
|
1227
|
+
}
|
|
1228
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
1229
|
+
}, "checkState");
|
|
1230
|
+
var waitForFHIRDatastoreActive = /* @__PURE__ */ __name(async (params, input) => {
|
|
1231
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
1232
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
1233
|
+
}, "waitForFHIRDatastoreActive");
|
|
1234
|
+
var waitUntilFHIRDatastoreActive = /* @__PURE__ */ __name(async (params, input) => {
|
|
1235
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
1236
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
1237
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
1238
|
+
}, "waitUntilFHIRDatastoreActive");
|
|
1239
|
+
|
|
1240
|
+
// src/waiters/waitForFHIRDatastoreDeleted.ts
|
|
1241
|
+
|
|
1242
|
+
var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
|
|
1243
|
+
let reason;
|
|
1244
|
+
try {
|
|
1245
|
+
const result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
1246
|
+
reason = result;
|
|
1247
|
+
try {
|
|
1248
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1249
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
1250
|
+
}, "returnComparator");
|
|
1251
|
+
if (returnComparator() === "DELETED") {
|
|
1252
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
1253
|
+
}
|
|
1254
|
+
} catch (e) {
|
|
1255
|
+
}
|
|
1256
|
+
} catch (exception) {
|
|
1257
|
+
reason = exception;
|
|
1258
|
+
}
|
|
1259
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
1260
|
+
}, "checkState");
|
|
1261
|
+
var waitForFHIRDatastoreDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
1262
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1263
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
1264
|
+
}, "waitForFHIRDatastoreDeleted");
|
|
1265
|
+
var waitUntilFHIRDatastoreDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
1266
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1267
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
1268
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
1269
|
+
}, "waitUntilFHIRDatastoreDeleted");
|
|
1270
|
+
|
|
1271
|
+
// src/waiters/waitForFHIRExportJobCompleted.ts
|
|
1272
|
+
|
|
1273
|
+
var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
|
|
1274
|
+
let reason;
|
|
1275
|
+
try {
|
|
1276
|
+
const result = await client.send(new DescribeFHIRExportJobCommand(input));
|
|
1277
|
+
reason = result;
|
|
1278
|
+
try {
|
|
1279
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1280
|
+
return result.ExportJobProperties.JobStatus;
|
|
1281
|
+
}, "returnComparator");
|
|
1282
|
+
if (returnComparator() === "COMPLETED") {
|
|
1283
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
1284
|
+
}
|
|
1285
|
+
} catch (e) {
|
|
1286
|
+
}
|
|
1287
|
+
try {
|
|
1288
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1289
|
+
return result.ExportJobProperties.JobStatus;
|
|
1290
|
+
}, "returnComparator");
|
|
1291
|
+
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
1292
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
1293
|
+
}
|
|
1294
|
+
} catch (e) {
|
|
1295
|
+
}
|
|
1296
|
+
try {
|
|
1297
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1298
|
+
return result.ExportJobProperties.JobStatus;
|
|
1299
|
+
}, "returnComparator");
|
|
1300
|
+
if (returnComparator() === "CANCEL_COMPLETED") {
|
|
1301
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1302
|
+
}
|
|
1303
|
+
} catch (e) {
|
|
1304
|
+
}
|
|
1305
|
+
try {
|
|
1306
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1307
|
+
return result.ExportJobProperties.JobStatus;
|
|
1308
|
+
}, "returnComparator");
|
|
1309
|
+
if (returnComparator() === "FAILED") {
|
|
1310
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1311
|
+
}
|
|
1312
|
+
} catch (e) {
|
|
1313
|
+
}
|
|
1314
|
+
try {
|
|
1315
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1316
|
+
return result.ExportJobProperties.JobStatus;
|
|
1317
|
+
}, "returnComparator");
|
|
1318
|
+
if (returnComparator() === "CANCEL_FAILED") {
|
|
1319
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1320
|
+
}
|
|
1321
|
+
} catch (e) {
|
|
1322
|
+
}
|
|
1323
|
+
} catch (exception) {
|
|
1324
|
+
reason = exception;
|
|
1325
|
+
}
|
|
1326
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
1327
|
+
}, "checkState");
|
|
1328
|
+
var waitForFHIRExportJobCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
1329
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1330
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
1331
|
+
}, "waitForFHIRExportJobCompleted");
|
|
1332
|
+
var waitUntilFHIRExportJobCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
1333
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1334
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
1335
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
1336
|
+
}, "waitUntilFHIRExportJobCompleted");
|
|
1337
|
+
|
|
1338
|
+
// src/waiters/waitForFHIRImportJobCompleted.ts
|
|
1339
|
+
|
|
1340
|
+
var checkState4 = /* @__PURE__ */ __name(async (client, input) => {
|
|
1341
|
+
let reason;
|
|
1342
|
+
try {
|
|
1343
|
+
const result = await client.send(new DescribeFHIRImportJobCommand(input));
|
|
1344
|
+
reason = result;
|
|
1345
|
+
try {
|
|
1346
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1347
|
+
return result.ImportJobProperties.JobStatus;
|
|
1348
|
+
}, "returnComparator");
|
|
1349
|
+
if (returnComparator() === "COMPLETED") {
|
|
1350
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
1351
|
+
}
|
|
1352
|
+
} catch (e) {
|
|
1353
|
+
}
|
|
1354
|
+
try {
|
|
1355
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1356
|
+
return result.ImportJobProperties.JobStatus;
|
|
1357
|
+
}, "returnComparator");
|
|
1358
|
+
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
1359
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
1360
|
+
}
|
|
1361
|
+
} catch (e) {
|
|
1362
|
+
}
|
|
1363
|
+
try {
|
|
1364
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
1365
|
+
return result.ImportJobProperties.JobStatus;
|
|
1366
|
+
}, "returnComparator");
|
|
1367
|
+
if (returnComparator() === "FAILED") {
|
|
1368
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
1369
|
+
}
|
|
1370
|
+
} catch (e) {
|
|
1371
|
+
}
|
|
1372
|
+
} catch (exception) {
|
|
1373
|
+
reason = exception;
|
|
1374
|
+
}
|
|
1375
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
1376
|
+
}, "checkState");
|
|
1377
|
+
var waitForFHIRImportJobCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
1378
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1379
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
|
|
1380
|
+
}, "waitForFHIRImportJobCompleted");
|
|
1381
|
+
var waitUntilFHIRImportJobCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
1382
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1383
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
|
|
1384
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
1385
|
+
}, "waitUntilFHIRImportJobCompleted");
|
|
1174
1386
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1175
1387
|
|
|
1176
1388
|
0 && (module.exports = {
|
|
@@ -1195,6 +1407,14 @@ var paginateListFHIRImportJobs = (0, import_core.createPaginator)(HealthLakeClie
|
|
|
1195
1407
|
paginateListFHIRDatastores,
|
|
1196
1408
|
paginateListFHIRExportJobs,
|
|
1197
1409
|
paginateListFHIRImportJobs,
|
|
1410
|
+
waitForFHIRDatastoreActive,
|
|
1411
|
+
waitUntilFHIRDatastoreActive,
|
|
1412
|
+
waitForFHIRDatastoreDeleted,
|
|
1413
|
+
waitUntilFHIRDatastoreDeleted,
|
|
1414
|
+
waitForFHIRExportJobCompleted,
|
|
1415
|
+
waitUntilFHIRExportJobCompleted,
|
|
1416
|
+
waitForFHIRImportJobCompleted,
|
|
1417
|
+
waitUntilFHIRImportJobCompleted,
|
|
1198
1418
|
AccessDeniedException,
|
|
1199
1419
|
AuthorizationStrategy,
|
|
1200
1420
|
CmkType,
|
|
@@ -1209,6 +1429,7 @@ var paginateListFHIRImportJobs = (0, import_core.createPaginator)(HealthLakeClie
|
|
|
1209
1429
|
ResourceNotFoundException,
|
|
1210
1430
|
JobStatus,
|
|
1211
1431
|
OutputDataConfig,
|
|
1212
|
-
InputDataConfig
|
|
1432
|
+
InputDataConfig,
|
|
1433
|
+
ValidationLevel
|
|
1213
1434
|
});
|
|
1214
1435
|
|
package/dist-es/index.js
CHANGED
|
@@ -137,3 +137,8 @@ export var InputDataConfig;
|
|
|
137
137
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
138
138
|
};
|
|
139
139
|
})(InputDataConfig || (InputDataConfig = {}));
|
|
140
|
+
export const ValidationLevel = {
|
|
141
|
+
MINIMAL: "minimal",
|
|
142
|
+
STRICT: "strict",
|
|
143
|
+
STRUCTURE_ONLY: "structure-only",
|
|
144
|
+
};
|
|
@@ -404,6 +404,7 @@ const se_StartFHIRImportJobRequest = (input, context) => {
|
|
|
404
404
|
InputDataConfig: _json,
|
|
405
405
|
JobName: [],
|
|
406
406
|
JobOutputDataConfig: _json,
|
|
407
|
+
ValidationLevel: [],
|
|
407
408
|
});
|
|
408
409
|
};
|
|
409
410
|
const de_DatastoreProperties = (output, context) => {
|
|
@@ -478,6 +479,7 @@ const de_ImportJobProperties = (output, context) => {
|
|
|
478
479
|
JobStatus: __expectString,
|
|
479
480
|
Message: __expectString,
|
|
480
481
|
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
482
|
+
ValidationLevel: __expectString,
|
|
481
483
|
});
|
|
482
484
|
};
|
|
483
485
|
const de_ImportJobPropertiesList = (output, context) => {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeFHIRDatastoreCommand, } from "../commands/DescribeFHIRDatastoreCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ACTIVE") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "DELETED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
}
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
};
|
|
41
|
+
export const waitForFHIRDatastoreActive = async (params, input) => {
|
|
42
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
43
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
+
};
|
|
45
|
+
export const waitUntilFHIRDatastoreActive = async (params, input) => {
|
|
46
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
47
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
+
return checkExceptions(result);
|
|
49
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeFHIRDatastoreCommand, } from "../commands/DescribeFHIRDatastoreCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
}
|
|
18
|
+
catch (exception) {
|
|
19
|
+
reason = exception;
|
|
20
|
+
}
|
|
21
|
+
return { state: WaiterState.RETRY, reason };
|
|
22
|
+
};
|
|
23
|
+
export const waitForFHIRDatastoreDeleted = async (params, input) => {
|
|
24
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
25
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
26
|
+
};
|
|
27
|
+
export const waitUntilFHIRDatastoreDeleted = async (params, input) => {
|
|
28
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
29
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
30
|
+
return checkExceptions(result);
|
|
31
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeFHIRExportJobCommand, } from "../commands/DescribeFHIRExportJobCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeFHIRExportJobCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.ExportJobProperties.JobStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.ExportJobProperties.JobStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
22
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.ExportJobProperties.JobStatus;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "CANCEL_COMPLETED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
try {
|
|
36
|
+
const returnComparator = () => {
|
|
37
|
+
return result.ExportJobProperties.JobStatus;
|
|
38
|
+
};
|
|
39
|
+
if (returnComparator() === "FAILED") {
|
|
40
|
+
return { state: WaiterState.FAILURE, reason };
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch (e) { }
|
|
44
|
+
try {
|
|
45
|
+
const returnComparator = () => {
|
|
46
|
+
return result.ExportJobProperties.JobStatus;
|
|
47
|
+
};
|
|
48
|
+
if (returnComparator() === "CANCEL_FAILED") {
|
|
49
|
+
return { state: WaiterState.FAILURE, reason };
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
catch (e) { }
|
|
53
|
+
}
|
|
54
|
+
catch (exception) {
|
|
55
|
+
reason = exception;
|
|
56
|
+
}
|
|
57
|
+
return { state: WaiterState.RETRY, reason };
|
|
58
|
+
};
|
|
59
|
+
export const waitForFHIRExportJobCompleted = async (params, input) => {
|
|
60
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
61
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
62
|
+
};
|
|
63
|
+
export const waitUntilFHIRExportJobCompleted = async (params, input) => {
|
|
64
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
65
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
66
|
+
return checkExceptions(result);
|
|
67
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeFHIRImportJobCommand, } from "../commands/DescribeFHIRImportJobCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeFHIRImportJobCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.ImportJobProperties.JobStatus;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "COMPLETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.ImportJobProperties.JobStatus;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
22
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.ImportJobProperties.JobStatus;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "FAILED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
}
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
};
|
|
41
|
+
export const waitForFHIRImportJobCompleted = async (params, input) => {
|
|
42
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
43
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
44
|
+
};
|
|
45
|
+
export const waitUntilFHIRImportJobCompleted = async (params, input) => {
|
|
46
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
47
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
48
|
+
return checkExceptions(result);
|
|
49
|
+
};
|
|
@@ -95,8 +95,9 @@ export interface HealthLake {
|
|
|
95
95
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* <p>
|
|
99
|
-
*
|
|
98
|
+
* <p>This is the <i>AWS HealthLake API Reference</i>. For an introduction to
|
|
99
|
+
* the service, see <a href="https://docs.aws.amazon.com/healthlake/latest/devguide/what-is.html">What is AWS HealthLake?</a> in the <i>AWS HealthLake Developer
|
|
100
|
+
* Guide</i>.</p>
|
|
100
101
|
* @public
|
|
101
102
|
*/
|
|
102
103
|
export declare class HealthLake extends HealthLakeClient implements HealthLake {
|
|
@@ -182,8 +182,9 @@ export type HealthLakeClientResolvedConfigType = __SmithyResolvedConfiguration<_
|
|
|
182
182
|
export interface HealthLakeClientResolvedConfig extends HealthLakeClientResolvedConfigType {
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
|
-
* <p>
|
|
186
|
-
*
|
|
185
|
+
* <p>This is the <i>AWS HealthLake API Reference</i>. For an introduction to
|
|
186
|
+
* the service, see <a href="https://docs.aws.amazon.com/healthlake/latest/devguide/what-is.html">What is AWS HealthLake?</a> in the <i>AWS HealthLake Developer
|
|
187
|
+
* Guide</i>.</p>
|
|
187
188
|
* @public
|
|
188
189
|
*/
|
|
189
190
|
export declare class HealthLakeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, HealthLakeClientResolvedConfig> {
|
|
@@ -27,7 +27,7 @@ declare const CreateFHIRDatastoreCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
30
|
+
* <p>Create a FHIR-enabled data store.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -81,7 +81,7 @@ declare const CreateFHIRDatastoreCommand_base: {
|
|
|
81
81
|
* <p>Access is denied. Your account is not authorized to perform this operation.</p>
|
|
82
82
|
*
|
|
83
83
|
* @throws {@link InternalServerException} (server fault)
|
|
84
|
-
* <p>
|
|
84
|
+
* <p>An unknown internal error occurred in the service.</p>
|
|
85
85
|
*
|
|
86
86
|
* @throws {@link ThrottlingException} (client fault)
|
|
87
87
|
* <p>The user has exceeded their maximum number of allowed calls to the given API. </p>
|
|
@@ -27,7 +27,7 @@ declare const DeleteFHIRDatastoreCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
30
|
+
* <p>Delete a FHIR-enabled data store.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -58,13 +58,14 @@ declare const DeleteFHIRDatastoreCommand_base: {
|
|
|
58
58
|
* <p>Access is denied. Your account is not authorized to perform this operation.</p>
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link ConflictException} (client fault)
|
|
61
|
-
* <p>The data store is in a transition state and the user requested action
|
|
61
|
+
* <p>The data store is in a transition state and the user requested action cannot be
|
|
62
|
+
* performed.</p>
|
|
62
63
|
*
|
|
63
64
|
* @throws {@link InternalServerException} (server fault)
|
|
64
|
-
* <p>
|
|
65
|
+
* <p>An unknown internal error occurred in the service.</p>
|
|
65
66
|
*
|
|
66
67
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
67
|
-
* <p>
|
|
68
|
+
* <p>The requested data store was not found.</p>
|
|
68
69
|
*
|
|
69
70
|
* @throws {@link ThrottlingException} (client fault)
|
|
70
71
|
* <p>The user has exceeded their maximum number of allowed calls to the given API. </p>
|
|
@@ -27,8 +27,7 @@ declare const DescribeFHIRDatastoreCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
31
|
-
* data store ARN, data store name, data store status, when the data store was created, data store type version, and the data store's endpoint.</p>
|
|
30
|
+
* <p>Get properties for a FHIR-enabled data store.</p>
|
|
32
31
|
* @example
|
|
33
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
33
|
* ```javascript
|
|
@@ -80,10 +79,10 @@ declare const DescribeFHIRDatastoreCommand_base: {
|
|
|
80
79
|
* @see {@link HealthLakeClientResolvedConfig | config} for HealthLakeClient's `config` shape.
|
|
81
80
|
*
|
|
82
81
|
* @throws {@link InternalServerException} (server fault)
|
|
83
|
-
* <p>
|
|
82
|
+
* <p>An unknown internal error occurred in the service.</p>
|
|
84
83
|
*
|
|
85
84
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
86
|
-
* <p>
|
|
85
|
+
* <p>The requested data store was not found.</p>
|
|
87
86
|
*
|
|
88
87
|
* @throws {@link ThrottlingException} (client fault)
|
|
89
88
|
* <p>The user has exceeded their maximum number of allowed calls to the given API. </p>
|
|
@@ -27,7 +27,7 @@ declare const DescribeFHIRExportJobCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
30
|
+
* <p>Get FHIR export job properties.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -68,10 +68,10 @@ declare const DescribeFHIRExportJobCommand_base: {
|
|
|
68
68
|
* @see {@link HealthLakeClientResolvedConfig | config} for HealthLakeClient's `config` shape.
|
|
69
69
|
*
|
|
70
70
|
* @throws {@link InternalServerException} (server fault)
|
|
71
|
-
* <p>
|
|
71
|
+
* <p>An unknown internal error occurred in the service.</p>
|
|
72
72
|
*
|
|
73
73
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
74
|
-
* <p>
|
|
74
|
+
* <p>The requested data store was not found.</p>
|
|
75
75
|
*
|
|
76
76
|
* @throws {@link ThrottlingException} (client fault)
|
|
77
77
|
* <p>The user has exceeded their maximum number of allowed calls to the given API. </p>
|