@aws-sdk/client-finspace-data 3.53.0 → 3.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/FinspaceData.js +165 -0
- package/dist-cjs/FinspaceDataClient.js +13 -13
- package/dist-cjs/commands/CreateChangesetCommand.js +3 -3
- package/dist-cjs/commands/CreateDataViewCommand.js +3 -3
- package/dist-cjs/commands/CreateDatasetCommand.js +3 -3
- package/dist-cjs/commands/CreatePermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/CreateUserCommand.js +36 -0
- package/dist-cjs/commands/DeleteDatasetCommand.js +3 -3
- package/dist-cjs/commands/DeletePermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/DisableUserCommand.js +36 -0
- package/dist-cjs/commands/EnableUserCommand.js +36 -0
- package/dist-cjs/commands/GetChangesetCommand.js +3 -3
- package/dist-cjs/commands/GetDataViewCommand.js +3 -3
- package/dist-cjs/commands/GetDatasetCommand.js +3 -3
- package/dist-cjs/commands/GetProgrammaticAccessCredentialsCommand.js +3 -3
- package/dist-cjs/commands/GetUserCommand.js +36 -0
- package/dist-cjs/commands/GetWorkingLocationCommand.js +3 -3
- package/dist-cjs/commands/ListChangesetsCommand.js +3 -3
- package/dist-cjs/commands/ListDataViewsCommand.js +3 -3
- package/dist-cjs/commands/ListDatasetsCommand.js +3 -3
- package/dist-cjs/commands/ListPermissionGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListUsersCommand.js +36 -0
- package/dist-cjs/commands/ResetUserPasswordCommand.js +36 -0
- package/dist-cjs/commands/UpdateChangesetCommand.js +3 -3
- package/dist-cjs/commands/UpdateDatasetCommand.js +3 -3
- package/dist-cjs/commands/UpdatePermissionGroupCommand.js +36 -0
- package/dist-cjs/commands/UpdateUserCommand.js +36 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +202 -2
- package/dist-cjs/pagination/ListPermissionGroupsPaginator.js +35 -0
- package/dist-cjs/pagination/ListUsersPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1352 -321
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/FinspaceData.js +179 -14
- package/dist-es/commands/CreatePermissionGroupCommand.js +39 -0
- package/dist-es/commands/CreateUserCommand.js +39 -0
- package/dist-es/commands/DeletePermissionGroupCommand.js +39 -0
- package/dist-es/commands/DisableUserCommand.js +39 -0
- package/dist-es/commands/EnableUserCommand.js +39 -0
- package/dist-es/commands/GetUserCommand.js +39 -0
- package/dist-es/commands/ListPermissionGroupsCommand.js +39 -0
- package/dist-es/commands/ListUsersCommand.js +39 -0
- package/dist-es/commands/ResetUserPasswordCommand.js +39 -0
- package/dist-es/commands/UpdatePermissionGroupCommand.js +39 -0
- package/dist-es/commands/UpdateUserCommand.js +39 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/models_0.js +132 -4
- package/dist-es/pagination/ListChangesetsPaginator.js +4 -4
- package/dist-es/pagination/ListDataViewsPaginator.js +4 -4
- package/dist-es/pagination/ListDatasetsPaginator.js +4 -4
- package/dist-es/pagination/ListPermissionGroupsPaginator.js +74 -0
- package/dist-es/pagination/ListUsersPaginator.js +74 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1636 -322
- package/dist-types/FinspaceData.d.ts +77 -0
- package/dist-types/FinspaceDataClient.d.ts +15 -4
- package/dist-types/commands/CreatePermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/CreateUserCommand.d.ts +35 -0
- package/dist-types/commands/DeletePermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/DisableUserCommand.d.ts +35 -0
- package/dist-types/commands/EnableUserCommand.d.ts +35 -0
- package/dist-types/commands/GetUserCommand.d.ts +35 -0
- package/dist-types/commands/ListPermissionGroupsCommand.d.ts +35 -0
- package/dist-types/commands/ListUsersCommand.d.ts +35 -0
- package/dist-types/commands/ResetUserPasswordCommand.d.ts +35 -0
- package/dist-types/commands/UpdatePermissionGroupCommand.d.ts +35 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +865 -113
- package/dist-types/pagination/ListPermissionGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListUsersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +33 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/FinspaceData.d.ts +55 -0
- package/dist-types/ts3.4/FinspaceDataClient.d.ts +15 -4
- package/dist-types/ts3.4/commands/CreatePermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPermissionGroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ResetUserPasswordCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdatePermissionGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +333 -0
- package/dist-types/ts3.4/pagination/ListPermissionGroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +33 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateDatasetCommand = exports.deserializeAws_restJson1UpdateChangesetCommand = exports.deserializeAws_restJson1ListDataViewsCommand = exports.deserializeAws_restJson1ListDatasetsCommand = exports.deserializeAws_restJson1ListChangesetsCommand = exports.deserializeAws_restJson1GetWorkingLocationCommand = exports.deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = exports.deserializeAws_restJson1GetDataViewCommand = exports.deserializeAws_restJson1GetDatasetCommand = exports.deserializeAws_restJson1GetChangesetCommand = exports.deserializeAws_restJson1DeleteDatasetCommand = exports.deserializeAws_restJson1CreateDataViewCommand = exports.deserializeAws_restJson1CreateDatasetCommand = exports.deserializeAws_restJson1CreateChangesetCommand = exports.serializeAws_restJson1UpdateDatasetCommand = exports.serializeAws_restJson1UpdateChangesetCommand = exports.serializeAws_restJson1ListDataViewsCommand = exports.serializeAws_restJson1ListDatasetsCommand = exports.serializeAws_restJson1ListChangesetsCommand = exports.serializeAws_restJson1GetWorkingLocationCommand = exports.serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = exports.serializeAws_restJson1GetDataViewCommand = exports.serializeAws_restJson1GetDatasetCommand = exports.serializeAws_restJson1GetChangesetCommand = exports.serializeAws_restJson1DeleteDatasetCommand = exports.serializeAws_restJson1CreateDataViewCommand = exports.serializeAws_restJson1CreateDatasetCommand = exports.serializeAws_restJson1CreateChangesetCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateUserCommand = exports.deserializeAws_restJson1UpdatePermissionGroupCommand = exports.deserializeAws_restJson1UpdateDatasetCommand = exports.deserializeAws_restJson1UpdateChangesetCommand = exports.deserializeAws_restJson1ResetUserPasswordCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListPermissionGroupsCommand = exports.deserializeAws_restJson1ListDataViewsCommand = exports.deserializeAws_restJson1ListDatasetsCommand = exports.deserializeAws_restJson1ListChangesetsCommand = exports.deserializeAws_restJson1GetWorkingLocationCommand = exports.deserializeAws_restJson1GetUserCommand = exports.deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = exports.deserializeAws_restJson1GetDataViewCommand = exports.deserializeAws_restJson1GetDatasetCommand = exports.deserializeAws_restJson1GetChangesetCommand = exports.deserializeAws_restJson1EnableUserCommand = exports.deserializeAws_restJson1DisableUserCommand = exports.deserializeAws_restJson1DeletePermissionGroupCommand = exports.deserializeAws_restJson1DeleteDatasetCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreatePermissionGroupCommand = exports.deserializeAws_restJson1CreateDataViewCommand = exports.deserializeAws_restJson1CreateDatasetCommand = exports.deserializeAws_restJson1CreateChangesetCommand = exports.serializeAws_restJson1UpdateUserCommand = exports.serializeAws_restJson1UpdatePermissionGroupCommand = exports.serializeAws_restJson1UpdateDatasetCommand = exports.serializeAws_restJson1UpdateChangesetCommand = exports.serializeAws_restJson1ResetUserPasswordCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListPermissionGroupsCommand = exports.serializeAws_restJson1ListDataViewsCommand = exports.serializeAws_restJson1ListDatasetsCommand = exports.serializeAws_restJson1ListChangesetsCommand = exports.serializeAws_restJson1GetWorkingLocationCommand = exports.serializeAws_restJson1GetUserCommand = exports.serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = exports.serializeAws_restJson1GetDataViewCommand = exports.serializeAws_restJson1GetDatasetCommand = exports.serializeAws_restJson1GetChangesetCommand = exports.serializeAws_restJson1EnableUserCommand = exports.serializeAws_restJson1DisableUserCommand = exports.serializeAws_restJson1DeletePermissionGroupCommand = exports.serializeAws_restJson1DeleteDatasetCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreatePermissionGroupCommand = exports.serializeAws_restJson1CreateDataViewCommand = exports.serializeAws_restJson1CreateDatasetCommand = exports.serializeAws_restJson1CreateChangesetCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -18,7 +18,7 @@ const serializeAws_restJson1CreateChangesetCommand = async (input, context) => {
|
|
|
18
18
|
if (labelValue.length <= 0) {
|
|
19
19
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
20
20
|
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
21
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -26,7 +26,7 @@ const serializeAws_restJson1CreateChangesetCommand = async (input, context) => {
|
|
|
26
26
|
let body;
|
|
27
27
|
body = JSON.stringify({
|
|
28
28
|
...(input.changeType !== undefined && input.changeType !== null && { changeType: input.changeType }),
|
|
29
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
29
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
30
30
|
...(input.formatParams !== undefined &&
|
|
31
31
|
input.formatParams !== null && { formatParams: serializeAws_restJson1FormatParams(input.formatParams, context) }),
|
|
32
32
|
...(input.sourceParams !== undefined &&
|
|
@@ -53,7 +53,7 @@ const serializeAws_restJson1CreateDatasetCommand = async (input, context) => {
|
|
|
53
53
|
let body;
|
|
54
54
|
body = JSON.stringify({
|
|
55
55
|
...(input.alias !== undefined && input.alias !== null && { alias: input.alias }),
|
|
56
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
56
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
57
57
|
...(input.datasetDescription !== undefined &&
|
|
58
58
|
input.datasetDescription !== null && { datasetDescription: input.datasetDescription }),
|
|
59
59
|
...(input.datasetTitle !== undefined && input.datasetTitle !== null && { datasetTitle: input.datasetTitle }),
|
|
@@ -92,7 +92,7 @@ const serializeAws_restJson1CreateDataViewCommand = async (input, context) => {
|
|
|
92
92
|
if (labelValue.length <= 0) {
|
|
93
93
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
94
94
|
}
|
|
95
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
95
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
98
98
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -101,7 +101,7 @@ const serializeAws_restJson1CreateDataViewCommand = async (input, context) => {
|
|
|
101
101
|
body = JSON.stringify({
|
|
102
102
|
...(input.asOfTimestamp !== undefined && input.asOfTimestamp !== null && { asOfTimestamp: input.asOfTimestamp }),
|
|
103
103
|
...(input.autoUpdate !== undefined && input.autoUpdate !== null && { autoUpdate: input.autoUpdate }),
|
|
104
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
104
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
105
105
|
...(input.destinationTypeParams !== undefined &&
|
|
106
106
|
input.destinationTypeParams !== null && {
|
|
107
107
|
destinationTypeParams: serializeAws_restJson1DataViewDestinationTypeParams(input.destinationTypeParams, context),
|
|
@@ -124,6 +124,63 @@ const serializeAws_restJson1CreateDataViewCommand = async (input, context) => {
|
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
126
|
exports.serializeAws_restJson1CreateDataViewCommand = serializeAws_restJson1CreateDataViewCommand;
|
|
127
|
+
const serializeAws_restJson1CreatePermissionGroupCommand = async (input, context) => {
|
|
128
|
+
var _a;
|
|
129
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
130
|
+
const headers = {
|
|
131
|
+
"content-type": "application/json",
|
|
132
|
+
};
|
|
133
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
|
|
134
|
+
let body;
|
|
135
|
+
body = JSON.stringify({
|
|
136
|
+
...(input.applicationPermissions !== undefined &&
|
|
137
|
+
input.applicationPermissions !== null && {
|
|
138
|
+
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
139
|
+
}),
|
|
140
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
141
|
+
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
142
|
+
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
143
|
+
});
|
|
144
|
+
return new protocol_http_1.HttpRequest({
|
|
145
|
+
protocol,
|
|
146
|
+
hostname,
|
|
147
|
+
port,
|
|
148
|
+
method: "POST",
|
|
149
|
+
headers,
|
|
150
|
+
path: resolvedPath,
|
|
151
|
+
body,
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
exports.serializeAws_restJson1CreatePermissionGroupCommand = serializeAws_restJson1CreatePermissionGroupCommand;
|
|
155
|
+
const serializeAws_restJson1CreateUserCommand = async (input, context) => {
|
|
156
|
+
var _a;
|
|
157
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
158
|
+
const headers = {
|
|
159
|
+
"content-type": "application/json",
|
|
160
|
+
};
|
|
161
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user";
|
|
162
|
+
let body;
|
|
163
|
+
body = JSON.stringify({
|
|
164
|
+
...(input.ApiAccess !== undefined && input.ApiAccess !== null && { ApiAccess: input.ApiAccess }),
|
|
165
|
+
...(input.apiAccessPrincipalArn !== undefined &&
|
|
166
|
+
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
167
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
168
|
+
...(input.emailAddress !== undefined && input.emailAddress !== null && { emailAddress: input.emailAddress }),
|
|
169
|
+
...(input.firstName !== undefined && input.firstName !== null && { firstName: input.firstName }),
|
|
170
|
+
...(input.lastName !== undefined && input.lastName !== null && { lastName: input.lastName }),
|
|
171
|
+
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
172
|
+
});
|
|
173
|
+
return new protocol_http_1.HttpRequest({
|
|
174
|
+
protocol,
|
|
175
|
+
hostname,
|
|
176
|
+
port,
|
|
177
|
+
method: "POST",
|
|
178
|
+
headers,
|
|
179
|
+
path: resolvedPath,
|
|
180
|
+
body,
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
exports.serializeAws_restJson1CreateUserCommand = serializeAws_restJson1CreateUserCommand;
|
|
127
184
|
const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
|
|
128
185
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
129
186
|
const headers = {};
|
|
@@ -133,7 +190,7 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
|
|
|
133
190
|
if (labelValue.length <= 0) {
|
|
134
191
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
135
192
|
}
|
|
136
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
193
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
137
194
|
}
|
|
138
195
|
else {
|
|
139
196
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -154,6 +211,100 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
|
|
|
154
211
|
});
|
|
155
212
|
};
|
|
156
213
|
exports.serializeAws_restJson1DeleteDatasetCommand = serializeAws_restJson1DeleteDatasetCommand;
|
|
214
|
+
const serializeAws_restJson1DeletePermissionGroupCommand = async (input, context) => {
|
|
215
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
216
|
+
const headers = {};
|
|
217
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
|
|
218
|
+
if (input.permissionGroupId !== undefined) {
|
|
219
|
+
const labelValue = input.permissionGroupId;
|
|
220
|
+
if (labelValue.length <= 0) {
|
|
221
|
+
throw new Error("Empty value provided for input HTTP label: permissionGroupId.");
|
|
222
|
+
}
|
|
223
|
+
resolvedPath = resolvedPath.replace("{permissionGroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
227
|
+
}
|
|
228
|
+
const query = {
|
|
229
|
+
...(input.clientToken !== undefined && { clientToken: input.clientToken }),
|
|
230
|
+
};
|
|
231
|
+
let body;
|
|
232
|
+
return new protocol_http_1.HttpRequest({
|
|
233
|
+
protocol,
|
|
234
|
+
hostname,
|
|
235
|
+
port,
|
|
236
|
+
method: "DELETE",
|
|
237
|
+
headers,
|
|
238
|
+
path: resolvedPath,
|
|
239
|
+
query,
|
|
240
|
+
body,
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
exports.serializeAws_restJson1DeletePermissionGroupCommand = serializeAws_restJson1DeletePermissionGroupCommand;
|
|
244
|
+
const serializeAws_restJson1DisableUserCommand = async (input, context) => {
|
|
245
|
+
var _a;
|
|
246
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
247
|
+
const headers = {
|
|
248
|
+
"content-type": "application/json",
|
|
249
|
+
};
|
|
250
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/disable";
|
|
251
|
+
if (input.userId !== undefined) {
|
|
252
|
+
const 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}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
260
|
+
}
|
|
261
|
+
let body;
|
|
262
|
+
body = JSON.stringify({
|
|
263
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
264
|
+
});
|
|
265
|
+
return new protocol_http_1.HttpRequest({
|
|
266
|
+
protocol,
|
|
267
|
+
hostname,
|
|
268
|
+
port,
|
|
269
|
+
method: "POST",
|
|
270
|
+
headers,
|
|
271
|
+
path: resolvedPath,
|
|
272
|
+
body,
|
|
273
|
+
});
|
|
274
|
+
};
|
|
275
|
+
exports.serializeAws_restJson1DisableUserCommand = serializeAws_restJson1DisableUserCommand;
|
|
276
|
+
const serializeAws_restJson1EnableUserCommand = async (input, context) => {
|
|
277
|
+
var _a;
|
|
278
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
279
|
+
const headers = {
|
|
280
|
+
"content-type": "application/json",
|
|
281
|
+
};
|
|
282
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/enable";
|
|
283
|
+
if (input.userId !== undefined) {
|
|
284
|
+
const labelValue = input.userId;
|
|
285
|
+
if (labelValue.length <= 0) {
|
|
286
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
287
|
+
}
|
|
288
|
+
resolvedPath = resolvedPath.replace("{userId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
292
|
+
}
|
|
293
|
+
let body;
|
|
294
|
+
body = JSON.stringify({
|
|
295
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
296
|
+
});
|
|
297
|
+
return new protocol_http_1.HttpRequest({
|
|
298
|
+
protocol,
|
|
299
|
+
hostname,
|
|
300
|
+
port,
|
|
301
|
+
method: "POST",
|
|
302
|
+
headers,
|
|
303
|
+
path: resolvedPath,
|
|
304
|
+
body,
|
|
305
|
+
});
|
|
306
|
+
};
|
|
307
|
+
exports.serializeAws_restJson1EnableUserCommand = serializeAws_restJson1EnableUserCommand;
|
|
157
308
|
const serializeAws_restJson1GetChangesetCommand = async (input, context) => {
|
|
158
309
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
159
310
|
const headers = {};
|
|
@@ -164,7 +315,7 @@ const serializeAws_restJson1GetChangesetCommand = async (input, context) => {
|
|
|
164
315
|
if (labelValue.length <= 0) {
|
|
165
316
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
166
317
|
}
|
|
167
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
318
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
168
319
|
}
|
|
169
320
|
else {
|
|
170
321
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -174,7 +325,7 @@ const serializeAws_restJson1GetChangesetCommand = async (input, context) => {
|
|
|
174
325
|
if (labelValue.length <= 0) {
|
|
175
326
|
throw new Error("Empty value provided for input HTTP label: changesetId.");
|
|
176
327
|
}
|
|
177
|
-
resolvedPath = resolvedPath.replace("{changesetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
328
|
+
resolvedPath = resolvedPath.replace("{changesetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
178
329
|
}
|
|
179
330
|
else {
|
|
180
331
|
throw new Error("No value provided for input HTTP label: changesetId.");
|
|
@@ -200,7 +351,7 @@ const serializeAws_restJson1GetDatasetCommand = async (input, context) => {
|
|
|
200
351
|
if (labelValue.length <= 0) {
|
|
201
352
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
202
353
|
}
|
|
203
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
354
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
204
355
|
}
|
|
205
356
|
else {
|
|
206
357
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -227,7 +378,7 @@ const serializeAws_restJson1GetDataViewCommand = async (input, context) => {
|
|
|
227
378
|
if (labelValue.length <= 0) {
|
|
228
379
|
throw new Error("Empty value provided for input HTTP label: dataViewId.");
|
|
229
380
|
}
|
|
230
|
-
resolvedPath = resolvedPath.replace("{dataViewId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
381
|
+
resolvedPath = resolvedPath.replace("{dataViewId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
231
382
|
}
|
|
232
383
|
else {
|
|
233
384
|
throw new Error("No value provided for input HTTP label: dataViewId.");
|
|
@@ -237,7 +388,7 @@ const serializeAws_restJson1GetDataViewCommand = async (input, context) => {
|
|
|
237
388
|
if (labelValue.length <= 0) {
|
|
238
389
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
239
390
|
}
|
|
240
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
391
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
241
392
|
}
|
|
242
393
|
else {
|
|
243
394
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -275,6 +426,32 @@ const serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = async (inp
|
|
|
275
426
|
});
|
|
276
427
|
};
|
|
277
428
|
exports.serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = serializeAws_restJson1GetProgrammaticAccessCredentialsCommand;
|
|
429
|
+
const serializeAws_restJson1GetUserCommand = async (input, context) => {
|
|
430
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
431
|
+
const headers = {};
|
|
432
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}";
|
|
433
|
+
if (input.userId !== undefined) {
|
|
434
|
+
const labelValue = input.userId;
|
|
435
|
+
if (labelValue.length <= 0) {
|
|
436
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
437
|
+
}
|
|
438
|
+
resolvedPath = resolvedPath.replace("{userId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
442
|
+
}
|
|
443
|
+
let body;
|
|
444
|
+
return new protocol_http_1.HttpRequest({
|
|
445
|
+
protocol,
|
|
446
|
+
hostname,
|
|
447
|
+
port,
|
|
448
|
+
method: "GET",
|
|
449
|
+
headers,
|
|
450
|
+
path: resolvedPath,
|
|
451
|
+
body,
|
|
452
|
+
});
|
|
453
|
+
};
|
|
454
|
+
exports.serializeAws_restJson1GetUserCommand = serializeAws_restJson1GetUserCommand;
|
|
278
455
|
const serializeAws_restJson1GetWorkingLocationCommand = async (input, context) => {
|
|
279
456
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
280
457
|
const headers = {
|
|
@@ -305,7 +482,7 @@ const serializeAws_restJson1ListChangesetsCommand = async (input, context) => {
|
|
|
305
482
|
if (labelValue.length <= 0) {
|
|
306
483
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
307
484
|
}
|
|
308
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
485
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
309
486
|
}
|
|
310
487
|
else {
|
|
311
488
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -357,7 +534,7 @@ const serializeAws_restJson1ListDataViewsCommand = async (input, context) => {
|
|
|
357
534
|
if (labelValue.length <= 0) {
|
|
358
535
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
359
536
|
}
|
|
360
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
537
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
361
538
|
}
|
|
362
539
|
else {
|
|
363
540
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -379,6 +556,80 @@ const serializeAws_restJson1ListDataViewsCommand = async (input, context) => {
|
|
|
379
556
|
});
|
|
380
557
|
};
|
|
381
558
|
exports.serializeAws_restJson1ListDataViewsCommand = serializeAws_restJson1ListDataViewsCommand;
|
|
559
|
+
const serializeAws_restJson1ListPermissionGroupsCommand = async (input, context) => {
|
|
560
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
561
|
+
const headers = {};
|
|
562
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
|
|
563
|
+
const query = {
|
|
564
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
565
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
566
|
+
};
|
|
567
|
+
let body;
|
|
568
|
+
return new protocol_http_1.HttpRequest({
|
|
569
|
+
protocol,
|
|
570
|
+
hostname,
|
|
571
|
+
port,
|
|
572
|
+
method: "GET",
|
|
573
|
+
headers,
|
|
574
|
+
path: resolvedPath,
|
|
575
|
+
query,
|
|
576
|
+
body,
|
|
577
|
+
});
|
|
578
|
+
};
|
|
579
|
+
exports.serializeAws_restJson1ListPermissionGroupsCommand = serializeAws_restJson1ListPermissionGroupsCommand;
|
|
580
|
+
const serializeAws_restJson1ListUsersCommand = async (input, context) => {
|
|
581
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
582
|
+
const headers = {};
|
|
583
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user";
|
|
584
|
+
const query = {
|
|
585
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
586
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
587
|
+
};
|
|
588
|
+
let body;
|
|
589
|
+
return new protocol_http_1.HttpRequest({
|
|
590
|
+
protocol,
|
|
591
|
+
hostname,
|
|
592
|
+
port,
|
|
593
|
+
method: "GET",
|
|
594
|
+
headers,
|
|
595
|
+
path: resolvedPath,
|
|
596
|
+
query,
|
|
597
|
+
body,
|
|
598
|
+
});
|
|
599
|
+
};
|
|
600
|
+
exports.serializeAws_restJson1ListUsersCommand = serializeAws_restJson1ListUsersCommand;
|
|
601
|
+
const serializeAws_restJson1ResetUserPasswordCommand = async (input, context) => {
|
|
602
|
+
var _a;
|
|
603
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
604
|
+
const headers = {
|
|
605
|
+
"content-type": "application/json",
|
|
606
|
+
};
|
|
607
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/password";
|
|
608
|
+
if (input.userId !== undefined) {
|
|
609
|
+
const labelValue = input.userId;
|
|
610
|
+
if (labelValue.length <= 0) {
|
|
611
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
612
|
+
}
|
|
613
|
+
resolvedPath = resolvedPath.replace("{userId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
614
|
+
}
|
|
615
|
+
else {
|
|
616
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
617
|
+
}
|
|
618
|
+
let body;
|
|
619
|
+
body = JSON.stringify({
|
|
620
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
621
|
+
});
|
|
622
|
+
return new protocol_http_1.HttpRequest({
|
|
623
|
+
protocol,
|
|
624
|
+
hostname,
|
|
625
|
+
port,
|
|
626
|
+
method: "POST",
|
|
627
|
+
headers,
|
|
628
|
+
path: resolvedPath,
|
|
629
|
+
body,
|
|
630
|
+
});
|
|
631
|
+
};
|
|
632
|
+
exports.serializeAws_restJson1ResetUserPasswordCommand = serializeAws_restJson1ResetUserPasswordCommand;
|
|
382
633
|
const serializeAws_restJson1UpdateChangesetCommand = async (input, context) => {
|
|
383
634
|
var _a;
|
|
384
635
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -392,7 +643,7 @@ const serializeAws_restJson1UpdateChangesetCommand = async (input, context) => {
|
|
|
392
643
|
if (labelValue.length <= 0) {
|
|
393
644
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
394
645
|
}
|
|
395
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
646
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
396
647
|
}
|
|
397
648
|
else {
|
|
398
649
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -402,14 +653,14 @@ const serializeAws_restJson1UpdateChangesetCommand = async (input, context) => {
|
|
|
402
653
|
if (labelValue.length <= 0) {
|
|
403
654
|
throw new Error("Empty value provided for input HTTP label: changesetId.");
|
|
404
655
|
}
|
|
405
|
-
resolvedPath = resolvedPath.replace("{changesetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
656
|
+
resolvedPath = resolvedPath.replace("{changesetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
406
657
|
}
|
|
407
658
|
else {
|
|
408
659
|
throw new Error("No value provided for input HTTP label: changesetId.");
|
|
409
660
|
}
|
|
410
661
|
let body;
|
|
411
662
|
body = JSON.stringify({
|
|
412
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
663
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
413
664
|
...(input.formatParams !== undefined &&
|
|
414
665
|
input.formatParams !== null && { formatParams: serializeAws_restJson1FormatParams(input.formatParams, context) }),
|
|
415
666
|
...(input.sourceParams !== undefined &&
|
|
@@ -438,7 +689,7 @@ const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
|
|
|
438
689
|
if (labelValue.length <= 0) {
|
|
439
690
|
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
440
691
|
}
|
|
441
|
-
resolvedPath = resolvedPath.replace("{datasetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
692
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
442
693
|
}
|
|
443
694
|
else {
|
|
444
695
|
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
@@ -446,7 +697,7 @@ const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
|
|
|
446
697
|
let body;
|
|
447
698
|
body = JSON.stringify({
|
|
448
699
|
...(input.alias !== undefined && input.alias !== null && { alias: input.alias }),
|
|
449
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
700
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
450
701
|
...(input.datasetDescription !== undefined &&
|
|
451
702
|
input.datasetDescription !== null && { datasetDescription: input.datasetDescription }),
|
|
452
703
|
...(input.datasetTitle !== undefined && input.datasetTitle !== null && { datasetTitle: input.datasetTitle }),
|
|
@@ -467,6 +718,82 @@ const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
|
|
|
467
718
|
});
|
|
468
719
|
};
|
|
469
720
|
exports.serializeAws_restJson1UpdateDatasetCommand = serializeAws_restJson1UpdateDatasetCommand;
|
|
721
|
+
const serializeAws_restJson1UpdatePermissionGroupCommand = async (input, context) => {
|
|
722
|
+
var _a;
|
|
723
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
724
|
+
const headers = {
|
|
725
|
+
"content-type": "application/json",
|
|
726
|
+
};
|
|
727
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
|
|
728
|
+
if (input.permissionGroupId !== undefined) {
|
|
729
|
+
const labelValue = input.permissionGroupId;
|
|
730
|
+
if (labelValue.length <= 0) {
|
|
731
|
+
throw new Error("Empty value provided for input HTTP label: permissionGroupId.");
|
|
732
|
+
}
|
|
733
|
+
resolvedPath = resolvedPath.replace("{permissionGroupId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
734
|
+
}
|
|
735
|
+
else {
|
|
736
|
+
throw new Error("No value provided for input HTTP label: permissionGroupId.");
|
|
737
|
+
}
|
|
738
|
+
let body;
|
|
739
|
+
body = JSON.stringify({
|
|
740
|
+
...(input.applicationPermissions !== undefined &&
|
|
741
|
+
input.applicationPermissions !== null && {
|
|
742
|
+
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
743
|
+
}),
|
|
744
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
745
|
+
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
746
|
+
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
747
|
+
});
|
|
748
|
+
return new protocol_http_1.HttpRequest({
|
|
749
|
+
protocol,
|
|
750
|
+
hostname,
|
|
751
|
+
port,
|
|
752
|
+
method: "PUT",
|
|
753
|
+
headers,
|
|
754
|
+
path: resolvedPath,
|
|
755
|
+
body,
|
|
756
|
+
});
|
|
757
|
+
};
|
|
758
|
+
exports.serializeAws_restJson1UpdatePermissionGroupCommand = serializeAws_restJson1UpdatePermissionGroupCommand;
|
|
759
|
+
const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
|
|
760
|
+
var _a;
|
|
761
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
762
|
+
const headers = {
|
|
763
|
+
"content-type": "application/json",
|
|
764
|
+
};
|
|
765
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}";
|
|
766
|
+
if (input.userId !== undefined) {
|
|
767
|
+
const labelValue = input.userId;
|
|
768
|
+
if (labelValue.length <= 0) {
|
|
769
|
+
throw new Error("Empty value provided for input HTTP label: userId.");
|
|
770
|
+
}
|
|
771
|
+
resolvedPath = resolvedPath.replace("{userId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
774
|
+
throw new Error("No value provided for input HTTP label: userId.");
|
|
775
|
+
}
|
|
776
|
+
let body;
|
|
777
|
+
body = JSON.stringify({
|
|
778
|
+
...(input.apiAccess !== undefined && input.apiAccess !== null && { apiAccess: input.apiAccess }),
|
|
779
|
+
...(input.apiAccessPrincipalArn !== undefined &&
|
|
780
|
+
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
781
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
782
|
+
...(input.firstName !== undefined && input.firstName !== null && { firstName: input.firstName }),
|
|
783
|
+
...(input.lastName !== undefined && input.lastName !== null && { lastName: input.lastName }),
|
|
784
|
+
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
785
|
+
});
|
|
786
|
+
return new protocol_http_1.HttpRequest({
|
|
787
|
+
protocol,
|
|
788
|
+
hostname,
|
|
789
|
+
port,
|
|
790
|
+
method: "PUT",
|
|
791
|
+
headers,
|
|
792
|
+
path: resolvedPath,
|
|
793
|
+
body,
|
|
794
|
+
});
|
|
795
|
+
};
|
|
796
|
+
exports.serializeAws_restJson1UpdateUserCommand = serializeAws_restJson1UpdateUserCommand;
|
|
470
797
|
const deserializeAws_restJson1CreateChangesetCommand = async (output, context) => {
|
|
471
798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
799
|
return deserializeAws_restJson1CreateChangesetCommandError(output, context);
|
|
@@ -476,12 +803,12 @@ const deserializeAws_restJson1CreateChangesetCommand = async (output, context) =
|
|
|
476
803
|
changesetId: undefined,
|
|
477
804
|
datasetId: undefined,
|
|
478
805
|
};
|
|
479
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
806
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
480
807
|
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
481
|
-
contents.changesetId = smithy_client_1.expectString(data.changesetId);
|
|
808
|
+
contents.changesetId = (0, smithy_client_1.expectString)(data.changesetId);
|
|
482
809
|
}
|
|
483
810
|
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
484
|
-
contents.datasetId = smithy_client_1.expectString(data.datasetId);
|
|
811
|
+
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
485
812
|
}
|
|
486
813
|
return Promise.resolve(contents);
|
|
487
814
|
};
|
|
@@ -523,7 +850,7 @@ const deserializeAws_restJson1CreateChangesetCommandError = async (output, conte
|
|
|
523
850
|
$fault: "client",
|
|
524
851
|
$metadata: deserializeMetadata(output),
|
|
525
852
|
});
|
|
526
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
853
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
527
854
|
}
|
|
528
855
|
};
|
|
529
856
|
const deserializeAws_restJson1CreateDatasetCommand = async (output, context) => {
|
|
@@ -534,9 +861,9 @@ const deserializeAws_restJson1CreateDatasetCommand = async (output, context) =>
|
|
|
534
861
|
$metadata: deserializeMetadata(output),
|
|
535
862
|
datasetId: undefined,
|
|
536
863
|
};
|
|
537
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
864
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
538
865
|
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
539
|
-
contents.datasetId = smithy_client_1.expectString(data.datasetId);
|
|
866
|
+
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
540
867
|
}
|
|
541
868
|
return Promise.resolve(contents);
|
|
542
869
|
};
|
|
@@ -578,7 +905,7 @@ const deserializeAws_restJson1CreateDatasetCommandError = async (output, context
|
|
|
578
905
|
$fault: "client",
|
|
579
906
|
$metadata: deserializeMetadata(output),
|
|
580
907
|
});
|
|
581
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
908
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
582
909
|
}
|
|
583
910
|
};
|
|
584
911
|
const deserializeAws_restJson1CreateDataViewCommand = async (output, context) => {
|
|
@@ -590,12 +917,12 @@ const deserializeAws_restJson1CreateDataViewCommand = async (output, context) =>
|
|
|
590
917
|
dataViewId: undefined,
|
|
591
918
|
datasetId: undefined,
|
|
592
919
|
};
|
|
593
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
920
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
594
921
|
if (data.dataViewId !== undefined && data.dataViewId !== null) {
|
|
595
|
-
contents.dataViewId = smithy_client_1.expectString(data.dataViewId);
|
|
922
|
+
contents.dataViewId = (0, smithy_client_1.expectString)(data.dataViewId);
|
|
596
923
|
}
|
|
597
924
|
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
598
|
-
contents.datasetId = smithy_client_1.expectString(data.datasetId);
|
|
925
|
+
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
599
926
|
}
|
|
600
927
|
return Promise.resolve(contents);
|
|
601
928
|
};
|
|
@@ -634,25 +961,25 @@ const deserializeAws_restJson1CreateDataViewCommandError = async (output, contex
|
|
|
634
961
|
$fault: "client",
|
|
635
962
|
$metadata: deserializeMetadata(output),
|
|
636
963
|
});
|
|
637
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
964
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
638
965
|
}
|
|
639
966
|
};
|
|
640
|
-
const
|
|
967
|
+
const deserializeAws_restJson1CreatePermissionGroupCommand = async (output, context) => {
|
|
641
968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
-
return
|
|
969
|
+
return deserializeAws_restJson1CreatePermissionGroupCommandError(output, context);
|
|
643
970
|
}
|
|
644
971
|
const contents = {
|
|
645
972
|
$metadata: deserializeMetadata(output),
|
|
646
|
-
|
|
973
|
+
permissionGroupId: undefined,
|
|
647
974
|
};
|
|
648
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
649
|
-
if (data.
|
|
650
|
-
contents.
|
|
975
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
976
|
+
if (data.permissionGroupId !== undefined && data.permissionGroupId !== null) {
|
|
977
|
+
contents.permissionGroupId = (0, smithy_client_1.expectString)(data.permissionGroupId);
|
|
651
978
|
}
|
|
652
979
|
return Promise.resolve(contents);
|
|
653
980
|
};
|
|
654
|
-
exports.
|
|
655
|
-
const
|
|
981
|
+
exports.deserializeAws_restJson1CreatePermissionGroupCommand = deserializeAws_restJson1CreatePermissionGroupCommand;
|
|
982
|
+
const deserializeAws_restJson1CreatePermissionGroupCommandError = async (output, context) => {
|
|
656
983
|
const parsedOutput = {
|
|
657
984
|
...output,
|
|
658
985
|
body: await parseBody(output.body, context),
|
|
@@ -673,9 +1000,6 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
|
|
|
673
1000
|
case "LimitExceededException":
|
|
674
1001
|
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
675
1002
|
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
676
|
-
case "ResourceNotFoundException":
|
|
677
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
678
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
679
1003
|
case "ThrottlingException":
|
|
680
1004
|
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
681
1005
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -689,50 +1013,319 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
|
|
|
689
1013
|
$fault: "client",
|
|
690
1014
|
$metadata: deserializeMetadata(output),
|
|
691
1015
|
});
|
|
692
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1016
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
693
1017
|
}
|
|
694
1018
|
};
|
|
695
|
-
const
|
|
1019
|
+
const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
|
|
696
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
697
|
-
return
|
|
1021
|
+
return deserializeAws_restJson1CreateUserCommandError(output, context);
|
|
698
1022
|
}
|
|
699
1023
|
const contents = {
|
|
700
1024
|
$metadata: deserializeMetadata(output),
|
|
701
|
-
|
|
702
|
-
activeUntilTimestamp: undefined,
|
|
703
|
-
changeType: undefined,
|
|
704
|
-
changesetArn: undefined,
|
|
705
|
-
changesetId: undefined,
|
|
706
|
-
createTime: undefined,
|
|
707
|
-
datasetId: undefined,
|
|
708
|
-
errorInfo: undefined,
|
|
709
|
-
formatParams: undefined,
|
|
710
|
-
sourceParams: undefined,
|
|
711
|
-
status: undefined,
|
|
712
|
-
updatedByChangesetId: undefined,
|
|
713
|
-
updatesChangesetId: undefined,
|
|
1025
|
+
userId: undefined,
|
|
714
1026
|
};
|
|
715
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
716
|
-
if (data.
|
|
717
|
-
contents.
|
|
1027
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1028
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
1029
|
+
contents.userId = (0, smithy_client_1.expectString)(data.userId);
|
|
1030
|
+
}
|
|
1031
|
+
return Promise.resolve(contents);
|
|
1032
|
+
};
|
|
1033
|
+
exports.deserializeAws_restJson1CreateUserCommand = deserializeAws_restJson1CreateUserCommand;
|
|
1034
|
+
const deserializeAws_restJson1CreateUserCommandError = async (output, context) => {
|
|
1035
|
+
const parsedOutput = {
|
|
1036
|
+
...output,
|
|
1037
|
+
body: await parseBody(output.body, context),
|
|
1038
|
+
};
|
|
1039
|
+
let response;
|
|
1040
|
+
let errorCode = "UnknownError";
|
|
1041
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1042
|
+
switch (errorCode) {
|
|
1043
|
+
case "AccessDeniedException":
|
|
1044
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1045
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1046
|
+
case "ConflictException":
|
|
1047
|
+
case "com.amazonaws.finspacedata#ConflictException":
|
|
1048
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1049
|
+
case "InternalServerException":
|
|
1050
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1051
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1052
|
+
case "LimitExceededException":
|
|
1053
|
+
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1054
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1055
|
+
case "ThrottlingException":
|
|
1056
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1057
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1058
|
+
case "ValidationException":
|
|
1059
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1060
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1061
|
+
default:
|
|
1062
|
+
const parsedBody = parsedOutput.body;
|
|
1063
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1064
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1065
|
+
$fault: "client",
|
|
1066
|
+
$metadata: deserializeMetadata(output),
|
|
1067
|
+
});
|
|
1068
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
1071
|
+
const deserializeAws_restJson1DeleteDatasetCommand = async (output, context) => {
|
|
1072
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1073
|
+
return deserializeAws_restJson1DeleteDatasetCommandError(output, context);
|
|
1074
|
+
}
|
|
1075
|
+
const contents = {
|
|
1076
|
+
$metadata: deserializeMetadata(output),
|
|
1077
|
+
datasetId: undefined,
|
|
1078
|
+
};
|
|
1079
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1080
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1081
|
+
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
1082
|
+
}
|
|
1083
|
+
return Promise.resolve(contents);
|
|
1084
|
+
};
|
|
1085
|
+
exports.deserializeAws_restJson1DeleteDatasetCommand = deserializeAws_restJson1DeleteDatasetCommand;
|
|
1086
|
+
const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context) => {
|
|
1087
|
+
const parsedOutput = {
|
|
1088
|
+
...output,
|
|
1089
|
+
body: await parseBody(output.body, context),
|
|
1090
|
+
};
|
|
1091
|
+
let response;
|
|
1092
|
+
let errorCode = "UnknownError";
|
|
1093
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
+
switch (errorCode) {
|
|
1095
|
+
case "AccessDeniedException":
|
|
1096
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1097
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1098
|
+
case "ConflictException":
|
|
1099
|
+
case "com.amazonaws.finspacedata#ConflictException":
|
|
1100
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1101
|
+
case "InternalServerException":
|
|
1102
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1103
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1104
|
+
case "LimitExceededException":
|
|
1105
|
+
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1106
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1107
|
+
case "ResourceNotFoundException":
|
|
1108
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1109
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1110
|
+
case "ThrottlingException":
|
|
1111
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1112
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1113
|
+
case "ValidationException":
|
|
1114
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1115
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1116
|
+
default:
|
|
1117
|
+
const parsedBody = parsedOutput.body;
|
|
1118
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1119
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1120
|
+
$fault: "client",
|
|
1121
|
+
$metadata: deserializeMetadata(output),
|
|
1122
|
+
});
|
|
1123
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1124
|
+
}
|
|
1125
|
+
};
|
|
1126
|
+
const deserializeAws_restJson1DeletePermissionGroupCommand = async (output, context) => {
|
|
1127
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1128
|
+
return deserializeAws_restJson1DeletePermissionGroupCommandError(output, context);
|
|
1129
|
+
}
|
|
1130
|
+
const contents = {
|
|
1131
|
+
$metadata: deserializeMetadata(output),
|
|
1132
|
+
permissionGroupId: undefined,
|
|
1133
|
+
};
|
|
1134
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1135
|
+
if (data.permissionGroupId !== undefined && data.permissionGroupId !== null) {
|
|
1136
|
+
contents.permissionGroupId = (0, smithy_client_1.expectString)(data.permissionGroupId);
|
|
1137
|
+
}
|
|
1138
|
+
return Promise.resolve(contents);
|
|
1139
|
+
};
|
|
1140
|
+
exports.deserializeAws_restJson1DeletePermissionGroupCommand = deserializeAws_restJson1DeletePermissionGroupCommand;
|
|
1141
|
+
const deserializeAws_restJson1DeletePermissionGroupCommandError = async (output, context) => {
|
|
1142
|
+
const parsedOutput = {
|
|
1143
|
+
...output,
|
|
1144
|
+
body: await parseBody(output.body, context),
|
|
1145
|
+
};
|
|
1146
|
+
let response;
|
|
1147
|
+
let errorCode = "UnknownError";
|
|
1148
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
|
+
switch (errorCode) {
|
|
1150
|
+
case "AccessDeniedException":
|
|
1151
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1152
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1153
|
+
case "ConflictException":
|
|
1154
|
+
case "com.amazonaws.finspacedata#ConflictException":
|
|
1155
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1156
|
+
case "InternalServerException":
|
|
1157
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1158
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1159
|
+
case "LimitExceededException":
|
|
1160
|
+
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1161
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1162
|
+
case "ResourceNotFoundException":
|
|
1163
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1164
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1165
|
+
case "ThrottlingException":
|
|
1166
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1167
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1168
|
+
case "ValidationException":
|
|
1169
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1170
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1171
|
+
default:
|
|
1172
|
+
const parsedBody = parsedOutput.body;
|
|
1173
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1174
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1175
|
+
$fault: "client",
|
|
1176
|
+
$metadata: deserializeMetadata(output),
|
|
1177
|
+
});
|
|
1178
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
const deserializeAws_restJson1DisableUserCommand = async (output, context) => {
|
|
1182
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1183
|
+
return deserializeAws_restJson1DisableUserCommandError(output, context);
|
|
1184
|
+
}
|
|
1185
|
+
const contents = {
|
|
1186
|
+
$metadata: deserializeMetadata(output),
|
|
1187
|
+
userId: undefined,
|
|
1188
|
+
};
|
|
1189
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1190
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
1191
|
+
contents.userId = (0, smithy_client_1.expectString)(data.userId);
|
|
1192
|
+
}
|
|
1193
|
+
return Promise.resolve(contents);
|
|
1194
|
+
};
|
|
1195
|
+
exports.deserializeAws_restJson1DisableUserCommand = deserializeAws_restJson1DisableUserCommand;
|
|
1196
|
+
const deserializeAws_restJson1DisableUserCommandError = async (output, context) => {
|
|
1197
|
+
const parsedOutput = {
|
|
1198
|
+
...output,
|
|
1199
|
+
body: await parseBody(output.body, context),
|
|
1200
|
+
};
|
|
1201
|
+
let response;
|
|
1202
|
+
let errorCode = "UnknownError";
|
|
1203
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
+
switch (errorCode) {
|
|
1205
|
+
case "AccessDeniedException":
|
|
1206
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1207
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1208
|
+
case "ConflictException":
|
|
1209
|
+
case "com.amazonaws.finspacedata#ConflictException":
|
|
1210
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1211
|
+
case "InternalServerException":
|
|
1212
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1213
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1214
|
+
case "ResourceNotFoundException":
|
|
1215
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1216
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1217
|
+
case "ThrottlingException":
|
|
1218
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1219
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1220
|
+
case "ValidationException":
|
|
1221
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1222
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1223
|
+
default:
|
|
1224
|
+
const parsedBody = parsedOutput.body;
|
|
1225
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1226
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1227
|
+
$fault: "client",
|
|
1228
|
+
$metadata: deserializeMetadata(output),
|
|
1229
|
+
});
|
|
1230
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
1233
|
+
const deserializeAws_restJson1EnableUserCommand = async (output, context) => {
|
|
1234
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1235
|
+
return deserializeAws_restJson1EnableUserCommandError(output, context);
|
|
1236
|
+
}
|
|
1237
|
+
const contents = {
|
|
1238
|
+
$metadata: deserializeMetadata(output),
|
|
1239
|
+
userId: undefined,
|
|
1240
|
+
};
|
|
1241
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1242
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
1243
|
+
contents.userId = (0, smithy_client_1.expectString)(data.userId);
|
|
1244
|
+
}
|
|
1245
|
+
return Promise.resolve(contents);
|
|
1246
|
+
};
|
|
1247
|
+
exports.deserializeAws_restJson1EnableUserCommand = deserializeAws_restJson1EnableUserCommand;
|
|
1248
|
+
const deserializeAws_restJson1EnableUserCommandError = async (output, context) => {
|
|
1249
|
+
const parsedOutput = {
|
|
1250
|
+
...output,
|
|
1251
|
+
body: await parseBody(output.body, context),
|
|
1252
|
+
};
|
|
1253
|
+
let response;
|
|
1254
|
+
let errorCode = "UnknownError";
|
|
1255
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
|
+
switch (errorCode) {
|
|
1257
|
+
case "AccessDeniedException":
|
|
1258
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1259
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1260
|
+
case "ConflictException":
|
|
1261
|
+
case "com.amazonaws.finspacedata#ConflictException":
|
|
1262
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1263
|
+
case "InternalServerException":
|
|
1264
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1265
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1266
|
+
case "LimitExceededException":
|
|
1267
|
+
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1268
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1269
|
+
case "ResourceNotFoundException":
|
|
1270
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1271
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1272
|
+
case "ThrottlingException":
|
|
1273
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1274
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1275
|
+
case "ValidationException":
|
|
1276
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1277
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1278
|
+
default:
|
|
1279
|
+
const parsedBody = parsedOutput.body;
|
|
1280
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1281
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1282
|
+
$fault: "client",
|
|
1283
|
+
$metadata: deserializeMetadata(output),
|
|
1284
|
+
});
|
|
1285
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1286
|
+
}
|
|
1287
|
+
};
|
|
1288
|
+
const deserializeAws_restJson1GetChangesetCommand = async (output, context) => {
|
|
1289
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1290
|
+
return deserializeAws_restJson1GetChangesetCommandError(output, context);
|
|
1291
|
+
}
|
|
1292
|
+
const contents = {
|
|
1293
|
+
$metadata: deserializeMetadata(output),
|
|
1294
|
+
activeFromTimestamp: undefined,
|
|
1295
|
+
activeUntilTimestamp: undefined,
|
|
1296
|
+
changeType: undefined,
|
|
1297
|
+
changesetArn: undefined,
|
|
1298
|
+
changesetId: undefined,
|
|
1299
|
+
createTime: undefined,
|
|
1300
|
+
datasetId: undefined,
|
|
1301
|
+
errorInfo: undefined,
|
|
1302
|
+
formatParams: undefined,
|
|
1303
|
+
sourceParams: undefined,
|
|
1304
|
+
status: undefined,
|
|
1305
|
+
updatedByChangesetId: undefined,
|
|
1306
|
+
updatesChangesetId: undefined,
|
|
1307
|
+
};
|
|
1308
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1309
|
+
if (data.activeFromTimestamp !== undefined && data.activeFromTimestamp !== null) {
|
|
1310
|
+
contents.activeFromTimestamp = (0, smithy_client_1.expectLong)(data.activeFromTimestamp);
|
|
718
1311
|
}
|
|
719
1312
|
if (data.activeUntilTimestamp !== undefined && data.activeUntilTimestamp !== null) {
|
|
720
|
-
contents.activeUntilTimestamp = smithy_client_1.expectLong(data.activeUntilTimestamp);
|
|
1313
|
+
contents.activeUntilTimestamp = (0, smithy_client_1.expectLong)(data.activeUntilTimestamp);
|
|
721
1314
|
}
|
|
722
1315
|
if (data.changeType !== undefined && data.changeType !== null) {
|
|
723
|
-
contents.changeType = smithy_client_1.expectString(data.changeType);
|
|
1316
|
+
contents.changeType = (0, smithy_client_1.expectString)(data.changeType);
|
|
724
1317
|
}
|
|
725
1318
|
if (data.changesetArn !== undefined && data.changesetArn !== null) {
|
|
726
|
-
contents.changesetArn = smithy_client_1.expectString(data.changesetArn);
|
|
1319
|
+
contents.changesetArn = (0, smithy_client_1.expectString)(data.changesetArn);
|
|
727
1320
|
}
|
|
728
1321
|
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
729
|
-
contents.changesetId = smithy_client_1.expectString(data.changesetId);
|
|
1322
|
+
contents.changesetId = (0, smithy_client_1.expectString)(data.changesetId);
|
|
730
1323
|
}
|
|
731
1324
|
if (data.createTime !== undefined && data.createTime !== null) {
|
|
732
|
-
contents.createTime = smithy_client_1.expectLong(data.createTime);
|
|
1325
|
+
contents.createTime = (0, smithy_client_1.expectLong)(data.createTime);
|
|
733
1326
|
}
|
|
734
1327
|
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
735
|
-
contents.datasetId = smithy_client_1.expectString(data.datasetId);
|
|
1328
|
+
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
736
1329
|
}
|
|
737
1330
|
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
738
1331
|
contents.errorInfo = deserializeAws_restJson1ChangesetErrorInfo(data.errorInfo, context);
|
|
@@ -743,19 +1336,457 @@ const deserializeAws_restJson1GetChangesetCommand = async (output, context) => {
|
|
|
743
1336
|
if (data.sourceParams !== undefined && data.sourceParams !== null) {
|
|
744
1337
|
contents.sourceParams = deserializeAws_restJson1SourceParams(data.sourceParams, context);
|
|
745
1338
|
}
|
|
746
|
-
if (data.status !== undefined && data.status !== null) {
|
|
747
|
-
contents.status = smithy_client_1.expectString(data.status);
|
|
1339
|
+
if (data.status !== undefined && data.status !== null) {
|
|
1340
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1341
|
+
}
|
|
1342
|
+
if (data.updatedByChangesetId !== undefined && data.updatedByChangesetId !== null) {
|
|
1343
|
+
contents.updatedByChangesetId = (0, smithy_client_1.expectString)(data.updatedByChangesetId);
|
|
1344
|
+
}
|
|
1345
|
+
if (data.updatesChangesetId !== undefined && data.updatesChangesetId !== null) {
|
|
1346
|
+
contents.updatesChangesetId = (0, smithy_client_1.expectString)(data.updatesChangesetId);
|
|
1347
|
+
}
|
|
1348
|
+
return Promise.resolve(contents);
|
|
1349
|
+
};
|
|
1350
|
+
exports.deserializeAws_restJson1GetChangesetCommand = deserializeAws_restJson1GetChangesetCommand;
|
|
1351
|
+
const deserializeAws_restJson1GetChangesetCommandError = async (output, context) => {
|
|
1352
|
+
const parsedOutput = {
|
|
1353
|
+
...output,
|
|
1354
|
+
body: await parseBody(output.body, context),
|
|
1355
|
+
};
|
|
1356
|
+
let response;
|
|
1357
|
+
let errorCode = "UnknownError";
|
|
1358
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
+
switch (errorCode) {
|
|
1360
|
+
case "AccessDeniedException":
|
|
1361
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1362
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1363
|
+
case "ConflictException":
|
|
1364
|
+
case "com.amazonaws.finspacedata#ConflictException":
|
|
1365
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1366
|
+
case "InternalServerException":
|
|
1367
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1368
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1369
|
+
case "ResourceNotFoundException":
|
|
1370
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1371
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1372
|
+
case "ThrottlingException":
|
|
1373
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1374
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1375
|
+
case "ValidationException":
|
|
1376
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1377
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1378
|
+
default:
|
|
1379
|
+
const parsedBody = parsedOutput.body;
|
|
1380
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1381
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1382
|
+
$fault: "client",
|
|
1383
|
+
$metadata: deserializeMetadata(output),
|
|
1384
|
+
});
|
|
1385
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1386
|
+
}
|
|
1387
|
+
};
|
|
1388
|
+
const deserializeAws_restJson1GetDatasetCommand = async (output, context) => {
|
|
1389
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1390
|
+
return deserializeAws_restJson1GetDatasetCommandError(output, context);
|
|
1391
|
+
}
|
|
1392
|
+
const contents = {
|
|
1393
|
+
$metadata: deserializeMetadata(output),
|
|
1394
|
+
alias: undefined,
|
|
1395
|
+
createTime: undefined,
|
|
1396
|
+
datasetArn: undefined,
|
|
1397
|
+
datasetDescription: undefined,
|
|
1398
|
+
datasetId: undefined,
|
|
1399
|
+
datasetTitle: undefined,
|
|
1400
|
+
kind: undefined,
|
|
1401
|
+
lastModifiedTime: undefined,
|
|
1402
|
+
schemaDefinition: undefined,
|
|
1403
|
+
status: undefined,
|
|
1404
|
+
};
|
|
1405
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1406
|
+
if (data.alias !== undefined && data.alias !== null) {
|
|
1407
|
+
contents.alias = (0, smithy_client_1.expectString)(data.alias);
|
|
1408
|
+
}
|
|
1409
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1410
|
+
contents.createTime = (0, smithy_client_1.expectLong)(data.createTime);
|
|
1411
|
+
}
|
|
1412
|
+
if (data.datasetArn !== undefined && data.datasetArn !== null) {
|
|
1413
|
+
contents.datasetArn = (0, smithy_client_1.expectString)(data.datasetArn);
|
|
1414
|
+
}
|
|
1415
|
+
if (data.datasetDescription !== undefined && data.datasetDescription !== null) {
|
|
1416
|
+
contents.datasetDescription = (0, smithy_client_1.expectString)(data.datasetDescription);
|
|
1417
|
+
}
|
|
1418
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1419
|
+
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
1420
|
+
}
|
|
1421
|
+
if (data.datasetTitle !== undefined && data.datasetTitle !== null) {
|
|
1422
|
+
contents.datasetTitle = (0, smithy_client_1.expectString)(data.datasetTitle);
|
|
1423
|
+
}
|
|
1424
|
+
if (data.kind !== undefined && data.kind !== null) {
|
|
1425
|
+
contents.kind = (0, smithy_client_1.expectString)(data.kind);
|
|
1426
|
+
}
|
|
1427
|
+
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1428
|
+
contents.lastModifiedTime = (0, smithy_client_1.expectLong)(data.lastModifiedTime);
|
|
1429
|
+
}
|
|
1430
|
+
if (data.schemaDefinition !== undefined && data.schemaDefinition !== null) {
|
|
1431
|
+
contents.schemaDefinition = deserializeAws_restJson1SchemaUnion(data.schemaDefinition, context);
|
|
1432
|
+
}
|
|
1433
|
+
if (data.status !== undefined && data.status !== null) {
|
|
1434
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1435
|
+
}
|
|
1436
|
+
return Promise.resolve(contents);
|
|
1437
|
+
};
|
|
1438
|
+
exports.deserializeAws_restJson1GetDatasetCommand = deserializeAws_restJson1GetDatasetCommand;
|
|
1439
|
+
const deserializeAws_restJson1GetDatasetCommandError = async (output, context) => {
|
|
1440
|
+
const parsedOutput = {
|
|
1441
|
+
...output,
|
|
1442
|
+
body: await parseBody(output.body, context),
|
|
1443
|
+
};
|
|
1444
|
+
let response;
|
|
1445
|
+
let errorCode = "UnknownError";
|
|
1446
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
|
+
switch (errorCode) {
|
|
1448
|
+
case "AccessDeniedException":
|
|
1449
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1450
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1451
|
+
case "ConflictException":
|
|
1452
|
+
case "com.amazonaws.finspacedata#ConflictException":
|
|
1453
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1454
|
+
case "InternalServerException":
|
|
1455
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1456
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1457
|
+
case "ResourceNotFoundException":
|
|
1458
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1459
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1460
|
+
case "ThrottlingException":
|
|
1461
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1462
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1463
|
+
case "ValidationException":
|
|
1464
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1465
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1466
|
+
default:
|
|
1467
|
+
const parsedBody = parsedOutput.body;
|
|
1468
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1469
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1470
|
+
$fault: "client",
|
|
1471
|
+
$metadata: deserializeMetadata(output),
|
|
1472
|
+
});
|
|
1473
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1474
|
+
}
|
|
1475
|
+
};
|
|
1476
|
+
const deserializeAws_restJson1GetDataViewCommand = async (output, context) => {
|
|
1477
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1478
|
+
return deserializeAws_restJson1GetDataViewCommandError(output, context);
|
|
1479
|
+
}
|
|
1480
|
+
const contents = {
|
|
1481
|
+
$metadata: deserializeMetadata(output),
|
|
1482
|
+
asOfTimestamp: undefined,
|
|
1483
|
+
autoUpdate: undefined,
|
|
1484
|
+
createTime: undefined,
|
|
1485
|
+
dataViewArn: undefined,
|
|
1486
|
+
dataViewId: undefined,
|
|
1487
|
+
datasetId: undefined,
|
|
1488
|
+
destinationTypeParams: undefined,
|
|
1489
|
+
errorInfo: undefined,
|
|
1490
|
+
lastModifiedTime: undefined,
|
|
1491
|
+
partitionColumns: undefined,
|
|
1492
|
+
sortColumns: undefined,
|
|
1493
|
+
status: undefined,
|
|
1494
|
+
};
|
|
1495
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1496
|
+
if (data.asOfTimestamp !== undefined && data.asOfTimestamp !== null) {
|
|
1497
|
+
contents.asOfTimestamp = (0, smithy_client_1.expectLong)(data.asOfTimestamp);
|
|
1498
|
+
}
|
|
1499
|
+
if (data.autoUpdate !== undefined && data.autoUpdate !== null) {
|
|
1500
|
+
contents.autoUpdate = (0, smithy_client_1.expectBoolean)(data.autoUpdate);
|
|
1501
|
+
}
|
|
1502
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1503
|
+
contents.createTime = (0, smithy_client_1.expectLong)(data.createTime);
|
|
1504
|
+
}
|
|
1505
|
+
if (data.dataViewArn !== undefined && data.dataViewArn !== null) {
|
|
1506
|
+
contents.dataViewArn = (0, smithy_client_1.expectString)(data.dataViewArn);
|
|
1507
|
+
}
|
|
1508
|
+
if (data.dataViewId !== undefined && data.dataViewId !== null) {
|
|
1509
|
+
contents.dataViewId = (0, smithy_client_1.expectString)(data.dataViewId);
|
|
1510
|
+
}
|
|
1511
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1512
|
+
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
1513
|
+
}
|
|
1514
|
+
if (data.destinationTypeParams !== undefined && data.destinationTypeParams !== null) {
|
|
1515
|
+
contents.destinationTypeParams = deserializeAws_restJson1DataViewDestinationTypeParams(data.destinationTypeParams, context);
|
|
1516
|
+
}
|
|
1517
|
+
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
1518
|
+
contents.errorInfo = deserializeAws_restJson1DataViewErrorInfo(data.errorInfo, context);
|
|
1519
|
+
}
|
|
1520
|
+
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1521
|
+
contents.lastModifiedTime = (0, smithy_client_1.expectLong)(data.lastModifiedTime);
|
|
1522
|
+
}
|
|
1523
|
+
if (data.partitionColumns !== undefined && data.partitionColumns !== null) {
|
|
1524
|
+
contents.partitionColumns = deserializeAws_restJson1PartitionColumnList(data.partitionColumns, context);
|
|
1525
|
+
}
|
|
1526
|
+
if (data.sortColumns !== undefined && data.sortColumns !== null) {
|
|
1527
|
+
contents.sortColumns = deserializeAws_restJson1SortColumnList(data.sortColumns, context);
|
|
1528
|
+
}
|
|
1529
|
+
if (data.status !== undefined && data.status !== null) {
|
|
1530
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1531
|
+
}
|
|
1532
|
+
return Promise.resolve(contents);
|
|
1533
|
+
};
|
|
1534
|
+
exports.deserializeAws_restJson1GetDataViewCommand = deserializeAws_restJson1GetDataViewCommand;
|
|
1535
|
+
const deserializeAws_restJson1GetDataViewCommandError = async (output, context) => {
|
|
1536
|
+
const parsedOutput = {
|
|
1537
|
+
...output,
|
|
1538
|
+
body: await parseBody(output.body, context),
|
|
1539
|
+
};
|
|
1540
|
+
let response;
|
|
1541
|
+
let errorCode = "UnknownError";
|
|
1542
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
+
switch (errorCode) {
|
|
1544
|
+
case "ConflictException":
|
|
1545
|
+
case "com.amazonaws.finspacedata#ConflictException":
|
|
1546
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1547
|
+
case "InternalServerException":
|
|
1548
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1549
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1550
|
+
case "ResourceNotFoundException":
|
|
1551
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1552
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1553
|
+
case "ThrottlingException":
|
|
1554
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1555
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1556
|
+
case "ValidationException":
|
|
1557
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1558
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1559
|
+
default:
|
|
1560
|
+
const parsedBody = parsedOutput.body;
|
|
1561
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1562
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1563
|
+
$fault: "client",
|
|
1564
|
+
$metadata: deserializeMetadata(output),
|
|
1565
|
+
});
|
|
1566
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1567
|
+
}
|
|
1568
|
+
};
|
|
1569
|
+
const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = async (output, context) => {
|
|
1570
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1571
|
+
return deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError(output, context);
|
|
1572
|
+
}
|
|
1573
|
+
const contents = {
|
|
1574
|
+
$metadata: deserializeMetadata(output),
|
|
1575
|
+
credentials: undefined,
|
|
1576
|
+
durationInMinutes: undefined,
|
|
1577
|
+
};
|
|
1578
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1579
|
+
if (data.credentials !== undefined && data.credentials !== null) {
|
|
1580
|
+
contents.credentials = deserializeAws_restJson1Credentials(data.credentials, context);
|
|
1581
|
+
}
|
|
1582
|
+
if (data.durationInMinutes !== undefined && data.durationInMinutes !== null) {
|
|
1583
|
+
contents.durationInMinutes = (0, smithy_client_1.expectLong)(data.durationInMinutes);
|
|
1584
|
+
}
|
|
1585
|
+
return Promise.resolve(contents);
|
|
1586
|
+
};
|
|
1587
|
+
exports.deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand;
|
|
1588
|
+
const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = async (output, context) => {
|
|
1589
|
+
const parsedOutput = {
|
|
1590
|
+
...output,
|
|
1591
|
+
body: await parseBody(output.body, context),
|
|
1592
|
+
};
|
|
1593
|
+
let response;
|
|
1594
|
+
let errorCode = "UnknownError";
|
|
1595
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
+
switch (errorCode) {
|
|
1597
|
+
case "AccessDeniedException":
|
|
1598
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1599
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1600
|
+
case "InternalServerException":
|
|
1601
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1602
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1603
|
+
case "ThrottlingException":
|
|
1604
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1605
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1606
|
+
case "ValidationException":
|
|
1607
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1608
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1609
|
+
default:
|
|
1610
|
+
const parsedBody = parsedOutput.body;
|
|
1611
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1612
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1613
|
+
$fault: "client",
|
|
1614
|
+
$metadata: deserializeMetadata(output),
|
|
1615
|
+
});
|
|
1616
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1619
|
+
const deserializeAws_restJson1GetUserCommand = async (output, context) => {
|
|
1620
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1621
|
+
return deserializeAws_restJson1GetUserCommandError(output, context);
|
|
1622
|
+
}
|
|
1623
|
+
const contents = {
|
|
1624
|
+
$metadata: deserializeMetadata(output),
|
|
1625
|
+
apiAccess: undefined,
|
|
1626
|
+
apiAccessPrincipalArn: undefined,
|
|
1627
|
+
createTime: undefined,
|
|
1628
|
+
emailAddress: undefined,
|
|
1629
|
+
firstName: undefined,
|
|
1630
|
+
lastDisabledTime: undefined,
|
|
1631
|
+
lastEnabledTime: undefined,
|
|
1632
|
+
lastLoginTime: undefined,
|
|
1633
|
+
lastModifiedTime: undefined,
|
|
1634
|
+
lastName: undefined,
|
|
1635
|
+
status: undefined,
|
|
1636
|
+
type: undefined,
|
|
1637
|
+
userId: undefined,
|
|
1638
|
+
};
|
|
1639
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1640
|
+
if (data.apiAccess !== undefined && data.apiAccess !== null) {
|
|
1641
|
+
contents.apiAccess = (0, smithy_client_1.expectString)(data.apiAccess);
|
|
1642
|
+
}
|
|
1643
|
+
if (data.apiAccessPrincipalArn !== undefined && data.apiAccessPrincipalArn !== null) {
|
|
1644
|
+
contents.apiAccessPrincipalArn = (0, smithy_client_1.expectString)(data.apiAccessPrincipalArn);
|
|
1645
|
+
}
|
|
1646
|
+
if (data.createTime !== undefined && data.createTime !== null) {
|
|
1647
|
+
contents.createTime = (0, smithy_client_1.expectLong)(data.createTime);
|
|
1648
|
+
}
|
|
1649
|
+
if (data.emailAddress !== undefined && data.emailAddress !== null) {
|
|
1650
|
+
contents.emailAddress = (0, smithy_client_1.expectString)(data.emailAddress);
|
|
1651
|
+
}
|
|
1652
|
+
if (data.firstName !== undefined && data.firstName !== null) {
|
|
1653
|
+
contents.firstName = (0, smithy_client_1.expectString)(data.firstName);
|
|
1654
|
+
}
|
|
1655
|
+
if (data.lastDisabledTime !== undefined && data.lastDisabledTime !== null) {
|
|
1656
|
+
contents.lastDisabledTime = (0, smithy_client_1.expectLong)(data.lastDisabledTime);
|
|
1657
|
+
}
|
|
1658
|
+
if (data.lastEnabledTime !== undefined && data.lastEnabledTime !== null) {
|
|
1659
|
+
contents.lastEnabledTime = (0, smithy_client_1.expectLong)(data.lastEnabledTime);
|
|
1660
|
+
}
|
|
1661
|
+
if (data.lastLoginTime !== undefined && data.lastLoginTime !== null) {
|
|
1662
|
+
contents.lastLoginTime = (0, smithy_client_1.expectLong)(data.lastLoginTime);
|
|
1663
|
+
}
|
|
1664
|
+
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
1665
|
+
contents.lastModifiedTime = (0, smithy_client_1.expectLong)(data.lastModifiedTime);
|
|
1666
|
+
}
|
|
1667
|
+
if (data.lastName !== undefined && data.lastName !== null) {
|
|
1668
|
+
contents.lastName = (0, smithy_client_1.expectString)(data.lastName);
|
|
1669
|
+
}
|
|
1670
|
+
if (data.status !== undefined && data.status !== null) {
|
|
1671
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1672
|
+
}
|
|
1673
|
+
if (data.type !== undefined && data.type !== null) {
|
|
1674
|
+
contents.type = (0, smithy_client_1.expectString)(data.type);
|
|
1675
|
+
}
|
|
1676
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
1677
|
+
contents.userId = (0, smithy_client_1.expectString)(data.userId);
|
|
1678
|
+
}
|
|
1679
|
+
return Promise.resolve(contents);
|
|
1680
|
+
};
|
|
1681
|
+
exports.deserializeAws_restJson1GetUserCommand = deserializeAws_restJson1GetUserCommand;
|
|
1682
|
+
const deserializeAws_restJson1GetUserCommandError = async (output, context) => {
|
|
1683
|
+
const parsedOutput = {
|
|
1684
|
+
...output,
|
|
1685
|
+
body: await parseBody(output.body, context),
|
|
1686
|
+
};
|
|
1687
|
+
let response;
|
|
1688
|
+
let errorCode = "UnknownError";
|
|
1689
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
|
+
switch (errorCode) {
|
|
1691
|
+
case "AccessDeniedException":
|
|
1692
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1693
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1694
|
+
case "InternalServerException":
|
|
1695
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1696
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1697
|
+
case "ResourceNotFoundException":
|
|
1698
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1699
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1700
|
+
case "ThrottlingException":
|
|
1701
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1702
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1703
|
+
case "ValidationException":
|
|
1704
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1705
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1706
|
+
default:
|
|
1707
|
+
const parsedBody = parsedOutput.body;
|
|
1708
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1709
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1710
|
+
$fault: "client",
|
|
1711
|
+
$metadata: deserializeMetadata(output),
|
|
1712
|
+
});
|
|
1713
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1714
|
+
}
|
|
1715
|
+
};
|
|
1716
|
+
const deserializeAws_restJson1GetWorkingLocationCommand = async (output, context) => {
|
|
1717
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1718
|
+
return deserializeAws_restJson1GetWorkingLocationCommandError(output, context);
|
|
1719
|
+
}
|
|
1720
|
+
const contents = {
|
|
1721
|
+
$metadata: deserializeMetadata(output),
|
|
1722
|
+
s3Bucket: undefined,
|
|
1723
|
+
s3Path: undefined,
|
|
1724
|
+
s3Uri: undefined,
|
|
1725
|
+
};
|
|
1726
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1727
|
+
if (data.s3Bucket !== undefined && data.s3Bucket !== null) {
|
|
1728
|
+
contents.s3Bucket = (0, smithy_client_1.expectString)(data.s3Bucket);
|
|
1729
|
+
}
|
|
1730
|
+
if (data.s3Path !== undefined && data.s3Path !== null) {
|
|
1731
|
+
contents.s3Path = (0, smithy_client_1.expectString)(data.s3Path);
|
|
1732
|
+
}
|
|
1733
|
+
if (data.s3Uri !== undefined && data.s3Uri !== null) {
|
|
1734
|
+
contents.s3Uri = (0, smithy_client_1.expectString)(data.s3Uri);
|
|
1735
|
+
}
|
|
1736
|
+
return Promise.resolve(contents);
|
|
1737
|
+
};
|
|
1738
|
+
exports.deserializeAws_restJson1GetWorkingLocationCommand = deserializeAws_restJson1GetWorkingLocationCommand;
|
|
1739
|
+
const deserializeAws_restJson1GetWorkingLocationCommandError = async (output, context) => {
|
|
1740
|
+
const parsedOutput = {
|
|
1741
|
+
...output,
|
|
1742
|
+
body: await parseBody(output.body, context),
|
|
1743
|
+
};
|
|
1744
|
+
let response;
|
|
1745
|
+
let errorCode = "UnknownError";
|
|
1746
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
+
switch (errorCode) {
|
|
1748
|
+
case "AccessDeniedException":
|
|
1749
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1750
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1751
|
+
case "InternalServerException":
|
|
1752
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1753
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1754
|
+
case "ThrottlingException":
|
|
1755
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1756
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1757
|
+
case "ValidationException":
|
|
1758
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1759
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1760
|
+
default:
|
|
1761
|
+
const parsedBody = parsedOutput.body;
|
|
1762
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1763
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1764
|
+
$fault: "client",
|
|
1765
|
+
$metadata: deserializeMetadata(output),
|
|
1766
|
+
});
|
|
1767
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1768
|
+
}
|
|
1769
|
+
};
|
|
1770
|
+
const deserializeAws_restJson1ListChangesetsCommand = async (output, context) => {
|
|
1771
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1772
|
+
return deserializeAws_restJson1ListChangesetsCommandError(output, context);
|
|
748
1773
|
}
|
|
749
|
-
|
|
750
|
-
|
|
1774
|
+
const contents = {
|
|
1775
|
+
$metadata: deserializeMetadata(output),
|
|
1776
|
+
changesets: undefined,
|
|
1777
|
+
nextToken: undefined,
|
|
1778
|
+
};
|
|
1779
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1780
|
+
if (data.changesets !== undefined && data.changesets !== null) {
|
|
1781
|
+
contents.changesets = deserializeAws_restJson1ChangesetList(data.changesets, context);
|
|
751
1782
|
}
|
|
752
|
-
if (data.
|
|
753
|
-
contents.
|
|
1783
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1784
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
754
1785
|
}
|
|
755
1786
|
return Promise.resolve(contents);
|
|
756
1787
|
};
|
|
757
|
-
exports.
|
|
758
|
-
const
|
|
1788
|
+
exports.deserializeAws_restJson1ListChangesetsCommand = deserializeAws_restJson1ListChangesetsCommand;
|
|
1789
|
+
const deserializeAws_restJson1ListChangesetsCommandError = async (output, context) => {
|
|
759
1790
|
const parsedOutput = {
|
|
760
1791
|
...output,
|
|
761
1792
|
body: await parseBody(output.body, context),
|
|
@@ -789,61 +1820,29 @@ const deserializeAws_restJson1GetChangesetCommandError = async (output, context)
|
|
|
789
1820
|
$fault: "client",
|
|
790
1821
|
$metadata: deserializeMetadata(output),
|
|
791
1822
|
});
|
|
792
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1823
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
793
1824
|
}
|
|
794
1825
|
};
|
|
795
|
-
const
|
|
1826
|
+
const deserializeAws_restJson1ListDatasetsCommand = async (output, context) => {
|
|
796
1827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
797
|
-
return
|
|
1828
|
+
return deserializeAws_restJson1ListDatasetsCommandError(output, context);
|
|
798
1829
|
}
|
|
799
1830
|
const contents = {
|
|
800
1831
|
$metadata: deserializeMetadata(output),
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
datasetArn: undefined,
|
|
804
|
-
datasetDescription: undefined,
|
|
805
|
-
datasetId: undefined,
|
|
806
|
-
datasetTitle: undefined,
|
|
807
|
-
kind: undefined,
|
|
808
|
-
lastModifiedTime: undefined,
|
|
809
|
-
schemaDefinition: undefined,
|
|
810
|
-
status: undefined,
|
|
1832
|
+
datasets: undefined,
|
|
1833
|
+
nextToken: undefined,
|
|
811
1834
|
};
|
|
812
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
813
|
-
if (data.
|
|
814
|
-
contents.
|
|
815
|
-
}
|
|
816
|
-
if (data.createTime !== undefined && data.createTime !== null) {
|
|
817
|
-
contents.createTime = smithy_client_1.expectLong(data.createTime);
|
|
818
|
-
}
|
|
819
|
-
if (data.datasetArn !== undefined && data.datasetArn !== null) {
|
|
820
|
-
contents.datasetArn = smithy_client_1.expectString(data.datasetArn);
|
|
821
|
-
}
|
|
822
|
-
if (data.datasetDescription !== undefined && data.datasetDescription !== null) {
|
|
823
|
-
contents.datasetDescription = smithy_client_1.expectString(data.datasetDescription);
|
|
824
|
-
}
|
|
825
|
-
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
826
|
-
contents.datasetId = smithy_client_1.expectString(data.datasetId);
|
|
827
|
-
}
|
|
828
|
-
if (data.datasetTitle !== undefined && data.datasetTitle !== null) {
|
|
829
|
-
contents.datasetTitle = smithy_client_1.expectString(data.datasetTitle);
|
|
830
|
-
}
|
|
831
|
-
if (data.kind !== undefined && data.kind !== null) {
|
|
832
|
-
contents.kind = smithy_client_1.expectString(data.kind);
|
|
833
|
-
}
|
|
834
|
-
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
835
|
-
contents.lastModifiedTime = smithy_client_1.expectLong(data.lastModifiedTime);
|
|
836
|
-
}
|
|
837
|
-
if (data.schemaDefinition !== undefined && data.schemaDefinition !== null) {
|
|
838
|
-
contents.schemaDefinition = deserializeAws_restJson1SchemaUnion(data.schemaDefinition, context);
|
|
1835
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1836
|
+
if (data.datasets !== undefined && data.datasets !== null) {
|
|
1837
|
+
contents.datasets = deserializeAws_restJson1DatasetList(data.datasets, context);
|
|
839
1838
|
}
|
|
840
|
-
if (data.
|
|
841
|
-
contents.
|
|
1839
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1840
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
842
1841
|
}
|
|
843
1842
|
return Promise.resolve(contents);
|
|
844
1843
|
};
|
|
845
|
-
exports.
|
|
846
|
-
const
|
|
1844
|
+
exports.deserializeAws_restJson1ListDatasetsCommand = deserializeAws_restJson1ListDatasetsCommand;
|
|
1845
|
+
const deserializeAws_restJson1ListDatasetsCommandError = async (output, context) => {
|
|
847
1846
|
const parsedOutput = {
|
|
848
1847
|
...output,
|
|
849
1848
|
body: await parseBody(output.body, context),
|
|
@@ -852,9 +1851,6 @@ const deserializeAws_restJson1GetDatasetCommandError = async (output, context) =
|
|
|
852
1851
|
let errorCode = "UnknownError";
|
|
853
1852
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
1853
|
switch (errorCode) {
|
|
855
|
-
case "AccessDeniedException":
|
|
856
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
857
|
-
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
858
1854
|
case "ConflictException":
|
|
859
1855
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
860
1856
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -877,69 +1873,29 @@ const deserializeAws_restJson1GetDatasetCommandError = async (output, context) =
|
|
|
877
1873
|
$fault: "client",
|
|
878
1874
|
$metadata: deserializeMetadata(output),
|
|
879
1875
|
});
|
|
880
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1876
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
881
1877
|
}
|
|
882
1878
|
};
|
|
883
|
-
const
|
|
1879
|
+
const deserializeAws_restJson1ListDataViewsCommand = async (output, context) => {
|
|
884
1880
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
885
|
-
return
|
|
1881
|
+
return deserializeAws_restJson1ListDataViewsCommandError(output, context);
|
|
886
1882
|
}
|
|
887
1883
|
const contents = {
|
|
888
1884
|
$metadata: deserializeMetadata(output),
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
createTime: undefined,
|
|
892
|
-
dataViewArn: undefined,
|
|
893
|
-
dataViewId: undefined,
|
|
894
|
-
datasetId: undefined,
|
|
895
|
-
destinationTypeParams: undefined,
|
|
896
|
-
errorInfo: undefined,
|
|
897
|
-
lastModifiedTime: undefined,
|
|
898
|
-
partitionColumns: undefined,
|
|
899
|
-
sortColumns: undefined,
|
|
900
|
-
status: undefined,
|
|
1885
|
+
dataViews: undefined,
|
|
1886
|
+
nextToken: undefined,
|
|
901
1887
|
};
|
|
902
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
903
|
-
if (data.
|
|
904
|
-
contents.
|
|
905
|
-
}
|
|
906
|
-
if (data.autoUpdate !== undefined && data.autoUpdate !== null) {
|
|
907
|
-
contents.autoUpdate = smithy_client_1.expectBoolean(data.autoUpdate);
|
|
908
|
-
}
|
|
909
|
-
if (data.createTime !== undefined && data.createTime !== null) {
|
|
910
|
-
contents.createTime = smithy_client_1.expectLong(data.createTime);
|
|
911
|
-
}
|
|
912
|
-
if (data.dataViewArn !== undefined && data.dataViewArn !== null) {
|
|
913
|
-
contents.dataViewArn = smithy_client_1.expectString(data.dataViewArn);
|
|
914
|
-
}
|
|
915
|
-
if (data.dataViewId !== undefined && data.dataViewId !== null) {
|
|
916
|
-
contents.dataViewId = smithy_client_1.expectString(data.dataViewId);
|
|
917
|
-
}
|
|
918
|
-
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
919
|
-
contents.datasetId = smithy_client_1.expectString(data.datasetId);
|
|
920
|
-
}
|
|
921
|
-
if (data.destinationTypeParams !== undefined && data.destinationTypeParams !== null) {
|
|
922
|
-
contents.destinationTypeParams = deserializeAws_restJson1DataViewDestinationTypeParams(data.destinationTypeParams, context);
|
|
923
|
-
}
|
|
924
|
-
if (data.errorInfo !== undefined && data.errorInfo !== null) {
|
|
925
|
-
contents.errorInfo = deserializeAws_restJson1DataViewErrorInfo(data.errorInfo, context);
|
|
926
|
-
}
|
|
927
|
-
if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
|
|
928
|
-
contents.lastModifiedTime = smithy_client_1.expectLong(data.lastModifiedTime);
|
|
929
|
-
}
|
|
930
|
-
if (data.partitionColumns !== undefined && data.partitionColumns !== null) {
|
|
931
|
-
contents.partitionColumns = deserializeAws_restJson1PartitionColumnList(data.partitionColumns, context);
|
|
932
|
-
}
|
|
933
|
-
if (data.sortColumns !== undefined && data.sortColumns !== null) {
|
|
934
|
-
contents.sortColumns = deserializeAws_restJson1SortColumnList(data.sortColumns, context);
|
|
1888
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1889
|
+
if (data.dataViews !== undefined && data.dataViews !== null) {
|
|
1890
|
+
contents.dataViews = deserializeAws_restJson1DataViewList(data.dataViews, context);
|
|
935
1891
|
}
|
|
936
|
-
if (data.
|
|
937
|
-
contents.
|
|
1892
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1893
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
938
1894
|
}
|
|
939
1895
|
return Promise.resolve(contents);
|
|
940
1896
|
};
|
|
941
|
-
exports.
|
|
942
|
-
const
|
|
1897
|
+
exports.deserializeAws_restJson1ListDataViewsCommand = deserializeAws_restJson1ListDataViewsCommand;
|
|
1898
|
+
const deserializeAws_restJson1ListDataViewsCommandError = async (output, context) => {
|
|
943
1899
|
const parsedOutput = {
|
|
944
1900
|
...output,
|
|
945
1901
|
body: await parseBody(output.body, context),
|
|
@@ -970,29 +1926,29 @@ const deserializeAws_restJson1GetDataViewCommandError = async (output, context)
|
|
|
970
1926
|
$fault: "client",
|
|
971
1927
|
$metadata: deserializeMetadata(output),
|
|
972
1928
|
});
|
|
973
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1929
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
974
1930
|
}
|
|
975
1931
|
};
|
|
976
|
-
const
|
|
1932
|
+
const deserializeAws_restJson1ListPermissionGroupsCommand = async (output, context) => {
|
|
977
1933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
978
|
-
return
|
|
1934
|
+
return deserializeAws_restJson1ListPermissionGroupsCommandError(output, context);
|
|
979
1935
|
}
|
|
980
1936
|
const contents = {
|
|
981
1937
|
$metadata: deserializeMetadata(output),
|
|
982
|
-
|
|
983
|
-
|
|
1938
|
+
nextToken: undefined,
|
|
1939
|
+
permissionGroups: undefined,
|
|
984
1940
|
};
|
|
985
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
986
|
-
if (data.
|
|
987
|
-
contents.
|
|
1941
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1942
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1943
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
988
1944
|
}
|
|
989
|
-
if (data.
|
|
990
|
-
contents.
|
|
1945
|
+
if (data.permissionGroups !== undefined && data.permissionGroups !== null) {
|
|
1946
|
+
contents.permissionGroups = deserializeAws_restJson1PermissionGroupList(data.permissionGroups, context);
|
|
991
1947
|
}
|
|
992
1948
|
return Promise.resolve(contents);
|
|
993
1949
|
};
|
|
994
|
-
exports.
|
|
995
|
-
const
|
|
1950
|
+
exports.deserializeAws_restJson1ListPermissionGroupsCommand = deserializeAws_restJson1ListPermissionGroupsCommand;
|
|
1951
|
+
const deserializeAws_restJson1ListPermissionGroupsCommandError = async (output, context) => {
|
|
996
1952
|
const parsedOutput = {
|
|
997
1953
|
...output,
|
|
998
1954
|
body: await parseBody(output.body, context),
|
|
@@ -1020,33 +1976,29 @@ const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = asy
|
|
|
1020
1976
|
$fault: "client",
|
|
1021
1977
|
$metadata: deserializeMetadata(output),
|
|
1022
1978
|
});
|
|
1023
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1979
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1024
1980
|
}
|
|
1025
1981
|
};
|
|
1026
|
-
const
|
|
1982
|
+
const deserializeAws_restJson1ListUsersCommand = async (output, context) => {
|
|
1027
1983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
1984
|
+
return deserializeAws_restJson1ListUsersCommandError(output, context);
|
|
1029
1985
|
}
|
|
1030
1986
|
const contents = {
|
|
1031
1987
|
$metadata: deserializeMetadata(output),
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
s3Uri: undefined,
|
|
1988
|
+
nextToken: undefined,
|
|
1989
|
+
users: undefined,
|
|
1035
1990
|
};
|
|
1036
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1037
|
-
if (data.
|
|
1038
|
-
contents.
|
|
1039
|
-
}
|
|
1040
|
-
if (data.s3Path !== undefined && data.s3Path !== null) {
|
|
1041
|
-
contents.s3Path = smithy_client_1.expectString(data.s3Path);
|
|
1991
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1992
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1993
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1042
1994
|
}
|
|
1043
|
-
if (data.
|
|
1044
|
-
contents.
|
|
1995
|
+
if (data.users !== undefined && data.users !== null) {
|
|
1996
|
+
contents.users = deserializeAws_restJson1UserList(data.users, context);
|
|
1045
1997
|
}
|
|
1046
1998
|
return Promise.resolve(contents);
|
|
1047
1999
|
};
|
|
1048
|
-
exports.
|
|
1049
|
-
const
|
|
2000
|
+
exports.deserializeAws_restJson1ListUsersCommand = deserializeAws_restJson1ListUsersCommand;
|
|
2001
|
+
const deserializeAws_restJson1ListUsersCommandError = async (output, context) => {
|
|
1050
2002
|
const parsedOutput = {
|
|
1051
2003
|
...output,
|
|
1052
2004
|
body: await parseBody(output.body, context),
|
|
@@ -1074,29 +2026,29 @@ const deserializeAws_restJson1GetWorkingLocationCommandError = async (output, co
|
|
|
1074
2026
|
$fault: "client",
|
|
1075
2027
|
$metadata: deserializeMetadata(output),
|
|
1076
2028
|
});
|
|
1077
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2029
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1078
2030
|
}
|
|
1079
2031
|
};
|
|
1080
|
-
const
|
|
2032
|
+
const deserializeAws_restJson1ResetUserPasswordCommand = async (output, context) => {
|
|
1081
2033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1082
|
-
return
|
|
2034
|
+
return deserializeAws_restJson1ResetUserPasswordCommandError(output, context);
|
|
1083
2035
|
}
|
|
1084
2036
|
const contents = {
|
|
1085
2037
|
$metadata: deserializeMetadata(output),
|
|
1086
|
-
|
|
1087
|
-
|
|
2038
|
+
temporaryPassword: undefined,
|
|
2039
|
+
userId: undefined,
|
|
1088
2040
|
};
|
|
1089
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1090
|
-
if (data.
|
|
1091
|
-
contents.
|
|
2041
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2042
|
+
if (data.temporaryPassword !== undefined && data.temporaryPassword !== null) {
|
|
2043
|
+
contents.temporaryPassword = (0, smithy_client_1.expectString)(data.temporaryPassword);
|
|
1092
2044
|
}
|
|
1093
|
-
if (data.
|
|
1094
|
-
contents.
|
|
2045
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
2046
|
+
contents.userId = (0, smithy_client_1.expectString)(data.userId);
|
|
1095
2047
|
}
|
|
1096
2048
|
return Promise.resolve(contents);
|
|
1097
2049
|
};
|
|
1098
|
-
exports.
|
|
1099
|
-
const
|
|
2050
|
+
exports.deserializeAws_restJson1ResetUserPasswordCommand = deserializeAws_restJson1ResetUserPasswordCommand;
|
|
2051
|
+
const deserializeAws_restJson1ResetUserPasswordCommandError = async (output, context) => {
|
|
1100
2052
|
const parsedOutput = {
|
|
1101
2053
|
...output,
|
|
1102
2054
|
body: await parseBody(output.body, context),
|
|
@@ -1130,29 +2082,29 @@ const deserializeAws_restJson1ListChangesetsCommandError = async (output, contex
|
|
|
1130
2082
|
$fault: "client",
|
|
1131
2083
|
$metadata: deserializeMetadata(output),
|
|
1132
2084
|
});
|
|
1133
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2085
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1134
2086
|
}
|
|
1135
2087
|
};
|
|
1136
|
-
const
|
|
2088
|
+
const deserializeAws_restJson1UpdateChangesetCommand = async (output, context) => {
|
|
1137
2089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1138
|
-
return
|
|
2090
|
+
return deserializeAws_restJson1UpdateChangesetCommandError(output, context);
|
|
1139
2091
|
}
|
|
1140
2092
|
const contents = {
|
|
1141
2093
|
$metadata: deserializeMetadata(output),
|
|
1142
|
-
|
|
1143
|
-
|
|
2094
|
+
changesetId: undefined,
|
|
2095
|
+
datasetId: undefined,
|
|
1144
2096
|
};
|
|
1145
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1146
|
-
if (data.
|
|
1147
|
-
contents.
|
|
2097
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2098
|
+
if (data.changesetId !== undefined && data.changesetId !== null) {
|
|
2099
|
+
contents.changesetId = (0, smithy_client_1.expectString)(data.changesetId);
|
|
1148
2100
|
}
|
|
1149
|
-
if (data.
|
|
1150
|
-
contents.
|
|
2101
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
2102
|
+
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
1151
2103
|
}
|
|
1152
2104
|
return Promise.resolve(contents);
|
|
1153
2105
|
};
|
|
1154
|
-
exports.
|
|
1155
|
-
const
|
|
2106
|
+
exports.deserializeAws_restJson1UpdateChangesetCommand = deserializeAws_restJson1UpdateChangesetCommand;
|
|
2107
|
+
const deserializeAws_restJson1UpdateChangesetCommandError = async (output, context) => {
|
|
1156
2108
|
const parsedOutput = {
|
|
1157
2109
|
...output,
|
|
1158
2110
|
body: await parseBody(output.body, context),
|
|
@@ -1161,6 +2113,9 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
|
|
|
1161
2113
|
let errorCode = "UnknownError";
|
|
1162
2114
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
2115
|
switch (errorCode) {
|
|
2116
|
+
case "AccessDeniedException":
|
|
2117
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2118
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1164
2119
|
case "ConflictException":
|
|
1165
2120
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
1166
2121
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -1183,29 +2138,25 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
|
|
|
1183
2138
|
$fault: "client",
|
|
1184
2139
|
$metadata: deserializeMetadata(output),
|
|
1185
2140
|
});
|
|
1186
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2141
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1187
2142
|
}
|
|
1188
2143
|
};
|
|
1189
|
-
const
|
|
2144
|
+
const deserializeAws_restJson1UpdateDatasetCommand = async (output, context) => {
|
|
1190
2145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1191
|
-
return
|
|
2146
|
+
return deserializeAws_restJson1UpdateDatasetCommandError(output, context);
|
|
1192
2147
|
}
|
|
1193
2148
|
const contents = {
|
|
1194
2149
|
$metadata: deserializeMetadata(output),
|
|
1195
|
-
|
|
1196
|
-
nextToken: undefined,
|
|
2150
|
+
datasetId: undefined,
|
|
1197
2151
|
};
|
|
1198
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1199
|
-
if (data.
|
|
1200
|
-
contents.
|
|
1201
|
-
}
|
|
1202
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1203
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2152
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2153
|
+
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
2154
|
+
contents.datasetId = (0, smithy_client_1.expectString)(data.datasetId);
|
|
1204
2155
|
}
|
|
1205
2156
|
return Promise.resolve(contents);
|
|
1206
2157
|
};
|
|
1207
|
-
exports.
|
|
1208
|
-
const
|
|
2158
|
+
exports.deserializeAws_restJson1UpdateDatasetCommand = deserializeAws_restJson1UpdateDatasetCommand;
|
|
2159
|
+
const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context) => {
|
|
1209
2160
|
const parsedOutput = {
|
|
1210
2161
|
...output,
|
|
1211
2162
|
body: await parseBody(output.body, context),
|
|
@@ -1214,6 +2165,9 @@ const deserializeAws_restJson1ListDataViewsCommandError = async (output, context
|
|
|
1214
2165
|
let errorCode = "UnknownError";
|
|
1215
2166
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
2167
|
switch (errorCode) {
|
|
2168
|
+
case "AccessDeniedException":
|
|
2169
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2170
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1217
2171
|
case "ConflictException":
|
|
1218
2172
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
1219
2173
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
@@ -1236,29 +2190,25 @@ const deserializeAws_restJson1ListDataViewsCommandError = async (output, context
|
|
|
1236
2190
|
$fault: "client",
|
|
1237
2191
|
$metadata: deserializeMetadata(output),
|
|
1238
2192
|
});
|
|
1239
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2193
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1240
2194
|
}
|
|
1241
2195
|
};
|
|
1242
|
-
const
|
|
2196
|
+
const deserializeAws_restJson1UpdatePermissionGroupCommand = async (output, context) => {
|
|
1243
2197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1244
|
-
return
|
|
2198
|
+
return deserializeAws_restJson1UpdatePermissionGroupCommandError(output, context);
|
|
1245
2199
|
}
|
|
1246
2200
|
const contents = {
|
|
1247
2201
|
$metadata: deserializeMetadata(output),
|
|
1248
|
-
|
|
1249
|
-
datasetId: undefined,
|
|
2202
|
+
permissionGroupId: undefined,
|
|
1250
2203
|
};
|
|
1251
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1252
|
-
if (data.
|
|
1253
|
-
contents.
|
|
1254
|
-
}
|
|
1255
|
-
if (data.datasetId !== undefined && data.datasetId !== null) {
|
|
1256
|
-
contents.datasetId = smithy_client_1.expectString(data.datasetId);
|
|
2204
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2205
|
+
if (data.permissionGroupId !== undefined && data.permissionGroupId !== null) {
|
|
2206
|
+
contents.permissionGroupId = (0, smithy_client_1.expectString)(data.permissionGroupId);
|
|
1257
2207
|
}
|
|
1258
2208
|
return Promise.resolve(contents);
|
|
1259
2209
|
};
|
|
1260
|
-
exports.
|
|
1261
|
-
const
|
|
2210
|
+
exports.deserializeAws_restJson1UpdatePermissionGroupCommand = deserializeAws_restJson1UpdatePermissionGroupCommand;
|
|
2211
|
+
const deserializeAws_restJson1UpdatePermissionGroupCommandError = async (output, context) => {
|
|
1262
2212
|
const parsedOutput = {
|
|
1263
2213
|
...output,
|
|
1264
2214
|
body: await parseBody(output.body, context),
|
|
@@ -1292,25 +2242,25 @@ const deserializeAws_restJson1UpdateChangesetCommandError = async (output, conte
|
|
|
1292
2242
|
$fault: "client",
|
|
1293
2243
|
$metadata: deserializeMetadata(output),
|
|
1294
2244
|
});
|
|
1295
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2245
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1296
2246
|
}
|
|
1297
2247
|
};
|
|
1298
|
-
const
|
|
2248
|
+
const deserializeAws_restJson1UpdateUserCommand = async (output, context) => {
|
|
1299
2249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1300
|
-
return
|
|
2250
|
+
return deserializeAws_restJson1UpdateUserCommandError(output, context);
|
|
1301
2251
|
}
|
|
1302
2252
|
const contents = {
|
|
1303
2253
|
$metadata: deserializeMetadata(output),
|
|
1304
|
-
|
|
2254
|
+
userId: undefined,
|
|
1305
2255
|
};
|
|
1306
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1307
|
-
if (data.
|
|
1308
|
-
contents.
|
|
2256
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2257
|
+
if (data.userId !== undefined && data.userId !== null) {
|
|
2258
|
+
contents.userId = (0, smithy_client_1.expectString)(data.userId);
|
|
1309
2259
|
}
|
|
1310
2260
|
return Promise.resolve(contents);
|
|
1311
2261
|
};
|
|
1312
|
-
exports.
|
|
1313
|
-
const
|
|
2262
|
+
exports.deserializeAws_restJson1UpdateUserCommand = deserializeAws_restJson1UpdateUserCommand;
|
|
2263
|
+
const deserializeAws_restJson1UpdateUserCommandError = async (output, context) => {
|
|
1314
2264
|
const parsedOutput = {
|
|
1315
2265
|
...output,
|
|
1316
2266
|
body: await parseBody(output.body, context),
|
|
@@ -1344,68 +2294,74 @@ const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context
|
|
|
1344
2294
|
$fault: "client",
|
|
1345
2295
|
$metadata: deserializeMetadata(output),
|
|
1346
2296
|
});
|
|
1347
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2297
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1348
2298
|
}
|
|
1349
2299
|
};
|
|
1350
2300
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1351
2301
|
const contents = {};
|
|
1352
2302
|
const data = parsedOutput.body;
|
|
1353
2303
|
if (data.message !== undefined && data.message !== null) {
|
|
1354
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2304
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1355
2305
|
}
|
|
1356
2306
|
const exception = new models_0_1.AccessDeniedException({
|
|
1357
2307
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1358
2308
|
...contents,
|
|
1359
2309
|
});
|
|
1360
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2310
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1361
2311
|
};
|
|
1362
2312
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1363
2313
|
const contents = {};
|
|
1364
2314
|
const data = parsedOutput.body;
|
|
1365
2315
|
if (data.message !== undefined && data.message !== null) {
|
|
1366
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2316
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2317
|
+
}
|
|
2318
|
+
if (data.reason !== undefined && data.reason !== null) {
|
|
2319
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
1367
2320
|
}
|
|
1368
2321
|
const exception = new models_0_1.ConflictException({
|
|
1369
2322
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1370
2323
|
...contents,
|
|
1371
2324
|
});
|
|
1372
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2325
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1373
2326
|
};
|
|
1374
2327
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1375
2328
|
const contents = {};
|
|
1376
2329
|
const data = parsedOutput.body;
|
|
1377
2330
|
if (data.message !== undefined && data.message !== null) {
|
|
1378
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2331
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1379
2332
|
}
|
|
1380
2333
|
const exception = new models_0_1.InternalServerException({
|
|
1381
2334
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1382
2335
|
...contents,
|
|
1383
2336
|
});
|
|
1384
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2337
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1385
2338
|
};
|
|
1386
2339
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1387
2340
|
const contents = {};
|
|
1388
2341
|
const data = parsedOutput.body;
|
|
1389
2342
|
if (data.message !== undefined && data.message !== null) {
|
|
1390
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2343
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1391
2344
|
}
|
|
1392
2345
|
const exception = new models_0_1.LimitExceededException({
|
|
1393
2346
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1394
2347
|
...contents,
|
|
1395
2348
|
});
|
|
1396
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2349
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1397
2350
|
};
|
|
1398
2351
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1399
2352
|
const contents = {};
|
|
1400
2353
|
const data = parsedOutput.body;
|
|
1401
2354
|
if (data.message !== undefined && data.message !== null) {
|
|
1402
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2355
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2356
|
+
}
|
|
2357
|
+
if (data.reason !== undefined && data.reason !== null) {
|
|
2358
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
1403
2359
|
}
|
|
1404
2360
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1405
2361
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1406
2362
|
...contents,
|
|
1407
2363
|
});
|
|
1408
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2364
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1409
2365
|
};
|
|
1410
2366
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1411
2367
|
const contents = {};
|
|
@@ -1414,19 +2370,32 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1414
2370
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1415
2371
|
...contents,
|
|
1416
2372
|
});
|
|
1417
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2373
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1418
2374
|
};
|
|
1419
2375
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1420
2376
|
const contents = {};
|
|
1421
2377
|
const data = parsedOutput.body;
|
|
1422
2378
|
if (data.message !== undefined && data.message !== null) {
|
|
1423
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2379
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2380
|
+
}
|
|
2381
|
+
if (data.reason !== undefined && data.reason !== null) {
|
|
2382
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
1424
2383
|
}
|
|
1425
2384
|
const exception = new models_0_1.ValidationException({
|
|
1426
2385
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1427
2386
|
...contents,
|
|
1428
2387
|
});
|
|
1429
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2388
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2389
|
+
};
|
|
2390
|
+
const serializeAws_restJson1ApplicationPermissionList = (input, context) => {
|
|
2391
|
+
return input
|
|
2392
|
+
.filter((e) => e != null)
|
|
2393
|
+
.map((entry) => {
|
|
2394
|
+
if (entry === null) {
|
|
2395
|
+
return null;
|
|
2396
|
+
}
|
|
2397
|
+
return entry;
|
|
2398
|
+
});
|
|
1430
2399
|
};
|
|
1431
2400
|
const serializeAws_restJson1ColumnDefinition = (input, context) => {
|
|
1432
2401
|
return {
|
|
@@ -1573,10 +2542,21 @@ const serializeAws_restJson1SourceParams = (input, context) => {
|
|
|
1573
2542
|
};
|
|
1574
2543
|
}, {});
|
|
1575
2544
|
};
|
|
2545
|
+
const deserializeAws_restJson1ApplicationPermissionList = (output, context) => {
|
|
2546
|
+
const retVal = (output || [])
|
|
2547
|
+
.filter((e) => e != null)
|
|
2548
|
+
.map((entry) => {
|
|
2549
|
+
if (entry === null) {
|
|
2550
|
+
return null;
|
|
2551
|
+
}
|
|
2552
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2553
|
+
});
|
|
2554
|
+
return retVal;
|
|
2555
|
+
};
|
|
1576
2556
|
const deserializeAws_restJson1ChangesetErrorInfo = (output, context) => {
|
|
1577
2557
|
return {
|
|
1578
|
-
errorCategory: smithy_client_1.expectString(output.errorCategory),
|
|
1579
|
-
errorMessage: smithy_client_1.expectString(output.errorMessage),
|
|
2558
|
+
errorCategory: (0, smithy_client_1.expectString)(output.errorCategory),
|
|
2559
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
1580
2560
|
};
|
|
1581
2561
|
};
|
|
1582
2562
|
const deserializeAws_restJson1ChangesetList = (output, context) => {
|
|
@@ -1592,13 +2572,13 @@ const deserializeAws_restJson1ChangesetList = (output, context) => {
|
|
|
1592
2572
|
};
|
|
1593
2573
|
const deserializeAws_restJson1ChangesetSummary = (output, context) => {
|
|
1594
2574
|
return {
|
|
1595
|
-
activeFromTimestamp: smithy_client_1.expectLong(output.activeFromTimestamp),
|
|
1596
|
-
activeUntilTimestamp: smithy_client_1.expectLong(output.activeUntilTimestamp),
|
|
1597
|
-
changeType: smithy_client_1.expectString(output.changeType),
|
|
1598
|
-
changesetArn: smithy_client_1.expectString(output.changesetArn),
|
|
1599
|
-
changesetId: smithy_client_1.expectString(output.changesetId),
|
|
1600
|
-
createTime: smithy_client_1.expectLong(output.createTime),
|
|
1601
|
-
datasetId: smithy_client_1.expectString(output.datasetId),
|
|
2575
|
+
activeFromTimestamp: (0, smithy_client_1.expectLong)(output.activeFromTimestamp),
|
|
2576
|
+
activeUntilTimestamp: (0, smithy_client_1.expectLong)(output.activeUntilTimestamp),
|
|
2577
|
+
changeType: (0, smithy_client_1.expectString)(output.changeType),
|
|
2578
|
+
changesetArn: (0, smithy_client_1.expectString)(output.changesetArn),
|
|
2579
|
+
changesetId: (0, smithy_client_1.expectString)(output.changesetId),
|
|
2580
|
+
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2581
|
+
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
1602
2582
|
errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
|
|
1603
2583
|
? deserializeAws_restJson1ChangesetErrorInfo(output.errorInfo, context)
|
|
1604
2584
|
: undefined,
|
|
@@ -1608,16 +2588,16 @@ const deserializeAws_restJson1ChangesetSummary = (output, context) => {
|
|
|
1608
2588
|
sourceParams: output.sourceParams !== undefined && output.sourceParams !== null
|
|
1609
2589
|
? deserializeAws_restJson1SourceParams(output.sourceParams, context)
|
|
1610
2590
|
: undefined,
|
|
1611
|
-
status: smithy_client_1.expectString(output.status),
|
|
1612
|
-
updatedByChangesetId: smithy_client_1.expectString(output.updatedByChangesetId),
|
|
1613
|
-
updatesChangesetId: smithy_client_1.expectString(output.updatesChangesetId),
|
|
2591
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2592
|
+
updatedByChangesetId: (0, smithy_client_1.expectString)(output.updatedByChangesetId),
|
|
2593
|
+
updatesChangesetId: (0, smithy_client_1.expectString)(output.updatesChangesetId),
|
|
1614
2594
|
};
|
|
1615
2595
|
};
|
|
1616
2596
|
const deserializeAws_restJson1ColumnDefinition = (output, context) => {
|
|
1617
2597
|
return {
|
|
1618
|
-
columnDescription: smithy_client_1.expectString(output.columnDescription),
|
|
1619
|
-
columnName: smithy_client_1.expectString(output.columnName),
|
|
1620
|
-
dataType: smithy_client_1.expectString(output.dataType),
|
|
2598
|
+
columnDescription: (0, smithy_client_1.expectString)(output.columnDescription),
|
|
2599
|
+
columnName: (0, smithy_client_1.expectString)(output.columnName),
|
|
2600
|
+
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
1621
2601
|
};
|
|
1622
2602
|
};
|
|
1623
2603
|
const deserializeAws_restJson1ColumnList = (output, context) => {
|
|
@@ -1638,27 +2618,27 @@ const deserializeAws_restJson1ColumnNameList = (output, context) => {
|
|
|
1638
2618
|
if (entry === null) {
|
|
1639
2619
|
return null;
|
|
1640
2620
|
}
|
|
1641
|
-
return smithy_client_1.expectString(entry);
|
|
2621
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1642
2622
|
});
|
|
1643
2623
|
return retVal;
|
|
1644
2624
|
};
|
|
1645
2625
|
const deserializeAws_restJson1Credentials = (output, context) => {
|
|
1646
2626
|
return {
|
|
1647
|
-
accessKeyId: smithy_client_1.expectString(output.accessKeyId),
|
|
1648
|
-
secretAccessKey: smithy_client_1.expectString(output.secretAccessKey),
|
|
1649
|
-
sessionToken: smithy_client_1.expectString(output.sessionToken),
|
|
2627
|
+
accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId),
|
|
2628
|
+
secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey),
|
|
2629
|
+
sessionToken: (0, smithy_client_1.expectString)(output.sessionToken),
|
|
1650
2630
|
};
|
|
1651
2631
|
};
|
|
1652
2632
|
const deserializeAws_restJson1Dataset = (output, context) => {
|
|
1653
2633
|
return {
|
|
1654
|
-
alias: smithy_client_1.expectString(output.alias),
|
|
1655
|
-
createTime: smithy_client_1.expectLong(output.createTime),
|
|
1656
|
-
datasetArn: smithy_client_1.expectString(output.datasetArn),
|
|
1657
|
-
datasetDescription: smithy_client_1.expectString(output.datasetDescription),
|
|
1658
|
-
datasetId: smithy_client_1.expectString(output.datasetId),
|
|
1659
|
-
datasetTitle: smithy_client_1.expectString(output.datasetTitle),
|
|
1660
|
-
kind: smithy_client_1.expectString(output.kind),
|
|
1661
|
-
lastModifiedTime: smithy_client_1.expectLong(output.lastModifiedTime),
|
|
2634
|
+
alias: (0, smithy_client_1.expectString)(output.alias),
|
|
2635
|
+
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2636
|
+
datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
|
|
2637
|
+
datasetDescription: (0, smithy_client_1.expectString)(output.datasetDescription),
|
|
2638
|
+
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
2639
|
+
datasetTitle: (0, smithy_client_1.expectString)(output.datasetTitle),
|
|
2640
|
+
kind: (0, smithy_client_1.expectString)(output.kind),
|
|
2641
|
+
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
1662
2642
|
ownerInfo: output.ownerInfo !== undefined && output.ownerInfo !== null
|
|
1663
2643
|
? deserializeAws_restJson1DatasetOwnerInfo(output.ownerInfo, context)
|
|
1664
2644
|
: undefined,
|
|
@@ -1680,15 +2660,15 @@ const deserializeAws_restJson1DatasetList = (output, context) => {
|
|
|
1680
2660
|
};
|
|
1681
2661
|
const deserializeAws_restJson1DatasetOwnerInfo = (output, context) => {
|
|
1682
2662
|
return {
|
|
1683
|
-
email: smithy_client_1.expectString(output.email),
|
|
1684
|
-
name: smithy_client_1.expectString(output.name),
|
|
1685
|
-
phoneNumber: smithy_client_1.expectString(output.phoneNumber),
|
|
2663
|
+
email: (0, smithy_client_1.expectString)(output.email),
|
|
2664
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2665
|
+
phoneNumber: (0, smithy_client_1.expectString)(output.phoneNumber),
|
|
1686
2666
|
};
|
|
1687
2667
|
};
|
|
1688
2668
|
const deserializeAws_restJson1DataViewDestinationTypeParams = (output, context) => {
|
|
1689
2669
|
return {
|
|
1690
|
-
destinationType: smithy_client_1.expectString(output.destinationType),
|
|
1691
|
-
s3DestinationExportFileFormat: smithy_client_1.expectString(output.s3DestinationExportFileFormat),
|
|
2670
|
+
destinationType: (0, smithy_client_1.expectString)(output.destinationType),
|
|
2671
|
+
s3DestinationExportFileFormat: (0, smithy_client_1.expectString)(output.s3DestinationExportFileFormat),
|
|
1692
2672
|
s3DestinationExportFileFormatOptions: output.s3DestinationExportFileFormatOptions !== undefined && output.s3DestinationExportFileFormatOptions !== null
|
|
1693
2673
|
? deserializeAws_restJson1S3DestinationFormatOptions(output.s3DestinationExportFileFormatOptions, context)
|
|
1694
2674
|
: undefined,
|
|
@@ -1696,8 +2676,8 @@ const deserializeAws_restJson1DataViewDestinationTypeParams = (output, context)
|
|
|
1696
2676
|
};
|
|
1697
2677
|
const deserializeAws_restJson1DataViewErrorInfo = (output, context) => {
|
|
1698
2678
|
return {
|
|
1699
|
-
errorCategory: smithy_client_1.expectString(output.errorCategory),
|
|
1700
|
-
errorMessage: smithy_client_1.expectString(output.errorMessage),
|
|
2679
|
+
errorCategory: (0, smithy_client_1.expectString)(output.errorCategory),
|
|
2680
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
1701
2681
|
};
|
|
1702
2682
|
};
|
|
1703
2683
|
const deserializeAws_restJson1DataViewList = (output, context) => {
|
|
@@ -1713,26 +2693,26 @@ const deserializeAws_restJson1DataViewList = (output, context) => {
|
|
|
1713
2693
|
};
|
|
1714
2694
|
const deserializeAws_restJson1DataViewSummary = (output, context) => {
|
|
1715
2695
|
return {
|
|
1716
|
-
asOfTimestamp: smithy_client_1.expectLong(output.asOfTimestamp),
|
|
1717
|
-
autoUpdate: smithy_client_1.expectBoolean(output.autoUpdate),
|
|
1718
|
-
createTime: smithy_client_1.expectLong(output.createTime),
|
|
1719
|
-
dataViewArn: smithy_client_1.expectString(output.dataViewArn),
|
|
1720
|
-
dataViewId: smithy_client_1.expectString(output.dataViewId),
|
|
1721
|
-
datasetId: smithy_client_1.expectString(output.datasetId),
|
|
2696
|
+
asOfTimestamp: (0, smithy_client_1.expectLong)(output.asOfTimestamp),
|
|
2697
|
+
autoUpdate: (0, smithy_client_1.expectBoolean)(output.autoUpdate),
|
|
2698
|
+
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2699
|
+
dataViewArn: (0, smithy_client_1.expectString)(output.dataViewArn),
|
|
2700
|
+
dataViewId: (0, smithy_client_1.expectString)(output.dataViewId),
|
|
2701
|
+
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
1722
2702
|
destinationTypeProperties: output.destinationTypeProperties !== undefined && output.destinationTypeProperties !== null
|
|
1723
2703
|
? deserializeAws_restJson1DataViewDestinationTypeParams(output.destinationTypeProperties, context)
|
|
1724
2704
|
: undefined,
|
|
1725
2705
|
errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
|
|
1726
2706
|
? deserializeAws_restJson1DataViewErrorInfo(output.errorInfo, context)
|
|
1727
2707
|
: undefined,
|
|
1728
|
-
lastModifiedTime: smithy_client_1.expectLong(output.lastModifiedTime),
|
|
2708
|
+
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
1729
2709
|
partitionColumns: output.partitionColumns !== undefined && output.partitionColumns !== null
|
|
1730
2710
|
? deserializeAws_restJson1PartitionColumnList(output.partitionColumns, context)
|
|
1731
2711
|
: undefined,
|
|
1732
2712
|
sortColumns: output.sortColumns !== undefined && output.sortColumns !== null
|
|
1733
2713
|
? deserializeAws_restJson1SortColumnList(output.sortColumns, context)
|
|
1734
2714
|
: undefined,
|
|
1735
|
-
status: smithy_client_1.expectString(output.status),
|
|
2715
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1736
2716
|
};
|
|
1737
2717
|
};
|
|
1738
2718
|
const deserializeAws_restJson1FormatParams = (output, context) => {
|
|
@@ -1742,7 +2722,7 @@ const deserializeAws_restJson1FormatParams = (output, context) => {
|
|
|
1742
2722
|
}
|
|
1743
2723
|
return {
|
|
1744
2724
|
...acc,
|
|
1745
|
-
[key]: smithy_client_1.expectString(value),
|
|
2725
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1746
2726
|
};
|
|
1747
2727
|
}, {});
|
|
1748
2728
|
};
|
|
@@ -1753,7 +2733,30 @@ const deserializeAws_restJson1PartitionColumnList = (output, context) => {
|
|
|
1753
2733
|
if (entry === null) {
|
|
1754
2734
|
return null;
|
|
1755
2735
|
}
|
|
1756
|
-
return smithy_client_1.expectString(entry);
|
|
2736
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2737
|
+
});
|
|
2738
|
+
return retVal;
|
|
2739
|
+
};
|
|
2740
|
+
const deserializeAws_restJson1PermissionGroup = (output, context) => {
|
|
2741
|
+
return {
|
|
2742
|
+
applicationPermissions: output.applicationPermissions !== undefined && output.applicationPermissions !== null
|
|
2743
|
+
? deserializeAws_restJson1ApplicationPermissionList(output.applicationPermissions, context)
|
|
2744
|
+
: undefined,
|
|
2745
|
+
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2746
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
2747
|
+
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
2748
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2749
|
+
permissionGroupId: (0, smithy_client_1.expectString)(output.permissionGroupId),
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2752
|
+
const deserializeAws_restJson1PermissionGroupList = (output, context) => {
|
|
2753
|
+
const retVal = (output || [])
|
|
2754
|
+
.filter((e) => e != null)
|
|
2755
|
+
.map((entry) => {
|
|
2756
|
+
if (entry === null) {
|
|
2757
|
+
return null;
|
|
2758
|
+
}
|
|
2759
|
+
return deserializeAws_restJson1PermissionGroup(entry, context);
|
|
1757
2760
|
});
|
|
1758
2761
|
return retVal;
|
|
1759
2762
|
};
|
|
@@ -1764,7 +2767,7 @@ const deserializeAws_restJson1S3DestinationFormatOptions = (output, context) =>
|
|
|
1764
2767
|
}
|
|
1765
2768
|
return {
|
|
1766
2769
|
...acc,
|
|
1767
|
-
[key]: smithy_client_1.expectString(value),
|
|
2770
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1768
2771
|
};
|
|
1769
2772
|
}, {});
|
|
1770
2773
|
};
|
|
@@ -1792,7 +2795,7 @@ const deserializeAws_restJson1SortColumnList = (output, context) => {
|
|
|
1792
2795
|
if (entry === null) {
|
|
1793
2796
|
return null;
|
|
1794
2797
|
}
|
|
1795
|
-
return smithy_client_1.expectString(entry);
|
|
2798
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1796
2799
|
});
|
|
1797
2800
|
return retVal;
|
|
1798
2801
|
};
|
|
@@ -1803,10 +2806,38 @@ const deserializeAws_restJson1SourceParams = (output, context) => {
|
|
|
1803
2806
|
}
|
|
1804
2807
|
return {
|
|
1805
2808
|
...acc,
|
|
1806
|
-
[key]: smithy_client_1.expectString(value),
|
|
2809
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1807
2810
|
};
|
|
1808
2811
|
}, {});
|
|
1809
2812
|
};
|
|
2813
|
+
const deserializeAws_restJson1User = (output, context) => {
|
|
2814
|
+
return {
|
|
2815
|
+
apiAccess: (0, smithy_client_1.expectString)(output.apiAccess),
|
|
2816
|
+
apiAccessPrincipalArn: (0, smithy_client_1.expectString)(output.apiAccessPrincipalArn),
|
|
2817
|
+
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
2818
|
+
emailAddress: (0, smithy_client_1.expectString)(output.emailAddress),
|
|
2819
|
+
firstName: (0, smithy_client_1.expectString)(output.firstName),
|
|
2820
|
+
lastDisabledTime: (0, smithy_client_1.expectLong)(output.lastDisabledTime),
|
|
2821
|
+
lastEnabledTime: (0, smithy_client_1.expectLong)(output.lastEnabledTime),
|
|
2822
|
+
lastLoginTime: (0, smithy_client_1.expectLong)(output.lastLoginTime),
|
|
2823
|
+
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
2824
|
+
lastName: (0, smithy_client_1.expectString)(output.lastName),
|
|
2825
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2826
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2827
|
+
userId: (0, smithy_client_1.expectString)(output.userId),
|
|
2828
|
+
};
|
|
2829
|
+
};
|
|
2830
|
+
const deserializeAws_restJson1UserList = (output, context) => {
|
|
2831
|
+
const retVal = (output || [])
|
|
2832
|
+
.filter((e) => e != null)
|
|
2833
|
+
.map((entry) => {
|
|
2834
|
+
if (entry === null) {
|
|
2835
|
+
return null;
|
|
2836
|
+
}
|
|
2837
|
+
return deserializeAws_restJson1User(entry, context);
|
|
2838
|
+
});
|
|
2839
|
+
return retVal;
|
|
2840
|
+
};
|
|
1810
2841
|
const deserializeMetadata = (output) => {
|
|
1811
2842
|
var _a;
|
|
1812
2843
|
return ({
|