class_docstr: An Amazon SageMaker artifact, which is part of a SageMaker lineage.
  
  Examples:
      .. code-block:: python
  
          from sagemaker.lineage import association
  
          my_association = association.Association.create(
              source_arn=artifact_arn,
              destination_arn=trial_component_arn,
              association_type='ContributedTo')
  
          for assoctn in association.Association.list():
              print(assoctn)
  
          my_association.delete()
  
  Attributes:
      source_arn (str): The ARN of the source entity.
      source_type (str): The type of the source entity.
      destination_arn (str): The ARN of the destination entity.
      destination_type (str): The type of the destination entity.
      association_type (str): the type of the association.
docstr: Return a list of context summaries.
  
  Args:
      source_arn (str): The ARN of the source entity.
      destination_arn (str): The ARN of the destination entity.
      source_type (str): The type of the source entity.
      destination_type (str): The type of the destination entity.
      association_type (str): The type of the association.
      created_after (datetime.datetime, optional): Return contexts created after this
          instant.
      created_before (datetime.datetime, optional): Return contexts created before this
          instant.
      sort_by (str, optional): Which property to sort results by.
          One of 'SourceArn', 'CreatedBefore', 'CreatedAfter'
      sort_order (str, optional): One of 'Ascending', or 'Descending'.
      max_results (int, optional): maximum number of contexts to retrieve
      next_token (str, optional): token for next page of results
      sagemaker_session (sagemaker.session.Session): Session object which
          manages interactions with Amazon SageMaker APIs and any other
          AWS services needed. If not specified, one is created using the
          default AWS configuration chain.
  
  Returns:
      collections.Iterator[AssociationSummary]: An iterator
          over ``AssociationSummary`` objects.
docstr_tok: ["Return","a","list","of","context","summaries",".","Args",":","source_arn","(","str",")",":","The","ARN","of","the","source","entity",".","destination_arn","(","str",")",":","The","ARN","of","the","destination","entity",".","source_type","(","str",")",":","The","type","of","the","source","entity",".","destination_type","(","str",")",":","The","type","of","the","destination","entity",".","association_type","(","str",")",":","The","type","of","the","association",".","created_after","(","datetime.datetime",",","optional",")",":","Return","contexts","created","after","this","instant",".","created_before","(","datetime.datetime",",","optional",")",":","Return","contexts","created","before","this","instant",".","sort_by","(","str",",","optional",")",":","Which","property","to","sort","results","by",".","One","of","'SourceArn","'",",","'CreatedBefore","'",",","'CreatedAfter'","sort_order","(","str",",","optional",")",":","One","of","'Ascending","'",",","or","'Descending","'",".","max_results","(","int",",","optional",")",":","maximum","number","of","contexts","to","retrieve","next_token","(","str",",","optional",")",":","token","for","next","page","of","results","sagemaker_session","(","sagemaker.session.Session",")",":","Session","object","which","manages","interactions","with","Amazon","SageMaker","APIs","and","any","other","AWS","services","needed",".","If","not","specified",",","one","is","created","using","the","default","AWS","configuration","chain",".","Returns",":","collections.Iterator","[","AssociationSummary","]",":","An","iterator","over","``","AssociationSummary","``","objects","."]
code: def list(
      cls,
      source_arn: str = None,
      destination_arn: str = None,
      source_type: str = None,
      destination_type: str = None,
      association_type: str = None,
      created_after: Optional[datetime] = None,
      created_before: Optional[datetime] = None,
      sort_by: Optional[str] = None,
      sort_order: Optional[str] = None,
      max_results: Optional[int] = None,
      next_token: Optional[str] = None,
      sagemaker_session=None,
  ) -> Iterator[AssociationSummary]:
      """Return a list of context summaries.
  
      Args:
          source_arn (str): The ARN of the source entity.
          destination_arn (str): The ARN of the destination entity.
          source_type (str): The type of the source entity.
          destination_type (str): The type of the destination entity.
          association_type (str): The type of the association.
          created_after (datetime.datetime, optional): Return contexts created after this
              instant.
          created_before (datetime.datetime, optional): Return contexts created before this
              instant.
          sort_by (str, optional): Which property to sort results by.
              One of 'SourceArn', 'CreatedBefore', 'CreatedAfter'
          sort_order (str, optional): One of 'Ascending', or 'Descending'.
          max_results (int, optional): maximum number of contexts to retrieve
          next_token (str, optional): token for next page of results
          sagemaker_session (sagemaker.session.Session): Session object which
              manages interactions with Amazon SageMaker APIs and any other
              AWS services needed. If not specified, one is created using the
              default AWS configuration chain.
  
      Returns:
          collections.Iterator[AssociationSummary]: An iterator
              over ``AssociationSummary`` objects.
      """
      return super(Association, cls)._list(
          "list_associations",
          _api_types.AssociationSummary.from_boto,
          "AssociationSummaries",
          source_arn=source_arn,
          destination_arn=destination_arn,
          source_type=source_type,
          destination_type=destination_type,
          association_type=association_type,
          created_after=created_after,
          created_before=created_before,
          sort_by=sort_by,
          sort_order=sort_order,
          max_results=max_results,
          next_token=next_token,
          sagemaker_session=sagemaker_session,
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/lineage/association.py
imports: from __future__ import absolute_import
  from typing import Optional, Iterator
  from datetime import datetime
  import logging
  from sagemaker.apiutils import _base_types
  from sagemaker.lineage import _api_types
  from sagemaker.lineage._api_types import AssociationSummary
  from sagemaker.utils import format_tags
label_desc: Use image node_id 5 for calling the Association obj's underlying member method code with example usage: obj.list(cls, source_arn, destination_arn, source_type, destination_type, association_type, created_after, created_before, sort_by, sort_order, max_results, next_token, sagemaker_session) and returns: super