ImportTaskProperty Struct
The import task details to import data into the graph at creation time.
| Source | |
|---|---|
| Type last changed |
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',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_neptunegraph as neptunegraph
import_task_property = neptunegraph.CfnGraph.ImportTaskProperty(
role_arn="roleArn",
source="source",
# the properties below are optional
blank_node_handling="blankNodeHandling",
fail_on_error=False,
format="format",
import_options=neptunegraph.CfnGraph.ImportOptionsProperty(
neptune=neptunegraph.CfnGraph.NeptuneImportOptionsProperty(
s3_export_kms_key_id="s3ExportKmsKeyId",
s3_export_path="s3ExportPath",
# the properties below are optional
preserve_default_vertex_labels=False,
preserve_edge_ids=False
)
),
max_provisioned_memory=123,
min_provisioned_memory=123,
parquet_type="parquetType"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.neptunegraph.*;
ImportTaskProperty importTaskProperty = ImportTaskProperty.builder()
.roleArn("roleArn")
.source("source")
// the properties below are optional
.blankNodeHandling("blankNodeHandling")
.failOnError(false)
.format("format")
.importOptions(ImportOptionsProperty.builder()
.neptune(NeptuneImportOptionsProperty.builder()
.s3ExportKmsKeyId("s3ExportKmsKeyId")
.s3ExportPath("s3ExportPath")
// the properties below are optional
.preserveDefaultVertexLabels(false)
.preserveEdgeIds(false)
.build())
.build())
.maxProvisionedMemory(123)
.minProvisionedMemory(123)
.parquetType("parquetType")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NeptuneGraph;
var importTaskProperty = new ImportTaskProperty {
RoleArn = "roleArn",
Source = "source",
// the properties below are optional
BlankNodeHandling = "blankNodeHandling",
FailOnError = false,
Format = "format",
ImportOptions = new ImportOptionsProperty {
Neptune = new NeptuneImportOptionsProperty {
S3ExportKmsKeyId = "s3ExportKmsKeyId",
S3ExportPath = "s3ExportPath",
// the properties below are optional
PreserveDefaultVertexLabels = false,
PreserveEdgeIds = false
}
},
MaxProvisionedMemory = 123,
MinProvisionedMemory = 123,
ParquetType = "parquetType"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
importTaskProperty := &ImportTaskProperty{
RoleArn: jsii.String("roleArn"),
Source: jsii.String("source"),
// the properties below are optional
BlankNodeHandling: jsii.String("blankNodeHandling"),
FailOnError: jsii.Boolean(false),
Format: jsii.String("format"),
ImportOptions: &ImportOptionsProperty{
Neptune: &NeptuneImportOptionsProperty{
S3ExportKmsKeyId: jsii.String("s3ExportKmsKeyId"),
S3ExportPath: jsii.String("s3ExportPath"),
// the properties below are optional
PreserveDefaultVertexLabels: jsii.Boolean(false),
PreserveEdgeIds: jsii.Boolean(false),
},
},
MaxProvisionedMemory: jsii.Number(123),
MinProvisionedMemory: jsii.Number(123),
ParquetType: jsii.String("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.
formatoptionalstringformatoptionalstrformatoptionalStringFormatoptionalstringFormatoptional*string #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.