Context / Paginator / ListChangeSetOperations

ListChangeSetOperations

class Context.Paginator.ListChangeSetOperations
paginator = client.get_paginator('list_change_set_operations')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Context.Client.list_change_set_operations().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    changeSetId='string',
    agentContextId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': '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.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

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. CreateChangeSet takes it as the operation to write, ListChangeSetOperations returns it, and UpdateChangeSet takes 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 an authorization member is ignored. An item with no member set, or two, is refused with ValidationException. 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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 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.

            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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 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.

            • (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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 specifies accessControlConfig.

          • entity (dict) –

            The node or edge to change. A node’s ID is built from its nodeType and identity properties, so entity.nodeId is 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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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. ListChangeSetOperations lists them as it lists those of PutOperation.

            • (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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 ignores properties on input, so a listed delete can be sent back. A property value over the Metadata input limit (a long list property of the deleted node) is refused before it is ignored. ListChangeSetOperations returns the properties the entity had when the change was made: a node’s nodeType and nodeName, an edge’s edgeType.

            • (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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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) –

      A token to resume pagination.