# NeptuneImportOptionsProperty

Options for importing data from a Neptune database.

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## 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,
};
```

## Properties

- `preserveDefaultVertexLabels`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Neptune Analytics supports label-less vertices and no labels are assigned unless one is explicitly provided.

  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.

- `preserveEdgeIds`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — 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.

- `s3ExportKmsKeyId`: string (required) — The KMS key to use to encrypt data in the S3 bucket where the graph data is exported.

- `s3ExportPath`: string (required) — The path to an S3 bucket from which to import data.
