class_docstr: An Amazon SageMaker model package approval action, which is part of a SageMaker lineage.
docstr: Use a lineage query to retrieve downstream endpoint contexts that use this action.
  
  Args:
      direction (LineageQueryDirectionEnum, optional): The query direction.
  
  Returns:
      list of Contexts: Contexts representing an endpoint.
docstr_tok: ["Use","a","lineage","query","to","retrieve","downstream","endpoint","contexts","that","use","this","action",".","Args",":","direction","(","LineageQueryDirectionEnum",",","optional",")",":","The","query","direction",".","Returns",":","list","of","Contexts",":","Contexts","representing","an","endpoint","."]
code: def endpoints(
      self,
      direction: LineageQueryDirectionEnum = LineageQueryDirectionEnum.DESCENDANTS,
  ) -> List:
      """Use a lineage query to retrieve downstream endpoint contexts that use this action.
  
      Args:
          direction (LineageQueryDirectionEnum, optional): The query direction.
  
      Returns:
          list of Contexts: Contexts representing an endpoint.
      """
      query_filter = LineageFilter(
          entities=[LineageEntityEnum.CONTEXT],
          sources=[LineageSourceEnum.ENDPOINT],
      )
      query_result = LineageQuery(self.sagemaker_session).query(
          start_arns=[self.action_arn],
          query_filter=query_filter,
          direction=direction,
          include_edges=False,
      )
      return [
          vertex.to_lineage_object() for vertex in query_result.vertices
      ]
  
imports: from __future__ import absolute_import
  from typing import Optional, Iterator, List
  from datetime import datetime
  from sagemaker.session import Session
  from sagemaker.apiutils import _base_types
  from sagemaker.lineage import _api_types, _utils
  from sagemaker.lineage._api_types import ActionSource, ActionSummary
  from sagemaker.lineage.artifact import Artifact
  from sagemaker.utils import format_tags
  from sagemaker.lineage.query import LineageQuery, LineageFilter, LineageSourceEnum, LineageEntityEnum, LineageQueryDirectionEnum
label_desc: Use image node_id 3 for calling the ModelPackageApprovalAction obj's underlying member method code with example usage: obj.endpoints(direction) and returns: unknown