

# DisableHealthServiceAccessForOrganization
<a name="API_DisableHealthServiceAccessForOrganization"></a>

Disables Amazon Health from working with Amazon Organizations. To call this operation, you must sign in to the organization's management account. For more information, see [Aggregating Amazon Health events](https://docs.amazonaws.cn/health/latest/ug/aggregate-events.html) in the * Amazon Health User Guide*.

This operation doesn't remove the service-linked role from the management account in your organization. You must use the IAM console, API, or Amazon Command Line Interface (Amazon CLI) to remove the service-linked role. For more information, see [Deleting a Service-Linked Role](https://docs.amazonaws.cn/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role) in the *IAM User Guide*.

**Note**  
You can also disable the organizational feature by using the Organizations [DisableAWSServiceAccess](https://docs.amazonaws.cn/organizations/latest/APIReference/API_DisableAWSServiceAccess.html) API operation. After you call this operation, Amazon Health stops aggregating events for all other Amazon Web Services accounts in your organization. If you call the Amazon Health API operations for organizational view, Amazon Health returns an error. Amazon Health continues to aggregate health events for your Amazon Web Services account.

## Response Elements
<a name="API_DisableHealthServiceAccessForOrganization_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

## Errors
<a name="API_DisableHealthServiceAccessForOrganization_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** ConcurrentModificationException **   
 [EnableHealthServiceAccessForOrganization](https://docs.amazonaws.cn/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html) is already in progress. Wait for the action to complete before trying again. To get the current status, use the [DescribeHealthServiceStatusForOrganization](https://docs.amazonaws.cn/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html) operation.  
HTTP Status Code: 400

## See Also
<a name="API_DisableHealthServiceAccessForOrganization_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon Command Line Interface V2](https://docs.amazonaws.cn/goto/cli2/health-2016-08-04/DisableHealthServiceAccessForOrganization) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/health-2016-08-04/DisableHealthServiceAccessForOrganization) 
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/health-2016-08-04/DisableHealthServiceAccessForOrganization) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/health-2016-08-04/DisableHealthServiceAccessForOrganization) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/health-2016-08-04/DisableHealthServiceAccessForOrganization) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/health-2016-08-04/DisableHealthServiceAccessForOrganization) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/health-2016-08-04/DisableHealthServiceAccessForOrganization) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/health-2016-08-04/DisableHealthServiceAccessForOrganization) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/health-2016-08-04/DisableHealthServiceAccessForOrganization) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/health-2016-08-04/DisableHealthServiceAccessForOrganization) 