start_import_task
async
¶
start_import_task(
source: str,
graph_identifier: GraphIdentifier,
role_arn: RoleArn,
*,
config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
import_options: Optional[ImportOptions] = None,
fail_on_error: Optional[bool] = None,
format: Optional[Format] = None,
parquet_type: Optional[ParquetType] = None,
blank_node_handling: Optional[BlankNodeHandling] = None,
) -> StartImportTaskOutput
Import data into existing Neptune Analytics graph from Amazon Simple Storage Service (S3). The graph needs to be empty and in the AVAILABLE state.
Parameters:
-
fail_on_error(Optional[bool], default:None) –If set to true, the task halts when an import error is encountered. If set to false, the task skips the data that caused the error and continues if possible.
-
source(str) –A URL identifying the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.
-
format(Optional[Format], default:None) –Specifies the format of Amazon S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or OPENCYPHER, which identifies the openCypher load format.
-
parquet_type(Optional[ParquetType], default:None) –The parquet type of the import task.
-
blank_node_handling(Optional[BlankNodeHandling], default:None) –The method to handle blank nodes in the dataset. Currently, only
convertToIriis supported, meaning blank nodes are converted to unique IRIs at load time. Must be provided when format isntriples. For more information, see Handling RDF values. -
graph_identifier(GraphIdentifier) –The unique identifier of the Neptune Analytics graph.
-
role_arn(RoleArn) –The ARN of the IAM role that will allow access to the data that is to be imported.
Raises:
-
ConflictException–Raised when a conflict is encountered.
-
InternalServerException–A failure occurred on the server.
-
ResourceNotFoundException–A specified resource could not be located.
-
ThrottlingException–The exception was interrupted by throttling.
-
ValidationException–A resource could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune_graph/_services/async_neptune_graph.py
2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 | |