Skip to content

PutOperation

Source code in docs_src/capo_context/types/put_operation.py
class PutOperation(TypedDict, closed=True):
    entity: NotRequired["capo_context.types.entity.Entity"]
    """<p>Names the edge to write in <code>entity.edgeId</code>. Required for an edge. Omit it to write a node: a node's ID comes from its properties, so AWS Context ignores <code>entity.nodeId</code>. <code>ListChangeSetOperations</code> returns a node put's <code>entity.nodeId</code> as a placeholder of the form <code>~operations/&lt;index&gt;</code>, which isn't the node's ID in the agent context.</p>"""
    properties: "capo_context.types.metadata.Metadata"
    """<p>Up to 50 properties. <code>{}</code> when there are none. A node requires <code>nodeType</code>. An edge requires <code>edgeType</code>. <code>ListChangeSetOperations</code> returns the operation's properties as stored, plus <code>edgeType</code> on an edge and the recorded <code>nodeType</code> / <code>nodeName</code> on a node (a written <code>nodeType</code>, or a name under <code>nodeName</code>, <code>name</code>, <code>title</code> or <code>displayName</code>, wins), in key order after those. AWS Context doesn't list stored keys that aren't customer content (<code>aws:*</code>, <code>~*</code>, and an edge's identity keys), or a property cut by the 50-entry cap. <code>UpdateChangeSet</code> cannot remove such an item.</p>"""

entity instance-attribute

entity: NotRequired[Entity]

Names the edge to write in entity.edgeId. Required for an edge. Omit it to write a node: a node's ID comes from its properties, so AWS Context ignores entity.nodeId. ListChangeSetOperations returns a node put's entity.nodeId as a placeholder of the form ~operations/<index>, which isn't the node's ID in the agent context.

properties instance-attribute

properties: Metadata

Up to 50 properties. {} when there are none. A node requires nodeType. An edge requires edgeType. ListChangeSetOperations returns the operation's properties as stored, plus edgeType on an edge and the recorded nodeType / nodeName on a node (a written nodeType, or a name under nodeName, name, title or displayName, wins), in key order after those. AWS Context doesn't list stored keys that aren't customer content (aws:*, ~*, and an edge's identity keys), or a property cut by the 50-entry cap. UpdateChangeSet cannot remove such an item.