@aws-sdk/client-healthlake 3.1067.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +121 -141
- package/dist-cjs/models/HealthLakeServiceException.js +4 -8
- package/dist-cjs/models/errors.js +13 -22
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +148 -100
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
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;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -68,231 +71,231 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
68
71
|
};
|
|
69
72
|
|
|
70
73
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
71
|
-
const extensionConfiguration = Object.assign(
|
|
74
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
72
75
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
73
|
-
return Object.assign(runtimeConfig,
|
|
76
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
74
77
|
};
|
|
75
78
|
|
|
76
|
-
class HealthLakeClient extends
|
|
79
|
+
class HealthLakeClient extends Client {
|
|
77
80
|
config;
|
|
78
81
|
constructor(...[configuration]) {
|
|
79
|
-
const _config_0 =
|
|
82
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
80
83
|
super(_config_0);
|
|
81
84
|
this.initConfig = _config_0;
|
|
82
85
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
83
|
-
const _config_2 =
|
|
84
|
-
const _config_3 =
|
|
85
|
-
const _config_4 =
|
|
86
|
-
const _config_5 =
|
|
87
|
-
const _config_6 =
|
|
88
|
-
const _config_7 =
|
|
86
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
89
92
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
90
93
|
this.config = _config_8;
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
httpAuthSchemeParametersProvider:
|
|
100
|
-
identityProviderConfigProvider: async (config) => new
|
|
94
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: defaultHealthLakeHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
101
104
|
"aws.auth#sigv4": config.credentials,
|
|
102
105
|
}),
|
|
103
106
|
}));
|
|
104
|
-
this.middlewareStack.use(
|
|
107
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
105
108
|
}
|
|
106
109
|
destroy() {
|
|
107
110
|
super.destroy();
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class CreateFHIRDatastoreCommand extends
|
|
114
|
+
class CreateFHIRDatastoreCommand extends Command
|
|
112
115
|
.classBuilder()
|
|
113
116
|
.ep(commonParams)
|
|
114
117
|
.m(function (Command, cs, config, o) {
|
|
115
|
-
return [
|
|
118
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
116
119
|
})
|
|
117
120
|
.s("HealthLake", "CreateFHIRDatastore", {})
|
|
118
121
|
.n("HealthLakeClient", "CreateFHIRDatastoreCommand")
|
|
119
|
-
.sc(
|
|
122
|
+
.sc(CreateFHIRDatastore$)
|
|
120
123
|
.build() {
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
class DeleteFHIRDatastoreCommand extends
|
|
126
|
+
class DeleteFHIRDatastoreCommand extends Command
|
|
124
127
|
.classBuilder()
|
|
125
128
|
.ep(commonParams)
|
|
126
129
|
.m(function (Command, cs, config, o) {
|
|
127
|
-
return [
|
|
130
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
131
|
})
|
|
129
132
|
.s("HealthLake", "DeleteFHIRDatastore", {})
|
|
130
133
|
.n("HealthLakeClient", "DeleteFHIRDatastoreCommand")
|
|
131
|
-
.sc(
|
|
134
|
+
.sc(DeleteFHIRDatastore$)
|
|
132
135
|
.build() {
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
class DescribeFHIRDatastoreCommand extends
|
|
138
|
+
class DescribeFHIRDatastoreCommand extends Command
|
|
136
139
|
.classBuilder()
|
|
137
140
|
.ep(commonParams)
|
|
138
141
|
.m(function (Command, cs, config, o) {
|
|
139
|
-
return [
|
|
142
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
140
143
|
})
|
|
141
144
|
.s("HealthLake", "DescribeFHIRDatastore", {})
|
|
142
145
|
.n("HealthLakeClient", "DescribeFHIRDatastoreCommand")
|
|
143
|
-
.sc(
|
|
146
|
+
.sc(DescribeFHIRDatastore$)
|
|
144
147
|
.build() {
|
|
145
148
|
}
|
|
146
149
|
|
|
147
|
-
class DescribeFHIRExportJobCommand extends
|
|
150
|
+
class DescribeFHIRExportJobCommand extends Command
|
|
148
151
|
.classBuilder()
|
|
149
152
|
.ep(commonParams)
|
|
150
153
|
.m(function (Command, cs, config, o) {
|
|
151
|
-
return [
|
|
154
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
152
155
|
})
|
|
153
156
|
.s("HealthLake", "DescribeFHIRExportJob", {})
|
|
154
157
|
.n("HealthLakeClient", "DescribeFHIRExportJobCommand")
|
|
155
|
-
.sc(
|
|
158
|
+
.sc(DescribeFHIRExportJob$)
|
|
156
159
|
.build() {
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
class DescribeFHIRImportJobCommand extends
|
|
162
|
+
class DescribeFHIRImportJobCommand extends Command
|
|
160
163
|
.classBuilder()
|
|
161
164
|
.ep(commonParams)
|
|
162
165
|
.m(function (Command, cs, config, o) {
|
|
163
|
-
return [
|
|
166
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
164
167
|
})
|
|
165
168
|
.s("HealthLake", "DescribeFHIRImportJob", {})
|
|
166
169
|
.n("HealthLakeClient", "DescribeFHIRImportJobCommand")
|
|
167
|
-
.sc(
|
|
170
|
+
.sc(DescribeFHIRImportJob$)
|
|
168
171
|
.build() {
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
class ListFHIRDatastoresCommand extends
|
|
174
|
+
class ListFHIRDatastoresCommand extends Command
|
|
172
175
|
.classBuilder()
|
|
173
176
|
.ep(commonParams)
|
|
174
177
|
.m(function (Command, cs, config, o) {
|
|
175
|
-
return [
|
|
178
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
176
179
|
})
|
|
177
180
|
.s("HealthLake", "ListFHIRDatastores", {})
|
|
178
181
|
.n("HealthLakeClient", "ListFHIRDatastoresCommand")
|
|
179
|
-
.sc(
|
|
182
|
+
.sc(ListFHIRDatastores$)
|
|
180
183
|
.build() {
|
|
181
184
|
}
|
|
182
185
|
|
|
183
|
-
class ListFHIRExportJobsCommand extends
|
|
186
|
+
class ListFHIRExportJobsCommand extends Command
|
|
184
187
|
.classBuilder()
|
|
185
188
|
.ep(commonParams)
|
|
186
189
|
.m(function (Command, cs, config, o) {
|
|
187
|
-
return [
|
|
190
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
188
191
|
})
|
|
189
192
|
.s("HealthLake", "ListFHIRExportJobs", {})
|
|
190
193
|
.n("HealthLakeClient", "ListFHIRExportJobsCommand")
|
|
191
|
-
.sc(
|
|
194
|
+
.sc(ListFHIRExportJobs$)
|
|
192
195
|
.build() {
|
|
193
196
|
}
|
|
194
197
|
|
|
195
|
-
class ListFHIRImportJobsCommand extends
|
|
198
|
+
class ListFHIRImportJobsCommand extends Command
|
|
196
199
|
.classBuilder()
|
|
197
200
|
.ep(commonParams)
|
|
198
201
|
.m(function (Command, cs, config, o) {
|
|
199
|
-
return [
|
|
202
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
200
203
|
})
|
|
201
204
|
.s("HealthLake", "ListFHIRImportJobs", {})
|
|
202
205
|
.n("HealthLakeClient", "ListFHIRImportJobsCommand")
|
|
203
|
-
.sc(
|
|
206
|
+
.sc(ListFHIRImportJobs$)
|
|
204
207
|
.build() {
|
|
205
208
|
}
|
|
206
209
|
|
|
207
|
-
class ListTagsForResourceCommand extends
|
|
210
|
+
class ListTagsForResourceCommand extends Command
|
|
208
211
|
.classBuilder()
|
|
209
212
|
.ep(commonParams)
|
|
210
213
|
.m(function (Command, cs, config, o) {
|
|
211
|
-
return [
|
|
214
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
212
215
|
})
|
|
213
216
|
.s("HealthLake", "ListTagsForResource", {})
|
|
214
217
|
.n("HealthLakeClient", "ListTagsForResourceCommand")
|
|
215
|
-
.sc(
|
|
218
|
+
.sc(ListTagsForResource$)
|
|
216
219
|
.build() {
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
class StartFHIRExportJobCommand extends
|
|
222
|
+
class StartFHIRExportJobCommand extends Command
|
|
220
223
|
.classBuilder()
|
|
221
224
|
.ep(commonParams)
|
|
222
225
|
.m(function (Command, cs, config, o) {
|
|
223
|
-
return [
|
|
226
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
227
|
})
|
|
225
228
|
.s("HealthLake", "StartFHIRExportJob", {})
|
|
226
229
|
.n("HealthLakeClient", "StartFHIRExportJobCommand")
|
|
227
|
-
.sc(
|
|
230
|
+
.sc(StartFHIRExportJob$)
|
|
228
231
|
.build() {
|
|
229
232
|
}
|
|
230
233
|
|
|
231
|
-
class StartFHIRImportJobCommand extends
|
|
234
|
+
class StartFHIRImportJobCommand extends Command
|
|
232
235
|
.classBuilder()
|
|
233
236
|
.ep(commonParams)
|
|
234
237
|
.m(function (Command, cs, config, o) {
|
|
235
|
-
return [
|
|
238
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
236
239
|
})
|
|
237
240
|
.s("HealthLake", "StartFHIRImportJob", {})
|
|
238
241
|
.n("HealthLakeClient", "StartFHIRImportJobCommand")
|
|
239
|
-
.sc(
|
|
242
|
+
.sc(StartFHIRImportJob$)
|
|
240
243
|
.build() {
|
|
241
244
|
}
|
|
242
245
|
|
|
243
|
-
class TagResourceCommand extends
|
|
246
|
+
class TagResourceCommand extends Command
|
|
244
247
|
.classBuilder()
|
|
245
248
|
.ep(commonParams)
|
|
246
249
|
.m(function (Command, cs, config, o) {
|
|
247
|
-
return [
|
|
250
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
248
251
|
})
|
|
249
252
|
.s("HealthLake", "TagResource", {})
|
|
250
253
|
.n("HealthLakeClient", "TagResourceCommand")
|
|
251
|
-
.sc(
|
|
254
|
+
.sc(TagResource$)
|
|
252
255
|
.build() {
|
|
253
256
|
}
|
|
254
257
|
|
|
255
|
-
class UntagResourceCommand extends
|
|
258
|
+
class UntagResourceCommand extends Command
|
|
256
259
|
.classBuilder()
|
|
257
260
|
.ep(commonParams)
|
|
258
261
|
.m(function (Command, cs, config, o) {
|
|
259
|
-
return [
|
|
262
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
260
263
|
})
|
|
261
264
|
.s("HealthLake", "UntagResource", {})
|
|
262
265
|
.n("HealthLakeClient", "UntagResourceCommand")
|
|
263
|
-
.sc(
|
|
266
|
+
.sc(UntagResource$)
|
|
264
267
|
.build() {
|
|
265
268
|
}
|
|
266
269
|
|
|
267
|
-
class UpdateFHIRDatastoreCommand extends
|
|
270
|
+
class UpdateFHIRDatastoreCommand extends Command
|
|
268
271
|
.classBuilder()
|
|
269
272
|
.ep(commonParams)
|
|
270
273
|
.m(function (Command, cs, config, o) {
|
|
271
|
-
return [
|
|
274
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
272
275
|
})
|
|
273
276
|
.s("HealthLake", "UpdateFHIRDatastore", {})
|
|
274
277
|
.n("HealthLakeClient", "UpdateFHIRDatastoreCommand")
|
|
275
|
-
.sc(
|
|
278
|
+
.sc(UpdateFHIRDatastore$)
|
|
276
279
|
.build() {
|
|
277
280
|
}
|
|
278
281
|
|
|
279
|
-
const paginateListFHIRDatastores =
|
|
282
|
+
const paginateListFHIRDatastores = createPaginator(HealthLakeClient, ListFHIRDatastoresCommand, "NextToken", "NextToken", "MaxResults");
|
|
280
283
|
|
|
281
|
-
const paginateListFHIRExportJobs =
|
|
284
|
+
const paginateListFHIRExportJobs = createPaginator(HealthLakeClient, ListFHIRExportJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
282
285
|
|
|
283
|
-
const paginateListFHIRImportJobs =
|
|
286
|
+
const paginateListFHIRImportJobs = createPaginator(HealthLakeClient, ListFHIRImportJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
284
287
|
|
|
285
|
-
const checkState$3 = async (client
|
|
288
|
+
const checkState$3 = async (client, input) => {
|
|
286
289
|
let reason;
|
|
287
290
|
try {
|
|
288
|
-
let result = await client
|
|
291
|
+
let result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
289
292
|
reason = result;
|
|
290
293
|
try {
|
|
291
294
|
const returnComparator = () => {
|
|
292
295
|
return result.DatastoreProperties.DatastoreStatus;
|
|
293
296
|
};
|
|
294
297
|
if (returnComparator() === "ACTIVE") {
|
|
295
|
-
return { state:
|
|
298
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
296
299
|
}
|
|
297
300
|
}
|
|
298
301
|
catch (e) { }
|
|
@@ -301,7 +304,7 @@ const checkState$3 = async (client$1, input) => {
|
|
|
301
304
|
return result.DatastoreProperties.DatastoreStatus;
|
|
302
305
|
};
|
|
303
306
|
if (returnComparator() === "CREATE_FAILED") {
|
|
304
|
-
return { state:
|
|
307
|
+
return { state: WaiterState.FAILURE, reason };
|
|
305
308
|
}
|
|
306
309
|
}
|
|
307
310
|
catch (e) { }
|
|
@@ -310,7 +313,7 @@ const checkState$3 = async (client$1, input) => {
|
|
|
310
313
|
return result.DatastoreProperties.DatastoreStatus;
|
|
311
314
|
};
|
|
312
315
|
if (returnComparator() === "DELETED") {
|
|
313
|
-
return { state:
|
|
316
|
+
return { state: WaiterState.FAILURE, reason };
|
|
314
317
|
}
|
|
315
318
|
}
|
|
316
319
|
catch (e) { }
|
|
@@ -318,29 +321,29 @@ const checkState$3 = async (client$1, input) => {
|
|
|
318
321
|
catch (exception) {
|
|
319
322
|
reason = exception;
|
|
320
323
|
}
|
|
321
|
-
return { state:
|
|
324
|
+
return { state: WaiterState.RETRY, reason };
|
|
322
325
|
};
|
|
323
326
|
const waitForFHIRDatastoreActive = async (params, input) => {
|
|
324
327
|
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
325
|
-
return
|
|
328
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
326
329
|
};
|
|
327
330
|
const waitUntilFHIRDatastoreActive = async (params, input) => {
|
|
328
331
|
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
329
|
-
const result = await
|
|
330
|
-
return
|
|
332
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
333
|
+
return checkExceptions(result);
|
|
331
334
|
};
|
|
332
335
|
|
|
333
|
-
const checkState$2 = async (client
|
|
336
|
+
const checkState$2 = async (client, input) => {
|
|
334
337
|
let reason;
|
|
335
338
|
try {
|
|
336
|
-
let result = await client
|
|
339
|
+
let result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
337
340
|
reason = result;
|
|
338
341
|
try {
|
|
339
342
|
const returnComparator = () => {
|
|
340
343
|
return result.DatastoreProperties.DatastoreStatus;
|
|
341
344
|
};
|
|
342
345
|
if (returnComparator() === "DELETED") {
|
|
343
|
-
return { state:
|
|
346
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
344
347
|
}
|
|
345
348
|
}
|
|
346
349
|
catch (e) { }
|
|
@@ -348,29 +351,29 @@ const checkState$2 = async (client$1, input) => {
|
|
|
348
351
|
catch (exception) {
|
|
349
352
|
reason = exception;
|
|
350
353
|
}
|
|
351
|
-
return { state:
|
|
354
|
+
return { state: WaiterState.RETRY, reason };
|
|
352
355
|
};
|
|
353
356
|
const waitForFHIRDatastoreDeleted = async (params, input) => {
|
|
354
357
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
355
|
-
return
|
|
358
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
356
359
|
};
|
|
357
360
|
const waitUntilFHIRDatastoreDeleted = async (params, input) => {
|
|
358
361
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
359
|
-
const result = await
|
|
360
|
-
return
|
|
362
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
363
|
+
return checkExceptions(result);
|
|
361
364
|
};
|
|
362
365
|
|
|
363
|
-
const checkState$1 = async (client
|
|
366
|
+
const checkState$1 = async (client, input) => {
|
|
364
367
|
let reason;
|
|
365
368
|
try {
|
|
366
|
-
let result = await client
|
|
369
|
+
let result = await client.send(new DescribeFHIRExportJobCommand(input));
|
|
367
370
|
reason = result;
|
|
368
371
|
try {
|
|
369
372
|
const returnComparator = () => {
|
|
370
373
|
return result.ExportJobProperties.JobStatus;
|
|
371
374
|
};
|
|
372
375
|
if (returnComparator() === "COMPLETED") {
|
|
373
|
-
return { state:
|
|
376
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
374
377
|
}
|
|
375
378
|
}
|
|
376
379
|
catch (e) { }
|
|
@@ -379,7 +382,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
379
382
|
return result.ExportJobProperties.JobStatus;
|
|
380
383
|
};
|
|
381
384
|
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
382
|
-
return { state:
|
|
385
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
383
386
|
}
|
|
384
387
|
}
|
|
385
388
|
catch (e) { }
|
|
@@ -388,7 +391,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
388
391
|
return result.ExportJobProperties.JobStatus;
|
|
389
392
|
};
|
|
390
393
|
if (returnComparator() === "CANCEL_COMPLETED") {
|
|
391
|
-
return { state:
|
|
394
|
+
return { state: WaiterState.FAILURE, reason };
|
|
392
395
|
}
|
|
393
396
|
}
|
|
394
397
|
catch (e) { }
|
|
@@ -397,7 +400,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
397
400
|
return result.ExportJobProperties.JobStatus;
|
|
398
401
|
};
|
|
399
402
|
if (returnComparator() === "FAILED") {
|
|
400
|
-
return { state:
|
|
403
|
+
return { state: WaiterState.FAILURE, reason };
|
|
401
404
|
}
|
|
402
405
|
}
|
|
403
406
|
catch (e) { }
|
|
@@ -406,7 +409,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
406
409
|
return result.ExportJobProperties.JobStatus;
|
|
407
410
|
};
|
|
408
411
|
if (returnComparator() === "CANCEL_FAILED") {
|
|
409
|
-
return { state:
|
|
412
|
+
return { state: WaiterState.FAILURE, reason };
|
|
410
413
|
}
|
|
411
414
|
}
|
|
412
415
|
catch (e) { }
|
|
@@ -414,29 +417,29 @@ const checkState$1 = async (client$1, input) => {
|
|
|
414
417
|
catch (exception) {
|
|
415
418
|
reason = exception;
|
|
416
419
|
}
|
|
417
|
-
return { state:
|
|
420
|
+
return { state: WaiterState.RETRY, reason };
|
|
418
421
|
};
|
|
419
422
|
const waitForFHIRExportJobCompleted = async (params, input) => {
|
|
420
423
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
421
|
-
return
|
|
424
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
422
425
|
};
|
|
423
426
|
const waitUntilFHIRExportJobCompleted = async (params, input) => {
|
|
424
427
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
425
|
-
const result = await
|
|
426
|
-
return
|
|
428
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
429
|
+
return checkExceptions(result);
|
|
427
430
|
};
|
|
428
431
|
|
|
429
|
-
const checkState = async (client
|
|
432
|
+
const checkState = async (client, input) => {
|
|
430
433
|
let reason;
|
|
431
434
|
try {
|
|
432
|
-
let result = await client
|
|
435
|
+
let result = await client.send(new DescribeFHIRImportJobCommand(input));
|
|
433
436
|
reason = result;
|
|
434
437
|
try {
|
|
435
438
|
const returnComparator = () => {
|
|
436
439
|
return result.ImportJobProperties.JobStatus;
|
|
437
440
|
};
|
|
438
441
|
if (returnComparator() === "COMPLETED") {
|
|
439
|
-
return { state:
|
|
442
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
440
443
|
}
|
|
441
444
|
}
|
|
442
445
|
catch (e) { }
|
|
@@ -445,7 +448,7 @@ const checkState = async (client$1, input) => {
|
|
|
445
448
|
return result.ImportJobProperties.JobStatus;
|
|
446
449
|
};
|
|
447
450
|
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
448
|
-
return { state:
|
|
451
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
449
452
|
}
|
|
450
453
|
}
|
|
451
454
|
catch (e) { }
|
|
@@ -454,7 +457,7 @@ const checkState = async (client$1, input) => {
|
|
|
454
457
|
return result.ImportJobProperties.JobStatus;
|
|
455
458
|
};
|
|
456
459
|
if (returnComparator() === "FAILED") {
|
|
457
|
-
return { state:
|
|
460
|
+
return { state: WaiterState.FAILURE, reason };
|
|
458
461
|
}
|
|
459
462
|
}
|
|
460
463
|
catch (e) { }
|
|
@@ -462,16 +465,16 @@ const checkState = async (client$1, input) => {
|
|
|
462
465
|
catch (exception) {
|
|
463
466
|
reason = exception;
|
|
464
467
|
}
|
|
465
|
-
return { state:
|
|
468
|
+
return { state: WaiterState.RETRY, reason };
|
|
466
469
|
};
|
|
467
470
|
const waitForFHIRImportJobCompleted = async (params, input) => {
|
|
468
471
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
469
|
-
return
|
|
472
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
470
473
|
};
|
|
471
474
|
const waitUntilFHIRImportJobCompleted = async (params, input) => {
|
|
472
475
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
473
|
-
const result = await
|
|
474
|
-
return
|
|
476
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
477
|
+
return checkExceptions(result);
|
|
475
478
|
};
|
|
476
479
|
|
|
477
480
|
const commands = {
|
|
@@ -503,7 +506,7 @@ const waiters = {
|
|
|
503
506
|
};
|
|
504
507
|
class HealthLake extends HealthLakeClient {
|
|
505
508
|
}
|
|
506
|
-
|
|
509
|
+
createAggregatedClient(commands, HealthLake, { paginators, waiters });
|
|
507
510
|
|
|
508
511
|
const AnalyticsStatus = {
|
|
509
512
|
DISABLED: "DISABLED",
|
|
@@ -565,9 +568,6 @@ const ValidationLevel = {
|
|
|
565
568
|
STRUCTURE_ONLY: "structure-only",
|
|
566
569
|
};
|
|
567
570
|
|
|
568
|
-
exports.$Command = client.Command;
|
|
569
|
-
exports.__Client = client.Client;
|
|
570
|
-
exports.HealthLakeServiceException = HealthLakeServiceException.HealthLakeServiceException;
|
|
571
571
|
exports.AnalyticsStatus = AnalyticsStatus;
|
|
572
572
|
exports.AuthorizationStrategy = AuthorizationStrategy;
|
|
573
573
|
exports.CmkType = CmkType;
|
|
@@ -605,23 +605,3 @@ exports.waitUntilFHIRDatastoreActive = waitUntilFHIRDatastoreActive;
|
|
|
605
605
|
exports.waitUntilFHIRDatastoreDeleted = waitUntilFHIRDatastoreDeleted;
|
|
606
606
|
exports.waitUntilFHIRExportJobCompleted = waitUntilFHIRExportJobCompleted;
|
|
607
607
|
exports.waitUntilFHIRImportJobCompleted = waitUntilFHIRImportJobCompleted;
|
|
608
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
609
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
610
|
-
Object.defineProperty(exports, '__proto__', {
|
|
611
|
-
enumerable: true,
|
|
612
|
-
value: schemas_0['__proto__']
|
|
613
|
-
});
|
|
614
|
-
|
|
615
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
616
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
617
|
-
});
|
|
618
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
619
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
620
|
-
Object.defineProperty(exports, '__proto__', {
|
|
621
|
-
enumerable: true,
|
|
622
|
-
value: errors['__proto__']
|
|
623
|
-
});
|
|
624
|
-
|
|
625
|
-
Object.keys(errors).forEach(function (k) {
|
|
626
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
627
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.HealthLakeServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class HealthLakeServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.HealthLakeServiceException = class HealthLakeServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, HealthLakeServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.HealthLakeServiceException = HealthLakeServiceException;
|
|
8
|
+
};
|