@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.
Files changed (69) hide show
  1. package/README.md +43 -3
  2. package/dist-cjs/commands/CancelQueryCommand.js +1 -0
  3. package/dist-cjs/commands/ExecuteQueryCommand.js +1 -0
  4. package/dist-cjs/commands/GetGraphSummaryCommand.js +1 -0
  5. package/dist-cjs/commands/GetQueryCommand.js +1 -0
  6. package/dist-cjs/commands/ListQueriesCommand.js +1 -0
  7. package/dist-cjs/index.js +511 -698
  8. package/dist-cjs/runtimeConfig.shared.js +2 -0
  9. package/dist-es/NeptuneGraph.js +10 -0
  10. package/dist-es/commands/CancelQueryCommand.js +25 -0
  11. package/dist-es/commands/ExecuteQueryCommand.js +26 -0
  12. package/dist-es/commands/GetGraphSummaryCommand.js +25 -0
  13. package/dist-es/commands/GetQueryCommand.js +25 -0
  14. package/dist-es/commands/ListQueriesCommand.js +25 -0
  15. package/dist-es/commands/index.js +5 -0
  16. package/dist-es/models/models_0.js +91 -29
  17. package/dist-es/protocols/Aws_restJson1.js +252 -639
  18. package/dist-es/runtimeConfig.shared.js +2 -0
  19. package/dist-types/NeptuneGraph.d.ts +38 -3
  20. package/dist-types/NeptuneGraphClient.d.ts +16 -6
  21. package/dist-types/commands/CancelImportTaskCommand.d.ts +2 -2
  22. package/dist-types/commands/CancelQueryCommand.d.ts +72 -0
  23. package/dist-types/commands/CreateGraphCommand.d.ts +1 -1
  24. package/dist-types/commands/CreateGraphSnapshotCommand.d.ts +1 -1
  25. package/dist-types/commands/CreateGraphUsingImportTaskCommand.d.ts +1 -1
  26. package/dist-types/commands/CreatePrivateGraphEndpointCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteGraphCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteGraphSnapshotCommand.d.ts +1 -1
  29. package/dist-types/commands/DeletePrivateGraphEndpointCommand.d.ts +1 -1
  30. package/dist-types/commands/ExecuteQueryCommand.d.ts +90 -0
  31. package/dist-types/commands/GetGraphCommand.d.ts +1 -1
  32. package/dist-types/commands/GetGraphSnapshotCommand.d.ts +1 -1
  33. package/dist-types/commands/GetGraphSummaryCommand.d.ts +120 -0
  34. package/dist-types/commands/GetImportTaskCommand.d.ts +1 -1
  35. package/dist-types/commands/GetPrivateGraphEndpointCommand.d.ts +1 -1
  36. package/dist-types/commands/GetQueryCommand.d.ts +78 -0
  37. package/dist-types/commands/ListGraphSnapshotsCommand.d.ts +1 -1
  38. package/dist-types/commands/ListImportTasksCommand.d.ts +1 -1
  39. package/dist-types/commands/ListPrivateGraphEndpointsCommand.d.ts +1 -1
  40. package/dist-types/commands/ListQueriesCommand.d.ts +80 -0
  41. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  42. package/dist-types/commands/ResetGraphCommand.d.ts +1 -1
  43. package/dist-types/commands/RestoreGraphFromSnapshotCommand.d.ts +1 -1
  44. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  45. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  46. package/dist-types/commands/UpdateGraphCommand.d.ts +1 -1
  47. package/dist-types/commands/index.d.ts +5 -0
  48. package/dist-types/index.d.ts +3 -3
  49. package/dist-types/models/models_0.d.ts +522 -78
  50. package/dist-types/protocols/Aws_restJson1.d.ts +46 -1
  51. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  52. package/dist-types/runtimeConfig.d.ts +1 -0
  53. package/dist-types/runtimeConfig.native.d.ts +1 -0
  54. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  55. package/dist-types/ts3.4/NeptuneGraph.d.ts +85 -0
  56. package/dist-types/ts3.4/NeptuneGraphClient.d.ts +32 -0
  57. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +24 -0
  58. package/dist-types/ts3.4/commands/ExecuteQueryCommand.d.ts +34 -0
  59. package/dist-types/ts3.4/commands/GetGraphSummaryCommand.d.ts +29 -0
  60. package/dist-types/ts3.4/commands/GetQueryCommand.d.ts +26 -0
  61. package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +26 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  63. package/dist-types/ts3.4/models/models_0.d.ts +182 -44
  64. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +64 -1
  65. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  66. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  67. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  68. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  69. package/package.json +4 -3
package/dist-cjs/index.js CHANGED
@@ -21,7 +21,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/index.ts
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
24
25
  CancelImportTaskCommand: () => CancelImportTaskCommand,
26
+ CancelQueryCommand: () => CancelQueryCommand,
25
27
  ConflictException: () => ConflictException,
26
28
  ConflictExceptionReason: () => ConflictExceptionReason,
27
29
  CreateGraphCommand: () => CreateGraphCommand,
@@ -31,12 +33,18 @@ __export(src_exports, {
31
33
  DeleteGraphCommand: () => DeleteGraphCommand,
32
34
  DeleteGraphSnapshotCommand: () => DeleteGraphSnapshotCommand,
33
35
  DeletePrivateGraphEndpointCommand: () => DeletePrivateGraphEndpointCommand,
36
+ ExecuteQueryCommand: () => ExecuteQueryCommand,
37
+ ExecuteQueryOutputFilterSensitiveLog: () => ExecuteQueryOutputFilterSensitiveLog,
38
+ ExplainMode: () => ExplainMode,
34
39
  Format: () => Format,
35
40
  GetGraphCommand: () => GetGraphCommand,
36
41
  GetGraphSnapshotCommand: () => GetGraphSnapshotCommand,
42
+ GetGraphSummaryCommand: () => GetGraphSummaryCommand,
37
43
  GetImportTaskCommand: () => GetImportTaskCommand,
38
44
  GetPrivateGraphEndpointCommand: () => GetPrivateGraphEndpointCommand,
45
+ GetQueryCommand: () => GetQueryCommand,
39
46
  GraphStatus: () => GraphStatus,
47
+ GraphSummaryMode: () => GraphSummaryMode,
40
48
  ImportOptions: () => ImportOptions,
41
49
  ImportTaskStatus: () => ImportTaskStatus,
42
50
  InternalServerException: () => InternalServerException,
@@ -44,11 +52,16 @@ __export(src_exports, {
44
52
  ListGraphsCommand: () => ListGraphsCommand,
45
53
  ListImportTasksCommand: () => ListImportTasksCommand,
46
54
  ListPrivateGraphEndpointsCommand: () => ListPrivateGraphEndpointsCommand,
55
+ ListQueriesCommand: () => ListQueriesCommand,
47
56
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
48
57
  NeptuneGraph: () => NeptuneGraph,
49
58
  NeptuneGraphClient: () => NeptuneGraphClient,
50
59
  NeptuneGraphServiceException: () => NeptuneGraphServiceException,
60
+ PlanCacheType: () => PlanCacheType,
51
61
  PrivateGraphEndpointStatus: () => PrivateGraphEndpointStatus,
62
+ QueryLanguage: () => QueryLanguage,
63
+ QueryState: () => QueryState,
64
+ QueryStateInput: () => QueryStateInput,
52
65
  ResetGraphCommand: () => ResetGraphCommand,
53
66
  ResourceNotFoundException: () => ResourceNotFoundException,
54
67
  RestoreGraphFromSnapshotCommand: () => RestoreGraphFromSnapshotCommand,
@@ -56,6 +69,8 @@ __export(src_exports, {
56
69
  SnapshotStatus: () => SnapshotStatus,
57
70
  TagResourceCommand: () => TagResourceCommand,
58
71
  ThrottlingException: () => ThrottlingException,
72
+ UnprocessableException: () => UnprocessableException,
73
+ UnprocessableExceptionReason: () => UnprocessableExceptionReason,
59
74
  UntagResourceCommand: () => UntagResourceCommand,
60
75
  UpdateGraphCommand: () => UpdateGraphCommand,
61
76
  ValidationException: () => ValidationException,
@@ -183,6 +198,7 @@ var import_core = require("@aws-sdk/core");
183
198
  var import_core2 = require("@smithy/core");
184
199
 
185
200
 
201
+
186
202
  // src/models/NeptuneGraphServiceException.ts
187
203
 
188
204
  var _NeptuneGraphServiceException = class _NeptuneGraphServiceException extends import_smithy_client.ServiceException {
@@ -198,36 +214,23 @@ __name(_NeptuneGraphServiceException, "NeptuneGraphServiceException");
198
214
  var NeptuneGraphServiceException = _NeptuneGraphServiceException;
199
215
 
200
216
  // src/models/models_0.ts
201
- var ConflictExceptionReason = {
202
- CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION"
203
- };
204
- var _ConflictException = class _ConflictException extends NeptuneGraphServiceException {
217
+ var _AccessDeniedException = class _AccessDeniedException extends NeptuneGraphServiceException {
205
218
  /**
206
219
  * @internal
207
220
  */
208
221
  constructor(opts) {
209
222
  super({
210
- name: "ConflictException",
223
+ name: "AccessDeniedException",
211
224
  $fault: "client",
212
225
  ...opts
213
226
  });
214
- this.name = "ConflictException";
227
+ this.name = "AccessDeniedException";
215
228
  this.$fault = "client";
216
- Object.setPrototypeOf(this, _ConflictException.prototype);
217
- this.reason = opts.reason;
229
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
218
230
  }
219
231
  };
220
- __name(_ConflictException, "ConflictException");
221
- var ConflictException = _ConflictException;
222
- var GraphStatus = {
223
- AVAILABLE: "AVAILABLE",
224
- CREATING: "CREATING",
225
- DELETING: "DELETING",
226
- FAILED: "FAILED",
227
- RESETTING: "RESETTING",
228
- SNAPSHOTTING: "SNAPSHOTTING",
229
- UPDATING: "UPDATING"
230
- };
232
+ __name(_AccessDeniedException, "AccessDeniedException");
233
+ var AccessDeniedException = _AccessDeniedException;
231
234
  var _InternalServerException = class _InternalServerException extends NeptuneGraphServiceException {
232
235
  /**
233
236
  * @internal
@@ -246,27 +249,23 @@ var _InternalServerException = class _InternalServerException extends NeptuneGra
246
249
  };
247
250
  __name(_InternalServerException, "InternalServerException");
248
251
  var InternalServerException = _InternalServerException;
249
- var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NeptuneGraphServiceException {
252
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends NeptuneGraphServiceException {
250
253
  /**
251
254
  * @internal
252
255
  */
253
256
  constructor(opts) {
254
257
  super({
255
- name: "ServiceQuotaExceededException",
258
+ name: "ResourceNotFoundException",
256
259
  $fault: "client",
257
260
  ...opts
258
261
  });
259
- this.name = "ServiceQuotaExceededException";
262
+ this.name = "ResourceNotFoundException";
260
263
  this.$fault = "client";
261
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
262
- this.resourceId = opts.resourceId;
263
- this.resourceType = opts.resourceType;
264
- this.serviceCode = opts.serviceCode;
265
- this.quotaCode = opts.quotaCode;
264
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
266
265
  }
267
266
  };
268
- __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
269
- var ServiceQuotaExceededException = _ServiceQuotaExceededException;
267
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
268
+ var ResourceNotFoundException = _ResourceNotFoundException;
270
269
  var _ThrottlingException = class _ThrottlingException extends NeptuneGraphServiceException {
271
270
  /**
272
271
  * @internal
@@ -314,23 +313,109 @@ var _ValidationException = class _ValidationException extends NeptuneGraphServic
314
313
  };
315
314
  __name(_ValidationException, "ValidationException");
316
315
  var ValidationException = _ValidationException;
317
- var _ResourceNotFoundException = class _ResourceNotFoundException extends NeptuneGraphServiceException {
316
+ var ConflictExceptionReason = {
317
+ CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION"
318
+ };
319
+ var _ConflictException = class _ConflictException extends NeptuneGraphServiceException {
318
320
  /**
319
321
  * @internal
320
322
  */
321
323
  constructor(opts) {
322
324
  super({
323
- name: "ResourceNotFoundException",
325
+ name: "ConflictException",
324
326
  $fault: "client",
325
327
  ...opts
326
328
  });
327
- this.name = "ResourceNotFoundException";
329
+ this.name = "ConflictException";
328
330
  this.$fault = "client";
329
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
331
+ Object.setPrototypeOf(this, _ConflictException.prototype);
332
+ this.reason = opts.reason;
330
333
  }
331
334
  };
332
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
333
- var ResourceNotFoundException = _ResourceNotFoundException;
335
+ __name(_ConflictException, "ConflictException");
336
+ var ConflictException = _ConflictException;
337
+ var ExplainMode = {
338
+ DETAILS: "DETAILS",
339
+ STATIC: "STATIC"
340
+ };
341
+ var QueryLanguage = {
342
+ OPEN_CYPHER: "OPEN_CYPHER"
343
+ };
344
+ var PlanCacheType = {
345
+ AUTO: "AUTO",
346
+ DISABLED: "DISABLED",
347
+ ENABLED: "ENABLED"
348
+ };
349
+ var UnprocessableExceptionReason = {
350
+ INTERNAL_LIMIT_EXCEEDED: "INTERNAL_LIMIT_EXCEEDED",
351
+ MEMORY_LIMIT_EXCEEDED: "MEMORY_LIMIT_EXCEEDED",
352
+ PARTITION_FULL: "PARTITION_FULL",
353
+ QUERY_TIMEOUT: "QUERY_TIMEOUT",
354
+ STORAGE_LIMIT_EXCEEDED: "STORAGE_LIMIT_EXCEEDED"
355
+ };
356
+ var _UnprocessableException = class _UnprocessableException extends NeptuneGraphServiceException {
357
+ /**
358
+ * @internal
359
+ */
360
+ constructor(opts) {
361
+ super({
362
+ name: "UnprocessableException",
363
+ $fault: "client",
364
+ ...opts
365
+ });
366
+ this.name = "UnprocessableException";
367
+ this.$fault = "client";
368
+ Object.setPrototypeOf(this, _UnprocessableException.prototype);
369
+ this.reason = opts.reason;
370
+ }
371
+ };
372
+ __name(_UnprocessableException, "UnprocessableException");
373
+ var UnprocessableException = _UnprocessableException;
374
+ var GraphSummaryMode = {
375
+ BASIC: "BASIC",
376
+ DETAILED: "DETAILED"
377
+ };
378
+ var QueryState = {
379
+ CANCELLING: "CANCELLING",
380
+ RUNNING: "RUNNING",
381
+ WAITING: "WAITING"
382
+ };
383
+ var GraphStatus = {
384
+ AVAILABLE: "AVAILABLE",
385
+ CREATING: "CREATING",
386
+ DELETING: "DELETING",
387
+ FAILED: "FAILED",
388
+ RESETTING: "RESETTING",
389
+ SNAPSHOTTING: "SNAPSHOTTING",
390
+ UPDATING: "UPDATING"
391
+ };
392
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NeptuneGraphServiceException {
393
+ /**
394
+ * @internal
395
+ */
396
+ constructor(opts) {
397
+ super({
398
+ name: "ServiceQuotaExceededException",
399
+ $fault: "client",
400
+ ...opts
401
+ });
402
+ this.name = "ServiceQuotaExceededException";
403
+ this.$fault = "client";
404
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
405
+ this.resourceId = opts.resourceId;
406
+ this.resourceType = opts.resourceType;
407
+ this.serviceCode = opts.serviceCode;
408
+ this.quotaCode = opts.quotaCode;
409
+ }
410
+ };
411
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
412
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
413
+ var QueryStateInput = {
414
+ ALL: "ALL",
415
+ CANCELLING: "CANCELLING",
416
+ RUNNING: "RUNNING",
417
+ WAITING: "WAITING"
418
+ };
334
419
  var PrivateGraphEndpointStatus = {
335
420
  AVAILABLE: "AVAILABLE",
336
421
  CREATING: "CREATING",
@@ -367,6 +452,9 @@ var ImportOptions;
367
452
  return visitor._(value.$unknown[0], value.$unknown[1]);
368
453
  }, "visit");
369
454
  })(ImportOptions || (ImportOptions = {}));
455
+ var ExecuteQueryOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
456
+ ...obj
457
+ }), "ExecuteQueryOutputFilterSensitiveLog");
370
458
 
371
459
  // src/protocols/Aws_restJson1.ts
372
460
  var se_CancelImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -378,6 +466,29 @@ var se_CancelImportTaskCommand = /* @__PURE__ */ __name(async (input, context) =
378
466
  b.m("DELETE").h(headers).b(body);
379
467
  return b.build();
380
468
  }, "se_CancelImportTaskCommand");
469
+ var se_CancelQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
470
+ const b = (0, import_core2.requestBuilder)(input, context);
471
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
472
+ [_g]: input[_gI]
473
+ });
474
+ b.bp("/queries/{queryId}");
475
+ b.p("queryId", () => input.queryId, "{queryId}", false);
476
+ let body;
477
+ let { hostname: resolvedHostname } = await context.endpoint();
478
+ if (context.disableHostPrefix !== true) {
479
+ resolvedHostname = "{graphIdentifier}." + resolvedHostname;
480
+ if (input.graphIdentifier === void 0) {
481
+ throw new Error("Empty value provided for input host prefix: graphIdentifier.");
482
+ }
483
+ resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
484
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
485
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
486
+ }
487
+ }
488
+ b.hn(resolvedHostname);
489
+ b.m("DELETE").h(headers).b(body);
490
+ return b.build();
491
+ }, "se_CancelQueryCommand");
381
492
  var se_CreateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
382
493
  const b = (0, import_core2.requestBuilder)(input, context);
383
494
  const headers = {
@@ -494,6 +605,38 @@ var se_DeletePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input,
494
605
  b.m("DELETE").h(headers).b(body);
495
606
  return b.build();
496
607
  }, "se_DeletePrivateGraphEndpointCommand");
608
+ var se_ExecuteQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
609
+ const b = (0, import_core2.requestBuilder)(input, context);
610
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
611
+ "content-type": "application/json",
612
+ [_g]: input[_gI]
613
+ });
614
+ b.bp("/queries");
615
+ let body;
616
+ body = JSON.stringify(
617
+ (0, import_smithy_client.take)(input, {
618
+ explain: [, , `explainMode`],
619
+ language: [],
620
+ planCache: [],
621
+ query: [, , `queryString`],
622
+ queryTimeoutMilliseconds: []
623
+ })
624
+ );
625
+ let { hostname: resolvedHostname } = await context.endpoint();
626
+ if (context.disableHostPrefix !== true) {
627
+ resolvedHostname = "{graphIdentifier}." + resolvedHostname;
628
+ if (input.graphIdentifier === void 0) {
629
+ throw new Error("Empty value provided for input host prefix: graphIdentifier.");
630
+ }
631
+ resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
632
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
633
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
634
+ }
635
+ }
636
+ b.hn(resolvedHostname);
637
+ b.m("POST").h(headers).b(body);
638
+ return b.build();
639
+ }, "se_ExecuteQueryCommand");
497
640
  var se_GetGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
498
641
  const b = (0, import_core2.requestBuilder)(input, context);
499
642
  const headers = {};
@@ -512,6 +655,31 @@ var se_GetGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context) =
512
655
  b.m("GET").h(headers).b(body);
513
656
  return b.build();
514
657
  }, "se_GetGraphSnapshotCommand");
658
+ var se_GetGraphSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
659
+ const b = (0, import_core2.requestBuilder)(input, context);
660
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
661
+ [_g]: input[_gI]
662
+ });
663
+ b.bp("/summary");
664
+ const query = (0, import_smithy_client.map)({
665
+ [_m]: [, input[_m]]
666
+ });
667
+ let body;
668
+ let { hostname: resolvedHostname } = await context.endpoint();
669
+ if (context.disableHostPrefix !== true) {
670
+ resolvedHostname = "{graphIdentifier}." + resolvedHostname;
671
+ if (input.graphIdentifier === void 0) {
672
+ throw new Error("Empty value provided for input host prefix: graphIdentifier.");
673
+ }
674
+ resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
675
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
676
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
677
+ }
678
+ }
679
+ b.hn(resolvedHostname);
680
+ b.m("GET").h(headers).q(query).b(body);
681
+ return b.build();
682
+ }, "se_GetGraphSummaryCommand");
515
683
  var se_GetImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
516
684
  const b = (0, import_core2.requestBuilder)(input, context);
517
685
  const headers = {};
@@ -531,6 +699,29 @@ var se_GetPrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input, con
531
699
  b.m("GET").h(headers).b(body);
532
700
  return b.build();
533
701
  }, "se_GetPrivateGraphEndpointCommand");
702
+ var se_GetQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
703
+ const b = (0, import_core2.requestBuilder)(input, context);
704
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
705
+ [_g]: input[_gI]
706
+ });
707
+ b.bp("/queries/{queryId}");
708
+ b.p("queryId", () => input.queryId, "{queryId}", false);
709
+ let body;
710
+ let { hostname: resolvedHostname } = await context.endpoint();
711
+ if (context.disableHostPrefix !== true) {
712
+ resolvedHostname = "{graphIdentifier}." + resolvedHostname;
713
+ if (input.graphIdentifier === void 0) {
714
+ throw new Error("Empty value provided for input host prefix: graphIdentifier.");
715
+ }
716
+ resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
717
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
718
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
719
+ }
720
+ }
721
+ b.hn(resolvedHostname);
722
+ b.m("GET").h(headers).b(body);
723
+ return b.build();
724
+ }, "se_GetQueryCommand");
534
725
  var se_ListGraphsCommand = /* @__PURE__ */ __name(async (input, context) => {
535
726
  const b = (0, import_core2.requestBuilder)(input, context);
536
727
  const headers = {};
@@ -581,6 +772,32 @@ var se_ListPrivateGraphEndpointsCommand = /* @__PURE__ */ __name(async (input, c
581
772
  b.m("GET").h(headers).q(query).b(body);
582
773
  return b.build();
583
774
  }, "se_ListPrivateGraphEndpointsCommand");
775
+ var se_ListQueriesCommand = /* @__PURE__ */ __name(async (input, context) => {
776
+ const b = (0, import_core2.requestBuilder)(input, context);
777
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
778
+ [_g]: input[_gI]
779
+ });
780
+ b.bp("/queries");
781
+ const query = (0, import_smithy_client.map)({
782
+ [_mR]: [(0, import_smithy_client.expectNonNull)(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
783
+ [_s]: [, input[_s]]
784
+ });
785
+ let body;
786
+ let { hostname: resolvedHostname } = await context.endpoint();
787
+ if (context.disableHostPrefix !== true) {
788
+ resolvedHostname = "{graphIdentifier}." + resolvedHostname;
789
+ if (input.graphIdentifier === void 0) {
790
+ throw new Error("Empty value provided for input host prefix: graphIdentifier.");
791
+ }
792
+ resolvedHostname = resolvedHostname.replace("{graphIdentifier}", input.graphIdentifier);
793
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
794
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
795
+ }
796
+ }
797
+ b.hn(resolvedHostname);
798
+ b.m("GET").h(headers).q(query).b(body);
799
+ return b.build();
800
+ }, "se_ListQueriesCommand");
584
801
  var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
585
802
  const b = (0, import_core2.requestBuilder)(input, context);
586
803
  const headers = {};
@@ -678,7 +895,7 @@ var se_UpdateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
678
895
  }, "se_UpdateGraphCommand");
679
896
  var de_CancelImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
680
897
  if (output.statusCode !== 200 && output.statusCode >= 300) {
681
- return de_CancelImportTaskCommandError(output, context);
898
+ return de_CommandError(output, context);
682
899
  }
683
900
  const contents = (0, import_smithy_client.map)({
684
901
  $metadata: deserializeMetadata(output)
@@ -695,40 +912,19 @@ var de_CancelImportTaskCommand = /* @__PURE__ */ __name(async (output, context)
695
912
  Object.assign(contents, doc);
696
913
  return contents;
697
914
  }, "de_CancelImportTaskCommand");
698
- var de_CancelImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
699
- const parsedOutput = {
700
- ...output,
701
- body: await parseErrorBody(output.body, context)
702
- };
703
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
704
- switch (errorCode) {
705
- case "ConflictException":
706
- case "com.amazonaws.neptunegraph#ConflictException":
707
- throw await de_ConflictExceptionRes(parsedOutput, context);
708
- case "InternalServerException":
709
- case "com.amazonaws.neptunegraph#InternalServerException":
710
- throw await de_InternalServerExceptionRes(parsedOutput, context);
711
- case "ResourceNotFoundException":
712
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
713
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
714
- case "ThrottlingException":
715
- case "com.amazonaws.neptunegraph#ThrottlingException":
716
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
717
- case "ValidationException":
718
- case "com.amazonaws.neptunegraph#ValidationException":
719
- throw await de_ValidationExceptionRes(parsedOutput, context);
720
- default:
721
- const parsedBody = parsedOutput.body;
722
- return throwDefaultError({
723
- output,
724
- parsedBody,
725
- errorCode
726
- });
915
+ var de_CancelQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
916
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
917
+ return de_CommandError(output, context);
727
918
  }
728
- }, "de_CancelImportTaskCommandError");
919
+ const contents = (0, import_smithy_client.map)({
920
+ $metadata: deserializeMetadata(output)
921
+ });
922
+ await (0, import_smithy_client.collectBody)(output.body, context);
923
+ return contents;
924
+ }, "de_CancelQueryCommand");
729
925
  var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
730
926
  if (output.statusCode !== 201 && output.statusCode >= 300) {
731
- return de_CreateGraphCommandError(output, context);
927
+ return de_CommandError(output, context);
732
928
  }
733
929
  const contents = (0, import_smithy_client.map)({
734
930
  $metadata: deserializeMetadata(output)
@@ -754,40 +950,9 @@ var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
754
950
  Object.assign(contents, doc);
755
951
  return contents;
756
952
  }, "de_CreateGraphCommand");
757
- var de_CreateGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
758
- const parsedOutput = {
759
- ...output,
760
- body: await parseErrorBody(output.body, context)
761
- };
762
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
763
- switch (errorCode) {
764
- case "ConflictException":
765
- case "com.amazonaws.neptunegraph#ConflictException":
766
- throw await de_ConflictExceptionRes(parsedOutput, context);
767
- case "InternalServerException":
768
- case "com.amazonaws.neptunegraph#InternalServerException":
769
- throw await de_InternalServerExceptionRes(parsedOutput, context);
770
- case "ServiceQuotaExceededException":
771
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
772
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
773
- case "ThrottlingException":
774
- case "com.amazonaws.neptunegraph#ThrottlingException":
775
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
776
- case "ValidationException":
777
- case "com.amazonaws.neptunegraph#ValidationException":
778
- throw await de_ValidationExceptionRes(parsedOutput, context);
779
- default:
780
- const parsedBody = parsedOutput.body;
781
- return throwDefaultError({
782
- output,
783
- parsedBody,
784
- errorCode
785
- });
786
- }
787
- }, "de_CreateGraphCommandError");
788
953
  var de_CreateGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
789
954
  if (output.statusCode !== 201 && output.statusCode >= 300) {
790
- return de_CreateGraphSnapshotCommandError(output, context);
955
+ return de_CommandError(output, context);
791
956
  }
792
957
  const contents = (0, import_smithy_client.map)({
793
958
  $metadata: deserializeMetadata(output)
@@ -805,43 +970,9 @@ var de_CreateGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, contex
805
970
  Object.assign(contents, doc);
806
971
  return contents;
807
972
  }, "de_CreateGraphSnapshotCommand");
808
- var de_CreateGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
809
- const parsedOutput = {
810
- ...output,
811
- body: await parseErrorBody(output.body, context)
812
- };
813
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
814
- switch (errorCode) {
815
- case "ConflictException":
816
- case "com.amazonaws.neptunegraph#ConflictException":
817
- throw await de_ConflictExceptionRes(parsedOutput, context);
818
- case "InternalServerException":
819
- case "com.amazonaws.neptunegraph#InternalServerException":
820
- throw await de_InternalServerExceptionRes(parsedOutput, context);
821
- case "ResourceNotFoundException":
822
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
823
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
824
- case "ServiceQuotaExceededException":
825
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
826
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
827
- case "ThrottlingException":
828
- case "com.amazonaws.neptunegraph#ThrottlingException":
829
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
830
- case "ValidationException":
831
- case "com.amazonaws.neptunegraph#ValidationException":
832
- throw await de_ValidationExceptionRes(parsedOutput, context);
833
- default:
834
- const parsedBody = parsedOutput.body;
835
- return throwDefaultError({
836
- output,
837
- parsedBody,
838
- errorCode
839
- });
840
- }
841
- }, "de_CreateGraphSnapshotCommandError");
842
973
  var de_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
843
974
  if (output.statusCode !== 201 && output.statusCode >= 300) {
844
- return de_CreateGraphUsingImportTaskCommandError(output, context);
975
+ return de_CommandError(output, context);
845
976
  }
846
977
  const contents = (0, import_smithy_client.map)({
847
978
  $metadata: deserializeMetadata(output)
@@ -859,40 +990,9 @@ var de_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (output,
859
990
  Object.assign(contents, doc);
860
991
  return contents;
861
992
  }, "de_CreateGraphUsingImportTaskCommand");
862
- var de_CreateGraphUsingImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
863
- const parsedOutput = {
864
- ...output,
865
- body: await parseErrorBody(output.body, context)
866
- };
867
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
868
- switch (errorCode) {
869
- case "ConflictException":
870
- case "com.amazonaws.neptunegraph#ConflictException":
871
- throw await de_ConflictExceptionRes(parsedOutput, context);
872
- case "InternalServerException":
873
- case "com.amazonaws.neptunegraph#InternalServerException":
874
- throw await de_InternalServerExceptionRes(parsedOutput, context);
875
- case "ServiceQuotaExceededException":
876
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
877
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
878
- case "ThrottlingException":
879
- case "com.amazonaws.neptunegraph#ThrottlingException":
880
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
881
- case "ValidationException":
882
- case "com.amazonaws.neptunegraph#ValidationException":
883
- throw await de_ValidationExceptionRes(parsedOutput, context);
884
- default:
885
- const parsedBody = parsedOutput.body;
886
- return throwDefaultError({
887
- output,
888
- parsedBody,
889
- errorCode
890
- });
891
- }
892
- }, "de_CreateGraphUsingImportTaskCommandError");
893
993
  var de_CreatePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
894
994
  if (output.statusCode !== 201 && output.statusCode >= 300) {
895
- return de_CreatePrivateGraphEndpointCommandError(output, context);
995
+ return de_CommandError(output, context);
896
996
  }
897
997
  const contents = (0, import_smithy_client.map)({
898
998
  $metadata: deserializeMetadata(output)
@@ -907,43 +1007,9 @@ var de_CreatePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output,
907
1007
  Object.assign(contents, doc);
908
1008
  return contents;
909
1009
  }, "de_CreatePrivateGraphEndpointCommand");
910
- var de_CreatePrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
911
- const parsedOutput = {
912
- ...output,
913
- body: await parseErrorBody(output.body, context)
914
- };
915
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
916
- switch (errorCode) {
917
- case "ConflictException":
918
- case "com.amazonaws.neptunegraph#ConflictException":
919
- throw await de_ConflictExceptionRes(parsedOutput, context);
920
- case "InternalServerException":
921
- case "com.amazonaws.neptunegraph#InternalServerException":
922
- throw await de_InternalServerExceptionRes(parsedOutput, context);
923
- case "ResourceNotFoundException":
924
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
925
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
926
- case "ServiceQuotaExceededException":
927
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
928
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
929
- case "ThrottlingException":
930
- case "com.amazonaws.neptunegraph#ThrottlingException":
931
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
932
- case "ValidationException":
933
- case "com.amazonaws.neptunegraph#ValidationException":
934
- throw await de_ValidationExceptionRes(parsedOutput, context);
935
- default:
936
- const parsedBody = parsedOutput.body;
937
- return throwDefaultError({
938
- output,
939
- parsedBody,
940
- errorCode
941
- });
942
- }
943
- }, "de_CreatePrivateGraphEndpointCommandError");
944
1010
  var de_DeleteGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
945
1011
  if (output.statusCode !== 200 && output.statusCode >= 300) {
946
- return de_DeleteGraphCommandError(output, context);
1012
+ return de_CommandError(output, context);
947
1013
  }
948
1014
  const contents = (0, import_smithy_client.map)({
949
1015
  $metadata: deserializeMetadata(output)
@@ -969,40 +1035,9 @@ var de_DeleteGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
969
1035
  Object.assign(contents, doc);
970
1036
  return contents;
971
1037
  }, "de_DeleteGraphCommand");
972
- var de_DeleteGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
973
- const parsedOutput = {
974
- ...output,
975
- body: await parseErrorBody(output.body, context)
976
- };
977
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
978
- switch (errorCode) {
979
- case "ConflictException":
980
- case "com.amazonaws.neptunegraph#ConflictException":
981
- throw await de_ConflictExceptionRes(parsedOutput, context);
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
- }, "de_DeleteGraphCommandError");
1003
1038
  var de_DeleteGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1004
1039
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1005
- return de_DeleteGraphSnapshotCommandError(output, context);
1040
+ return de_CommandError(output, context);
1006
1041
  }
1007
1042
  const contents = (0, import_smithy_client.map)({
1008
1043
  $metadata: deserializeMetadata(output)
@@ -1020,40 +1055,9 @@ var de_DeleteGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, contex
1020
1055
  Object.assign(contents, doc);
1021
1056
  return contents;
1022
1057
  }, "de_DeleteGraphSnapshotCommand");
1023
- var de_DeleteGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
1024
- const parsedOutput = {
1025
- ...output,
1026
- body: await parseErrorBody(output.body, context)
1027
- };
1028
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1029
- switch (errorCode) {
1030
- case "ConflictException":
1031
- case "com.amazonaws.neptunegraph#ConflictException":
1032
- throw await de_ConflictExceptionRes(parsedOutput, context);
1033
- case "InternalServerException":
1034
- case "com.amazonaws.neptunegraph#InternalServerException":
1035
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1036
- case "ResourceNotFoundException":
1037
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1038
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1039
- case "ThrottlingException":
1040
- case "com.amazonaws.neptunegraph#ThrottlingException":
1041
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1042
- case "ValidationException":
1043
- case "com.amazonaws.neptunegraph#ValidationException":
1044
- throw await de_ValidationExceptionRes(parsedOutput, context);
1045
- default:
1046
- const parsedBody = parsedOutput.body;
1047
- return throwDefaultError({
1048
- output,
1049
- parsedBody,
1050
- errorCode
1051
- });
1052
- }
1053
- }, "de_DeleteGraphSnapshotCommandError");
1054
1058
  var de_DeletePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1055
1059
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1056
- return de_DeletePrivateGraphEndpointCommandError(output, context);
1060
+ return de_CommandError(output, context);
1057
1061
  }
1058
1062
  const contents = (0, import_smithy_client.map)({
1059
1063
  $metadata: deserializeMetadata(output)
@@ -1068,40 +1072,21 @@ var de_DeletePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output,
1068
1072
  Object.assign(contents, doc);
1069
1073
  return contents;
1070
1074
  }, "de_DeletePrivateGraphEndpointCommand");
1071
- var de_DeletePrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1072
- const parsedOutput = {
1073
- ...output,
1074
- body: await parseErrorBody(output.body, context)
1075
- };
1076
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1077
- switch (errorCode) {
1078
- case "ConflictException":
1079
- case "com.amazonaws.neptunegraph#ConflictException":
1080
- throw await de_ConflictExceptionRes(parsedOutput, context);
1081
- case "InternalServerException":
1082
- case "com.amazonaws.neptunegraph#InternalServerException":
1083
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1084
- case "ResourceNotFoundException":
1085
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1086
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1087
- case "ThrottlingException":
1088
- case "com.amazonaws.neptunegraph#ThrottlingException":
1089
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1090
- case "ValidationException":
1091
- case "com.amazonaws.neptunegraph#ValidationException":
1092
- throw await de_ValidationExceptionRes(parsedOutput, context);
1093
- default:
1094
- const parsedBody = parsedOutput.body;
1095
- return throwDefaultError({
1096
- output,
1097
- parsedBody,
1098
- errorCode
1099
- });
1075
+ var de_ExecuteQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
1076
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1077
+ return de_CommandError(output, context);
1100
1078
  }
1101
- }, "de_DeletePrivateGraphEndpointCommandError");
1079
+ const contents = (0, import_smithy_client.map)({
1080
+ $metadata: deserializeMetadata(output)
1081
+ });
1082
+ const data = output.body;
1083
+ context.sdkStreamMixin(data);
1084
+ contents.payload = data;
1085
+ return contents;
1086
+ }, "de_ExecuteQueryCommand");
1102
1087
  var de_GetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1103
1088
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1104
- return de_GetGraphCommandError(output, context);
1089
+ return de_CommandError(output, context);
1105
1090
  }
1106
1091
  const contents = (0, import_smithy_client.map)({
1107
1092
  $metadata: deserializeMetadata(output)
@@ -1127,37 +1112,9 @@ var de_GetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1127
1112
  Object.assign(contents, doc);
1128
1113
  return contents;
1129
1114
  }, "de_GetGraphCommand");
1130
- var de_GetGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1131
- const parsedOutput = {
1132
- ...output,
1133
- body: await parseErrorBody(output.body, context)
1134
- };
1135
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1136
- switch (errorCode) {
1137
- case "InternalServerException":
1138
- case "com.amazonaws.neptunegraph#InternalServerException":
1139
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1140
- case "ResourceNotFoundException":
1141
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1142
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1143
- case "ThrottlingException":
1144
- case "com.amazonaws.neptunegraph#ThrottlingException":
1145
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1146
- case "ValidationException":
1147
- case "com.amazonaws.neptunegraph#ValidationException":
1148
- throw await de_ValidationExceptionRes(parsedOutput, context);
1149
- default:
1150
- const parsedBody = parsedOutput.body;
1151
- return throwDefaultError({
1152
- output,
1153
- parsedBody,
1154
- errorCode
1155
- });
1156
- }
1157
- }, "de_GetGraphCommandError");
1158
1115
  var de_GetGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1159
1116
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1160
- return de_GetGraphSnapshotCommandError(output, context);
1117
+ return de_CommandError(output, context);
1161
1118
  }
1162
1119
  const contents = (0, import_smithy_client.map)({
1163
1120
  $metadata: deserializeMetadata(output)
@@ -1175,37 +1132,25 @@ var de_GetGraphSnapshotCommand = /* @__PURE__ */ __name(async (output, context)
1175
1132
  Object.assign(contents, doc);
1176
1133
  return contents;
1177
1134
  }, "de_GetGraphSnapshotCommand");
1178
- var de_GetGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
1179
- const parsedOutput = {
1180
- ...output,
1181
- body: await parseErrorBody(output.body, context)
1182
- };
1183
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1184
- switch (errorCode) {
1185
- case "InternalServerException":
1186
- case "com.amazonaws.neptunegraph#InternalServerException":
1187
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1188
- case "ResourceNotFoundException":
1189
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1190
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1191
- case "ThrottlingException":
1192
- case "com.amazonaws.neptunegraph#ThrottlingException":
1193
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1194
- case "ValidationException":
1195
- case "com.amazonaws.neptunegraph#ValidationException":
1196
- throw await de_ValidationExceptionRes(parsedOutput, context);
1197
- default:
1198
- const parsedBody = parsedOutput.body;
1199
- return throwDefaultError({
1200
- output,
1201
- parsedBody,
1202
- errorCode
1203
- });
1135
+ var de_GetGraphSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
1136
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1137
+ return de_CommandError(output, context);
1204
1138
  }
1205
- }, "de_GetGraphSnapshotCommandError");
1139
+ const contents = (0, import_smithy_client.map)({
1140
+ $metadata: deserializeMetadata(output)
1141
+ });
1142
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1143
+ const doc = (0, import_smithy_client.take)(data, {
1144
+ graphSummary: import_smithy_client._json,
1145
+ lastStatisticsComputationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1146
+ version: import_smithy_client.expectString
1147
+ });
1148
+ Object.assign(contents, doc);
1149
+ return contents;
1150
+ }, "de_GetGraphSummaryCommand");
1206
1151
  var de_GetImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1207
1152
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1208
- return de_GetImportTaskCommandError(output, context);
1153
+ return de_CommandError(output, context);
1209
1154
  }
1210
1155
  const contents = (0, import_smithy_client.map)({
1211
1156
  $metadata: deserializeMetadata(output)
@@ -1226,37 +1171,9 @@ var de_GetImportTaskCommand = /* @__PURE__ */ __name(async (output, context) =>
1226
1171
  Object.assign(contents, doc);
1227
1172
  return contents;
1228
1173
  }, "de_GetImportTaskCommand");
1229
- var de_GetImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1230
- const parsedOutput = {
1231
- ...output,
1232
- body: await parseErrorBody(output.body, context)
1233
- };
1234
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1235
- switch (errorCode) {
1236
- case "InternalServerException":
1237
- case "com.amazonaws.neptunegraph#InternalServerException":
1238
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1239
- case "ResourceNotFoundException":
1240
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1241
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1242
- case "ThrottlingException":
1243
- case "com.amazonaws.neptunegraph#ThrottlingException":
1244
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1245
- case "ValidationException":
1246
- case "com.amazonaws.neptunegraph#ValidationException":
1247
- throw await de_ValidationExceptionRes(parsedOutput, context);
1248
- default:
1249
- const parsedBody = parsedOutput.body;
1250
- return throwDefaultError({
1251
- output,
1252
- parsedBody,
1253
- errorCode
1254
- });
1255
- }
1256
- }, "de_GetImportTaskCommandError");
1257
1174
  var de_GetPrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1258
1175
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1259
- return de_GetPrivateGraphEndpointCommandError(output, context);
1176
+ return de_CommandError(output, context);
1260
1177
  }
1261
1178
  const contents = (0, import_smithy_client.map)({
1262
1179
  $metadata: deserializeMetadata(output)
@@ -1271,37 +1188,27 @@ var de_GetPrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (output, co
1271
1188
  Object.assign(contents, doc);
1272
1189
  return contents;
1273
1190
  }, "de_GetPrivateGraphEndpointCommand");
1274
- var de_GetPrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1275
- const parsedOutput = {
1276
- ...output,
1277
- body: await parseErrorBody(output.body, context)
1278
- };
1279
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1280
- switch (errorCode) {
1281
- case "InternalServerException":
1282
- case "com.amazonaws.neptunegraph#InternalServerException":
1283
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1284
- case "ResourceNotFoundException":
1285
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1286
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1287
- case "ThrottlingException":
1288
- case "com.amazonaws.neptunegraph#ThrottlingException":
1289
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1290
- case "ValidationException":
1291
- case "com.amazonaws.neptunegraph#ValidationException":
1292
- throw await de_ValidationExceptionRes(parsedOutput, context);
1293
- default:
1294
- const parsedBody = parsedOutput.body;
1295
- return throwDefaultError({
1296
- output,
1297
- parsedBody,
1298
- errorCode
1299
- });
1191
+ var de_GetQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
1192
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1193
+ return de_CommandError(output, context);
1300
1194
  }
1301
- }, "de_GetPrivateGraphEndpointCommandError");
1195
+ const contents = (0, import_smithy_client.map)({
1196
+ $metadata: deserializeMetadata(output)
1197
+ });
1198
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1199
+ const doc = (0, import_smithy_client.take)(data, {
1200
+ elapsed: import_smithy_client.expectInt32,
1201
+ id: import_smithy_client.expectString,
1202
+ queryString: import_smithy_client.expectString,
1203
+ state: import_smithy_client.expectString,
1204
+ waited: import_smithy_client.expectInt32
1205
+ });
1206
+ Object.assign(contents, doc);
1207
+ return contents;
1208
+ }, "de_GetQueryCommand");
1302
1209
  var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {
1303
1210
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1304
- return de_ListGraphsCommandError(output, context);
1211
+ return de_CommandError(output, context);
1305
1212
  }
1306
1213
  const contents = (0, import_smithy_client.map)({
1307
1214
  $metadata: deserializeMetadata(output)
@@ -1314,34 +1221,9 @@ var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {
1314
1221
  Object.assign(contents, doc);
1315
1222
  return contents;
1316
1223
  }, "de_ListGraphsCommand");
1317
- var de_ListGraphsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1318
- const parsedOutput = {
1319
- ...output,
1320
- body: await parseErrorBody(output.body, context)
1321
- };
1322
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1323
- switch (errorCode) {
1324
- case "InternalServerException":
1325
- case "com.amazonaws.neptunegraph#InternalServerException":
1326
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1327
- case "ResourceNotFoundException":
1328
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1329
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1330
- case "ThrottlingException":
1331
- case "com.amazonaws.neptunegraph#ThrottlingException":
1332
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1333
- default:
1334
- const parsedBody = parsedOutput.body;
1335
- return throwDefaultError({
1336
- output,
1337
- parsedBody,
1338
- errorCode
1339
- });
1340
- }
1341
- }, "de_ListGraphsCommandError");
1342
1224
  var de_ListGraphSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
1343
1225
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1344
- return de_ListGraphSnapshotsCommandError(output, context);
1226
+ return de_CommandError(output, context);
1345
1227
  }
1346
1228
  const contents = (0, import_smithy_client.map)({
1347
1229
  $metadata: deserializeMetadata(output)
@@ -1354,37 +1236,9 @@ var de_ListGraphSnapshotsCommand = /* @__PURE__ */ __name(async (output, context
1354
1236
  Object.assign(contents, doc);
1355
1237
  return contents;
1356
1238
  }, "de_ListGraphSnapshotsCommand");
1357
- var de_ListGraphSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1358
- const parsedOutput = {
1359
- ...output,
1360
- body: await parseErrorBody(output.body, context)
1361
- };
1362
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1363
- switch (errorCode) {
1364
- case "InternalServerException":
1365
- case "com.amazonaws.neptunegraph#InternalServerException":
1366
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1367
- case "ResourceNotFoundException":
1368
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1369
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1370
- case "ThrottlingException":
1371
- case "com.amazonaws.neptunegraph#ThrottlingException":
1372
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1373
- case "ValidationException":
1374
- case "com.amazonaws.neptunegraph#ValidationException":
1375
- throw await de_ValidationExceptionRes(parsedOutput, context);
1376
- default:
1377
- const parsedBody = parsedOutput.body;
1378
- return throwDefaultError({
1379
- output,
1380
- parsedBody,
1381
- errorCode
1382
- });
1383
- }
1384
- }, "de_ListGraphSnapshotsCommandError");
1385
1239
  var de_ListImportTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1386
1240
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1387
- return de_ListImportTasksCommandError(output, context);
1241
+ return de_CommandError(output, context);
1388
1242
  }
1389
1243
  const contents = (0, import_smithy_client.map)({
1390
1244
  $metadata: deserializeMetadata(output)
@@ -1397,80 +1251,38 @@ var de_ListImportTasksCommand = /* @__PURE__ */ __name(async (output, context) =
1397
1251
  Object.assign(contents, doc);
1398
1252
  return contents;
1399
1253
  }, "de_ListImportTasksCommand");
1400
- var de_ListImportTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1401
- const parsedOutput = {
1402
- ...output,
1403
- body: await parseErrorBody(output.body, context)
1404
- };
1405
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1406
- switch (errorCode) {
1407
- case "InternalServerException":
1408
- case "com.amazonaws.neptunegraph#InternalServerException":
1409
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1410
- case "ResourceNotFoundException":
1411
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1412
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1413
- case "ThrottlingException":
1414
- case "com.amazonaws.neptunegraph#ThrottlingException":
1415
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1416
- case "ValidationException":
1417
- case "com.amazonaws.neptunegraph#ValidationException":
1418
- throw await de_ValidationExceptionRes(parsedOutput, context);
1419
- default:
1420
- const parsedBody = parsedOutput.body;
1421
- return throwDefaultError({
1422
- output,
1423
- parsedBody,
1424
- errorCode
1425
- });
1426
- }
1427
- }, "de_ListImportTasksCommandError");
1428
- var de_ListPrivateGraphEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
1429
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1430
- return de_ListPrivateGraphEndpointsCommandError(output, context);
1431
- }
1432
- const contents = (0, import_smithy_client.map)({
1433
- $metadata: deserializeMetadata(output)
1434
- });
1435
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1436
- const doc = (0, import_smithy_client.take)(data, {
1437
- nextToken: import_smithy_client.expectString,
1438
- privateGraphEndpoints: import_smithy_client._json
1439
- });
1440
- Object.assign(contents, doc);
1441
- return contents;
1442
- }, "de_ListPrivateGraphEndpointsCommand");
1443
- var de_ListPrivateGraphEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1444
- const parsedOutput = {
1445
- ...output,
1446
- body: await parseErrorBody(output.body, context)
1447
- };
1448
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1449
- switch (errorCode) {
1450
- case "InternalServerException":
1451
- case "com.amazonaws.neptunegraph#InternalServerException":
1452
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1453
- case "ResourceNotFoundException":
1454
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1455
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1456
- case "ThrottlingException":
1457
- case "com.amazonaws.neptunegraph#ThrottlingException":
1458
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1459
- case "ValidationException":
1460
- case "com.amazonaws.neptunegraph#ValidationException":
1461
- throw await de_ValidationExceptionRes(parsedOutput, context);
1462
- default:
1463
- const parsedBody = parsedOutput.body;
1464
- return throwDefaultError({
1465
- output,
1466
- parsedBody,
1467
- errorCode
1468
- });
1254
+ var de_ListPrivateGraphEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
1255
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1256
+ return de_CommandError(output, context);
1257
+ }
1258
+ const contents = (0, import_smithy_client.map)({
1259
+ $metadata: deserializeMetadata(output)
1260
+ });
1261
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1262
+ const doc = (0, import_smithy_client.take)(data, {
1263
+ nextToken: import_smithy_client.expectString,
1264
+ privateGraphEndpoints: import_smithy_client._json
1265
+ });
1266
+ Object.assign(contents, doc);
1267
+ return contents;
1268
+ }, "de_ListPrivateGraphEndpointsCommand");
1269
+ var de_ListQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
1270
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1271
+ return de_CommandError(output, context);
1469
1272
  }
1470
- }, "de_ListPrivateGraphEndpointsCommandError");
1273
+ const contents = (0, import_smithy_client.map)({
1274
+ $metadata: deserializeMetadata(output)
1275
+ });
1276
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1277
+ const doc = (0, import_smithy_client.take)(data, {
1278
+ queries: import_smithy_client._json
1279
+ });
1280
+ Object.assign(contents, doc);
1281
+ return contents;
1282
+ }, "de_ListQueriesCommand");
1471
1283
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1472
1284
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1473
- return de_ListTagsForResourceCommandError(output, context);
1285
+ return de_CommandError(output, context);
1474
1286
  }
1475
1287
  const contents = (0, import_smithy_client.map)({
1476
1288
  $metadata: deserializeMetadata(output)
@@ -1482,37 +1294,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1482
1294
  Object.assign(contents, doc);
1483
1295
  return contents;
1484
1296
  }, "de_ListTagsForResourceCommand");
1485
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1486
- const parsedOutput = {
1487
- ...output,
1488
- body: await parseErrorBody(output.body, context)
1489
- };
1490
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1491
- switch (errorCode) {
1492
- case "InternalServerException":
1493
- case "com.amazonaws.neptunegraph#InternalServerException":
1494
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1495
- case "ResourceNotFoundException":
1496
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1497
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1498
- case "ThrottlingException":
1499
- case "com.amazonaws.neptunegraph#ThrottlingException":
1500
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1501
- case "ValidationException":
1502
- case "com.amazonaws.neptunegraph#ValidationException":
1503
- throw await de_ValidationExceptionRes(parsedOutput, context);
1504
- default:
1505
- const parsedBody = parsedOutput.body;
1506
- return throwDefaultError({
1507
- output,
1508
- parsedBody,
1509
- errorCode
1510
- });
1511
- }
1512
- }, "de_ListTagsForResourceCommandError");
1513
1297
  var de_ResetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1514
1298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1515
- return de_ResetGraphCommandError(output, context);
1299
+ return de_CommandError(output, context);
1516
1300
  }
1517
1301
  const contents = (0, import_smithy_client.map)({
1518
1302
  $metadata: deserializeMetadata(output)
@@ -1538,40 +1322,9 @@ var de_ResetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1538
1322
  Object.assign(contents, doc);
1539
1323
  return contents;
1540
1324
  }, "de_ResetGraphCommand");
1541
- var de_ResetGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1542
- const parsedOutput = {
1543
- ...output,
1544
- body: await parseErrorBody(output.body, context)
1545
- };
1546
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1547
- switch (errorCode) {
1548
- case "ConflictException":
1549
- case "com.amazonaws.neptunegraph#ConflictException":
1550
- throw await de_ConflictExceptionRes(parsedOutput, context);
1551
- case "InternalServerException":
1552
- case "com.amazonaws.neptunegraph#InternalServerException":
1553
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1554
- case "ResourceNotFoundException":
1555
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1556
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1557
- case "ThrottlingException":
1558
- case "com.amazonaws.neptunegraph#ThrottlingException":
1559
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1560
- case "ValidationException":
1561
- case "com.amazonaws.neptunegraph#ValidationException":
1562
- throw await de_ValidationExceptionRes(parsedOutput, context);
1563
- default:
1564
- const parsedBody = parsedOutput.body;
1565
- return throwDefaultError({
1566
- output,
1567
- parsedBody,
1568
- errorCode
1569
- });
1570
- }
1571
- }, "de_ResetGraphCommandError");
1572
1325
  var de_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1573
1326
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1574
- return de_RestoreGraphFromSnapshotCommandError(output, context);
1327
+ return de_CommandError(output, context);
1575
1328
  }
1576
1329
  const contents = (0, import_smithy_client.map)({
1577
1330
  $metadata: deserializeMetadata(output)
@@ -1597,43 +1350,9 @@ var de_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (output, c
1597
1350
  Object.assign(contents, doc);
1598
1351
  return contents;
1599
1352
  }, "de_RestoreGraphFromSnapshotCommand");
1600
- var de_RestoreGraphFromSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
1601
- const parsedOutput = {
1602
- ...output,
1603
- body: await parseErrorBody(output.body, context)
1604
- };
1605
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1606
- switch (errorCode) {
1607
- case "ConflictException":
1608
- case "com.amazonaws.neptunegraph#ConflictException":
1609
- throw await de_ConflictExceptionRes(parsedOutput, context);
1610
- case "InternalServerException":
1611
- case "com.amazonaws.neptunegraph#InternalServerException":
1612
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1613
- case "ResourceNotFoundException":
1614
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1615
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1616
- case "ServiceQuotaExceededException":
1617
- case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
1618
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1619
- case "ThrottlingException":
1620
- case "com.amazonaws.neptunegraph#ThrottlingException":
1621
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1622
- case "ValidationException":
1623
- case "com.amazonaws.neptunegraph#ValidationException":
1624
- throw await de_ValidationExceptionRes(parsedOutput, context);
1625
- default:
1626
- const parsedBody = parsedOutput.body;
1627
- return throwDefaultError({
1628
- output,
1629
- parsedBody,
1630
- errorCode
1631
- });
1632
- }
1633
- }, "de_RestoreGraphFromSnapshotCommandError");
1634
1353
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1635
1354
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1636
- return de_TagResourceCommandError(output, context);
1355
+ return de_CommandError(output, context);
1637
1356
  }
1638
1357
  const contents = (0, import_smithy_client.map)({
1639
1358
  $metadata: deserializeMetadata(output)
@@ -1641,37 +1360,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1641
1360
  await (0, import_smithy_client.collectBody)(output.body, context);
1642
1361
  return contents;
1643
1362
  }, "de_TagResourceCommand");
1644
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1645
- const parsedOutput = {
1646
- ...output,
1647
- body: await parseErrorBody(output.body, context)
1648
- };
1649
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1650
- switch (errorCode) {
1651
- case "InternalServerException":
1652
- case "com.amazonaws.neptunegraph#InternalServerException":
1653
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1654
- case "ResourceNotFoundException":
1655
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1656
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1657
- case "ThrottlingException":
1658
- case "com.amazonaws.neptunegraph#ThrottlingException":
1659
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1660
- case "ValidationException":
1661
- case "com.amazonaws.neptunegraph#ValidationException":
1662
- throw await de_ValidationExceptionRes(parsedOutput, context);
1663
- default:
1664
- const parsedBody = parsedOutput.body;
1665
- return throwDefaultError({
1666
- output,
1667
- parsedBody,
1668
- errorCode
1669
- });
1670
- }
1671
- }, "de_TagResourceCommandError");
1672
1363
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1673
1364
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1674
- return de_UntagResourceCommandError(output, context);
1365
+ return de_CommandError(output, context);
1675
1366
  }
1676
1367
  const contents = (0, import_smithy_client.map)({
1677
1368
  $metadata: deserializeMetadata(output)
@@ -1679,37 +1370,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1679
1370
  await (0, import_smithy_client.collectBody)(output.body, context);
1680
1371
  return contents;
1681
1372
  }, "de_UntagResourceCommand");
1682
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1683
- const parsedOutput = {
1684
- ...output,
1685
- body: await parseErrorBody(output.body, context)
1686
- };
1687
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1688
- switch (errorCode) {
1689
- case "InternalServerException":
1690
- case "com.amazonaws.neptunegraph#InternalServerException":
1691
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1692
- case "ResourceNotFoundException":
1693
- case "com.amazonaws.neptunegraph#ResourceNotFoundException":
1694
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1695
- case "ThrottlingException":
1696
- case "com.amazonaws.neptunegraph#ThrottlingException":
1697
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1698
- case "ValidationException":
1699
- case "com.amazonaws.neptunegraph#ValidationException":
1700
- throw await de_ValidationExceptionRes(parsedOutput, context);
1701
- default:
1702
- const parsedBody = parsedOutput.body;
1703
- return throwDefaultError({
1704
- output,
1705
- parsedBody,
1706
- errorCode
1707
- });
1708
- }
1709
- }, "de_UntagResourceCommandError");
1710
1373
  var de_UpdateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1711
1374
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1712
- return de_UpdateGraphCommandError(output, context);
1375
+ return de_CommandError(output, context);
1713
1376
  }
1714
1377
  const contents = (0, import_smithy_client.map)({
1715
1378
  $metadata: deserializeMetadata(output)
@@ -1735,7 +1398,7 @@ var de_UpdateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1735
1398
  Object.assign(contents, doc);
1736
1399
  return contents;
1737
1400
  }, "de_UpdateGraphCommand");
1738
- var de_UpdateGraphCommandError = /* @__PURE__ */ __name(async (output, context) => {
1401
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1739
1402
  const parsedOutput = {
1740
1403
  ...output,
1741
1404
  body: await parseErrorBody(output.body, context)
@@ -1757,6 +1420,15 @@ var de_UpdateGraphCommandError = /* @__PURE__ */ __name(async (output, context)
1757
1420
  case "ValidationException":
1758
1421
  case "com.amazonaws.neptunegraph#ValidationException":
1759
1422
  throw await de_ValidationExceptionRes(parsedOutput, context);
1423
+ case "AccessDeniedException":
1424
+ case "com.amazonaws.neptunegraph#AccessDeniedException":
1425
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1426
+ case "ServiceQuotaExceededException":
1427
+ case "com.amazonaws.neptunegraph#ServiceQuotaExceededException":
1428
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1429
+ case "UnprocessableException":
1430
+ case "com.amazonaws.neptunegraph#UnprocessableException":
1431
+ throw await de_UnprocessableExceptionRes(parsedOutput, context);
1760
1432
  default:
1761
1433
  const parsedBody = parsedOutput.body;
1762
1434
  return throwDefaultError({
@@ -1765,8 +1437,21 @@ var de_UpdateGraphCommandError = /* @__PURE__ */ __name(async (output, context)
1765
1437
  errorCode
1766
1438
  });
1767
1439
  }
1768
- }, "de_UpdateGraphCommandError");
1440
+ }, "de_CommandError");
1769
1441
  var throwDefaultError = (0, import_smithy_client.withBaseException)(NeptuneGraphServiceException);
1442
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1443
+ const contents = (0, import_smithy_client.map)({});
1444
+ const data = parsedOutput.body;
1445
+ const doc = (0, import_smithy_client.take)(data, {
1446
+ message: import_smithy_client.expectString
1447
+ });
1448
+ Object.assign(contents, doc);
1449
+ const exception = new AccessDeniedException({
1450
+ $metadata: deserializeMetadata(parsedOutput),
1451
+ ...contents
1452
+ });
1453
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1454
+ }, "de_AccessDeniedExceptionRes");
1770
1455
  var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1771
1456
  const contents = (0, import_smithy_client.map)({});
1772
1457
  const data = parsedOutput.body;
@@ -1837,6 +1522,20 @@ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
1837
1522
  });
1838
1523
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1839
1524
  }, "de_ThrottlingExceptionRes");
1525
+ var de_UnprocessableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1526
+ const contents = (0, import_smithy_client.map)({});
1527
+ const data = parsedOutput.body;
1528
+ const doc = (0, import_smithy_client.take)(data, {
1529
+ message: import_smithy_client.expectString,
1530
+ reason: import_smithy_client.expectString
1531
+ });
1532
+ Object.assign(contents, doc);
1533
+ const exception = new UnprocessableException({
1534
+ $metadata: deserializeMetadata(parsedOutput),
1535
+ ...contents
1536
+ });
1537
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1538
+ }, "de_UnprocessableExceptionRes");
1840
1539
  var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1841
1540
  const contents = (0, import_smithy_client.map)({});
1842
1541
  const data = parsedOutput.body;
@@ -1887,9 +1586,13 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1887
1586
  cfId: output.headers["x-amz-cf-id"]
1888
1587
  }), "deserializeMetadata");
1889
1588
  var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1589
+ var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
1590
+ var _g = "graphidentifier";
1890
1591
  var _gI = "graphIdentifier";
1592
+ var _m = "mode";
1891
1593
  var _mR = "maxResults";
1892
1594
  var _nT = "nextToken";
1595
+ var _s = "state";
1893
1596
  var _sS = "skipSnapshot";
1894
1597
  var _tK = "tagKeys";
1895
1598
  var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
@@ -1947,6 +1650,24 @@ var _CancelImportTaskCommand = class _CancelImportTaskCommand extends import_smi
1947
1650
  __name(_CancelImportTaskCommand, "CancelImportTaskCommand");
1948
1651
  var CancelImportTaskCommand = _CancelImportTaskCommand;
1949
1652
 
1653
+ // src/commands/CancelQueryCommand.ts
1654
+
1655
+
1656
+
1657
+
1658
+ var _CancelQueryCommand = class _CancelQueryCommand extends import_smithy_client.Command.classBuilder().ep({
1659
+ ...commonParams,
1660
+ ApiType: { type: "staticContextParams", value: `DataPlane` }
1661
+ }).m(function(Command, cs, config, o) {
1662
+ return [
1663
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1664
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1665
+ ];
1666
+ }).s("AmazonNeptuneGraph", "CancelQuery", {}).n("NeptuneGraphClient", "CancelQueryCommand").f(void 0, void 0).ser(se_CancelQueryCommand).de(de_CancelQueryCommand).build() {
1667
+ };
1668
+ __name(_CancelQueryCommand, "CancelQueryCommand");
1669
+ var CancelQueryCommand = _CancelQueryCommand;
1670
+
1950
1671
  // src/commands/CreateGraphCommand.ts
1951
1672
 
1952
1673
 
@@ -2073,6 +1794,24 @@ var _DeletePrivateGraphEndpointCommand = class _DeletePrivateGraphEndpointComman
2073
1794
  __name(_DeletePrivateGraphEndpointCommand, "DeletePrivateGraphEndpointCommand");
2074
1795
  var DeletePrivateGraphEndpointCommand = _DeletePrivateGraphEndpointCommand;
2075
1796
 
1797
+ // src/commands/ExecuteQueryCommand.ts
1798
+
1799
+
1800
+
1801
+
1802
+ var _ExecuteQueryCommand = class _ExecuteQueryCommand extends import_smithy_client.Command.classBuilder().ep({
1803
+ ...commonParams,
1804
+ ApiType: { type: "staticContextParams", value: `DataPlane` }
1805
+ }).m(function(Command, cs, config, o) {
1806
+ return [
1807
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1808
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1809
+ ];
1810
+ }).s("AmazonNeptuneGraph", "ExecuteQuery", {}).n("NeptuneGraphClient", "ExecuteQueryCommand").f(void 0, ExecuteQueryOutputFilterSensitiveLog).ser(se_ExecuteQueryCommand).de(de_ExecuteQueryCommand).build() {
1811
+ };
1812
+ __name(_ExecuteQueryCommand, "ExecuteQueryCommand");
1813
+ var ExecuteQueryCommand = _ExecuteQueryCommand;
1814
+
2076
1815
  // src/commands/GetGraphCommand.ts
2077
1816
 
2078
1817
 
@@ -2109,6 +1848,24 @@ var _GetGraphSnapshotCommand = class _GetGraphSnapshotCommand extends import_smi
2109
1848
  __name(_GetGraphSnapshotCommand, "GetGraphSnapshotCommand");
2110
1849
  var GetGraphSnapshotCommand = _GetGraphSnapshotCommand;
2111
1850
 
1851
+ // src/commands/GetGraphSummaryCommand.ts
1852
+
1853
+
1854
+
1855
+
1856
+ var _GetGraphSummaryCommand = class _GetGraphSummaryCommand extends import_smithy_client.Command.classBuilder().ep({
1857
+ ...commonParams,
1858
+ ApiType: { type: "staticContextParams", value: `DataPlane` }
1859
+ }).m(function(Command, cs, config, o) {
1860
+ return [
1861
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1862
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1863
+ ];
1864
+ }).s("AmazonNeptuneGraph", "GetGraphSummary", {}).n("NeptuneGraphClient", "GetGraphSummaryCommand").f(void 0, void 0).ser(se_GetGraphSummaryCommand).de(de_GetGraphSummaryCommand).build() {
1865
+ };
1866
+ __name(_GetGraphSummaryCommand, "GetGraphSummaryCommand");
1867
+ var GetGraphSummaryCommand = _GetGraphSummaryCommand;
1868
+
2112
1869
  // src/commands/GetImportTaskCommand.ts
2113
1870
 
2114
1871
 
@@ -2145,6 +1902,24 @@ var _GetPrivateGraphEndpointCommand = class _GetPrivateGraphEndpointCommand exte
2145
1902
  __name(_GetPrivateGraphEndpointCommand, "GetPrivateGraphEndpointCommand");
2146
1903
  var GetPrivateGraphEndpointCommand = _GetPrivateGraphEndpointCommand;
2147
1904
 
1905
+ // src/commands/GetQueryCommand.ts
1906
+
1907
+
1908
+
1909
+
1910
+ var _GetQueryCommand = class _GetQueryCommand extends import_smithy_client.Command.classBuilder().ep({
1911
+ ...commonParams,
1912
+ ApiType: { type: "staticContextParams", value: `DataPlane` }
1913
+ }).m(function(Command, cs, config, o) {
1914
+ return [
1915
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1916
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1917
+ ];
1918
+ }).s("AmazonNeptuneGraph", "GetQuery", {}).n("NeptuneGraphClient", "GetQueryCommand").f(void 0, void 0).ser(se_GetQueryCommand).de(de_GetQueryCommand).build() {
1919
+ };
1920
+ __name(_GetQueryCommand, "GetQueryCommand");
1921
+ var GetQueryCommand = _GetQueryCommand;
1922
+
2148
1923
  // src/commands/ListGraphsCommand.ts
2149
1924
 
2150
1925
 
@@ -2217,6 +1992,24 @@ var _ListPrivateGraphEndpointsCommand = class _ListPrivateGraphEndpointsCommand
2217
1992
  __name(_ListPrivateGraphEndpointsCommand, "ListPrivateGraphEndpointsCommand");
2218
1993
  var ListPrivateGraphEndpointsCommand = _ListPrivateGraphEndpointsCommand;
2219
1994
 
1995
+ // src/commands/ListQueriesCommand.ts
1996
+
1997
+
1998
+
1999
+
2000
+ var _ListQueriesCommand = class _ListQueriesCommand extends import_smithy_client.Command.classBuilder().ep({
2001
+ ...commonParams,
2002
+ ApiType: { type: "staticContextParams", value: `DataPlane` }
2003
+ }).m(function(Command, cs, config, o) {
2004
+ return [
2005
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2006
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2007
+ ];
2008
+ }).s("AmazonNeptuneGraph", "ListQueries", {}).n("NeptuneGraphClient", "ListQueriesCommand").f(void 0, void 0).ser(se_ListQueriesCommand).de(de_ListQueriesCommand).build() {
2009
+ };
2010
+ __name(_ListQueriesCommand, "ListQueriesCommand");
2011
+ var ListQueriesCommand = _ListQueriesCommand;
2012
+
2220
2013
  // src/commands/ListTagsForResourceCommand.ts
2221
2014
 
2222
2015
 
@@ -2328,6 +2121,7 @@ var UpdateGraphCommand = _UpdateGraphCommand;
2328
2121
  // src/NeptuneGraph.ts
2329
2122
  var commands = {
2330
2123
  CancelImportTaskCommand,
2124
+ CancelQueryCommand,
2331
2125
  CreateGraphCommand,
2332
2126
  CreateGraphSnapshotCommand,
2333
2127
  CreateGraphUsingImportTaskCommand,
@@ -2335,14 +2129,18 @@ var commands = {
2335
2129
  DeleteGraphCommand,
2336
2130
  DeleteGraphSnapshotCommand,
2337
2131
  DeletePrivateGraphEndpointCommand,
2132
+ ExecuteQueryCommand,
2338
2133
  GetGraphCommand,
2339
2134
  GetGraphSnapshotCommand,
2135
+ GetGraphSummaryCommand,
2340
2136
  GetImportTaskCommand,
2341
2137
  GetPrivateGraphEndpointCommand,
2138
+ GetQueryCommand,
2342
2139
  ListGraphsCommand,
2343
2140
  ListGraphSnapshotsCommand,
2344
2141
  ListImportTasksCommand,
2345
2142
  ListPrivateGraphEndpointsCommand,
2143
+ ListQueriesCommand,
2346
2144
  ListTagsForResourceCommand,
2347
2145
  ResetGraphCommand,
2348
2146
  RestoreGraphFromSnapshotCommand,
@@ -2739,6 +2537,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2739
2537
  NeptuneGraph,
2740
2538
  $Command,
2741
2539
  CancelImportTaskCommand,
2540
+ CancelQueryCommand,
2742
2541
  CreateGraphCommand,
2743
2542
  CreateGraphSnapshotCommand,
2744
2543
  CreateGraphUsingImportTaskCommand,
@@ -2746,14 +2545,18 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2746
2545
  DeleteGraphCommand,
2747
2546
  DeleteGraphSnapshotCommand,
2748
2547
  DeletePrivateGraphEndpointCommand,
2548
+ ExecuteQueryCommand,
2749
2549
  GetGraphCommand,
2750
2550
  GetGraphSnapshotCommand,
2551
+ GetGraphSummaryCommand,
2751
2552
  GetImportTaskCommand,
2752
2553
  GetPrivateGraphEndpointCommand,
2554
+ GetQueryCommand,
2753
2555
  ListGraphSnapshotsCommand,
2754
2556
  ListGraphsCommand,
2755
2557
  ListImportTasksCommand,
2756
2558
  ListPrivateGraphEndpointsCommand,
2559
+ ListQueriesCommand,
2757
2560
  ListTagsForResourceCommand,
2758
2561
  ResetGraphCommand,
2759
2562
  RestoreGraphFromSnapshotCommand,
@@ -2780,19 +2583,29 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2780
2583
  waitUntilPrivateGraphEndpointAvailable,
2781
2584
  waitForPrivateGraphEndpointDeleted,
2782
2585
  waitUntilPrivateGraphEndpointDeleted,
2783
- ConflictExceptionReason,
2784
- ConflictException,
2785
- GraphStatus,
2586
+ AccessDeniedException,
2786
2587
  InternalServerException,
2787
- ServiceQuotaExceededException,
2588
+ ResourceNotFoundException,
2788
2589
  ThrottlingException,
2789
2590
  ValidationExceptionReason,
2790
2591
  ValidationException,
2791
- ResourceNotFoundException,
2592
+ ConflictExceptionReason,
2593
+ ConflictException,
2594
+ ExplainMode,
2595
+ QueryLanguage,
2596
+ PlanCacheType,
2597
+ UnprocessableExceptionReason,
2598
+ UnprocessableException,
2599
+ GraphSummaryMode,
2600
+ QueryState,
2601
+ GraphStatus,
2602
+ ServiceQuotaExceededException,
2603
+ QueryStateInput,
2792
2604
  PrivateGraphEndpointStatus,
2793
2605
  SnapshotStatus,
2794
2606
  Format,
2795
2607
  ImportTaskStatus,
2796
- ImportOptions
2608
+ ImportOptions,
2609
+ ExecuteQueryOutputFilterSensitiveLog
2797
2610
  });
2798
2611