@aws-sdk/client-healthlake 3.901.0 → 3.907.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 +1236 -1374
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1435 +1,1297 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
ErrorCategory: () => ErrorCategory,
|
|
35
|
-
FHIRVersion: () => FHIRVersion,
|
|
36
|
-
HealthLake: () => HealthLake,
|
|
37
|
-
HealthLakeClient: () => HealthLakeClient,
|
|
38
|
-
HealthLakeServiceException: () => HealthLakeServiceException,
|
|
39
|
-
InputDataConfig: () => InputDataConfig,
|
|
40
|
-
InternalServerException: () => InternalServerException,
|
|
41
|
-
JobStatus: () => JobStatus,
|
|
42
|
-
ListFHIRDatastoresCommand: () => ListFHIRDatastoresCommand,
|
|
43
|
-
ListFHIRExportJobsCommand: () => ListFHIRExportJobsCommand,
|
|
44
|
-
ListFHIRImportJobsCommand: () => ListFHIRImportJobsCommand,
|
|
45
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
46
|
-
OutputDataConfig: () => OutputDataConfig,
|
|
47
|
-
PreloadDataType: () => PreloadDataType,
|
|
48
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
49
|
-
StartFHIRExportJobCommand: () => StartFHIRExportJobCommand,
|
|
50
|
-
StartFHIRImportJobCommand: () => StartFHIRImportJobCommand,
|
|
51
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
52
|
-
ThrottlingException: () => ThrottlingException,
|
|
53
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
54
|
-
ValidationException: () => ValidationException,
|
|
55
|
-
ValidationLevel: () => ValidationLevel,
|
|
56
|
-
__Client: () => import_smithy_client.Client,
|
|
57
|
-
paginateListFHIRDatastores: () => paginateListFHIRDatastores,
|
|
58
|
-
paginateListFHIRExportJobs: () => paginateListFHIRExportJobs,
|
|
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
|
|
68
|
-
});
|
|
69
|
-
module.exports = __toCommonJS(index_exports);
|
|
70
|
-
|
|
71
|
-
// src/HealthLakeClient.ts
|
|
72
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
73
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
74
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
75
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
76
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
77
|
-
var import_core = require("@smithy/core");
|
|
78
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
79
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
80
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
81
|
-
|
|
82
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
83
|
-
|
|
84
|
-
// src/endpoint/EndpointParameters.ts
|
|
85
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
86
|
-
return Object.assign(options, {
|
|
87
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
88
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
89
|
-
defaultSigningName: "healthlake"
|
|
90
|
-
});
|
|
91
|
-
}, "resolveClientEndpointParameters");
|
|
92
|
-
var commonParams = {
|
|
93
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
94
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
95
|
-
Region: { type: "builtInParams", name: "region" },
|
|
96
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
var utilWaiter = require('@smithy/util-waiter');
|
|
21
|
+
|
|
22
|
+
const resolveClientEndpointParameters = (options) => {
|
|
23
|
+
return Object.assign(options, {
|
|
24
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
25
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
26
|
+
defaultSigningName: "healthlake",
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const commonParams = {
|
|
30
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
31
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
32
|
+
Region: { type: "builtInParams", name: "region" },
|
|
33
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
97
34
|
};
|
|
98
35
|
|
|
99
|
-
|
|
100
|
-
|
|
36
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
37
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
38
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
39
|
+
let _credentials = runtimeConfig.credentials;
|
|
40
|
+
return {
|
|
41
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
42
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
43
|
+
if (index === -1) {
|
|
44
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
httpAuthSchemes() {
|
|
51
|
+
return _httpAuthSchemes;
|
|
52
|
+
},
|
|
53
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
54
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
55
|
+
},
|
|
56
|
+
httpAuthSchemeProvider() {
|
|
57
|
+
return _httpAuthSchemeProvider;
|
|
58
|
+
},
|
|
59
|
+
setCredentials(credentials) {
|
|
60
|
+
_credentials = credentials;
|
|
61
|
+
},
|
|
62
|
+
credentials() {
|
|
63
|
+
return _credentials;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
68
|
+
return {
|
|
69
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
70
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
71
|
+
credentials: config.credentials(),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
101
74
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
75
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
76
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
77
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
78
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
79
|
+
};
|
|
106
80
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
81
|
+
class HealthLakeClient extends smithyClient.Client {
|
|
82
|
+
config;
|
|
83
|
+
constructor(...[configuration]) {
|
|
84
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
85
|
+
super(_config_0);
|
|
86
|
+
this.initConfig = _config_0;
|
|
87
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
88
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
89
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
90
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
91
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
92
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
93
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
94
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
95
|
+
this.config = _config_8;
|
|
96
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
103
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultHealthLakeHttpAuthSchemeParametersProvider,
|
|
104
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
105
|
+
"aws.auth#sigv4": config.credentials,
|
|
106
|
+
}),
|
|
107
|
+
}));
|
|
108
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
109
|
+
}
|
|
110
|
+
destroy() {
|
|
111
|
+
super.destroy();
|
|
135
112
|
}
|
|
136
|
-
|
|
137
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
138
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
139
|
-
return {
|
|
140
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
141
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
142
|
-
credentials: config.credentials()
|
|
143
|
-
};
|
|
144
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
113
|
+
}
|
|
145
114
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
153
|
-
);
|
|
154
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
155
|
-
return Object.assign(
|
|
156
|
-
runtimeConfig,
|
|
157
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
158
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
159
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
160
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
161
|
-
);
|
|
162
|
-
}, "resolveRuntimeExtensions");
|
|
115
|
+
class HealthLakeServiceException extends smithyClient.ServiceException {
|
|
116
|
+
constructor(options) {
|
|
117
|
+
super(options);
|
|
118
|
+
Object.setPrototypeOf(this, HealthLakeServiceException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
163
121
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
183
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
184
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
185
|
-
this.config = _config_8;
|
|
186
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
187
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
188
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
189
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
190
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
191
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
192
|
-
this.middlewareStack.use(
|
|
193
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
194
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultHealthLakeHttpAuthSchemeParametersProvider,
|
|
195
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
196
|
-
"aws.auth#sigv4": config.credentials
|
|
197
|
-
}), "identityProviderConfigProvider")
|
|
198
|
-
})
|
|
199
|
-
);
|
|
200
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
204
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
205
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
206
|
-
*/
|
|
207
|
-
destroy() {
|
|
208
|
-
super.destroy();
|
|
209
|
-
}
|
|
122
|
+
class AccessDeniedException extends HealthLakeServiceException {
|
|
123
|
+
name = "AccessDeniedException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
Message;
|
|
126
|
+
constructor(opts) {
|
|
127
|
+
super({
|
|
128
|
+
name: "AccessDeniedException",
|
|
129
|
+
$fault: "client",
|
|
130
|
+
...opts,
|
|
131
|
+
});
|
|
132
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
133
|
+
this.Message = opts.Message;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
const AuthorizationStrategy = {
|
|
137
|
+
AWS_AUTH: "AWS_AUTH",
|
|
138
|
+
SMARTV1: "SMART_ON_FHIR_V1",
|
|
139
|
+
SMART_ON_FHIR: "SMART_ON_FHIR",
|
|
210
140
|
};
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
141
|
+
const CmkType = {
|
|
142
|
+
AO_CMK: "AWS_OWNED_KMS_KEY",
|
|
143
|
+
CM_CMK: "CUSTOMER_MANAGED_KMS_KEY",
|
|
144
|
+
};
|
|
145
|
+
class ConflictException extends HealthLakeServiceException {
|
|
146
|
+
name = "ConflictException";
|
|
147
|
+
$fault = "client";
|
|
148
|
+
Message;
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "ConflictException",
|
|
152
|
+
$fault: "client",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
156
|
+
this.Message = opts.Message;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const FHIRVersion = {
|
|
160
|
+
R4: "R4",
|
|
161
|
+
};
|
|
162
|
+
const PreloadDataType = {
|
|
163
|
+
SYNTHEA: "SYNTHEA",
|
|
164
|
+
};
|
|
165
|
+
const DatastoreStatus = {
|
|
166
|
+
ACTIVE: "ACTIVE",
|
|
167
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
168
|
+
CREATING: "CREATING",
|
|
169
|
+
DELETED: "DELETED",
|
|
170
|
+
DELETING: "DELETING",
|
|
171
|
+
};
|
|
172
|
+
class InternalServerException extends HealthLakeServiceException {
|
|
173
|
+
name = "InternalServerException";
|
|
174
|
+
$fault = "server";
|
|
175
|
+
Message;
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "InternalServerException",
|
|
179
|
+
$fault: "server",
|
|
180
|
+
...opts,
|
|
181
|
+
});
|
|
182
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
183
|
+
this.Message = opts.Message;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
class ThrottlingException extends HealthLakeServiceException {
|
|
187
|
+
name = "ThrottlingException";
|
|
188
|
+
$fault = "client";
|
|
189
|
+
Message;
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "ThrottlingException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
197
|
+
this.Message = opts.Message;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
class ValidationException extends HealthLakeServiceException {
|
|
201
|
+
name = "ValidationException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
Message;
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
super({
|
|
206
|
+
name: "ValidationException",
|
|
207
|
+
$fault: "client",
|
|
208
|
+
...opts,
|
|
209
|
+
});
|
|
210
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
211
|
+
this.Message = opts.Message;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
const ErrorCategory = {
|
|
215
|
+
NON_RETRYABLE_ERROR: "NON_RETRYABLE_ERROR",
|
|
216
|
+
RETRYABLE_ERROR: "RETRYABLE_ERROR",
|
|
217
|
+
};
|
|
218
|
+
class ResourceNotFoundException extends HealthLakeServiceException {
|
|
219
|
+
name = "ResourceNotFoundException";
|
|
220
|
+
$fault = "client";
|
|
221
|
+
Message;
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "ResourceNotFoundException",
|
|
225
|
+
$fault: "client",
|
|
226
|
+
...opts,
|
|
227
|
+
});
|
|
228
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
229
|
+
this.Message = opts.Message;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
const JobStatus = {
|
|
233
|
+
CANCEL_COMPLETED: "CANCEL_COMPLETED",
|
|
234
|
+
CANCEL_FAILED: "CANCEL_FAILED",
|
|
235
|
+
CANCEL_IN_PROGRESS: "CANCEL_IN_PROGRESS",
|
|
236
|
+
CANCEL_SUBMITTED: "CANCEL_SUBMITTED",
|
|
237
|
+
COMPLETED: "COMPLETED",
|
|
238
|
+
COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
|
|
239
|
+
FAILED: "FAILED",
|
|
240
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
241
|
+
QUEUED: "QUEUED",
|
|
242
|
+
SUBMITTED: "SUBMITTED",
|
|
243
|
+
};
|
|
244
|
+
exports.OutputDataConfig = void 0;
|
|
245
|
+
(function (OutputDataConfig) {
|
|
246
|
+
OutputDataConfig.visit = (value, visitor) => {
|
|
247
|
+
if (value.S3Configuration !== undefined)
|
|
248
|
+
return visitor.S3Configuration(value.S3Configuration);
|
|
249
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
250
|
+
};
|
|
251
|
+
})(exports.OutputDataConfig || (exports.OutputDataConfig = {}));
|
|
252
|
+
exports.InputDataConfig = void 0;
|
|
253
|
+
(function (InputDataConfig) {
|
|
254
|
+
InputDataConfig.visit = (value, visitor) => {
|
|
255
|
+
if (value.S3Uri !== undefined)
|
|
256
|
+
return visitor.S3Uri(value.S3Uri);
|
|
257
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
258
|
+
};
|
|
259
|
+
})(exports.InputDataConfig || (exports.InputDataConfig = {}));
|
|
260
|
+
const ValidationLevel = {
|
|
261
|
+
MINIMAL: "minimal",
|
|
262
|
+
STRICT: "strict",
|
|
263
|
+
STRUCTURE_ONLY: "structure-only",
|
|
239
264
|
};
|
|
240
265
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
266
|
+
const se_CreateFHIRDatastoreCommand = async (input, context) => {
|
|
267
|
+
const headers = sharedHeaders("CreateFHIRDatastore");
|
|
268
|
+
let body;
|
|
269
|
+
body = JSON.stringify(se_CreateFHIRDatastoreRequest(input));
|
|
270
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
271
|
+
};
|
|
272
|
+
const se_DeleteFHIRDatastoreCommand = async (input, context) => {
|
|
273
|
+
const headers = sharedHeaders("DeleteFHIRDatastore");
|
|
274
|
+
let body;
|
|
275
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
276
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
|
+
};
|
|
278
|
+
const se_DescribeFHIRDatastoreCommand = async (input, context) => {
|
|
279
|
+
const headers = sharedHeaders("DescribeFHIRDatastore");
|
|
280
|
+
let body;
|
|
281
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
282
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
|
+
};
|
|
284
|
+
const se_DescribeFHIRExportJobCommand = async (input, context) => {
|
|
285
|
+
const headers = sharedHeaders("DescribeFHIRExportJob");
|
|
286
|
+
let body;
|
|
287
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
288
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
+
};
|
|
290
|
+
const se_DescribeFHIRImportJobCommand = async (input, context) => {
|
|
291
|
+
const headers = sharedHeaders("DescribeFHIRImportJob");
|
|
292
|
+
let body;
|
|
293
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
294
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
+
};
|
|
296
|
+
const se_ListFHIRDatastoresCommand = async (input, context) => {
|
|
297
|
+
const headers = sharedHeaders("ListFHIRDatastores");
|
|
298
|
+
let body;
|
|
299
|
+
body = JSON.stringify(se_ListFHIRDatastoresRequest(input));
|
|
300
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
|
+
};
|
|
302
|
+
const se_ListFHIRExportJobsCommand = async (input, context) => {
|
|
303
|
+
const headers = sharedHeaders("ListFHIRExportJobs");
|
|
304
|
+
let body;
|
|
305
|
+
body = JSON.stringify(se_ListFHIRExportJobsRequest(input));
|
|
306
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
|
+
};
|
|
308
|
+
const se_ListFHIRImportJobsCommand = async (input, context) => {
|
|
309
|
+
const headers = sharedHeaders("ListFHIRImportJobs");
|
|
310
|
+
let body;
|
|
311
|
+
body = JSON.stringify(se_ListFHIRImportJobsRequest(input));
|
|
312
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
313
|
+
};
|
|
314
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
315
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
316
|
+
let body;
|
|
317
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
318
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
|
+
};
|
|
320
|
+
const se_StartFHIRExportJobCommand = async (input, context) => {
|
|
321
|
+
const headers = sharedHeaders("StartFHIRExportJob");
|
|
322
|
+
let body;
|
|
323
|
+
body = JSON.stringify(se_StartFHIRExportJobRequest(input));
|
|
324
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
|
+
};
|
|
326
|
+
const se_StartFHIRImportJobCommand = async (input, context) => {
|
|
327
|
+
const headers = sharedHeaders("StartFHIRImportJob");
|
|
328
|
+
let body;
|
|
329
|
+
body = JSON.stringify(se_StartFHIRImportJobRequest(input));
|
|
330
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
+
};
|
|
332
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
333
|
+
const headers = sharedHeaders("TagResource");
|
|
334
|
+
let body;
|
|
335
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
336
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
+
};
|
|
338
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
339
|
+
const headers = sharedHeaders("UntagResource");
|
|
340
|
+
let body;
|
|
341
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
342
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
343
|
+
};
|
|
344
|
+
const de_CreateFHIRDatastoreCommand = async (output, context) => {
|
|
345
|
+
if (output.statusCode >= 300) {
|
|
346
|
+
return de_CommandError(output, context);
|
|
347
|
+
}
|
|
348
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
349
|
+
let contents = {};
|
|
350
|
+
contents = smithyClient._json(data);
|
|
351
|
+
const response = {
|
|
352
|
+
$metadata: deserializeMetadata(output),
|
|
353
|
+
...contents,
|
|
354
|
+
};
|
|
355
|
+
return response;
|
|
356
|
+
};
|
|
357
|
+
const de_DeleteFHIRDatastoreCommand = async (output, context) => {
|
|
358
|
+
if (output.statusCode >= 300) {
|
|
359
|
+
return de_CommandError(output, context);
|
|
360
|
+
}
|
|
361
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
362
|
+
let contents = {};
|
|
363
|
+
contents = smithyClient._json(data);
|
|
364
|
+
const response = {
|
|
365
|
+
$metadata: deserializeMetadata(output),
|
|
366
|
+
...contents,
|
|
367
|
+
};
|
|
368
|
+
return response;
|
|
369
|
+
};
|
|
370
|
+
const de_DescribeFHIRDatastoreCommand = async (output, context) => {
|
|
371
|
+
if (output.statusCode >= 300) {
|
|
372
|
+
return de_CommandError(output, context);
|
|
373
|
+
}
|
|
374
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
375
|
+
let contents = {};
|
|
376
|
+
contents = de_DescribeFHIRDatastoreResponse(data);
|
|
377
|
+
const response = {
|
|
378
|
+
$metadata: deserializeMetadata(output),
|
|
379
|
+
...contents,
|
|
380
|
+
};
|
|
381
|
+
return response;
|
|
382
|
+
};
|
|
383
|
+
const de_DescribeFHIRExportJobCommand = async (output, context) => {
|
|
384
|
+
if (output.statusCode >= 300) {
|
|
385
|
+
return de_CommandError(output, context);
|
|
386
|
+
}
|
|
387
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
388
|
+
let contents = {};
|
|
389
|
+
contents = de_DescribeFHIRExportJobResponse(data);
|
|
390
|
+
const response = {
|
|
391
|
+
$metadata: deserializeMetadata(output),
|
|
392
|
+
...contents,
|
|
393
|
+
};
|
|
394
|
+
return response;
|
|
395
|
+
};
|
|
396
|
+
const de_DescribeFHIRImportJobCommand = async (output, context) => {
|
|
397
|
+
if (output.statusCode >= 300) {
|
|
398
|
+
return de_CommandError(output, context);
|
|
399
|
+
}
|
|
400
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
401
|
+
let contents = {};
|
|
402
|
+
contents = de_DescribeFHIRImportJobResponse(data);
|
|
403
|
+
const response = {
|
|
404
|
+
$metadata: deserializeMetadata(output),
|
|
405
|
+
...contents,
|
|
406
|
+
};
|
|
407
|
+
return response;
|
|
408
|
+
};
|
|
409
|
+
const de_ListFHIRDatastoresCommand = async (output, context) => {
|
|
410
|
+
if (output.statusCode >= 300) {
|
|
411
|
+
return de_CommandError(output, context);
|
|
412
|
+
}
|
|
413
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
414
|
+
let contents = {};
|
|
415
|
+
contents = de_ListFHIRDatastoresResponse(data);
|
|
416
|
+
const response = {
|
|
417
|
+
$metadata: deserializeMetadata(output),
|
|
418
|
+
...contents,
|
|
419
|
+
};
|
|
420
|
+
return response;
|
|
421
|
+
};
|
|
422
|
+
const de_ListFHIRExportJobsCommand = async (output, context) => {
|
|
423
|
+
if (output.statusCode >= 300) {
|
|
424
|
+
return de_CommandError(output, context);
|
|
425
|
+
}
|
|
426
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
427
|
+
let contents = {};
|
|
428
|
+
contents = de_ListFHIRExportJobsResponse(data);
|
|
429
|
+
const response = {
|
|
430
|
+
$metadata: deserializeMetadata(output),
|
|
431
|
+
...contents,
|
|
432
|
+
};
|
|
433
|
+
return response;
|
|
434
|
+
};
|
|
435
|
+
const de_ListFHIRImportJobsCommand = async (output, context) => {
|
|
436
|
+
if (output.statusCode >= 300) {
|
|
437
|
+
return de_CommandError(output, context);
|
|
438
|
+
}
|
|
439
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
440
|
+
let contents = {};
|
|
441
|
+
contents = de_ListFHIRImportJobsResponse(data);
|
|
442
|
+
const response = {
|
|
443
|
+
$metadata: deserializeMetadata(output),
|
|
444
|
+
...contents,
|
|
445
|
+
};
|
|
446
|
+
return response;
|
|
447
|
+
};
|
|
448
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
449
|
+
if (output.statusCode >= 300) {
|
|
450
|
+
return de_CommandError(output, context);
|
|
451
|
+
}
|
|
452
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
453
|
+
let contents = {};
|
|
454
|
+
contents = smithyClient._json(data);
|
|
455
|
+
const response = {
|
|
456
|
+
$metadata: deserializeMetadata(output),
|
|
457
|
+
...contents,
|
|
458
|
+
};
|
|
459
|
+
return response;
|
|
460
|
+
};
|
|
461
|
+
const de_StartFHIRExportJobCommand = async (output, context) => {
|
|
462
|
+
if (output.statusCode >= 300) {
|
|
463
|
+
return de_CommandError(output, context);
|
|
464
|
+
}
|
|
465
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
466
|
+
let contents = {};
|
|
467
|
+
contents = smithyClient._json(data);
|
|
468
|
+
const response = {
|
|
469
|
+
$metadata: deserializeMetadata(output),
|
|
470
|
+
...contents,
|
|
471
|
+
};
|
|
472
|
+
return response;
|
|
473
|
+
};
|
|
474
|
+
const de_StartFHIRImportJobCommand = async (output, context) => {
|
|
475
|
+
if (output.statusCode >= 300) {
|
|
476
|
+
return de_CommandError(output, context);
|
|
477
|
+
}
|
|
478
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
479
|
+
let contents = {};
|
|
480
|
+
contents = smithyClient._json(data);
|
|
481
|
+
const response = {
|
|
482
|
+
$metadata: deserializeMetadata(output),
|
|
483
|
+
...contents,
|
|
484
|
+
};
|
|
485
|
+
return response;
|
|
486
|
+
};
|
|
487
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
488
|
+
if (output.statusCode >= 300) {
|
|
489
|
+
return de_CommandError(output, context);
|
|
490
|
+
}
|
|
491
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
492
|
+
let contents = {};
|
|
493
|
+
contents = smithyClient._json(data);
|
|
494
|
+
const response = {
|
|
495
|
+
$metadata: deserializeMetadata(output),
|
|
496
|
+
...contents,
|
|
497
|
+
};
|
|
498
|
+
return response;
|
|
499
|
+
};
|
|
500
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
501
|
+
if (output.statusCode >= 300) {
|
|
502
|
+
return de_CommandError(output, context);
|
|
503
|
+
}
|
|
504
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
505
|
+
let contents = {};
|
|
506
|
+
contents = smithyClient._json(data);
|
|
507
|
+
const response = {
|
|
508
|
+
$metadata: deserializeMetadata(output),
|
|
509
|
+
...contents,
|
|
510
|
+
};
|
|
511
|
+
return response;
|
|
512
|
+
};
|
|
513
|
+
const de_CommandError = async (output, context) => {
|
|
514
|
+
const parsedOutput = {
|
|
515
|
+
...output,
|
|
516
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
517
|
+
};
|
|
518
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
519
|
+
switch (errorCode) {
|
|
520
|
+
case "AccessDeniedException":
|
|
521
|
+
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
522
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
523
|
+
case "InternalServerException":
|
|
524
|
+
case "com.amazonaws.healthlake#InternalServerException":
|
|
525
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
526
|
+
case "ThrottlingException":
|
|
527
|
+
case "com.amazonaws.healthlake#ThrottlingException":
|
|
528
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
529
|
+
case "ValidationException":
|
|
530
|
+
case "com.amazonaws.healthlake#ValidationException":
|
|
531
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
532
|
+
case "ConflictException":
|
|
533
|
+
case "com.amazonaws.healthlake#ConflictException":
|
|
534
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
535
|
+
case "ResourceNotFoundException":
|
|
536
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
537
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
538
|
+
default:
|
|
539
|
+
const parsedBody = parsedOutput.body;
|
|
540
|
+
return throwDefaultError({
|
|
541
|
+
output,
|
|
542
|
+
parsedBody,
|
|
543
|
+
errorCode,
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
548
|
+
const body = parsedOutput.body;
|
|
549
|
+
const deserialized = smithyClient._json(body);
|
|
550
|
+
const exception = new AccessDeniedException({
|
|
551
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
552
|
+
...deserialized,
|
|
257
553
|
});
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
};
|
|
267
|
-
var CmkType = {
|
|
268
|
-
AO_CMK: "AWS_OWNED_KMS_KEY",
|
|
269
|
-
CM_CMK: "CUSTOMER_MANAGED_KMS_KEY"
|
|
270
|
-
};
|
|
271
|
-
var ConflictException = class _ConflictException extends HealthLakeServiceException {
|
|
272
|
-
static {
|
|
273
|
-
__name(this, "ConflictException");
|
|
274
|
-
}
|
|
275
|
-
name = "ConflictException";
|
|
276
|
-
$fault = "client";
|
|
277
|
-
Message;
|
|
278
|
-
/**
|
|
279
|
-
* @internal
|
|
280
|
-
*/
|
|
281
|
-
constructor(opts) {
|
|
282
|
-
super({
|
|
283
|
-
name: "ConflictException",
|
|
284
|
-
$fault: "client",
|
|
285
|
-
...opts
|
|
554
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
555
|
+
};
|
|
556
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
557
|
+
const body = parsedOutput.body;
|
|
558
|
+
const deserialized = smithyClient._json(body);
|
|
559
|
+
const exception = new ConflictException({
|
|
560
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
561
|
+
...deserialized,
|
|
286
562
|
});
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
SYNTHEA: "SYNTHEA"
|
|
296
|
-
};
|
|
297
|
-
var DatastoreStatus = {
|
|
298
|
-
ACTIVE: "ACTIVE",
|
|
299
|
-
CREATE_FAILED: "CREATE_FAILED",
|
|
300
|
-
CREATING: "CREATING",
|
|
301
|
-
DELETED: "DELETED",
|
|
302
|
-
DELETING: "DELETING"
|
|
303
|
-
};
|
|
304
|
-
var InternalServerException = class _InternalServerException extends HealthLakeServiceException {
|
|
305
|
-
static {
|
|
306
|
-
__name(this, "InternalServerException");
|
|
307
|
-
}
|
|
308
|
-
name = "InternalServerException";
|
|
309
|
-
$fault = "server";
|
|
310
|
-
Message;
|
|
311
|
-
/**
|
|
312
|
-
* @internal
|
|
313
|
-
*/
|
|
314
|
-
constructor(opts) {
|
|
315
|
-
super({
|
|
316
|
-
name: "InternalServerException",
|
|
317
|
-
$fault: "server",
|
|
318
|
-
...opts
|
|
563
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
564
|
+
};
|
|
565
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
566
|
+
const body = parsedOutput.body;
|
|
567
|
+
const deserialized = smithyClient._json(body);
|
|
568
|
+
const exception = new InternalServerException({
|
|
569
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
570
|
+
...deserialized,
|
|
319
571
|
});
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
name = "ThrottlingException";
|
|
329
|
-
$fault = "client";
|
|
330
|
-
Message;
|
|
331
|
-
/**
|
|
332
|
-
* @internal
|
|
333
|
-
*/
|
|
334
|
-
constructor(opts) {
|
|
335
|
-
super({
|
|
336
|
-
name: "ThrottlingException",
|
|
337
|
-
$fault: "client",
|
|
338
|
-
...opts
|
|
572
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
573
|
+
};
|
|
574
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
575
|
+
const body = parsedOutput.body;
|
|
576
|
+
const deserialized = smithyClient._json(body);
|
|
577
|
+
const exception = new ResourceNotFoundException({
|
|
578
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
579
|
+
...deserialized,
|
|
339
580
|
});
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
name = "ValidationException";
|
|
349
|
-
$fault = "client";
|
|
350
|
-
Message;
|
|
351
|
-
/**
|
|
352
|
-
* @internal
|
|
353
|
-
*/
|
|
354
|
-
constructor(opts) {
|
|
355
|
-
super({
|
|
356
|
-
name: "ValidationException",
|
|
357
|
-
$fault: "client",
|
|
358
|
-
...opts
|
|
581
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
582
|
+
};
|
|
583
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
584
|
+
const body = parsedOutput.body;
|
|
585
|
+
const deserialized = smithyClient._json(body);
|
|
586
|
+
const exception = new ThrottlingException({
|
|
587
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
588
|
+
...deserialized,
|
|
359
589
|
});
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends HealthLakeServiceException {
|
|
369
|
-
static {
|
|
370
|
-
__name(this, "ResourceNotFoundException");
|
|
371
|
-
}
|
|
372
|
-
name = "ResourceNotFoundException";
|
|
373
|
-
$fault = "client";
|
|
374
|
-
Message;
|
|
375
|
-
/**
|
|
376
|
-
* @internal
|
|
377
|
-
*/
|
|
378
|
-
constructor(opts) {
|
|
379
|
-
super({
|
|
380
|
-
name: "ResourceNotFoundException",
|
|
381
|
-
$fault: "client",
|
|
382
|
-
...opts
|
|
590
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
591
|
+
};
|
|
592
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
593
|
+
const body = parsedOutput.body;
|
|
594
|
+
const deserialized = smithyClient._json(body);
|
|
595
|
+
const exception = new ValidationException({
|
|
596
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
597
|
+
...deserialized,
|
|
383
598
|
});
|
|
384
|
-
|
|
385
|
-
this.Message = opts.Message;
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
var JobStatus = {
|
|
389
|
-
CANCEL_COMPLETED: "CANCEL_COMPLETED",
|
|
390
|
-
CANCEL_FAILED: "CANCEL_FAILED",
|
|
391
|
-
CANCEL_IN_PROGRESS: "CANCEL_IN_PROGRESS",
|
|
392
|
-
CANCEL_SUBMITTED: "CANCEL_SUBMITTED",
|
|
393
|
-
COMPLETED: "COMPLETED",
|
|
394
|
-
COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS",
|
|
395
|
-
FAILED: "FAILED",
|
|
396
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
397
|
-
QUEUED: "QUEUED",
|
|
398
|
-
SUBMITTED: "SUBMITTED"
|
|
399
|
-
};
|
|
400
|
-
var OutputDataConfig;
|
|
401
|
-
((OutputDataConfig3) => {
|
|
402
|
-
OutputDataConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
403
|
-
if (value.S3Configuration !== void 0) return visitor.S3Configuration(value.S3Configuration);
|
|
404
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
405
|
-
}, "visit");
|
|
406
|
-
})(OutputDataConfig || (OutputDataConfig = {}));
|
|
407
|
-
var InputDataConfig;
|
|
408
|
-
((InputDataConfig3) => {
|
|
409
|
-
InputDataConfig3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
410
|
-
if (value.S3Uri !== void 0) return visitor.S3Uri(value.S3Uri);
|
|
411
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
412
|
-
}, "visit");
|
|
413
|
-
})(InputDataConfig || (InputDataConfig = {}));
|
|
414
|
-
var ValidationLevel = {
|
|
415
|
-
MINIMAL: "minimal",
|
|
416
|
-
STRICT: "strict",
|
|
417
|
-
STRUCTURE_ONLY: "structure-only"
|
|
599
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
418
600
|
};
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
let body;
|
|
430
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
431
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
432
|
-
}, "se_DeleteFHIRDatastoreCommand");
|
|
433
|
-
var se_DescribeFHIRDatastoreCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
434
|
-
const headers = sharedHeaders("DescribeFHIRDatastore");
|
|
435
|
-
let body;
|
|
436
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
437
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
438
|
-
}, "se_DescribeFHIRDatastoreCommand");
|
|
439
|
-
var se_DescribeFHIRExportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
440
|
-
const headers = sharedHeaders("DescribeFHIRExportJob");
|
|
441
|
-
let body;
|
|
442
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
443
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
444
|
-
}, "se_DescribeFHIRExportJobCommand");
|
|
445
|
-
var se_DescribeFHIRImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
446
|
-
const headers = sharedHeaders("DescribeFHIRImportJob");
|
|
447
|
-
let body;
|
|
448
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
449
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
450
|
-
}, "se_DescribeFHIRImportJobCommand");
|
|
451
|
-
var se_ListFHIRDatastoresCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
452
|
-
const headers = sharedHeaders("ListFHIRDatastores");
|
|
453
|
-
let body;
|
|
454
|
-
body = JSON.stringify(se_ListFHIRDatastoresRequest(input, context));
|
|
455
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
456
|
-
}, "se_ListFHIRDatastoresCommand");
|
|
457
|
-
var se_ListFHIRExportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
458
|
-
const headers = sharedHeaders("ListFHIRExportJobs");
|
|
459
|
-
let body;
|
|
460
|
-
body = JSON.stringify(se_ListFHIRExportJobsRequest(input, context));
|
|
461
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
462
|
-
}, "se_ListFHIRExportJobsCommand");
|
|
463
|
-
var se_ListFHIRImportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
464
|
-
const headers = sharedHeaders("ListFHIRImportJobs");
|
|
465
|
-
let body;
|
|
466
|
-
body = JSON.stringify(se_ListFHIRImportJobsRequest(input, context));
|
|
467
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
468
|
-
}, "se_ListFHIRImportJobsCommand");
|
|
469
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
470
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
471
|
-
let body;
|
|
472
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
473
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
474
|
-
}, "se_ListTagsForResourceCommand");
|
|
475
|
-
var se_StartFHIRExportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
476
|
-
const headers = sharedHeaders("StartFHIRExportJob");
|
|
477
|
-
let body;
|
|
478
|
-
body = JSON.stringify(se_StartFHIRExportJobRequest(input, context));
|
|
479
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
480
|
-
}, "se_StartFHIRExportJobCommand");
|
|
481
|
-
var se_StartFHIRImportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
482
|
-
const headers = sharedHeaders("StartFHIRImportJob");
|
|
483
|
-
let body;
|
|
484
|
-
body = JSON.stringify(se_StartFHIRImportJobRequest(input, context));
|
|
485
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
486
|
-
}, "se_StartFHIRImportJobCommand");
|
|
487
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
488
|
-
const headers = sharedHeaders("TagResource");
|
|
489
|
-
let body;
|
|
490
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
491
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
492
|
-
}, "se_TagResourceCommand");
|
|
493
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
494
|
-
const headers = sharedHeaders("UntagResource");
|
|
495
|
-
let body;
|
|
496
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
497
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
498
|
-
}, "se_UntagResourceCommand");
|
|
499
|
-
var de_CreateFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
500
|
-
if (output.statusCode >= 300) {
|
|
501
|
-
return de_CommandError(output, context);
|
|
502
|
-
}
|
|
503
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
504
|
-
let contents = {};
|
|
505
|
-
contents = (0, import_smithy_client._json)(data);
|
|
506
|
-
const response = {
|
|
507
|
-
$metadata: deserializeMetadata(output),
|
|
508
|
-
...contents
|
|
509
|
-
};
|
|
510
|
-
return response;
|
|
511
|
-
}, "de_CreateFHIRDatastoreCommand");
|
|
512
|
-
var de_DeleteFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
513
|
-
if (output.statusCode >= 300) {
|
|
514
|
-
return de_CommandError(output, context);
|
|
515
|
-
}
|
|
516
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
517
|
-
let contents = {};
|
|
518
|
-
contents = (0, import_smithy_client._json)(data);
|
|
519
|
-
const response = {
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
...contents
|
|
522
|
-
};
|
|
523
|
-
return response;
|
|
524
|
-
}, "de_DeleteFHIRDatastoreCommand");
|
|
525
|
-
var de_DescribeFHIRDatastoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
526
|
-
if (output.statusCode >= 300) {
|
|
527
|
-
return de_CommandError(output, context);
|
|
528
|
-
}
|
|
529
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
530
|
-
let contents = {};
|
|
531
|
-
contents = de_DescribeFHIRDatastoreResponse(data, context);
|
|
532
|
-
const response = {
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
...contents
|
|
535
|
-
};
|
|
536
|
-
return response;
|
|
537
|
-
}, "de_DescribeFHIRDatastoreCommand");
|
|
538
|
-
var de_DescribeFHIRExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
539
|
-
if (output.statusCode >= 300) {
|
|
540
|
-
return de_CommandError(output, context);
|
|
541
|
-
}
|
|
542
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
543
|
-
let contents = {};
|
|
544
|
-
contents = de_DescribeFHIRExportJobResponse(data, context);
|
|
545
|
-
const response = {
|
|
546
|
-
$metadata: deserializeMetadata(output),
|
|
547
|
-
...contents
|
|
548
|
-
};
|
|
549
|
-
return response;
|
|
550
|
-
}, "de_DescribeFHIRExportJobCommand");
|
|
551
|
-
var de_DescribeFHIRImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
552
|
-
if (output.statusCode >= 300) {
|
|
553
|
-
return de_CommandError(output, context);
|
|
554
|
-
}
|
|
555
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
556
|
-
let contents = {};
|
|
557
|
-
contents = de_DescribeFHIRImportJobResponse(data, context);
|
|
558
|
-
const response = {
|
|
559
|
-
$metadata: deserializeMetadata(output),
|
|
560
|
-
...contents
|
|
561
|
-
};
|
|
562
|
-
return response;
|
|
563
|
-
}, "de_DescribeFHIRImportJobCommand");
|
|
564
|
-
var de_ListFHIRDatastoresCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
565
|
-
if (output.statusCode >= 300) {
|
|
566
|
-
return de_CommandError(output, context);
|
|
567
|
-
}
|
|
568
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
569
|
-
let contents = {};
|
|
570
|
-
contents = de_ListFHIRDatastoresResponse(data, context);
|
|
571
|
-
const response = {
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
...contents
|
|
574
|
-
};
|
|
575
|
-
return response;
|
|
576
|
-
}, "de_ListFHIRDatastoresCommand");
|
|
577
|
-
var de_ListFHIRExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
578
|
-
if (output.statusCode >= 300) {
|
|
579
|
-
return de_CommandError(output, context);
|
|
580
|
-
}
|
|
581
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
582
|
-
let contents = {};
|
|
583
|
-
contents = de_ListFHIRExportJobsResponse(data, context);
|
|
584
|
-
const response = {
|
|
585
|
-
$metadata: deserializeMetadata(output),
|
|
586
|
-
...contents
|
|
587
|
-
};
|
|
588
|
-
return response;
|
|
589
|
-
}, "de_ListFHIRExportJobsCommand");
|
|
590
|
-
var de_ListFHIRImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
591
|
-
if (output.statusCode >= 300) {
|
|
592
|
-
return de_CommandError(output, context);
|
|
593
|
-
}
|
|
594
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
595
|
-
let contents = {};
|
|
596
|
-
contents = de_ListFHIRImportJobsResponse(data, context);
|
|
597
|
-
const response = {
|
|
598
|
-
$metadata: deserializeMetadata(output),
|
|
599
|
-
...contents
|
|
600
|
-
};
|
|
601
|
-
return response;
|
|
602
|
-
}, "de_ListFHIRImportJobsCommand");
|
|
603
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
604
|
-
if (output.statusCode >= 300) {
|
|
605
|
-
return de_CommandError(output, context);
|
|
606
|
-
}
|
|
607
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
608
|
-
let contents = {};
|
|
609
|
-
contents = (0, import_smithy_client._json)(data);
|
|
610
|
-
const response = {
|
|
611
|
-
$metadata: deserializeMetadata(output),
|
|
612
|
-
...contents
|
|
613
|
-
};
|
|
614
|
-
return response;
|
|
615
|
-
}, "de_ListTagsForResourceCommand");
|
|
616
|
-
var de_StartFHIRExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
617
|
-
if (output.statusCode >= 300) {
|
|
618
|
-
return de_CommandError(output, context);
|
|
619
|
-
}
|
|
620
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
621
|
-
let contents = {};
|
|
622
|
-
contents = (0, import_smithy_client._json)(data);
|
|
623
|
-
const response = {
|
|
624
|
-
$metadata: deserializeMetadata(output),
|
|
625
|
-
...contents
|
|
626
|
-
};
|
|
627
|
-
return response;
|
|
628
|
-
}, "de_StartFHIRExportJobCommand");
|
|
629
|
-
var de_StartFHIRImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
630
|
-
if (output.statusCode >= 300) {
|
|
631
|
-
return de_CommandError(output, context);
|
|
632
|
-
}
|
|
633
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
634
|
-
let contents = {};
|
|
635
|
-
contents = (0, import_smithy_client._json)(data);
|
|
636
|
-
const response = {
|
|
637
|
-
$metadata: deserializeMetadata(output),
|
|
638
|
-
...contents
|
|
639
|
-
};
|
|
640
|
-
return response;
|
|
641
|
-
}, "de_StartFHIRImportJobCommand");
|
|
642
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
643
|
-
if (output.statusCode >= 300) {
|
|
644
|
-
return de_CommandError(output, context);
|
|
645
|
-
}
|
|
646
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
647
|
-
let contents = {};
|
|
648
|
-
contents = (0, import_smithy_client._json)(data);
|
|
649
|
-
const response = {
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
...contents
|
|
652
|
-
};
|
|
653
|
-
return response;
|
|
654
|
-
}, "de_TagResourceCommand");
|
|
655
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
656
|
-
if (output.statusCode >= 300) {
|
|
657
|
-
return de_CommandError(output, context);
|
|
658
|
-
}
|
|
659
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
660
|
-
let contents = {};
|
|
661
|
-
contents = (0, import_smithy_client._json)(data);
|
|
662
|
-
const response = {
|
|
663
|
-
$metadata: deserializeMetadata(output),
|
|
664
|
-
...contents
|
|
665
|
-
};
|
|
666
|
-
return response;
|
|
667
|
-
}, "de_UntagResourceCommand");
|
|
668
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
669
|
-
const parsedOutput = {
|
|
670
|
-
...output,
|
|
671
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
672
|
-
};
|
|
673
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
674
|
-
switch (errorCode) {
|
|
675
|
-
case "AccessDeniedException":
|
|
676
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
677
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
678
|
-
case "InternalServerException":
|
|
679
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
680
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ThrottlingException":
|
|
682
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
683
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ValidationException":
|
|
685
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
686
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ConflictException":
|
|
688
|
-
case "com.amazonaws.healthlake#ConflictException":
|
|
689
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
690
|
-
case "ResourceNotFoundException":
|
|
691
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
692
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
693
|
-
default:
|
|
694
|
-
const parsedBody = parsedOutput.body;
|
|
695
|
-
return throwDefaultError({
|
|
696
|
-
output,
|
|
697
|
-
parsedBody,
|
|
698
|
-
errorCode
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
}, "de_CommandError");
|
|
702
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
703
|
-
const body = parsedOutput.body;
|
|
704
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
705
|
-
const exception = new AccessDeniedException({
|
|
706
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
707
|
-
...deserialized
|
|
708
|
-
});
|
|
709
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
710
|
-
}, "de_AccessDeniedExceptionRes");
|
|
711
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
712
|
-
const body = parsedOutput.body;
|
|
713
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
714
|
-
const exception = new ConflictException({
|
|
715
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
716
|
-
...deserialized
|
|
717
|
-
});
|
|
718
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
719
|
-
}, "de_ConflictExceptionRes");
|
|
720
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
721
|
-
const body = parsedOutput.body;
|
|
722
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
723
|
-
const exception = new InternalServerException({
|
|
724
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
725
|
-
...deserialized
|
|
726
|
-
});
|
|
727
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
728
|
-
}, "de_InternalServerExceptionRes");
|
|
729
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
730
|
-
const body = parsedOutput.body;
|
|
731
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
732
|
-
const exception = new ResourceNotFoundException({
|
|
733
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
734
|
-
...deserialized
|
|
735
|
-
});
|
|
736
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
737
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
738
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
739
|
-
const body = parsedOutput.body;
|
|
740
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
741
|
-
const exception = new ThrottlingException({
|
|
742
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
743
|
-
...deserialized
|
|
744
|
-
});
|
|
745
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
746
|
-
}, "de_ThrottlingExceptionRes");
|
|
747
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
748
|
-
const body = parsedOutput.body;
|
|
749
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
750
|
-
const exception = new ValidationException({
|
|
751
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
752
|
-
...deserialized
|
|
753
|
-
});
|
|
754
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
755
|
-
}, "de_ValidationExceptionRes");
|
|
756
|
-
var se_CreateFHIRDatastoreRequest = /* @__PURE__ */ __name((input, context) => {
|
|
757
|
-
return (0, import_smithy_client.take)(input, {
|
|
758
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
759
|
-
DatastoreName: [],
|
|
760
|
-
DatastoreTypeVersion: [],
|
|
761
|
-
IdentityProviderConfiguration: import_smithy_client._json,
|
|
762
|
-
PreloadDataConfig: import_smithy_client._json,
|
|
763
|
-
SseConfiguration: import_smithy_client._json,
|
|
764
|
-
Tags: import_smithy_client._json
|
|
765
|
-
});
|
|
766
|
-
}, "se_CreateFHIRDatastoreRequest");
|
|
767
|
-
var se_DatastoreFilter = /* @__PURE__ */ __name((input, context) => {
|
|
768
|
-
return (0, import_smithy_client.take)(input, {
|
|
769
|
-
CreatedAfter: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "CreatedAfter"),
|
|
770
|
-
CreatedBefore: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "CreatedBefore"),
|
|
771
|
-
DatastoreName: [],
|
|
772
|
-
DatastoreStatus: []
|
|
773
|
-
});
|
|
774
|
-
}, "se_DatastoreFilter");
|
|
775
|
-
var se_ListFHIRDatastoresRequest = /* @__PURE__ */ __name((input, context) => {
|
|
776
|
-
return (0, import_smithy_client.take)(input, {
|
|
777
|
-
Filter: /* @__PURE__ */ __name((_) => se_DatastoreFilter(_, context), "Filter"),
|
|
778
|
-
MaxResults: [],
|
|
779
|
-
NextToken: []
|
|
780
|
-
});
|
|
781
|
-
}, "se_ListFHIRDatastoresRequest");
|
|
782
|
-
var se_ListFHIRExportJobsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
783
|
-
return (0, import_smithy_client.take)(input, {
|
|
784
|
-
DatastoreId: [],
|
|
785
|
-
JobName: [],
|
|
786
|
-
JobStatus: [],
|
|
787
|
-
MaxResults: [],
|
|
788
|
-
NextToken: [],
|
|
789
|
-
SubmittedAfter: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "SubmittedAfter"),
|
|
790
|
-
SubmittedBefore: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "SubmittedBefore")
|
|
791
|
-
});
|
|
792
|
-
}, "se_ListFHIRExportJobsRequest");
|
|
793
|
-
var se_ListFHIRImportJobsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
794
|
-
return (0, import_smithy_client.take)(input, {
|
|
795
|
-
DatastoreId: [],
|
|
796
|
-
JobName: [],
|
|
797
|
-
JobStatus: [],
|
|
798
|
-
MaxResults: [],
|
|
799
|
-
NextToken: [],
|
|
800
|
-
SubmittedAfter: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "SubmittedAfter"),
|
|
801
|
-
SubmittedBefore: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "SubmittedBefore")
|
|
802
|
-
});
|
|
803
|
-
}, "se_ListFHIRImportJobsRequest");
|
|
804
|
-
var se_StartFHIRExportJobRequest = /* @__PURE__ */ __name((input, context) => {
|
|
805
|
-
return (0, import_smithy_client.take)(input, {
|
|
806
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
807
|
-
DataAccessRoleArn: [],
|
|
808
|
-
DatastoreId: [],
|
|
809
|
-
JobName: [],
|
|
810
|
-
OutputDataConfig: import_smithy_client._json
|
|
811
|
-
});
|
|
812
|
-
}, "se_StartFHIRExportJobRequest");
|
|
813
|
-
var se_StartFHIRImportJobRequest = /* @__PURE__ */ __name((input, context) => {
|
|
814
|
-
return (0, import_smithy_client.take)(input, {
|
|
815
|
-
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
816
|
-
DataAccessRoleArn: [],
|
|
817
|
-
DatastoreId: [],
|
|
818
|
-
InputDataConfig: import_smithy_client._json,
|
|
819
|
-
JobName: [],
|
|
820
|
-
JobOutputDataConfig: import_smithy_client._json,
|
|
821
|
-
ValidationLevel: []
|
|
822
|
-
});
|
|
823
|
-
}, "se_StartFHIRImportJobRequest");
|
|
824
|
-
var de_DatastoreProperties = /* @__PURE__ */ __name((output, context) => {
|
|
825
|
-
return (0, import_smithy_client.take)(output, {
|
|
826
|
-
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
827
|
-
DatastoreArn: import_smithy_client.expectString,
|
|
828
|
-
DatastoreEndpoint: import_smithy_client.expectString,
|
|
829
|
-
DatastoreId: import_smithy_client.expectString,
|
|
830
|
-
DatastoreName: import_smithy_client.expectString,
|
|
831
|
-
DatastoreStatus: import_smithy_client.expectString,
|
|
832
|
-
DatastoreTypeVersion: import_smithy_client.expectString,
|
|
833
|
-
ErrorCause: import_smithy_client._json,
|
|
834
|
-
IdentityProviderConfiguration: import_smithy_client._json,
|
|
835
|
-
PreloadDataConfig: import_smithy_client._json,
|
|
836
|
-
SseConfiguration: import_smithy_client._json
|
|
837
|
-
});
|
|
838
|
-
}, "de_DatastoreProperties");
|
|
839
|
-
var de_DatastorePropertiesList = /* @__PURE__ */ __name((output, context) => {
|
|
840
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
841
|
-
return de_DatastoreProperties(entry, context);
|
|
842
|
-
});
|
|
843
|
-
return retVal;
|
|
844
|
-
}, "de_DatastorePropertiesList");
|
|
845
|
-
var de_DescribeFHIRDatastoreResponse = /* @__PURE__ */ __name((output, context) => {
|
|
846
|
-
return (0, import_smithy_client.take)(output, {
|
|
847
|
-
DatastoreProperties: /* @__PURE__ */ __name((_) => de_DatastoreProperties(_, context), "DatastoreProperties")
|
|
848
|
-
});
|
|
849
|
-
}, "de_DescribeFHIRDatastoreResponse");
|
|
850
|
-
var de_DescribeFHIRExportJobResponse = /* @__PURE__ */ __name((output, context) => {
|
|
851
|
-
return (0, import_smithy_client.take)(output, {
|
|
852
|
-
ExportJobProperties: /* @__PURE__ */ __name((_) => de_ExportJobProperties(_, context), "ExportJobProperties")
|
|
853
|
-
});
|
|
854
|
-
}, "de_DescribeFHIRExportJobResponse");
|
|
855
|
-
var de_DescribeFHIRImportJobResponse = /* @__PURE__ */ __name((output, context) => {
|
|
856
|
-
return (0, import_smithy_client.take)(output, {
|
|
857
|
-
ImportJobProperties: /* @__PURE__ */ __name((_) => de_ImportJobProperties(_, context), "ImportJobProperties")
|
|
858
|
-
});
|
|
859
|
-
}, "de_DescribeFHIRImportJobResponse");
|
|
860
|
-
var de_ExportJobProperties = /* @__PURE__ */ __name((output, context) => {
|
|
861
|
-
return (0, import_smithy_client.take)(output, {
|
|
862
|
-
DataAccessRoleArn: import_smithy_client.expectString,
|
|
863
|
-
DatastoreId: import_smithy_client.expectString,
|
|
864
|
-
EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
|
|
865
|
-
JobId: import_smithy_client.expectString,
|
|
866
|
-
JobName: import_smithy_client.expectString,
|
|
867
|
-
JobStatus: import_smithy_client.expectString,
|
|
868
|
-
Message: import_smithy_client.expectString,
|
|
869
|
-
OutputDataConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "OutputDataConfig"),
|
|
870
|
-
SubmitTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "SubmitTime")
|
|
871
|
-
});
|
|
872
|
-
}, "de_ExportJobProperties");
|
|
873
|
-
var de_ExportJobPropertiesList = /* @__PURE__ */ __name((output, context) => {
|
|
874
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
875
|
-
return de_ExportJobProperties(entry, context);
|
|
876
|
-
});
|
|
877
|
-
return retVal;
|
|
878
|
-
}, "de_ExportJobPropertiesList");
|
|
879
|
-
var de_ImportJobProperties = /* @__PURE__ */ __name((output, context) => {
|
|
880
|
-
return (0, import_smithy_client.take)(output, {
|
|
881
|
-
DataAccessRoleArn: import_smithy_client.expectString,
|
|
882
|
-
DatastoreId: import_smithy_client.expectString,
|
|
883
|
-
EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
|
|
884
|
-
InputDataConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "InputDataConfig"),
|
|
885
|
-
JobId: import_smithy_client.expectString,
|
|
886
|
-
JobName: import_smithy_client.expectString,
|
|
887
|
-
JobOutputDataConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "JobOutputDataConfig"),
|
|
888
|
-
JobProgressReport: /* @__PURE__ */ __name((_) => de_JobProgressReport(_, context), "JobProgressReport"),
|
|
889
|
-
JobStatus: import_smithy_client.expectString,
|
|
890
|
-
Message: import_smithy_client.expectString,
|
|
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
|
|
893
|
-
});
|
|
894
|
-
}, "de_ImportJobProperties");
|
|
895
|
-
var de_ImportJobPropertiesList = /* @__PURE__ */ __name((output, context) => {
|
|
896
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
897
|
-
return de_ImportJobProperties(entry, context);
|
|
898
|
-
});
|
|
899
|
-
return retVal;
|
|
900
|
-
}, "de_ImportJobPropertiesList");
|
|
901
|
-
var de_JobProgressReport = /* @__PURE__ */ __name((output, context) => {
|
|
902
|
-
return (0, import_smithy_client.take)(output, {
|
|
903
|
-
Throughput: import_smithy_client.limitedParseDouble,
|
|
904
|
-
TotalNumberOfFilesReadWithCustomerError: import_smithy_client.expectLong,
|
|
905
|
-
TotalNumberOfImportedFiles: import_smithy_client.expectLong,
|
|
906
|
-
TotalNumberOfResourcesImported: import_smithy_client.expectLong,
|
|
907
|
-
TotalNumberOfResourcesScanned: import_smithy_client.expectLong,
|
|
908
|
-
TotalNumberOfResourcesWithCustomerError: import_smithy_client.expectLong,
|
|
909
|
-
TotalNumberOfScannedFiles: import_smithy_client.expectLong,
|
|
910
|
-
TotalSizeOfScannedFilesInMB: import_smithy_client.limitedParseDouble
|
|
911
|
-
});
|
|
912
|
-
}, "de_JobProgressReport");
|
|
913
|
-
var de_ListFHIRDatastoresResponse = /* @__PURE__ */ __name((output, context) => {
|
|
914
|
-
return (0, import_smithy_client.take)(output, {
|
|
915
|
-
DatastorePropertiesList: /* @__PURE__ */ __name((_) => de_DatastorePropertiesList(_, context), "DatastorePropertiesList"),
|
|
916
|
-
NextToken: import_smithy_client.expectString
|
|
917
|
-
});
|
|
918
|
-
}, "de_ListFHIRDatastoresResponse");
|
|
919
|
-
var de_ListFHIRExportJobsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
920
|
-
return (0, import_smithy_client.take)(output, {
|
|
921
|
-
ExportJobPropertiesList: /* @__PURE__ */ __name((_) => de_ExportJobPropertiesList(_, context), "ExportJobPropertiesList"),
|
|
922
|
-
NextToken: import_smithy_client.expectString
|
|
923
|
-
});
|
|
924
|
-
}, "de_ListFHIRExportJobsResponse");
|
|
925
|
-
var de_ListFHIRImportJobsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
926
|
-
return (0, import_smithy_client.take)(output, {
|
|
927
|
-
ImportJobPropertiesList: /* @__PURE__ */ __name((_) => de_ImportJobPropertiesList(_, context), "ImportJobPropertiesList"),
|
|
928
|
-
NextToken: import_smithy_client.expectString
|
|
929
|
-
});
|
|
930
|
-
}, "de_ListFHIRImportJobsResponse");
|
|
931
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
932
|
-
httpStatusCode: output.statusCode,
|
|
933
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
934
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
935
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
936
|
-
}), "deserializeMetadata");
|
|
937
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(HealthLakeServiceException);
|
|
938
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
939
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
940
|
-
const contents = {
|
|
941
|
-
protocol,
|
|
942
|
-
hostname,
|
|
943
|
-
port,
|
|
944
|
-
method: "POST",
|
|
945
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
946
|
-
headers
|
|
947
|
-
};
|
|
948
|
-
if (resolvedHostname !== void 0) {
|
|
949
|
-
contents.hostname = resolvedHostname;
|
|
950
|
-
}
|
|
951
|
-
if (body !== void 0) {
|
|
952
|
-
contents.body = body;
|
|
953
|
-
}
|
|
954
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
955
|
-
}, "buildHttpRpcRequest");
|
|
956
|
-
function sharedHeaders(operation) {
|
|
957
|
-
return {
|
|
958
|
-
"content-type": "application/x-amz-json-1.0",
|
|
959
|
-
"x-amz-target": `HealthLake.${operation}`
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
963
|
-
|
|
964
|
-
// src/commands/CreateFHIRDatastoreCommand.ts
|
|
965
|
-
var CreateFHIRDatastoreCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
966
|
-
return [
|
|
967
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
968
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
969
|
-
];
|
|
970
|
-
}).s("HealthLake", "CreateFHIRDatastore", {}).n("HealthLakeClient", "CreateFHIRDatastoreCommand").f(void 0, void 0).ser(se_CreateFHIRDatastoreCommand).de(de_CreateFHIRDatastoreCommand).build() {
|
|
971
|
-
static {
|
|
972
|
-
__name(this, "CreateFHIRDatastoreCommand");
|
|
973
|
-
}
|
|
601
|
+
const se_CreateFHIRDatastoreRequest = (input, context) => {
|
|
602
|
+
return smithyClient.take(input, {
|
|
603
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
604
|
+
DatastoreName: [],
|
|
605
|
+
DatastoreTypeVersion: [],
|
|
606
|
+
IdentityProviderConfiguration: smithyClient._json,
|
|
607
|
+
PreloadDataConfig: smithyClient._json,
|
|
608
|
+
SseConfiguration: smithyClient._json,
|
|
609
|
+
Tags: smithyClient._json,
|
|
610
|
+
});
|
|
974
611
|
};
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
983
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
984
|
-
];
|
|
985
|
-
}).s("HealthLake", "DeleteFHIRDatastore", {}).n("HealthLakeClient", "DeleteFHIRDatastoreCommand").f(void 0, void 0).ser(se_DeleteFHIRDatastoreCommand).de(de_DeleteFHIRDatastoreCommand).build() {
|
|
986
|
-
static {
|
|
987
|
-
__name(this, "DeleteFHIRDatastoreCommand");
|
|
988
|
-
}
|
|
612
|
+
const se_DatastoreFilter = (input, context) => {
|
|
613
|
+
return smithyClient.take(input, {
|
|
614
|
+
CreatedAfter: (_) => _.getTime() / 1_000,
|
|
615
|
+
CreatedBefore: (_) => _.getTime() / 1_000,
|
|
616
|
+
DatastoreName: [],
|
|
617
|
+
DatastoreStatus: [],
|
|
618
|
+
});
|
|
989
619
|
};
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
return [
|
|
997
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
998
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
999
|
-
];
|
|
1000
|
-
}).s("HealthLake", "DescribeFHIRDatastore", {}).n("HealthLakeClient", "DescribeFHIRDatastoreCommand").f(void 0, void 0).ser(se_DescribeFHIRDatastoreCommand).de(de_DescribeFHIRDatastoreCommand).build() {
|
|
1001
|
-
static {
|
|
1002
|
-
__name(this, "DescribeFHIRDatastoreCommand");
|
|
1003
|
-
}
|
|
620
|
+
const se_ListFHIRDatastoresRequest = (input, context) => {
|
|
621
|
+
return smithyClient.take(input, {
|
|
622
|
+
Filter: (_) => se_DatastoreFilter(_),
|
|
623
|
+
MaxResults: [],
|
|
624
|
+
NextToken: [],
|
|
625
|
+
});
|
|
1004
626
|
};
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}).s("HealthLake", "DescribeFHIRExportJob", {}).n("HealthLakeClient", "DescribeFHIRExportJobCommand").f(void 0, void 0).ser(se_DescribeFHIRExportJobCommand).de(de_DescribeFHIRExportJobCommand).build() {
|
|
1016
|
-
static {
|
|
1017
|
-
__name(this, "DescribeFHIRExportJobCommand");
|
|
1018
|
-
}
|
|
627
|
+
const se_ListFHIRExportJobsRequest = (input, context) => {
|
|
628
|
+
return smithyClient.take(input, {
|
|
629
|
+
DatastoreId: [],
|
|
630
|
+
JobName: [],
|
|
631
|
+
JobStatus: [],
|
|
632
|
+
MaxResults: [],
|
|
633
|
+
NextToken: [],
|
|
634
|
+
SubmittedAfter: (_) => _.getTime() / 1_000,
|
|
635
|
+
SubmittedBefore: (_) => _.getTime() / 1_000,
|
|
636
|
+
});
|
|
1019
637
|
};
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
}).s("HealthLake", "DescribeFHIRImportJob", {}).n("HealthLakeClient", "DescribeFHIRImportJobCommand").f(void 0, void 0).ser(se_DescribeFHIRImportJobCommand).de(de_DescribeFHIRImportJobCommand).build() {
|
|
1031
|
-
static {
|
|
1032
|
-
__name(this, "DescribeFHIRImportJobCommand");
|
|
1033
|
-
}
|
|
638
|
+
const se_ListFHIRImportJobsRequest = (input, context) => {
|
|
639
|
+
return smithyClient.take(input, {
|
|
640
|
+
DatastoreId: [],
|
|
641
|
+
JobName: [],
|
|
642
|
+
JobStatus: [],
|
|
643
|
+
MaxResults: [],
|
|
644
|
+
NextToken: [],
|
|
645
|
+
SubmittedAfter: (_) => _.getTime() / 1_000,
|
|
646
|
+
SubmittedBefore: (_) => _.getTime() / 1_000,
|
|
647
|
+
});
|
|
1034
648
|
};
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1044
|
-
];
|
|
1045
|
-
}).s("HealthLake", "ListFHIRDatastores", {}).n("HealthLakeClient", "ListFHIRDatastoresCommand").f(void 0, void 0).ser(se_ListFHIRDatastoresCommand).de(de_ListFHIRDatastoresCommand).build() {
|
|
1046
|
-
static {
|
|
1047
|
-
__name(this, "ListFHIRDatastoresCommand");
|
|
1048
|
-
}
|
|
649
|
+
const se_StartFHIRExportJobRequest = (input, context) => {
|
|
650
|
+
return smithyClient.take(input, {
|
|
651
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
652
|
+
DataAccessRoleArn: [],
|
|
653
|
+
DatastoreId: [],
|
|
654
|
+
JobName: [],
|
|
655
|
+
OutputDataConfig: smithyClient._json,
|
|
656
|
+
});
|
|
1049
657
|
};
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
}).s("HealthLake", "ListFHIRExportJobs", {}).n("HealthLakeClient", "ListFHIRExportJobsCommand").f(void 0, void 0).ser(se_ListFHIRExportJobsCommand).de(de_ListFHIRExportJobsCommand).build() {
|
|
1061
|
-
static {
|
|
1062
|
-
__name(this, "ListFHIRExportJobsCommand");
|
|
1063
|
-
}
|
|
658
|
+
const se_StartFHIRImportJobRequest = (input, context) => {
|
|
659
|
+
return smithyClient.take(input, {
|
|
660
|
+
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
661
|
+
DataAccessRoleArn: [],
|
|
662
|
+
DatastoreId: [],
|
|
663
|
+
InputDataConfig: smithyClient._json,
|
|
664
|
+
JobName: [],
|
|
665
|
+
JobOutputDataConfig: smithyClient._json,
|
|
666
|
+
ValidationLevel: [],
|
|
667
|
+
});
|
|
1064
668
|
};
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
669
|
+
const de_DatastoreProperties = (output, context) => {
|
|
670
|
+
return smithyClient.take(output, {
|
|
671
|
+
CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
672
|
+
DatastoreArn: smithyClient.expectString,
|
|
673
|
+
DatastoreEndpoint: smithyClient.expectString,
|
|
674
|
+
DatastoreId: smithyClient.expectString,
|
|
675
|
+
DatastoreName: smithyClient.expectString,
|
|
676
|
+
DatastoreStatus: smithyClient.expectString,
|
|
677
|
+
DatastoreTypeVersion: smithyClient.expectString,
|
|
678
|
+
ErrorCause: smithyClient._json,
|
|
679
|
+
IdentityProviderConfiguration: smithyClient._json,
|
|
680
|
+
PreloadDataConfig: smithyClient._json,
|
|
681
|
+
SseConfiguration: smithyClient._json,
|
|
682
|
+
});
|
|
1079
683
|
};
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1088
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1089
|
-
];
|
|
1090
|
-
}).s("HealthLake", "ListTagsForResource", {}).n("HealthLakeClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1091
|
-
static {
|
|
1092
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1093
|
-
}
|
|
684
|
+
const de_DatastorePropertiesList = (output, context) => {
|
|
685
|
+
const retVal = (output || [])
|
|
686
|
+
.filter((e) => e != null)
|
|
687
|
+
.map((entry) => {
|
|
688
|
+
return de_DatastoreProperties(entry);
|
|
689
|
+
});
|
|
690
|
+
return retVal;
|
|
1094
691
|
};
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
var StartFHIRExportJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1101
|
-
return [
|
|
1102
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1103
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1104
|
-
];
|
|
1105
|
-
}).s("HealthLake", "StartFHIRExportJob", {}).n("HealthLakeClient", "StartFHIRExportJobCommand").f(void 0, void 0).ser(se_StartFHIRExportJobCommand).de(de_StartFHIRExportJobCommand).build() {
|
|
1106
|
-
static {
|
|
1107
|
-
__name(this, "StartFHIRExportJobCommand");
|
|
1108
|
-
}
|
|
692
|
+
const de_DescribeFHIRDatastoreResponse = (output, context) => {
|
|
693
|
+
return smithyClient.take(output, {
|
|
694
|
+
DatastoreProperties: (_) => de_DatastoreProperties(_),
|
|
695
|
+
});
|
|
1109
696
|
};
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
697
|
+
const de_DescribeFHIRExportJobResponse = (output, context) => {
|
|
698
|
+
return smithyClient.take(output, {
|
|
699
|
+
ExportJobProperties: (_) => de_ExportJobProperties(_),
|
|
700
|
+
});
|
|
701
|
+
};
|
|
702
|
+
const de_DescribeFHIRImportJobResponse = (output, context) => {
|
|
703
|
+
return smithyClient.take(output, {
|
|
704
|
+
ImportJobProperties: (_) => de_ImportJobProperties(_),
|
|
705
|
+
});
|
|
706
|
+
};
|
|
707
|
+
const de_ExportJobProperties = (output, context) => {
|
|
708
|
+
return smithyClient.take(output, {
|
|
709
|
+
DataAccessRoleArn: smithyClient.expectString,
|
|
710
|
+
DatastoreId: smithyClient.expectString,
|
|
711
|
+
EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
712
|
+
JobId: smithyClient.expectString,
|
|
713
|
+
JobName: smithyClient.expectString,
|
|
714
|
+
JobStatus: smithyClient.expectString,
|
|
715
|
+
Message: smithyClient.expectString,
|
|
716
|
+
OutputDataConfig: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
717
|
+
SubmitTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
718
|
+
});
|
|
719
|
+
};
|
|
720
|
+
const de_ExportJobPropertiesList = (output, context) => {
|
|
721
|
+
const retVal = (output || [])
|
|
722
|
+
.filter((e) => e != null)
|
|
723
|
+
.map((entry) => {
|
|
724
|
+
return de_ExportJobProperties(entry);
|
|
725
|
+
});
|
|
726
|
+
return retVal;
|
|
727
|
+
};
|
|
728
|
+
const de_ImportJobProperties = (output, context) => {
|
|
729
|
+
return smithyClient.take(output, {
|
|
730
|
+
DataAccessRoleArn: smithyClient.expectString,
|
|
731
|
+
DatastoreId: smithyClient.expectString,
|
|
732
|
+
EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
733
|
+
InputDataConfig: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
734
|
+
JobId: smithyClient.expectString,
|
|
735
|
+
JobName: smithyClient.expectString,
|
|
736
|
+
JobOutputDataConfig: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
737
|
+
JobProgressReport: (_) => de_JobProgressReport(_),
|
|
738
|
+
JobStatus: smithyClient.expectString,
|
|
739
|
+
Message: smithyClient.expectString,
|
|
740
|
+
SubmitTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
741
|
+
ValidationLevel: smithyClient.expectString,
|
|
742
|
+
});
|
|
743
|
+
};
|
|
744
|
+
const de_ImportJobPropertiesList = (output, context) => {
|
|
745
|
+
const retVal = (output || [])
|
|
746
|
+
.filter((e) => e != null)
|
|
747
|
+
.map((entry) => {
|
|
748
|
+
return de_ImportJobProperties(entry);
|
|
749
|
+
});
|
|
750
|
+
return retVal;
|
|
751
|
+
};
|
|
752
|
+
const de_JobProgressReport = (output, context) => {
|
|
753
|
+
return smithyClient.take(output, {
|
|
754
|
+
Throughput: smithyClient.limitedParseDouble,
|
|
755
|
+
TotalNumberOfFilesReadWithCustomerError: smithyClient.expectLong,
|
|
756
|
+
TotalNumberOfImportedFiles: smithyClient.expectLong,
|
|
757
|
+
TotalNumberOfResourcesImported: smithyClient.expectLong,
|
|
758
|
+
TotalNumberOfResourcesScanned: smithyClient.expectLong,
|
|
759
|
+
TotalNumberOfResourcesWithCustomerError: smithyClient.expectLong,
|
|
760
|
+
TotalNumberOfScannedFiles: smithyClient.expectLong,
|
|
761
|
+
TotalSizeOfScannedFilesInMB: smithyClient.limitedParseDouble,
|
|
762
|
+
});
|
|
763
|
+
};
|
|
764
|
+
const de_ListFHIRDatastoresResponse = (output, context) => {
|
|
765
|
+
return smithyClient.take(output, {
|
|
766
|
+
DatastorePropertiesList: (_) => de_DatastorePropertiesList(_),
|
|
767
|
+
NextToken: smithyClient.expectString,
|
|
768
|
+
});
|
|
769
|
+
};
|
|
770
|
+
const de_ListFHIRExportJobsResponse = (output, context) => {
|
|
771
|
+
return smithyClient.take(output, {
|
|
772
|
+
ExportJobPropertiesList: (_) => de_ExportJobPropertiesList(_),
|
|
773
|
+
NextToken: smithyClient.expectString,
|
|
774
|
+
});
|
|
775
|
+
};
|
|
776
|
+
const de_ListFHIRImportJobsResponse = (output, context) => {
|
|
777
|
+
return smithyClient.take(output, {
|
|
778
|
+
ImportJobPropertiesList: (_) => de_ImportJobPropertiesList(_),
|
|
779
|
+
NextToken: smithyClient.expectString,
|
|
780
|
+
});
|
|
1124
781
|
};
|
|
782
|
+
const deserializeMetadata = (output) => ({
|
|
783
|
+
httpStatusCode: output.statusCode,
|
|
784
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
785
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
786
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
787
|
+
});
|
|
788
|
+
const throwDefaultError = smithyClient.withBaseException(HealthLakeServiceException);
|
|
789
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
790
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
791
|
+
const contents = {
|
|
792
|
+
protocol,
|
|
793
|
+
hostname,
|
|
794
|
+
port,
|
|
795
|
+
method: "POST",
|
|
796
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
797
|
+
headers,
|
|
798
|
+
};
|
|
799
|
+
if (body !== undefined) {
|
|
800
|
+
contents.body = body;
|
|
801
|
+
}
|
|
802
|
+
return new protocolHttp.HttpRequest(contents);
|
|
803
|
+
};
|
|
804
|
+
function sharedHeaders(operation) {
|
|
805
|
+
return {
|
|
806
|
+
"content-type": "application/x-amz-json-1.0",
|
|
807
|
+
"x-amz-target": `HealthLake.${operation}`,
|
|
808
|
+
};
|
|
809
|
+
}
|
|
1125
810
|
|
|
1126
|
-
|
|
811
|
+
class CreateFHIRDatastoreCommand extends smithyClient.Command
|
|
812
|
+
.classBuilder()
|
|
813
|
+
.ep(commonParams)
|
|
814
|
+
.m(function (Command, cs, config, o) {
|
|
815
|
+
return [
|
|
816
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
817
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
818
|
+
];
|
|
819
|
+
})
|
|
820
|
+
.s("HealthLake", "CreateFHIRDatastore", {})
|
|
821
|
+
.n("HealthLakeClient", "CreateFHIRDatastoreCommand")
|
|
822
|
+
.f(void 0, void 0)
|
|
823
|
+
.ser(se_CreateFHIRDatastoreCommand)
|
|
824
|
+
.de(de_CreateFHIRDatastoreCommand)
|
|
825
|
+
.build() {
|
|
826
|
+
}
|
|
1127
827
|
|
|
828
|
+
class DeleteFHIRDatastoreCommand extends smithyClient.Command
|
|
829
|
+
.classBuilder()
|
|
830
|
+
.ep(commonParams)
|
|
831
|
+
.m(function (Command, cs, config, o) {
|
|
832
|
+
return [
|
|
833
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
834
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
835
|
+
];
|
|
836
|
+
})
|
|
837
|
+
.s("HealthLake", "DeleteFHIRDatastore", {})
|
|
838
|
+
.n("HealthLakeClient", "DeleteFHIRDatastoreCommand")
|
|
839
|
+
.f(void 0, void 0)
|
|
840
|
+
.ser(se_DeleteFHIRDatastoreCommand)
|
|
841
|
+
.de(de_DeleteFHIRDatastoreCommand)
|
|
842
|
+
.build() {
|
|
843
|
+
}
|
|
1128
844
|
|
|
845
|
+
class DescribeFHIRDatastoreCommand extends smithyClient.Command
|
|
846
|
+
.classBuilder()
|
|
847
|
+
.ep(commonParams)
|
|
848
|
+
.m(function (Command, cs, config, o) {
|
|
849
|
+
return [
|
|
850
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
851
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
852
|
+
];
|
|
853
|
+
})
|
|
854
|
+
.s("HealthLake", "DescribeFHIRDatastore", {})
|
|
855
|
+
.n("HealthLakeClient", "DescribeFHIRDatastoreCommand")
|
|
856
|
+
.f(void 0, void 0)
|
|
857
|
+
.ser(se_DescribeFHIRDatastoreCommand)
|
|
858
|
+
.de(de_DescribeFHIRDatastoreCommand)
|
|
859
|
+
.build() {
|
|
860
|
+
}
|
|
1129
861
|
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
(
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
}
|
|
862
|
+
class DescribeFHIRExportJobCommand extends smithyClient.Command
|
|
863
|
+
.classBuilder()
|
|
864
|
+
.ep(commonParams)
|
|
865
|
+
.m(function (Command, cs, config, o) {
|
|
866
|
+
return [
|
|
867
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
868
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
869
|
+
];
|
|
870
|
+
})
|
|
871
|
+
.s("HealthLake", "DescribeFHIRExportJob", {})
|
|
872
|
+
.n("HealthLakeClient", "DescribeFHIRExportJobCommand")
|
|
873
|
+
.f(void 0, void 0)
|
|
874
|
+
.ser(se_DescribeFHIRExportJobCommand)
|
|
875
|
+
.de(de_DescribeFHIRExportJobCommand)
|
|
876
|
+
.build() {
|
|
877
|
+
}
|
|
1140
878
|
|
|
1141
|
-
|
|
879
|
+
class DescribeFHIRImportJobCommand extends smithyClient.Command
|
|
880
|
+
.classBuilder()
|
|
881
|
+
.ep(commonParams)
|
|
882
|
+
.m(function (Command, cs, config, o) {
|
|
883
|
+
return [
|
|
884
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
885
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
886
|
+
];
|
|
887
|
+
})
|
|
888
|
+
.s("HealthLake", "DescribeFHIRImportJob", {})
|
|
889
|
+
.n("HealthLakeClient", "DescribeFHIRImportJobCommand")
|
|
890
|
+
.f(void 0, void 0)
|
|
891
|
+
.ser(se_DescribeFHIRImportJobCommand)
|
|
892
|
+
.de(de_DescribeFHIRImportJobCommand)
|
|
893
|
+
.build() {
|
|
894
|
+
}
|
|
1142
895
|
|
|
896
|
+
class ListFHIRDatastoresCommand extends smithyClient.Command
|
|
897
|
+
.classBuilder()
|
|
898
|
+
.ep(commonParams)
|
|
899
|
+
.m(function (Command, cs, config, o) {
|
|
900
|
+
return [
|
|
901
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
902
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
903
|
+
];
|
|
904
|
+
})
|
|
905
|
+
.s("HealthLake", "ListFHIRDatastores", {})
|
|
906
|
+
.n("HealthLakeClient", "ListFHIRDatastoresCommand")
|
|
907
|
+
.f(void 0, void 0)
|
|
908
|
+
.ser(se_ListFHIRDatastoresCommand)
|
|
909
|
+
.de(de_ListFHIRDatastoresCommand)
|
|
910
|
+
.build() {
|
|
911
|
+
}
|
|
1143
912
|
|
|
913
|
+
class ListFHIRExportJobsCommand extends smithyClient.Command
|
|
914
|
+
.classBuilder()
|
|
915
|
+
.ep(commonParams)
|
|
916
|
+
.m(function (Command, cs, config, o) {
|
|
917
|
+
return [
|
|
918
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
919
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
920
|
+
];
|
|
921
|
+
})
|
|
922
|
+
.s("HealthLake", "ListFHIRExportJobs", {})
|
|
923
|
+
.n("HealthLakeClient", "ListFHIRExportJobsCommand")
|
|
924
|
+
.f(void 0, void 0)
|
|
925
|
+
.ser(se_ListFHIRExportJobsCommand)
|
|
926
|
+
.de(de_ListFHIRExportJobsCommand)
|
|
927
|
+
.build() {
|
|
928
|
+
}
|
|
1144
929
|
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
(
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
}
|
|
930
|
+
class ListFHIRImportJobsCommand extends smithyClient.Command
|
|
931
|
+
.classBuilder()
|
|
932
|
+
.ep(commonParams)
|
|
933
|
+
.m(function (Command, cs, config, o) {
|
|
934
|
+
return [
|
|
935
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
936
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
937
|
+
];
|
|
938
|
+
})
|
|
939
|
+
.s("HealthLake", "ListFHIRImportJobs", {})
|
|
940
|
+
.n("HealthLakeClient", "ListFHIRImportJobsCommand")
|
|
941
|
+
.f(void 0, void 0)
|
|
942
|
+
.ser(se_ListFHIRImportJobsCommand)
|
|
943
|
+
.de(de_ListFHIRImportJobsCommand)
|
|
944
|
+
.build() {
|
|
945
|
+
}
|
|
1155
946
|
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
}
|
|
1172
|
-
var HealthLake = class extends HealthLakeClient {
|
|
1173
|
-
static {
|
|
1174
|
-
__name(this, "HealthLake");
|
|
1175
|
-
}
|
|
1176
|
-
};
|
|
1177
|
-
(0, import_smithy_client.createAggregatedClient)(commands, HealthLake);
|
|
947
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
948
|
+
.classBuilder()
|
|
949
|
+
.ep(commonParams)
|
|
950
|
+
.m(function (Command, cs, config, o) {
|
|
951
|
+
return [
|
|
952
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
953
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
954
|
+
];
|
|
955
|
+
})
|
|
956
|
+
.s("HealthLake", "ListTagsForResource", {})
|
|
957
|
+
.n("HealthLakeClient", "ListTagsForResourceCommand")
|
|
958
|
+
.f(void 0, void 0)
|
|
959
|
+
.ser(se_ListTagsForResourceCommand)
|
|
960
|
+
.de(de_ListTagsForResourceCommand)
|
|
961
|
+
.build() {
|
|
962
|
+
}
|
|
1178
963
|
|
|
1179
|
-
|
|
964
|
+
class StartFHIRExportJobCommand extends smithyClient.Command
|
|
965
|
+
.classBuilder()
|
|
966
|
+
.ep(commonParams)
|
|
967
|
+
.m(function (Command, cs, config, o) {
|
|
968
|
+
return [
|
|
969
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
970
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
971
|
+
];
|
|
972
|
+
})
|
|
973
|
+
.s("HealthLake", "StartFHIRExportJob", {})
|
|
974
|
+
.n("HealthLakeClient", "StartFHIRExportJobCommand")
|
|
975
|
+
.f(void 0, void 0)
|
|
976
|
+
.ser(se_StartFHIRExportJobCommand)
|
|
977
|
+
.de(de_StartFHIRExportJobCommand)
|
|
978
|
+
.build() {
|
|
979
|
+
}
|
|
1180
980
|
|
|
1181
|
-
|
|
981
|
+
class StartFHIRImportJobCommand extends smithyClient.Command
|
|
982
|
+
.classBuilder()
|
|
983
|
+
.ep(commonParams)
|
|
984
|
+
.m(function (Command, cs, config, o) {
|
|
985
|
+
return [
|
|
986
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
987
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
988
|
+
];
|
|
989
|
+
})
|
|
990
|
+
.s("HealthLake", "StartFHIRImportJob", {})
|
|
991
|
+
.n("HealthLakeClient", "StartFHIRImportJobCommand")
|
|
992
|
+
.f(void 0, void 0)
|
|
993
|
+
.ser(se_StartFHIRImportJobCommand)
|
|
994
|
+
.de(de_StartFHIRImportJobCommand)
|
|
995
|
+
.build() {
|
|
996
|
+
}
|
|
1182
997
|
|
|
1183
|
-
|
|
998
|
+
class TagResourceCommand extends smithyClient.Command
|
|
999
|
+
.classBuilder()
|
|
1000
|
+
.ep(commonParams)
|
|
1001
|
+
.m(function (Command, cs, config, o) {
|
|
1002
|
+
return [
|
|
1003
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1004
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1005
|
+
];
|
|
1006
|
+
})
|
|
1007
|
+
.s("HealthLake", "TagResource", {})
|
|
1008
|
+
.n("HealthLakeClient", "TagResourceCommand")
|
|
1009
|
+
.f(void 0, void 0)
|
|
1010
|
+
.ser(se_TagResourceCommand)
|
|
1011
|
+
.de(de_TagResourceCommand)
|
|
1012
|
+
.build() {
|
|
1013
|
+
}
|
|
1184
1014
|
|
|
1185
|
-
|
|
1015
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1016
|
+
.classBuilder()
|
|
1017
|
+
.ep(commonParams)
|
|
1018
|
+
.m(function (Command, cs, config, o) {
|
|
1019
|
+
return [
|
|
1020
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1021
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1022
|
+
];
|
|
1023
|
+
})
|
|
1024
|
+
.s("HealthLake", "UntagResource", {})
|
|
1025
|
+
.n("HealthLakeClient", "UntagResourceCommand")
|
|
1026
|
+
.f(void 0, void 0)
|
|
1027
|
+
.ser(se_UntagResourceCommand)
|
|
1028
|
+
.de(de_UntagResourceCommand)
|
|
1029
|
+
.build() {
|
|
1030
|
+
}
|
|
1186
1031
|
|
|
1187
|
-
|
|
1032
|
+
const commands = {
|
|
1033
|
+
CreateFHIRDatastoreCommand,
|
|
1034
|
+
DeleteFHIRDatastoreCommand,
|
|
1035
|
+
DescribeFHIRDatastoreCommand,
|
|
1036
|
+
DescribeFHIRExportJobCommand,
|
|
1037
|
+
DescribeFHIRImportJobCommand,
|
|
1038
|
+
ListFHIRDatastoresCommand,
|
|
1039
|
+
ListFHIRExportJobsCommand,
|
|
1040
|
+
ListFHIRImportJobsCommand,
|
|
1041
|
+
ListTagsForResourceCommand,
|
|
1042
|
+
StartFHIRExportJobCommand,
|
|
1043
|
+
StartFHIRImportJobCommand,
|
|
1044
|
+
TagResourceCommand,
|
|
1045
|
+
UntagResourceCommand,
|
|
1046
|
+
};
|
|
1047
|
+
class HealthLake extends HealthLakeClient {
|
|
1048
|
+
}
|
|
1049
|
+
smithyClient.createAggregatedClient(commands, HealthLake);
|
|
1188
1050
|
|
|
1189
|
-
|
|
1051
|
+
const paginateListFHIRDatastores = core.createPaginator(HealthLakeClient, ListFHIRDatastoresCommand, "NextToken", "NextToken", "MaxResults");
|
|
1190
1052
|
|
|
1191
|
-
|
|
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");
|
|
1053
|
+
const paginateListFHIRExportJobs = core.createPaginator(HealthLakeClient, ListFHIRExportJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1239
1054
|
|
|
1240
|
-
|
|
1055
|
+
const paginateListFHIRImportJobs = core.createPaginator(HealthLakeClient, ListFHIRImportJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1241
1056
|
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
try {
|
|
1245
|
-
const result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
1246
|
-
reason = result;
|
|
1057
|
+
const checkState$3 = async (client, input) => {
|
|
1058
|
+
let reason;
|
|
1247
1059
|
try {
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1060
|
+
const result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
1061
|
+
reason = result;
|
|
1062
|
+
try {
|
|
1063
|
+
const returnComparator = () => {
|
|
1064
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
1065
|
+
};
|
|
1066
|
+
if (returnComparator() === "ACTIVE") {
|
|
1067
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
catch (e) { }
|
|
1071
|
+
try {
|
|
1072
|
+
const returnComparator = () => {
|
|
1073
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
1074
|
+
};
|
|
1075
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
1076
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
catch (e) { }
|
|
1080
|
+
try {
|
|
1081
|
+
const returnComparator = () => {
|
|
1082
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
1083
|
+
};
|
|
1084
|
+
if (returnComparator() === "DELETED") {
|
|
1085
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
catch (e) { }
|
|
1255
1089
|
}
|
|
1256
|
-
|
|
1257
|
-
|
|
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) {
|
|
1090
|
+
catch (exception) {
|
|
1091
|
+
reason = exception;
|
|
1286
1092
|
}
|
|
1093
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
1094
|
+
};
|
|
1095
|
+
const waitForFHIRDatastoreActive = async (params, input) => {
|
|
1096
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
1097
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
1098
|
+
};
|
|
1099
|
+
const waitUntilFHIRDatastoreActive = async (params, input) => {
|
|
1100
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 120 };
|
|
1101
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
1102
|
+
return utilWaiter.checkExceptions(result);
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
const checkState$2 = async (client, input) => {
|
|
1106
|
+
let reason;
|
|
1287
1107
|
try {
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1108
|
+
const result = await client.send(new DescribeFHIRDatastoreCommand(input));
|
|
1109
|
+
reason = result;
|
|
1110
|
+
try {
|
|
1111
|
+
const returnComparator = () => {
|
|
1112
|
+
return result.DatastoreProperties.DatastoreStatus;
|
|
1113
|
+
};
|
|
1114
|
+
if (returnComparator() === "DELETED") {
|
|
1115
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
catch (e) { }
|
|
1295
1119
|
}
|
|
1296
|
-
|
|
1297
|
-
|
|
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) {
|
|
1120
|
+
catch (exception) {
|
|
1121
|
+
reason = exception;
|
|
1304
1122
|
}
|
|
1123
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
1124
|
+
};
|
|
1125
|
+
const waitForFHIRDatastoreDeleted = async (params, input) => {
|
|
1126
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1127
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
1128
|
+
};
|
|
1129
|
+
const waitUntilFHIRDatastoreDeleted = async (params, input) => {
|
|
1130
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1131
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
1132
|
+
return utilWaiter.checkExceptions(result);
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
const checkState$1 = async (client, input) => {
|
|
1136
|
+
let reason;
|
|
1305
1137
|
try {
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1138
|
+
const result = await client.send(new DescribeFHIRExportJobCommand(input));
|
|
1139
|
+
reason = result;
|
|
1140
|
+
try {
|
|
1141
|
+
const returnComparator = () => {
|
|
1142
|
+
return result.ExportJobProperties.JobStatus;
|
|
1143
|
+
};
|
|
1144
|
+
if (returnComparator() === "COMPLETED") {
|
|
1145
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
catch (e) { }
|
|
1149
|
+
try {
|
|
1150
|
+
const returnComparator = () => {
|
|
1151
|
+
return result.ExportJobProperties.JobStatus;
|
|
1152
|
+
};
|
|
1153
|
+
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
1154
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
catch (e) { }
|
|
1158
|
+
try {
|
|
1159
|
+
const returnComparator = () => {
|
|
1160
|
+
return result.ExportJobProperties.JobStatus;
|
|
1161
|
+
};
|
|
1162
|
+
if (returnComparator() === "CANCEL_COMPLETED") {
|
|
1163
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
catch (e) { }
|
|
1167
|
+
try {
|
|
1168
|
+
const returnComparator = () => {
|
|
1169
|
+
return result.ExportJobProperties.JobStatus;
|
|
1170
|
+
};
|
|
1171
|
+
if (returnComparator() === "FAILED") {
|
|
1172
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
catch (e) { }
|
|
1176
|
+
try {
|
|
1177
|
+
const returnComparator = () => {
|
|
1178
|
+
return result.ExportJobProperties.JobStatus;
|
|
1179
|
+
};
|
|
1180
|
+
if (returnComparator() === "CANCEL_FAILED") {
|
|
1181
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
catch (e) { }
|
|
1313
1185
|
}
|
|
1314
|
-
|
|
1315
|
-
|
|
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) {
|
|
1186
|
+
catch (exception) {
|
|
1187
|
+
reason = exception;
|
|
1322
1188
|
}
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
},
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
},
|
|
1332
|
-
|
|
1333
|
-
|
|
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
|
|
1189
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
1190
|
+
};
|
|
1191
|
+
const waitForFHIRExportJobCompleted = async (params, input) => {
|
|
1192
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1193
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
1194
|
+
};
|
|
1195
|
+
const waitUntilFHIRExportJobCompleted = async (params, input) => {
|
|
1196
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1197
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
1198
|
+
return utilWaiter.checkExceptions(result);
|
|
1199
|
+
};
|
|
1339
1200
|
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
try {
|
|
1343
|
-
const result = await client.send(new DescribeFHIRImportJobCommand(input));
|
|
1344
|
-
reason = result;
|
|
1201
|
+
const checkState = async (client, input) => {
|
|
1202
|
+
let reason;
|
|
1345
1203
|
try {
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1204
|
+
const result = await client.send(new DescribeFHIRImportJobCommand(input));
|
|
1205
|
+
reason = result;
|
|
1206
|
+
try {
|
|
1207
|
+
const returnComparator = () => {
|
|
1208
|
+
return result.ImportJobProperties.JobStatus;
|
|
1209
|
+
};
|
|
1210
|
+
if (returnComparator() === "COMPLETED") {
|
|
1211
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
catch (e) { }
|
|
1215
|
+
try {
|
|
1216
|
+
const returnComparator = () => {
|
|
1217
|
+
return result.ImportJobProperties.JobStatus;
|
|
1218
|
+
};
|
|
1219
|
+
if (returnComparator() === "COMPLETED_WITH_ERRORS") {
|
|
1220
|
+
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
catch (e) { }
|
|
1224
|
+
try {
|
|
1225
|
+
const returnComparator = () => {
|
|
1226
|
+
return result.ImportJobProperties.JobStatus;
|
|
1227
|
+
};
|
|
1228
|
+
if (returnComparator() === "FAILED") {
|
|
1229
|
+
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
catch (e) { }
|
|
1353
1233
|
}
|
|
1354
|
-
|
|
1355
|
-
|
|
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) {
|
|
1234
|
+
catch (exception) {
|
|
1235
|
+
reason = exception;
|
|
1362
1236
|
}
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
|
|
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");
|
|
1386
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1237
|
+
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
1238
|
+
};
|
|
1239
|
+
const waitForFHIRImportJobCompleted = async (params, input) => {
|
|
1240
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1241
|
+
return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1242
|
+
};
|
|
1243
|
+
const waitUntilFHIRImportJobCompleted = async (params, input) => {
|
|
1244
|
+
const serviceDefaults = { minDelay: 120, maxDelay: 120 };
|
|
1245
|
+
const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
1246
|
+
return utilWaiter.checkExceptions(result);
|
|
1247
|
+
};
|
|
1387
1248
|
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
HealthLakeClient,
|
|
1392
|
-
HealthLake,
|
|
1393
|
-
$Command,
|
|
1394
|
-
CreateFHIRDatastoreCommand,
|
|
1395
|
-
DeleteFHIRDatastoreCommand,
|
|
1396
|
-
DescribeFHIRDatastoreCommand,
|
|
1397
|
-
DescribeFHIRExportJobCommand,
|
|
1398
|
-
DescribeFHIRImportJobCommand,
|
|
1399
|
-
ListFHIRDatastoresCommand,
|
|
1400
|
-
ListFHIRExportJobsCommand,
|
|
1401
|
-
ListFHIRImportJobsCommand,
|
|
1402
|
-
ListTagsForResourceCommand,
|
|
1403
|
-
StartFHIRExportJobCommand,
|
|
1404
|
-
StartFHIRImportJobCommand,
|
|
1405
|
-
TagResourceCommand,
|
|
1406
|
-
UntagResourceCommand,
|
|
1407
|
-
paginateListFHIRDatastores,
|
|
1408
|
-
paginateListFHIRExportJobs,
|
|
1409
|
-
paginateListFHIRImportJobs,
|
|
1410
|
-
waitForFHIRDatastoreActive,
|
|
1411
|
-
waitUntilFHIRDatastoreActive,
|
|
1412
|
-
waitForFHIRDatastoreDeleted,
|
|
1413
|
-
waitUntilFHIRDatastoreDeleted,
|
|
1414
|
-
waitForFHIRExportJobCompleted,
|
|
1415
|
-
waitUntilFHIRExportJobCompleted,
|
|
1416
|
-
waitForFHIRImportJobCompleted,
|
|
1417
|
-
waitUntilFHIRImportJobCompleted,
|
|
1418
|
-
AccessDeniedException,
|
|
1419
|
-
AuthorizationStrategy,
|
|
1420
|
-
CmkType,
|
|
1421
|
-
ConflictException,
|
|
1422
|
-
FHIRVersion,
|
|
1423
|
-
PreloadDataType,
|
|
1424
|
-
DatastoreStatus,
|
|
1425
|
-
InternalServerException,
|
|
1426
|
-
ThrottlingException,
|
|
1427
|
-
ValidationException,
|
|
1428
|
-
ErrorCategory,
|
|
1429
|
-
ResourceNotFoundException,
|
|
1430
|
-
JobStatus,
|
|
1431
|
-
OutputDataConfig,
|
|
1432
|
-
InputDataConfig,
|
|
1433
|
-
ValidationLevel
|
|
1249
|
+
Object.defineProperty(exports, "$Command", {
|
|
1250
|
+
enumerable: true,
|
|
1251
|
+
get: function () { return smithyClient.Command; }
|
|
1434
1252
|
});
|
|
1435
|
-
|
|
1253
|
+
Object.defineProperty(exports, "__Client", {
|
|
1254
|
+
enumerable: true,
|
|
1255
|
+
get: function () { return smithyClient.Client; }
|
|
1256
|
+
});
|
|
1257
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1258
|
+
exports.AuthorizationStrategy = AuthorizationStrategy;
|
|
1259
|
+
exports.CmkType = CmkType;
|
|
1260
|
+
exports.ConflictException = ConflictException;
|
|
1261
|
+
exports.CreateFHIRDatastoreCommand = CreateFHIRDatastoreCommand;
|
|
1262
|
+
exports.DatastoreStatus = DatastoreStatus;
|
|
1263
|
+
exports.DeleteFHIRDatastoreCommand = DeleteFHIRDatastoreCommand;
|
|
1264
|
+
exports.DescribeFHIRDatastoreCommand = DescribeFHIRDatastoreCommand;
|
|
1265
|
+
exports.DescribeFHIRExportJobCommand = DescribeFHIRExportJobCommand;
|
|
1266
|
+
exports.DescribeFHIRImportJobCommand = DescribeFHIRImportJobCommand;
|
|
1267
|
+
exports.ErrorCategory = ErrorCategory;
|
|
1268
|
+
exports.FHIRVersion = FHIRVersion;
|
|
1269
|
+
exports.HealthLake = HealthLake;
|
|
1270
|
+
exports.HealthLakeClient = HealthLakeClient;
|
|
1271
|
+
exports.HealthLakeServiceException = HealthLakeServiceException;
|
|
1272
|
+
exports.InternalServerException = InternalServerException;
|
|
1273
|
+
exports.JobStatus = JobStatus;
|
|
1274
|
+
exports.ListFHIRDatastoresCommand = ListFHIRDatastoresCommand;
|
|
1275
|
+
exports.ListFHIRExportJobsCommand = ListFHIRExportJobsCommand;
|
|
1276
|
+
exports.ListFHIRImportJobsCommand = ListFHIRImportJobsCommand;
|
|
1277
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1278
|
+
exports.PreloadDataType = PreloadDataType;
|
|
1279
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1280
|
+
exports.StartFHIRExportJobCommand = StartFHIRExportJobCommand;
|
|
1281
|
+
exports.StartFHIRImportJobCommand = StartFHIRImportJobCommand;
|
|
1282
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1283
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1284
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1285
|
+
exports.ValidationException = ValidationException;
|
|
1286
|
+
exports.ValidationLevel = ValidationLevel;
|
|
1287
|
+
exports.paginateListFHIRDatastores = paginateListFHIRDatastores;
|
|
1288
|
+
exports.paginateListFHIRExportJobs = paginateListFHIRExportJobs;
|
|
1289
|
+
exports.paginateListFHIRImportJobs = paginateListFHIRImportJobs;
|
|
1290
|
+
exports.waitForFHIRDatastoreActive = waitForFHIRDatastoreActive;
|
|
1291
|
+
exports.waitForFHIRDatastoreDeleted = waitForFHIRDatastoreDeleted;
|
|
1292
|
+
exports.waitForFHIRExportJobCompleted = waitForFHIRExportJobCompleted;
|
|
1293
|
+
exports.waitForFHIRImportJobCompleted = waitForFHIRImportJobCompleted;
|
|
1294
|
+
exports.waitUntilFHIRDatastoreActive = waitUntilFHIRDatastoreActive;
|
|
1295
|
+
exports.waitUntilFHIRDatastoreDeleted = waitUntilFHIRDatastoreDeleted;
|
|
1296
|
+
exports.waitUntilFHIRExportJobCompleted = waitUntilFHIRExportJobCompleted;
|
|
1297
|
+
exports.waitUntilFHIRImportJobCompleted = waitUntilFHIRImportJobCompleted;
|