Assurance / Client / list_controls
list_controls¶
- Assurance.Client.list_controls(**kwargs)¶
Lists the leaf controls within a single control group in a framework version. Supports pagination through maxResults and nextToken.
See also: AWS API Documentation
Request Syntax
response = client.list_controls( environmentArn='string', framework='string', frameworkVersion='string', controlGroupId='string', maxResults=123, nextToken='string' )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of this governance environment.
framework (string) –
[REQUIRED]
The name of the compliance framework.
frameworkVersion (string) –
[REQUIRED]
The version of the compliance framework.
controlGroupId (string) –
[REQUIRED]
The control group whose controls the operation returns.
maxResults (integer) – The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the
nextTokenvalue from the response to get the next page.nextToken (string) – The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.
- Return type:
dict
- Returns:
Response Syntax
{ 'controls': [ { 'type': 'MANAGED'|'CUSTOM', 'controlId': 'string', 'title': 'string', 'description': 'string', 'workflowType': 'automated-scan'|'document'|'hybrid', 'status': 'ACTIVE'|'PENDING'|'PRE_PROD' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
controls (list) –
The leaf controls in the requested control group, for this page of results.
(dict) –
A summary of a leaf control returned by
ListControls, including identity and display attributes. To retrieve requirements and control intents, useGetControlorBatchGetControl.type (string) –
The type of the control.
controlId (string) –
The control identifier. Optional. If omitted, the operation applies to the full framework.
title (string) –
The human-readable title of the control.
description (string) –
A description of the control.
workflowType (string) –
How AWS Assurance evaluates the control. Applies only to leaf controls. Valid values:
automated-scan– Evaluates the configuration of your AWS resources.document– Evaluates the evidence documents that you provide.hybrid– Evaluates both resource configuration and evidence documents.
status (string) –
The lifecycle status of the control.
nextToken (string) –
The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.
Exceptions