enable_control
¶
enable_control(
control_identifier: ControlIdentifier,
target_identifier: TargetIdentifier,
*,
config_overrides: Optional[ControlTowerClientConfig] = None,
tags: Optional[TagMap] = None,
parameters: Optional[EnabledControlParameters] = None,
) -> EnableControlOutput
This API call activates a control. It starts an asynchronous operation that creates Amazon Web Services resources on the specified organizational unit and the accounts it contains. The resources created will vary according to the control that you specify. For usage examples, see the Controls Reference Guide .
Parameters:
-
control_identifier(ControlIdentifier) –The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny control. For information on how to find the
controlIdentifier, see the overview page. -
target_identifier(TargetIdentifier) –The ARN of the organizational unit. For information on how to find the
targetIdentifier, see the overview page. -
tags(Optional[TagMap], default:None) –Tags to be applied to the
EnabledControlresource. -
parameters(Optional[EnabledControlParameters], default:None) –A list of input parameter values, which are specified to configure the control when you enable it.
Raises:
-
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_controltower/_services/control_tower.py
1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 | |