query_lineage
¶
query_lineage(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
start_arns: Optional[QueryLineageStartArns] = None,
direction: Optional[Direction] = None,
include_edges: Optional[Boolean] = None,
include_source: Optional[Boolean] = None,
filters: Optional[QueryFilters] = None,
max_depth: Optional[QueryLineageMaxDepth] = None,
max_results: Optional[QueryLineageMaxResults] = None,
next_token: Optional[String8192] = None,
) -> QueryLineageResponse
Use this action to inspect your lineage and discover relationships between entities. For more information, see Querying Lineage Entities in the Amazon SageMaker Developer Guide.
Parameters:
-
start_arns(Optional[QueryLineageStartArns], default:None) –A list of resource Amazon Resource Name (ARN) that represent the starting point for your lineage query.
-
direction(Optional[Direction], default:None) –Associations between lineage entities have a direction. This parameter determines the direction from the StartArn(s) that the query traverses.
-
include_edges(Optional[Boolean], default:None) –Setting this value to
Trueretrieves not only the entities of interest but also the Associations and lineage entities on the path. Set toFalseto only return lineage entities that match your query. -
include_source(Optional[Boolean], default:None) –Set to
Trueto include theSourceof each lineage entity in the response. The default isFalse. -
filters(Optional[QueryFilters], default:None) –A set of filtering parameters that allow you to specify which entities should be returned.
-
Properties - Key-value pairs to match on the lineage entities' properties.
-
LineageTypes - A set of lineage entity types to match on. For example:
TrialComponent,Artifact, orContext. -
CreatedBefore - Filter entities created before this date.
-
ModifiedBefore - Filter entities modified before this date.
-
ModifiedAfter - Filter entities modified after this date.
-
-
max_depth(Optional[QueryLineageMaxDepth], default:None) –The maximum depth in lineage relationships from the
StartArnsthat are traversed. Depth is a measure of the number ofAssociationsfrom theStartArnentity to the matched results. -
max_results(Optional[QueryLineageMaxResults], default:None) –Limits the number of vertices in the results. Use the
NextTokenin a response to to retrieve the next page of results. -
next_token(Optional[String8192], default:None) –Limits the number of vertices in the request. Use the
NextTokenin a response to to retrieve the next page of results.
Raises:
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
29775 29776 29777 29778 29779 29780 29781 29782 29783 29784 29785 29786 29787 29788 29789 29790 29791 29792 29793 29794 29795 29796 29797 29798 29799 29800 29801 29802 29803 29804 29805 29806 29807 29808 29809 29810 29811 29812 29813 29814 29815 29816 29817 29818 29819 29820 29821 29822 29823 29824 29825 29826 29827 29828 29829 29830 29831 29832 29833 29834 29835 29836 29837 29838 29839 29840 29841 29842 29843 29844 29845 29846 29847 29848 29849 29850 29851 29852 | |