@aws-sdk/client-finspace-data 3.40.0 → 3.45.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 +41 -0
- package/README.md +1 -1
- package/dist-cjs/FinspaceData.js +165 -0
- package/dist-cjs/commands/CreateDataViewCommand.js +36 -0
- package/dist-cjs/commands/CreateDatasetCommand.js +36 -0
- package/dist-cjs/commands/DeleteDatasetCommand.js +36 -0
- package/dist-cjs/commands/GetChangesetCommand.js +36 -0
- package/dist-cjs/commands/GetDataViewCommand.js +36 -0
- package/dist-cjs/commands/GetDatasetCommand.js +36 -0
- package/dist-cjs/commands/ListChangesetsCommand.js +36 -0
- package/dist-cjs/commands/ListDataViewsCommand.js +36 -0
- package/dist-cjs/commands/ListDatasetsCommand.js +36 -0
- package/dist-cjs/commands/UpdateChangesetCommand.js +36 -0
- package/dist-cjs/commands/UpdateDatasetCommand.js +36 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoints.js +9 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +280 -43
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListChangesetsPaginator.js +35 -0
- package/dist-cjs/pagination/ListDataViewsPaginator.js +35 -0
- package/dist-cjs/pagination/ListDatasetsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1912 -60
- package/dist-es/FinspaceData.js +165 -0
- package/dist-es/commands/CreateDataViewCommand.js +39 -0
- package/dist-es/commands/CreateDatasetCommand.js +39 -0
- package/dist-es/commands/DeleteDatasetCommand.js +39 -0
- package/dist-es/commands/GetChangesetCommand.js +39 -0
- package/dist-es/commands/GetDataViewCommand.js +39 -0
- package/dist-es/commands/GetDatasetCommand.js +39 -0
- package/dist-es/commands/ListChangesetsCommand.js +39 -0
- package/dist-es/commands/ListDataViewsCommand.js +39 -0
- package/dist-es/commands/ListDatasetsCommand.js +39 -0
- package/dist-es/commands/UpdateChangesetCommand.js +39 -0
- package/dist-es/commands/UpdateDatasetCommand.js +39 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoints.js +9 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +206 -38
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListChangesetsPaginator.js +74 -0
- package/dist-es/pagination/ListDataViewsPaginator.js +74 -0
- package/dist-es/pagination/ListDatasetsPaginator.js +74 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +2109 -104
- package/dist-types/FinspaceData.d.ts +82 -5
- package/dist-types/FinspaceDataClient.d.ts +14 -3
- package/dist-types/commands/CreateChangesetCommand.d.ts +2 -2
- package/dist-types/commands/CreateDataViewCommand.d.ts +35 -0
- package/dist-types/commands/CreateDatasetCommand.d.ts +35 -0
- package/dist-types/commands/DeleteDatasetCommand.d.ts +35 -0
- package/dist-types/commands/GetChangesetCommand.d.ts +35 -0
- package/dist-types/commands/GetDataViewCommand.d.ts +35 -0
- package/dist-types/commands/GetDatasetCommand.d.ts +35 -0
- package/dist-types/commands/GetProgrammaticAccessCredentialsCommand.d.ts +2 -2
- package/dist-types/commands/GetWorkingLocationCommand.d.ts +3 -3
- package/dist-types/commands/ListChangesetsCommand.d.ts +35 -0
- package/dist-types/commands/ListDataViewsCommand.d.ts +35 -0
- package/dist-types/commands/ListDatasetsCommand.d.ts +35 -0
- package/dist-types/commands/UpdateChangesetCommand.d.ts +35 -0
- package/dist-types/commands/UpdateDatasetCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1438 -242
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListChangesetsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDataViewsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDatasetsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +33 -0
- package/dist-types/ts3.4/FinspaceData.d.ts +55 -0
- package/dist-types/ts3.4/FinspaceDataClient.d.ts +13 -2
- package/dist-types/ts3.4/commands/CreateDataViewCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetChangesetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDataViewCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListChangesetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDataViewsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateChangesetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +606 -71
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListChangesetsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDataViewsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +33 -0
- package/package.json +9 -7
|
@@ -1,17 +1,89 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import {
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
export var serializeAws_restJson1CreateChangesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
6
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
var _c;
|
|
8
|
+
return __generator(this, function (_d) {
|
|
9
|
+
switch (_d.label) {
|
|
8
10
|
case 0: return [4, context.endpoint()];
|
|
9
11
|
case 1:
|
|
10
|
-
_a =
|
|
12
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
|
+
headers = {
|
|
14
|
+
"content-type": "application/json",
|
|
15
|
+
};
|
|
16
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets/{datasetId}/changesetsv2";
|
|
17
|
+
if (input.datasetId !== undefined) {
|
|
18
|
+
labelValue = input.datasetId;
|
|
19
|
+
if (labelValue.length <= 0) {
|
|
20
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
21
|
+
}
|
|
22
|
+
resolvedPath = resolvedPath.replace("{datasetId}", __extendedEncodeURIComponent(labelValue));
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
26
|
+
}
|
|
27
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.changeType !== undefined && input.changeType !== null && { changeType: input.changeType })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.formatParams !== undefined &&
|
|
28
|
+
input.formatParams !== null && { formatParams: serializeAws_restJson1FormatParams(input.formatParams, context) })), (input.sourceParams !== undefined &&
|
|
29
|
+
input.sourceParams !== null && { sourceParams: serializeAws_restJson1SourceParams(input.sourceParams, context) })));
|
|
30
|
+
return [2, new __HttpRequest({
|
|
31
|
+
protocol: protocol,
|
|
32
|
+
hostname: hostname,
|
|
33
|
+
port: port,
|
|
34
|
+
method: "POST",
|
|
35
|
+
headers: headers,
|
|
36
|
+
path: resolvedPath,
|
|
37
|
+
body: body,
|
|
38
|
+
})];
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}); };
|
|
42
|
+
export var serializeAws_restJson1CreateDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
43
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
44
|
+
var _c;
|
|
45
|
+
return __generator(this, function (_d) {
|
|
46
|
+
switch (_d.label) {
|
|
47
|
+
case 0: return [4, context.endpoint()];
|
|
48
|
+
case 1:
|
|
49
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
50
|
+
headers = {
|
|
51
|
+
"content-type": "application/json",
|
|
52
|
+
};
|
|
53
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2";
|
|
54
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alias !== undefined && input.alias !== null && { alias: input.alias })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.datasetDescription !== undefined &&
|
|
55
|
+
input.datasetDescription !== null && { datasetDescription: input.datasetDescription })), (input.datasetTitle !== undefined && input.datasetTitle !== null && { datasetTitle: input.datasetTitle })), (input.kind !== undefined && input.kind !== null && { kind: input.kind })), (input.ownerInfo !== undefined &&
|
|
56
|
+
input.ownerInfo !== null && { ownerInfo: serializeAws_restJson1DatasetOwnerInfo(input.ownerInfo, context) })), (input.permissionGroupParams !== undefined &&
|
|
57
|
+
input.permissionGroupParams !== null && {
|
|
58
|
+
permissionGroupParams: serializeAws_restJson1PermissionGroupParams(input.permissionGroupParams, context),
|
|
59
|
+
})), (input.schemaDefinition !== undefined &&
|
|
60
|
+
input.schemaDefinition !== null && {
|
|
61
|
+
schemaDefinition: serializeAws_restJson1SchemaUnion(input.schemaDefinition, context),
|
|
62
|
+
})));
|
|
63
|
+
return [2, new __HttpRequest({
|
|
64
|
+
protocol: protocol,
|
|
65
|
+
hostname: hostname,
|
|
66
|
+
port: port,
|
|
67
|
+
method: "POST",
|
|
68
|
+
headers: headers,
|
|
69
|
+
path: resolvedPath,
|
|
70
|
+
body: body,
|
|
71
|
+
})];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}); };
|
|
75
|
+
export var serializeAws_restJson1CreateDataViewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
77
|
+
var _c;
|
|
78
|
+
return __generator(this, function (_d) {
|
|
79
|
+
switch (_d.label) {
|
|
80
|
+
case 0: return [4, context.endpoint()];
|
|
81
|
+
case 1:
|
|
82
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
83
|
headers = {
|
|
12
84
|
"content-type": "application/json",
|
|
13
85
|
};
|
|
14
|
-
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets/{datasetId}/
|
|
86
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets/{datasetId}/dataviewsv2";
|
|
15
87
|
if (input.datasetId !== undefined) {
|
|
16
88
|
labelValue = input.datasetId;
|
|
17
89
|
if (labelValue.length <= 0) {
|
|
@@ -22,10 +94,14 @@ export var serializeAws_restJson1CreateChangesetCommand = function (input, conte
|
|
|
22
94
|
else {
|
|
23
95
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
24
96
|
}
|
|
25
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.
|
|
26
|
-
input.
|
|
27
|
-
|
|
28
|
-
|
|
97
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.asOfTimestamp !== undefined && input.asOfTimestamp !== null && { asOfTimestamp: input.asOfTimestamp })), (input.autoUpdate !== undefined && input.autoUpdate !== null && { autoUpdate: input.autoUpdate })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.destinationTypeParams !== undefined &&
|
|
98
|
+
input.destinationTypeParams !== null && {
|
|
99
|
+
destinationTypeParams: serializeAws_restJson1DataViewDestinationTypeParams(input.destinationTypeParams, context),
|
|
100
|
+
})), (input.partitionColumns !== undefined &&
|
|
101
|
+
input.partitionColumns !== null && {
|
|
102
|
+
partitionColumns: serializeAws_restJson1PartitionColumnList(input.partitionColumns, context),
|
|
103
|
+
})), (input.sortColumns !== undefined &&
|
|
104
|
+
input.sortColumns !== null && { sortColumns: serializeAws_restJson1SortColumnList(input.sortColumns, context) })));
|
|
29
105
|
return [2, new __HttpRequest({
|
|
30
106
|
protocol: protocol,
|
|
31
107
|
hostname: hostname,
|
|
@@ -38,6 +114,154 @@ export var serializeAws_restJson1CreateChangesetCommand = function (input, conte
|
|
|
38
114
|
}
|
|
39
115
|
});
|
|
40
116
|
}); };
|
|
117
|
+
export var serializeAws_restJson1DeleteDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
119
|
+
return __generator(this, function (_c) {
|
|
120
|
+
switch (_c.label) {
|
|
121
|
+
case 0: return [4, context.endpoint()];
|
|
122
|
+
case 1:
|
|
123
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
124
|
+
headers = {};
|
|
125
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2/{datasetId}";
|
|
126
|
+
if (input.datasetId !== undefined) {
|
|
127
|
+
labelValue = input.datasetId;
|
|
128
|
+
if (labelValue.length <= 0) {
|
|
129
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
130
|
+
}
|
|
131
|
+
resolvedPath = resolvedPath.replace("{datasetId}", __extendedEncodeURIComponent(labelValue));
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
135
|
+
}
|
|
136
|
+
query = __assign({}, (input.clientToken !== undefined && { clientToken: input.clientToken }));
|
|
137
|
+
return [2, new __HttpRequest({
|
|
138
|
+
protocol: protocol,
|
|
139
|
+
hostname: hostname,
|
|
140
|
+
port: port,
|
|
141
|
+
method: "DELETE",
|
|
142
|
+
headers: headers,
|
|
143
|
+
path: resolvedPath,
|
|
144
|
+
query: query,
|
|
145
|
+
body: body,
|
|
146
|
+
})];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}); };
|
|
150
|
+
export var serializeAws_restJson1GetChangesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
152
|
+
return __generator(this, function (_c) {
|
|
153
|
+
switch (_c.label) {
|
|
154
|
+
case 0: return [4, context.endpoint()];
|
|
155
|
+
case 1:
|
|
156
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
157
|
+
headers = {};
|
|
158
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
159
|
+
"/datasets/{datasetId}/changesetsv2/{changesetId}";
|
|
160
|
+
if (input.datasetId !== undefined) {
|
|
161
|
+
labelValue = input.datasetId;
|
|
162
|
+
if (labelValue.length <= 0) {
|
|
163
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
164
|
+
}
|
|
165
|
+
resolvedPath = resolvedPath.replace("{datasetId}", __extendedEncodeURIComponent(labelValue));
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
169
|
+
}
|
|
170
|
+
if (input.changesetId !== undefined) {
|
|
171
|
+
labelValue = input.changesetId;
|
|
172
|
+
if (labelValue.length <= 0) {
|
|
173
|
+
throw new Error("Empty value provided for input HTTP label: changesetId.");
|
|
174
|
+
}
|
|
175
|
+
resolvedPath = resolvedPath.replace("{changesetId}", __extendedEncodeURIComponent(labelValue));
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
throw new Error("No value provided for input HTTP label: changesetId.");
|
|
179
|
+
}
|
|
180
|
+
return [2, new __HttpRequest({
|
|
181
|
+
protocol: protocol,
|
|
182
|
+
hostname: hostname,
|
|
183
|
+
port: port,
|
|
184
|
+
method: "GET",
|
|
185
|
+
headers: headers,
|
|
186
|
+
path: resolvedPath,
|
|
187
|
+
body: body,
|
|
188
|
+
})];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}); };
|
|
192
|
+
export var serializeAws_restJson1GetDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
193
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
194
|
+
return __generator(this, function (_c) {
|
|
195
|
+
switch (_c.label) {
|
|
196
|
+
case 0: return [4, context.endpoint()];
|
|
197
|
+
case 1:
|
|
198
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
199
|
+
headers = {};
|
|
200
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2/{datasetId}";
|
|
201
|
+
if (input.datasetId !== undefined) {
|
|
202
|
+
labelValue = input.datasetId;
|
|
203
|
+
if (labelValue.length <= 0) {
|
|
204
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
205
|
+
}
|
|
206
|
+
resolvedPath = resolvedPath.replace("{datasetId}", __extendedEncodeURIComponent(labelValue));
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
210
|
+
}
|
|
211
|
+
return [2, new __HttpRequest({
|
|
212
|
+
protocol: protocol,
|
|
213
|
+
hostname: hostname,
|
|
214
|
+
port: port,
|
|
215
|
+
method: "GET",
|
|
216
|
+
headers: headers,
|
|
217
|
+
path: resolvedPath,
|
|
218
|
+
body: body,
|
|
219
|
+
})];
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}); };
|
|
223
|
+
export var serializeAws_restJson1GetDataViewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
224
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
225
|
+
return __generator(this, function (_c) {
|
|
226
|
+
switch (_c.label) {
|
|
227
|
+
case 0: return [4, context.endpoint()];
|
|
228
|
+
case 1:
|
|
229
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
230
|
+
headers = {};
|
|
231
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
232
|
+
"/datasets/{datasetId}/dataviewsv2/{dataViewId}";
|
|
233
|
+
if (input.dataViewId !== undefined) {
|
|
234
|
+
labelValue = input.dataViewId;
|
|
235
|
+
if (labelValue.length <= 0) {
|
|
236
|
+
throw new Error("Empty value provided for input HTTP label: dataViewId.");
|
|
237
|
+
}
|
|
238
|
+
resolvedPath = resolvedPath.replace("{dataViewId}", __extendedEncodeURIComponent(labelValue));
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
throw new Error("No value provided for input HTTP label: dataViewId.");
|
|
242
|
+
}
|
|
243
|
+
if (input.datasetId !== undefined) {
|
|
244
|
+
labelValue = input.datasetId;
|
|
245
|
+
if (labelValue.length <= 0) {
|
|
246
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
247
|
+
}
|
|
248
|
+
resolvedPath = resolvedPath.replace("{datasetId}", __extendedEncodeURIComponent(labelValue));
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
252
|
+
}
|
|
253
|
+
return [2, new __HttpRequest({
|
|
254
|
+
protocol: protocol,
|
|
255
|
+
hostname: hostname,
|
|
256
|
+
port: port,
|
|
257
|
+
method: "GET",
|
|
258
|
+
headers: headers,
|
|
259
|
+
path: resolvedPath,
|
|
260
|
+
body: body,
|
|
261
|
+
})];
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}); };
|
|
41
265
|
export var serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
266
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
43
267
|
return __generator(this, function (_c) {
|
|
@@ -85,31 +309,1465 @@ export var serializeAws_restJson1GetWorkingLocationCommand = function (input, co
|
|
|
85
309
|
}
|
|
86
310
|
});
|
|
87
311
|
}); };
|
|
88
|
-
export var
|
|
312
|
+
export var serializeAws_restJson1ListChangesetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
313
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
314
|
+
return __generator(this, function (_c) {
|
|
315
|
+
switch (_c.label) {
|
|
316
|
+
case 0: return [4, context.endpoint()];
|
|
317
|
+
case 1:
|
|
318
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
319
|
+
headers = {};
|
|
320
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets/{datasetId}/changesetsv2";
|
|
321
|
+
if (input.datasetId !== undefined) {
|
|
322
|
+
labelValue = input.datasetId;
|
|
323
|
+
if (labelValue.length <= 0) {
|
|
324
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
325
|
+
}
|
|
326
|
+
resolvedPath = resolvedPath.replace("{datasetId}", __extendedEncodeURIComponent(labelValue));
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
330
|
+
}
|
|
331
|
+
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
332
|
+
return [2, new __HttpRequest({
|
|
333
|
+
protocol: protocol,
|
|
334
|
+
hostname: hostname,
|
|
335
|
+
port: port,
|
|
336
|
+
method: "GET",
|
|
337
|
+
headers: headers,
|
|
338
|
+
path: resolvedPath,
|
|
339
|
+
query: query,
|
|
340
|
+
body: body,
|
|
341
|
+
})];
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
}); };
|
|
345
|
+
export var serializeAws_restJson1ListDatasetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
346
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
347
|
+
return __generator(this, function (_c) {
|
|
348
|
+
switch (_c.label) {
|
|
349
|
+
case 0: return [4, context.endpoint()];
|
|
350
|
+
case 1:
|
|
351
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
352
|
+
headers = {};
|
|
353
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2";
|
|
354
|
+
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
355
|
+
return [2, new __HttpRequest({
|
|
356
|
+
protocol: protocol,
|
|
357
|
+
hostname: hostname,
|
|
358
|
+
port: port,
|
|
359
|
+
method: "GET",
|
|
360
|
+
headers: headers,
|
|
361
|
+
path: resolvedPath,
|
|
362
|
+
query: query,
|
|
363
|
+
body: body,
|
|
364
|
+
})];
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
}); };
|
|
368
|
+
export var serializeAws_restJson1ListDataViewsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
369
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
370
|
+
return __generator(this, function (_c) {
|
|
371
|
+
switch (_c.label) {
|
|
372
|
+
case 0: return [4, context.endpoint()];
|
|
373
|
+
case 1:
|
|
374
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
375
|
+
headers = {};
|
|
376
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets/{datasetId}/dataviewsv2";
|
|
377
|
+
if (input.datasetId !== undefined) {
|
|
378
|
+
labelValue = input.datasetId;
|
|
379
|
+
if (labelValue.length <= 0) {
|
|
380
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
381
|
+
}
|
|
382
|
+
resolvedPath = resolvedPath.replace("{datasetId}", __extendedEncodeURIComponent(labelValue));
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
386
|
+
}
|
|
387
|
+
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
388
|
+
return [2, new __HttpRequest({
|
|
389
|
+
protocol: protocol,
|
|
390
|
+
hostname: hostname,
|
|
391
|
+
port: port,
|
|
392
|
+
method: "GET",
|
|
393
|
+
headers: headers,
|
|
394
|
+
path: resolvedPath,
|
|
395
|
+
query: query,
|
|
396
|
+
body: body,
|
|
397
|
+
})];
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
}); };
|
|
401
|
+
export var serializeAws_restJson1UpdateChangesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
402
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
403
|
+
var _c;
|
|
404
|
+
return __generator(this, function (_d) {
|
|
405
|
+
switch (_d.label) {
|
|
406
|
+
case 0: return [4, context.endpoint()];
|
|
407
|
+
case 1:
|
|
408
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
409
|
+
headers = {
|
|
410
|
+
"content-type": "application/json",
|
|
411
|
+
};
|
|
412
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
413
|
+
"/datasets/{datasetId}/changesetsv2/{changesetId}";
|
|
414
|
+
if (input.datasetId !== undefined) {
|
|
415
|
+
labelValue = input.datasetId;
|
|
416
|
+
if (labelValue.length <= 0) {
|
|
417
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
418
|
+
}
|
|
419
|
+
resolvedPath = resolvedPath.replace("{datasetId}", __extendedEncodeURIComponent(labelValue));
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
423
|
+
}
|
|
424
|
+
if (input.changesetId !== undefined) {
|
|
425
|
+
labelValue = input.changesetId;
|
|
426
|
+
if (labelValue.length <= 0) {
|
|
427
|
+
throw new Error("Empty value provided for input HTTP label: changesetId.");
|
|
428
|
+
}
|
|
429
|
+
resolvedPath = resolvedPath.replace("{changesetId}", __extendedEncodeURIComponent(labelValue));
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
throw new Error("No value provided for input HTTP label: changesetId.");
|
|
433
|
+
}
|
|
434
|
+
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.formatParams !== undefined &&
|
|
435
|
+
input.formatParams !== null && { formatParams: serializeAws_restJson1FormatParams(input.formatParams, context) })), (input.sourceParams !== undefined &&
|
|
436
|
+
input.sourceParams !== null && { sourceParams: serializeAws_restJson1SourceParams(input.sourceParams, context) })));
|
|
437
|
+
return [2, new __HttpRequest({
|
|
438
|
+
protocol: protocol,
|
|
439
|
+
hostname: hostname,
|
|
440
|
+
port: port,
|
|
441
|
+
method: "PUT",
|
|
442
|
+
headers: headers,
|
|
443
|
+
path: resolvedPath,
|
|
444
|
+
body: body,
|
|
445
|
+
})];
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
}); };
|
|
449
|
+
export var serializeAws_restJson1UpdateDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
450
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
451
|
+
var _c;
|
|
452
|
+
return __generator(this, function (_d) {
|
|
453
|
+
switch (_d.label) {
|
|
454
|
+
case 0: return [4, context.endpoint()];
|
|
455
|
+
case 1:
|
|
456
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
457
|
+
headers = {
|
|
458
|
+
"content-type": "application/json",
|
|
459
|
+
};
|
|
460
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2/{datasetId}";
|
|
461
|
+
if (input.datasetId !== undefined) {
|
|
462
|
+
labelValue = input.datasetId;
|
|
463
|
+
if (labelValue.length <= 0) {
|
|
464
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
465
|
+
}
|
|
466
|
+
resolvedPath = resolvedPath.replace("{datasetId}", __extendedEncodeURIComponent(labelValue));
|
|
467
|
+
}
|
|
468
|
+
else {
|
|
469
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
470
|
+
}
|
|
471
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alias !== undefined && input.alias !== null && { alias: input.alias })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.datasetDescription !== undefined &&
|
|
472
|
+
input.datasetDescription !== null && { datasetDescription: input.datasetDescription })), (input.datasetTitle !== undefined && input.datasetTitle !== null && { datasetTitle: input.datasetTitle })), (input.kind !== undefined && input.kind !== null && { kind: input.kind })), (input.schemaDefinition !== undefined &&
|
|
473
|
+
input.schemaDefinition !== null && {
|
|
474
|
+
schemaDefinition: serializeAws_restJson1SchemaUnion(input.schemaDefinition, context),
|
|
475
|
+
})));
|
|
476
|
+
return [2, new __HttpRequest({
|
|
477
|
+
protocol: protocol,
|
|
478
|
+
hostname: hostname,
|
|
479
|
+
port: port,
|
|
480
|
+
method: "PUT",
|
|
481
|
+
headers: headers,
|
|
482
|
+
path: resolvedPath,
|
|
483
|
+
body: body,
|
|
484
|
+
})];
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
}); };
|
|
488
|
+
export var deserializeAws_restJson1CreateChangesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
489
|
+
var contents, data, _a, _b;
|
|
490
|
+
return __generator(this, function (_c) {
|
|
491
|
+
switch (_c.label) {
|
|
492
|
+
case 0:
|
|
493
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
494
|
+
return [2, deserializeAws_restJson1CreateChangesetCommandError(output, context)];
|
|
495
|
+
}
|
|
496
|
+
contents = {
|
|
497
|
+
$metadata: deserializeMetadata(output),
|
|
498
|
+
changesetId: undefined,
|
|
499
|
+
datasetId: undefined,
|
|
500
|
+
};
|
|
501
|
+
_a = __expectNonNull;
|
|
502
|
+
_b = __expectObject;
|
|
503
|
+
return [4, parseBody(output.body, context)];
|
|
504
|
+
case 1:
|
|
505
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
506
|
+
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
507
|
+
contents.changesetId = __expectString(data.changesetId);
|
|
508
|
+
}
|
|
509
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
510
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
511
|
+
}
|
|
512
|
+
return [2, Promise.resolve(contents)];
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
}); };
|
|
516
|
+
var deserializeAws_restJson1CreateChangesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
517
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
518
|
+
var _k;
|
|
519
|
+
return __generator(this, function (_l) {
|
|
520
|
+
switch (_l.label) {
|
|
521
|
+
case 0:
|
|
522
|
+
_a = [__assign({}, output)];
|
|
523
|
+
_k = {};
|
|
524
|
+
return [4, parseBody(output.body, context)];
|
|
525
|
+
case 1:
|
|
526
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
527
|
+
errorCode = "UnknownError";
|
|
528
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
|
+
_b = errorCode;
|
|
530
|
+
switch (_b) {
|
|
531
|
+
case "AccessDeniedException": return [3, 2];
|
|
532
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
533
|
+
case "ConflictException": return [3, 4];
|
|
534
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
535
|
+
case "InternalServerException": return [3, 6];
|
|
536
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
537
|
+
case "LimitExceededException": return [3, 8];
|
|
538
|
+
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
539
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
540
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 10];
|
|
541
|
+
case "ThrottlingException": return [3, 12];
|
|
542
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 12];
|
|
543
|
+
case "ValidationException": return [3, 14];
|
|
544
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 14];
|
|
545
|
+
}
|
|
546
|
+
return [3, 16];
|
|
547
|
+
case 2:
|
|
548
|
+
_c = [{}];
|
|
549
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
550
|
+
case 3:
|
|
551
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
552
|
+
return [3, 17];
|
|
553
|
+
case 4:
|
|
554
|
+
_d = [{}];
|
|
555
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
556
|
+
case 5:
|
|
557
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
558
|
+
return [3, 17];
|
|
559
|
+
case 6:
|
|
560
|
+
_e = [{}];
|
|
561
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
562
|
+
case 7:
|
|
563
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
564
|
+
return [3, 17];
|
|
565
|
+
case 8:
|
|
566
|
+
_f = [{}];
|
|
567
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
568
|
+
case 9:
|
|
569
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
570
|
+
return [3, 17];
|
|
571
|
+
case 10:
|
|
572
|
+
_g = [{}];
|
|
573
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
574
|
+
case 11:
|
|
575
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
576
|
+
return [3, 17];
|
|
577
|
+
case 12:
|
|
578
|
+
_h = [{}];
|
|
579
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
580
|
+
case 13:
|
|
581
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
582
|
+
return [3, 17];
|
|
583
|
+
case 14:
|
|
584
|
+
_j = [{}];
|
|
585
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
586
|
+
case 15:
|
|
587
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
588
|
+
return [3, 17];
|
|
589
|
+
case 16:
|
|
590
|
+
parsedBody = parsedOutput.body;
|
|
591
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
592
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
593
|
+
_l.label = 17;
|
|
594
|
+
case 17:
|
|
595
|
+
message = response.message || response.Message || errorCode;
|
|
596
|
+
response.message = message;
|
|
597
|
+
delete response.Message;
|
|
598
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
}); };
|
|
602
|
+
export var deserializeAws_restJson1CreateDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
603
|
+
var contents, data, _a, _b;
|
|
604
|
+
return __generator(this, function (_c) {
|
|
605
|
+
switch (_c.label) {
|
|
606
|
+
case 0:
|
|
607
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
+
return [2, deserializeAws_restJson1CreateDatasetCommandError(output, context)];
|
|
609
|
+
}
|
|
610
|
+
contents = {
|
|
611
|
+
$metadata: deserializeMetadata(output),
|
|
612
|
+
datasetId: undefined,
|
|
613
|
+
};
|
|
614
|
+
_a = __expectNonNull;
|
|
615
|
+
_b = __expectObject;
|
|
616
|
+
return [4, parseBody(output.body, context)];
|
|
617
|
+
case 1:
|
|
618
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
619
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
620
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
621
|
+
}
|
|
622
|
+
return [2, Promise.resolve(contents)];
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
}); };
|
|
626
|
+
var deserializeAws_restJson1CreateDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
627
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
628
|
+
var _k;
|
|
629
|
+
return __generator(this, function (_l) {
|
|
630
|
+
switch (_l.label) {
|
|
631
|
+
case 0:
|
|
632
|
+
_a = [__assign({}, output)];
|
|
633
|
+
_k = {};
|
|
634
|
+
return [4, parseBody(output.body, context)];
|
|
635
|
+
case 1:
|
|
636
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
637
|
+
errorCode = "UnknownError";
|
|
638
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
|
+
_b = errorCode;
|
|
640
|
+
switch (_b) {
|
|
641
|
+
case "AccessDeniedException": return [3, 2];
|
|
642
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
643
|
+
case "ConflictException": return [3, 4];
|
|
644
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
645
|
+
case "InternalServerException": return [3, 6];
|
|
646
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
647
|
+
case "LimitExceededException": return [3, 8];
|
|
648
|
+
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
649
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
650
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 10];
|
|
651
|
+
case "ThrottlingException": return [3, 12];
|
|
652
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 12];
|
|
653
|
+
case "ValidationException": return [3, 14];
|
|
654
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 14];
|
|
655
|
+
}
|
|
656
|
+
return [3, 16];
|
|
657
|
+
case 2:
|
|
658
|
+
_c = [{}];
|
|
659
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
660
|
+
case 3:
|
|
661
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
662
|
+
return [3, 17];
|
|
663
|
+
case 4:
|
|
664
|
+
_d = [{}];
|
|
665
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
666
|
+
case 5:
|
|
667
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
668
|
+
return [3, 17];
|
|
669
|
+
case 6:
|
|
670
|
+
_e = [{}];
|
|
671
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
672
|
+
case 7:
|
|
673
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
674
|
+
return [3, 17];
|
|
675
|
+
case 8:
|
|
676
|
+
_f = [{}];
|
|
677
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
678
|
+
case 9:
|
|
679
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
680
|
+
return [3, 17];
|
|
681
|
+
case 10:
|
|
682
|
+
_g = [{}];
|
|
683
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
684
|
+
case 11:
|
|
685
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
686
|
+
return [3, 17];
|
|
687
|
+
case 12:
|
|
688
|
+
_h = [{}];
|
|
689
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
690
|
+
case 13:
|
|
691
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
692
|
+
return [3, 17];
|
|
693
|
+
case 14:
|
|
694
|
+
_j = [{}];
|
|
695
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
696
|
+
case 15:
|
|
697
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
698
|
+
return [3, 17];
|
|
699
|
+
case 16:
|
|
700
|
+
parsedBody = parsedOutput.body;
|
|
701
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
702
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
703
|
+
_l.label = 17;
|
|
704
|
+
case 17:
|
|
705
|
+
message = response.message || response.Message || errorCode;
|
|
706
|
+
response.message = message;
|
|
707
|
+
delete response.Message;
|
|
708
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
}); };
|
|
712
|
+
export var deserializeAws_restJson1CreateDataViewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
713
|
+
var contents, data, _a, _b;
|
|
714
|
+
return __generator(this, function (_c) {
|
|
715
|
+
switch (_c.label) {
|
|
716
|
+
case 0:
|
|
717
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
718
|
+
return [2, deserializeAws_restJson1CreateDataViewCommandError(output, context)];
|
|
719
|
+
}
|
|
720
|
+
contents = {
|
|
721
|
+
$metadata: deserializeMetadata(output),
|
|
722
|
+
dataViewId: undefined,
|
|
723
|
+
datasetId: undefined,
|
|
724
|
+
};
|
|
725
|
+
_a = __expectNonNull;
|
|
726
|
+
_b = __expectObject;
|
|
727
|
+
return [4, parseBody(output.body, context)];
|
|
728
|
+
case 1:
|
|
729
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
730
|
+
if (data.dataViewId !== undefined && data.dataViewId !== null) {
|
|
731
|
+
contents.dataViewId = __expectString(data.dataViewId);
|
|
732
|
+
}
|
|
733
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
734
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
735
|
+
}
|
|
736
|
+
return [2, Promise.resolve(contents)];
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
}); };
|
|
740
|
+
var deserializeAws_restJson1CreateDataViewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
741
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
742
|
+
var _j;
|
|
743
|
+
return __generator(this, function (_k) {
|
|
744
|
+
switch (_k.label) {
|
|
745
|
+
case 0:
|
|
746
|
+
_a = [__assign({}, output)];
|
|
747
|
+
_j = {};
|
|
748
|
+
return [4, parseBody(output.body, context)];
|
|
749
|
+
case 1:
|
|
750
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
751
|
+
errorCode = "UnknownError";
|
|
752
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
|
+
_b = errorCode;
|
|
754
|
+
switch (_b) {
|
|
755
|
+
case "ConflictException": return [3, 2];
|
|
756
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 2];
|
|
757
|
+
case "InternalServerException": return [3, 4];
|
|
758
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
759
|
+
case "LimitExceededException": return [3, 6];
|
|
760
|
+
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 6];
|
|
761
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
762
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
763
|
+
case "ThrottlingException": return [3, 10];
|
|
764
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
765
|
+
case "ValidationException": return [3, 12];
|
|
766
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
767
|
+
}
|
|
768
|
+
return [3, 14];
|
|
769
|
+
case 2:
|
|
770
|
+
_c = [{}];
|
|
771
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
772
|
+
case 3:
|
|
773
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
774
|
+
return [3, 15];
|
|
775
|
+
case 4:
|
|
776
|
+
_d = [{}];
|
|
777
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
778
|
+
case 5:
|
|
779
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
780
|
+
return [3, 15];
|
|
781
|
+
case 6:
|
|
782
|
+
_e = [{}];
|
|
783
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
784
|
+
case 7:
|
|
785
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
786
|
+
return [3, 15];
|
|
787
|
+
case 8:
|
|
788
|
+
_f = [{}];
|
|
789
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
790
|
+
case 9:
|
|
791
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
792
|
+
return [3, 15];
|
|
793
|
+
case 10:
|
|
794
|
+
_g = [{}];
|
|
795
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
796
|
+
case 11:
|
|
797
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
798
|
+
return [3, 15];
|
|
799
|
+
case 12:
|
|
800
|
+
_h = [{}];
|
|
801
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
802
|
+
case 13:
|
|
803
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
804
|
+
return [3, 15];
|
|
805
|
+
case 14:
|
|
806
|
+
parsedBody = parsedOutput.body;
|
|
807
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
808
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
809
|
+
_k.label = 15;
|
|
810
|
+
case 15:
|
|
811
|
+
message = response.message || response.Message || errorCode;
|
|
812
|
+
response.message = message;
|
|
813
|
+
delete response.Message;
|
|
814
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
}); };
|
|
818
|
+
export var deserializeAws_restJson1DeleteDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
819
|
+
var contents, data, _a, _b;
|
|
820
|
+
return __generator(this, function (_c) {
|
|
821
|
+
switch (_c.label) {
|
|
822
|
+
case 0:
|
|
823
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
+
return [2, deserializeAws_restJson1DeleteDatasetCommandError(output, context)];
|
|
825
|
+
}
|
|
826
|
+
contents = {
|
|
827
|
+
$metadata: deserializeMetadata(output),
|
|
828
|
+
datasetId: undefined,
|
|
829
|
+
};
|
|
830
|
+
_a = __expectNonNull;
|
|
831
|
+
_b = __expectObject;
|
|
832
|
+
return [4, parseBody(output.body, context)];
|
|
833
|
+
case 1:
|
|
834
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
835
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
836
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
837
|
+
}
|
|
838
|
+
return [2, Promise.resolve(contents)];
|
|
839
|
+
}
|
|
840
|
+
});
|
|
841
|
+
}); };
|
|
842
|
+
var deserializeAws_restJson1DeleteDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
843
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
844
|
+
var _k;
|
|
845
|
+
return __generator(this, function (_l) {
|
|
846
|
+
switch (_l.label) {
|
|
847
|
+
case 0:
|
|
848
|
+
_a = [__assign({}, output)];
|
|
849
|
+
_k = {};
|
|
850
|
+
return [4, parseBody(output.body, context)];
|
|
851
|
+
case 1:
|
|
852
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
853
|
+
errorCode = "UnknownError";
|
|
854
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
+
_b = errorCode;
|
|
856
|
+
switch (_b) {
|
|
857
|
+
case "AccessDeniedException": return [3, 2];
|
|
858
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
859
|
+
case "ConflictException": return [3, 4];
|
|
860
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
861
|
+
case "InternalServerException": return [3, 6];
|
|
862
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
863
|
+
case "LimitExceededException": return [3, 8];
|
|
864
|
+
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
865
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
866
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 10];
|
|
867
|
+
case "ThrottlingException": return [3, 12];
|
|
868
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 12];
|
|
869
|
+
case "ValidationException": return [3, 14];
|
|
870
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 14];
|
|
871
|
+
}
|
|
872
|
+
return [3, 16];
|
|
873
|
+
case 2:
|
|
874
|
+
_c = [{}];
|
|
875
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
876
|
+
case 3:
|
|
877
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
878
|
+
return [3, 17];
|
|
879
|
+
case 4:
|
|
880
|
+
_d = [{}];
|
|
881
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
882
|
+
case 5:
|
|
883
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
884
|
+
return [3, 17];
|
|
885
|
+
case 6:
|
|
886
|
+
_e = [{}];
|
|
887
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
888
|
+
case 7:
|
|
889
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
890
|
+
return [3, 17];
|
|
891
|
+
case 8:
|
|
892
|
+
_f = [{}];
|
|
893
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
894
|
+
case 9:
|
|
895
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
896
|
+
return [3, 17];
|
|
897
|
+
case 10:
|
|
898
|
+
_g = [{}];
|
|
899
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
900
|
+
case 11:
|
|
901
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
902
|
+
return [3, 17];
|
|
903
|
+
case 12:
|
|
904
|
+
_h = [{}];
|
|
905
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
906
|
+
case 13:
|
|
907
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
908
|
+
return [3, 17];
|
|
909
|
+
case 14:
|
|
910
|
+
_j = [{}];
|
|
911
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
912
|
+
case 15:
|
|
913
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
914
|
+
return [3, 17];
|
|
915
|
+
case 16:
|
|
916
|
+
parsedBody = parsedOutput.body;
|
|
917
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
918
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
919
|
+
_l.label = 17;
|
|
920
|
+
case 17:
|
|
921
|
+
message = response.message || response.Message || errorCode;
|
|
922
|
+
response.message = message;
|
|
923
|
+
delete response.Message;
|
|
924
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
}); };
|
|
928
|
+
export var deserializeAws_restJson1GetChangesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
929
|
+
var contents, data, _a, _b;
|
|
930
|
+
return __generator(this, function (_c) {
|
|
931
|
+
switch (_c.label) {
|
|
932
|
+
case 0:
|
|
933
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
+
return [2, deserializeAws_restJson1GetChangesetCommandError(output, context)];
|
|
935
|
+
}
|
|
936
|
+
contents = {
|
|
937
|
+
$metadata: deserializeMetadata(output),
|
|
938
|
+
activeFromTimestamp: undefined,
|
|
939
|
+
activeUntilTimestamp: undefined,
|
|
940
|
+
changeType: undefined,
|
|
941
|
+
changesetArn: undefined,
|
|
942
|
+
changesetId: undefined,
|
|
943
|
+
createTime: undefined,
|
|
944
|
+
datasetId: undefined,
|
|
945
|
+
errorInfo: undefined,
|
|
946
|
+
formatParams: undefined,
|
|
947
|
+
sourceParams: undefined,
|
|
948
|
+
status: undefined,
|
|
949
|
+
updatedByChangesetId: undefined,
|
|
950
|
+
updatesChangesetId: undefined,
|
|
951
|
+
};
|
|
952
|
+
_a = __expectNonNull;
|
|
953
|
+
_b = __expectObject;
|
|
954
|
+
return [4, parseBody(output.body, context)];
|
|
955
|
+
case 1:
|
|
956
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
957
|
+
if (data.activeFromTimestamp !== undefined && data.activeFromTimestamp !== null) {
|
|
958
|
+
contents.activeFromTimestamp = __expectLong(data.activeFromTimestamp);
|
|
959
|
+
}
|
|
960
|
+
if (data.activeUntilTimestamp !== undefined && data.activeUntilTimestamp !== null) {
|
|
961
|
+
contents.activeUntilTimestamp = __expectLong(data.activeUntilTimestamp);
|
|
962
|
+
}
|
|
963
|
+
if (data.changeType !== undefined && data.changeType !== null) {
|
|
964
|
+
contents.changeType = __expectString(data.changeType);
|
|
965
|
+
}
|
|
966
|
+
if (data.changesetArn !== undefined && data.changesetArn !== null) {
|
|
967
|
+
contents.changesetArn = __expectString(data.changesetArn);
|
|
968
|
+
}
|
|
969
|
+
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
970
|
+
contents.changesetId = __expectString(data.changesetId);
|
|
971
|
+
}
|
|
972
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
973
|
+
contents.createTime = __expectLong(data.createTime);
|
|
974
|
+
}
|
|
975
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
976
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
977
|
+
}
|
|
978
|
+
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
979
|
+
contents.errorInfo = deserializeAws_restJson1ChangesetErrorInfo(data.errorInfo, context);
|
|
980
|
+
}
|
|
981
|
+
if (data.formatParams !== undefined && data.formatParams !== null) {
|
|
982
|
+
contents.formatParams = deserializeAws_restJson1FormatParams(data.formatParams, context);
|
|
983
|
+
}
|
|
984
|
+
if (data.sourceParams !== undefined && data.sourceParams !== null) {
|
|
985
|
+
contents.sourceParams = deserializeAws_restJson1SourceParams(data.sourceParams, context);
|
|
986
|
+
}
|
|
987
|
+
if (data.status !== undefined && data.status !== null) {
|
|
988
|
+
contents.status = __expectString(data.status);
|
|
989
|
+
}
|
|
990
|
+
if (data.updatedByChangesetId !== undefined && data.updatedByChangesetId !== null) {
|
|
991
|
+
contents.updatedByChangesetId = __expectString(data.updatedByChangesetId);
|
|
992
|
+
}
|
|
993
|
+
if (data.updatesChangesetId !== undefined && data.updatesChangesetId !== null) {
|
|
994
|
+
contents.updatesChangesetId = __expectString(data.updatesChangesetId);
|
|
995
|
+
}
|
|
996
|
+
return [2, Promise.resolve(contents)];
|
|
997
|
+
}
|
|
998
|
+
});
|
|
999
|
+
}); };
|
|
1000
|
+
var deserializeAws_restJson1GetChangesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1001
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1002
|
+
var _j;
|
|
1003
|
+
return __generator(this, function (_k) {
|
|
1004
|
+
switch (_k.label) {
|
|
1005
|
+
case 0:
|
|
1006
|
+
_a = [__assign({}, output)];
|
|
1007
|
+
_j = {};
|
|
1008
|
+
return [4, parseBody(output.body, context)];
|
|
1009
|
+
case 1:
|
|
1010
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1011
|
+
errorCode = "UnknownError";
|
|
1012
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
|
+
_b = errorCode;
|
|
1014
|
+
switch (_b) {
|
|
1015
|
+
case "AccessDeniedException": return [3, 2];
|
|
1016
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1017
|
+
case "ConflictException": return [3, 4];
|
|
1018
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1019
|
+
case "InternalServerException": return [3, 6];
|
|
1020
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1021
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1022
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1023
|
+
case "ThrottlingException": return [3, 10];
|
|
1024
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1025
|
+
case "ValidationException": return [3, 12];
|
|
1026
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1027
|
+
}
|
|
1028
|
+
return [3, 14];
|
|
1029
|
+
case 2:
|
|
1030
|
+
_c = [{}];
|
|
1031
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1032
|
+
case 3:
|
|
1033
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1034
|
+
return [3, 15];
|
|
1035
|
+
case 4:
|
|
1036
|
+
_d = [{}];
|
|
1037
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1038
|
+
case 5:
|
|
1039
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1040
|
+
return [3, 15];
|
|
1041
|
+
case 6:
|
|
1042
|
+
_e = [{}];
|
|
1043
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1044
|
+
case 7:
|
|
1045
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1046
|
+
return [3, 15];
|
|
1047
|
+
case 8:
|
|
1048
|
+
_f = [{}];
|
|
1049
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1050
|
+
case 9:
|
|
1051
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1052
|
+
return [3, 15];
|
|
1053
|
+
case 10:
|
|
1054
|
+
_g = [{}];
|
|
1055
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1056
|
+
case 11:
|
|
1057
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1058
|
+
return [3, 15];
|
|
1059
|
+
case 12:
|
|
1060
|
+
_h = [{}];
|
|
1061
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1062
|
+
case 13:
|
|
1063
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1064
|
+
return [3, 15];
|
|
1065
|
+
case 14:
|
|
1066
|
+
parsedBody = parsedOutput.body;
|
|
1067
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1068
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1069
|
+
_k.label = 15;
|
|
1070
|
+
case 15:
|
|
1071
|
+
message = response.message || response.Message || errorCode;
|
|
1072
|
+
response.message = message;
|
|
1073
|
+
delete response.Message;
|
|
1074
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
}); };
|
|
1078
|
+
export var deserializeAws_restJson1GetDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1079
|
+
var contents, data, _a, _b;
|
|
1080
|
+
return __generator(this, function (_c) {
|
|
1081
|
+
switch (_c.label) {
|
|
1082
|
+
case 0:
|
|
1083
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1084
|
+
return [2, deserializeAws_restJson1GetDatasetCommandError(output, context)];
|
|
1085
|
+
}
|
|
1086
|
+
contents = {
|
|
1087
|
+
$metadata: deserializeMetadata(output),
|
|
1088
|
+
alias: undefined,
|
|
1089
|
+
createTime: undefined,
|
|
1090
|
+
datasetArn: undefined,
|
|
1091
|
+
datasetDescription: undefined,
|
|
1092
|
+
datasetId: undefined,
|
|
1093
|
+
datasetTitle: undefined,
|
|
1094
|
+
kind: undefined,
|
|
1095
|
+
lastModifiedTime: undefined,
|
|
1096
|
+
schemaDefinition: undefined,
|
|
1097
|
+
status: undefined,
|
|
1098
|
+
};
|
|
1099
|
+
_a = __expectNonNull;
|
|
1100
|
+
_b = __expectObject;
|
|
1101
|
+
return [4, parseBody(output.body, context)];
|
|
1102
|
+
case 1:
|
|
1103
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1104
|
+
if (data.alias !== undefined && data.alias !== null) {
|
|
1105
|
+
contents.alias = __expectString(data.alias);
|
|
1106
|
+
}
|
|
1107
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1108
|
+
contents.createTime = __expectLong(data.createTime);
|
|
1109
|
+
}
|
|
1110
|
+
if (data.datasetArn !== undefined && data.datasetArn !== null) {
|
|
1111
|
+
contents.datasetArn = __expectString(data.datasetArn);
|
|
1112
|
+
}
|
|
1113
|
+
if (data.datasetDescription !== undefined && data.datasetDescription !== null) {
|
|
1114
|
+
contents.datasetDescription = __expectString(data.datasetDescription);
|
|
1115
|
+
}
|
|
1116
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1117
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
1118
|
+
}
|
|
1119
|
+
if (data.datasetTitle !== undefined && data.datasetTitle !== null) {
|
|
1120
|
+
contents.datasetTitle = __expectString(data.datasetTitle);
|
|
1121
|
+
}
|
|
1122
|
+
if (data.kind !== undefined && data.kind !== null) {
|
|
1123
|
+
contents.kind = __expectString(data.kind);
|
|
1124
|
+
}
|
|
1125
|
+
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1126
|
+
contents.lastModifiedTime = __expectLong(data.lastModifiedTime);
|
|
1127
|
+
}
|
|
1128
|
+
if (data.schemaDefinition !== undefined && data.schemaDefinition !== null) {
|
|
1129
|
+
contents.schemaDefinition = deserializeAws_restJson1SchemaUnion(data.schemaDefinition, context);
|
|
1130
|
+
}
|
|
1131
|
+
if (data.status !== undefined && data.status !== null) {
|
|
1132
|
+
contents.status = __expectString(data.status);
|
|
1133
|
+
}
|
|
1134
|
+
return [2, Promise.resolve(contents)];
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
}); };
|
|
1138
|
+
var deserializeAws_restJson1GetDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1139
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1140
|
+
var _j;
|
|
1141
|
+
return __generator(this, function (_k) {
|
|
1142
|
+
switch (_k.label) {
|
|
1143
|
+
case 0:
|
|
1144
|
+
_a = [__assign({}, output)];
|
|
1145
|
+
_j = {};
|
|
1146
|
+
return [4, parseBody(output.body, context)];
|
|
1147
|
+
case 1:
|
|
1148
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1149
|
+
errorCode = "UnknownError";
|
|
1150
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
|
+
_b = errorCode;
|
|
1152
|
+
switch (_b) {
|
|
1153
|
+
case "AccessDeniedException": return [3, 2];
|
|
1154
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1155
|
+
case "ConflictException": return [3, 4];
|
|
1156
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1157
|
+
case "InternalServerException": return [3, 6];
|
|
1158
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1159
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1160
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1161
|
+
case "ThrottlingException": return [3, 10];
|
|
1162
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1163
|
+
case "ValidationException": return [3, 12];
|
|
1164
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1165
|
+
}
|
|
1166
|
+
return [3, 14];
|
|
1167
|
+
case 2:
|
|
1168
|
+
_c = [{}];
|
|
1169
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1170
|
+
case 3:
|
|
1171
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1172
|
+
return [3, 15];
|
|
1173
|
+
case 4:
|
|
1174
|
+
_d = [{}];
|
|
1175
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1176
|
+
case 5:
|
|
1177
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1178
|
+
return [3, 15];
|
|
1179
|
+
case 6:
|
|
1180
|
+
_e = [{}];
|
|
1181
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1182
|
+
case 7:
|
|
1183
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1184
|
+
return [3, 15];
|
|
1185
|
+
case 8:
|
|
1186
|
+
_f = [{}];
|
|
1187
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1188
|
+
case 9:
|
|
1189
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1190
|
+
return [3, 15];
|
|
1191
|
+
case 10:
|
|
1192
|
+
_g = [{}];
|
|
1193
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1194
|
+
case 11:
|
|
1195
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1196
|
+
return [3, 15];
|
|
1197
|
+
case 12:
|
|
1198
|
+
_h = [{}];
|
|
1199
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1200
|
+
case 13:
|
|
1201
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1202
|
+
return [3, 15];
|
|
1203
|
+
case 14:
|
|
1204
|
+
parsedBody = parsedOutput.body;
|
|
1205
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1206
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1207
|
+
_k.label = 15;
|
|
1208
|
+
case 15:
|
|
1209
|
+
message = response.message || response.Message || errorCode;
|
|
1210
|
+
response.message = message;
|
|
1211
|
+
delete response.Message;
|
|
1212
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
}); };
|
|
1216
|
+
export var deserializeAws_restJson1GetDataViewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1217
|
+
var contents, data, _a, _b;
|
|
1218
|
+
return __generator(this, function (_c) {
|
|
1219
|
+
switch (_c.label) {
|
|
1220
|
+
case 0:
|
|
1221
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
|
+
return [2, deserializeAws_restJson1GetDataViewCommandError(output, context)];
|
|
1223
|
+
}
|
|
1224
|
+
contents = {
|
|
1225
|
+
$metadata: deserializeMetadata(output),
|
|
1226
|
+
asOfTimestamp: undefined,
|
|
1227
|
+
autoUpdate: undefined,
|
|
1228
|
+
createTime: undefined,
|
|
1229
|
+
dataViewArn: undefined,
|
|
1230
|
+
dataViewId: undefined,
|
|
1231
|
+
datasetId: undefined,
|
|
1232
|
+
destinationTypeParams: undefined,
|
|
1233
|
+
errorInfo: undefined,
|
|
1234
|
+
lastModifiedTime: undefined,
|
|
1235
|
+
partitionColumns: undefined,
|
|
1236
|
+
sortColumns: undefined,
|
|
1237
|
+
status: undefined,
|
|
1238
|
+
};
|
|
1239
|
+
_a = __expectNonNull;
|
|
1240
|
+
_b = __expectObject;
|
|
1241
|
+
return [4, parseBody(output.body, context)];
|
|
1242
|
+
case 1:
|
|
1243
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1244
|
+
if (data.asOfTimestamp !== undefined && data.asOfTimestamp !== null) {
|
|
1245
|
+
contents.asOfTimestamp = __expectLong(data.asOfTimestamp);
|
|
1246
|
+
}
|
|
1247
|
+
if (data.autoUpdate !== undefined && data.autoUpdate !== null) {
|
|
1248
|
+
contents.autoUpdate = __expectBoolean(data.autoUpdate);
|
|
1249
|
+
}
|
|
1250
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1251
|
+
contents.createTime = __expectLong(data.createTime);
|
|
1252
|
+
}
|
|
1253
|
+
if (data.dataViewArn !== undefined && data.dataViewArn !== null) {
|
|
1254
|
+
contents.dataViewArn = __expectString(data.dataViewArn);
|
|
1255
|
+
}
|
|
1256
|
+
if (data.dataViewId !== undefined && data.dataViewId !== null) {
|
|
1257
|
+
contents.dataViewId = __expectString(data.dataViewId);
|
|
1258
|
+
}
|
|
1259
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1260
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
1261
|
+
}
|
|
1262
|
+
if (data.destinationTypeParams !== undefined && data.destinationTypeParams !== null) {
|
|
1263
|
+
contents.destinationTypeParams = deserializeAws_restJson1DataViewDestinationTypeParams(data.destinationTypeParams, context);
|
|
1264
|
+
}
|
|
1265
|
+
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
1266
|
+
contents.errorInfo = deserializeAws_restJson1DataViewErrorInfo(data.errorInfo, context);
|
|
1267
|
+
}
|
|
1268
|
+
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1269
|
+
contents.lastModifiedTime = __expectLong(data.lastModifiedTime);
|
|
1270
|
+
}
|
|
1271
|
+
if (data.partitionColumns !== undefined && data.partitionColumns !== null) {
|
|
1272
|
+
contents.partitionColumns = deserializeAws_restJson1PartitionColumnList(data.partitionColumns, context);
|
|
1273
|
+
}
|
|
1274
|
+
if (data.sortColumns !== undefined && data.sortColumns !== null) {
|
|
1275
|
+
contents.sortColumns = deserializeAws_restJson1SortColumnList(data.sortColumns, context);
|
|
1276
|
+
}
|
|
1277
|
+
if (data.status !== undefined && data.status !== null) {
|
|
1278
|
+
contents.status = __expectString(data.status);
|
|
1279
|
+
}
|
|
1280
|
+
return [2, Promise.resolve(contents)];
|
|
1281
|
+
}
|
|
1282
|
+
});
|
|
1283
|
+
}); };
|
|
1284
|
+
var deserializeAws_restJson1GetDataViewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1285
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1286
|
+
var _h;
|
|
1287
|
+
return __generator(this, function (_j) {
|
|
1288
|
+
switch (_j.label) {
|
|
1289
|
+
case 0:
|
|
1290
|
+
_a = [__assign({}, output)];
|
|
1291
|
+
_h = {};
|
|
1292
|
+
return [4, parseBody(output.body, context)];
|
|
1293
|
+
case 1:
|
|
1294
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1295
|
+
errorCode = "UnknownError";
|
|
1296
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
|
+
_b = errorCode;
|
|
1298
|
+
switch (_b) {
|
|
1299
|
+
case "ConflictException": return [3, 2];
|
|
1300
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 2];
|
|
1301
|
+
case "InternalServerException": return [3, 4];
|
|
1302
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
1303
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1304
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 6];
|
|
1305
|
+
case "ThrottlingException": return [3, 8];
|
|
1306
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 8];
|
|
1307
|
+
case "ValidationException": return [3, 10];
|
|
1308
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 10];
|
|
1309
|
+
}
|
|
1310
|
+
return [3, 12];
|
|
1311
|
+
case 2:
|
|
1312
|
+
_c = [{}];
|
|
1313
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1314
|
+
case 3:
|
|
1315
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1316
|
+
return [3, 13];
|
|
1317
|
+
case 4:
|
|
1318
|
+
_d = [{}];
|
|
1319
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1320
|
+
case 5:
|
|
1321
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1322
|
+
return [3, 13];
|
|
1323
|
+
case 6:
|
|
1324
|
+
_e = [{}];
|
|
1325
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1326
|
+
case 7:
|
|
1327
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1328
|
+
return [3, 13];
|
|
1329
|
+
case 8:
|
|
1330
|
+
_f = [{}];
|
|
1331
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1332
|
+
case 9:
|
|
1333
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1334
|
+
return [3, 13];
|
|
1335
|
+
case 10:
|
|
1336
|
+
_g = [{}];
|
|
1337
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1338
|
+
case 11:
|
|
1339
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1340
|
+
return [3, 13];
|
|
1341
|
+
case 12:
|
|
1342
|
+
parsedBody = parsedOutput.body;
|
|
1343
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1344
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1345
|
+
_j.label = 13;
|
|
1346
|
+
case 13:
|
|
1347
|
+
message = response.message || response.Message || errorCode;
|
|
1348
|
+
response.message = message;
|
|
1349
|
+
delete response.Message;
|
|
1350
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
}); };
|
|
1354
|
+
export var deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1355
|
+
var contents, data, _a, _b;
|
|
1356
|
+
return __generator(this, function (_c) {
|
|
1357
|
+
switch (_c.label) {
|
|
1358
|
+
case 0:
|
|
1359
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
|
+
return [2, deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError(output, context)];
|
|
1361
|
+
}
|
|
1362
|
+
contents = {
|
|
1363
|
+
$metadata: deserializeMetadata(output),
|
|
1364
|
+
credentials: undefined,
|
|
1365
|
+
durationInMinutes: undefined,
|
|
1366
|
+
};
|
|
1367
|
+
_a = __expectNonNull;
|
|
1368
|
+
_b = __expectObject;
|
|
1369
|
+
return [4, parseBody(output.body, context)];
|
|
1370
|
+
case 1:
|
|
1371
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1372
|
+
if (data.credentials !== undefined && data.credentials !== null) {
|
|
1373
|
+
contents.credentials = deserializeAws_restJson1Credentials(data.credentials, context);
|
|
1374
|
+
}
|
|
1375
|
+
if (data.durationInMinutes !== undefined && data.durationInMinutes !== null) {
|
|
1376
|
+
contents.durationInMinutes = __expectLong(data.durationInMinutes);
|
|
1377
|
+
}
|
|
1378
|
+
return [2, Promise.resolve(contents)];
|
|
1379
|
+
}
|
|
1380
|
+
});
|
|
1381
|
+
}); };
|
|
1382
|
+
var deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1383
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1384
|
+
var _g;
|
|
1385
|
+
return __generator(this, function (_h) {
|
|
1386
|
+
switch (_h.label) {
|
|
1387
|
+
case 0:
|
|
1388
|
+
_a = [__assign({}, output)];
|
|
1389
|
+
_g = {};
|
|
1390
|
+
return [4, parseBody(output.body, context)];
|
|
1391
|
+
case 1:
|
|
1392
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1393
|
+
errorCode = "UnknownError";
|
|
1394
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
|
+
_b = errorCode;
|
|
1396
|
+
switch (_b) {
|
|
1397
|
+
case "AccessDeniedException": return [3, 2];
|
|
1398
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1399
|
+
case "InternalServerException": return [3, 4];
|
|
1400
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
1401
|
+
case "ThrottlingException": return [3, 6];
|
|
1402
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 6];
|
|
1403
|
+
case "ValidationException": return [3, 8];
|
|
1404
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 8];
|
|
1405
|
+
}
|
|
1406
|
+
return [3, 10];
|
|
1407
|
+
case 2:
|
|
1408
|
+
_c = [{}];
|
|
1409
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1410
|
+
case 3:
|
|
1411
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1412
|
+
return [3, 11];
|
|
1413
|
+
case 4:
|
|
1414
|
+
_d = [{}];
|
|
1415
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1416
|
+
case 5:
|
|
1417
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1418
|
+
return [3, 11];
|
|
1419
|
+
case 6:
|
|
1420
|
+
_e = [{}];
|
|
1421
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1422
|
+
case 7:
|
|
1423
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1424
|
+
return [3, 11];
|
|
1425
|
+
case 8:
|
|
1426
|
+
_f = [{}];
|
|
1427
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1428
|
+
case 9:
|
|
1429
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1430
|
+
return [3, 11];
|
|
1431
|
+
case 10:
|
|
1432
|
+
parsedBody = parsedOutput.body;
|
|
1433
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1434
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1435
|
+
_h.label = 11;
|
|
1436
|
+
case 11:
|
|
1437
|
+
message = response.message || response.Message || errorCode;
|
|
1438
|
+
response.message = message;
|
|
1439
|
+
delete response.Message;
|
|
1440
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1441
|
+
}
|
|
1442
|
+
});
|
|
1443
|
+
}); };
|
|
1444
|
+
export var deserializeAws_restJson1GetWorkingLocationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1445
|
+
var contents, data, _a, _b;
|
|
1446
|
+
return __generator(this, function (_c) {
|
|
1447
|
+
switch (_c.label) {
|
|
1448
|
+
case 0:
|
|
1449
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
|
+
return [2, deserializeAws_restJson1GetWorkingLocationCommandError(output, context)];
|
|
1451
|
+
}
|
|
1452
|
+
contents = {
|
|
1453
|
+
$metadata: deserializeMetadata(output),
|
|
1454
|
+
s3Bucket: undefined,
|
|
1455
|
+
s3Path: undefined,
|
|
1456
|
+
s3Uri: undefined,
|
|
1457
|
+
};
|
|
1458
|
+
_a = __expectNonNull;
|
|
1459
|
+
_b = __expectObject;
|
|
1460
|
+
return [4, parseBody(output.body, context)];
|
|
1461
|
+
case 1:
|
|
1462
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1463
|
+
if (data.s3Bucket !== undefined && data.s3Bucket !== null) {
|
|
1464
|
+
contents.s3Bucket = __expectString(data.s3Bucket);
|
|
1465
|
+
}
|
|
1466
|
+
if (data.s3Path !== undefined && data.s3Path !== null) {
|
|
1467
|
+
contents.s3Path = __expectString(data.s3Path);
|
|
1468
|
+
}
|
|
1469
|
+
if (data.s3Uri !== undefined && data.s3Uri !== null) {
|
|
1470
|
+
contents.s3Uri = __expectString(data.s3Uri);
|
|
1471
|
+
}
|
|
1472
|
+
return [2, Promise.resolve(contents)];
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1475
|
+
}); };
|
|
1476
|
+
var deserializeAws_restJson1GetWorkingLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1477
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1478
|
+
var _g;
|
|
1479
|
+
return __generator(this, function (_h) {
|
|
1480
|
+
switch (_h.label) {
|
|
1481
|
+
case 0:
|
|
1482
|
+
_a = [__assign({}, output)];
|
|
1483
|
+
_g = {};
|
|
1484
|
+
return [4, parseBody(output.body, context)];
|
|
1485
|
+
case 1:
|
|
1486
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1487
|
+
errorCode = "UnknownError";
|
|
1488
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
+
_b = errorCode;
|
|
1490
|
+
switch (_b) {
|
|
1491
|
+
case "AccessDeniedException": return [3, 2];
|
|
1492
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1493
|
+
case "InternalServerException": return [3, 4];
|
|
1494
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
1495
|
+
case "ThrottlingException": return [3, 6];
|
|
1496
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 6];
|
|
1497
|
+
case "ValidationException": return [3, 8];
|
|
1498
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 8];
|
|
1499
|
+
}
|
|
1500
|
+
return [3, 10];
|
|
1501
|
+
case 2:
|
|
1502
|
+
_c = [{}];
|
|
1503
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1504
|
+
case 3:
|
|
1505
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1506
|
+
return [3, 11];
|
|
1507
|
+
case 4:
|
|
1508
|
+
_d = [{}];
|
|
1509
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1510
|
+
case 5:
|
|
1511
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1512
|
+
return [3, 11];
|
|
1513
|
+
case 6:
|
|
1514
|
+
_e = [{}];
|
|
1515
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1516
|
+
case 7:
|
|
1517
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1518
|
+
return [3, 11];
|
|
1519
|
+
case 8:
|
|
1520
|
+
_f = [{}];
|
|
1521
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1522
|
+
case 9:
|
|
1523
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1524
|
+
return [3, 11];
|
|
1525
|
+
case 10:
|
|
1526
|
+
parsedBody = parsedOutput.body;
|
|
1527
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1528
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1529
|
+
_h.label = 11;
|
|
1530
|
+
case 11:
|
|
1531
|
+
message = response.message || response.Message || errorCode;
|
|
1532
|
+
response.message = message;
|
|
1533
|
+
delete response.Message;
|
|
1534
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1535
|
+
}
|
|
1536
|
+
});
|
|
1537
|
+
}); };
|
|
1538
|
+
export var deserializeAws_restJson1ListChangesetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1539
|
+
var contents, data, _a, _b;
|
|
1540
|
+
return __generator(this, function (_c) {
|
|
1541
|
+
switch (_c.label) {
|
|
1542
|
+
case 0:
|
|
1543
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
|
+
return [2, deserializeAws_restJson1ListChangesetsCommandError(output, context)];
|
|
1545
|
+
}
|
|
1546
|
+
contents = {
|
|
1547
|
+
$metadata: deserializeMetadata(output),
|
|
1548
|
+
changesets: undefined,
|
|
1549
|
+
nextToken: undefined,
|
|
1550
|
+
};
|
|
1551
|
+
_a = __expectNonNull;
|
|
1552
|
+
_b = __expectObject;
|
|
1553
|
+
return [4, parseBody(output.body, context)];
|
|
1554
|
+
case 1:
|
|
1555
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1556
|
+
if (data.changesets !== undefined && data.changesets !== null) {
|
|
1557
|
+
contents.changesets = deserializeAws_restJson1ChangesetList(data.changesets, context);
|
|
1558
|
+
}
|
|
1559
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1560
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1561
|
+
}
|
|
1562
|
+
return [2, Promise.resolve(contents)];
|
|
1563
|
+
}
|
|
1564
|
+
});
|
|
1565
|
+
}); };
|
|
1566
|
+
var deserializeAws_restJson1ListChangesetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1567
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1568
|
+
var _j;
|
|
1569
|
+
return __generator(this, function (_k) {
|
|
1570
|
+
switch (_k.label) {
|
|
1571
|
+
case 0:
|
|
1572
|
+
_a = [__assign({}, output)];
|
|
1573
|
+
_j = {};
|
|
1574
|
+
return [4, parseBody(output.body, context)];
|
|
1575
|
+
case 1:
|
|
1576
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1577
|
+
errorCode = "UnknownError";
|
|
1578
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
|
+
_b = errorCode;
|
|
1580
|
+
switch (_b) {
|
|
1581
|
+
case "AccessDeniedException": return [3, 2];
|
|
1582
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1583
|
+
case "ConflictException": return [3, 4];
|
|
1584
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1585
|
+
case "InternalServerException": return [3, 6];
|
|
1586
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1587
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1588
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1589
|
+
case "ThrottlingException": return [3, 10];
|
|
1590
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1591
|
+
case "ValidationException": return [3, 12];
|
|
1592
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1593
|
+
}
|
|
1594
|
+
return [3, 14];
|
|
1595
|
+
case 2:
|
|
1596
|
+
_c = [{}];
|
|
1597
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1598
|
+
case 3:
|
|
1599
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1600
|
+
return [3, 15];
|
|
1601
|
+
case 4:
|
|
1602
|
+
_d = [{}];
|
|
1603
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1604
|
+
case 5:
|
|
1605
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1606
|
+
return [3, 15];
|
|
1607
|
+
case 6:
|
|
1608
|
+
_e = [{}];
|
|
1609
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1610
|
+
case 7:
|
|
1611
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1612
|
+
return [3, 15];
|
|
1613
|
+
case 8:
|
|
1614
|
+
_f = [{}];
|
|
1615
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1616
|
+
case 9:
|
|
1617
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1618
|
+
return [3, 15];
|
|
1619
|
+
case 10:
|
|
1620
|
+
_g = [{}];
|
|
1621
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1622
|
+
case 11:
|
|
1623
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1624
|
+
return [3, 15];
|
|
1625
|
+
case 12:
|
|
1626
|
+
_h = [{}];
|
|
1627
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1628
|
+
case 13:
|
|
1629
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1630
|
+
return [3, 15];
|
|
1631
|
+
case 14:
|
|
1632
|
+
parsedBody = parsedOutput.body;
|
|
1633
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1634
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1635
|
+
_k.label = 15;
|
|
1636
|
+
case 15:
|
|
1637
|
+
message = response.message || response.Message || errorCode;
|
|
1638
|
+
response.message = message;
|
|
1639
|
+
delete response.Message;
|
|
1640
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1641
|
+
}
|
|
1642
|
+
});
|
|
1643
|
+
}); };
|
|
1644
|
+
export var deserializeAws_restJson1ListDatasetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1645
|
+
var contents, data, _a, _b;
|
|
1646
|
+
return __generator(this, function (_c) {
|
|
1647
|
+
switch (_c.label) {
|
|
1648
|
+
case 0:
|
|
1649
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1650
|
+
return [2, deserializeAws_restJson1ListDatasetsCommandError(output, context)];
|
|
1651
|
+
}
|
|
1652
|
+
contents = {
|
|
1653
|
+
$metadata: deserializeMetadata(output),
|
|
1654
|
+
datasets: undefined,
|
|
1655
|
+
nextToken: undefined,
|
|
1656
|
+
};
|
|
1657
|
+
_a = __expectNonNull;
|
|
1658
|
+
_b = __expectObject;
|
|
1659
|
+
return [4, parseBody(output.body, context)];
|
|
1660
|
+
case 1:
|
|
1661
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1662
|
+
if (data.datasets !== undefined && data.datasets !== null) {
|
|
1663
|
+
contents.datasets = deserializeAws_restJson1DatasetList(data.datasets, context);
|
|
1664
|
+
}
|
|
1665
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1666
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1667
|
+
}
|
|
1668
|
+
return [2, Promise.resolve(contents)];
|
|
1669
|
+
}
|
|
1670
|
+
});
|
|
1671
|
+
}); };
|
|
1672
|
+
var deserializeAws_restJson1ListDatasetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1673
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1674
|
+
var _h;
|
|
1675
|
+
return __generator(this, function (_j) {
|
|
1676
|
+
switch (_j.label) {
|
|
1677
|
+
case 0:
|
|
1678
|
+
_a = [__assign({}, output)];
|
|
1679
|
+
_h = {};
|
|
1680
|
+
return [4, parseBody(output.body, context)];
|
|
1681
|
+
case 1:
|
|
1682
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1683
|
+
errorCode = "UnknownError";
|
|
1684
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1685
|
+
_b = errorCode;
|
|
1686
|
+
switch (_b) {
|
|
1687
|
+
case "ConflictException": return [3, 2];
|
|
1688
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 2];
|
|
1689
|
+
case "InternalServerException": return [3, 4];
|
|
1690
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
1691
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1692
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 6];
|
|
1693
|
+
case "ThrottlingException": return [3, 8];
|
|
1694
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 8];
|
|
1695
|
+
case "ValidationException": return [3, 10];
|
|
1696
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 10];
|
|
1697
|
+
}
|
|
1698
|
+
return [3, 12];
|
|
1699
|
+
case 2:
|
|
1700
|
+
_c = [{}];
|
|
1701
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1702
|
+
case 3:
|
|
1703
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1704
|
+
return [3, 13];
|
|
1705
|
+
case 4:
|
|
1706
|
+
_d = [{}];
|
|
1707
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1708
|
+
case 5:
|
|
1709
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1710
|
+
return [3, 13];
|
|
1711
|
+
case 6:
|
|
1712
|
+
_e = [{}];
|
|
1713
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1714
|
+
case 7:
|
|
1715
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1716
|
+
return [3, 13];
|
|
1717
|
+
case 8:
|
|
1718
|
+
_f = [{}];
|
|
1719
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1720
|
+
case 9:
|
|
1721
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1722
|
+
return [3, 13];
|
|
1723
|
+
case 10:
|
|
1724
|
+
_g = [{}];
|
|
1725
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1726
|
+
case 11:
|
|
1727
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1728
|
+
return [3, 13];
|
|
1729
|
+
case 12:
|
|
1730
|
+
parsedBody = parsedOutput.body;
|
|
1731
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1732
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1733
|
+
_j.label = 13;
|
|
1734
|
+
case 13:
|
|
1735
|
+
message = response.message || response.Message || errorCode;
|
|
1736
|
+
response.message = message;
|
|
1737
|
+
delete response.Message;
|
|
1738
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1739
|
+
}
|
|
1740
|
+
});
|
|
1741
|
+
}); };
|
|
1742
|
+
export var deserializeAws_restJson1ListDataViewsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
89
1743
|
var contents, data, _a, _b;
|
|
90
1744
|
return __generator(this, function (_c) {
|
|
91
1745
|
switch (_c.label) {
|
|
92
1746
|
case 0:
|
|
93
1747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
94
|
-
return [2,
|
|
1748
|
+
return [2, deserializeAws_restJson1ListDataViewsCommandError(output, context)];
|
|
95
1749
|
}
|
|
96
1750
|
contents = {
|
|
97
1751
|
$metadata: deserializeMetadata(output),
|
|
98
|
-
|
|
1752
|
+
dataViews: undefined,
|
|
1753
|
+
nextToken: undefined,
|
|
99
1754
|
};
|
|
100
1755
|
_a = __expectNonNull;
|
|
101
1756
|
_b = __expectObject;
|
|
102
1757
|
return [4, parseBody(output.body, context)];
|
|
103
1758
|
case 1:
|
|
104
1759
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
105
|
-
if (data.
|
|
106
|
-
contents.
|
|
1760
|
+
if (data.dataViews !== undefined && data.dataViews !== null) {
|
|
1761
|
+
contents.dataViews = deserializeAws_restJson1DataViewList(data.dataViews, context);
|
|
1762
|
+
}
|
|
1763
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1764
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
107
1765
|
}
|
|
108
1766
|
return [2, Promise.resolve(contents)];
|
|
109
1767
|
}
|
|
110
1768
|
});
|
|
111
1769
|
}); };
|
|
112
|
-
var
|
|
1770
|
+
var deserializeAws_restJson1ListDataViewsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
1771
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
114
1772
|
var _h;
|
|
115
1773
|
return __generator(this, function (_j) {
|
|
@@ -124,8 +1782,8 @@ var deserializeAws_restJson1CreateChangesetCommandError = function (output, cont
|
|
|
124
1782
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
125
1783
|
_b = errorCode;
|
|
126
1784
|
switch (_b) {
|
|
127
|
-
case "
|
|
128
|
-
case "com.amazonaws.finspacedata#
|
|
1785
|
+
case "ConflictException": return [3, 2];
|
|
1786
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 2];
|
|
129
1787
|
case "InternalServerException": return [3, 4];
|
|
130
1788
|
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
131
1789
|
case "ResourceNotFoundException": return [3, 6];
|
|
@@ -138,7 +1796,7 @@ var deserializeAws_restJson1CreateChangesetCommandError = function (output, cont
|
|
|
138
1796
|
return [3, 12];
|
|
139
1797
|
case 2:
|
|
140
1798
|
_c = [{}];
|
|
141
|
-
return [4,
|
|
1799
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
142
1800
|
case 3:
|
|
143
1801
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
144
1802
|
return [3, 13];
|
|
@@ -179,81 +1837,105 @@ var deserializeAws_restJson1CreateChangesetCommandError = function (output, cont
|
|
|
179
1837
|
}
|
|
180
1838
|
});
|
|
181
1839
|
}); };
|
|
182
|
-
export var
|
|
1840
|
+
export var deserializeAws_restJson1UpdateChangesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
1841
|
var contents, data, _a, _b;
|
|
184
1842
|
return __generator(this, function (_c) {
|
|
185
1843
|
switch (_c.label) {
|
|
186
1844
|
case 0:
|
|
187
1845
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
188
|
-
return [2,
|
|
1846
|
+
return [2, deserializeAws_restJson1UpdateChangesetCommandError(output, context)];
|
|
189
1847
|
}
|
|
190
1848
|
contents = {
|
|
191
1849
|
$metadata: deserializeMetadata(output),
|
|
192
|
-
|
|
193
|
-
|
|
1850
|
+
changesetId: undefined,
|
|
1851
|
+
datasetId: undefined,
|
|
194
1852
|
};
|
|
195
1853
|
_a = __expectNonNull;
|
|
196
1854
|
_b = __expectObject;
|
|
197
1855
|
return [4, parseBody(output.body, context)];
|
|
198
1856
|
case 1:
|
|
199
1857
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
200
|
-
if (data.
|
|
201
|
-
contents.
|
|
1858
|
+
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
1859
|
+
contents.changesetId = __expectString(data.changesetId);
|
|
202
1860
|
}
|
|
203
|
-
if (data.
|
|
204
|
-
contents.
|
|
1861
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1862
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
205
1863
|
}
|
|
206
1864
|
return [2, Promise.resolve(contents)];
|
|
207
1865
|
}
|
|
208
1866
|
});
|
|
209
1867
|
}); };
|
|
210
|
-
var
|
|
211
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
212
|
-
var
|
|
213
|
-
return __generator(this, function (
|
|
214
|
-
switch (
|
|
1868
|
+
var deserializeAws_restJson1UpdateChangesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1869
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1870
|
+
var _j;
|
|
1871
|
+
return __generator(this, function (_k) {
|
|
1872
|
+
switch (_k.label) {
|
|
215
1873
|
case 0:
|
|
216
1874
|
_a = [__assign({}, output)];
|
|
217
|
-
|
|
1875
|
+
_j = {};
|
|
218
1876
|
return [4, parseBody(output.body, context)];
|
|
219
1877
|
case 1:
|
|
220
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1878
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
221
1879
|
errorCode = "UnknownError";
|
|
222
1880
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
223
1881
|
_b = errorCode;
|
|
224
1882
|
switch (_b) {
|
|
225
1883
|
case "AccessDeniedException": return [3, 2];
|
|
226
1884
|
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
227
|
-
case "
|
|
228
|
-
case "com.amazonaws.finspacedata#
|
|
229
|
-
case "
|
|
230
|
-
case "com.amazonaws.finspacedata#
|
|
1885
|
+
case "ConflictException": return [3, 4];
|
|
1886
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1887
|
+
case "InternalServerException": return [3, 6];
|
|
1888
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1889
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1890
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1891
|
+
case "ThrottlingException": return [3, 10];
|
|
1892
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1893
|
+
case "ValidationException": return [3, 12];
|
|
1894
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
231
1895
|
}
|
|
232
|
-
return [3,
|
|
1896
|
+
return [3, 14];
|
|
233
1897
|
case 2:
|
|
234
1898
|
_c = [{}];
|
|
235
1899
|
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
236
1900
|
case 3:
|
|
237
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
238
|
-
return [3,
|
|
1901
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1902
|
+
return [3, 15];
|
|
239
1903
|
case 4:
|
|
240
1904
|
_d = [{}];
|
|
241
|
-
return [4,
|
|
1905
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
242
1906
|
case 5:
|
|
243
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
244
|
-
return [3,
|
|
1907
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1908
|
+
return [3, 15];
|
|
245
1909
|
case 6:
|
|
246
1910
|
_e = [{}];
|
|
247
|
-
return [4,
|
|
1911
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
248
1912
|
case 7:
|
|
249
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
250
|
-
return [3,
|
|
1913
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1914
|
+
return [3, 15];
|
|
251
1915
|
case 8:
|
|
1916
|
+
_f = [{}];
|
|
1917
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1918
|
+
case 9:
|
|
1919
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1920
|
+
return [3, 15];
|
|
1921
|
+
case 10:
|
|
1922
|
+
_g = [{}];
|
|
1923
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1924
|
+
case 11:
|
|
1925
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1926
|
+
return [3, 15];
|
|
1927
|
+
case 12:
|
|
1928
|
+
_h = [{}];
|
|
1929
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1930
|
+
case 13:
|
|
1931
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1932
|
+
return [3, 15];
|
|
1933
|
+
case 14:
|
|
252
1934
|
parsedBody = parsedOutput.body;
|
|
253
1935
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
254
1936
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
255
|
-
|
|
256
|
-
case
|
|
1937
|
+
_k.label = 15;
|
|
1938
|
+
case 15:
|
|
257
1939
|
message = response.message || response.Message || errorCode;
|
|
258
1940
|
response.message = message;
|
|
259
1941
|
delete response.Message;
|
|
@@ -261,93 +1943,101 @@ var deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = funct
|
|
|
261
1943
|
}
|
|
262
1944
|
});
|
|
263
1945
|
}); };
|
|
264
|
-
export var
|
|
1946
|
+
export var deserializeAws_restJson1UpdateDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
265
1947
|
var contents, data, _a, _b;
|
|
266
1948
|
return __generator(this, function (_c) {
|
|
267
1949
|
switch (_c.label) {
|
|
268
1950
|
case 0:
|
|
269
1951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
270
|
-
return [2,
|
|
1952
|
+
return [2, deserializeAws_restJson1UpdateDatasetCommandError(output, context)];
|
|
271
1953
|
}
|
|
272
1954
|
contents = {
|
|
273
1955
|
$metadata: deserializeMetadata(output),
|
|
274
|
-
|
|
275
|
-
s3Path: undefined,
|
|
276
|
-
s3Uri: undefined,
|
|
1956
|
+
datasetId: undefined,
|
|
277
1957
|
};
|
|
278
1958
|
_a = __expectNonNull;
|
|
279
1959
|
_b = __expectObject;
|
|
280
1960
|
return [4, parseBody(output.body, context)];
|
|
281
1961
|
case 1:
|
|
282
1962
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
283
|
-
if (data.
|
|
284
|
-
contents.
|
|
285
|
-
}
|
|
286
|
-
if (data.s3Path !== undefined && data.s3Path !== null) {
|
|
287
|
-
contents.s3Path = __expectString(data.s3Path);
|
|
288
|
-
}
|
|
289
|
-
if (data.s3Uri !== undefined && data.s3Uri !== null) {
|
|
290
|
-
contents.s3Uri = __expectString(data.s3Uri);
|
|
1963
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1964
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
291
1965
|
}
|
|
292
1966
|
return [2, Promise.resolve(contents)];
|
|
293
1967
|
}
|
|
294
1968
|
});
|
|
295
1969
|
}); };
|
|
296
|
-
var
|
|
297
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
298
|
-
var
|
|
299
|
-
return __generator(this, function (
|
|
300
|
-
switch (
|
|
1970
|
+
var deserializeAws_restJson1UpdateDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1971
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1972
|
+
var _j;
|
|
1973
|
+
return __generator(this, function (_k) {
|
|
1974
|
+
switch (_k.label) {
|
|
301
1975
|
case 0:
|
|
302
1976
|
_a = [__assign({}, output)];
|
|
303
|
-
|
|
1977
|
+
_j = {};
|
|
304
1978
|
return [4, parseBody(output.body, context)];
|
|
305
1979
|
case 1:
|
|
306
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1980
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
307
1981
|
errorCode = "UnknownError";
|
|
308
1982
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
309
1983
|
_b = errorCode;
|
|
310
1984
|
switch (_b) {
|
|
311
1985
|
case "AccessDeniedException": return [3, 2];
|
|
312
1986
|
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
313
|
-
case "
|
|
314
|
-
case "com.amazonaws.finspacedata#
|
|
315
|
-
case "
|
|
316
|
-
case "com.amazonaws.finspacedata#
|
|
317
|
-
case "
|
|
318
|
-
case "com.amazonaws.finspacedata#
|
|
1987
|
+
case "ConflictException": return [3, 4];
|
|
1988
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1989
|
+
case "InternalServerException": return [3, 6];
|
|
1990
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1991
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1992
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1993
|
+
case "ThrottlingException": return [3, 10];
|
|
1994
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1995
|
+
case "ValidationException": return [3, 12];
|
|
1996
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
319
1997
|
}
|
|
320
|
-
return [3,
|
|
1998
|
+
return [3, 14];
|
|
321
1999
|
case 2:
|
|
322
2000
|
_c = [{}];
|
|
323
2001
|
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
324
2002
|
case 3:
|
|
325
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
326
|
-
return [3,
|
|
2003
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2004
|
+
return [3, 15];
|
|
327
2005
|
case 4:
|
|
328
2006
|
_d = [{}];
|
|
329
|
-
return [4,
|
|
2007
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
330
2008
|
case 5:
|
|
331
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
332
|
-
return [3,
|
|
2009
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2010
|
+
return [3, 15];
|
|
333
2011
|
case 6:
|
|
334
2012
|
_e = [{}];
|
|
335
|
-
return [4,
|
|
2013
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
336
2014
|
case 7:
|
|
337
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
338
|
-
return [3,
|
|
2015
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2016
|
+
return [3, 15];
|
|
339
2017
|
case 8:
|
|
340
2018
|
_f = [{}];
|
|
341
|
-
return [4,
|
|
2019
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
342
2020
|
case 9:
|
|
343
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
344
|
-
return [3,
|
|
2021
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2022
|
+
return [3, 15];
|
|
345
2023
|
case 10:
|
|
2024
|
+
_g = [{}];
|
|
2025
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2026
|
+
case 11:
|
|
2027
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2028
|
+
return [3, 15];
|
|
2029
|
+
case 12:
|
|
2030
|
+
_h = [{}];
|
|
2031
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2032
|
+
case 13:
|
|
2033
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2034
|
+
return [3, 15];
|
|
2035
|
+
case 14:
|
|
346
2036
|
parsedBody = parsedOutput.body;
|
|
347
2037
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
348
2038
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
349
|
-
|
|
350
|
-
case
|
|
2039
|
+
_k.label = 15;
|
|
2040
|
+
case 15:
|
|
351
2041
|
message = response.message || response.Message || errorCode;
|
|
352
2042
|
response.message = message;
|
|
353
2043
|
delete response.Message;
|
|
@@ -371,6 +2061,22 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
371
2061
|
return [2, contents];
|
|
372
2062
|
});
|
|
373
2063
|
}); };
|
|
2064
|
+
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2065
|
+
var contents, data;
|
|
2066
|
+
return __generator(this, function (_a) {
|
|
2067
|
+
contents = {
|
|
2068
|
+
name: "ConflictException",
|
|
2069
|
+
$fault: "client",
|
|
2070
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2071
|
+
message: undefined,
|
|
2072
|
+
};
|
|
2073
|
+
data = parsedOutput.body;
|
|
2074
|
+
if (data.message !== undefined && data.message !== null) {
|
|
2075
|
+
contents.message = __expectString(data.message);
|
|
2076
|
+
}
|
|
2077
|
+
return [2, contents];
|
|
2078
|
+
});
|
|
2079
|
+
}); };
|
|
374
2080
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
375
2081
|
var contents, data;
|
|
376
2082
|
return __generator(this, function (_a) {
|
|
@@ -387,6 +2093,22 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
387
2093
|
return [2, contents];
|
|
388
2094
|
});
|
|
389
2095
|
}); };
|
|
2096
|
+
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2097
|
+
var contents, data;
|
|
2098
|
+
return __generator(this, function (_a) {
|
|
2099
|
+
contents = {
|
|
2100
|
+
name: "LimitExceededException",
|
|
2101
|
+
$fault: "client",
|
|
2102
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2103
|
+
message: undefined,
|
|
2104
|
+
};
|
|
2105
|
+
data = parsedOutput.body;
|
|
2106
|
+
if (data.message !== undefined && data.message !== null) {
|
|
2107
|
+
contents.message = __expectString(data.message);
|
|
2108
|
+
}
|
|
2109
|
+
return [2, contents];
|
|
2110
|
+
});
|
|
2111
|
+
}); };
|
|
390
2112
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
391
2113
|
var contents, data;
|
|
392
2114
|
return __generator(this, function (_a) {
|
|
@@ -431,7 +2153,117 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
431
2153
|
return [2, contents];
|
|
432
2154
|
});
|
|
433
2155
|
}); };
|
|
434
|
-
var
|
|
2156
|
+
var serializeAws_restJson1ColumnDefinition = function (input, context) {
|
|
2157
|
+
return __assign(__assign(__assign({}, (input.columnDescription !== undefined &&
|
|
2158
|
+
input.columnDescription !== null && { columnDescription: input.columnDescription })), (input.columnName !== undefined && input.columnName !== null && { columnName: input.columnName })), (input.dataType !== undefined && input.dataType !== null && { dataType: input.dataType }));
|
|
2159
|
+
};
|
|
2160
|
+
var serializeAws_restJson1ColumnList = function (input, context) {
|
|
2161
|
+
return input
|
|
2162
|
+
.filter(function (e) { return e != null; })
|
|
2163
|
+
.map(function (entry) {
|
|
2164
|
+
if (entry === null) {
|
|
2165
|
+
return null;
|
|
2166
|
+
}
|
|
2167
|
+
return serializeAws_restJson1ColumnDefinition(entry, context);
|
|
2168
|
+
});
|
|
2169
|
+
};
|
|
2170
|
+
var serializeAws_restJson1ColumnNameList = function (input, context) {
|
|
2171
|
+
return input
|
|
2172
|
+
.filter(function (e) { return e != null; })
|
|
2173
|
+
.map(function (entry) {
|
|
2174
|
+
if (entry === null) {
|
|
2175
|
+
return null;
|
|
2176
|
+
}
|
|
2177
|
+
return entry;
|
|
2178
|
+
});
|
|
2179
|
+
};
|
|
2180
|
+
var serializeAws_restJson1DatasetOwnerInfo = function (input, context) {
|
|
2181
|
+
return __assign(__assign(__assign({}, (input.email !== undefined && input.email !== null && { email: input.email })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.phoneNumber !== undefined && input.phoneNumber !== null && { phoneNumber: input.phoneNumber }));
|
|
2182
|
+
};
|
|
2183
|
+
var serializeAws_restJson1DataViewDestinationTypeParams = function (input, context) {
|
|
2184
|
+
return __assign(__assign(__assign({}, (input.destinationType !== undefined &&
|
|
2185
|
+
input.destinationType !== null && { destinationType: input.destinationType })), (input.s3DestinationExportFileFormat !== undefined &&
|
|
2186
|
+
input.s3DestinationExportFileFormat !== null && {
|
|
2187
|
+
s3DestinationExportFileFormat: input.s3DestinationExportFileFormat,
|
|
2188
|
+
})), (input.s3DestinationExportFileFormatOptions !== undefined &&
|
|
2189
|
+
input.s3DestinationExportFileFormatOptions !== null && {
|
|
2190
|
+
s3DestinationExportFileFormatOptions: serializeAws_restJson1S3DestinationFormatOptions(input.s3DestinationExportFileFormatOptions, context),
|
|
2191
|
+
}));
|
|
2192
|
+
};
|
|
2193
|
+
var serializeAws_restJson1FormatParams = function (input, context) {
|
|
2194
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2195
|
+
var _b;
|
|
2196
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2197
|
+
if (value === null) {
|
|
2198
|
+
return acc;
|
|
2199
|
+
}
|
|
2200
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2201
|
+
}, {});
|
|
2202
|
+
};
|
|
2203
|
+
var serializeAws_restJson1PartitionColumnList = function (input, context) {
|
|
2204
|
+
return input
|
|
2205
|
+
.filter(function (e) { return e != null; })
|
|
2206
|
+
.map(function (entry) {
|
|
2207
|
+
if (entry === null) {
|
|
2208
|
+
return null;
|
|
2209
|
+
}
|
|
2210
|
+
return entry;
|
|
2211
|
+
});
|
|
2212
|
+
};
|
|
2213
|
+
var serializeAws_restJson1PermissionGroupParams = function (input, context) {
|
|
2214
|
+
return __assign(__assign({}, (input.datasetPermissions !== undefined &&
|
|
2215
|
+
input.datasetPermissions !== null && {
|
|
2216
|
+
datasetPermissions: serializeAws_restJson1ResourcePermissionsList(input.datasetPermissions, context),
|
|
2217
|
+
})), (input.permissionGroupId !== undefined &&
|
|
2218
|
+
input.permissionGroupId !== null && { permissionGroupId: input.permissionGroupId }));
|
|
2219
|
+
};
|
|
2220
|
+
var serializeAws_restJson1ResourcePermission = function (input, context) {
|
|
2221
|
+
return __assign({}, (input.permission !== undefined && input.permission !== null && { permission: input.permission }));
|
|
2222
|
+
};
|
|
2223
|
+
var serializeAws_restJson1ResourcePermissionsList = function (input, context) {
|
|
2224
|
+
return input
|
|
2225
|
+
.filter(function (e) { return e != null; })
|
|
2226
|
+
.map(function (entry) {
|
|
2227
|
+
if (entry === null) {
|
|
2228
|
+
return null;
|
|
2229
|
+
}
|
|
2230
|
+
return serializeAws_restJson1ResourcePermission(entry, context);
|
|
2231
|
+
});
|
|
2232
|
+
};
|
|
2233
|
+
var serializeAws_restJson1S3DestinationFormatOptions = function (input, context) {
|
|
2234
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2235
|
+
var _b;
|
|
2236
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2237
|
+
if (value === null) {
|
|
2238
|
+
return acc;
|
|
2239
|
+
}
|
|
2240
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2241
|
+
}, {});
|
|
2242
|
+
};
|
|
2243
|
+
var serializeAws_restJson1SchemaDefinition = function (input, context) {
|
|
2244
|
+
return __assign(__assign({}, (input.columns !== undefined &&
|
|
2245
|
+
input.columns !== null && { columns: serializeAws_restJson1ColumnList(input.columns, context) })), (input.primaryKeyColumns !== undefined &&
|
|
2246
|
+
input.primaryKeyColumns !== null && {
|
|
2247
|
+
primaryKeyColumns: serializeAws_restJson1ColumnNameList(input.primaryKeyColumns, context),
|
|
2248
|
+
}));
|
|
2249
|
+
};
|
|
2250
|
+
var serializeAws_restJson1SchemaUnion = function (input, context) {
|
|
2251
|
+
return __assign({}, (input.tabularSchemaConfig !== undefined &&
|
|
2252
|
+
input.tabularSchemaConfig !== null && {
|
|
2253
|
+
tabularSchemaConfig: serializeAws_restJson1SchemaDefinition(input.tabularSchemaConfig, context),
|
|
2254
|
+
}));
|
|
2255
|
+
};
|
|
2256
|
+
var serializeAws_restJson1SortColumnList = function (input, context) {
|
|
2257
|
+
return input
|
|
2258
|
+
.filter(function (e) { return e != null; })
|
|
2259
|
+
.map(function (entry) {
|
|
2260
|
+
if (entry === null) {
|
|
2261
|
+
return null;
|
|
2262
|
+
}
|
|
2263
|
+
return entry;
|
|
2264
|
+
});
|
|
2265
|
+
};
|
|
2266
|
+
var serializeAws_restJson1SourceParams = function (input, context) {
|
|
435
2267
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
436
2268
|
var _b;
|
|
437
2269
|
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
@@ -441,34 +2273,72 @@ var serializeAws_restJson1stringMap = function (input, context) {
|
|
|
441
2273
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
442
2274
|
}, {});
|
|
443
2275
|
};
|
|
444
|
-
var
|
|
2276
|
+
var deserializeAws_restJson1ChangesetErrorInfo = function (output, context) {
|
|
2277
|
+
return {
|
|
2278
|
+
errorCategory: __expectString(output.errorCategory),
|
|
2279
|
+
errorMessage: __expectString(output.errorMessage),
|
|
2280
|
+
};
|
|
2281
|
+
};
|
|
2282
|
+
var deserializeAws_restJson1ChangesetList = function (output, context) {
|
|
2283
|
+
return (output || [])
|
|
2284
|
+
.filter(function (e) { return e != null; })
|
|
2285
|
+
.map(function (entry) {
|
|
2286
|
+
if (entry === null) {
|
|
2287
|
+
return null;
|
|
2288
|
+
}
|
|
2289
|
+
return deserializeAws_restJson1ChangesetSummary(entry, context);
|
|
2290
|
+
});
|
|
2291
|
+
};
|
|
2292
|
+
var deserializeAws_restJson1ChangesetSummary = function (output, context) {
|
|
445
2293
|
return {
|
|
2294
|
+
activeFromTimestamp: __expectLong(output.activeFromTimestamp),
|
|
2295
|
+
activeUntilTimestamp: __expectLong(output.activeUntilTimestamp),
|
|
446
2296
|
changeType: __expectString(output.changeType),
|
|
447
2297
|
changesetArn: __expectString(output.changesetArn),
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
: undefined,
|
|
451
|
-
createTimestamp: output.createTimestamp !== undefined && output.createTimestamp !== null
|
|
452
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTimestamp)))
|
|
453
|
-
: undefined,
|
|
2298
|
+
changesetId: __expectString(output.changesetId),
|
|
2299
|
+
createTime: __expectLong(output.createTime),
|
|
454
2300
|
datasetId: __expectString(output.datasetId),
|
|
455
2301
|
errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
|
|
456
|
-
?
|
|
2302
|
+
? deserializeAws_restJson1ChangesetErrorInfo(output.errorInfo, context)
|
|
457
2303
|
: undefined,
|
|
458
2304
|
formatParams: output.formatParams !== undefined && output.formatParams !== null
|
|
459
|
-
?
|
|
2305
|
+
? deserializeAws_restJson1FormatParams(output.formatParams, context)
|
|
460
2306
|
: undefined,
|
|
461
|
-
formatType: __expectString(output.formatType),
|
|
462
|
-
id: __expectString(output.id),
|
|
463
2307
|
sourceParams: output.sourceParams !== undefined && output.sourceParams !== null
|
|
464
|
-
?
|
|
2308
|
+
? deserializeAws_restJson1SourceParams(output.sourceParams, context)
|
|
465
2309
|
: undefined,
|
|
466
|
-
sourceType: __expectString(output.sourceType),
|
|
467
2310
|
status: __expectString(output.status),
|
|
468
2311
|
updatedByChangesetId: __expectString(output.updatedByChangesetId),
|
|
469
2312
|
updatesChangesetId: __expectString(output.updatesChangesetId),
|
|
470
2313
|
};
|
|
471
2314
|
};
|
|
2315
|
+
var deserializeAws_restJson1ColumnDefinition = function (output, context) {
|
|
2316
|
+
return {
|
|
2317
|
+
columnDescription: __expectString(output.columnDescription),
|
|
2318
|
+
columnName: __expectString(output.columnName),
|
|
2319
|
+
dataType: __expectString(output.dataType),
|
|
2320
|
+
};
|
|
2321
|
+
};
|
|
2322
|
+
var deserializeAws_restJson1ColumnList = function (output, context) {
|
|
2323
|
+
return (output || [])
|
|
2324
|
+
.filter(function (e) { return e != null; })
|
|
2325
|
+
.map(function (entry) {
|
|
2326
|
+
if (entry === null) {
|
|
2327
|
+
return null;
|
|
2328
|
+
}
|
|
2329
|
+
return deserializeAws_restJson1ColumnDefinition(entry, context);
|
|
2330
|
+
});
|
|
2331
|
+
};
|
|
2332
|
+
var deserializeAws_restJson1ColumnNameList = function (output, context) {
|
|
2333
|
+
return (output || [])
|
|
2334
|
+
.filter(function (e) { return e != null; })
|
|
2335
|
+
.map(function (entry) {
|
|
2336
|
+
if (entry === null) {
|
|
2337
|
+
return null;
|
|
2338
|
+
}
|
|
2339
|
+
return __expectString(entry);
|
|
2340
|
+
});
|
|
2341
|
+
};
|
|
472
2342
|
var deserializeAws_restJson1Credentials = function (output, context) {
|
|
473
2343
|
return {
|
|
474
2344
|
accessKeyId: __expectString(output.accessKeyId),
|
|
@@ -476,13 +2346,148 @@ var deserializeAws_restJson1Credentials = function (output, context) {
|
|
|
476
2346
|
sessionToken: __expectString(output.sessionToken),
|
|
477
2347
|
};
|
|
478
2348
|
};
|
|
479
|
-
var
|
|
2349
|
+
var deserializeAws_restJson1Dataset = function (output, context) {
|
|
2350
|
+
return {
|
|
2351
|
+
alias: __expectString(output.alias),
|
|
2352
|
+
createTime: __expectLong(output.createTime),
|
|
2353
|
+
datasetArn: __expectString(output.datasetArn),
|
|
2354
|
+
datasetDescription: __expectString(output.datasetDescription),
|
|
2355
|
+
datasetId: __expectString(output.datasetId),
|
|
2356
|
+
datasetTitle: __expectString(output.datasetTitle),
|
|
2357
|
+
kind: __expectString(output.kind),
|
|
2358
|
+
lastModifiedTime: __expectLong(output.lastModifiedTime),
|
|
2359
|
+
ownerInfo: output.ownerInfo !== undefined && output.ownerInfo !== null
|
|
2360
|
+
? deserializeAws_restJson1DatasetOwnerInfo(output.ownerInfo, context)
|
|
2361
|
+
: undefined,
|
|
2362
|
+
schemaDefinition: output.schemaDefinition !== undefined && output.schemaDefinition !== null
|
|
2363
|
+
? deserializeAws_restJson1SchemaUnion(output.schemaDefinition, context)
|
|
2364
|
+
: undefined,
|
|
2365
|
+
};
|
|
2366
|
+
};
|
|
2367
|
+
var deserializeAws_restJson1DatasetList = function (output, context) {
|
|
2368
|
+
return (output || [])
|
|
2369
|
+
.filter(function (e) { return e != null; })
|
|
2370
|
+
.map(function (entry) {
|
|
2371
|
+
if (entry === null) {
|
|
2372
|
+
return null;
|
|
2373
|
+
}
|
|
2374
|
+
return deserializeAws_restJson1Dataset(entry, context);
|
|
2375
|
+
});
|
|
2376
|
+
};
|
|
2377
|
+
var deserializeAws_restJson1DatasetOwnerInfo = function (output, context) {
|
|
2378
|
+
return {
|
|
2379
|
+
email: __expectString(output.email),
|
|
2380
|
+
name: __expectString(output.name),
|
|
2381
|
+
phoneNumber: __expectString(output.phoneNumber),
|
|
2382
|
+
};
|
|
2383
|
+
};
|
|
2384
|
+
var deserializeAws_restJson1DataViewDestinationTypeParams = function (output, context) {
|
|
2385
|
+
return {
|
|
2386
|
+
destinationType: __expectString(output.destinationType),
|
|
2387
|
+
s3DestinationExportFileFormat: __expectString(output.s3DestinationExportFileFormat),
|
|
2388
|
+
s3DestinationExportFileFormatOptions: output.s3DestinationExportFileFormatOptions !== undefined && output.s3DestinationExportFileFormatOptions !== null
|
|
2389
|
+
? deserializeAws_restJson1S3DestinationFormatOptions(output.s3DestinationExportFileFormatOptions, context)
|
|
2390
|
+
: undefined,
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
var deserializeAws_restJson1DataViewErrorInfo = function (output, context) {
|
|
480
2394
|
return {
|
|
481
2395
|
errorCategory: __expectString(output.errorCategory),
|
|
482
2396
|
errorMessage: __expectString(output.errorMessage),
|
|
483
2397
|
};
|
|
484
2398
|
};
|
|
485
|
-
var
|
|
2399
|
+
var deserializeAws_restJson1DataViewList = function (output, context) {
|
|
2400
|
+
return (output || [])
|
|
2401
|
+
.filter(function (e) { return e != null; })
|
|
2402
|
+
.map(function (entry) {
|
|
2403
|
+
if (entry === null) {
|
|
2404
|
+
return null;
|
|
2405
|
+
}
|
|
2406
|
+
return deserializeAws_restJson1DataViewSummary(entry, context);
|
|
2407
|
+
});
|
|
2408
|
+
};
|
|
2409
|
+
var deserializeAws_restJson1DataViewSummary = function (output, context) {
|
|
2410
|
+
return {
|
|
2411
|
+
asOfTimestamp: __expectLong(output.asOfTimestamp),
|
|
2412
|
+
autoUpdate: __expectBoolean(output.autoUpdate),
|
|
2413
|
+
createTime: __expectLong(output.createTime),
|
|
2414
|
+
dataViewArn: __expectString(output.dataViewArn),
|
|
2415
|
+
dataViewId: __expectString(output.dataViewId),
|
|
2416
|
+
datasetId: __expectString(output.datasetId),
|
|
2417
|
+
destinationTypeProperties: output.destinationTypeProperties !== undefined && output.destinationTypeProperties !== null
|
|
2418
|
+
? deserializeAws_restJson1DataViewDestinationTypeParams(output.destinationTypeProperties, context)
|
|
2419
|
+
: undefined,
|
|
2420
|
+
errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
|
|
2421
|
+
? deserializeAws_restJson1DataViewErrorInfo(output.errorInfo, context)
|
|
2422
|
+
: undefined,
|
|
2423
|
+
lastModifiedTime: __expectLong(output.lastModifiedTime),
|
|
2424
|
+
partitionColumns: output.partitionColumns !== undefined && output.partitionColumns !== null
|
|
2425
|
+
? deserializeAws_restJson1PartitionColumnList(output.partitionColumns, context)
|
|
2426
|
+
: undefined,
|
|
2427
|
+
sortColumns: output.sortColumns !== undefined && output.sortColumns !== null
|
|
2428
|
+
? deserializeAws_restJson1SortColumnList(output.sortColumns, context)
|
|
2429
|
+
: undefined,
|
|
2430
|
+
status: __expectString(output.status),
|
|
2431
|
+
};
|
|
2432
|
+
};
|
|
2433
|
+
var deserializeAws_restJson1FormatParams = function (output, context) {
|
|
2434
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2435
|
+
var _b;
|
|
2436
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2437
|
+
if (value === null) {
|
|
2438
|
+
return acc;
|
|
2439
|
+
}
|
|
2440
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2441
|
+
}, {});
|
|
2442
|
+
};
|
|
2443
|
+
var deserializeAws_restJson1PartitionColumnList = function (output, context) {
|
|
2444
|
+
return (output || [])
|
|
2445
|
+
.filter(function (e) { return e != null; })
|
|
2446
|
+
.map(function (entry) {
|
|
2447
|
+
if (entry === null) {
|
|
2448
|
+
return null;
|
|
2449
|
+
}
|
|
2450
|
+
return __expectString(entry);
|
|
2451
|
+
});
|
|
2452
|
+
};
|
|
2453
|
+
var deserializeAws_restJson1S3DestinationFormatOptions = function (output, context) {
|
|
2454
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2455
|
+
var _b;
|
|
2456
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2457
|
+
if (value === null) {
|
|
2458
|
+
return acc;
|
|
2459
|
+
}
|
|
2460
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2461
|
+
}, {});
|
|
2462
|
+
};
|
|
2463
|
+
var deserializeAws_restJson1SchemaDefinition = function (output, context) {
|
|
2464
|
+
return {
|
|
2465
|
+
columns: output.columns !== undefined && output.columns !== null
|
|
2466
|
+
? deserializeAws_restJson1ColumnList(output.columns, context)
|
|
2467
|
+
: undefined,
|
|
2468
|
+
primaryKeyColumns: output.primaryKeyColumns !== undefined && output.primaryKeyColumns !== null
|
|
2469
|
+
? deserializeAws_restJson1ColumnNameList(output.primaryKeyColumns, context)
|
|
2470
|
+
: undefined,
|
|
2471
|
+
};
|
|
2472
|
+
};
|
|
2473
|
+
var deserializeAws_restJson1SchemaUnion = function (output, context) {
|
|
2474
|
+
return {
|
|
2475
|
+
tabularSchemaConfig: output.tabularSchemaConfig !== undefined && output.tabularSchemaConfig !== null
|
|
2476
|
+
? deserializeAws_restJson1SchemaDefinition(output.tabularSchemaConfig, context)
|
|
2477
|
+
: undefined,
|
|
2478
|
+
};
|
|
2479
|
+
};
|
|
2480
|
+
var deserializeAws_restJson1SortColumnList = function (output, context) {
|
|
2481
|
+
return (output || [])
|
|
2482
|
+
.filter(function (e) { return e != null; })
|
|
2483
|
+
.map(function (entry) {
|
|
2484
|
+
if (entry === null) {
|
|
2485
|
+
return null;
|
|
2486
|
+
}
|
|
2487
|
+
return __expectString(entry);
|
|
2488
|
+
});
|
|
2489
|
+
};
|
|
2490
|
+
var deserializeAws_restJson1SourceParams = function (output, context) {
|
|
486
2491
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
487
2492
|
var _b;
|
|
488
2493
|
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|