list_enabled_controls
¶
list_enabled_controls(
*,
config_overrides: Optional[ControlTowerClientConfig] = None,
target_identifier: Optional[TargetIdentifier] = None,
next_token: Optional[str] = None,
max_results: Optional[MaxResults] = None,
filter: Optional[EnabledControlFilter] = None,
include_children: Optional[bool] = None,
) -> ListEnabledControlsOutput
Lists the controls enabled by Amazon Web Services Control Tower on the specified organizational unit and the accounts it contains. For usage examples, see the Controls Reference Guide .
Parameters:
-
target_identifier(Optional[TargetIdentifier], default:None) –The ARN of the target. The value depends on the target type:
-
Organizational unit (OU) – Specify the ARN of the OU.
-
Account – Specify the ARN of the account.
For information on how to find the
targetIdentifier, see the overview page. -
-
next_token(Optional[str], default:None) –The token to continue the list from a previous API call with the same parameters.
-
max_results(Optional[MaxResults], default:None) –How many results to return per API call.
-
filter(Optional[EnabledControlFilter], default:None) –An input filter for the
ListEnabledControlsAPI that lets you select the types of control operations to view. -
include_children(Optional[bool], default:None) –Specifies whether to include enabled controls from child organizational units and child accounts in the response.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An unexpected error occurred during processing of a request.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
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
1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 | |