query_lineage
async
¶
query_lineage(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 | |