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 DescribeTrustedAdvisorCheckRefreshStatuses
with a CLI
The following code examples show how to use DescribeTrustedAdvisorCheckRefreshStatuses
.
- CLI
-
- Amazon CLI
-
To list the refresh statuses of Amazon Trusted Advisor checks
The following describe-trusted-advisor-check-refresh-statuses
example lists the refresh statuses for two Trusted Advisor checks: Amazon S3 Bucket Permissions and IAM Use.
aws support describe-trusted-advisor-check-refresh-statuses \
--check-id "Pfx0RwqBli"
"zXCkfM1nI3"
Output:
{
"statuses": [
{
"checkId": "Pfx0RwqBli",
"status": "none",
"millisUntilNextRefreshable": 0
},
{
"checkId": "zXCkfM1nI3",
"status": "none",
"millisUntilNextRefreshable": 0
}
]
}
For more information, see Amazon Trusted Advisor in the Amazon Support User Guide.
- PowerShell
-
- Tools for PowerShell
-
Example 1: Returns the current status of refresh requests for the specified checks. Request-ASATrustedAdvisorCheckRefresh can be used to request that the status information of the checks be refreshed.
Get-ASATrustedAdvisorCheckRefreshStatus -CheckId @("checkid1", "checkid2")
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.