@aws-sdk/client-neptune-graph 3.504.0 → 3.505.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 +624 -41
- 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 +385 -2
- 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 +2 -1
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
|
|
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: "
|
|
223
|
+
name: "AccessDeniedException",
|
|
211
224
|
$fault: "client",
|
|
212
225
|
...opts
|
|
213
226
|
});
|
|
214
|
-
this.name = "
|
|
227
|
+
this.name = "AccessDeniedException";
|
|
215
228
|
this.$fault = "client";
|
|
216
|
-
Object.setPrototypeOf(this,
|
|
217
|
-
this.reason = opts.reason;
|
|
229
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
218
230
|
}
|
|
219
231
|
};
|
|
220
|
-
__name(
|
|
221
|
-
var
|
|
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
|
|
252
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends NeptuneGraphServiceException {
|
|
250
253
|
/**
|
|
251
254
|
* @internal
|
|
252
255
|
*/
|
|
253
256
|
constructor(opts) {
|
|
254
257
|
super({
|
|
255
|
-
name: "
|
|
258
|
+
name: "ResourceNotFoundException",
|
|
256
259
|
$fault: "client",
|
|
257
260
|
...opts
|
|
258
261
|
});
|
|
259
|
-
this.name = "
|
|
262
|
+
this.name = "ResourceNotFoundException";
|
|
260
263
|
this.$fault = "client";
|
|
261
|
-
Object.setPrototypeOf(this,
|
|
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(
|
|
269
|
-
var
|
|
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
|
|
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: "
|
|
325
|
+
name: "ConflictException",
|
|
324
326
|
$fault: "client",
|
|
325
327
|
...opts
|
|
326
328
|
});
|
|
327
|
-
this.name = "
|
|
329
|
+
this.name = "ConflictException";
|
|
328
330
|
this.$fault = "client";
|
|
329
|
-
Object.setPrototypeOf(this,
|
|
331
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
332
|
+
this.reason = opts.reason;
|
|
330
333
|
}
|
|
331
334
|
};
|
|
332
|
-
__name(
|
|
333
|
-
var
|
|
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 = {};
|
|
@@ -726,6 +943,47 @@ var de_CancelImportTaskCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
726
943
|
});
|
|
727
944
|
}
|
|
728
945
|
}, "de_CancelImportTaskCommandError");
|
|
946
|
+
var de_CancelQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
947
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
948
|
+
return de_CancelQueryCommandError(output, context);
|
|
949
|
+
}
|
|
950
|
+
const contents = (0, import_smithy_client.map)({
|
|
951
|
+
$metadata: deserializeMetadata(output)
|
|
952
|
+
});
|
|
953
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
954
|
+
return contents;
|
|
955
|
+
}, "de_CancelQueryCommand");
|
|
956
|
+
var de_CancelQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
957
|
+
const parsedOutput = {
|
|
958
|
+
...output,
|
|
959
|
+
body: await parseErrorBody(output.body, context)
|
|
960
|
+
};
|
|
961
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
+
switch (errorCode) {
|
|
963
|
+
case "AccessDeniedException":
|
|
964
|
+
case "com.amazonaws.neptunegraph#AccessDeniedException":
|
|
965
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
966
|
+
case "InternalServerException":
|
|
967
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
968
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
969
|
+
case "ResourceNotFoundException":
|
|
970
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
971
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
972
|
+
case "ThrottlingException":
|
|
973
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
974
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
975
|
+
case "ValidationException":
|
|
976
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
977
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
978
|
+
default:
|
|
979
|
+
const parsedBody = parsedOutput.body;
|
|
980
|
+
return throwDefaultError({
|
|
981
|
+
output,
|
|
982
|
+
parsedBody,
|
|
983
|
+
errorCode
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
}, "de_CancelQueryCommandError");
|
|
729
987
|
var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
730
988
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
731
989
|
return de_CreateGraphCommandError(output, context);
|
|
@@ -1099,6 +1357,52 @@ var de_DeletePrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (ou
|
|
|
1099
1357
|
});
|
|
1100
1358
|
}
|
|
1101
1359
|
}, "de_DeletePrivateGraphEndpointCommandError");
|
|
1360
|
+
var de_ExecuteQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1361
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1362
|
+
return de_ExecuteQueryCommandError(output, context);
|
|
1363
|
+
}
|
|
1364
|
+
const contents = (0, import_smithy_client.map)({
|
|
1365
|
+
$metadata: deserializeMetadata(output)
|
|
1366
|
+
});
|
|
1367
|
+
const data = output.body;
|
|
1368
|
+
context.sdkStreamMixin(data);
|
|
1369
|
+
contents.payload = data;
|
|
1370
|
+
return contents;
|
|
1371
|
+
}, "de_ExecuteQueryCommand");
|
|
1372
|
+
var de_ExecuteQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1373
|
+
const parsedOutput = {
|
|
1374
|
+
...output,
|
|
1375
|
+
body: await parseErrorBody(output.body, context)
|
|
1376
|
+
};
|
|
1377
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
+
switch (errorCode) {
|
|
1379
|
+
case "AccessDeniedException":
|
|
1380
|
+
case "com.amazonaws.neptunegraph#AccessDeniedException":
|
|
1381
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1382
|
+
case "ConflictException":
|
|
1383
|
+
case "com.amazonaws.neptunegraph#ConflictException":
|
|
1384
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1385
|
+
case "InternalServerException":
|
|
1386
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1387
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1388
|
+
case "ThrottlingException":
|
|
1389
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1390
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1391
|
+
case "UnprocessableException":
|
|
1392
|
+
case "com.amazonaws.neptunegraph#UnprocessableException":
|
|
1393
|
+
throw await de_UnprocessableExceptionRes(parsedOutput, context);
|
|
1394
|
+
case "ValidationException":
|
|
1395
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1396
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1397
|
+
default:
|
|
1398
|
+
const parsedBody = parsedOutput.body;
|
|
1399
|
+
return throwDefaultError({
|
|
1400
|
+
output,
|
|
1401
|
+
parsedBody,
|
|
1402
|
+
errorCode
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
}, "de_ExecuteQueryCommandError");
|
|
1102
1406
|
var de_GetGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
1407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
1408
|
return de_GetGraphCommandError(output, context);
|
|
@@ -1203,6 +1507,53 @@ var de_GetGraphSnapshotCommandError = /* @__PURE__ */ __name(async (output, cont
|
|
|
1203
1507
|
});
|
|
1204
1508
|
}
|
|
1205
1509
|
}, "de_GetGraphSnapshotCommandError");
|
|
1510
|
+
var de_GetGraphSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1511
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1512
|
+
return de_GetGraphSummaryCommandError(output, context);
|
|
1513
|
+
}
|
|
1514
|
+
const contents = (0, import_smithy_client.map)({
|
|
1515
|
+
$metadata: deserializeMetadata(output)
|
|
1516
|
+
});
|
|
1517
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1518
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1519
|
+
graphSummary: import_smithy_client._json,
|
|
1520
|
+
lastStatisticsComputationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1521
|
+
version: import_smithy_client.expectString
|
|
1522
|
+
});
|
|
1523
|
+
Object.assign(contents, doc);
|
|
1524
|
+
return contents;
|
|
1525
|
+
}, "de_GetGraphSummaryCommand");
|
|
1526
|
+
var de_GetGraphSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1527
|
+
const parsedOutput = {
|
|
1528
|
+
...output,
|
|
1529
|
+
body: await parseErrorBody(output.body, context)
|
|
1530
|
+
};
|
|
1531
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
|
+
switch (errorCode) {
|
|
1533
|
+
case "AccessDeniedException":
|
|
1534
|
+
case "com.amazonaws.neptunegraph#AccessDeniedException":
|
|
1535
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1536
|
+
case "InternalServerException":
|
|
1537
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1538
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1539
|
+
case "ResourceNotFoundException":
|
|
1540
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1541
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1542
|
+
case "ThrottlingException":
|
|
1543
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1544
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1545
|
+
case "ValidationException":
|
|
1546
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1547
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1548
|
+
default:
|
|
1549
|
+
const parsedBody = parsedOutput.body;
|
|
1550
|
+
return throwDefaultError({
|
|
1551
|
+
output,
|
|
1552
|
+
parsedBody,
|
|
1553
|
+
errorCode
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
}, "de_GetGraphSummaryCommandError");
|
|
1206
1557
|
var de_GetImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1207
1558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1208
1559
|
return de_GetImportTaskCommandError(output, context);
|
|
@@ -1299,6 +1650,55 @@ var de_GetPrivateGraphEndpointCommandError = /* @__PURE__ */ __name(async (outpu
|
|
|
1299
1650
|
});
|
|
1300
1651
|
}
|
|
1301
1652
|
}, "de_GetPrivateGraphEndpointCommandError");
|
|
1653
|
+
var de_GetQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1654
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1655
|
+
return de_GetQueryCommandError(output, context);
|
|
1656
|
+
}
|
|
1657
|
+
const contents = (0, import_smithy_client.map)({
|
|
1658
|
+
$metadata: deserializeMetadata(output)
|
|
1659
|
+
});
|
|
1660
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1661
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1662
|
+
elapsed: import_smithy_client.expectInt32,
|
|
1663
|
+
id: import_smithy_client.expectString,
|
|
1664
|
+
queryString: import_smithy_client.expectString,
|
|
1665
|
+
state: import_smithy_client.expectString,
|
|
1666
|
+
waited: import_smithy_client.expectInt32
|
|
1667
|
+
});
|
|
1668
|
+
Object.assign(contents, doc);
|
|
1669
|
+
return contents;
|
|
1670
|
+
}, "de_GetQueryCommand");
|
|
1671
|
+
var de_GetQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1672
|
+
const parsedOutput = {
|
|
1673
|
+
...output,
|
|
1674
|
+
body: await parseErrorBody(output.body, context)
|
|
1675
|
+
};
|
|
1676
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
|
+
switch (errorCode) {
|
|
1678
|
+
case "AccessDeniedException":
|
|
1679
|
+
case "com.amazonaws.neptunegraph#AccessDeniedException":
|
|
1680
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1681
|
+
case "InternalServerException":
|
|
1682
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1683
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1684
|
+
case "ResourceNotFoundException":
|
|
1685
|
+
case "com.amazonaws.neptunegraph#ResourceNotFoundException":
|
|
1686
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1687
|
+
case "ThrottlingException":
|
|
1688
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1689
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1690
|
+
case "ValidationException":
|
|
1691
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1692
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1693
|
+
default:
|
|
1694
|
+
const parsedBody = parsedOutput.body;
|
|
1695
|
+
return throwDefaultError({
|
|
1696
|
+
output,
|
|
1697
|
+
parsedBody,
|
|
1698
|
+
errorCode
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
}, "de_GetQueryCommandError");
|
|
1302
1702
|
var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1303
1703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1304
1704
|
return de_ListGraphsCommandError(output, context);
|
|
@@ -1468,6 +1868,48 @@ var de_ListPrivateGraphEndpointsCommandError = /* @__PURE__ */ __name(async (out
|
|
|
1468
1868
|
});
|
|
1469
1869
|
}
|
|
1470
1870
|
}, "de_ListPrivateGraphEndpointsCommandError");
|
|
1871
|
+
var de_ListQueriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1872
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1873
|
+
return de_ListQueriesCommandError(output, context);
|
|
1874
|
+
}
|
|
1875
|
+
const contents = (0, import_smithy_client.map)({
|
|
1876
|
+
$metadata: deserializeMetadata(output)
|
|
1877
|
+
});
|
|
1878
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1879
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1880
|
+
queries: import_smithy_client._json
|
|
1881
|
+
});
|
|
1882
|
+
Object.assign(contents, doc);
|
|
1883
|
+
return contents;
|
|
1884
|
+
}, "de_ListQueriesCommand");
|
|
1885
|
+
var de_ListQueriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1886
|
+
const parsedOutput = {
|
|
1887
|
+
...output,
|
|
1888
|
+
body: await parseErrorBody(output.body, context)
|
|
1889
|
+
};
|
|
1890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
|
+
switch (errorCode) {
|
|
1892
|
+
case "AccessDeniedException":
|
|
1893
|
+
case "com.amazonaws.neptunegraph#AccessDeniedException":
|
|
1894
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1895
|
+
case "InternalServerException":
|
|
1896
|
+
case "com.amazonaws.neptunegraph#InternalServerException":
|
|
1897
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1898
|
+
case "ThrottlingException":
|
|
1899
|
+
case "com.amazonaws.neptunegraph#ThrottlingException":
|
|
1900
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1901
|
+
case "ValidationException":
|
|
1902
|
+
case "com.amazonaws.neptunegraph#ValidationException":
|
|
1903
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1904
|
+
default:
|
|
1905
|
+
const parsedBody = parsedOutput.body;
|
|
1906
|
+
return throwDefaultError({
|
|
1907
|
+
output,
|
|
1908
|
+
parsedBody,
|
|
1909
|
+
errorCode
|
|
1910
|
+
});
|
|
1911
|
+
}
|
|
1912
|
+
}, "de_ListQueriesCommandError");
|
|
1471
1913
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1472
1914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1473
1915
|
return de_ListTagsForResourceCommandError(output, context);
|
|
@@ -1767,6 +2209,19 @@ var de_UpdateGraphCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
1767
2209
|
}
|
|
1768
2210
|
}, "de_UpdateGraphCommandError");
|
|
1769
2211
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(NeptuneGraphServiceException);
|
|
2212
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2213
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2214
|
+
const data = parsedOutput.body;
|
|
2215
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2216
|
+
message: import_smithy_client.expectString
|
|
2217
|
+
});
|
|
2218
|
+
Object.assign(contents, doc);
|
|
2219
|
+
const exception = new AccessDeniedException({
|
|
2220
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2221
|
+
...contents
|
|
2222
|
+
});
|
|
2223
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2224
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1770
2225
|
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1771
2226
|
const contents = (0, import_smithy_client.map)({});
|
|
1772
2227
|
const data = parsedOutput.body;
|
|
@@ -1837,6 +2292,20 @@ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
1837
2292
|
});
|
|
1838
2293
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1839
2294
|
}, "de_ThrottlingExceptionRes");
|
|
2295
|
+
var de_UnprocessableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2296
|
+
const contents = (0, import_smithy_client.map)({});
|
|
2297
|
+
const data = parsedOutput.body;
|
|
2298
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2299
|
+
message: import_smithy_client.expectString,
|
|
2300
|
+
reason: import_smithy_client.expectString
|
|
2301
|
+
});
|
|
2302
|
+
Object.assign(contents, doc);
|
|
2303
|
+
const exception = new UnprocessableException({
|
|
2304
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2305
|
+
...contents
|
|
2306
|
+
});
|
|
2307
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
2308
|
+
}, "de_UnprocessableExceptionRes");
|
|
1840
2309
|
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1841
2310
|
const contents = (0, import_smithy_client.map)({});
|
|
1842
2311
|
const data = parsedOutput.body;
|
|
@@ -1887,9 +2356,13 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1887
2356
|
cfId: output.headers["x-amz-cf-id"]
|
|
1888
2357
|
}), "deserializeMetadata");
|
|
1889
2358
|
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2359
|
+
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");
|
|
2360
|
+
var _g = "graphidentifier";
|
|
1890
2361
|
var _gI = "graphIdentifier";
|
|
2362
|
+
var _m = "mode";
|
|
1891
2363
|
var _mR = "maxResults";
|
|
1892
2364
|
var _nT = "nextToken";
|
|
2365
|
+
var _s = "state";
|
|
1893
2366
|
var _sS = "skipSnapshot";
|
|
1894
2367
|
var _tK = "tagKeys";
|
|
1895
2368
|
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
@@ -1947,6 +2420,24 @@ var _CancelImportTaskCommand = class _CancelImportTaskCommand extends import_smi
|
|
|
1947
2420
|
__name(_CancelImportTaskCommand, "CancelImportTaskCommand");
|
|
1948
2421
|
var CancelImportTaskCommand = _CancelImportTaskCommand;
|
|
1949
2422
|
|
|
2423
|
+
// src/commands/CancelQueryCommand.ts
|
|
2424
|
+
|
|
2425
|
+
|
|
2426
|
+
|
|
2427
|
+
|
|
2428
|
+
var _CancelQueryCommand = class _CancelQueryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2429
|
+
...commonParams,
|
|
2430
|
+
ApiType: { type: "staticContextParams", value: `DataPlane` }
|
|
2431
|
+
}).m(function(Command, cs, config, o) {
|
|
2432
|
+
return [
|
|
2433
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2434
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2435
|
+
];
|
|
2436
|
+
}).s("AmazonNeptuneGraph", "CancelQuery", {}).n("NeptuneGraphClient", "CancelQueryCommand").f(void 0, void 0).ser(se_CancelQueryCommand).de(de_CancelQueryCommand).build() {
|
|
2437
|
+
};
|
|
2438
|
+
__name(_CancelQueryCommand, "CancelQueryCommand");
|
|
2439
|
+
var CancelQueryCommand = _CancelQueryCommand;
|
|
2440
|
+
|
|
1950
2441
|
// src/commands/CreateGraphCommand.ts
|
|
1951
2442
|
|
|
1952
2443
|
|
|
@@ -2073,6 +2564,24 @@ var _DeletePrivateGraphEndpointCommand = class _DeletePrivateGraphEndpointComman
|
|
|
2073
2564
|
__name(_DeletePrivateGraphEndpointCommand, "DeletePrivateGraphEndpointCommand");
|
|
2074
2565
|
var DeletePrivateGraphEndpointCommand = _DeletePrivateGraphEndpointCommand;
|
|
2075
2566
|
|
|
2567
|
+
// src/commands/ExecuteQueryCommand.ts
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
|
|
2571
|
+
|
|
2572
|
+
var _ExecuteQueryCommand = class _ExecuteQueryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2573
|
+
...commonParams,
|
|
2574
|
+
ApiType: { type: "staticContextParams", value: `DataPlane` }
|
|
2575
|
+
}).m(function(Command, cs, config, o) {
|
|
2576
|
+
return [
|
|
2577
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2578
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2579
|
+
];
|
|
2580
|
+
}).s("AmazonNeptuneGraph", "ExecuteQuery", {}).n("NeptuneGraphClient", "ExecuteQueryCommand").f(void 0, ExecuteQueryOutputFilterSensitiveLog).ser(se_ExecuteQueryCommand).de(de_ExecuteQueryCommand).build() {
|
|
2581
|
+
};
|
|
2582
|
+
__name(_ExecuteQueryCommand, "ExecuteQueryCommand");
|
|
2583
|
+
var ExecuteQueryCommand = _ExecuteQueryCommand;
|
|
2584
|
+
|
|
2076
2585
|
// src/commands/GetGraphCommand.ts
|
|
2077
2586
|
|
|
2078
2587
|
|
|
@@ -2109,6 +2618,24 @@ var _GetGraphSnapshotCommand = class _GetGraphSnapshotCommand extends import_smi
|
|
|
2109
2618
|
__name(_GetGraphSnapshotCommand, "GetGraphSnapshotCommand");
|
|
2110
2619
|
var GetGraphSnapshotCommand = _GetGraphSnapshotCommand;
|
|
2111
2620
|
|
|
2621
|
+
// src/commands/GetGraphSummaryCommand.ts
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+
var _GetGraphSummaryCommand = class _GetGraphSummaryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2627
|
+
...commonParams,
|
|
2628
|
+
ApiType: { type: "staticContextParams", value: `DataPlane` }
|
|
2629
|
+
}).m(function(Command, cs, config, o) {
|
|
2630
|
+
return [
|
|
2631
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2632
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2633
|
+
];
|
|
2634
|
+
}).s("AmazonNeptuneGraph", "GetGraphSummary", {}).n("NeptuneGraphClient", "GetGraphSummaryCommand").f(void 0, void 0).ser(se_GetGraphSummaryCommand).de(de_GetGraphSummaryCommand).build() {
|
|
2635
|
+
};
|
|
2636
|
+
__name(_GetGraphSummaryCommand, "GetGraphSummaryCommand");
|
|
2637
|
+
var GetGraphSummaryCommand = _GetGraphSummaryCommand;
|
|
2638
|
+
|
|
2112
2639
|
// src/commands/GetImportTaskCommand.ts
|
|
2113
2640
|
|
|
2114
2641
|
|
|
@@ -2145,6 +2672,24 @@ var _GetPrivateGraphEndpointCommand = class _GetPrivateGraphEndpointCommand exte
|
|
|
2145
2672
|
__name(_GetPrivateGraphEndpointCommand, "GetPrivateGraphEndpointCommand");
|
|
2146
2673
|
var GetPrivateGraphEndpointCommand = _GetPrivateGraphEndpointCommand;
|
|
2147
2674
|
|
|
2675
|
+
// src/commands/GetQueryCommand.ts
|
|
2676
|
+
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
var _GetQueryCommand = class _GetQueryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2681
|
+
...commonParams,
|
|
2682
|
+
ApiType: { type: "staticContextParams", value: `DataPlane` }
|
|
2683
|
+
}).m(function(Command, cs, config, o) {
|
|
2684
|
+
return [
|
|
2685
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2686
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2687
|
+
];
|
|
2688
|
+
}).s("AmazonNeptuneGraph", "GetQuery", {}).n("NeptuneGraphClient", "GetQueryCommand").f(void 0, void 0).ser(se_GetQueryCommand).de(de_GetQueryCommand).build() {
|
|
2689
|
+
};
|
|
2690
|
+
__name(_GetQueryCommand, "GetQueryCommand");
|
|
2691
|
+
var GetQueryCommand = _GetQueryCommand;
|
|
2692
|
+
|
|
2148
2693
|
// src/commands/ListGraphsCommand.ts
|
|
2149
2694
|
|
|
2150
2695
|
|
|
@@ -2217,6 +2762,24 @@ var _ListPrivateGraphEndpointsCommand = class _ListPrivateGraphEndpointsCommand
|
|
|
2217
2762
|
__name(_ListPrivateGraphEndpointsCommand, "ListPrivateGraphEndpointsCommand");
|
|
2218
2763
|
var ListPrivateGraphEndpointsCommand = _ListPrivateGraphEndpointsCommand;
|
|
2219
2764
|
|
|
2765
|
+
// src/commands/ListQueriesCommand.ts
|
|
2766
|
+
|
|
2767
|
+
|
|
2768
|
+
|
|
2769
|
+
|
|
2770
|
+
var _ListQueriesCommand = class _ListQueriesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2771
|
+
...commonParams,
|
|
2772
|
+
ApiType: { type: "staticContextParams", value: `DataPlane` }
|
|
2773
|
+
}).m(function(Command, cs, config, o) {
|
|
2774
|
+
return [
|
|
2775
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2776
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2777
|
+
];
|
|
2778
|
+
}).s("AmazonNeptuneGraph", "ListQueries", {}).n("NeptuneGraphClient", "ListQueriesCommand").f(void 0, void 0).ser(se_ListQueriesCommand).de(de_ListQueriesCommand).build() {
|
|
2779
|
+
};
|
|
2780
|
+
__name(_ListQueriesCommand, "ListQueriesCommand");
|
|
2781
|
+
var ListQueriesCommand = _ListQueriesCommand;
|
|
2782
|
+
|
|
2220
2783
|
// src/commands/ListTagsForResourceCommand.ts
|
|
2221
2784
|
|
|
2222
2785
|
|
|
@@ -2328,6 +2891,7 @@ var UpdateGraphCommand = _UpdateGraphCommand;
|
|
|
2328
2891
|
// src/NeptuneGraph.ts
|
|
2329
2892
|
var commands = {
|
|
2330
2893
|
CancelImportTaskCommand,
|
|
2894
|
+
CancelQueryCommand,
|
|
2331
2895
|
CreateGraphCommand,
|
|
2332
2896
|
CreateGraphSnapshotCommand,
|
|
2333
2897
|
CreateGraphUsingImportTaskCommand,
|
|
@@ -2335,14 +2899,18 @@ var commands = {
|
|
|
2335
2899
|
DeleteGraphCommand,
|
|
2336
2900
|
DeleteGraphSnapshotCommand,
|
|
2337
2901
|
DeletePrivateGraphEndpointCommand,
|
|
2902
|
+
ExecuteQueryCommand,
|
|
2338
2903
|
GetGraphCommand,
|
|
2339
2904
|
GetGraphSnapshotCommand,
|
|
2905
|
+
GetGraphSummaryCommand,
|
|
2340
2906
|
GetImportTaskCommand,
|
|
2341
2907
|
GetPrivateGraphEndpointCommand,
|
|
2908
|
+
GetQueryCommand,
|
|
2342
2909
|
ListGraphsCommand,
|
|
2343
2910
|
ListGraphSnapshotsCommand,
|
|
2344
2911
|
ListImportTasksCommand,
|
|
2345
2912
|
ListPrivateGraphEndpointsCommand,
|
|
2913
|
+
ListQueriesCommand,
|
|
2346
2914
|
ListTagsForResourceCommand,
|
|
2347
2915
|
ResetGraphCommand,
|
|
2348
2916
|
RestoreGraphFromSnapshotCommand,
|
|
@@ -2739,6 +3307,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
2739
3307
|
NeptuneGraph,
|
|
2740
3308
|
$Command,
|
|
2741
3309
|
CancelImportTaskCommand,
|
|
3310
|
+
CancelQueryCommand,
|
|
2742
3311
|
CreateGraphCommand,
|
|
2743
3312
|
CreateGraphSnapshotCommand,
|
|
2744
3313
|
CreateGraphUsingImportTaskCommand,
|
|
@@ -2746,14 +3315,18 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
2746
3315
|
DeleteGraphCommand,
|
|
2747
3316
|
DeleteGraphSnapshotCommand,
|
|
2748
3317
|
DeletePrivateGraphEndpointCommand,
|
|
3318
|
+
ExecuteQueryCommand,
|
|
2749
3319
|
GetGraphCommand,
|
|
2750
3320
|
GetGraphSnapshotCommand,
|
|
3321
|
+
GetGraphSummaryCommand,
|
|
2751
3322
|
GetImportTaskCommand,
|
|
2752
3323
|
GetPrivateGraphEndpointCommand,
|
|
3324
|
+
GetQueryCommand,
|
|
2753
3325
|
ListGraphSnapshotsCommand,
|
|
2754
3326
|
ListGraphsCommand,
|
|
2755
3327
|
ListImportTasksCommand,
|
|
2756
3328
|
ListPrivateGraphEndpointsCommand,
|
|
3329
|
+
ListQueriesCommand,
|
|
2757
3330
|
ListTagsForResourceCommand,
|
|
2758
3331
|
ResetGraphCommand,
|
|
2759
3332
|
RestoreGraphFromSnapshotCommand,
|
|
@@ -2780,19 +3353,29 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
2780
3353
|
waitUntilPrivateGraphEndpointAvailable,
|
|
2781
3354
|
waitForPrivateGraphEndpointDeleted,
|
|
2782
3355
|
waitUntilPrivateGraphEndpointDeleted,
|
|
2783
|
-
|
|
2784
|
-
ConflictException,
|
|
2785
|
-
GraphStatus,
|
|
3356
|
+
AccessDeniedException,
|
|
2786
3357
|
InternalServerException,
|
|
2787
|
-
|
|
3358
|
+
ResourceNotFoundException,
|
|
2788
3359
|
ThrottlingException,
|
|
2789
3360
|
ValidationExceptionReason,
|
|
2790
3361
|
ValidationException,
|
|
2791
|
-
|
|
3362
|
+
ConflictExceptionReason,
|
|
3363
|
+
ConflictException,
|
|
3364
|
+
ExplainMode,
|
|
3365
|
+
QueryLanguage,
|
|
3366
|
+
PlanCacheType,
|
|
3367
|
+
UnprocessableExceptionReason,
|
|
3368
|
+
UnprocessableException,
|
|
3369
|
+
GraphSummaryMode,
|
|
3370
|
+
QueryState,
|
|
3371
|
+
GraphStatus,
|
|
3372
|
+
ServiceQuotaExceededException,
|
|
3373
|
+
QueryStateInput,
|
|
2792
3374
|
PrivateGraphEndpointStatus,
|
|
2793
3375
|
SnapshotStatus,
|
|
2794
3376
|
Format,
|
|
2795
3377
|
ImportTaskStatus,
|
|
2796
|
-
ImportOptions
|
|
3378
|
+
ImportOptions,
|
|
3379
|
+
ExecuteQueryOutputFilterSensitiveLog
|
|
2797
3380
|
});
|
|
2798
3381
|
|