# CfnGraphProps

Struct · External

Properties for defining a `CfnGraph`.

Used as props by: [CfnGraph](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_neptunegraph.CfnGraph.html)

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

TypeScript:

```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 cfnGraphProps: neptunegraph.CfnGraphProps = {
  provisionedMemory: 123,

  // the properties below are optional
  deletionProtection: false,
  graphName: 'graphName',
  importTask: {
    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',
  },
  kmsKeyIdentifier: 'kmsKeyIdentifier',
  publicConnectivity: false,
  replicaCount: 123,
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vectorSearchConfiguration: {
    vectorSearchDimension: 123,
  },
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_graph_props = neptunegraph.CfnGraphProps(
    provisioned_memory=123,

    # the properties below are optional
    deletion_protection=False,
    graph_name="graphName",
    import_task=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"
    ),
    kms_key_identifier="kmsKeyIdentifier",
    public_connectivity=False,
    replica_count=123,
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vector_search_configuration=neptunegraph.CfnGraph.VectorSearchConfigurationProperty(
        vector_search_dimension=123
    )
)
```

Java:

```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.*;

CfnGraphProps cfnGraphProps = CfnGraphProps.builder()
        .provisionedMemory(123)

        // the properties below are optional
        .deletionProtection(false)
        .graphName("graphName")
        .importTask(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())
        .kmsKeyIdentifier("kmsKeyIdentifier")
        .publicConnectivity(false)
        .replicaCount(123)
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .vectorSearchConfiguration(VectorSearchConfigurationProperty.builder()
                .vectorSearchDimension(123)
                .build())
        .build();
```

C#:

```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 cfnGraphProps = new CfnGraphProps {
    ProvisionedMemory = 123,

    // the properties below are optional
    DeletionProtection = false,
    GraphName = "graphName",
    ImportTask = 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"
    },
    KmsKeyIdentifier = "kmsKeyIdentifier",
    PublicConnectivity = false,
    ReplicaCount = 123,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VectorSearchConfiguration = new VectorSearchConfigurationProperty {
        VectorSearchDimension = 123
    }
};
```

Go:

```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"

cfnGraphProps := &CfnGraphProps{
	ProvisionedMemory: jsii.Number(123),

	// the properties below are optional
	DeletionProtection: jsii.Boolean(false),
	GraphName: jsii.String("graphName"),
	ImportTask: &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"),
	},
	KmsKeyIdentifier: jsii.String("kmsKeyIdentifier"),
	PublicConnectivity: jsii.Boolean(false),
	ReplicaCount: jsii.Number(123),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VectorSearchConfiguration: &VectorSearchConfigurationProperty{
		VectorSearchDimension: jsii.Number(123),
	},
}
```

## Properties

- `deletionProtection`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — A value that indicates whether the graph has deletion protection enabled.

  The graph can't be deleted when deletion protection is enabled.

- `graphName`: string — The graph name. For example: `my-graph-1` .

  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.

  If you don't specify a graph name, a unique graph name is generated for you using the prefix `graph-for` , followed by a combination of `Stack Name` and a `UUID` .

- `importTask`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGraph.ImportTaskProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_neptunegraph.CfnGraph.ImportTaskProperty.html) — The import task details to import data into the graph at creation time.

- `kmsKeyIdentifier`: string — The ARN of the KMS key used to encrypt data in the Neptune Analytics graph.

  If not specified, the graph is encrypted with an AWS managed key.

- `provisionedMemory`: number (required) — The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.

  Min = 16

- `publicConnectivity`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.

  When the graph is publicly available, its domain name system (DNS) endpoint resolves to the public IP address from the internet. When the graph isn't publicly available, you need to create a `PrivateGraphEndpoint` in a given VPC to ensure the DNS name resolves to a private IP address that is reachable from the VPC.

  Default: If not specified, the default value is false.

  > If enabling public connectivity for the first time, there will be a delay while it is enabled.

- `replicaCount`: number — The number of replicas in other AZs.

  Default: If not specified, the default value is 1.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — 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.

- `vectorSearchConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGraph.VectorSearchConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_neptunegraph.CfnGraph.VectorSearchConfigurationProperty.html) — 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
