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 an association and return an ``Association`` object representing it.
  
  Args:
      source_arn (str): The ARN of the source.
      destination_arn (str): The ARN of the destination.
      association_type (str): The type of the association. ContributedTo, AssociatedWith,
          DerivedFrom, or Produced.
      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:
      association: A SageMaker ``Association`` object.
docstr_tok: ["Add","an","association","and","return","an","``","Association","``","object","representing","it",".","Args",":","source_arn","(","str",")",":","The","ARN","of","the","source",".","destination_arn","(","str",")",":","The","ARN","of","the","destination",".","association_type","(","str",")",":","The","type","of","the","association",".","ContributedTo",",","AssociatedWith",",","DerivedFrom",",","or","Produced",".","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",":","association",":","A","SageMaker","``","Association","``","object","."]
code: def create(
      cls,
      source_arn: str,
      destination_arn: str,
      association_type: str = None,
      sagemaker_session=None,
  ) -> "Association":
      """Add an association and return an ``Association`` object representing it.
  
      Args:
          source_arn (str): The ARN of the source.
          destination_arn (str): The ARN of the destination.
          association_type (str): The type of the association. ContributedTo, AssociatedWith,
              DerivedFrom, or Produced.
          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:
          association: A SageMaker ``Association`` object.
      """
      return super(Association, cls)._construct(
          cls._boto_create_method,
          source_arn=source_arn,
          destination_arn=destination_arn,
          association_type=association_type,
          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 4 for calling the Association obj's underlying member method code with example usage: obj.create(cls, source_arn, destination_arn, association_type, sagemaker_session) and returns: super