query_lineage
async
¶
query_lineage(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
30146 30147 30148 30149 30150 30151 30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 30163 30164 30165 30166 30167 30168 30169 30170 30171 30172 30173 30174 30175 30176 30177 30178 30179 30180 30181 30182 30183 30184 30185 30186 30187 30188 30189 30190 30191 30192 30193 30194 30195 30196 30197 30198 30199 30200 30201 30202 30203 30204 30205 30206 30207 30208 30209 30210 30211 30212 30213 30214 30215 30216 30217 30218 30219 30220 30221 30222 30223 30224 | |