CmdID

CmdID / aws / aws trustedadvisor

aws trustedadvisor list-organization-recommendation-accounts

Lists the accounts that own the resources for an organization aggregate recommendation. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To list organization recommendation accounts

The following list-organization-recommendation-accounts example lists all account recommendation summaries for an organization recommendation by its identifier.

aws trustedadvisor list-organization-recommendation-accounts --organization-recommendation-identifier arn:aws:trustedadvisor:::organization-recommendation/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify
--organization-recommendation-identifierThe Recommendation identifier
Its output
{
    "accountRecommendationLifecycleSummaries": [{
        "accountId": "123456789012",
        "accountRecommendationArn": "arn:aws:trustedadvisor::123456789012:recommendation/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
        "lifecycleStage": "resolved",
        "updateReason": "Resolved issue",
        "updateReasonCode": "valid_business_case",
        "lastUpdatedAt": "2023-01-17T18:25:44.552Z"
    }],
    "nextToken": "REDACTED"
}

For more information, see Get started with the Trusted Advisor API in the AWS Trusted Advisor User Guide.

Options

4 in the AWS CLI reference
--affected-account-idAn account affected by this organization recommendation
--max-resultsThe maximum number of results to return per page.
--next-tokenThe token for the next set of results.
--organization-recommendation-identifierThe Recommendation identifier