:doc:`TrustedAdvisorPublicAPI <../../trustedadvisor>` / Client / list_organization_recommendation_accounts

*****************************************
list_organization_recommendation_accounts
*****************************************



.. py:method:: TrustedAdvisorPublicAPI.Client.list_organization_recommendation_accounts(**kwargs)

  

  Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/ListOrganizationRecommendationAccounts>`_  


  **Request Syntax**
  ::

    response = client.list_organization_recommendation_accounts(
        affectedAccountId='string',
        maxResults=123,
        nextToken='string',
        organizationRecommendationIdentifier='string'
    )
    
  :type affectedAccountId: string
  :param affectedAccountId: 

    An account affected by this organization recommendation

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return per page.

    

  
  :type nextToken: string
  :param nextToken: 

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    

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

    The Recommendation identifier

    

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

    
    ::

      {
          'accountRecommendationLifecycleSummaries': [
              {
                  'accountId': 'string',
                  'accountRecommendationArn': 'string',
                  'lastUpdatedAt': datetime(2015, 1, 1),
                  'lifecycleStage': 'in_progress'|'pending_response'|'dismissed'|'resolved',
                  'updateReason': 'string',
                  'updateReasonCode': 'non_critical_account'|'temporary_account'|'valid_business_case'|'other_methods_available'|'low_priority'|'not_applicable'|'other',
                  'updatedOnBehalfOf': 'string',
                  'updatedOnBehalfOfJobTitle': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **accountRecommendationLifecycleSummaries** *(list) --* 

        The account recommendations lifecycles that are applicable to the Recommendation

        
        

        - *(dict) --* 

          Summary of an AccountRecommendationLifecycle for an Organization Recommendation

          
          

          - **accountId** *(string) --* 

            The AWS account ID

            
          

          - **accountRecommendationArn** *(string) --* 

            The Recommendation ARN

            
          

          - **lastUpdatedAt** *(datetime) --* 

            When the Recommendation was last updated

            
          

          - **lifecycleStage** *(string) --* 

            The lifecycle stage from AWS Trusted Advisor Priority

            
          

          - **updateReason** *(string) --* 

            Reason for the lifecycle stage change

            
          

          - **updateReasonCode** *(string) --* 

            Reason code for the lifecycle state change

            
          

          - **updatedOnBehalfOf** *(string) --* 

            The person on whose behalf a Technical Account Manager (TAM) updated the recommendation. This information is only available when a Technical Account Manager takes an action on a recommendation managed by AWS Trusted Advisor Priority

            
          

          - **updatedOnBehalfOfJobTitle** *(string) --* 

            The job title of the person on whose behalf a Technical Account Manager (TAM) updated the recommendation. This information is only available when a Technical Account Manager takes an action on a recommendation managed by AWS Trusted Advisor Priority

            
      
    
      

      - **nextToken** *(string) --* 

        The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

        
  
  **Exceptions**
  
  *   :py:class:`TrustedAdvisorPublicAPI.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`TrustedAdvisorPublicAPI.Client.exceptions.InternalServerException`

  
  *   :py:class:`TrustedAdvisorPublicAPI.Client.exceptions.ValidationException`

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

  
  *   :py:class:`TrustedAdvisorPublicAPI.Client.exceptions.ThrottlingException`

  