@aws-sdk/client-finspace-data 3.118.1 → 3.127.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 +31 -0
- package/dist-cjs/FinspaceData.js +15 -0
- package/dist-cjs/commands/GetExternalDataViewAccessDetailsCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +30 -2
- package/dist-cjs/protocols/Aws_restJson1.js +334 -232
- package/dist-es/FinspaceData.js +15 -0
- package/dist-es/commands/GetExternalDataViewAccessDetailsCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/protocols/Aws_restJson1.js +328 -198
- package/dist-types/FinspaceData.d.ts +15 -0
- package/dist-types/FinspaceDataClient.d.ts +3 -2
- package/dist-types/commands/GetExternalDataViewAccessDetailsCommand.d.ts +43 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +90 -3
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/FinspaceData.d.ts +5 -0
- package/dist-types/ts3.4/FinspaceDataClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/GetExternalDataViewAccessDetailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +46 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +26 -26
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateUserCommand = exports.deserializeAws_restJson1UpdatePermissionGroupCommand = exports.deserializeAws_restJson1UpdateDatasetCommand = exports.deserializeAws_restJson1UpdateChangesetCommand = exports.deserializeAws_restJson1ResetUserPasswordCommand = exports.deserializeAws_restJson1ListUsersByPermissionGroupCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListPermissionGroupsByUserCommand = exports.deserializeAws_restJson1ListPermissionGroupsCommand = exports.deserializeAws_restJson1ListDataViewsCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1GetWorkingLocationCommand = exports.deserializeAws_restJson1GetUserCommand = exports.deserializeAws_restJson1GetProgrammaticAccessCredentialsCommand = exports.deserializeAws_restJson1GetPermissionGroupCommand = exports.deserializeAws_restJson1GetExternalDataViewAccessDetailsCommand = exports.deserializeAws_restJson1GetDataViewCommand = exports.deserializeAws_restJson1GetDatasetCommand = exports.deserializeAws_restJson1GetChangesetCommand = exports.deserializeAws_restJson1EnableUserCommand = exports.deserializeAws_restJson1DisassociateUserFromPermissionGroupCommand = 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.deserializeAws_restJson1AssociateUserToPermissionGroupCommand = exports.serializeAws_restJson1UpdateUserCommand = exports.serializeAws_restJson1UpdatePermissionGroupCommand = exports.serializeAws_restJson1UpdateDatasetCommand = exports.serializeAws_restJson1UpdateChangesetCommand = exports.serializeAws_restJson1ResetUserPasswordCommand = exports.serializeAws_restJson1ListUsersByPermissionGroupCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListPermissionGroupsByUserCommand = exports.serializeAws_restJson1ListPermissionGroupsCommand = exports.serializeAws_restJson1ListDataViewsCommand = exports.serializeAws_restJson1ListDatasetsCommand = exports.serializeAws_restJson1ListChangesetsCommand = exports.serializeAws_restJson1GetWorkingLocationCommand = exports.serializeAws_restJson1GetUserCommand = exports.serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = exports.serializeAws_restJson1GetPermissionGroupCommand = exports.serializeAws_restJson1GetExternalDataViewAccessDetailsCommand = exports.serializeAws_restJson1GetDataViewCommand = exports.serializeAws_restJson1GetDatasetCommand = exports.serializeAws_restJson1GetChangesetCommand = exports.serializeAws_restJson1EnableUserCommand = exports.serializeAws_restJson1DisassociateUserFromPermissionGroupCommand = exports.serializeAws_restJson1DisableUserCommand = exports.serializeAws_restJson1DeletePermissionGroupCommand = exports.serializeAws_restJson1DeleteDatasetCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreatePermissionGroupCommand = exports.serializeAws_restJson1CreateDataViewCommand = exports.serializeAws_restJson1CreateDatasetCommand = exports.serializeAws_restJson1CreateChangesetCommand = exports.serializeAws_restJson1AssociateUserToPermissionGroupCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateUserCommand = exports.deserializeAws_restJson1UpdatePermissionGroupCommand = exports.deserializeAws_restJson1UpdateDatasetCommand = exports.deserializeAws_restJson1UpdateChangesetCommand = exports.deserializeAws_restJson1ResetUserPasswordCommand = exports.deserializeAws_restJson1ListUsersByPermissionGroupCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListPermissionGroupsByUserCommand = exports.deserializeAws_restJson1ListPermissionGroupsCommand = exports.deserializeAws_restJson1ListDataViewsCommand = exports.deserializeAws_restJson1ListDatasetsCommand = exports.deserializeAws_restJson1ListChangesetsCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -69,12 +69,14 @@ const serializeAws_restJson1CreateChangesetCommand = async (input, context) => {
|
|
|
69
69
|
}
|
|
70
70
|
let body;
|
|
71
71
|
body = JSON.stringify({
|
|
72
|
-
...(input.changeType
|
|
72
|
+
...(input.changeType != null && { changeType: input.changeType }),
|
|
73
73
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
74
|
-
...(input.formatParams
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
...(input.formatParams != null && {
|
|
75
|
+
formatParams: serializeAws_restJson1FormatParams(input.formatParams, context),
|
|
76
|
+
}),
|
|
77
|
+
...(input.sourceParams != null && {
|
|
78
|
+
sourceParams: serializeAws_restJson1SourceParams(input.sourceParams, context),
|
|
79
|
+
}),
|
|
78
80
|
});
|
|
79
81
|
return new protocol_http_1.HttpRequest({
|
|
80
82
|
protocol,
|
|
@@ -96,20 +98,16 @@ const serializeAws_restJson1CreateDatasetCommand = async (input, context) => {
|
|
|
96
98
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
|
|
97
99
|
let body;
|
|
98
100
|
body = JSON.stringify({
|
|
99
|
-
...(input.alias
|
|
101
|
+
...(input.alias != null && { alias: input.alias }),
|
|
100
102
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
101
|
-
...(input.datasetDescription
|
|
102
|
-
|
|
103
|
-
...(input.
|
|
104
|
-
...(input.
|
|
105
|
-
...(input.
|
|
106
|
-
input.ownerInfo !== null && { ownerInfo: serializeAws_restJson1DatasetOwnerInfo(input.ownerInfo, context) }),
|
|
107
|
-
...(input.permissionGroupParams !== undefined &&
|
|
108
|
-
input.permissionGroupParams !== null && {
|
|
103
|
+
...(input.datasetDescription != null && { datasetDescription: input.datasetDescription }),
|
|
104
|
+
...(input.datasetTitle != null && { datasetTitle: input.datasetTitle }),
|
|
105
|
+
...(input.kind != null && { kind: input.kind }),
|
|
106
|
+
...(input.ownerInfo != null && { ownerInfo: serializeAws_restJson1DatasetOwnerInfo(input.ownerInfo, context) }),
|
|
107
|
+
...(input.permissionGroupParams != null && {
|
|
109
108
|
permissionGroupParams: serializeAws_restJson1PermissionGroupParams(input.permissionGroupParams, context),
|
|
110
109
|
}),
|
|
111
|
-
...(input.schemaDefinition
|
|
112
|
-
input.schemaDefinition !== null && {
|
|
110
|
+
...(input.schemaDefinition != null && {
|
|
113
111
|
schemaDefinition: serializeAws_restJson1SchemaUnion(input.schemaDefinition, context),
|
|
114
112
|
}),
|
|
115
113
|
});
|
|
@@ -143,19 +141,16 @@ const serializeAws_restJson1CreateDataViewCommand = async (input, context) => {
|
|
|
143
141
|
}
|
|
144
142
|
let body;
|
|
145
143
|
body = JSON.stringify({
|
|
146
|
-
...(input.asOfTimestamp
|
|
147
|
-
...(input.autoUpdate
|
|
144
|
+
...(input.asOfTimestamp != null && { asOfTimestamp: input.asOfTimestamp }),
|
|
145
|
+
...(input.autoUpdate != null && { autoUpdate: input.autoUpdate }),
|
|
148
146
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
149
|
-
...(input.destinationTypeParams
|
|
150
|
-
input.destinationTypeParams !== null && {
|
|
147
|
+
...(input.destinationTypeParams != null && {
|
|
151
148
|
destinationTypeParams: serializeAws_restJson1DataViewDestinationTypeParams(input.destinationTypeParams, context),
|
|
152
149
|
}),
|
|
153
|
-
...(input.partitionColumns
|
|
154
|
-
input.partitionColumns !== null && {
|
|
150
|
+
...(input.partitionColumns != null && {
|
|
155
151
|
partitionColumns: serializeAws_restJson1PartitionColumnList(input.partitionColumns, context),
|
|
156
152
|
}),
|
|
157
|
-
...(input.sortColumns
|
|
158
|
-
input.sortColumns !== null && { sortColumns: serializeAws_restJson1SortColumnList(input.sortColumns, context) }),
|
|
153
|
+
...(input.sortColumns != null && { sortColumns: serializeAws_restJson1SortColumnList(input.sortColumns, context) }),
|
|
159
154
|
});
|
|
160
155
|
return new protocol_http_1.HttpRequest({
|
|
161
156
|
protocol,
|
|
@@ -177,13 +172,12 @@ const serializeAws_restJson1CreatePermissionGroupCommand = async (input, context
|
|
|
177
172
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
|
|
178
173
|
let body;
|
|
179
174
|
body = JSON.stringify({
|
|
180
|
-
...(input.applicationPermissions
|
|
181
|
-
input.applicationPermissions !== null && {
|
|
175
|
+
...(input.applicationPermissions != null && {
|
|
182
176
|
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
183
177
|
}),
|
|
184
178
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
185
|
-
...(input.description
|
|
186
|
-
...(input.name
|
|
179
|
+
...(input.description != null && { description: input.description }),
|
|
180
|
+
...(input.name != null && { name: input.name }),
|
|
187
181
|
});
|
|
188
182
|
return new protocol_http_1.HttpRequest({
|
|
189
183
|
protocol,
|
|
@@ -205,14 +199,13 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
|
|
|
205
199
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user";
|
|
206
200
|
let body;
|
|
207
201
|
body = JSON.stringify({
|
|
208
|
-
...(input.ApiAccess
|
|
209
|
-
...(input.apiAccessPrincipalArn
|
|
210
|
-
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
202
|
+
...(input.ApiAccess != null && { ApiAccess: input.ApiAccess }),
|
|
203
|
+
...(input.apiAccessPrincipalArn != null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
211
204
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
212
|
-
...(input.emailAddress
|
|
213
|
-
...(input.firstName
|
|
214
|
-
...(input.lastName
|
|
215
|
-
...(input.type
|
|
205
|
+
...(input.emailAddress != null && { emailAddress: input.emailAddress }),
|
|
206
|
+
...(input.firstName != null && { firstName: input.firstName }),
|
|
207
|
+
...(input.lastName != null && { lastName: input.lastName }),
|
|
208
|
+
...(input.type != null && { type: input.type }),
|
|
216
209
|
});
|
|
217
210
|
return new protocol_http_1.HttpRequest({
|
|
218
211
|
protocol,
|
|
@@ -490,6 +483,43 @@ const serializeAws_restJson1GetDataViewCommand = async (input, context) => {
|
|
|
490
483
|
});
|
|
491
484
|
};
|
|
492
485
|
exports.serializeAws_restJson1GetDataViewCommand = serializeAws_restJson1GetDataViewCommand;
|
|
486
|
+
const serializeAws_restJson1GetExternalDataViewAccessDetailsCommand = async (input, context) => {
|
|
487
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
488
|
+
const headers = {};
|
|
489
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
490
|
+
"/datasets/{datasetId}/dataviewsv2/{dataViewId}/external-access-details";
|
|
491
|
+
if (input.dataViewId !== undefined) {
|
|
492
|
+
const labelValue = input.dataViewId;
|
|
493
|
+
if (labelValue.length <= 0) {
|
|
494
|
+
throw new Error("Empty value provided for input HTTP label: dataViewId.");
|
|
495
|
+
}
|
|
496
|
+
resolvedPath = resolvedPath.replace("{dataViewId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
497
|
+
}
|
|
498
|
+
else {
|
|
499
|
+
throw new Error("No value provided for input HTTP label: dataViewId.");
|
|
500
|
+
}
|
|
501
|
+
if (input.datasetId !== undefined) {
|
|
502
|
+
const labelValue = input.datasetId;
|
|
503
|
+
if (labelValue.length <= 0) {
|
|
504
|
+
throw new Error("Empty value provided for input HTTP label: datasetId.");
|
|
505
|
+
}
|
|
506
|
+
resolvedPath = resolvedPath.replace("{datasetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
throw new Error("No value provided for input HTTP label: datasetId.");
|
|
510
|
+
}
|
|
511
|
+
let body;
|
|
512
|
+
return new protocol_http_1.HttpRequest({
|
|
513
|
+
protocol,
|
|
514
|
+
hostname,
|
|
515
|
+
port,
|
|
516
|
+
method: "POST",
|
|
517
|
+
headers,
|
|
518
|
+
path: resolvedPath,
|
|
519
|
+
body,
|
|
520
|
+
});
|
|
521
|
+
};
|
|
522
|
+
exports.serializeAws_restJson1GetExternalDataViewAccessDetailsCommand = serializeAws_restJson1GetExternalDataViewAccessDetailsCommand;
|
|
493
523
|
const serializeAws_restJson1GetPermissionGroupCommand = async (input, context) => {
|
|
494
524
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
495
525
|
const headers = {};
|
|
@@ -571,7 +601,7 @@ const serializeAws_restJson1GetWorkingLocationCommand = async (input, context) =
|
|
|
571
601
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workingLocationV1";
|
|
572
602
|
let body;
|
|
573
603
|
body = JSON.stringify({
|
|
574
|
-
...(input.locationType
|
|
604
|
+
...(input.locationType != null && { locationType: input.locationType }),
|
|
575
605
|
});
|
|
576
606
|
return new protocol_http_1.HttpRequest({
|
|
577
607
|
protocol,
|
|
@@ -835,10 +865,12 @@ const serializeAws_restJson1UpdateChangesetCommand = async (input, context) => {
|
|
|
835
865
|
let body;
|
|
836
866
|
body = JSON.stringify({
|
|
837
867
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
838
|
-
...(input.formatParams
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
868
|
+
...(input.formatParams != null && {
|
|
869
|
+
formatParams: serializeAws_restJson1FormatParams(input.formatParams, context),
|
|
870
|
+
}),
|
|
871
|
+
...(input.sourceParams != null && {
|
|
872
|
+
sourceParams: serializeAws_restJson1SourceParams(input.sourceParams, context),
|
|
873
|
+
}),
|
|
842
874
|
});
|
|
843
875
|
return new protocol_http_1.HttpRequest({
|
|
844
876
|
protocol,
|
|
@@ -870,14 +902,12 @@ const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
|
|
|
870
902
|
}
|
|
871
903
|
let body;
|
|
872
904
|
body = JSON.stringify({
|
|
873
|
-
...(input.alias
|
|
905
|
+
...(input.alias != null && { alias: input.alias }),
|
|
874
906
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
875
|
-
...(input.datasetDescription
|
|
876
|
-
|
|
877
|
-
...(input.
|
|
878
|
-
...(input.
|
|
879
|
-
...(input.schemaDefinition !== undefined &&
|
|
880
|
-
input.schemaDefinition !== null && {
|
|
907
|
+
...(input.datasetDescription != null && { datasetDescription: input.datasetDescription }),
|
|
908
|
+
...(input.datasetTitle != null && { datasetTitle: input.datasetTitle }),
|
|
909
|
+
...(input.kind != null && { kind: input.kind }),
|
|
910
|
+
...(input.schemaDefinition != null && {
|
|
881
911
|
schemaDefinition: serializeAws_restJson1SchemaUnion(input.schemaDefinition, context),
|
|
882
912
|
}),
|
|
883
913
|
});
|
|
@@ -911,13 +941,12 @@ const serializeAws_restJson1UpdatePermissionGroupCommand = async (input, context
|
|
|
911
941
|
}
|
|
912
942
|
let body;
|
|
913
943
|
body = JSON.stringify({
|
|
914
|
-
...(input.applicationPermissions
|
|
915
|
-
input.applicationPermissions !== null && {
|
|
944
|
+
...(input.applicationPermissions != null && {
|
|
916
945
|
applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
|
|
917
946
|
}),
|
|
918
947
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
919
|
-
...(input.description
|
|
920
|
-
...(input.name
|
|
948
|
+
...(input.description != null && { description: input.description }),
|
|
949
|
+
...(input.name != null && { name: input.name }),
|
|
921
950
|
});
|
|
922
951
|
return new protocol_http_1.HttpRequest({
|
|
923
952
|
protocol,
|
|
@@ -949,13 +978,12 @@ const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
|
|
|
949
978
|
}
|
|
950
979
|
let body;
|
|
951
980
|
body = JSON.stringify({
|
|
952
|
-
...(input.apiAccess
|
|
953
|
-
...(input.apiAccessPrincipalArn
|
|
954
|
-
input.apiAccessPrincipalArn !== null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
981
|
+
...(input.apiAccess != null && { apiAccess: input.apiAccess }),
|
|
982
|
+
...(input.apiAccessPrincipalArn != null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
|
|
955
983
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
956
|
-
...(input.firstName
|
|
957
|
-
...(input.lastName
|
|
958
|
-
...(input.type
|
|
984
|
+
...(input.firstName != null && { firstName: input.firstName }),
|
|
985
|
+
...(input.lastName != null && { lastName: input.lastName }),
|
|
986
|
+
...(input.type != null && { type: input.type }),
|
|
959
987
|
});
|
|
960
988
|
return new protocol_http_1.HttpRequest({
|
|
961
989
|
protocol,
|
|
@@ -989,8 +1017,7 @@ const deserializeAws_restJson1AssociateUserToPermissionGroupCommandError = async
|
|
|
989
1017
|
body: await parseBody(output.body, context),
|
|
990
1018
|
};
|
|
991
1019
|
let response;
|
|
992
|
-
|
|
993
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
994
1021
|
switch (errorCode) {
|
|
995
1022
|
case "AccessDeniedException":
|
|
996
1023
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1012,10 +1039,12 @@ const deserializeAws_restJson1AssociateUserToPermissionGroupCommandError = async
|
|
|
1012
1039
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1013
1040
|
default:
|
|
1014
1041
|
const parsedBody = parsedOutput.body;
|
|
1042
|
+
const $metadata = deserializeMetadata(output);
|
|
1043
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1015
1044
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1016
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1045
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1017
1046
|
$fault: "client",
|
|
1018
|
-
$metadata
|
|
1047
|
+
$metadata,
|
|
1019
1048
|
});
|
|
1020
1049
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1021
1050
|
}
|
|
@@ -1045,8 +1074,7 @@ const deserializeAws_restJson1CreateChangesetCommandError = async (output, conte
|
|
|
1045
1074
|
body: await parseBody(output.body, context),
|
|
1046
1075
|
};
|
|
1047
1076
|
let response;
|
|
1048
|
-
|
|
1049
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
1078
|
switch (errorCode) {
|
|
1051
1079
|
case "AccessDeniedException":
|
|
1052
1080
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1071,10 +1099,12 @@ const deserializeAws_restJson1CreateChangesetCommandError = async (output, conte
|
|
|
1071
1099
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1072
1100
|
default:
|
|
1073
1101
|
const parsedBody = parsedOutput.body;
|
|
1102
|
+
const $metadata = deserializeMetadata(output);
|
|
1103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1074
1104
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1076
1106
|
$fault: "client",
|
|
1077
|
-
$metadata
|
|
1107
|
+
$metadata,
|
|
1078
1108
|
});
|
|
1079
1109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1080
1110
|
}
|
|
@@ -1100,8 +1130,7 @@ const deserializeAws_restJson1CreateDatasetCommandError = async (output, context
|
|
|
1100
1130
|
body: await parseBody(output.body, context),
|
|
1101
1131
|
};
|
|
1102
1132
|
let response;
|
|
1103
|
-
|
|
1104
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
1134
|
switch (errorCode) {
|
|
1106
1135
|
case "AccessDeniedException":
|
|
1107
1136
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1126,10 +1155,12 @@ const deserializeAws_restJson1CreateDatasetCommandError = async (output, context
|
|
|
1126
1155
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1127
1156
|
default:
|
|
1128
1157
|
const parsedBody = parsedOutput.body;
|
|
1158
|
+
const $metadata = deserializeMetadata(output);
|
|
1159
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1129
1160
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1130
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1161
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1131
1162
|
$fault: "client",
|
|
1132
|
-
$metadata
|
|
1163
|
+
$metadata,
|
|
1133
1164
|
});
|
|
1134
1165
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1135
1166
|
}
|
|
@@ -1159,8 +1190,7 @@ const deserializeAws_restJson1CreateDataViewCommandError = async (output, contex
|
|
|
1159
1190
|
body: await parseBody(output.body, context),
|
|
1160
1191
|
};
|
|
1161
1192
|
let response;
|
|
1162
|
-
|
|
1163
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
1194
|
switch (errorCode) {
|
|
1165
1195
|
case "ConflictException":
|
|
1166
1196
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
@@ -1182,10 +1212,12 @@ const deserializeAws_restJson1CreateDataViewCommandError = async (output, contex
|
|
|
1182
1212
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1183
1213
|
default:
|
|
1184
1214
|
const parsedBody = parsedOutput.body;
|
|
1215
|
+
const $metadata = deserializeMetadata(output);
|
|
1216
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1185
1217
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1187
1219
|
$fault: "client",
|
|
1188
|
-
$metadata
|
|
1220
|
+
$metadata,
|
|
1189
1221
|
});
|
|
1190
1222
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1191
1223
|
}
|
|
@@ -1211,8 +1243,7 @@ const deserializeAws_restJson1CreatePermissionGroupCommandError = async (output,
|
|
|
1211
1243
|
body: await parseBody(output.body, context),
|
|
1212
1244
|
};
|
|
1213
1245
|
let response;
|
|
1214
|
-
|
|
1215
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
1247
|
switch (errorCode) {
|
|
1217
1248
|
case "AccessDeniedException":
|
|
1218
1249
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1234,10 +1265,12 @@ const deserializeAws_restJson1CreatePermissionGroupCommandError = async (output,
|
|
|
1234
1265
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1235
1266
|
default:
|
|
1236
1267
|
const parsedBody = parsedOutput.body;
|
|
1268
|
+
const $metadata = deserializeMetadata(output);
|
|
1269
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1237
1270
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1271
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1239
1272
|
$fault: "client",
|
|
1240
|
-
$metadata
|
|
1273
|
+
$metadata,
|
|
1241
1274
|
});
|
|
1242
1275
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1243
1276
|
}
|
|
@@ -1263,8 +1296,7 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
|
|
|
1263
1296
|
body: await parseBody(output.body, context),
|
|
1264
1297
|
};
|
|
1265
1298
|
let response;
|
|
1266
|
-
|
|
1267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1299
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
1300
|
switch (errorCode) {
|
|
1269
1301
|
case "AccessDeniedException":
|
|
1270
1302
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1286,10 +1318,12 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
|
|
|
1286
1318
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1287
1319
|
default:
|
|
1288
1320
|
const parsedBody = parsedOutput.body;
|
|
1321
|
+
const $metadata = deserializeMetadata(output);
|
|
1322
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1289
1323
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1290
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1291
1325
|
$fault: "client",
|
|
1292
|
-
$metadata
|
|
1326
|
+
$metadata,
|
|
1293
1327
|
});
|
|
1294
1328
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1295
1329
|
}
|
|
@@ -1315,8 +1349,7 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
|
|
|
1315
1349
|
body: await parseBody(output.body, context),
|
|
1316
1350
|
};
|
|
1317
1351
|
let response;
|
|
1318
|
-
|
|
1319
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1353
|
switch (errorCode) {
|
|
1321
1354
|
case "AccessDeniedException":
|
|
1322
1355
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1341,10 +1374,12 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
|
|
|
1341
1374
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1342
1375
|
default:
|
|
1343
1376
|
const parsedBody = parsedOutput.body;
|
|
1377
|
+
const $metadata = deserializeMetadata(output);
|
|
1378
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1344
1379
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1345
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1346
1381
|
$fault: "client",
|
|
1347
|
-
$metadata
|
|
1382
|
+
$metadata,
|
|
1348
1383
|
});
|
|
1349
1384
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1350
1385
|
}
|
|
@@ -1370,8 +1405,7 @@ const deserializeAws_restJson1DeletePermissionGroupCommandError = async (output,
|
|
|
1370
1405
|
body: await parseBody(output.body, context),
|
|
1371
1406
|
};
|
|
1372
1407
|
let response;
|
|
1373
|
-
|
|
1374
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
1409
|
switch (errorCode) {
|
|
1376
1410
|
case "AccessDeniedException":
|
|
1377
1411
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1396,10 +1430,12 @@ const deserializeAws_restJson1DeletePermissionGroupCommandError = async (output,
|
|
|
1396
1430
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1397
1431
|
default:
|
|
1398
1432
|
const parsedBody = parsedOutput.body;
|
|
1433
|
+
const $metadata = deserializeMetadata(output);
|
|
1434
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1399
1435
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1401
1437
|
$fault: "client",
|
|
1402
|
-
$metadata
|
|
1438
|
+
$metadata,
|
|
1403
1439
|
});
|
|
1404
1440
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1405
1441
|
}
|
|
@@ -1425,8 +1461,7 @@ const deserializeAws_restJson1DisableUserCommandError = async (output, context)
|
|
|
1425
1461
|
body: await parseBody(output.body, context),
|
|
1426
1462
|
};
|
|
1427
1463
|
let response;
|
|
1428
|
-
|
|
1429
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1465
|
switch (errorCode) {
|
|
1431
1466
|
case "AccessDeniedException":
|
|
1432
1467
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1448,10 +1483,12 @@ const deserializeAws_restJson1DisableUserCommandError = async (output, context)
|
|
|
1448
1483
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1449
1484
|
default:
|
|
1450
1485
|
const parsedBody = parsedOutput.body;
|
|
1486
|
+
const $metadata = deserializeMetadata(output);
|
|
1487
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1451
1488
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1452
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1489
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1453
1490
|
$fault: "client",
|
|
1454
|
-
$metadata
|
|
1491
|
+
$metadata,
|
|
1455
1492
|
});
|
|
1456
1493
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1457
1494
|
}
|
|
@@ -1477,8 +1514,7 @@ const deserializeAws_restJson1DisassociateUserFromPermissionGroupCommandError =
|
|
|
1477
1514
|
body: await parseBody(output.body, context),
|
|
1478
1515
|
};
|
|
1479
1516
|
let response;
|
|
1480
|
-
|
|
1481
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1517
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
1518
|
switch (errorCode) {
|
|
1483
1519
|
case "AccessDeniedException":
|
|
1484
1520
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1500,10 +1536,12 @@ const deserializeAws_restJson1DisassociateUserFromPermissionGroupCommandError =
|
|
|
1500
1536
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1501
1537
|
default:
|
|
1502
1538
|
const parsedBody = parsedOutput.body;
|
|
1539
|
+
const $metadata = deserializeMetadata(output);
|
|
1540
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1503
1541
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1504
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1542
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1505
1543
|
$fault: "client",
|
|
1506
|
-
$metadata
|
|
1544
|
+
$metadata,
|
|
1507
1545
|
});
|
|
1508
1546
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1509
1547
|
}
|
|
@@ -1529,8 +1567,7 @@ const deserializeAws_restJson1EnableUserCommandError = async (output, context) =
|
|
|
1529
1567
|
body: await parseBody(output.body, context),
|
|
1530
1568
|
};
|
|
1531
1569
|
let response;
|
|
1532
|
-
|
|
1533
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
1571
|
switch (errorCode) {
|
|
1535
1572
|
case "AccessDeniedException":
|
|
1536
1573
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1555,10 +1592,12 @@ const deserializeAws_restJson1EnableUserCommandError = async (output, context) =
|
|
|
1555
1592
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1556
1593
|
default:
|
|
1557
1594
|
const parsedBody = parsedOutput.body;
|
|
1595
|
+
const $metadata = deserializeMetadata(output);
|
|
1596
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1558
1597
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1559
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1598
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1560
1599
|
$fault: "client",
|
|
1561
|
-
$metadata
|
|
1600
|
+
$metadata,
|
|
1562
1601
|
});
|
|
1563
1602
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1564
1603
|
}
|
|
@@ -1632,8 +1671,7 @@ const deserializeAws_restJson1GetChangesetCommandError = async (output, context)
|
|
|
1632
1671
|
body: await parseBody(output.body, context),
|
|
1633
1672
|
};
|
|
1634
1673
|
let response;
|
|
1635
|
-
|
|
1636
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1637
1675
|
switch (errorCode) {
|
|
1638
1676
|
case "AccessDeniedException":
|
|
1639
1677
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1655,10 +1693,12 @@ const deserializeAws_restJson1GetChangesetCommandError = async (output, context)
|
|
|
1655
1693
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1656
1694
|
default:
|
|
1657
1695
|
const parsedBody = parsedOutput.body;
|
|
1696
|
+
const $metadata = deserializeMetadata(output);
|
|
1697
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1658
1698
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1659
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1699
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1660
1700
|
$fault: "client",
|
|
1661
|
-
$metadata
|
|
1701
|
+
$metadata,
|
|
1662
1702
|
});
|
|
1663
1703
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1664
1704
|
}
|
|
@@ -1720,8 +1760,7 @@ const deserializeAws_restJson1GetDatasetCommandError = async (output, context) =
|
|
|
1720
1760
|
body: await parseBody(output.body, context),
|
|
1721
1761
|
};
|
|
1722
1762
|
let response;
|
|
1723
|
-
|
|
1724
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1763
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1725
1764
|
switch (errorCode) {
|
|
1726
1765
|
case "AccessDeniedException":
|
|
1727
1766
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1743,10 +1782,12 @@ const deserializeAws_restJson1GetDatasetCommandError = async (output, context) =
|
|
|
1743
1782
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1744
1783
|
default:
|
|
1745
1784
|
const parsedBody = parsedOutput.body;
|
|
1785
|
+
const $metadata = deserializeMetadata(output);
|
|
1786
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1746
1787
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1788
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1748
1789
|
$fault: "client",
|
|
1749
|
-
$metadata
|
|
1790
|
+
$metadata,
|
|
1750
1791
|
});
|
|
1751
1792
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1752
1793
|
}
|
|
@@ -1816,8 +1857,7 @@ const deserializeAws_restJson1GetDataViewCommandError = async (output, context)
|
|
|
1816
1857
|
body: await parseBody(output.body, context),
|
|
1817
1858
|
};
|
|
1818
1859
|
let response;
|
|
1819
|
-
|
|
1820
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1860
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
1861
|
switch (errorCode) {
|
|
1822
1862
|
case "ConflictException":
|
|
1823
1863
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
@@ -1836,10 +1876,66 @@ const deserializeAws_restJson1GetDataViewCommandError = async (output, context)
|
|
|
1836
1876
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1837
1877
|
default:
|
|
1838
1878
|
const parsedBody = parsedOutput.body;
|
|
1879
|
+
const $metadata = deserializeMetadata(output);
|
|
1880
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1839
1881
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1840
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1882
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1841
1883
|
$fault: "client",
|
|
1842
|
-
$metadata
|
|
1884
|
+
$metadata,
|
|
1885
|
+
});
|
|
1886
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1887
|
+
}
|
|
1888
|
+
};
|
|
1889
|
+
const deserializeAws_restJson1GetExternalDataViewAccessDetailsCommand = async (output, context) => {
|
|
1890
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1891
|
+
return deserializeAws_restJson1GetExternalDataViewAccessDetailsCommandError(output, context);
|
|
1892
|
+
}
|
|
1893
|
+
const contents = {
|
|
1894
|
+
$metadata: deserializeMetadata(output),
|
|
1895
|
+
credentials: undefined,
|
|
1896
|
+
s3Location: undefined,
|
|
1897
|
+
};
|
|
1898
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1899
|
+
if (data.credentials !== undefined && data.credentials !== null) {
|
|
1900
|
+
contents.credentials = deserializeAws_restJson1AwsCredentials(data.credentials, context);
|
|
1901
|
+
}
|
|
1902
|
+
if (data.s3Location !== undefined && data.s3Location !== null) {
|
|
1903
|
+
contents.s3Location = deserializeAws_restJson1S3Location(data.s3Location, context);
|
|
1904
|
+
}
|
|
1905
|
+
return Promise.resolve(contents);
|
|
1906
|
+
};
|
|
1907
|
+
exports.deserializeAws_restJson1GetExternalDataViewAccessDetailsCommand = deserializeAws_restJson1GetExternalDataViewAccessDetailsCommand;
|
|
1908
|
+
const deserializeAws_restJson1GetExternalDataViewAccessDetailsCommandError = async (output, context) => {
|
|
1909
|
+
const parsedOutput = {
|
|
1910
|
+
...output,
|
|
1911
|
+
body: await parseBody(output.body, context),
|
|
1912
|
+
};
|
|
1913
|
+
let response;
|
|
1914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
|
+
switch (errorCode) {
|
|
1916
|
+
case "AccessDeniedException":
|
|
1917
|
+
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1918
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1919
|
+
case "InternalServerException":
|
|
1920
|
+
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1921
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1922
|
+
case "ResourceNotFoundException":
|
|
1923
|
+
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1924
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1925
|
+
case "ThrottlingException":
|
|
1926
|
+
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1927
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1928
|
+
case "ValidationException":
|
|
1929
|
+
case "com.amazonaws.finspacedata#ValidationException":
|
|
1930
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1931
|
+
default:
|
|
1932
|
+
const parsedBody = parsedOutput.body;
|
|
1933
|
+
const $metadata = deserializeMetadata(output);
|
|
1934
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1935
|
+
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1936
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1937
|
+
$fault: "client",
|
|
1938
|
+
$metadata,
|
|
1843
1939
|
});
|
|
1844
1940
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1845
1941
|
}
|
|
@@ -1865,8 +1961,7 @@ const deserializeAws_restJson1GetPermissionGroupCommandError = async (output, co
|
|
|
1865
1961
|
body: await parseBody(output.body, context),
|
|
1866
1962
|
};
|
|
1867
1963
|
let response;
|
|
1868
|
-
|
|
1869
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
1965
|
switch (errorCode) {
|
|
1871
1966
|
case "AccessDeniedException":
|
|
1872
1967
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1885,10 +1980,12 @@ const deserializeAws_restJson1GetPermissionGroupCommandError = async (output, co
|
|
|
1885
1980
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1886
1981
|
default:
|
|
1887
1982
|
const parsedBody = parsedOutput.body;
|
|
1983
|
+
const $metadata = deserializeMetadata(output);
|
|
1984
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1888
1985
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1889
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1986
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1890
1987
|
$fault: "client",
|
|
1891
|
-
$metadata
|
|
1988
|
+
$metadata,
|
|
1892
1989
|
});
|
|
1893
1990
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1894
1991
|
}
|
|
@@ -1918,8 +2015,7 @@ const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = asy
|
|
|
1918
2015
|
body: await parseBody(output.body, context),
|
|
1919
2016
|
};
|
|
1920
2017
|
let response;
|
|
1921
|
-
|
|
1922
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1923
2019
|
switch (errorCode) {
|
|
1924
2020
|
case "AccessDeniedException":
|
|
1925
2021
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1935,10 +2031,12 @@ const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = asy
|
|
|
1935
2031
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1936
2032
|
default:
|
|
1937
2033
|
const parsedBody = parsedOutput.body;
|
|
2034
|
+
const $metadata = deserializeMetadata(output);
|
|
2035
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1938
2036
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1939
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2037
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1940
2038
|
$fault: "client",
|
|
1941
|
-
$metadata
|
|
2039
|
+
$metadata,
|
|
1942
2040
|
});
|
|
1943
2041
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1944
2042
|
}
|
|
@@ -2012,8 +2110,7 @@ const deserializeAws_restJson1GetUserCommandError = async (output, context) => {
|
|
|
2012
2110
|
body: await parseBody(output.body, context),
|
|
2013
2111
|
};
|
|
2014
2112
|
let response;
|
|
2015
|
-
|
|
2016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
2114
|
switch (errorCode) {
|
|
2018
2115
|
case "AccessDeniedException":
|
|
2019
2116
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2032,10 +2129,12 @@ const deserializeAws_restJson1GetUserCommandError = async (output, context) => {
|
|
|
2032
2129
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2033
2130
|
default:
|
|
2034
2131
|
const parsedBody = parsedOutput.body;
|
|
2132
|
+
const $metadata = deserializeMetadata(output);
|
|
2133
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2035
2134
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2135
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2037
2136
|
$fault: "client",
|
|
2038
|
-
$metadata
|
|
2137
|
+
$metadata,
|
|
2039
2138
|
});
|
|
2040
2139
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2041
2140
|
}
|
|
@@ -2069,8 +2168,7 @@ const deserializeAws_restJson1GetWorkingLocationCommandError = async (output, co
|
|
|
2069
2168
|
body: await parseBody(output.body, context),
|
|
2070
2169
|
};
|
|
2071
2170
|
let response;
|
|
2072
|
-
|
|
2073
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2171
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
2172
|
switch (errorCode) {
|
|
2075
2173
|
case "AccessDeniedException":
|
|
2076
2174
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2086,10 +2184,12 @@ const deserializeAws_restJson1GetWorkingLocationCommandError = async (output, co
|
|
|
2086
2184
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2087
2185
|
default:
|
|
2088
2186
|
const parsedBody = parsedOutput.body;
|
|
2187
|
+
const $metadata = deserializeMetadata(output);
|
|
2188
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2089
2189
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2090
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2190
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2091
2191
|
$fault: "client",
|
|
2092
|
-
$metadata
|
|
2192
|
+
$metadata,
|
|
2093
2193
|
});
|
|
2094
2194
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2095
2195
|
}
|
|
@@ -2119,8 +2219,7 @@ const deserializeAws_restJson1ListChangesetsCommandError = async (output, contex
|
|
|
2119
2219
|
body: await parseBody(output.body, context),
|
|
2120
2220
|
};
|
|
2121
2221
|
let response;
|
|
2122
|
-
|
|
2123
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2124
2223
|
switch (errorCode) {
|
|
2125
2224
|
case "AccessDeniedException":
|
|
2126
2225
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2142,10 +2241,12 @@ const deserializeAws_restJson1ListChangesetsCommandError = async (output, contex
|
|
|
2142
2241
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2143
2242
|
default:
|
|
2144
2243
|
const parsedBody = parsedOutput.body;
|
|
2244
|
+
const $metadata = deserializeMetadata(output);
|
|
2245
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2145
2246
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2247
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2147
2248
|
$fault: "client",
|
|
2148
|
-
$metadata
|
|
2249
|
+
$metadata,
|
|
2149
2250
|
});
|
|
2150
2251
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2151
2252
|
}
|
|
@@ -2175,8 +2276,7 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
|
|
|
2175
2276
|
body: await parseBody(output.body, context),
|
|
2176
2277
|
};
|
|
2177
2278
|
let response;
|
|
2178
|
-
|
|
2179
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
2280
|
switch (errorCode) {
|
|
2181
2281
|
case "ConflictException":
|
|
2182
2282
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
@@ -2195,10 +2295,12 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
|
|
|
2195
2295
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2196
2296
|
default:
|
|
2197
2297
|
const parsedBody = parsedOutput.body;
|
|
2298
|
+
const $metadata = deserializeMetadata(output);
|
|
2299
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2198
2300
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2199
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2301
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2200
2302
|
$fault: "client",
|
|
2201
|
-
$metadata
|
|
2303
|
+
$metadata,
|
|
2202
2304
|
});
|
|
2203
2305
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2204
2306
|
}
|
|
@@ -2228,8 +2330,7 @@ const deserializeAws_restJson1ListDataViewsCommandError = async (output, context
|
|
|
2228
2330
|
body: await parseBody(output.body, context),
|
|
2229
2331
|
};
|
|
2230
2332
|
let response;
|
|
2231
|
-
|
|
2232
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2333
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2233
2334
|
switch (errorCode) {
|
|
2234
2335
|
case "ConflictException":
|
|
2235
2336
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
@@ -2248,10 +2349,12 @@ const deserializeAws_restJson1ListDataViewsCommandError = async (output, context
|
|
|
2248
2349
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2249
2350
|
default:
|
|
2250
2351
|
const parsedBody = parsedOutput.body;
|
|
2352
|
+
const $metadata = deserializeMetadata(output);
|
|
2353
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2251
2354
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2252
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2355
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2253
2356
|
$fault: "client",
|
|
2254
|
-
$metadata
|
|
2357
|
+
$metadata,
|
|
2255
2358
|
});
|
|
2256
2359
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2257
2360
|
}
|
|
@@ -2281,8 +2384,7 @@ const deserializeAws_restJson1ListPermissionGroupsCommandError = async (output,
|
|
|
2281
2384
|
body: await parseBody(output.body, context),
|
|
2282
2385
|
};
|
|
2283
2386
|
let response;
|
|
2284
|
-
|
|
2285
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2387
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2286
2388
|
switch (errorCode) {
|
|
2287
2389
|
case "AccessDeniedException":
|
|
2288
2390
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2298,10 +2400,12 @@ const deserializeAws_restJson1ListPermissionGroupsCommandError = async (output,
|
|
|
2298
2400
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2299
2401
|
default:
|
|
2300
2402
|
const parsedBody = parsedOutput.body;
|
|
2403
|
+
const $metadata = deserializeMetadata(output);
|
|
2404
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2301
2405
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2302
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2406
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2303
2407
|
$fault: "client",
|
|
2304
|
-
$metadata
|
|
2408
|
+
$metadata,
|
|
2305
2409
|
});
|
|
2306
2410
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2307
2411
|
}
|
|
@@ -2331,8 +2435,7 @@ const deserializeAws_restJson1ListPermissionGroupsByUserCommandError = async (ou
|
|
|
2331
2435
|
body: await parseBody(output.body, context),
|
|
2332
2436
|
};
|
|
2333
2437
|
let response;
|
|
2334
|
-
|
|
2335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2438
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2336
2439
|
switch (errorCode) {
|
|
2337
2440
|
case "AccessDeniedException":
|
|
2338
2441
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2351,10 +2454,12 @@ const deserializeAws_restJson1ListPermissionGroupsByUserCommandError = async (ou
|
|
|
2351
2454
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2352
2455
|
default:
|
|
2353
2456
|
const parsedBody = parsedOutput.body;
|
|
2457
|
+
const $metadata = deserializeMetadata(output);
|
|
2458
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2354
2459
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2355
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2460
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2356
2461
|
$fault: "client",
|
|
2357
|
-
$metadata
|
|
2462
|
+
$metadata,
|
|
2358
2463
|
});
|
|
2359
2464
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2360
2465
|
}
|
|
@@ -2384,8 +2489,7 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
|
|
|
2384
2489
|
body: await parseBody(output.body, context),
|
|
2385
2490
|
};
|
|
2386
2491
|
let response;
|
|
2387
|
-
|
|
2388
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2389
2493
|
switch (errorCode) {
|
|
2390
2494
|
case "AccessDeniedException":
|
|
2391
2495
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2401,10 +2505,12 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
|
|
|
2401
2505
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2402
2506
|
default:
|
|
2403
2507
|
const parsedBody = parsedOutput.body;
|
|
2508
|
+
const $metadata = deserializeMetadata(output);
|
|
2509
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2404
2510
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2405
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2511
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2406
2512
|
$fault: "client",
|
|
2407
|
-
$metadata
|
|
2513
|
+
$metadata,
|
|
2408
2514
|
});
|
|
2409
2515
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2410
2516
|
}
|
|
@@ -2434,8 +2540,7 @@ const deserializeAws_restJson1ListUsersByPermissionGroupCommandError = async (ou
|
|
|
2434
2540
|
body: await parseBody(output.body, context),
|
|
2435
2541
|
};
|
|
2436
2542
|
let response;
|
|
2437
|
-
|
|
2438
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2439
2544
|
switch (errorCode) {
|
|
2440
2545
|
case "AccessDeniedException":
|
|
2441
2546
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2454,10 +2559,12 @@ const deserializeAws_restJson1ListUsersByPermissionGroupCommandError = async (ou
|
|
|
2454
2559
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2455
2560
|
default:
|
|
2456
2561
|
const parsedBody = parsedOutput.body;
|
|
2562
|
+
const $metadata = deserializeMetadata(output);
|
|
2563
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2457
2564
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2458
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2565
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2459
2566
|
$fault: "client",
|
|
2460
|
-
$metadata
|
|
2567
|
+
$metadata,
|
|
2461
2568
|
});
|
|
2462
2569
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2463
2570
|
}
|
|
@@ -2487,8 +2594,7 @@ const deserializeAws_restJson1ResetUserPasswordCommandError = async (output, con
|
|
|
2487
2594
|
body: await parseBody(output.body, context),
|
|
2488
2595
|
};
|
|
2489
2596
|
let response;
|
|
2490
|
-
|
|
2491
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2597
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
2598
|
switch (errorCode) {
|
|
2493
2599
|
case "AccessDeniedException":
|
|
2494
2600
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2510,10 +2616,12 @@ const deserializeAws_restJson1ResetUserPasswordCommandError = async (output, con
|
|
|
2510
2616
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2511
2617
|
default:
|
|
2512
2618
|
const parsedBody = parsedOutput.body;
|
|
2619
|
+
const $metadata = deserializeMetadata(output);
|
|
2620
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2513
2621
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2514
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2515
2623
|
$fault: "client",
|
|
2516
|
-
$metadata
|
|
2624
|
+
$metadata,
|
|
2517
2625
|
});
|
|
2518
2626
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2519
2627
|
}
|
|
@@ -2543,8 +2651,7 @@ const deserializeAws_restJson1UpdateChangesetCommandError = async (output, conte
|
|
|
2543
2651
|
body: await parseBody(output.body, context),
|
|
2544
2652
|
};
|
|
2545
2653
|
let response;
|
|
2546
|
-
|
|
2547
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2548
2655
|
switch (errorCode) {
|
|
2549
2656
|
case "AccessDeniedException":
|
|
2550
2657
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2566,10 +2673,12 @@ const deserializeAws_restJson1UpdateChangesetCommandError = async (output, conte
|
|
|
2566
2673
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2567
2674
|
default:
|
|
2568
2675
|
const parsedBody = parsedOutput.body;
|
|
2676
|
+
const $metadata = deserializeMetadata(output);
|
|
2677
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2569
2678
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2570
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2679
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2571
2680
|
$fault: "client",
|
|
2572
|
-
$metadata
|
|
2681
|
+
$metadata,
|
|
2573
2682
|
});
|
|
2574
2683
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2575
2684
|
}
|
|
@@ -2595,8 +2704,7 @@ const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context
|
|
|
2595
2704
|
body: await parseBody(output.body, context),
|
|
2596
2705
|
};
|
|
2597
2706
|
let response;
|
|
2598
|
-
|
|
2599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2707
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2600
2708
|
switch (errorCode) {
|
|
2601
2709
|
case "AccessDeniedException":
|
|
2602
2710
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2618,10 +2726,12 @@ const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context
|
|
|
2618
2726
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2619
2727
|
default:
|
|
2620
2728
|
const parsedBody = parsedOutput.body;
|
|
2729
|
+
const $metadata = deserializeMetadata(output);
|
|
2730
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2621
2731
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2732
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2623
2733
|
$fault: "client",
|
|
2624
|
-
$metadata
|
|
2734
|
+
$metadata,
|
|
2625
2735
|
});
|
|
2626
2736
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2627
2737
|
}
|
|
@@ -2647,8 +2757,7 @@ const deserializeAws_restJson1UpdatePermissionGroupCommandError = async (output,
|
|
|
2647
2757
|
body: await parseBody(output.body, context),
|
|
2648
2758
|
};
|
|
2649
2759
|
let response;
|
|
2650
|
-
|
|
2651
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
2761
|
switch (errorCode) {
|
|
2653
2762
|
case "AccessDeniedException":
|
|
2654
2763
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2670,10 +2779,12 @@ const deserializeAws_restJson1UpdatePermissionGroupCommandError = async (output,
|
|
|
2670
2779
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2671
2780
|
default:
|
|
2672
2781
|
const parsedBody = parsedOutput.body;
|
|
2782
|
+
const $metadata = deserializeMetadata(output);
|
|
2783
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2673
2784
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2674
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2785
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2675
2786
|
$fault: "client",
|
|
2676
|
-
$metadata
|
|
2787
|
+
$metadata,
|
|
2677
2788
|
});
|
|
2678
2789
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2679
2790
|
}
|
|
@@ -2699,8 +2810,7 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
|
|
|
2699
2810
|
body: await parseBody(output.body, context),
|
|
2700
2811
|
};
|
|
2701
2812
|
let response;
|
|
2702
|
-
|
|
2703
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2704
2814
|
switch (errorCode) {
|
|
2705
2815
|
case "AccessDeniedException":
|
|
2706
2816
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2722,10 +2832,12 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
|
|
|
2722
2832
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2723
2833
|
default:
|
|
2724
2834
|
const parsedBody = parsedOutput.body;
|
|
2835
|
+
const $metadata = deserializeMetadata(output);
|
|
2836
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2725
2837
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2726
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2838
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2727
2839
|
$fault: "client",
|
|
2728
|
-
$metadata
|
|
2840
|
+
$metadata,
|
|
2729
2841
|
});
|
|
2730
2842
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2731
2843
|
}
|
|
@@ -2832,10 +2944,9 @@ const serializeAws_restJson1ApplicationPermissionList = (input, context) => {
|
|
|
2832
2944
|
};
|
|
2833
2945
|
const serializeAws_restJson1ColumnDefinition = (input, context) => {
|
|
2834
2946
|
return {
|
|
2835
|
-
...(input.columnDescription
|
|
2836
|
-
|
|
2837
|
-
...(input.
|
|
2838
|
-
...(input.dataType !== undefined && input.dataType !== null && { dataType: input.dataType }),
|
|
2947
|
+
...(input.columnDescription != null && { columnDescription: input.columnDescription }),
|
|
2948
|
+
...(input.columnName != null && { columnName: input.columnName }),
|
|
2949
|
+
...(input.dataType != null && { dataType: input.dataType }),
|
|
2839
2950
|
};
|
|
2840
2951
|
};
|
|
2841
2952
|
const serializeAws_restJson1ColumnList = (input, context) => {
|
|
@@ -2860,21 +2971,18 @@ const serializeAws_restJson1ColumnNameList = (input, context) => {
|
|
|
2860
2971
|
};
|
|
2861
2972
|
const serializeAws_restJson1DatasetOwnerInfo = (input, context) => {
|
|
2862
2973
|
return {
|
|
2863
|
-
...(input.email
|
|
2864
|
-
...(input.name
|
|
2865
|
-
...(input.phoneNumber
|
|
2974
|
+
...(input.email != null && { email: input.email }),
|
|
2975
|
+
...(input.name != null && { name: input.name }),
|
|
2976
|
+
...(input.phoneNumber != null && { phoneNumber: input.phoneNumber }),
|
|
2866
2977
|
};
|
|
2867
2978
|
};
|
|
2868
2979
|
const serializeAws_restJson1DataViewDestinationTypeParams = (input, context) => {
|
|
2869
2980
|
return {
|
|
2870
|
-
...(input.destinationType
|
|
2871
|
-
|
|
2872
|
-
...(input.s3DestinationExportFileFormat !== undefined &&
|
|
2873
|
-
input.s3DestinationExportFileFormat !== null && {
|
|
2981
|
+
...(input.destinationType != null && { destinationType: input.destinationType }),
|
|
2982
|
+
...(input.s3DestinationExportFileFormat != null && {
|
|
2874
2983
|
s3DestinationExportFileFormat: input.s3DestinationExportFileFormat,
|
|
2875
2984
|
}),
|
|
2876
|
-
...(input.s3DestinationExportFileFormatOptions
|
|
2877
|
-
input.s3DestinationExportFileFormatOptions !== null && {
|
|
2985
|
+
...(input.s3DestinationExportFileFormatOptions != null && {
|
|
2878
2986
|
s3DestinationExportFileFormatOptions: serializeAws_restJson1S3DestinationFormatOptions(input.s3DestinationExportFileFormatOptions, context),
|
|
2879
2987
|
}),
|
|
2880
2988
|
};
|
|
@@ -2902,17 +3010,15 @@ const serializeAws_restJson1PartitionColumnList = (input, context) => {
|
|
|
2902
3010
|
};
|
|
2903
3011
|
const serializeAws_restJson1PermissionGroupParams = (input, context) => {
|
|
2904
3012
|
return {
|
|
2905
|
-
...(input.datasetPermissions
|
|
2906
|
-
input.datasetPermissions !== null && {
|
|
3013
|
+
...(input.datasetPermissions != null && {
|
|
2907
3014
|
datasetPermissions: serializeAws_restJson1ResourcePermissionsList(input.datasetPermissions, context),
|
|
2908
3015
|
}),
|
|
2909
|
-
...(input.permissionGroupId
|
|
2910
|
-
input.permissionGroupId !== null && { permissionGroupId: input.permissionGroupId }),
|
|
3016
|
+
...(input.permissionGroupId != null && { permissionGroupId: input.permissionGroupId }),
|
|
2911
3017
|
};
|
|
2912
3018
|
};
|
|
2913
3019
|
const serializeAws_restJson1ResourcePermission = (input, context) => {
|
|
2914
3020
|
return {
|
|
2915
|
-
...(input.permission
|
|
3021
|
+
...(input.permission != null && { permission: input.permission }),
|
|
2916
3022
|
};
|
|
2917
3023
|
};
|
|
2918
3024
|
const serializeAws_restJson1ResourcePermissionsList = (input, context) => {
|
|
@@ -2938,18 +3044,15 @@ const serializeAws_restJson1S3DestinationFormatOptions = (input, context) => {
|
|
|
2938
3044
|
};
|
|
2939
3045
|
const serializeAws_restJson1SchemaDefinition = (input, context) => {
|
|
2940
3046
|
return {
|
|
2941
|
-
...(input.columns
|
|
2942
|
-
|
|
2943
|
-
...(input.primaryKeyColumns !== undefined &&
|
|
2944
|
-
input.primaryKeyColumns !== null && {
|
|
3047
|
+
...(input.columns != null && { columns: serializeAws_restJson1ColumnList(input.columns, context) }),
|
|
3048
|
+
...(input.primaryKeyColumns != null && {
|
|
2945
3049
|
primaryKeyColumns: serializeAws_restJson1ColumnNameList(input.primaryKeyColumns, context),
|
|
2946
3050
|
}),
|
|
2947
3051
|
};
|
|
2948
3052
|
};
|
|
2949
3053
|
const serializeAws_restJson1SchemaUnion = (input, context) => {
|
|
2950
3054
|
return {
|
|
2951
|
-
...(input.tabularSchemaConfig
|
|
2952
|
-
input.tabularSchemaConfig !== null && {
|
|
3055
|
+
...(input.tabularSchemaConfig != null && {
|
|
2953
3056
|
tabularSchemaConfig: serializeAws_restJson1SchemaDefinition(input.tabularSchemaConfig, context),
|
|
2954
3057
|
}),
|
|
2955
3058
|
};
|
|
@@ -2986,6 +3089,14 @@ const deserializeAws_restJson1ApplicationPermissionList = (output, context) => {
|
|
|
2986
3089
|
});
|
|
2987
3090
|
return retVal;
|
|
2988
3091
|
};
|
|
3092
|
+
const deserializeAws_restJson1AwsCredentials = (output, context) => {
|
|
3093
|
+
return {
|
|
3094
|
+
accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId),
|
|
3095
|
+
expiration: (0, smithy_client_1.expectLong)(output.expiration),
|
|
3096
|
+
secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey),
|
|
3097
|
+
sessionToken: (0, smithy_client_1.expectString)(output.sessionToken),
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
2989
3100
|
const deserializeAws_restJson1ChangesetErrorInfo = (output, context) => {
|
|
2990
3101
|
return {
|
|
2991
3102
|
errorCategory: (0, smithy_client_1.expectString)(output.errorCategory),
|
|
@@ -3012,15 +3123,9 @@ const deserializeAws_restJson1ChangesetSummary = (output, context) => {
|
|
|
3012
3123
|
changesetId: (0, smithy_client_1.expectString)(output.changesetId),
|
|
3013
3124
|
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
3014
3125
|
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
3015
|
-
errorInfo: output.errorInfo
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
formatParams: output.formatParams !== undefined && output.formatParams !== null
|
|
3019
|
-
? deserializeAws_restJson1FormatParams(output.formatParams, context)
|
|
3020
|
-
: undefined,
|
|
3021
|
-
sourceParams: output.sourceParams !== undefined && output.sourceParams !== null
|
|
3022
|
-
? deserializeAws_restJson1SourceParams(output.sourceParams, context)
|
|
3023
|
-
: undefined,
|
|
3126
|
+
errorInfo: output.errorInfo != null ? deserializeAws_restJson1ChangesetErrorInfo(output.errorInfo, context) : undefined,
|
|
3127
|
+
formatParams: output.formatParams != null ? deserializeAws_restJson1FormatParams(output.formatParams, context) : undefined,
|
|
3128
|
+
sourceParams: output.sourceParams != null ? deserializeAws_restJson1SourceParams(output.sourceParams, context) : undefined,
|
|
3024
3129
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3025
3130
|
updatedByChangesetId: (0, smithy_client_1.expectString)(output.updatedByChangesetId),
|
|
3026
3131
|
updatesChangesetId: (0, smithy_client_1.expectString)(output.updatesChangesetId),
|
|
@@ -3072,10 +3177,8 @@ const deserializeAws_restJson1Dataset = (output, context) => {
|
|
|
3072
3177
|
datasetTitle: (0, smithy_client_1.expectString)(output.datasetTitle),
|
|
3073
3178
|
kind: (0, smithy_client_1.expectString)(output.kind),
|
|
3074
3179
|
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
3075
|
-
ownerInfo: output.ownerInfo
|
|
3076
|
-
|
|
3077
|
-
: undefined,
|
|
3078
|
-
schemaDefinition: output.schemaDefinition !== undefined && output.schemaDefinition !== null
|
|
3180
|
+
ownerInfo: output.ownerInfo != null ? deserializeAws_restJson1DatasetOwnerInfo(output.ownerInfo, context) : undefined,
|
|
3181
|
+
schemaDefinition: output.schemaDefinition != null
|
|
3079
3182
|
? deserializeAws_restJson1SchemaUnion(output.schemaDefinition, context)
|
|
3080
3183
|
: undefined,
|
|
3081
3184
|
};
|
|
@@ -3102,7 +3205,7 @@ const deserializeAws_restJson1DataViewDestinationTypeParams = (output, context)
|
|
|
3102
3205
|
return {
|
|
3103
3206
|
destinationType: (0, smithy_client_1.expectString)(output.destinationType),
|
|
3104
3207
|
s3DestinationExportFileFormat: (0, smithy_client_1.expectString)(output.s3DestinationExportFileFormat),
|
|
3105
|
-
s3DestinationExportFileFormatOptions: output.s3DestinationExportFileFormatOptions
|
|
3208
|
+
s3DestinationExportFileFormatOptions: output.s3DestinationExportFileFormatOptions != null
|
|
3106
3209
|
? deserializeAws_restJson1S3DestinationFormatOptions(output.s3DestinationExportFileFormatOptions, context)
|
|
3107
3210
|
: undefined,
|
|
3108
3211
|
};
|
|
@@ -3132,19 +3235,15 @@ const deserializeAws_restJson1DataViewSummary = (output, context) => {
|
|
|
3132
3235
|
dataViewArn: (0, smithy_client_1.expectString)(output.dataViewArn),
|
|
3133
3236
|
dataViewId: (0, smithy_client_1.expectString)(output.dataViewId),
|
|
3134
3237
|
datasetId: (0, smithy_client_1.expectString)(output.datasetId),
|
|
3135
|
-
destinationTypeProperties: output.destinationTypeProperties
|
|
3238
|
+
destinationTypeProperties: output.destinationTypeProperties != null
|
|
3136
3239
|
? deserializeAws_restJson1DataViewDestinationTypeParams(output.destinationTypeProperties, context)
|
|
3137
3240
|
: undefined,
|
|
3138
|
-
errorInfo: output.errorInfo
|
|
3139
|
-
? deserializeAws_restJson1DataViewErrorInfo(output.errorInfo, context)
|
|
3140
|
-
: undefined,
|
|
3241
|
+
errorInfo: output.errorInfo != null ? deserializeAws_restJson1DataViewErrorInfo(output.errorInfo, context) : undefined,
|
|
3141
3242
|
lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
|
|
3142
|
-
partitionColumns: output.partitionColumns
|
|
3243
|
+
partitionColumns: output.partitionColumns != null
|
|
3143
3244
|
? deserializeAws_restJson1PartitionColumnList(output.partitionColumns, context)
|
|
3144
3245
|
: undefined,
|
|
3145
|
-
sortColumns: output.sortColumns
|
|
3146
|
-
? deserializeAws_restJson1SortColumnList(output.sortColumns, context)
|
|
3147
|
-
: undefined,
|
|
3246
|
+
sortColumns: output.sortColumns != null ? deserializeAws_restJson1SortColumnList(output.sortColumns, context) : undefined,
|
|
3148
3247
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3149
3248
|
};
|
|
3150
3249
|
};
|
|
@@ -3172,7 +3271,7 @@ const deserializeAws_restJson1PartitionColumnList = (output, context) => {
|
|
|
3172
3271
|
};
|
|
3173
3272
|
const deserializeAws_restJson1PermissionGroup = (output, context) => {
|
|
3174
3273
|
return {
|
|
3175
|
-
applicationPermissions: output.applicationPermissions
|
|
3274
|
+
applicationPermissions: output.applicationPermissions != null
|
|
3176
3275
|
? deserializeAws_restJson1ApplicationPermissionList(output.applicationPermissions, context)
|
|
3177
3276
|
: undefined,
|
|
3178
3277
|
createTime: (0, smithy_client_1.expectLong)(output.createTime),
|
|
@@ -3223,19 +3322,23 @@ const deserializeAws_restJson1S3DestinationFormatOptions = (output, context) =>
|
|
|
3223
3322
|
};
|
|
3224
3323
|
}, {});
|
|
3225
3324
|
};
|
|
3325
|
+
const deserializeAws_restJson1S3Location = (output, context) => {
|
|
3326
|
+
return {
|
|
3327
|
+
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
3328
|
+
key: (0, smithy_client_1.expectString)(output.key),
|
|
3329
|
+
};
|
|
3330
|
+
};
|
|
3226
3331
|
const deserializeAws_restJson1SchemaDefinition = (output, context) => {
|
|
3227
3332
|
return {
|
|
3228
|
-
columns: output.columns
|
|
3229
|
-
|
|
3230
|
-
: undefined,
|
|
3231
|
-
primaryKeyColumns: output.primaryKeyColumns !== undefined && output.primaryKeyColumns !== null
|
|
3333
|
+
columns: output.columns != null ? deserializeAws_restJson1ColumnList(output.columns, context) : undefined,
|
|
3334
|
+
primaryKeyColumns: output.primaryKeyColumns != null
|
|
3232
3335
|
? deserializeAws_restJson1ColumnNameList(output.primaryKeyColumns, context)
|
|
3233
3336
|
: undefined,
|
|
3234
3337
|
};
|
|
3235
3338
|
};
|
|
3236
3339
|
const deserializeAws_restJson1SchemaUnion = (output, context) => {
|
|
3237
3340
|
return {
|
|
3238
|
-
tabularSchemaConfig: output.tabularSchemaConfig
|
|
3341
|
+
tabularSchemaConfig: output.tabularSchemaConfig != null
|
|
3239
3342
|
? deserializeAws_restJson1SchemaDefinition(output.tabularSchemaConfig, context)
|
|
3240
3343
|
: undefined,
|
|
3241
3344
|
};
|
|
@@ -3363,5 +3466,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3363
3466
|
if (data["__type"] !== undefined) {
|
|
3364
3467
|
return sanitizeErrorCode(data["__type"]);
|
|
3365
3468
|
}
|
|
3366
|
-
return "";
|
|
3367
3469
|
};
|