Assurance / Client / get_control_status

get_control_status

Assurance.Client.get_control_status(**kwargs)

Retrieves the effective compliance status of a control in a project. The status combines the most recent assessment of the control with the not-applicable decisions that you declare on the control or its requirements. The framework version must be enabled in the project.

See also: AWS API Documentation

Request Syntax

response = client.get_control_status(
    environmentArn='string',
    project='string',
    framework='string',
    frameworkVersion='string',
    controlId='string'
)
Parameters:
  • environmentArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of this governance environment.

  • project (string) –

    [REQUIRED]

    The name of the project.

  • framework (string) –

    [REQUIRED]

    The name of the compliance framework.

  • frameworkVersion (string) –

    [REQUIRED]

    The version of the compliance framework.

  • controlId (string) –

    [REQUIRED]

    The identifier of the control. The control must exist in the framework version.

Return type:

dict

Returns:

Response Syntax

{
    'controlId': 'string',
    'controlGroupId': 'string',
    'status': 'COMPLIANT'|'NEEDS_ATTENTION'|'NOT_APPLICABLE'|'NOT_ASSESSED',
    'outcomePercentage': 123.0,
    'applicableRequirementCount': 123,
    'excludedRequirementCount': 123,
    'statusOverride': {
        'type': 'NOT_APPLICABLE'|'NONE',
        'justification': 'string',
        'declaredBy': 'string',
        'declaredAt': datetime(2015, 1, 1)
    },
    'lastAssessmentId': 'string',
    'lastAssessedAt': datetime(2015, 1, 1),
    'lastAssessmentStatus': 'SCHEDULED'|'IN_PROGRESS'|'NEEDS_ATTENTION'|'FINISHED'|'NOT_APPLICABLE'|'ERROR'|'USER_ERROR',
    'requirementStatuses': [
        {
            'requirementId': 'string',
            'description': 'string',
            'status': 'met'|'partial'|'not_met'|'not_applicable'|'unable_to_assess',
            'statusOverride': {
                'type': 'NOT_APPLICABLE'|'NONE',
                'justification': 'string',
                'declaredBy': 'string',
                'declaredAt': datetime(2015, 1, 1)
            },
            'rationale': 'string',
            'taskId': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    Output of GetControlStatus: the effective status of one control in a project.

    • controlId (string) –

      The identifier of the control.

    • controlGroupId (string) –

      The identifier of the control group that contains the control. Absent when the control isn’t in a control group.

    • status (string) –

      The effective compliance status of the control. Valid values:

      • COMPLIANT or NEEDS_ATTENTION – Based on the compliance percentage that the most recent assessment calculated.

      • NOT_APPLICABLE – The control, or every one of its requirements, is not applicable to the project.

      • NOT_ASSESSED – The most recent assessment hasn’t finished, ended in an error, or found no outcome for any applicable requirement.

    • outcomePercentage (float) –

      The compliance percentage that the most recent assessment of the control calculated. A decision that you declare after that assessment doesn’t change this value. The next assessment calculates a new percentage. Absent when status is NOT_ASSESSED or NOT_APPLICABLE.

    • applicableRequirementCount (integer) –

      The number of the control’s requirements that apply to the project.

    • excludedRequirementCount (integer) –

      The number of the control’s requirements whose status is not_applicable. The count includes requirements that you declare not applicable, directly or through the control. It also includes requirements that the assessment determines don’t apply.

    • statusOverride (dict) –

      The decision declared on the control itself. Absent when no decision is declared on the control. Decisions on individual requirements are returned in requirementStatuses.

      • type (string) –

        The decision.

      • justification (string) –

        The justification supplied with the decision.

      • declaredBy (string) –

        The principal who declared the decision. If you sign in through AWS IAM Identity Center, this is your user identifier. Otherwise, it’s the ARN of the AWS Identity and Access Management (IAM) principal that you used to make the request.

      • declaredAt (datetime) –

        The time when the decision was declared. AWS Assurance sets this value and updates it each time you declare the decision again.

    • lastAssessmentId (string) –

      The identifier of the most recent assessment of the control in the project. Absent if no assessment has run for the control.

    • lastAssessedAt (datetime) –

      The time when the most recent assessment of the control was last updated.

    • lastAssessmentStatus (string) –

      The state of the most recent assessment of the control.

    • requirementStatuses (list) –

      The effective status of each of the control’s requirements, including requirements that are not applicable.

      • (dict) –

        The effective status of a single requirement of a control in a project.

        • requirementId (string) –

          The unique identifier of the requirement.

        • description (string) –

          A description of the requirement.

        • status (string) –

          The effective outcome of the requirement. The outcome is not_applicable when the requirement or its control is declared not applicable, or when the most recent assessment determined that the requirement doesn’t apply. It’s unable_to_assess when no assessment produced an outcome for the requirement.

        • statusOverride (dict) –

          The decision declared directly on this requirement. Absent when no decision is declared on the requirement, including when the requirement is not applicable only because its control is declared not applicable.

          • type (string) –

            The decision.

          • justification (string) –

            The justification supplied with the decision.

          • declaredBy (string) –

            The principal who declared the decision. If you sign in through AWS IAM Identity Center, this is your user identifier. Otherwise, it’s the ARN of the AWS Identity and Access Management (IAM) principal that you used to make the request.

          • declaredAt (datetime) –

            The time when the decision was declared. AWS Assurance sets this value and updates it each time you declare the decision again.

        • rationale (string) –

          The evaluator’s explanation of the outcome from the most recent assessment.

        • taskId (string) –

          The identifier of the remediation task for this requirement in the project, when one exists. The task can be in any state, including CANCELLED.

Exceptions