

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 将 `RefreshTrustedAdvisorCheck` 与 CLI 配合使用
<a name="example_support_RefreshTrustedAdvisorCheck_section"></a>

以下代码示例演示如何使用 `RefreshTrustedAdvisorCheck`。

------
#### [ CLI ]

**AWS CLI**  
**刷新 Tru AWS sted Advisor 支票**  
以下`refresh-trusted-advisor-check`示例刷新了您 AWS 账户中的 Amazon S3 存储桶权限 Trusted Advisor 支票。  

```
aws support refresh-trusted-advisor-check \
    --check-id "Pfx0RwqBli"
```
输出：  

```
{
    "status": {
        "checkId": "Pfx0RwqBli",
        "status": "enqueued",
        "millisUntilNextRefreshable": 3599992
    }
}
```
有关更多信息，请参阅《AWS Support 用户指南》**中的 [AWS Trusted Advisor](https://docs.aws.amazon.com/awssupport/latest/user/trusted-advisor.html)。  
+  有关 API 的详细信息，请参阅*AWS CLI 命令参考[RefreshTrustedAdvisorCheck](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/support/refresh-trusted-advisor-check.html)*中的。

------
#### [ PowerShell ]

**适用于 PowerShell V4 的工具**  
**示例 1：请求刷新指定的 Trusted Advisor 检查。**  

```
Request-ASATrustedAdvisorCheckRefresh -CheckId "checkid1"
```
+  有关 API 的详细信息，请参阅 *AWS Tools for PowerShell Cmdlet 参考 (V* 4) [RefreshTrustedAdvisorCheck](https://docs.aws.amazon.com/powershell/v4/reference)中的。

**适用于 PowerShell V5 的工具**  
**示例 1：请求刷新指定的 Trusted Advisor 检查。**  

```
Request-ASATrustedAdvisorCheckRefresh -CheckId "checkid1"
```
+  有关 API 的详细信息，请参阅 *AWS Tools for PowerShell Cmdlet 参考 (V* 5) [RefreshTrustedAdvisorCheck](https://docs.aws.amazon.com/powershell/v5/reference)中的。

------

有关 S AWS DK 开发者指南和代码示例的完整列表，请参阅[AWS 支持 与 AWS SDK 一起使用](sdk-general-information-section.md)。本主题还包括有关入门的信息以及有关先前的 SDK 版本的详细信息。