@aws-sdk/client-neptunedata 3.489.0 → 3.495.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/dist-cjs/Neptunedata.js +1 -97
- package/dist-cjs/NeptunedataClient.js +1 -43
- package/dist-cjs/commands/CancelGremlinQueryCommand.js +1 -28
- package/dist-cjs/commands/CancelLoaderJobCommand.js +1 -28
- package/dist-cjs/commands/CancelMLDataProcessingJobCommand.js +1 -28
- package/dist-cjs/commands/CancelMLModelTrainingJobCommand.js +1 -28
- package/dist-cjs/commands/CancelMLModelTransformJobCommand.js +1 -28
- package/dist-cjs/commands/CancelOpenCypherQueryCommand.js +1 -28
- package/dist-cjs/commands/CreateMLEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteMLEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeletePropertygraphStatisticsCommand.js +1 -28
- package/dist-cjs/commands/DeleteSparqlStatisticsCommand.js +1 -28
- package/dist-cjs/commands/ExecuteFastResetCommand.js +1 -28
- package/dist-cjs/commands/ExecuteGremlinExplainQueryCommand.js +1 -28
- package/dist-cjs/commands/ExecuteGremlinProfileQueryCommand.js +1 -28
- package/dist-cjs/commands/ExecuteGremlinQueryCommand.js +1 -28
- package/dist-cjs/commands/ExecuteOpenCypherExplainQueryCommand.js +1 -28
- package/dist-cjs/commands/ExecuteOpenCypherQueryCommand.js +1 -28
- package/dist-cjs/commands/GetEngineStatusCommand.js +1 -28
- package/dist-cjs/commands/GetGremlinQueryStatusCommand.js +1 -28
- package/dist-cjs/commands/GetLoaderJobStatusCommand.js +1 -28
- package/dist-cjs/commands/GetMLDataProcessingJobCommand.js +1 -28
- package/dist-cjs/commands/GetMLEndpointCommand.js +1 -28
- package/dist-cjs/commands/GetMLModelTrainingJobCommand.js +1 -28
- package/dist-cjs/commands/GetMLModelTransformJobCommand.js +1 -28
- package/dist-cjs/commands/GetOpenCypherQueryStatusCommand.js +1 -28
- package/dist-cjs/commands/GetPropertygraphStatisticsCommand.js +1 -28
- package/dist-cjs/commands/GetPropertygraphStreamCommand.js +1 -28
- package/dist-cjs/commands/GetPropertygraphSummaryCommand.js +1 -28
- package/dist-cjs/commands/GetRDFGraphSummaryCommand.js +1 -28
- package/dist-cjs/commands/GetSparqlStatisticsCommand.js +1 -28
- package/dist-cjs/commands/GetSparqlStreamCommand.js +1 -28
- package/dist-cjs/commands/ListGremlinQueriesCommand.js +1 -28
- package/dist-cjs/commands/ListLoaderJobsCommand.js +1 -28
- package/dist-cjs/commands/ListMLDataProcessingJobsCommand.js +1 -28
- package/dist-cjs/commands/ListMLEndpointsCommand.js +1 -28
- package/dist-cjs/commands/ListMLModelTrainingJobsCommand.js +1 -28
- package/dist-cjs/commands/ListMLModelTransformJobsCommand.js +1 -28
- package/dist-cjs/commands/ListOpenCypherQueriesCommand.js +1 -28
- package/dist-cjs/commands/ManagePropertygraphStatisticsCommand.js +1 -28
- package/dist-cjs/commands/ManageSparqlStatisticsCommand.js +1 -28
- package/dist-cjs/commands/StartLoaderJobCommand.js +1 -28
- package/dist-cjs/commands/StartMLDataProcessingJobCommand.js +1 -28
- package/dist-cjs/commands/StartMLModelTrainingJobCommand.js +1 -28
- package/dist-cjs/commands/StartMLModelTransformJobCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -46
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6257 -10
- package/dist-cjs/models/NeptunedataServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -630
- package/dist-cjs/protocols/Aws_restJson1.js +1 -4468
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +41 -41
|
@@ -1,4468 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_CreateMLEndpointCommand = exports.de_CancelOpenCypherQueryCommand = exports.de_CancelMLModelTransformJobCommand = exports.de_CancelMLModelTrainingJobCommand = exports.de_CancelMLDataProcessingJobCommand = exports.de_CancelLoaderJobCommand = exports.de_CancelGremlinQueryCommand = exports.se_StartMLModelTransformJobCommand = exports.se_StartMLModelTrainingJobCommand = exports.se_StartMLDataProcessingJobCommand = exports.se_StartLoaderJobCommand = exports.se_ManageSparqlStatisticsCommand = exports.se_ManagePropertygraphStatisticsCommand = exports.se_ListOpenCypherQueriesCommand = exports.se_ListMLModelTransformJobsCommand = exports.se_ListMLModelTrainingJobsCommand = exports.se_ListMLEndpointsCommand = exports.se_ListMLDataProcessingJobsCommand = exports.se_ListLoaderJobsCommand = exports.se_ListGremlinQueriesCommand = exports.se_GetSparqlStreamCommand = exports.se_GetSparqlStatisticsCommand = exports.se_GetRDFGraphSummaryCommand = exports.se_GetPropertygraphSummaryCommand = exports.se_GetPropertygraphStreamCommand = exports.se_GetPropertygraphStatisticsCommand = exports.se_GetOpenCypherQueryStatusCommand = exports.se_GetMLModelTransformJobCommand = exports.se_GetMLModelTrainingJobCommand = exports.se_GetMLEndpointCommand = exports.se_GetMLDataProcessingJobCommand = exports.se_GetLoaderJobStatusCommand = exports.se_GetGremlinQueryStatusCommand = exports.se_GetEngineStatusCommand = exports.se_ExecuteOpenCypherQueryCommand = exports.se_ExecuteOpenCypherExplainQueryCommand = exports.se_ExecuteGremlinQueryCommand = exports.se_ExecuteGremlinProfileQueryCommand = exports.se_ExecuteGremlinExplainQueryCommand = exports.se_ExecuteFastResetCommand = exports.se_DeleteSparqlStatisticsCommand = exports.se_DeletePropertygraphStatisticsCommand = exports.se_DeleteMLEndpointCommand = exports.se_CreateMLEndpointCommand = exports.se_CancelOpenCypherQueryCommand = exports.se_CancelMLModelTransformJobCommand = exports.se_CancelMLModelTrainingJobCommand = exports.se_CancelMLDataProcessingJobCommand = exports.se_CancelLoaderJobCommand = exports.se_CancelGremlinQueryCommand = void 0;
|
|
4
|
-
exports.de_StartMLModelTransformJobCommand = exports.de_StartMLModelTrainingJobCommand = exports.de_StartMLDataProcessingJobCommand = exports.de_StartLoaderJobCommand = exports.de_ManageSparqlStatisticsCommand = exports.de_ManagePropertygraphStatisticsCommand = exports.de_ListOpenCypherQueriesCommand = exports.de_ListMLModelTransformJobsCommand = exports.de_ListMLModelTrainingJobsCommand = exports.de_ListMLEndpointsCommand = exports.de_ListMLDataProcessingJobsCommand = exports.de_ListLoaderJobsCommand = exports.de_ListGremlinQueriesCommand = exports.de_GetSparqlStreamCommand = exports.de_GetSparqlStatisticsCommand = exports.de_GetRDFGraphSummaryCommand = exports.de_GetPropertygraphSummaryCommand = exports.de_GetPropertygraphStreamCommand = exports.de_GetPropertygraphStatisticsCommand = exports.de_GetOpenCypherQueryStatusCommand = exports.de_GetMLModelTransformJobCommand = exports.de_GetMLModelTrainingJobCommand = exports.de_GetMLEndpointCommand = exports.de_GetMLDataProcessingJobCommand = exports.de_GetLoaderJobStatusCommand = exports.de_GetGremlinQueryStatusCommand = exports.de_GetEngineStatusCommand = exports.de_ExecuteOpenCypherQueryCommand = exports.de_ExecuteOpenCypherExplainQueryCommand = exports.de_ExecuteGremlinQueryCommand = exports.de_ExecuteGremlinProfileQueryCommand = exports.de_ExecuteGremlinExplainQueryCommand = exports.de_ExecuteFastResetCommand = exports.de_DeleteSparqlStatisticsCommand = exports.de_DeletePropertygraphStatisticsCommand = exports.de_DeleteMLEndpointCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const NeptunedataServiceException_1 = require("../models/NeptunedataServiceException");
|
|
9
|
-
const se_CancelGremlinQueryCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {};
|
|
12
|
-
b.bp("/gremlin/status/{queryId}");
|
|
13
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
14
|
-
let body;
|
|
15
|
-
b.m("DELETE").h(headers).b(body);
|
|
16
|
-
return b.build();
|
|
17
|
-
};
|
|
18
|
-
exports.se_CancelGremlinQueryCommand = se_CancelGremlinQueryCommand;
|
|
19
|
-
const se_CancelLoaderJobCommand = async (input, context) => {
|
|
20
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
21
|
-
const headers = {};
|
|
22
|
-
b.bp("/loader/{loadId}");
|
|
23
|
-
b.p("loadId", () => input.loadId, "{loadId}", false);
|
|
24
|
-
let body;
|
|
25
|
-
b.m("DELETE").h(headers).b(body);
|
|
26
|
-
return b.build();
|
|
27
|
-
};
|
|
28
|
-
exports.se_CancelLoaderJobCommand = se_CancelLoaderJobCommand;
|
|
29
|
-
const se_CancelMLDataProcessingJobCommand = async (input, context) => {
|
|
30
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
31
|
-
const headers = {};
|
|
32
|
-
b.bp("/ml/dataprocessing/{id}");
|
|
33
|
-
b.p("id", () => input.id, "{id}", false);
|
|
34
|
-
const query = (0, smithy_client_1.map)({
|
|
35
|
-
[_nIRA]: [, input[_nIRA]],
|
|
36
|
-
[_c]: [() => input.clean !== void 0, () => input[_c].toString()],
|
|
37
|
-
});
|
|
38
|
-
let body;
|
|
39
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
40
|
-
return b.build();
|
|
41
|
-
};
|
|
42
|
-
exports.se_CancelMLDataProcessingJobCommand = se_CancelMLDataProcessingJobCommand;
|
|
43
|
-
const se_CancelMLModelTrainingJobCommand = async (input, context) => {
|
|
44
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
45
|
-
const headers = {};
|
|
46
|
-
b.bp("/ml/modeltraining/{id}");
|
|
47
|
-
b.p("id", () => input.id, "{id}", false);
|
|
48
|
-
const query = (0, smithy_client_1.map)({
|
|
49
|
-
[_nIRA]: [, input[_nIRA]],
|
|
50
|
-
[_c]: [() => input.clean !== void 0, () => input[_c].toString()],
|
|
51
|
-
});
|
|
52
|
-
let body;
|
|
53
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
54
|
-
return b.build();
|
|
55
|
-
};
|
|
56
|
-
exports.se_CancelMLModelTrainingJobCommand = se_CancelMLModelTrainingJobCommand;
|
|
57
|
-
const se_CancelMLModelTransformJobCommand = async (input, context) => {
|
|
58
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
59
|
-
const headers = {};
|
|
60
|
-
b.bp("/ml/modeltransform/{id}");
|
|
61
|
-
b.p("id", () => input.id, "{id}", false);
|
|
62
|
-
const query = (0, smithy_client_1.map)({
|
|
63
|
-
[_nIRA]: [, input[_nIRA]],
|
|
64
|
-
[_c]: [() => input.clean !== void 0, () => input[_c].toString()],
|
|
65
|
-
});
|
|
66
|
-
let body;
|
|
67
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
exports.se_CancelMLModelTransformJobCommand = se_CancelMLModelTransformJobCommand;
|
|
71
|
-
const se_CancelOpenCypherQueryCommand = async (input, context) => {
|
|
72
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
73
|
-
const headers = {};
|
|
74
|
-
b.bp("/opencypher/status/{queryId}");
|
|
75
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
76
|
-
const query = (0, smithy_client_1.map)({
|
|
77
|
-
[_s]: [() => input.silent !== void 0, () => input[_s].toString()],
|
|
78
|
-
});
|
|
79
|
-
let body;
|
|
80
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
81
|
-
return b.build();
|
|
82
|
-
};
|
|
83
|
-
exports.se_CancelOpenCypherQueryCommand = se_CancelOpenCypherQueryCommand;
|
|
84
|
-
const se_CreateMLEndpointCommand = async (input, context) => {
|
|
85
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
86
|
-
const headers = {
|
|
87
|
-
"content-type": "application/json",
|
|
88
|
-
};
|
|
89
|
-
b.bp("/ml/endpoints");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
92
|
-
id: [],
|
|
93
|
-
instanceCount: [],
|
|
94
|
-
instanceType: [],
|
|
95
|
-
mlModelTrainingJobId: [],
|
|
96
|
-
mlModelTransformJobId: [],
|
|
97
|
-
modelName: [],
|
|
98
|
-
neptuneIamRoleArn: [],
|
|
99
|
-
update: [],
|
|
100
|
-
volumeEncryptionKMSKey: [],
|
|
101
|
-
}));
|
|
102
|
-
b.m("POST").h(headers).b(body);
|
|
103
|
-
return b.build();
|
|
104
|
-
};
|
|
105
|
-
exports.se_CreateMLEndpointCommand = se_CreateMLEndpointCommand;
|
|
106
|
-
const se_DeleteMLEndpointCommand = async (input, context) => {
|
|
107
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
108
|
-
const headers = {};
|
|
109
|
-
b.bp("/ml/endpoints/{id}");
|
|
110
|
-
b.p("id", () => input.id, "{id}", false);
|
|
111
|
-
const query = (0, smithy_client_1.map)({
|
|
112
|
-
[_nIRA]: [, input[_nIRA]],
|
|
113
|
-
[_c]: [() => input.clean !== void 0, () => input[_c].toString()],
|
|
114
|
-
});
|
|
115
|
-
let body;
|
|
116
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
exports.se_DeleteMLEndpointCommand = se_DeleteMLEndpointCommand;
|
|
120
|
-
const se_DeletePropertygraphStatisticsCommand = async (input, context) => {
|
|
121
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
122
|
-
const headers = {
|
|
123
|
-
"content-type": "application/json",
|
|
124
|
-
};
|
|
125
|
-
b.bp("/propertygraph/statistics");
|
|
126
|
-
let body;
|
|
127
|
-
body = "";
|
|
128
|
-
b.m("DELETE").h(headers).b(body);
|
|
129
|
-
return b.build();
|
|
130
|
-
};
|
|
131
|
-
exports.se_DeletePropertygraphStatisticsCommand = se_DeletePropertygraphStatisticsCommand;
|
|
132
|
-
const se_DeleteSparqlStatisticsCommand = async (input, context) => {
|
|
133
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
134
|
-
const headers = {
|
|
135
|
-
"content-type": "application/json",
|
|
136
|
-
};
|
|
137
|
-
b.bp("/sparql/statistics");
|
|
138
|
-
let body;
|
|
139
|
-
body = "";
|
|
140
|
-
b.m("DELETE").h(headers).b(body);
|
|
141
|
-
return b.build();
|
|
142
|
-
};
|
|
143
|
-
exports.se_DeleteSparqlStatisticsCommand = se_DeleteSparqlStatisticsCommand;
|
|
144
|
-
const se_ExecuteFastResetCommand = async (input, context) => {
|
|
145
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
146
|
-
const headers = {
|
|
147
|
-
"content-type": "application/json",
|
|
148
|
-
};
|
|
149
|
-
b.bp("/system");
|
|
150
|
-
let body;
|
|
151
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
152
|
-
action: [],
|
|
153
|
-
token: [],
|
|
154
|
-
}));
|
|
155
|
-
b.m("POST").h(headers).b(body);
|
|
156
|
-
return b.build();
|
|
157
|
-
};
|
|
158
|
-
exports.se_ExecuteFastResetCommand = se_ExecuteFastResetCommand;
|
|
159
|
-
const se_ExecuteGremlinExplainQueryCommand = async (input, context) => {
|
|
160
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
161
|
-
const headers = {
|
|
162
|
-
"content-type": "application/json",
|
|
163
|
-
};
|
|
164
|
-
b.bp("/gremlin/explain");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
167
|
-
gremlin: [, , `gremlinQuery`],
|
|
168
|
-
}));
|
|
169
|
-
b.m("POST").h(headers).b(body);
|
|
170
|
-
return b.build();
|
|
171
|
-
};
|
|
172
|
-
exports.se_ExecuteGremlinExplainQueryCommand = se_ExecuteGremlinExplainQueryCommand;
|
|
173
|
-
const se_ExecuteGremlinProfileQueryCommand = async (input, context) => {
|
|
174
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
175
|
-
const headers = {
|
|
176
|
-
"content-type": "application/json",
|
|
177
|
-
};
|
|
178
|
-
b.bp("/gremlin/profile");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
181
|
-
"profile.chop": [, , `chop`],
|
|
182
|
-
gremlin: [, , `gremlinQuery`],
|
|
183
|
-
"profile.indexOps": [, , `indexOps`],
|
|
184
|
-
"profile.results": [, , `results`],
|
|
185
|
-
"profile.serializer": [, , `serializer`],
|
|
186
|
-
}));
|
|
187
|
-
b.m("POST").h(headers).b(body);
|
|
188
|
-
return b.build();
|
|
189
|
-
};
|
|
190
|
-
exports.se_ExecuteGremlinProfileQueryCommand = se_ExecuteGremlinProfileQueryCommand;
|
|
191
|
-
const se_ExecuteGremlinQueryCommand = async (input, context) => {
|
|
192
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
193
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
194
|
-
"content-type": "application/json",
|
|
195
|
-
[_a]: input[_se],
|
|
196
|
-
});
|
|
197
|
-
b.bp("/gremlin");
|
|
198
|
-
let body;
|
|
199
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
200
|
-
gremlin: [, , `gremlinQuery`],
|
|
201
|
-
}));
|
|
202
|
-
b.m("POST").h(headers).b(body);
|
|
203
|
-
return b.build();
|
|
204
|
-
};
|
|
205
|
-
exports.se_ExecuteGremlinQueryCommand = se_ExecuteGremlinQueryCommand;
|
|
206
|
-
const se_ExecuteOpenCypherExplainQueryCommand = async (input, context) => {
|
|
207
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
208
|
-
const headers = {
|
|
209
|
-
"content-type": "application/json",
|
|
210
|
-
};
|
|
211
|
-
b.bp("/opencypher/explain");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
214
|
-
explain: [, , `explainMode`],
|
|
215
|
-
query: [, , `openCypherQuery`],
|
|
216
|
-
parameters: [],
|
|
217
|
-
}));
|
|
218
|
-
b.m("POST").h(headers).b(body);
|
|
219
|
-
return b.build();
|
|
220
|
-
};
|
|
221
|
-
exports.se_ExecuteOpenCypherExplainQueryCommand = se_ExecuteOpenCypherExplainQueryCommand;
|
|
222
|
-
const se_ExecuteOpenCypherQueryCommand = async (input, context) => {
|
|
223
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
224
|
-
const headers = {
|
|
225
|
-
"content-type": "application/json",
|
|
226
|
-
};
|
|
227
|
-
b.bp("/opencypher");
|
|
228
|
-
let body;
|
|
229
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
230
|
-
query: [, , `openCypherQuery`],
|
|
231
|
-
parameters: [],
|
|
232
|
-
}));
|
|
233
|
-
b.m("POST").h(headers).b(body);
|
|
234
|
-
return b.build();
|
|
235
|
-
};
|
|
236
|
-
exports.se_ExecuteOpenCypherQueryCommand = se_ExecuteOpenCypherQueryCommand;
|
|
237
|
-
const se_GetEngineStatusCommand = async (input, context) => {
|
|
238
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
239
|
-
const headers = {
|
|
240
|
-
"content-type": "application/json",
|
|
241
|
-
};
|
|
242
|
-
b.bp("/status");
|
|
243
|
-
let body;
|
|
244
|
-
body = "";
|
|
245
|
-
b.m("GET").h(headers).b(body);
|
|
246
|
-
return b.build();
|
|
247
|
-
};
|
|
248
|
-
exports.se_GetEngineStatusCommand = se_GetEngineStatusCommand;
|
|
249
|
-
const se_GetGremlinQueryStatusCommand = async (input, context) => {
|
|
250
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
251
|
-
const headers = {};
|
|
252
|
-
b.bp("/gremlin/status/{queryId}");
|
|
253
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
254
|
-
let body;
|
|
255
|
-
b.m("GET").h(headers).b(body);
|
|
256
|
-
return b.build();
|
|
257
|
-
};
|
|
258
|
-
exports.se_GetGremlinQueryStatusCommand = se_GetGremlinQueryStatusCommand;
|
|
259
|
-
const se_GetLoaderJobStatusCommand = async (input, context) => {
|
|
260
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
261
|
-
const headers = {};
|
|
262
|
-
b.bp("/loader/{loadId}");
|
|
263
|
-
b.p("loadId", () => input.loadId, "{loadId}", false);
|
|
264
|
-
const query = (0, smithy_client_1.map)({
|
|
265
|
-
[_d]: [() => input.details !== void 0, () => input[_d].toString()],
|
|
266
|
-
[_e]: [() => input.errors !== void 0, () => input[_e].toString()],
|
|
267
|
-
[_p]: [() => input.page !== void 0, () => input[_p].toString()],
|
|
268
|
-
[_ePP]: [() => input.errorsPerPage !== void 0, () => input[_ePP].toString()],
|
|
269
|
-
});
|
|
270
|
-
let body;
|
|
271
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
272
|
-
return b.build();
|
|
273
|
-
};
|
|
274
|
-
exports.se_GetLoaderJobStatusCommand = se_GetLoaderJobStatusCommand;
|
|
275
|
-
const se_GetMLDataProcessingJobCommand = async (input, context) => {
|
|
276
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
277
|
-
const headers = {};
|
|
278
|
-
b.bp("/ml/dataprocessing/{id}");
|
|
279
|
-
b.p("id", () => input.id, "{id}", false);
|
|
280
|
-
const query = (0, smithy_client_1.map)({
|
|
281
|
-
[_nIRA]: [, input[_nIRA]],
|
|
282
|
-
});
|
|
283
|
-
let body;
|
|
284
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
285
|
-
return b.build();
|
|
286
|
-
};
|
|
287
|
-
exports.se_GetMLDataProcessingJobCommand = se_GetMLDataProcessingJobCommand;
|
|
288
|
-
const se_GetMLEndpointCommand = async (input, context) => {
|
|
289
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
290
|
-
const headers = {};
|
|
291
|
-
b.bp("/ml/endpoints/{id}");
|
|
292
|
-
b.p("id", () => input.id, "{id}", false);
|
|
293
|
-
const query = (0, smithy_client_1.map)({
|
|
294
|
-
[_nIRA]: [, input[_nIRA]],
|
|
295
|
-
});
|
|
296
|
-
let body;
|
|
297
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
298
|
-
return b.build();
|
|
299
|
-
};
|
|
300
|
-
exports.se_GetMLEndpointCommand = se_GetMLEndpointCommand;
|
|
301
|
-
const se_GetMLModelTrainingJobCommand = async (input, context) => {
|
|
302
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
303
|
-
const headers = {};
|
|
304
|
-
b.bp("/ml/modeltraining/{id}");
|
|
305
|
-
b.p("id", () => input.id, "{id}", false);
|
|
306
|
-
const query = (0, smithy_client_1.map)({
|
|
307
|
-
[_nIRA]: [, input[_nIRA]],
|
|
308
|
-
});
|
|
309
|
-
let body;
|
|
310
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
311
|
-
return b.build();
|
|
312
|
-
};
|
|
313
|
-
exports.se_GetMLModelTrainingJobCommand = se_GetMLModelTrainingJobCommand;
|
|
314
|
-
const se_GetMLModelTransformJobCommand = async (input, context) => {
|
|
315
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
316
|
-
const headers = {};
|
|
317
|
-
b.bp("/ml/modeltransform/{id}");
|
|
318
|
-
b.p("id", () => input.id, "{id}", false);
|
|
319
|
-
const query = (0, smithy_client_1.map)({
|
|
320
|
-
[_nIRA]: [, input[_nIRA]],
|
|
321
|
-
});
|
|
322
|
-
let body;
|
|
323
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
324
|
-
return b.build();
|
|
325
|
-
};
|
|
326
|
-
exports.se_GetMLModelTransformJobCommand = se_GetMLModelTransformJobCommand;
|
|
327
|
-
const se_GetOpenCypherQueryStatusCommand = async (input, context) => {
|
|
328
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
329
|
-
const headers = {};
|
|
330
|
-
b.bp("/opencypher/status/{queryId}");
|
|
331
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
332
|
-
let body;
|
|
333
|
-
b.m("GET").h(headers).b(body);
|
|
334
|
-
return b.build();
|
|
335
|
-
};
|
|
336
|
-
exports.se_GetOpenCypherQueryStatusCommand = se_GetOpenCypherQueryStatusCommand;
|
|
337
|
-
const se_GetPropertygraphStatisticsCommand = async (input, context) => {
|
|
338
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
339
|
-
const headers = {
|
|
340
|
-
"content-type": "application/json",
|
|
341
|
-
};
|
|
342
|
-
b.bp("/propertygraph/statistics");
|
|
343
|
-
let body;
|
|
344
|
-
body = "";
|
|
345
|
-
b.m("GET").h(headers).b(body);
|
|
346
|
-
return b.build();
|
|
347
|
-
};
|
|
348
|
-
exports.se_GetPropertygraphStatisticsCommand = se_GetPropertygraphStatisticsCommand;
|
|
349
|
-
const se_GetPropertygraphStreamCommand = async (input, context) => {
|
|
350
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
351
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
352
|
-
[_ae]: input[_en],
|
|
353
|
-
});
|
|
354
|
-
b.bp("/propertygraph/stream");
|
|
355
|
-
const query = (0, smithy_client_1.map)({
|
|
356
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
357
|
-
[_iT]: [, input[_iT]],
|
|
358
|
-
[_cN]: [() => input.commitNum !== void 0, () => input[_cN].toString()],
|
|
359
|
-
[_oN]: [() => input.opNum !== void 0, () => input[_oN].toString()],
|
|
360
|
-
});
|
|
361
|
-
let body;
|
|
362
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
363
|
-
return b.build();
|
|
364
|
-
};
|
|
365
|
-
exports.se_GetPropertygraphStreamCommand = se_GetPropertygraphStreamCommand;
|
|
366
|
-
const se_GetPropertygraphSummaryCommand = async (input, context) => {
|
|
367
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
368
|
-
const headers = {};
|
|
369
|
-
b.bp("/propertygraph/statistics/summary");
|
|
370
|
-
const query = (0, smithy_client_1.map)({
|
|
371
|
-
[_m]: [, input[_m]],
|
|
372
|
-
});
|
|
373
|
-
let body;
|
|
374
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
375
|
-
return b.build();
|
|
376
|
-
};
|
|
377
|
-
exports.se_GetPropertygraphSummaryCommand = se_GetPropertygraphSummaryCommand;
|
|
378
|
-
const se_GetRDFGraphSummaryCommand = async (input, context) => {
|
|
379
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
380
|
-
const headers = {};
|
|
381
|
-
b.bp("/rdf/statistics/summary");
|
|
382
|
-
const query = (0, smithy_client_1.map)({
|
|
383
|
-
[_m]: [, input[_m]],
|
|
384
|
-
});
|
|
385
|
-
let body;
|
|
386
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
387
|
-
return b.build();
|
|
388
|
-
};
|
|
389
|
-
exports.se_GetRDFGraphSummaryCommand = se_GetRDFGraphSummaryCommand;
|
|
390
|
-
const se_GetSparqlStatisticsCommand = async (input, context) => {
|
|
391
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
392
|
-
const headers = {
|
|
393
|
-
"content-type": "application/json",
|
|
394
|
-
};
|
|
395
|
-
b.bp("/sparql/statistics");
|
|
396
|
-
let body;
|
|
397
|
-
body = "";
|
|
398
|
-
b.m("GET").h(headers).b(body);
|
|
399
|
-
return b.build();
|
|
400
|
-
};
|
|
401
|
-
exports.se_GetSparqlStatisticsCommand = se_GetSparqlStatisticsCommand;
|
|
402
|
-
const se_GetSparqlStreamCommand = async (input, context) => {
|
|
403
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
404
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
405
|
-
[_ae]: input[_en],
|
|
406
|
-
});
|
|
407
|
-
b.bp("/sparql/stream");
|
|
408
|
-
const query = (0, smithy_client_1.map)({
|
|
409
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
410
|
-
[_iT]: [, input[_iT]],
|
|
411
|
-
[_cN]: [() => input.commitNum !== void 0, () => input[_cN].toString()],
|
|
412
|
-
[_oN]: [() => input.opNum !== void 0, () => input[_oN].toString()],
|
|
413
|
-
});
|
|
414
|
-
let body;
|
|
415
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
416
|
-
return b.build();
|
|
417
|
-
};
|
|
418
|
-
exports.se_GetSparqlStreamCommand = se_GetSparqlStreamCommand;
|
|
419
|
-
const se_ListGremlinQueriesCommand = async (input, context) => {
|
|
420
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
421
|
-
const headers = {};
|
|
422
|
-
b.bp("/gremlin/status");
|
|
423
|
-
const query = (0, smithy_client_1.map)({
|
|
424
|
-
[_iW]: [() => input.includeWaiting !== void 0, () => input[_iW].toString()],
|
|
425
|
-
});
|
|
426
|
-
let body;
|
|
427
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
428
|
-
return b.build();
|
|
429
|
-
};
|
|
430
|
-
exports.se_ListGremlinQueriesCommand = se_ListGremlinQueriesCommand;
|
|
431
|
-
const se_ListLoaderJobsCommand = async (input, context) => {
|
|
432
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
433
|
-
const headers = {};
|
|
434
|
-
b.bp("/loader");
|
|
435
|
-
const query = (0, smithy_client_1.map)({
|
|
436
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
437
|
-
[_iQL]: [() => input.includeQueuedLoads !== void 0, () => input[_iQL].toString()],
|
|
438
|
-
});
|
|
439
|
-
let body;
|
|
440
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
441
|
-
return b.build();
|
|
442
|
-
};
|
|
443
|
-
exports.se_ListLoaderJobsCommand = se_ListLoaderJobsCommand;
|
|
444
|
-
const se_ListMLDataProcessingJobsCommand = async (input, context) => {
|
|
445
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
446
|
-
const headers = {};
|
|
447
|
-
b.bp("/ml/dataprocessing");
|
|
448
|
-
const query = (0, smithy_client_1.map)({
|
|
449
|
-
[_mI]: [() => input.maxItems !== void 0, () => input[_mI].toString()],
|
|
450
|
-
[_nIRA]: [, input[_nIRA]],
|
|
451
|
-
});
|
|
452
|
-
let body;
|
|
453
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
454
|
-
return b.build();
|
|
455
|
-
};
|
|
456
|
-
exports.se_ListMLDataProcessingJobsCommand = se_ListMLDataProcessingJobsCommand;
|
|
457
|
-
const se_ListMLEndpointsCommand = async (input, context) => {
|
|
458
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
459
|
-
const headers = {};
|
|
460
|
-
b.bp("/ml/endpoints");
|
|
461
|
-
const query = (0, smithy_client_1.map)({
|
|
462
|
-
[_mI]: [() => input.maxItems !== void 0, () => input[_mI].toString()],
|
|
463
|
-
[_nIRA]: [, input[_nIRA]],
|
|
464
|
-
});
|
|
465
|
-
let body;
|
|
466
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
467
|
-
return b.build();
|
|
468
|
-
};
|
|
469
|
-
exports.se_ListMLEndpointsCommand = se_ListMLEndpointsCommand;
|
|
470
|
-
const se_ListMLModelTrainingJobsCommand = async (input, context) => {
|
|
471
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
472
|
-
const headers = {};
|
|
473
|
-
b.bp("/ml/modeltraining");
|
|
474
|
-
const query = (0, smithy_client_1.map)({
|
|
475
|
-
[_mI]: [() => input.maxItems !== void 0, () => input[_mI].toString()],
|
|
476
|
-
[_nIRA]: [, input[_nIRA]],
|
|
477
|
-
});
|
|
478
|
-
let body;
|
|
479
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
480
|
-
return b.build();
|
|
481
|
-
};
|
|
482
|
-
exports.se_ListMLModelTrainingJobsCommand = se_ListMLModelTrainingJobsCommand;
|
|
483
|
-
const se_ListMLModelTransformJobsCommand = async (input, context) => {
|
|
484
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
485
|
-
const headers = {};
|
|
486
|
-
b.bp("/ml/modeltransform");
|
|
487
|
-
const query = (0, smithy_client_1.map)({
|
|
488
|
-
[_mI]: [() => input.maxItems !== void 0, () => input[_mI].toString()],
|
|
489
|
-
[_nIRA]: [, input[_nIRA]],
|
|
490
|
-
});
|
|
491
|
-
let body;
|
|
492
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
493
|
-
return b.build();
|
|
494
|
-
};
|
|
495
|
-
exports.se_ListMLModelTransformJobsCommand = se_ListMLModelTransformJobsCommand;
|
|
496
|
-
const se_ListOpenCypherQueriesCommand = async (input, context) => {
|
|
497
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
498
|
-
const headers = {};
|
|
499
|
-
b.bp("/opencypher/status");
|
|
500
|
-
const query = (0, smithy_client_1.map)({
|
|
501
|
-
[_iW]: [() => input.includeWaiting !== void 0, () => input[_iW].toString()],
|
|
502
|
-
});
|
|
503
|
-
let body;
|
|
504
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
505
|
-
return b.build();
|
|
506
|
-
};
|
|
507
|
-
exports.se_ListOpenCypherQueriesCommand = se_ListOpenCypherQueriesCommand;
|
|
508
|
-
const se_ManagePropertygraphStatisticsCommand = async (input, context) => {
|
|
509
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
510
|
-
const headers = {
|
|
511
|
-
"content-type": "application/json",
|
|
512
|
-
};
|
|
513
|
-
b.bp("/propertygraph/statistics");
|
|
514
|
-
let body;
|
|
515
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
516
|
-
mode: [],
|
|
517
|
-
}));
|
|
518
|
-
b.m("POST").h(headers).b(body);
|
|
519
|
-
return b.build();
|
|
520
|
-
};
|
|
521
|
-
exports.se_ManagePropertygraphStatisticsCommand = se_ManagePropertygraphStatisticsCommand;
|
|
522
|
-
const se_ManageSparqlStatisticsCommand = async (input, context) => {
|
|
523
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
524
|
-
const headers = {
|
|
525
|
-
"content-type": "application/json",
|
|
526
|
-
};
|
|
527
|
-
b.bp("/sparql/statistics");
|
|
528
|
-
let body;
|
|
529
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
530
|
-
mode: [],
|
|
531
|
-
}));
|
|
532
|
-
b.m("POST").h(headers).b(body);
|
|
533
|
-
return b.build();
|
|
534
|
-
};
|
|
535
|
-
exports.se_ManageSparqlStatisticsCommand = se_ManageSparqlStatisticsCommand;
|
|
536
|
-
const se_StartLoaderJobCommand = async (input, context) => {
|
|
537
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
538
|
-
const headers = {
|
|
539
|
-
"content-type": "application/json",
|
|
540
|
-
};
|
|
541
|
-
b.bp("/loader");
|
|
542
|
-
let body;
|
|
543
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
544
|
-
dependencies: (_) => (0, smithy_client_1._json)(_),
|
|
545
|
-
failOnError: [],
|
|
546
|
-
format: [],
|
|
547
|
-
iamRoleArn: [],
|
|
548
|
-
mode: [],
|
|
549
|
-
parallelism: [],
|
|
550
|
-
parserConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
551
|
-
queueRequest: [],
|
|
552
|
-
region: [, , `s3BucketRegion`],
|
|
553
|
-
source: [],
|
|
554
|
-
updateSingleCardinalityProperties: [],
|
|
555
|
-
userProvidedEdgeIds: [],
|
|
556
|
-
}));
|
|
557
|
-
b.m("POST").h(headers).b(body);
|
|
558
|
-
return b.build();
|
|
559
|
-
};
|
|
560
|
-
exports.se_StartLoaderJobCommand = se_StartLoaderJobCommand;
|
|
561
|
-
const se_StartMLDataProcessingJobCommand = async (input, context) => {
|
|
562
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
563
|
-
const headers = {
|
|
564
|
-
"content-type": "application/json",
|
|
565
|
-
};
|
|
566
|
-
b.bp("/ml/dataprocessing");
|
|
567
|
-
let body;
|
|
568
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
569
|
-
configFileName: [],
|
|
570
|
-
id: [],
|
|
571
|
-
inputDataS3Location: [],
|
|
572
|
-
modelType: [],
|
|
573
|
-
neptuneIamRoleArn: [],
|
|
574
|
-
previousDataProcessingJobId: [],
|
|
575
|
-
processedDataS3Location: [],
|
|
576
|
-
processingInstanceType: [],
|
|
577
|
-
processingInstanceVolumeSizeInGB: [],
|
|
578
|
-
processingTimeOutInSeconds: [],
|
|
579
|
-
s3OutputEncryptionKMSKey: [],
|
|
580
|
-
sagemakerIamRoleArn: [],
|
|
581
|
-
securityGroupIds: (_) => (0, smithy_client_1._json)(_),
|
|
582
|
-
subnets: (_) => (0, smithy_client_1._json)(_),
|
|
583
|
-
volumeEncryptionKMSKey: [],
|
|
584
|
-
}));
|
|
585
|
-
b.m("POST").h(headers).b(body);
|
|
586
|
-
return b.build();
|
|
587
|
-
};
|
|
588
|
-
exports.se_StartMLDataProcessingJobCommand = se_StartMLDataProcessingJobCommand;
|
|
589
|
-
const se_StartMLModelTrainingJobCommand = async (input, context) => {
|
|
590
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
591
|
-
const headers = {
|
|
592
|
-
"content-type": "application/json",
|
|
593
|
-
};
|
|
594
|
-
b.bp("/ml/modeltraining");
|
|
595
|
-
let body;
|
|
596
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
597
|
-
baseProcessingInstanceType: [],
|
|
598
|
-
customModelTrainingParameters: (_) => (0, smithy_client_1._json)(_),
|
|
599
|
-
dataProcessingJobId: [],
|
|
600
|
-
enableManagedSpotTraining: [],
|
|
601
|
-
id: [],
|
|
602
|
-
maxHPONumberOfTrainingJobs: [],
|
|
603
|
-
maxHPOParallelTrainingJobs: [],
|
|
604
|
-
neptuneIamRoleArn: [],
|
|
605
|
-
previousModelTrainingJobId: [],
|
|
606
|
-
s3OutputEncryptionKMSKey: [],
|
|
607
|
-
sagemakerIamRoleArn: [],
|
|
608
|
-
securityGroupIds: (_) => (0, smithy_client_1._json)(_),
|
|
609
|
-
subnets: (_) => (0, smithy_client_1._json)(_),
|
|
610
|
-
trainModelS3Location: [],
|
|
611
|
-
trainingInstanceType: [],
|
|
612
|
-
trainingInstanceVolumeSizeInGB: [],
|
|
613
|
-
trainingTimeOutInSeconds: [],
|
|
614
|
-
volumeEncryptionKMSKey: [],
|
|
615
|
-
}));
|
|
616
|
-
b.m("POST").h(headers).b(body);
|
|
617
|
-
return b.build();
|
|
618
|
-
};
|
|
619
|
-
exports.se_StartMLModelTrainingJobCommand = se_StartMLModelTrainingJobCommand;
|
|
620
|
-
const se_StartMLModelTransformJobCommand = async (input, context) => {
|
|
621
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
622
|
-
const headers = {
|
|
623
|
-
"content-type": "application/json",
|
|
624
|
-
};
|
|
625
|
-
b.bp("/ml/modeltransform");
|
|
626
|
-
let body;
|
|
627
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
628
|
-
baseProcessingInstanceType: [],
|
|
629
|
-
baseProcessingInstanceVolumeSizeInGB: [],
|
|
630
|
-
customModelTransformParameters: (_) => (0, smithy_client_1._json)(_),
|
|
631
|
-
dataProcessingJobId: [],
|
|
632
|
-
id: [],
|
|
633
|
-
mlModelTrainingJobId: [],
|
|
634
|
-
modelTransformOutputS3Location: [],
|
|
635
|
-
neptuneIamRoleArn: [],
|
|
636
|
-
s3OutputEncryptionKMSKey: [],
|
|
637
|
-
sagemakerIamRoleArn: [],
|
|
638
|
-
securityGroupIds: (_) => (0, smithy_client_1._json)(_),
|
|
639
|
-
subnets: (_) => (0, smithy_client_1._json)(_),
|
|
640
|
-
trainingJobName: [],
|
|
641
|
-
volumeEncryptionKMSKey: [],
|
|
642
|
-
}));
|
|
643
|
-
b.m("POST").h(headers).b(body);
|
|
644
|
-
return b.build();
|
|
645
|
-
};
|
|
646
|
-
exports.se_StartMLModelTransformJobCommand = se_StartMLModelTransformJobCommand;
|
|
647
|
-
const de_CancelGremlinQueryCommand = async (output, context) => {
|
|
648
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
-
return de_CancelGremlinQueryCommandError(output, context);
|
|
650
|
-
}
|
|
651
|
-
const contents = (0, smithy_client_1.map)({
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
});
|
|
654
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
655
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
656
|
-
status: smithy_client_1.expectString,
|
|
657
|
-
});
|
|
658
|
-
Object.assign(contents, doc);
|
|
659
|
-
return contents;
|
|
660
|
-
};
|
|
661
|
-
exports.de_CancelGremlinQueryCommand = de_CancelGremlinQueryCommand;
|
|
662
|
-
const de_CancelGremlinQueryCommandError = async (output, context) => {
|
|
663
|
-
const parsedOutput = {
|
|
664
|
-
...output,
|
|
665
|
-
body: await parseErrorBody(output.body, context),
|
|
666
|
-
};
|
|
667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
|
-
switch (errorCode) {
|
|
669
|
-
case "BadRequestException":
|
|
670
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
671
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
672
|
-
case "ClientTimeoutException":
|
|
673
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
674
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
675
|
-
case "ConcurrentModificationException":
|
|
676
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
677
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ConstraintViolationException":
|
|
679
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
680
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
681
|
-
case "FailureByQueryException":
|
|
682
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
683
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
684
|
-
case "IllegalArgumentException":
|
|
685
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
686
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
687
|
-
case "InvalidArgumentException":
|
|
688
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
689
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
690
|
-
case "InvalidParameterException":
|
|
691
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
692
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
693
|
-
case "MissingParameterException":
|
|
694
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
695
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ParsingException":
|
|
697
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
698
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
699
|
-
case "PreconditionsFailedException":
|
|
700
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
701
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
702
|
-
case "TimeLimitExceededException":
|
|
703
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
704
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
705
|
-
case "TooManyRequestsException":
|
|
706
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
707
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
708
|
-
case "UnsupportedOperationException":
|
|
709
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
710
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
711
|
-
default:
|
|
712
|
-
const parsedBody = parsedOutput.body;
|
|
713
|
-
return throwDefaultError({
|
|
714
|
-
output,
|
|
715
|
-
parsedBody,
|
|
716
|
-
errorCode,
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
const de_CancelLoaderJobCommand = async (output, context) => {
|
|
721
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
|
-
return de_CancelLoaderJobCommandError(output, context);
|
|
723
|
-
}
|
|
724
|
-
const contents = (0, smithy_client_1.map)({
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
});
|
|
727
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
728
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
729
|
-
status: smithy_client_1.expectString,
|
|
730
|
-
});
|
|
731
|
-
Object.assign(contents, doc);
|
|
732
|
-
return contents;
|
|
733
|
-
};
|
|
734
|
-
exports.de_CancelLoaderJobCommand = de_CancelLoaderJobCommand;
|
|
735
|
-
const de_CancelLoaderJobCommandError = async (output, context) => {
|
|
736
|
-
const parsedOutput = {
|
|
737
|
-
...output,
|
|
738
|
-
body: await parseErrorBody(output.body, context),
|
|
739
|
-
};
|
|
740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
|
-
switch (errorCode) {
|
|
742
|
-
case "BadRequestException":
|
|
743
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
744
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
745
|
-
case "BulkLoadIdNotFoundException":
|
|
746
|
-
case "com.amazonaws.neptunedata#BulkLoadIdNotFoundException":
|
|
747
|
-
throw await de_BulkLoadIdNotFoundExceptionRes(parsedOutput, context);
|
|
748
|
-
case "ClientTimeoutException":
|
|
749
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
750
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ConstraintViolationException":
|
|
752
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
753
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
754
|
-
case "IllegalArgumentException":
|
|
755
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
756
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
757
|
-
case "InternalFailureException":
|
|
758
|
-
case "com.amazonaws.neptunedata#InternalFailureException":
|
|
759
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
760
|
-
case "InvalidArgumentException":
|
|
761
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
762
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
763
|
-
case "InvalidParameterException":
|
|
764
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
765
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
766
|
-
case "LoadUrlAccessDeniedException":
|
|
767
|
-
case "com.amazonaws.neptunedata#LoadUrlAccessDeniedException":
|
|
768
|
-
throw await de_LoadUrlAccessDeniedExceptionRes(parsedOutput, context);
|
|
769
|
-
case "MissingParameterException":
|
|
770
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
771
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
772
|
-
case "PreconditionsFailedException":
|
|
773
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
774
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
775
|
-
case "TooManyRequestsException":
|
|
776
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
777
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
778
|
-
case "UnsupportedOperationException":
|
|
779
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
780
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode,
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
const de_CancelMLDataProcessingJobCommand = async (output, context) => {
|
|
791
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return de_CancelMLDataProcessingJobCommandError(output, context);
|
|
793
|
-
}
|
|
794
|
-
const contents = (0, smithy_client_1.map)({
|
|
795
|
-
$metadata: deserializeMetadata(output),
|
|
796
|
-
});
|
|
797
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
798
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
799
|
-
status: smithy_client_1.expectString,
|
|
800
|
-
});
|
|
801
|
-
Object.assign(contents, doc);
|
|
802
|
-
return contents;
|
|
803
|
-
};
|
|
804
|
-
exports.de_CancelMLDataProcessingJobCommand = de_CancelMLDataProcessingJobCommand;
|
|
805
|
-
const de_CancelMLDataProcessingJobCommandError = async (output, context) => {
|
|
806
|
-
const parsedOutput = {
|
|
807
|
-
...output,
|
|
808
|
-
body: await parseErrorBody(output.body, context),
|
|
809
|
-
};
|
|
810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
|
-
switch (errorCode) {
|
|
812
|
-
case "BadRequestException":
|
|
813
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
814
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ClientTimeoutException":
|
|
816
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
817
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ConstraintViolationException":
|
|
819
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
820
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
821
|
-
case "IllegalArgumentException":
|
|
822
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
823
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
824
|
-
case "InvalidArgumentException":
|
|
825
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
826
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
827
|
-
case "InvalidParameterException":
|
|
828
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
829
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
830
|
-
case "MLResourceNotFoundException":
|
|
831
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
832
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
833
|
-
case "MissingParameterException":
|
|
834
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
835
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
836
|
-
case "PreconditionsFailedException":
|
|
837
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
838
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
839
|
-
case "TooManyRequestsException":
|
|
840
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
841
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
842
|
-
case "UnsupportedOperationException":
|
|
843
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
844
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
845
|
-
default:
|
|
846
|
-
const parsedBody = parsedOutput.body;
|
|
847
|
-
return throwDefaultError({
|
|
848
|
-
output,
|
|
849
|
-
parsedBody,
|
|
850
|
-
errorCode,
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
};
|
|
854
|
-
const de_CancelMLModelTrainingJobCommand = async (output, context) => {
|
|
855
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
|
-
return de_CancelMLModelTrainingJobCommandError(output, context);
|
|
857
|
-
}
|
|
858
|
-
const contents = (0, smithy_client_1.map)({
|
|
859
|
-
$metadata: deserializeMetadata(output),
|
|
860
|
-
});
|
|
861
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
862
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
863
|
-
status: smithy_client_1.expectString,
|
|
864
|
-
});
|
|
865
|
-
Object.assign(contents, doc);
|
|
866
|
-
return contents;
|
|
867
|
-
};
|
|
868
|
-
exports.de_CancelMLModelTrainingJobCommand = de_CancelMLModelTrainingJobCommand;
|
|
869
|
-
const de_CancelMLModelTrainingJobCommandError = async (output, context) => {
|
|
870
|
-
const parsedOutput = {
|
|
871
|
-
...output,
|
|
872
|
-
body: await parseErrorBody(output.body, context),
|
|
873
|
-
};
|
|
874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
-
switch (errorCode) {
|
|
876
|
-
case "BadRequestException":
|
|
877
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
878
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
879
|
-
case "ClientTimeoutException":
|
|
880
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
881
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ConstraintViolationException":
|
|
883
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
884
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
885
|
-
case "IllegalArgumentException":
|
|
886
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
887
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
888
|
-
case "InvalidArgumentException":
|
|
889
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
890
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
891
|
-
case "InvalidParameterException":
|
|
892
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
893
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
894
|
-
case "MLResourceNotFoundException":
|
|
895
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
896
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
897
|
-
case "MissingParameterException":
|
|
898
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
899
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
900
|
-
case "PreconditionsFailedException":
|
|
901
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
902
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
903
|
-
case "TooManyRequestsException":
|
|
904
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
905
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
906
|
-
case "UnsupportedOperationException":
|
|
907
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
908
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
909
|
-
default:
|
|
910
|
-
const parsedBody = parsedOutput.body;
|
|
911
|
-
return throwDefaultError({
|
|
912
|
-
output,
|
|
913
|
-
parsedBody,
|
|
914
|
-
errorCode,
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
const de_CancelMLModelTransformJobCommand = async (output, context) => {
|
|
919
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
920
|
-
return de_CancelMLModelTransformJobCommandError(output, context);
|
|
921
|
-
}
|
|
922
|
-
const contents = (0, smithy_client_1.map)({
|
|
923
|
-
$metadata: deserializeMetadata(output),
|
|
924
|
-
});
|
|
925
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
926
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
927
|
-
status: smithy_client_1.expectString,
|
|
928
|
-
});
|
|
929
|
-
Object.assign(contents, doc);
|
|
930
|
-
return contents;
|
|
931
|
-
};
|
|
932
|
-
exports.de_CancelMLModelTransformJobCommand = de_CancelMLModelTransformJobCommand;
|
|
933
|
-
const de_CancelMLModelTransformJobCommandError = async (output, context) => {
|
|
934
|
-
const parsedOutput = {
|
|
935
|
-
...output,
|
|
936
|
-
body: await parseErrorBody(output.body, context),
|
|
937
|
-
};
|
|
938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
-
switch (errorCode) {
|
|
940
|
-
case "BadRequestException":
|
|
941
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
942
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
943
|
-
case "ClientTimeoutException":
|
|
944
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
945
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
946
|
-
case "ConstraintViolationException":
|
|
947
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
948
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
949
|
-
case "IllegalArgumentException":
|
|
950
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
951
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
952
|
-
case "InvalidArgumentException":
|
|
953
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
954
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
955
|
-
case "InvalidParameterException":
|
|
956
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
957
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
958
|
-
case "MLResourceNotFoundException":
|
|
959
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
960
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
961
|
-
case "MissingParameterException":
|
|
962
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
963
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
964
|
-
case "PreconditionsFailedException":
|
|
965
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
966
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
967
|
-
case "TooManyRequestsException":
|
|
968
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
969
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
970
|
-
case "UnsupportedOperationException":
|
|
971
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
972
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode,
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
const de_CancelOpenCypherQueryCommand = async (output, context) => {
|
|
983
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return de_CancelOpenCypherQueryCommandError(output, context);
|
|
985
|
-
}
|
|
986
|
-
const contents = (0, smithy_client_1.map)({
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
});
|
|
989
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
990
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
991
|
-
payload: smithy_client_1.expectBoolean,
|
|
992
|
-
status: smithy_client_1.expectString,
|
|
993
|
-
});
|
|
994
|
-
Object.assign(contents, doc);
|
|
995
|
-
return contents;
|
|
996
|
-
};
|
|
997
|
-
exports.de_CancelOpenCypherQueryCommand = de_CancelOpenCypherQueryCommand;
|
|
998
|
-
const de_CancelOpenCypherQueryCommandError = async (output, context) => {
|
|
999
|
-
const parsedOutput = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseErrorBody(output.body, context),
|
|
1002
|
-
};
|
|
1003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "BadRequestException":
|
|
1006
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1007
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ClientTimeoutException":
|
|
1009
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1010
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "ConcurrentModificationException":
|
|
1012
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
1013
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ConstraintViolationException":
|
|
1015
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1016
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "FailureByQueryException":
|
|
1018
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
1019
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "IllegalArgumentException":
|
|
1021
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1022
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "InvalidArgumentException":
|
|
1024
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1025
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "InvalidNumericDataException":
|
|
1027
|
-
case "com.amazonaws.neptunedata#InvalidNumericDataException":
|
|
1028
|
-
throw await de_InvalidNumericDataExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "InvalidParameterException":
|
|
1030
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1031
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "MissingParameterException":
|
|
1033
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1034
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "ParsingException":
|
|
1036
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
1037
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "PreconditionsFailedException":
|
|
1039
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1040
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "TimeLimitExceededException":
|
|
1042
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
1043
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "TooManyRequestsException":
|
|
1045
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1046
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "UnsupportedOperationException":
|
|
1048
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1049
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1050
|
-
default:
|
|
1051
|
-
const parsedBody = parsedOutput.body;
|
|
1052
|
-
return throwDefaultError({
|
|
1053
|
-
output,
|
|
1054
|
-
parsedBody,
|
|
1055
|
-
errorCode,
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
};
|
|
1059
|
-
const de_CreateMLEndpointCommand = async (output, context) => {
|
|
1060
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
-
return de_CreateMLEndpointCommandError(output, context);
|
|
1062
|
-
}
|
|
1063
|
-
const contents = (0, smithy_client_1.map)({
|
|
1064
|
-
$metadata: deserializeMetadata(output),
|
|
1065
|
-
});
|
|
1066
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1067
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1068
|
-
arn: smithy_client_1.expectString,
|
|
1069
|
-
creationTimeInMillis: smithy_client_1.expectLong,
|
|
1070
|
-
id: smithy_client_1.expectString,
|
|
1071
|
-
});
|
|
1072
|
-
Object.assign(contents, doc);
|
|
1073
|
-
return contents;
|
|
1074
|
-
};
|
|
1075
|
-
exports.de_CreateMLEndpointCommand = de_CreateMLEndpointCommand;
|
|
1076
|
-
const de_CreateMLEndpointCommandError = async (output, context) => {
|
|
1077
|
-
const parsedOutput = {
|
|
1078
|
-
...output,
|
|
1079
|
-
body: await parseErrorBody(output.body, context),
|
|
1080
|
-
};
|
|
1081
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
|
-
switch (errorCode) {
|
|
1083
|
-
case "BadRequestException":
|
|
1084
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1085
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "ClientTimeoutException":
|
|
1087
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1088
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1089
|
-
case "ConstraintViolationException":
|
|
1090
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1091
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "IllegalArgumentException":
|
|
1093
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1094
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "InvalidArgumentException":
|
|
1096
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1097
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "InvalidParameterException":
|
|
1099
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1100
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "MLResourceNotFoundException":
|
|
1102
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
1103
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "MissingParameterException":
|
|
1105
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1106
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "PreconditionsFailedException":
|
|
1108
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1109
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "TooManyRequestsException":
|
|
1111
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1112
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "UnsupportedOperationException":
|
|
1114
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1115
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1116
|
-
default:
|
|
1117
|
-
const parsedBody = parsedOutput.body;
|
|
1118
|
-
return throwDefaultError({
|
|
1119
|
-
output,
|
|
1120
|
-
parsedBody,
|
|
1121
|
-
errorCode,
|
|
1122
|
-
});
|
|
1123
|
-
}
|
|
1124
|
-
};
|
|
1125
|
-
const de_DeleteMLEndpointCommand = async (output, context) => {
|
|
1126
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1127
|
-
return de_DeleteMLEndpointCommandError(output, context);
|
|
1128
|
-
}
|
|
1129
|
-
const contents = (0, smithy_client_1.map)({
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
});
|
|
1132
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1133
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1134
|
-
status: smithy_client_1.expectString,
|
|
1135
|
-
});
|
|
1136
|
-
Object.assign(contents, doc);
|
|
1137
|
-
return contents;
|
|
1138
|
-
};
|
|
1139
|
-
exports.de_DeleteMLEndpointCommand = de_DeleteMLEndpointCommand;
|
|
1140
|
-
const de_DeleteMLEndpointCommandError = async (output, context) => {
|
|
1141
|
-
const parsedOutput = {
|
|
1142
|
-
...output,
|
|
1143
|
-
body: await parseErrorBody(output.body, context),
|
|
1144
|
-
};
|
|
1145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
-
switch (errorCode) {
|
|
1147
|
-
case "BadRequestException":
|
|
1148
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1149
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1150
|
-
case "ClientTimeoutException":
|
|
1151
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1152
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "ConstraintViolationException":
|
|
1154
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1155
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "IllegalArgumentException":
|
|
1157
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1158
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "InvalidArgumentException":
|
|
1160
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1161
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "InvalidParameterException":
|
|
1163
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1164
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "MLResourceNotFoundException":
|
|
1166
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
1167
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "MissingParameterException":
|
|
1169
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1170
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "PreconditionsFailedException":
|
|
1172
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1173
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "TooManyRequestsException":
|
|
1175
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1176
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "UnsupportedOperationException":
|
|
1178
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1179
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1180
|
-
default:
|
|
1181
|
-
const parsedBody = parsedOutput.body;
|
|
1182
|
-
return throwDefaultError({
|
|
1183
|
-
output,
|
|
1184
|
-
parsedBody,
|
|
1185
|
-
errorCode,
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
};
|
|
1189
|
-
const de_DeletePropertygraphStatisticsCommand = async (output, context) => {
|
|
1190
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1191
|
-
return de_DeletePropertygraphStatisticsCommandError(output, context);
|
|
1192
|
-
}
|
|
1193
|
-
const contents = (0, smithy_client_1.map)({
|
|
1194
|
-
$metadata: deserializeMetadata(output),
|
|
1195
|
-
});
|
|
1196
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1197
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1198
|
-
payload: smithy_client_1._json,
|
|
1199
|
-
status: smithy_client_1.expectString,
|
|
1200
|
-
});
|
|
1201
|
-
Object.assign(contents, doc);
|
|
1202
|
-
(0, smithy_client_1.map)(contents, {
|
|
1203
|
-
statusCode: [, output.statusCode],
|
|
1204
|
-
});
|
|
1205
|
-
return contents;
|
|
1206
|
-
};
|
|
1207
|
-
exports.de_DeletePropertygraphStatisticsCommand = de_DeletePropertygraphStatisticsCommand;
|
|
1208
|
-
const de_DeletePropertygraphStatisticsCommandError = async (output, context) => {
|
|
1209
|
-
const parsedOutput = {
|
|
1210
|
-
...output,
|
|
1211
|
-
body: await parseErrorBody(output.body, context),
|
|
1212
|
-
};
|
|
1213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
|
-
switch (errorCode) {
|
|
1215
|
-
case "AccessDeniedException":
|
|
1216
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
1217
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "BadRequestException":
|
|
1219
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1220
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ClientTimeoutException":
|
|
1222
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1223
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "ConstraintViolationException":
|
|
1225
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1226
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "IllegalArgumentException":
|
|
1228
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1229
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "InvalidArgumentException":
|
|
1231
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1232
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "InvalidParameterException":
|
|
1234
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1235
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "MissingParameterException":
|
|
1237
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1238
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "PreconditionsFailedException":
|
|
1240
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1241
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "ReadOnlyViolationException":
|
|
1243
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
1244
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "StatisticsNotAvailableException":
|
|
1246
|
-
case "com.amazonaws.neptunedata#StatisticsNotAvailableException":
|
|
1247
|
-
throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "TooManyRequestsException":
|
|
1249
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1250
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "UnsupportedOperationException":
|
|
1252
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1253
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1254
|
-
default:
|
|
1255
|
-
const parsedBody = parsedOutput.body;
|
|
1256
|
-
return throwDefaultError({
|
|
1257
|
-
output,
|
|
1258
|
-
parsedBody,
|
|
1259
|
-
errorCode,
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
};
|
|
1263
|
-
const de_DeleteSparqlStatisticsCommand = async (output, context) => {
|
|
1264
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
-
return de_DeleteSparqlStatisticsCommandError(output, context);
|
|
1266
|
-
}
|
|
1267
|
-
const contents = (0, smithy_client_1.map)({
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
});
|
|
1270
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1271
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1272
|
-
payload: smithy_client_1._json,
|
|
1273
|
-
status: smithy_client_1.expectString,
|
|
1274
|
-
});
|
|
1275
|
-
Object.assign(contents, doc);
|
|
1276
|
-
(0, smithy_client_1.map)(contents, {
|
|
1277
|
-
statusCode: [, output.statusCode],
|
|
1278
|
-
});
|
|
1279
|
-
return contents;
|
|
1280
|
-
};
|
|
1281
|
-
exports.de_DeleteSparqlStatisticsCommand = de_DeleteSparqlStatisticsCommand;
|
|
1282
|
-
const de_DeleteSparqlStatisticsCommandError = async (output, context) => {
|
|
1283
|
-
const parsedOutput = {
|
|
1284
|
-
...output,
|
|
1285
|
-
body: await parseErrorBody(output.body, context),
|
|
1286
|
-
};
|
|
1287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
|
-
switch (errorCode) {
|
|
1289
|
-
case "AccessDeniedException":
|
|
1290
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
1291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "BadRequestException":
|
|
1293
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1294
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "ClientTimeoutException":
|
|
1296
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1297
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ConstraintViolationException":
|
|
1299
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1300
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "IllegalArgumentException":
|
|
1302
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1303
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "InvalidArgumentException":
|
|
1305
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1306
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "InvalidParameterException":
|
|
1308
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1309
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "MissingParameterException":
|
|
1311
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1312
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "PreconditionsFailedException":
|
|
1314
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1315
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "ReadOnlyViolationException":
|
|
1317
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
1318
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "StatisticsNotAvailableException":
|
|
1320
|
-
case "com.amazonaws.neptunedata#StatisticsNotAvailableException":
|
|
1321
|
-
throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "TooManyRequestsException":
|
|
1323
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1324
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "UnsupportedOperationException":
|
|
1326
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1327
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1328
|
-
default:
|
|
1329
|
-
const parsedBody = parsedOutput.body;
|
|
1330
|
-
return throwDefaultError({
|
|
1331
|
-
output,
|
|
1332
|
-
parsedBody,
|
|
1333
|
-
errorCode,
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
|
-
};
|
|
1337
|
-
const de_ExecuteFastResetCommand = async (output, context) => {
|
|
1338
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
-
return de_ExecuteFastResetCommandError(output, context);
|
|
1340
|
-
}
|
|
1341
|
-
const contents = (0, smithy_client_1.map)({
|
|
1342
|
-
$metadata: deserializeMetadata(output),
|
|
1343
|
-
});
|
|
1344
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1345
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1346
|
-
payload: smithy_client_1._json,
|
|
1347
|
-
status: smithy_client_1.expectString,
|
|
1348
|
-
});
|
|
1349
|
-
Object.assign(contents, doc);
|
|
1350
|
-
return contents;
|
|
1351
|
-
};
|
|
1352
|
-
exports.de_ExecuteFastResetCommand = de_ExecuteFastResetCommand;
|
|
1353
|
-
const de_ExecuteFastResetCommandError = async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context),
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
switch (errorCode) {
|
|
1360
|
-
case "AccessDeniedException":
|
|
1361
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
1362
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "ClientTimeoutException":
|
|
1364
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1365
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "ConstraintViolationException":
|
|
1367
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1368
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "IllegalArgumentException":
|
|
1370
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1371
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "InvalidArgumentException":
|
|
1373
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1374
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "InvalidParameterException":
|
|
1376
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1377
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "MethodNotAllowedException":
|
|
1379
|
-
case "com.amazonaws.neptunedata#MethodNotAllowedException":
|
|
1380
|
-
throw await de_MethodNotAllowedExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "MissingParameterException":
|
|
1382
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1383
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "PreconditionsFailedException":
|
|
1385
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1386
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ReadOnlyViolationException":
|
|
1388
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
1389
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ServerShutdownException":
|
|
1391
|
-
case "com.amazonaws.neptunedata#ServerShutdownException":
|
|
1392
|
-
throw await de_ServerShutdownExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "TooManyRequestsException":
|
|
1394
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1395
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "UnsupportedOperationException":
|
|
1397
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1398
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1399
|
-
default:
|
|
1400
|
-
const parsedBody = parsedOutput.body;
|
|
1401
|
-
return throwDefaultError({
|
|
1402
|
-
output,
|
|
1403
|
-
parsedBody,
|
|
1404
|
-
errorCode,
|
|
1405
|
-
});
|
|
1406
|
-
}
|
|
1407
|
-
};
|
|
1408
|
-
const de_ExecuteGremlinExplainQueryCommand = async (output, context) => {
|
|
1409
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1410
|
-
return de_ExecuteGremlinExplainQueryCommandError(output, context);
|
|
1411
|
-
}
|
|
1412
|
-
const contents = (0, smithy_client_1.map)({
|
|
1413
|
-
$metadata: deserializeMetadata(output),
|
|
1414
|
-
});
|
|
1415
|
-
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1416
|
-
contents.output = data;
|
|
1417
|
-
return contents;
|
|
1418
|
-
};
|
|
1419
|
-
exports.de_ExecuteGremlinExplainQueryCommand = de_ExecuteGremlinExplainQueryCommand;
|
|
1420
|
-
const de_ExecuteGremlinExplainQueryCommandError = async (output, context) => {
|
|
1421
|
-
const parsedOutput = {
|
|
1422
|
-
...output,
|
|
1423
|
-
body: await parseErrorBody(output.body, context),
|
|
1424
|
-
};
|
|
1425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
-
switch (errorCode) {
|
|
1427
|
-
case "BadRequestException":
|
|
1428
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1429
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "CancelledByUserException":
|
|
1431
|
-
case "com.amazonaws.neptunedata#CancelledByUserException":
|
|
1432
|
-
throw await de_CancelledByUserExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ClientTimeoutException":
|
|
1434
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1435
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "ConcurrentModificationException":
|
|
1437
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
1438
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "ConstraintViolationException":
|
|
1440
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1441
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "FailureByQueryException":
|
|
1443
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
1444
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "IllegalArgumentException":
|
|
1446
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1447
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1448
|
-
case "InvalidArgumentException":
|
|
1449
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1450
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1451
|
-
case "InvalidParameterException":
|
|
1452
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1453
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "MalformedQueryException":
|
|
1455
|
-
case "com.amazonaws.neptunedata#MalformedQueryException":
|
|
1456
|
-
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "MemoryLimitExceededException":
|
|
1458
|
-
case "com.amazonaws.neptunedata#MemoryLimitExceededException":
|
|
1459
|
-
throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "MissingParameterException":
|
|
1461
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1462
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "ParsingException":
|
|
1464
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
1465
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "PreconditionsFailedException":
|
|
1467
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1468
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "QueryLimitExceededException":
|
|
1470
|
-
case "com.amazonaws.neptunedata#QueryLimitExceededException":
|
|
1471
|
-
throw await de_QueryLimitExceededExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "QueryLimitException":
|
|
1473
|
-
case "com.amazonaws.neptunedata#QueryLimitException":
|
|
1474
|
-
throw await de_QueryLimitExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "QueryTooLargeException":
|
|
1476
|
-
case "com.amazonaws.neptunedata#QueryTooLargeException":
|
|
1477
|
-
throw await de_QueryTooLargeExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "TimeLimitExceededException":
|
|
1479
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
1480
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "TooManyRequestsException":
|
|
1482
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1483
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "UnsupportedOperationException":
|
|
1485
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1486
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1487
|
-
default:
|
|
1488
|
-
const parsedBody = parsedOutput.body;
|
|
1489
|
-
return throwDefaultError({
|
|
1490
|
-
output,
|
|
1491
|
-
parsedBody,
|
|
1492
|
-
errorCode,
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
};
|
|
1496
|
-
const de_ExecuteGremlinProfileQueryCommand = async (output, context) => {
|
|
1497
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
|
-
return de_ExecuteGremlinProfileQueryCommandError(output, context);
|
|
1499
|
-
}
|
|
1500
|
-
const contents = (0, smithy_client_1.map)({
|
|
1501
|
-
$metadata: deserializeMetadata(output),
|
|
1502
|
-
});
|
|
1503
|
-
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1504
|
-
contents.output = data;
|
|
1505
|
-
return contents;
|
|
1506
|
-
};
|
|
1507
|
-
exports.de_ExecuteGremlinProfileQueryCommand = de_ExecuteGremlinProfileQueryCommand;
|
|
1508
|
-
const de_ExecuteGremlinProfileQueryCommandError = async (output, context) => {
|
|
1509
|
-
const parsedOutput = {
|
|
1510
|
-
...output,
|
|
1511
|
-
body: await parseErrorBody(output.body, context),
|
|
1512
|
-
};
|
|
1513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
|
-
switch (errorCode) {
|
|
1515
|
-
case "BadRequestException":
|
|
1516
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1517
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "CancelledByUserException":
|
|
1519
|
-
case "com.amazonaws.neptunedata#CancelledByUserException":
|
|
1520
|
-
throw await de_CancelledByUserExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "ClientTimeoutException":
|
|
1522
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1523
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "ConcurrentModificationException":
|
|
1525
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
1526
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "ConstraintViolationException":
|
|
1528
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1529
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1530
|
-
case "FailureByQueryException":
|
|
1531
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
1532
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "IllegalArgumentException":
|
|
1534
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1535
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "InvalidArgumentException":
|
|
1537
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1538
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "InvalidParameterException":
|
|
1540
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1541
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "MalformedQueryException":
|
|
1543
|
-
case "com.amazonaws.neptunedata#MalformedQueryException":
|
|
1544
|
-
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "MemoryLimitExceededException":
|
|
1546
|
-
case "com.amazonaws.neptunedata#MemoryLimitExceededException":
|
|
1547
|
-
throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context);
|
|
1548
|
-
case "MissingParameterException":
|
|
1549
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1550
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "ParsingException":
|
|
1552
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
1553
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "PreconditionsFailedException":
|
|
1555
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1556
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "QueryLimitExceededException":
|
|
1558
|
-
case "com.amazonaws.neptunedata#QueryLimitExceededException":
|
|
1559
|
-
throw await de_QueryLimitExceededExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "QueryLimitException":
|
|
1561
|
-
case "com.amazonaws.neptunedata#QueryLimitException":
|
|
1562
|
-
throw await de_QueryLimitExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "QueryTooLargeException":
|
|
1564
|
-
case "com.amazonaws.neptunedata#QueryTooLargeException":
|
|
1565
|
-
throw await de_QueryTooLargeExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "TimeLimitExceededException":
|
|
1567
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
1568
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "TooManyRequestsException":
|
|
1570
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1571
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "UnsupportedOperationException":
|
|
1573
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1574
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1575
|
-
default:
|
|
1576
|
-
const parsedBody = parsedOutput.body;
|
|
1577
|
-
return throwDefaultError({
|
|
1578
|
-
output,
|
|
1579
|
-
parsedBody,
|
|
1580
|
-
errorCode,
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
const de_ExecuteGremlinQueryCommand = async (output, context) => {
|
|
1585
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1586
|
-
return de_ExecuteGremlinQueryCommandError(output, context);
|
|
1587
|
-
}
|
|
1588
|
-
const contents = (0, smithy_client_1.map)({
|
|
1589
|
-
$metadata: deserializeMetadata(output),
|
|
1590
|
-
});
|
|
1591
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1592
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1593
|
-
meta: (_) => de_Document(_, context),
|
|
1594
|
-
requestId: smithy_client_1.expectString,
|
|
1595
|
-
result: (_) => de_Document(_, context),
|
|
1596
|
-
status: (_) => de_GremlinQueryStatusAttributes(_, context),
|
|
1597
|
-
});
|
|
1598
|
-
Object.assign(contents, doc);
|
|
1599
|
-
return contents;
|
|
1600
|
-
};
|
|
1601
|
-
exports.de_ExecuteGremlinQueryCommand = de_ExecuteGremlinQueryCommand;
|
|
1602
|
-
const de_ExecuteGremlinQueryCommandError = async (output, context) => {
|
|
1603
|
-
const parsedOutput = {
|
|
1604
|
-
...output,
|
|
1605
|
-
body: await parseErrorBody(output.body, context),
|
|
1606
|
-
};
|
|
1607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1608
|
-
switch (errorCode) {
|
|
1609
|
-
case "BadRequestException":
|
|
1610
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1611
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1612
|
-
case "CancelledByUserException":
|
|
1613
|
-
case "com.amazonaws.neptunedata#CancelledByUserException":
|
|
1614
|
-
throw await de_CancelledByUserExceptionRes(parsedOutput, context);
|
|
1615
|
-
case "ClientTimeoutException":
|
|
1616
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1617
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1618
|
-
case "ConcurrentModificationException":
|
|
1619
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
1620
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1621
|
-
case "ConstraintViolationException":
|
|
1622
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1623
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "FailureByQueryException":
|
|
1625
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
1626
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "IllegalArgumentException":
|
|
1628
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1629
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "InvalidArgumentException":
|
|
1631
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1632
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "InvalidParameterException":
|
|
1634
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1635
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "MalformedQueryException":
|
|
1637
|
-
case "com.amazonaws.neptunedata#MalformedQueryException":
|
|
1638
|
-
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "MemoryLimitExceededException":
|
|
1640
|
-
case "com.amazonaws.neptunedata#MemoryLimitExceededException":
|
|
1641
|
-
throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "MissingParameterException":
|
|
1643
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1644
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ParsingException":
|
|
1646
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
1647
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
1648
|
-
case "PreconditionsFailedException":
|
|
1649
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1650
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "QueryLimitExceededException":
|
|
1652
|
-
case "com.amazonaws.neptunedata#QueryLimitExceededException":
|
|
1653
|
-
throw await de_QueryLimitExceededExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "QueryLimitException":
|
|
1655
|
-
case "com.amazonaws.neptunedata#QueryLimitException":
|
|
1656
|
-
throw await de_QueryLimitExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "QueryTooLargeException":
|
|
1658
|
-
case "com.amazonaws.neptunedata#QueryTooLargeException":
|
|
1659
|
-
throw await de_QueryTooLargeExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "TimeLimitExceededException":
|
|
1661
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
1662
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "TooManyRequestsException":
|
|
1664
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1665
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "UnsupportedOperationException":
|
|
1667
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1668
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1669
|
-
default:
|
|
1670
|
-
const parsedBody = parsedOutput.body;
|
|
1671
|
-
return throwDefaultError({
|
|
1672
|
-
output,
|
|
1673
|
-
parsedBody,
|
|
1674
|
-
errorCode,
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
};
|
|
1678
|
-
const de_ExecuteOpenCypherExplainQueryCommand = async (output, context) => {
|
|
1679
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1680
|
-
return de_ExecuteOpenCypherExplainQueryCommandError(output, context);
|
|
1681
|
-
}
|
|
1682
|
-
const contents = (0, smithy_client_1.map)({
|
|
1683
|
-
$metadata: deserializeMetadata(output),
|
|
1684
|
-
});
|
|
1685
|
-
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1686
|
-
contents.results = data;
|
|
1687
|
-
return contents;
|
|
1688
|
-
};
|
|
1689
|
-
exports.de_ExecuteOpenCypherExplainQueryCommand = de_ExecuteOpenCypherExplainQueryCommand;
|
|
1690
|
-
const de_ExecuteOpenCypherExplainQueryCommandError = async (output, context) => {
|
|
1691
|
-
const parsedOutput = {
|
|
1692
|
-
...output,
|
|
1693
|
-
body: await parseErrorBody(output.body, context),
|
|
1694
|
-
};
|
|
1695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1696
|
-
switch (errorCode) {
|
|
1697
|
-
case "BadRequestException":
|
|
1698
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1699
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "CancelledByUserException":
|
|
1701
|
-
case "com.amazonaws.neptunedata#CancelledByUserException":
|
|
1702
|
-
throw await de_CancelledByUserExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "ClientTimeoutException":
|
|
1704
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1705
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "ConcurrentModificationException":
|
|
1707
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
1708
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "ConstraintViolationException":
|
|
1710
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1711
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1712
|
-
case "FailureByQueryException":
|
|
1713
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
1714
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "IllegalArgumentException":
|
|
1716
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1717
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "InvalidArgumentException":
|
|
1719
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1720
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "InvalidNumericDataException":
|
|
1722
|
-
case "com.amazonaws.neptunedata#InvalidNumericDataException":
|
|
1723
|
-
throw await de_InvalidNumericDataExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "InvalidParameterException":
|
|
1725
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1726
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "MalformedQueryException":
|
|
1728
|
-
case "com.amazonaws.neptunedata#MalformedQueryException":
|
|
1729
|
-
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "MemoryLimitExceededException":
|
|
1731
|
-
case "com.amazonaws.neptunedata#MemoryLimitExceededException":
|
|
1732
|
-
throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "MissingParameterException":
|
|
1734
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1735
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "ParsingException":
|
|
1737
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
1738
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "PreconditionsFailedException":
|
|
1740
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1741
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "QueryLimitExceededException":
|
|
1743
|
-
case "com.amazonaws.neptunedata#QueryLimitExceededException":
|
|
1744
|
-
throw await de_QueryLimitExceededExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "QueryLimitException":
|
|
1746
|
-
case "com.amazonaws.neptunedata#QueryLimitException":
|
|
1747
|
-
throw await de_QueryLimitExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "QueryTooLargeException":
|
|
1749
|
-
case "com.amazonaws.neptunedata#QueryTooLargeException":
|
|
1750
|
-
throw await de_QueryTooLargeExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "TimeLimitExceededException":
|
|
1752
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
1753
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "TooManyRequestsException":
|
|
1755
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1756
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "UnsupportedOperationException":
|
|
1758
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1759
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1760
|
-
default:
|
|
1761
|
-
const parsedBody = parsedOutput.body;
|
|
1762
|
-
return throwDefaultError({
|
|
1763
|
-
output,
|
|
1764
|
-
parsedBody,
|
|
1765
|
-
errorCode,
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
};
|
|
1769
|
-
const de_ExecuteOpenCypherQueryCommand = async (output, context) => {
|
|
1770
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1771
|
-
return de_ExecuteOpenCypherQueryCommandError(output, context);
|
|
1772
|
-
}
|
|
1773
|
-
const contents = (0, smithy_client_1.map)({
|
|
1774
|
-
$metadata: deserializeMetadata(output),
|
|
1775
|
-
});
|
|
1776
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1777
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1778
|
-
results: (_) => de_Document(_, context),
|
|
1779
|
-
});
|
|
1780
|
-
Object.assign(contents, doc);
|
|
1781
|
-
return contents;
|
|
1782
|
-
};
|
|
1783
|
-
exports.de_ExecuteOpenCypherQueryCommand = de_ExecuteOpenCypherQueryCommand;
|
|
1784
|
-
const de_ExecuteOpenCypherQueryCommandError = async (output, context) => {
|
|
1785
|
-
const parsedOutput = {
|
|
1786
|
-
...output,
|
|
1787
|
-
body: await parseErrorBody(output.body, context),
|
|
1788
|
-
};
|
|
1789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
|
-
switch (errorCode) {
|
|
1791
|
-
case "BadRequestException":
|
|
1792
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1793
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "CancelledByUserException":
|
|
1795
|
-
case "com.amazonaws.neptunedata#CancelledByUserException":
|
|
1796
|
-
throw await de_CancelledByUserExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "ClientTimeoutException":
|
|
1798
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1799
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "ConcurrentModificationException":
|
|
1801
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
1802
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1803
|
-
case "ConstraintViolationException":
|
|
1804
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1805
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "FailureByQueryException":
|
|
1807
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
1808
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "IllegalArgumentException":
|
|
1810
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1811
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "InvalidArgumentException":
|
|
1813
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1814
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "InvalidNumericDataException":
|
|
1816
|
-
case "com.amazonaws.neptunedata#InvalidNumericDataException":
|
|
1817
|
-
throw await de_InvalidNumericDataExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "InvalidParameterException":
|
|
1819
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1820
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "MalformedQueryException":
|
|
1822
|
-
case "com.amazonaws.neptunedata#MalformedQueryException":
|
|
1823
|
-
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "MemoryLimitExceededException":
|
|
1825
|
-
case "com.amazonaws.neptunedata#MemoryLimitExceededException":
|
|
1826
|
-
throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "MissingParameterException":
|
|
1828
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1829
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1830
|
-
case "ParsingException":
|
|
1831
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
1832
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
1833
|
-
case "PreconditionsFailedException":
|
|
1834
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1835
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "QueryLimitExceededException":
|
|
1837
|
-
case "com.amazonaws.neptunedata#QueryLimitExceededException":
|
|
1838
|
-
throw await de_QueryLimitExceededExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "QueryLimitException":
|
|
1840
|
-
case "com.amazonaws.neptunedata#QueryLimitException":
|
|
1841
|
-
throw await de_QueryLimitExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "QueryTooLargeException":
|
|
1843
|
-
case "com.amazonaws.neptunedata#QueryTooLargeException":
|
|
1844
|
-
throw await de_QueryTooLargeExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "TimeLimitExceededException":
|
|
1846
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
1847
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "TooManyRequestsException":
|
|
1849
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1850
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "UnsupportedOperationException":
|
|
1852
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1853
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1854
|
-
default:
|
|
1855
|
-
const parsedBody = parsedOutput.body;
|
|
1856
|
-
return throwDefaultError({
|
|
1857
|
-
output,
|
|
1858
|
-
parsedBody,
|
|
1859
|
-
errorCode,
|
|
1860
|
-
});
|
|
1861
|
-
}
|
|
1862
|
-
};
|
|
1863
|
-
const de_GetEngineStatusCommand = async (output, context) => {
|
|
1864
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1865
|
-
return de_GetEngineStatusCommandError(output, context);
|
|
1866
|
-
}
|
|
1867
|
-
const contents = (0, smithy_client_1.map)({
|
|
1868
|
-
$metadata: deserializeMetadata(output),
|
|
1869
|
-
});
|
|
1870
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1871
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1872
|
-
dbEngineVersion: smithy_client_1.expectString,
|
|
1873
|
-
dfeQueryEngine: smithy_client_1.expectString,
|
|
1874
|
-
features: (_) => de_DocumentValuedMap(_, context),
|
|
1875
|
-
gremlin: smithy_client_1._json,
|
|
1876
|
-
labMode: smithy_client_1._json,
|
|
1877
|
-
opencypher: smithy_client_1._json,
|
|
1878
|
-
role: smithy_client_1.expectString,
|
|
1879
|
-
rollingBackTrxCount: smithy_client_1.expectInt32,
|
|
1880
|
-
rollingBackTrxEarliestStartTime: smithy_client_1.expectString,
|
|
1881
|
-
settings: smithy_client_1._json,
|
|
1882
|
-
sparql: smithy_client_1._json,
|
|
1883
|
-
startTime: smithy_client_1.expectString,
|
|
1884
|
-
status: smithy_client_1.expectString,
|
|
1885
|
-
});
|
|
1886
|
-
Object.assign(contents, doc);
|
|
1887
|
-
return contents;
|
|
1888
|
-
};
|
|
1889
|
-
exports.de_GetEngineStatusCommand = de_GetEngineStatusCommand;
|
|
1890
|
-
const de_GetEngineStatusCommandError = async (output, context) => {
|
|
1891
|
-
const parsedOutput = {
|
|
1892
|
-
...output,
|
|
1893
|
-
body: await parseErrorBody(output.body, context),
|
|
1894
|
-
};
|
|
1895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
-
switch (errorCode) {
|
|
1897
|
-
case "ClientTimeoutException":
|
|
1898
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1899
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ConstraintViolationException":
|
|
1901
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1902
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "IllegalArgumentException":
|
|
1904
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1905
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "InternalFailureException":
|
|
1907
|
-
case "com.amazonaws.neptunedata#InternalFailureException":
|
|
1908
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "InvalidArgumentException":
|
|
1910
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1911
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "PreconditionsFailedException":
|
|
1913
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1914
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "TooManyRequestsException":
|
|
1916
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1917
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "UnsupportedOperationException":
|
|
1919
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
1920
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1921
|
-
default:
|
|
1922
|
-
const parsedBody = parsedOutput.body;
|
|
1923
|
-
return throwDefaultError({
|
|
1924
|
-
output,
|
|
1925
|
-
parsedBody,
|
|
1926
|
-
errorCode,
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
};
|
|
1930
|
-
const de_GetGremlinQueryStatusCommand = async (output, context) => {
|
|
1931
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1932
|
-
return de_GetGremlinQueryStatusCommandError(output, context);
|
|
1933
|
-
}
|
|
1934
|
-
const contents = (0, smithy_client_1.map)({
|
|
1935
|
-
$metadata: deserializeMetadata(output),
|
|
1936
|
-
});
|
|
1937
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1938
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1939
|
-
queryEvalStats: (_) => de_QueryEvalStats(_, context),
|
|
1940
|
-
queryId: smithy_client_1.expectString,
|
|
1941
|
-
queryString: smithy_client_1.expectString,
|
|
1942
|
-
});
|
|
1943
|
-
Object.assign(contents, doc);
|
|
1944
|
-
return contents;
|
|
1945
|
-
};
|
|
1946
|
-
exports.de_GetGremlinQueryStatusCommand = de_GetGremlinQueryStatusCommand;
|
|
1947
|
-
const de_GetGremlinQueryStatusCommandError = async (output, context) => {
|
|
1948
|
-
const parsedOutput = {
|
|
1949
|
-
...output,
|
|
1950
|
-
body: await parseErrorBody(output.body, context),
|
|
1951
|
-
};
|
|
1952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
|
-
switch (errorCode) {
|
|
1954
|
-
case "AccessDeniedException":
|
|
1955
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
1956
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "BadRequestException":
|
|
1958
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
1959
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "ClientTimeoutException":
|
|
1961
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
1962
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
1963
|
-
case "ConcurrentModificationException":
|
|
1964
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
1965
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "ConstraintViolationException":
|
|
1967
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
1968
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "FailureByQueryException":
|
|
1970
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
1971
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "IllegalArgumentException":
|
|
1973
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
1974
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "InvalidArgumentException":
|
|
1976
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
1977
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "InvalidParameterException":
|
|
1979
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
1980
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "MissingParameterException":
|
|
1982
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
1983
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "ParsingException":
|
|
1985
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
1986
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "PreconditionsFailedException":
|
|
1988
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
1989
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "ReadOnlyViolationException":
|
|
1991
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
1992
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "TimeLimitExceededException":
|
|
1994
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
1995
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "TooManyRequestsException":
|
|
1997
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
1998
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "UnsupportedOperationException":
|
|
2000
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2001
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2002
|
-
default:
|
|
2003
|
-
const parsedBody = parsedOutput.body;
|
|
2004
|
-
return throwDefaultError({
|
|
2005
|
-
output,
|
|
2006
|
-
parsedBody,
|
|
2007
|
-
errorCode,
|
|
2008
|
-
});
|
|
2009
|
-
}
|
|
2010
|
-
};
|
|
2011
|
-
const de_GetLoaderJobStatusCommand = async (output, context) => {
|
|
2012
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2013
|
-
return de_GetLoaderJobStatusCommandError(output, context);
|
|
2014
|
-
}
|
|
2015
|
-
const contents = (0, smithy_client_1.map)({
|
|
2016
|
-
$metadata: deserializeMetadata(output),
|
|
2017
|
-
});
|
|
2018
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2019
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2020
|
-
payload: (_) => de_Document(_, context),
|
|
2021
|
-
status: smithy_client_1.expectString,
|
|
2022
|
-
});
|
|
2023
|
-
Object.assign(contents, doc);
|
|
2024
|
-
return contents;
|
|
2025
|
-
};
|
|
2026
|
-
exports.de_GetLoaderJobStatusCommand = de_GetLoaderJobStatusCommand;
|
|
2027
|
-
const de_GetLoaderJobStatusCommandError = async (output, context) => {
|
|
2028
|
-
const parsedOutput = {
|
|
2029
|
-
...output,
|
|
2030
|
-
body: await parseErrorBody(output.body, context),
|
|
2031
|
-
};
|
|
2032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
|
-
switch (errorCode) {
|
|
2034
|
-
case "BadRequestException":
|
|
2035
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2036
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "BulkLoadIdNotFoundException":
|
|
2038
|
-
case "com.amazonaws.neptunedata#BulkLoadIdNotFoundException":
|
|
2039
|
-
throw await de_BulkLoadIdNotFoundExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "ClientTimeoutException":
|
|
2041
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2042
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "ConstraintViolationException":
|
|
2044
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2045
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "IllegalArgumentException":
|
|
2047
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2048
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "InternalFailureException":
|
|
2050
|
-
case "com.amazonaws.neptunedata#InternalFailureException":
|
|
2051
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "InvalidArgumentException":
|
|
2053
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2054
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "InvalidParameterException":
|
|
2056
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2057
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "LoadUrlAccessDeniedException":
|
|
2059
|
-
case "com.amazonaws.neptunedata#LoadUrlAccessDeniedException":
|
|
2060
|
-
throw await de_LoadUrlAccessDeniedExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "MissingParameterException":
|
|
2062
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2063
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "PreconditionsFailedException":
|
|
2065
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2066
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "TooManyRequestsException":
|
|
2068
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2069
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2070
|
-
case "UnsupportedOperationException":
|
|
2071
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2072
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2073
|
-
default:
|
|
2074
|
-
const parsedBody = parsedOutput.body;
|
|
2075
|
-
return throwDefaultError({
|
|
2076
|
-
output,
|
|
2077
|
-
parsedBody,
|
|
2078
|
-
errorCode,
|
|
2079
|
-
});
|
|
2080
|
-
}
|
|
2081
|
-
};
|
|
2082
|
-
const de_GetMLDataProcessingJobCommand = async (output, context) => {
|
|
2083
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2084
|
-
return de_GetMLDataProcessingJobCommandError(output, context);
|
|
2085
|
-
}
|
|
2086
|
-
const contents = (0, smithy_client_1.map)({
|
|
2087
|
-
$metadata: deserializeMetadata(output),
|
|
2088
|
-
});
|
|
2089
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2090
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2091
|
-
id: smithy_client_1.expectString,
|
|
2092
|
-
processingJob: smithy_client_1._json,
|
|
2093
|
-
status: smithy_client_1.expectString,
|
|
2094
|
-
});
|
|
2095
|
-
Object.assign(contents, doc);
|
|
2096
|
-
return contents;
|
|
2097
|
-
};
|
|
2098
|
-
exports.de_GetMLDataProcessingJobCommand = de_GetMLDataProcessingJobCommand;
|
|
2099
|
-
const de_GetMLDataProcessingJobCommandError = async (output, context) => {
|
|
2100
|
-
const parsedOutput = {
|
|
2101
|
-
...output,
|
|
2102
|
-
body: await parseErrorBody(output.body, context),
|
|
2103
|
-
};
|
|
2104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
|
-
switch (errorCode) {
|
|
2106
|
-
case "BadRequestException":
|
|
2107
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2108
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "ClientTimeoutException":
|
|
2110
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2111
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ConstraintViolationException":
|
|
2113
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2114
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "IllegalArgumentException":
|
|
2116
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2117
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "InvalidArgumentException":
|
|
2119
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2120
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "InvalidParameterException":
|
|
2122
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2123
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "MLResourceNotFoundException":
|
|
2125
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
2126
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "MissingParameterException":
|
|
2128
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2129
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "PreconditionsFailedException":
|
|
2131
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2132
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2133
|
-
case "TooManyRequestsException":
|
|
2134
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2135
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2136
|
-
case "UnsupportedOperationException":
|
|
2137
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2138
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2139
|
-
default:
|
|
2140
|
-
const parsedBody = parsedOutput.body;
|
|
2141
|
-
return throwDefaultError({
|
|
2142
|
-
output,
|
|
2143
|
-
parsedBody,
|
|
2144
|
-
errorCode,
|
|
2145
|
-
});
|
|
2146
|
-
}
|
|
2147
|
-
};
|
|
2148
|
-
const de_GetMLEndpointCommand = async (output, context) => {
|
|
2149
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2150
|
-
return de_GetMLEndpointCommandError(output, context);
|
|
2151
|
-
}
|
|
2152
|
-
const contents = (0, smithy_client_1.map)({
|
|
2153
|
-
$metadata: deserializeMetadata(output),
|
|
2154
|
-
});
|
|
2155
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2156
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2157
|
-
endpoint: smithy_client_1._json,
|
|
2158
|
-
endpointConfig: smithy_client_1._json,
|
|
2159
|
-
id: smithy_client_1.expectString,
|
|
2160
|
-
status: smithy_client_1.expectString,
|
|
2161
|
-
});
|
|
2162
|
-
Object.assign(contents, doc);
|
|
2163
|
-
return contents;
|
|
2164
|
-
};
|
|
2165
|
-
exports.de_GetMLEndpointCommand = de_GetMLEndpointCommand;
|
|
2166
|
-
const de_GetMLEndpointCommandError = async (output, context) => {
|
|
2167
|
-
const parsedOutput = {
|
|
2168
|
-
...output,
|
|
2169
|
-
body: await parseErrorBody(output.body, context),
|
|
2170
|
-
};
|
|
2171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
|
-
switch (errorCode) {
|
|
2173
|
-
case "BadRequestException":
|
|
2174
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2175
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "ClientTimeoutException":
|
|
2177
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2178
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "ConstraintViolationException":
|
|
2180
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2181
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "IllegalArgumentException":
|
|
2183
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2184
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "InvalidArgumentException":
|
|
2186
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2187
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "InvalidParameterException":
|
|
2189
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2190
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "MLResourceNotFoundException":
|
|
2192
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
2193
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "MissingParameterException":
|
|
2195
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2196
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "PreconditionsFailedException":
|
|
2198
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2199
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "TooManyRequestsException":
|
|
2201
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2202
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "UnsupportedOperationException":
|
|
2204
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2205
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2206
|
-
default:
|
|
2207
|
-
const parsedBody = parsedOutput.body;
|
|
2208
|
-
return throwDefaultError({
|
|
2209
|
-
output,
|
|
2210
|
-
parsedBody,
|
|
2211
|
-
errorCode,
|
|
2212
|
-
});
|
|
2213
|
-
}
|
|
2214
|
-
};
|
|
2215
|
-
const de_GetMLModelTrainingJobCommand = async (output, context) => {
|
|
2216
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2217
|
-
return de_GetMLModelTrainingJobCommandError(output, context);
|
|
2218
|
-
}
|
|
2219
|
-
const contents = (0, smithy_client_1.map)({
|
|
2220
|
-
$metadata: deserializeMetadata(output),
|
|
2221
|
-
});
|
|
2222
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2223
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2224
|
-
hpoJob: smithy_client_1._json,
|
|
2225
|
-
id: smithy_client_1.expectString,
|
|
2226
|
-
mlModels: smithy_client_1._json,
|
|
2227
|
-
modelTransformJob: smithy_client_1._json,
|
|
2228
|
-
processingJob: smithy_client_1._json,
|
|
2229
|
-
status: smithy_client_1.expectString,
|
|
2230
|
-
});
|
|
2231
|
-
Object.assign(contents, doc);
|
|
2232
|
-
return contents;
|
|
2233
|
-
};
|
|
2234
|
-
exports.de_GetMLModelTrainingJobCommand = de_GetMLModelTrainingJobCommand;
|
|
2235
|
-
const de_GetMLModelTrainingJobCommandError = async (output, context) => {
|
|
2236
|
-
const parsedOutput = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseErrorBody(output.body, context),
|
|
2239
|
-
};
|
|
2240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
-
switch (errorCode) {
|
|
2242
|
-
case "BadRequestException":
|
|
2243
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2244
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "ClientTimeoutException":
|
|
2246
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2247
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "ConstraintViolationException":
|
|
2249
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2250
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "IllegalArgumentException":
|
|
2252
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2253
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "InvalidArgumentException":
|
|
2255
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2256
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "InvalidParameterException":
|
|
2258
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2259
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "MLResourceNotFoundException":
|
|
2261
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
2262
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "MissingParameterException":
|
|
2264
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2265
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "PreconditionsFailedException":
|
|
2267
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2268
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2269
|
-
case "TooManyRequestsException":
|
|
2270
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2271
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2272
|
-
case "UnsupportedOperationException":
|
|
2273
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2274
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2275
|
-
default:
|
|
2276
|
-
const parsedBody = parsedOutput.body;
|
|
2277
|
-
return throwDefaultError({
|
|
2278
|
-
output,
|
|
2279
|
-
parsedBody,
|
|
2280
|
-
errorCode,
|
|
2281
|
-
});
|
|
2282
|
-
}
|
|
2283
|
-
};
|
|
2284
|
-
const de_GetMLModelTransformJobCommand = async (output, context) => {
|
|
2285
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2286
|
-
return de_GetMLModelTransformJobCommandError(output, context);
|
|
2287
|
-
}
|
|
2288
|
-
const contents = (0, smithy_client_1.map)({
|
|
2289
|
-
$metadata: deserializeMetadata(output),
|
|
2290
|
-
});
|
|
2291
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2292
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2293
|
-
baseProcessingJob: smithy_client_1._json,
|
|
2294
|
-
id: smithy_client_1.expectString,
|
|
2295
|
-
models: smithy_client_1._json,
|
|
2296
|
-
remoteModelTransformJob: smithy_client_1._json,
|
|
2297
|
-
status: smithy_client_1.expectString,
|
|
2298
|
-
});
|
|
2299
|
-
Object.assign(contents, doc);
|
|
2300
|
-
return contents;
|
|
2301
|
-
};
|
|
2302
|
-
exports.de_GetMLModelTransformJobCommand = de_GetMLModelTransformJobCommand;
|
|
2303
|
-
const de_GetMLModelTransformJobCommandError = async (output, context) => {
|
|
2304
|
-
const parsedOutput = {
|
|
2305
|
-
...output,
|
|
2306
|
-
body: await parseErrorBody(output.body, context),
|
|
2307
|
-
};
|
|
2308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2309
|
-
switch (errorCode) {
|
|
2310
|
-
case "BadRequestException":
|
|
2311
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2312
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "ClientTimeoutException":
|
|
2314
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2315
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "ConstraintViolationException":
|
|
2317
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2318
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "IllegalArgumentException":
|
|
2320
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2321
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "InvalidArgumentException":
|
|
2323
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2324
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "InvalidParameterException":
|
|
2326
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2327
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "MLResourceNotFoundException":
|
|
2329
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
2330
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "MissingParameterException":
|
|
2332
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2333
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "PreconditionsFailedException":
|
|
2335
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2336
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "TooManyRequestsException":
|
|
2338
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2339
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "UnsupportedOperationException":
|
|
2341
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2342
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2343
|
-
default:
|
|
2344
|
-
const parsedBody = parsedOutput.body;
|
|
2345
|
-
return throwDefaultError({
|
|
2346
|
-
output,
|
|
2347
|
-
parsedBody,
|
|
2348
|
-
errorCode,
|
|
2349
|
-
});
|
|
2350
|
-
}
|
|
2351
|
-
};
|
|
2352
|
-
const de_GetOpenCypherQueryStatusCommand = async (output, context) => {
|
|
2353
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2354
|
-
return de_GetOpenCypherQueryStatusCommandError(output, context);
|
|
2355
|
-
}
|
|
2356
|
-
const contents = (0, smithy_client_1.map)({
|
|
2357
|
-
$metadata: deserializeMetadata(output),
|
|
2358
|
-
});
|
|
2359
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2360
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2361
|
-
queryEvalStats: (_) => de_QueryEvalStats(_, context),
|
|
2362
|
-
queryId: smithy_client_1.expectString,
|
|
2363
|
-
queryString: smithy_client_1.expectString,
|
|
2364
|
-
});
|
|
2365
|
-
Object.assign(contents, doc);
|
|
2366
|
-
return contents;
|
|
2367
|
-
};
|
|
2368
|
-
exports.de_GetOpenCypherQueryStatusCommand = de_GetOpenCypherQueryStatusCommand;
|
|
2369
|
-
const de_GetOpenCypherQueryStatusCommandError = async (output, context) => {
|
|
2370
|
-
const parsedOutput = {
|
|
2371
|
-
...output,
|
|
2372
|
-
body: await parseErrorBody(output.body, context),
|
|
2373
|
-
};
|
|
2374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
|
-
switch (errorCode) {
|
|
2376
|
-
case "AccessDeniedException":
|
|
2377
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
2378
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "BadRequestException":
|
|
2380
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2381
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "ClientTimeoutException":
|
|
2383
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2384
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "ConcurrentModificationException":
|
|
2386
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
2387
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "ConstraintViolationException":
|
|
2389
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2390
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "FailureByQueryException":
|
|
2392
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
2393
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "IllegalArgumentException":
|
|
2395
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2396
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "InvalidArgumentException":
|
|
2398
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2399
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "InvalidNumericDataException":
|
|
2401
|
-
case "com.amazonaws.neptunedata#InvalidNumericDataException":
|
|
2402
|
-
throw await de_InvalidNumericDataExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "InvalidParameterException":
|
|
2404
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2405
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "MissingParameterException":
|
|
2407
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2408
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "ParsingException":
|
|
2410
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
2411
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "PreconditionsFailedException":
|
|
2413
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2414
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "ReadOnlyViolationException":
|
|
2416
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
2417
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "TimeLimitExceededException":
|
|
2419
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
2420
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "TooManyRequestsException":
|
|
2422
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2423
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "UnsupportedOperationException":
|
|
2425
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2426
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2427
|
-
default:
|
|
2428
|
-
const parsedBody = parsedOutput.body;
|
|
2429
|
-
return throwDefaultError({
|
|
2430
|
-
output,
|
|
2431
|
-
parsedBody,
|
|
2432
|
-
errorCode,
|
|
2433
|
-
});
|
|
2434
|
-
}
|
|
2435
|
-
};
|
|
2436
|
-
const de_GetPropertygraphStatisticsCommand = async (output, context) => {
|
|
2437
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2438
|
-
return de_GetPropertygraphStatisticsCommandError(output, context);
|
|
2439
|
-
}
|
|
2440
|
-
const contents = (0, smithy_client_1.map)({
|
|
2441
|
-
$metadata: deserializeMetadata(output),
|
|
2442
|
-
});
|
|
2443
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2444
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2445
|
-
payload: (_) => de_Statistics(_, context),
|
|
2446
|
-
status: smithy_client_1.expectString,
|
|
2447
|
-
});
|
|
2448
|
-
Object.assign(contents, doc);
|
|
2449
|
-
return contents;
|
|
2450
|
-
};
|
|
2451
|
-
exports.de_GetPropertygraphStatisticsCommand = de_GetPropertygraphStatisticsCommand;
|
|
2452
|
-
const de_GetPropertygraphStatisticsCommandError = async (output, context) => {
|
|
2453
|
-
const parsedOutput = {
|
|
2454
|
-
...output,
|
|
2455
|
-
body: await parseErrorBody(output.body, context),
|
|
2456
|
-
};
|
|
2457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2458
|
-
switch (errorCode) {
|
|
2459
|
-
case "AccessDeniedException":
|
|
2460
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
2461
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2462
|
-
case "BadRequestException":
|
|
2463
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2464
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2465
|
-
case "ClientTimeoutException":
|
|
2466
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2467
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "ConstraintViolationException":
|
|
2469
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2470
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "IllegalArgumentException":
|
|
2472
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2473
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "InvalidArgumentException":
|
|
2475
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2476
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "InvalidParameterException":
|
|
2478
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2479
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "MissingParameterException":
|
|
2481
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2482
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "PreconditionsFailedException":
|
|
2484
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2485
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "ReadOnlyViolationException":
|
|
2487
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
2488
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "StatisticsNotAvailableException":
|
|
2490
|
-
case "com.amazonaws.neptunedata#StatisticsNotAvailableException":
|
|
2491
|
-
throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "TooManyRequestsException":
|
|
2493
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2494
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "UnsupportedOperationException":
|
|
2496
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2497
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2498
|
-
default:
|
|
2499
|
-
const parsedBody = parsedOutput.body;
|
|
2500
|
-
return throwDefaultError({
|
|
2501
|
-
output,
|
|
2502
|
-
parsedBody,
|
|
2503
|
-
errorCode,
|
|
2504
|
-
});
|
|
2505
|
-
}
|
|
2506
|
-
};
|
|
2507
|
-
const de_GetPropertygraphStreamCommand = async (output, context) => {
|
|
2508
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2509
|
-
return de_GetPropertygraphStreamCommandError(output, context);
|
|
2510
|
-
}
|
|
2511
|
-
const contents = (0, smithy_client_1.map)({
|
|
2512
|
-
$metadata: deserializeMetadata(output),
|
|
2513
|
-
});
|
|
2514
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2515
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2516
|
-
format: smithy_client_1.expectString,
|
|
2517
|
-
lastEventId: smithy_client_1._json,
|
|
2518
|
-
lastTrxTimestampInMillis: [, smithy_client_1.expectLong, `lastTrxTimestamp`],
|
|
2519
|
-
records: (_) => de_PropertygraphRecordsList(_, context),
|
|
2520
|
-
totalRecords: smithy_client_1.expectInt32,
|
|
2521
|
-
});
|
|
2522
|
-
Object.assign(contents, doc);
|
|
2523
|
-
return contents;
|
|
2524
|
-
};
|
|
2525
|
-
exports.de_GetPropertygraphStreamCommand = de_GetPropertygraphStreamCommand;
|
|
2526
|
-
const de_GetPropertygraphStreamCommandError = async (output, context) => {
|
|
2527
|
-
const parsedOutput = {
|
|
2528
|
-
...output,
|
|
2529
|
-
body: await parseErrorBody(output.body, context),
|
|
2530
|
-
};
|
|
2531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2532
|
-
switch (errorCode) {
|
|
2533
|
-
case "ClientTimeoutException":
|
|
2534
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2535
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "ConstraintViolationException":
|
|
2537
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2538
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "ExpiredStreamException":
|
|
2540
|
-
case "com.amazonaws.neptunedata#ExpiredStreamException":
|
|
2541
|
-
throw await de_ExpiredStreamExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "IllegalArgumentException":
|
|
2543
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2544
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "InvalidArgumentException":
|
|
2546
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2547
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "InvalidParameterException":
|
|
2549
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2550
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "MemoryLimitExceededException":
|
|
2552
|
-
case "com.amazonaws.neptunedata#MemoryLimitExceededException":
|
|
2553
|
-
throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "PreconditionsFailedException":
|
|
2555
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2556
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "StreamRecordsNotFoundException":
|
|
2558
|
-
case "com.amazonaws.neptunedata#StreamRecordsNotFoundException":
|
|
2559
|
-
throw await de_StreamRecordsNotFoundExceptionRes(parsedOutput, context);
|
|
2560
|
-
case "ThrottlingException":
|
|
2561
|
-
case "com.amazonaws.neptunedata#ThrottlingException":
|
|
2562
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2563
|
-
case "TooManyRequestsException":
|
|
2564
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2565
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2566
|
-
case "UnsupportedOperationException":
|
|
2567
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2568
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2569
|
-
default:
|
|
2570
|
-
const parsedBody = parsedOutput.body;
|
|
2571
|
-
return throwDefaultError({
|
|
2572
|
-
output,
|
|
2573
|
-
parsedBody,
|
|
2574
|
-
errorCode,
|
|
2575
|
-
});
|
|
2576
|
-
}
|
|
2577
|
-
};
|
|
2578
|
-
const de_GetPropertygraphSummaryCommand = async (output, context) => {
|
|
2579
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2580
|
-
return de_GetPropertygraphSummaryCommandError(output, context);
|
|
2581
|
-
}
|
|
2582
|
-
const contents = (0, smithy_client_1.map)({
|
|
2583
|
-
$metadata: deserializeMetadata(output),
|
|
2584
|
-
});
|
|
2585
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2586
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2587
|
-
payload: (_) => de_PropertygraphSummaryValueMap(_, context),
|
|
2588
|
-
});
|
|
2589
|
-
Object.assign(contents, doc);
|
|
2590
|
-
(0, smithy_client_1.map)(contents, {
|
|
2591
|
-
statusCode: [, output.statusCode],
|
|
2592
|
-
});
|
|
2593
|
-
return contents;
|
|
2594
|
-
};
|
|
2595
|
-
exports.de_GetPropertygraphSummaryCommand = de_GetPropertygraphSummaryCommand;
|
|
2596
|
-
const de_GetPropertygraphSummaryCommandError = async (output, context) => {
|
|
2597
|
-
const parsedOutput = {
|
|
2598
|
-
...output,
|
|
2599
|
-
body: await parseErrorBody(output.body, context),
|
|
2600
|
-
};
|
|
2601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2602
|
-
switch (errorCode) {
|
|
2603
|
-
case "AccessDeniedException":
|
|
2604
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
2605
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2606
|
-
case "BadRequestException":
|
|
2607
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2608
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2609
|
-
case "ClientTimeoutException":
|
|
2610
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2611
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2612
|
-
case "ConstraintViolationException":
|
|
2613
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2614
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "IllegalArgumentException":
|
|
2616
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2617
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "InvalidArgumentException":
|
|
2619
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2620
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "InvalidParameterException":
|
|
2622
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2623
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "MissingParameterException":
|
|
2625
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2626
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "PreconditionsFailedException":
|
|
2628
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2629
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "ReadOnlyViolationException":
|
|
2631
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
2632
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "StatisticsNotAvailableException":
|
|
2634
|
-
case "com.amazonaws.neptunedata#StatisticsNotAvailableException":
|
|
2635
|
-
throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context);
|
|
2636
|
-
case "TooManyRequestsException":
|
|
2637
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2638
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2639
|
-
case "UnsupportedOperationException":
|
|
2640
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2641
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2642
|
-
default:
|
|
2643
|
-
const parsedBody = parsedOutput.body;
|
|
2644
|
-
return throwDefaultError({
|
|
2645
|
-
output,
|
|
2646
|
-
parsedBody,
|
|
2647
|
-
errorCode,
|
|
2648
|
-
});
|
|
2649
|
-
}
|
|
2650
|
-
};
|
|
2651
|
-
const de_GetRDFGraphSummaryCommand = async (output, context) => {
|
|
2652
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2653
|
-
return de_GetRDFGraphSummaryCommandError(output, context);
|
|
2654
|
-
}
|
|
2655
|
-
const contents = (0, smithy_client_1.map)({
|
|
2656
|
-
$metadata: deserializeMetadata(output),
|
|
2657
|
-
});
|
|
2658
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2659
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2660
|
-
payload: (_) => de_RDFGraphSummaryValueMap(_, context),
|
|
2661
|
-
});
|
|
2662
|
-
Object.assign(contents, doc);
|
|
2663
|
-
(0, smithy_client_1.map)(contents, {
|
|
2664
|
-
statusCode: [, output.statusCode],
|
|
2665
|
-
});
|
|
2666
|
-
return contents;
|
|
2667
|
-
};
|
|
2668
|
-
exports.de_GetRDFGraphSummaryCommand = de_GetRDFGraphSummaryCommand;
|
|
2669
|
-
const de_GetRDFGraphSummaryCommandError = async (output, context) => {
|
|
2670
|
-
const parsedOutput = {
|
|
2671
|
-
...output,
|
|
2672
|
-
body: await parseErrorBody(output.body, context),
|
|
2673
|
-
};
|
|
2674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2675
|
-
switch (errorCode) {
|
|
2676
|
-
case "AccessDeniedException":
|
|
2677
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
2678
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2679
|
-
case "BadRequestException":
|
|
2680
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2681
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2682
|
-
case "ClientTimeoutException":
|
|
2683
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2684
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2685
|
-
case "ConstraintViolationException":
|
|
2686
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2687
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2688
|
-
case "IllegalArgumentException":
|
|
2689
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2690
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "InvalidArgumentException":
|
|
2692
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2693
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "InvalidParameterException":
|
|
2695
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2696
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2697
|
-
case "MissingParameterException":
|
|
2698
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2699
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "PreconditionsFailedException":
|
|
2701
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2702
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2703
|
-
case "ReadOnlyViolationException":
|
|
2704
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
2705
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "StatisticsNotAvailableException":
|
|
2707
|
-
case "com.amazonaws.neptunedata#StatisticsNotAvailableException":
|
|
2708
|
-
throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "TooManyRequestsException":
|
|
2710
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2711
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "UnsupportedOperationException":
|
|
2713
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2714
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2715
|
-
default:
|
|
2716
|
-
const parsedBody = parsedOutput.body;
|
|
2717
|
-
return throwDefaultError({
|
|
2718
|
-
output,
|
|
2719
|
-
parsedBody,
|
|
2720
|
-
errorCode,
|
|
2721
|
-
});
|
|
2722
|
-
}
|
|
2723
|
-
};
|
|
2724
|
-
const de_GetSparqlStatisticsCommand = async (output, context) => {
|
|
2725
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2726
|
-
return de_GetSparqlStatisticsCommandError(output, context);
|
|
2727
|
-
}
|
|
2728
|
-
const contents = (0, smithy_client_1.map)({
|
|
2729
|
-
$metadata: deserializeMetadata(output),
|
|
2730
|
-
});
|
|
2731
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2732
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2733
|
-
payload: (_) => de_Statistics(_, context),
|
|
2734
|
-
status: smithy_client_1.expectString,
|
|
2735
|
-
});
|
|
2736
|
-
Object.assign(contents, doc);
|
|
2737
|
-
return contents;
|
|
2738
|
-
};
|
|
2739
|
-
exports.de_GetSparqlStatisticsCommand = de_GetSparqlStatisticsCommand;
|
|
2740
|
-
const de_GetSparqlStatisticsCommandError = async (output, context) => {
|
|
2741
|
-
const parsedOutput = {
|
|
2742
|
-
...output,
|
|
2743
|
-
body: await parseErrorBody(output.body, context),
|
|
2744
|
-
};
|
|
2745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2746
|
-
switch (errorCode) {
|
|
2747
|
-
case "AccessDeniedException":
|
|
2748
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
2749
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2750
|
-
case "BadRequestException":
|
|
2751
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2752
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2753
|
-
case "ClientTimeoutException":
|
|
2754
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2755
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "ConstraintViolationException":
|
|
2757
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2758
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "IllegalArgumentException":
|
|
2760
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2761
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "InvalidArgumentException":
|
|
2763
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2764
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "InvalidParameterException":
|
|
2766
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2767
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "MissingParameterException":
|
|
2769
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2770
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2771
|
-
case "PreconditionsFailedException":
|
|
2772
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2773
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2774
|
-
case "ReadOnlyViolationException":
|
|
2775
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
2776
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
2777
|
-
case "StatisticsNotAvailableException":
|
|
2778
|
-
case "com.amazonaws.neptunedata#StatisticsNotAvailableException":
|
|
2779
|
-
throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context);
|
|
2780
|
-
case "TooManyRequestsException":
|
|
2781
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2782
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2783
|
-
case "UnsupportedOperationException":
|
|
2784
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2785
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2786
|
-
default:
|
|
2787
|
-
const parsedBody = parsedOutput.body;
|
|
2788
|
-
return throwDefaultError({
|
|
2789
|
-
output,
|
|
2790
|
-
parsedBody,
|
|
2791
|
-
errorCode,
|
|
2792
|
-
});
|
|
2793
|
-
}
|
|
2794
|
-
};
|
|
2795
|
-
const de_GetSparqlStreamCommand = async (output, context) => {
|
|
2796
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2797
|
-
return de_GetSparqlStreamCommandError(output, context);
|
|
2798
|
-
}
|
|
2799
|
-
const contents = (0, smithy_client_1.map)({
|
|
2800
|
-
$metadata: deserializeMetadata(output),
|
|
2801
|
-
});
|
|
2802
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2803
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2804
|
-
format: smithy_client_1.expectString,
|
|
2805
|
-
lastEventId: smithy_client_1._json,
|
|
2806
|
-
lastTrxTimestampInMillis: [, smithy_client_1.expectLong, `lastTrxTimestamp`],
|
|
2807
|
-
records: (_) => de_SparqlRecordsList(_, context),
|
|
2808
|
-
totalRecords: smithy_client_1.expectInt32,
|
|
2809
|
-
});
|
|
2810
|
-
Object.assign(contents, doc);
|
|
2811
|
-
return contents;
|
|
2812
|
-
};
|
|
2813
|
-
exports.de_GetSparqlStreamCommand = de_GetSparqlStreamCommand;
|
|
2814
|
-
const de_GetSparqlStreamCommandError = async (output, context) => {
|
|
2815
|
-
const parsedOutput = {
|
|
2816
|
-
...output,
|
|
2817
|
-
body: await parseErrorBody(output.body, context),
|
|
2818
|
-
};
|
|
2819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
|
-
switch (errorCode) {
|
|
2821
|
-
case "ClientTimeoutException":
|
|
2822
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2823
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2824
|
-
case "ConstraintViolationException":
|
|
2825
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2826
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2827
|
-
case "ExpiredStreamException":
|
|
2828
|
-
case "com.amazonaws.neptunedata#ExpiredStreamException":
|
|
2829
|
-
throw await de_ExpiredStreamExceptionRes(parsedOutput, context);
|
|
2830
|
-
case "IllegalArgumentException":
|
|
2831
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2832
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2833
|
-
case "InvalidArgumentException":
|
|
2834
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2835
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "InvalidParameterException":
|
|
2837
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2838
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "MemoryLimitExceededException":
|
|
2840
|
-
case "com.amazonaws.neptunedata#MemoryLimitExceededException":
|
|
2841
|
-
throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "PreconditionsFailedException":
|
|
2843
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2844
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "StreamRecordsNotFoundException":
|
|
2846
|
-
case "com.amazonaws.neptunedata#StreamRecordsNotFoundException":
|
|
2847
|
-
throw await de_StreamRecordsNotFoundExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "ThrottlingException":
|
|
2849
|
-
case "com.amazonaws.neptunedata#ThrottlingException":
|
|
2850
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "TooManyRequestsException":
|
|
2852
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2853
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "UnsupportedOperationException":
|
|
2855
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2856
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2857
|
-
default:
|
|
2858
|
-
const parsedBody = parsedOutput.body;
|
|
2859
|
-
return throwDefaultError({
|
|
2860
|
-
output,
|
|
2861
|
-
parsedBody,
|
|
2862
|
-
errorCode,
|
|
2863
|
-
});
|
|
2864
|
-
}
|
|
2865
|
-
};
|
|
2866
|
-
const de_ListGremlinQueriesCommand = async (output, context) => {
|
|
2867
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2868
|
-
return de_ListGremlinQueriesCommandError(output, context);
|
|
2869
|
-
}
|
|
2870
|
-
const contents = (0, smithy_client_1.map)({
|
|
2871
|
-
$metadata: deserializeMetadata(output),
|
|
2872
|
-
});
|
|
2873
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2874
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2875
|
-
acceptedQueryCount: smithy_client_1.expectInt32,
|
|
2876
|
-
queries: (_) => de_GremlinQueries(_, context),
|
|
2877
|
-
runningQueryCount: smithy_client_1.expectInt32,
|
|
2878
|
-
});
|
|
2879
|
-
Object.assign(contents, doc);
|
|
2880
|
-
return contents;
|
|
2881
|
-
};
|
|
2882
|
-
exports.de_ListGremlinQueriesCommand = de_ListGremlinQueriesCommand;
|
|
2883
|
-
const de_ListGremlinQueriesCommandError = async (output, context) => {
|
|
2884
|
-
const parsedOutput = {
|
|
2885
|
-
...output,
|
|
2886
|
-
body: await parseErrorBody(output.body, context),
|
|
2887
|
-
};
|
|
2888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
|
-
switch (errorCode) {
|
|
2890
|
-
case "AccessDeniedException":
|
|
2891
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
2892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "BadRequestException":
|
|
2894
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2895
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "ClientTimeoutException":
|
|
2897
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2898
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "ConcurrentModificationException":
|
|
2900
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
2901
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ConstraintViolationException":
|
|
2903
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2904
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2905
|
-
case "FailureByQueryException":
|
|
2906
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
2907
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "IllegalArgumentException":
|
|
2909
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2910
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "InvalidArgumentException":
|
|
2912
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2913
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2914
|
-
case "InvalidParameterException":
|
|
2915
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2916
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2917
|
-
case "MissingParameterException":
|
|
2918
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
2919
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
2920
|
-
case "ParsingException":
|
|
2921
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
2922
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
2923
|
-
case "PreconditionsFailedException":
|
|
2924
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2925
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
2926
|
-
case "ReadOnlyViolationException":
|
|
2927
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
2928
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "TimeLimitExceededException":
|
|
2930
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
2931
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "TooManyRequestsException":
|
|
2933
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
2934
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "UnsupportedOperationException":
|
|
2936
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
2937
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2938
|
-
default:
|
|
2939
|
-
const parsedBody = parsedOutput.body;
|
|
2940
|
-
return throwDefaultError({
|
|
2941
|
-
output,
|
|
2942
|
-
parsedBody,
|
|
2943
|
-
errorCode,
|
|
2944
|
-
});
|
|
2945
|
-
}
|
|
2946
|
-
};
|
|
2947
|
-
const de_ListLoaderJobsCommand = async (output, context) => {
|
|
2948
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2949
|
-
return de_ListLoaderJobsCommandError(output, context);
|
|
2950
|
-
}
|
|
2951
|
-
const contents = (0, smithy_client_1.map)({
|
|
2952
|
-
$metadata: deserializeMetadata(output),
|
|
2953
|
-
});
|
|
2954
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2955
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2956
|
-
payload: smithy_client_1._json,
|
|
2957
|
-
status: smithy_client_1.expectString,
|
|
2958
|
-
});
|
|
2959
|
-
Object.assign(contents, doc);
|
|
2960
|
-
return contents;
|
|
2961
|
-
};
|
|
2962
|
-
exports.de_ListLoaderJobsCommand = de_ListLoaderJobsCommand;
|
|
2963
|
-
const de_ListLoaderJobsCommandError = async (output, context) => {
|
|
2964
|
-
const parsedOutput = {
|
|
2965
|
-
...output,
|
|
2966
|
-
body: await parseErrorBody(output.body, context),
|
|
2967
|
-
};
|
|
2968
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2969
|
-
switch (errorCode) {
|
|
2970
|
-
case "BadRequestException":
|
|
2971
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
2972
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2973
|
-
case "BulkLoadIdNotFoundException":
|
|
2974
|
-
case "com.amazonaws.neptunedata#BulkLoadIdNotFoundException":
|
|
2975
|
-
throw await de_BulkLoadIdNotFoundExceptionRes(parsedOutput, context);
|
|
2976
|
-
case "ClientTimeoutException":
|
|
2977
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
2978
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "ConstraintViolationException":
|
|
2980
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
2981
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "IllegalArgumentException":
|
|
2983
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
2984
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "InternalFailureException":
|
|
2986
|
-
case "com.amazonaws.neptunedata#InternalFailureException":
|
|
2987
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "InvalidArgumentException":
|
|
2989
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
2990
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
2991
|
-
case "InvalidParameterException":
|
|
2992
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
2993
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2994
|
-
case "LoadUrlAccessDeniedException":
|
|
2995
|
-
case "com.amazonaws.neptunedata#LoadUrlAccessDeniedException":
|
|
2996
|
-
throw await de_LoadUrlAccessDeniedExceptionRes(parsedOutput, context);
|
|
2997
|
-
case "PreconditionsFailedException":
|
|
2998
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
2999
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3000
|
-
case "TooManyRequestsException":
|
|
3001
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3002
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3003
|
-
case "UnsupportedOperationException":
|
|
3004
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3005
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3006
|
-
default:
|
|
3007
|
-
const parsedBody = parsedOutput.body;
|
|
3008
|
-
return throwDefaultError({
|
|
3009
|
-
output,
|
|
3010
|
-
parsedBody,
|
|
3011
|
-
errorCode,
|
|
3012
|
-
});
|
|
3013
|
-
}
|
|
3014
|
-
};
|
|
3015
|
-
const de_ListMLDataProcessingJobsCommand = async (output, context) => {
|
|
3016
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3017
|
-
return de_ListMLDataProcessingJobsCommandError(output, context);
|
|
3018
|
-
}
|
|
3019
|
-
const contents = (0, smithy_client_1.map)({
|
|
3020
|
-
$metadata: deserializeMetadata(output),
|
|
3021
|
-
});
|
|
3022
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3023
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3024
|
-
ids: smithy_client_1._json,
|
|
3025
|
-
});
|
|
3026
|
-
Object.assign(contents, doc);
|
|
3027
|
-
return contents;
|
|
3028
|
-
};
|
|
3029
|
-
exports.de_ListMLDataProcessingJobsCommand = de_ListMLDataProcessingJobsCommand;
|
|
3030
|
-
const de_ListMLDataProcessingJobsCommandError = async (output, context) => {
|
|
3031
|
-
const parsedOutput = {
|
|
3032
|
-
...output,
|
|
3033
|
-
body: await parseErrorBody(output.body, context),
|
|
3034
|
-
};
|
|
3035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3036
|
-
switch (errorCode) {
|
|
3037
|
-
case "BadRequestException":
|
|
3038
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3039
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3040
|
-
case "ClientTimeoutException":
|
|
3041
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3042
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3043
|
-
case "ConstraintViolationException":
|
|
3044
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3045
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3046
|
-
case "IllegalArgumentException":
|
|
3047
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3048
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3049
|
-
case "InvalidArgumentException":
|
|
3050
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3051
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3052
|
-
case "InvalidParameterException":
|
|
3053
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3054
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "MLResourceNotFoundException":
|
|
3056
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
3057
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "MissingParameterException":
|
|
3059
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3060
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3061
|
-
case "PreconditionsFailedException":
|
|
3062
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3063
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3064
|
-
case "TooManyRequestsException":
|
|
3065
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3066
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3067
|
-
case "UnsupportedOperationException":
|
|
3068
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3069
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3070
|
-
default:
|
|
3071
|
-
const parsedBody = parsedOutput.body;
|
|
3072
|
-
return throwDefaultError({
|
|
3073
|
-
output,
|
|
3074
|
-
parsedBody,
|
|
3075
|
-
errorCode,
|
|
3076
|
-
});
|
|
3077
|
-
}
|
|
3078
|
-
};
|
|
3079
|
-
const de_ListMLEndpointsCommand = async (output, context) => {
|
|
3080
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3081
|
-
return de_ListMLEndpointsCommandError(output, context);
|
|
3082
|
-
}
|
|
3083
|
-
const contents = (0, smithy_client_1.map)({
|
|
3084
|
-
$metadata: deserializeMetadata(output),
|
|
3085
|
-
});
|
|
3086
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3087
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3088
|
-
ids: smithy_client_1._json,
|
|
3089
|
-
});
|
|
3090
|
-
Object.assign(contents, doc);
|
|
3091
|
-
return contents;
|
|
3092
|
-
};
|
|
3093
|
-
exports.de_ListMLEndpointsCommand = de_ListMLEndpointsCommand;
|
|
3094
|
-
const de_ListMLEndpointsCommandError = async (output, context) => {
|
|
3095
|
-
const parsedOutput = {
|
|
3096
|
-
...output,
|
|
3097
|
-
body: await parseErrorBody(output.body, context),
|
|
3098
|
-
};
|
|
3099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3100
|
-
switch (errorCode) {
|
|
3101
|
-
case "BadRequestException":
|
|
3102
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3103
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3104
|
-
case "ClientTimeoutException":
|
|
3105
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3106
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3107
|
-
case "ConstraintViolationException":
|
|
3108
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3109
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "IllegalArgumentException":
|
|
3111
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3112
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3113
|
-
case "InvalidArgumentException":
|
|
3114
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3115
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "InvalidParameterException":
|
|
3117
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3118
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3119
|
-
case "MLResourceNotFoundException":
|
|
3120
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
3121
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3122
|
-
case "MissingParameterException":
|
|
3123
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3124
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3125
|
-
case "PreconditionsFailedException":
|
|
3126
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3127
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3128
|
-
case "TooManyRequestsException":
|
|
3129
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3130
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "UnsupportedOperationException":
|
|
3132
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3133
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3134
|
-
default:
|
|
3135
|
-
const parsedBody = parsedOutput.body;
|
|
3136
|
-
return throwDefaultError({
|
|
3137
|
-
output,
|
|
3138
|
-
parsedBody,
|
|
3139
|
-
errorCode,
|
|
3140
|
-
});
|
|
3141
|
-
}
|
|
3142
|
-
};
|
|
3143
|
-
const de_ListMLModelTrainingJobsCommand = async (output, context) => {
|
|
3144
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3145
|
-
return de_ListMLModelTrainingJobsCommandError(output, context);
|
|
3146
|
-
}
|
|
3147
|
-
const contents = (0, smithy_client_1.map)({
|
|
3148
|
-
$metadata: deserializeMetadata(output),
|
|
3149
|
-
});
|
|
3150
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3151
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3152
|
-
ids: smithy_client_1._json,
|
|
3153
|
-
});
|
|
3154
|
-
Object.assign(contents, doc);
|
|
3155
|
-
return contents;
|
|
3156
|
-
};
|
|
3157
|
-
exports.de_ListMLModelTrainingJobsCommand = de_ListMLModelTrainingJobsCommand;
|
|
3158
|
-
const de_ListMLModelTrainingJobsCommandError = async (output, context) => {
|
|
3159
|
-
const parsedOutput = {
|
|
3160
|
-
...output,
|
|
3161
|
-
body: await parseErrorBody(output.body, context),
|
|
3162
|
-
};
|
|
3163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3164
|
-
switch (errorCode) {
|
|
3165
|
-
case "BadRequestException":
|
|
3166
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3167
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3168
|
-
case "ClientTimeoutException":
|
|
3169
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3170
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3171
|
-
case "ConstraintViolationException":
|
|
3172
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3173
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "IllegalArgumentException":
|
|
3175
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3176
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3177
|
-
case "InvalidArgumentException":
|
|
3178
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3179
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "InvalidParameterException":
|
|
3181
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3182
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "MLResourceNotFoundException":
|
|
3184
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
3185
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3186
|
-
case "MissingParameterException":
|
|
3187
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3188
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3189
|
-
case "PreconditionsFailedException":
|
|
3190
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3191
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3192
|
-
case "TooManyRequestsException":
|
|
3193
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3194
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3195
|
-
case "UnsupportedOperationException":
|
|
3196
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3197
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3198
|
-
default:
|
|
3199
|
-
const parsedBody = parsedOutput.body;
|
|
3200
|
-
return throwDefaultError({
|
|
3201
|
-
output,
|
|
3202
|
-
parsedBody,
|
|
3203
|
-
errorCode,
|
|
3204
|
-
});
|
|
3205
|
-
}
|
|
3206
|
-
};
|
|
3207
|
-
const de_ListMLModelTransformJobsCommand = async (output, context) => {
|
|
3208
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3209
|
-
return de_ListMLModelTransformJobsCommandError(output, context);
|
|
3210
|
-
}
|
|
3211
|
-
const contents = (0, smithy_client_1.map)({
|
|
3212
|
-
$metadata: deserializeMetadata(output),
|
|
3213
|
-
});
|
|
3214
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3215
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3216
|
-
ids: smithy_client_1._json,
|
|
3217
|
-
});
|
|
3218
|
-
Object.assign(contents, doc);
|
|
3219
|
-
return contents;
|
|
3220
|
-
};
|
|
3221
|
-
exports.de_ListMLModelTransformJobsCommand = de_ListMLModelTransformJobsCommand;
|
|
3222
|
-
const de_ListMLModelTransformJobsCommandError = async (output, context) => {
|
|
3223
|
-
const parsedOutput = {
|
|
3224
|
-
...output,
|
|
3225
|
-
body: await parseErrorBody(output.body, context),
|
|
3226
|
-
};
|
|
3227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3228
|
-
switch (errorCode) {
|
|
3229
|
-
case "BadRequestException":
|
|
3230
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3231
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3232
|
-
case "ClientTimeoutException":
|
|
3233
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3234
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3235
|
-
case "ConstraintViolationException":
|
|
3236
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3237
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3238
|
-
case "IllegalArgumentException":
|
|
3239
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3240
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3241
|
-
case "InvalidArgumentException":
|
|
3242
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3243
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3244
|
-
case "InvalidParameterException":
|
|
3245
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3246
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3247
|
-
case "MLResourceNotFoundException":
|
|
3248
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
3249
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3250
|
-
case "MissingParameterException":
|
|
3251
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3252
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3253
|
-
case "PreconditionsFailedException":
|
|
3254
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3255
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3256
|
-
case "TooManyRequestsException":
|
|
3257
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3258
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3259
|
-
case "UnsupportedOperationException":
|
|
3260
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3261
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3262
|
-
default:
|
|
3263
|
-
const parsedBody = parsedOutput.body;
|
|
3264
|
-
return throwDefaultError({
|
|
3265
|
-
output,
|
|
3266
|
-
parsedBody,
|
|
3267
|
-
errorCode,
|
|
3268
|
-
});
|
|
3269
|
-
}
|
|
3270
|
-
};
|
|
3271
|
-
const de_ListOpenCypherQueriesCommand = async (output, context) => {
|
|
3272
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3273
|
-
return de_ListOpenCypherQueriesCommandError(output, context);
|
|
3274
|
-
}
|
|
3275
|
-
const contents = (0, smithy_client_1.map)({
|
|
3276
|
-
$metadata: deserializeMetadata(output),
|
|
3277
|
-
});
|
|
3278
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3279
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3280
|
-
acceptedQueryCount: smithy_client_1.expectInt32,
|
|
3281
|
-
queries: (_) => de_OpenCypherQueries(_, context),
|
|
3282
|
-
runningQueryCount: smithy_client_1.expectInt32,
|
|
3283
|
-
});
|
|
3284
|
-
Object.assign(contents, doc);
|
|
3285
|
-
return contents;
|
|
3286
|
-
};
|
|
3287
|
-
exports.de_ListOpenCypherQueriesCommand = de_ListOpenCypherQueriesCommand;
|
|
3288
|
-
const de_ListOpenCypherQueriesCommandError = async (output, context) => {
|
|
3289
|
-
const parsedOutput = {
|
|
3290
|
-
...output,
|
|
3291
|
-
body: await parseErrorBody(output.body, context),
|
|
3292
|
-
};
|
|
3293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
|
-
switch (errorCode) {
|
|
3295
|
-
case "AccessDeniedException":
|
|
3296
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
3297
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "BadRequestException":
|
|
3299
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3300
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "ClientTimeoutException":
|
|
3302
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3303
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3304
|
-
case "ConcurrentModificationException":
|
|
3305
|
-
case "com.amazonaws.neptunedata#ConcurrentModificationException":
|
|
3306
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "ConstraintViolationException":
|
|
3308
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3309
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3310
|
-
case "FailureByQueryException":
|
|
3311
|
-
case "com.amazonaws.neptunedata#FailureByQueryException":
|
|
3312
|
-
throw await de_FailureByQueryExceptionRes(parsedOutput, context);
|
|
3313
|
-
case "IllegalArgumentException":
|
|
3314
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3315
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3316
|
-
case "InvalidArgumentException":
|
|
3317
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3318
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3319
|
-
case "InvalidNumericDataException":
|
|
3320
|
-
case "com.amazonaws.neptunedata#InvalidNumericDataException":
|
|
3321
|
-
throw await de_InvalidNumericDataExceptionRes(parsedOutput, context);
|
|
3322
|
-
case "InvalidParameterException":
|
|
3323
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3324
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3325
|
-
case "MissingParameterException":
|
|
3326
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3327
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3328
|
-
case "ParsingException":
|
|
3329
|
-
case "com.amazonaws.neptunedata#ParsingException":
|
|
3330
|
-
throw await de_ParsingExceptionRes(parsedOutput, context);
|
|
3331
|
-
case "PreconditionsFailedException":
|
|
3332
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3333
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "ReadOnlyViolationException":
|
|
3335
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
3336
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
3337
|
-
case "TimeLimitExceededException":
|
|
3338
|
-
case "com.amazonaws.neptunedata#TimeLimitExceededException":
|
|
3339
|
-
throw await de_TimeLimitExceededExceptionRes(parsedOutput, context);
|
|
3340
|
-
case "TooManyRequestsException":
|
|
3341
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3342
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3343
|
-
case "UnsupportedOperationException":
|
|
3344
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3345
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3346
|
-
default:
|
|
3347
|
-
const parsedBody = parsedOutput.body;
|
|
3348
|
-
return throwDefaultError({
|
|
3349
|
-
output,
|
|
3350
|
-
parsedBody,
|
|
3351
|
-
errorCode,
|
|
3352
|
-
});
|
|
3353
|
-
}
|
|
3354
|
-
};
|
|
3355
|
-
const de_ManagePropertygraphStatisticsCommand = async (output, context) => {
|
|
3356
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3357
|
-
return de_ManagePropertygraphStatisticsCommandError(output, context);
|
|
3358
|
-
}
|
|
3359
|
-
const contents = (0, smithy_client_1.map)({
|
|
3360
|
-
$metadata: deserializeMetadata(output),
|
|
3361
|
-
});
|
|
3362
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3363
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3364
|
-
payload: smithy_client_1._json,
|
|
3365
|
-
status: smithy_client_1.expectString,
|
|
3366
|
-
});
|
|
3367
|
-
Object.assign(contents, doc);
|
|
3368
|
-
return contents;
|
|
3369
|
-
};
|
|
3370
|
-
exports.de_ManagePropertygraphStatisticsCommand = de_ManagePropertygraphStatisticsCommand;
|
|
3371
|
-
const de_ManagePropertygraphStatisticsCommandError = async (output, context) => {
|
|
3372
|
-
const parsedOutput = {
|
|
3373
|
-
...output,
|
|
3374
|
-
body: await parseErrorBody(output.body, context),
|
|
3375
|
-
};
|
|
3376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3377
|
-
switch (errorCode) {
|
|
3378
|
-
case "AccessDeniedException":
|
|
3379
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
3380
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3381
|
-
case "BadRequestException":
|
|
3382
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3383
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3384
|
-
case "ClientTimeoutException":
|
|
3385
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3386
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3387
|
-
case "ConstraintViolationException":
|
|
3388
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3389
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3390
|
-
case "IllegalArgumentException":
|
|
3391
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3392
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3393
|
-
case "InvalidArgumentException":
|
|
3394
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3395
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3396
|
-
case "InvalidParameterException":
|
|
3397
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3398
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3399
|
-
case "MissingParameterException":
|
|
3400
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3401
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3402
|
-
case "PreconditionsFailedException":
|
|
3403
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3404
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "ReadOnlyViolationException":
|
|
3406
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
3407
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "StatisticsNotAvailableException":
|
|
3409
|
-
case "com.amazonaws.neptunedata#StatisticsNotAvailableException":
|
|
3410
|
-
throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "TooManyRequestsException":
|
|
3412
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3413
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "UnsupportedOperationException":
|
|
3415
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3416
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3417
|
-
default:
|
|
3418
|
-
const parsedBody = parsedOutput.body;
|
|
3419
|
-
return throwDefaultError({
|
|
3420
|
-
output,
|
|
3421
|
-
parsedBody,
|
|
3422
|
-
errorCode,
|
|
3423
|
-
});
|
|
3424
|
-
}
|
|
3425
|
-
};
|
|
3426
|
-
const de_ManageSparqlStatisticsCommand = async (output, context) => {
|
|
3427
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3428
|
-
return de_ManageSparqlStatisticsCommandError(output, context);
|
|
3429
|
-
}
|
|
3430
|
-
const contents = (0, smithy_client_1.map)({
|
|
3431
|
-
$metadata: deserializeMetadata(output),
|
|
3432
|
-
});
|
|
3433
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3434
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3435
|
-
payload: smithy_client_1._json,
|
|
3436
|
-
status: smithy_client_1.expectString,
|
|
3437
|
-
});
|
|
3438
|
-
Object.assign(contents, doc);
|
|
3439
|
-
return contents;
|
|
3440
|
-
};
|
|
3441
|
-
exports.de_ManageSparqlStatisticsCommand = de_ManageSparqlStatisticsCommand;
|
|
3442
|
-
const de_ManageSparqlStatisticsCommandError = async (output, context) => {
|
|
3443
|
-
const parsedOutput = {
|
|
3444
|
-
...output,
|
|
3445
|
-
body: await parseErrorBody(output.body, context),
|
|
3446
|
-
};
|
|
3447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3448
|
-
switch (errorCode) {
|
|
3449
|
-
case "AccessDeniedException":
|
|
3450
|
-
case "com.amazonaws.neptunedata#AccessDeniedException":
|
|
3451
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "BadRequestException":
|
|
3453
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3454
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "ClientTimeoutException":
|
|
3456
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3457
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "ConstraintViolationException":
|
|
3459
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3460
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3461
|
-
case "IllegalArgumentException":
|
|
3462
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3463
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3464
|
-
case "InvalidArgumentException":
|
|
3465
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3466
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3467
|
-
case "InvalidParameterException":
|
|
3468
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3469
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3470
|
-
case "MissingParameterException":
|
|
3471
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3472
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "PreconditionsFailedException":
|
|
3474
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3475
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "ReadOnlyViolationException":
|
|
3477
|
-
case "com.amazonaws.neptunedata#ReadOnlyViolationException":
|
|
3478
|
-
throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context);
|
|
3479
|
-
case "StatisticsNotAvailableException":
|
|
3480
|
-
case "com.amazonaws.neptunedata#StatisticsNotAvailableException":
|
|
3481
|
-
throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context);
|
|
3482
|
-
case "TooManyRequestsException":
|
|
3483
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3484
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3485
|
-
case "UnsupportedOperationException":
|
|
3486
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3487
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3488
|
-
default:
|
|
3489
|
-
const parsedBody = parsedOutput.body;
|
|
3490
|
-
return throwDefaultError({
|
|
3491
|
-
output,
|
|
3492
|
-
parsedBody,
|
|
3493
|
-
errorCode,
|
|
3494
|
-
});
|
|
3495
|
-
}
|
|
3496
|
-
};
|
|
3497
|
-
const de_StartLoaderJobCommand = async (output, context) => {
|
|
3498
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3499
|
-
return de_StartLoaderJobCommandError(output, context);
|
|
3500
|
-
}
|
|
3501
|
-
const contents = (0, smithy_client_1.map)({
|
|
3502
|
-
$metadata: deserializeMetadata(output),
|
|
3503
|
-
});
|
|
3504
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3505
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3506
|
-
payload: smithy_client_1._json,
|
|
3507
|
-
status: smithy_client_1.expectString,
|
|
3508
|
-
});
|
|
3509
|
-
Object.assign(contents, doc);
|
|
3510
|
-
return contents;
|
|
3511
|
-
};
|
|
3512
|
-
exports.de_StartLoaderJobCommand = de_StartLoaderJobCommand;
|
|
3513
|
-
const de_StartLoaderJobCommandError = async (output, context) => {
|
|
3514
|
-
const parsedOutput = {
|
|
3515
|
-
...output,
|
|
3516
|
-
body: await parseErrorBody(output.body, context),
|
|
3517
|
-
};
|
|
3518
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3519
|
-
switch (errorCode) {
|
|
3520
|
-
case "BadRequestException":
|
|
3521
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3522
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3523
|
-
case "BulkLoadIdNotFoundException":
|
|
3524
|
-
case "com.amazonaws.neptunedata#BulkLoadIdNotFoundException":
|
|
3525
|
-
throw await de_BulkLoadIdNotFoundExceptionRes(parsedOutput, context);
|
|
3526
|
-
case "ClientTimeoutException":
|
|
3527
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3528
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "ConstraintViolationException":
|
|
3530
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3531
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "IllegalArgumentException":
|
|
3533
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3534
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3535
|
-
case "InternalFailureException":
|
|
3536
|
-
case "com.amazonaws.neptunedata#InternalFailureException":
|
|
3537
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3538
|
-
case "InvalidArgumentException":
|
|
3539
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3540
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3541
|
-
case "InvalidParameterException":
|
|
3542
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3543
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3544
|
-
case "LoadUrlAccessDeniedException":
|
|
3545
|
-
case "com.amazonaws.neptunedata#LoadUrlAccessDeniedException":
|
|
3546
|
-
throw await de_LoadUrlAccessDeniedExceptionRes(parsedOutput, context);
|
|
3547
|
-
case "MissingParameterException":
|
|
3548
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3549
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3550
|
-
case "PreconditionsFailedException":
|
|
3551
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3552
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3553
|
-
case "S3Exception":
|
|
3554
|
-
case "com.amazonaws.neptunedata#S3Exception":
|
|
3555
|
-
throw await de_S3ExceptionRes(parsedOutput, context);
|
|
3556
|
-
case "TooManyRequestsException":
|
|
3557
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3558
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3559
|
-
case "UnsupportedOperationException":
|
|
3560
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3561
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3562
|
-
default:
|
|
3563
|
-
const parsedBody = parsedOutput.body;
|
|
3564
|
-
return throwDefaultError({
|
|
3565
|
-
output,
|
|
3566
|
-
parsedBody,
|
|
3567
|
-
errorCode,
|
|
3568
|
-
});
|
|
3569
|
-
}
|
|
3570
|
-
};
|
|
3571
|
-
const de_StartMLDataProcessingJobCommand = async (output, context) => {
|
|
3572
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3573
|
-
return de_StartMLDataProcessingJobCommandError(output, context);
|
|
3574
|
-
}
|
|
3575
|
-
const contents = (0, smithy_client_1.map)({
|
|
3576
|
-
$metadata: deserializeMetadata(output),
|
|
3577
|
-
});
|
|
3578
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3579
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3580
|
-
arn: smithy_client_1.expectString,
|
|
3581
|
-
creationTimeInMillis: smithy_client_1.expectLong,
|
|
3582
|
-
id: smithy_client_1.expectString,
|
|
3583
|
-
});
|
|
3584
|
-
Object.assign(contents, doc);
|
|
3585
|
-
return contents;
|
|
3586
|
-
};
|
|
3587
|
-
exports.de_StartMLDataProcessingJobCommand = de_StartMLDataProcessingJobCommand;
|
|
3588
|
-
const de_StartMLDataProcessingJobCommandError = async (output, context) => {
|
|
3589
|
-
const parsedOutput = {
|
|
3590
|
-
...output,
|
|
3591
|
-
body: await parseErrorBody(output.body, context),
|
|
3592
|
-
};
|
|
3593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3594
|
-
switch (errorCode) {
|
|
3595
|
-
case "BadRequestException":
|
|
3596
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3597
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3598
|
-
case "ClientTimeoutException":
|
|
3599
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3600
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3601
|
-
case "ConstraintViolationException":
|
|
3602
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3603
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3604
|
-
case "IllegalArgumentException":
|
|
3605
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3606
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "InvalidArgumentException":
|
|
3608
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3609
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "InvalidParameterException":
|
|
3611
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3612
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "MLResourceNotFoundException":
|
|
3614
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
3615
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "MissingParameterException":
|
|
3617
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3618
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3619
|
-
case "PreconditionsFailedException":
|
|
3620
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3621
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3622
|
-
case "TooManyRequestsException":
|
|
3623
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3624
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3625
|
-
case "UnsupportedOperationException":
|
|
3626
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3627
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3628
|
-
default:
|
|
3629
|
-
const parsedBody = parsedOutput.body;
|
|
3630
|
-
return throwDefaultError({
|
|
3631
|
-
output,
|
|
3632
|
-
parsedBody,
|
|
3633
|
-
errorCode,
|
|
3634
|
-
});
|
|
3635
|
-
}
|
|
3636
|
-
};
|
|
3637
|
-
const de_StartMLModelTrainingJobCommand = async (output, context) => {
|
|
3638
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3639
|
-
return de_StartMLModelTrainingJobCommandError(output, context);
|
|
3640
|
-
}
|
|
3641
|
-
const contents = (0, smithy_client_1.map)({
|
|
3642
|
-
$metadata: deserializeMetadata(output),
|
|
3643
|
-
});
|
|
3644
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3645
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3646
|
-
arn: smithy_client_1.expectString,
|
|
3647
|
-
creationTimeInMillis: smithy_client_1.expectLong,
|
|
3648
|
-
id: smithy_client_1.expectString,
|
|
3649
|
-
});
|
|
3650
|
-
Object.assign(contents, doc);
|
|
3651
|
-
return contents;
|
|
3652
|
-
};
|
|
3653
|
-
exports.de_StartMLModelTrainingJobCommand = de_StartMLModelTrainingJobCommand;
|
|
3654
|
-
const de_StartMLModelTrainingJobCommandError = async (output, context) => {
|
|
3655
|
-
const parsedOutput = {
|
|
3656
|
-
...output,
|
|
3657
|
-
body: await parseErrorBody(output.body, context),
|
|
3658
|
-
};
|
|
3659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3660
|
-
switch (errorCode) {
|
|
3661
|
-
case "BadRequestException":
|
|
3662
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3663
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3664
|
-
case "ClientTimeoutException":
|
|
3665
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3666
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3667
|
-
case "ConstraintViolationException":
|
|
3668
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3669
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3670
|
-
case "IllegalArgumentException":
|
|
3671
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3672
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3673
|
-
case "InvalidArgumentException":
|
|
3674
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3675
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3676
|
-
case "InvalidParameterException":
|
|
3677
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3678
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3679
|
-
case "MLResourceNotFoundException":
|
|
3680
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
3681
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3682
|
-
case "MissingParameterException":
|
|
3683
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3684
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3685
|
-
case "PreconditionsFailedException":
|
|
3686
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3687
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3688
|
-
case "TooManyRequestsException":
|
|
3689
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3690
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3691
|
-
case "UnsupportedOperationException":
|
|
3692
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3693
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3694
|
-
default:
|
|
3695
|
-
const parsedBody = parsedOutput.body;
|
|
3696
|
-
return throwDefaultError({
|
|
3697
|
-
output,
|
|
3698
|
-
parsedBody,
|
|
3699
|
-
errorCode,
|
|
3700
|
-
});
|
|
3701
|
-
}
|
|
3702
|
-
};
|
|
3703
|
-
const de_StartMLModelTransformJobCommand = async (output, context) => {
|
|
3704
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3705
|
-
return de_StartMLModelTransformJobCommandError(output, context);
|
|
3706
|
-
}
|
|
3707
|
-
const contents = (0, smithy_client_1.map)({
|
|
3708
|
-
$metadata: deserializeMetadata(output),
|
|
3709
|
-
});
|
|
3710
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3711
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3712
|
-
arn: smithy_client_1.expectString,
|
|
3713
|
-
creationTimeInMillis: smithy_client_1.expectLong,
|
|
3714
|
-
id: smithy_client_1.expectString,
|
|
3715
|
-
});
|
|
3716
|
-
Object.assign(contents, doc);
|
|
3717
|
-
return contents;
|
|
3718
|
-
};
|
|
3719
|
-
exports.de_StartMLModelTransformJobCommand = de_StartMLModelTransformJobCommand;
|
|
3720
|
-
const de_StartMLModelTransformJobCommandError = async (output, context) => {
|
|
3721
|
-
const parsedOutput = {
|
|
3722
|
-
...output,
|
|
3723
|
-
body: await parseErrorBody(output.body, context),
|
|
3724
|
-
};
|
|
3725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3726
|
-
switch (errorCode) {
|
|
3727
|
-
case "BadRequestException":
|
|
3728
|
-
case "com.amazonaws.neptunedata#BadRequestException":
|
|
3729
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3730
|
-
case "ClientTimeoutException":
|
|
3731
|
-
case "com.amazonaws.neptunedata#ClientTimeoutException":
|
|
3732
|
-
throw await de_ClientTimeoutExceptionRes(parsedOutput, context);
|
|
3733
|
-
case "ConstraintViolationException":
|
|
3734
|
-
case "com.amazonaws.neptunedata#ConstraintViolationException":
|
|
3735
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3736
|
-
case "IllegalArgumentException":
|
|
3737
|
-
case "com.amazonaws.neptunedata#IllegalArgumentException":
|
|
3738
|
-
throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
|
|
3739
|
-
case "InvalidArgumentException":
|
|
3740
|
-
case "com.amazonaws.neptunedata#InvalidArgumentException":
|
|
3741
|
-
throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
|
|
3742
|
-
case "InvalidParameterException":
|
|
3743
|
-
case "com.amazonaws.neptunedata#InvalidParameterException":
|
|
3744
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3745
|
-
case "MLResourceNotFoundException":
|
|
3746
|
-
case "com.amazonaws.neptunedata#MLResourceNotFoundException":
|
|
3747
|
-
throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3748
|
-
case "MissingParameterException":
|
|
3749
|
-
case "com.amazonaws.neptunedata#MissingParameterException":
|
|
3750
|
-
throw await de_MissingParameterExceptionRes(parsedOutput, context);
|
|
3751
|
-
case "PreconditionsFailedException":
|
|
3752
|
-
case "com.amazonaws.neptunedata#PreconditionsFailedException":
|
|
3753
|
-
throw await de_PreconditionsFailedExceptionRes(parsedOutput, context);
|
|
3754
|
-
case "TooManyRequestsException":
|
|
3755
|
-
case "com.amazonaws.neptunedata#TooManyRequestsException":
|
|
3756
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "UnsupportedOperationException":
|
|
3758
|
-
case "com.amazonaws.neptunedata#UnsupportedOperationException":
|
|
3759
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3760
|
-
default:
|
|
3761
|
-
const parsedBody = parsedOutput.body;
|
|
3762
|
-
return throwDefaultError({
|
|
3763
|
-
output,
|
|
3764
|
-
parsedBody,
|
|
3765
|
-
errorCode,
|
|
3766
|
-
});
|
|
3767
|
-
}
|
|
3768
|
-
};
|
|
3769
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(NeptunedataServiceException_1.NeptunedataServiceException);
|
|
3770
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3771
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3772
|
-
const data = parsedOutput.body;
|
|
3773
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3774
|
-
code: smithy_client_1.expectString,
|
|
3775
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3776
|
-
requestId: smithy_client_1.expectString,
|
|
3777
|
-
});
|
|
3778
|
-
Object.assign(contents, doc);
|
|
3779
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3780
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3781
|
-
...contents,
|
|
3782
|
-
});
|
|
3783
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3784
|
-
};
|
|
3785
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3786
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3787
|
-
const data = parsedOutput.body;
|
|
3788
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3789
|
-
code: smithy_client_1.expectString,
|
|
3790
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3791
|
-
requestId: smithy_client_1.expectString,
|
|
3792
|
-
});
|
|
3793
|
-
Object.assign(contents, doc);
|
|
3794
|
-
const exception = new models_0_1.BadRequestException({
|
|
3795
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3796
|
-
...contents,
|
|
3797
|
-
});
|
|
3798
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3799
|
-
};
|
|
3800
|
-
const de_BulkLoadIdNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3801
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3802
|
-
const data = parsedOutput.body;
|
|
3803
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3804
|
-
code: smithy_client_1.expectString,
|
|
3805
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3806
|
-
requestId: smithy_client_1.expectString,
|
|
3807
|
-
});
|
|
3808
|
-
Object.assign(contents, doc);
|
|
3809
|
-
const exception = new models_0_1.BulkLoadIdNotFoundException({
|
|
3810
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3811
|
-
...contents,
|
|
3812
|
-
});
|
|
3813
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3814
|
-
};
|
|
3815
|
-
const de_CancelledByUserExceptionRes = async (parsedOutput, context) => {
|
|
3816
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3817
|
-
const data = parsedOutput.body;
|
|
3818
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3819
|
-
code: smithy_client_1.expectString,
|
|
3820
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3821
|
-
requestId: smithy_client_1.expectString,
|
|
3822
|
-
});
|
|
3823
|
-
Object.assign(contents, doc);
|
|
3824
|
-
const exception = new models_0_1.CancelledByUserException({
|
|
3825
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3826
|
-
...contents,
|
|
3827
|
-
});
|
|
3828
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3829
|
-
};
|
|
3830
|
-
const de_ClientTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
3831
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3832
|
-
const data = parsedOutput.body;
|
|
3833
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3834
|
-
code: smithy_client_1.expectString,
|
|
3835
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3836
|
-
requestId: smithy_client_1.expectString,
|
|
3837
|
-
});
|
|
3838
|
-
Object.assign(contents, doc);
|
|
3839
|
-
const exception = new models_0_1.ClientTimeoutException({
|
|
3840
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3841
|
-
...contents,
|
|
3842
|
-
});
|
|
3843
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3844
|
-
};
|
|
3845
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
3846
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3847
|
-
const data = parsedOutput.body;
|
|
3848
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3849
|
-
code: smithy_client_1.expectString,
|
|
3850
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3851
|
-
requestId: smithy_client_1.expectString,
|
|
3852
|
-
});
|
|
3853
|
-
Object.assign(contents, doc);
|
|
3854
|
-
const exception = new models_0_1.ConcurrentModificationException({
|
|
3855
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3856
|
-
...contents,
|
|
3857
|
-
});
|
|
3858
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3859
|
-
};
|
|
3860
|
-
const de_ConstraintViolationExceptionRes = async (parsedOutput, context) => {
|
|
3861
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3862
|
-
const data = parsedOutput.body;
|
|
3863
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3864
|
-
code: smithy_client_1.expectString,
|
|
3865
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3866
|
-
requestId: smithy_client_1.expectString,
|
|
3867
|
-
});
|
|
3868
|
-
Object.assign(contents, doc);
|
|
3869
|
-
const exception = new models_0_1.ConstraintViolationException({
|
|
3870
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3871
|
-
...contents,
|
|
3872
|
-
});
|
|
3873
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3874
|
-
};
|
|
3875
|
-
const de_ExpiredStreamExceptionRes = async (parsedOutput, context) => {
|
|
3876
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3877
|
-
const data = parsedOutput.body;
|
|
3878
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3879
|
-
code: smithy_client_1.expectString,
|
|
3880
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3881
|
-
requestId: smithy_client_1.expectString,
|
|
3882
|
-
});
|
|
3883
|
-
Object.assign(contents, doc);
|
|
3884
|
-
const exception = new models_0_1.ExpiredStreamException({
|
|
3885
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3886
|
-
...contents,
|
|
3887
|
-
});
|
|
3888
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3889
|
-
};
|
|
3890
|
-
const de_FailureByQueryExceptionRes = async (parsedOutput, context) => {
|
|
3891
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3892
|
-
const data = parsedOutput.body;
|
|
3893
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3894
|
-
code: smithy_client_1.expectString,
|
|
3895
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3896
|
-
requestId: smithy_client_1.expectString,
|
|
3897
|
-
});
|
|
3898
|
-
Object.assign(contents, doc);
|
|
3899
|
-
const exception = new models_0_1.FailureByQueryException({
|
|
3900
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3901
|
-
...contents,
|
|
3902
|
-
});
|
|
3903
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3904
|
-
};
|
|
3905
|
-
const de_IllegalArgumentExceptionRes = async (parsedOutput, context) => {
|
|
3906
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3907
|
-
const data = parsedOutput.body;
|
|
3908
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3909
|
-
code: smithy_client_1.expectString,
|
|
3910
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3911
|
-
requestId: smithy_client_1.expectString,
|
|
3912
|
-
});
|
|
3913
|
-
Object.assign(contents, doc);
|
|
3914
|
-
const exception = new models_0_1.IllegalArgumentException({
|
|
3915
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3916
|
-
...contents,
|
|
3917
|
-
});
|
|
3918
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3919
|
-
};
|
|
3920
|
-
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
3921
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3922
|
-
const data = parsedOutput.body;
|
|
3923
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3924
|
-
code: smithy_client_1.expectString,
|
|
3925
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3926
|
-
requestId: smithy_client_1.expectString,
|
|
3927
|
-
});
|
|
3928
|
-
Object.assign(contents, doc);
|
|
3929
|
-
const exception = new models_0_1.InternalFailureException({
|
|
3930
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3931
|
-
...contents,
|
|
3932
|
-
});
|
|
3933
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3934
|
-
};
|
|
3935
|
-
const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
|
|
3936
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3937
|
-
const data = parsedOutput.body;
|
|
3938
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3939
|
-
code: smithy_client_1.expectString,
|
|
3940
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3941
|
-
requestId: smithy_client_1.expectString,
|
|
3942
|
-
});
|
|
3943
|
-
Object.assign(contents, doc);
|
|
3944
|
-
const exception = new models_0_1.InvalidArgumentException({
|
|
3945
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3946
|
-
...contents,
|
|
3947
|
-
});
|
|
3948
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3949
|
-
};
|
|
3950
|
-
const de_InvalidNumericDataExceptionRes = async (parsedOutput, context) => {
|
|
3951
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3952
|
-
const data = parsedOutput.body;
|
|
3953
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3954
|
-
code: smithy_client_1.expectString,
|
|
3955
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3956
|
-
requestId: smithy_client_1.expectString,
|
|
3957
|
-
});
|
|
3958
|
-
Object.assign(contents, doc);
|
|
3959
|
-
const exception = new models_0_1.InvalidNumericDataException({
|
|
3960
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3961
|
-
...contents,
|
|
3962
|
-
});
|
|
3963
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3964
|
-
};
|
|
3965
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
3966
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3967
|
-
const data = parsedOutput.body;
|
|
3968
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3969
|
-
code: smithy_client_1.expectString,
|
|
3970
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3971
|
-
requestId: smithy_client_1.expectString,
|
|
3972
|
-
});
|
|
3973
|
-
Object.assign(contents, doc);
|
|
3974
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
3975
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3976
|
-
...contents,
|
|
3977
|
-
});
|
|
3978
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3979
|
-
};
|
|
3980
|
-
const de_LoadUrlAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3981
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3982
|
-
const data = parsedOutput.body;
|
|
3983
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3984
|
-
code: smithy_client_1.expectString,
|
|
3985
|
-
detailedMessage: smithy_client_1.expectString,
|
|
3986
|
-
requestId: smithy_client_1.expectString,
|
|
3987
|
-
});
|
|
3988
|
-
Object.assign(contents, doc);
|
|
3989
|
-
const exception = new models_0_1.LoadUrlAccessDeniedException({
|
|
3990
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3991
|
-
...contents,
|
|
3992
|
-
});
|
|
3993
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3994
|
-
};
|
|
3995
|
-
const de_MalformedQueryExceptionRes = async (parsedOutput, context) => {
|
|
3996
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3997
|
-
const data = parsedOutput.body;
|
|
3998
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3999
|
-
code: smithy_client_1.expectString,
|
|
4000
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4001
|
-
requestId: smithy_client_1.expectString,
|
|
4002
|
-
});
|
|
4003
|
-
Object.assign(contents, doc);
|
|
4004
|
-
const exception = new models_0_1.MalformedQueryException({
|
|
4005
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4006
|
-
...contents,
|
|
4007
|
-
});
|
|
4008
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4009
|
-
};
|
|
4010
|
-
const de_MemoryLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
4011
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4012
|
-
const data = parsedOutput.body;
|
|
4013
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4014
|
-
code: smithy_client_1.expectString,
|
|
4015
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4016
|
-
requestId: smithy_client_1.expectString,
|
|
4017
|
-
});
|
|
4018
|
-
Object.assign(contents, doc);
|
|
4019
|
-
const exception = new models_0_1.MemoryLimitExceededException({
|
|
4020
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4021
|
-
...contents,
|
|
4022
|
-
});
|
|
4023
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4024
|
-
};
|
|
4025
|
-
const de_MethodNotAllowedExceptionRes = async (parsedOutput, context) => {
|
|
4026
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4027
|
-
const data = parsedOutput.body;
|
|
4028
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4029
|
-
code: smithy_client_1.expectString,
|
|
4030
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4031
|
-
requestId: smithy_client_1.expectString,
|
|
4032
|
-
});
|
|
4033
|
-
Object.assign(contents, doc);
|
|
4034
|
-
const exception = new models_0_1.MethodNotAllowedException({
|
|
4035
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4036
|
-
...contents,
|
|
4037
|
-
});
|
|
4038
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4039
|
-
};
|
|
4040
|
-
const de_MissingParameterExceptionRes = async (parsedOutput, context) => {
|
|
4041
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4042
|
-
const data = parsedOutput.body;
|
|
4043
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4044
|
-
code: smithy_client_1.expectString,
|
|
4045
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4046
|
-
requestId: smithy_client_1.expectString,
|
|
4047
|
-
});
|
|
4048
|
-
Object.assign(contents, doc);
|
|
4049
|
-
const exception = new models_0_1.MissingParameterException({
|
|
4050
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4051
|
-
...contents,
|
|
4052
|
-
});
|
|
4053
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4054
|
-
};
|
|
4055
|
-
const de_MLResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4056
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4057
|
-
const data = parsedOutput.body;
|
|
4058
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4059
|
-
code: smithy_client_1.expectString,
|
|
4060
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4061
|
-
requestId: smithy_client_1.expectString,
|
|
4062
|
-
});
|
|
4063
|
-
Object.assign(contents, doc);
|
|
4064
|
-
const exception = new models_0_1.MLResourceNotFoundException({
|
|
4065
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4066
|
-
...contents,
|
|
4067
|
-
});
|
|
4068
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4069
|
-
};
|
|
4070
|
-
const de_ParsingExceptionRes = async (parsedOutput, context) => {
|
|
4071
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4072
|
-
const data = parsedOutput.body;
|
|
4073
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4074
|
-
code: smithy_client_1.expectString,
|
|
4075
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4076
|
-
requestId: smithy_client_1.expectString,
|
|
4077
|
-
});
|
|
4078
|
-
Object.assign(contents, doc);
|
|
4079
|
-
const exception = new models_0_1.ParsingException({
|
|
4080
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4081
|
-
...contents,
|
|
4082
|
-
});
|
|
4083
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4084
|
-
};
|
|
4085
|
-
const de_PreconditionsFailedExceptionRes = async (parsedOutput, context) => {
|
|
4086
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4087
|
-
const data = parsedOutput.body;
|
|
4088
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4089
|
-
code: smithy_client_1.expectString,
|
|
4090
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4091
|
-
requestId: smithy_client_1.expectString,
|
|
4092
|
-
});
|
|
4093
|
-
Object.assign(contents, doc);
|
|
4094
|
-
const exception = new models_0_1.PreconditionsFailedException({
|
|
4095
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4096
|
-
...contents,
|
|
4097
|
-
});
|
|
4098
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4099
|
-
};
|
|
4100
|
-
const de_QueryLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
4101
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4102
|
-
const data = parsedOutput.body;
|
|
4103
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4104
|
-
code: smithy_client_1.expectString,
|
|
4105
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4106
|
-
requestId: smithy_client_1.expectString,
|
|
4107
|
-
});
|
|
4108
|
-
Object.assign(contents, doc);
|
|
4109
|
-
const exception = new models_0_1.QueryLimitExceededException({
|
|
4110
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4111
|
-
...contents,
|
|
4112
|
-
});
|
|
4113
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4114
|
-
};
|
|
4115
|
-
const de_QueryLimitExceptionRes = async (parsedOutput, context) => {
|
|
4116
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4117
|
-
const data = parsedOutput.body;
|
|
4118
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4119
|
-
code: smithy_client_1.expectString,
|
|
4120
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4121
|
-
requestId: smithy_client_1.expectString,
|
|
4122
|
-
});
|
|
4123
|
-
Object.assign(contents, doc);
|
|
4124
|
-
const exception = new models_0_1.QueryLimitException({
|
|
4125
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4126
|
-
...contents,
|
|
4127
|
-
});
|
|
4128
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4129
|
-
};
|
|
4130
|
-
const de_QueryTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
4131
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4132
|
-
const data = parsedOutput.body;
|
|
4133
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4134
|
-
code: smithy_client_1.expectString,
|
|
4135
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4136
|
-
requestId: smithy_client_1.expectString,
|
|
4137
|
-
});
|
|
4138
|
-
Object.assign(contents, doc);
|
|
4139
|
-
const exception = new models_0_1.QueryTooLargeException({
|
|
4140
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4141
|
-
...contents,
|
|
4142
|
-
});
|
|
4143
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4144
|
-
};
|
|
4145
|
-
const de_ReadOnlyViolationExceptionRes = async (parsedOutput, context) => {
|
|
4146
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4147
|
-
const data = parsedOutput.body;
|
|
4148
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4149
|
-
code: smithy_client_1.expectString,
|
|
4150
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4151
|
-
requestId: smithy_client_1.expectString,
|
|
4152
|
-
});
|
|
4153
|
-
Object.assign(contents, doc);
|
|
4154
|
-
const exception = new models_0_1.ReadOnlyViolationException({
|
|
4155
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4156
|
-
...contents,
|
|
4157
|
-
});
|
|
4158
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4159
|
-
};
|
|
4160
|
-
const de_S3ExceptionRes = async (parsedOutput, context) => {
|
|
4161
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4162
|
-
const data = parsedOutput.body;
|
|
4163
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4164
|
-
code: smithy_client_1.expectString,
|
|
4165
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4166
|
-
requestId: smithy_client_1.expectString,
|
|
4167
|
-
});
|
|
4168
|
-
Object.assign(contents, doc);
|
|
4169
|
-
const exception = new models_0_1.S3Exception({
|
|
4170
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4171
|
-
...contents,
|
|
4172
|
-
});
|
|
4173
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4174
|
-
};
|
|
4175
|
-
const de_ServerShutdownExceptionRes = async (parsedOutput, context) => {
|
|
4176
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4177
|
-
const data = parsedOutput.body;
|
|
4178
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4179
|
-
code: smithy_client_1.expectString,
|
|
4180
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4181
|
-
requestId: smithy_client_1.expectString,
|
|
4182
|
-
});
|
|
4183
|
-
Object.assign(contents, doc);
|
|
4184
|
-
const exception = new models_0_1.ServerShutdownException({
|
|
4185
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4186
|
-
...contents,
|
|
4187
|
-
});
|
|
4188
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4189
|
-
};
|
|
4190
|
-
const de_StatisticsNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
4191
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4192
|
-
const data = parsedOutput.body;
|
|
4193
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4194
|
-
code: smithy_client_1.expectString,
|
|
4195
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4196
|
-
requestId: smithy_client_1.expectString,
|
|
4197
|
-
});
|
|
4198
|
-
Object.assign(contents, doc);
|
|
4199
|
-
const exception = new models_0_1.StatisticsNotAvailableException({
|
|
4200
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4201
|
-
...contents,
|
|
4202
|
-
});
|
|
4203
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4204
|
-
};
|
|
4205
|
-
const de_StreamRecordsNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4206
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4207
|
-
const data = parsedOutput.body;
|
|
4208
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4209
|
-
code: smithy_client_1.expectString,
|
|
4210
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4211
|
-
requestId: smithy_client_1.expectString,
|
|
4212
|
-
});
|
|
4213
|
-
Object.assign(contents, doc);
|
|
4214
|
-
const exception = new models_0_1.StreamRecordsNotFoundException({
|
|
4215
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4216
|
-
...contents,
|
|
4217
|
-
});
|
|
4218
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4219
|
-
};
|
|
4220
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
4221
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4222
|
-
const data = parsedOutput.body;
|
|
4223
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4224
|
-
code: smithy_client_1.expectString,
|
|
4225
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4226
|
-
requestId: smithy_client_1.expectString,
|
|
4227
|
-
});
|
|
4228
|
-
Object.assign(contents, doc);
|
|
4229
|
-
const exception = new models_0_1.ThrottlingException({
|
|
4230
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4231
|
-
...contents,
|
|
4232
|
-
});
|
|
4233
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4234
|
-
};
|
|
4235
|
-
const de_TimeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
4236
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4237
|
-
const data = parsedOutput.body;
|
|
4238
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4239
|
-
code: smithy_client_1.expectString,
|
|
4240
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4241
|
-
requestId: smithy_client_1.expectString,
|
|
4242
|
-
});
|
|
4243
|
-
Object.assign(contents, doc);
|
|
4244
|
-
const exception = new models_0_1.TimeLimitExceededException({
|
|
4245
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4246
|
-
...contents,
|
|
4247
|
-
});
|
|
4248
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4249
|
-
};
|
|
4250
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
4251
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4252
|
-
const data = parsedOutput.body;
|
|
4253
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4254
|
-
code: smithy_client_1.expectString,
|
|
4255
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4256
|
-
requestId: smithy_client_1.expectString,
|
|
4257
|
-
});
|
|
4258
|
-
Object.assign(contents, doc);
|
|
4259
|
-
const exception = new models_0_1.TooManyRequestsException({
|
|
4260
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4261
|
-
...contents,
|
|
4262
|
-
});
|
|
4263
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4264
|
-
};
|
|
4265
|
-
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
4266
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4267
|
-
const data = parsedOutput.body;
|
|
4268
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4269
|
-
code: smithy_client_1.expectString,
|
|
4270
|
-
detailedMessage: smithy_client_1.expectString,
|
|
4271
|
-
requestId: smithy_client_1.expectString,
|
|
4272
|
-
});
|
|
4273
|
-
Object.assign(contents, doc);
|
|
4274
|
-
const exception = new models_0_1.UnsupportedOperationException({
|
|
4275
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4276
|
-
...contents,
|
|
4277
|
-
});
|
|
4278
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4279
|
-
};
|
|
4280
|
-
const de_DocumentValuedMap = (output, context) => {
|
|
4281
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4282
|
-
if (value === null) {
|
|
4283
|
-
return acc;
|
|
4284
|
-
}
|
|
4285
|
-
acc[key] = de_Document(value, context);
|
|
4286
|
-
return acc;
|
|
4287
|
-
}, {});
|
|
4288
|
-
};
|
|
4289
|
-
const de_GremlinQueries = (output, context) => {
|
|
4290
|
-
const retVal = (output || [])
|
|
4291
|
-
.filter((e) => e != null)
|
|
4292
|
-
.map((entry) => {
|
|
4293
|
-
return de_GremlinQueryStatus(entry, context);
|
|
4294
|
-
});
|
|
4295
|
-
return retVal;
|
|
4296
|
-
};
|
|
4297
|
-
const de_GremlinQueryStatus = (output, context) => {
|
|
4298
|
-
return (0, smithy_client_1.take)(output, {
|
|
4299
|
-
queryEvalStats: (_) => de_QueryEvalStats(_, context),
|
|
4300
|
-
queryId: smithy_client_1.expectString,
|
|
4301
|
-
queryString: smithy_client_1.expectString,
|
|
4302
|
-
});
|
|
4303
|
-
};
|
|
4304
|
-
const de_GremlinQueryStatusAttributes = (output, context) => {
|
|
4305
|
-
return (0, smithy_client_1.take)(output, {
|
|
4306
|
-
attributes: (_) => de_Document(_, context),
|
|
4307
|
-
code: smithy_client_1.expectInt32,
|
|
4308
|
-
message: smithy_client_1.expectString,
|
|
4309
|
-
});
|
|
4310
|
-
};
|
|
4311
|
-
const de_OpenCypherQueries = (output, context) => {
|
|
4312
|
-
const retVal = (output || [])
|
|
4313
|
-
.filter((e) => e != null)
|
|
4314
|
-
.map((entry) => {
|
|
4315
|
-
return de_GremlinQueryStatus(entry, context);
|
|
4316
|
-
});
|
|
4317
|
-
return retVal;
|
|
4318
|
-
};
|
|
4319
|
-
const de_PropertygraphData = (output, context) => {
|
|
4320
|
-
return (0, smithy_client_1.take)(output, {
|
|
4321
|
-
from: smithy_client_1.expectString,
|
|
4322
|
-
id: smithy_client_1.expectString,
|
|
4323
|
-
key: smithy_client_1.expectString,
|
|
4324
|
-
to: smithy_client_1.expectString,
|
|
4325
|
-
type: smithy_client_1.expectString,
|
|
4326
|
-
value: (_) => de_Document(_, context),
|
|
4327
|
-
});
|
|
4328
|
-
};
|
|
4329
|
-
const de_PropertygraphRecord = (output, context) => {
|
|
4330
|
-
return (0, smithy_client_1.take)(output, {
|
|
4331
|
-
commitTimestampInMillis: [, smithy_client_1.expectLong, `commitTimestamp`],
|
|
4332
|
-
data: (_) => de_PropertygraphData(_, context),
|
|
4333
|
-
eventId: smithy_client_1._json,
|
|
4334
|
-
isLastOp: smithy_client_1.expectBoolean,
|
|
4335
|
-
op: smithy_client_1.expectString,
|
|
4336
|
-
});
|
|
4337
|
-
};
|
|
4338
|
-
const de_PropertygraphRecordsList = (output, context) => {
|
|
4339
|
-
const retVal = (output || [])
|
|
4340
|
-
.filter((e) => e != null)
|
|
4341
|
-
.map((entry) => {
|
|
4342
|
-
return de_PropertygraphRecord(entry, context);
|
|
4343
|
-
});
|
|
4344
|
-
return retVal;
|
|
4345
|
-
};
|
|
4346
|
-
const de_PropertygraphSummaryValueMap = (output, context) => {
|
|
4347
|
-
return (0, smithy_client_1.take)(output, {
|
|
4348
|
-
graphSummary: smithy_client_1._json,
|
|
4349
|
-
lastStatisticsComputationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
4350
|
-
version: smithy_client_1.expectString,
|
|
4351
|
-
});
|
|
4352
|
-
};
|
|
4353
|
-
const de_QueryEvalStats = (output, context) => {
|
|
4354
|
-
return (0, smithy_client_1.take)(output, {
|
|
4355
|
-
cancelled: smithy_client_1.expectBoolean,
|
|
4356
|
-
elapsed: smithy_client_1.expectInt32,
|
|
4357
|
-
subqueries: (_) => de_Document(_, context),
|
|
4358
|
-
waited: smithy_client_1.expectInt32,
|
|
4359
|
-
});
|
|
4360
|
-
};
|
|
4361
|
-
const de_RDFGraphSummaryValueMap = (output, context) => {
|
|
4362
|
-
return (0, smithy_client_1.take)(output, {
|
|
4363
|
-
graphSummary: smithy_client_1._json,
|
|
4364
|
-
lastStatisticsComputationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
4365
|
-
version: smithy_client_1.expectString,
|
|
4366
|
-
});
|
|
4367
|
-
};
|
|
4368
|
-
const de_SparqlRecord = (output, context) => {
|
|
4369
|
-
return (0, smithy_client_1.take)(output, {
|
|
4370
|
-
commitTimestampInMillis: [, smithy_client_1.expectLong, `commitTimestamp`],
|
|
4371
|
-
data: smithy_client_1._json,
|
|
4372
|
-
eventId: smithy_client_1._json,
|
|
4373
|
-
isLastOp: smithy_client_1.expectBoolean,
|
|
4374
|
-
op: smithy_client_1.expectString,
|
|
4375
|
-
});
|
|
4376
|
-
};
|
|
4377
|
-
const de_SparqlRecordsList = (output, context) => {
|
|
4378
|
-
const retVal = (output || [])
|
|
4379
|
-
.filter((e) => e != null)
|
|
4380
|
-
.map((entry) => {
|
|
4381
|
-
return de_SparqlRecord(entry, context);
|
|
4382
|
-
});
|
|
4383
|
-
return retVal;
|
|
4384
|
-
};
|
|
4385
|
-
const de_Statistics = (output, context) => {
|
|
4386
|
-
return (0, smithy_client_1.take)(output, {
|
|
4387
|
-
active: smithy_client_1.expectBoolean,
|
|
4388
|
-
autoCompute: smithy_client_1.expectBoolean,
|
|
4389
|
-
date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
4390
|
-
note: smithy_client_1.expectString,
|
|
4391
|
-
signatureInfo: smithy_client_1._json,
|
|
4392
|
-
statisticsId: smithy_client_1.expectString,
|
|
4393
|
-
});
|
|
4394
|
-
};
|
|
4395
|
-
const de_Document = (output, context) => {
|
|
4396
|
-
return output;
|
|
4397
|
-
};
|
|
4398
|
-
const deserializeMetadata = (output) => ({
|
|
4399
|
-
httpStatusCode: output.statusCode,
|
|
4400
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4401
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4402
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4403
|
-
});
|
|
4404
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4405
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
4406
|
-
value !== null &&
|
|
4407
|
-
value !== "" &&
|
|
4408
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4409
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4410
|
-
const _a = "accept";
|
|
4411
|
-
const _ae = "accept-encoding";
|
|
4412
|
-
const _c = "clean";
|
|
4413
|
-
const _cN = "commitNum";
|
|
4414
|
-
const _d = "details";
|
|
4415
|
-
const _e = "errors";
|
|
4416
|
-
const _ePP = "errorsPerPage";
|
|
4417
|
-
const _en = "encoding";
|
|
4418
|
-
const _iQL = "includeQueuedLoads";
|
|
4419
|
-
const _iT = "iteratorType";
|
|
4420
|
-
const _iW = "includeWaiting";
|
|
4421
|
-
const _l = "limit";
|
|
4422
|
-
const _m = "mode";
|
|
4423
|
-
const _mI = "maxItems";
|
|
4424
|
-
const _nIRA = "neptuneIamRoleArn";
|
|
4425
|
-
const _oN = "opNum";
|
|
4426
|
-
const _p = "page";
|
|
4427
|
-
const _s = "silent";
|
|
4428
|
-
const _se = "serializer";
|
|
4429
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4430
|
-
if (encoded.length) {
|
|
4431
|
-
return JSON.parse(encoded);
|
|
4432
|
-
}
|
|
4433
|
-
return {};
|
|
4434
|
-
});
|
|
4435
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4436
|
-
const value = await parseBody(errorBody, context);
|
|
4437
|
-
value.message = value.message ?? value.Message;
|
|
4438
|
-
return value;
|
|
4439
|
-
};
|
|
4440
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4441
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4442
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4443
|
-
let cleanValue = rawValue;
|
|
4444
|
-
if (typeof cleanValue === "number") {
|
|
4445
|
-
cleanValue = cleanValue.toString();
|
|
4446
|
-
}
|
|
4447
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4448
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4449
|
-
}
|
|
4450
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4451
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4452
|
-
}
|
|
4453
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4454
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4455
|
-
}
|
|
4456
|
-
return cleanValue;
|
|
4457
|
-
};
|
|
4458
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4459
|
-
if (headerKey !== undefined) {
|
|
4460
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4461
|
-
}
|
|
4462
|
-
if (data.code !== undefined) {
|
|
4463
|
-
return sanitizeErrorCode(data.code);
|
|
4464
|
-
}
|
|
4465
|
-
if (data["__type"] !== undefined) {
|
|
4466
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4467
|
-
}
|
|
4468
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|