

# Reference

A reference by entity identity into retrievedContext (one of nodeId, edgeId, or documentId).

## Contents
<a name="API_Reference_Contents"></a>

 ** documentId **   <a name="context-Type-Reference-documentId"></a>
Identifier of the referenced document. Set when the reference is a document.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: No

 ** edgeId **   <a name="context-Type-Reference-edgeId"></a>
Identifier of the referenced edge. Set when the reference is an edge.  
Type: [EdgeIdentifier](API_EdgeIdentifier.md) object  
Required: No

 ** nodeId **   <a name="context-Type-Reference-nodeId"></a>
Identifier of the referenced node. Set when the reference is a node.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 2048.  
Pattern: `[\w\-\.#:@/%~]+`   
Required: No

## See Also
<a name="API_Reference_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/Reference) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/Reference) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/Reference) 