TrustedAdvisorPublicAPI / Client / list_organization_recommendation_accounts

list_organization_recommendation_accounts

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 and provides global priority recommendations, eliminating the need to call the API in each AWS Region.

See also: AWS API Documentation

Request Syntax

response = client.list_organization_recommendation_accounts(
    nextToken='string',
    maxResults=123,
    organizationRecommendationIdentifier='string',
    affectedAccountId='string'
)
Parameters:
  • 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.

  • maxResults (integer) – The maximum number of results to return per page.

  • organizationRecommendationIdentifier (string) –

    [REQUIRED]

    The Recommendation identifier

  • affectedAccountId (string) – An account affected by this organization recommendation

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • 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.

    • 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

        • lifecycleStage (string) –

          The lifecycle stage from AWS Trusted Advisor Priority

        • 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

        • updateReason (string) –

          Reason for the lifecycle stage change

        • updateReasonCode (string) –

          Reason code for the lifecycle state change

        • lastUpdatedAt (datetime) –

          When the Recommendation was last updated

Exceptions

  • TrustedAdvisorPublicAPI.Client.exceptions.AccessDeniedException

  • TrustedAdvisorPublicAPI.Client.exceptions.InternalServerException

  • TrustedAdvisorPublicAPI.Client.exceptions.ValidationException

  • TrustedAdvisorPublicAPI.Client.exceptions.ThrottlingException

  • TrustedAdvisorPublicAPI.Client.exceptions.ResourceNotFoundException