Skip to content
v2.278.0

NeptuneImportOptionsProperty Struct ​

Options for importing data from a Neptune database.

Example ​

ts
// 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 neptuneImportOptionsProperty: neptunegraph.CfnGraph.NeptuneImportOptionsProperty = {
  s3ExportKmsKeyId: 's3ExportKmsKeyId',
  s3ExportPath: 's3ExportPath',

  // the properties below are optional
  preserveDefaultVertexLabels: false,
  preserveEdgeIds: false,
};
python
# 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

neptune_import_options_property = 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
)
java
// 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.*;

NeptuneImportOptionsProperty neptuneImportOptionsProperty = NeptuneImportOptionsProperty.builder()
        .s3ExportKmsKeyId("s3ExportKmsKeyId")
        .s3ExportPath("s3ExportPath")

        // the properties below are optional
        .preserveDefaultVertexLabels(false)
        .preserveEdgeIds(false)
        .build();
csharp
// 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 neptuneImportOptionsProperty = new NeptuneImportOptionsProperty {
    S3ExportKmsKeyId = "s3ExportKmsKeyId",
    S3ExportPath = "s3ExportPath",

    // the properties below are optional
    PreserveDefaultVertexLabels = false,
    PreserveEdgeIds = false
};
go
// 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"

neptuneImportOptionsProperty := &NeptuneImportOptionsProperty{
	S3ExportKmsKeyId: jsii.String("s3ExportKmsKeyId"),
	S3ExportPath: jsii.String("s3ExportPath"),

	// the properties below are optional
	PreserveDefaultVertexLabels: jsii.Boolean(false),
	PreserveEdgeIds: jsii.Boolean(false),
}

Properties ​

preserveDefaultVertexLabelsoptionalboolean | IResolvablepreserve_default_vertex_labelsoptionaltyping.Union[bool, IResolvable]preserveDefaultVertexLabelsoptionalBooleanPreserveDefaultVertexLabelsoptionalboolPreserveDefaultVertexLabelsoptionalinterface{} #
Neptune Analytics supports label-less vertices and no labels are assigned unless one is explicitly provided.
notes

Neptune assigns default labels when none is explicitly provided. When importing the data into Neptune Analytics, the default vertex labels can be omitted by setting preserveDefaultVertexLabels to false. Note that if the vertex only has default labels, and has no other properties or edges, then the vertex will effectively not get imported into Neptune Analytics when preserveDefaultVertexLabels is set to false.

preserveEdgeIdsoptionalboolean | IResolvablepreserve_edge_idsoptionaltyping.Union[bool, IResolvable]preserveEdgeIdsoptionalBooleanPreserveEdgeIdsoptionalboolPreserveEdgeIdsoptionalinterface{} #
Neptune Analytics currently does not support user defined edge ids.

The edge ids are not imported by default. They are imported if preserveEdgeIds is set to true, and ids are stored as properties on the relationships with the property name neptuneEdgeId.

s3ExportKmsKeyIdstrings3_export_kms_key_idstrs3ExportKmsKeyIdStringS3ExportKmsKeyIdstringS3ExportKmsKeyId*string required #
The KMS key to use to encrypt data in the S3 bucket where the graph data is exported.
s3ExportPathstrings3_export_pathstrs3ExportPathStringS3ExportPathstringS3ExportPath*string required #
The path to an S3 bucket from which to import data.