Context / Client / list_change_set_operations
list_change_set_operations¶
- Context.Client.list_change_set_operations(**kwargs)¶
Returns what one change set wrote: every operation it holds (the nodes and relationships it adds, updates, or deletes), one page at a time, in order. This is the only read that returns a change set’s contents.
See also: AWS API Documentation
Request Syntax
response = client.list_change_set_operations( changeSetId='string', agentContextId='string', maxResults=123, nextToken='string' )
- Parameters:
changeSetId (string) –
[REQUIRED]
The change set whose operations to page through, by its opaque instance ID.
agentContextId (string) –
[REQUIRED]
The agent context that owns the change set, as an ID or ARN. Authorization is on this agent context’s ARN, and a change set of another agent context is a ResourceNotFoundException.
maxResults (integer) – Maximum number of operations per page (upper bound, not a target). Defaults to 50. A value outside 1–100 fails with
ValidationException.nextToken (string) –
The pagination token from a previous response. Omit it for the first page.
The request fails with
ValidationException, and you must start again without a token, in these cases:The token was issued before an
UpdateChangeSetedit, and the change set is stillPENDING.The token was issued while an edited change set was
PENDING, and the change set’s status has since changed.The token was issued to another end user or for another change set.
On an
ACL_RESTRICTEDchange set, AWS Context checks access before it reads the token, so a caller without access getsAccessDeniedExceptionwhatever token it sends. For an allowed end user, the token also carries the access decision, which expires after a few minutes. AWS Context then checks access again before it returns the page.
- Return type:
dict
- Returns:
Response Syntax
{ 'items': [ { 'put': { 'entity': { 'nodeId': 'string', 'edgeId': { 'from': 'string', 'to': 'string' } }, 'properties': { 'string': { 'stringValue': 'string', 'intValue': 123, 'longValue': 123, 'boolValue': True|False, 'floatValue': ..., 'doubleValue': 123.0, 'stringListValue': [ 'string', ], 'intListValue': [ 123, ], 'longListValue': [ 123, ], 'floatListValue': [ ..., ], 'doubleListValue': [ 123.0, ], 'boolListValue': [ True|False, ] } } }, 'update': { 'entity': { 'nodeId': 'string', 'edgeId': { 'from': 'string', 'to': 'string' } }, 'properties': { 'string': { 'stringValue': 'string', 'intValue': 123, 'longValue': 123, 'boolValue': True|False, 'floatValue': ..., 'doubleValue': 123.0, 'stringListValue': [ 'string', ], 'intListValue': [ 123, ], 'longListValue': [ 123, ], 'floatListValue': [ ..., ], 'doubleListValue': [ 123.0, ], 'boolListValue': [ True|False, ] } } }, 'delete': { 'entity': { 'nodeId': 'string', 'edgeId': { 'from': 'string', 'to': 'string' } }, 'properties': { 'string': { 'stringValue': 'string', 'intValue': 123, 'longValue': 123, 'boolValue': True|False, 'floatValue': ..., 'doubleValue': 123.0, 'stringListValue': [ 'string', ], 'intListValue': [ 123, ], 'longListValue': [ 123, ], 'floatListValue': [ ..., ], 'doubleListValue': [ 123.0, ], 'boolListValue': [ True|False, ] } } } }, ], 'nextToken': 'string' }
Response Structure
(dict) –
items (list) –
This page of the change set’s operations.
(dict) –
One operation of a change set. Exactly one member is set.
CreateChangeSettakes it as the operation to write,ListChangeSetOperationsreturns it, andUpdateChangeSettakes it to name an operation to remove. Operation values are customer content. A member set beside an unknown one is used and the unknown one is ignored, as anauthorizationmember is ignored. An item with no member set, or two, is refused withValidationException. A client built from an older model receives a member it does not know as an unknown member.Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
put,update,delete. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
put (dict) –
Writes a node or edge in full. Creates it if it does not exist.
entity (dict) –
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 ignoresentity.nodeId.ListChangeSetOperationsreturns a node put’sentity.nodeIdas a placeholder of the form~operations/<index>, which isn’t the node’s ID in the agent context.Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
nodeId,edgeId. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
nodeId (string) –
The ID of the node. For an ontology schema node, use its
iri:reference, which every write accepts.edgeId (dict) –
The edge, identified by the IDs of its start and end nodes. The edge type is in
properties.edgeType.from (string) –
The ID of the node where the edge starts.
to (string) –
The ID of the node where the edge ends.
properties (dict) –
Up to 50 properties.
{}when there are none. A node requiresnodeType. An edge requiresedgeType.ListChangeSetOperationsreturns the operation’s properties as stored, plusedgeTypeon an edge and the recordednodeType/nodeNameon a node (a writtennodeType, or a name undernodeName,name,titleordisplayName, 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.UpdateChangeSetcannot remove such an item.(string) –
(dict) –
The value of a property on a node or an edge in an agent context. Exactly one member is set, and the member that is set determines the value’s type.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
stringValue,intValue,longValue,boolValue,floatValue,doubleValue,stringListValue,intListValue,longListValue,floatListValue,doubleListValue,boolListValue. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
stringValue (string) –
A string value, up to 2,048 characters.
intValue (integer) –
A 32-bit signed integer value.
longValue (integer) –
A 64-bit signed integer value.
boolValue (boolean) –
A Boolean value.
floatValue (float) –
A single-precision (32-bit) floating-point value.
doubleValue (float) –
A double-precision (64-bit) floating-point value.
stringListValue (list) –
A list of up to 1,000 string values, each up to 2,048 characters.
(string) –
intListValue (list) –
A list of up to 1,000 32-bit signed integer values.
(integer) –
longListValue (list) –
A list of up to 1,000 64-bit signed integer values.
(integer) –
floatListValue (list) –
A list of up to 1,000 single-precision (32-bit) floating-point values.
(float) –
doubleListValue (list) –
A list of up to 1,000 double-precision (64-bit) floating-point values.
(float) –
boolListValue (list) –
A list of up to 1,000 Boolean values.
(boolean) –
update (dict) –
Changes the properties of a node or edge. Like
put, it creates a node that doesn’t exist, and every reader of the agent context can read the node unless the request specifiesaccessControlConfig.entity (dict) –
The node or edge to change. A node’s ID is built from its
nodeTypeand identity properties, soentity.nodeIdis a placeholder that must differ for each node in one write.Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
nodeId,edgeId. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
nodeId (string) –
The ID of the node. For an ontology schema node, use its
iri:reference, which every write accepts.edgeId (dict) –
The edge, identified by the IDs of its start and end nodes. The edge type is in
properties.edgeType.from (string) –
The ID of the node where the edge starts.
to (string) –
The ID of the node where the edge ends.
properties (dict) –
The properties to set, up to 50.
{}when there are none.ListChangeSetOperationslists them as it lists those ofPutOperation.(string) –
(dict) –
The value of a property on a node or an edge in an agent context. Exactly one member is set, and the member that is set determines the value’s type.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
stringValue,intValue,longValue,boolValue,floatValue,doubleValue,stringListValue,intListValue,longListValue,floatListValue,doubleListValue,boolListValue. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
stringValue (string) –
A string value, up to 2,048 characters.
intValue (integer) –
A 32-bit signed integer value.
longValue (integer) –
A 64-bit signed integer value.
boolValue (boolean) –
A Boolean value.
floatValue (float) –
A single-precision (32-bit) floating-point value.
doubleValue (float) –
A double-precision (64-bit) floating-point value.
stringListValue (list) –
A list of up to 1,000 string values, each up to 2,048 characters.
(string) –
intListValue (list) –
A list of up to 1,000 32-bit signed integer values.
(integer) –
longListValue (list) –
A list of up to 1,000 64-bit signed integer values.
(integer) –
floatListValue (list) –
A list of up to 1,000 single-precision (32-bit) floating-point values.
(float) –
doubleListValue (list) –
A list of up to 1,000 double-precision (64-bit) floating-point values.
(float) –
boolListValue (list) –
A list of up to 1,000 Boolean values.
(boolean) –
delete (dict) –
Removes a node or edge. A deleted node takes its unowned edges.
entity (dict) –
The node or edge to remove.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
nodeId,edgeId. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
nodeId (string) –
The ID of the node. For an ontology schema node, use its
iri:reference, which every write accepts.edgeId (dict) –
The edge, identified by the IDs of its start and end nodes. The edge type is in
properties.edgeType.from (string) –
The ID of the node where the edge starts.
to (string) –
The ID of the node where the edge ends.
properties (dict) –
An edge delete requires
edgeType, which with the two node IDs names the edge. A node delete ignorespropertieson input, so a listed delete can be sent back. A property value over theMetadatainput limit (a long list property of the deleted node) is refused before it is ignored.ListChangeSetOperationsreturns the properties the entity had when the change was made: a node’snodeTypeandnodeName, an edge’sedgeType.(string) –
(dict) –
The value of a property on a node or an edge in an agent context. Exactly one member is set, and the member that is set determines the value’s type.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
stringValue,intValue,longValue,boolValue,floatValue,doubleValue,stringListValue,intListValue,longListValue,floatListValue,doubleListValue,boolListValue. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
stringValue (string) –
A string value, up to 2,048 characters.
intValue (integer) –
A 32-bit signed integer value.
longValue (integer) –
A 64-bit signed integer value.
boolValue (boolean) –
A Boolean value.
floatValue (float) –
A single-precision (32-bit) floating-point value.
doubleValue (float) –
A double-precision (64-bit) floating-point value.
stringListValue (list) –
A list of up to 1,000 string values, each up to 2,048 characters.
(string) –
intListValue (list) –
A list of up to 1,000 32-bit signed integer values.
(integer) –
longListValue (list) –
A list of up to 1,000 64-bit signed integer values.
(integer) –
floatListValue (list) –
A list of up to 1,000 single-precision (32-bit) floating-point values.
(float) –
doubleListValue (list) –
A list of up to 1,000 double-precision (64-bit) floating-point values.
(float) –
boolListValue (list) –
A list of up to 1,000 Boolean values.
(boolean) –
nextToken (string) –
Pagination cursor for the next page. Absent when no more operations remain.
Exceptions
Context.Client.exceptions.ThrottlingExceptionContext.Client.exceptions.ValidationExceptionContext.Client.exceptions.InternalServerExceptionContext.Client.exceptions.ResourceNotFoundExceptionContext.Client.exceptions.AccessDeniedException