@aws-sdk/client-neptune-graph 3.873.0 → 3.877.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 +17 -3
- package/dist-cjs/index.js +175 -12
- package/dist-es/NeptuneGraph.js +4 -0
- package/dist-es/commands/StartGraphCommand.js +25 -0
- package/dist-es/commands/StopGraphCommand.js +25 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +74 -0
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForGraphStopped.js +40 -0
- package/dist-types/NeptuneGraph.d.ts +15 -3
- package/dist-types/NeptuneGraphClient.d.ts +5 -5
- package/dist-types/commands/CreateGraphCommand.d.ts +1 -1
- package/dist-types/commands/CreateGraphUsingImportTaskCommand.d.ts +1 -5
- package/dist-types/commands/CreatePrivateGraphEndpointCommand.d.ts +1 -5
- package/dist-types/commands/DeleteGraphCommand.d.ts +1 -1
- package/dist-types/commands/ExecuteQueryCommand.d.ts +1 -16
- package/dist-types/commands/GetGraphCommand.d.ts +1 -1
- package/dist-types/commands/GetQueryCommand.d.ts +1 -7
- package/dist-types/commands/ListGraphsCommand.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/StartGraphCommand.d.ts +103 -0
- package/dist-types/commands/StopGraphCommand.d.ts +103 -0
- package/dist-types/commands/UpdateGraphCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +1 -3
- package/dist-types/models/models_0.d.ts +268 -338
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/NeptuneGraph.d.ts +34 -0
- package/dist-types/ts3.4/NeptuneGraphClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/StartGraphCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/StopGraphCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +43 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForGraphStopped.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +1 -0
- package/dist-types/waiters/waitForGraphStopped.d.ts +14 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript NeptuneGraph Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<p>Neptune Analytics is a new analytics database engine for Amazon Neptune that helps customers get to
|
|
10
|
-
insights faster by quickly processing large amounts of graph data, invoking popular graph analytic
|
|
11
|
-
algorithms in low-latency queries, and getting analytics results in seconds.</p>
|
|
9
|
+
<p>Neptune Analytics is a new analytics database engine for Amazon Neptune that helps customers get to insights faster by quickly processing large amounts of graph data, invoking popular graph analytic algorithms in low-latency queries, and getting analytics results in seconds.</p>
|
|
12
10
|
|
|
13
11
|
## Installing
|
|
14
12
|
|
|
@@ -428,6 +426,14 @@ StartExportTask
|
|
|
428
426
|
|
|
429
427
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/neptune-graph/command/StartExportTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/StartExportTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/StartExportTaskCommandOutput/)
|
|
430
428
|
|
|
429
|
+
</details>
|
|
430
|
+
<details>
|
|
431
|
+
<summary>
|
|
432
|
+
StartGraph
|
|
433
|
+
</summary>
|
|
434
|
+
|
|
435
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/neptune-graph/command/StartGraphCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/StartGraphCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/StartGraphCommandOutput/)
|
|
436
|
+
|
|
431
437
|
</details>
|
|
432
438
|
<details>
|
|
433
439
|
<summary>
|
|
@@ -436,6 +442,14 @@ StartImportTask
|
|
|
436
442
|
|
|
437
443
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/neptune-graph/command/StartImportTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/StartImportTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/StartImportTaskCommandOutput/)
|
|
438
444
|
|
|
445
|
+
</details>
|
|
446
|
+
<details>
|
|
447
|
+
<summary>
|
|
448
|
+
StopGraph
|
|
449
|
+
</summary>
|
|
450
|
+
|
|
451
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/neptune-graph/command/StopGraphCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/StopGraphCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/StopGraphCommandOutput/)
|
|
452
|
+
|
|
439
453
|
</details>
|
|
440
454
|
<details>
|
|
441
455
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -76,7 +76,9 @@ __export(index_exports, {
|
|
|
76
76
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
77
77
|
SnapshotStatus: () => SnapshotStatus,
|
|
78
78
|
StartExportTaskCommand: () => StartExportTaskCommand,
|
|
79
|
+
StartGraphCommand: () => StartGraphCommand,
|
|
79
80
|
StartImportTaskCommand: () => StartImportTaskCommand,
|
|
81
|
+
StopGraphCommand: () => StopGraphCommand,
|
|
80
82
|
TagResourceCommand: () => TagResourceCommand,
|
|
81
83
|
ThrottlingException: () => ThrottlingException,
|
|
82
84
|
UnprocessableException: () => UnprocessableException,
|
|
@@ -97,6 +99,7 @@ __export(index_exports, {
|
|
|
97
99
|
waitForGraphDeleted: () => waitForGraphDeleted,
|
|
98
100
|
waitForGraphSnapshotAvailable: () => waitForGraphSnapshotAvailable,
|
|
99
101
|
waitForGraphSnapshotDeleted: () => waitForGraphSnapshotDeleted,
|
|
102
|
+
waitForGraphStopped: () => waitForGraphStopped,
|
|
100
103
|
waitForImportTaskCancelled: () => waitForImportTaskCancelled,
|
|
101
104
|
waitForImportTaskSuccessful: () => waitForImportTaskSuccessful,
|
|
102
105
|
waitForPrivateGraphEndpointAvailable: () => waitForPrivateGraphEndpointAvailable,
|
|
@@ -107,6 +110,7 @@ __export(index_exports, {
|
|
|
107
110
|
waitUntilGraphDeleted: () => waitUntilGraphDeleted,
|
|
108
111
|
waitUntilGraphSnapshotAvailable: () => waitUntilGraphSnapshotAvailable,
|
|
109
112
|
waitUntilGraphSnapshotDeleted: () => waitUntilGraphSnapshotDeleted,
|
|
113
|
+
waitUntilGraphStopped: () => waitUntilGraphStopped,
|
|
110
114
|
waitUntilImportTaskCancelled: () => waitUntilImportTaskCancelled,
|
|
111
115
|
waitUntilImportTaskSuccessful: () => waitUntilImportTaskSuccessful,
|
|
112
116
|
waitUntilPrivateGraphEndpointAvailable: () => waitUntilPrivateGraphEndpointAvailable,
|
|
@@ -481,6 +485,9 @@ var GraphStatus = {
|
|
|
481
485
|
IMPORTING: "IMPORTING",
|
|
482
486
|
RESETTING: "RESETTING",
|
|
483
487
|
SNAPSHOTTING: "SNAPSHOTTING",
|
|
488
|
+
STARTING: "STARTING",
|
|
489
|
+
STOPPED: "STOPPED",
|
|
490
|
+
STOPPING: "STOPPING",
|
|
484
491
|
UPDATING: "UPDATING"
|
|
485
492
|
};
|
|
486
493
|
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NeptuneGraphServiceException {
|
|
@@ -1040,6 +1047,15 @@ var se_StartExportTaskCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1040
1047
|
b.m("POST").h(headers).b(body);
|
|
1041
1048
|
return b.build();
|
|
1042
1049
|
}, "se_StartExportTaskCommand");
|
|
1050
|
+
var se_StartGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1051
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1052
|
+
const headers = {};
|
|
1053
|
+
b.bp("/graphs/{graphIdentifier}/start");
|
|
1054
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
1055
|
+
let body;
|
|
1056
|
+
b.m("POST").h(headers).b(body);
|
|
1057
|
+
return b.build();
|
|
1058
|
+
}, "se_StartGraphCommand");
|
|
1043
1059
|
var se_StartImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1044
1060
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1045
1061
|
const headers = {
|
|
@@ -1062,6 +1078,15 @@ var se_StartImportTaskCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1062
1078
|
b.m("POST").h(headers).b(body);
|
|
1063
1079
|
return b.build();
|
|
1064
1080
|
}, "se_StartImportTaskCommand");
|
|
1081
|
+
var se_StopGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1082
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1083
|
+
const headers = {};
|
|
1084
|
+
b.bp("/graphs/{graphIdentifier}/stop");
|
|
1085
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
1086
|
+
let body;
|
|
1087
|
+
b.m("POST").h(headers).b(body);
|
|
1088
|
+
return b.build();
|
|
1089
|
+
}, "se_StopGraphCommand");
|
|
1065
1090
|
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1066
1091
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1067
1092
|
const headers = {
|
|
@@ -1652,6 +1677,34 @@ var de_StartExportTaskCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1652
1677
|
Object.assign(contents, doc);
|
|
1653
1678
|
return contents;
|
|
1654
1679
|
}, "de_StartExportTaskCommand");
|
|
1680
|
+
var de_StartGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1681
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1682
|
+
return de_CommandError(output, context);
|
|
1683
|
+
}
|
|
1684
|
+
const contents = (0, import_smithy_client.map)({
|
|
1685
|
+
$metadata: deserializeMetadata(output)
|
|
1686
|
+
});
|
|
1687
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1688
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1689
|
+
arn: import_smithy_client.expectString,
|
|
1690
|
+
buildNumber: import_smithy_client.expectString,
|
|
1691
|
+
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createTime"),
|
|
1692
|
+
deletionProtection: import_smithy_client.expectBoolean,
|
|
1693
|
+
endpoint: import_smithy_client.expectString,
|
|
1694
|
+
id: import_smithy_client.expectString,
|
|
1695
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
1696
|
+
name: import_smithy_client.expectString,
|
|
1697
|
+
provisionedMemory: import_smithy_client.expectInt32,
|
|
1698
|
+
publicConnectivity: import_smithy_client.expectBoolean,
|
|
1699
|
+
replicaCount: import_smithy_client.expectInt32,
|
|
1700
|
+
sourceSnapshotId: import_smithy_client.expectString,
|
|
1701
|
+
status: import_smithy_client.expectString,
|
|
1702
|
+
statusReason: import_smithy_client.expectString,
|
|
1703
|
+
vectorSearchConfiguration: import_smithy_client._json
|
|
1704
|
+
});
|
|
1705
|
+
Object.assign(contents, doc);
|
|
1706
|
+
return contents;
|
|
1707
|
+
}, "de_StartGraphCommand");
|
|
1655
1708
|
var de_StartImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1656
1709
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1657
1710
|
return de_CommandError(output, context);
|
|
@@ -1673,6 +1726,34 @@ var de_StartImportTaskCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1673
1726
|
Object.assign(contents, doc);
|
|
1674
1727
|
return contents;
|
|
1675
1728
|
}, "de_StartImportTaskCommand");
|
|
1729
|
+
var de_StopGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1730
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1731
|
+
return de_CommandError(output, context);
|
|
1732
|
+
}
|
|
1733
|
+
const contents = (0, import_smithy_client.map)({
|
|
1734
|
+
$metadata: deserializeMetadata(output)
|
|
1735
|
+
});
|
|
1736
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1737
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1738
|
+
arn: import_smithy_client.expectString,
|
|
1739
|
+
buildNumber: import_smithy_client.expectString,
|
|
1740
|
+
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createTime"),
|
|
1741
|
+
deletionProtection: import_smithy_client.expectBoolean,
|
|
1742
|
+
endpoint: import_smithy_client.expectString,
|
|
1743
|
+
id: import_smithy_client.expectString,
|
|
1744
|
+
kmsKeyIdentifier: import_smithy_client.expectString,
|
|
1745
|
+
name: import_smithy_client.expectString,
|
|
1746
|
+
provisionedMemory: import_smithy_client.expectInt32,
|
|
1747
|
+
publicConnectivity: import_smithy_client.expectBoolean,
|
|
1748
|
+
replicaCount: import_smithy_client.expectInt32,
|
|
1749
|
+
sourceSnapshotId: import_smithy_client.expectString,
|
|
1750
|
+
status: import_smithy_client.expectString,
|
|
1751
|
+
statusReason: import_smithy_client.expectString,
|
|
1752
|
+
vectorSearchConfiguration: import_smithy_client._json
|
|
1753
|
+
});
|
|
1754
|
+
Object.assign(contents, doc);
|
|
1755
|
+
return contents;
|
|
1756
|
+
}, "de_StopGraphCommand");
|
|
1676
1757
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1677
1758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1678
1759
|
return de_CommandError(output, context);
|
|
@@ -2439,6 +2520,24 @@ var StartExportTaskCommand = class extends import_smithy_client.Command.classBui
|
|
|
2439
2520
|
}
|
|
2440
2521
|
};
|
|
2441
2522
|
|
|
2523
|
+
// src/commands/StartGraphCommand.ts
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
|
|
2527
|
+
var StartGraphCommand = class extends import_smithy_client.Command.classBuilder().ep({
|
|
2528
|
+
...commonParams,
|
|
2529
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2530
|
+
}).m(function(Command, cs, config, o) {
|
|
2531
|
+
return [
|
|
2532
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2533
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2534
|
+
];
|
|
2535
|
+
}).s("AmazonNeptuneGraph", "StartGraph", {}).n("NeptuneGraphClient", "StartGraphCommand").f(void 0, void 0).ser(se_StartGraphCommand).de(de_StartGraphCommand).build() {
|
|
2536
|
+
static {
|
|
2537
|
+
__name(this, "StartGraphCommand");
|
|
2538
|
+
}
|
|
2539
|
+
};
|
|
2540
|
+
|
|
2442
2541
|
// src/commands/StartImportTaskCommand.ts
|
|
2443
2542
|
|
|
2444
2543
|
|
|
@@ -2457,6 +2556,24 @@ var StartImportTaskCommand = class extends import_smithy_client.Command.classBui
|
|
|
2457
2556
|
}
|
|
2458
2557
|
};
|
|
2459
2558
|
|
|
2559
|
+
// src/commands/StopGraphCommand.ts
|
|
2560
|
+
|
|
2561
|
+
|
|
2562
|
+
|
|
2563
|
+
var StopGraphCommand = class extends import_smithy_client.Command.classBuilder().ep({
|
|
2564
|
+
...commonParams,
|
|
2565
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2566
|
+
}).m(function(Command, cs, config, o) {
|
|
2567
|
+
return [
|
|
2568
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2569
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2570
|
+
];
|
|
2571
|
+
}).s("AmazonNeptuneGraph", "StopGraph", {}).n("NeptuneGraphClient", "StopGraphCommand").f(void 0, void 0).ser(se_StopGraphCommand).de(de_StopGraphCommand).build() {
|
|
2572
|
+
static {
|
|
2573
|
+
__name(this, "StopGraphCommand");
|
|
2574
|
+
}
|
|
2575
|
+
};
|
|
2576
|
+
|
|
2460
2577
|
// src/commands/TagResourceCommand.ts
|
|
2461
2578
|
|
|
2462
2579
|
|
|
@@ -2541,7 +2658,9 @@ var commands = {
|
|
|
2541
2658
|
ResetGraphCommand,
|
|
2542
2659
|
RestoreGraphFromSnapshotCommand,
|
|
2543
2660
|
StartExportTaskCommand,
|
|
2661
|
+
StartGraphCommand,
|
|
2544
2662
|
StartImportTaskCommand,
|
|
2663
|
+
StopGraphCommand,
|
|
2545
2664
|
TagResourceCommand,
|
|
2546
2665
|
UntagResourceCommand,
|
|
2547
2666
|
UpdateGraphCommand
|
|
@@ -2837,9 +2956,49 @@ var waitUntilGraphSnapshotDeleted = /* @__PURE__ */ __name(async (params, input)
|
|
|
2837
2956
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
2838
2957
|
}, "waitUntilGraphSnapshotDeleted");
|
|
2839
2958
|
|
|
2840
|
-
// src/waiters/
|
|
2959
|
+
// src/waiters/waitForGraphStopped.ts
|
|
2841
2960
|
|
|
2842
2961
|
var checkState7 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2962
|
+
let reason;
|
|
2963
|
+
try {
|
|
2964
|
+
const result = await client.send(new GetGraphCommand(input));
|
|
2965
|
+
reason = result;
|
|
2966
|
+
try {
|
|
2967
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2968
|
+
return result.status;
|
|
2969
|
+
}, "returnComparator");
|
|
2970
|
+
if (returnComparator() === "STOPPED") {
|
|
2971
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2972
|
+
}
|
|
2973
|
+
} catch (e) {
|
|
2974
|
+
}
|
|
2975
|
+
try {
|
|
2976
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2977
|
+
return result.status != "STOPPING";
|
|
2978
|
+
}, "returnComparator");
|
|
2979
|
+
if (returnComparator() == true) {
|
|
2980
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2981
|
+
}
|
|
2982
|
+
} catch (e) {
|
|
2983
|
+
}
|
|
2984
|
+
} catch (exception) {
|
|
2985
|
+
reason = exception;
|
|
2986
|
+
}
|
|
2987
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2988
|
+
}, "checkState");
|
|
2989
|
+
var waitForGraphStopped = /* @__PURE__ */ __name(async (params, input) => {
|
|
2990
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 1800 };
|
|
2991
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
|
|
2992
|
+
}, "waitForGraphStopped");
|
|
2993
|
+
var waitUntilGraphStopped = /* @__PURE__ */ __name(async (params, input) => {
|
|
2994
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 1800 };
|
|
2995
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState7);
|
|
2996
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2997
|
+
}, "waitUntilGraphStopped");
|
|
2998
|
+
|
|
2999
|
+
// src/waiters/waitForImportTaskCancelled.ts
|
|
3000
|
+
|
|
3001
|
+
var checkState8 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2843
3002
|
let reason;
|
|
2844
3003
|
try {
|
|
2845
3004
|
const result = await client.send(new GetImportTaskCommand(input));
|
|
@@ -2869,17 +3028,17 @@ var checkState7 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
2869
3028
|
}, "checkState");
|
|
2870
3029
|
var waitForImportTaskCancelled = /* @__PURE__ */ __name(async (params, input) => {
|
|
2871
3030
|
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
2872
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
3031
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
|
|
2873
3032
|
}, "waitForImportTaskCancelled");
|
|
2874
3033
|
var waitUntilImportTaskCancelled = /* @__PURE__ */ __name(async (params, input) => {
|
|
2875
3034
|
const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
|
|
2876
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
3035
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
|
|
2877
3036
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
2878
3037
|
}, "waitUntilImportTaskCancelled");
|
|
2879
3038
|
|
|
2880
3039
|
// src/waiters/waitForImportTaskSuccessful.ts
|
|
2881
3040
|
|
|
2882
|
-
var
|
|
3041
|
+
var checkState9 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2883
3042
|
let reason;
|
|
2884
3043
|
try {
|
|
2885
3044
|
const result = await client.send(new GetImportTaskCommand(input));
|
|
@@ -2936,17 +3095,17 @@ var checkState8 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
2936
3095
|
}, "checkState");
|
|
2937
3096
|
var waitForImportTaskSuccessful = /* @__PURE__ */ __name(async (params, input) => {
|
|
2938
3097
|
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
2939
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
3098
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState9);
|
|
2940
3099
|
}, "waitForImportTaskSuccessful");
|
|
2941
3100
|
var waitUntilImportTaskSuccessful = /* @__PURE__ */ __name(async (params, input) => {
|
|
2942
3101
|
const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
|
|
2943
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
3102
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState9);
|
|
2944
3103
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
2945
3104
|
}, "waitUntilImportTaskSuccessful");
|
|
2946
3105
|
|
|
2947
3106
|
// src/waiters/waitForPrivateGraphEndpointAvailable.ts
|
|
2948
3107
|
|
|
2949
|
-
var
|
|
3108
|
+
var checkState10 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2950
3109
|
let reason;
|
|
2951
3110
|
try {
|
|
2952
3111
|
const result = await client.send(new GetPrivateGraphEndpointCommand(input));
|
|
@@ -2985,17 +3144,17 @@ var checkState9 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
2985
3144
|
}, "checkState");
|
|
2986
3145
|
var waitForPrivateGraphEndpointAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2987
3146
|
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
2988
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
3147
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState10);
|
|
2989
3148
|
}, "waitForPrivateGraphEndpointAvailable");
|
|
2990
3149
|
var waitUntilPrivateGraphEndpointAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2991
3150
|
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
2992
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
3151
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState10);
|
|
2993
3152
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
2994
3153
|
}, "waitUntilPrivateGraphEndpointAvailable");
|
|
2995
3154
|
|
|
2996
3155
|
// src/waiters/waitForPrivateGraphEndpointDeleted.ts
|
|
2997
3156
|
|
|
2998
|
-
var
|
|
3157
|
+
var checkState11 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2999
3158
|
let reason;
|
|
3000
3159
|
try {
|
|
3001
3160
|
const result = await client.send(new GetPrivateGraphEndpointCommand(input));
|
|
@@ -3019,11 +3178,11 @@ var checkState10 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
3019
3178
|
}, "checkState");
|
|
3020
3179
|
var waitForPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
3021
3180
|
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
3022
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
3181
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState11);
|
|
3023
3182
|
}, "waitForPrivateGraphEndpointDeleted");
|
|
3024
3183
|
var waitUntilPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
3025
3184
|
const serviceDefaults = { minDelay: 10, maxDelay: 1800 };
|
|
3026
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
3185
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState11);
|
|
3027
3186
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
3028
3187
|
}, "waitUntilPrivateGraphEndpointDeleted");
|
|
3029
3188
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -3062,7 +3221,9 @@ var waitUntilPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params,
|
|
|
3062
3221
|
ResetGraphCommand,
|
|
3063
3222
|
RestoreGraphFromSnapshotCommand,
|
|
3064
3223
|
StartExportTaskCommand,
|
|
3224
|
+
StartGraphCommand,
|
|
3065
3225
|
StartImportTaskCommand,
|
|
3226
|
+
StopGraphCommand,
|
|
3066
3227
|
TagResourceCommand,
|
|
3067
3228
|
UntagResourceCommand,
|
|
3068
3229
|
UpdateGraphCommand,
|
|
@@ -3083,6 +3244,8 @@ var waitUntilPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params,
|
|
|
3083
3244
|
waitUntilGraphSnapshotAvailable,
|
|
3084
3245
|
waitForGraphSnapshotDeleted,
|
|
3085
3246
|
waitUntilGraphSnapshotDeleted,
|
|
3247
|
+
waitForGraphStopped,
|
|
3248
|
+
waitUntilGraphStopped,
|
|
3086
3249
|
waitForImportTaskCancelled,
|
|
3087
3250
|
waitUntilImportTaskCancelled,
|
|
3088
3251
|
waitForImportTaskSuccessful,
|
package/dist-es/NeptuneGraph.js
CHANGED
|
@@ -27,7 +27,9 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
27
27
|
import { ResetGraphCommand } from "./commands/ResetGraphCommand";
|
|
28
28
|
import { RestoreGraphFromSnapshotCommand, } from "./commands/RestoreGraphFromSnapshotCommand";
|
|
29
29
|
import { StartExportTaskCommand, } from "./commands/StartExportTaskCommand";
|
|
30
|
+
import { StartGraphCommand } from "./commands/StartGraphCommand";
|
|
30
31
|
import { StartImportTaskCommand, } from "./commands/StartImportTaskCommand";
|
|
32
|
+
import { StopGraphCommand } from "./commands/StopGraphCommand";
|
|
31
33
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
32
34
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
33
35
|
import { UpdateGraphCommand } from "./commands/UpdateGraphCommand";
|
|
@@ -61,7 +63,9 @@ const commands = {
|
|
|
61
63
|
ResetGraphCommand,
|
|
62
64
|
RestoreGraphFromSnapshotCommand,
|
|
63
65
|
StartExportTaskCommand,
|
|
66
|
+
StartGraphCommand,
|
|
64
67
|
StartImportTaskCommand,
|
|
68
|
+
StopGraphCommand,
|
|
65
69
|
TagResourceCommand,
|
|
66
70
|
UntagResourceCommand,
|
|
67
71
|
UpdateGraphCommand,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StartGraphCommand, se_StartGraphCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartGraphCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` },
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonNeptuneGraph", "StartGraph", {})
|
|
20
|
+
.n("NeptuneGraphClient", "StartGraphCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(se_StartGraphCommand)
|
|
23
|
+
.de(de_StartGraphCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_StopGraphCommand, se_StopGraphCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StopGraphCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` },
|
|
12
|
+
})
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
16
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("AmazonNeptuneGraph", "StopGraph", {})
|
|
20
|
+
.n("NeptuneGraphClient", "StopGraphCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(se_StopGraphCommand)
|
|
23
|
+
.de(de_StopGraphCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -26,7 +26,9 @@ export * from "./ListTagsForResourceCommand";
|
|
|
26
26
|
export * from "./ResetGraphCommand";
|
|
27
27
|
export * from "./RestoreGraphFromSnapshotCommand";
|
|
28
28
|
export * from "./StartExportTaskCommand";
|
|
29
|
+
export * from "./StartGraphCommand";
|
|
29
30
|
export * from "./StartImportTaskCommand";
|
|
31
|
+
export * from "./StopGraphCommand";
|
|
30
32
|
export * from "./TagResourceCommand";
|
|
31
33
|
export * from "./UntagResourceCommand";
|
|
32
34
|
export * from "./UpdateGraphCommand";
|
|
@@ -141,6 +141,9 @@ export const GraphStatus = {
|
|
|
141
141
|
IMPORTING: "IMPORTING",
|
|
142
142
|
RESETTING: "RESETTING",
|
|
143
143
|
SNAPSHOTTING: "SNAPSHOTTING",
|
|
144
|
+
STARTING: "STARTING",
|
|
145
|
+
STOPPED: "STOPPED",
|
|
146
|
+
STOPPING: "STOPPING",
|
|
144
147
|
UPDATING: "UPDATING",
|
|
145
148
|
};
|
|
146
149
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
@@ -431,6 +431,15 @@ export const se_StartExportTaskCommand = async (input, context) => {
|
|
|
431
431
|
b.m("POST").h(headers).b(body);
|
|
432
432
|
return b.build();
|
|
433
433
|
};
|
|
434
|
+
export const se_StartGraphCommand = async (input, context) => {
|
|
435
|
+
const b = rb(input, context);
|
|
436
|
+
const headers = {};
|
|
437
|
+
b.bp("/graphs/{graphIdentifier}/start");
|
|
438
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
439
|
+
let body;
|
|
440
|
+
b.m("POST").h(headers).b(body);
|
|
441
|
+
return b.build();
|
|
442
|
+
};
|
|
434
443
|
export const se_StartImportTaskCommand = async (input, context) => {
|
|
435
444
|
const b = rb(input, context);
|
|
436
445
|
const headers = {
|
|
@@ -451,6 +460,15 @@ export const se_StartImportTaskCommand = async (input, context) => {
|
|
|
451
460
|
b.m("POST").h(headers).b(body);
|
|
452
461
|
return b.build();
|
|
453
462
|
};
|
|
463
|
+
export const se_StopGraphCommand = async (input, context) => {
|
|
464
|
+
const b = rb(input, context);
|
|
465
|
+
const headers = {};
|
|
466
|
+
b.bp("/graphs/{graphIdentifier}/stop");
|
|
467
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
468
|
+
let body;
|
|
469
|
+
b.m("POST").h(headers).b(body);
|
|
470
|
+
return b.build();
|
|
471
|
+
};
|
|
454
472
|
export const se_TagResourceCommand = async (input, context) => {
|
|
455
473
|
const b = rb(input, context);
|
|
456
474
|
const headers = {
|
|
@@ -1037,6 +1055,34 @@ export const de_StartExportTaskCommand = async (output, context) => {
|
|
|
1037
1055
|
Object.assign(contents, doc);
|
|
1038
1056
|
return contents;
|
|
1039
1057
|
};
|
|
1058
|
+
export const de_StartGraphCommand = async (output, context) => {
|
|
1059
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1060
|
+
return de_CommandError(output, context);
|
|
1061
|
+
}
|
|
1062
|
+
const contents = map({
|
|
1063
|
+
$metadata: deserializeMetadata(output),
|
|
1064
|
+
});
|
|
1065
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1066
|
+
const doc = take(data, {
|
|
1067
|
+
arn: __expectString,
|
|
1068
|
+
buildNumber: __expectString,
|
|
1069
|
+
createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1070
|
+
deletionProtection: __expectBoolean,
|
|
1071
|
+
endpoint: __expectString,
|
|
1072
|
+
id: __expectString,
|
|
1073
|
+
kmsKeyIdentifier: __expectString,
|
|
1074
|
+
name: __expectString,
|
|
1075
|
+
provisionedMemory: __expectInt32,
|
|
1076
|
+
publicConnectivity: __expectBoolean,
|
|
1077
|
+
replicaCount: __expectInt32,
|
|
1078
|
+
sourceSnapshotId: __expectString,
|
|
1079
|
+
status: __expectString,
|
|
1080
|
+
statusReason: __expectString,
|
|
1081
|
+
vectorSearchConfiguration: _json,
|
|
1082
|
+
});
|
|
1083
|
+
Object.assign(contents, doc);
|
|
1084
|
+
return contents;
|
|
1085
|
+
};
|
|
1040
1086
|
export const de_StartImportTaskCommand = async (output, context) => {
|
|
1041
1087
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1042
1088
|
return de_CommandError(output, context);
|
|
@@ -1058,6 +1104,34 @@ export const de_StartImportTaskCommand = async (output, context) => {
|
|
|
1058
1104
|
Object.assign(contents, doc);
|
|
1059
1105
|
return contents;
|
|
1060
1106
|
};
|
|
1107
|
+
export const de_StopGraphCommand = async (output, context) => {
|
|
1108
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1109
|
+
return de_CommandError(output, context);
|
|
1110
|
+
}
|
|
1111
|
+
const contents = map({
|
|
1112
|
+
$metadata: deserializeMetadata(output),
|
|
1113
|
+
});
|
|
1114
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1115
|
+
const doc = take(data, {
|
|
1116
|
+
arn: __expectString,
|
|
1117
|
+
buildNumber: __expectString,
|
|
1118
|
+
createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1119
|
+
deletionProtection: __expectBoolean,
|
|
1120
|
+
endpoint: __expectString,
|
|
1121
|
+
id: __expectString,
|
|
1122
|
+
kmsKeyIdentifier: __expectString,
|
|
1123
|
+
name: __expectString,
|
|
1124
|
+
provisionedMemory: __expectInt32,
|
|
1125
|
+
publicConnectivity: __expectBoolean,
|
|
1126
|
+
replicaCount: __expectInt32,
|
|
1127
|
+
sourceSnapshotId: __expectString,
|
|
1128
|
+
status: __expectString,
|
|
1129
|
+
statusReason: __expectString,
|
|
1130
|
+
vectorSearchConfiguration: _json,
|
|
1131
|
+
});
|
|
1132
|
+
Object.assign(contents, doc);
|
|
1133
|
+
return contents;
|
|
1134
|
+
};
|
|
1061
1135
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1062
1136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1063
1137
|
return de_CommandError(output, context);
|
package/dist-es/waiters/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./waitForGraphAvailable";
|
|
|
4
4
|
export * from "./waitForGraphDeleted";
|
|
5
5
|
export * from "./waitForGraphSnapshotAvailable";
|
|
6
6
|
export * from "./waitForGraphSnapshotDeleted";
|
|
7
|
+
export * from "./waitForGraphStopped";
|
|
7
8
|
export * from "./waitForImportTaskCancelled";
|
|
8
9
|
export * from "./waitForImportTaskSuccessful";
|
|
9
10
|
export * from "./waitForPrivateGraphEndpointAvailable";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { GetGraphCommand } from "../commands/GetGraphCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new GetGraphCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.status;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "STOPPED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.status != "STOPPING";
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() == true) {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForGraphStopped = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 1800 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilGraphStopped = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 1800 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|