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: Add tags to the object.
  
  Args:
      tags ([{key:value}]): list of key value pairs.
  
  Returns:
      list({str:str}): a list of key value pairs
docstr_tok: ["Add","tags","to","the","object",".","Args",":","tags","(","[","{","key",":","value","}","]",")",":","list","of","key","value","pairs",".","Returns",":","list","(","{","str",":","str","}",")",":","a","list","of","key","value","pairs"]
code: def set_tags(self, tags=None):
      """Add tags to the object.
  
      Args:
          tags ([{key:value}]): list of key value pairs.
  
      Returns:
          list({str:str}): a list of key value pairs
      """
      logger.warning(
          "set_tags on Association is deprecated. Use set_tags on the source or destination\
              entity instead."
      )
      return self._set_tags(
          resource_arn=self.source_arn, tags=format_tags(tags)
      )
  
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 3 for calling the Association obj's underlying member method code with example usage: obj.set_tags(tags) and returns: self