@aws-sdk/client-healthlake 3.974.0 → 3.978.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
@@ -765,25 +765,6 @@ class UntagResourceCommand extends smithyClient.Command
765
765
  .build() {
766
766
  }
767
767
 
768
- const commands = {
769
- CreateFHIRDatastoreCommand,
770
- DeleteFHIRDatastoreCommand,
771
- DescribeFHIRDatastoreCommand,
772
- DescribeFHIRExportJobCommand,
773
- DescribeFHIRImportJobCommand,
774
- ListFHIRDatastoresCommand,
775
- ListFHIRExportJobsCommand,
776
- ListFHIRImportJobsCommand,
777
- ListTagsForResourceCommand,
778
- StartFHIRExportJobCommand,
779
- StartFHIRImportJobCommand,
780
- TagResourceCommand,
781
- UntagResourceCommand,
782
- };
783
- class HealthLake extends HealthLakeClient {
784
- }
785
- smithyClient.createAggregatedClient(commands, HealthLake);
786
-
787
768
  const paginateListFHIRDatastores = core.createPaginator(HealthLakeClient, ListFHIRDatastoresCommand, "NextToken", "NextToken", "MaxResults");
788
769
 
789
770
  const paginateListFHIRExportJobs = core.createPaginator(HealthLakeClient, ListFHIRExportJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -982,6 +963,36 @@ const waitUntilFHIRImportJobCompleted = async (params, input) => {
982
963
  return utilWaiter.checkExceptions(result);
983
964
  };
984
965
 
966
+ const commands = {
967
+ CreateFHIRDatastoreCommand,
968
+ DeleteFHIRDatastoreCommand,
969
+ DescribeFHIRDatastoreCommand,
970
+ DescribeFHIRExportJobCommand,
971
+ DescribeFHIRImportJobCommand,
972
+ ListFHIRDatastoresCommand,
973
+ ListFHIRExportJobsCommand,
974
+ ListFHIRImportJobsCommand,
975
+ ListTagsForResourceCommand,
976
+ StartFHIRExportJobCommand,
977
+ StartFHIRImportJobCommand,
978
+ TagResourceCommand,
979
+ UntagResourceCommand,
980
+ };
981
+ const paginators = {
982
+ paginateListFHIRDatastores,
983
+ paginateListFHIRExportJobs,
984
+ paginateListFHIRImportJobs,
985
+ };
986
+ const waiters = {
987
+ waitUntilFHIRDatastoreActive,
988
+ waitUntilFHIRDatastoreDeleted,
989
+ waitUntilFHIRExportJobCompleted,
990
+ waitUntilFHIRImportJobCompleted,
991
+ };
992
+ class HealthLake extends HealthLakeClient {
993
+ }
994
+ smithyClient.createAggregatedClient(commands, HealthLake, { paginators, waiters });
995
+
985
996
  const AuthorizationStrategy = {
986
997
  AWS_AUTH: "AWS_AUTH",
987
998
  SMARTV1: "SMART_ON_FHIR_V1",
@@ -13,6 +13,13 @@ import { StartFHIRImportJobCommand, } from "./commands/StartFHIRImportJobCommand
13
13
  import { TagResourceCommand } from "./commands/TagResourceCommand";
14
14
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
15
15
  import { HealthLakeClient } from "./HealthLakeClient";
16
+ import { paginateListFHIRDatastores } from "./pagination/ListFHIRDatastoresPaginator";
17
+ import { paginateListFHIRExportJobs } from "./pagination/ListFHIRExportJobsPaginator";
18
+ import { paginateListFHIRImportJobs } from "./pagination/ListFHIRImportJobsPaginator";
19
+ import { waitUntilFHIRDatastoreActive } from "./waiters/waitForFHIRDatastoreActive";
20
+ import { waitUntilFHIRDatastoreDeleted } from "./waiters/waitForFHIRDatastoreDeleted";
21
+ import { waitUntilFHIRExportJobCompleted } from "./waiters/waitForFHIRExportJobCompleted";
22
+ import { waitUntilFHIRImportJobCompleted } from "./waiters/waitForFHIRImportJobCompleted";
16
23
  const commands = {
17
24
  CreateFHIRDatastoreCommand,
18
25
  DeleteFHIRDatastoreCommand,
@@ -28,6 +35,17 @@ const commands = {
28
35
  TagResourceCommand,
29
36
  UntagResourceCommand,
30
37
  };
38
+ const paginators = {
39
+ paginateListFHIRDatastores,
40
+ paginateListFHIRExportJobs,
41
+ paginateListFHIRImportJobs,
42
+ };
43
+ const waiters = {
44
+ waitUntilFHIRDatastoreActive,
45
+ waitUntilFHIRDatastoreDeleted,
46
+ waitUntilFHIRExportJobCompleted,
47
+ waitUntilFHIRImportJobCompleted,
48
+ };
31
49
  export class HealthLake extends HealthLakeClient {
32
50
  }
33
- createAggregatedClient(commands, HealthLake);
51
+ createAggregatedClient(commands, HealthLake, { paginators, waiters });
@@ -1,4 +1,5 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { CreateFHIRDatastoreCommandInput, CreateFHIRDatastoreCommandOutput } from "./commands/CreateFHIRDatastoreCommand";
3
4
  import { DeleteFHIRDatastoreCommandInput, DeleteFHIRDatastoreCommandOutput } from "./commands/DeleteFHIRDatastoreCommand";
4
5
  import { DescribeFHIRDatastoreCommandInput, DescribeFHIRDatastoreCommandOutput } from "./commands/DescribeFHIRDatastoreCommand";
@@ -93,6 +94,51 @@ export interface HealthLake {
93
94
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
94
95
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
95
96
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
97
+ /**
98
+ * @see {@link ListFHIRDatastoresCommand}
99
+ * @param args - command input.
100
+ * @param paginationConfig - optional pagination config.
101
+ * @returns AsyncIterable of {@link ListFHIRDatastoresCommandOutput}.
102
+ */
103
+ paginateListFHIRDatastores(args?: ListFHIRDatastoresCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListFHIRDatastoresCommandOutput>;
104
+ /**
105
+ * @see {@link ListFHIRExportJobsCommand}
106
+ * @param args - command input.
107
+ * @param paginationConfig - optional pagination config.
108
+ * @returns AsyncIterable of {@link ListFHIRExportJobsCommandOutput}.
109
+ */
110
+ paginateListFHIRExportJobs(args: ListFHIRExportJobsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListFHIRExportJobsCommandOutput>;
111
+ /**
112
+ * @see {@link ListFHIRImportJobsCommand}
113
+ * @param args - command input.
114
+ * @param paginationConfig - optional pagination config.
115
+ * @returns AsyncIterable of {@link ListFHIRImportJobsCommandOutput}.
116
+ */
117
+ paginateListFHIRImportJobs(args: ListFHIRImportJobsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListFHIRImportJobsCommandOutput>;
118
+ /**
119
+ * @see {@link DescribeFHIRDatastoreCommand}
120
+ * @param args - command input.
121
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
122
+ */
123
+ waitUntilFHIRDatastoreActive(args: DescribeFHIRDatastoreCommandInput, waiterConfig: number | Omit<WaiterConfiguration<HealthLake>, "client">): Promise<WaiterResult>;
124
+ /**
125
+ * @see {@link DescribeFHIRDatastoreCommand}
126
+ * @param args - command input.
127
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
128
+ */
129
+ waitUntilFHIRDatastoreDeleted(args: DescribeFHIRDatastoreCommandInput, waiterConfig: number | Omit<WaiterConfiguration<HealthLake>, "client">): Promise<WaiterResult>;
130
+ /**
131
+ * @see {@link DescribeFHIRExportJobCommand}
132
+ * @param args - command input.
133
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
134
+ */
135
+ waitUntilFHIRExportJobCompleted(args: DescribeFHIRExportJobCommandInput, waiterConfig: number | Omit<WaiterConfiguration<HealthLake>, "client">): Promise<WaiterResult>;
136
+ /**
137
+ * @see {@link DescribeFHIRImportJobCommand}
138
+ * @param args - command input.
139
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
140
+ */
141
+ waitUntilFHIRImportJobCompleted(args: DescribeFHIRImportJobCommandInput, waiterConfig: number | Omit<WaiterConfiguration<HealthLake>, "client">): Promise<WaiterResult>;
96
142
  }
97
143
  /**
98
144
  * <p>This is the <i>AWS HealthLake API Reference</i>. For an introduction to
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import {
3
9
  CreateFHIRDatastoreCommandInput,
4
10
  CreateFHIRDatastoreCommandOutput,
@@ -223,6 +229,63 @@ export interface HealthLake {
223
229
  options: __HttpHandlerOptions,
224
230
  cb: (err: any, data?: UntagResourceCommandOutput) => void
225
231
  ): void;
232
+ paginateListFHIRDatastores(
233
+ args?: ListFHIRDatastoresCommandInput,
234
+ paginationConfig?: Pick<
235
+ PaginationConfiguration,
236
+ Exclude<keyof PaginationConfiguration, "client">
237
+ >
238
+ ): Paginator<ListFHIRDatastoresCommandOutput>;
239
+ paginateListFHIRExportJobs(
240
+ args: ListFHIRExportJobsCommandInput,
241
+ paginationConfig?: Pick<
242
+ PaginationConfiguration,
243
+ Exclude<keyof PaginationConfiguration, "client">
244
+ >
245
+ ): Paginator<ListFHIRExportJobsCommandOutput>;
246
+ paginateListFHIRImportJobs(
247
+ args: ListFHIRImportJobsCommandInput,
248
+ paginationConfig?: Pick<
249
+ PaginationConfiguration,
250
+ Exclude<keyof PaginationConfiguration, "client">
251
+ >
252
+ ): Paginator<ListFHIRImportJobsCommandOutput>;
253
+ waitUntilFHIRDatastoreActive(
254
+ args: DescribeFHIRDatastoreCommandInput,
255
+ waiterConfig:
256
+ | number
257
+ | Pick<
258
+ WaiterConfiguration<HealthLake>,
259
+ Exclude<keyof WaiterConfiguration<HealthLake>, "client">
260
+ >
261
+ ): Promise<WaiterResult>;
262
+ waitUntilFHIRDatastoreDeleted(
263
+ args: DescribeFHIRDatastoreCommandInput,
264
+ waiterConfig:
265
+ | number
266
+ | Pick<
267
+ WaiterConfiguration<HealthLake>,
268
+ Exclude<keyof WaiterConfiguration<HealthLake>, "client">
269
+ >
270
+ ): Promise<WaiterResult>;
271
+ waitUntilFHIRExportJobCompleted(
272
+ args: DescribeFHIRExportJobCommandInput,
273
+ waiterConfig:
274
+ | number
275
+ | Pick<
276
+ WaiterConfiguration<HealthLake>,
277
+ Exclude<keyof WaiterConfiguration<HealthLake>, "client">
278
+ >
279
+ ): Promise<WaiterResult>;
280
+ waitUntilFHIRImportJobCompleted(
281
+ args: DescribeFHIRImportJobCommandInput,
282
+ waiterConfig:
283
+ | number
284
+ | Pick<
285
+ WaiterConfiguration<HealthLake>,
286
+ Exclude<keyof WaiterConfiguration<HealthLake>, "client">
287
+ >
288
+ ): Promise<WaiterResult>;
226
289
  }
227
290
  export declare class HealthLake
228
291
  extends HealthLakeClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-healthlake",
3
3
  "description": "AWS SDK for JavaScript Healthlake Client for Node.js, Browser and React Native",
4
- "version": "3.974.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-healthlake",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.0",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.1",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.0",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.10",
42
- "@smithy/middleware-retry": "^4.4.26",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.11",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.25",
55
- "@smithy/util-defaults-mode-node": "^4.2.28",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",