

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

# 個々のアカウントを動作グラフに招待する
<a name="accounts-invited-members-add-individual"></a>

動作グラフへのデータ提供を求めて招待するメンバーアカウントを手動で指定できます。

------
#### [ Console ]

**Detective コンソールを使用して招待するメンバーアカウントを手動で選択するには。**

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

1. Detective のナビゲーションペインで、[**Account management**] (アカウント管理) を選択します。

1. **[アクション]** を選択します。その後、[**Invite accounts**] (アカウントを招待) を選択します。

1. [**Add accounts**] (アカウントを追加) で、[**Add individual accounts**] (個別のアカウントを追加) を選択します。

1. 招待リストにメンバーアカウントを追加するには、次のステップを実行します。

   1. [**Add account**] (アカウントを追加) を選択します。

   1. **AWS アカウント ID** には、 AWS アカウント ID を入力します。

   1. [**Email address**] (メールアドレス) で、アカウントのルートユーザーのメールアドレスを入力します。

1. リストからアカウントを削除するには、そのアカウントの [**Remove**] (削除) を選択します。

1. [**Personalize invitation email**] (招待メールをパーソナライズ) で、招待メールに含めるカスタマイズされたコンテンツを追加します。

   例えば、この領域を使用して、連絡先情報を指定します。または、これを使用して、招待を承諾する前に、必要な IAM ポリシーをユーザーまたはロールにアタッチする必要があることをメンバーアカウントに注意喚起します。

1. [**Member account IAM policy**] (メンバーアカウントの IAM ポリシー) には、メンバーアカウントに必要な IAM ポリシーのテキストが含まれます。招待メールには、このポリシーテキストが含まれます。ポリシーテキストをコピーするには、[**Copy**] (コピー) を選択します。

1. **[招待]** を選択します。

------
#### [ Detective API/AWS CLI ]

Detective API または を使用して AWS Command Line Interface 、メンバーアカウントを招待し、動作グラフにデータを提供できます。リクエストで使用する動作グラフの ARN を取得するには、[https://docs.aws.amazon.com/detective/latest/APIReference/API_ListGraphs.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_ListGraphs.html) オペレーションを使用します。

**メンバーアカウントを動作グラフに招待するには (Detective API、 AWS CLI)**
+ **Detective API**: [https://docs.aws.amazon.com/detective/latest/APIReference/API_CreateMembers.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_CreateMembers.html) オペレーションを使用します。グラフ ARN を入力する必要があります。各アカウントについて、アカウント識別子とルートユーザーのメールアドレスを指定します。

  メンバーアカウントに招待メールを送信しないようにするには、`DisableEmailNotification` を true に設定します。デフォルトでは、`DisableEmailNotification` は false です。

  招待メールを送信する場合は、オプションで、招待メールに追加するカスタムテキストを入力できます。
+ **AWS CLI:** コマンドラインで、`create-members` コマンドを実行します。

  ```
  aws detective create-members --accounts AccountId=<AWS account ID>,EmailAddress=<root user email address> --graph-arn <behavior graph ARN> --message "<Custom message text>"
  ```

  **例**

  ```
  aws detective create-members --accounts AccountId=444455556666,EmailAddress=mmajor@example.com AccountId=123456789012,EmailAddress=jstiles@example.com --graph-arn arn:aws:detective:us-east-1:111122223333:graph:123412341234 --message "This is Paul Santos. I need to add your account to the data we use for security investigation in Amazon Detective. If you have any questions, contact me at psantos@example.com."
  ```

  メンバーアカウントに招待メールを送信しないことを示すには、`--disable-email-notification` を含めます。

  ```
  aws detective create-members --accounts AccountId=<AWS account ID>,EmailAddress=<root user email address> --graph-arn <behavior graph ARN> --disable-email-notification
  ```

  **例**

  ```
  aws detective create-members --accounts AccountId=444455556666,EmailAddress=mmajor@example.com AccountId=123456789012,EmailAddress=jstiles@example.com --graph-arn arn:aws:detective:us-east-1:111122223333:graph:123412341234 --disable-email-notification
  ```

------