:doc:`ServiceCatalog <../../servicecatalog>` / Client / associate_tag_option_with_resource

**********************************
associate_tag_option_with_resource
**********************************



.. py:method:: ServiceCatalog.Client.associate_tag_option_with_resource(**kwargs)

  

  Associate the specified TagOption with the specified portfolio or product.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociateTagOptionWithResource>`_  


  **Request Syntax**
  ::

    response = client.associate_tag_option_with_resource(
        ResourceId='string',
        TagOptionId='string'
    )
    
  :type ResourceId: string
  :param ResourceId: **[REQUIRED]** 

    The resource identifier.

    

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

    The TagOption identifier.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ServiceCatalog.Client.exceptions.TagOptionNotMigratedException`

  
  *   :py:class:`ServiceCatalog.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ServiceCatalog.Client.exceptions.InvalidParametersException`

  
  *   :py:class:`ServiceCatalog.Client.exceptions.LimitExceededException`

  
  *   :py:class:`ServiceCatalog.Client.exceptions.DuplicateResourceException`

  
  *   :py:class:`ServiceCatalog.Client.exceptions.InvalidStateException`

  