

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

# 使用 管理帳戶邀請 AWS Organizations
<a name="orgs_manage_accounts_invites"></a>

在您[建立組織](orgs_manage_org_create.md)[並確認擁有與管理帳戶相關聯的電子郵件地址](about-email-verification.md)後，您可以邀請現有的 AWS 帳戶 加入您的組織。使用 AWS Organizations 主控台來啟動和管理您傳送給其他帳戶的邀請。您只能從組織的管理帳戶傳送邀請給其他帳戶。

當您邀請帳戶時， 會 AWS Organizations 傳送邀請給帳戶擁有者，他們可以決定接受或拒絕邀請。

如果您是 的管理員 AWS 帳戶，您也可以接受或拒絕來自組織的邀請。如果您接受，您的帳戶會變成該組織的成員。

若要建立自動成為組織一部分的帳戶，請參閱 [使用 在組織中建立成員帳戶 AWS Organizations](orgs_manage_accounts_create.md)。

**重要**  
組織中的所有帳戶都必須來自與管理帳戶相同的 AWS 分割區。商業 AWS 區域 分割區中的帳戶不能位於具有來自中國區域分割區或 AWS GovCloud (US) 區域分割區中帳戶的組織。

**Topics**
+ [考量事項](#impact_of_join)
+ [傳送邀請](orgs_manage_accounts_invite-account.md)
+ [管理待定邀請](orgs_manage_accounts_manage-invites.md)
+ [接受或拒絕邀請](orgs_manage_accounts_accept-decline-invite.md)

## 考量事項
<a name="impact_of_join"></a>

**您可以每天傳送的邀請數量限制**

如需每天可傳送的邀請數量限制，請參閱 [最大值和最小值](orgs_reference_limits.md#min-max-values)。已接受的邀請不會計入此限制之內。一旦有邀請被接受，當天即可以傳送另一個邀請。必須在 15 天內回應每個邀請，否則邀請會過期。

傳送到帳戶的邀請會計入組織中的帳戶配額。如果受邀帳戶拒絕、管理帳戶取消邀請或邀請過期，則會重設計數。

**帳戶只能加入一個組織**

帳戶只能加入一個組織。如果您收到多個邀請，您只能接受一個邀請。

**帳單歷史記錄和報告會保留在管理帳戶中**

所有帳戶的帳單歷史記錄和報告都會保留在 組織中的管理帳戶。將帳戶移至新的組織之前，請匯出或備份任何帳單，並報告您要保留的任何成員帳戶的歷史記錄。這可能包括[成本和用量報告](https://docs.aws.amazon.com/cur/latest/userguide/what-is-cur.html)、[Cost Explorer 報告](https://docs.aws.amazon.com/cost-management/latest/userguide/ce-reports.html)、[Savings Plans 報告](https://docs.aws.amazon.com/savingsplans/latest/userguide/ce-sp-usingPR.html#ce-dl-pr)，以及[預留執行個體 (RI) 使用率和涵蓋範圍](https://repost.aws/knowledge-center/ec2-ri-utilization-coverage-cost-explorer)。

**管理帳戶負責成員帳戶產生的所有費用**

帳戶接受加入組織的邀請後，組織的管理帳戶會負責支付新成員帳戶產生的所有費用。不再使用連接至成員帳戶的付款方式。而是連接至組織管理帳戶的付款方式來支付成員帳戶產生的所有費用。

**Organizations 會自動建立服務連結角色 `AWSServiceRoleForOrganizations`**

AWS Organizations 會建立名為 的服務連結角色`AWSServiceRoleForOrganizations`，以支援 AWS Organizations 與其他 AWS 服務之間的整合。如需詳細資訊，請參閱[AWS Organizations 和服務連結角色](orgs_integrate_services.md#orgs_integrate_services-using_slrs)。如果您的組織支援[所有功能](orgs_getting-started_concepts.md#feature-set-all)，受邀的帳戶必須具有此角色。如果組織僅支援[合併帳單](orgs_getting-started_concepts.md#feature-set-cb-only)功能集，您可以刪除此角色。如果您刪除此角色，並在稍後啟用組織中的所有功能， 會為帳戶 AWS Organizations 重新建立此角色。

**Organizations 不會自動建立 IAM 角色 `OrganizationAccountAccessRole`**

對於受邀的成員帳戶， AWS Organizations 不會自動建立 IAM 角色 [`OrganizationAccountAccessRole`](orgs_manage_accounts_access-cross-account-role.md)。該角色會授予管理帳戶中的使用者存取成員帳戶的管理權限。如果想要啟用對邀請帳戶的該層級管理控制，可以手動新增該角色。如需詳細資訊，請參閱[使用 為受邀帳戶建立 OrganizationAccountAccessRole AWS Organizations](orgs_manage_accounts_create-cross-account-role.md)。

**注意**  
當您在組織中建立帳戶而非邀請現有帳戶加入時， `OrganizationAccountAccessRole`預設 AWS Organizations 會自動建立 IAM 角色。

**連接到包含帳戶的根或 OU 的政策會立即套用**

如果您有任何政策連接到根帳戶或包含受邀帳戶的組織單位 (OU)，這些政策會立即套用至受邀帳戶中的所有使用者和角色。

您可以為組織的[其他服務啟用 AWS 服務信任](orgs_integrate_services_list.md)。當您這麼做時，該受信任的服務就可以在組織中的任何成員帳戶 (包括受邀的帳戶) 中，建立服務連結角色或執行動作。

**只有合併帳單功能集的組織仍然可以邀請帳戶**

您可以邀請帳戶加入只啟用合併帳單功能的組織。如果您稍後想要為組織啟用所有功能，受邀帳戶必須核准變更。

# 使用 傳送帳戶邀請 AWS Organizations
<a name="orgs_manage_accounts_invite-account"></a>

若要邀請帳戶加入您的組織，您必須先驗證您擁有與管理帳戶關聯的電子郵件地址。如需詳細資訊，請參閱[使用 的電子郵件地址驗證 AWS Organizations](about-email-verification.md)。在您驗證電子郵件地址之後，請完成下列步驟來邀請帳戶加入您的組織。

**最低許可**  
若要邀請 AWS 帳戶 加入您的組織，您必須具有下列許可：  
`organizations:DescribeOrganization` (僅限主控台)
`organizations:InviteAccountToOrganization`

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

**邀請另一個帳戶加入組織**

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. 如果您已使用 驗證電子郵件地址 AWS，請略過此步驟。

   如果您尚未驗證您的電子郵件地址，請在建立組織後 24 小時內遵循[驗證電子郵件](about-email-verification.md)中的指示。在您收到驗證電子郵件訊息之前，可能會有一些延遲的時間。驗證您的電子郵件地址之前，您不可邀請帳戶加入您的組織。

1. 導覽至 **[AWS 帳戶](https://console.aws.amazon.com/organizations/v2/home/accounts)** 頁面，然後選擇 **Add an AWS account** (新增 AWS 帳戶)。

1. 在 **[Add an AWS 帳戶](https://console.aws.amazon.com/organizations/v2/home/accounts/add/create)** (新增) 頁面中，選擇 **Invite an existing AWS account** (邀請現有的 AWS 帳戶)。

1. 在**[邀請現有 AWS](https://console.aws.amazon.com/organizations/v2/home/accounts/add/invite)**頁面上，針對** AWS 帳戶 要邀請的電子郵件地址或帳戶 ID**，輸入與要邀請的帳戶相關聯的電子郵件地址，或其帳戶 ID 號碼。

1. (選用) 對於**要包含在邀請電子郵件訊息中的訊息**，輸入您要包含在傳送給受邀帳戶擁有者電子郵件邀請中的任何文字。

1. (選用) 在 **Add tags** (新增標籤) 區段中，指定一個或多個在帳戶管理員接受邀請後自動套用至帳戶的標記。若要執行此操作，請選擇 **Add tag** (新增標籤)，然後輸入一個鍵和一個選用值。將值留空會將其設定為空白字串；而不是 `null`。您可以在 AWS 帳戶中連接最多 50 個標籤。

1. 選擇**傳送邀請**。
**重要**  
如果您收到訊息，說明您已超出組織的帳戶配額，或因為您的組織仍在初始化而無法新增帳戶，請聯絡 [AWS 支援](https://console.aws.amazon.com/support/home#/)。

1. 主控台會將您重新導向至**[邀請](https://console.aws.amazon.com/organizations/v2/home/accounts/invitations)**頁面，您可以在此處檢視所有開啟和已接受的邀請。您剛建立的邀請會出現在清單上方，並且其狀態設定為 **OPEN (開啟中)**。

   AWS Organizations 會將邀請傳送至您邀請加入組織之帳戶擁有者的電子郵件地址。此電子郵件訊息包含 AWS Organizations 主控台的連結，其中帳戶擁有者可以檢視詳細資訊，並選擇接受或拒絕邀請。或者，受邀帳戶的擁有者可以略過電子郵件訊息、直接前往 AWS Organizations 主控台、檢視邀請，以及接受或拒絕邀請。

   對此帳戶的邀請會立即計入您在組織中可以具有的帳戶數量上限。 AWS Organizations 不會等候直到帳戶接受邀請。如果獲邀請的帳戶拒絕，則管理帳戶會取消邀請。如果獲邀請的帳戶未在指定的時間期間內回應，則邀請會過期。在這兩種情況下，邀請不會計入您的配額。

------
#### [ AWS CLI & AWS SDKs ]

**邀請另一個帳戶加入組織**  
您可以使用以下其中一個命令來邀請另一個帳戶加入您的組織：
+ AWS CLI: [invite-account-to-organization](https://docs.aws.amazon.com/cli/latest/reference/organizations/invite-account-to-organization.html) 

  ```
  $ aws organizations invite-account-to-organization \
      --target '{"Type": "EMAIL", "Id": "juan@example.com"}' \
      --notes "This is a request for Juan's account to join Bill's organization."
  {
      "Handshake": {
          "Action": "INVITE",
          "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111",
          "ExpirationTimestamp": 1482952459.257,
          "Id": "h-examplehandshakeid111",
          "Parties": [
              {
                  "Id": "o-exampleorgid",
                   "Type": "ORGANIZATION"
              },
              {
                   "Id": "juan@example.com",
                   "Type": "EMAIL"
              }
          ],
          "RequestedTimestamp": 1481656459.257,
          "Resources": [
              {
                  "Resources": [
                      {
                          "Type": "MASTER_EMAIL",
                          "Value": "bill@amazon.com"
                      },
                      {
                           "Type": "MASTER_NAME",
                           "Value": "Management Account"
                      },
                      {
                           "Type": "ORGANIZATION_FEATURE_SET",
                           "Value": "FULL"
                      }
                  ],
                  "Type": "ORGANIZATION",
                  "Value": "o-exampleorgid"
              },
              {
                  "Type": "EMAIL",
                  "Value": "juan@example.com"
              }
          ],
          "State": "OPEN"
      }
  }
  ```
+ AWS SDKs： [InviteAccountToOrganization](https://docs.aws.amazon.com/organizations/latest/APIReference/API_InviteAccountToOrganization.html)

------

# 使用 管理待定帳戶邀請 AWS Organizations
<a name="orgs_manage_accounts_manage-invites"></a>

登入到您的管理帳戶時，您可以檢視組織中的所有連結的 AWS 帳戶 ，以及取消任何等待中 (開啟) 的邀請。若要執行此動作，請執行下列步驟。

**最低許可**  
若要管理組織的等待中邀請，您必須擁有以下許可：  
`organizations:DescribeOrganization` – 僅在使用 Organizations 主控台時才需要
`organizations:ListHandshakesForOrganization` 
`organizations:CancelHandshake`

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

**檢視或取消從您的組織傳送到其他帳戶的邀請**

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. 導覽至**[邀請](https://console.aws.amazon.com/organizations/v2/home/accounts/invitations)**頁面。

   此頁面顯示從您的組織傳送的所有邀請及其目前狀態。

   如果您看不到邀請，請檢查受邀帳戶是否為另一個組織的管理帳戶。只有成員帳戶和獨立帳戶才能接收邀請。管理帳戶無法接收邀請。

   如果您想要邀請另一個組織中管理帳戶的帳戶，建議您將該帳戶設為獨立帳戶。
**注意**  
已接受、已取消和已拒絕的邀請會繼續在清單中顯示 30 天。之後便會刪除它們，不再顯示在清單中。

1. 選擇您希望取消邀請旁邊的選項按鈕 ![\[Blue circular icon with a white checkmark symbol in the center.\]](http://docs.aws.amazon.com/zh_tw/organizations/latest/userguide/images/radio-button-selected.png)，然後選擇 **Cancel invitation** (取消邀請)。如果選項按鈕呈現灰色，則無法取消該邀請。

   邀請的狀態會從 **Open** (開啟) 變更為 **Canceled** (已取消)。

   AWS 會傳送電子郵件訊息給帳戶擁有者，說明您已取消邀請。除非您傳送新的邀請，否則該帳戶不再可以加入組織。

------
#### [ AWS CLI & AWS SDKs ]

**檢視或取消從您的組織傳送到其他帳戶的邀請**  
您可以使用以下命令來檢視或取消邀請：
+ AWS CLI: [list-handshakes-for-organization](https://docs.aws.amazon.com/cli/latest/reference/organizations/list-handshakes-for-organization.html), [cancel-handshake](https://docs.aws.amazon.com/cli/latest/reference/organizations/cancel-handshake.html) 
+ 下列範例顯示此組織傳送給其他帳戶的邀請。

  ```
  $ aws organizations list-handshakes-for-organization
  {
      "Handshakes": [
          {
              "Action": "INVITE",
              "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111",
              "ExpirationTimestamp": 1482952459.257,
              "Id": "h-examplehandshakeid111",
              "Parties": [
                  {
                      "Id": "o-exampleorgid",
                      "Type": "ORGANIZATION"
                  },
                  {
                      "Id": "juan@example.com",
                      "Type": "EMAIL"
                  }
              ],
              "RequestedTimestamp": 1481656459.257,
              "Resources": [
                  {
                      "Resources": [
                          {
                              "Type": "MASTER_EMAIL",
                              "Value": "bill@amazon.com"
                          },
                          {
                              "Type": "MASTER_NAME",
                              "Value": "Management Account"
                          },
                          {
                              "Type": "ORGANIZATION_FEATURE_SET",
                              "Value": "FULL"
                          }
                      ],
                      "Type": "ORGANIZATION",
                      "Value": "o-exampleorgid"
                  },
                  {
                      "Type": "EMAIL",
                      "Value": "juan@example.com"
                  },
                  {
                      "Type":"NOTES",
                      "Value":"This is an invitation to Juan's account to join Bill's organization."
                  }
              ],
              "State": "OPEN"
          },
          {
              "Action": "INVITE",
              "State":"ACCEPTED",
              "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111",
              "ExpirationTimestamp": 1.471797437427E9,
              "Id": "h-examplehandshakeid222",
              "Parties": [
                  {
                      "Id": "o-exampleorgid",
                      "Type": "ORGANIZATION"
                  },
                  {
                      "Id": "anika@example.com",
                      "Type": "EMAIL"
                  }
              ],
              "RequestedTimestamp": 1.469205437427E9,
              "Resources": [
                  {
                      "Resources": [
                          {
                              "Type":"MASTER_EMAIL",
                               "Value":"bill@example.com"
                          },
                          {
                              "Type":"MASTER_NAME",
                              "Value":"Management Account"
                          }
                      ],
                      "Type":"ORGANIZATION",
                      "Value":"o-exampleorgid"
                  },
                  {
                      "Type":"EMAIL",
                      "Value":"anika@example.com"
                  },
                  {
                      "Type":"NOTES",
                      "Value":"This is an invitation to Anika's account to join Bill's organization."
                  }
              ]
          }
      ]
  }
  ```

  下列範例顯示如何取消對帳戶的邀請。

  ```
  $ aws organizations cancel-handshake --handshake-id h-examplehandshakeid111
  {
      "Handshake": {
          "Id": "h-examplehandshakeid111",
          "State":"CANCELED",
          "Action": "INVITE",
          "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111",
          "Parties": [
              {
                  "Id": "o-exampleorgid",
                  "Type": "ORGANIZATION"
              },
              {
                  "Id": "susan@example.com",
                  "Type": "EMAIL"
              }
          ],
          "Resources": [
              {
                  "Type": "ORGANIZATION",
                  "Value": "o-exampleorgid",
                  "Resources": [
                      {
                          "Type": "MASTER_EMAIL",
                          "Value": "bill@example.com"
                      },
                      {
                          "Type": "MASTER_NAME",
                          "Value": "Management Account"
                      },
                      {
                          "Type": "ORGANIZATION_FEATURE_SET",
                          "Value": "CONSOLIDATED_BILLING"
                      }
                  ]
              },
              {
                  "Type": "EMAIL",
                  "Value": "anika@example.com"
              },
              {
                  "Type": "NOTES",
                  "Value": "This is a request for Susan's account to join Bob's organization."
              }
          ],
          "RequestedTimestamp": 1.47008383521E9,
          "ExpirationTimestamp": 1.47137983521E9
      }
  }
  ```
+ AWS SDKs：[ListHandshakesForOrganization](https://docs.aws.amazon.com/organizations/latest/APIReference/API_ListHandshakesForOrganization.html)、[CancelHandshake](https://docs.aws.amazon.com/organizations/latest/APIReference/API_CancelHandshake.html)

------

# 使用 接受或拒絕帳戶邀請 AWS Organizations
<a name="orgs_manage_accounts_accept-decline-invite"></a>

如果您收到加入組織的邀請，您可以接受或拒絕邀請。

## 考量事項
<a name="orgs_manage_accounts_accept-decline-invite-considerations"></a>

**組織帳戶的狀態會影響可看見的成本和用量資料**

如果成員帳戶離開組織而成為獨立帳戶，則帳戶一旦是組織之成員就無法再存取時間範圍內的成本和用量資料。帳戶只能存取做為獨立帳戶時所產生的資料。

如果成員帳戶離開組織 A 而加入組織 B，則此帳戶就無法再存取其做為組織 A 成員之時間範圍內來自組織 A 的成本和用量資料。帳戶只能存取做為組織 B 成員時所產生的資料。

如果帳戶重新加入先前所屬的組織，此帳戶會重新獲得對其過去成本與使用狀況資料的存取權。

**只有成員帳戶和獨立帳戶可以接受或拒絕邀請**

只有成員帳戶和獨立帳戶可接受或拒絕加入組織的邀請。如果邀請傳送到已屬於組織的管理帳戶，則該帳戶將無法檢視邀請，直到他們[從組織中移除所有成員帳戶](orgs_manage_accounts_remove.md)並[刪除組織](orgs_manage_org_delete.md)為止。

**CloudTrail 記錄會在採取 動作的帳戶中進行 **

如果成員帳戶或獨立帳戶接受或拒絕帳戶邀請，則該動作會記錄在動作帳戶的 CloudTrail 日誌中。如果代理帳戶是成員帳戶，則該動作將不會記錄在管理帳戶的 CloudTrail 日誌中。這與相關案例中的 CloudTrail 記錄一致 （例如 離開組織的成員帳戶將記錄在成員帳戶追蹤中，移除成員帳戶的管理帳戶將記錄在管理帳戶追蹤中）。

## 接受或拒絕帳戶邀請
<a name="orgs_manage_accounts_accept-decline-invite-steps"></a>

若要接受或拒絕邀請，請完成下列步驟。

**最低許可**  
若要接受或拒絕加入 組織的邀請，您必須擁有以下許可：  
`organizations:ListHandshakesForAccount` – 在 AWS Organizations 主控台中查看邀請清單時需要。
`organizations:AcceptHandshake`.
`organizations:DeclineHandshake`.
`organizations:LeaveOrganization` – 只有在您的帳戶已經是組織的成員時，才需要接受邀請。
`iam:CreateServiceLinkedRole` – 只有在接受邀請需要在成員帳戶中建立服務連結角色以支援與其他 整合時才需要 AWS 服務。如需詳細資訊，請參閱[AWS Organizations 和服務連結角色](orgs_integrate_services.md#orgs_integrate_services-using_slrs)。

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

**接受或拒絕邀請**

1. 加入組織的邀請會傳送到帳戶擁有者的電子郵件地址。如果您是帳戶擁有者，而且您收到邀請電子郵件訊息，請依照電子郵件邀請中的指示，或前往您的瀏覽器中的 [AWS Organizations 主控台](https://console.aws.amazon.com/organizations/v2)，然後選擇 **Invitations** (邀請)，或直接前往**[成員帳戶的邀請](https://console.aws.amazon.com/organizations/v2/home/invitations)**頁面。

1. 如果提示，請以擔任 IAM 角色的 IAM 使用者身分登入或以帳戶的根使用者身分登入 ([不建議](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#lock-away-credentials)) 獲邀請的帳戶。

1. **[會員帳戶的邀請](https://console.aws.amazon.com/organizations/v2/home/invitations)**頁面顯示您的帳戶加入組織的未結邀請。

   選擇 **Accept invitation** (接受邀請) 或 **Decline invitation** (拒絕邀請)。
   + 如果您在之前的步驟中選擇 **Accept invitation** (接受邀請)，主控台會將您重新導向至 [Organization 概觀](https://console.aws.amazon.com/organizations/v2/home/dashboard)頁面，其中含有您的帳戶現在為其成員的組織的詳細資訊。您可以檢視組織的 ID 和擁有者的電子郵件地址。
**注意**  
已接受的邀請會繼續在清單中顯示 30 天。之後便會刪除它們，不再顯示在清單中。

     AWS Organizations 會在新成員帳戶中自動建立服務連結角色，以支援 AWS Organizations 和其他 之間的整合 AWS 服務。如需詳細資訊，請參閱[AWS Organizations 和服務連結角色](orgs_integrate_services.md#orgs_integrate_services-using_slrs)。

     AWS 會傳送電子郵件訊息給組織的管理帳戶的擁有者，說明您已接受邀請。它還會傳送一封電子郵件訊息給帳戶擁有者，說明帳戶現在為組織的成員。
   + 如果您在前面的步驟中選擇 **Decline** (拒絕)，則您的帳戶會維持在列出任何其他等待中邀請的**[成員帳戶邀請](https://console.aws.amazon.com/organizations/v2/home/invitations)**頁面上。

     AWS 會傳送電子郵件訊息給組織的管理帳戶擁有者，說明您拒絕邀請。
**注意**  
已拒絕的邀請會繼續在清單中顯示 30 天。之後便會刪除它們，不再顯示在清單中。

------
#### [ AWS CLI & AWS SDKs ]

**接受或拒絕邀請**  
您可以使用以下命令來接受或拒絕邀請：
+ AWS CLI: [accept-handshake](https://docs.aws.amazon.com/cli/latest/reference/organizations/accept-handshake.html), [decline-handshake](https://docs.aws.amazon.com/cli/latest/reference/organizations/decline-handshake.html) 

  下列範例顯示如何接受對加入組織的邀請。

  ```
  $ aws organizations accept-handshake --handshake-id h-examplehandshakeid111
  {
      "Handshake": {
          "Action": "INVITE",
          "Arn": "arn:aws:organizations::111111111111:handshake/o-exampleorgid/invite/h-examplehandshakeid111",
          "RequestedTimestamp": 1481656459.257,
          "ExpirationTimestamp": 1482952459.257,
          "Id": "h-examplehandshakeid111",
          "Parties": [
              {
                  "Id": "o-exampleorgid",
                  "Type": "ORGANIZATION"
              },
              {
                  "Id": "juan@example.com",
                  "Type": "EMAIL"
              }
          ],
          "Resources": [
              {
                  "Resources": [
                      {
                          "Type": "MASTER_EMAIL",
                          "Value": "bill@amazon.com"
                      },
                      {
                          "Type": "MASTER_NAME",
                          "Value": "Management Account"
                      },
                      {
                          "Type": "ORGANIZATION_FEATURE_SET",
                           "Value": "ALL"
                      }
                  ],
                  "Type": "ORGANIZATION",
                  "Value": "o-exampleorgid"
              },
              {
                  "Type": "EMAIL",
                  "Value": "juan@example.com"
              }
          ],
          "State": "ACCEPTED"
      }
  }
  ```

  下列範例顯示如何拒絕對加入組織的邀請。
+ AWS SDKs：[AcceptHandshake](https://docs.aws.amazon.com/organizations/latest/APIReference/API_AcceptHandshake.html)、[DeclineHandshake](https://docs.aws.amazon.com/organizations/latest/APIReference/API_DeclineHandshake.html)

------