Assurance / Client / get_assessment
get_assessment¶
- Assurance.Client.get_assessment(**kwargs)¶
Retrieves a single assessment.
See also: AWS API Documentation
Request Syntax
response = client.get_assessment( environmentArn='string', framework='string', frameworkVersion='string', controlId='string', project='string', assessmentId='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.
controlId (string) –
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
project (string) –
[REQUIRED]
The name of the project.
assessmentId (string) –
[REQUIRED]
The identifier of the assessment.
- Return type:
dict
- Returns:
Response Syntax
{ 'assessmentId': 'string', 'environment': 'string', 'framework': 'string', 'frameworkVersion': 'string', 'controlId': 'string', 'project': 'string', 'status': 'SCHEDULED'|'IN_PROGRESS'|'NEEDS_ATTENTION'|'FINISHED'|'NOT_APPLICABLE'|'ERROR'|'USER_ERROR', 'result': 'string', 'outcomePercentage': ..., 'context': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'organizationSummary': { 'totalAccounts': 123, 'evaluatedAccounts': 123, 'passedCount': 123, 'failedCount': 123, 'partiallyPassedCount': 123, 'notApplicableCount': 123, 'failedRunCount': 123, 'lowestScoringAccounts': [ { 'accountId': 'string', 'outcomePercentage': ..., 'findingsSummary': 'string' }, ] }, 'trigger': 'SCHEDULE'|'DETECTED_CHANGE'|'USER_ACTION' }
Response Structure
(dict) –
assessmentId (string) –
The identifier of the assessment.
environment (string) –
The name of the governance environment the assessment belongs to.
framework (string) –
The name of the compliance framework.
frameworkVersion (string) –
The version of the compliance framework.
controlId (string) –
The control identifier. Optional. If omitted, the operation applies to the full framework.
project (string) –
The name of the project.
status (string) –
The canonical state of the assessment.
result (string) –
The detailed result of the assessment.
outcomePercentage (float) –
The numeric percentage score of the assessment outcome.
context (string) –
The optional user-provided context or guidance for the assessment evaluation.
createdAt (datetime) –
The timestamp when the assessment was created.
updatedAt (datetime) –
The timestamp when the assessment was last updated.
organizationSummary (dict) –
A summary of the assessment across an organization. While the assessment is IN_PROGRESS,
totalAccountsandevaluatedAccountsreport progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.totalAccounts (integer) –
The total number of member accounts included in the assessment.
evaluatedAccounts (integer) –
The number of evaluated member accounts, whether they completed or failed. Together with
totalAccounts, this value shows assessment progress. EqualstotalAccountswhen the assessment finalizes.passedCount (integer) –
The accounts whose score was exactly 100.
failedCount (integer) –
The accounts whose score was exactly 0.
partiallyPassedCount (integer) –
The accounts scoring strictly between 0 and 100.
notApplicableCount (integer) –
The accounts excluded from the score because the control did not apply (no in-scope resources).
failedRunCount (integer) –
The accounts for which the assessment run failed before producing an outcome. These accounts are excluded from the score.
lowestScoringAccounts (list) –
The lowest-scoring accounts, ascending by score, at most 5.
(dict) –
The scored outcome of one member account in an organization assessment. Use it to find the accounts that need remediation.
accountId (string) –
The AWS account the outcome belongs to.
outcomePercentage (float) –
The per-account compliance score.
findingsSummary (string) –
A summary of the findings.
trigger (string) –
The event that started the assessment. The
triggerfield of theStartAssessmentevent in your AWS CloudTrail logs has the same value.SCHEDULE– The framework’s assessment schedule.DETECTED_CHANGE– A relevant change to your resources.USER_ACTION– AStartAssessmentcall.
This field is empty for assessments that ran before this value was available, or if the value isn’t available for your account.
Exceptions