AWS SDK Version 4 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.

Updates the configuration of an already enabled control.

If the enabled control shows an EnablementStatus of SUCCEEDED, supply parameters that are different from the currently configured parameters. Otherwise, Amazon Web Services Control Tower will not accept the request.

If the enabled control shows an EnablementStatus of FAILED, Amazon Web Services Control Tower updates the control to match any valid parameters that you supply.

If the DriftSummary status for the control shows as DRIFTED, you cannot call this API. Instead, you can update the control by calling the ResetEnabledControl API. Alternatively, you can call DisableControl and then call EnableControl again. Also, you can run an extending governance operation to repair drift. For usage examples, see the Controls Reference Guide .

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to UpdateEnabledControlAsync.

Namespace: Amazon.ControlTower
Assembly: AWSSDK.ControlTower.dll
Version: 3.x.y.z

Syntax

C#
public virtual UpdateEnabledControlResponse UpdateEnabledControl(
         UpdateEnabledControlRequest request
)

Parameters

request
Type: Amazon.ControlTower.Model.UpdateEnabledControlRequest

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

Return Value


The response from the UpdateEnabledControl 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. See Service quotas.
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.7.2 and newer

See Also