

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

# Amazon Detective 和 AWS Organizations
<a name="services-that-can-integrate-detective"></a>

Amazon Detective 會使用您的日誌資料產生視覺化效果，以便您分析、調查並識別安全問題清單或可疑活動的根本原因。

使用 AWS Organizations 可讓您確保 Detective 行為圖表可讓您查看所有組織帳戶的活動。

當您向 Detective 授予受信任存取權時，Detective 服務可以自動對組織成員身分的變更做出反應。委派管理員可以在行為圖中將任何組織帳戶作為成員帳戶啟用。Detective 還可以自動將新組織帳戶作為成員帳戶啟用。組織帳戶無法將自己與行為圖解除關聯。



如需詳細資訊，請參閱《Amazon Detective 管理指南》**中的[在組織中使用 Amazon Detective](https://docs.aws.amazon.com//detective/latest/adminguide/accounts-orgs-transition.html)。

使用以下資訊來協助您整合 Amazon Detective 與 AWS Organizations。

## 當您啟用整合時，即會建立服務連結角色。
<a name="integrate-enable-slr-detective"></a>

當您啟用受信任存取時，會在您組織的管理帳戶中自動建立以下[服務連結角色](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html)。此角色允許 Detective 在您組織的組織帳戶中執行支援的操作。

只有在您停用 Detective 和 Organizations 之間的受信任存取，或者從組織中移除成員帳戶時，才能刪除或修改此角色。
+ `AWSServiceRoleForDetective`

## 服務連結角色所使用的服務委託人
<a name="integrate-enable-svcprin-detective"></a>

上一節中的服務連結角色，只能由依據角色定義的信任關係所授權的服務委託人來假設。Detective 使用的服務連結角色會將存取權授予下列服務委託人：
+ `detective.amazonaws.com`

## 使用 Detective 啟用受信任存取
<a name="integrate-enable-ta-detective"></a>

如需啟用受信任存取所需許可的資訊，請參閱[啟用信任的存取所需的許可](orgs_integrate_services.md#orgs_trusted_access_perms)。

**注意**  
當您指定 Amazon Detective 的委派管理員時，Detective 會自動啟用組織中 Detective 的受信任存取。  
Detective 需要信任的 存取權 AWS Organizations ，才能將成員帳戶指定為組織的此服務委派管理員。

您只能使用 Organizations 工具啟用受信任存取。

您可以使用 AWS Organizations 主控台啟用受信任存取。

------
#### [ AWS 管理主控台 ]

**使用 Organizations 主控台來啟用受信任的服務存取**

1. 登入 [AWS Organizations 主控台](https://console.aws.amazon.com/organizations/v2)。您必須以 IAM 使用者登入、擔任 IAM 角色，或是以組織管理帳戶中的根使用者 ([不建議](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#lock-away-credentials)) 身分登入。

1. 在導覽窗格中，選擇**服務**。

1. 在服務清單中選擇 **Amazon Detective**。

1. 選擇 **Enable trusted access (啟用信任存取)**。

1. 在**啟用 Amazon Detective 的受信任存取**對話方塊中，輸入 **Enable** 進行確認，然後選擇**啟用受信任存取**。

1. 如果您只是 的管理員 AWS Organizations，請告訴 Amazon Detective 的管理員，他們現在可以 AWS Organizations 從服務主控台 啟用該服務來使用 。

------

## 使用 Detective 停用受信任存取
<a name="integrate-disable-ta-detective"></a>

如需啟用受信任的存取所需許可的資訊，請參閱[停用信任的存取所需的許可](orgs_integrate_services.md#orgs_trusted_access_disable_perms)。

只有 AWS Organizations 管理帳戶中的管理員可以使用 Amazon Detective 停用受信任存取。

您只能使用 Organizations 工具停用受信任存取。

您可以使用 AWS Organizations 主控台停用受信任存取。

------
#### [ AWS 管理主控台 ]

**使用 Organizations 主控台來受信停用任的服務存取**

1. 登入 [AWS Organizations 主控台](https://console.aws.amazon.com/organizations/v2)。您必須以 IAM 使用者登入、擔任 IAM 角色，或是以組織管理帳戶中的根使用者 ([不建議](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#lock-away-credentials)) 身分登入。

1. 在導覽窗格中，選擇**服務**。

1. 在服務清單中選擇 **Amazon Detective**。

1. 選擇**停用受信任的存取**。

1. 在**停用 Amazon Detective 的受信任存取**對話方塊中，輸入**停用**以確認，然後選擇**停用受信任存取**。

1. 如果您只是 的管理員 AWS Organizations，請告訴 Amazon Detective 的管理員，他們現在可以使用 AWS Organizations 服務主控台或工具停用該服務。

------

## 啟用 Detective 的委派管理員帳戶
<a name="integrate-enable-da-detective"></a>

Detective 的委派管理員帳戶是 Detective 行為圖的管理員帳戶。委派管理員會判斷要在該行為圖中啟用和停用哪些作為成員帳戶的組織帳戶。委派管理員可以設定 Detective，使其在將新的組織帳戶新增到組織時自動將其作為成員帳戶啟用。如需委派管理員如何管理組織帳戶的資訊，請參閱*《Amazon Detective 管理指南》*中的[將組織帳戶作為成員帳戶管理](https://docs.aws.amazon.com//detective/latest/adminguide/accounts-orgs-members.html)。

只有組織管理帳戶中的管理員可以設定 Detective 的委派管理員。

您可以從 Detective 主控台或 API，或使用 Organizations CLI 或 SDK 操作，指定委派的管理員帳戶。

**最低許可**  
只有 Organizations 管理帳戶中的使用者或角色，才能將成員帳戶設定為組織中 Detective 的委派管理員

若要使用 Detective 主控台或 API 設定委派管理員，請參閱*《Amazon Detective 管理指南》*中的[為組織指定 Detective 管理員帳戶](https://docs.aws.amazon.com//detective/latest/adminguide/accounts-designate-admin.html)。

------
#### [ AWS CLI, AWS API ]

如果您想要使用 AWS CLI 或其中一個 AWS SDKs 設定委派管理員帳戶，您可以使用下列命令：
+ AWS CLI: 

  ```
  $ aws organizations register-delegated-administrator \
      --account-id 123456789012 \
      --service-principal detective.amazonaws.com
  ```
+ AWS SDK：呼叫 Organizations `RegisterDelegatedAdministrator`操作和成員帳戶的 ID 號碼，並將帳戶服務主體識別`account.amazonaws.com`為參數。

------

## 停用 Detective 的委派管理員
<a name="integrate-disable-da-detective"></a>

您可以使用 Detective 主控台或 API，或透過使用 Organizations `DeregisterDelegatedAdministrator` CLI 或 SDK 操作，移除委派管理員。關於如何使用 Detective 主控台或 API 或 Organizations API 移除委派管理員的資訊，請參閱*《Amazon Detective 管理指南》*中的[為組織指定 Detective 管理員帳戶](https://docs.aws.amazon.com//detective/latest/adminguide/accounts-designate-admin.html)。