DataZone / Paginator / QueryGraph
QueryGraph¶
- class DataZone.Paginator.QueryGraph¶
paginator = client.get_paginator('query_graph')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
DataZone.Client.query_graph().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( domainIdentifier='string', match=[ { 'relationPattern': { 'relationType': 'LINEAGE', 'relationDirection': 'IN'|'OUT', 'maxPathLength': 123 }, 'entityPattern': { 'entityType': 'LINEAGE_NODE', 'identifier': 'string', 'filters': { 'filter': { 'attribute': 'string', 'value': 'string', 'intValue': 123, 'operator': 'EQ'|'LE'|'LT'|'GE'|'GT'|'TEXT_SEARCH' }, 'and': [ {'... recursive ...'}, ], 'or': [ {'... recursive ...'}, ] } } }, ], additionalAttributes={ 'formNames': [ 'string', ] }, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
domainIdentifier (string) –
[REQUIRED]
The identifier of the Amazon DataZone domain.
match (list) –
[REQUIRED]
List of query match clauses.
(dict) –
A clause to match a query pattern
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
relationPattern,entityPattern.relationPattern (dict) –
The pattern describing the query’s relational traversal.
relationType (string) – [REQUIRED]
The type of relation to query.
relationDirection (string) – [REQUIRED]
The direction to query.
maxPathLength (integer) –
The number of hops to query.
entityPattern (dict) –
The pattern describing the entities for the query to traverse.
entityType (string) – [REQUIRED]
The type of entity to be matched during the graph query.
identifier (string) – [REQUIRED]
The identifier of the root entity to start traversal from during the graph query.
filters (dict) –
A search filter clause in Amazon DataZone.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
filter,and,or.filter (dict) –
A search filter in Amazon DataZone.
attribute (string) – [REQUIRED]
A search filter attribute in Amazon DataZone.
value (string) –
A search filter string value in Amazon DataZone.
intValue (integer) –
A search filter integer value in Amazon DataZone.
operator (string) –
Specifies the search filter operator.
and (list) –
The ‘and’ search filter clause in Amazon DataZone.
(dict) –
A search filter clause in Amazon DataZone.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
filter,and,or.
or (list) –
The ‘or’ search filter clause in Amazon DataZone.
(dict) –
A search filter clause in Amazon DataZone.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
filter,and,or.
additionalAttributes (dict) –
Additional details on the queried entity that can be requested in the response.
formNames (list) –
Names of forms on the query entity that can be requested in the response.
(string) –
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
NextTokenwill 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
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'items': [ { 'lineageNode': { 'domainId': 'string', 'name': 'string', 'description': 'string', 'createdAt': datetime(2015, 1, 1), 'createdBy': 'string', 'updatedAt': datetime(2015, 1, 1), 'updatedBy': 'string', 'id': 'string', 'typeName': 'string', 'typeRevision': 'string', 'sourceIdentifier': 'string', 'eventTimestamp': datetime(2015, 1, 1), 'formsOutput': [ { 'formName': 'string', 'typeName': 'string', 'typeRevision': 'string', 'content': 'string' }, ], 'upstreamLineageNodeIds': [ 'string', ], 'downstreamLineageNodeIds': [ 'string', ] } }, ], 'NextToken': 'string' }
Response Structure
(dict) –
items (list) –
The results of the
QueryGraphaction.(dict) –
Resulting entity from the query.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
lineageNode. 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'}
lineageNode (dict) –
Resulting data lineage node from the query.
domainId (string) –
The ID of the domain of the data lineage node.
name (string) –
The name of the data lineage node.
description (string) –
The description of the data lineage node.
createdAt (datetime) –
The timestamp at which the data lineage node was created.
createdBy (string) –
The user who created the data lineage node.
updatedAt (datetime) –
The timestamp at which the data lineage node was updated.
updatedBy (string) –
The user who updated the data lineage node.
id (string) –
The ID of the data lineage node.
typeName (string) –
The name of the type of the data lineage node.
typeRevision (string) –
The type of the revision of the data lineage node.
sourceIdentifier (string) –
The alternate ID of the data lineage node.
eventTimestamp (datetime) –
The event timestamp of the data lineage node.
formsOutput (list) –
The forms included in the additional attributes of a data lineage node.
(dict) –
The details of a metadata form.
formName (string) –
The name of the metadata form.
typeName (string) –
The name of the metadata form type.
typeRevision (string) –
The revision of the metadata form type.
content (string) –
The content of the metadata form.
upstreamLineageNodeIds (list) –
The IDs of the upstream data lineage nodes.
(string) –
downstreamLineageNodeIds (list) –
The IDs of the downstream data lineage nodes.
(string) –
NextToken (string) –
A token to resume pagination.