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

*****************************
list_resources_for_tag_option
*****************************



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

  

  Lists the resources associated with the specified TagOption.

  

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


  **Request Syntax**
  ::

    response = client.list_resources_for_tag_option(
        TagOptionId='string',
        ResourceType='string',
        PageSize=123,
        PageToken='string'
    )
    
  :type TagOptionId: string
  :param TagOptionId: **[REQUIRED]** 

    The TagOption identifier.

    

  
  :type ResourceType: string
  :param ResourceType: 

    The resource type.

     

    
    * ``Portfolio``
     
    * ``Product``
    

    

  
  :type PageSize: integer
  :param PageSize: 

    The maximum number of items to return with this call.

    

  
  :type PageToken: string
  :param PageToken: 

    The page token for the next set of results. To retrieve the first set of results, use null.

    

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

    
    ::

      {
          'ResourceDetails': [
              {
                  'Id': 'string',
                  'ARN': 'string',
                  'Name': 'string',
                  'Description': 'string',
                  'CreatedTime': datetime(2015, 1, 1)
              },
          ],
          'PageToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResourceDetails** *(list) --* 

        Information about the resources.

        
        

        - *(dict) --* 

          Information about a resource.

          
          

          - **Id** *(string) --* 

            The identifier of the resource.

            
          

          - **ARN** *(string) --* 

            The ARN of the resource.

            
          

          - **Name** *(string) --* 

            The name of the resource.

            
          

          - **Description** *(string) --* 

            The description of the resource.

            
          

          - **CreatedTime** *(datetime) --* 

            The creation time of the resource.

            
      
    
      

      - **PageToken** *(string) --* 

        The page token for the next set of results. To retrieve the first set of results, use null.

        
  
  **Exceptions**
  
  *   :py:class:`ServiceCatalog.Client.exceptions.TagOptionNotMigratedException`

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

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

  