

# Entity

The node or edge a change set operation acts on: exactly one of `nodeId` or `edgeId`.

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

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** edgeId **   <a name="context-Type-Entity-edgeId"></a>
The edge, identified by the IDs of its start and end nodes. The edge type is in `properties.edgeType`.  
Type: [EdgeIdentifier](API_EdgeIdentifier.md) object  
Required: No

 ** nodeId **   <a name="context-Type-Entity-nodeId"></a>
The ID of the node. For an ontology schema node, use its `iri:` reference, which every write accepts.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 2048.  
Pattern: `[\w\-\.#:@/%~]+`   
Required: No

## See Also
<a name="API_Entity_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/Entity) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/Entity) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/Entity) 