@aws-sdk/client-finspace-data 3.53.0 → 3.55.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 +27 -0
- package/dist-cjs/FinspaceData.js +165 -0
- package/dist-cjs/FinspaceDataClient.js +13 -13
- package/dist-cjs/commands/CreateChangesetCommand.js +3 -3
- package/dist-cjs/commands/CreateDataViewCommand.js +3 -3
- package/dist-cjs/commands/CreateDatasetCommand.js +3 -3
- package/dist-cjs/commands/CreatePermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/CreateUserCommand.js +36 -0
- package/dist-cjs/commands/DeleteDatasetCommand.js +3 -3
- package/dist-cjs/commands/DeletePermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/DisableUserCommand.js +36 -0
- package/dist-cjs/commands/EnableUserCommand.js +36 -0
- package/dist-cjs/commands/GetChangesetCommand.js +3 -3
- package/dist-cjs/commands/GetDataViewCommand.js +3 -3
- package/dist-cjs/commands/GetDatasetCommand.js +3 -3
- package/dist-cjs/commands/GetProgrammaticAccessCredentialsCommand.js +3 -3
- package/dist-cjs/commands/GetUserCommand.js +36 -0
- package/dist-cjs/commands/GetWorkingLocationCommand.js +3 -3
- package/dist-cjs/commands/ListChangesetsCommand.js +3 -3
- package/dist-cjs/commands/ListDataViewsCommand.js +3 -3
- package/dist-cjs/commands/ListDatasetsCommand.js +3 -3
- package/dist-cjs/commands/ListPermissionGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListUsersCommand.js +36 -0
- package/dist-cjs/commands/ResetUserPasswordCommand.js +36 -0
- package/dist-cjs/commands/UpdateChangesetCommand.js +3 -3
- package/dist-cjs/commands/UpdateDatasetCommand.js +3 -3
- package/dist-cjs/commands/UpdatePermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/UpdateUserCommand.js +36 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +202 -2
- package/dist-cjs/pagination/ListPermissionGroupsPaginator.js +35 -0
- package/dist-cjs/pagination/ListUsersPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1352 -321
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/FinspaceData.js +179 -14
- package/dist-es/commands/CreatePermissionGroupCommand.js +39 -0
- package/dist-es/commands/CreateUserCommand.js +39 -0
- package/dist-es/commands/DeletePermissionGroupCommand.js +39 -0
- package/dist-es/commands/DisableUserCommand.js +39 -0
- package/dist-es/commands/EnableUserCommand.js +39 -0
- package/dist-es/commands/GetUserCommand.js +39 -0
- package/dist-es/commands/ListPermissionGroupsCommand.js +39 -0
- package/dist-es/commands/ListUsersCommand.js +39 -0
- package/dist-es/commands/ResetUserPasswordCommand.js +39 -0
- package/dist-es/commands/UpdatePermissionGroupCommand.js +39 -0
- package/dist-es/commands/UpdateUserCommand.js +39 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/models_0.js +132 -4
- package/dist-es/pagination/ListChangesetsPaginator.js +4 -4
- package/dist-es/pagination/ListDataViewsPaginator.js +4 -4
- package/dist-es/pagination/ListDatasetsPaginator.js +4 -4
- package/dist-es/pagination/ListPermissionGroupsPaginator.js +74 -0
- package/dist-es/pagination/ListUsersPaginator.js +74 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1636 -322
- package/dist-types/FinspaceData.d.ts +77 -0
- package/dist-types/FinspaceDataClient.d.ts +15 -4
- package/dist-types/commands/CreatePermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/CreateUserCommand.d.ts +35 -0
- package/dist-types/commands/DeletePermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/DisableUserCommand.d.ts +35 -0
- package/dist-types/commands/EnableUserCommand.d.ts +35 -0
- package/dist-types/commands/GetUserCommand.d.ts +35 -0
- package/dist-types/commands/ListPermissionGroupsCommand.d.ts +35 -0
- package/dist-types/commands/ListUsersCommand.d.ts +35 -0
- package/dist-types/commands/ResetUserPasswordCommand.d.ts +35 -0
- package/dist-types/commands/UpdatePermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +865 -113
- package/dist-types/pagination/ListPermissionGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListUsersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +33 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/FinspaceData.d.ts +55 -0
- package/dist-types/ts3.4/FinspaceDataClient.d.ts +15 -4
- package/dist-types/ts3.4/commands/CreatePermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPermissionGroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ResetUserPasswordCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdatePermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +333 -0
- package/dist-types/ts3.4/pagination/ListPermissionGroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +33 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -15,7 +15,7 @@ export var serializeAws_restJson1CreateChangesetCommand = function (input, conte
|
|
|
15
15
|
headers = {
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
|
-
resolvedPath = ""
|
|
18
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets/{datasetId}/changesetsv2";
|
|
19
19
|
if (input.datasetId !== undefined) {
|
|
20
20
|
labelValue = input.datasetId;
|
|
21
21
|
if (labelValue.length <= 0) {
|
|
@@ -52,7 +52,7 @@ export var serializeAws_restJson1CreateDatasetCommand = function (input, context
|
|
|
52
52
|
headers = {
|
|
53
53
|
"content-type": "application/json",
|
|
54
54
|
};
|
|
55
|
-
resolvedPath = ""
|
|
55
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2";
|
|
56
56
|
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 &&
|
|
57
57
|
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 &&
|
|
58
58
|
input.ownerInfo !== null && { ownerInfo: serializeAws_restJson1DatasetOwnerInfo(input.ownerInfo, context) })), (input.permissionGroupParams !== undefined &&
|
|
@@ -85,7 +85,7 @@ export var serializeAws_restJson1CreateDataViewCommand = function (input, contex
|
|
|
85
85
|
headers = {
|
|
86
86
|
"content-type": "application/json",
|
|
87
87
|
};
|
|
88
|
-
resolvedPath = ""
|
|
88
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets/{datasetId}/dataviewsv2";
|
|
89
89
|
if (input.datasetId !== undefined) {
|
|
90
90
|
labelValue = input.datasetId;
|
|
91
91
|
if (labelValue.length <= 0) {
|
|
@@ -116,6 +116,60 @@ export var serializeAws_restJson1CreateDataViewCommand = function (input, contex
|
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
}); };
|
|
119
|
+
export var serializeAws_restJson1CreatePermissionGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
120
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
121
|
+
var _c;
|
|
122
|
+
return __generator(this, function (_d) {
|
|
123
|
+
switch (_d.label) {
|
|
124
|
+
case 0: return [4, context.endpoint()];
|
|
125
|
+
case 1:
|
|
126
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
127
|
+
headers = {
|
|
128
|
+
"content-type": "application/json",
|
|
129
|
+
};
|
|
130
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/permission-group";
|
|
131
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.applicationPermissions !== undefined &&
|
|
132
|
+
input.applicationPermissions !== null && {
|
|
133
|
+
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
134
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })));
|
|
135
|
+
return [2, new __HttpRequest({
|
|
136
|
+
protocol: protocol,
|
|
137
|
+
hostname: hostname,
|
|
138
|
+
port: port,
|
|
139
|
+
method: "POST",
|
|
140
|
+
headers: headers,
|
|
141
|
+
path: resolvedPath,
|
|
142
|
+
body: body,
|
|
143
|
+
})];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}); };
|
|
147
|
+
export var serializeAws_restJson1CreateUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
148
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
149
|
+
var _c;
|
|
150
|
+
return __generator(this, function (_d) {
|
|
151
|
+
switch (_d.label) {
|
|
152
|
+
case 0: return [4, context.endpoint()];
|
|
153
|
+
case 1:
|
|
154
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
155
|
+
headers = {
|
|
156
|
+
"content-type": "application/json",
|
|
157
|
+
};
|
|
158
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user";
|
|
159
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ApiAccess !== undefined && input.ApiAccess !== null && { ApiAccess: input.ApiAccess })), (input.apiAccessPrincipalArn !== undefined &&
|
|
160
|
+
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.emailAddress !== undefined && input.emailAddress !== null && { emailAddress: input.emailAddress })), (input.firstName !== undefined && input.firstName !== null && { firstName: input.firstName })), (input.lastName !== undefined && input.lastName !== null && { lastName: input.lastName })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
161
|
+
return [2, new __HttpRequest({
|
|
162
|
+
protocol: protocol,
|
|
163
|
+
hostname: hostname,
|
|
164
|
+
port: port,
|
|
165
|
+
method: "POST",
|
|
166
|
+
headers: headers,
|
|
167
|
+
path: resolvedPath,
|
|
168
|
+
body: body,
|
|
169
|
+
})];
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
}); };
|
|
119
173
|
export var serializeAws_restJson1DeleteDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
120
174
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
121
175
|
return __generator(this, function (_c) {
|
|
@@ -124,7 +178,7 @@ export var serializeAws_restJson1DeleteDatasetCommand = function (input, context
|
|
|
124
178
|
case 1:
|
|
125
179
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
126
180
|
headers = {};
|
|
127
|
-
resolvedPath = ""
|
|
181
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2/{datasetId}";
|
|
128
182
|
if (input.datasetId !== undefined) {
|
|
129
183
|
labelValue = input.datasetId;
|
|
130
184
|
if (labelValue.length <= 0) {
|
|
@@ -149,6 +203,113 @@ export var serializeAws_restJson1DeleteDatasetCommand = function (input, context
|
|
|
149
203
|
}
|
|
150
204
|
});
|
|
151
205
|
}); };
|
|
206
|
+
export var serializeAws_restJson1DeletePermissionGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
207
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
208
|
+
return __generator(this, function (_c) {
|
|
209
|
+
switch (_c.label) {
|
|
210
|
+
case 0: return [4, context.endpoint()];
|
|
211
|
+
case 1:
|
|
212
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
213
|
+
headers = {};
|
|
214
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/permission-group/{permissionGroupId}";
|
|
215
|
+
if (input.permissionGroupId !== undefined) {
|
|
216
|
+
labelValue = input.permissionGroupId;
|
|
217
|
+
if (labelValue.length <= 0) {
|
|
218
|
+
throw new Error("Empty value provided for input HTTP label: permissionGroupId.");
|
|
219
|
+
}
|
|
220
|
+
resolvedPath = resolvedPath.replace("{permissionGroupId}", __extendedEncodeURIComponent(labelValue));
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
224
|
+
}
|
|
225
|
+
query = __assign({}, (input.clientToken !== undefined && { clientToken: input.clientToken }));
|
|
226
|
+
return [2, new __HttpRequest({
|
|
227
|
+
protocol: protocol,
|
|
228
|
+
hostname: hostname,
|
|
229
|
+
port: port,
|
|
230
|
+
method: "DELETE",
|
|
231
|
+
headers: headers,
|
|
232
|
+
path: resolvedPath,
|
|
233
|
+
query: query,
|
|
234
|
+
body: body,
|
|
235
|
+
})];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}); };
|
|
239
|
+
export var serializeAws_restJson1DisableUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
240
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
241
|
+
var _c;
|
|
242
|
+
return __generator(this, function (_d) {
|
|
243
|
+
switch (_d.label) {
|
|
244
|
+
case 0: return [4, context.endpoint()];
|
|
245
|
+
case 1:
|
|
246
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
247
|
+
headers = {
|
|
248
|
+
"content-type": "application/json",
|
|
249
|
+
};
|
|
250
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user/{userId}/disable";
|
|
251
|
+
if (input.userId !== undefined) {
|
|
252
|
+
labelValue = input.userId;
|
|
253
|
+
if (labelValue.length <= 0) {
|
|
254
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
255
|
+
}
|
|
256
|
+
resolvedPath = resolvedPath.replace("{userId}", __extendedEncodeURIComponent(labelValue));
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
260
|
+
}
|
|
261
|
+
body = JSON.stringify({
|
|
262
|
+
clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken(),
|
|
263
|
+
});
|
|
264
|
+
return [2, new __HttpRequest({
|
|
265
|
+
protocol: protocol,
|
|
266
|
+
hostname: hostname,
|
|
267
|
+
port: port,
|
|
268
|
+
method: "POST",
|
|
269
|
+
headers: headers,
|
|
270
|
+
path: resolvedPath,
|
|
271
|
+
body: body,
|
|
272
|
+
})];
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}); };
|
|
276
|
+
export var serializeAws_restJson1EnableUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
277
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
278
|
+
var _c;
|
|
279
|
+
return __generator(this, function (_d) {
|
|
280
|
+
switch (_d.label) {
|
|
281
|
+
case 0: return [4, context.endpoint()];
|
|
282
|
+
case 1:
|
|
283
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
284
|
+
headers = {
|
|
285
|
+
"content-type": "application/json",
|
|
286
|
+
};
|
|
287
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user/{userId}/enable";
|
|
288
|
+
if (input.userId !== undefined) {
|
|
289
|
+
labelValue = input.userId;
|
|
290
|
+
if (labelValue.length <= 0) {
|
|
291
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
292
|
+
}
|
|
293
|
+
resolvedPath = resolvedPath.replace("{userId}", __extendedEncodeURIComponent(labelValue));
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
297
|
+
}
|
|
298
|
+
body = JSON.stringify({
|
|
299
|
+
clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken(),
|
|
300
|
+
});
|
|
301
|
+
return [2, new __HttpRequest({
|
|
302
|
+
protocol: protocol,
|
|
303
|
+
hostname: hostname,
|
|
304
|
+
port: port,
|
|
305
|
+
method: "POST",
|
|
306
|
+
headers: headers,
|
|
307
|
+
path: resolvedPath,
|
|
308
|
+
body: body,
|
|
309
|
+
})];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
}); };
|
|
152
313
|
export var serializeAws_restJson1GetChangesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
153
314
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
154
315
|
return __generator(this, function (_c) {
|
|
@@ -157,7 +318,7 @@ export var serializeAws_restJson1GetChangesetCommand = function (input, context)
|
|
|
157
318
|
case 1:
|
|
158
319
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
159
320
|
headers = {};
|
|
160
|
-
resolvedPath = ""
|
|
321
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
161
322
|
"/datasets/{datasetId}/changesetsv2/{changesetId}";
|
|
162
323
|
if (input.datasetId !== undefined) {
|
|
163
324
|
labelValue = input.datasetId;
|
|
@@ -199,7 +360,7 @@ export var serializeAws_restJson1GetDatasetCommand = function (input, context) {
|
|
|
199
360
|
case 1:
|
|
200
361
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
201
362
|
headers = {};
|
|
202
|
-
resolvedPath = ""
|
|
363
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2/{datasetId}";
|
|
203
364
|
if (input.datasetId !== undefined) {
|
|
204
365
|
labelValue = input.datasetId;
|
|
205
366
|
if (labelValue.length <= 0) {
|
|
@@ -230,7 +391,7 @@ export var serializeAws_restJson1GetDataViewCommand = function (input, context)
|
|
|
230
391
|
case 1:
|
|
231
392
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
232
393
|
headers = {};
|
|
233
|
-
resolvedPath = ""
|
|
394
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
234
395
|
"/datasets/{datasetId}/dataviewsv2/{dataViewId}";
|
|
235
396
|
if (input.dataViewId !== undefined) {
|
|
236
397
|
labelValue = input.dataViewId;
|
|
@@ -272,7 +433,7 @@ export var serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = funct
|
|
|
272
433
|
case 1:
|
|
273
434
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
274
435
|
headers = {};
|
|
275
|
-
resolvedPath = ""
|
|
436
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/credentials/programmatic";
|
|
276
437
|
query = __assign(__assign({}, (input.durationInMinutes !== undefined && { durationInMinutes: input.durationInMinutes.toString() })), (input.environmentId !== undefined && { environmentId: input.environmentId }));
|
|
277
438
|
return [2, new __HttpRequest({
|
|
278
439
|
protocol: protocol,
|
|
@@ -287,6 +448,37 @@ export var serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = funct
|
|
|
287
448
|
}
|
|
288
449
|
});
|
|
289
450
|
}); };
|
|
451
|
+
export var serializeAws_restJson1GetUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
452
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
453
|
+
return __generator(this, function (_c) {
|
|
454
|
+
switch (_c.label) {
|
|
455
|
+
case 0: return [4, context.endpoint()];
|
|
456
|
+
case 1:
|
|
457
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
458
|
+
headers = {};
|
|
459
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user/{userId}";
|
|
460
|
+
if (input.userId !== undefined) {
|
|
461
|
+
labelValue = input.userId;
|
|
462
|
+
if (labelValue.length <= 0) {
|
|
463
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
464
|
+
}
|
|
465
|
+
resolvedPath = resolvedPath.replace("{userId}", __extendedEncodeURIComponent(labelValue));
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
469
|
+
}
|
|
470
|
+
return [2, new __HttpRequest({
|
|
471
|
+
protocol: protocol,
|
|
472
|
+
hostname: hostname,
|
|
473
|
+
port: port,
|
|
474
|
+
method: "GET",
|
|
475
|
+
headers: headers,
|
|
476
|
+
path: resolvedPath,
|
|
477
|
+
body: body,
|
|
478
|
+
})];
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
}); };
|
|
290
482
|
export var serializeAws_restJson1GetWorkingLocationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
291
483
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
292
484
|
return __generator(this, function (_c) {
|
|
@@ -297,7 +489,7 @@ export var serializeAws_restJson1GetWorkingLocationCommand = function (input, co
|
|
|
297
489
|
headers = {
|
|
298
490
|
"content-type": "application/json",
|
|
299
491
|
};
|
|
300
|
-
resolvedPath = ""
|
|
492
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workingLocationV1";
|
|
301
493
|
body = JSON.stringify(__assign({}, (input.locationType !== undefined && input.locationType !== null && { locationType: input.locationType })));
|
|
302
494
|
return [2, new __HttpRequest({
|
|
303
495
|
protocol: protocol,
|
|
@@ -319,7 +511,7 @@ export var serializeAws_restJson1ListChangesetsCommand = function (input, contex
|
|
|
319
511
|
case 1:
|
|
320
512
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
321
513
|
headers = {};
|
|
322
|
-
resolvedPath = ""
|
|
514
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets/{datasetId}/changesetsv2";
|
|
323
515
|
if (input.datasetId !== undefined) {
|
|
324
516
|
labelValue = input.datasetId;
|
|
325
517
|
if (labelValue.length <= 0) {
|
|
@@ -352,7 +544,7 @@ export var serializeAws_restJson1ListDatasetsCommand = function (input, context)
|
|
|
352
544
|
case 1:
|
|
353
545
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
354
546
|
headers = {};
|
|
355
|
-
resolvedPath = ""
|
|
547
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2";
|
|
356
548
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
357
549
|
return [2, new __HttpRequest({
|
|
358
550
|
protocol: protocol,
|
|
@@ -375,7 +567,7 @@ export var serializeAws_restJson1ListDataViewsCommand = function (input, context
|
|
|
375
567
|
case 1:
|
|
376
568
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
377
569
|
headers = {};
|
|
378
|
-
resolvedPath = ""
|
|
570
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasets/{datasetId}/dataviewsv2";
|
|
379
571
|
if (input.datasetId !== undefined) {
|
|
380
572
|
labelValue = input.datasetId;
|
|
381
573
|
if (labelValue.length <= 0) {
|
|
@@ -400,6 +592,89 @@ export var serializeAws_restJson1ListDataViewsCommand = function (input, context
|
|
|
400
592
|
}
|
|
401
593
|
});
|
|
402
594
|
}); };
|
|
595
|
+
export var serializeAws_restJson1ListPermissionGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
596
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
597
|
+
return __generator(this, function (_c) {
|
|
598
|
+
switch (_c.label) {
|
|
599
|
+
case 0: return [4, context.endpoint()];
|
|
600
|
+
case 1:
|
|
601
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
602
|
+
headers = {};
|
|
603
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/permission-group";
|
|
604
|
+
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
605
|
+
return [2, new __HttpRequest({
|
|
606
|
+
protocol: protocol,
|
|
607
|
+
hostname: hostname,
|
|
608
|
+
port: port,
|
|
609
|
+
method: "GET",
|
|
610
|
+
headers: headers,
|
|
611
|
+
path: resolvedPath,
|
|
612
|
+
query: query,
|
|
613
|
+
body: body,
|
|
614
|
+
})];
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
}); };
|
|
618
|
+
export var serializeAws_restJson1ListUsersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
619
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
620
|
+
return __generator(this, function (_c) {
|
|
621
|
+
switch (_c.label) {
|
|
622
|
+
case 0: return [4, context.endpoint()];
|
|
623
|
+
case 1:
|
|
624
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
625
|
+
headers = {};
|
|
626
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user";
|
|
627
|
+
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
628
|
+
return [2, new __HttpRequest({
|
|
629
|
+
protocol: protocol,
|
|
630
|
+
hostname: hostname,
|
|
631
|
+
port: port,
|
|
632
|
+
method: "GET",
|
|
633
|
+
headers: headers,
|
|
634
|
+
path: resolvedPath,
|
|
635
|
+
query: query,
|
|
636
|
+
body: body,
|
|
637
|
+
})];
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
}); };
|
|
641
|
+
export var serializeAws_restJson1ResetUserPasswordCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
642
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
643
|
+
var _c;
|
|
644
|
+
return __generator(this, function (_d) {
|
|
645
|
+
switch (_d.label) {
|
|
646
|
+
case 0: return [4, context.endpoint()];
|
|
647
|
+
case 1:
|
|
648
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
649
|
+
headers = {
|
|
650
|
+
"content-type": "application/json",
|
|
651
|
+
};
|
|
652
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user/{userId}/password";
|
|
653
|
+
if (input.userId !== undefined) {
|
|
654
|
+
labelValue = input.userId;
|
|
655
|
+
if (labelValue.length <= 0) {
|
|
656
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
657
|
+
}
|
|
658
|
+
resolvedPath = resolvedPath.replace("{userId}", __extendedEncodeURIComponent(labelValue));
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
661
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
662
|
+
}
|
|
663
|
+
body = JSON.stringify({
|
|
664
|
+
clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken(),
|
|
665
|
+
});
|
|
666
|
+
return [2, new __HttpRequest({
|
|
667
|
+
protocol: protocol,
|
|
668
|
+
hostname: hostname,
|
|
669
|
+
port: port,
|
|
670
|
+
method: "POST",
|
|
671
|
+
headers: headers,
|
|
672
|
+
path: resolvedPath,
|
|
673
|
+
body: body,
|
|
674
|
+
})];
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
}); };
|
|
403
678
|
export var serializeAws_restJson1UpdateChangesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
404
679
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
405
680
|
var _c;
|
|
@@ -411,7 +686,7 @@ export var serializeAws_restJson1UpdateChangesetCommand = function (input, conte
|
|
|
411
686
|
headers = {
|
|
412
687
|
"content-type": "application/json",
|
|
413
688
|
};
|
|
414
|
-
resolvedPath = ""
|
|
689
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
415
690
|
"/datasets/{datasetId}/changesetsv2/{changesetId}";
|
|
416
691
|
if (input.datasetId !== undefined) {
|
|
417
692
|
labelValue = input.datasetId;
|
|
@@ -459,7 +734,7 @@ export var serializeAws_restJson1UpdateDatasetCommand = function (input, context
|
|
|
459
734
|
headers = {
|
|
460
735
|
"content-type": "application/json",
|
|
461
736
|
};
|
|
462
|
-
resolvedPath = ""
|
|
737
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/datasetsv2/{datasetId}";
|
|
463
738
|
if (input.datasetId !== undefined) {
|
|
464
739
|
labelValue = input.datasetId;
|
|
465
740
|
if (labelValue.length <= 0) {
|
|
@@ -487,43 +762,117 @@ export var serializeAws_restJson1UpdateDatasetCommand = function (input, context
|
|
|
487
762
|
}
|
|
488
763
|
});
|
|
489
764
|
}); };
|
|
490
|
-
export var
|
|
491
|
-
var
|
|
492
|
-
return __generator(this, function (_c) {
|
|
493
|
-
switch (_c.label) {
|
|
494
|
-
case 0:
|
|
495
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
496
|
-
return [2, deserializeAws_restJson1CreateChangesetCommandError(output, context)];
|
|
497
|
-
}
|
|
498
|
-
contents = {
|
|
499
|
-
$metadata: deserializeMetadata(output),
|
|
500
|
-
changesetId: undefined,
|
|
501
|
-
datasetId: undefined,
|
|
502
|
-
};
|
|
503
|
-
_a = __expectNonNull;
|
|
504
|
-
_b = __expectObject;
|
|
505
|
-
return [4, parseBody(output.body, context)];
|
|
506
|
-
case 1:
|
|
507
|
-
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
508
|
-
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
509
|
-
contents.changesetId = __expectString(data.changesetId);
|
|
510
|
-
}
|
|
511
|
-
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
512
|
-
contents.datasetId = __expectString(data.datasetId);
|
|
513
|
-
}
|
|
514
|
-
return [2, Promise.resolve(contents)];
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
}); };
|
|
518
|
-
var deserializeAws_restJson1CreateChangesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
519
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
765
|
+
export var serializeAws_restJson1UpdatePermissionGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
766
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
520
767
|
var _c;
|
|
521
768
|
return __generator(this, function (_d) {
|
|
522
769
|
switch (_d.label) {
|
|
523
|
-
case 0:
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
770
|
+
case 0: return [4, context.endpoint()];
|
|
771
|
+
case 1:
|
|
772
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
773
|
+
headers = {
|
|
774
|
+
"content-type": "application/json",
|
|
775
|
+
};
|
|
776
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/permission-group/{permissionGroupId}";
|
|
777
|
+
if (input.permissionGroupId !== undefined) {
|
|
778
|
+
labelValue = input.permissionGroupId;
|
|
779
|
+
if (labelValue.length <= 0) {
|
|
780
|
+
throw new Error("Empty value provided for input HTTP label: permissionGroupId.");
|
|
781
|
+
}
|
|
782
|
+
resolvedPath = resolvedPath.replace("{permissionGroupId}", __extendedEncodeURIComponent(labelValue));
|
|
783
|
+
}
|
|
784
|
+
else {
|
|
785
|
+
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
786
|
+
}
|
|
787
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.applicationPermissions !== undefined &&
|
|
788
|
+
input.applicationPermissions !== null && {
|
|
789
|
+
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
790
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })));
|
|
791
|
+
return [2, new __HttpRequest({
|
|
792
|
+
protocol: protocol,
|
|
793
|
+
hostname: hostname,
|
|
794
|
+
port: port,
|
|
795
|
+
method: "PUT",
|
|
796
|
+
headers: headers,
|
|
797
|
+
path: resolvedPath,
|
|
798
|
+
body: body,
|
|
799
|
+
})];
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
}); };
|
|
803
|
+
export var serializeAws_restJson1UpdateUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
804
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
805
|
+
var _c;
|
|
806
|
+
return __generator(this, function (_d) {
|
|
807
|
+
switch (_d.label) {
|
|
808
|
+
case 0: return [4, context.endpoint()];
|
|
809
|
+
case 1:
|
|
810
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
811
|
+
headers = {
|
|
812
|
+
"content-type": "application/json",
|
|
813
|
+
};
|
|
814
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/user/{userId}";
|
|
815
|
+
if (input.userId !== undefined) {
|
|
816
|
+
labelValue = input.userId;
|
|
817
|
+
if (labelValue.length <= 0) {
|
|
818
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
819
|
+
}
|
|
820
|
+
resolvedPath = resolvedPath.replace("{userId}", __extendedEncodeURIComponent(labelValue));
|
|
821
|
+
}
|
|
822
|
+
else {
|
|
823
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
824
|
+
}
|
|
825
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.apiAccess !== undefined && input.apiAccess !== null && { apiAccess: input.apiAccess })), (input.apiAccessPrincipalArn !== undefined &&
|
|
826
|
+
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.firstName !== undefined && input.firstName !== null && { firstName: input.firstName })), (input.lastName !== undefined && input.lastName !== null && { lastName: input.lastName })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
827
|
+
return [2, new __HttpRequest({
|
|
828
|
+
protocol: protocol,
|
|
829
|
+
hostname: hostname,
|
|
830
|
+
port: port,
|
|
831
|
+
method: "PUT",
|
|
832
|
+
headers: headers,
|
|
833
|
+
path: resolvedPath,
|
|
834
|
+
body: body,
|
|
835
|
+
})];
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
}); };
|
|
839
|
+
export var deserializeAws_restJson1CreateChangesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
840
|
+
var contents, data, _a, _b;
|
|
841
|
+
return __generator(this, function (_c) {
|
|
842
|
+
switch (_c.label) {
|
|
843
|
+
case 0:
|
|
844
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
845
|
+
return [2, deserializeAws_restJson1CreateChangesetCommandError(output, context)];
|
|
846
|
+
}
|
|
847
|
+
contents = {
|
|
848
|
+
$metadata: deserializeMetadata(output),
|
|
849
|
+
changesetId: undefined,
|
|
850
|
+
datasetId: undefined,
|
|
851
|
+
};
|
|
852
|
+
_a = __expectNonNull;
|
|
853
|
+
_b = __expectObject;
|
|
854
|
+
return [4, parseBody(output.body, context)];
|
|
855
|
+
case 1:
|
|
856
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
857
|
+
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
858
|
+
contents.changesetId = __expectString(data.changesetId);
|
|
859
|
+
}
|
|
860
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
861
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
862
|
+
}
|
|
863
|
+
return [2, Promise.resolve(contents)];
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
}); };
|
|
867
|
+
var deserializeAws_restJson1CreateChangesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
868
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
869
|
+
var _c;
|
|
870
|
+
return __generator(this, function (_d) {
|
|
871
|
+
switch (_d.label) {
|
|
872
|
+
case 0:
|
|
873
|
+
_a = [__assign({}, output)];
|
|
874
|
+
_c = {};
|
|
875
|
+
return [4, parseBody(output.body, context)];
|
|
527
876
|
case 1:
|
|
528
877
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
529
878
|
errorCode = "UnknownError";
|
|
@@ -731,31 +1080,31 @@ var deserializeAws_restJson1CreateDataViewCommandError = function (output, conte
|
|
|
731
1080
|
}
|
|
732
1081
|
});
|
|
733
1082
|
}); };
|
|
734
|
-
export var
|
|
1083
|
+
export var deserializeAws_restJson1CreatePermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
735
1084
|
var contents, data, _a, _b;
|
|
736
1085
|
return __generator(this, function (_c) {
|
|
737
1086
|
switch (_c.label) {
|
|
738
1087
|
case 0:
|
|
739
1088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
-
return [2,
|
|
1089
|
+
return [2, deserializeAws_restJson1CreatePermissionGroupCommandError(output, context)];
|
|
741
1090
|
}
|
|
742
1091
|
contents = {
|
|
743
1092
|
$metadata: deserializeMetadata(output),
|
|
744
|
-
|
|
1093
|
+
permissionGroupId: undefined,
|
|
745
1094
|
};
|
|
746
1095
|
_a = __expectNonNull;
|
|
747
1096
|
_b = __expectObject;
|
|
748
1097
|
return [4, parseBody(output.body, context)];
|
|
749
1098
|
case 1:
|
|
750
1099
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
751
|
-
if (data.
|
|
752
|
-
contents.
|
|
1100
|
+
if (data.permissionGroupId !== undefined && data.permissionGroupId !== null) {
|
|
1101
|
+
contents.permissionGroupId = __expectString(data.permissionGroupId);
|
|
753
1102
|
}
|
|
754
1103
|
return [2, Promise.resolve(contents)];
|
|
755
1104
|
}
|
|
756
1105
|
});
|
|
757
1106
|
}); };
|
|
758
|
-
var
|
|
1107
|
+
var deserializeAws_restJson1CreatePermissionGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
759
1108
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
760
1109
|
var _c;
|
|
761
1110
|
return __generator(this, function (_d) {
|
|
@@ -778,14 +1127,12 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
778
1127
|
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
779
1128
|
case "LimitExceededException": return [3, 8];
|
|
780
1129
|
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
781
|
-
case "
|
|
782
|
-
case "com.amazonaws.finspacedata#
|
|
783
|
-
case "
|
|
784
|
-
case "com.amazonaws.finspacedata#
|
|
785
|
-
case "ValidationException": return [3, 14];
|
|
786
|
-
case "com.amazonaws.finspacedata#ValidationException": return [3, 14];
|
|
1130
|
+
case "ThrottlingException": return [3, 10];
|
|
1131
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1132
|
+
case "ValidationException": return [3, 12];
|
|
1133
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
787
1134
|
}
|
|
788
|
-
return [3,
|
|
1135
|
+
return [3, 14];
|
|
789
1136
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
790
1137
|
case 3: throw _d.sent();
|
|
791
1138
|
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -794,13 +1141,11 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
794
1141
|
case 7: throw _d.sent();
|
|
795
1142
|
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
796
1143
|
case 9: throw _d.sent();
|
|
797
|
-
case 10: return [4,
|
|
1144
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
798
1145
|
case 11: throw _d.sent();
|
|
799
|
-
case 12: return [4,
|
|
1146
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
800
1147
|
case 13: throw _d.sent();
|
|
801
|
-
case 14:
|
|
802
|
-
case 15: throw _d.sent();
|
|
803
|
-
case 16:
|
|
1148
|
+
case 14:
|
|
804
1149
|
parsedBody = parsedOutput.body;
|
|
805
1150
|
response = new __BaseException({
|
|
806
1151
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -811,79 +1156,31 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
811
1156
|
}
|
|
812
1157
|
});
|
|
813
1158
|
}); };
|
|
814
|
-
export var
|
|
1159
|
+
export var deserializeAws_restJson1CreateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
815
1160
|
var contents, data, _a, _b;
|
|
816
1161
|
return __generator(this, function (_c) {
|
|
817
1162
|
switch (_c.label) {
|
|
818
1163
|
case 0:
|
|
819
1164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
|
-
return [2,
|
|
1165
|
+
return [2, deserializeAws_restJson1CreateUserCommandError(output, context)];
|
|
821
1166
|
}
|
|
822
1167
|
contents = {
|
|
823
1168
|
$metadata: deserializeMetadata(output),
|
|
824
|
-
|
|
825
|
-
activeUntilTimestamp: undefined,
|
|
826
|
-
changeType: undefined,
|
|
827
|
-
changesetArn: undefined,
|
|
828
|
-
changesetId: undefined,
|
|
829
|
-
createTime: undefined,
|
|
830
|
-
datasetId: undefined,
|
|
831
|
-
errorInfo: undefined,
|
|
832
|
-
formatParams: undefined,
|
|
833
|
-
sourceParams: undefined,
|
|
834
|
-
status: undefined,
|
|
835
|
-
updatedByChangesetId: undefined,
|
|
836
|
-
updatesChangesetId: undefined,
|
|
1169
|
+
userId: undefined,
|
|
837
1170
|
};
|
|
838
1171
|
_a = __expectNonNull;
|
|
839
1172
|
_b = __expectObject;
|
|
840
1173
|
return [4, parseBody(output.body, context)];
|
|
841
1174
|
case 1:
|
|
842
1175
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
843
|
-
if (data.
|
|
844
|
-
contents.
|
|
845
|
-
}
|
|
846
|
-
if (data.activeUntilTimestamp !== undefined && data.activeUntilTimestamp !== null) {
|
|
847
|
-
contents.activeUntilTimestamp = __expectLong(data.activeUntilTimestamp);
|
|
848
|
-
}
|
|
849
|
-
if (data.changeType !== undefined && data.changeType !== null) {
|
|
850
|
-
contents.changeType = __expectString(data.changeType);
|
|
851
|
-
}
|
|
852
|
-
if (data.changesetArn !== undefined && data.changesetArn !== null) {
|
|
853
|
-
contents.changesetArn = __expectString(data.changesetArn);
|
|
854
|
-
}
|
|
855
|
-
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
856
|
-
contents.changesetId = __expectString(data.changesetId);
|
|
857
|
-
}
|
|
858
|
-
if (data.createTime !== undefined && data.createTime !== null) {
|
|
859
|
-
contents.createTime = __expectLong(data.createTime);
|
|
860
|
-
}
|
|
861
|
-
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
862
|
-
contents.datasetId = __expectString(data.datasetId);
|
|
863
|
-
}
|
|
864
|
-
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
865
|
-
contents.errorInfo = deserializeAws_restJson1ChangesetErrorInfo(data.errorInfo, context);
|
|
866
|
-
}
|
|
867
|
-
if (data.formatParams !== undefined && data.formatParams !== null) {
|
|
868
|
-
contents.formatParams = deserializeAws_restJson1FormatParams(data.formatParams, context);
|
|
869
|
-
}
|
|
870
|
-
if (data.sourceParams !== undefined && data.sourceParams !== null) {
|
|
871
|
-
contents.sourceParams = deserializeAws_restJson1SourceParams(data.sourceParams, context);
|
|
872
|
-
}
|
|
873
|
-
if (data.status !== undefined && data.status !== null) {
|
|
874
|
-
contents.status = __expectString(data.status);
|
|
875
|
-
}
|
|
876
|
-
if (data.updatedByChangesetId !== undefined && data.updatedByChangesetId !== null) {
|
|
877
|
-
contents.updatedByChangesetId = __expectString(data.updatedByChangesetId);
|
|
878
|
-
}
|
|
879
|
-
if (data.updatesChangesetId !== undefined && data.updatesChangesetId !== null) {
|
|
880
|
-
contents.updatesChangesetId = __expectString(data.updatesChangesetId);
|
|
1176
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
1177
|
+
contents.userId = __expectString(data.userId);
|
|
881
1178
|
}
|
|
882
1179
|
return [2, Promise.resolve(contents)];
|
|
883
1180
|
}
|
|
884
1181
|
});
|
|
885
1182
|
}); };
|
|
886
|
-
var
|
|
1183
|
+
var deserializeAws_restJson1CreateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
887
1184
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
888
1185
|
var _c;
|
|
889
1186
|
return __generator(this, function (_d) {
|
|
@@ -904,8 +1201,8 @@ var deserializeAws_restJson1GetChangesetCommandError = function (output, context
|
|
|
904
1201
|
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
905
1202
|
case "InternalServerException": return [3, 6];
|
|
906
1203
|
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
907
|
-
case "
|
|
908
|
-
case "com.amazonaws.finspacedata#
|
|
1204
|
+
case "LimitExceededException": return [3, 8];
|
|
1205
|
+
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
909
1206
|
case "ThrottlingException": return [3, 10];
|
|
910
1207
|
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
911
1208
|
case "ValidationException": return [3, 12];
|
|
@@ -918,7 +1215,7 @@ var deserializeAws_restJson1GetChangesetCommandError = function (output, context
|
|
|
918
1215
|
case 5: throw _d.sent();
|
|
919
1216
|
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
920
1217
|
case 7: throw _d.sent();
|
|
921
|
-
case 8: return [4,
|
|
1218
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
922
1219
|
case 9: throw _d.sent();
|
|
923
1220
|
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
924
1221
|
case 11: throw _d.sent();
|
|
@@ -935,67 +1232,31 @@ var deserializeAws_restJson1GetChangesetCommandError = function (output, context
|
|
|
935
1232
|
}
|
|
936
1233
|
});
|
|
937
1234
|
}); };
|
|
938
|
-
export var
|
|
1235
|
+
export var deserializeAws_restJson1DeleteDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
939
1236
|
var contents, data, _a, _b;
|
|
940
1237
|
return __generator(this, function (_c) {
|
|
941
1238
|
switch (_c.label) {
|
|
942
1239
|
case 0:
|
|
943
1240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
|
-
return [2,
|
|
1241
|
+
return [2, deserializeAws_restJson1DeleteDatasetCommandError(output, context)];
|
|
945
1242
|
}
|
|
946
1243
|
contents = {
|
|
947
1244
|
$metadata: deserializeMetadata(output),
|
|
948
|
-
alias: undefined,
|
|
949
|
-
createTime: undefined,
|
|
950
|
-
datasetArn: undefined,
|
|
951
|
-
datasetDescription: undefined,
|
|
952
1245
|
datasetId: undefined,
|
|
953
|
-
datasetTitle: undefined,
|
|
954
|
-
kind: undefined,
|
|
955
|
-
lastModifiedTime: undefined,
|
|
956
|
-
schemaDefinition: undefined,
|
|
957
|
-
status: undefined,
|
|
958
1246
|
};
|
|
959
1247
|
_a = __expectNonNull;
|
|
960
1248
|
_b = __expectObject;
|
|
961
1249
|
return [4, parseBody(output.body, context)];
|
|
962
1250
|
case 1:
|
|
963
1251
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
964
|
-
if (data.alias !== undefined && data.alias !== null) {
|
|
965
|
-
contents.alias = __expectString(data.alias);
|
|
966
|
-
}
|
|
967
|
-
if (data.createTime !== undefined && data.createTime !== null) {
|
|
968
|
-
contents.createTime = __expectLong(data.createTime);
|
|
969
|
-
}
|
|
970
|
-
if (data.datasetArn !== undefined && data.datasetArn !== null) {
|
|
971
|
-
contents.datasetArn = __expectString(data.datasetArn);
|
|
972
|
-
}
|
|
973
|
-
if (data.datasetDescription !== undefined && data.datasetDescription !== null) {
|
|
974
|
-
contents.datasetDescription = __expectString(data.datasetDescription);
|
|
975
|
-
}
|
|
976
1252
|
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
977
1253
|
contents.datasetId = __expectString(data.datasetId);
|
|
978
1254
|
}
|
|
979
|
-
if (data.datasetTitle !== undefined && data.datasetTitle !== null) {
|
|
980
|
-
contents.datasetTitle = __expectString(data.datasetTitle);
|
|
981
|
-
}
|
|
982
|
-
if (data.kind !== undefined && data.kind !== null) {
|
|
983
|
-
contents.kind = __expectString(data.kind);
|
|
984
|
-
}
|
|
985
|
-
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
986
|
-
contents.lastModifiedTime = __expectLong(data.lastModifiedTime);
|
|
987
|
-
}
|
|
988
|
-
if (data.schemaDefinition !== undefined && data.schemaDefinition !== null) {
|
|
989
|
-
contents.schemaDefinition = deserializeAws_restJson1SchemaUnion(data.schemaDefinition, context);
|
|
990
|
-
}
|
|
991
|
-
if (data.status !== undefined && data.status !== null) {
|
|
992
|
-
contents.status = __expectString(data.status);
|
|
993
|
-
}
|
|
994
1255
|
return [2, Promise.resolve(contents)];
|
|
995
1256
|
}
|
|
996
1257
|
});
|
|
997
1258
|
}); };
|
|
998
|
-
var
|
|
1259
|
+
var deserializeAws_restJson1DeleteDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
999
1260
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1000
1261
|
var _c;
|
|
1001
1262
|
return __generator(this, function (_d) {
|
|
@@ -1016,27 +1277,31 @@ var deserializeAws_restJson1GetDatasetCommandError = function (output, context)
|
|
|
1016
1277
|
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1017
1278
|
case "InternalServerException": return [3, 6];
|
|
1018
1279
|
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1019
|
-
case "
|
|
1020
|
-
case "com.amazonaws.finspacedata#
|
|
1021
|
-
case "
|
|
1022
|
-
case "com.amazonaws.finspacedata#
|
|
1023
|
-
case "
|
|
1024
|
-
case "com.amazonaws.finspacedata#
|
|
1280
|
+
case "LimitExceededException": return [3, 8];
|
|
1281
|
+
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
1282
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1283
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 10];
|
|
1284
|
+
case "ThrottlingException": return [3, 12];
|
|
1285
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 12];
|
|
1286
|
+
case "ValidationException": return [3, 14];
|
|
1287
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 14];
|
|
1025
1288
|
}
|
|
1026
|
-
return [3,
|
|
1289
|
+
return [3, 16];
|
|
1027
1290
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1028
1291
|
case 3: throw _d.sent();
|
|
1029
1292
|
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1030
1293
|
case 5: throw _d.sent();
|
|
1031
1294
|
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1032
1295
|
case 7: throw _d.sent();
|
|
1033
|
-
case 8: return [4,
|
|
1296
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1034
1297
|
case 9: throw _d.sent();
|
|
1035
|
-
case 10: return [4,
|
|
1298
|
+
case 10: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1036
1299
|
case 11: throw _d.sent();
|
|
1037
|
-
case 12: return [4,
|
|
1300
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1038
1301
|
case 13: throw _d.sent();
|
|
1039
|
-
case 14:
|
|
1302
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1303
|
+
case 15: throw _d.sent();
|
|
1304
|
+
case 16:
|
|
1040
1305
|
parsedBody = parsedOutput.body;
|
|
1041
1306
|
response = new __BaseException({
|
|
1042
1307
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -1047,75 +1312,1047 @@ var deserializeAws_restJson1GetDatasetCommandError = function (output, context)
|
|
|
1047
1312
|
}
|
|
1048
1313
|
});
|
|
1049
1314
|
}); };
|
|
1050
|
-
export var
|
|
1315
|
+
export var deserializeAws_restJson1DeletePermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1051
1316
|
var contents, data, _a, _b;
|
|
1052
1317
|
return __generator(this, function (_c) {
|
|
1053
1318
|
switch (_c.label) {
|
|
1054
1319
|
case 0:
|
|
1055
1320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1056
|
-
return [2,
|
|
1321
|
+
return [2, deserializeAws_restJson1DeletePermissionGroupCommandError(output, context)];
|
|
1057
1322
|
}
|
|
1058
1323
|
contents = {
|
|
1059
1324
|
$metadata: deserializeMetadata(output),
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1325
|
+
permissionGroupId: undefined,
|
|
1326
|
+
};
|
|
1327
|
+
_a = __expectNonNull;
|
|
1328
|
+
_b = __expectObject;
|
|
1329
|
+
return [4, parseBody(output.body, context)];
|
|
1330
|
+
case 1:
|
|
1331
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1332
|
+
if (data.permissionGroupId !== undefined && data.permissionGroupId !== null) {
|
|
1333
|
+
contents.permissionGroupId = __expectString(data.permissionGroupId);
|
|
1334
|
+
}
|
|
1335
|
+
return [2, Promise.resolve(contents)];
|
|
1336
|
+
}
|
|
1337
|
+
});
|
|
1338
|
+
}); };
|
|
1339
|
+
var deserializeAws_restJson1DeletePermissionGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1340
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1341
|
+
var _c;
|
|
1342
|
+
return __generator(this, function (_d) {
|
|
1343
|
+
switch (_d.label) {
|
|
1344
|
+
case 0:
|
|
1345
|
+
_a = [__assign({}, output)];
|
|
1346
|
+
_c = {};
|
|
1347
|
+
return [4, parseBody(output.body, context)];
|
|
1348
|
+
case 1:
|
|
1349
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1350
|
+
errorCode = "UnknownError";
|
|
1351
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
|
+
_b = errorCode;
|
|
1353
|
+
switch (_b) {
|
|
1354
|
+
case "AccessDeniedException": return [3, 2];
|
|
1355
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1356
|
+
case "ConflictException": return [3, 4];
|
|
1357
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1358
|
+
case "InternalServerException": return [3, 6];
|
|
1359
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1360
|
+
case "LimitExceededException": return [3, 8];
|
|
1361
|
+
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
1362
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1363
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 10];
|
|
1364
|
+
case "ThrottlingException": return [3, 12];
|
|
1365
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 12];
|
|
1366
|
+
case "ValidationException": return [3, 14];
|
|
1367
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 14];
|
|
1368
|
+
}
|
|
1369
|
+
return [3, 16];
|
|
1370
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1371
|
+
case 3: throw _d.sent();
|
|
1372
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1373
|
+
case 5: throw _d.sent();
|
|
1374
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1375
|
+
case 7: throw _d.sent();
|
|
1376
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1377
|
+
case 9: throw _d.sent();
|
|
1378
|
+
case 10: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1379
|
+
case 11: throw _d.sent();
|
|
1380
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1381
|
+
case 13: throw _d.sent();
|
|
1382
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1383
|
+
case 15: throw _d.sent();
|
|
1384
|
+
case 16:
|
|
1385
|
+
parsedBody = parsedOutput.body;
|
|
1386
|
+
response = new __BaseException({
|
|
1387
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1388
|
+
$fault: "client",
|
|
1389
|
+
$metadata: deserializeMetadata(output),
|
|
1390
|
+
});
|
|
1391
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1392
|
+
}
|
|
1393
|
+
});
|
|
1394
|
+
}); };
|
|
1395
|
+
export var deserializeAws_restJson1DisableUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1396
|
+
var contents, data, _a, _b;
|
|
1397
|
+
return __generator(this, function (_c) {
|
|
1398
|
+
switch (_c.label) {
|
|
1399
|
+
case 0:
|
|
1400
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1401
|
+
return [2, deserializeAws_restJson1DisableUserCommandError(output, context)];
|
|
1402
|
+
}
|
|
1403
|
+
contents = {
|
|
1404
|
+
$metadata: deserializeMetadata(output),
|
|
1405
|
+
userId: undefined,
|
|
1406
|
+
};
|
|
1407
|
+
_a = __expectNonNull;
|
|
1408
|
+
_b = __expectObject;
|
|
1409
|
+
return [4, parseBody(output.body, context)];
|
|
1410
|
+
case 1:
|
|
1411
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1412
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
1413
|
+
contents.userId = __expectString(data.userId);
|
|
1414
|
+
}
|
|
1415
|
+
return [2, Promise.resolve(contents)];
|
|
1416
|
+
}
|
|
1417
|
+
});
|
|
1418
|
+
}); };
|
|
1419
|
+
var deserializeAws_restJson1DisableUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1420
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1421
|
+
var _c;
|
|
1422
|
+
return __generator(this, function (_d) {
|
|
1423
|
+
switch (_d.label) {
|
|
1424
|
+
case 0:
|
|
1425
|
+
_a = [__assign({}, output)];
|
|
1426
|
+
_c = {};
|
|
1427
|
+
return [4, parseBody(output.body, context)];
|
|
1428
|
+
case 1:
|
|
1429
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1430
|
+
errorCode = "UnknownError";
|
|
1431
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
|
+
_b = errorCode;
|
|
1433
|
+
switch (_b) {
|
|
1434
|
+
case "AccessDeniedException": return [3, 2];
|
|
1435
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1436
|
+
case "ConflictException": return [3, 4];
|
|
1437
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1438
|
+
case "InternalServerException": return [3, 6];
|
|
1439
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1440
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1441
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1442
|
+
case "ThrottlingException": return [3, 10];
|
|
1443
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1444
|
+
case "ValidationException": return [3, 12];
|
|
1445
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1446
|
+
}
|
|
1447
|
+
return [3, 14];
|
|
1448
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1449
|
+
case 3: throw _d.sent();
|
|
1450
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1451
|
+
case 5: throw _d.sent();
|
|
1452
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1453
|
+
case 7: throw _d.sent();
|
|
1454
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1455
|
+
case 9: throw _d.sent();
|
|
1456
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1457
|
+
case 11: throw _d.sent();
|
|
1458
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1459
|
+
case 13: throw _d.sent();
|
|
1460
|
+
case 14:
|
|
1461
|
+
parsedBody = parsedOutput.body;
|
|
1462
|
+
response = new __BaseException({
|
|
1463
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1464
|
+
$fault: "client",
|
|
1465
|
+
$metadata: deserializeMetadata(output),
|
|
1466
|
+
});
|
|
1467
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1468
|
+
}
|
|
1469
|
+
});
|
|
1470
|
+
}); };
|
|
1471
|
+
export var deserializeAws_restJson1EnableUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1472
|
+
var contents, data, _a, _b;
|
|
1473
|
+
return __generator(this, function (_c) {
|
|
1474
|
+
switch (_c.label) {
|
|
1475
|
+
case 0:
|
|
1476
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1477
|
+
return [2, deserializeAws_restJson1EnableUserCommandError(output, context)];
|
|
1478
|
+
}
|
|
1479
|
+
contents = {
|
|
1480
|
+
$metadata: deserializeMetadata(output),
|
|
1481
|
+
userId: undefined,
|
|
1482
|
+
};
|
|
1483
|
+
_a = __expectNonNull;
|
|
1484
|
+
_b = __expectObject;
|
|
1485
|
+
return [4, parseBody(output.body, context)];
|
|
1486
|
+
case 1:
|
|
1487
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1488
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
1489
|
+
contents.userId = __expectString(data.userId);
|
|
1490
|
+
}
|
|
1491
|
+
return [2, Promise.resolve(contents)];
|
|
1492
|
+
}
|
|
1493
|
+
});
|
|
1494
|
+
}); };
|
|
1495
|
+
var deserializeAws_restJson1EnableUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1496
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1497
|
+
var _c;
|
|
1498
|
+
return __generator(this, function (_d) {
|
|
1499
|
+
switch (_d.label) {
|
|
1500
|
+
case 0:
|
|
1501
|
+
_a = [__assign({}, output)];
|
|
1502
|
+
_c = {};
|
|
1503
|
+
return [4, parseBody(output.body, context)];
|
|
1504
|
+
case 1:
|
|
1505
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1506
|
+
errorCode = "UnknownError";
|
|
1507
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
|
+
_b = errorCode;
|
|
1509
|
+
switch (_b) {
|
|
1510
|
+
case "AccessDeniedException": return [3, 2];
|
|
1511
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1512
|
+
case "ConflictException": return [3, 4];
|
|
1513
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1514
|
+
case "InternalServerException": return [3, 6];
|
|
1515
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1516
|
+
case "LimitExceededException": return [3, 8];
|
|
1517
|
+
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
1518
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1519
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 10];
|
|
1520
|
+
case "ThrottlingException": return [3, 12];
|
|
1521
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 12];
|
|
1522
|
+
case "ValidationException": return [3, 14];
|
|
1523
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 14];
|
|
1524
|
+
}
|
|
1525
|
+
return [3, 16];
|
|
1526
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1527
|
+
case 3: throw _d.sent();
|
|
1528
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1529
|
+
case 5: throw _d.sent();
|
|
1530
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1531
|
+
case 7: throw _d.sent();
|
|
1532
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1533
|
+
case 9: throw _d.sent();
|
|
1534
|
+
case 10: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1535
|
+
case 11: throw _d.sent();
|
|
1536
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1537
|
+
case 13: throw _d.sent();
|
|
1538
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1539
|
+
case 15: throw _d.sent();
|
|
1540
|
+
case 16:
|
|
1541
|
+
parsedBody = parsedOutput.body;
|
|
1542
|
+
response = new __BaseException({
|
|
1543
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1544
|
+
$fault: "client",
|
|
1545
|
+
$metadata: deserializeMetadata(output),
|
|
1546
|
+
});
|
|
1547
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1548
|
+
}
|
|
1549
|
+
});
|
|
1550
|
+
}); };
|
|
1551
|
+
export var deserializeAws_restJson1GetChangesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1552
|
+
var contents, data, _a, _b;
|
|
1553
|
+
return __generator(this, function (_c) {
|
|
1554
|
+
switch (_c.label) {
|
|
1555
|
+
case 0:
|
|
1556
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
+
return [2, deserializeAws_restJson1GetChangesetCommandError(output, context)];
|
|
1558
|
+
}
|
|
1559
|
+
contents = {
|
|
1560
|
+
$metadata: deserializeMetadata(output),
|
|
1561
|
+
activeFromTimestamp: undefined,
|
|
1562
|
+
activeUntilTimestamp: undefined,
|
|
1563
|
+
changeType: undefined,
|
|
1564
|
+
changesetArn: undefined,
|
|
1565
|
+
changesetId: undefined,
|
|
1566
|
+
createTime: undefined,
|
|
1567
|
+
datasetId: undefined,
|
|
1568
|
+
errorInfo: undefined,
|
|
1569
|
+
formatParams: undefined,
|
|
1570
|
+
sourceParams: undefined,
|
|
1571
|
+
status: undefined,
|
|
1572
|
+
updatedByChangesetId: undefined,
|
|
1573
|
+
updatesChangesetId: undefined,
|
|
1574
|
+
};
|
|
1575
|
+
_a = __expectNonNull;
|
|
1576
|
+
_b = __expectObject;
|
|
1577
|
+
return [4, parseBody(output.body, context)];
|
|
1578
|
+
case 1:
|
|
1579
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1580
|
+
if (data.activeFromTimestamp !== undefined && data.activeFromTimestamp !== null) {
|
|
1581
|
+
contents.activeFromTimestamp = __expectLong(data.activeFromTimestamp);
|
|
1582
|
+
}
|
|
1583
|
+
if (data.activeUntilTimestamp !== undefined && data.activeUntilTimestamp !== null) {
|
|
1584
|
+
contents.activeUntilTimestamp = __expectLong(data.activeUntilTimestamp);
|
|
1585
|
+
}
|
|
1586
|
+
if (data.changeType !== undefined && data.changeType !== null) {
|
|
1587
|
+
contents.changeType = __expectString(data.changeType);
|
|
1588
|
+
}
|
|
1589
|
+
if (data.changesetArn !== undefined && data.changesetArn !== null) {
|
|
1590
|
+
contents.changesetArn = __expectString(data.changesetArn);
|
|
1591
|
+
}
|
|
1592
|
+
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
1593
|
+
contents.changesetId = __expectString(data.changesetId);
|
|
1594
|
+
}
|
|
1595
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1596
|
+
contents.createTime = __expectLong(data.createTime);
|
|
1597
|
+
}
|
|
1598
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1599
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
1600
|
+
}
|
|
1601
|
+
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
1602
|
+
contents.errorInfo = deserializeAws_restJson1ChangesetErrorInfo(data.errorInfo, context);
|
|
1603
|
+
}
|
|
1604
|
+
if (data.formatParams !== undefined && data.formatParams !== null) {
|
|
1605
|
+
contents.formatParams = deserializeAws_restJson1FormatParams(data.formatParams, context);
|
|
1606
|
+
}
|
|
1607
|
+
if (data.sourceParams !== undefined && data.sourceParams !== null) {
|
|
1608
|
+
contents.sourceParams = deserializeAws_restJson1SourceParams(data.sourceParams, context);
|
|
1609
|
+
}
|
|
1610
|
+
if (data.status !== undefined && data.status !== null) {
|
|
1611
|
+
contents.status = __expectString(data.status);
|
|
1612
|
+
}
|
|
1613
|
+
if (data.updatedByChangesetId !== undefined && data.updatedByChangesetId !== null) {
|
|
1614
|
+
contents.updatedByChangesetId = __expectString(data.updatedByChangesetId);
|
|
1615
|
+
}
|
|
1616
|
+
if (data.updatesChangesetId !== undefined && data.updatesChangesetId !== null) {
|
|
1617
|
+
contents.updatesChangesetId = __expectString(data.updatesChangesetId);
|
|
1618
|
+
}
|
|
1619
|
+
return [2, Promise.resolve(contents)];
|
|
1620
|
+
}
|
|
1621
|
+
});
|
|
1622
|
+
}); };
|
|
1623
|
+
var deserializeAws_restJson1GetChangesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1624
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1625
|
+
var _c;
|
|
1626
|
+
return __generator(this, function (_d) {
|
|
1627
|
+
switch (_d.label) {
|
|
1628
|
+
case 0:
|
|
1629
|
+
_a = [__assign({}, output)];
|
|
1630
|
+
_c = {};
|
|
1631
|
+
return [4, parseBody(output.body, context)];
|
|
1632
|
+
case 1:
|
|
1633
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1634
|
+
errorCode = "UnknownError";
|
|
1635
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1636
|
+
_b = errorCode;
|
|
1637
|
+
switch (_b) {
|
|
1638
|
+
case "AccessDeniedException": return [3, 2];
|
|
1639
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1640
|
+
case "ConflictException": return [3, 4];
|
|
1641
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1642
|
+
case "InternalServerException": return [3, 6];
|
|
1643
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1644
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1645
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1646
|
+
case "ThrottlingException": return [3, 10];
|
|
1647
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1648
|
+
case "ValidationException": return [3, 12];
|
|
1649
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1650
|
+
}
|
|
1651
|
+
return [3, 14];
|
|
1652
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1653
|
+
case 3: throw _d.sent();
|
|
1654
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1655
|
+
case 5: throw _d.sent();
|
|
1656
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1657
|
+
case 7: throw _d.sent();
|
|
1658
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1659
|
+
case 9: throw _d.sent();
|
|
1660
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1661
|
+
case 11: throw _d.sent();
|
|
1662
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1663
|
+
case 13: throw _d.sent();
|
|
1664
|
+
case 14:
|
|
1665
|
+
parsedBody = parsedOutput.body;
|
|
1666
|
+
response = new __BaseException({
|
|
1667
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1668
|
+
$fault: "client",
|
|
1669
|
+
$metadata: deserializeMetadata(output),
|
|
1670
|
+
});
|
|
1671
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
}); };
|
|
1675
|
+
export var deserializeAws_restJson1GetDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1676
|
+
var contents, data, _a, _b;
|
|
1677
|
+
return __generator(this, function (_c) {
|
|
1678
|
+
switch (_c.label) {
|
|
1679
|
+
case 0:
|
|
1680
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1681
|
+
return [2, deserializeAws_restJson1GetDatasetCommandError(output, context)];
|
|
1682
|
+
}
|
|
1683
|
+
contents = {
|
|
1684
|
+
$metadata: deserializeMetadata(output),
|
|
1685
|
+
alias: undefined,
|
|
1686
|
+
createTime: undefined,
|
|
1687
|
+
datasetArn: undefined,
|
|
1688
|
+
datasetDescription: undefined,
|
|
1689
|
+
datasetId: undefined,
|
|
1690
|
+
datasetTitle: undefined,
|
|
1691
|
+
kind: undefined,
|
|
1692
|
+
lastModifiedTime: undefined,
|
|
1693
|
+
schemaDefinition: undefined,
|
|
1694
|
+
status: undefined,
|
|
1695
|
+
};
|
|
1696
|
+
_a = __expectNonNull;
|
|
1697
|
+
_b = __expectObject;
|
|
1698
|
+
return [4, parseBody(output.body, context)];
|
|
1699
|
+
case 1:
|
|
1700
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1701
|
+
if (data.alias !== undefined && data.alias !== null) {
|
|
1702
|
+
contents.alias = __expectString(data.alias);
|
|
1703
|
+
}
|
|
1704
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1705
|
+
contents.createTime = __expectLong(data.createTime);
|
|
1706
|
+
}
|
|
1707
|
+
if (data.datasetArn !== undefined && data.datasetArn !== null) {
|
|
1708
|
+
contents.datasetArn = __expectString(data.datasetArn);
|
|
1709
|
+
}
|
|
1710
|
+
if (data.datasetDescription !== undefined && data.datasetDescription !== null) {
|
|
1711
|
+
contents.datasetDescription = __expectString(data.datasetDescription);
|
|
1712
|
+
}
|
|
1713
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1714
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
1715
|
+
}
|
|
1716
|
+
if (data.datasetTitle !== undefined && data.datasetTitle !== null) {
|
|
1717
|
+
contents.datasetTitle = __expectString(data.datasetTitle);
|
|
1718
|
+
}
|
|
1719
|
+
if (data.kind !== undefined && data.kind !== null) {
|
|
1720
|
+
contents.kind = __expectString(data.kind);
|
|
1721
|
+
}
|
|
1722
|
+
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1723
|
+
contents.lastModifiedTime = __expectLong(data.lastModifiedTime);
|
|
1724
|
+
}
|
|
1725
|
+
if (data.schemaDefinition !== undefined && data.schemaDefinition !== null) {
|
|
1726
|
+
contents.schemaDefinition = deserializeAws_restJson1SchemaUnion(data.schemaDefinition, context);
|
|
1727
|
+
}
|
|
1728
|
+
if (data.status !== undefined && data.status !== null) {
|
|
1729
|
+
contents.status = __expectString(data.status);
|
|
1730
|
+
}
|
|
1731
|
+
return [2, Promise.resolve(contents)];
|
|
1732
|
+
}
|
|
1733
|
+
});
|
|
1734
|
+
}); };
|
|
1735
|
+
var deserializeAws_restJson1GetDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1736
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1737
|
+
var _c;
|
|
1738
|
+
return __generator(this, function (_d) {
|
|
1739
|
+
switch (_d.label) {
|
|
1740
|
+
case 0:
|
|
1741
|
+
_a = [__assign({}, output)];
|
|
1742
|
+
_c = {};
|
|
1743
|
+
return [4, parseBody(output.body, context)];
|
|
1744
|
+
case 1:
|
|
1745
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1746
|
+
errorCode = "UnknownError";
|
|
1747
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
|
+
_b = errorCode;
|
|
1749
|
+
switch (_b) {
|
|
1750
|
+
case "AccessDeniedException": return [3, 2];
|
|
1751
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1752
|
+
case "ConflictException": return [3, 4];
|
|
1753
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1754
|
+
case "InternalServerException": return [3, 6];
|
|
1755
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1756
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1757
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
1758
|
+
case "ThrottlingException": return [3, 10];
|
|
1759
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1760
|
+
case "ValidationException": return [3, 12];
|
|
1761
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1762
|
+
}
|
|
1763
|
+
return [3, 14];
|
|
1764
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1765
|
+
case 3: throw _d.sent();
|
|
1766
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1767
|
+
case 5: throw _d.sent();
|
|
1768
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1769
|
+
case 7: throw _d.sent();
|
|
1770
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1771
|
+
case 9: throw _d.sent();
|
|
1772
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1773
|
+
case 11: throw _d.sent();
|
|
1774
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1775
|
+
case 13: throw _d.sent();
|
|
1776
|
+
case 14:
|
|
1777
|
+
parsedBody = parsedOutput.body;
|
|
1778
|
+
response = new __BaseException({
|
|
1779
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1780
|
+
$fault: "client",
|
|
1781
|
+
$metadata: deserializeMetadata(output),
|
|
1782
|
+
});
|
|
1783
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1784
|
+
}
|
|
1785
|
+
});
|
|
1786
|
+
}); };
|
|
1787
|
+
export var deserializeAws_restJson1GetDataViewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1788
|
+
var contents, data, _a, _b;
|
|
1789
|
+
return __generator(this, function (_c) {
|
|
1790
|
+
switch (_c.label) {
|
|
1791
|
+
case 0:
|
|
1792
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1793
|
+
return [2, deserializeAws_restJson1GetDataViewCommandError(output, context)];
|
|
1794
|
+
}
|
|
1795
|
+
contents = {
|
|
1796
|
+
$metadata: deserializeMetadata(output),
|
|
1797
|
+
asOfTimestamp: undefined,
|
|
1798
|
+
autoUpdate: undefined,
|
|
1799
|
+
createTime: undefined,
|
|
1800
|
+
dataViewArn: undefined,
|
|
1801
|
+
dataViewId: undefined,
|
|
1802
|
+
datasetId: undefined,
|
|
1803
|
+
destinationTypeParams: undefined,
|
|
1804
|
+
errorInfo: undefined,
|
|
1805
|
+
lastModifiedTime: undefined,
|
|
1806
|
+
partitionColumns: undefined,
|
|
1807
|
+
sortColumns: undefined,
|
|
1808
|
+
status: undefined,
|
|
1809
|
+
};
|
|
1810
|
+
_a = __expectNonNull;
|
|
1811
|
+
_b = __expectObject;
|
|
1812
|
+
return [4, parseBody(output.body, context)];
|
|
1813
|
+
case 1:
|
|
1814
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1815
|
+
if (data.asOfTimestamp !== undefined && data.asOfTimestamp !== null) {
|
|
1816
|
+
contents.asOfTimestamp = __expectLong(data.asOfTimestamp);
|
|
1817
|
+
}
|
|
1818
|
+
if (data.autoUpdate !== undefined && data.autoUpdate !== null) {
|
|
1819
|
+
contents.autoUpdate = __expectBoolean(data.autoUpdate);
|
|
1820
|
+
}
|
|
1821
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1822
|
+
contents.createTime = __expectLong(data.createTime);
|
|
1823
|
+
}
|
|
1824
|
+
if (data.dataViewArn !== undefined && data.dataViewArn !== null) {
|
|
1825
|
+
contents.dataViewArn = __expectString(data.dataViewArn);
|
|
1826
|
+
}
|
|
1827
|
+
if (data.dataViewId !== undefined && data.dataViewId !== null) {
|
|
1828
|
+
contents.dataViewId = __expectString(data.dataViewId);
|
|
1829
|
+
}
|
|
1830
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1831
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
1832
|
+
}
|
|
1833
|
+
if (data.destinationTypeParams !== undefined && data.destinationTypeParams !== null) {
|
|
1834
|
+
contents.destinationTypeParams = deserializeAws_restJson1DataViewDestinationTypeParams(data.destinationTypeParams, context);
|
|
1835
|
+
}
|
|
1836
|
+
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
1837
|
+
contents.errorInfo = deserializeAws_restJson1DataViewErrorInfo(data.errorInfo, context);
|
|
1838
|
+
}
|
|
1839
|
+
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1840
|
+
contents.lastModifiedTime = __expectLong(data.lastModifiedTime);
|
|
1841
|
+
}
|
|
1842
|
+
if (data.partitionColumns !== undefined && data.partitionColumns !== null) {
|
|
1843
|
+
contents.partitionColumns = deserializeAws_restJson1PartitionColumnList(data.partitionColumns, context);
|
|
1844
|
+
}
|
|
1845
|
+
if (data.sortColumns !== undefined && data.sortColumns !== null) {
|
|
1846
|
+
contents.sortColumns = deserializeAws_restJson1SortColumnList(data.sortColumns, context);
|
|
1847
|
+
}
|
|
1848
|
+
if (data.status !== undefined && data.status !== null) {
|
|
1849
|
+
contents.status = __expectString(data.status);
|
|
1850
|
+
}
|
|
1851
|
+
return [2, Promise.resolve(contents)];
|
|
1852
|
+
}
|
|
1853
|
+
});
|
|
1854
|
+
}); };
|
|
1855
|
+
var deserializeAws_restJson1GetDataViewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1856
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1857
|
+
var _c;
|
|
1858
|
+
return __generator(this, function (_d) {
|
|
1859
|
+
switch (_d.label) {
|
|
1860
|
+
case 0:
|
|
1861
|
+
_a = [__assign({}, output)];
|
|
1862
|
+
_c = {};
|
|
1863
|
+
return [4, parseBody(output.body, context)];
|
|
1864
|
+
case 1:
|
|
1865
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1866
|
+
errorCode = "UnknownError";
|
|
1867
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
|
+
_b = errorCode;
|
|
1869
|
+
switch (_b) {
|
|
1870
|
+
case "ConflictException": return [3, 2];
|
|
1871
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 2];
|
|
1872
|
+
case "InternalServerException": return [3, 4];
|
|
1873
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
1874
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1875
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 6];
|
|
1876
|
+
case "ThrottlingException": return [3, 8];
|
|
1877
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 8];
|
|
1878
|
+
case "ValidationException": return [3, 10];
|
|
1879
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 10];
|
|
1880
|
+
}
|
|
1881
|
+
return [3, 12];
|
|
1882
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1883
|
+
case 3: throw _d.sent();
|
|
1884
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1885
|
+
case 5: throw _d.sent();
|
|
1886
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1887
|
+
case 7: throw _d.sent();
|
|
1888
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1889
|
+
case 9: throw _d.sent();
|
|
1890
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1891
|
+
case 11: throw _d.sent();
|
|
1892
|
+
case 12:
|
|
1893
|
+
parsedBody = parsedOutput.body;
|
|
1894
|
+
response = new __BaseException({
|
|
1895
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1896
|
+
$fault: "client",
|
|
1897
|
+
$metadata: deserializeMetadata(output),
|
|
1898
|
+
});
|
|
1899
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
}); };
|
|
1903
|
+
export var deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1904
|
+
var contents, data, _a, _b;
|
|
1905
|
+
return __generator(this, function (_c) {
|
|
1906
|
+
switch (_c.label) {
|
|
1907
|
+
case 0:
|
|
1908
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1909
|
+
return [2, deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError(output, context)];
|
|
1910
|
+
}
|
|
1911
|
+
contents = {
|
|
1912
|
+
$metadata: deserializeMetadata(output),
|
|
1913
|
+
credentials: undefined,
|
|
1914
|
+
durationInMinutes: undefined,
|
|
1915
|
+
};
|
|
1916
|
+
_a = __expectNonNull;
|
|
1917
|
+
_b = __expectObject;
|
|
1918
|
+
return [4, parseBody(output.body, context)];
|
|
1919
|
+
case 1:
|
|
1920
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1921
|
+
if (data.credentials !== undefined && data.credentials !== null) {
|
|
1922
|
+
contents.credentials = deserializeAws_restJson1Credentials(data.credentials, context);
|
|
1923
|
+
}
|
|
1924
|
+
if (data.durationInMinutes !== undefined && data.durationInMinutes !== null) {
|
|
1925
|
+
contents.durationInMinutes = __expectLong(data.durationInMinutes);
|
|
1926
|
+
}
|
|
1927
|
+
return [2, Promise.resolve(contents)];
|
|
1928
|
+
}
|
|
1929
|
+
});
|
|
1930
|
+
}); };
|
|
1931
|
+
var deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1932
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1933
|
+
var _c;
|
|
1934
|
+
return __generator(this, function (_d) {
|
|
1935
|
+
switch (_d.label) {
|
|
1936
|
+
case 0:
|
|
1937
|
+
_a = [__assign({}, output)];
|
|
1938
|
+
_c = {};
|
|
1939
|
+
return [4, parseBody(output.body, context)];
|
|
1940
|
+
case 1:
|
|
1941
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1942
|
+
errorCode = "UnknownError";
|
|
1943
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
|
+
_b = errorCode;
|
|
1945
|
+
switch (_b) {
|
|
1946
|
+
case "AccessDeniedException": return [3, 2];
|
|
1947
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
1948
|
+
case "InternalServerException": return [3, 4];
|
|
1949
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
1950
|
+
case "ThrottlingException": return [3, 6];
|
|
1951
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 6];
|
|
1952
|
+
case "ValidationException": return [3, 8];
|
|
1953
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 8];
|
|
1954
|
+
}
|
|
1955
|
+
return [3, 10];
|
|
1956
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1957
|
+
case 3: throw _d.sent();
|
|
1958
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1959
|
+
case 5: throw _d.sent();
|
|
1960
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1961
|
+
case 7: throw _d.sent();
|
|
1962
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1963
|
+
case 9: throw _d.sent();
|
|
1964
|
+
case 10:
|
|
1965
|
+
parsedBody = parsedOutput.body;
|
|
1966
|
+
response = new __BaseException({
|
|
1967
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1968
|
+
$fault: "client",
|
|
1969
|
+
$metadata: deserializeMetadata(output),
|
|
1970
|
+
});
|
|
1971
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1972
|
+
}
|
|
1973
|
+
});
|
|
1974
|
+
}); };
|
|
1975
|
+
export var deserializeAws_restJson1GetUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1976
|
+
var contents, data, _a, _b;
|
|
1977
|
+
return __generator(this, function (_c) {
|
|
1978
|
+
switch (_c.label) {
|
|
1979
|
+
case 0:
|
|
1980
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1981
|
+
return [2, deserializeAws_restJson1GetUserCommandError(output, context)];
|
|
1982
|
+
}
|
|
1983
|
+
contents = {
|
|
1984
|
+
$metadata: deserializeMetadata(output),
|
|
1985
|
+
apiAccess: undefined,
|
|
1986
|
+
apiAccessPrincipalArn: undefined,
|
|
1987
|
+
createTime: undefined,
|
|
1988
|
+
emailAddress: undefined,
|
|
1989
|
+
firstName: undefined,
|
|
1990
|
+
lastDisabledTime: undefined,
|
|
1991
|
+
lastEnabledTime: undefined,
|
|
1992
|
+
lastLoginTime: undefined,
|
|
1993
|
+
lastModifiedTime: undefined,
|
|
1994
|
+
lastName: undefined,
|
|
1995
|
+
status: undefined,
|
|
1996
|
+
type: undefined,
|
|
1997
|
+
userId: undefined,
|
|
1998
|
+
};
|
|
1999
|
+
_a = __expectNonNull;
|
|
2000
|
+
_b = __expectObject;
|
|
2001
|
+
return [4, parseBody(output.body, context)];
|
|
2002
|
+
case 1:
|
|
2003
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2004
|
+
if (data.apiAccess !== undefined && data.apiAccess !== null) {
|
|
2005
|
+
contents.apiAccess = __expectString(data.apiAccess);
|
|
2006
|
+
}
|
|
2007
|
+
if (data.apiAccessPrincipalArn !== undefined && data.apiAccessPrincipalArn !== null) {
|
|
2008
|
+
contents.apiAccessPrincipalArn = __expectString(data.apiAccessPrincipalArn);
|
|
2009
|
+
}
|
|
2010
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
2011
|
+
contents.createTime = __expectLong(data.createTime);
|
|
2012
|
+
}
|
|
2013
|
+
if (data.emailAddress !== undefined && data.emailAddress !== null) {
|
|
2014
|
+
contents.emailAddress = __expectString(data.emailAddress);
|
|
2015
|
+
}
|
|
2016
|
+
if (data.firstName !== undefined && data.firstName !== null) {
|
|
2017
|
+
contents.firstName = __expectString(data.firstName);
|
|
2018
|
+
}
|
|
2019
|
+
if (data.lastDisabledTime !== undefined && data.lastDisabledTime !== null) {
|
|
2020
|
+
contents.lastDisabledTime = __expectLong(data.lastDisabledTime);
|
|
2021
|
+
}
|
|
2022
|
+
if (data.lastEnabledTime !== undefined && data.lastEnabledTime !== null) {
|
|
2023
|
+
contents.lastEnabledTime = __expectLong(data.lastEnabledTime);
|
|
2024
|
+
}
|
|
2025
|
+
if (data.lastLoginTime !== undefined && data.lastLoginTime !== null) {
|
|
2026
|
+
contents.lastLoginTime = __expectLong(data.lastLoginTime);
|
|
2027
|
+
}
|
|
2028
|
+
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
2029
|
+
contents.lastModifiedTime = __expectLong(data.lastModifiedTime);
|
|
2030
|
+
}
|
|
2031
|
+
if (data.lastName !== undefined && data.lastName !== null) {
|
|
2032
|
+
contents.lastName = __expectString(data.lastName);
|
|
2033
|
+
}
|
|
2034
|
+
if (data.status !== undefined && data.status !== null) {
|
|
2035
|
+
contents.status = __expectString(data.status);
|
|
2036
|
+
}
|
|
2037
|
+
if (data.type !== undefined && data.type !== null) {
|
|
2038
|
+
contents.type = __expectString(data.type);
|
|
2039
|
+
}
|
|
2040
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
2041
|
+
contents.userId = __expectString(data.userId);
|
|
2042
|
+
}
|
|
2043
|
+
return [2, Promise.resolve(contents)];
|
|
2044
|
+
}
|
|
2045
|
+
});
|
|
2046
|
+
}); };
|
|
2047
|
+
var deserializeAws_restJson1GetUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2048
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2049
|
+
var _c;
|
|
2050
|
+
return __generator(this, function (_d) {
|
|
2051
|
+
switch (_d.label) {
|
|
2052
|
+
case 0:
|
|
2053
|
+
_a = [__assign({}, output)];
|
|
2054
|
+
_c = {};
|
|
2055
|
+
return [4, parseBody(output.body, context)];
|
|
2056
|
+
case 1:
|
|
2057
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2058
|
+
errorCode = "UnknownError";
|
|
2059
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
|
+
_b = errorCode;
|
|
2061
|
+
switch (_b) {
|
|
2062
|
+
case "AccessDeniedException": return [3, 2];
|
|
2063
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
2064
|
+
case "InternalServerException": return [3, 4];
|
|
2065
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
2066
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2067
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 6];
|
|
2068
|
+
case "ThrottlingException": return [3, 8];
|
|
2069
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 8];
|
|
2070
|
+
case "ValidationException": return [3, 10];
|
|
2071
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 10];
|
|
2072
|
+
}
|
|
2073
|
+
return [3, 12];
|
|
2074
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2075
|
+
case 3: throw _d.sent();
|
|
2076
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2077
|
+
case 5: throw _d.sent();
|
|
2078
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2079
|
+
case 7: throw _d.sent();
|
|
2080
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2081
|
+
case 9: throw _d.sent();
|
|
2082
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2083
|
+
case 11: throw _d.sent();
|
|
2084
|
+
case 12:
|
|
2085
|
+
parsedBody = parsedOutput.body;
|
|
2086
|
+
response = new __BaseException({
|
|
2087
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2088
|
+
$fault: "client",
|
|
2089
|
+
$metadata: deserializeMetadata(output),
|
|
2090
|
+
});
|
|
2091
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2092
|
+
}
|
|
2093
|
+
});
|
|
2094
|
+
}); };
|
|
2095
|
+
export var deserializeAws_restJson1GetWorkingLocationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2096
|
+
var contents, data, _a, _b;
|
|
2097
|
+
return __generator(this, function (_c) {
|
|
2098
|
+
switch (_c.label) {
|
|
2099
|
+
case 0:
|
|
2100
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2101
|
+
return [2, deserializeAws_restJson1GetWorkingLocationCommandError(output, context)];
|
|
2102
|
+
}
|
|
2103
|
+
contents = {
|
|
2104
|
+
$metadata: deserializeMetadata(output),
|
|
2105
|
+
s3Bucket: undefined,
|
|
2106
|
+
s3Path: undefined,
|
|
2107
|
+
s3Uri: undefined,
|
|
2108
|
+
};
|
|
2109
|
+
_a = __expectNonNull;
|
|
2110
|
+
_b = __expectObject;
|
|
2111
|
+
return [4, parseBody(output.body, context)];
|
|
2112
|
+
case 1:
|
|
2113
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2114
|
+
if (data.s3Bucket !== undefined && data.s3Bucket !== null) {
|
|
2115
|
+
contents.s3Bucket = __expectString(data.s3Bucket);
|
|
2116
|
+
}
|
|
2117
|
+
if (data.s3Path !== undefined && data.s3Path !== null) {
|
|
2118
|
+
contents.s3Path = __expectString(data.s3Path);
|
|
2119
|
+
}
|
|
2120
|
+
if (data.s3Uri !== undefined && data.s3Uri !== null) {
|
|
2121
|
+
contents.s3Uri = __expectString(data.s3Uri);
|
|
2122
|
+
}
|
|
2123
|
+
return [2, Promise.resolve(contents)];
|
|
2124
|
+
}
|
|
2125
|
+
});
|
|
2126
|
+
}); };
|
|
2127
|
+
var deserializeAws_restJson1GetWorkingLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2128
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2129
|
+
var _c;
|
|
2130
|
+
return __generator(this, function (_d) {
|
|
2131
|
+
switch (_d.label) {
|
|
2132
|
+
case 0:
|
|
2133
|
+
_a = [__assign({}, output)];
|
|
2134
|
+
_c = {};
|
|
2135
|
+
return [4, parseBody(output.body, context)];
|
|
2136
|
+
case 1:
|
|
2137
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2138
|
+
errorCode = "UnknownError";
|
|
2139
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
|
+
_b = errorCode;
|
|
2141
|
+
switch (_b) {
|
|
2142
|
+
case "AccessDeniedException": return [3, 2];
|
|
2143
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
2144
|
+
case "InternalServerException": return [3, 4];
|
|
2145
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
2146
|
+
case "ThrottlingException": return [3, 6];
|
|
2147
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 6];
|
|
2148
|
+
case "ValidationException": return [3, 8];
|
|
2149
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 8];
|
|
2150
|
+
}
|
|
2151
|
+
return [3, 10];
|
|
2152
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2153
|
+
case 3: throw _d.sent();
|
|
2154
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2155
|
+
case 5: throw _d.sent();
|
|
2156
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2157
|
+
case 7: throw _d.sent();
|
|
2158
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2159
|
+
case 9: throw _d.sent();
|
|
2160
|
+
case 10:
|
|
2161
|
+
parsedBody = parsedOutput.body;
|
|
2162
|
+
response = new __BaseException({
|
|
2163
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2164
|
+
$fault: "client",
|
|
2165
|
+
$metadata: deserializeMetadata(output),
|
|
2166
|
+
});
|
|
2167
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2168
|
+
}
|
|
2169
|
+
});
|
|
2170
|
+
}); };
|
|
2171
|
+
export var deserializeAws_restJson1ListChangesetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2172
|
+
var contents, data, _a, _b;
|
|
2173
|
+
return __generator(this, function (_c) {
|
|
2174
|
+
switch (_c.label) {
|
|
2175
|
+
case 0:
|
|
2176
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2177
|
+
return [2, deserializeAws_restJson1ListChangesetsCommandError(output, context)];
|
|
2178
|
+
}
|
|
2179
|
+
contents = {
|
|
2180
|
+
$metadata: deserializeMetadata(output),
|
|
2181
|
+
changesets: undefined,
|
|
2182
|
+
nextToken: undefined,
|
|
2183
|
+
};
|
|
2184
|
+
_a = __expectNonNull;
|
|
2185
|
+
_b = __expectObject;
|
|
2186
|
+
return [4, parseBody(output.body, context)];
|
|
2187
|
+
case 1:
|
|
2188
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2189
|
+
if (data.changesets !== undefined && data.changesets !== null) {
|
|
2190
|
+
contents.changesets = deserializeAws_restJson1ChangesetList(data.changesets, context);
|
|
2191
|
+
}
|
|
2192
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2193
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
2194
|
+
}
|
|
2195
|
+
return [2, Promise.resolve(contents)];
|
|
2196
|
+
}
|
|
2197
|
+
});
|
|
2198
|
+
}); };
|
|
2199
|
+
var deserializeAws_restJson1ListChangesetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2200
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2201
|
+
var _c;
|
|
2202
|
+
return __generator(this, function (_d) {
|
|
2203
|
+
switch (_d.label) {
|
|
2204
|
+
case 0:
|
|
2205
|
+
_a = [__assign({}, output)];
|
|
2206
|
+
_c = {};
|
|
2207
|
+
return [4, parseBody(output.body, context)];
|
|
2208
|
+
case 1:
|
|
2209
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2210
|
+
errorCode = "UnknownError";
|
|
2211
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
|
+
_b = errorCode;
|
|
2213
|
+
switch (_b) {
|
|
2214
|
+
case "AccessDeniedException": return [3, 2];
|
|
2215
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
2216
|
+
case "ConflictException": return [3, 4];
|
|
2217
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
2218
|
+
case "InternalServerException": return [3, 6];
|
|
2219
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
2220
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2221
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
2222
|
+
case "ThrottlingException": return [3, 10];
|
|
2223
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
2224
|
+
case "ValidationException": return [3, 12];
|
|
2225
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
2226
|
+
}
|
|
2227
|
+
return [3, 14];
|
|
2228
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2229
|
+
case 3: throw _d.sent();
|
|
2230
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2231
|
+
case 5: throw _d.sent();
|
|
2232
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2233
|
+
case 7: throw _d.sent();
|
|
2234
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2235
|
+
case 9: throw _d.sent();
|
|
2236
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2237
|
+
case 11: throw _d.sent();
|
|
2238
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2239
|
+
case 13: throw _d.sent();
|
|
2240
|
+
case 14:
|
|
2241
|
+
parsedBody = parsedOutput.body;
|
|
2242
|
+
response = new __BaseException({
|
|
2243
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2244
|
+
$fault: "client",
|
|
2245
|
+
$metadata: deserializeMetadata(output),
|
|
2246
|
+
});
|
|
2247
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2248
|
+
}
|
|
2249
|
+
});
|
|
2250
|
+
}); };
|
|
2251
|
+
export var deserializeAws_restJson1ListDatasetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2252
|
+
var contents, data, _a, _b;
|
|
2253
|
+
return __generator(this, function (_c) {
|
|
2254
|
+
switch (_c.label) {
|
|
2255
|
+
case 0:
|
|
2256
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2257
|
+
return [2, deserializeAws_restJson1ListDatasetsCommandError(output, context)];
|
|
2258
|
+
}
|
|
2259
|
+
contents = {
|
|
2260
|
+
$metadata: deserializeMetadata(output),
|
|
2261
|
+
datasets: undefined,
|
|
2262
|
+
nextToken: undefined,
|
|
2263
|
+
};
|
|
2264
|
+
_a = __expectNonNull;
|
|
2265
|
+
_b = __expectObject;
|
|
2266
|
+
return [4, parseBody(output.body, context)];
|
|
2267
|
+
case 1:
|
|
2268
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2269
|
+
if (data.datasets !== undefined && data.datasets !== null) {
|
|
2270
|
+
contents.datasets = deserializeAws_restJson1DatasetList(data.datasets, context);
|
|
2271
|
+
}
|
|
2272
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2273
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
2274
|
+
}
|
|
2275
|
+
return [2, Promise.resolve(contents)];
|
|
2276
|
+
}
|
|
2277
|
+
});
|
|
2278
|
+
}); };
|
|
2279
|
+
var deserializeAws_restJson1ListDatasetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2280
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2281
|
+
var _c;
|
|
2282
|
+
return __generator(this, function (_d) {
|
|
2283
|
+
switch (_d.label) {
|
|
2284
|
+
case 0:
|
|
2285
|
+
_a = [__assign({}, output)];
|
|
2286
|
+
_c = {};
|
|
2287
|
+
return [4, parseBody(output.body, context)];
|
|
2288
|
+
case 1:
|
|
2289
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2290
|
+
errorCode = "UnknownError";
|
|
2291
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2292
|
+
_b = errorCode;
|
|
2293
|
+
switch (_b) {
|
|
2294
|
+
case "ConflictException": return [3, 2];
|
|
2295
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 2];
|
|
2296
|
+
case "InternalServerException": return [3, 4];
|
|
2297
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 4];
|
|
2298
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2299
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 6];
|
|
2300
|
+
case "ThrottlingException": return [3, 8];
|
|
2301
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 8];
|
|
2302
|
+
case "ValidationException": return [3, 10];
|
|
2303
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 10];
|
|
2304
|
+
}
|
|
2305
|
+
return [3, 12];
|
|
2306
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2307
|
+
case 3: throw _d.sent();
|
|
2308
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2309
|
+
case 5: throw _d.sent();
|
|
2310
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2311
|
+
case 7: throw _d.sent();
|
|
2312
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2313
|
+
case 9: throw _d.sent();
|
|
2314
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2315
|
+
case 11: throw _d.sent();
|
|
2316
|
+
case 12:
|
|
2317
|
+
parsedBody = parsedOutput.body;
|
|
2318
|
+
response = new __BaseException({
|
|
2319
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2320
|
+
$fault: "client",
|
|
2321
|
+
$metadata: deserializeMetadata(output),
|
|
2322
|
+
});
|
|
2323
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2324
|
+
}
|
|
2325
|
+
});
|
|
2326
|
+
}); };
|
|
2327
|
+
export var deserializeAws_restJson1ListDataViewsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2328
|
+
var contents, data, _a, _b;
|
|
2329
|
+
return __generator(this, function (_c) {
|
|
2330
|
+
switch (_c.label) {
|
|
2331
|
+
case 0:
|
|
2332
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2333
|
+
return [2, deserializeAws_restJson1ListDataViewsCommandError(output, context)];
|
|
2334
|
+
}
|
|
2335
|
+
contents = {
|
|
2336
|
+
$metadata: deserializeMetadata(output),
|
|
2337
|
+
dataViews: undefined,
|
|
2338
|
+
nextToken: undefined,
|
|
1072
2339
|
};
|
|
1073
2340
|
_a = __expectNonNull;
|
|
1074
2341
|
_b = __expectObject;
|
|
1075
2342
|
return [4, parseBody(output.body, context)];
|
|
1076
2343
|
case 1:
|
|
1077
2344
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1078
|
-
if (data.
|
|
1079
|
-
contents.
|
|
1080
|
-
}
|
|
1081
|
-
if (data.autoUpdate !== undefined && data.autoUpdate !== null) {
|
|
1082
|
-
contents.autoUpdate = __expectBoolean(data.autoUpdate);
|
|
1083
|
-
}
|
|
1084
|
-
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1085
|
-
contents.createTime = __expectLong(data.createTime);
|
|
1086
|
-
}
|
|
1087
|
-
if (data.dataViewArn !== undefined && data.dataViewArn !== null) {
|
|
1088
|
-
contents.dataViewArn = __expectString(data.dataViewArn);
|
|
1089
|
-
}
|
|
1090
|
-
if (data.dataViewId !== undefined && data.dataViewId !== null) {
|
|
1091
|
-
contents.dataViewId = __expectString(data.dataViewId);
|
|
1092
|
-
}
|
|
1093
|
-
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1094
|
-
contents.datasetId = __expectString(data.datasetId);
|
|
1095
|
-
}
|
|
1096
|
-
if (data.destinationTypeParams !== undefined && data.destinationTypeParams !== null) {
|
|
1097
|
-
contents.destinationTypeParams = deserializeAws_restJson1DataViewDestinationTypeParams(data.destinationTypeParams, context);
|
|
1098
|
-
}
|
|
1099
|
-
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
1100
|
-
contents.errorInfo = deserializeAws_restJson1DataViewErrorInfo(data.errorInfo, context);
|
|
1101
|
-
}
|
|
1102
|
-
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1103
|
-
contents.lastModifiedTime = __expectLong(data.lastModifiedTime);
|
|
1104
|
-
}
|
|
1105
|
-
if (data.partitionColumns !== undefined && data.partitionColumns !== null) {
|
|
1106
|
-
contents.partitionColumns = deserializeAws_restJson1PartitionColumnList(data.partitionColumns, context);
|
|
1107
|
-
}
|
|
1108
|
-
if (data.sortColumns !== undefined && data.sortColumns !== null) {
|
|
1109
|
-
contents.sortColumns = deserializeAws_restJson1SortColumnList(data.sortColumns, context);
|
|
2345
|
+
if (data.dataViews !== undefined && data.dataViews !== null) {
|
|
2346
|
+
contents.dataViews = deserializeAws_restJson1DataViewList(data.dataViews, context);
|
|
1110
2347
|
}
|
|
1111
|
-
if (data.
|
|
1112
|
-
contents.
|
|
2348
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2349
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1113
2350
|
}
|
|
1114
2351
|
return [2, Promise.resolve(contents)];
|
|
1115
2352
|
}
|
|
1116
2353
|
});
|
|
1117
2354
|
}); };
|
|
1118
|
-
var
|
|
2355
|
+
var deserializeAws_restJson1ListDataViewsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1119
2356
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1120
2357
|
var _c;
|
|
1121
2358
|
return __generator(this, function (_d) {
|
|
@@ -1163,35 +2400,35 @@ var deserializeAws_restJson1GetDataViewCommandError = function (output, context)
|
|
|
1163
2400
|
}
|
|
1164
2401
|
});
|
|
1165
2402
|
}); };
|
|
1166
|
-
export var
|
|
2403
|
+
export var deserializeAws_restJson1ListPermissionGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1167
2404
|
var contents, data, _a, _b;
|
|
1168
2405
|
return __generator(this, function (_c) {
|
|
1169
2406
|
switch (_c.label) {
|
|
1170
2407
|
case 0:
|
|
1171
2408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1172
|
-
return [2,
|
|
2409
|
+
return [2, deserializeAws_restJson1ListPermissionGroupsCommandError(output, context)];
|
|
1173
2410
|
}
|
|
1174
2411
|
contents = {
|
|
1175
2412
|
$metadata: deserializeMetadata(output),
|
|
1176
|
-
|
|
1177
|
-
|
|
2413
|
+
nextToken: undefined,
|
|
2414
|
+
permissionGroups: undefined,
|
|
1178
2415
|
};
|
|
1179
2416
|
_a = __expectNonNull;
|
|
1180
2417
|
_b = __expectObject;
|
|
1181
2418
|
return [4, parseBody(output.body, context)];
|
|
1182
2419
|
case 1:
|
|
1183
2420
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1184
|
-
if (data.
|
|
1185
|
-
contents.
|
|
2421
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2422
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1186
2423
|
}
|
|
1187
|
-
if (data.
|
|
1188
|
-
contents.
|
|
2424
|
+
if (data.permissionGroups !== undefined && data.permissionGroups !== null) {
|
|
2425
|
+
contents.permissionGroups = deserializeAws_restJson1PermissionGroupList(data.permissionGroups, context);
|
|
1189
2426
|
}
|
|
1190
2427
|
return [2, Promise.resolve(contents)];
|
|
1191
2428
|
}
|
|
1192
2429
|
});
|
|
1193
2430
|
}); };
|
|
1194
|
-
var
|
|
2431
|
+
var deserializeAws_restJson1ListPermissionGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1195
2432
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1196
2433
|
var _c;
|
|
1197
2434
|
return __generator(this, function (_d) {
|
|
@@ -1235,39 +2472,35 @@ var deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = funct
|
|
|
1235
2472
|
}
|
|
1236
2473
|
});
|
|
1237
2474
|
}); };
|
|
1238
|
-
export var
|
|
2475
|
+
export var deserializeAws_restJson1ListUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1239
2476
|
var contents, data, _a, _b;
|
|
1240
2477
|
return __generator(this, function (_c) {
|
|
1241
2478
|
switch (_c.label) {
|
|
1242
2479
|
case 0:
|
|
1243
2480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1244
|
-
return [2,
|
|
2481
|
+
return [2, deserializeAws_restJson1ListUsersCommandError(output, context)];
|
|
1245
2482
|
}
|
|
1246
2483
|
contents = {
|
|
1247
2484
|
$metadata: deserializeMetadata(output),
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
s3Uri: undefined,
|
|
2485
|
+
nextToken: undefined,
|
|
2486
|
+
users: undefined,
|
|
1251
2487
|
};
|
|
1252
2488
|
_a = __expectNonNull;
|
|
1253
2489
|
_b = __expectObject;
|
|
1254
2490
|
return [4, parseBody(output.body, context)];
|
|
1255
2491
|
case 1:
|
|
1256
2492
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1257
|
-
if (data.
|
|
1258
|
-
contents.
|
|
1259
|
-
}
|
|
1260
|
-
if (data.s3Path !== undefined && data.s3Path !== null) {
|
|
1261
|
-
contents.s3Path = __expectString(data.s3Path);
|
|
2493
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2494
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1262
2495
|
}
|
|
1263
|
-
if (data.
|
|
1264
|
-
contents.
|
|
2496
|
+
if (data.users !== undefined && data.users !== null) {
|
|
2497
|
+
contents.users = deserializeAws_restJson1UserList(data.users, context);
|
|
1265
2498
|
}
|
|
1266
2499
|
return [2, Promise.resolve(contents)];
|
|
1267
2500
|
}
|
|
1268
2501
|
});
|
|
1269
2502
|
}); };
|
|
1270
|
-
var
|
|
2503
|
+
var deserializeAws_restJson1ListUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1271
2504
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1272
2505
|
var _c;
|
|
1273
2506
|
return __generator(this, function (_d) {
|
|
@@ -1311,35 +2544,35 @@ var deserializeAws_restJson1GetWorkingLocationCommandError = function (output, c
|
|
|
1311
2544
|
}
|
|
1312
2545
|
});
|
|
1313
2546
|
}); };
|
|
1314
|
-
export var
|
|
2547
|
+
export var deserializeAws_restJson1ResetUserPasswordCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1315
2548
|
var contents, data, _a, _b;
|
|
1316
2549
|
return __generator(this, function (_c) {
|
|
1317
2550
|
switch (_c.label) {
|
|
1318
2551
|
case 0:
|
|
1319
2552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1320
|
-
return [2,
|
|
2553
|
+
return [2, deserializeAws_restJson1ResetUserPasswordCommandError(output, context)];
|
|
1321
2554
|
}
|
|
1322
2555
|
contents = {
|
|
1323
2556
|
$metadata: deserializeMetadata(output),
|
|
1324
|
-
|
|
1325
|
-
|
|
2557
|
+
temporaryPassword: undefined,
|
|
2558
|
+
userId: undefined,
|
|
1326
2559
|
};
|
|
1327
2560
|
_a = __expectNonNull;
|
|
1328
2561
|
_b = __expectObject;
|
|
1329
2562
|
return [4, parseBody(output.body, context)];
|
|
1330
2563
|
case 1:
|
|
1331
2564
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1332
|
-
if (data.
|
|
1333
|
-
contents.
|
|
2565
|
+
if (data.temporaryPassword !== undefined && data.temporaryPassword !== null) {
|
|
2566
|
+
contents.temporaryPassword = __expectString(data.temporaryPassword);
|
|
1334
2567
|
}
|
|
1335
|
-
if (data.
|
|
1336
|
-
contents.
|
|
2568
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
2569
|
+
contents.userId = __expectString(data.userId);
|
|
1337
2570
|
}
|
|
1338
2571
|
return [2, Promise.resolve(contents)];
|
|
1339
2572
|
}
|
|
1340
2573
|
});
|
|
1341
2574
|
}); };
|
|
1342
|
-
var
|
|
2575
|
+
var deserializeAws_restJson1ResetUserPasswordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1343
2576
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1344
2577
|
var _c;
|
|
1345
2578
|
return __generator(this, function (_d) {
|
|
@@ -1391,35 +2624,35 @@ var deserializeAws_restJson1ListChangesetsCommandError = function (output, conte
|
|
|
1391
2624
|
}
|
|
1392
2625
|
});
|
|
1393
2626
|
}); };
|
|
1394
|
-
export var
|
|
2627
|
+
export var deserializeAws_restJson1UpdateChangesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1395
2628
|
var contents, data, _a, _b;
|
|
1396
2629
|
return __generator(this, function (_c) {
|
|
1397
2630
|
switch (_c.label) {
|
|
1398
2631
|
case 0:
|
|
1399
2632
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
-
return [2,
|
|
2633
|
+
return [2, deserializeAws_restJson1UpdateChangesetCommandError(output, context)];
|
|
1401
2634
|
}
|
|
1402
2635
|
contents = {
|
|
1403
2636
|
$metadata: deserializeMetadata(output),
|
|
1404
|
-
|
|
1405
|
-
|
|
2637
|
+
changesetId: undefined,
|
|
2638
|
+
datasetId: undefined,
|
|
1406
2639
|
};
|
|
1407
2640
|
_a = __expectNonNull;
|
|
1408
2641
|
_b = __expectObject;
|
|
1409
2642
|
return [4, parseBody(output.body, context)];
|
|
1410
2643
|
case 1:
|
|
1411
2644
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1412
|
-
if (data.
|
|
1413
|
-
contents.
|
|
2645
|
+
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
2646
|
+
contents.changesetId = __expectString(data.changesetId);
|
|
1414
2647
|
}
|
|
1415
|
-
if (data.
|
|
1416
|
-
contents.
|
|
2648
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
2649
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
1417
2650
|
}
|
|
1418
2651
|
return [2, Promise.resolve(contents)];
|
|
1419
2652
|
}
|
|
1420
2653
|
});
|
|
1421
2654
|
}); };
|
|
1422
|
-
var
|
|
2655
|
+
var deserializeAws_restJson1UpdateChangesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1423
2656
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1424
2657
|
var _c;
|
|
1425
2658
|
return __generator(this, function (_d) {
|
|
@@ -1434,29 +2667,33 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
1434
2667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1435
2668
|
_b = errorCode;
|
|
1436
2669
|
switch (_b) {
|
|
1437
|
-
case "
|
|
1438
|
-
case "com.amazonaws.finspacedata#
|
|
1439
|
-
case "
|
|
1440
|
-
case "com.amazonaws.finspacedata#
|
|
1441
|
-
case "
|
|
1442
|
-
case "com.amazonaws.finspacedata#
|
|
1443
|
-
case "
|
|
1444
|
-
case "com.amazonaws.finspacedata#
|
|
1445
|
-
case "
|
|
1446
|
-
case "com.amazonaws.finspacedata#
|
|
2670
|
+
case "AccessDeniedException": return [3, 2];
|
|
2671
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
2672
|
+
case "ConflictException": return [3, 4];
|
|
2673
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
2674
|
+
case "InternalServerException": return [3, 6];
|
|
2675
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
2676
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2677
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
2678
|
+
case "ThrottlingException": return [3, 10];
|
|
2679
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
2680
|
+
case "ValidationException": return [3, 12];
|
|
2681
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1447
2682
|
}
|
|
1448
|
-
return [3,
|
|
1449
|
-
case 2: return [4,
|
|
2683
|
+
return [3, 14];
|
|
2684
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1450
2685
|
case 3: throw _d.sent();
|
|
1451
|
-
case 4: return [4,
|
|
2686
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1452
2687
|
case 5: throw _d.sent();
|
|
1453
|
-
case 6: return [4,
|
|
2688
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1454
2689
|
case 7: throw _d.sent();
|
|
1455
|
-
case 8: return [4,
|
|
2690
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1456
2691
|
case 9: throw _d.sent();
|
|
1457
|
-
case 10: return [4,
|
|
2692
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1458
2693
|
case 11: throw _d.sent();
|
|
1459
|
-
case 12:
|
|
2694
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2695
|
+
case 13: throw _d.sent();
|
|
2696
|
+
case 14:
|
|
1460
2697
|
parsedBody = parsedOutput.body;
|
|
1461
2698
|
response = new __BaseException({
|
|
1462
2699
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -1467,35 +2704,31 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
1467
2704
|
}
|
|
1468
2705
|
});
|
|
1469
2706
|
}); };
|
|
1470
|
-
export var
|
|
2707
|
+
export var deserializeAws_restJson1UpdateDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1471
2708
|
var contents, data, _a, _b;
|
|
1472
2709
|
return __generator(this, function (_c) {
|
|
1473
2710
|
switch (_c.label) {
|
|
1474
2711
|
case 0:
|
|
1475
2712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1476
|
-
return [2,
|
|
2713
|
+
return [2, deserializeAws_restJson1UpdateDatasetCommandError(output, context)];
|
|
1477
2714
|
}
|
|
1478
2715
|
contents = {
|
|
1479
2716
|
$metadata: deserializeMetadata(output),
|
|
1480
|
-
|
|
1481
|
-
nextToken: undefined,
|
|
2717
|
+
datasetId: undefined,
|
|
1482
2718
|
};
|
|
1483
2719
|
_a = __expectNonNull;
|
|
1484
2720
|
_b = __expectObject;
|
|
1485
2721
|
return [4, parseBody(output.body, context)];
|
|
1486
2722
|
case 1:
|
|
1487
2723
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1488
|
-
if (data.
|
|
1489
|
-
contents.
|
|
1490
|
-
}
|
|
1491
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1492
|
-
contents.nextToken = __expectString(data.nextToken);
|
|
2724
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
2725
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
1493
2726
|
}
|
|
1494
2727
|
return [2, Promise.resolve(contents)];
|
|
1495
2728
|
}
|
|
1496
2729
|
});
|
|
1497
2730
|
}); };
|
|
1498
|
-
var
|
|
2731
|
+
var deserializeAws_restJson1UpdateDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1499
2732
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1500
2733
|
var _c;
|
|
1501
2734
|
return __generator(this, function (_d) {
|
|
@@ -1510,29 +2743,33 @@ var deserializeAws_restJson1ListDataViewsCommandError = function (output, contex
|
|
|
1510
2743
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
2744
|
_b = errorCode;
|
|
1512
2745
|
switch (_b) {
|
|
1513
|
-
case "
|
|
1514
|
-
case "com.amazonaws.finspacedata#
|
|
1515
|
-
case "
|
|
1516
|
-
case "com.amazonaws.finspacedata#
|
|
1517
|
-
case "
|
|
1518
|
-
case "com.amazonaws.finspacedata#
|
|
1519
|
-
case "
|
|
1520
|
-
case "com.amazonaws.finspacedata#
|
|
1521
|
-
case "
|
|
1522
|
-
case "com.amazonaws.finspacedata#
|
|
2746
|
+
case "AccessDeniedException": return [3, 2];
|
|
2747
|
+
case "com.amazonaws.finspacedata#AccessDeniedException": return [3, 2];
|
|
2748
|
+
case "ConflictException": return [3, 4];
|
|
2749
|
+
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
2750
|
+
case "InternalServerException": return [3, 6];
|
|
2751
|
+
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
2752
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2753
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException": return [3, 8];
|
|
2754
|
+
case "ThrottlingException": return [3, 10];
|
|
2755
|
+
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
2756
|
+
case "ValidationException": return [3, 12];
|
|
2757
|
+
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1523
2758
|
}
|
|
1524
|
-
return [3,
|
|
1525
|
-
case 2: return [4,
|
|
2759
|
+
return [3, 14];
|
|
2760
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1526
2761
|
case 3: throw _d.sent();
|
|
1527
|
-
case 4: return [4,
|
|
2762
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1528
2763
|
case 5: throw _d.sent();
|
|
1529
|
-
case 6: return [4,
|
|
2764
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1530
2765
|
case 7: throw _d.sent();
|
|
1531
|
-
case 8: return [4,
|
|
2766
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1532
2767
|
case 9: throw _d.sent();
|
|
1533
|
-
case 10: return [4,
|
|
2768
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1534
2769
|
case 11: throw _d.sent();
|
|
1535
|
-
case 12:
|
|
2770
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2771
|
+
case 13: throw _d.sent();
|
|
2772
|
+
case 14:
|
|
1536
2773
|
parsedBody = parsedOutput.body;
|
|
1537
2774
|
response = new __BaseException({
|
|
1538
2775
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -1543,35 +2780,31 @@ var deserializeAws_restJson1ListDataViewsCommandError = function (output, contex
|
|
|
1543
2780
|
}
|
|
1544
2781
|
});
|
|
1545
2782
|
}); };
|
|
1546
|
-
export var
|
|
2783
|
+
export var deserializeAws_restJson1UpdatePermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1547
2784
|
var contents, data, _a, _b;
|
|
1548
2785
|
return __generator(this, function (_c) {
|
|
1549
2786
|
switch (_c.label) {
|
|
1550
2787
|
case 0:
|
|
1551
2788
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1552
|
-
return [2,
|
|
2789
|
+
return [2, deserializeAws_restJson1UpdatePermissionGroupCommandError(output, context)];
|
|
1553
2790
|
}
|
|
1554
2791
|
contents = {
|
|
1555
2792
|
$metadata: deserializeMetadata(output),
|
|
1556
|
-
|
|
1557
|
-
datasetId: undefined,
|
|
2793
|
+
permissionGroupId: undefined,
|
|
1558
2794
|
};
|
|
1559
2795
|
_a = __expectNonNull;
|
|
1560
2796
|
_b = __expectObject;
|
|
1561
2797
|
return [4, parseBody(output.body, context)];
|
|
1562
2798
|
case 1:
|
|
1563
2799
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1564
|
-
if (data.
|
|
1565
|
-
contents.
|
|
1566
|
-
}
|
|
1567
|
-
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1568
|
-
contents.datasetId = __expectString(data.datasetId);
|
|
2800
|
+
if (data.permissionGroupId !== undefined && data.permissionGroupId !== null) {
|
|
2801
|
+
contents.permissionGroupId = __expectString(data.permissionGroupId);
|
|
1569
2802
|
}
|
|
1570
2803
|
return [2, Promise.resolve(contents)];
|
|
1571
2804
|
}
|
|
1572
2805
|
});
|
|
1573
2806
|
}); };
|
|
1574
|
-
var
|
|
2807
|
+
var deserializeAws_restJson1UpdatePermissionGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1575
2808
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1576
2809
|
var _c;
|
|
1577
2810
|
return __generator(this, function (_d) {
|
|
@@ -1623,31 +2856,31 @@ var deserializeAws_restJson1UpdateChangesetCommandError = function (output, cont
|
|
|
1623
2856
|
}
|
|
1624
2857
|
});
|
|
1625
2858
|
}); };
|
|
1626
|
-
export var
|
|
2859
|
+
export var deserializeAws_restJson1UpdateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1627
2860
|
var contents, data, _a, _b;
|
|
1628
2861
|
return __generator(this, function (_c) {
|
|
1629
2862
|
switch (_c.label) {
|
|
1630
2863
|
case 0:
|
|
1631
2864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1632
|
-
return [2,
|
|
2865
|
+
return [2, deserializeAws_restJson1UpdateUserCommandError(output, context)];
|
|
1633
2866
|
}
|
|
1634
2867
|
contents = {
|
|
1635
2868
|
$metadata: deserializeMetadata(output),
|
|
1636
|
-
|
|
2869
|
+
userId: undefined,
|
|
1637
2870
|
};
|
|
1638
2871
|
_a = __expectNonNull;
|
|
1639
2872
|
_b = __expectObject;
|
|
1640
2873
|
return [4, parseBody(output.body, context)];
|
|
1641
2874
|
case 1:
|
|
1642
2875
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1643
|
-
if (data.
|
|
1644
|
-
contents.
|
|
2876
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
2877
|
+
contents.userId = __expectString(data.userId);
|
|
1645
2878
|
}
|
|
1646
2879
|
return [2, Promise.resolve(contents)];
|
|
1647
2880
|
}
|
|
1648
2881
|
});
|
|
1649
2882
|
}); };
|
|
1650
|
-
var
|
|
2883
|
+
var deserializeAws_restJson1UpdateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1651
2884
|
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1652
2885
|
var _c;
|
|
1653
2886
|
return __generator(this, function (_d) {
|
|
@@ -1719,6 +2952,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1719
2952
|
if (data.message !== undefined && data.message !== null) {
|
|
1720
2953
|
contents.message = __expectString(data.message);
|
|
1721
2954
|
}
|
|
2955
|
+
if (data.reason !== undefined && data.reason !== null) {
|
|
2956
|
+
contents.reason = __expectString(data.reason);
|
|
2957
|
+
}
|
|
1722
2958
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1723
2959
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1724
2960
|
});
|
|
@@ -1755,6 +2991,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1755
2991
|
if (data.message !== undefined && data.message !== null) {
|
|
1756
2992
|
contents.message = __expectString(data.message);
|
|
1757
2993
|
}
|
|
2994
|
+
if (data.reason !== undefined && data.reason !== null) {
|
|
2995
|
+
contents.reason = __expectString(data.reason);
|
|
2996
|
+
}
|
|
1758
2997
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1759
2998
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1760
2999
|
});
|
|
@@ -1776,10 +3015,23 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1776
3015
|
if (data.message !== undefined && data.message !== null) {
|
|
1777
3016
|
contents.message = __expectString(data.message);
|
|
1778
3017
|
}
|
|
3018
|
+
if (data.reason !== undefined && data.reason !== null) {
|
|
3019
|
+
contents.reason = __expectString(data.reason);
|
|
3020
|
+
}
|
|
1779
3021
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1780
3022
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1781
3023
|
});
|
|
1782
3024
|
}); };
|
|
3025
|
+
var serializeAws_restJson1ApplicationPermissionList = function (input, context) {
|
|
3026
|
+
return input
|
|
3027
|
+
.filter(function (e) { return e != null; })
|
|
3028
|
+
.map(function (entry) {
|
|
3029
|
+
if (entry === null) {
|
|
3030
|
+
return null;
|
|
3031
|
+
}
|
|
3032
|
+
return entry;
|
|
3033
|
+
});
|
|
3034
|
+
};
|
|
1783
3035
|
var serializeAws_restJson1ColumnDefinition = function (input, context) {
|
|
1784
3036
|
return __assign(__assign(__assign({}, (input.columnDescription !== undefined &&
|
|
1785
3037
|
input.columnDescription !== null && { columnDescription: input.columnDescription })), (input.columnName !== undefined && input.columnName !== null && { columnName: input.columnName })), (input.dataType !== undefined && input.dataType !== null && { dataType: input.dataType }));
|
|
@@ -1900,6 +3152,17 @@ var serializeAws_restJson1SourceParams = function (input, context) {
|
|
|
1900
3152
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
1901
3153
|
}, {});
|
|
1902
3154
|
};
|
|
3155
|
+
var deserializeAws_restJson1ApplicationPermissionList = function (output, context) {
|
|
3156
|
+
var retVal = (output || [])
|
|
3157
|
+
.filter(function (e) { return e != null; })
|
|
3158
|
+
.map(function (entry) {
|
|
3159
|
+
if (entry === null) {
|
|
3160
|
+
return null;
|
|
3161
|
+
}
|
|
3162
|
+
return __expectString(entry);
|
|
3163
|
+
});
|
|
3164
|
+
return retVal;
|
|
3165
|
+
};
|
|
1903
3166
|
var deserializeAws_restJson1ChangesetErrorInfo = function (output, context) {
|
|
1904
3167
|
return {
|
|
1905
3168
|
errorCategory: __expectString(output.errorCategory),
|
|
@@ -2083,6 +3346,29 @@ var deserializeAws_restJson1PartitionColumnList = function (output, context) {
|
|
|
2083
3346
|
});
|
|
2084
3347
|
return retVal;
|
|
2085
3348
|
};
|
|
3349
|
+
var deserializeAws_restJson1PermissionGroup = function (output, context) {
|
|
3350
|
+
return {
|
|
3351
|
+
applicationPermissions: output.applicationPermissions !== undefined && output.applicationPermissions !== null
|
|
3352
|
+
? deserializeAws_restJson1ApplicationPermissionList(output.applicationPermissions, context)
|
|
3353
|
+
: undefined,
|
|
3354
|
+
createTime: __expectLong(output.createTime),
|
|
3355
|
+
description: __expectString(output.description),
|
|
3356
|
+
lastModifiedTime: __expectLong(output.lastModifiedTime),
|
|
3357
|
+
name: __expectString(output.name),
|
|
3358
|
+
permissionGroupId: __expectString(output.permissionGroupId),
|
|
3359
|
+
};
|
|
3360
|
+
};
|
|
3361
|
+
var deserializeAws_restJson1PermissionGroupList = function (output, context) {
|
|
3362
|
+
var retVal = (output || [])
|
|
3363
|
+
.filter(function (e) { return e != null; })
|
|
3364
|
+
.map(function (entry) {
|
|
3365
|
+
if (entry === null) {
|
|
3366
|
+
return null;
|
|
3367
|
+
}
|
|
3368
|
+
return deserializeAws_restJson1PermissionGroup(entry, context);
|
|
3369
|
+
});
|
|
3370
|
+
return retVal;
|
|
3371
|
+
};
|
|
2086
3372
|
var deserializeAws_restJson1S3DestinationFormatOptions = function (output, context) {
|
|
2087
3373
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
2088
3374
|
var _b;
|
|
@@ -2131,6 +3417,34 @@ var deserializeAws_restJson1SourceParams = function (output, context) {
|
|
|
2131
3417
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2132
3418
|
}, {});
|
|
2133
3419
|
};
|
|
3420
|
+
var deserializeAws_restJson1User = function (output, context) {
|
|
3421
|
+
return {
|
|
3422
|
+
apiAccess: __expectString(output.apiAccess),
|
|
3423
|
+
apiAccessPrincipalArn: __expectString(output.apiAccessPrincipalArn),
|
|
3424
|
+
createTime: __expectLong(output.createTime),
|
|
3425
|
+
emailAddress: __expectString(output.emailAddress),
|
|
3426
|
+
firstName: __expectString(output.firstName),
|
|
3427
|
+
lastDisabledTime: __expectLong(output.lastDisabledTime),
|
|
3428
|
+
lastEnabledTime: __expectLong(output.lastEnabledTime),
|
|
3429
|
+
lastLoginTime: __expectLong(output.lastLoginTime),
|
|
3430
|
+
lastModifiedTime: __expectLong(output.lastModifiedTime),
|
|
3431
|
+
lastName: __expectString(output.lastName),
|
|
3432
|
+
status: __expectString(output.status),
|
|
3433
|
+
type: __expectString(output.type),
|
|
3434
|
+
userId: __expectString(output.userId),
|
|
3435
|
+
};
|
|
3436
|
+
};
|
|
3437
|
+
var deserializeAws_restJson1UserList = function (output, context) {
|
|
3438
|
+
var retVal = (output || [])
|
|
3439
|
+
.filter(function (e) { return e != null; })
|
|
3440
|
+
.map(function (entry) {
|
|
3441
|
+
if (entry === null) {
|
|
3442
|
+
return null;
|
|
3443
|
+
}
|
|
3444
|
+
return deserializeAws_restJson1User(entry, context);
|
|
3445
|
+
});
|
|
3446
|
+
return retVal;
|
|
3447
|
+
};
|
|
2134
3448
|
var deserializeMetadata = function (output) {
|
|
2135
3449
|
var _a;
|
|
2136
3450
|
return ({
|