list_controls
¶
list_controls(
control_type: ControlType,
*,
config_overrides: Optional[AuditManagerClientConfig] = 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.