@aws-sdk/client-neptune-graph 3.540.0 → 3.545.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 +8 -0
- package/dist-cjs/index.js +63 -1
- package/dist-es/NeptuneGraph.js +2 -0
- package/dist-es/commands/StartImportTaskCommand.js +25 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +38 -0
- package/dist-es/waiters/waitForImportTaskCancelled.js +1 -1
- package/dist-types/NeptuneGraph.d.ts +7 -0
- package/dist-types/NeptuneGraphClient.d.ts +3 -2
- package/dist-types/commands/CreateGraphCommand.d.ts +1 -1
- package/dist-types/commands/CreatePrivateGraphEndpointCommand.d.ts +4 -1
- package/dist-types/commands/DeleteGraphCommand.d.ts +1 -1
- package/dist-types/commands/ExecuteQueryCommand.d.ts +1 -9
- package/dist-types/commands/GetGraphCommand.d.ts +1 -1
- 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/StartImportTaskCommand.d.ts +99 -0
- package/dist-types/commands/UpdateGraphCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +91 -3
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/NeptuneGraph.d.ts +17 -0
- package/dist-types/ts3.4/NeptuneGraphClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/StartImportTaskCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +18 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -396,6 +396,14 @@ RestoreGraphFromSnapshot
|
|
|
396
396
|
|
|
397
397
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/neptune-graph/command/RestoreGraphFromSnapshotCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/RestoreGraphFromSnapshotCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-neptune-graph/Interface/RestoreGraphFromSnapshotCommandOutput/)
|
|
398
398
|
|
|
399
|
+
</details>
|
|
400
|
+
<details>
|
|
401
|
+
<summary>
|
|
402
|
+
StartImportTask
|
|
403
|
+
</summary>
|
|
404
|
+
|
|
405
|
+
[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/)
|
|
406
|
+
|
|
399
407
|
</details>
|
|
400
408
|
<details>
|
|
401
409
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __export(src_exports, {
|
|
|
67
67
|
RestoreGraphFromSnapshotCommand: () => RestoreGraphFromSnapshotCommand,
|
|
68
68
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
69
69
|
SnapshotStatus: () => SnapshotStatus,
|
|
70
|
+
StartImportTaskCommand: () => StartImportTaskCommand,
|
|
70
71
|
TagResourceCommand: () => TagResourceCommand,
|
|
71
72
|
ThrottlingException: () => ThrottlingException,
|
|
72
73
|
UnprocessableException: () => UnprocessableException,
|
|
@@ -443,6 +444,7 @@ var GraphStatus = {
|
|
|
443
444
|
CREATING: "CREATING",
|
|
444
445
|
DELETING: "DELETING",
|
|
445
446
|
FAILED: "FAILED",
|
|
447
|
+
IMPORTING: "IMPORTING",
|
|
446
448
|
RESETTING: "RESETTING",
|
|
447
449
|
SNAPSHOTTING: "SNAPSHOTTING",
|
|
448
450
|
UPDATING: "UPDATING"
|
|
@@ -903,6 +905,26 @@ var se_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
903
905
|
b.m("POST").h(headers).b(body);
|
|
904
906
|
return b.build();
|
|
905
907
|
}, "se_RestoreGraphFromSnapshotCommand");
|
|
908
|
+
var se_StartImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
909
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
910
|
+
const headers = {
|
|
911
|
+
"content-type": "application/json"
|
|
912
|
+
};
|
|
913
|
+
b.bp("/graphs/{graphIdentifier}/importtasks");
|
|
914
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
915
|
+
let body;
|
|
916
|
+
body = JSON.stringify(
|
|
917
|
+
(0, import_smithy_client.take)(input, {
|
|
918
|
+
failOnError: [],
|
|
919
|
+
format: [],
|
|
920
|
+
importOptions: (_) => (0, import_smithy_client._json)(_),
|
|
921
|
+
roleArn: [],
|
|
922
|
+
source: []
|
|
923
|
+
})
|
|
924
|
+
);
|
|
925
|
+
b.m("POST").h(headers).b(body);
|
|
926
|
+
return b.build();
|
|
927
|
+
}, "se_StartImportTaskCommand");
|
|
906
928
|
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
907
929
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
908
930
|
const headers = {
|
|
@@ -1409,6 +1431,26 @@ var de_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1409
1431
|
Object.assign(contents, doc);
|
|
1410
1432
|
return contents;
|
|
1411
1433
|
}, "de_RestoreGraphFromSnapshotCommand");
|
|
1434
|
+
var de_StartImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1435
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1436
|
+
return de_CommandError(output, context);
|
|
1437
|
+
}
|
|
1438
|
+
const contents = (0, import_smithy_client.map)({
|
|
1439
|
+
$metadata: deserializeMetadata(output)
|
|
1440
|
+
});
|
|
1441
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1442
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1443
|
+
format: import_smithy_client.expectString,
|
|
1444
|
+
graphId: import_smithy_client.expectString,
|
|
1445
|
+
importOptions: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1446
|
+
roleArn: import_smithy_client.expectString,
|
|
1447
|
+
source: import_smithy_client.expectString,
|
|
1448
|
+
status: import_smithy_client.expectString,
|
|
1449
|
+
taskId: import_smithy_client.expectString
|
|
1450
|
+
});
|
|
1451
|
+
Object.assign(contents, doc);
|
|
1452
|
+
return contents;
|
|
1453
|
+
}, "de_StartImportTaskCommand");
|
|
1412
1454
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1413
1455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1414
1456
|
return de_CommandError(output, context);
|
|
@@ -2094,6 +2136,24 @@ var _RestoreGraphFromSnapshotCommand = class _RestoreGraphFromSnapshotCommand ex
|
|
|
2094
2136
|
__name(_RestoreGraphFromSnapshotCommand, "RestoreGraphFromSnapshotCommand");
|
|
2095
2137
|
var RestoreGraphFromSnapshotCommand = _RestoreGraphFromSnapshotCommand;
|
|
2096
2138
|
|
|
2139
|
+
// src/commands/StartImportTaskCommand.ts
|
|
2140
|
+
|
|
2141
|
+
|
|
2142
|
+
|
|
2143
|
+
|
|
2144
|
+
var _StartImportTaskCommand = class _StartImportTaskCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2145
|
+
...commonParams,
|
|
2146
|
+
ApiType: { type: "staticContextParams", value: `ControlPlane` }
|
|
2147
|
+
}).m(function(Command, cs, config, o) {
|
|
2148
|
+
return [
|
|
2149
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2150
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2151
|
+
];
|
|
2152
|
+
}).s("AmazonNeptuneGraph", "StartImportTask", {}).n("NeptuneGraphClient", "StartImportTaskCommand").f(void 0, void 0).ser(se_StartImportTaskCommand).de(de_StartImportTaskCommand).build() {
|
|
2153
|
+
};
|
|
2154
|
+
__name(_StartImportTaskCommand, "StartImportTaskCommand");
|
|
2155
|
+
var StartImportTaskCommand = _StartImportTaskCommand;
|
|
2156
|
+
|
|
2097
2157
|
// src/commands/TagResourceCommand.ts
|
|
2098
2158
|
|
|
2099
2159
|
|
|
@@ -2174,6 +2234,7 @@ var commands = {
|
|
|
2174
2234
|
ListTagsForResourceCommand,
|
|
2175
2235
|
ResetGraphCommand,
|
|
2176
2236
|
RestoreGraphFromSnapshotCommand,
|
|
2237
|
+
StartImportTaskCommand,
|
|
2177
2238
|
TagResourceCommand,
|
|
2178
2239
|
UntagResourceCommand,
|
|
2179
2240
|
UpdateGraphCommand
|
|
@@ -2375,7 +2436,7 @@ var checkState5 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
2375
2436
|
reason = result;
|
|
2376
2437
|
try {
|
|
2377
2438
|
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2378
|
-
return result.status != "CANCELLING";
|
|
2439
|
+
return result.status != "CANCELLING" && result.status != "CANCELLED";
|
|
2379
2440
|
}, "returnComparator");
|
|
2380
2441
|
if (returnComparator() == true) {
|
|
2381
2442
|
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
@@ -2587,6 +2648,7 @@ var waitUntilPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params,
|
|
|
2587
2648
|
ListTagsForResourceCommand,
|
|
2588
2649
|
ResetGraphCommand,
|
|
2589
2650
|
RestoreGraphFromSnapshotCommand,
|
|
2651
|
+
StartImportTaskCommand,
|
|
2590
2652
|
TagResourceCommand,
|
|
2591
2653
|
UntagResourceCommand,
|
|
2592
2654
|
UpdateGraphCommand,
|
package/dist-es/NeptuneGraph.js
CHANGED
|
@@ -23,6 +23,7 @@ import { ListQueriesCommand } from "./commands/ListQueriesCommand";
|
|
|
23
23
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
24
24
|
import { ResetGraphCommand } from "./commands/ResetGraphCommand";
|
|
25
25
|
import { RestoreGraphFromSnapshotCommand, } from "./commands/RestoreGraphFromSnapshotCommand";
|
|
26
|
+
import { StartImportTaskCommand, } from "./commands/StartImportTaskCommand";
|
|
26
27
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
27
28
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
28
29
|
import { UpdateGraphCommand } from "./commands/UpdateGraphCommand";
|
|
@@ -52,6 +53,7 @@ const commands = {
|
|
|
52
53
|
ListTagsForResourceCommand,
|
|
53
54
|
ResetGraphCommand,
|
|
54
55
|
RestoreGraphFromSnapshotCommand,
|
|
56
|
+
StartImportTaskCommand,
|
|
55
57
|
TagResourceCommand,
|
|
56
58
|
UntagResourceCommand,
|
|
57
59
|
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_StartImportTaskCommand, se_StartImportTaskCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartImportTaskCommand 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", "StartImportTask", {})
|
|
20
|
+
.n("NeptuneGraphClient", "StartImportTaskCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(se_StartImportTaskCommand)
|
|
23
|
+
.de(de_StartImportTaskCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from "./ListQueriesCommand";
|
|
|
22
22
|
export * from "./ListTagsForResourceCommand";
|
|
23
23
|
export * from "./ResetGraphCommand";
|
|
24
24
|
export * from "./RestoreGraphFromSnapshotCommand";
|
|
25
|
+
export * from "./StartImportTaskCommand";
|
|
25
26
|
export * from "./TagResourceCommand";
|
|
26
27
|
export * from "./UntagResourceCommand";
|
|
27
28
|
export * from "./UpdateGraphCommand";
|
|
@@ -378,6 +378,24 @@ export const se_RestoreGraphFromSnapshotCommand = async (input, context) => {
|
|
|
378
378
|
b.m("POST").h(headers).b(body);
|
|
379
379
|
return b.build();
|
|
380
380
|
};
|
|
381
|
+
export const se_StartImportTaskCommand = async (input, context) => {
|
|
382
|
+
const b = rb(input, context);
|
|
383
|
+
const headers = {
|
|
384
|
+
"content-type": "application/json",
|
|
385
|
+
};
|
|
386
|
+
b.bp("/graphs/{graphIdentifier}/importtasks");
|
|
387
|
+
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
388
|
+
let body;
|
|
389
|
+
body = JSON.stringify(take(input, {
|
|
390
|
+
failOnError: [],
|
|
391
|
+
format: [],
|
|
392
|
+
importOptions: (_) => _json(_),
|
|
393
|
+
roleArn: [],
|
|
394
|
+
source: [],
|
|
395
|
+
}));
|
|
396
|
+
b.m("POST").h(headers).b(body);
|
|
397
|
+
return b.build();
|
|
398
|
+
};
|
|
381
399
|
export const se_TagResourceCommand = async (input, context) => {
|
|
382
400
|
const b = rb(input, context);
|
|
383
401
|
const headers = {
|
|
@@ -880,6 +898,26 @@ export const de_RestoreGraphFromSnapshotCommand = async (output, context) => {
|
|
|
880
898
|
Object.assign(contents, doc);
|
|
881
899
|
return contents;
|
|
882
900
|
};
|
|
901
|
+
export const de_StartImportTaskCommand = async (output, context) => {
|
|
902
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
903
|
+
return de_CommandError(output, context);
|
|
904
|
+
}
|
|
905
|
+
const contents = map({
|
|
906
|
+
$metadata: deserializeMetadata(output),
|
|
907
|
+
});
|
|
908
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
909
|
+
const doc = take(data, {
|
|
910
|
+
format: __expectString,
|
|
911
|
+
graphId: __expectString,
|
|
912
|
+
importOptions: (_) => _json(__expectUnion(_)),
|
|
913
|
+
roleArn: __expectString,
|
|
914
|
+
source: __expectString,
|
|
915
|
+
status: __expectString,
|
|
916
|
+
taskId: __expectString,
|
|
917
|
+
});
|
|
918
|
+
Object.assign(contents, doc);
|
|
919
|
+
return contents;
|
|
920
|
+
};
|
|
883
921
|
export const de_TagResourceCommand = async (output, context) => {
|
|
884
922
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
885
923
|
return de_CommandError(output, context);
|
|
@@ -7,7 +7,7 @@ const checkState = async (client, input) => {
|
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
9
|
const returnComparator = () => {
|
|
10
|
-
return result.status != "CANCELLING";
|
|
10
|
+
return result.status != "CANCELLING" && result.status != "CANCELLED";
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() == true) {
|
|
13
13
|
return { state: WaiterState.FAILURE, reason };
|
|
@@ -23,6 +23,7 @@ import { ListQueriesCommandInput, ListQueriesCommandOutput } from "./commands/Li
|
|
|
23
23
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
24
24
|
import { ResetGraphCommandInput, ResetGraphCommandOutput } from "./commands/ResetGraphCommand";
|
|
25
25
|
import { RestoreGraphFromSnapshotCommandInput, RestoreGraphFromSnapshotCommandOutput } from "./commands/RestoreGraphFromSnapshotCommand";
|
|
26
|
+
import { StartImportTaskCommandInput, StartImportTaskCommandOutput } from "./commands/StartImportTaskCommand";
|
|
26
27
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
27
28
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
28
29
|
import { UpdateGraphCommandInput, UpdateGraphCommandOutput } from "./commands/UpdateGraphCommand";
|
|
@@ -175,6 +176,12 @@ export interface NeptuneGraph {
|
|
|
175
176
|
restoreGraphFromSnapshot(args: RestoreGraphFromSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<RestoreGraphFromSnapshotCommandOutput>;
|
|
176
177
|
restoreGraphFromSnapshot(args: RestoreGraphFromSnapshotCommandInput, cb: (err: any, data?: RestoreGraphFromSnapshotCommandOutput) => void): void;
|
|
177
178
|
restoreGraphFromSnapshot(args: RestoreGraphFromSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreGraphFromSnapshotCommandOutput) => void): void;
|
|
179
|
+
/**
|
|
180
|
+
* @see {@link StartImportTaskCommand}
|
|
181
|
+
*/
|
|
182
|
+
startImportTask(args: StartImportTaskCommandInput, options?: __HttpHandlerOptions): Promise<StartImportTaskCommandOutput>;
|
|
183
|
+
startImportTask(args: StartImportTaskCommandInput, cb: (err: any, data?: StartImportTaskCommandOutput) => void): void;
|
|
184
|
+
startImportTask(args: StartImportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartImportTaskCommandOutput) => void): void;
|
|
178
185
|
/**
|
|
179
186
|
* @see {@link TagResourceCommand}
|
|
180
187
|
*/
|
|
@@ -31,6 +31,7 @@ import { ListQueriesCommandInput, ListQueriesCommandOutput } from "./commands/Li
|
|
|
31
31
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
32
32
|
import { ResetGraphCommandInput, ResetGraphCommandOutput } from "./commands/ResetGraphCommand";
|
|
33
33
|
import { RestoreGraphFromSnapshotCommandInput, RestoreGraphFromSnapshotCommandOutput } from "./commands/RestoreGraphFromSnapshotCommand";
|
|
34
|
+
import { StartImportTaskCommandInput, StartImportTaskCommandOutput } from "./commands/StartImportTaskCommand";
|
|
34
35
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
35
36
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
36
37
|
import { UpdateGraphCommandInput, UpdateGraphCommandOutput } from "./commands/UpdateGraphCommand";
|
|
@@ -40,11 +41,11 @@ export { __Client };
|
|
|
40
41
|
/**
|
|
41
42
|
* @public
|
|
42
43
|
*/
|
|
43
|
-
export type ServiceInputTypes = CancelImportTaskCommandInput | CancelQueryCommandInput | CreateGraphCommandInput | CreateGraphSnapshotCommandInput | CreateGraphUsingImportTaskCommandInput | CreatePrivateGraphEndpointCommandInput | DeleteGraphCommandInput | DeleteGraphSnapshotCommandInput | DeletePrivateGraphEndpointCommandInput | ExecuteQueryCommandInput | GetGraphCommandInput | GetGraphSnapshotCommandInput | GetGraphSummaryCommandInput | GetImportTaskCommandInput | GetPrivateGraphEndpointCommandInput | GetQueryCommandInput | ListGraphSnapshotsCommandInput | ListGraphsCommandInput | ListImportTasksCommandInput | ListPrivateGraphEndpointsCommandInput | ListQueriesCommandInput | ListTagsForResourceCommandInput | ResetGraphCommandInput | RestoreGraphFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGraphCommandInput;
|
|
44
|
+
export type ServiceInputTypes = CancelImportTaskCommandInput | CancelQueryCommandInput | CreateGraphCommandInput | CreateGraphSnapshotCommandInput | CreateGraphUsingImportTaskCommandInput | CreatePrivateGraphEndpointCommandInput | DeleteGraphCommandInput | DeleteGraphSnapshotCommandInput | DeletePrivateGraphEndpointCommandInput | ExecuteQueryCommandInput | GetGraphCommandInput | GetGraphSnapshotCommandInput | GetGraphSummaryCommandInput | GetImportTaskCommandInput | GetPrivateGraphEndpointCommandInput | GetQueryCommandInput | ListGraphSnapshotsCommandInput | ListGraphsCommandInput | ListImportTasksCommandInput | ListPrivateGraphEndpointsCommandInput | ListQueriesCommandInput | ListTagsForResourceCommandInput | ResetGraphCommandInput | RestoreGraphFromSnapshotCommandInput | StartImportTaskCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGraphCommandInput;
|
|
44
45
|
/**
|
|
45
46
|
* @public
|
|
46
47
|
*/
|
|
47
|
-
export type ServiceOutputTypes = CancelImportTaskCommandOutput | CancelQueryCommandOutput | CreateGraphCommandOutput | CreateGraphSnapshotCommandOutput | CreateGraphUsingImportTaskCommandOutput | CreatePrivateGraphEndpointCommandOutput | DeleteGraphCommandOutput | DeleteGraphSnapshotCommandOutput | DeletePrivateGraphEndpointCommandOutput | ExecuteQueryCommandOutput | GetGraphCommandOutput | GetGraphSnapshotCommandOutput | GetGraphSummaryCommandOutput | GetImportTaskCommandOutput | GetPrivateGraphEndpointCommandOutput | GetQueryCommandOutput | ListGraphSnapshotsCommandOutput | ListGraphsCommandOutput | ListImportTasksCommandOutput | ListPrivateGraphEndpointsCommandOutput | ListQueriesCommandOutput | ListTagsForResourceCommandOutput | ResetGraphCommandOutput | RestoreGraphFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGraphCommandOutput;
|
|
48
|
+
export type ServiceOutputTypes = CancelImportTaskCommandOutput | CancelQueryCommandOutput | CreateGraphCommandOutput | CreateGraphSnapshotCommandOutput | CreateGraphUsingImportTaskCommandOutput | CreatePrivateGraphEndpointCommandOutput | DeleteGraphCommandOutput | DeleteGraphSnapshotCommandOutput | DeletePrivateGraphEndpointCommandOutput | ExecuteQueryCommandOutput | GetGraphCommandOutput | GetGraphSnapshotCommandOutput | GetGraphSummaryCommandOutput | GetImportTaskCommandOutput | GetPrivateGraphEndpointCommandOutput | GetQueryCommandOutput | ListGraphSnapshotsCommandOutput | ListGraphsCommandOutput | ListImportTasksCommandOutput | ListPrivateGraphEndpointsCommandOutput | ListQueriesCommandOutput | ListTagsForResourceCommandOutput | ResetGraphCommandOutput | RestoreGraphFromSnapshotCommandOutput | StartImportTaskCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGraphCommandOutput;
|
|
48
49
|
/**
|
|
49
50
|
* @public
|
|
50
51
|
*/
|
|
@@ -53,7 +53,7 @@ declare const CreateGraphCommand_base: {
|
|
|
53
53
|
* // id: "STRING_VALUE", // required
|
|
54
54
|
* // name: "STRING_VALUE", // required
|
|
55
55
|
* // arn: "STRING_VALUE", // required
|
|
56
|
-
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
|
|
56
|
+
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
|
|
57
57
|
* // statusReason: "STRING_VALUE",
|
|
58
58
|
* // createTime: new Date("TIMESTAMP"),
|
|
59
59
|
* // provisionedMemory: Number("int"),
|
|
@@ -27,7 +27,10 @@ declare const CreatePrivateGraphEndpointCommand_base: {
|
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* <p>Create a private graph endpoint to allow private access from to the graph from within
|
|
30
|
-
* a VPC. You can attach security groups to the private graph endpoint
|
|
30
|
+
* a VPC. You can attach security groups to the private graph endpoint.</p>
|
|
31
|
+
* <note>
|
|
32
|
+
* <p>VPC endpoint charges apply.</p>
|
|
33
|
+
* </note>
|
|
31
34
|
* @example
|
|
32
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
36
|
* ```javascript
|
|
@@ -43,7 +43,7 @@ declare const DeleteGraphCommand_base: {
|
|
|
43
43
|
* // id: "STRING_VALUE", // required
|
|
44
44
|
* // name: "STRING_VALUE", // required
|
|
45
45
|
* // arn: "STRING_VALUE", // required
|
|
46
|
-
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
|
|
46
|
+
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
|
|
47
47
|
* // statusReason: "STRING_VALUE",
|
|
48
48
|
* // createTime: new Date("TIMESTAMP"),
|
|
49
49
|
* // provisionedMemory: Number("int"),
|
|
@@ -27,8 +27,7 @@ declare const ExecuteQueryCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Execute an openCypher query
|
|
31
|
-
* parameterized query call, you can use an HTTP request. </p>
|
|
30
|
+
* <p>Execute an openCypher query.</p>
|
|
32
31
|
* <p>
|
|
33
32
|
* When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have a policy attached
|
|
34
33
|
* that allows one of the following IAM actions in that cluster, depending on the query:
|
|
@@ -44,13 +43,6 @@ declare const ExecuteQueryCommand_base: {
|
|
|
44
43
|
* <p>neptune-graph:DeleteDataViaQuery</p>
|
|
45
44
|
* </li>
|
|
46
45
|
* </ul>
|
|
47
|
-
* <note>
|
|
48
|
-
* <p>
|
|
49
|
-
* Non-parametrized queries are not considered for plan caching. You can force plan caching with
|
|
50
|
-
* <code>planCache=enabled</code>. The plan cache will be reused only for the same exact query. Slight variations
|
|
51
|
-
* in the query will not be able to reuse the query plan cache.
|
|
52
|
-
* </p>
|
|
53
|
-
* </note>
|
|
54
46
|
* @example
|
|
55
47
|
* Use a bare-bones client and the command you need to make an API call.
|
|
56
48
|
* ```javascript
|
|
@@ -42,7 +42,7 @@ declare const GetGraphCommand_base: {
|
|
|
42
42
|
* // id: "STRING_VALUE", // required
|
|
43
43
|
* // name: "STRING_VALUE", // required
|
|
44
44
|
* // arn: "STRING_VALUE", // required
|
|
45
|
-
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
|
|
45
|
+
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
|
|
46
46
|
* // statusReason: "STRING_VALUE",
|
|
47
47
|
* // createTime: new Date("TIMESTAMP"),
|
|
48
48
|
* // provisionedMemory: Number("int"),
|
|
@@ -45,7 +45,7 @@ declare const ListGraphsCommand_base: {
|
|
|
45
45
|
* // id: "STRING_VALUE", // required
|
|
46
46
|
* // name: "STRING_VALUE", // required
|
|
47
47
|
* // arn: "STRING_VALUE", // required
|
|
48
|
-
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
|
|
48
|
+
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
|
|
49
49
|
* // provisionedMemory: Number("int"),
|
|
50
50
|
* // publicConnectivity: true || false,
|
|
51
51
|
* // endpoint: "STRING_VALUE",
|
|
@@ -43,7 +43,7 @@ declare const ResetGraphCommand_base: {
|
|
|
43
43
|
* // id: "STRING_VALUE", // required
|
|
44
44
|
* // name: "STRING_VALUE", // required
|
|
45
45
|
* // arn: "STRING_VALUE", // required
|
|
46
|
-
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
|
|
46
|
+
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
|
|
47
47
|
* // statusReason: "STRING_VALUE",
|
|
48
48
|
* // createTime: new Date("TIMESTAMP"),
|
|
49
49
|
* // provisionedMemory: Number("int"),
|
|
@@ -50,7 +50,7 @@ declare const RestoreGraphFromSnapshotCommand_base: {
|
|
|
50
50
|
* // id: "STRING_VALUE", // required
|
|
51
51
|
* // name: "STRING_VALUE", // required
|
|
52
52
|
* // arn: "STRING_VALUE", // required
|
|
53
|
-
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
|
|
53
|
+
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
|
|
54
54
|
* // statusReason: "STRING_VALUE",
|
|
55
55
|
* // createTime: new Date("TIMESTAMP"),
|
|
56
56
|
* // provisionedMemory: Number("int"),
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { StartImportTaskInput, StartImportTaskOutput } from "../models/models_0";
|
|
4
|
+
import { NeptuneGraphClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptuneGraphClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link StartImportTaskCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface StartImportTaskCommandInput extends StartImportTaskInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link StartImportTaskCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface StartImportTaskCommandOutput extends StartImportTaskOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const StartImportTaskCommand_base: {
|
|
24
|
+
new (input: StartImportTaskCommandInput): import("@smithy/smithy-client").CommandImpl<StartImportTaskCommandInput, StartImportTaskCommandOutput, NeptuneGraphClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: StartImportTaskCommandInput): import("@smithy/smithy-client").CommandImpl<StartImportTaskCommandInput, StartImportTaskCommandOutput, NeptuneGraphClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* <p>Import data into existing Neptune Analytics graph from Amazon Simple Storage Service (S3). The graph needs to be empty and in the AVAILABLE state.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { NeptuneGraphClient, StartImportTaskCommand } from "@aws-sdk/client-neptune-graph"; // ES Modules import
|
|
34
|
+
* // const { NeptuneGraphClient, StartImportTaskCommand } = require("@aws-sdk/client-neptune-graph"); // CommonJS import
|
|
35
|
+
* const client = new NeptuneGraphClient(config);
|
|
36
|
+
* const input = { // StartImportTaskInput
|
|
37
|
+
* importOptions: { // ImportOptions Union: only one key present
|
|
38
|
+
* neptune: { // NeptuneImportOptions
|
|
39
|
+
* s3ExportPath: "STRING_VALUE", // required
|
|
40
|
+
* s3ExportKmsKeyId: "STRING_VALUE", // required
|
|
41
|
+
* preserveDefaultVertexLabels: true || false,
|
|
42
|
+
* preserveEdgeIds: true || false,
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* failOnError: true || false,
|
|
46
|
+
* source: "STRING_VALUE", // required
|
|
47
|
+
* format: "CSV" || "OPEN_CYPHER",
|
|
48
|
+
* graphIdentifier: "STRING_VALUE", // required
|
|
49
|
+
* roleArn: "STRING_VALUE", // required
|
|
50
|
+
* };
|
|
51
|
+
* const command = new StartImportTaskCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // StartImportTaskOutput
|
|
54
|
+
* // graphId: "STRING_VALUE",
|
|
55
|
+
* // taskId: "STRING_VALUE", // required
|
|
56
|
+
* // source: "STRING_VALUE", // required
|
|
57
|
+
* // format: "CSV" || "OPEN_CYPHER",
|
|
58
|
+
* // roleArn: "STRING_VALUE", // required
|
|
59
|
+
* // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required
|
|
60
|
+
* // importOptions: { // ImportOptions Union: only one key present
|
|
61
|
+
* // neptune: { // NeptuneImportOptions
|
|
62
|
+
* // s3ExportPath: "STRING_VALUE", // required
|
|
63
|
+
* // s3ExportKmsKeyId: "STRING_VALUE", // required
|
|
64
|
+
* // preserveDefaultVertexLabels: true || false,
|
|
65
|
+
* // preserveEdgeIds: true || false,
|
|
66
|
+
* // },
|
|
67
|
+
* // },
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param StartImportTaskCommandInput - {@link StartImportTaskCommandInput}
|
|
73
|
+
* @returns {@link StartImportTaskCommandOutput}
|
|
74
|
+
* @see {@link StartImportTaskCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link StartImportTaskCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link NeptuneGraphClientResolvedConfig | config} for NeptuneGraphClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ConflictException} (client fault)
|
|
79
|
+
* <p>Raised when a conflict is encountered.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* <p>A failure occurred on the server.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>A specified resource could not be located.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
88
|
+
* <p>The exception was interrupted by throttling.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ValidationException} (client fault)
|
|
91
|
+
* <p>A resource could not be validated.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link NeptuneGraphServiceException}
|
|
94
|
+
* <p>Base exception class for all service exceptions from NeptuneGraph service.</p>
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
export declare class StartImportTaskCommand extends StartImportTaskCommand_base {
|
|
99
|
+
}
|
|
@@ -45,7 +45,7 @@ declare const UpdateGraphCommand_base: {
|
|
|
45
45
|
* // id: "STRING_VALUE", // required
|
|
46
46
|
* // name: "STRING_VALUE", // required
|
|
47
47
|
* // arn: "STRING_VALUE", // required
|
|
48
|
-
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
|
|
48
|
+
* // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
|
|
49
49
|
* // statusReason: "STRING_VALUE",
|
|
50
50
|
* // createTime: new Date("TIMESTAMP"),
|
|
51
51
|
* // provisionedMemory: Number("int"),
|
|
@@ -22,6 +22,7 @@ export * from "./ListQueriesCommand";
|
|
|
22
22
|
export * from "./ListTagsForResourceCommand";
|
|
23
23
|
export * from "./ResetGraphCommand";
|
|
24
24
|
export * from "./RestoreGraphFromSnapshotCommand";
|
|
25
|
+
export * from "./StartImportTaskCommand";
|
|
25
26
|
export * from "./TagResourceCommand";
|
|
26
27
|
export * from "./UntagResourceCommand";
|
|
27
28
|
export * from "./UpdateGraphCommand";
|
|
@@ -544,6 +544,7 @@ export declare const GraphStatus: {
|
|
|
544
544
|
readonly CREATING: "CREATING";
|
|
545
545
|
readonly DELETING: "DELETING";
|
|
546
546
|
readonly FAILED: "FAILED";
|
|
547
|
+
readonly IMPORTING: "IMPORTING";
|
|
547
548
|
readonly RESETTING: "RESETTING";
|
|
548
549
|
readonly SNAPSHOTTING: "SNAPSHOTTING";
|
|
549
550
|
readonly UPDATING: "UPDATING";
|
|
@@ -590,7 +591,8 @@ export interface CreateGraphOutput {
|
|
|
590
591
|
*/
|
|
591
592
|
createTime?: Date;
|
|
592
593
|
/**
|
|
593
|
-
* <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph
|
|
594
|
+
* <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
|
|
595
|
+
* <p>Min = 128</p>
|
|
594
596
|
* @public
|
|
595
597
|
*/
|
|
596
598
|
provisionedMemory?: number;
|
|
@@ -601,6 +603,9 @@ export interface CreateGraphOutput {
|
|
|
601
603
|
endpoint?: string;
|
|
602
604
|
/**
|
|
603
605
|
* <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.</p>
|
|
606
|
+
* <note>
|
|
607
|
+
* <p>If enabling public connectivity for the first time, there will be a delay while it is enabled.</p>
|
|
608
|
+
* </note>
|
|
604
609
|
* @public
|
|
605
610
|
*/
|
|
606
611
|
publicConnectivity?: boolean;
|
|
@@ -612,6 +617,7 @@ export interface CreateGraphOutput {
|
|
|
612
617
|
vectorSearchConfiguration?: VectorSearchConfiguration;
|
|
613
618
|
/**
|
|
614
619
|
* <p>The number of replicas in other AZs.</p>
|
|
620
|
+
* <p>Default: If not specified, the default value is 1.</p>
|
|
615
621
|
* @public
|
|
616
622
|
*/
|
|
617
623
|
replicaCount?: number;
|
|
@@ -1068,7 +1074,8 @@ export interface RestoreGraphFromSnapshotInput {
|
|
|
1068
1074
|
*/
|
|
1069
1075
|
graphName: string | undefined;
|
|
1070
1076
|
/**
|
|
1071
|
-
* <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph
|
|
1077
|
+
* <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
|
|
1078
|
+
* <p>Min = 128</p>
|
|
1072
1079
|
* @public
|
|
1073
1080
|
*/
|
|
1074
1081
|
provisionedMemory?: number;
|
|
@@ -1192,7 +1199,8 @@ export interface UpdateGraphInput {
|
|
|
1192
1199
|
*/
|
|
1193
1200
|
publicConnectivity?: boolean;
|
|
1194
1201
|
/**
|
|
1195
|
-
* <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph
|
|
1202
|
+
* <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
|
|
1203
|
+
* <p>Min = 128</p>
|
|
1196
1204
|
* @public
|
|
1197
1205
|
*/
|
|
1198
1206
|
provisionedMemory?: number;
|
|
@@ -2444,6 +2452,86 @@ export interface ListImportTasksOutput {
|
|
|
2444
2452
|
*/
|
|
2445
2453
|
nextToken?: string;
|
|
2446
2454
|
}
|
|
2455
|
+
/**
|
|
2456
|
+
* @public
|
|
2457
|
+
*/
|
|
2458
|
+
export interface StartImportTaskInput {
|
|
2459
|
+
/**
|
|
2460
|
+
* <p>Options for how to perform an import.</p>
|
|
2461
|
+
* @public
|
|
2462
|
+
*/
|
|
2463
|
+
importOptions?: ImportOptions;
|
|
2464
|
+
/**
|
|
2465
|
+
* <p>If set to true, the task halts when an import error is encountered. If set to false, the task skips the data that
|
|
2466
|
+
* caused the error and continues if possible.</p>
|
|
2467
|
+
* @public
|
|
2468
|
+
*/
|
|
2469
|
+
failOnError?: boolean;
|
|
2470
|
+
/**
|
|
2471
|
+
* <p>A URL identifying the location of the data to be imported. This can be an Amazon S3 path, or can point to a
|
|
2472
|
+
* Neptune database endpoint or snapshot.</p>
|
|
2473
|
+
* @public
|
|
2474
|
+
*/
|
|
2475
|
+
source: string | undefined;
|
|
2476
|
+
/**
|
|
2477
|
+
* <p>Specifies the format of Amazon S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or
|
|
2478
|
+
* OPENCYPHER, which identies the openCypher load format.</p>
|
|
2479
|
+
* @public
|
|
2480
|
+
*/
|
|
2481
|
+
format?: Format;
|
|
2482
|
+
/**
|
|
2483
|
+
* <p>The unique identifier of the Neptune Analytics graph.</p>
|
|
2484
|
+
* @public
|
|
2485
|
+
*/
|
|
2486
|
+
graphIdentifier: string | undefined;
|
|
2487
|
+
/**
|
|
2488
|
+
* <p>The ARN of the IAM role that will allow access to the data that is to be imported.</p>
|
|
2489
|
+
* @public
|
|
2490
|
+
*/
|
|
2491
|
+
roleArn: string | undefined;
|
|
2492
|
+
}
|
|
2493
|
+
/**
|
|
2494
|
+
* @public
|
|
2495
|
+
*/
|
|
2496
|
+
export interface StartImportTaskOutput {
|
|
2497
|
+
/**
|
|
2498
|
+
* <p>The unique identifier of the Neptune Analytics graph.</p>
|
|
2499
|
+
* @public
|
|
2500
|
+
*/
|
|
2501
|
+
graphId?: string;
|
|
2502
|
+
/**
|
|
2503
|
+
* <p>The unique identifier of the import task.</p>
|
|
2504
|
+
* @public
|
|
2505
|
+
*/
|
|
2506
|
+
taskId: string | undefined;
|
|
2507
|
+
/**
|
|
2508
|
+
* <p>A URL identifying the location of the data to be imported. This can be an Amazon S3 path, or can point to a
|
|
2509
|
+
* Neptune database endpoint or snapshot.</p>
|
|
2510
|
+
* @public
|
|
2511
|
+
*/
|
|
2512
|
+
source: string | undefined;
|
|
2513
|
+
/**
|
|
2514
|
+
* <p>Specifies the format of Amazon S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or
|
|
2515
|
+
* OPENCYPHER, which identies the openCypher load format.</p>
|
|
2516
|
+
* @public
|
|
2517
|
+
*/
|
|
2518
|
+
format?: Format;
|
|
2519
|
+
/**
|
|
2520
|
+
* <p>The ARN of the IAM role that will allow access to the data that is to be imported.</p>
|
|
2521
|
+
* @public
|
|
2522
|
+
*/
|
|
2523
|
+
roleArn: string | undefined;
|
|
2524
|
+
/**
|
|
2525
|
+
* <p>The status of the import task.</p>
|
|
2526
|
+
* @public
|
|
2527
|
+
*/
|
|
2528
|
+
status: ImportTaskStatus | undefined;
|
|
2529
|
+
/**
|
|
2530
|
+
* <p>Options for how to perform an import.</p>
|
|
2531
|
+
* @public
|
|
2532
|
+
*/
|
|
2533
|
+
importOptions?: ImportOptions;
|
|
2534
|
+
}
|
|
2447
2535
|
/**
|
|
2448
2536
|
* @public
|
|
2449
2537
|
*/
|
|
@@ -24,6 +24,7 @@ import { ListQueriesCommandInput, ListQueriesCommandOutput } from "../commands/L
|
|
|
24
24
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
25
25
|
import { ResetGraphCommandInput, ResetGraphCommandOutput } from "../commands/ResetGraphCommand";
|
|
26
26
|
import { RestoreGraphFromSnapshotCommandInput, RestoreGraphFromSnapshotCommandOutput } from "../commands/RestoreGraphFromSnapshotCommand";
|
|
27
|
+
import { StartImportTaskCommandInput, StartImportTaskCommandOutput } from "../commands/StartImportTaskCommand";
|
|
27
28
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
28
29
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
29
30
|
import { UpdateGraphCommandInput, UpdateGraphCommandOutput } from "../commands/UpdateGraphCommand";
|
|
@@ -123,6 +124,10 @@ export declare const se_ResetGraphCommand: (input: ResetGraphCommandInput, conte
|
|
|
123
124
|
* serializeAws_restJson1RestoreGraphFromSnapshotCommand
|
|
124
125
|
*/
|
|
125
126
|
export declare const se_RestoreGraphFromSnapshotCommand: (input: RestoreGraphFromSnapshotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
127
|
+
/**
|
|
128
|
+
* serializeAws_restJson1StartImportTaskCommand
|
|
129
|
+
*/
|
|
130
|
+
export declare const se_StartImportTaskCommand: (input: StartImportTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
126
131
|
/**
|
|
127
132
|
* serializeAws_restJson1TagResourceCommand
|
|
128
133
|
*/
|
|
@@ -231,6 +236,10 @@ export declare const de_ResetGraphCommand: (output: __HttpResponse, context: __S
|
|
|
231
236
|
* deserializeAws_restJson1RestoreGraphFromSnapshotCommand
|
|
232
237
|
*/
|
|
233
238
|
export declare const de_RestoreGraphFromSnapshotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RestoreGraphFromSnapshotCommandOutput>;
|
|
239
|
+
/**
|
|
240
|
+
* deserializeAws_restJson1StartImportTaskCommand
|
|
241
|
+
*/
|
|
242
|
+
export declare const de_StartImportTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartImportTaskCommandOutput>;
|
|
234
243
|
/**
|
|
235
244
|
* deserializeAws_restJson1TagResourceCommand
|
|
236
245
|
*/
|
|
@@ -95,6 +95,10 @@ import {
|
|
|
95
95
|
RestoreGraphFromSnapshotCommandInput,
|
|
96
96
|
RestoreGraphFromSnapshotCommandOutput,
|
|
97
97
|
} from "./commands/RestoreGraphFromSnapshotCommand";
|
|
98
|
+
import {
|
|
99
|
+
StartImportTaskCommandInput,
|
|
100
|
+
StartImportTaskCommandOutput,
|
|
101
|
+
} from "./commands/StartImportTaskCommand";
|
|
98
102
|
import {
|
|
99
103
|
TagResourceCommandInput,
|
|
100
104
|
TagResourceCommandOutput,
|
|
@@ -424,6 +428,19 @@ export interface NeptuneGraph {
|
|
|
424
428
|
options: __HttpHandlerOptions,
|
|
425
429
|
cb: (err: any, data?: RestoreGraphFromSnapshotCommandOutput) => void
|
|
426
430
|
): void;
|
|
431
|
+
startImportTask(
|
|
432
|
+
args: StartImportTaskCommandInput,
|
|
433
|
+
options?: __HttpHandlerOptions
|
|
434
|
+
): Promise<StartImportTaskCommandOutput>;
|
|
435
|
+
startImportTask(
|
|
436
|
+
args: StartImportTaskCommandInput,
|
|
437
|
+
cb: (err: any, data?: StartImportTaskCommandOutput) => void
|
|
438
|
+
): void;
|
|
439
|
+
startImportTask(
|
|
440
|
+
args: StartImportTaskCommandInput,
|
|
441
|
+
options: __HttpHandlerOptions,
|
|
442
|
+
cb: (err: any, data?: StartImportTaskCommandOutput) => void
|
|
443
|
+
): void;
|
|
427
444
|
tagResource(
|
|
428
445
|
args: TagResourceCommandInput,
|
|
429
446
|
options?: __HttpHandlerOptions
|
|
@@ -142,6 +142,10 @@ import {
|
|
|
142
142
|
RestoreGraphFromSnapshotCommandInput,
|
|
143
143
|
RestoreGraphFromSnapshotCommandOutput,
|
|
144
144
|
} from "./commands/RestoreGraphFromSnapshotCommand";
|
|
145
|
+
import {
|
|
146
|
+
StartImportTaskCommandInput,
|
|
147
|
+
StartImportTaskCommandOutput,
|
|
148
|
+
} from "./commands/StartImportTaskCommand";
|
|
145
149
|
import {
|
|
146
150
|
TagResourceCommandInput,
|
|
147
151
|
TagResourceCommandOutput,
|
|
@@ -186,6 +190,7 @@ export type ServiceInputTypes =
|
|
|
186
190
|
| ListTagsForResourceCommandInput
|
|
187
191
|
| ResetGraphCommandInput
|
|
188
192
|
| RestoreGraphFromSnapshotCommandInput
|
|
193
|
+
| StartImportTaskCommandInput
|
|
189
194
|
| TagResourceCommandInput
|
|
190
195
|
| UntagResourceCommandInput
|
|
191
196
|
| UpdateGraphCommandInput;
|
|
@@ -214,6 +219,7 @@ export type ServiceOutputTypes =
|
|
|
214
219
|
| ListTagsForResourceCommandOutput
|
|
215
220
|
| ResetGraphCommandOutput
|
|
216
221
|
| RestoreGraphFromSnapshotCommandOutput
|
|
222
|
+
| StartImportTaskCommandOutput
|
|
217
223
|
| TagResourceCommandOutput
|
|
218
224
|
| UntagResourceCommandOutput
|
|
219
225
|
| UpdateGraphCommandOutput;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
StartImportTaskInput,
|
|
5
|
+
StartImportTaskOutput,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
NeptuneGraphClientResolvedConfig,
|
|
9
|
+
ServiceInputTypes,
|
|
10
|
+
ServiceOutputTypes,
|
|
11
|
+
} from "../NeptuneGraphClient";
|
|
12
|
+
export { __MetadataBearer, $Command };
|
|
13
|
+
export interface StartImportTaskCommandInput extends StartImportTaskInput {}
|
|
14
|
+
export interface StartImportTaskCommandOutput
|
|
15
|
+
extends StartImportTaskOutput,
|
|
16
|
+
__MetadataBearer {}
|
|
17
|
+
declare const StartImportTaskCommand_base: {
|
|
18
|
+
new (
|
|
19
|
+
input: StartImportTaskCommandInput
|
|
20
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
21
|
+
StartImportTaskCommandInput,
|
|
22
|
+
StartImportTaskCommandOutput,
|
|
23
|
+
NeptuneGraphClientResolvedConfig,
|
|
24
|
+
ServiceInputTypes,
|
|
25
|
+
ServiceOutputTypes
|
|
26
|
+
>;
|
|
27
|
+
new (
|
|
28
|
+
__0_0: StartImportTaskCommandInput
|
|
29
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
30
|
+
StartImportTaskCommandInput,
|
|
31
|
+
StartImportTaskCommandOutput,
|
|
32
|
+
NeptuneGraphClientResolvedConfig,
|
|
33
|
+
ServiceInputTypes,
|
|
34
|
+
ServiceOutputTypes
|
|
35
|
+
>;
|
|
36
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
37
|
+
};
|
|
38
|
+
export declare class StartImportTaskCommand extends StartImportTaskCommand_base {}
|
|
@@ -22,6 +22,7 @@ export * from "./ListQueriesCommand";
|
|
|
22
22
|
export * from "./ListTagsForResourceCommand";
|
|
23
23
|
export * from "./ResetGraphCommand";
|
|
24
24
|
export * from "./RestoreGraphFromSnapshotCommand";
|
|
25
|
+
export * from "./StartImportTaskCommand";
|
|
25
26
|
export * from "./TagResourceCommand";
|
|
26
27
|
export * from "./UntagResourceCommand";
|
|
27
28
|
export * from "./UpdateGraphCommand";
|
|
@@ -189,6 +189,7 @@ export declare const GraphStatus: {
|
|
|
189
189
|
readonly CREATING: "CREATING";
|
|
190
190
|
readonly DELETING: "DELETING";
|
|
191
191
|
readonly FAILED: "FAILED";
|
|
192
|
+
readonly IMPORTING: "IMPORTING";
|
|
192
193
|
readonly RESETTING: "RESETTING";
|
|
193
194
|
readonly SNAPSHOTTING: "SNAPSHOTTING";
|
|
194
195
|
readonly UPDATING: "UPDATING";
|
|
@@ -626,6 +627,23 @@ export interface ListImportTasksOutput {
|
|
|
626
627
|
tasks: ImportTaskSummary[] | undefined;
|
|
627
628
|
nextToken?: string;
|
|
628
629
|
}
|
|
630
|
+
export interface StartImportTaskInput {
|
|
631
|
+
importOptions?: ImportOptions;
|
|
632
|
+
failOnError?: boolean;
|
|
633
|
+
source: string | undefined;
|
|
634
|
+
format?: Format;
|
|
635
|
+
graphIdentifier: string | undefined;
|
|
636
|
+
roleArn: string | undefined;
|
|
637
|
+
}
|
|
638
|
+
export interface StartImportTaskOutput {
|
|
639
|
+
graphId?: string;
|
|
640
|
+
taskId: string | undefined;
|
|
641
|
+
source: string | undefined;
|
|
642
|
+
format?: Format;
|
|
643
|
+
roleArn: string | undefined;
|
|
644
|
+
status: ImportTaskStatus | undefined;
|
|
645
|
+
importOptions?: ImportOptions;
|
|
646
|
+
}
|
|
629
647
|
export interface UntagResourceInput {
|
|
630
648
|
resourceArn: string | undefined;
|
|
631
649
|
tagKeys: string[] | undefined;
|
|
@@ -102,6 +102,10 @@ import {
|
|
|
102
102
|
RestoreGraphFromSnapshotCommandInput,
|
|
103
103
|
RestoreGraphFromSnapshotCommandOutput,
|
|
104
104
|
} from "../commands/RestoreGraphFromSnapshotCommand";
|
|
105
|
+
import {
|
|
106
|
+
StartImportTaskCommandInput,
|
|
107
|
+
StartImportTaskCommandOutput,
|
|
108
|
+
} from "../commands/StartImportTaskCommand";
|
|
105
109
|
import {
|
|
106
110
|
TagResourceCommandInput,
|
|
107
111
|
TagResourceCommandOutput,
|
|
@@ -210,6 +214,10 @@ export declare const se_RestoreGraphFromSnapshotCommand: (
|
|
|
210
214
|
input: RestoreGraphFromSnapshotCommandInput,
|
|
211
215
|
context: __SerdeContext
|
|
212
216
|
) => Promise<__HttpRequest>;
|
|
217
|
+
export declare const se_StartImportTaskCommand: (
|
|
218
|
+
input: StartImportTaskCommandInput,
|
|
219
|
+
context: __SerdeContext
|
|
220
|
+
) => Promise<__HttpRequest>;
|
|
213
221
|
export declare const se_TagResourceCommand: (
|
|
214
222
|
input: TagResourceCommandInput,
|
|
215
223
|
context: __SerdeContext
|
|
@@ -318,6 +326,10 @@ export declare const de_RestoreGraphFromSnapshotCommand: (
|
|
|
318
326
|
output: __HttpResponse,
|
|
319
327
|
context: __SerdeContext
|
|
320
328
|
) => Promise<RestoreGraphFromSnapshotCommandOutput>;
|
|
329
|
+
export declare const de_StartImportTaskCommand: (
|
|
330
|
+
output: __HttpResponse,
|
|
331
|
+
context: __SerdeContext
|
|
332
|
+
) => Promise<StartImportTaskCommandOutput>;
|
|
321
333
|
export declare const de_TagResourceCommand: (
|
|
322
334
|
output: __HttpResponse,
|
|
323
335
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-neptune-graph",
|
|
3
3
|
"description": "AWS SDK for JavaScript Neptune Graph Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.545.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-neptune-graph",
|