list_controls
async
¶
list_controls(
control_type: ControlType,
*,
config_overrides: Optional[AsyncAuditManagerClientConfig] = None,
next_token: Optional[Token] = None,
max_results: Optional[MaxResults] = None,
control_catalog_id: Optional[ControlCatalogId] = None,
) -> ListControlsResponse
Returns a list of controls from Audit Manager.
Parameters:
-
control_type(ControlType) –A filter that narrows the list of controls to a specific type.
-
next_token(Optional[Token], default:None) –The pagination token that's used to fetch the next set of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results on a page or for an API request call.
-
control_catalog_id(Optional[ControlCatalogId], default:None) –A filter that narrows the list of controls to a specific resource from the Amazon Web Services Control Catalog.
To use this parameter, specify the ARN of the Control Catalog resource. You can specify either a control domain, a control objective, or a common control. For information about how to find the ARNs for these resources, see
ListDomains,ListObjectives, andListCommonControls.You can only filter by one Control Catalog resource at a time. Specifying multiple resource ARNs isn’t currently supported. If you want to filter by more than one ARN, we recommend that you run the
ListControlsoperation separately for each ARN.Alternatively, specify
UNCATEGORIZEDto list controls that aren't mapped to a Control Catalog resource. For example, this operation might return a list of custom controls that don't belong to any control domain or control objective.
Raises:
-
AccessDeniedException–Your account isn't registered with Audit Manager. Check the delegated administrator setup on the Audit Manager settings page, and try again.
-
InternalServerException–An internal service error occurred during the processing of your request. Try again later.
-
ValidationException–The request has invalid or missing parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_auditmanager/_services/async_audit_manager.py
3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 | |