

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

# Amazon Detective の無効化
<a name="detective-disabling"></a>

動作グラフの管理者アカウントは、Detective コンソール、Detective API、または AWS Command Line Interfaceから Amazon Detective を無効にすることができます。Detective を無効にすると、動作グラフとそれに関連する Detective データが削除されます。

動作グラフは、一度削除されると復元できません。

**Topics**
+ [Detective の無効化 (コンソール)](#disable-from-console)
+ [Detective の無効化 (Detective API、 AWS CLI)](#disable-from-api)
+ [リージョン全体での Detective の無効化 (GitHub の Python スクリプト)](#disable-from-github-script)

## Detective の無効化 (コンソール)
<a name="disable-from-console"></a>

 AWS マネジメントコンソールから Amazon Detective を無効にできます。

**Amazon Detective を無効にするには (コンソール)**

1. [https://console.aws.amazon.com/detective/](https://console.aws.amazon.com/detective/) で Amazon Detective コンソールを開きます。

1. Detective のナビゲーションペインで、**[設定]** の **[全般]** を選択します。

1. **全般**ページの**「Amazon Detective を無効にする**」で、**「Amazon Detective を無効にする**」を選択します。

1. 確認を求められたら、**disable** と入力します。

1. **Amazon Detective を無効にする**を選択します。

## Detective の無効化 (Detective API、 AWS CLI)
<a name="disable-from-api"></a>

Detective API または AWS Command Line Interfaceから Amazon Detective を無効にできます。リクエストで使用する動作グラフの ARN を取得するには、[https://docs.aws.amazon.com/detective/latest/APIReference/API_ListGraphs.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_ListGraphs.html) オペレーションを使用します。

**Detective を無効にするには (Detective API、 AWS CLI)**
+ **Detective API**: [https://docs.aws.amazon.com/detective/latest/APIReference/API_DeleteGraph.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_DeleteGraph.html) オペレーションを使用します。グラフ ARN を入力する必要があります。
+ **AWS CLI:** コマンドラインで、[https://docs.aws.amazon.com/cli/latest/reference/detective/delete-graph.html](https://docs.aws.amazon.com/cli/latest/reference/detective/delete-graph.html) コマンドを実行します。

  ```
  aws detective delete-graph --graph-arn {{<graph ARN>}}
  ```

  例:

  ```
  aws detective delete-graph --graph-arn arn:aws:detective:us-east-1:111122223333:graph:123412341234
  ```

## リージョン全体での Detective の無効化 (GitHub の Python スクリプト)
<a name="disable-from-github-script"></a>

Detective は、GitHub でオープンソーススクリプトを提供します。これにより、指定されたリージョンのリスト全体で管理者アカウントのために Detective を無効にできます。

GitHub スクリプトの設定方法と使用方法については、[Detective Python スクリプトを使用してアカウントを管理する](detective-github-scripts.md) を参照してください。