Assurance / Client / get_control
get_control¶
- Assurance.Client.get_control(**kwargs)¶
Retrieves a single leaf control within a framework version, including its title, description, and requirements.
See also: AWS API Documentation
Request Syntax
response = client.get_control( environmentArn='string', framework='string', controlId='string', frameworkVersion='string' )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of this governance environment.
framework (string) –
[REQUIRED]
The name of the compliance framework.
controlId (string) –
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
frameworkVersion (string) –
[REQUIRED]
The version of the compliance framework.
- Return type:
dict
- Returns:
Response Syntax
{ 'control': { 'type': 'MANAGED'|'CUSTOM', 'framework': 'string', 'controlId': 'string', 'frameworkVersion': 'string', 'groupId': 'string', 'title': 'string', 'description': 'string', 'requirements': [ { 'id': 'string', 'description': 'string' }, ], 'controlIntents': [ 'string', ], 'workflowType': 'automated-scan'|'document'|'hybrid', 'status': 'ACTIVE'|'PENDING'|'PRE_PROD', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) } }
Response Structure
(dict) –
control (dict) –
The control.
type (string) –
The type of the control.
framework (string) –
The name of the compliance framework.
controlId (string) –
The control identifier. Optional. If omitted, the operation applies to the full framework.
frameworkVersion (string) –
The version of the compliance framework.
groupId (string) –
The parent group ID (for example, “A.2” for control “A.2.2”).
title (string) –
The human-readable title of the control.
description (string) –
A description of the control.
requirements (list) –
The individual checks an assessment scores for this control. Absent when the control has none.
(dict) –
A single check within a leaf control, scored independently during an assessment. For document-based controls, the description defines what the evaluation looks for. Findings, assessment results, and remediation tasks reference the requirement by
id.id (string) –
The unique identifier of the requirement.
description (string) –
A description of the requirement.
controlIntents (list) –
The technical control intents classify how an assessment evaluates this leaf control. Leaf controls only.
(string) –
A technical control-intent identifier used to classify how a leaf control is evaluated.
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.
createdAt (datetime) –
The time when you created the control. The response includes it only for controls in custom frameworks.
updatedAt (datetime) –
The time when the control was last modified. Returned for controls in custom frameworks only.
Exceptions
Assurance.Client.exceptions.ValidationExceptionAssurance.Client.exceptions.InternalServerExceptionAssurance.Client.exceptions.ThrottlingExceptionAssurance.Client.exceptions.AccessDeniedExceptionAssurance.Client.exceptions.ResourceNotFoundException