@aws-sdk/client-healthlake 3.926.0 → 3.928.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +525 -659
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/HealthLakeClient.js +2 -0
- package/dist-es/commands/CreateFHIRDatastoreCommand.js +3 -9
- package/dist-es/commands/DeleteFHIRDatastoreCommand.js +3 -9
- package/dist-es/commands/DescribeFHIRDatastoreCommand.js +3 -9
- package/dist-es/commands/DescribeFHIRExportJobCommand.js +3 -9
- package/dist-es/commands/DescribeFHIRImportJobCommand.js +3 -9
- package/dist-es/commands/ListFHIRDatastoresCommand.js +3 -9
- package/dist-es/commands/ListFHIRExportJobsCommand.js +3 -9
- package/dist-es/commands/ListFHIRImportJobsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/StartFHIRExportJobCommand.js +3 -9
- package/dist-es/commands/StartFHIRImportJobCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +481 -0
- package/dist-types/HealthLakeClient.d.ts +10 -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/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +67 -0
- package/dist-types/ts3.4/HealthLakeClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +72 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_0.js +0 -554
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -119
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -161
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
8
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
9
|
+
export declare var CreateFHIRDatastoreRequest: StaticStructureSchema;
|
|
10
|
+
export declare var CreateFHIRDatastoreResponse: StaticStructureSchema;
|
|
11
|
+
export declare var DatastoreFilter: StaticStructureSchema;
|
|
12
|
+
export declare var DatastoreProperties: StaticStructureSchema;
|
|
13
|
+
export declare var DeleteFHIRDatastoreRequest: StaticStructureSchema;
|
|
14
|
+
export declare var DeleteFHIRDatastoreResponse: StaticStructureSchema;
|
|
15
|
+
export declare var DescribeFHIRDatastoreRequest: StaticStructureSchema;
|
|
16
|
+
export declare var DescribeFHIRDatastoreResponse: StaticStructureSchema;
|
|
17
|
+
export declare var DescribeFHIRExportJobRequest: StaticStructureSchema;
|
|
18
|
+
export declare var DescribeFHIRExportJobResponse: StaticStructureSchema;
|
|
19
|
+
export declare var DescribeFHIRImportJobRequest: StaticStructureSchema;
|
|
20
|
+
export declare var DescribeFHIRImportJobResponse: StaticStructureSchema;
|
|
21
|
+
export declare var ErrorCause: StaticStructureSchema;
|
|
22
|
+
export declare var ExportJobProperties: StaticStructureSchema;
|
|
23
|
+
export declare var IdentityProviderConfiguration: StaticStructureSchema;
|
|
24
|
+
export declare var ImportJobProperties: StaticStructureSchema;
|
|
25
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
26
|
+
export declare var JobProgressReport: StaticStructureSchema;
|
|
27
|
+
export declare var KmsEncryptionConfig: StaticStructureSchema;
|
|
28
|
+
export declare var ListFHIRDatastoresRequest: StaticStructureSchema;
|
|
29
|
+
export declare var ListFHIRDatastoresResponse: StaticStructureSchema;
|
|
30
|
+
export declare var ListFHIRExportJobsRequest: StaticStructureSchema;
|
|
31
|
+
export declare var ListFHIRExportJobsResponse: StaticStructureSchema;
|
|
32
|
+
export declare var ListFHIRImportJobsRequest: StaticStructureSchema;
|
|
33
|
+
export declare var ListFHIRImportJobsResponse: StaticStructureSchema;
|
|
34
|
+
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
35
|
+
export declare var ListTagsForResourceResponse: StaticStructureSchema;
|
|
36
|
+
export declare var PreloadDataConfig: StaticStructureSchema;
|
|
37
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
38
|
+
export declare var S3Configuration: StaticStructureSchema;
|
|
39
|
+
export declare var SseConfiguration: StaticStructureSchema;
|
|
40
|
+
export declare var StartFHIRExportJobRequest: StaticStructureSchema;
|
|
41
|
+
export declare var StartFHIRExportJobResponse: StaticStructureSchema;
|
|
42
|
+
export declare var StartFHIRImportJobRequest: StaticStructureSchema;
|
|
43
|
+
export declare var StartFHIRImportJobResponse: StaticStructureSchema;
|
|
44
|
+
export declare var Tag: StaticStructureSchema;
|
|
45
|
+
export declare var TagResourceRequest: StaticStructureSchema;
|
|
46
|
+
export declare var TagResourceResponse: StaticStructureSchema;
|
|
47
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
48
|
+
export declare var UntagResourceRequest: StaticStructureSchema;
|
|
49
|
+
export declare var UntagResourceResponse: StaticStructureSchema;
|
|
50
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
51
|
+
export declare var __Unit: "unit";
|
|
52
|
+
export declare var HealthLakeServiceException: StaticErrorSchema;
|
|
53
|
+
export declare var DatastorePropertiesList: StaticListSchema;
|
|
54
|
+
export declare var ExportJobPropertiesList: StaticListSchema;
|
|
55
|
+
export declare var ImportJobPropertiesList: StaticListSchema;
|
|
56
|
+
export declare var TagKeyList: number;
|
|
57
|
+
export declare var TagList: StaticListSchema;
|
|
58
|
+
export declare var InputDataConfig: StaticStructureSchema;
|
|
59
|
+
export declare var OutputDataConfig: StaticStructureSchema;
|
|
60
|
+
export declare var CreateFHIRDatastore: StaticOperationSchema;
|
|
61
|
+
export declare var DeleteFHIRDatastore: StaticOperationSchema;
|
|
62
|
+
export declare var DescribeFHIRDatastore: StaticOperationSchema;
|
|
63
|
+
export declare var DescribeFHIRExportJob: StaticOperationSchema;
|
|
64
|
+
export declare var DescribeFHIRImportJob: StaticOperationSchema;
|
|
65
|
+
export declare var ListFHIRDatastores: StaticOperationSchema;
|
|
66
|
+
export declare var ListFHIRExportJobs: StaticOperationSchema;
|
|
67
|
+
export declare var ListFHIRImportJobs: StaticOperationSchema;
|
|
68
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
69
|
+
export declare var StartFHIRExportJob: StaticOperationSchema;
|
|
70
|
+
export declare var StartFHIRImportJob: StaticOperationSchema;
|
|
71
|
+
export declare var TagResource: StaticOperationSchema;
|
|
72
|
+
export declare var UntagResource: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-healthlake",
|
|
3
3
|
"description": "AWS SDK for JavaScript Healthlake Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.928.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-healthlake",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.928.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"@smithy/util-retry": "^4.2.4",
|
|
58
58
|
"@smithy/util-utf8": "^4.2.0",
|
|
59
59
|
"@smithy/util-waiter": "^4.2.4",
|
|
60
|
-
"@smithy/uuid": "^1.1.0",
|
|
61
60
|
"tslib": "^2.6.2"
|
|
62
61
|
},
|
|
63
62
|
"devDependencies": {
|
|
@@ -1,554 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { HealthLakeServiceException as __BaseException } from "../models/HealthLakeServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateFHIRDatastoreCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("CreateFHIRDatastore");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(se_CreateFHIRDatastoreRequest(input, context));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_DeleteFHIRDatastoreCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("DeleteFHIRDatastore");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(_json(input));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_DescribeFHIRDatastoreCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("DescribeFHIRDatastore");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(_json(input));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_DescribeFHIRExportJobCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("DescribeFHIRExportJob");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_DescribeFHIRImportJobCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("DescribeFHIRImportJob");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(_json(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_ListFHIRDatastoresCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("ListFHIRDatastores");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(se_ListFHIRDatastoresRequest(input, context));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_ListFHIRExportJobsCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("ListFHIRExportJobs");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(se_ListFHIRExportJobsRequest(input, context));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_ListFHIRImportJobsCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("ListFHIRImportJobs");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(se_ListFHIRImportJobsRequest(input, context));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_StartFHIRExportJobCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("StartFHIRExportJob");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(se_StartFHIRExportJobRequest(input, context));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_StartFHIRImportJobCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("StartFHIRImportJob");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(se_StartFHIRImportJobRequest(input, context));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("TagResource");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("UntagResource");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const de_CreateFHIRDatastoreCommand = async (output, context) => {
|
|
86
|
-
if (output.statusCode >= 300) {
|
|
87
|
-
return de_CommandError(output, context);
|
|
88
|
-
}
|
|
89
|
-
const data = await parseBody(output.body, context);
|
|
90
|
-
let contents = {};
|
|
91
|
-
contents = _json(data);
|
|
92
|
-
const response = {
|
|
93
|
-
$metadata: deserializeMetadata(output),
|
|
94
|
-
...contents,
|
|
95
|
-
};
|
|
96
|
-
return response;
|
|
97
|
-
};
|
|
98
|
-
export const de_DeleteFHIRDatastoreCommand = async (output, context) => {
|
|
99
|
-
if (output.statusCode >= 300) {
|
|
100
|
-
return de_CommandError(output, context);
|
|
101
|
-
}
|
|
102
|
-
const data = await parseBody(output.body, context);
|
|
103
|
-
let contents = {};
|
|
104
|
-
contents = _json(data);
|
|
105
|
-
const response = {
|
|
106
|
-
$metadata: deserializeMetadata(output),
|
|
107
|
-
...contents,
|
|
108
|
-
};
|
|
109
|
-
return response;
|
|
110
|
-
};
|
|
111
|
-
export const de_DescribeFHIRDatastoreCommand = async (output, context) => {
|
|
112
|
-
if (output.statusCode >= 300) {
|
|
113
|
-
return de_CommandError(output, context);
|
|
114
|
-
}
|
|
115
|
-
const data = await parseBody(output.body, context);
|
|
116
|
-
let contents = {};
|
|
117
|
-
contents = de_DescribeFHIRDatastoreResponse(data, context);
|
|
118
|
-
const response = {
|
|
119
|
-
$metadata: deserializeMetadata(output),
|
|
120
|
-
...contents,
|
|
121
|
-
};
|
|
122
|
-
return response;
|
|
123
|
-
};
|
|
124
|
-
export const de_DescribeFHIRExportJobCommand = async (output, context) => {
|
|
125
|
-
if (output.statusCode >= 300) {
|
|
126
|
-
return de_CommandError(output, context);
|
|
127
|
-
}
|
|
128
|
-
const data = await parseBody(output.body, context);
|
|
129
|
-
let contents = {};
|
|
130
|
-
contents = de_DescribeFHIRExportJobResponse(data, context);
|
|
131
|
-
const response = {
|
|
132
|
-
$metadata: deserializeMetadata(output),
|
|
133
|
-
...contents,
|
|
134
|
-
};
|
|
135
|
-
return response;
|
|
136
|
-
};
|
|
137
|
-
export const de_DescribeFHIRImportJobCommand = async (output, context) => {
|
|
138
|
-
if (output.statusCode >= 300) {
|
|
139
|
-
return de_CommandError(output, context);
|
|
140
|
-
}
|
|
141
|
-
const data = await parseBody(output.body, context);
|
|
142
|
-
let contents = {};
|
|
143
|
-
contents = de_DescribeFHIRImportJobResponse(data, context);
|
|
144
|
-
const response = {
|
|
145
|
-
$metadata: deserializeMetadata(output),
|
|
146
|
-
...contents,
|
|
147
|
-
};
|
|
148
|
-
return response;
|
|
149
|
-
};
|
|
150
|
-
export const de_ListFHIRDatastoresCommand = async (output, context) => {
|
|
151
|
-
if (output.statusCode >= 300) {
|
|
152
|
-
return de_CommandError(output, context);
|
|
153
|
-
}
|
|
154
|
-
const data = await parseBody(output.body, context);
|
|
155
|
-
let contents = {};
|
|
156
|
-
contents = de_ListFHIRDatastoresResponse(data, context);
|
|
157
|
-
const response = {
|
|
158
|
-
$metadata: deserializeMetadata(output),
|
|
159
|
-
...contents,
|
|
160
|
-
};
|
|
161
|
-
return response;
|
|
162
|
-
};
|
|
163
|
-
export const de_ListFHIRExportJobsCommand = async (output, context) => {
|
|
164
|
-
if (output.statusCode >= 300) {
|
|
165
|
-
return de_CommandError(output, context);
|
|
166
|
-
}
|
|
167
|
-
const data = await parseBody(output.body, context);
|
|
168
|
-
let contents = {};
|
|
169
|
-
contents = de_ListFHIRExportJobsResponse(data, context);
|
|
170
|
-
const response = {
|
|
171
|
-
$metadata: deserializeMetadata(output),
|
|
172
|
-
...contents,
|
|
173
|
-
};
|
|
174
|
-
return response;
|
|
175
|
-
};
|
|
176
|
-
export const de_ListFHIRImportJobsCommand = async (output, context) => {
|
|
177
|
-
if (output.statusCode >= 300) {
|
|
178
|
-
return de_CommandError(output, context);
|
|
179
|
-
}
|
|
180
|
-
const data = await parseBody(output.body, context);
|
|
181
|
-
let contents = {};
|
|
182
|
-
contents = de_ListFHIRImportJobsResponse(data, context);
|
|
183
|
-
const response = {
|
|
184
|
-
$metadata: deserializeMetadata(output),
|
|
185
|
-
...contents,
|
|
186
|
-
};
|
|
187
|
-
return response;
|
|
188
|
-
};
|
|
189
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
190
|
-
if (output.statusCode >= 300) {
|
|
191
|
-
return de_CommandError(output, context);
|
|
192
|
-
}
|
|
193
|
-
const data = await parseBody(output.body, context);
|
|
194
|
-
let contents = {};
|
|
195
|
-
contents = _json(data);
|
|
196
|
-
const response = {
|
|
197
|
-
$metadata: deserializeMetadata(output),
|
|
198
|
-
...contents,
|
|
199
|
-
};
|
|
200
|
-
return response;
|
|
201
|
-
};
|
|
202
|
-
export const de_StartFHIRExportJobCommand = async (output, context) => {
|
|
203
|
-
if (output.statusCode >= 300) {
|
|
204
|
-
return de_CommandError(output, context);
|
|
205
|
-
}
|
|
206
|
-
const data = await parseBody(output.body, context);
|
|
207
|
-
let contents = {};
|
|
208
|
-
contents = _json(data);
|
|
209
|
-
const response = {
|
|
210
|
-
$metadata: deserializeMetadata(output),
|
|
211
|
-
...contents,
|
|
212
|
-
};
|
|
213
|
-
return response;
|
|
214
|
-
};
|
|
215
|
-
export const de_StartFHIRImportJobCommand = async (output, context) => {
|
|
216
|
-
if (output.statusCode >= 300) {
|
|
217
|
-
return de_CommandError(output, context);
|
|
218
|
-
}
|
|
219
|
-
const data = await parseBody(output.body, context);
|
|
220
|
-
let contents = {};
|
|
221
|
-
contents = _json(data);
|
|
222
|
-
const response = {
|
|
223
|
-
$metadata: deserializeMetadata(output),
|
|
224
|
-
...contents,
|
|
225
|
-
};
|
|
226
|
-
return response;
|
|
227
|
-
};
|
|
228
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
229
|
-
if (output.statusCode >= 300) {
|
|
230
|
-
return de_CommandError(output, context);
|
|
231
|
-
}
|
|
232
|
-
const data = await parseBody(output.body, context);
|
|
233
|
-
let contents = {};
|
|
234
|
-
contents = _json(data);
|
|
235
|
-
const response = {
|
|
236
|
-
$metadata: deserializeMetadata(output),
|
|
237
|
-
...contents,
|
|
238
|
-
};
|
|
239
|
-
return response;
|
|
240
|
-
};
|
|
241
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
242
|
-
if (output.statusCode >= 300) {
|
|
243
|
-
return de_CommandError(output, context);
|
|
244
|
-
}
|
|
245
|
-
const data = await parseBody(output.body, context);
|
|
246
|
-
let contents = {};
|
|
247
|
-
contents = _json(data);
|
|
248
|
-
const response = {
|
|
249
|
-
$metadata: deserializeMetadata(output),
|
|
250
|
-
...contents,
|
|
251
|
-
};
|
|
252
|
-
return response;
|
|
253
|
-
};
|
|
254
|
-
const de_CommandError = async (output, context) => {
|
|
255
|
-
const parsedOutput = {
|
|
256
|
-
...output,
|
|
257
|
-
body: await parseErrorBody(output.body, context),
|
|
258
|
-
};
|
|
259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
|
-
switch (errorCode) {
|
|
261
|
-
case "AccessDeniedException":
|
|
262
|
-
case "com.amazonaws.healthlake#AccessDeniedException":
|
|
263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
264
|
-
case "InternalServerException":
|
|
265
|
-
case "com.amazonaws.healthlake#InternalServerException":
|
|
266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
267
|
-
case "ThrottlingException":
|
|
268
|
-
case "com.amazonaws.healthlake#ThrottlingException":
|
|
269
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
270
|
-
case "ValidationException":
|
|
271
|
-
case "com.amazonaws.healthlake#ValidationException":
|
|
272
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
273
|
-
case "ConflictException":
|
|
274
|
-
case "com.amazonaws.healthlake#ConflictException":
|
|
275
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
276
|
-
case "ResourceNotFoundException":
|
|
277
|
-
case "com.amazonaws.healthlake#ResourceNotFoundException":
|
|
278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
279
|
-
default:
|
|
280
|
-
const parsedBody = parsedOutput.body;
|
|
281
|
-
return throwDefaultError({
|
|
282
|
-
output,
|
|
283
|
-
parsedBody,
|
|
284
|
-
errorCode,
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
289
|
-
const body = parsedOutput.body;
|
|
290
|
-
const deserialized = _json(body);
|
|
291
|
-
const exception = new AccessDeniedException({
|
|
292
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
293
|
-
...deserialized,
|
|
294
|
-
});
|
|
295
|
-
return __decorateServiceException(exception, body);
|
|
296
|
-
};
|
|
297
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
298
|
-
const body = parsedOutput.body;
|
|
299
|
-
const deserialized = _json(body);
|
|
300
|
-
const exception = new ConflictException({
|
|
301
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
302
|
-
...deserialized,
|
|
303
|
-
});
|
|
304
|
-
return __decorateServiceException(exception, body);
|
|
305
|
-
};
|
|
306
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
307
|
-
const body = parsedOutput.body;
|
|
308
|
-
const deserialized = _json(body);
|
|
309
|
-
const exception = new InternalServerException({
|
|
310
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
311
|
-
...deserialized,
|
|
312
|
-
});
|
|
313
|
-
return __decorateServiceException(exception, body);
|
|
314
|
-
};
|
|
315
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
316
|
-
const body = parsedOutput.body;
|
|
317
|
-
const deserialized = _json(body);
|
|
318
|
-
const exception = new ResourceNotFoundException({
|
|
319
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
320
|
-
...deserialized,
|
|
321
|
-
});
|
|
322
|
-
return __decorateServiceException(exception, body);
|
|
323
|
-
};
|
|
324
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
325
|
-
const body = parsedOutput.body;
|
|
326
|
-
const deserialized = _json(body);
|
|
327
|
-
const exception = new ThrottlingException({
|
|
328
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
329
|
-
...deserialized,
|
|
330
|
-
});
|
|
331
|
-
return __decorateServiceException(exception, body);
|
|
332
|
-
};
|
|
333
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
334
|
-
const body = parsedOutput.body;
|
|
335
|
-
const deserialized = _json(body);
|
|
336
|
-
const exception = new ValidationException({
|
|
337
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
338
|
-
...deserialized,
|
|
339
|
-
});
|
|
340
|
-
return __decorateServiceException(exception, body);
|
|
341
|
-
};
|
|
342
|
-
const se_CreateFHIRDatastoreRequest = (input, context) => {
|
|
343
|
-
return take(input, {
|
|
344
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
345
|
-
DatastoreName: [],
|
|
346
|
-
DatastoreTypeVersion: [],
|
|
347
|
-
IdentityProviderConfiguration: _json,
|
|
348
|
-
PreloadDataConfig: _json,
|
|
349
|
-
SseConfiguration: _json,
|
|
350
|
-
Tags: _json,
|
|
351
|
-
});
|
|
352
|
-
};
|
|
353
|
-
const se_DatastoreFilter = (input, context) => {
|
|
354
|
-
return take(input, {
|
|
355
|
-
CreatedAfter: (_) => _.getTime() / 1_000,
|
|
356
|
-
CreatedBefore: (_) => _.getTime() / 1_000,
|
|
357
|
-
DatastoreName: [],
|
|
358
|
-
DatastoreStatus: [],
|
|
359
|
-
});
|
|
360
|
-
};
|
|
361
|
-
const se_ListFHIRDatastoresRequest = (input, context) => {
|
|
362
|
-
return take(input, {
|
|
363
|
-
Filter: (_) => se_DatastoreFilter(_, context),
|
|
364
|
-
MaxResults: [],
|
|
365
|
-
NextToken: [],
|
|
366
|
-
});
|
|
367
|
-
};
|
|
368
|
-
const se_ListFHIRExportJobsRequest = (input, context) => {
|
|
369
|
-
return take(input, {
|
|
370
|
-
DatastoreId: [],
|
|
371
|
-
JobName: [],
|
|
372
|
-
JobStatus: [],
|
|
373
|
-
MaxResults: [],
|
|
374
|
-
NextToken: [],
|
|
375
|
-
SubmittedAfter: (_) => _.getTime() / 1_000,
|
|
376
|
-
SubmittedBefore: (_) => _.getTime() / 1_000,
|
|
377
|
-
});
|
|
378
|
-
};
|
|
379
|
-
const se_ListFHIRImportJobsRequest = (input, context) => {
|
|
380
|
-
return take(input, {
|
|
381
|
-
DatastoreId: [],
|
|
382
|
-
JobName: [],
|
|
383
|
-
JobStatus: [],
|
|
384
|
-
MaxResults: [],
|
|
385
|
-
NextToken: [],
|
|
386
|
-
SubmittedAfter: (_) => _.getTime() / 1_000,
|
|
387
|
-
SubmittedBefore: (_) => _.getTime() / 1_000,
|
|
388
|
-
});
|
|
389
|
-
};
|
|
390
|
-
const se_StartFHIRExportJobRequest = (input, context) => {
|
|
391
|
-
return take(input, {
|
|
392
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
393
|
-
DataAccessRoleArn: [],
|
|
394
|
-
DatastoreId: [],
|
|
395
|
-
JobName: [],
|
|
396
|
-
OutputDataConfig: _json,
|
|
397
|
-
});
|
|
398
|
-
};
|
|
399
|
-
const se_StartFHIRImportJobRequest = (input, context) => {
|
|
400
|
-
return take(input, {
|
|
401
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
402
|
-
DataAccessRoleArn: [],
|
|
403
|
-
DatastoreId: [],
|
|
404
|
-
InputDataConfig: _json,
|
|
405
|
-
JobName: [],
|
|
406
|
-
JobOutputDataConfig: _json,
|
|
407
|
-
ValidationLevel: [],
|
|
408
|
-
});
|
|
409
|
-
};
|
|
410
|
-
const de_DatastoreProperties = (output, context) => {
|
|
411
|
-
return take(output, {
|
|
412
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
413
|
-
DatastoreArn: __expectString,
|
|
414
|
-
DatastoreEndpoint: __expectString,
|
|
415
|
-
DatastoreId: __expectString,
|
|
416
|
-
DatastoreName: __expectString,
|
|
417
|
-
DatastoreStatus: __expectString,
|
|
418
|
-
DatastoreTypeVersion: __expectString,
|
|
419
|
-
ErrorCause: _json,
|
|
420
|
-
IdentityProviderConfiguration: _json,
|
|
421
|
-
PreloadDataConfig: _json,
|
|
422
|
-
SseConfiguration: _json,
|
|
423
|
-
});
|
|
424
|
-
};
|
|
425
|
-
const de_DatastorePropertiesList = (output, context) => {
|
|
426
|
-
const retVal = (output || [])
|
|
427
|
-
.filter((e) => e != null)
|
|
428
|
-
.map((entry) => {
|
|
429
|
-
return de_DatastoreProperties(entry, context);
|
|
430
|
-
});
|
|
431
|
-
return retVal;
|
|
432
|
-
};
|
|
433
|
-
const de_DescribeFHIRDatastoreResponse = (output, context) => {
|
|
434
|
-
return take(output, {
|
|
435
|
-
DatastoreProperties: (_) => de_DatastoreProperties(_, context),
|
|
436
|
-
});
|
|
437
|
-
};
|
|
438
|
-
const de_DescribeFHIRExportJobResponse = (output, context) => {
|
|
439
|
-
return take(output, {
|
|
440
|
-
ExportJobProperties: (_) => de_ExportJobProperties(_, context),
|
|
441
|
-
});
|
|
442
|
-
};
|
|
443
|
-
const de_DescribeFHIRImportJobResponse = (output, context) => {
|
|
444
|
-
return take(output, {
|
|
445
|
-
ImportJobProperties: (_) => de_ImportJobProperties(_, context),
|
|
446
|
-
});
|
|
447
|
-
};
|
|
448
|
-
const de_ExportJobProperties = (output, context) => {
|
|
449
|
-
return take(output, {
|
|
450
|
-
DataAccessRoleArn: __expectString,
|
|
451
|
-
DatastoreId: __expectString,
|
|
452
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
453
|
-
JobId: __expectString,
|
|
454
|
-
JobName: __expectString,
|
|
455
|
-
JobStatus: __expectString,
|
|
456
|
-
Message: __expectString,
|
|
457
|
-
OutputDataConfig: (_) => _json(__expectUnion(_)),
|
|
458
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
459
|
-
});
|
|
460
|
-
};
|
|
461
|
-
const de_ExportJobPropertiesList = (output, context) => {
|
|
462
|
-
const retVal = (output || [])
|
|
463
|
-
.filter((e) => e != null)
|
|
464
|
-
.map((entry) => {
|
|
465
|
-
return de_ExportJobProperties(entry, context);
|
|
466
|
-
});
|
|
467
|
-
return retVal;
|
|
468
|
-
};
|
|
469
|
-
const de_ImportJobProperties = (output, context) => {
|
|
470
|
-
return take(output, {
|
|
471
|
-
DataAccessRoleArn: __expectString,
|
|
472
|
-
DatastoreId: __expectString,
|
|
473
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
474
|
-
InputDataConfig: (_) => _json(__expectUnion(_)),
|
|
475
|
-
JobId: __expectString,
|
|
476
|
-
JobName: __expectString,
|
|
477
|
-
JobOutputDataConfig: (_) => _json(__expectUnion(_)),
|
|
478
|
-
JobProgressReport: (_) => de_JobProgressReport(_, context),
|
|
479
|
-
JobStatus: __expectString,
|
|
480
|
-
Message: __expectString,
|
|
481
|
-
SubmitTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
482
|
-
ValidationLevel: __expectString,
|
|
483
|
-
});
|
|
484
|
-
};
|
|
485
|
-
const de_ImportJobPropertiesList = (output, context) => {
|
|
486
|
-
const retVal = (output || [])
|
|
487
|
-
.filter((e) => e != null)
|
|
488
|
-
.map((entry) => {
|
|
489
|
-
return de_ImportJobProperties(entry, context);
|
|
490
|
-
});
|
|
491
|
-
return retVal;
|
|
492
|
-
};
|
|
493
|
-
const de_JobProgressReport = (output, context) => {
|
|
494
|
-
return take(output, {
|
|
495
|
-
Throughput: __limitedParseDouble,
|
|
496
|
-
TotalNumberOfFilesReadWithCustomerError: __expectLong,
|
|
497
|
-
TotalNumberOfImportedFiles: __expectLong,
|
|
498
|
-
TotalNumberOfResourcesImported: __expectLong,
|
|
499
|
-
TotalNumberOfResourcesScanned: __expectLong,
|
|
500
|
-
TotalNumberOfResourcesWithCustomerError: __expectLong,
|
|
501
|
-
TotalNumberOfScannedFiles: __expectLong,
|
|
502
|
-
TotalSizeOfScannedFilesInMB: __limitedParseDouble,
|
|
503
|
-
});
|
|
504
|
-
};
|
|
505
|
-
const de_ListFHIRDatastoresResponse = (output, context) => {
|
|
506
|
-
return take(output, {
|
|
507
|
-
DatastorePropertiesList: (_) => de_DatastorePropertiesList(_, context),
|
|
508
|
-
NextToken: __expectString,
|
|
509
|
-
});
|
|
510
|
-
};
|
|
511
|
-
const de_ListFHIRExportJobsResponse = (output, context) => {
|
|
512
|
-
return take(output, {
|
|
513
|
-
ExportJobPropertiesList: (_) => de_ExportJobPropertiesList(_, context),
|
|
514
|
-
NextToken: __expectString,
|
|
515
|
-
});
|
|
516
|
-
};
|
|
517
|
-
const de_ListFHIRImportJobsResponse = (output, context) => {
|
|
518
|
-
return take(output, {
|
|
519
|
-
ImportJobPropertiesList: (_) => de_ImportJobPropertiesList(_, context),
|
|
520
|
-
NextToken: __expectString,
|
|
521
|
-
});
|
|
522
|
-
};
|
|
523
|
-
const deserializeMetadata = (output) => ({
|
|
524
|
-
httpStatusCode: output.statusCode,
|
|
525
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
526
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
527
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
528
|
-
});
|
|
529
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
530
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
531
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
532
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
533
|
-
const contents = {
|
|
534
|
-
protocol,
|
|
535
|
-
hostname,
|
|
536
|
-
port,
|
|
537
|
-
method: "POST",
|
|
538
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
539
|
-
headers,
|
|
540
|
-
};
|
|
541
|
-
if (resolvedHostname !== undefined) {
|
|
542
|
-
contents.hostname = resolvedHostname;
|
|
543
|
-
}
|
|
544
|
-
if (body !== undefined) {
|
|
545
|
-
contents.body = body;
|
|
546
|
-
}
|
|
547
|
-
return new __HttpRequest(contents);
|
|
548
|
-
};
|
|
549
|
-
function sharedHeaders(operation) {
|
|
550
|
-
return {
|
|
551
|
-
"content-type": "application/x-amz-json-1.0",
|
|
552
|
-
"x-amz-target": `HealthLake.${operation}`,
|
|
553
|
-
};
|
|
554
|
-
}
|