ImportTaskProperty Struct
The import task details to import data into the graph at creation time.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_neptunegraph as neptunegraph } from 'aws-cdk-lib';
const importTaskProperty: neptunegraph.CfnGraph.ImportTaskProperty = {
roleArn: 'roleArn',
source: 'source',
// the properties below are optional
blankNodeHandling: 'blankNodeHandling',
failOnError: false,
format: 'format',
importOptions: {
neptune: {
s3ExportKmsKeyId: 's3ExportKmsKeyId',
s3ExportPath: 's3ExportPath',
// the properties below are optional
preserveDefaultVertexLabels: false,
preserveEdgeIds: false,
},
},
maxProvisionedMemory: 123,
minProvisionedMemory: 123,
parquetType: 'parquetType',
};
Properties
blankNodeHandlingoptionalstringblank_node_handlingoptionalstrblankNodeHandlingoptionalStringBlankNodeHandlingoptionalstringBlankNodeHandlingoptional*string#Currently, only convertToIri is supported, meaning blank nodes are converted to unique IRIs at load time. Must be provided when format is NTRIPLES
failOnErroroptionalboolean | IResolvablefail_on_erroroptionaltyping.Union[bool, IResolvable]failOnErroroptionalBooleanFailOnErroroptionalboolFailOnErroroptionalinterface{}#If set to false, the task skips the data that caused the error and continues if possible.
Valid values are CSV, which identifies the Gremlin CSV format, OPEN_CYPHER, which identifies the openCypher load format, or NTRIPLES, which identifies the RDF n-triples format.
importOptionsoptionalIResolvable | CfnGraph.ImportOptionsPropertyimport_optionsoptionaltyping.Union[IResolvable, ImportOptionsProperty]importOptionsoptionalIResolvableImportOptionsoptionalIResolvableImportOptionsoptionalinterface{}#notes
For example, if the failOnError key is set to false, the import skips the data that caused the error and continues if possible (whereas if set to true, the default, or if omitted, the import operation halts immediately when an error is encountered).
maxProvisionedMemoryoptionalnumbermax_provisioned_memoryoptionalint | floatmaxProvisionedMemoryoptionalNumberMaxProvisionedMemoryoptionaldoubleMaxProvisionedMemoryoptional*float64#notes
Default: 1024, or the approved upper limit for your account. If both the minimum and maximum values are specified, the final provisioned-memory will be chosen per the actual size of your imported data. If neither value is specified, 128 m-NCUs are used.
minProvisionedMemoryoptionalnumbermin_provisioned_memoryoptionalint | floatminProvisionedMemoryoptionalNumberMinProvisionedMemoryoptionaldoubleMinProvisionedMemoryoptional*float64#Default: 16
parquetTypeoptionalstringparquet_typeoptionalstrparquetTypeoptionalStringParquetTypeoptionalstringParquetTypeoptional*string#Required when Format is PARQUET.
This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.