@aws-sdk/client-healthlake 3.30.0 → 3.34.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/CHANGELOG.md +35 -0
- package/dist/cjs/HealthLakeClient.js +13 -13
- package/dist/cjs/HealthLakeClient.js.map +1 -1
- package/dist/cjs/commands/CreateFHIRDatastoreCommand.js +3 -3
- package/dist/cjs/commands/CreateFHIRDatastoreCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFHIRDatastoreCommand.js +3 -3
- package/dist/cjs/commands/DeleteFHIRDatastoreCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeFHIRDatastoreCommand.js +3 -3
- package/dist/cjs/commands/DescribeFHIRDatastoreCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeFHIRExportJobCommand.js +3 -3
- package/dist/cjs/commands/DescribeFHIRExportJobCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeFHIRImportJobCommand.js +3 -3
- package/dist/cjs/commands/DescribeFHIRImportJobCommand.js.map +1 -1
- package/dist/cjs/commands/ListFHIRDatastoresCommand.js +3 -3
- package/dist/cjs/commands/ListFHIRDatastoresCommand.js.map +1 -1
- package/dist/cjs/commands/ListFHIRExportJobsCommand.js +3 -3
- package/dist/cjs/commands/ListFHIRExportJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ListFHIRImportJobsCommand.js +3 -3
- package/dist/cjs/commands/ListFHIRImportJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/StartFHIRExportJobCommand.js +3 -3
- package/dist/cjs/commands/StartFHIRExportJobCommand.js.map +1 -1
- package/dist/cjs/commands/StartFHIRImportJobCommand.js +3 -3
- package/dist/cjs/commands/StartFHIRImportJobCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +20 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_0.js +65 -61
- package/dist/cjs/protocols/Aws_json1_0.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/HealthLake.js +1 -5
- package/dist/es/HealthLake.js.map +1 -1
- package/dist/es/HealthLakeClient.js +1 -10
- package/dist/es/HealthLakeClient.js.map +1 -1
- package/dist/es/commands/CreateFHIRDatastoreCommand.js +2 -27
- package/dist/es/commands/CreateFHIRDatastoreCommand.js.map +1 -1
- package/dist/es/commands/DeleteFHIRDatastoreCommand.js +2 -27
- package/dist/es/commands/DeleteFHIRDatastoreCommand.js.map +1 -1
- package/dist/es/commands/DescribeFHIRDatastoreCommand.js +2 -29
- package/dist/es/commands/DescribeFHIRDatastoreCommand.js.map +1 -1
- package/dist/es/commands/DescribeFHIRExportJobCommand.js +2 -27
- package/dist/es/commands/DescribeFHIRExportJobCommand.js.map +1 -1
- package/dist/es/commands/DescribeFHIRImportJobCommand.js +2 -27
- package/dist/es/commands/DescribeFHIRImportJobCommand.js.map +1 -1
- package/dist/es/commands/ListFHIRDatastoresCommand.js +2 -28
- package/dist/es/commands/ListFHIRDatastoresCommand.js.map +1 -1
- package/dist/es/commands/ListFHIRExportJobsCommand.js +2 -29
- package/dist/es/commands/ListFHIRExportJobsCommand.js.map +1 -1
- package/dist/es/commands/ListFHIRImportJobsCommand.js +2 -29
- package/dist/es/commands/ListFHIRImportJobsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -29
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/StartFHIRExportJobCommand.js +2 -27
- package/dist/es/commands/StartFHIRExportJobCommand.js.map +1 -1
- package/dist/es/commands/StartFHIRImportJobCommand.js +2 -27
- package/dist/es/commands/StartFHIRImportJobCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -29
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -29
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -129
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/ListFHIRDatastoresPaginator.js +16 -28
- package/dist/es/pagination/ListFHIRDatastoresPaginator.js.map +1 -1
- package/dist/es/pagination/ListFHIRExportJobsPaginator.js +16 -28
- package/dist/es/pagination/ListFHIRExportJobsPaginator.js.map +1 -1
- package/dist/es/pagination/ListFHIRImportJobsPaginator.js +16 -28
- package/dist/es/pagination/ListFHIRImportJobsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_0.js +316 -317
- package/dist/es/protocols/Aws_json1_0.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_json1_0.ts +19 -9
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { InputDataConfig, OutputDataConfig, } from "../models/models_0";
|
|
3
3
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
4
|
-
import { expectString as __expectString } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
5
5
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
6
6
|
export var serializeAws_json1_0CreateFHIRDatastoreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
7
|
var headers, body;
|
|
@@ -11,7 +11,7 @@ export var serializeAws_json1_0CreateFHIRDatastoreCommand = function (input, con
|
|
|
11
11
|
"x-amz-target": "HealthLake.CreateFHIRDatastore",
|
|
12
12
|
};
|
|
13
13
|
body = JSON.stringify(serializeAws_json1_0CreateFHIRDatastoreRequest(input, context));
|
|
14
|
-
return [2
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
15
|
});
|
|
16
16
|
}); };
|
|
17
17
|
export var serializeAws_json1_0DeleteFHIRDatastoreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -22,7 +22,7 @@ export var serializeAws_json1_0DeleteFHIRDatastoreCommand = function (input, con
|
|
|
22
22
|
"x-amz-target": "HealthLake.DeleteFHIRDatastore",
|
|
23
23
|
};
|
|
24
24
|
body = JSON.stringify(serializeAws_json1_0DeleteFHIRDatastoreRequest(input, context));
|
|
25
|
-
return [2
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
26
|
});
|
|
27
27
|
}); };
|
|
28
28
|
export var serializeAws_json1_0DescribeFHIRDatastoreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -33,7 +33,7 @@ export var serializeAws_json1_0DescribeFHIRDatastoreCommand = function (input, c
|
|
|
33
33
|
"x-amz-target": "HealthLake.DescribeFHIRDatastore",
|
|
34
34
|
};
|
|
35
35
|
body = JSON.stringify(serializeAws_json1_0DescribeFHIRDatastoreRequest(input, context));
|
|
36
|
-
return [2
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
37
|
});
|
|
38
38
|
}); };
|
|
39
39
|
export var serializeAws_json1_0DescribeFHIRExportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -44,7 +44,7 @@ export var serializeAws_json1_0DescribeFHIRExportJobCommand = function (input, c
|
|
|
44
44
|
"x-amz-target": "HealthLake.DescribeFHIRExportJob",
|
|
45
45
|
};
|
|
46
46
|
body = JSON.stringify(serializeAws_json1_0DescribeFHIRExportJobRequest(input, context));
|
|
47
|
-
return [2
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
48
|
});
|
|
49
49
|
}); };
|
|
50
50
|
export var serializeAws_json1_0DescribeFHIRImportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -55,7 +55,7 @@ export var serializeAws_json1_0DescribeFHIRImportJobCommand = function (input, c
|
|
|
55
55
|
"x-amz-target": "HealthLake.DescribeFHIRImportJob",
|
|
56
56
|
};
|
|
57
57
|
body = JSON.stringify(serializeAws_json1_0DescribeFHIRImportJobRequest(input, context));
|
|
58
|
-
return [2
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
59
|
});
|
|
60
60
|
}); };
|
|
61
61
|
export var serializeAws_json1_0ListFHIRDatastoresCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -66,7 +66,7 @@ export var serializeAws_json1_0ListFHIRDatastoresCommand = function (input, cont
|
|
|
66
66
|
"x-amz-target": "HealthLake.ListFHIRDatastores",
|
|
67
67
|
};
|
|
68
68
|
body = JSON.stringify(serializeAws_json1_0ListFHIRDatastoresRequest(input, context));
|
|
69
|
-
return [2
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
70
|
});
|
|
71
71
|
}); };
|
|
72
72
|
export var serializeAws_json1_0ListFHIRExportJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -77,7 +77,7 @@ export var serializeAws_json1_0ListFHIRExportJobsCommand = function (input, cont
|
|
|
77
77
|
"x-amz-target": "HealthLake.ListFHIRExportJobs",
|
|
78
78
|
};
|
|
79
79
|
body = JSON.stringify(serializeAws_json1_0ListFHIRExportJobsRequest(input, context));
|
|
80
|
-
return [2
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
81
|
});
|
|
82
82
|
}); };
|
|
83
83
|
export var serializeAws_json1_0ListFHIRImportJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -88,7 +88,7 @@ export var serializeAws_json1_0ListFHIRImportJobsCommand = function (input, cont
|
|
|
88
88
|
"x-amz-target": "HealthLake.ListFHIRImportJobs",
|
|
89
89
|
};
|
|
90
90
|
body = JSON.stringify(serializeAws_json1_0ListFHIRImportJobsRequest(input, context));
|
|
91
|
-
return [2
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
92
|
});
|
|
93
93
|
}); };
|
|
94
94
|
export var serializeAws_json1_0ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -99,7 +99,7 @@ export var serializeAws_json1_0ListTagsForResourceCommand = function (input, con
|
|
|
99
99
|
"x-amz-target": "HealthLake.ListTagsForResource",
|
|
100
100
|
};
|
|
101
101
|
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
102
|
-
return [2
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
103
|
});
|
|
104
104
|
}); };
|
|
105
105
|
export var serializeAws_json1_0StartFHIRExportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -110,7 +110,7 @@ export var serializeAws_json1_0StartFHIRExportJobCommand = function (input, cont
|
|
|
110
110
|
"x-amz-target": "HealthLake.StartFHIRExportJob",
|
|
111
111
|
};
|
|
112
112
|
body = JSON.stringify(serializeAws_json1_0StartFHIRExportJobRequest(input, context));
|
|
113
|
-
return [2
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
114
|
});
|
|
115
115
|
}); };
|
|
116
116
|
export var serializeAws_json1_0StartFHIRImportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -121,7 +121,7 @@ export var serializeAws_json1_0StartFHIRImportJobCommand = function (input, cont
|
|
|
121
121
|
"x-amz-target": "HealthLake.StartFHIRImportJob",
|
|
122
122
|
};
|
|
123
123
|
body = JSON.stringify(serializeAws_json1_0StartFHIRImportJobRequest(input, context));
|
|
124
|
-
return [2
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
125
|
});
|
|
126
126
|
}); };
|
|
127
127
|
export var serializeAws_json1_0TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -132,7 +132,7 @@ export var serializeAws_json1_0TagResourceCommand = function (input, context) {
|
|
|
132
132
|
"x-amz-target": "HealthLake.TagResource",
|
|
133
133
|
};
|
|
134
134
|
body = JSON.stringify(serializeAws_json1_0TagResourceRequest(input, context));
|
|
135
|
-
return [2
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
136
|
});
|
|
137
137
|
}); };
|
|
138
138
|
export var serializeAws_json1_0UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -143,7 +143,7 @@ export var serializeAws_json1_0UntagResourceCommand = function (input, context)
|
|
|
143
143
|
"x-amz-target": "HealthLake.UntagResource",
|
|
144
144
|
};
|
|
145
145
|
body = JSON.stringify(serializeAws_json1_0UntagResourceRequest(input, context));
|
|
146
|
-
return [2
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
147
|
});
|
|
148
148
|
}); };
|
|
149
149
|
export var deserializeAws_json1_0CreateFHIRDatastoreCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,15 +152,15 @@ export var deserializeAws_json1_0CreateFHIRDatastoreCommand = function (output,
|
|
|
152
152
|
switch (_a.label) {
|
|
153
153
|
case 0:
|
|
154
154
|
if (output.statusCode >= 300) {
|
|
155
|
-
return [2
|
|
155
|
+
return [2, deserializeAws_json1_0CreateFHIRDatastoreCommandError(output, context)];
|
|
156
156
|
}
|
|
157
|
-
return [4
|
|
157
|
+
return [4, parseBody(output.body, context)];
|
|
158
158
|
case 1:
|
|
159
159
|
data = _a.sent();
|
|
160
160
|
contents = {};
|
|
161
161
|
contents = deserializeAws_json1_0CreateFHIRDatastoreResponse(data, context);
|
|
162
162
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
163
|
-
return [2
|
|
163
|
+
return [2, Promise.resolve(response)];
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
}); };
|
|
@@ -172,47 +172,47 @@ var deserializeAws_json1_0CreateFHIRDatastoreCommandError = function (output, co
|
|
|
172
172
|
case 0:
|
|
173
173
|
_a = [__assign({}, output)];
|
|
174
174
|
_g = {};
|
|
175
|
-
return [4
|
|
175
|
+
return [4, parseBody(output.body, context)];
|
|
176
176
|
case 1:
|
|
177
177
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
178
178
|
errorCode = "UnknownError";
|
|
179
179
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
180
180
|
_b = errorCode;
|
|
181
181
|
switch (_b) {
|
|
182
|
-
case "AccessDeniedException": return [3
|
|
183
|
-
case "com.amazonaws.healthlake#AccessDeniedException": return [3
|
|
184
|
-
case "InternalServerException": return [3
|
|
185
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
186
|
-
case "ThrottlingException": return [3
|
|
187
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
188
|
-
case "ValidationException": return [3
|
|
189
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
182
|
+
case "AccessDeniedException": return [3, 2];
|
|
183
|
+
case "com.amazonaws.healthlake#AccessDeniedException": return [3, 2];
|
|
184
|
+
case "InternalServerException": return [3, 4];
|
|
185
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 4];
|
|
186
|
+
case "ThrottlingException": return [3, 6];
|
|
187
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 6];
|
|
188
|
+
case "ValidationException": return [3, 8];
|
|
189
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 8];
|
|
190
190
|
}
|
|
191
|
-
return [3
|
|
191
|
+
return [3, 10];
|
|
192
192
|
case 2:
|
|
193
193
|
_c = [{}];
|
|
194
|
-
return [4
|
|
194
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
195
195
|
case 3:
|
|
196
196
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
197
|
-
return [3
|
|
197
|
+
return [3, 11];
|
|
198
198
|
case 4:
|
|
199
199
|
_d = [{}];
|
|
200
|
-
return [4
|
|
200
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
201
201
|
case 5:
|
|
202
202
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
203
|
-
return [3
|
|
203
|
+
return [3, 11];
|
|
204
204
|
case 6:
|
|
205
205
|
_e = [{}];
|
|
206
|
-
return [4
|
|
206
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
207
207
|
case 7:
|
|
208
208
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
209
|
-
return [3
|
|
209
|
+
return [3, 11];
|
|
210
210
|
case 8:
|
|
211
211
|
_f = [{}];
|
|
212
|
-
return [4
|
|
212
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
213
213
|
case 9:
|
|
214
214
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
215
|
-
return [3
|
|
215
|
+
return [3, 11];
|
|
216
216
|
case 10:
|
|
217
217
|
parsedBody = parsedOutput.body;
|
|
218
218
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -222,7 +222,7 @@ var deserializeAws_json1_0CreateFHIRDatastoreCommandError = function (output, co
|
|
|
222
222
|
message = response.message || response.Message || errorCode;
|
|
223
223
|
response.message = message;
|
|
224
224
|
delete response.Message;
|
|
225
|
-
return [2
|
|
225
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
228
|
}); };
|
|
@@ -232,15 +232,15 @@ export var deserializeAws_json1_0DeleteFHIRDatastoreCommand = function (output,
|
|
|
232
232
|
switch (_a.label) {
|
|
233
233
|
case 0:
|
|
234
234
|
if (output.statusCode >= 300) {
|
|
235
|
-
return [2
|
|
235
|
+
return [2, deserializeAws_json1_0DeleteFHIRDatastoreCommandError(output, context)];
|
|
236
236
|
}
|
|
237
|
-
return [4
|
|
237
|
+
return [4, parseBody(output.body, context)];
|
|
238
238
|
case 1:
|
|
239
239
|
data = _a.sent();
|
|
240
240
|
contents = {};
|
|
241
241
|
contents = deserializeAws_json1_0DeleteFHIRDatastoreResponse(data, context);
|
|
242
242
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
243
|
-
return [2
|
|
243
|
+
return [2, Promise.resolve(response)];
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
}); };
|
|
@@ -252,63 +252,63 @@ var deserializeAws_json1_0DeleteFHIRDatastoreCommandError = function (output, co
|
|
|
252
252
|
case 0:
|
|
253
253
|
_a = [__assign({}, output)];
|
|
254
254
|
_j = {};
|
|
255
|
-
return [4
|
|
255
|
+
return [4, parseBody(output.body, context)];
|
|
256
256
|
case 1:
|
|
257
257
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
258
258
|
errorCode = "UnknownError";
|
|
259
259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
260
|
_b = errorCode;
|
|
261
261
|
switch (_b) {
|
|
262
|
-
case "AccessDeniedException": return [3
|
|
263
|
-
case "com.amazonaws.healthlake#AccessDeniedException": return [3
|
|
264
|
-
case "ConflictException": return [3
|
|
265
|
-
case "com.amazonaws.healthlake#ConflictException": return [3
|
|
266
|
-
case "InternalServerException": return [3
|
|
267
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
268
|
-
case "ResourceNotFoundException": return [3
|
|
269
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
270
|
-
case "ThrottlingException": return [3
|
|
271
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
272
|
-
case "ValidationException": return [3
|
|
273
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
262
|
+
case "AccessDeniedException": return [3, 2];
|
|
263
|
+
case "com.amazonaws.healthlake#AccessDeniedException": return [3, 2];
|
|
264
|
+
case "ConflictException": return [3, 4];
|
|
265
|
+
case "com.amazonaws.healthlake#ConflictException": return [3, 4];
|
|
266
|
+
case "InternalServerException": return [3, 6];
|
|
267
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 6];
|
|
268
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
269
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 8];
|
|
270
|
+
case "ThrottlingException": return [3, 10];
|
|
271
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 10];
|
|
272
|
+
case "ValidationException": return [3, 12];
|
|
273
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 12];
|
|
274
274
|
}
|
|
275
|
-
return [3
|
|
275
|
+
return [3, 14];
|
|
276
276
|
case 2:
|
|
277
277
|
_c = [{}];
|
|
278
|
-
return [4
|
|
278
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
279
279
|
case 3:
|
|
280
280
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
281
|
-
return [3
|
|
281
|
+
return [3, 15];
|
|
282
282
|
case 4:
|
|
283
283
|
_d = [{}];
|
|
284
|
-
return [4
|
|
284
|
+
return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
285
285
|
case 5:
|
|
286
286
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
287
|
-
return [3
|
|
287
|
+
return [3, 15];
|
|
288
288
|
case 6:
|
|
289
289
|
_e = [{}];
|
|
290
|
-
return [4
|
|
290
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
291
291
|
case 7:
|
|
292
292
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
293
|
-
return [3
|
|
293
|
+
return [3, 15];
|
|
294
294
|
case 8:
|
|
295
295
|
_f = [{}];
|
|
296
|
-
return [4
|
|
296
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
297
297
|
case 9:
|
|
298
298
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
299
|
-
return [3
|
|
299
|
+
return [3, 15];
|
|
300
300
|
case 10:
|
|
301
301
|
_g = [{}];
|
|
302
|
-
return [4
|
|
302
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
303
303
|
case 11:
|
|
304
304
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
305
|
-
return [3
|
|
305
|
+
return [3, 15];
|
|
306
306
|
case 12:
|
|
307
307
|
_h = [{}];
|
|
308
|
-
return [4
|
|
308
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
309
309
|
case 13:
|
|
310
310
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
311
|
-
return [3
|
|
311
|
+
return [3, 15];
|
|
312
312
|
case 14:
|
|
313
313
|
parsedBody = parsedOutput.body;
|
|
314
314
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -318,7 +318,7 @@ var deserializeAws_json1_0DeleteFHIRDatastoreCommandError = function (output, co
|
|
|
318
318
|
message = response.message || response.Message || errorCode;
|
|
319
319
|
response.message = message;
|
|
320
320
|
delete response.Message;
|
|
321
|
-
return [2
|
|
321
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
322
322
|
}
|
|
323
323
|
});
|
|
324
324
|
}); };
|
|
@@ -328,15 +328,15 @@ export var deserializeAws_json1_0DescribeFHIRDatastoreCommand = function (output
|
|
|
328
328
|
switch (_a.label) {
|
|
329
329
|
case 0:
|
|
330
330
|
if (output.statusCode >= 300) {
|
|
331
|
-
return [2
|
|
331
|
+
return [2, deserializeAws_json1_0DescribeFHIRDatastoreCommandError(output, context)];
|
|
332
332
|
}
|
|
333
|
-
return [4
|
|
333
|
+
return [4, parseBody(output.body, context)];
|
|
334
334
|
case 1:
|
|
335
335
|
data = _a.sent();
|
|
336
336
|
contents = {};
|
|
337
337
|
contents = deserializeAws_json1_0DescribeFHIRDatastoreResponse(data, context);
|
|
338
338
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
339
|
-
return [2
|
|
339
|
+
return [2, Promise.resolve(response)];
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
342
|
}); };
|
|
@@ -348,47 +348,47 @@ var deserializeAws_json1_0DescribeFHIRDatastoreCommandError = function (output,
|
|
|
348
348
|
case 0:
|
|
349
349
|
_a = [__assign({}, output)];
|
|
350
350
|
_g = {};
|
|
351
|
-
return [4
|
|
351
|
+
return [4, parseBody(output.body, context)];
|
|
352
352
|
case 1:
|
|
353
353
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
354
354
|
errorCode = "UnknownError";
|
|
355
355
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
356
356
|
_b = errorCode;
|
|
357
357
|
switch (_b) {
|
|
358
|
-
case "InternalServerException": return [3
|
|
359
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
360
|
-
case "ResourceNotFoundException": return [3
|
|
361
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
362
|
-
case "ThrottlingException": return [3
|
|
363
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
364
|
-
case "ValidationException": return [3
|
|
365
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
358
|
+
case "InternalServerException": return [3, 2];
|
|
359
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 2];
|
|
360
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
361
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 4];
|
|
362
|
+
case "ThrottlingException": return [3, 6];
|
|
363
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 6];
|
|
364
|
+
case "ValidationException": return [3, 8];
|
|
365
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 8];
|
|
366
366
|
}
|
|
367
|
-
return [3
|
|
367
|
+
return [3, 10];
|
|
368
368
|
case 2:
|
|
369
369
|
_c = [{}];
|
|
370
|
-
return [4
|
|
370
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
371
371
|
case 3:
|
|
372
372
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
373
|
-
return [3
|
|
373
|
+
return [3, 11];
|
|
374
374
|
case 4:
|
|
375
375
|
_d = [{}];
|
|
376
|
-
return [4
|
|
376
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
377
377
|
case 5:
|
|
378
378
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
379
|
-
return [3
|
|
379
|
+
return [3, 11];
|
|
380
380
|
case 6:
|
|
381
381
|
_e = [{}];
|
|
382
|
-
return [4
|
|
382
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
383
383
|
case 7:
|
|
384
384
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
385
|
-
return [3
|
|
385
|
+
return [3, 11];
|
|
386
386
|
case 8:
|
|
387
387
|
_f = [{}];
|
|
388
|
-
return [4
|
|
388
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
389
389
|
case 9:
|
|
390
390
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
391
|
-
return [3
|
|
391
|
+
return [3, 11];
|
|
392
392
|
case 10:
|
|
393
393
|
parsedBody = parsedOutput.body;
|
|
394
394
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -398,7 +398,7 @@ var deserializeAws_json1_0DescribeFHIRDatastoreCommandError = function (output,
|
|
|
398
398
|
message = response.message || response.Message || errorCode;
|
|
399
399
|
response.message = message;
|
|
400
400
|
delete response.Message;
|
|
401
|
-
return [2
|
|
401
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
402
402
|
}
|
|
403
403
|
});
|
|
404
404
|
}); };
|
|
@@ -408,15 +408,15 @@ export var deserializeAws_json1_0DescribeFHIRExportJobCommand = function (output
|
|
|
408
408
|
switch (_a.label) {
|
|
409
409
|
case 0:
|
|
410
410
|
if (output.statusCode >= 300) {
|
|
411
|
-
return [2
|
|
411
|
+
return [2, deserializeAws_json1_0DescribeFHIRExportJobCommandError(output, context)];
|
|
412
412
|
}
|
|
413
|
-
return [4
|
|
413
|
+
return [4, parseBody(output.body, context)];
|
|
414
414
|
case 1:
|
|
415
415
|
data = _a.sent();
|
|
416
416
|
contents = {};
|
|
417
417
|
contents = deserializeAws_json1_0DescribeFHIRExportJobResponse(data, context);
|
|
418
418
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
419
|
-
return [2
|
|
419
|
+
return [2, Promise.resolve(response)];
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
}); };
|
|
@@ -428,47 +428,47 @@ var deserializeAws_json1_0DescribeFHIRExportJobCommandError = function (output,
|
|
|
428
428
|
case 0:
|
|
429
429
|
_a = [__assign({}, output)];
|
|
430
430
|
_g = {};
|
|
431
|
-
return [4
|
|
431
|
+
return [4, parseBody(output.body, context)];
|
|
432
432
|
case 1:
|
|
433
433
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
434
434
|
errorCode = "UnknownError";
|
|
435
435
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
436
436
|
_b = errorCode;
|
|
437
437
|
switch (_b) {
|
|
438
|
-
case "InternalServerException": return [3
|
|
439
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
440
|
-
case "ResourceNotFoundException": return [3
|
|
441
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
442
|
-
case "ThrottlingException": return [3
|
|
443
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
444
|
-
case "ValidationException": return [3
|
|
445
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
438
|
+
case "InternalServerException": return [3, 2];
|
|
439
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 2];
|
|
440
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
441
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 4];
|
|
442
|
+
case "ThrottlingException": return [3, 6];
|
|
443
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 6];
|
|
444
|
+
case "ValidationException": return [3, 8];
|
|
445
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 8];
|
|
446
446
|
}
|
|
447
|
-
return [3
|
|
447
|
+
return [3, 10];
|
|
448
448
|
case 2:
|
|
449
449
|
_c = [{}];
|
|
450
|
-
return [4
|
|
450
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
451
451
|
case 3:
|
|
452
452
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
453
|
-
return [3
|
|
453
|
+
return [3, 11];
|
|
454
454
|
case 4:
|
|
455
455
|
_d = [{}];
|
|
456
|
-
return [4
|
|
456
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
457
457
|
case 5:
|
|
458
458
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
459
|
-
return [3
|
|
459
|
+
return [3, 11];
|
|
460
460
|
case 6:
|
|
461
461
|
_e = [{}];
|
|
462
|
-
return [4
|
|
462
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
463
463
|
case 7:
|
|
464
464
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
465
|
-
return [3
|
|
465
|
+
return [3, 11];
|
|
466
466
|
case 8:
|
|
467
467
|
_f = [{}];
|
|
468
|
-
return [4
|
|
468
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
469
469
|
case 9:
|
|
470
470
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
471
|
-
return [3
|
|
471
|
+
return [3, 11];
|
|
472
472
|
case 10:
|
|
473
473
|
parsedBody = parsedOutput.body;
|
|
474
474
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -478,7 +478,7 @@ var deserializeAws_json1_0DescribeFHIRExportJobCommandError = function (output,
|
|
|
478
478
|
message = response.message || response.Message || errorCode;
|
|
479
479
|
response.message = message;
|
|
480
480
|
delete response.Message;
|
|
481
|
-
return [2
|
|
481
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}); };
|
|
@@ -488,15 +488,15 @@ export var deserializeAws_json1_0DescribeFHIRImportJobCommand = function (output
|
|
|
488
488
|
switch (_a.label) {
|
|
489
489
|
case 0:
|
|
490
490
|
if (output.statusCode >= 300) {
|
|
491
|
-
return [2
|
|
491
|
+
return [2, deserializeAws_json1_0DescribeFHIRImportJobCommandError(output, context)];
|
|
492
492
|
}
|
|
493
|
-
return [4
|
|
493
|
+
return [4, parseBody(output.body, context)];
|
|
494
494
|
case 1:
|
|
495
495
|
data = _a.sent();
|
|
496
496
|
contents = {};
|
|
497
497
|
contents = deserializeAws_json1_0DescribeFHIRImportJobResponse(data, context);
|
|
498
498
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
499
|
-
return [2
|
|
499
|
+
return [2, Promise.resolve(response)];
|
|
500
500
|
}
|
|
501
501
|
});
|
|
502
502
|
}); };
|
|
@@ -508,47 +508,47 @@ var deserializeAws_json1_0DescribeFHIRImportJobCommandError = function (output,
|
|
|
508
508
|
case 0:
|
|
509
509
|
_a = [__assign({}, output)];
|
|
510
510
|
_g = {};
|
|
511
|
-
return [4
|
|
511
|
+
return [4, parseBody(output.body, context)];
|
|
512
512
|
case 1:
|
|
513
513
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
514
514
|
errorCode = "UnknownError";
|
|
515
515
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
516
|
_b = errorCode;
|
|
517
517
|
switch (_b) {
|
|
518
|
-
case "InternalServerException": return [3
|
|
519
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
520
|
-
case "ResourceNotFoundException": return [3
|
|
521
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
522
|
-
case "ThrottlingException": return [3
|
|
523
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
524
|
-
case "ValidationException": return [3
|
|
525
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
518
|
+
case "InternalServerException": return [3, 2];
|
|
519
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 2];
|
|
520
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
521
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 4];
|
|
522
|
+
case "ThrottlingException": return [3, 6];
|
|
523
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 6];
|
|
524
|
+
case "ValidationException": return [3, 8];
|
|
525
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 8];
|
|
526
526
|
}
|
|
527
|
-
return [3
|
|
527
|
+
return [3, 10];
|
|
528
528
|
case 2:
|
|
529
529
|
_c = [{}];
|
|
530
|
-
return [4
|
|
530
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
531
531
|
case 3:
|
|
532
532
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
533
|
-
return [3
|
|
533
|
+
return [3, 11];
|
|
534
534
|
case 4:
|
|
535
535
|
_d = [{}];
|
|
536
|
-
return [4
|
|
536
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
537
537
|
case 5:
|
|
538
538
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
539
|
-
return [3
|
|
539
|
+
return [3, 11];
|
|
540
540
|
case 6:
|
|
541
541
|
_e = [{}];
|
|
542
|
-
return [4
|
|
542
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
543
543
|
case 7:
|
|
544
544
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
545
|
-
return [3
|
|
545
|
+
return [3, 11];
|
|
546
546
|
case 8:
|
|
547
547
|
_f = [{}];
|
|
548
|
-
return [4
|
|
548
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
549
549
|
case 9:
|
|
550
550
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
551
|
-
return [3
|
|
551
|
+
return [3, 11];
|
|
552
552
|
case 10:
|
|
553
553
|
parsedBody = parsedOutput.body;
|
|
554
554
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -558,7 +558,7 @@ var deserializeAws_json1_0DescribeFHIRImportJobCommandError = function (output,
|
|
|
558
558
|
message = response.message || response.Message || errorCode;
|
|
559
559
|
response.message = message;
|
|
560
560
|
delete response.Message;
|
|
561
|
-
return [2
|
|
561
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
564
|
}); };
|
|
@@ -568,15 +568,15 @@ export var deserializeAws_json1_0ListFHIRDatastoresCommand = function (output, c
|
|
|
568
568
|
switch (_a.label) {
|
|
569
569
|
case 0:
|
|
570
570
|
if (output.statusCode >= 300) {
|
|
571
|
-
return [2
|
|
571
|
+
return [2, deserializeAws_json1_0ListFHIRDatastoresCommandError(output, context)];
|
|
572
572
|
}
|
|
573
|
-
return [4
|
|
573
|
+
return [4, parseBody(output.body, context)];
|
|
574
574
|
case 1:
|
|
575
575
|
data = _a.sent();
|
|
576
576
|
contents = {};
|
|
577
577
|
contents = deserializeAws_json1_0ListFHIRDatastoresResponse(data, context);
|
|
578
578
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
579
|
-
return [2
|
|
579
|
+
return [2, Promise.resolve(response)];
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
582
|
}); };
|
|
@@ -588,39 +588,39 @@ var deserializeAws_json1_0ListFHIRDatastoresCommandError = function (output, con
|
|
|
588
588
|
case 0:
|
|
589
589
|
_a = [__assign({}, output)];
|
|
590
590
|
_f = {};
|
|
591
|
-
return [4
|
|
591
|
+
return [4, parseBody(output.body, context)];
|
|
592
592
|
case 1:
|
|
593
593
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
594
594
|
errorCode = "UnknownError";
|
|
595
595
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
596
|
_b = errorCode;
|
|
597
597
|
switch (_b) {
|
|
598
|
-
case "InternalServerException": return [3
|
|
599
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
600
|
-
case "ThrottlingException": return [3
|
|
601
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
602
|
-
case "ValidationException": return [3
|
|
603
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
598
|
+
case "InternalServerException": return [3, 2];
|
|
599
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 2];
|
|
600
|
+
case "ThrottlingException": return [3, 4];
|
|
601
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 4];
|
|
602
|
+
case "ValidationException": return [3, 6];
|
|
603
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 6];
|
|
604
604
|
}
|
|
605
|
-
return [3
|
|
605
|
+
return [3, 8];
|
|
606
606
|
case 2:
|
|
607
607
|
_c = [{}];
|
|
608
|
-
return [4
|
|
608
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
609
609
|
case 3:
|
|
610
610
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
611
|
-
return [3
|
|
611
|
+
return [3, 9];
|
|
612
612
|
case 4:
|
|
613
613
|
_d = [{}];
|
|
614
|
-
return [4
|
|
614
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
615
615
|
case 5:
|
|
616
616
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
617
|
-
return [3
|
|
617
|
+
return [3, 9];
|
|
618
618
|
case 6:
|
|
619
619
|
_e = [{}];
|
|
620
|
-
return [4
|
|
620
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
621
621
|
case 7:
|
|
622
622
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
623
|
-
return [3
|
|
623
|
+
return [3, 9];
|
|
624
624
|
case 8:
|
|
625
625
|
parsedBody = parsedOutput.body;
|
|
626
626
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -630,7 +630,7 @@ var deserializeAws_json1_0ListFHIRDatastoresCommandError = function (output, con
|
|
|
630
630
|
message = response.message || response.Message || errorCode;
|
|
631
631
|
response.message = message;
|
|
632
632
|
delete response.Message;
|
|
633
|
-
return [2
|
|
633
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
634
634
|
}
|
|
635
635
|
});
|
|
636
636
|
}); };
|
|
@@ -640,15 +640,15 @@ export var deserializeAws_json1_0ListFHIRExportJobsCommand = function (output, c
|
|
|
640
640
|
switch (_a.label) {
|
|
641
641
|
case 0:
|
|
642
642
|
if (output.statusCode >= 300) {
|
|
643
|
-
return [2
|
|
643
|
+
return [2, deserializeAws_json1_0ListFHIRExportJobsCommandError(output, context)];
|
|
644
644
|
}
|
|
645
|
-
return [4
|
|
645
|
+
return [4, parseBody(output.body, context)];
|
|
646
646
|
case 1:
|
|
647
647
|
data = _a.sent();
|
|
648
648
|
contents = {};
|
|
649
649
|
contents = deserializeAws_json1_0ListFHIRExportJobsResponse(data, context);
|
|
650
650
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
651
|
-
return [2
|
|
651
|
+
return [2, Promise.resolve(response)];
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
654
|
}); };
|
|
@@ -660,55 +660,55 @@ var deserializeAws_json1_0ListFHIRExportJobsCommandError = function (output, con
|
|
|
660
660
|
case 0:
|
|
661
661
|
_a = [__assign({}, output)];
|
|
662
662
|
_h = {};
|
|
663
|
-
return [4
|
|
663
|
+
return [4, parseBody(output.body, context)];
|
|
664
664
|
case 1:
|
|
665
665
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
666
666
|
errorCode = "UnknownError";
|
|
667
667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
668
|
_b = errorCode;
|
|
669
669
|
switch (_b) {
|
|
670
|
-
case "AccessDeniedException": return [3
|
|
671
|
-
case "com.amazonaws.healthlake#AccessDeniedException": return [3
|
|
672
|
-
case "InternalServerException": return [3
|
|
673
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
674
|
-
case "ResourceNotFoundException": return [3
|
|
675
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
676
|
-
case "ThrottlingException": return [3
|
|
677
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
678
|
-
case "ValidationException": return [3
|
|
679
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
670
|
+
case "AccessDeniedException": return [3, 2];
|
|
671
|
+
case "com.amazonaws.healthlake#AccessDeniedException": return [3, 2];
|
|
672
|
+
case "InternalServerException": return [3, 4];
|
|
673
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 4];
|
|
674
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
675
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 6];
|
|
676
|
+
case "ThrottlingException": return [3, 8];
|
|
677
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 8];
|
|
678
|
+
case "ValidationException": return [3, 10];
|
|
679
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 10];
|
|
680
680
|
}
|
|
681
|
-
return [3
|
|
681
|
+
return [3, 12];
|
|
682
682
|
case 2:
|
|
683
683
|
_c = [{}];
|
|
684
|
-
return [4
|
|
684
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
685
685
|
case 3:
|
|
686
686
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
687
|
-
return [3
|
|
687
|
+
return [3, 13];
|
|
688
688
|
case 4:
|
|
689
689
|
_d = [{}];
|
|
690
|
-
return [4
|
|
690
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
691
691
|
case 5:
|
|
692
692
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
693
|
-
return [3
|
|
693
|
+
return [3, 13];
|
|
694
694
|
case 6:
|
|
695
695
|
_e = [{}];
|
|
696
|
-
return [4
|
|
696
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
697
697
|
case 7:
|
|
698
698
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
699
|
-
return [3
|
|
699
|
+
return [3, 13];
|
|
700
700
|
case 8:
|
|
701
701
|
_f = [{}];
|
|
702
|
-
return [4
|
|
702
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
703
703
|
case 9:
|
|
704
704
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
705
|
-
return [3
|
|
705
|
+
return [3, 13];
|
|
706
706
|
case 10:
|
|
707
707
|
_g = [{}];
|
|
708
|
-
return [4
|
|
708
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
709
709
|
case 11:
|
|
710
710
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
711
|
-
return [3
|
|
711
|
+
return [3, 13];
|
|
712
712
|
case 12:
|
|
713
713
|
parsedBody = parsedOutput.body;
|
|
714
714
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -718,7 +718,7 @@ var deserializeAws_json1_0ListFHIRExportJobsCommandError = function (output, con
|
|
|
718
718
|
message = response.message || response.Message || errorCode;
|
|
719
719
|
response.message = message;
|
|
720
720
|
delete response.Message;
|
|
721
|
-
return [2
|
|
721
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
724
|
}); };
|
|
@@ -728,15 +728,15 @@ export var deserializeAws_json1_0ListFHIRImportJobsCommand = function (output, c
|
|
|
728
728
|
switch (_a.label) {
|
|
729
729
|
case 0:
|
|
730
730
|
if (output.statusCode >= 300) {
|
|
731
|
-
return [2
|
|
731
|
+
return [2, deserializeAws_json1_0ListFHIRImportJobsCommandError(output, context)];
|
|
732
732
|
}
|
|
733
|
-
return [4
|
|
733
|
+
return [4, parseBody(output.body, context)];
|
|
734
734
|
case 1:
|
|
735
735
|
data = _a.sent();
|
|
736
736
|
contents = {};
|
|
737
737
|
contents = deserializeAws_json1_0ListFHIRImportJobsResponse(data, context);
|
|
738
738
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
739
|
-
return [2
|
|
739
|
+
return [2, Promise.resolve(response)];
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
742
|
}); };
|
|
@@ -748,55 +748,55 @@ var deserializeAws_json1_0ListFHIRImportJobsCommandError = function (output, con
|
|
|
748
748
|
case 0:
|
|
749
749
|
_a = [__assign({}, output)];
|
|
750
750
|
_h = {};
|
|
751
|
-
return [4
|
|
751
|
+
return [4, parseBody(output.body, context)];
|
|
752
752
|
case 1:
|
|
753
753
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
754
754
|
errorCode = "UnknownError";
|
|
755
755
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
756
|
_b = errorCode;
|
|
757
757
|
switch (_b) {
|
|
758
|
-
case "AccessDeniedException": return [3
|
|
759
|
-
case "com.amazonaws.healthlake#AccessDeniedException": return [3
|
|
760
|
-
case "InternalServerException": return [3
|
|
761
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
762
|
-
case "ResourceNotFoundException": return [3
|
|
763
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
764
|
-
case "ThrottlingException": return [3
|
|
765
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
766
|
-
case "ValidationException": return [3
|
|
767
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
758
|
+
case "AccessDeniedException": return [3, 2];
|
|
759
|
+
case "com.amazonaws.healthlake#AccessDeniedException": return [3, 2];
|
|
760
|
+
case "InternalServerException": return [3, 4];
|
|
761
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 4];
|
|
762
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
763
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 6];
|
|
764
|
+
case "ThrottlingException": return [3, 8];
|
|
765
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 8];
|
|
766
|
+
case "ValidationException": return [3, 10];
|
|
767
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 10];
|
|
768
768
|
}
|
|
769
|
-
return [3
|
|
769
|
+
return [3, 12];
|
|
770
770
|
case 2:
|
|
771
771
|
_c = [{}];
|
|
772
|
-
return [4
|
|
772
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
773
773
|
case 3:
|
|
774
774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
775
|
-
return [3
|
|
775
|
+
return [3, 13];
|
|
776
776
|
case 4:
|
|
777
777
|
_d = [{}];
|
|
778
|
-
return [4
|
|
778
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
779
779
|
case 5:
|
|
780
780
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
781
|
-
return [3
|
|
781
|
+
return [3, 13];
|
|
782
782
|
case 6:
|
|
783
783
|
_e = [{}];
|
|
784
|
-
return [4
|
|
784
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
785
785
|
case 7:
|
|
786
786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
787
|
-
return [3
|
|
787
|
+
return [3, 13];
|
|
788
788
|
case 8:
|
|
789
789
|
_f = [{}];
|
|
790
|
-
return [4
|
|
790
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
791
791
|
case 9:
|
|
792
792
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
793
|
-
return [3
|
|
793
|
+
return [3, 13];
|
|
794
794
|
case 10:
|
|
795
795
|
_g = [{}];
|
|
796
|
-
return [4
|
|
796
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
797
797
|
case 11:
|
|
798
798
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
799
|
-
return [3
|
|
799
|
+
return [3, 13];
|
|
800
800
|
case 12:
|
|
801
801
|
parsedBody = parsedOutput.body;
|
|
802
802
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -806,7 +806,7 @@ var deserializeAws_json1_0ListFHIRImportJobsCommandError = function (output, con
|
|
|
806
806
|
message = response.message || response.Message || errorCode;
|
|
807
807
|
response.message = message;
|
|
808
808
|
delete response.Message;
|
|
809
|
-
return [2
|
|
809
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
810
810
|
}
|
|
811
811
|
});
|
|
812
812
|
}); };
|
|
@@ -816,15 +816,15 @@ export var deserializeAws_json1_0ListTagsForResourceCommand = function (output,
|
|
|
816
816
|
switch (_a.label) {
|
|
817
817
|
case 0:
|
|
818
818
|
if (output.statusCode >= 300) {
|
|
819
|
-
return [2
|
|
819
|
+
return [2, deserializeAws_json1_0ListTagsForResourceCommandError(output, context)];
|
|
820
820
|
}
|
|
821
|
-
return [4
|
|
821
|
+
return [4, parseBody(output.body, context)];
|
|
822
822
|
case 1:
|
|
823
823
|
data = _a.sent();
|
|
824
824
|
contents = {};
|
|
825
825
|
contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
|
|
826
826
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
827
|
-
return [2
|
|
827
|
+
return [2, Promise.resolve(response)];
|
|
828
828
|
}
|
|
829
829
|
});
|
|
830
830
|
}); };
|
|
@@ -836,31 +836,31 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
836
836
|
case 0:
|
|
837
837
|
_a = [__assign({}, output)];
|
|
838
838
|
_e = {};
|
|
839
|
-
return [4
|
|
839
|
+
return [4, parseBody(output.body, context)];
|
|
840
840
|
case 1:
|
|
841
841
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
842
842
|
errorCode = "UnknownError";
|
|
843
843
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
844
|
_b = errorCode;
|
|
845
845
|
switch (_b) {
|
|
846
|
-
case "ResourceNotFoundException": return [3
|
|
847
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
848
|
-
case "ValidationException": return [3
|
|
849
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
846
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
847
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 2];
|
|
848
|
+
case "ValidationException": return [3, 4];
|
|
849
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 4];
|
|
850
850
|
}
|
|
851
|
-
return [3
|
|
851
|
+
return [3, 6];
|
|
852
852
|
case 2:
|
|
853
853
|
_c = [{}];
|
|
854
|
-
return [4
|
|
854
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
855
855
|
case 3:
|
|
856
856
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
857
|
-
return [3
|
|
857
|
+
return [3, 7];
|
|
858
858
|
case 4:
|
|
859
859
|
_d = [{}];
|
|
860
|
-
return [4
|
|
860
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
861
861
|
case 5:
|
|
862
862
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
863
|
-
return [3
|
|
863
|
+
return [3, 7];
|
|
864
864
|
case 6:
|
|
865
865
|
parsedBody = parsedOutput.body;
|
|
866
866
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -870,7 +870,7 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
870
870
|
message = response.message || response.Message || errorCode;
|
|
871
871
|
response.message = message;
|
|
872
872
|
delete response.Message;
|
|
873
|
-
return [2
|
|
873
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
876
|
}); };
|
|
@@ -880,15 +880,15 @@ export var deserializeAws_json1_0StartFHIRExportJobCommand = function (output, c
|
|
|
880
880
|
switch (_a.label) {
|
|
881
881
|
case 0:
|
|
882
882
|
if (output.statusCode >= 300) {
|
|
883
|
-
return [2
|
|
883
|
+
return [2, deserializeAws_json1_0StartFHIRExportJobCommandError(output, context)];
|
|
884
884
|
}
|
|
885
|
-
return [4
|
|
885
|
+
return [4, parseBody(output.body, context)];
|
|
886
886
|
case 1:
|
|
887
887
|
data = _a.sent();
|
|
888
888
|
contents = {};
|
|
889
889
|
contents = deserializeAws_json1_0StartFHIRExportJobResponse(data, context);
|
|
890
890
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
891
|
-
return [2
|
|
891
|
+
return [2, Promise.resolve(response)];
|
|
892
892
|
}
|
|
893
893
|
});
|
|
894
894
|
}); };
|
|
@@ -900,55 +900,55 @@ var deserializeAws_json1_0StartFHIRExportJobCommandError = function (output, con
|
|
|
900
900
|
case 0:
|
|
901
901
|
_a = [__assign({}, output)];
|
|
902
902
|
_h = {};
|
|
903
|
-
return [4
|
|
903
|
+
return [4, parseBody(output.body, context)];
|
|
904
904
|
case 1:
|
|
905
905
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
906
906
|
errorCode = "UnknownError";
|
|
907
907
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
908
|
_b = errorCode;
|
|
909
909
|
switch (_b) {
|
|
910
|
-
case "AccessDeniedException": return [3
|
|
911
|
-
case "com.amazonaws.healthlake#AccessDeniedException": return [3
|
|
912
|
-
case "InternalServerException": return [3
|
|
913
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
914
|
-
case "ResourceNotFoundException": return [3
|
|
915
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
916
|
-
case "ThrottlingException": return [3
|
|
917
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
918
|
-
case "ValidationException": return [3
|
|
919
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
910
|
+
case "AccessDeniedException": return [3, 2];
|
|
911
|
+
case "com.amazonaws.healthlake#AccessDeniedException": return [3, 2];
|
|
912
|
+
case "InternalServerException": return [3, 4];
|
|
913
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 4];
|
|
914
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
915
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 6];
|
|
916
|
+
case "ThrottlingException": return [3, 8];
|
|
917
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 8];
|
|
918
|
+
case "ValidationException": return [3, 10];
|
|
919
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 10];
|
|
920
920
|
}
|
|
921
|
-
return [3
|
|
921
|
+
return [3, 12];
|
|
922
922
|
case 2:
|
|
923
923
|
_c = [{}];
|
|
924
|
-
return [4
|
|
924
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
925
925
|
case 3:
|
|
926
926
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
927
|
-
return [3
|
|
927
|
+
return [3, 13];
|
|
928
928
|
case 4:
|
|
929
929
|
_d = [{}];
|
|
930
|
-
return [4
|
|
930
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
931
931
|
case 5:
|
|
932
932
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
933
|
-
return [3
|
|
933
|
+
return [3, 13];
|
|
934
934
|
case 6:
|
|
935
935
|
_e = [{}];
|
|
936
|
-
return [4
|
|
936
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
937
937
|
case 7:
|
|
938
938
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
939
|
-
return [3
|
|
939
|
+
return [3, 13];
|
|
940
940
|
case 8:
|
|
941
941
|
_f = [{}];
|
|
942
|
-
return [4
|
|
942
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
943
943
|
case 9:
|
|
944
944
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
945
|
-
return [3
|
|
945
|
+
return [3, 13];
|
|
946
946
|
case 10:
|
|
947
947
|
_g = [{}];
|
|
948
|
-
return [4
|
|
948
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
949
949
|
case 11:
|
|
950
950
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
951
|
-
return [3
|
|
951
|
+
return [3, 13];
|
|
952
952
|
case 12:
|
|
953
953
|
parsedBody = parsedOutput.body;
|
|
954
954
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -958,7 +958,7 @@ var deserializeAws_json1_0StartFHIRExportJobCommandError = function (output, con
|
|
|
958
958
|
message = response.message || response.Message || errorCode;
|
|
959
959
|
response.message = message;
|
|
960
960
|
delete response.Message;
|
|
961
|
-
return [2
|
|
961
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
964
|
}); };
|
|
@@ -968,15 +968,15 @@ export var deserializeAws_json1_0StartFHIRImportJobCommand = function (output, c
|
|
|
968
968
|
switch (_a.label) {
|
|
969
969
|
case 0:
|
|
970
970
|
if (output.statusCode >= 300) {
|
|
971
|
-
return [2
|
|
971
|
+
return [2, deserializeAws_json1_0StartFHIRImportJobCommandError(output, context)];
|
|
972
972
|
}
|
|
973
|
-
return [4
|
|
973
|
+
return [4, parseBody(output.body, context)];
|
|
974
974
|
case 1:
|
|
975
975
|
data = _a.sent();
|
|
976
976
|
contents = {};
|
|
977
977
|
contents = deserializeAws_json1_0StartFHIRImportJobResponse(data, context);
|
|
978
978
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
979
|
-
return [2
|
|
979
|
+
return [2, Promise.resolve(response)];
|
|
980
980
|
}
|
|
981
981
|
});
|
|
982
982
|
}); };
|
|
@@ -988,55 +988,55 @@ var deserializeAws_json1_0StartFHIRImportJobCommandError = function (output, con
|
|
|
988
988
|
case 0:
|
|
989
989
|
_a = [__assign({}, output)];
|
|
990
990
|
_h = {};
|
|
991
|
-
return [4
|
|
991
|
+
return [4, parseBody(output.body, context)];
|
|
992
992
|
case 1:
|
|
993
993
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
994
994
|
errorCode = "UnknownError";
|
|
995
995
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
996
|
_b = errorCode;
|
|
997
997
|
switch (_b) {
|
|
998
|
-
case "AccessDeniedException": return [3
|
|
999
|
-
case "com.amazonaws.healthlake#AccessDeniedException": return [3
|
|
1000
|
-
case "InternalServerException": return [3
|
|
1001
|
-
case "com.amazonaws.healthlake#InternalServerException": return [3
|
|
1002
|
-
case "ResourceNotFoundException": return [3
|
|
1003
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
1004
|
-
case "ThrottlingException": return [3
|
|
1005
|
-
case "com.amazonaws.healthlake#ThrottlingException": return [3
|
|
1006
|
-
case "ValidationException": return [3
|
|
1007
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
998
|
+
case "AccessDeniedException": return [3, 2];
|
|
999
|
+
case "com.amazonaws.healthlake#AccessDeniedException": return [3, 2];
|
|
1000
|
+
case "InternalServerException": return [3, 4];
|
|
1001
|
+
case "com.amazonaws.healthlake#InternalServerException": return [3, 4];
|
|
1002
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1003
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 6];
|
|
1004
|
+
case "ThrottlingException": return [3, 8];
|
|
1005
|
+
case "com.amazonaws.healthlake#ThrottlingException": return [3, 8];
|
|
1006
|
+
case "ValidationException": return [3, 10];
|
|
1007
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 10];
|
|
1008
1008
|
}
|
|
1009
|
-
return [3
|
|
1009
|
+
return [3, 12];
|
|
1010
1010
|
case 2:
|
|
1011
1011
|
_c = [{}];
|
|
1012
|
-
return [4
|
|
1012
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1013
1013
|
case 3:
|
|
1014
1014
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1015
|
-
return [3
|
|
1015
|
+
return [3, 13];
|
|
1016
1016
|
case 4:
|
|
1017
1017
|
_d = [{}];
|
|
1018
|
-
return [4
|
|
1018
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1019
1019
|
case 5:
|
|
1020
1020
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1021
|
-
return [3
|
|
1021
|
+
return [3, 13];
|
|
1022
1022
|
case 6:
|
|
1023
1023
|
_e = [{}];
|
|
1024
|
-
return [4
|
|
1024
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1025
1025
|
case 7:
|
|
1026
1026
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1027
|
-
return [3
|
|
1027
|
+
return [3, 13];
|
|
1028
1028
|
case 8:
|
|
1029
1029
|
_f = [{}];
|
|
1030
|
-
return [4
|
|
1030
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1031
1031
|
case 9:
|
|
1032
1032
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1033
|
-
return [3
|
|
1033
|
+
return [3, 13];
|
|
1034
1034
|
case 10:
|
|
1035
1035
|
_g = [{}];
|
|
1036
|
-
return [4
|
|
1036
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1037
1037
|
case 11:
|
|
1038
1038
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1039
|
-
return [3
|
|
1039
|
+
return [3, 13];
|
|
1040
1040
|
case 12:
|
|
1041
1041
|
parsedBody = parsedOutput.body;
|
|
1042
1042
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1046,7 +1046,7 @@ var deserializeAws_json1_0StartFHIRImportJobCommandError = function (output, con
|
|
|
1046
1046
|
message = response.message || response.Message || errorCode;
|
|
1047
1047
|
response.message = message;
|
|
1048
1048
|
delete response.Message;
|
|
1049
|
-
return [2
|
|
1049
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1050
1050
|
}
|
|
1051
1051
|
});
|
|
1052
1052
|
}); };
|
|
@@ -1056,15 +1056,15 @@ export var deserializeAws_json1_0TagResourceCommand = function (output, context)
|
|
|
1056
1056
|
switch (_a.label) {
|
|
1057
1057
|
case 0:
|
|
1058
1058
|
if (output.statusCode >= 300) {
|
|
1059
|
-
return [2
|
|
1059
|
+
return [2, deserializeAws_json1_0TagResourceCommandError(output, context)];
|
|
1060
1060
|
}
|
|
1061
|
-
return [4
|
|
1061
|
+
return [4, parseBody(output.body, context)];
|
|
1062
1062
|
case 1:
|
|
1063
1063
|
data = _a.sent();
|
|
1064
1064
|
contents = {};
|
|
1065
1065
|
contents = deserializeAws_json1_0TagResourceResponse(data, context);
|
|
1066
1066
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1067
|
-
return [2
|
|
1067
|
+
return [2, Promise.resolve(response)];
|
|
1068
1068
|
}
|
|
1069
1069
|
});
|
|
1070
1070
|
}); };
|
|
@@ -1076,31 +1076,31 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
1076
1076
|
case 0:
|
|
1077
1077
|
_a = [__assign({}, output)];
|
|
1078
1078
|
_e = {};
|
|
1079
|
-
return [4
|
|
1079
|
+
return [4, parseBody(output.body, context)];
|
|
1080
1080
|
case 1:
|
|
1081
1081
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1082
1082
|
errorCode = "UnknownError";
|
|
1083
1083
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
1084
|
_b = errorCode;
|
|
1085
1085
|
switch (_b) {
|
|
1086
|
-
case "ResourceNotFoundException": return [3
|
|
1087
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
1088
|
-
case "ValidationException": return [3
|
|
1089
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
1086
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
1087
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 2];
|
|
1088
|
+
case "ValidationException": return [3, 4];
|
|
1089
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 4];
|
|
1090
1090
|
}
|
|
1091
|
-
return [3
|
|
1091
|
+
return [3, 6];
|
|
1092
1092
|
case 2:
|
|
1093
1093
|
_c = [{}];
|
|
1094
|
-
return [4
|
|
1094
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1095
1095
|
case 3:
|
|
1096
1096
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1097
|
-
return [3
|
|
1097
|
+
return [3, 7];
|
|
1098
1098
|
case 4:
|
|
1099
1099
|
_d = [{}];
|
|
1100
|
-
return [4
|
|
1100
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1101
1101
|
case 5:
|
|
1102
1102
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1103
|
-
return [3
|
|
1103
|
+
return [3, 7];
|
|
1104
1104
|
case 6:
|
|
1105
1105
|
parsedBody = parsedOutput.body;
|
|
1106
1106
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1110,7 +1110,7 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
|
|
|
1110
1110
|
message = response.message || response.Message || errorCode;
|
|
1111
1111
|
response.message = message;
|
|
1112
1112
|
delete response.Message;
|
|
1113
|
-
return [2
|
|
1113
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1114
1114
|
}
|
|
1115
1115
|
});
|
|
1116
1116
|
}); };
|
|
@@ -1120,15 +1120,15 @@ export var deserializeAws_json1_0UntagResourceCommand = function (output, contex
|
|
|
1120
1120
|
switch (_a.label) {
|
|
1121
1121
|
case 0:
|
|
1122
1122
|
if (output.statusCode >= 300) {
|
|
1123
|
-
return [2
|
|
1123
|
+
return [2, deserializeAws_json1_0UntagResourceCommandError(output, context)];
|
|
1124
1124
|
}
|
|
1125
|
-
return [4
|
|
1125
|
+
return [4, parseBody(output.body, context)];
|
|
1126
1126
|
case 1:
|
|
1127
1127
|
data = _a.sent();
|
|
1128
1128
|
contents = {};
|
|
1129
1129
|
contents = deserializeAws_json1_0UntagResourceResponse(data, context);
|
|
1130
1130
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1131
|
-
return [2
|
|
1131
|
+
return [2, Promise.resolve(response)];
|
|
1132
1132
|
}
|
|
1133
1133
|
});
|
|
1134
1134
|
}); };
|
|
@@ -1140,31 +1140,31 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
1140
1140
|
case 0:
|
|
1141
1141
|
_a = [__assign({}, output)];
|
|
1142
1142
|
_e = {};
|
|
1143
|
-
return [4
|
|
1143
|
+
return [4, parseBody(output.body, context)];
|
|
1144
1144
|
case 1:
|
|
1145
1145
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1146
1146
|
errorCode = "UnknownError";
|
|
1147
1147
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
1148
|
_b = errorCode;
|
|
1149
1149
|
switch (_b) {
|
|
1150
|
-
case "ResourceNotFoundException": return [3
|
|
1151
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3
|
|
1152
|
-
case "ValidationException": return [3
|
|
1153
|
-
case "com.amazonaws.healthlake#ValidationException": return [3
|
|
1150
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
1151
|
+
case "com.amazonaws.healthlake#ResourceNotFoundException": return [3, 2];
|
|
1152
|
+
case "ValidationException": return [3, 4];
|
|
1153
|
+
case "com.amazonaws.healthlake#ValidationException": return [3, 4];
|
|
1154
1154
|
}
|
|
1155
|
-
return [3
|
|
1155
|
+
return [3, 6];
|
|
1156
1156
|
case 2:
|
|
1157
1157
|
_c = [{}];
|
|
1158
|
-
return [4
|
|
1158
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1159
1159
|
case 3:
|
|
1160
1160
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1161
|
-
return [3
|
|
1161
|
+
return [3, 7];
|
|
1162
1162
|
case 4:
|
|
1163
1163
|
_d = [{}];
|
|
1164
|
-
return [4
|
|
1164
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1165
1165
|
case 5:
|
|
1166
1166
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1167
|
-
return [3
|
|
1167
|
+
return [3, 7];
|
|
1168
1168
|
case 6:
|
|
1169
1169
|
parsedBody = parsedOutput.body;
|
|
1170
1170
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1174,7 +1174,7 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
|
|
|
1174
1174
|
message = response.message || response.Message || errorCode;
|
|
1175
1175
|
response.message = message;
|
|
1176
1176
|
delete response.Message;
|
|
1177
|
-
return [2
|
|
1177
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1178
1178
|
}
|
|
1179
1179
|
});
|
|
1180
1180
|
}); };
|
|
@@ -1184,7 +1184,7 @@ var deserializeAws_json1_0AccessDeniedExceptionResponse = function (parsedOutput
|
|
|
1184
1184
|
body = parsedOutput.body;
|
|
1185
1185
|
deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
1186
1186
|
contents = __assign({ name: "AccessDeniedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1187
|
-
return [2
|
|
1187
|
+
return [2, contents];
|
|
1188
1188
|
});
|
|
1189
1189
|
}); };
|
|
1190
1190
|
var deserializeAws_json1_0ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1193,7 +1193,7 @@ var deserializeAws_json1_0ConflictExceptionResponse = function (parsedOutput, co
|
|
|
1193
1193
|
body = parsedOutput.body;
|
|
1194
1194
|
deserialized = deserializeAws_json1_0ConflictException(body, context);
|
|
1195
1195
|
contents = __assign({ name: "ConflictException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1196
|
-
return [2
|
|
1196
|
+
return [2, contents];
|
|
1197
1197
|
});
|
|
1198
1198
|
}); };
|
|
1199
1199
|
var deserializeAws_json1_0InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1202,7 +1202,7 @@ var deserializeAws_json1_0InternalServerExceptionResponse = function (parsedOutp
|
|
|
1202
1202
|
body = parsedOutput.body;
|
|
1203
1203
|
deserialized = deserializeAws_json1_0InternalServerException(body, context);
|
|
1204
1204
|
contents = __assign({ name: "InternalServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1205
|
-
return [2
|
|
1205
|
+
return [2, contents];
|
|
1206
1206
|
});
|
|
1207
1207
|
}); };
|
|
1208
1208
|
var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1211,7 +1211,7 @@ var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
1211
1211
|
body = parsedOutput.body;
|
|
1212
1212
|
deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1213
1213
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1214
|
-
return [2
|
|
1214
|
+
return [2, contents];
|
|
1215
1215
|
});
|
|
1216
1216
|
}); };
|
|
1217
1217
|
var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1220,7 +1220,7 @@ var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput,
|
|
|
1220
1220
|
body = parsedOutput.body;
|
|
1221
1221
|
deserialized = deserializeAws_json1_0ThrottlingException(body, context);
|
|
1222
1222
|
contents = __assign({ name: "ThrottlingException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1223
|
-
return [2
|
|
1223
|
+
return [2, contents];
|
|
1224
1224
|
});
|
|
1225
1225
|
}); };
|
|
1226
1226
|
var deserializeAws_json1_0ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1229,7 +1229,7 @@ var deserializeAws_json1_0ValidationExceptionResponse = function (parsedOutput,
|
|
|
1229
1229
|
body = parsedOutput.body;
|
|
1230
1230
|
deserialized = deserializeAws_json1_0ValidationException(body, context);
|
|
1231
1231
|
contents = __assign({ name: "ValidationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1232
|
-
return [2
|
|
1232
|
+
return [2, contents];
|
|
1233
1233
|
});
|
|
1234
1234
|
}); };
|
|
1235
1235
|
var serializeAws_json1_0CreateFHIRDatastoreRequest = function (input, context) {
|
|
@@ -1376,7 +1376,7 @@ var deserializeAws_json1_0CreateFHIRDatastoreResponse = function (output, contex
|
|
|
1376
1376
|
var deserializeAws_json1_0DatastoreProperties = function (output, context) {
|
|
1377
1377
|
return {
|
|
1378
1378
|
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
1379
|
-
?
|
|
1379
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
1380
1380
|
: undefined,
|
|
1381
1381
|
DatastoreArn: __expectString(output.DatastoreArn),
|
|
1382
1382
|
DatastoreEndpoint: __expectString(output.DatastoreEndpoint),
|
|
@@ -1435,16 +1435,18 @@ var deserializeAws_json1_0ExportJobProperties = function (output, context) {
|
|
|
1435
1435
|
return {
|
|
1436
1436
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
1437
1437
|
DatastoreId: __expectString(output.DatastoreId),
|
|
1438
|
-
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
1438
|
+
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
1439
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
1440
|
+
: undefined,
|
|
1439
1441
|
JobId: __expectString(output.JobId),
|
|
1440
1442
|
JobName: __expectString(output.JobName),
|
|
1441
1443
|
JobStatus: __expectString(output.JobStatus),
|
|
1442
1444
|
Message: __expectString(output.Message),
|
|
1443
1445
|
OutputDataConfig: output.OutputDataConfig !== undefined && output.OutputDataConfig !== null
|
|
1444
|
-
? deserializeAws_json1_0OutputDataConfig(output.OutputDataConfig, context)
|
|
1446
|
+
? deserializeAws_json1_0OutputDataConfig(__expectUnion(output.OutputDataConfig), context)
|
|
1445
1447
|
: undefined,
|
|
1446
1448
|
SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
1447
|
-
?
|
|
1449
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
1448
1450
|
: undefined,
|
|
1449
1451
|
};
|
|
1450
1452
|
};
|
|
@@ -1462,19 +1464,21 @@ var deserializeAws_json1_0ImportJobProperties = function (output, context) {
|
|
|
1462
1464
|
return {
|
|
1463
1465
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
1464
1466
|
DatastoreId: __expectString(output.DatastoreId),
|
|
1465
|
-
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
1467
|
+
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
1468
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
1469
|
+
: undefined,
|
|
1466
1470
|
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
1467
|
-
? deserializeAws_json1_0InputDataConfig(output.InputDataConfig, context)
|
|
1471
|
+
? deserializeAws_json1_0InputDataConfig(__expectUnion(output.InputDataConfig), context)
|
|
1468
1472
|
: undefined,
|
|
1469
1473
|
JobId: __expectString(output.JobId),
|
|
1470
1474
|
JobName: __expectString(output.JobName),
|
|
1471
1475
|
JobOutputDataConfig: output.JobOutputDataConfig !== undefined && output.JobOutputDataConfig !== null
|
|
1472
|
-
? deserializeAws_json1_0OutputDataConfig(output.JobOutputDataConfig, context)
|
|
1476
|
+
? deserializeAws_json1_0OutputDataConfig(__expectUnion(output.JobOutputDataConfig), context)
|
|
1473
1477
|
: undefined,
|
|
1474
1478
|
JobStatus: __expectString(output.JobStatus),
|
|
1475
1479
|
Message: __expectString(output.Message),
|
|
1476
1480
|
SubmitTime: output.SubmitTime !== undefined && output.SubmitTime !== null
|
|
1477
|
-
?
|
|
1481
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
1478
1482
|
: undefined,
|
|
1479
1483
|
};
|
|
1480
1484
|
};
|
|
@@ -1622,7 +1626,6 @@ var deserializeMetadata = function (output) {
|
|
|
1622
1626
|
cfId: output.headers["x-amz-cf-id"],
|
|
1623
1627
|
});
|
|
1624
1628
|
};
|
|
1625
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1626
1629
|
var collectBody = function (streamBody, context) {
|
|
1627
1630
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1628
1631
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -1630,7 +1633,6 @@ var collectBody = function (streamBody, context) {
|
|
|
1630
1633
|
}
|
|
1631
1634
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1632
1635
|
};
|
|
1633
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1634
1636
|
var collectBodyString = function (streamBody, context) {
|
|
1635
1637
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1636
1638
|
};
|
|
@@ -1638,7 +1640,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1638
1640
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
1639
1641
|
return __generator(this, function (_c) {
|
|
1640
1642
|
switch (_c.label) {
|
|
1641
|
-
case 0: return [4
|
|
1643
|
+
case 0: return [4, context.endpoint()];
|
|
1642
1644
|
case 1:
|
|
1643
1645
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1644
1646
|
contents = {
|
|
@@ -1655,7 +1657,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1655
1657
|
if (body !== undefined) {
|
|
1656
1658
|
contents.body = body;
|
|
1657
1659
|
}
|
|
1658
|
-
return [2
|
|
1660
|
+
return [2, new __HttpRequest(contents)];
|
|
1659
1661
|
}
|
|
1660
1662
|
});
|
|
1661
1663
|
}); };
|
|
@@ -1667,9 +1669,6 @@ var parseBody = function (streamBody, context) {
|
|
|
1667
1669
|
return {};
|
|
1668
1670
|
});
|
|
1669
1671
|
};
|
|
1670
|
-
/**
|
|
1671
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
1672
|
-
*/
|
|
1673
1672
|
var loadRestJsonErrorCode = function (output, data) {
|
|
1674
1673
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1675
1674
|
var sanitizeErrorCode = function (rawValue) {
|