@aws-sdk/client-neptune-graph 3.544.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 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,
@@ -904,6 +905,26 @@ var se_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (input, co
904
905
  b.m("POST").h(headers).b(body);
905
906
  return b.build();
906
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");
907
928
  var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
908
929
  const b = (0, import_core.requestBuilder)(input, context);
909
930
  const headers = {
@@ -1410,6 +1431,26 @@ var de_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (output, c
1410
1431
  Object.assign(contents, doc);
1411
1432
  return contents;
1412
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");
1413
1454
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1414
1455
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
1456
  return de_CommandError(output, context);
@@ -2095,6 +2136,24 @@ var _RestoreGraphFromSnapshotCommand = class _RestoreGraphFromSnapshotCommand ex
2095
2136
  __name(_RestoreGraphFromSnapshotCommand, "RestoreGraphFromSnapshotCommand");
2096
2137
  var RestoreGraphFromSnapshotCommand = _RestoreGraphFromSnapshotCommand;
2097
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
+
2098
2157
  // src/commands/TagResourceCommand.ts
2099
2158
 
2100
2159
 
@@ -2175,6 +2234,7 @@ var commands = {
2175
2234
  ListTagsForResourceCommand,
2176
2235
  ResetGraphCommand,
2177
2236
  RestoreGraphFromSnapshotCommand,
2237
+ StartImportTaskCommand,
2178
2238
  TagResourceCommand,
2179
2239
  UntagResourceCommand,
2180
2240
  UpdateGraphCommand
@@ -2588,6 +2648,7 @@ var waitUntilPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params,
2588
2648
  ListTagsForResourceCommand,
2589
2649
  ResetGraphCommand,
2590
2650
  RestoreGraphFromSnapshotCommand,
2651
+ StartImportTaskCommand,
2591
2652
  TagResourceCommand,
2592
2653
  UntagResourceCommand,
2593
2654
  UpdateGraphCommand,
@@ -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);
@@ -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
  */
@@ -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
+ }
@@ -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";
@@ -2452,6 +2452,86 @@ export interface ListImportTasksOutput {
2452
2452
  */
2453
2453
  nextToken?: string;
2454
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
+ }
2455
2535
  /**
2456
2536
  * @public
2457
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";
@@ -627,6 +627,23 @@ export interface ListImportTasksOutput {
627
627
  tasks: ImportTaskSummary[] | undefined;
628
628
  nextToken?: string;
629
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
+ }
630
647
  export interface UntagResourceInput {
631
648
  resourceArn: string | undefined;
632
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.544.0",
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",