@aws-sdk/client-neptune-graph 3.504.0 → 3.507.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/README.md +43 -3
- package/dist-cjs/commands/CancelQueryCommand.js +1 -0
- package/dist-cjs/commands/ExecuteQueryCommand.js +1 -0
- package/dist-cjs/commands/GetGraphSummaryCommand.js +1 -0
- package/dist-cjs/commands/GetQueryCommand.js +1 -0
- package/dist-cjs/commands/ListQueriesCommand.js +1 -0
- package/dist-cjs/index.js +511 -698
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/NeptuneGraph.js +10 -0
- package/dist-es/commands/CancelQueryCommand.js +25 -0
- package/dist-es/commands/ExecuteQueryCommand.js +26 -0
- package/dist-es/commands/GetGraphSummaryCommand.js +25 -0
- package/dist-es/commands/GetQueryCommand.js +25 -0
- package/dist-es/commands/ListQueriesCommand.js +25 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +91 -29
- package/dist-es/protocols/Aws_restJson1.js +252 -639
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/NeptuneGraph.d.ts +38 -3
- package/dist-types/NeptuneGraphClient.d.ts +16 -6
- package/dist-types/commands/CancelImportTaskCommand.d.ts +2 -2
- package/dist-types/commands/CancelQueryCommand.d.ts +72 -0
- package/dist-types/commands/CreateGraphCommand.d.ts +1 -1
- package/dist-types/commands/CreateGraphSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/CreateGraphUsingImportTaskCommand.d.ts +1 -1
- package/dist-types/commands/CreatePrivateGraphEndpointCommand.d.ts +1 -1
- package/dist-types/commands/DeleteGraphCommand.d.ts +1 -1
- package/dist-types/commands/DeleteGraphSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/DeletePrivateGraphEndpointCommand.d.ts +1 -1
- package/dist-types/commands/ExecuteQueryCommand.d.ts +90 -0
- package/dist-types/commands/GetGraphCommand.d.ts +1 -1
- package/dist-types/commands/GetGraphSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/GetGraphSummaryCommand.d.ts +120 -0
- package/dist-types/commands/GetImportTaskCommand.d.ts +1 -1
- package/dist-types/commands/GetPrivateGraphEndpointCommand.d.ts +1 -1
- package/dist-types/commands/GetQueryCommand.d.ts +78 -0
- package/dist-types/commands/ListGraphSnapshotsCommand.d.ts +1 -1
- package/dist-types/commands/ListImportTasksCommand.d.ts +1 -1
- package/dist-types/commands/ListPrivateGraphEndpointsCommand.d.ts +1 -1
- package/dist-types/commands/ListQueriesCommand.d.ts +80 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ResetGraphCommand.d.ts +1 -1
- package/dist-types/commands/RestoreGraphFromSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGraphCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/index.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +522 -78
- package/dist-types/protocols/Aws_restJson1.d.ts +46 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/NeptuneGraph.d.ts +85 -0
- package/dist-types/ts3.4/NeptuneGraphClient.d.ts +32 -0
- package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +24 -0
- package/dist-types/ts3.4/commands/ExecuteQueryCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetGraphSummaryCommand.d.ts +29 -0
- package/dist-types/ts3.4/commands/GetQueryCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +182 -44
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +64 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +4 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
4
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnprocessableException, ValidationException, } from "../models/models_0";
|
|
5
6
|
import { NeptuneGraphServiceException as __BaseException } from "../models/NeptuneGraphServiceException";
|
|
6
7
|
export const se_CancelImportTaskCommand = async (input, context) => {
|
|
7
8
|
const b = rb(input, context);
|
|
@@ -12,6 +13,29 @@ export const se_CancelImportTaskCommand = async (input, context) => {
|
|
|
12
13
|
b.m("DELETE").h(headers).b(body);
|
|
13
14
|
return b.build();
|
|
14
15
|
};
|
|
16
|
+
export const se_CancelQueryCommand = async (input, context) => {
|
|
17
|
+
const b = rb(input, context);
|
|
18
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
19
|
+
[_g]: input[_gI],
|
|
20
|
+
});
|
|
21
|
+
b.bp("/queries/{queryId}");
|
|
22
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
23
|
+
let body;
|
|
24
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
25
|
+
if (context.disableHostPrefix !== true) {
|
|
26
|
+
resolvedHostname = "{graphIdentifier}." + resolvedHostname;
|
|
27
|
+
if (input.graphIdentifier === undefined) {
|
|
28
|
+
throw new Error("Empty value provided for input host prefix: graphIdentifier.");
|
|
29
|
+
}
|
|
30
|
+
resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
|
|
31
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
32
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
b.hn(resolvedHostname);
|
|
36
|
+
b.m("DELETE").h(headers).b(body);
|
|
37
|
+
return b.build();
|
|
38
|
+
};
|
|
15
39
|
export const se_CreateGraphCommand = async (input, context) => {
|
|
16
40
|
const b = rb(input, context);
|
|
17
41
|
const headers = {
|
|
@@ -120,6 +144,36 @@ export const se_DeletePrivateGraphEndpointCommand = async (input, context) => {
|
|
|
120
144
|
b.m("DELETE").h(headers).b(body);
|
|
121
145
|
return b.build();
|
|
122
146
|
};
|
|
147
|
+
export const se_ExecuteQueryCommand = async (input, context) => {
|
|
148
|
+
const b = rb(input, context);
|
|
149
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
150
|
+
"content-type": "application/json",
|
|
151
|
+
[_g]: input[_gI],
|
|
152
|
+
});
|
|
153
|
+
b.bp("/queries");
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(take(input, {
|
|
156
|
+
explain: [, , `explainMode`],
|
|
157
|
+
language: [],
|
|
158
|
+
planCache: [],
|
|
159
|
+
query: [, , `queryString`],
|
|
160
|
+
queryTimeoutMilliseconds: [],
|
|
161
|
+
}));
|
|
162
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
163
|
+
if (context.disableHostPrefix !== true) {
|
|
164
|
+
resolvedHostname = "{graphIdentifier}." + resolvedHostname;
|
|
165
|
+
if (input.graphIdentifier === undefined) {
|
|
166
|
+
throw new Error("Empty value provided for input host prefix: graphIdentifier.");
|
|
167
|
+
}
|
|
168
|
+
resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
|
|
169
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
170
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
b.hn(resolvedHostname);
|
|
174
|
+
b.m("POST").h(headers).b(body);
|
|
175
|
+
return b.build();
|
|
176
|
+
};
|
|
123
177
|
export const se_GetGraphCommand = async (input, context) => {
|
|
124
178
|
const b = rb(input, context);
|
|
125
179
|
const headers = {};
|
|
@@ -138,6 +192,31 @@ export const se_GetGraphSnapshotCommand = async (input, context) => {
|
|
|
138
192
|
b.m("GET").h(headers).b(body);
|
|
139
193
|
return b.build();
|
|
140
194
|
};
|
|
195
|
+
export const se_GetGraphSummaryCommand = async (input, context) => {
|
|
196
|
+
const b = rb(input, context);
|
|
197
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
198
|
+
[_g]: input[_gI],
|
|
199
|
+
});
|
|
200
|
+
b.bp("/summary");
|
|
201
|
+
const query = map({
|
|
202
|
+
[_m]: [, input[_m]],
|
|
203
|
+
});
|
|
204
|
+
let body;
|
|
205
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
206
|
+
if (context.disableHostPrefix !== true) {
|
|
207
|
+
resolvedHostname = "{graphIdentifier}." + resolvedHostname;
|
|
208
|
+
if (input.graphIdentifier === undefined) {
|
|
209
|
+
throw new Error("Empty value provided for input host prefix: graphIdentifier.");
|
|
210
|
+
}
|
|
211
|
+
resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
|
|
212
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
213
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
b.hn(resolvedHostname);
|
|
217
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
218
|
+
return b.build();
|
|
219
|
+
};
|
|
141
220
|
export const se_GetImportTaskCommand = async (input, context) => {
|
|
142
221
|
const b = rb(input, context);
|
|
143
222
|
const headers = {};
|
|
@@ -157,6 +236,29 @@ export const se_GetPrivateGraphEndpointCommand = async (input, context) => {
|
|
|
157
236
|
b.m("GET").h(headers).b(body);
|
|
158
237
|
return b.build();
|
|
159
238
|
};
|
|
239
|
+
export const se_GetQueryCommand = async (input, context) => {
|
|
240
|
+
const b = rb(input, context);
|
|
241
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
242
|
+
[_g]: input[_gI],
|
|
243
|
+
});
|
|
244
|
+
b.bp("/queries/{queryId}");
|
|
245
|
+
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
246
|
+
let body;
|
|
247
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
248
|
+
if (context.disableHostPrefix !== true) {
|
|
249
|
+
resolvedHostname = "{graphIdentifier}." + resolvedHostname;
|
|
250
|
+
if (input.graphIdentifier === undefined) {
|
|
251
|
+
throw new Error("Empty value provided for input host prefix: graphIdentifier.");
|
|
252
|
+
}
|
|
253
|
+
resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
|
|
254
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
255
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
b.hn(resolvedHostname);
|
|
259
|
+
b.m("GET").h(headers).b(body);
|
|
260
|
+
return b.build();
|
|
261
|
+
};
|
|
160
262
|
export const se_ListGraphsCommand = async (input, context) => {
|
|
161
263
|
const b = rb(input, context);
|
|
162
264
|
const headers = {};
|
|
@@ -207,6 +309,32 @@ export const se_ListPrivateGraphEndpointsCommand = async (input, context) => {
|
|
|
207
309
|
b.m("GET").h(headers).q(query).b(body);
|
|
208
310
|
return b.build();
|
|
209
311
|
};
|
|
312
|
+
export const se_ListQueriesCommand = async (input, context) => {
|
|
313
|
+
const b = rb(input, context);
|
|
314
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
315
|
+
[_g]: input[_gI],
|
|
316
|
+
});
|
|
317
|
+
b.bp("/queries");
|
|
318
|
+
const query = map({
|
|
319
|
+
[_mR]: [__expectNonNull(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
|
|
320
|
+
[_s]: [, input[_s]],
|
|
321
|
+
});
|
|
322
|
+
let body;
|
|
323
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
324
|
+
if (context.disableHostPrefix !== true) {
|
|
325
|
+
resolvedHostname = "{graphIdentifier}." + resolvedHostname;
|
|
326
|
+
if (input.graphIdentifier === undefined) {
|
|
327
|
+
throw new Error("Empty value provided for input host prefix: graphIdentifier.");
|
|
328
|
+
}
|
|
329
|
+
resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
|
|
330
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
331
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
b.hn(resolvedHostname);
|
|
335
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
336
|
+
return b.build();
|
|
337
|
+
};
|
|
210
338
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
211
339
|
const b = rb(input, context);
|
|
212
340
|
const headers = {};
|
|
@@ -296,7 +424,7 @@ export const se_UpdateGraphCommand = async (input, context) => {
|
|
|
296
424
|
};
|
|
297
425
|
export const de_CancelImportTaskCommand = async (output, context) => {
|
|
298
426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
299
|
-
return
|
|
427
|
+
return de_CommandError(output, context);
|
|
300
428
|
}
|
|
301
429
|
const contents = map({
|
|
302
430
|
$metadata: deserializeMetadata(output),
|
|
@@ -313,40 +441,19 @@ export const de_CancelImportTaskCommand = async (output, context) => {
|
|
|
313
441
|
Object.assign(contents, doc);
|
|
314
442
|
return contents;
|
|
315
443
|
};
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
body: await parseErrorBody(output.body, context),
|
|
320
|
-
};
|
|
321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
322
|
-
switch (errorCode) {
|
|
323
|
-
case "ConflictException":
|
|
324
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
325
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
326
|
-
case "InternalServerException":
|
|
327
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
328
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
329
|
-
case "ResourceNotFoundException":
|
|
330
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
331
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
332
|
-
case "ThrottlingException":
|
|
333
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
334
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
335
|
-
case "ValidationException":
|
|
336
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
337
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
338
|
-
default:
|
|
339
|
-
const parsedBody = parsedOutput.body;
|
|
340
|
-
return throwDefaultError({
|
|
341
|
-
output,
|
|
342
|
-
parsedBody,
|
|
343
|
-
errorCode,
|
|
344
|
-
});
|
|
444
|
+
export const de_CancelQueryCommand = async (output, context) => {
|
|
445
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
446
|
+
return de_CommandError(output, context);
|
|
345
447
|
}
|
|
448
|
+
const contents = map({
|
|
449
|
+
$metadata: deserializeMetadata(output),
|
|
450
|
+
});
|
|
451
|
+
await collectBody(output.body, context);
|
|
452
|
+
return contents;
|
|
346
453
|
};
|
|
347
454
|
export const de_CreateGraphCommand = async (output, context) => {
|
|
348
455
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
349
|
-
return
|
|
456
|
+
return de_CommandError(output, context);
|
|
350
457
|
}
|
|
351
458
|
const contents = map({
|
|
352
459
|
$metadata: deserializeMetadata(output),
|
|
@@ -372,40 +479,9 @@ export const de_CreateGraphCommand = async (output, context) => {
|
|
|
372
479
|
Object.assign(contents, doc);
|
|
373
480
|
return contents;
|
|
374
481
|
};
|
|
375
|
-
const de_CreateGraphCommandError = async (output, context) => {
|
|
376
|
-
const parsedOutput = {
|
|
377
|
-
...output,
|
|
378
|
-
body: await parseErrorBody(output.body, context),
|
|
379
|
-
};
|
|
380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
|
-
switch (errorCode) {
|
|
382
|
-
case "ConflictException":
|
|
383
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
384
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
385
|
-
case "InternalServerException":
|
|
386
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
387
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
388
|
-
case "ServiceQuotaExceededException":
|
|
389
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
390
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
391
|
-
case "ThrottlingException":
|
|
392
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
393
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
394
|
-
case "ValidationException":
|
|
395
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
396
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
397
|
-
default:
|
|
398
|
-
const parsedBody = parsedOutput.body;
|
|
399
|
-
return throwDefaultError({
|
|
400
|
-
output,
|
|
401
|
-
parsedBody,
|
|
402
|
-
errorCode,
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
482
|
export const de_CreateGraphSnapshotCommand = async (output, context) => {
|
|
407
483
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
408
|
-
return
|
|
484
|
+
return de_CommandError(output, context);
|
|
409
485
|
}
|
|
410
486
|
const contents = map({
|
|
411
487
|
$metadata: deserializeMetadata(output),
|
|
@@ -423,43 +499,9 @@ export const de_CreateGraphSnapshotCommand = async (output, context) => {
|
|
|
423
499
|
Object.assign(contents, doc);
|
|
424
500
|
return contents;
|
|
425
501
|
};
|
|
426
|
-
const de_CreateGraphSnapshotCommandError = async (output, context) => {
|
|
427
|
-
const parsedOutput = {
|
|
428
|
-
...output,
|
|
429
|
-
body: await parseErrorBody(output.body, context),
|
|
430
|
-
};
|
|
431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
432
|
-
switch (errorCode) {
|
|
433
|
-
case "ConflictException":
|
|
434
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
435
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
436
|
-
case "InternalServerException":
|
|
437
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
438
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ResourceNotFoundException":
|
|
440
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
441
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
442
|
-
case "ServiceQuotaExceededException":
|
|
443
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
444
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
445
|
-
case "ThrottlingException":
|
|
446
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
447
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ValidationException":
|
|
449
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
450
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
451
|
-
default:
|
|
452
|
-
const parsedBody = parsedOutput.body;
|
|
453
|
-
return throwDefaultError({
|
|
454
|
-
output,
|
|
455
|
-
parsedBody,
|
|
456
|
-
errorCode,
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
};
|
|
460
502
|
export const de_CreateGraphUsingImportTaskCommand = async (output, context) => {
|
|
461
503
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
462
|
-
return
|
|
504
|
+
return de_CommandError(output, context);
|
|
463
505
|
}
|
|
464
506
|
const contents = map({
|
|
465
507
|
$metadata: deserializeMetadata(output),
|
|
@@ -477,40 +519,9 @@ export const de_CreateGraphUsingImportTaskCommand = async (output, context) => {
|
|
|
477
519
|
Object.assign(contents, doc);
|
|
478
520
|
return contents;
|
|
479
521
|
};
|
|
480
|
-
const de_CreateGraphUsingImportTaskCommandError = async (output, context) => {
|
|
481
|
-
const parsedOutput = {
|
|
482
|
-
...output,
|
|
483
|
-
body: await parseErrorBody(output.body, context),
|
|
484
|
-
};
|
|
485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
-
switch (errorCode) {
|
|
487
|
-
case "ConflictException":
|
|
488
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
489
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
490
|
-
case "InternalServerException":
|
|
491
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
492
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
493
|
-
case "ServiceQuotaExceededException":
|
|
494
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
495
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ThrottlingException":
|
|
497
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
498
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
499
|
-
case "ValidationException":
|
|
500
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
501
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
502
|
-
default:
|
|
503
|
-
const parsedBody = parsedOutput.body;
|
|
504
|
-
return throwDefaultError({
|
|
505
|
-
output,
|
|
506
|
-
parsedBody,
|
|
507
|
-
errorCode,
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
522
|
export const de_CreatePrivateGraphEndpointCommand = async (output, context) => {
|
|
512
523
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
513
|
-
return
|
|
524
|
+
return de_CommandError(output, context);
|
|
514
525
|
}
|
|
515
526
|
const contents = map({
|
|
516
527
|
$metadata: deserializeMetadata(output),
|
|
@@ -525,43 +536,9 @@ export const de_CreatePrivateGraphEndpointCommand = async (output, context) => {
|
|
|
525
536
|
Object.assign(contents, doc);
|
|
526
537
|
return contents;
|
|
527
538
|
};
|
|
528
|
-
const de_CreatePrivateGraphEndpointCommandError = async (output, context) => {
|
|
529
|
-
const parsedOutput = {
|
|
530
|
-
...output,
|
|
531
|
-
body: await parseErrorBody(output.body, context),
|
|
532
|
-
};
|
|
533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
534
|
-
switch (errorCode) {
|
|
535
|
-
case "ConflictException":
|
|
536
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
537
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
538
|
-
case "InternalServerException":
|
|
539
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
540
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
541
|
-
case "ResourceNotFoundException":
|
|
542
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
543
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
544
|
-
case "ServiceQuotaExceededException":
|
|
545
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
546
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
547
|
-
case "ThrottlingException":
|
|
548
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
549
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
550
|
-
case "ValidationException":
|
|
551
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
552
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
553
|
-
default:
|
|
554
|
-
const parsedBody = parsedOutput.body;
|
|
555
|
-
return throwDefaultError({
|
|
556
|
-
output,
|
|
557
|
-
parsedBody,
|
|
558
|
-
errorCode,
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
539
|
export const de_DeleteGraphCommand = async (output, context) => {
|
|
563
540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
564
|
-
return
|
|
541
|
+
return de_CommandError(output, context);
|
|
565
542
|
}
|
|
566
543
|
const contents = map({
|
|
567
544
|
$metadata: deserializeMetadata(output),
|
|
@@ -587,40 +564,9 @@ export const de_DeleteGraphCommand = async (output, context) => {
|
|
|
587
564
|
Object.assign(contents, doc);
|
|
588
565
|
return contents;
|
|
589
566
|
};
|
|
590
|
-
const de_DeleteGraphCommandError = async (output, context) => {
|
|
591
|
-
const parsedOutput = {
|
|
592
|
-
...output,
|
|
593
|
-
body: await parseErrorBody(output.body, context),
|
|
594
|
-
};
|
|
595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
|
-
switch (errorCode) {
|
|
597
|
-
case "ConflictException":
|
|
598
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
599
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
600
|
-
case "InternalServerException":
|
|
601
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ResourceNotFoundException":
|
|
604
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ThrottlingException":
|
|
607
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ValidationException":
|
|
610
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
612
|
-
default:
|
|
613
|
-
const parsedBody = parsedOutput.body;
|
|
614
|
-
return throwDefaultError({
|
|
615
|
-
output,
|
|
616
|
-
parsedBody,
|
|
617
|
-
errorCode,
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
567
|
export const de_DeleteGraphSnapshotCommand = async (output, context) => {
|
|
622
568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
623
|
-
return
|
|
569
|
+
return de_CommandError(output, context);
|
|
624
570
|
}
|
|
625
571
|
const contents = map({
|
|
626
572
|
$metadata: deserializeMetadata(output),
|
|
@@ -638,40 +584,9 @@ export const de_DeleteGraphSnapshotCommand = async (output, context) => {
|
|
|
638
584
|
Object.assign(contents, doc);
|
|
639
585
|
return contents;
|
|
640
586
|
};
|
|
641
|
-
const de_DeleteGraphSnapshotCommandError = async (output, context) => {
|
|
642
|
-
const parsedOutput = {
|
|
643
|
-
...output,
|
|
644
|
-
body: await parseErrorBody(output.body, context),
|
|
645
|
-
};
|
|
646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
|
-
switch (errorCode) {
|
|
648
|
-
case "ConflictException":
|
|
649
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
650
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
651
|
-
case "InternalServerException":
|
|
652
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
653
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
654
|
-
case "ResourceNotFoundException":
|
|
655
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
656
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ThrottlingException":
|
|
658
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
659
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ValidationException":
|
|
661
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
662
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
663
|
-
default:
|
|
664
|
-
const parsedBody = parsedOutput.body;
|
|
665
|
-
return throwDefaultError({
|
|
666
|
-
output,
|
|
667
|
-
parsedBody,
|
|
668
|
-
errorCode,
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
587
|
export const de_DeletePrivateGraphEndpointCommand = async (output, context) => {
|
|
673
588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
674
|
-
return
|
|
589
|
+
return de_CommandError(output, context);
|
|
675
590
|
}
|
|
676
591
|
const contents = map({
|
|
677
592
|
$metadata: deserializeMetadata(output),
|
|
@@ -686,40 +601,21 @@ export const de_DeletePrivateGraphEndpointCommand = async (output, context) => {
|
|
|
686
601
|
Object.assign(contents, doc);
|
|
687
602
|
return contents;
|
|
688
603
|
};
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
body: await parseErrorBody(output.body, context),
|
|
693
|
-
};
|
|
694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
695
|
-
switch (errorCode) {
|
|
696
|
-
case "ConflictException":
|
|
697
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
698
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
699
|
-
case "InternalServerException":
|
|
700
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
701
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
702
|
-
case "ResourceNotFoundException":
|
|
703
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
704
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
705
|
-
case "ThrottlingException":
|
|
706
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
707
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
708
|
-
case "ValidationException":
|
|
709
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
710
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
711
|
-
default:
|
|
712
|
-
const parsedBody = parsedOutput.body;
|
|
713
|
-
return throwDefaultError({
|
|
714
|
-
output,
|
|
715
|
-
parsedBody,
|
|
716
|
-
errorCode,
|
|
717
|
-
});
|
|
604
|
+
export const de_ExecuteQueryCommand = async (output, context) => {
|
|
605
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
606
|
+
return de_CommandError(output, context);
|
|
718
607
|
}
|
|
608
|
+
const contents = map({
|
|
609
|
+
$metadata: deserializeMetadata(output),
|
|
610
|
+
});
|
|
611
|
+
const data = output.body;
|
|
612
|
+
context.sdkStreamMixin(data);
|
|
613
|
+
contents.payload = data;
|
|
614
|
+
return contents;
|
|
719
615
|
};
|
|
720
616
|
export const de_GetGraphCommand = async (output, context) => {
|
|
721
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
|
-
return
|
|
618
|
+
return de_CommandError(output, context);
|
|
723
619
|
}
|
|
724
620
|
const contents = map({
|
|
725
621
|
$metadata: deserializeMetadata(output),
|
|
@@ -745,37 +641,9 @@ export const de_GetGraphCommand = async (output, context) => {
|
|
|
745
641
|
Object.assign(contents, doc);
|
|
746
642
|
return contents;
|
|
747
643
|
};
|
|
748
|
-
const de_GetGraphCommandError = async (output, context) => {
|
|
749
|
-
const parsedOutput = {
|
|
750
|
-
...output,
|
|
751
|
-
body: await parseErrorBody(output.body, context),
|
|
752
|
-
};
|
|
753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
754
|
-
switch (errorCode) {
|
|
755
|
-
case "InternalServerException":
|
|
756
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
757
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
758
|
-
case "ResourceNotFoundException":
|
|
759
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
760
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
761
|
-
case "ThrottlingException":
|
|
762
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
763
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
764
|
-
case "ValidationException":
|
|
765
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
766
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
767
|
-
default:
|
|
768
|
-
const parsedBody = parsedOutput.body;
|
|
769
|
-
return throwDefaultError({
|
|
770
|
-
output,
|
|
771
|
-
parsedBody,
|
|
772
|
-
errorCode,
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
644
|
export const de_GetGraphSnapshotCommand = async (output, context) => {
|
|
777
645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
778
|
-
return
|
|
646
|
+
return de_CommandError(output, context);
|
|
779
647
|
}
|
|
780
648
|
const contents = map({
|
|
781
649
|
$metadata: deserializeMetadata(output),
|
|
@@ -793,37 +661,25 @@ export const de_GetGraphSnapshotCommand = async (output, context) => {
|
|
|
793
661
|
Object.assign(contents, doc);
|
|
794
662
|
return contents;
|
|
795
663
|
};
|
|
796
|
-
const
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
body: await parseErrorBody(output.body, context),
|
|
800
|
-
};
|
|
801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
-
switch (errorCode) {
|
|
803
|
-
case "InternalServerException":
|
|
804
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
805
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
806
|
-
case "ResourceNotFoundException":
|
|
807
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
809
|
-
case "ThrottlingException":
|
|
810
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
811
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
812
|
-
case "ValidationException":
|
|
813
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
814
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
815
|
-
default:
|
|
816
|
-
const parsedBody = parsedOutput.body;
|
|
817
|
-
return throwDefaultError({
|
|
818
|
-
output,
|
|
819
|
-
parsedBody,
|
|
820
|
-
errorCode,
|
|
821
|
-
});
|
|
664
|
+
export const de_GetGraphSummaryCommand = async (output, context) => {
|
|
665
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
666
|
+
return de_CommandError(output, context);
|
|
822
667
|
}
|
|
668
|
+
const contents = map({
|
|
669
|
+
$metadata: deserializeMetadata(output),
|
|
670
|
+
});
|
|
671
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
672
|
+
const doc = take(data, {
|
|
673
|
+
graphSummary: _json,
|
|
674
|
+
lastStatisticsComputationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
675
|
+
version: __expectString,
|
|
676
|
+
});
|
|
677
|
+
Object.assign(contents, doc);
|
|
678
|
+
return contents;
|
|
823
679
|
};
|
|
824
680
|
export const de_GetImportTaskCommand = async (output, context) => {
|
|
825
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
826
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
827
683
|
}
|
|
828
684
|
const contents = map({
|
|
829
685
|
$metadata: deserializeMetadata(output),
|
|
@@ -844,37 +700,9 @@ export const de_GetImportTaskCommand = async (output, context) => {
|
|
|
844
700
|
Object.assign(contents, doc);
|
|
845
701
|
return contents;
|
|
846
702
|
};
|
|
847
|
-
const de_GetImportTaskCommandError = async (output, context) => {
|
|
848
|
-
const parsedOutput = {
|
|
849
|
-
...output,
|
|
850
|
-
body: await parseErrorBody(output.body, context),
|
|
851
|
-
};
|
|
852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
|
-
switch (errorCode) {
|
|
854
|
-
case "InternalServerException":
|
|
855
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
856
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ResourceNotFoundException":
|
|
858
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
860
|
-
case "ThrottlingException":
|
|
861
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
862
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
863
|
-
case "ValidationException":
|
|
864
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
865
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
866
|
-
default:
|
|
867
|
-
const parsedBody = parsedOutput.body;
|
|
868
|
-
return throwDefaultError({
|
|
869
|
-
output,
|
|
870
|
-
parsedBody,
|
|
871
|
-
errorCode,
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
};
|
|
875
703
|
export const de_GetPrivateGraphEndpointCommand = async (output, context) => {
|
|
876
704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
877
|
-
return
|
|
705
|
+
return de_CommandError(output, context);
|
|
878
706
|
}
|
|
879
707
|
const contents = map({
|
|
880
708
|
$metadata: deserializeMetadata(output),
|
|
@@ -889,37 +717,27 @@ export const de_GetPrivateGraphEndpointCommand = async (output, context) => {
|
|
|
889
717
|
Object.assign(contents, doc);
|
|
890
718
|
return contents;
|
|
891
719
|
};
|
|
892
|
-
const
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
body: await parseErrorBody(output.body, context),
|
|
896
|
-
};
|
|
897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
|
-
switch (errorCode) {
|
|
899
|
-
case "InternalServerException":
|
|
900
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
901
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ResourceNotFoundException":
|
|
903
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
904
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ThrottlingException":
|
|
906
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
907
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ValidationException":
|
|
909
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
910
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
911
|
-
default:
|
|
912
|
-
const parsedBody = parsedOutput.body;
|
|
913
|
-
return throwDefaultError({
|
|
914
|
-
output,
|
|
915
|
-
parsedBody,
|
|
916
|
-
errorCode,
|
|
917
|
-
});
|
|
720
|
+
export const de_GetQueryCommand = async (output, context) => {
|
|
721
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
722
|
+
return de_CommandError(output, context);
|
|
918
723
|
}
|
|
724
|
+
const contents = map({
|
|
725
|
+
$metadata: deserializeMetadata(output),
|
|
726
|
+
});
|
|
727
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
728
|
+
const doc = take(data, {
|
|
729
|
+
elapsed: __expectInt32,
|
|
730
|
+
id: __expectString,
|
|
731
|
+
queryString: __expectString,
|
|
732
|
+
state: __expectString,
|
|
733
|
+
waited: __expectInt32,
|
|
734
|
+
});
|
|
735
|
+
Object.assign(contents, doc);
|
|
736
|
+
return contents;
|
|
919
737
|
};
|
|
920
738
|
export const de_ListGraphsCommand = async (output, context) => {
|
|
921
739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
922
|
-
return
|
|
740
|
+
return de_CommandError(output, context);
|
|
923
741
|
}
|
|
924
742
|
const contents = map({
|
|
925
743
|
$metadata: deserializeMetadata(output),
|
|
@@ -932,34 +750,9 @@ export const de_ListGraphsCommand = async (output, context) => {
|
|
|
932
750
|
Object.assign(contents, doc);
|
|
933
751
|
return contents;
|
|
934
752
|
};
|
|
935
|
-
const de_ListGraphsCommandError = async (output, context) => {
|
|
936
|
-
const parsedOutput = {
|
|
937
|
-
...output,
|
|
938
|
-
body: await parseErrorBody(output.body, context),
|
|
939
|
-
};
|
|
940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
|
-
switch (errorCode) {
|
|
942
|
-
case "InternalServerException":
|
|
943
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
944
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ResourceNotFoundException":
|
|
946
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
947
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
948
|
-
case "ThrottlingException":
|
|
949
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
950
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
951
|
-
default:
|
|
952
|
-
const parsedBody = parsedOutput.body;
|
|
953
|
-
return throwDefaultError({
|
|
954
|
-
output,
|
|
955
|
-
parsedBody,
|
|
956
|
-
errorCode,
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
};
|
|
960
753
|
export const de_ListGraphSnapshotsCommand = async (output, context) => {
|
|
961
754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
963
756
|
}
|
|
964
757
|
const contents = map({
|
|
965
758
|
$metadata: deserializeMetadata(output),
|
|
@@ -972,37 +765,9 @@ export const de_ListGraphSnapshotsCommand = async (output, context) => {
|
|
|
972
765
|
Object.assign(contents, doc);
|
|
973
766
|
return contents;
|
|
974
767
|
};
|
|
975
|
-
const de_ListGraphSnapshotsCommandError = async (output, context) => {
|
|
976
|
-
const parsedOutput = {
|
|
977
|
-
...output,
|
|
978
|
-
body: await parseErrorBody(output.body, context),
|
|
979
|
-
};
|
|
980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
-
switch (errorCode) {
|
|
982
|
-
case "InternalServerException":
|
|
983
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
984
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
985
|
-
case "ResourceNotFoundException":
|
|
986
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
987
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
988
|
-
case "ThrottlingException":
|
|
989
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
990
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
991
|
-
case "ValidationException":
|
|
992
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
993
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
994
|
-
default:
|
|
995
|
-
const parsedBody = parsedOutput.body;
|
|
996
|
-
return throwDefaultError({
|
|
997
|
-
output,
|
|
998
|
-
parsedBody,
|
|
999
|
-
errorCode,
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
};
|
|
1003
768
|
export const de_ListImportTasksCommand = async (output, context) => {
|
|
1004
769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1005
|
-
return
|
|
770
|
+
return de_CommandError(output, context);
|
|
1006
771
|
}
|
|
1007
772
|
const contents = map({
|
|
1008
773
|
$metadata: deserializeMetadata(output),
|
|
@@ -1015,37 +780,9 @@ export const de_ListImportTasksCommand = async (output, context) => {
|
|
|
1015
780
|
Object.assign(contents, doc);
|
|
1016
781
|
return contents;
|
|
1017
782
|
};
|
|
1018
|
-
const de_ListImportTasksCommandError = async (output, context) => {
|
|
1019
|
-
const parsedOutput = {
|
|
1020
|
-
...output,
|
|
1021
|
-
body: await parseErrorBody(output.body, context),
|
|
1022
|
-
};
|
|
1023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
|
-
switch (errorCode) {
|
|
1025
|
-
case "InternalServerException":
|
|
1026
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1027
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "ResourceNotFoundException":
|
|
1029
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1030
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ThrottlingException":
|
|
1032
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1033
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "ValidationException":
|
|
1035
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1036
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1037
|
-
default:
|
|
1038
|
-
const parsedBody = parsedOutput.body;
|
|
1039
|
-
return throwDefaultError({
|
|
1040
|
-
output,
|
|
1041
|
-
parsedBody,
|
|
1042
|
-
errorCode,
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
};
|
|
1046
783
|
export const de_ListPrivateGraphEndpointsCommand = async (output, context) => {
|
|
1047
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1048
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
1049
786
|
}
|
|
1050
787
|
const contents = map({
|
|
1051
788
|
$metadata: deserializeMetadata(output),
|
|
@@ -1058,37 +795,23 @@ export const de_ListPrivateGraphEndpointsCommand = async (output, context) => {
|
|
|
1058
795
|
Object.assign(contents, doc);
|
|
1059
796
|
return contents;
|
|
1060
797
|
};
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
body: await parseErrorBody(output.body, context),
|
|
1065
|
-
};
|
|
1066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1067
|
-
switch (errorCode) {
|
|
1068
|
-
case "InternalServerException":
|
|
1069
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1070
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ResourceNotFoundException":
|
|
1072
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ThrottlingException":
|
|
1075
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1076
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "ValidationException":
|
|
1078
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1079
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
798
|
+
export const de_ListQueriesCommand = async (output, context) => {
|
|
799
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
800
|
+
return de_CommandError(output, context);
|
|
1087
801
|
}
|
|
802
|
+
const contents = map({
|
|
803
|
+
$metadata: deserializeMetadata(output),
|
|
804
|
+
});
|
|
805
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
806
|
+
const doc = take(data, {
|
|
807
|
+
queries: _json,
|
|
808
|
+
});
|
|
809
|
+
Object.assign(contents, doc);
|
|
810
|
+
return contents;
|
|
1088
811
|
};
|
|
1089
812
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1090
813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
1092
815
|
}
|
|
1093
816
|
const contents = map({
|
|
1094
817
|
$metadata: deserializeMetadata(output),
|
|
@@ -1100,37 +823,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1100
823
|
Object.assign(contents, doc);
|
|
1101
824
|
return contents;
|
|
1102
825
|
};
|
|
1103
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1104
|
-
const parsedOutput = {
|
|
1105
|
-
...output,
|
|
1106
|
-
body: await parseErrorBody(output.body, context),
|
|
1107
|
-
};
|
|
1108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
|
-
switch (errorCode) {
|
|
1110
|
-
case "InternalServerException":
|
|
1111
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1112
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ResourceNotFoundException":
|
|
1114
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1115
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ThrottlingException":
|
|
1117
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1118
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "ValidationException":
|
|
1120
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1121
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1122
|
-
default:
|
|
1123
|
-
const parsedBody = parsedOutput.body;
|
|
1124
|
-
return throwDefaultError({
|
|
1125
|
-
output,
|
|
1126
|
-
parsedBody,
|
|
1127
|
-
errorCode,
|
|
1128
|
-
});
|
|
1129
|
-
}
|
|
1130
|
-
};
|
|
1131
826
|
export const de_ResetGraphCommand = async (output, context) => {
|
|
1132
827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1133
|
-
return
|
|
828
|
+
return de_CommandError(output, context);
|
|
1134
829
|
}
|
|
1135
830
|
const contents = map({
|
|
1136
831
|
$metadata: deserializeMetadata(output),
|
|
@@ -1156,40 +851,9 @@ export const de_ResetGraphCommand = async (output, context) => {
|
|
|
1156
851
|
Object.assign(contents, doc);
|
|
1157
852
|
return contents;
|
|
1158
853
|
};
|
|
1159
|
-
const de_ResetGraphCommandError = async (output, context) => {
|
|
1160
|
-
const parsedOutput = {
|
|
1161
|
-
...output,
|
|
1162
|
-
body: await parseErrorBody(output.body, context),
|
|
1163
|
-
};
|
|
1164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
|
-
switch (errorCode) {
|
|
1166
|
-
case "ConflictException":
|
|
1167
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1168
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "InternalServerException":
|
|
1170
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1171
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ResourceNotFoundException":
|
|
1173
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1174
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ThrottlingException":
|
|
1176
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1177
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ValidationException":
|
|
1179
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1180
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1181
|
-
default:
|
|
1182
|
-
const parsedBody = parsedOutput.body;
|
|
1183
|
-
return throwDefaultError({
|
|
1184
|
-
output,
|
|
1185
|
-
parsedBody,
|
|
1186
|
-
errorCode,
|
|
1187
|
-
});
|
|
1188
|
-
}
|
|
1189
|
-
};
|
|
1190
854
|
export const de_RestoreGraphFromSnapshotCommand = async (output, context) => {
|
|
1191
855
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1192
|
-
return
|
|
856
|
+
return de_CommandError(output, context);
|
|
1193
857
|
}
|
|
1194
858
|
const contents = map({
|
|
1195
859
|
$metadata: deserializeMetadata(output),
|
|
@@ -1215,43 +879,9 @@ export const de_RestoreGraphFromSnapshotCommand = async (output, context) => {
|
|
|
1215
879
|
Object.assign(contents, doc);
|
|
1216
880
|
return contents;
|
|
1217
881
|
};
|
|
1218
|
-
const de_RestoreGraphFromSnapshotCommandError = async (output, context) => {
|
|
1219
|
-
const parsedOutput = {
|
|
1220
|
-
...output,
|
|
1221
|
-
body: await parseErrorBody(output.body, context),
|
|
1222
|
-
};
|
|
1223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
|
-
switch (errorCode) {
|
|
1225
|
-
case "ConflictException":
|
|
1226
|
-
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1227
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "InternalServerException":
|
|
1229
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1230
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "ResourceNotFoundException":
|
|
1232
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1233
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "ServiceQuotaExceededException":
|
|
1235
|
-
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
1236
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "ThrottlingException":
|
|
1238
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1239
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ValidationException":
|
|
1241
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1242
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1243
|
-
default:
|
|
1244
|
-
const parsedBody = parsedOutput.body;
|
|
1245
|
-
return throwDefaultError({
|
|
1246
|
-
output,
|
|
1247
|
-
parsedBody,
|
|
1248
|
-
errorCode,
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
};
|
|
1252
882
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1253
883
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
884
|
+
return de_CommandError(output, context);
|
|
1255
885
|
}
|
|
1256
886
|
const contents = map({
|
|
1257
887
|
$metadata: deserializeMetadata(output),
|
|
@@ -1259,37 +889,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1259
889
|
await collectBody(output.body, context);
|
|
1260
890
|
return contents;
|
|
1261
891
|
};
|
|
1262
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1263
|
-
const parsedOutput = {
|
|
1264
|
-
...output,
|
|
1265
|
-
body: await parseErrorBody(output.body, context),
|
|
1266
|
-
};
|
|
1267
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
|
-
switch (errorCode) {
|
|
1269
|
-
case "InternalServerException":
|
|
1270
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1271
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "ResourceNotFoundException":
|
|
1273
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1274
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ThrottlingException":
|
|
1276
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1277
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "ValidationException":
|
|
1279
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1280
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1281
|
-
default:
|
|
1282
|
-
const parsedBody = parsedOutput.body;
|
|
1283
|
-
return throwDefaultError({
|
|
1284
|
-
output,
|
|
1285
|
-
parsedBody,
|
|
1286
|
-
errorCode,
|
|
1287
|
-
});
|
|
1288
|
-
}
|
|
1289
|
-
};
|
|
1290
892
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1291
893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1292
|
-
return
|
|
894
|
+
return de_CommandError(output, context);
|
|
1293
895
|
}
|
|
1294
896
|
const contents = map({
|
|
1295
897
|
$metadata: deserializeMetadata(output),
|
|
@@ -1297,37 +899,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1297
899
|
await collectBody(output.body, context);
|
|
1298
900
|
return contents;
|
|
1299
901
|
};
|
|
1300
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1301
|
-
const parsedOutput = {
|
|
1302
|
-
...output,
|
|
1303
|
-
body: await parseErrorBody(output.body, context),
|
|
1304
|
-
};
|
|
1305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
-
switch (errorCode) {
|
|
1307
|
-
case "InternalServerException":
|
|
1308
|
-
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1309
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "ResourceNotFoundException":
|
|
1311
|
-
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1312
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ThrottlingException":
|
|
1314
|
-
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1315
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "ValidationException":
|
|
1317
|
-
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1318
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1319
|
-
default:
|
|
1320
|
-
const parsedBody = parsedOutput.body;
|
|
1321
|
-
return throwDefaultError({
|
|
1322
|
-
output,
|
|
1323
|
-
parsedBody,
|
|
1324
|
-
errorCode,
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
};
|
|
1328
902
|
export const de_UpdateGraphCommand = async (output, context) => {
|
|
1329
903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1330
|
-
return
|
|
904
|
+
return de_CommandError(output, context);
|
|
1331
905
|
}
|
|
1332
906
|
const contents = map({
|
|
1333
907
|
$metadata: deserializeMetadata(output),
|
|
@@ -1353,7 +927,7 @@ export const de_UpdateGraphCommand = async (output, context) => {
|
|
|
1353
927
|
Object.assign(contents, doc);
|
|
1354
928
|
return contents;
|
|
1355
929
|
};
|
|
1356
|
-
const
|
|
930
|
+
const de_CommandError = async (output, context) => {
|
|
1357
931
|
const parsedOutput = {
|
|
1358
932
|
...output,
|
|
1359
933
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1375,6 +949,15 @@ const de_UpdateGraphCommandError = async (output, context) => {
|
|
|
1375
949
|
case "ValidationException":
|
|
1376
950
|
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1377
951
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
952
|
+
case "AccessDeniedException":
|
|
953
|
+
case "com.amazonaws.neptunegraph#AccessDeniedException":
|
|
954
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
955
|
+
case "ServiceQuotaExceededException":
|
|
956
|
+
case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
|
|
957
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
958
|
+
case "UnprocessableException":
|
|
959
|
+
case "com.amazonaws.neptunegraph#UnprocessableException":
|
|
960
|
+
throw await de_UnprocessableExceptionRes(parsedOutput, context);
|
|
1378
961
|
default:
|
|
1379
962
|
const parsedBody = parsedOutput.body;
|
|
1380
963
|
return throwDefaultError({
|
|
@@ -1385,6 +968,19 @@ const de_UpdateGraphCommandError = async (output, context) => {
|
|
|
1385
968
|
}
|
|
1386
969
|
};
|
|
1387
970
|
const throwDefaultError = withBaseException(__BaseException);
|
|
971
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
972
|
+
const contents = map({});
|
|
973
|
+
const data = parsedOutput.body;
|
|
974
|
+
const doc = take(data, {
|
|
975
|
+
message: __expectString,
|
|
976
|
+
});
|
|
977
|
+
Object.assign(contents, doc);
|
|
978
|
+
const exception = new AccessDeniedException({
|
|
979
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
980
|
+
...contents,
|
|
981
|
+
});
|
|
982
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
983
|
+
};
|
|
1388
984
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1389
985
|
const contents = map({});
|
|
1390
986
|
const data = parsedOutput.body;
|
|
@@ -1455,6 +1051,20 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1455
1051
|
});
|
|
1456
1052
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1457
1053
|
};
|
|
1054
|
+
const de_UnprocessableExceptionRes = async (parsedOutput, context) => {
|
|
1055
|
+
const contents = map({});
|
|
1056
|
+
const data = parsedOutput.body;
|
|
1057
|
+
const doc = take(data, {
|
|
1058
|
+
message: __expectString,
|
|
1059
|
+
reason: __expectString,
|
|
1060
|
+
});
|
|
1061
|
+
Object.assign(contents, doc);
|
|
1062
|
+
const exception = new UnprocessableException({
|
|
1063
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1064
|
+
...contents,
|
|
1065
|
+
});
|
|
1066
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1067
|
+
};
|
|
1458
1068
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1459
1069
|
const contents = map({});
|
|
1460
1070
|
const data = parsedOutput.body;
|
|
@@ -1512,9 +1122,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1512
1122
|
value !== "" &&
|
|
1513
1123
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1514
1124
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1125
|
+
const _g = "graphidentifier";
|
|
1515
1126
|
const _gI = "graphIdentifier";
|
|
1127
|
+
const _m = "mode";
|
|
1516
1128
|
const _mR = "maxResults";
|
|
1517
1129
|
const _nT = "nextToken";
|
|
1130
|
+
const _s = "state";
|
|
1518
1131
|
const _sS = "skipSnapshot";
|
|
1519
1132
|
const _tK = "tagKeys";
|
|
1520
1133
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|