Use RefreshTrustedAdvisorCheck with a CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use RefreshTrustedAdvisorCheck with a CLI

The following code examples show how to use RefreshTrustedAdvisorCheck.

CLI
AWS CLI

To refresh an AWS Trusted Advisor check

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

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

Output:

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

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

PowerShell
Tools for PowerShell

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

Request-ASATrustedAdvisorCheckRefresh -CheckId "checkid1"