query_lineage
¶
query_lineage(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
start_arns: Optional[QueryLineageStartArns] = None,
direction: Optional[Direction] = None,
include_edges: 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. -
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
26826 26827 26828 26829 26830 26831 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 26847 26848 26849 26850 26851 26852 26853 26854 26855 26856 26857 26858 26859 26860 26861 26862 26863 26864 26865 26866 26867 26868 26869 26870 26871 26872 26873 26874 26875 26876 26877 26878 26879 26880 26881 26882 26883 26884 26885 26886 26887 26888 26889 26890 26891 26892 26893 26894 26895 26896 26897 26898 26899 | |