

文件 AWS 開發套件範例 GitHub 儲存庫中有更多可用的 [AWS SDK 範例](https://github.com/awsdocs/aws-doc-sdk-examples)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 搭配使用 `RefreshTrustedAdvisorCheck` 與 CLI
<a name="support_example_support_RefreshTrustedAdvisorCheck_section"></a>

下列程式碼範例示範如何使用 `RefreshTrustedAdvisorCheck`。

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

**AWS CLI**  
**重新整理 an AWS Trusted 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 ]

**Tools for PowerShell V4**  
**範例 1：請求重新整理指定的 Trusted Advisor 檢查。**  

```
Request-ASATrustedAdvisorCheckRefresh -CheckId "checkid1"
```
+  如需 API 詳細資訊，請參閱《AWS Tools for PowerShell Cmdlet 參考 (V4)》**中的 [RefreshTrustedAdvisorCheck](https://docs.aws.amazon.com/powershell/v4/reference)。

**Tools for PowerShell V5**  
**範例 1：請求重新整理指定的 Trusted Advisor 檢查。**  

```
Request-ASATrustedAdvisorCheckRefresh -CheckId "checkid1"
```
+  如需 API 詳細資訊，請參閱《AWS Tools for PowerShell Cmdlet 參考 (V5)》**中的 [RefreshTrustedAdvisorCheck](https://docs.aws.amazon.com/powershell/v5/reference)。

------