

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

# 組織ビューの有効化
<a name="enable-organizational-view"></a>

 AWS Health コンソールを使用して、 AWS 組織内のヘルスイベントを一元的に表示できます。

組織ビューは、すべての AWS サポート プランで追加料金なしで AWS Health コンソールで利用できます。

**注記**  
管理アカウントでこの機能へのアクセスをユーザーに許可するには、[https://console.aws.amazon.com//iam/home?#/policies/arn:aws:iam::aws:policy/AWSHealthFullAccess](https://console.aws.amazon.com//iam/home?#/policies/arn:aws:iam::aws:policy/AWSHealthFullAccess) ポリシーなどのアクセス許可が必要です。詳細については、「[AWS Health アイデンティティベースのポリシーの例](security_iam_id-based-policy-examples.md)」を参照してください。

------
#### [ Enabling organizational view (Console) ]

 AWS Health コンソールから組織ビューを有効にできます。 AWS 組織の管理アカウントにサインインする必要があります。

**組織の AWS Health ダッシュボードを表示するには**

1.  AWS Health ダッシュボードを [https://health.aws.amazon.com/health/home](https://health.aws.amazon.com/health/) で開きます。

1. ナビゲーションペインの **[組織の状態]** で **[構成]** を選択します。

1. **[Enable organizational view]** (組織ビューの有効化) ページで、**[Enable organizational view]** (組織ビューの有効化) を選択します。

1. (オプション) AWS 組織単位 (OUs) の作成など、組織に変更を加える場合は、 **の管理 AWS Organizations**を選択します。

   詳細については、「AWS Organizations ユーザーガイド」の「[AWS Organizationsの使用開始](https://docs.aws.amazon.com//organizations/latest/userguide/orgs_tutorials_basic.html)」を参照してください。

**注意事項**  
 AWS Health 組織ビューを有効にすると、最初のアカウントロードプロセスはバックグラウンドで実行され、完了までに数分かかる場合があります。プロセスが終了するのを待つ必要がないため、 AWS Health コンソールを閉じて後で戻ることができます。履歴ヘルスイベント (この機能を有効にする前に作成されたイベント) が組織ビューに表示されるまでに最大 24 時間かかる場合があります。
 Business AWS Support\+、 AWS Enterprise Support、または AWS Unified Operations プランがある場合は、[DescribeHealthServiceStatusForOrganization](https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html) API オペレーションを呼び出して、プロセスのステータスを確認できます。
この機能を有効にすると、 `Health_OrganizationsServiceRolePolicy` AWS 管理ポリシーを持つ`AWSServiceRoleForHealth_Organizations`サービスにリンクされたロールが組織内の管理アカウントに適用されます。詳細については、「[のサービスにリンクされたロールの使用 AWS Health](using-service-linked-roles.md)」を参照してください。

------
#### [ Enabling organizational view (CLI) ]

組織ビューは、[EnableHealthServiceAccessForOrganization](https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html) API オペレーションを使用してのみ有効にできます。

 AWS Command Line Interface (AWS CLI) または独自のコードを使用して、このオペレーションを呼び出すことができます。

**注記**  
 AWS Health API を呼び出すには、[Business](https://aws.amazon.com/premiumsupport/plans/business/)、[Enterprise On-Ramp](https://aws.amazon.com/premiumsupport/plans/enterprise-onramp)、または [Enterprise](https://aws.amazon.com/premiumsupport/plans/enterprise) Support プランが必要です。
米国東部 (バージニア北部) リージョンのエンドポイントを使用する必要があります。

**Example**  
次の AWS CLI コマンドは、 AWS アカウントからこの機能を有効にします。このコマンドは、管理アカウントから、または必要なアクセス許可を持つロールを引き受けることができるアカウントから使用できます。  

```
aws health enable-health-service-access-for-organization --region us-east-1
```

次のコード例では、[EnableHealthServiceAccessForOrganization](https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html) API オペレーションを呼び出します。

**Python**

```
import boto3

client = boto3.client('health', region_name='us-east-1')

response = client.enable_health_service_access_for_organization()

print(response)
```

**Java**

次の例では、 AWS SDK for バージョン Java 2.0 を使用できます。

```
import software.amazon.awssdk.services.health.HealthClient;
import software.amazon.awssdk.services.health.HealthClientBuilder;
 
import software.amazon.awssdk.services.health.model.ConcurrentModificationException;
import software.amazon.awssdk.services.health.model.EnableHealthServiceAccessForOrganizationRequest;
import software.amazon.awssdk.services.health.model.EnableHealthServiceAccessForOrganizationResponse;
import software.amazon.awssdk.services.health.model.DescribeHealthServiceStatusForOrganizationRequest;
import software.amazon.awssdk.services.health.model.DescribeHealthServiceStatusForOrganizationResponse;
 
import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider;
 
import software.amazon.awssdk.regions.Region;
 
public class EnableHealthServiceAccessDemo {
    public static void main(String[] args) {
        HealthClient client = HealthClient.builder()
            .region(Region.US_EAST_1)
            .credentialsProvider(
                DefaultCredentialsProvider.builder().build()
            )
            .build();
 
        try {
            DescribeHealthServiceStatusForOrganizationResponse statusResponse = client.describeHealthServiceStatusForOrganization(
                DescribeHealthServiceStatusForOrganizationRequest.builder().build()
            );
 
            String status = statusResponse.healthServiceAccessStatusForOrganization();
            if ("ENABLED".equals(status)) {
                System.out.println("EnableHealthServiceAccessForOrganization already enabled!");
                return;
            }
 
            client.enableHealthServiceAccessForOrganization(
                EnableHealthServiceAccessForOrganizationRequest.builder().build()
            );
 
            System.out.println("EnableHealthServiceAccessForOrganization is in progress");
        } catch (ConcurrentModificationException cme) {
            System.out.println("EnableHealthServiceAccessForOrganization is already in progress. Wait for the action to complete before trying again.");
        } catch (Exception e) {
            System.out.println("EnableHealthServiceAccessForOrganization FAILED: " + e);
        }
    }
}
```

詳細については、[AWS SDK for Java 2.0 開発者ガイド](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/)を参照してください。

この機能を有効にすると、 `Health_OrganizationsServiceRolePolicy` AWS 管理ポリシーを持つ`AWSServiceRoleForHealth_Organizations`[サービスにリンクされたロール](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html)が組織内の管理アカウントに適用されます。

**注記**  
この機能の有効化は非同期プロセスであり、完了するまでに時間がかかります。[DescribeHealthServiceStatusForOrganization](https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html) オペレーションを呼び出して、このプロセスのステータスを確認できます。

------