Skip to content
v2.278.0

GraphReference Struct ​

A reference to a Graph resource.

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

graphArnstringgraph_arnstrgraphArnStringGraphArnstringGraphArn*string required #
The ARN of the Graph resource.
graphIdstringgraph_idstrgraphIdStringGraphIdstringGraphId*string required #
The GraphId of the Graph resource.