Skip to content

/AWS1/CL_NEG=>CREATEGRAPHUSINGIMPORTTASK()

About CreateGraphUsingImportTask

Creates a new Neptune Analytics graph and imports data into it, either from Amazon Simple Storage Service (S3) or from a Neptune database or a Neptune database snapshot.

The data can be loaded from files in S3 that in either the Gremlin CSV format or the openCypher load format.

Method Signature

IMPORTING

Required arguments:

IV_GRAPHNAME TYPE /AWS1/NEGGRAPHNAME /AWS1/NEGGRAPHNAME

A name for the new Neptune Analytics graph to be created.

The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens.

IV_SOURCE TYPE /AWS1/NEGSTRING /AWS1/NEGSTRING

A URL identifying to 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.

IV_ROLEARN TYPE /AWS1/NEGROLEARN /AWS1/NEGROLEARN

The ARN of the IAM role that will allow access to the data that is to be imported.

Optional arguments:

IT_TAGS TYPE /AWS1/CL_NEGTAGMAP_W=>TT_TAGMAP TT_TAGMAP

Adds metadata tags to the new graph. These tags can also be used with cost allocation reporting, or used in a Condition statement in an IAM policy.

IV_PUBLICCONNECTIVITY TYPE /AWS1/NEGBOOLEAN /AWS1/NEGBOOLEAN

Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated. (true to enable, or false to disable).

IV_KMSKEYIDENTIFIER TYPE /AWS1/NEGKMSKEYARN /AWS1/NEGKMSKEYARN

Specifies a KMS key to use to encrypt data imported into the new graph.

IO_VECTORSEARCHCONFIGURATION TYPE REF TO /AWS1/CL_NEGVECTORSEARCHCONF /AWS1/CL_NEGVECTORSEARCHCONF

Specifies the number of dimensions for vector embeddings that will be loaded into the graph. The value is specified as dimension=value. Max = 65,535

IV_REPLICACOUNT TYPE /AWS1/NEGREPLICACOUNT /AWS1/NEGREPLICACOUNT

The number of replicas in other AZs to provision on the new graph after import. Default = 0, Min = 0, Max = 2.

Additional charges equivalent to the m-NCUs selected for the graph apply for each replica.

IV_DELETIONPROTECTION TYPE /AWS1/NEGBOOLEAN /AWS1/NEGBOOLEAN

Indicates whether or not to enable deletion protection on the graph. The graph can’t be deleted when deletion protection is enabled. (true or false).

IO_IMPORTOPTIONS TYPE REF TO /AWS1/CL_NEGIMPORTOPTIONS /AWS1/CL_NEGIMPORTOPTIONS

Contains options for controlling the import process. For example, if the failOnError key is set to false, the import skips problem data and attempts to continue (whereas if set to true, the default, or if omitted, the import operation halts immediately when an error is encountered.

IV_MAXPROVISIONEDMEMORY TYPE /AWS1/NEGPROVISIONEDMEMORY /AWS1/NEGPROVISIONEDMEMORY

The maximum provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Default: 1024, or the approved upper limit for your account.

If both the minimum and maximum values are specified, the max of the min-provisioned-memory and max-provisioned memory is used to create the graph. If neither value is specified 128 m-NCUs are used.

IV_MINPROVISIONEDMEMORY TYPE /AWS1/NEGPROVISIONEDMEMORY /AWS1/NEGPROVISIONEDMEMORY

The minimum provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Default: 128

IV_FAILONERROR TYPE /AWS1/NEGBOOLEAN /AWS1/NEGBOOLEAN

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.

IV_FORMAT TYPE /AWS1/NEGFORMAT /AWS1/NEGFORMAT

Specifies the format of S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or OPENCYPHER, which identies the openCypher load format.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_NEGCREGRAPHUSINGIMP01 /AWS1/CL_NEGCREGRAPHUSINGIMP01