list_enabled_controls
async
¶
list_enabled_controls(
*,
config_overrides: Optional[AsyncControlTowerClientConfig] = 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/async_control_tower.py
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 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 | |