# GraphReference

Struct · External

A reference to a Graph resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## 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 interfaces_neptunegraph } from 'aws-cdk-lib/interfaces';
const graphReference: interfaces_neptunegraph.GraphReference = {
  graphArn: 'graphArn',
  graphId: 'graphId',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_neptunegraph as interfaces_neptunegraph

graph_reference = interfaces_neptunegraph.GraphReference(
    graph_arn="graphArn",
    graph_id="graphId"
)
```

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.interfaces.neptunegraph.*;

GraphReference graphReference = GraphReference.builder()
        .graphArn("graphArn")
        .graphId("graphId")
        .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.Interfaces.NeptuneGraph;

var graphReference = new GraphReference {
    GraphArn = "graphArn",
    GraphId = "graphId"
};
```

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"

graphReference := &GraphReference{
	GraphArn: jsii.String("graphArn"),
	GraphId: jsii.String("graphId"),
}
```

## Properties

- `graphArn`: string (required) — The ARN of the Graph resource.

- `graphId`: string (required) — The GraphId of the Graph resource.
