@aws-sdk/client-healthlake 3.1044.0 → 3.1046.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 +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +78 -80
- package/dist-cjs/models/HealthLakeServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +18 -22
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/HealthLake.js +1 -1
- package/dist-es/HealthLakeClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/CreateFHIRDatastoreCommand.js +2 -2
- package/dist-es/commands/DeleteFHIRDatastoreCommand.js +2 -2
- package/dist-es/commands/DescribeFHIRDatastoreCommand.js +2 -2
- package/dist-es/commands/DescribeFHIRExportJobCommand.js +2 -2
- package/dist-es/commands/DescribeFHIRImportJobCommand.js +2 -2
- package/dist-es/commands/ListFHIRDatastoresCommand.js +2 -2
- package/dist-es/commands/ListFHIRExportJobsCommand.js +2 -2
- package/dist-es/commands/ListFHIRImportJobsCommand.js +2 -2
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-es/commands/StartFHIRExportJobCommand.js +2 -2
- package/dist-es/commands/StartFHIRImportJobCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/UntagResourceCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/HealthLakeServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-es/waiters/waitForFHIRDatastoreActive.js +1 -1
- package/dist-es/waiters/waitForFHIRDatastoreDeleted.js +1 -1
- package/dist-es/waiters/waitForFHIRExportJobCompleted.js +1 -1
- package/dist-es/waiters/waitForFHIRImportJobCompleted.js +1 -1
- package/dist-types/HealthLake.d.ts +1 -1
- package/dist-types/HealthLakeClient.d.ts +5 -5
- package/dist-types/commands/CreateFHIRDatastoreCommand.d.ts +6 -4
- package/dist-types/commands/DeleteFHIRDatastoreCommand.d.ts +6 -4
- package/dist-types/commands/DescribeFHIRDatastoreCommand.d.ts +6 -4
- package/dist-types/commands/DescribeFHIRExportJobCommand.d.ts +6 -4
- package/dist-types/commands/DescribeFHIRImportJobCommand.d.ts +6 -4
- package/dist-types/commands/ListFHIRDatastoresCommand.d.ts +6 -4
- package/dist-types/commands/ListFHIRExportJobsCommand.d.ts +6 -4
- package/dist-types/commands/ListFHIRImportJobsCommand.d.ts +6 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/commands/StartFHIRExportJobCommand.d.ts +6 -4
- package/dist-types/commands/StartFHIRImportJobCommand.d.ts +6 -4
- package/dist-types/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/HealthLakeServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/HealthLake.d.ts +1 -1
- package/dist-types/ts3.4/HealthLakeClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/CreateFHIRDatastoreCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteFHIRDatastoreCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeFHIRDatastoreCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeFHIRExportJobCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeFHIRImportJobCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListFHIRDatastoresCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListFHIRExportJobsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListFHIRImportJobsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartFHIRExportJobCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartFHIRImportJobCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/HealthLakeServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/waiters/waitForFHIRDatastoreActive.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForFHIRDatastoreDeleted.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForFHIRExportJobCompleted.d.ts +1 -1
- package/dist-types/ts3.4/waiters/waitForFHIRImportJobCompleted.d.ts +1 -1
- package/dist-types/waiters/waitForFHIRDatastoreActive.d.ts +1 -1
- package/dist-types/waiters/waitForFHIRDatastoreDeleted.d.ts +1 -1
- package/dist-types/waiters/waitForFHIRExportJobCompleted.d.ts +1 -1
- package/dist-types/waiters/waitForFHIRImportJobCompleted.d.ts +1 -1
- package/package.json +13 -35
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultHealthLakeHttpAuthSchemeProvider = exports.defaultHealthLakeHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
6
|
const defaultHealthLakeHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
|
-
operation: (0,
|
|
9
|
-
region: await (0,
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
|
|
10
10
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
11
|
})(),
|
|
12
12
|
};
|
|
@@ -40,7 +40,7 @@ exports.defaultHealthLakeHttpAuthSchemeProvider = defaultHealthLakeHttpAuthSchem
|
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
41
|
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference: (0,
|
|
43
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
5
|
const k = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
7
|
const _data = {
|
|
@@ -46,4 +46,4 @@ const nodes = new Int32Array([
|
|
|
46
46
|
3, r + 1, 13,
|
|
47
47
|
4, r + 2, r + 3,
|
|
48
48
|
]);
|
|
49
|
-
exports.bdd =
|
|
49
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const
|
|
5
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new
|
|
7
|
+
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0,
|
|
12
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
|
|
18
|
+
endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -4,19 +4,17 @@ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
|
4
4
|
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
5
|
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
-
var configResolver = require('@smithy/config-resolver');
|
|
8
7
|
var core = require('@smithy/core');
|
|
8
|
+
var client = require('@smithy/core/client');
|
|
9
|
+
var config = require('@smithy/core/config');
|
|
10
|
+
var endpoints = require('@smithy/core/endpoints');
|
|
11
|
+
var protocols = require('@smithy/core/protocols');
|
|
12
|
+
var retry = require('@smithy/core/retry');
|
|
9
13
|
var schema = require('@smithy/core/schema');
|
|
10
|
-
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
11
|
-
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
12
|
-
var middlewareRetry = require('@smithy/middleware-retry');
|
|
13
|
-
var smithyClient = require('@smithy/smithy-client');
|
|
14
14
|
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
|
-
var protocolHttp = require('@smithy/protocol-http');
|
|
18
17
|
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
-
var utilWaiter = require('@smithy/util-waiter');
|
|
20
18
|
var errors = require('./models/errors');
|
|
21
19
|
var HealthLakeServiceException = require('./models/HealthLakeServiceException');
|
|
22
20
|
|
|
@@ -74,12 +72,12 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
74
72
|
};
|
|
75
73
|
|
|
76
74
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
77
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig),
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
78
76
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
79
|
-
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
80
78
|
};
|
|
81
79
|
|
|
82
|
-
class HealthLakeClient extends
|
|
80
|
+
class HealthLakeClient extends client.Client {
|
|
83
81
|
config;
|
|
84
82
|
constructor(...[configuration]) {
|
|
85
83
|
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
@@ -87,17 +85,17 @@ class HealthLakeClient extends smithyClient.Client {
|
|
|
87
85
|
this.initConfig = _config_0;
|
|
88
86
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
89
87
|
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
90
|
-
const _config_3 =
|
|
91
|
-
const _config_4 =
|
|
88
|
+
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
92
90
|
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
93
|
-
const _config_6 =
|
|
91
|
+
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
94
92
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
95
93
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
96
94
|
this.config = _config_8;
|
|
97
95
|
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
98
96
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
this.middlewareStack.use(
|
|
97
|
+
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
101
99
|
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
102
100
|
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
103
101
|
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
@@ -114,11 +112,11 @@ class HealthLakeClient extends smithyClient.Client {
|
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
|
|
117
|
-
class CreateFHIRDatastoreCommand extends
|
|
115
|
+
class CreateFHIRDatastoreCommand extends client.Command
|
|
118
116
|
.classBuilder()
|
|
119
117
|
.ep(commonParams)
|
|
120
118
|
.m(function (Command, cs, config, o) {
|
|
121
|
-
return [
|
|
119
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
122
120
|
})
|
|
123
121
|
.s("HealthLake", "CreateFHIRDatastore", {})
|
|
124
122
|
.n("HealthLakeClient", "CreateFHIRDatastoreCommand")
|
|
@@ -126,11 +124,11 @@ class CreateFHIRDatastoreCommand extends smithyClient.Command
|
|
|
126
124
|
.build() {
|
|
127
125
|
}
|
|
128
126
|
|
|
129
|
-
class DeleteFHIRDatastoreCommand extends
|
|
127
|
+
class DeleteFHIRDatastoreCommand extends client.Command
|
|
130
128
|
.classBuilder()
|
|
131
129
|
.ep(commonParams)
|
|
132
130
|
.m(function (Command, cs, config, o) {
|
|
133
|
-
return [
|
|
131
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
134
132
|
})
|
|
135
133
|
.s("HealthLake", "DeleteFHIRDatastore", {})
|
|
136
134
|
.n("HealthLakeClient", "DeleteFHIRDatastoreCommand")
|
|
@@ -138,11 +136,11 @@ class DeleteFHIRDatastoreCommand extends smithyClient.Command
|
|
|
138
136
|
.build() {
|
|
139
137
|
}
|
|
140
138
|
|
|
141
|
-
class DescribeFHIRDatastoreCommand extends
|
|
139
|
+
class DescribeFHIRDatastoreCommand extends client.Command
|
|
142
140
|
.classBuilder()
|
|
143
141
|
.ep(commonParams)
|
|
144
142
|
.m(function (Command, cs, config, o) {
|
|
145
|
-
return [
|
|
143
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
146
144
|
})
|
|
147
145
|
.s("HealthLake", "DescribeFHIRDatastore", {})
|
|
148
146
|
.n("HealthLakeClient", "DescribeFHIRDatastoreCommand")
|
|
@@ -150,11 +148,11 @@ class DescribeFHIRDatastoreCommand extends smithyClient.Command
|
|
|
150
148
|
.build() {
|
|
151
149
|
}
|
|
152
150
|
|
|
153
|
-
class DescribeFHIRExportJobCommand extends
|
|
151
|
+
class DescribeFHIRExportJobCommand extends client.Command
|
|
154
152
|
.classBuilder()
|
|
155
153
|
.ep(commonParams)
|
|
156
154
|
.m(function (Command, cs, config, o) {
|
|
157
|
-
return [
|
|
155
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
158
156
|
})
|
|
159
157
|
.s("HealthLake", "DescribeFHIRExportJob", {})
|
|
160
158
|
.n("HealthLakeClient", "DescribeFHIRExportJobCommand")
|
|
@@ -162,11 +160,11 @@ class DescribeFHIRExportJobCommand extends smithyClient.Command
|
|
|
162
160
|
.build() {
|
|
163
161
|
}
|
|
164
162
|
|
|
165
|
-
class DescribeFHIRImportJobCommand extends
|
|
163
|
+
class DescribeFHIRImportJobCommand extends client.Command
|
|
166
164
|
.classBuilder()
|
|
167
165
|
.ep(commonParams)
|
|
168
166
|
.m(function (Command, cs, config, o) {
|
|
169
|
-
return [
|
|
167
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
170
168
|
})
|
|
171
169
|
.s("HealthLake", "DescribeFHIRImportJob", {})
|
|
172
170
|
.n("HealthLakeClient", "DescribeFHIRImportJobCommand")
|
|
@@ -174,11 +172,11 @@ class DescribeFHIRImportJobCommand extends smithyClient.Command
|
|
|
174
172
|
.build() {
|
|
175
173
|
}
|
|
176
174
|
|
|
177
|
-
class ListFHIRDatastoresCommand extends
|
|
175
|
+
class ListFHIRDatastoresCommand extends client.Command
|
|
178
176
|
.classBuilder()
|
|
179
177
|
.ep(commonParams)
|
|
180
178
|
.m(function (Command, cs, config, o) {
|
|
181
|
-
return [
|
|
179
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
182
180
|
})
|
|
183
181
|
.s("HealthLake", "ListFHIRDatastores", {})
|
|
184
182
|
.n("HealthLakeClient", "ListFHIRDatastoresCommand")
|
|
@@ -186,11 +184,11 @@ class ListFHIRDatastoresCommand extends smithyClient.Command
|
|
|
186
184
|
.build() {
|
|
187
185
|
}
|
|
188
186
|
|
|
189
|
-
class ListFHIRExportJobsCommand extends
|
|
187
|
+
class ListFHIRExportJobsCommand extends client.Command
|
|
190
188
|
.classBuilder()
|
|
191
189
|
.ep(commonParams)
|
|
192
190
|
.m(function (Command, cs, config, o) {
|
|
193
|
-
return [
|
|
191
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
194
192
|
})
|
|
195
193
|
.s("HealthLake", "ListFHIRExportJobs", {})
|
|
196
194
|
.n("HealthLakeClient", "ListFHIRExportJobsCommand")
|
|
@@ -198,11 +196,11 @@ class ListFHIRExportJobsCommand extends smithyClient.Command
|
|
|
198
196
|
.build() {
|
|
199
197
|
}
|
|
200
198
|
|
|
201
|
-
class ListFHIRImportJobsCommand extends
|
|
199
|
+
class ListFHIRImportJobsCommand extends client.Command
|
|
202
200
|
.classBuilder()
|
|
203
201
|
.ep(commonParams)
|
|
204
202
|
.m(function (Command, cs, config, o) {
|
|
205
|
-
return [
|
|
203
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
206
204
|
})
|
|
207
205
|
.s("HealthLake", "ListFHIRImportJobs", {})
|
|
208
206
|
.n("HealthLakeClient", "ListFHIRImportJobsCommand")
|
|
@@ -210,11 +208,11 @@ class ListFHIRImportJobsCommand extends smithyClient.Command
|
|
|
210
208
|
.build() {
|
|
211
209
|
}
|
|
212
210
|
|
|
213
|
-
class ListTagsForResourceCommand extends
|
|
211
|
+
class ListTagsForResourceCommand extends client.Command
|
|
214
212
|
.classBuilder()
|
|
215
213
|
.ep(commonParams)
|
|
216
214
|
.m(function (Command, cs, config, o) {
|
|
217
|
-
return [
|
|
215
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
218
216
|
})
|
|
219
217
|
.s("HealthLake", "ListTagsForResource", {})
|
|
220
218
|
.n("HealthLakeClient", "ListTagsForResourceCommand")
|
|
@@ -222,11 +220,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
|
|
|
222
220
|
.build() {
|
|
223
221
|
}
|
|
224
222
|
|
|
225
|
-
class StartFHIRExportJobCommand extends
|
|
223
|
+
class StartFHIRExportJobCommand extends client.Command
|
|
226
224
|
.classBuilder()
|
|
227
225
|
.ep(commonParams)
|
|
228
226
|
.m(function (Command, cs, config, o) {
|
|
229
|
-
return [
|
|
227
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
230
228
|
})
|
|
231
229
|
.s("HealthLake", "StartFHIRExportJob", {})
|
|
232
230
|
.n("HealthLakeClient", "StartFHIRExportJobCommand")
|
|
@@ -234,11 +232,11 @@ class StartFHIRExportJobCommand extends smithyClient.Command
|
|
|
234
232
|
.build() {
|
|
235
233
|
}
|
|
236
234
|
|
|
237
|
-
class StartFHIRImportJobCommand extends
|
|
235
|
+
class StartFHIRImportJobCommand extends client.Command
|
|
238
236
|
.classBuilder()
|
|
239
237
|
.ep(commonParams)
|
|
240
238
|
.m(function (Command, cs, config, o) {
|
|
241
|
-
return [
|
|
239
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
242
240
|
})
|
|
243
241
|
.s("HealthLake", "StartFHIRImportJob", {})
|
|
244
242
|
.n("HealthLakeClient", "StartFHIRImportJobCommand")
|
|
@@ -246,11 +244,11 @@ class StartFHIRImportJobCommand extends smithyClient.Command
|
|
|
246
244
|
.build() {
|
|
247
245
|
}
|
|
248
246
|
|
|
249
|
-
class TagResourceCommand extends
|
|
247
|
+
class TagResourceCommand extends client.Command
|
|
250
248
|
.classBuilder()
|
|
251
249
|
.ep(commonParams)
|
|
252
250
|
.m(function (Command, cs, config, o) {
|
|
253
|
-
return [
|
|
251
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
254
252
|
})
|
|
255
253
|
.s("HealthLake", "TagResource", {})
|
|
256
254
|
.n("HealthLakeClient", "TagResourceCommand")
|
|
@@ -258,11 +256,11 @@ class TagResourceCommand extends smithyClient.Command
|
|
|
258
256
|
.build() {
|
|
259
257
|
}
|
|
260
258
|
|
|
261
|
-
class UntagResourceCommand extends
|
|
259
|
+
class UntagResourceCommand extends client.Command
|
|
262
260
|
.classBuilder()
|
|
263
261
|
.ep(commonParams)
|
|
264
262
|
.m(function (Command, cs, config, o) {
|
|
265
|
-
return [
|
|
263
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
266
264
|
})
|
|
267
265
|
.s("HealthLake", "UntagResource", {})
|
|
268
266
|
.n("HealthLakeClient", "UntagResourceCommand")
|
|
@@ -276,17 +274,17 @@ const paginateListFHIRExportJobs = core.createPaginator(HealthLakeClient, ListFH
|
|
|
276
274
|
|
|
277
275
|
const paginateListFHIRImportJobs = core.createPaginator(HealthLakeClient, ListFHIRImportJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
278
276
|
|
|
279
|
-
const checkState$3 = async (client, input) => {
|
|
277
|
+
const checkState$3 = async (client$1, input) => {
|
|
280
278
|
let reason;
|
|
281
279
|
try {
|
|
282
|
-
let result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
280
|
+
let result = await client$1.send(new DescribeFHIRDatastoreCommand(input));
|
|
283
281
|
reason = result;
|
|
284
282
|
try {
|
|
285
283
|
const returnComparator = () => {
|
|
286
284
|
return result.DatastoreProperties.DatastoreStatus;
|
|
287
285
|
};
|
|
288
286
|
if (returnComparator() === "ACTIVE") {
|
|
289
|
-
return { state:
|
|
287
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
290
288
|
}
|
|
291
289
|
}
|
|
292
290
|
catch (e) { }
|
|
@@ -295,7 +293,7 @@ const checkState$3 = async (client, input) => {
|
|
|
295
293
|
return result.DatastoreProperties.DatastoreStatus;
|
|
296
294
|
};
|
|
297
295
|
if (returnComparator() === "CREATE_FAILED") {
|
|
298
|
-
return { state:
|
|
296
|
+
return { state: client.WaiterState.FAILURE, reason };
|
|
299
297
|
}
|
|
300
298
|
}
|
|
301
299
|
catch (e) { }
|
|
@@ -304,7 +302,7 @@ const checkState$3 = async (client, input) => {
|
|
|
304
302
|
return result.DatastoreProperties.DatastoreStatus;
|
|
305
303
|
};
|
|
306
304
|
if (returnComparator() === "DELETED") {
|
|
307
|
-
return { state:
|
|
305
|
+
return { state: client.WaiterState.FAILURE, reason };
|
|
308
306
|
}
|
|
309
307
|
}
|
|
310
308
|
catch (e) { }
|
|
@@ -312,29 +310,29 @@ const checkState$3 = async (client, input) => {
|
|
|
312
310
|
catch (exception) {
|
|
313
311
|
reason = exception;
|
|
314
312
|
}
|
|
315
|
-
return { state:
|
|
313
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
316
314
|
};
|
|
317
315
|
const waitForFHIRDatastoreActive = async (params, input) => {
|
|
318
316
|
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
319
|
-
return
|
|
317
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
320
318
|
};
|
|
321
319
|
const waitUntilFHIRDatastoreActive = async (params, input) => {
|
|
322
320
|
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
323
|
-
const result = await
|
|
324
|
-
return
|
|
321
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
322
|
+
return client.checkExceptions(result);
|
|
325
323
|
};
|
|
326
324
|
|
|
327
|
-
const checkState$2 = async (client, input) => {
|
|
325
|
+
const checkState$2 = async (client$1, input) => {
|
|
328
326
|
let reason;
|
|
329
327
|
try {
|
|
330
|
-
let result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
328
|
+
let result = await client$1.send(new DescribeFHIRDatastoreCommand(input));
|
|
331
329
|
reason = result;
|
|
332
330
|
try {
|
|
333
331
|
const returnComparator = () => {
|
|
334
332
|
return result.DatastoreProperties.DatastoreStatus;
|
|
335
333
|
};
|
|
336
334
|
if (returnComparator() === "DELETED") {
|
|
337
|
-
return { state:
|
|
335
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
338
336
|
}
|
|
339
337
|
}
|
|
340
338
|
catch (e) { }
|
|
@@ -342,29 +340,29 @@ const checkState$2 = async (client, input) => {
|
|
|
342
340
|
catch (exception) {
|
|
343
341
|
reason = exception;
|
|
344
342
|
}
|
|
345
|
-
return { state:
|
|
343
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
346
344
|
};
|
|
347
345
|
const waitForFHIRDatastoreDeleted = async (params, input) => {
|
|
348
346
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
349
|
-
return
|
|
347
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
350
348
|
};
|
|
351
349
|
const waitUntilFHIRDatastoreDeleted = async (params, input) => {
|
|
352
350
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
353
|
-
const result = await
|
|
354
|
-
return
|
|
351
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
352
|
+
return client.checkExceptions(result);
|
|
355
353
|
};
|
|
356
354
|
|
|
357
|
-
const checkState$1 = async (client, input) => {
|
|
355
|
+
const checkState$1 = async (client$1, input) => {
|
|
358
356
|
let reason;
|
|
359
357
|
try {
|
|
360
|
-
let result = await client.send(new DescribeFHIRExportJobCommand(input));
|
|
358
|
+
let result = await client$1.send(new DescribeFHIRExportJobCommand(input));
|
|
361
359
|
reason = result;
|
|
362
360
|
try {
|
|
363
361
|
const returnComparator = () => {
|
|
364
362
|
return result.ExportJobProperties.JobStatus;
|
|
365
363
|
};
|
|
366
364
|
if (returnComparator() === "COMPLETED") {
|
|
367
|
-
return { state:
|
|
365
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
368
366
|
}
|
|
369
367
|
}
|
|
370
368
|
catch (e) { }
|
|
@@ -373,7 +371,7 @@ const checkState$1 = async (client, input) => {
|
|
|
373
371
|
return result.ExportJobProperties.JobStatus;
|
|
374
372
|
};
|
|
375
373
|
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
376
|
-
return { state:
|
|
374
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
377
375
|
}
|
|
378
376
|
}
|
|
379
377
|
catch (e) { }
|
|
@@ -382,7 +380,7 @@ const checkState$1 = async (client, input) => {
|
|
|
382
380
|
return result.ExportJobProperties.JobStatus;
|
|
383
381
|
};
|
|
384
382
|
if (returnComparator() === "CANCEL_COMPLETED") {
|
|
385
|
-
return { state:
|
|
383
|
+
return { state: client.WaiterState.FAILURE, reason };
|
|
386
384
|
}
|
|
387
385
|
}
|
|
388
386
|
catch (e) { }
|
|
@@ -391,7 +389,7 @@ const checkState$1 = async (client, input) => {
|
|
|
391
389
|
return result.ExportJobProperties.JobStatus;
|
|
392
390
|
};
|
|
393
391
|
if (returnComparator() === "FAILED") {
|
|
394
|
-
return { state:
|
|
392
|
+
return { state: client.WaiterState.FAILURE, reason };
|
|
395
393
|
}
|
|
396
394
|
}
|
|
397
395
|
catch (e) { }
|
|
@@ -400,7 +398,7 @@ const checkState$1 = async (client, input) => {
|
|
|
400
398
|
return result.ExportJobProperties.JobStatus;
|
|
401
399
|
};
|
|
402
400
|
if (returnComparator() === "CANCEL_FAILED") {
|
|
403
|
-
return { state:
|
|
401
|
+
return { state: client.WaiterState.FAILURE, reason };
|
|
404
402
|
}
|
|
405
403
|
}
|
|
406
404
|
catch (e) { }
|
|
@@ -408,29 +406,29 @@ const checkState$1 = async (client, input) => {
|
|
|
408
406
|
catch (exception) {
|
|
409
407
|
reason = exception;
|
|
410
408
|
}
|
|
411
|
-
return { state:
|
|
409
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
412
410
|
};
|
|
413
411
|
const waitForFHIRExportJobCompleted = async (params, input) => {
|
|
414
412
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
415
|
-
return
|
|
413
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
416
414
|
};
|
|
417
415
|
const waitUntilFHIRExportJobCompleted = async (params, input) => {
|
|
418
416
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
419
|
-
const result = await
|
|
420
|
-
return
|
|
417
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
418
|
+
return client.checkExceptions(result);
|
|
421
419
|
};
|
|
422
420
|
|
|
423
|
-
const checkState = async (client, input) => {
|
|
421
|
+
const checkState = async (client$1, input) => {
|
|
424
422
|
let reason;
|
|
425
423
|
try {
|
|
426
|
-
let result = await client.send(new DescribeFHIRImportJobCommand(input));
|
|
424
|
+
let result = await client$1.send(new DescribeFHIRImportJobCommand(input));
|
|
427
425
|
reason = result;
|
|
428
426
|
try {
|
|
429
427
|
const returnComparator = () => {
|
|
430
428
|
return result.ImportJobProperties.JobStatus;
|
|
431
429
|
};
|
|
432
430
|
if (returnComparator() === "COMPLETED") {
|
|
433
|
-
return { state:
|
|
431
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
434
432
|
}
|
|
435
433
|
}
|
|
436
434
|
catch (e) { }
|
|
@@ -439,7 +437,7 @@ const checkState = async (client, input) => {
|
|
|
439
437
|
return result.ImportJobProperties.JobStatus;
|
|
440
438
|
};
|
|
441
439
|
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
442
|
-
return { state:
|
|
440
|
+
return { state: client.WaiterState.SUCCESS, reason };
|
|
443
441
|
}
|
|
444
442
|
}
|
|
445
443
|
catch (e) { }
|
|
@@ -448,7 +446,7 @@ const checkState = async (client, input) => {
|
|
|
448
446
|
return result.ImportJobProperties.JobStatus;
|
|
449
447
|
};
|
|
450
448
|
if (returnComparator() === "FAILED") {
|
|
451
|
-
return { state:
|
|
449
|
+
return { state: client.WaiterState.FAILURE, reason };
|
|
452
450
|
}
|
|
453
451
|
}
|
|
454
452
|
catch (e) { }
|
|
@@ -456,16 +454,16 @@ const checkState = async (client, input) => {
|
|
|
456
454
|
catch (exception) {
|
|
457
455
|
reason = exception;
|
|
458
456
|
}
|
|
459
|
-
return { state:
|
|
457
|
+
return { state: client.WaiterState.RETRY, reason };
|
|
460
458
|
};
|
|
461
459
|
const waitForFHIRImportJobCompleted = async (params, input) => {
|
|
462
460
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
463
|
-
return
|
|
461
|
+
return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
464
462
|
};
|
|
465
463
|
const waitUntilFHIRImportJobCompleted = async (params, input) => {
|
|
466
464
|
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
467
|
-
const result = await
|
|
468
|
-
return
|
|
465
|
+
const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
466
|
+
return client.checkExceptions(result);
|
|
469
467
|
};
|
|
470
468
|
|
|
471
469
|
const commands = {
|
|
@@ -496,7 +494,7 @@ const waiters = {
|
|
|
496
494
|
};
|
|
497
495
|
class HealthLake extends HealthLakeClient {
|
|
498
496
|
}
|
|
499
|
-
|
|
497
|
+
client.createAggregatedClient(commands, HealthLake, { paginators, waiters });
|
|
500
498
|
|
|
501
499
|
const AuthorizationStrategy = {
|
|
502
500
|
AWS_AUTH: "AWS_AUTH",
|
|
@@ -542,8 +540,8 @@ const ValidationLevel = {
|
|
|
542
540
|
STRUCTURE_ONLY: "structure-only",
|
|
543
541
|
};
|
|
544
542
|
|
|
545
|
-
exports.$Command =
|
|
546
|
-
exports.__Client =
|
|
543
|
+
exports.$Command = client.Command;
|
|
544
|
+
exports.__Client = client.Client;
|
|
547
545
|
exports.HealthLakeServiceException = HealthLakeServiceException.HealthLakeServiceException;
|
|
548
546
|
exports.AuthorizationStrategy = AuthorizationStrategy;
|
|
549
547
|
exports.CmkType = CmkType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HealthLakeServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return
|
|
6
|
-
class HealthLakeServiceException extends
|
|
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 {
|
|
7
7
|
constructor(options) {
|
|
8
8
|
super(options);
|
|
9
9
|
Object.setPrototypeOf(this, HealthLakeServiceException.prototype);
|
|
@@ -5,34 +5,32 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
7
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
-
const
|
|
8
|
+
const client_1 = require("@smithy/core/client");
|
|
9
|
+
const config_1 = require("@smithy/core/config");
|
|
10
|
+
const retry_1 = require("@smithy/core/retry");
|
|
11
|
+
const serde_1 = require("@smithy/core/serde");
|
|
9
12
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
-
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
12
|
-
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
13
|
-
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
14
|
-
const util_retry_1 = require("@smithy/util-retry");
|
|
15
13
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
14
|
const getRuntimeConfig = (config) => {
|
|
17
|
-
const defaultsMode = (0,
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
15
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(client_1.loadConfigsForDefaultMode);
|
|
19
17
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
20
18
|
return {
|
|
21
19
|
...clientSharedValues,
|
|
22
20
|
...config,
|
|
23
21
|
runtime: "browser",
|
|
24
22
|
defaultsMode,
|
|
25
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
23
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
26
24
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
25
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
|
-
maxAttempts: config?.maxAttempts ??
|
|
29
|
-
region: config?.region ?? (0,
|
|
26
|
+
maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
27
|
+
region: config?.region ?? (0, client_1.invalidProvider)("Region is missing"),
|
|
30
28
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
31
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
29
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
|
|
32
30
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
33
31
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
34
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
35
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
32
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
33
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
34
|
};
|
|
37
35
|
};
|
|
38
36
|
exports.getRuntimeConfig = getRuntimeConfig;
|