AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
This API call turns off a control. It starts an asynchronous operation that deletes Amazon Web Services resources on the specified organizational unit and the accounts it contains. The resources will vary according to the control that you specify. For usage examples, see the Controls Reference Guide .
For .NET Core this operation is only available in asynchronous form. Please refer to DisableControlAsync.
Namespace: Amazon.ControlTower
Assembly: AWSSDK.ControlTower.dll
Version: 3.x.y.z
public virtual DisableControlResponse DisableControl( DisableControlRequest request )
Container for the necessary parameters to execute the DisableControl service method.
Exception | Condition |
---|---|
AccessDeniedException | You do not have sufficient access to perform this action. |
ConflictException | Updating or deleting the resource can cause an inconsistent state. |
InternalServerException | An unexpected error occurred during processing of a request. |
ResourceNotFoundException | The request references a resource that does not exist. |
ServiceQuotaExceededException | The request would cause a service quota to be exceeded. The limit is 10 concurrent operations. |
ThrottlingException | The request was denied due to request throttling. |
ValidationException | The input does not satisfy the constraints specified by an Amazon Web Services service. |
.NET Framework:
Supported in: 4.5 and newer, 3.5