CmdID / aws / aws trustedadvisor
aws trustedadvisor list-recommendation-resources
List Resources of a Recommendation. AWS CLI reference
1 example 7 options Its page in the AWS CLI reference
Examples
To list recommendation resources
The following list-recommendation-resources example lists all resources for a recommendation by its identifier.
aws trustedadvisor list-recommendation-resources --recommendation-identifier arn:aws:trustedadvisor::123456789012:recommendation/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify--recommendation-identifierThe Recommendation identifierIts output, shortened
{
"recommendationResourceSummaries": [
{
"arn": "arn:aws:trustedadvisor::123456789012:recommendation-resource/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/18959a1f1973cff8e706e9d9bde28bba36cd602a6b2cb86c8b61252835236010",
"id": "18959a1f1973cff8e706e9d9bde28bba36cd602a6b2cb86c8b61252835236010",
"awsResourceId": "webcms-dev-01",
"lastUpdatedAt": "2023-11-01T15:09:51.891Z",
"metadata": {
"0": "14",
"1": "123.12000000000002",
"2": "webcms-dev-01",
"3": "db.m6i.large",
"4": "false",
"5": "us-west-2",
"6": "arn:aws:rds:us-west-2:123456789012:db:webcms-dev-01",
"7": "20"
},
"recommendationArn": "arn:aws:trustedadvisor::123456789012:recommendation/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"regionCode": "us-west-2",
"status": "warning"
},
{
"arn": "arn:aws:trustedadvisor::123456789012:recommendation-resource/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/e6367ff500ac90db8e4adeb4892e39ee9c36bbf812dcbce4b9e4fefcec9eb63e",
"id": "e6367ff500ac90db8e4adeb4892e39ee9c36bbf812dcbce4b9e4fefcec9eb63e",
"awsResourceId": "aws-dev-db-stack-instance-1",
"lastUpdatedAt": "2023-11-01T15:09:51.891Z",
"metadata": {
"0": "14",
"1": "29.52",
"2": "aws-dev-db-stack-instance-1",
… 32 more linesFor more information, see Get started with the Trusted Advisor API in the AWS Trusted Advisor User Guide.
Options
--exclusion-statusThe exclusion status of the resource--languageThe ISO 639-1 code for the language that you want your recommendations to appear in.--max-resultsThe maximum number of results to return per page.--next-tokenThe token for the next set of results.--recommendation-identifierThe Recommendation identifier--region-codeThe AWS Region code of the resource--statusThe status of the resource