AWS SDK Version 3 for .NET
API Reference

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 .

Note:

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

Syntax

C#
public virtual DisableControlResponse DisableControl(
         DisableControlRequest request
)

Parameters

request
Type: Amazon.ControlTower.Model.DisableControlRequest

Container for the necessary parameters to execute the DisableControl service method.

Return Value


The response from the DisableControl service method, as returned by ControlTower.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also