@aws-sdk/client-finspace-data 3.52.0 → 3.54.1
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 +30 -0
- package/dist-cjs/FinspaceData.js +165 -0
- package/dist-cjs/commands/CreatePermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/CreateUserCommand.js +36 -0
- 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/GetUserCommand.js +36 -0
- 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/UpdatePermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/UpdateUserCommand.js +36 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/FinspaceDataServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +294 -1
- 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 +1302 -752
- package/dist-es/FinspaceData.js +165 -0
- 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/index.js +1 -0
- package/dist-es/models/FinspaceDataServiceException.js +12 -0
- package/dist-es/models/models_0.js +218 -5
- 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 +1953 -1005
- 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/index.d.ts +1 -0
- package/dist-types/models/FinspaceDataServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +916 -141
- 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 +1 -1
- 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/index.d.ts +1 -0
- package/dist-types/ts3.4/models/FinspaceDataServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +370 -28
- 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 +1 -1
- package/package.json +27 -27
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
+
import { FinspaceDataServiceException as __BaseException } from "../models/FinspaceDataServiceException";
|
|
6
|
+
import { AccessDeniedException, ConflictException, InternalServerException, LimitExceededException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
7
|
export var serializeAws_restJson1CreateChangesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
8
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
7
9
|
var _c;
|
|
@@ -114,6 +116,60 @@ export var serializeAws_restJson1CreateDataViewCommand = function (input, contex
|
|
|
114
116
|
}
|
|
115
117
|
});
|
|
116
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 = "" + ((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 = "" + ((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
|
+
}); };
|
|
117
173
|
export var serializeAws_restJson1DeleteDatasetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
174
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
119
175
|
return __generator(this, function (_c) {
|
|
@@ -147,6 +203,113 @@ export var serializeAws_restJson1DeleteDatasetCommand = function (input, context
|
|
|
147
203
|
}
|
|
148
204
|
});
|
|
149
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 = "" + ((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 = "" + ((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 = "" + ((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
|
+
}); };
|
|
150
313
|
export var serializeAws_restJson1GetChangesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
314
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
152
315
|
return __generator(this, function (_c) {
|
|
@@ -285,6 +448,37 @@ export var serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = funct
|
|
|
285
448
|
}
|
|
286
449
|
});
|
|
287
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 = "" + ((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
|
+
}); };
|
|
288
482
|
export var serializeAws_restJson1GetWorkingLocationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
289
483
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
290
484
|
return __generator(this, function (_c) {
|
|
@@ -398,6 +592,89 @@ export var serializeAws_restJson1ListDataViewsCommand = function (input, context
|
|
|
398
592
|
}
|
|
399
593
|
});
|
|
400
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 = "" + ((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 = "" + ((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 = "" + ((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
|
+
}); };
|
|
401
678
|
export var serializeAws_restJson1UpdateChangesetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
402
679
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
403
680
|
var _c;
|
|
@@ -485,45 +762,119 @@ export var serializeAws_restJson1UpdateDatasetCommand = function (input, context
|
|
|
485
762
|
}
|
|
486
763
|
});
|
|
487
764
|
}); };
|
|
488
|
-
export var
|
|
489
|
-
var
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
return [2, deserializeAws_restJson1CreateChangesetCommandError(output, context)];
|
|
495
|
-
}
|
|
496
|
-
contents = {
|
|
497
|
-
$metadata: deserializeMetadata(output),
|
|
498
|
-
changesetId: undefined,
|
|
499
|
-
datasetId: undefined,
|
|
500
|
-
};
|
|
501
|
-
_a = __expectNonNull;
|
|
502
|
-
_b = __expectObject;
|
|
503
|
-
return [4, parseBody(output.body, context)];
|
|
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;
|
|
767
|
+
var _c;
|
|
768
|
+
return __generator(this, function (_d) {
|
|
769
|
+
switch (_d.label) {
|
|
770
|
+
case 0: return [4, context.endpoint()];
|
|
504
771
|
case 1:
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
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 = "" + ((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));
|
|
508
783
|
}
|
|
509
|
-
|
|
510
|
-
|
|
784
|
+
else {
|
|
785
|
+
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
511
786
|
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
})
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
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 = "" + ((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:
|
|
522
873
|
_a = [__assign({}, output)];
|
|
523
|
-
|
|
874
|
+
_c = {};
|
|
524
875
|
return [4, parseBody(output.body, context)];
|
|
525
876
|
case 1:
|
|
526
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
877
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
527
878
|
errorCode = "UnknownError";
|
|
528
879
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
880
|
_b = errorCode;
|
|
@@ -544,58 +895,28 @@ var deserializeAws_restJson1CreateChangesetCommandError = function (output, cont
|
|
|
544
895
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 14];
|
|
545
896
|
}
|
|
546
897
|
return [3, 16];
|
|
547
|
-
case 2:
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
case
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
case 4
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
case
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
case
|
|
560
|
-
|
|
561
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
562
|
-
case 7:
|
|
563
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
564
|
-
return [3, 17];
|
|
565
|
-
case 8:
|
|
566
|
-
_f = [{}];
|
|
567
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
568
|
-
case 9:
|
|
569
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
570
|
-
return [3, 17];
|
|
571
|
-
case 10:
|
|
572
|
-
_g = [{}];
|
|
573
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
574
|
-
case 11:
|
|
575
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
576
|
-
return [3, 17];
|
|
577
|
-
case 12:
|
|
578
|
-
_h = [{}];
|
|
579
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
580
|
-
case 13:
|
|
581
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
582
|
-
return [3, 17];
|
|
583
|
-
case 14:
|
|
584
|
-
_j = [{}];
|
|
585
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
586
|
-
case 15:
|
|
587
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
588
|
-
return [3, 17];
|
|
898
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
899
|
+
case 3: throw _d.sent();
|
|
900
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
901
|
+
case 5: throw _d.sent();
|
|
902
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
903
|
+
case 7: throw _d.sent();
|
|
904
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
905
|
+
case 9: throw _d.sent();
|
|
906
|
+
case 10: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
907
|
+
case 11: throw _d.sent();
|
|
908
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
909
|
+
case 13: throw _d.sent();
|
|
910
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
911
|
+
case 15: throw _d.sent();
|
|
589
912
|
case 16:
|
|
590
913
|
parsedBody = parsedOutput.body;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
response
|
|
597
|
-
delete response.Message;
|
|
598
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
914
|
+
response = new __BaseException({
|
|
915
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
916
|
+
$fault: "client",
|
|
917
|
+
$metadata: deserializeMetadata(output),
|
|
918
|
+
});
|
|
919
|
+
throw __decorateServiceException(response, parsedBody);
|
|
599
920
|
}
|
|
600
921
|
});
|
|
601
922
|
}); };
|
|
@@ -624,16 +945,16 @@ export var deserializeAws_restJson1CreateDatasetCommand = function (output, cont
|
|
|
624
945
|
});
|
|
625
946
|
}); };
|
|
626
947
|
var deserializeAws_restJson1CreateDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
627
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
628
|
-
var
|
|
629
|
-
return __generator(this, function (
|
|
630
|
-
switch (
|
|
948
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
949
|
+
var _c;
|
|
950
|
+
return __generator(this, function (_d) {
|
|
951
|
+
switch (_d.label) {
|
|
631
952
|
case 0:
|
|
632
953
|
_a = [__assign({}, output)];
|
|
633
|
-
|
|
954
|
+
_c = {};
|
|
634
955
|
return [4, parseBody(output.body, context)];
|
|
635
956
|
case 1:
|
|
636
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
957
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
637
958
|
errorCode = "UnknownError";
|
|
638
959
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
960
|
_b = errorCode;
|
|
@@ -654,58 +975,28 @@ var deserializeAws_restJson1CreateDatasetCommandError = function (output, contex
|
|
|
654
975
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 14];
|
|
655
976
|
}
|
|
656
977
|
return [3, 16];
|
|
657
|
-
case 2:
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
case
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
case 4
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
case
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
case
|
|
670
|
-
|
|
671
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
672
|
-
case 7:
|
|
673
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
674
|
-
return [3, 17];
|
|
675
|
-
case 8:
|
|
676
|
-
_f = [{}];
|
|
677
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
678
|
-
case 9:
|
|
679
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
680
|
-
return [3, 17];
|
|
681
|
-
case 10:
|
|
682
|
-
_g = [{}];
|
|
683
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
684
|
-
case 11:
|
|
685
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
686
|
-
return [3, 17];
|
|
687
|
-
case 12:
|
|
688
|
-
_h = [{}];
|
|
689
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
690
|
-
case 13:
|
|
691
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
692
|
-
return [3, 17];
|
|
693
|
-
case 14:
|
|
694
|
-
_j = [{}];
|
|
695
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
696
|
-
case 15:
|
|
697
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
698
|
-
return [3, 17];
|
|
978
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
979
|
+
case 3: throw _d.sent();
|
|
980
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
981
|
+
case 5: throw _d.sent();
|
|
982
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
983
|
+
case 7: throw _d.sent();
|
|
984
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
985
|
+
case 9: throw _d.sent();
|
|
986
|
+
case 10: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
987
|
+
case 11: throw _d.sent();
|
|
988
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
989
|
+
case 13: throw _d.sent();
|
|
990
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
991
|
+
case 15: throw _d.sent();
|
|
699
992
|
case 16:
|
|
700
993
|
parsedBody = parsedOutput.body;
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
response
|
|
707
|
-
delete response.Message;
|
|
708
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
994
|
+
response = new __BaseException({
|
|
995
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
996
|
+
$fault: "client",
|
|
997
|
+
$metadata: deserializeMetadata(output),
|
|
998
|
+
});
|
|
999
|
+
throw __decorateServiceException(response, parsedBody);
|
|
709
1000
|
}
|
|
710
1001
|
});
|
|
711
1002
|
}); };
|
|
@@ -738,16 +1029,16 @@ export var deserializeAws_restJson1CreateDataViewCommand = function (output, con
|
|
|
738
1029
|
});
|
|
739
1030
|
}); };
|
|
740
1031
|
var deserializeAws_restJson1CreateDataViewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
741
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
742
|
-
var
|
|
743
|
-
return __generator(this, function (
|
|
744
|
-
switch (
|
|
1032
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1033
|
+
var _c;
|
|
1034
|
+
return __generator(this, function (_d) {
|
|
1035
|
+
switch (_d.label) {
|
|
745
1036
|
case 0:
|
|
746
1037
|
_a = [__assign({}, output)];
|
|
747
|
-
|
|
1038
|
+
_c = {};
|
|
748
1039
|
return [4, parseBody(output.body, context)];
|
|
749
1040
|
case 1:
|
|
750
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1041
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
751
1042
|
errorCode = "UnknownError";
|
|
752
1043
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
1044
|
_b = errorCode;
|
|
@@ -766,90 +1057,64 @@ var deserializeAws_restJson1CreateDataViewCommandError = function (output, conte
|
|
|
766
1057
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
767
1058
|
}
|
|
768
1059
|
return [3, 14];
|
|
769
|
-
case 2:
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
case
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
case 4
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
case
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
case 6:
|
|
782
|
-
_e = [{}];
|
|
783
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
784
|
-
case 7:
|
|
785
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
786
|
-
return [3, 15];
|
|
787
|
-
case 8:
|
|
788
|
-
_f = [{}];
|
|
789
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
790
|
-
case 9:
|
|
791
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
792
|
-
return [3, 15];
|
|
793
|
-
case 10:
|
|
794
|
-
_g = [{}];
|
|
795
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
796
|
-
case 11:
|
|
797
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
798
|
-
return [3, 15];
|
|
799
|
-
case 12:
|
|
800
|
-
_h = [{}];
|
|
801
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
802
|
-
case 13:
|
|
803
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
804
|
-
return [3, 15];
|
|
1060
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1061
|
+
case 3: throw _d.sent();
|
|
1062
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1063
|
+
case 5: throw _d.sent();
|
|
1064
|
+
case 6: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1065
|
+
case 7: throw _d.sent();
|
|
1066
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1067
|
+
case 9: throw _d.sent();
|
|
1068
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1069
|
+
case 11: throw _d.sent();
|
|
1070
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1071
|
+
case 13: throw _d.sent();
|
|
805
1072
|
case 14:
|
|
806
1073
|
parsedBody = parsedOutput.body;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
response
|
|
813
|
-
delete response.Message;
|
|
814
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1074
|
+
response = new __BaseException({
|
|
1075
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1076
|
+
$fault: "client",
|
|
1077
|
+
$metadata: deserializeMetadata(output),
|
|
1078
|
+
});
|
|
1079
|
+
throw __decorateServiceException(response, parsedBody);
|
|
815
1080
|
}
|
|
816
1081
|
});
|
|
817
1082
|
}); };
|
|
818
|
-
export var
|
|
1083
|
+
export var deserializeAws_restJson1CreatePermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
819
1084
|
var contents, data, _a, _b;
|
|
820
1085
|
return __generator(this, function (_c) {
|
|
821
1086
|
switch (_c.label) {
|
|
822
1087
|
case 0:
|
|
823
1088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
|
-
return [2,
|
|
1089
|
+
return [2, deserializeAws_restJson1CreatePermissionGroupCommandError(output, context)];
|
|
825
1090
|
}
|
|
826
1091
|
contents = {
|
|
827
1092
|
$metadata: deserializeMetadata(output),
|
|
828
|
-
|
|
1093
|
+
permissionGroupId: undefined,
|
|
829
1094
|
};
|
|
830
1095
|
_a = __expectNonNull;
|
|
831
1096
|
_b = __expectObject;
|
|
832
1097
|
return [4, parseBody(output.body, context)];
|
|
833
1098
|
case 1:
|
|
834
1099
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
835
|
-
if (data.
|
|
836
|
-
contents.
|
|
1100
|
+
if (data.permissionGroupId !== undefined && data.permissionGroupId !== null) {
|
|
1101
|
+
contents.permissionGroupId = __expectString(data.permissionGroupId);
|
|
837
1102
|
}
|
|
838
1103
|
return [2, Promise.resolve(contents)];
|
|
839
1104
|
}
|
|
840
1105
|
});
|
|
841
1106
|
}); };
|
|
842
|
-
var
|
|
843
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
844
|
-
var
|
|
845
|
-
return __generator(this, function (
|
|
846
|
-
switch (
|
|
1107
|
+
var deserializeAws_restJson1CreatePermissionGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1108
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1109
|
+
var _c;
|
|
1110
|
+
return __generator(this, function (_d) {
|
|
1111
|
+
switch (_d.label) {
|
|
847
1112
|
case 0:
|
|
848
1113
|
_a = [__assign({}, output)];
|
|
849
|
-
|
|
1114
|
+
_c = {};
|
|
850
1115
|
return [4, parseBody(output.body, context)];
|
|
851
1116
|
case 1:
|
|
852
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1117
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
853
1118
|
errorCode = "UnknownError";
|
|
854
1119
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
1120
|
_b = errorCode;
|
|
@@ -862,152 +1127,70 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
862
1127
|
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
863
1128
|
case "LimitExceededException": return [3, 8];
|
|
864
1129
|
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
865
|
-
case "
|
|
866
|
-
case "com.amazonaws.finspacedata#
|
|
867
|
-
case "
|
|
868
|
-
case "com.amazonaws.finspacedata#
|
|
869
|
-
case "ValidationException": return [3, 14];
|
|
870
|
-
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];
|
|
871
1134
|
}
|
|
872
|
-
return [3,
|
|
873
|
-
case 2:
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
case
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
case 4
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
case
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
case 6:
|
|
886
|
-
_e = [{}];
|
|
887
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
888
|
-
case 7:
|
|
889
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
890
|
-
return [3, 17];
|
|
891
|
-
case 8:
|
|
892
|
-
_f = [{}];
|
|
893
|
-
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
894
|
-
case 9:
|
|
895
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
896
|
-
return [3, 17];
|
|
897
|
-
case 10:
|
|
898
|
-
_g = [{}];
|
|
899
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
900
|
-
case 11:
|
|
901
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
902
|
-
return [3, 17];
|
|
903
|
-
case 12:
|
|
904
|
-
_h = [{}];
|
|
905
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
906
|
-
case 13:
|
|
907
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
908
|
-
return [3, 17];
|
|
1135
|
+
return [3, 14];
|
|
1136
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1137
|
+
case 3: throw _d.sent();
|
|
1138
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1139
|
+
case 5: throw _d.sent();
|
|
1140
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1141
|
+
case 7: throw _d.sent();
|
|
1142
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1143
|
+
case 9: throw _d.sent();
|
|
1144
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1145
|
+
case 11: throw _d.sent();
|
|
1146
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1147
|
+
case 13: throw _d.sent();
|
|
909
1148
|
case 14:
|
|
910
|
-
_j = [{}];
|
|
911
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
912
|
-
case 15:
|
|
913
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
914
|
-
return [3, 17];
|
|
915
|
-
case 16:
|
|
916
1149
|
parsedBody = parsedOutput.body;
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
response
|
|
923
|
-
delete response.Message;
|
|
924
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1150
|
+
response = new __BaseException({
|
|
1151
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1152
|
+
$fault: "client",
|
|
1153
|
+
$metadata: deserializeMetadata(output),
|
|
1154
|
+
});
|
|
1155
|
+
throw __decorateServiceException(response, parsedBody);
|
|
925
1156
|
}
|
|
926
1157
|
});
|
|
927
1158
|
}); };
|
|
928
|
-
export var
|
|
1159
|
+
export var deserializeAws_restJson1CreateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
929
1160
|
var contents, data, _a, _b;
|
|
930
1161
|
return __generator(this, function (_c) {
|
|
931
1162
|
switch (_c.label) {
|
|
932
1163
|
case 0:
|
|
933
1164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
-
return [2,
|
|
1165
|
+
return [2, deserializeAws_restJson1CreateUserCommandError(output, context)];
|
|
935
1166
|
}
|
|
936
1167
|
contents = {
|
|
937
1168
|
$metadata: deserializeMetadata(output),
|
|
938
|
-
|
|
939
|
-
activeUntilTimestamp: undefined,
|
|
940
|
-
changeType: undefined,
|
|
941
|
-
changesetArn: undefined,
|
|
942
|
-
changesetId: undefined,
|
|
943
|
-
createTime: undefined,
|
|
944
|
-
datasetId: undefined,
|
|
945
|
-
errorInfo: undefined,
|
|
946
|
-
formatParams: undefined,
|
|
947
|
-
sourceParams: undefined,
|
|
948
|
-
status: undefined,
|
|
949
|
-
updatedByChangesetId: undefined,
|
|
950
|
-
updatesChangesetId: undefined,
|
|
1169
|
+
userId: undefined,
|
|
951
1170
|
};
|
|
952
1171
|
_a = __expectNonNull;
|
|
953
1172
|
_b = __expectObject;
|
|
954
1173
|
return [4, parseBody(output.body, context)];
|
|
955
1174
|
case 1:
|
|
956
1175
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
957
|
-
if (data.
|
|
958
|
-
contents.
|
|
959
|
-
}
|
|
960
|
-
if (data.activeUntilTimestamp !== undefined && data.activeUntilTimestamp !== null) {
|
|
961
|
-
contents.activeUntilTimestamp = __expectLong(data.activeUntilTimestamp);
|
|
962
|
-
}
|
|
963
|
-
if (data.changeType !== undefined && data.changeType !== null) {
|
|
964
|
-
contents.changeType = __expectString(data.changeType);
|
|
965
|
-
}
|
|
966
|
-
if (data.changesetArn !== undefined && data.changesetArn !== null) {
|
|
967
|
-
contents.changesetArn = __expectString(data.changesetArn);
|
|
968
|
-
}
|
|
969
|
-
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
970
|
-
contents.changesetId = __expectString(data.changesetId);
|
|
971
|
-
}
|
|
972
|
-
if (data.createTime !== undefined && data.createTime !== null) {
|
|
973
|
-
contents.createTime = __expectLong(data.createTime);
|
|
974
|
-
}
|
|
975
|
-
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
976
|
-
contents.datasetId = __expectString(data.datasetId);
|
|
977
|
-
}
|
|
978
|
-
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
979
|
-
contents.errorInfo = deserializeAws_restJson1ChangesetErrorInfo(data.errorInfo, context);
|
|
980
|
-
}
|
|
981
|
-
if (data.formatParams !== undefined && data.formatParams !== null) {
|
|
982
|
-
contents.formatParams = deserializeAws_restJson1FormatParams(data.formatParams, context);
|
|
983
|
-
}
|
|
984
|
-
if (data.sourceParams !== undefined && data.sourceParams !== null) {
|
|
985
|
-
contents.sourceParams = deserializeAws_restJson1SourceParams(data.sourceParams, context);
|
|
986
|
-
}
|
|
987
|
-
if (data.status !== undefined && data.status !== null) {
|
|
988
|
-
contents.status = __expectString(data.status);
|
|
989
|
-
}
|
|
990
|
-
if (data.updatedByChangesetId !== undefined && data.updatedByChangesetId !== null) {
|
|
991
|
-
contents.updatedByChangesetId = __expectString(data.updatedByChangesetId);
|
|
992
|
-
}
|
|
993
|
-
if (data.updatesChangesetId !== undefined && data.updatesChangesetId !== null) {
|
|
994
|
-
contents.updatesChangesetId = __expectString(data.updatesChangesetId);
|
|
1176
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
1177
|
+
contents.userId = __expectString(data.userId);
|
|
995
1178
|
}
|
|
996
1179
|
return [2, Promise.resolve(contents)];
|
|
997
1180
|
}
|
|
998
1181
|
});
|
|
999
1182
|
}); };
|
|
1000
|
-
var
|
|
1001
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1002
|
-
var
|
|
1003
|
-
return __generator(this, function (
|
|
1004
|
-
switch (
|
|
1183
|
+
var deserializeAws_restJson1CreateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1184
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1185
|
+
var _c;
|
|
1186
|
+
return __generator(this, function (_d) {
|
|
1187
|
+
switch (_d.label) {
|
|
1005
1188
|
case 0:
|
|
1006
1189
|
_a = [__assign({}, output)];
|
|
1007
|
-
|
|
1190
|
+
_c = {};
|
|
1008
1191
|
return [4, parseBody(output.body, context)];
|
|
1009
1192
|
case 1:
|
|
1010
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1193
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1011
1194
|
errorCode = "UnknownError";
|
|
1012
1195
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
1196
|
_b = errorCode;
|
|
@@ -1018,134 +1201,72 @@ var deserializeAws_restJson1GetChangesetCommandError = function (output, context
|
|
|
1018
1201
|
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1019
1202
|
case "InternalServerException": return [3, 6];
|
|
1020
1203
|
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1021
|
-
case "
|
|
1022
|
-
case "com.amazonaws.finspacedata#
|
|
1204
|
+
case "LimitExceededException": return [3, 8];
|
|
1205
|
+
case "com.amazonaws.finspacedata#LimitExceededException": return [3, 8];
|
|
1023
1206
|
case "ThrottlingException": return [3, 10];
|
|
1024
1207
|
case "com.amazonaws.finspacedata#ThrottlingException": return [3, 10];
|
|
1025
1208
|
case "ValidationException": return [3, 12];
|
|
1026
1209
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1027
1210
|
}
|
|
1028
1211
|
return [3, 14];
|
|
1029
|
-
case 2:
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
case
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
case 4
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
case
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
case 6:
|
|
1042
|
-
_e = [{}];
|
|
1043
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1044
|
-
case 7:
|
|
1045
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1046
|
-
return [3, 15];
|
|
1047
|
-
case 8:
|
|
1048
|
-
_f = [{}];
|
|
1049
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1050
|
-
case 9:
|
|
1051
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1052
|
-
return [3, 15];
|
|
1053
|
-
case 10:
|
|
1054
|
-
_g = [{}];
|
|
1055
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1056
|
-
case 11:
|
|
1057
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1058
|
-
return [3, 15];
|
|
1059
|
-
case 12:
|
|
1060
|
-
_h = [{}];
|
|
1061
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1062
|
-
case 13:
|
|
1063
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1064
|
-
return [3, 15];
|
|
1212
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1213
|
+
case 3: throw _d.sent();
|
|
1214
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1215
|
+
case 5: throw _d.sent();
|
|
1216
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1217
|
+
case 7: throw _d.sent();
|
|
1218
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1219
|
+
case 9: throw _d.sent();
|
|
1220
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1221
|
+
case 11: throw _d.sent();
|
|
1222
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1223
|
+
case 13: throw _d.sent();
|
|
1065
1224
|
case 14:
|
|
1066
1225
|
parsedBody = parsedOutput.body;
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
response
|
|
1073
|
-
delete response.Message;
|
|
1074
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1226
|
+
response = new __BaseException({
|
|
1227
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1228
|
+
$fault: "client",
|
|
1229
|
+
$metadata: deserializeMetadata(output),
|
|
1230
|
+
});
|
|
1231
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1075
1232
|
}
|
|
1076
1233
|
});
|
|
1077
1234
|
}); };
|
|
1078
|
-
export var
|
|
1235
|
+
export var deserializeAws_restJson1DeleteDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1079
1236
|
var contents, data, _a, _b;
|
|
1080
1237
|
return __generator(this, function (_c) {
|
|
1081
1238
|
switch (_c.label) {
|
|
1082
1239
|
case 0:
|
|
1083
1240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1084
|
-
return [2,
|
|
1241
|
+
return [2, deserializeAws_restJson1DeleteDatasetCommandError(output, context)];
|
|
1085
1242
|
}
|
|
1086
1243
|
contents = {
|
|
1087
1244
|
$metadata: deserializeMetadata(output),
|
|
1088
|
-
alias: undefined,
|
|
1089
|
-
createTime: undefined,
|
|
1090
|
-
datasetArn: undefined,
|
|
1091
|
-
datasetDescription: undefined,
|
|
1092
1245
|
datasetId: undefined,
|
|
1093
|
-
datasetTitle: undefined,
|
|
1094
|
-
kind: undefined,
|
|
1095
|
-
lastModifiedTime: undefined,
|
|
1096
|
-
schemaDefinition: undefined,
|
|
1097
|
-
status: undefined,
|
|
1098
1246
|
};
|
|
1099
1247
|
_a = __expectNonNull;
|
|
1100
1248
|
_b = __expectObject;
|
|
1101
1249
|
return [4, parseBody(output.body, context)];
|
|
1102
1250
|
case 1:
|
|
1103
1251
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1104
|
-
if (data.alias !== undefined && data.alias !== null) {
|
|
1105
|
-
contents.alias = __expectString(data.alias);
|
|
1106
|
-
}
|
|
1107
|
-
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1108
|
-
contents.createTime = __expectLong(data.createTime);
|
|
1109
|
-
}
|
|
1110
|
-
if (data.datasetArn !== undefined && data.datasetArn !== null) {
|
|
1111
|
-
contents.datasetArn = __expectString(data.datasetArn);
|
|
1112
|
-
}
|
|
1113
|
-
if (data.datasetDescription !== undefined && data.datasetDescription !== null) {
|
|
1114
|
-
contents.datasetDescription = __expectString(data.datasetDescription);
|
|
1115
|
-
}
|
|
1116
1252
|
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1117
1253
|
contents.datasetId = __expectString(data.datasetId);
|
|
1118
1254
|
}
|
|
1119
|
-
if (data.datasetTitle !== undefined && data.datasetTitle !== null) {
|
|
1120
|
-
contents.datasetTitle = __expectString(data.datasetTitle);
|
|
1121
|
-
}
|
|
1122
|
-
if (data.kind !== undefined && data.kind !== null) {
|
|
1123
|
-
contents.kind = __expectString(data.kind);
|
|
1124
|
-
}
|
|
1125
|
-
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1126
|
-
contents.lastModifiedTime = __expectLong(data.lastModifiedTime);
|
|
1127
|
-
}
|
|
1128
|
-
if (data.schemaDefinition !== undefined && data.schemaDefinition !== null) {
|
|
1129
|
-
contents.schemaDefinition = deserializeAws_restJson1SchemaUnion(data.schemaDefinition, context);
|
|
1130
|
-
}
|
|
1131
|
-
if (data.status !== undefined && data.status !== null) {
|
|
1132
|
-
contents.status = __expectString(data.status);
|
|
1133
|
-
}
|
|
1134
1255
|
return [2, Promise.resolve(contents)];
|
|
1135
1256
|
}
|
|
1136
1257
|
});
|
|
1137
1258
|
}); };
|
|
1138
|
-
var
|
|
1139
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1140
|
-
var
|
|
1141
|
-
return __generator(this, function (
|
|
1142
|
-
switch (
|
|
1259
|
+
var deserializeAws_restJson1DeleteDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1260
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1261
|
+
var _c;
|
|
1262
|
+
return __generator(this, function (_d) {
|
|
1263
|
+
switch (_d.label) {
|
|
1143
1264
|
case 0:
|
|
1144
1265
|
_a = [__assign({}, output)];
|
|
1145
|
-
|
|
1266
|
+
_c = {};
|
|
1146
1267
|
return [4, parseBody(output.body, context)];
|
|
1147
1268
|
case 1:
|
|
1148
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1269
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1149
1270
|
errorCode = "UnknownError";
|
|
1150
1271
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
1272
|
_b = errorCode;
|
|
@@ -1156,83 +1277,533 @@ var deserializeAws_restJson1GetDatasetCommandError = function (output, context)
|
|
|
1156
1277
|
case "com.amazonaws.finspacedata#ConflictException": return [3, 4];
|
|
1157
1278
|
case "InternalServerException": return [3, 6];
|
|
1158
1279
|
case "com.amazonaws.finspacedata#InternalServerException": return [3, 6];
|
|
1159
|
-
case "
|
|
1160
|
-
case "com.amazonaws.finspacedata#
|
|
1161
|
-
case "
|
|
1162
|
-
case "com.amazonaws.finspacedata#
|
|
1163
|
-
case "
|
|
1164
|
-
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];
|
|
1165
1288
|
}
|
|
1166
|
-
return [3,
|
|
1167
|
-
case 2:
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
case
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
case 4
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
case
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
case
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
case 7:
|
|
1183
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1184
|
-
return [3, 15];
|
|
1185
|
-
case 8:
|
|
1186
|
-
_f = [{}];
|
|
1187
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1188
|
-
case 9:
|
|
1189
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1190
|
-
return [3, 15];
|
|
1191
|
-
case 10:
|
|
1192
|
-
_g = [{}];
|
|
1193
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1194
|
-
case 11:
|
|
1195
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1196
|
-
return [3, 15];
|
|
1197
|
-
case 12:
|
|
1198
|
-
_h = [{}];
|
|
1199
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1200
|
-
case 13:
|
|
1201
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1202
|
-
return [3, 15];
|
|
1203
|
-
case 14:
|
|
1289
|
+
return [3, 16];
|
|
1290
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1291
|
+
case 3: throw _d.sent();
|
|
1292
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1293
|
+
case 5: throw _d.sent();
|
|
1294
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1295
|
+
case 7: throw _d.sent();
|
|
1296
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1297
|
+
case 9: throw _d.sent();
|
|
1298
|
+
case 10: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1299
|
+
case 11: throw _d.sent();
|
|
1300
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1301
|
+
case 13: throw _d.sent();
|
|
1302
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1303
|
+
case 15: throw _d.sent();
|
|
1304
|
+
case 16:
|
|
1204
1305
|
parsedBody = parsedOutput.body;
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
response
|
|
1211
|
-
delete response.Message;
|
|
1212
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1306
|
+
response = new __BaseException({
|
|
1307
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1308
|
+
$fault: "client",
|
|
1309
|
+
$metadata: deserializeMetadata(output),
|
|
1310
|
+
});
|
|
1311
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1213
1312
|
}
|
|
1214
1313
|
});
|
|
1215
1314
|
}); };
|
|
1216
|
-
export var
|
|
1315
|
+
export var deserializeAws_restJson1DeletePermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1217
1316
|
var contents, data, _a, _b;
|
|
1218
1317
|
return __generator(this, function (_c) {
|
|
1219
1318
|
switch (_c.label) {
|
|
1220
1319
|
case 0:
|
|
1221
1320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
|
-
return [2,
|
|
1321
|
+
return [2, deserializeAws_restJson1DeletePermissionGroupCommandError(output, context)];
|
|
1223
1322
|
}
|
|
1224
1323
|
contents = {
|
|
1225
1324
|
$metadata: deserializeMetadata(output),
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
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,
|
|
1236
1807
|
sortColumns: undefined,
|
|
1237
1808
|
status: undefined,
|
|
1238
1809
|
};
|
|
@@ -1241,57 +1812,557 @@ export var deserializeAws_restJson1GetDataViewCommand = function (output, contex
|
|
|
1241
1812
|
return [4, parseBody(output.body, context)];
|
|
1242
1813
|
case 1:
|
|
1243
1814
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1244
|
-
if (data.asOfTimestamp !== undefined && data.asOfTimestamp !== null) {
|
|
1245
|
-
contents.asOfTimestamp = __expectLong(data.asOfTimestamp);
|
|
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);
|
|
1246
2006
|
}
|
|
1247
|
-
if (data.
|
|
1248
|
-
contents.
|
|
2007
|
+
if (data.apiAccessPrincipalArn !== undefined && data.apiAccessPrincipalArn !== null) {
|
|
2008
|
+
contents.apiAccessPrincipalArn = __expectString(data.apiAccessPrincipalArn);
|
|
1249
2009
|
}
|
|
1250
2010
|
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1251
2011
|
contents.createTime = __expectLong(data.createTime);
|
|
1252
2012
|
}
|
|
1253
|
-
if (data.
|
|
1254
|
-
contents.
|
|
2013
|
+
if (data.emailAddress !== undefined && data.emailAddress !== null) {
|
|
2014
|
+
contents.emailAddress = __expectString(data.emailAddress);
|
|
1255
2015
|
}
|
|
1256
|
-
if (data.
|
|
1257
|
-
contents.
|
|
2016
|
+
if (data.firstName !== undefined && data.firstName !== null) {
|
|
2017
|
+
contents.firstName = __expectString(data.firstName);
|
|
1258
2018
|
}
|
|
1259
|
-
if (data.
|
|
1260
|
-
contents.
|
|
2019
|
+
if (data.lastDisabledTime !== undefined && data.lastDisabledTime !== null) {
|
|
2020
|
+
contents.lastDisabledTime = __expectLong(data.lastDisabledTime);
|
|
1261
2021
|
}
|
|
1262
|
-
if (data.
|
|
1263
|
-
contents.
|
|
2022
|
+
if (data.lastEnabledTime !== undefined && data.lastEnabledTime !== null) {
|
|
2023
|
+
contents.lastEnabledTime = __expectLong(data.lastEnabledTime);
|
|
1264
2024
|
}
|
|
1265
|
-
if (data.
|
|
1266
|
-
contents.
|
|
2025
|
+
if (data.lastLoginTime !== undefined && data.lastLoginTime !== null) {
|
|
2026
|
+
contents.lastLoginTime = __expectLong(data.lastLoginTime);
|
|
1267
2027
|
}
|
|
1268
2028
|
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1269
2029
|
contents.lastModifiedTime = __expectLong(data.lastModifiedTime);
|
|
1270
2030
|
}
|
|
1271
|
-
if (data.
|
|
1272
|
-
contents.
|
|
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)];
|
|
1273
2334
|
}
|
|
1274
|
-
|
|
1275
|
-
|
|
2335
|
+
contents = {
|
|
2336
|
+
$metadata: deserializeMetadata(output),
|
|
2337
|
+
dataViews: undefined,
|
|
2338
|
+
nextToken: undefined,
|
|
2339
|
+
};
|
|
2340
|
+
_a = __expectNonNull;
|
|
2341
|
+
_b = __expectObject;
|
|
2342
|
+
return [4, parseBody(output.body, context)];
|
|
2343
|
+
case 1:
|
|
2344
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2345
|
+
if (data.dataViews !== undefined && data.dataViews !== null) {
|
|
2346
|
+
contents.dataViews = deserializeAws_restJson1DataViewList(data.dataViews, context);
|
|
1276
2347
|
}
|
|
1277
|
-
if (data.
|
|
1278
|
-
contents.
|
|
2348
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2349
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1279
2350
|
}
|
|
1280
2351
|
return [2, Promise.resolve(contents)];
|
|
1281
2352
|
}
|
|
1282
2353
|
});
|
|
1283
2354
|
}); };
|
|
1284
|
-
var
|
|
1285
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1286
|
-
var
|
|
1287
|
-
return __generator(this, function (
|
|
1288
|
-
switch (
|
|
2355
|
+
var deserializeAws_restJson1ListDataViewsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2356
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2357
|
+
var _c;
|
|
2358
|
+
return __generator(this, function (_d) {
|
|
2359
|
+
switch (_d.label) {
|
|
1289
2360
|
case 0:
|
|
1290
2361
|
_a = [__assign({}, output)];
|
|
1291
|
-
|
|
2362
|
+
_c = {};
|
|
1292
2363
|
return [4, parseBody(output.body, context)];
|
|
1293
2364
|
case 1:
|
|
1294
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2365
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1295
2366
|
errorCode = "UnknownError";
|
|
1296
2367
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
2368
|
_b = errorCode;
|
|
@@ -1308,88 +2379,66 @@ var deserializeAws_restJson1GetDataViewCommandError = function (output, context)
|
|
|
1308
2379
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 10];
|
|
1309
2380
|
}
|
|
1310
2381
|
return [3, 12];
|
|
1311
|
-
case 2:
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
case
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
case 4
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
case
|
|
1321
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1322
|
-
return [3, 13];
|
|
1323
|
-
case 6:
|
|
1324
|
-
_e = [{}];
|
|
1325
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1326
|
-
case 7:
|
|
1327
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1328
|
-
return [3, 13];
|
|
1329
|
-
case 8:
|
|
1330
|
-
_f = [{}];
|
|
1331
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1332
|
-
case 9:
|
|
1333
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1334
|
-
return [3, 13];
|
|
1335
|
-
case 10:
|
|
1336
|
-
_g = [{}];
|
|
1337
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1338
|
-
case 11:
|
|
1339
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1340
|
-
return [3, 13];
|
|
2382
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2383
|
+
case 3: throw _d.sent();
|
|
2384
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2385
|
+
case 5: throw _d.sent();
|
|
2386
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2387
|
+
case 7: throw _d.sent();
|
|
2388
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2389
|
+
case 9: throw _d.sent();
|
|
2390
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2391
|
+
case 11: throw _d.sent();
|
|
1341
2392
|
case 12:
|
|
1342
2393
|
parsedBody = parsedOutput.body;
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
response
|
|
1349
|
-
delete response.Message;
|
|
1350
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2394
|
+
response = new __BaseException({
|
|
2395
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2396
|
+
$fault: "client",
|
|
2397
|
+
$metadata: deserializeMetadata(output),
|
|
2398
|
+
});
|
|
2399
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1351
2400
|
}
|
|
1352
2401
|
});
|
|
1353
2402
|
}); };
|
|
1354
|
-
export var
|
|
2403
|
+
export var deserializeAws_restJson1ListPermissionGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1355
2404
|
var contents, data, _a, _b;
|
|
1356
2405
|
return __generator(this, function (_c) {
|
|
1357
2406
|
switch (_c.label) {
|
|
1358
2407
|
case 0:
|
|
1359
2408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
|
-
return [2,
|
|
2409
|
+
return [2, deserializeAws_restJson1ListPermissionGroupsCommandError(output, context)];
|
|
1361
2410
|
}
|
|
1362
2411
|
contents = {
|
|
1363
2412
|
$metadata: deserializeMetadata(output),
|
|
1364
|
-
|
|
1365
|
-
|
|
2413
|
+
nextToken: undefined,
|
|
2414
|
+
permissionGroups: undefined,
|
|
1366
2415
|
};
|
|
1367
2416
|
_a = __expectNonNull;
|
|
1368
2417
|
_b = __expectObject;
|
|
1369
2418
|
return [4, parseBody(output.body, context)];
|
|
1370
2419
|
case 1:
|
|
1371
2420
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1372
|
-
if (data.
|
|
1373
|
-
contents.
|
|
2421
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2422
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1374
2423
|
}
|
|
1375
|
-
if (data.
|
|
1376
|
-
contents.
|
|
2424
|
+
if (data.permissionGroups !== undefined && data.permissionGroups !== null) {
|
|
2425
|
+
contents.permissionGroups = deserializeAws_restJson1PermissionGroupList(data.permissionGroups, context);
|
|
1377
2426
|
}
|
|
1378
2427
|
return [2, Promise.resolve(contents)];
|
|
1379
2428
|
}
|
|
1380
2429
|
});
|
|
1381
2430
|
}); };
|
|
1382
|
-
var
|
|
1383
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1384
|
-
var
|
|
1385
|
-
return __generator(this, function (
|
|
1386
|
-
switch (
|
|
2431
|
+
var deserializeAws_restJson1ListPermissionGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2432
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2433
|
+
var _c;
|
|
2434
|
+
return __generator(this, function (_d) {
|
|
2435
|
+
switch (_d.label) {
|
|
1387
2436
|
case 0:
|
|
1388
2437
|
_a = [__assign({}, output)];
|
|
1389
|
-
|
|
2438
|
+
_c = {};
|
|
1390
2439
|
return [4, parseBody(output.body, context)];
|
|
1391
2440
|
case 1:
|
|
1392
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2441
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1393
2442
|
errorCode = "UnknownError";
|
|
1394
2443
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
2444
|
_b = errorCode;
|
|
@@ -1404,86 +2453,64 @@ var deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = funct
|
|
|
1404
2453
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 8];
|
|
1405
2454
|
}
|
|
1406
2455
|
return [3, 10];
|
|
1407
|
-
case 2:
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
case
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
case 4
|
|
1414
|
-
|
|
1415
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1416
|
-
case 5:
|
|
1417
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1418
|
-
return [3, 11];
|
|
1419
|
-
case 6:
|
|
1420
|
-
_e = [{}];
|
|
1421
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1422
|
-
case 7:
|
|
1423
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1424
|
-
return [3, 11];
|
|
1425
|
-
case 8:
|
|
1426
|
-
_f = [{}];
|
|
1427
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1428
|
-
case 9:
|
|
1429
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1430
|
-
return [3, 11];
|
|
2456
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2457
|
+
case 3: throw _d.sent();
|
|
2458
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2459
|
+
case 5: throw _d.sent();
|
|
2460
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2461
|
+
case 7: throw _d.sent();
|
|
2462
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2463
|
+
case 9: throw _d.sent();
|
|
1431
2464
|
case 10:
|
|
1432
2465
|
parsedBody = parsedOutput.body;
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
response
|
|
1439
|
-
delete response.Message;
|
|
1440
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2466
|
+
response = new __BaseException({
|
|
2467
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2468
|
+
$fault: "client",
|
|
2469
|
+
$metadata: deserializeMetadata(output),
|
|
2470
|
+
});
|
|
2471
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1441
2472
|
}
|
|
1442
2473
|
});
|
|
1443
2474
|
}); };
|
|
1444
|
-
export var
|
|
2475
|
+
export var deserializeAws_restJson1ListUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1445
2476
|
var contents, data, _a, _b;
|
|
1446
2477
|
return __generator(this, function (_c) {
|
|
1447
2478
|
switch (_c.label) {
|
|
1448
2479
|
case 0:
|
|
1449
2480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
|
-
return [2,
|
|
2481
|
+
return [2, deserializeAws_restJson1ListUsersCommandError(output, context)];
|
|
1451
2482
|
}
|
|
1452
2483
|
contents = {
|
|
1453
2484
|
$metadata: deserializeMetadata(output),
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
s3Uri: undefined,
|
|
2485
|
+
nextToken: undefined,
|
|
2486
|
+
users: undefined,
|
|
1457
2487
|
};
|
|
1458
2488
|
_a = __expectNonNull;
|
|
1459
2489
|
_b = __expectObject;
|
|
1460
2490
|
return [4, parseBody(output.body, context)];
|
|
1461
2491
|
case 1:
|
|
1462
2492
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1463
|
-
if (data.
|
|
1464
|
-
contents.
|
|
1465
|
-
}
|
|
1466
|
-
if (data.s3Path !== undefined && data.s3Path !== null) {
|
|
1467
|
-
contents.s3Path = __expectString(data.s3Path);
|
|
2493
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2494
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1468
2495
|
}
|
|
1469
|
-
if (data.
|
|
1470
|
-
contents.
|
|
2496
|
+
if (data.users !== undefined && data.users !== null) {
|
|
2497
|
+
contents.users = deserializeAws_restJson1UserList(data.users, context);
|
|
1471
2498
|
}
|
|
1472
2499
|
return [2, Promise.resolve(contents)];
|
|
1473
2500
|
}
|
|
1474
2501
|
});
|
|
1475
2502
|
}); };
|
|
1476
|
-
var
|
|
1477
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1478
|
-
var
|
|
1479
|
-
return __generator(this, function (
|
|
1480
|
-
switch (
|
|
2503
|
+
var deserializeAws_restJson1ListUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2504
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2505
|
+
var _c;
|
|
2506
|
+
return __generator(this, function (_d) {
|
|
2507
|
+
switch (_d.label) {
|
|
1481
2508
|
case 0:
|
|
1482
2509
|
_a = [__assign({}, output)];
|
|
1483
|
-
|
|
2510
|
+
_c = {};
|
|
1484
2511
|
return [4, parseBody(output.body, context)];
|
|
1485
2512
|
case 1:
|
|
1486
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2513
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1487
2514
|
errorCode = "UnknownError";
|
|
1488
2515
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
2516
|
_b = errorCode;
|
|
@@ -1498,82 +2525,64 @@ var deserializeAws_restJson1GetWorkingLocationCommandError = function (output, c
|
|
|
1498
2525
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 8];
|
|
1499
2526
|
}
|
|
1500
2527
|
return [3, 10];
|
|
1501
|
-
case 2:
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
case
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
case 4
|
|
1508
|
-
|
|
1509
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1510
|
-
case 5:
|
|
1511
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1512
|
-
return [3, 11];
|
|
1513
|
-
case 6:
|
|
1514
|
-
_e = [{}];
|
|
1515
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1516
|
-
case 7:
|
|
1517
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1518
|
-
return [3, 11];
|
|
1519
|
-
case 8:
|
|
1520
|
-
_f = [{}];
|
|
1521
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1522
|
-
case 9:
|
|
1523
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1524
|
-
return [3, 11];
|
|
2528
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2529
|
+
case 3: throw _d.sent();
|
|
2530
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2531
|
+
case 5: throw _d.sent();
|
|
2532
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2533
|
+
case 7: throw _d.sent();
|
|
2534
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2535
|
+
case 9: throw _d.sent();
|
|
1525
2536
|
case 10:
|
|
1526
2537
|
parsedBody = parsedOutput.body;
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
response
|
|
1533
|
-
delete response.Message;
|
|
1534
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2538
|
+
response = new __BaseException({
|
|
2539
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2540
|
+
$fault: "client",
|
|
2541
|
+
$metadata: deserializeMetadata(output),
|
|
2542
|
+
});
|
|
2543
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1535
2544
|
}
|
|
1536
2545
|
});
|
|
1537
2546
|
}); };
|
|
1538
|
-
export var
|
|
2547
|
+
export var deserializeAws_restJson1ResetUserPasswordCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1539
2548
|
var contents, data, _a, _b;
|
|
1540
2549
|
return __generator(this, function (_c) {
|
|
1541
2550
|
switch (_c.label) {
|
|
1542
2551
|
case 0:
|
|
1543
2552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
|
-
return [2,
|
|
2553
|
+
return [2, deserializeAws_restJson1ResetUserPasswordCommandError(output, context)];
|
|
1545
2554
|
}
|
|
1546
2555
|
contents = {
|
|
1547
2556
|
$metadata: deserializeMetadata(output),
|
|
1548
|
-
|
|
1549
|
-
|
|
2557
|
+
temporaryPassword: undefined,
|
|
2558
|
+
userId: undefined,
|
|
1550
2559
|
};
|
|
1551
2560
|
_a = __expectNonNull;
|
|
1552
2561
|
_b = __expectObject;
|
|
1553
2562
|
return [4, parseBody(output.body, context)];
|
|
1554
2563
|
case 1:
|
|
1555
2564
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1556
|
-
if (data.
|
|
1557
|
-
contents.
|
|
2565
|
+
if (data.temporaryPassword !== undefined && data.temporaryPassword !== null) {
|
|
2566
|
+
contents.temporaryPassword = __expectString(data.temporaryPassword);
|
|
1558
2567
|
}
|
|
1559
|
-
if (data.
|
|
1560
|
-
contents.
|
|
2568
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
2569
|
+
contents.userId = __expectString(data.userId);
|
|
1561
2570
|
}
|
|
1562
2571
|
return [2, Promise.resolve(contents)];
|
|
1563
2572
|
}
|
|
1564
2573
|
});
|
|
1565
2574
|
}); };
|
|
1566
|
-
var
|
|
1567
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1568
|
-
var
|
|
1569
|
-
return __generator(this, function (
|
|
1570
|
-
switch (
|
|
2575
|
+
var deserializeAws_restJson1ResetUserPasswordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2576
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2577
|
+
var _c;
|
|
2578
|
+
return __generator(this, function (_d) {
|
|
2579
|
+
switch (_d.label) {
|
|
1571
2580
|
case 0:
|
|
1572
2581
|
_a = [__assign({}, output)];
|
|
1573
|
-
|
|
2582
|
+
_c = {};
|
|
1574
2583
|
return [4, parseBody(output.body, context)];
|
|
1575
2584
|
case 1:
|
|
1576
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2585
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1577
2586
|
errorCode = "UnknownError";
|
|
1578
2587
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
2588
|
_b = errorCode;
|
|
@@ -1592,290 +2601,220 @@ var deserializeAws_restJson1ListChangesetsCommandError = function (output, conte
|
|
|
1592
2601
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1593
2602
|
}
|
|
1594
2603
|
return [3, 14];
|
|
1595
|
-
case 2:
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
case
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
case 4
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
case
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
case 6:
|
|
1608
|
-
_e = [{}];
|
|
1609
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1610
|
-
case 7:
|
|
1611
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1612
|
-
return [3, 15];
|
|
1613
|
-
case 8:
|
|
1614
|
-
_f = [{}];
|
|
1615
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1616
|
-
case 9:
|
|
1617
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1618
|
-
return [3, 15];
|
|
1619
|
-
case 10:
|
|
1620
|
-
_g = [{}];
|
|
1621
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1622
|
-
case 11:
|
|
1623
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1624
|
-
return [3, 15];
|
|
1625
|
-
case 12:
|
|
1626
|
-
_h = [{}];
|
|
1627
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1628
|
-
case 13:
|
|
1629
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1630
|
-
return [3, 15];
|
|
2604
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2605
|
+
case 3: throw _d.sent();
|
|
2606
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2607
|
+
case 5: throw _d.sent();
|
|
2608
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2609
|
+
case 7: throw _d.sent();
|
|
2610
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2611
|
+
case 9: throw _d.sent();
|
|
2612
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2613
|
+
case 11: throw _d.sent();
|
|
2614
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2615
|
+
case 13: throw _d.sent();
|
|
1631
2616
|
case 14:
|
|
1632
2617
|
parsedBody = parsedOutput.body;
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
response
|
|
1639
|
-
delete response.Message;
|
|
1640
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2618
|
+
response = new __BaseException({
|
|
2619
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2620
|
+
$fault: "client",
|
|
2621
|
+
$metadata: deserializeMetadata(output),
|
|
2622
|
+
});
|
|
2623
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1641
2624
|
}
|
|
1642
2625
|
});
|
|
1643
2626
|
}); };
|
|
1644
|
-
export var
|
|
2627
|
+
export var deserializeAws_restJson1UpdateChangesetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1645
2628
|
var contents, data, _a, _b;
|
|
1646
2629
|
return __generator(this, function (_c) {
|
|
1647
2630
|
switch (_c.label) {
|
|
1648
2631
|
case 0:
|
|
1649
2632
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1650
|
-
return [2,
|
|
2633
|
+
return [2, deserializeAws_restJson1UpdateChangesetCommandError(output, context)];
|
|
1651
2634
|
}
|
|
1652
2635
|
contents = {
|
|
1653
2636
|
$metadata: deserializeMetadata(output),
|
|
1654
|
-
|
|
1655
|
-
|
|
2637
|
+
changesetId: undefined,
|
|
2638
|
+
datasetId: undefined,
|
|
1656
2639
|
};
|
|
1657
2640
|
_a = __expectNonNull;
|
|
1658
2641
|
_b = __expectObject;
|
|
1659
2642
|
return [4, parseBody(output.body, context)];
|
|
1660
2643
|
case 1:
|
|
1661
2644
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1662
|
-
if (data.
|
|
1663
|
-
contents.
|
|
2645
|
+
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
2646
|
+
contents.changesetId = __expectString(data.changesetId);
|
|
1664
2647
|
}
|
|
1665
|
-
if (data.
|
|
1666
|
-
contents.
|
|
2648
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
2649
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
1667
2650
|
}
|
|
1668
2651
|
return [2, Promise.resolve(contents)];
|
|
1669
2652
|
}
|
|
1670
2653
|
});
|
|
1671
2654
|
}); };
|
|
1672
|
-
var
|
|
1673
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1674
|
-
var
|
|
1675
|
-
return __generator(this, function (
|
|
1676
|
-
switch (
|
|
2655
|
+
var deserializeAws_restJson1UpdateChangesetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2656
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2657
|
+
var _c;
|
|
2658
|
+
return __generator(this, function (_d) {
|
|
2659
|
+
switch (_d.label) {
|
|
1677
2660
|
case 0:
|
|
1678
2661
|
_a = [__assign({}, output)];
|
|
1679
|
-
|
|
2662
|
+
_c = {};
|
|
1680
2663
|
return [4, parseBody(output.body, context)];
|
|
1681
2664
|
case 1:
|
|
1682
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2665
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1683
2666
|
errorCode = "UnknownError";
|
|
1684
2667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1685
2668
|
_b = errorCode;
|
|
1686
2669
|
switch (_b) {
|
|
1687
|
-
case "
|
|
1688
|
-
case "com.amazonaws.finspacedata#
|
|
1689
|
-
case "
|
|
1690
|
-
case "com.amazonaws.finspacedata#
|
|
1691
|
-
case "
|
|
1692
|
-
case "com.amazonaws.finspacedata#
|
|
1693
|
-
case "
|
|
1694
|
-
case "com.amazonaws.finspacedata#
|
|
1695
|
-
case "
|
|
1696
|
-
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];
|
|
1697
2682
|
}
|
|
1698
|
-
return [3,
|
|
1699
|
-
case 2:
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
case
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
case 4
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
case
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
case
|
|
1712
|
-
_e = [{}];
|
|
1713
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1714
|
-
case 7:
|
|
1715
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1716
|
-
return [3, 13];
|
|
1717
|
-
case 8:
|
|
1718
|
-
_f = [{}];
|
|
1719
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1720
|
-
case 9:
|
|
1721
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1722
|
-
return [3, 13];
|
|
1723
|
-
case 10:
|
|
1724
|
-
_g = [{}];
|
|
1725
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1726
|
-
case 11:
|
|
1727
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1728
|
-
return [3, 13];
|
|
1729
|
-
case 12:
|
|
2683
|
+
return [3, 14];
|
|
2684
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2685
|
+
case 3: throw _d.sent();
|
|
2686
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2687
|
+
case 5: throw _d.sent();
|
|
2688
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2689
|
+
case 7: throw _d.sent();
|
|
2690
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2691
|
+
case 9: throw _d.sent();
|
|
2692
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2693
|
+
case 11: throw _d.sent();
|
|
2694
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2695
|
+
case 13: throw _d.sent();
|
|
2696
|
+
case 14:
|
|
1730
2697
|
parsedBody = parsedOutput.body;
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
response
|
|
1737
|
-
delete response.Message;
|
|
1738
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2698
|
+
response = new __BaseException({
|
|
2699
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2700
|
+
$fault: "client",
|
|
2701
|
+
$metadata: deserializeMetadata(output),
|
|
2702
|
+
});
|
|
2703
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1739
2704
|
}
|
|
1740
2705
|
});
|
|
1741
2706
|
}); };
|
|
1742
|
-
export var
|
|
2707
|
+
export var deserializeAws_restJson1UpdateDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1743
2708
|
var contents, data, _a, _b;
|
|
1744
2709
|
return __generator(this, function (_c) {
|
|
1745
2710
|
switch (_c.label) {
|
|
1746
2711
|
case 0:
|
|
1747
2712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1748
|
-
return [2,
|
|
2713
|
+
return [2, deserializeAws_restJson1UpdateDatasetCommandError(output, context)];
|
|
1749
2714
|
}
|
|
1750
2715
|
contents = {
|
|
1751
2716
|
$metadata: deserializeMetadata(output),
|
|
1752
|
-
|
|
1753
|
-
nextToken: undefined,
|
|
2717
|
+
datasetId: undefined,
|
|
1754
2718
|
};
|
|
1755
2719
|
_a = __expectNonNull;
|
|
1756
2720
|
_b = __expectObject;
|
|
1757
2721
|
return [4, parseBody(output.body, context)];
|
|
1758
2722
|
case 1:
|
|
1759
2723
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1760
|
-
if (data.
|
|
1761
|
-
contents.
|
|
1762
|
-
}
|
|
1763
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1764
|
-
contents.nextToken = __expectString(data.nextToken);
|
|
2724
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
2725
|
+
contents.datasetId = __expectString(data.datasetId);
|
|
1765
2726
|
}
|
|
1766
2727
|
return [2, Promise.resolve(contents)];
|
|
1767
2728
|
}
|
|
1768
2729
|
});
|
|
1769
2730
|
}); };
|
|
1770
|
-
var
|
|
1771
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1772
|
-
var
|
|
1773
|
-
return __generator(this, function (
|
|
1774
|
-
switch (
|
|
2731
|
+
var deserializeAws_restJson1UpdateDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2732
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2733
|
+
var _c;
|
|
2734
|
+
return __generator(this, function (_d) {
|
|
2735
|
+
switch (_d.label) {
|
|
1775
2736
|
case 0:
|
|
1776
2737
|
_a = [__assign({}, output)];
|
|
1777
|
-
|
|
2738
|
+
_c = {};
|
|
1778
2739
|
return [4, parseBody(output.body, context)];
|
|
1779
2740
|
case 1:
|
|
1780
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2741
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1781
2742
|
errorCode = "UnknownError";
|
|
1782
2743
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1783
2744
|
_b = errorCode;
|
|
1784
2745
|
switch (_b) {
|
|
1785
|
-
case "
|
|
1786
|
-
case "com.amazonaws.finspacedata#
|
|
1787
|
-
case "
|
|
1788
|
-
case "com.amazonaws.finspacedata#
|
|
1789
|
-
case "
|
|
1790
|
-
case "com.amazonaws.finspacedata#
|
|
1791
|
-
case "
|
|
1792
|
-
case "com.amazonaws.finspacedata#
|
|
1793
|
-
case "
|
|
1794
|
-
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];
|
|
1795
2758
|
}
|
|
1796
|
-
return [3,
|
|
1797
|
-
case 2:
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
case
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
case 4
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
case
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
case
|
|
1810
|
-
_e = [{}];
|
|
1811
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1812
|
-
case 7:
|
|
1813
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1814
|
-
return [3, 13];
|
|
1815
|
-
case 8:
|
|
1816
|
-
_f = [{}];
|
|
1817
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1818
|
-
case 9:
|
|
1819
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1820
|
-
return [3, 13];
|
|
1821
|
-
case 10:
|
|
1822
|
-
_g = [{}];
|
|
1823
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1824
|
-
case 11:
|
|
1825
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1826
|
-
return [3, 13];
|
|
1827
|
-
case 12:
|
|
2759
|
+
return [3, 14];
|
|
2760
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2761
|
+
case 3: throw _d.sent();
|
|
2762
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2763
|
+
case 5: throw _d.sent();
|
|
2764
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2765
|
+
case 7: throw _d.sent();
|
|
2766
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2767
|
+
case 9: throw _d.sent();
|
|
2768
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2769
|
+
case 11: throw _d.sent();
|
|
2770
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2771
|
+
case 13: throw _d.sent();
|
|
2772
|
+
case 14:
|
|
1828
2773
|
parsedBody = parsedOutput.body;
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
response
|
|
1835
|
-
delete response.Message;
|
|
1836
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2774
|
+
response = new __BaseException({
|
|
2775
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2776
|
+
$fault: "client",
|
|
2777
|
+
$metadata: deserializeMetadata(output),
|
|
2778
|
+
});
|
|
2779
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1837
2780
|
}
|
|
1838
2781
|
});
|
|
1839
2782
|
}); };
|
|
1840
|
-
export var
|
|
2783
|
+
export var deserializeAws_restJson1UpdatePermissionGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1841
2784
|
var contents, data, _a, _b;
|
|
1842
2785
|
return __generator(this, function (_c) {
|
|
1843
2786
|
switch (_c.label) {
|
|
1844
2787
|
case 0:
|
|
1845
2788
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
|
-
return [2,
|
|
2789
|
+
return [2, deserializeAws_restJson1UpdatePermissionGroupCommandError(output, context)];
|
|
1847
2790
|
}
|
|
1848
2791
|
contents = {
|
|
1849
2792
|
$metadata: deserializeMetadata(output),
|
|
1850
|
-
|
|
1851
|
-
datasetId: undefined,
|
|
2793
|
+
permissionGroupId: undefined,
|
|
1852
2794
|
};
|
|
1853
2795
|
_a = __expectNonNull;
|
|
1854
2796
|
_b = __expectObject;
|
|
1855
2797
|
return [4, parseBody(output.body, context)];
|
|
1856
2798
|
case 1:
|
|
1857
2799
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1858
|
-
if (data.
|
|
1859
|
-
contents.
|
|
1860
|
-
}
|
|
1861
|
-
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1862
|
-
contents.datasetId = __expectString(data.datasetId);
|
|
2800
|
+
if (data.permissionGroupId !== undefined && data.permissionGroupId !== null) {
|
|
2801
|
+
contents.permissionGroupId = __expectString(data.permissionGroupId);
|
|
1863
2802
|
}
|
|
1864
2803
|
return [2, Promise.resolve(contents)];
|
|
1865
2804
|
}
|
|
1866
2805
|
});
|
|
1867
2806
|
}); };
|
|
1868
|
-
var
|
|
1869
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1870
|
-
var
|
|
1871
|
-
return __generator(this, function (
|
|
1872
|
-
switch (
|
|
2807
|
+
var deserializeAws_restJson1UpdatePermissionGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2808
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2809
|
+
var _c;
|
|
2810
|
+
return __generator(this, function (_d) {
|
|
2811
|
+
switch (_d.label) {
|
|
1873
2812
|
case 0:
|
|
1874
2813
|
_a = [__assign({}, output)];
|
|
1875
|
-
|
|
2814
|
+
_c = {};
|
|
1876
2815
|
return [4, parseBody(output.body, context)];
|
|
1877
2816
|
case 1:
|
|
1878
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2817
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1879
2818
|
errorCode = "UnknownError";
|
|
1880
2819
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1881
2820
|
_b = errorCode;
|
|
@@ -1894,90 +2833,64 @@ var deserializeAws_restJson1UpdateChangesetCommandError = function (output, cont
|
|
|
1894
2833
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1895
2834
|
}
|
|
1896
2835
|
return [3, 14];
|
|
1897
|
-
case 2:
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
case
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
case 4
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
case
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
case 6:
|
|
1910
|
-
_e = [{}];
|
|
1911
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1912
|
-
case 7:
|
|
1913
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1914
|
-
return [3, 15];
|
|
1915
|
-
case 8:
|
|
1916
|
-
_f = [{}];
|
|
1917
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1918
|
-
case 9:
|
|
1919
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1920
|
-
return [3, 15];
|
|
1921
|
-
case 10:
|
|
1922
|
-
_g = [{}];
|
|
1923
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1924
|
-
case 11:
|
|
1925
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1926
|
-
return [3, 15];
|
|
1927
|
-
case 12:
|
|
1928
|
-
_h = [{}];
|
|
1929
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1930
|
-
case 13:
|
|
1931
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1932
|
-
return [3, 15];
|
|
2836
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2837
|
+
case 3: throw _d.sent();
|
|
2838
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2839
|
+
case 5: throw _d.sent();
|
|
2840
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2841
|
+
case 7: throw _d.sent();
|
|
2842
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2843
|
+
case 9: throw _d.sent();
|
|
2844
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2845
|
+
case 11: throw _d.sent();
|
|
2846
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2847
|
+
case 13: throw _d.sent();
|
|
1933
2848
|
case 14:
|
|
1934
2849
|
parsedBody = parsedOutput.body;
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
response
|
|
1941
|
-
delete response.Message;
|
|
1942
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2850
|
+
response = new __BaseException({
|
|
2851
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2852
|
+
$fault: "client",
|
|
2853
|
+
$metadata: deserializeMetadata(output),
|
|
2854
|
+
});
|
|
2855
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1943
2856
|
}
|
|
1944
2857
|
});
|
|
1945
2858
|
}); };
|
|
1946
|
-
export var
|
|
2859
|
+
export var deserializeAws_restJson1UpdateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1947
2860
|
var contents, data, _a, _b;
|
|
1948
2861
|
return __generator(this, function (_c) {
|
|
1949
2862
|
switch (_c.label) {
|
|
1950
2863
|
case 0:
|
|
1951
2864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1952
|
-
return [2,
|
|
2865
|
+
return [2, deserializeAws_restJson1UpdateUserCommandError(output, context)];
|
|
1953
2866
|
}
|
|
1954
2867
|
contents = {
|
|
1955
2868
|
$metadata: deserializeMetadata(output),
|
|
1956
|
-
|
|
2869
|
+
userId: undefined,
|
|
1957
2870
|
};
|
|
1958
2871
|
_a = __expectNonNull;
|
|
1959
2872
|
_b = __expectObject;
|
|
1960
2873
|
return [4, parseBody(output.body, context)];
|
|
1961
2874
|
case 1:
|
|
1962
2875
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1963
|
-
if (data.
|
|
1964
|
-
contents.
|
|
2876
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
2877
|
+
contents.userId = __expectString(data.userId);
|
|
1965
2878
|
}
|
|
1966
2879
|
return [2, Promise.resolve(contents)];
|
|
1967
2880
|
}
|
|
1968
2881
|
});
|
|
1969
2882
|
}); };
|
|
1970
|
-
var
|
|
1971
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1972
|
-
var
|
|
1973
|
-
return __generator(this, function (
|
|
1974
|
-
switch (
|
|
2883
|
+
var deserializeAws_restJson1UpdateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2884
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2885
|
+
var _c;
|
|
2886
|
+
return __generator(this, function (_d) {
|
|
2887
|
+
switch (_d.label) {
|
|
1975
2888
|
case 0:
|
|
1976
2889
|
_a = [__assign({}, output)];
|
|
1977
|
-
|
|
2890
|
+
_c = {};
|
|
1978
2891
|
return [4, parseBody(output.body, context)];
|
|
1979
2892
|
case 1:
|
|
1980
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2893
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1981
2894
|
errorCode = "UnknownError";
|
|
1982
2895
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1983
2896
|
_b = errorCode;
|
|
@@ -1996,163 +2909,129 @@ var deserializeAws_restJson1UpdateDatasetCommandError = function (output, contex
|
|
|
1996
2909
|
case "com.amazonaws.finspacedata#ValidationException": return [3, 12];
|
|
1997
2910
|
}
|
|
1998
2911
|
return [3, 14];
|
|
1999
|
-
case 2:
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
case
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
case 4
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
case
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
case 6:
|
|
2012
|
-
_e = [{}];
|
|
2013
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2014
|
-
case 7:
|
|
2015
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2016
|
-
return [3, 15];
|
|
2017
|
-
case 8:
|
|
2018
|
-
_f = [{}];
|
|
2019
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2020
|
-
case 9:
|
|
2021
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2022
|
-
return [3, 15];
|
|
2023
|
-
case 10:
|
|
2024
|
-
_g = [{}];
|
|
2025
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2026
|
-
case 11:
|
|
2027
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2028
|
-
return [3, 15];
|
|
2029
|
-
case 12:
|
|
2030
|
-
_h = [{}];
|
|
2031
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2032
|
-
case 13:
|
|
2033
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2034
|
-
return [3, 15];
|
|
2912
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2913
|
+
case 3: throw _d.sent();
|
|
2914
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2915
|
+
case 5: throw _d.sent();
|
|
2916
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2917
|
+
case 7: throw _d.sent();
|
|
2918
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2919
|
+
case 9: throw _d.sent();
|
|
2920
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2921
|
+
case 11: throw _d.sent();
|
|
2922
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2923
|
+
case 13: throw _d.sent();
|
|
2035
2924
|
case 14:
|
|
2036
2925
|
parsedBody = parsedOutput.body;
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
response
|
|
2043
|
-
delete response.Message;
|
|
2044
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2926
|
+
response = new __BaseException({
|
|
2927
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2928
|
+
$fault: "client",
|
|
2929
|
+
$metadata: deserializeMetadata(output),
|
|
2930
|
+
});
|
|
2931
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2045
2932
|
}
|
|
2046
2933
|
});
|
|
2047
2934
|
}); };
|
|
2048
2935
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2049
|
-
var contents, data;
|
|
2936
|
+
var contents, data, exception;
|
|
2050
2937
|
return __generator(this, function (_a) {
|
|
2051
|
-
contents = {
|
|
2052
|
-
name: "AccessDeniedException",
|
|
2053
|
-
$fault: "client",
|
|
2054
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2055
|
-
message: undefined,
|
|
2056
|
-
};
|
|
2938
|
+
contents = {};
|
|
2057
2939
|
data = parsedOutput.body;
|
|
2058
2940
|
if (data.message !== undefined && data.message !== null) {
|
|
2059
2941
|
contents.message = __expectString(data.message);
|
|
2060
2942
|
}
|
|
2061
|
-
|
|
2943
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2944
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2062
2945
|
});
|
|
2063
2946
|
}); };
|
|
2064
2947
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2065
|
-
var contents, data;
|
|
2948
|
+
var contents, data, exception;
|
|
2066
2949
|
return __generator(this, function (_a) {
|
|
2067
|
-
contents = {
|
|
2068
|
-
name: "ConflictException",
|
|
2069
|
-
$fault: "client",
|
|
2070
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2071
|
-
message: undefined,
|
|
2072
|
-
};
|
|
2950
|
+
contents = {};
|
|
2073
2951
|
data = parsedOutput.body;
|
|
2074
2952
|
if (data.message !== undefined && data.message !== null) {
|
|
2075
2953
|
contents.message = __expectString(data.message);
|
|
2076
2954
|
}
|
|
2077
|
-
|
|
2955
|
+
if (data.reason !== undefined && data.reason !== null) {
|
|
2956
|
+
contents.reason = __expectString(data.reason);
|
|
2957
|
+
}
|
|
2958
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2959
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2078
2960
|
});
|
|
2079
2961
|
}); };
|
|
2080
2962
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2081
|
-
var contents, data;
|
|
2963
|
+
var contents, data, exception;
|
|
2082
2964
|
return __generator(this, function (_a) {
|
|
2083
|
-
contents = {
|
|
2084
|
-
name: "InternalServerException",
|
|
2085
|
-
$fault: "server",
|
|
2086
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2087
|
-
message: undefined,
|
|
2088
|
-
};
|
|
2965
|
+
contents = {};
|
|
2089
2966
|
data = parsedOutput.body;
|
|
2090
2967
|
if (data.message !== undefined && data.message !== null) {
|
|
2091
2968
|
contents.message = __expectString(data.message);
|
|
2092
2969
|
}
|
|
2093
|
-
|
|
2970
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2971
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2094
2972
|
});
|
|
2095
2973
|
}); };
|
|
2096
2974
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2097
|
-
var contents, data;
|
|
2975
|
+
var contents, data, exception;
|
|
2098
2976
|
return __generator(this, function (_a) {
|
|
2099
|
-
contents = {
|
|
2100
|
-
name: "LimitExceededException",
|
|
2101
|
-
$fault: "client",
|
|
2102
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2103
|
-
message: undefined,
|
|
2104
|
-
};
|
|
2977
|
+
contents = {};
|
|
2105
2978
|
data = parsedOutput.body;
|
|
2106
2979
|
if (data.message !== undefined && data.message !== null) {
|
|
2107
2980
|
contents.message = __expectString(data.message);
|
|
2108
2981
|
}
|
|
2109
|
-
|
|
2982
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2983
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2110
2984
|
});
|
|
2111
2985
|
}); };
|
|
2112
2986
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2113
|
-
var contents, data;
|
|
2987
|
+
var contents, data, exception;
|
|
2114
2988
|
return __generator(this, function (_a) {
|
|
2115
|
-
contents = {
|
|
2116
|
-
name: "ResourceNotFoundException",
|
|
2117
|
-
$fault: "client",
|
|
2118
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2119
|
-
message: undefined,
|
|
2120
|
-
};
|
|
2989
|
+
contents = {};
|
|
2121
2990
|
data = parsedOutput.body;
|
|
2122
2991
|
if (data.message !== undefined && data.message !== null) {
|
|
2123
2992
|
contents.message = __expectString(data.message);
|
|
2124
2993
|
}
|
|
2125
|
-
|
|
2994
|
+
if (data.reason !== undefined && data.reason !== null) {
|
|
2995
|
+
contents.reason = __expectString(data.reason);
|
|
2996
|
+
}
|
|
2997
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2998
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2126
2999
|
});
|
|
2127
3000
|
}); };
|
|
2128
3001
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2129
|
-
var contents, data;
|
|
3002
|
+
var contents, data, exception;
|
|
2130
3003
|
return __generator(this, function (_a) {
|
|
2131
|
-
contents = {
|
|
2132
|
-
name: "ThrottlingException",
|
|
2133
|
-
$fault: "client",
|
|
2134
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2135
|
-
};
|
|
3004
|
+
contents = {};
|
|
2136
3005
|
data = parsedOutput.body;
|
|
2137
|
-
|
|
3006
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3007
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2138
3008
|
});
|
|
2139
3009
|
}); };
|
|
2140
3010
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2141
|
-
var contents, data;
|
|
3011
|
+
var contents, data, exception;
|
|
2142
3012
|
return __generator(this, function (_a) {
|
|
2143
|
-
contents = {
|
|
2144
|
-
name: "ValidationException",
|
|
2145
|
-
$fault: "client",
|
|
2146
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2147
|
-
message: undefined,
|
|
2148
|
-
};
|
|
3013
|
+
contents = {};
|
|
2149
3014
|
data = parsedOutput.body;
|
|
2150
3015
|
if (data.message !== undefined && data.message !== null) {
|
|
2151
3016
|
contents.message = __expectString(data.message);
|
|
2152
3017
|
}
|
|
2153
|
-
|
|
3018
|
+
if (data.reason !== undefined && data.reason !== null) {
|
|
3019
|
+
contents.reason = __expectString(data.reason);
|
|
3020
|
+
}
|
|
3021
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3022
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2154
3023
|
});
|
|
2155
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
|
+
};
|
|
2156
3035
|
var serializeAws_restJson1ColumnDefinition = function (input, context) {
|
|
2157
3036
|
return __assign(__assign(__assign({}, (input.columnDescription !== undefined &&
|
|
2158
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 }));
|
|
@@ -2273,6 +3152,17 @@ var serializeAws_restJson1SourceParams = function (input, context) {
|
|
|
2273
3152
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2274
3153
|
}, {});
|
|
2275
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
|
+
};
|
|
2276
3166
|
var deserializeAws_restJson1ChangesetErrorInfo = function (output, context) {
|
|
2277
3167
|
return {
|
|
2278
3168
|
errorCategory: __expectString(output.errorCategory),
|
|
@@ -2280,7 +3170,7 @@ var deserializeAws_restJson1ChangesetErrorInfo = function (output, context) {
|
|
|
2280
3170
|
};
|
|
2281
3171
|
};
|
|
2282
3172
|
var deserializeAws_restJson1ChangesetList = function (output, context) {
|
|
2283
|
-
|
|
3173
|
+
var retVal = (output || [])
|
|
2284
3174
|
.filter(function (e) { return e != null; })
|
|
2285
3175
|
.map(function (entry) {
|
|
2286
3176
|
if (entry === null) {
|
|
@@ -2288,6 +3178,7 @@ var deserializeAws_restJson1ChangesetList = function (output, context) {
|
|
|
2288
3178
|
}
|
|
2289
3179
|
return deserializeAws_restJson1ChangesetSummary(entry, context);
|
|
2290
3180
|
});
|
|
3181
|
+
return retVal;
|
|
2291
3182
|
};
|
|
2292
3183
|
var deserializeAws_restJson1ChangesetSummary = function (output, context) {
|
|
2293
3184
|
return {
|
|
@@ -2320,7 +3211,7 @@ var deserializeAws_restJson1ColumnDefinition = function (output, context) {
|
|
|
2320
3211
|
};
|
|
2321
3212
|
};
|
|
2322
3213
|
var deserializeAws_restJson1ColumnList = function (output, context) {
|
|
2323
|
-
|
|
3214
|
+
var retVal = (output || [])
|
|
2324
3215
|
.filter(function (e) { return e != null; })
|
|
2325
3216
|
.map(function (entry) {
|
|
2326
3217
|
if (entry === null) {
|
|
@@ -2328,9 +3219,10 @@ var deserializeAws_restJson1ColumnList = function (output, context) {
|
|
|
2328
3219
|
}
|
|
2329
3220
|
return deserializeAws_restJson1ColumnDefinition(entry, context);
|
|
2330
3221
|
});
|
|
3222
|
+
return retVal;
|
|
2331
3223
|
};
|
|
2332
3224
|
var deserializeAws_restJson1ColumnNameList = function (output, context) {
|
|
2333
|
-
|
|
3225
|
+
var retVal = (output || [])
|
|
2334
3226
|
.filter(function (e) { return e != null; })
|
|
2335
3227
|
.map(function (entry) {
|
|
2336
3228
|
if (entry === null) {
|
|
@@ -2338,6 +3230,7 @@ var deserializeAws_restJson1ColumnNameList = function (output, context) {
|
|
|
2338
3230
|
}
|
|
2339
3231
|
return __expectString(entry);
|
|
2340
3232
|
});
|
|
3233
|
+
return retVal;
|
|
2341
3234
|
};
|
|
2342
3235
|
var deserializeAws_restJson1Credentials = function (output, context) {
|
|
2343
3236
|
return {
|
|
@@ -2365,7 +3258,7 @@ var deserializeAws_restJson1Dataset = function (output, context) {
|
|
|
2365
3258
|
};
|
|
2366
3259
|
};
|
|
2367
3260
|
var deserializeAws_restJson1DatasetList = function (output, context) {
|
|
2368
|
-
|
|
3261
|
+
var retVal = (output || [])
|
|
2369
3262
|
.filter(function (e) { return e != null; })
|
|
2370
3263
|
.map(function (entry) {
|
|
2371
3264
|
if (entry === null) {
|
|
@@ -2373,6 +3266,7 @@ var deserializeAws_restJson1DatasetList = function (output, context) {
|
|
|
2373
3266
|
}
|
|
2374
3267
|
return deserializeAws_restJson1Dataset(entry, context);
|
|
2375
3268
|
});
|
|
3269
|
+
return retVal;
|
|
2376
3270
|
};
|
|
2377
3271
|
var deserializeAws_restJson1DatasetOwnerInfo = function (output, context) {
|
|
2378
3272
|
return {
|
|
@@ -2397,7 +3291,7 @@ var deserializeAws_restJson1DataViewErrorInfo = function (output, context) {
|
|
|
2397
3291
|
};
|
|
2398
3292
|
};
|
|
2399
3293
|
var deserializeAws_restJson1DataViewList = function (output, context) {
|
|
2400
|
-
|
|
3294
|
+
var retVal = (output || [])
|
|
2401
3295
|
.filter(function (e) { return e != null; })
|
|
2402
3296
|
.map(function (entry) {
|
|
2403
3297
|
if (entry === null) {
|
|
@@ -2405,6 +3299,7 @@ var deserializeAws_restJson1DataViewList = function (output, context) {
|
|
|
2405
3299
|
}
|
|
2406
3300
|
return deserializeAws_restJson1DataViewSummary(entry, context);
|
|
2407
3301
|
});
|
|
3302
|
+
return retVal;
|
|
2408
3303
|
};
|
|
2409
3304
|
var deserializeAws_restJson1DataViewSummary = function (output, context) {
|
|
2410
3305
|
return {
|
|
@@ -2441,7 +3336,7 @@ var deserializeAws_restJson1FormatParams = function (output, context) {
|
|
|
2441
3336
|
}, {});
|
|
2442
3337
|
};
|
|
2443
3338
|
var deserializeAws_restJson1PartitionColumnList = function (output, context) {
|
|
2444
|
-
|
|
3339
|
+
var retVal = (output || [])
|
|
2445
3340
|
.filter(function (e) { return e != null; })
|
|
2446
3341
|
.map(function (entry) {
|
|
2447
3342
|
if (entry === null) {
|
|
@@ -2449,6 +3344,30 @@ var deserializeAws_restJson1PartitionColumnList = function (output, context) {
|
|
|
2449
3344
|
}
|
|
2450
3345
|
return __expectString(entry);
|
|
2451
3346
|
});
|
|
3347
|
+
return retVal;
|
|
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;
|
|
2452
3371
|
};
|
|
2453
3372
|
var deserializeAws_restJson1S3DestinationFormatOptions = function (output, context) {
|
|
2454
3373
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -2478,7 +3397,7 @@ var deserializeAws_restJson1SchemaUnion = function (output, context) {
|
|
|
2478
3397
|
};
|
|
2479
3398
|
};
|
|
2480
3399
|
var deserializeAws_restJson1SortColumnList = function (output, context) {
|
|
2481
|
-
|
|
3400
|
+
var retVal = (output || [])
|
|
2482
3401
|
.filter(function (e) { return e != null; })
|
|
2483
3402
|
.map(function (entry) {
|
|
2484
3403
|
if (entry === null) {
|
|
@@ -2486,6 +3405,7 @@ var deserializeAws_restJson1SortColumnList = function (output, context) {
|
|
|
2486
3405
|
}
|
|
2487
3406
|
return __expectString(entry);
|
|
2488
3407
|
});
|
|
3408
|
+
return retVal;
|
|
2489
3409
|
};
|
|
2490
3410
|
var deserializeAws_restJson1SourceParams = function (output, context) {
|
|
2491
3411
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -2497,6 +3417,34 @@ var deserializeAws_restJson1SourceParams = function (output, context) {
|
|
|
2497
3417
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2498
3418
|
}, {});
|
|
2499
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
|
+
};
|
|
2500
3448
|
var deserializeMetadata = function (output) {
|
|
2501
3449
|
var _a;
|
|
2502
3450
|
return ({
|