Use RefreshTrustedAdvisorCheck with an Amazon SDK or CLI - 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 RefreshTrustedAdvisorCheck with an Amazon SDK or CLI

The following code examples show how to use RefreshTrustedAdvisorCheck.

CLI
Amazon CLI

To refresh an Amazon Trusted Advisor check

The following refresh-trusted-advisor-check example refreshes the Amazon S3 Bucket Permissions Trusted Advisor check in your Amazon account.

aws support refresh-trusted-advisor-check \ --check-id "Pfx0RwqBli"

Output:

{ "status": { "checkId": "Pfx0RwqBli", "status": "enqueued", "millisUntilNextRefreshable": 3599992 } }

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

PowerShell
Tools for PowerShell

Example 1: Requests a refresh for the specified Trusted Advisor check.

Request-ASATrustedAdvisorCheckRefresh -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.