CmdID

CmdID / aws / aws trustedadvisor

aws trustedadvisor list-organization-recommendation-resources

List Resources of a Recommendation within an Organization. AWS CLI reference

1 example 7 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 resources

The following list-organization-recommendation-resources example lists all resources for an organization recommendation by its identifier.

aws trustedadvisor list-organization-recommendation-resources --organization-recommendation-identifier arn:aws:trustedadvisor:::organization-recommendation/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify
--organization-recommendation-identifierThe AWS Organization organization's Recommendation identifier
Its output, shortened
{
    "organizationRecommendationResourceSummaries": [
        {
            "arn": "arn:aws:trustedadvisor::123456789012:recommendation-resource/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/bb38affc0ce0681d9a6cd13f30238ba03a8f63dfe7a379dc403c619119d86af",
            "awsResourceId": "database-1-instance-1",
            "id": "bb38affc0ce0681d9a6cd13f302383ba03a8f63dfe7a379dc403c619119d86af",
            "lastUpdatedAt": "2023-11-01T15:09:51.891Z",
            "metadata": {
                "0": "14",
                "1": "208.79999999999998",
                "2": "database-1-instance-1",
                "3": "db.r5.large",
                "4": "false",
                "5": "us-west-2",
                "6": "arn:aws:rds:us-west-2:123456789012:db:database-1-instance-1",
                "7": "1"
            },
            "recommendationArn": "arn:aws:trustedadvisor:::organization-recommendation/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "regionCode": "us-west-2",
            "status": "warning"
        },
        {
            "arn": "arn:aws:trustedadvisor::123456789012:recommendation-resource/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/51fded4d7a3278818df9cfe344ff5762cec46c095a6763d1ba1ba53bd0e1b0e6",
            "awsResourceId": "database-1",
            "id": "51fded4d7a3278818df9cfe344ff5762cec46c095a6763d1ba1ba53bd0e1b0e6",
            "lastUpdatedAt": "2023-11-01T15:09:51.891Z",
            "metadata": {
                "0": "14",
                "1": "31.679999999999996",
                "2": "database-1",
… 32 more lines

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

Options

7 in the AWS CLI reference
--affected-account-idAn account affected by this organization recommendation
--exclusion-statusThe exclusion status of the resource
--max-resultsThe maximum number of results to return per page.
--next-tokenThe token for the next set of results.
--organization-recommendation-identifierThe AWS Organization organization's Recommendation identifier
--region-codeThe AWS Region code of the resource
--statusThe status of the resource