:doc:`SageMaker <../../sagemaker>` / Client / associate_trial_component

*************************
associate_trial_component
*************************



.. py:method:: SageMaker.Client.associate_trial_component(**kwargs)

  

  Associates a trial component with a trial. A trial component can be associated with multiple trials. To disassociate a trial component from a trial, call the `DisassociateTrialComponent <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_DisassociateTrialComponent.html>`__ API.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/AssociateTrialComponent>`_  


  **Request Syntax**
  ::

    response = client.associate_trial_component(
        TrialComponentName='string',
        TrialName='string'
    )
    
  :type TrialComponentName: string
  :param TrialComponentName: **[REQUIRED]** 

    The name of the component to associated with the trial.

    

  
  :type TrialName: string
  :param TrialName: **[REQUIRED]** 

    The name of the trial to associate with.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'TrialComponentArn': 'string',
          'TrialArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **TrialComponentArn** *(string) --* 

        The Amazon Resource Name (ARN) of the trial component.

        
      

      - **TrialArn** *(string) --* 

        The Amazon Resource Name (ARN) of the trial.

        
  
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  
  *   :py:class:`SageMaker.Client.exceptions.ResourceLimitExceeded`

  