@aws-sdk/client-healthlake 3.490.0 → 3.495.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/HealthLake.js +1 -37
- package/dist-cjs/HealthLakeClient.js +1 -43
- package/dist-cjs/commands/CreateFHIRDatastoreCommand.js +1 -28
- package/dist-cjs/commands/DeleteFHIRDatastoreCommand.js +1 -28
- package/dist-cjs/commands/DescribeFHIRDatastoreCommand.js +1 -28
- package/dist-cjs/commands/DescribeFHIRExportJobCommand.js +1 -28
- package/dist-cjs/commands/DescribeFHIRImportJobCommand.js +1 -28
- package/dist-cjs/commands/ListFHIRDatastoresCommand.js +1 -28
- package/dist-cjs/commands/ListFHIRExportJobsCommand.js +1 -28
- package/dist-cjs/commands/ListFHIRImportJobsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/StartFHIRExportJobCommand.js +1 -28
- package/dist-cjs/commands/StartFHIRImportJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -16
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1516 -11
- package/dist-cjs/models/HealthLakeServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -135
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListFHIRDatastoresPaginator.js +1 -7
- package/dist-cjs/pagination/ListFHIRExportJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListFHIRImportJobsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_json1_0.js +1 -934
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,934 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartFHIRImportJobCommand = exports.de_StartFHIRExportJobCommand = exports.de_ListTagsForResourceCommand = exports.de_ListFHIRImportJobsCommand = exports.de_ListFHIRExportJobsCommand = exports.de_ListFHIRDatastoresCommand = exports.de_DescribeFHIRImportJobCommand = exports.de_DescribeFHIRExportJobCommand = exports.de_DescribeFHIRDatastoreCommand = exports.de_DeleteFHIRDatastoreCommand = exports.de_CreateFHIRDatastoreCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartFHIRImportJobCommand = exports.se_StartFHIRExportJobCommand = exports.se_ListTagsForResourceCommand = exports.se_ListFHIRImportJobsCommand = exports.se_ListFHIRExportJobsCommand = exports.se_ListFHIRDatastoresCommand = exports.se_DescribeFHIRImportJobCommand = exports.se_DescribeFHIRExportJobCommand = exports.se_DescribeFHIRDatastoreCommand = exports.se_DeleteFHIRDatastoreCommand = exports.se_CreateFHIRDatastoreCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const HealthLakeServiceException_1 = require("../models/HealthLakeServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateFHIRDatastoreCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("CreateFHIRDatastore");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(se_CreateFHIRDatastoreRequest(input, context));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_CreateFHIRDatastoreCommand = se_CreateFHIRDatastoreCommand;
|
|
17
|
-
const se_DeleteFHIRDatastoreCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("DeleteFHIRDatastore");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_DeleteFHIRDatastoreCommand = se_DeleteFHIRDatastoreCommand;
|
|
24
|
-
const se_DescribeFHIRDatastoreCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("DescribeFHIRDatastore");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_DescribeFHIRDatastoreCommand = se_DescribeFHIRDatastoreCommand;
|
|
31
|
-
const se_DescribeFHIRExportJobCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("DescribeFHIRExportJob");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_DescribeFHIRExportJobCommand = se_DescribeFHIRExportJobCommand;
|
|
38
|
-
const se_DescribeFHIRImportJobCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("DescribeFHIRImportJob");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_DescribeFHIRImportJobCommand = se_DescribeFHIRImportJobCommand;
|
|
45
|
-
const se_ListFHIRDatastoresCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("ListFHIRDatastores");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify(se_ListFHIRDatastoresRequest(input, context));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_ListFHIRDatastoresCommand = se_ListFHIRDatastoresCommand;
|
|
52
|
-
const se_ListFHIRExportJobsCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("ListFHIRExportJobs");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify(se_ListFHIRExportJobsRequest(input, context));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_ListFHIRExportJobsCommand = se_ListFHIRExportJobsCommand;
|
|
59
|
-
const se_ListFHIRImportJobsCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("ListFHIRImportJobs");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify(se_ListFHIRImportJobsRequest(input, context));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_ListFHIRImportJobsCommand = se_ListFHIRImportJobsCommand;
|
|
66
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
73
|
-
const se_StartFHIRExportJobCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("StartFHIRExportJob");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(se_StartFHIRExportJobRequest(input, context));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_StartFHIRExportJobCommand = se_StartFHIRExportJobCommand;
|
|
80
|
-
const se_StartFHIRImportJobCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("StartFHIRImportJob");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify(se_StartFHIRImportJobRequest(input, context));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_StartFHIRImportJobCommand = se_StartFHIRImportJobCommand;
|
|
87
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("TagResource");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
94
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
95
|
-
const headers = sharedHeaders("UntagResource");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
-
};
|
|
100
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
101
|
-
const de_CreateFHIRDatastoreCommand = async (output, context) => {
|
|
102
|
-
if (output.statusCode >= 300) {
|
|
103
|
-
return de_CreateFHIRDatastoreCommandError(output, context);
|
|
104
|
-
}
|
|
105
|
-
const data = await parseBody(output.body, context);
|
|
106
|
-
let contents = {};
|
|
107
|
-
contents = (0, smithy_client_1._json)(data);
|
|
108
|
-
const response = {
|
|
109
|
-
$metadata: deserializeMetadata(output),
|
|
110
|
-
...contents,
|
|
111
|
-
};
|
|
112
|
-
return response;
|
|
113
|
-
};
|
|
114
|
-
exports.de_CreateFHIRDatastoreCommand = de_CreateFHIRDatastoreCommand;
|
|
115
|
-
const de_CreateFHIRDatastoreCommandError = async (output, context) => {
|
|
116
|
-
const parsedOutput = {
|
|
117
|
-
...output,
|
|
118
|
-
body: await parseErrorBody(output.body, context),
|
|
119
|
-
};
|
|
120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
121
|
-
switch (errorCode) {
|
|
122
|
-
case "AccessDeniedException":
|
|
123
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
124
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
125
|
-
case "InternalServerException":
|
|
126
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
127
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
128
|
-
case "ThrottlingException":
|
|
129
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
130
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
131
|
-
case "ValidationException":
|
|
132
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
133
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
134
|
-
default:
|
|
135
|
-
const parsedBody = parsedOutput.body;
|
|
136
|
-
return throwDefaultError({
|
|
137
|
-
output,
|
|
138
|
-
parsedBody,
|
|
139
|
-
errorCode,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
const de_DeleteFHIRDatastoreCommand = async (output, context) => {
|
|
144
|
-
if (output.statusCode >= 300) {
|
|
145
|
-
return de_DeleteFHIRDatastoreCommandError(output, context);
|
|
146
|
-
}
|
|
147
|
-
const data = await parseBody(output.body, context);
|
|
148
|
-
let contents = {};
|
|
149
|
-
contents = (0, smithy_client_1._json)(data);
|
|
150
|
-
const response = {
|
|
151
|
-
$metadata: deserializeMetadata(output),
|
|
152
|
-
...contents,
|
|
153
|
-
};
|
|
154
|
-
return response;
|
|
155
|
-
};
|
|
156
|
-
exports.de_DeleteFHIRDatastoreCommand = de_DeleteFHIRDatastoreCommand;
|
|
157
|
-
const de_DeleteFHIRDatastoreCommandError = async (output, context) => {
|
|
158
|
-
const parsedOutput = {
|
|
159
|
-
...output,
|
|
160
|
-
body: await parseErrorBody(output.body, context),
|
|
161
|
-
};
|
|
162
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
163
|
-
switch (errorCode) {
|
|
164
|
-
case "AccessDeniedException":
|
|
165
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
166
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
167
|
-
case "ConflictException":
|
|
168
|
-
case "com.amazonaws.healthlake#ConflictException":
|
|
169
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
170
|
-
case "InternalServerException":
|
|
171
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
172
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
173
|
-
case "ResourceNotFoundException":
|
|
174
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
175
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
176
|
-
case "ThrottlingException":
|
|
177
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
178
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
179
|
-
case "ValidationException":
|
|
180
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
181
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
182
|
-
default:
|
|
183
|
-
const parsedBody = parsedOutput.body;
|
|
184
|
-
return throwDefaultError({
|
|
185
|
-
output,
|
|
186
|
-
parsedBody,
|
|
187
|
-
errorCode,
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
const de_DescribeFHIRDatastoreCommand = async (output, context) => {
|
|
192
|
-
if (output.statusCode >= 300) {
|
|
193
|
-
return de_DescribeFHIRDatastoreCommandError(output, context);
|
|
194
|
-
}
|
|
195
|
-
const data = await parseBody(output.body, context);
|
|
196
|
-
let contents = {};
|
|
197
|
-
contents = de_DescribeFHIRDatastoreResponse(data, context);
|
|
198
|
-
const response = {
|
|
199
|
-
$metadata: deserializeMetadata(output),
|
|
200
|
-
...contents,
|
|
201
|
-
};
|
|
202
|
-
return response;
|
|
203
|
-
};
|
|
204
|
-
exports.de_DescribeFHIRDatastoreCommand = de_DescribeFHIRDatastoreCommand;
|
|
205
|
-
const de_DescribeFHIRDatastoreCommandError = async (output, context) => {
|
|
206
|
-
const parsedOutput = {
|
|
207
|
-
...output,
|
|
208
|
-
body: await parseErrorBody(output.body, context),
|
|
209
|
-
};
|
|
210
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
211
|
-
switch (errorCode) {
|
|
212
|
-
case "InternalServerException":
|
|
213
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
214
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
215
|
-
case "ResourceNotFoundException":
|
|
216
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
217
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
218
|
-
case "ThrottlingException":
|
|
219
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
220
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
221
|
-
case "ValidationException":
|
|
222
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
223
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
224
|
-
default:
|
|
225
|
-
const parsedBody = parsedOutput.body;
|
|
226
|
-
return throwDefaultError({
|
|
227
|
-
output,
|
|
228
|
-
parsedBody,
|
|
229
|
-
errorCode,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
const de_DescribeFHIRExportJobCommand = async (output, context) => {
|
|
234
|
-
if (output.statusCode >= 300) {
|
|
235
|
-
return de_DescribeFHIRExportJobCommandError(output, context);
|
|
236
|
-
}
|
|
237
|
-
const data = await parseBody(output.body, context);
|
|
238
|
-
let contents = {};
|
|
239
|
-
contents = de_DescribeFHIRExportJobResponse(data, context);
|
|
240
|
-
const response = {
|
|
241
|
-
$metadata: deserializeMetadata(output),
|
|
242
|
-
...contents,
|
|
243
|
-
};
|
|
244
|
-
return response;
|
|
245
|
-
};
|
|
246
|
-
exports.de_DescribeFHIRExportJobCommand = de_DescribeFHIRExportJobCommand;
|
|
247
|
-
const de_DescribeFHIRExportJobCommandError = async (output, context) => {
|
|
248
|
-
const parsedOutput = {
|
|
249
|
-
...output,
|
|
250
|
-
body: await parseErrorBody(output.body, context),
|
|
251
|
-
};
|
|
252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
253
|
-
switch (errorCode) {
|
|
254
|
-
case "InternalServerException":
|
|
255
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
256
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
257
|
-
case "ResourceNotFoundException":
|
|
258
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
259
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
260
|
-
case "ThrottlingException":
|
|
261
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
262
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
263
|
-
case "ValidationException":
|
|
264
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
265
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
266
|
-
default:
|
|
267
|
-
const parsedBody = parsedOutput.body;
|
|
268
|
-
return throwDefaultError({
|
|
269
|
-
output,
|
|
270
|
-
parsedBody,
|
|
271
|
-
errorCode,
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
const de_DescribeFHIRImportJobCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode >= 300) {
|
|
277
|
-
return de_DescribeFHIRImportJobCommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const data = await parseBody(output.body, context);
|
|
280
|
-
let contents = {};
|
|
281
|
-
contents = de_DescribeFHIRImportJobResponse(data, context);
|
|
282
|
-
const response = {
|
|
283
|
-
$metadata: deserializeMetadata(output),
|
|
284
|
-
...contents,
|
|
285
|
-
};
|
|
286
|
-
return response;
|
|
287
|
-
};
|
|
288
|
-
exports.de_DescribeFHIRImportJobCommand = de_DescribeFHIRImportJobCommand;
|
|
289
|
-
const de_DescribeFHIRImportJobCommandError = async (output, context) => {
|
|
290
|
-
const parsedOutput = {
|
|
291
|
-
...output,
|
|
292
|
-
body: await parseErrorBody(output.body, context),
|
|
293
|
-
};
|
|
294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
295
|
-
switch (errorCode) {
|
|
296
|
-
case "InternalServerException":
|
|
297
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
298
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
299
|
-
case "ResourceNotFoundException":
|
|
300
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
301
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
302
|
-
case "ThrottlingException":
|
|
303
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
304
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
305
|
-
case "ValidationException":
|
|
306
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
307
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
308
|
-
default:
|
|
309
|
-
const parsedBody = parsedOutput.body;
|
|
310
|
-
return throwDefaultError({
|
|
311
|
-
output,
|
|
312
|
-
parsedBody,
|
|
313
|
-
errorCode,
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
const de_ListFHIRDatastoresCommand = async (output, context) => {
|
|
318
|
-
if (output.statusCode >= 300) {
|
|
319
|
-
return de_ListFHIRDatastoresCommandError(output, context);
|
|
320
|
-
}
|
|
321
|
-
const data = await parseBody(output.body, context);
|
|
322
|
-
let contents = {};
|
|
323
|
-
contents = de_ListFHIRDatastoresResponse(data, context);
|
|
324
|
-
const response = {
|
|
325
|
-
$metadata: deserializeMetadata(output),
|
|
326
|
-
...contents,
|
|
327
|
-
};
|
|
328
|
-
return response;
|
|
329
|
-
};
|
|
330
|
-
exports.de_ListFHIRDatastoresCommand = de_ListFHIRDatastoresCommand;
|
|
331
|
-
const de_ListFHIRDatastoresCommandError = async (output, context) => {
|
|
332
|
-
const parsedOutput = {
|
|
333
|
-
...output,
|
|
334
|
-
body: await parseErrorBody(output.body, context),
|
|
335
|
-
};
|
|
336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
337
|
-
switch (errorCode) {
|
|
338
|
-
case "InternalServerException":
|
|
339
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
340
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
341
|
-
case "ThrottlingException":
|
|
342
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
343
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
344
|
-
case "ValidationException":
|
|
345
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
346
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
347
|
-
default:
|
|
348
|
-
const parsedBody = parsedOutput.body;
|
|
349
|
-
return throwDefaultError({
|
|
350
|
-
output,
|
|
351
|
-
parsedBody,
|
|
352
|
-
errorCode,
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
const de_ListFHIRExportJobsCommand = async (output, context) => {
|
|
357
|
-
if (output.statusCode >= 300) {
|
|
358
|
-
return de_ListFHIRExportJobsCommandError(output, context);
|
|
359
|
-
}
|
|
360
|
-
const data = await parseBody(output.body, context);
|
|
361
|
-
let contents = {};
|
|
362
|
-
contents = de_ListFHIRExportJobsResponse(data, context);
|
|
363
|
-
const response = {
|
|
364
|
-
$metadata: deserializeMetadata(output),
|
|
365
|
-
...contents,
|
|
366
|
-
};
|
|
367
|
-
return response;
|
|
368
|
-
};
|
|
369
|
-
exports.de_ListFHIRExportJobsCommand = de_ListFHIRExportJobsCommand;
|
|
370
|
-
const de_ListFHIRExportJobsCommandError = async (output, context) => {
|
|
371
|
-
const parsedOutput = {
|
|
372
|
-
...output,
|
|
373
|
-
body: await parseErrorBody(output.body, context),
|
|
374
|
-
};
|
|
375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
|
-
switch (errorCode) {
|
|
377
|
-
case "AccessDeniedException":
|
|
378
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
379
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
380
|
-
case "InternalServerException":
|
|
381
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
383
|
-
case "ResourceNotFoundException":
|
|
384
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
386
|
-
case "ThrottlingException":
|
|
387
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
389
|
-
case "ValidationException":
|
|
390
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
391
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
392
|
-
default:
|
|
393
|
-
const parsedBody = parsedOutput.body;
|
|
394
|
-
return throwDefaultError({
|
|
395
|
-
output,
|
|
396
|
-
parsedBody,
|
|
397
|
-
errorCode,
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
|
-
const de_ListFHIRImportJobsCommand = async (output, context) => {
|
|
402
|
-
if (output.statusCode >= 300) {
|
|
403
|
-
return de_ListFHIRImportJobsCommandError(output, context);
|
|
404
|
-
}
|
|
405
|
-
const data = await parseBody(output.body, context);
|
|
406
|
-
let contents = {};
|
|
407
|
-
contents = de_ListFHIRImportJobsResponse(data, context);
|
|
408
|
-
const response = {
|
|
409
|
-
$metadata: deserializeMetadata(output),
|
|
410
|
-
...contents,
|
|
411
|
-
};
|
|
412
|
-
return response;
|
|
413
|
-
};
|
|
414
|
-
exports.de_ListFHIRImportJobsCommand = de_ListFHIRImportJobsCommand;
|
|
415
|
-
const de_ListFHIRImportJobsCommandError = async (output, context) => {
|
|
416
|
-
const parsedOutput = {
|
|
417
|
-
...output,
|
|
418
|
-
body: await parseErrorBody(output.body, context),
|
|
419
|
-
};
|
|
420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
421
|
-
switch (errorCode) {
|
|
422
|
-
case "AccessDeniedException":
|
|
423
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
424
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
425
|
-
case "InternalServerException":
|
|
426
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
427
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
428
|
-
case "ResourceNotFoundException":
|
|
429
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
431
|
-
case "ThrottlingException":
|
|
432
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
433
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
434
|
-
case "ValidationException":
|
|
435
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
436
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
437
|
-
default:
|
|
438
|
-
const parsedBody = parsedOutput.body;
|
|
439
|
-
return throwDefaultError({
|
|
440
|
-
output,
|
|
441
|
-
parsedBody,
|
|
442
|
-
errorCode,
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
};
|
|
446
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
447
|
-
if (output.statusCode >= 300) {
|
|
448
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
449
|
-
}
|
|
450
|
-
const data = await parseBody(output.body, context);
|
|
451
|
-
let contents = {};
|
|
452
|
-
contents = (0, smithy_client_1._json)(data);
|
|
453
|
-
const response = {
|
|
454
|
-
$metadata: deserializeMetadata(output),
|
|
455
|
-
...contents,
|
|
456
|
-
};
|
|
457
|
-
return response;
|
|
458
|
-
};
|
|
459
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
460
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
461
|
-
const parsedOutput = {
|
|
462
|
-
...output,
|
|
463
|
-
body: await parseErrorBody(output.body, context),
|
|
464
|
-
};
|
|
465
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
466
|
-
switch (errorCode) {
|
|
467
|
-
case "ResourceNotFoundException":
|
|
468
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
469
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
470
|
-
case "ValidationException":
|
|
471
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
472
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
473
|
-
default:
|
|
474
|
-
const parsedBody = parsedOutput.body;
|
|
475
|
-
return throwDefaultError({
|
|
476
|
-
output,
|
|
477
|
-
parsedBody,
|
|
478
|
-
errorCode,
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
const de_StartFHIRExportJobCommand = async (output, context) => {
|
|
483
|
-
if (output.statusCode >= 300) {
|
|
484
|
-
return de_StartFHIRExportJobCommandError(output, context);
|
|
485
|
-
}
|
|
486
|
-
const data = await parseBody(output.body, context);
|
|
487
|
-
let contents = {};
|
|
488
|
-
contents = (0, smithy_client_1._json)(data);
|
|
489
|
-
const response = {
|
|
490
|
-
$metadata: deserializeMetadata(output),
|
|
491
|
-
...contents,
|
|
492
|
-
};
|
|
493
|
-
return response;
|
|
494
|
-
};
|
|
495
|
-
exports.de_StartFHIRExportJobCommand = de_StartFHIRExportJobCommand;
|
|
496
|
-
const de_StartFHIRExportJobCommandError = async (output, context) => {
|
|
497
|
-
const parsedOutput = {
|
|
498
|
-
...output,
|
|
499
|
-
body: await parseErrorBody(output.body, context),
|
|
500
|
-
};
|
|
501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
-
switch (errorCode) {
|
|
503
|
-
case "AccessDeniedException":
|
|
504
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
505
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
506
|
-
case "InternalServerException":
|
|
507
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
508
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ResourceNotFoundException":
|
|
510
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
511
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
512
|
-
case "ThrottlingException":
|
|
513
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
514
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
515
|
-
case "ValidationException":
|
|
516
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
517
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
518
|
-
default:
|
|
519
|
-
const parsedBody = parsedOutput.body;
|
|
520
|
-
return throwDefaultError({
|
|
521
|
-
output,
|
|
522
|
-
parsedBody,
|
|
523
|
-
errorCode,
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
const de_StartFHIRImportJobCommand = async (output, context) => {
|
|
528
|
-
if (output.statusCode >= 300) {
|
|
529
|
-
return de_StartFHIRImportJobCommandError(output, context);
|
|
530
|
-
}
|
|
531
|
-
const data = await parseBody(output.body, context);
|
|
532
|
-
let contents = {};
|
|
533
|
-
contents = (0, smithy_client_1._json)(data);
|
|
534
|
-
const response = {
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
...contents,
|
|
537
|
-
};
|
|
538
|
-
return response;
|
|
539
|
-
};
|
|
540
|
-
exports.de_StartFHIRImportJobCommand = de_StartFHIRImportJobCommand;
|
|
541
|
-
const de_StartFHIRImportJobCommandError = async (output, context) => {
|
|
542
|
-
const parsedOutput = {
|
|
543
|
-
...output,
|
|
544
|
-
body: await parseErrorBody(output.body, context),
|
|
545
|
-
};
|
|
546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
-
switch (errorCode) {
|
|
548
|
-
case "AccessDeniedException":
|
|
549
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
550
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
551
|
-
case "InternalServerException":
|
|
552
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
553
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ResourceNotFoundException":
|
|
555
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ThrottlingException":
|
|
558
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
559
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ValidationException":
|
|
561
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
562
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
563
|
-
default:
|
|
564
|
-
const parsedBody = parsedOutput.body;
|
|
565
|
-
return throwDefaultError({
|
|
566
|
-
output,
|
|
567
|
-
parsedBody,
|
|
568
|
-
errorCode,
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
};
|
|
572
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
573
|
-
if (output.statusCode >= 300) {
|
|
574
|
-
return de_TagResourceCommandError(output, context);
|
|
575
|
-
}
|
|
576
|
-
const data = await parseBody(output.body, context);
|
|
577
|
-
let contents = {};
|
|
578
|
-
contents = (0, smithy_client_1._json)(data);
|
|
579
|
-
const response = {
|
|
580
|
-
$metadata: deserializeMetadata(output),
|
|
581
|
-
...contents,
|
|
582
|
-
};
|
|
583
|
-
return response;
|
|
584
|
-
};
|
|
585
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
586
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
587
|
-
const parsedOutput = {
|
|
588
|
-
...output,
|
|
589
|
-
body: await parseErrorBody(output.body, context),
|
|
590
|
-
};
|
|
591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
592
|
-
switch (errorCode) {
|
|
593
|
-
case "ResourceNotFoundException":
|
|
594
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
595
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
596
|
-
case "ValidationException":
|
|
597
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
598
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
599
|
-
default:
|
|
600
|
-
const parsedBody = parsedOutput.body;
|
|
601
|
-
return throwDefaultError({
|
|
602
|
-
output,
|
|
603
|
-
parsedBody,
|
|
604
|
-
errorCode,
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
};
|
|
608
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
609
|
-
if (output.statusCode >= 300) {
|
|
610
|
-
return de_UntagResourceCommandError(output, context);
|
|
611
|
-
}
|
|
612
|
-
const data = await parseBody(output.body, context);
|
|
613
|
-
let contents = {};
|
|
614
|
-
contents = (0, smithy_client_1._json)(data);
|
|
615
|
-
const response = {
|
|
616
|
-
$metadata: deserializeMetadata(output),
|
|
617
|
-
...contents,
|
|
618
|
-
};
|
|
619
|
-
return response;
|
|
620
|
-
};
|
|
621
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
622
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
623
|
-
const parsedOutput = {
|
|
624
|
-
...output,
|
|
625
|
-
body: await parseErrorBody(output.body, context),
|
|
626
|
-
};
|
|
627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
628
|
-
switch (errorCode) {
|
|
629
|
-
case "ResourceNotFoundException":
|
|
630
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
631
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
632
|
-
case "ValidationException":
|
|
633
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
634
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
635
|
-
default:
|
|
636
|
-
const parsedBody = parsedOutput.body;
|
|
637
|
-
return throwDefaultError({
|
|
638
|
-
output,
|
|
639
|
-
parsedBody,
|
|
640
|
-
errorCode,
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
645
|
-
const body = parsedOutput.body;
|
|
646
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
647
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
648
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
649
|
-
...deserialized,
|
|
650
|
-
});
|
|
651
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
652
|
-
};
|
|
653
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
654
|
-
const body = parsedOutput.body;
|
|
655
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
656
|
-
const exception = new models_0_1.ConflictException({
|
|
657
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
658
|
-
...deserialized,
|
|
659
|
-
});
|
|
660
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
661
|
-
};
|
|
662
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
663
|
-
const body = parsedOutput.body;
|
|
664
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
665
|
-
const exception = new models_0_1.InternalServerException({
|
|
666
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
667
|
-
...deserialized,
|
|
668
|
-
});
|
|
669
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
670
|
-
};
|
|
671
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
672
|
-
const body = parsedOutput.body;
|
|
673
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
674
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
675
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
676
|
-
...deserialized,
|
|
677
|
-
});
|
|
678
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
679
|
-
};
|
|
680
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
681
|
-
const body = parsedOutput.body;
|
|
682
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
683
|
-
const exception = new models_0_1.ThrottlingException({
|
|
684
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
685
|
-
...deserialized,
|
|
686
|
-
});
|
|
687
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
688
|
-
};
|
|
689
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
690
|
-
const body = parsedOutput.body;
|
|
691
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
692
|
-
const exception = new models_0_1.ValidationException({
|
|
693
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
694
|
-
...deserialized,
|
|
695
|
-
});
|
|
696
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
697
|
-
};
|
|
698
|
-
const se_CreateFHIRDatastoreRequest = (input, context) => {
|
|
699
|
-
return (0, smithy_client_1.take)(input, {
|
|
700
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
701
|
-
DatastoreName: [],
|
|
702
|
-
DatastoreTypeVersion: [],
|
|
703
|
-
IdentityProviderConfiguration: smithy_client_1._json,
|
|
704
|
-
PreloadDataConfig: smithy_client_1._json,
|
|
705
|
-
SseConfiguration: smithy_client_1._json,
|
|
706
|
-
Tags: smithy_client_1._json,
|
|
707
|
-
});
|
|
708
|
-
};
|
|
709
|
-
const se_DatastoreFilter = (input, context) => {
|
|
710
|
-
return (0, smithy_client_1.take)(input, {
|
|
711
|
-
CreatedAfter: (_) => Math.round(_.getTime() / 1000),
|
|
712
|
-
CreatedBefore: (_) => Math.round(_.getTime() / 1000),
|
|
713
|
-
DatastoreName: [],
|
|
714
|
-
DatastoreStatus: [],
|
|
715
|
-
});
|
|
716
|
-
};
|
|
717
|
-
const se_ListFHIRDatastoresRequest = (input, context) => {
|
|
718
|
-
return (0, smithy_client_1.take)(input, {
|
|
719
|
-
Filter: (_) => se_DatastoreFilter(_, context),
|
|
720
|
-
MaxResults: [],
|
|
721
|
-
NextToken: [],
|
|
722
|
-
});
|
|
723
|
-
};
|
|
724
|
-
const se_ListFHIRExportJobsRequest = (input, context) => {
|
|
725
|
-
return (0, smithy_client_1.take)(input, {
|
|
726
|
-
DatastoreId: [],
|
|
727
|
-
JobName: [],
|
|
728
|
-
JobStatus: [],
|
|
729
|
-
MaxResults: [],
|
|
730
|
-
NextToken: [],
|
|
731
|
-
SubmittedAfter: (_) => Math.round(_.getTime() / 1000),
|
|
732
|
-
SubmittedBefore: (_) => Math.round(_.getTime() / 1000),
|
|
733
|
-
});
|
|
734
|
-
};
|
|
735
|
-
const se_ListFHIRImportJobsRequest = (input, context) => {
|
|
736
|
-
return (0, smithy_client_1.take)(input, {
|
|
737
|
-
DatastoreId: [],
|
|
738
|
-
JobName: [],
|
|
739
|
-
JobStatus: [],
|
|
740
|
-
MaxResults: [],
|
|
741
|
-
NextToken: [],
|
|
742
|
-
SubmittedAfter: (_) => Math.round(_.getTime() / 1000),
|
|
743
|
-
SubmittedBefore: (_) => Math.round(_.getTime() / 1000),
|
|
744
|
-
});
|
|
745
|
-
};
|
|
746
|
-
const se_StartFHIRExportJobRequest = (input, context) => {
|
|
747
|
-
return (0, smithy_client_1.take)(input, {
|
|
748
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
749
|
-
DataAccessRoleArn: [],
|
|
750
|
-
DatastoreId: [],
|
|
751
|
-
JobName: [],
|
|
752
|
-
OutputDataConfig: smithy_client_1._json,
|
|
753
|
-
});
|
|
754
|
-
};
|
|
755
|
-
const se_StartFHIRImportJobRequest = (input, context) => {
|
|
756
|
-
return (0, smithy_client_1.take)(input, {
|
|
757
|
-
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
758
|
-
DataAccessRoleArn: [],
|
|
759
|
-
DatastoreId: [],
|
|
760
|
-
InputDataConfig: smithy_client_1._json,
|
|
761
|
-
JobName: [],
|
|
762
|
-
JobOutputDataConfig: smithy_client_1._json,
|
|
763
|
-
});
|
|
764
|
-
};
|
|
765
|
-
const de_DatastoreProperties = (output, context) => {
|
|
766
|
-
return (0, smithy_client_1.take)(output, {
|
|
767
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
768
|
-
DatastoreArn: smithy_client_1.expectString,
|
|
769
|
-
DatastoreEndpoint: smithy_client_1.expectString,
|
|
770
|
-
DatastoreId: smithy_client_1.expectString,
|
|
771
|
-
DatastoreName: smithy_client_1.expectString,
|
|
772
|
-
DatastoreStatus: smithy_client_1.expectString,
|
|
773
|
-
DatastoreTypeVersion: smithy_client_1.expectString,
|
|
774
|
-
IdentityProviderConfiguration: smithy_client_1._json,
|
|
775
|
-
PreloadDataConfig: smithy_client_1._json,
|
|
776
|
-
SseConfiguration: smithy_client_1._json,
|
|
777
|
-
});
|
|
778
|
-
};
|
|
779
|
-
const de_DatastorePropertiesList = (output, context) => {
|
|
780
|
-
const retVal = (output || [])
|
|
781
|
-
.filter((e) => e != null)
|
|
782
|
-
.map((entry) => {
|
|
783
|
-
return de_DatastoreProperties(entry, context);
|
|
784
|
-
});
|
|
785
|
-
return retVal;
|
|
786
|
-
};
|
|
787
|
-
const de_DescribeFHIRDatastoreResponse = (output, context) => {
|
|
788
|
-
return (0, smithy_client_1.take)(output, {
|
|
789
|
-
DatastoreProperties: (_) => de_DatastoreProperties(_, context),
|
|
790
|
-
});
|
|
791
|
-
};
|
|
792
|
-
const de_DescribeFHIRExportJobResponse = (output, context) => {
|
|
793
|
-
return (0, smithy_client_1.take)(output, {
|
|
794
|
-
ExportJobProperties: (_) => de_ExportJobProperties(_, context),
|
|
795
|
-
});
|
|
796
|
-
};
|
|
797
|
-
const de_DescribeFHIRImportJobResponse = (output, context) => {
|
|
798
|
-
return (0, smithy_client_1.take)(output, {
|
|
799
|
-
ImportJobProperties: (_) => de_ImportJobProperties(_, context),
|
|
800
|
-
});
|
|
801
|
-
};
|
|
802
|
-
const de_ExportJobProperties = (output, context) => {
|
|
803
|
-
return (0, smithy_client_1.take)(output, {
|
|
804
|
-
DataAccessRoleArn: smithy_client_1.expectString,
|
|
805
|
-
DatastoreId: smithy_client_1.expectString,
|
|
806
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
807
|
-
JobId: smithy_client_1.expectString,
|
|
808
|
-
JobName: smithy_client_1.expectString,
|
|
809
|
-
JobStatus: smithy_client_1.expectString,
|
|
810
|
-
Message: smithy_client_1.expectString,
|
|
811
|
-
OutputDataConfig: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
812
|
-
SubmitTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
813
|
-
});
|
|
814
|
-
};
|
|
815
|
-
const de_ExportJobPropertiesList = (output, context) => {
|
|
816
|
-
const retVal = (output || [])
|
|
817
|
-
.filter((e) => e != null)
|
|
818
|
-
.map((entry) => {
|
|
819
|
-
return de_ExportJobProperties(entry, context);
|
|
820
|
-
});
|
|
821
|
-
return retVal;
|
|
822
|
-
};
|
|
823
|
-
const de_ImportJobProperties = (output, context) => {
|
|
824
|
-
return (0, smithy_client_1.take)(output, {
|
|
825
|
-
DataAccessRoleArn: smithy_client_1.expectString,
|
|
826
|
-
DatastoreId: smithy_client_1.expectString,
|
|
827
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
828
|
-
InputDataConfig: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
829
|
-
JobId: smithy_client_1.expectString,
|
|
830
|
-
JobName: smithy_client_1.expectString,
|
|
831
|
-
JobOutputDataConfig: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
832
|
-
JobStatus: smithy_client_1.expectString,
|
|
833
|
-
Message: smithy_client_1.expectString,
|
|
834
|
-
SubmitTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
835
|
-
});
|
|
836
|
-
};
|
|
837
|
-
const de_ImportJobPropertiesList = (output, context) => {
|
|
838
|
-
const retVal = (output || [])
|
|
839
|
-
.filter((e) => e != null)
|
|
840
|
-
.map((entry) => {
|
|
841
|
-
return de_ImportJobProperties(entry, context);
|
|
842
|
-
});
|
|
843
|
-
return retVal;
|
|
844
|
-
};
|
|
845
|
-
const de_ListFHIRDatastoresResponse = (output, context) => {
|
|
846
|
-
return (0, smithy_client_1.take)(output, {
|
|
847
|
-
DatastorePropertiesList: (_) => de_DatastorePropertiesList(_, context),
|
|
848
|
-
NextToken: smithy_client_1.expectString,
|
|
849
|
-
});
|
|
850
|
-
};
|
|
851
|
-
const de_ListFHIRExportJobsResponse = (output, context) => {
|
|
852
|
-
return (0, smithy_client_1.take)(output, {
|
|
853
|
-
ExportJobPropertiesList: (_) => de_ExportJobPropertiesList(_, context),
|
|
854
|
-
NextToken: smithy_client_1.expectString,
|
|
855
|
-
});
|
|
856
|
-
};
|
|
857
|
-
const de_ListFHIRImportJobsResponse = (output, context) => {
|
|
858
|
-
return (0, smithy_client_1.take)(output, {
|
|
859
|
-
ImportJobPropertiesList: (_) => de_ImportJobPropertiesList(_, context),
|
|
860
|
-
NextToken: smithy_client_1.expectString,
|
|
861
|
-
});
|
|
862
|
-
};
|
|
863
|
-
const deserializeMetadata = (output) => ({
|
|
864
|
-
httpStatusCode: output.statusCode,
|
|
865
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
866
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
867
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
868
|
-
});
|
|
869
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
870
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(HealthLakeServiceException_1.HealthLakeServiceException);
|
|
871
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
872
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
873
|
-
const contents = {
|
|
874
|
-
protocol,
|
|
875
|
-
hostname,
|
|
876
|
-
port,
|
|
877
|
-
method: "POST",
|
|
878
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
879
|
-
headers,
|
|
880
|
-
};
|
|
881
|
-
if (resolvedHostname !== undefined) {
|
|
882
|
-
contents.hostname = resolvedHostname;
|
|
883
|
-
}
|
|
884
|
-
if (body !== undefined) {
|
|
885
|
-
contents.body = body;
|
|
886
|
-
}
|
|
887
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
888
|
-
};
|
|
889
|
-
function sharedHeaders(operation) {
|
|
890
|
-
return {
|
|
891
|
-
"content-type": "application/x-amz-json-1.0",
|
|
892
|
-
"x-amz-target": `HealthLake.${operation}`,
|
|
893
|
-
};
|
|
894
|
-
}
|
|
895
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
896
|
-
if (encoded.length) {
|
|
897
|
-
return JSON.parse(encoded);
|
|
898
|
-
}
|
|
899
|
-
return {};
|
|
900
|
-
});
|
|
901
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
902
|
-
const value = await parseBody(errorBody, context);
|
|
903
|
-
value.message = value.message ?? value.Message;
|
|
904
|
-
return value;
|
|
905
|
-
};
|
|
906
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
907
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
908
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
909
|
-
let cleanValue = rawValue;
|
|
910
|
-
if (typeof cleanValue === "number") {
|
|
911
|
-
cleanValue = cleanValue.toString();
|
|
912
|
-
}
|
|
913
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
914
|
-
cleanValue = cleanValue.split(",")[0];
|
|
915
|
-
}
|
|
916
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
917
|
-
cleanValue = cleanValue.split(":")[0];
|
|
918
|
-
}
|
|
919
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
920
|
-
cleanValue = cleanValue.split("#")[1];
|
|
921
|
-
}
|
|
922
|
-
return cleanValue;
|
|
923
|
-
};
|
|
924
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
925
|
-
if (headerKey !== undefined) {
|
|
926
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
927
|
-
}
|
|
928
|
-
if (data.code !== undefined) {
|
|
929
|
-
return sanitizeErrorCode(data.code);
|
|
930
|
-
}
|
|
931
|
-
if (data["__type"] !== undefined) {
|
|
932
|
-
return sanitizeErrorCode(data["__type"]);
|
|
933
|
-
}
|
|
934
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|