Use DescribeTrustedAdvisorCheckResult with an Amazon SDK or command line tool - Amazon Web Services Support
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Use DescribeTrustedAdvisorCheckResult with an Amazon SDK or command line tool

The following code examples show how to use DescribeTrustedAdvisorCheckResult.

CLI
Amazon CLI

To list the results of an Amazon Trusted Advisor check

The following describe-trusted-advisor-check-result example lists the results of the IAM Use check.

aws support describe-trusted-advisor-check-result \ --check-id "zXCkfM1nI3"

Output:

{ "result": { "checkId": "zXCkfM1nI3", "timestamp": "2020-05-13T21:38:05Z", "status": "ok", "resourcesSummary": { "resourcesProcessed": 1, "resourcesFlagged": 0, "resourcesIgnored": 0, "resourcesSuppressed": 0 }, "categorySpecificSummary": { "costOptimizing": { "estimatedMonthlySavings": 0.0, "estimatedPercentMonthlySavings": 0.0 } }, "flaggedResources": [ { "status": "ok", "resourceId": "47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZEXAMPLE", "isSuppressed": false } ] } }

For more information, see Amazon Trusted Advisor in the Amazon Support User Guide.

PowerShell
Tools for PowerShell

Example 1: Returns the results of a Trusted Advisor check. The list of available Trusted Advisor checks can be obtained using Get-ASATrustedAdvisorChecks. The output is the overall status of the check, the timestamp at which the check was last run and the unique checkid for the specific check. To have the results output in Japanese, add the -Language "ja" parameter.

Get-ASATrustedAdvisorCheckResult -CheckId "checkid1"

For a complete list of Amazon SDK developer guides and code examples, see Using Amazon Web Services Support with an Amazon SDK. This topic also includes information about getting started and details about previous SDK versions.