

Doc AWS SDK Examples GitHub リポジトリには、他にも SDK の例があります。 [AWS](https://github.com/awsdocs/aws-doc-sdk-examples)

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# CLI で `RefreshTrustedAdvisorCheck` を使用する
<a name="support_example_support_RefreshTrustedAdvisorCheck_section"></a>

次のサンプルコードは、`RefreshTrustedAdvisorCheck` を使用する方法を説明しています。

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

**AWS CLI**  
** AWS Trusted Advisor チェックを更新するには**  
次の の`refresh-trusted-advisor-check`例では、 AWS アカウントの Amazon S3 Bucket Permissions Trusted Advisor チェックを更新します。  

```
aws support refresh-trusted-advisor-check \
    --check-id "Pfx0RwqBli"
```
出力:  

```
{
    "status": {
        "checkId": "Pfx0RwqBli",
        "status": "enqueued",
        "millisUntilNextRefreshable": 3599992
    }
}
```
詳細については、「*AWS サポートユーザーガイド*」の「[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 コマンドレットリファレンス (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 コマンドレットリファレンス (V5) の「[RefreshTrustedAdvisorCheck](https://docs.aws.amazon.com/powershell/v5/reference)」を参照してください。**

------