Skip to content

GetControlStatusOutput

Source code in docs_src/capo_assurance/types/get_control_status_output.py
class GetControlStatusOutput(TypedDict, closed=True):
    control_id: "capo_assurance.types.control_id.ControlID"
    """<p>The identifier of the control.</p>"""
    control_group_id: NotRequired["capo_assurance.types.control_id.ControlID"]
    """<p>The identifier of the control group that contains the control. Absent when the control isn't in a control group.</p>"""
    status: "capo_assurance.types.compliance_status.ComplianceStatus"
    """<p>The effective compliance status of the control. Valid values:</p> <ul> <li> <p> <code>COMPLIANT</code> or <code>NEEDS_ATTENTION</code> – Based on the compliance percentage that the most recent assessment calculated.</p> </li> <li> <p> <code>NOT_APPLICABLE</code> – The control, or every one of its requirements, is not applicable to the project.</p> </li> <li> <p> <code>NOT_ASSESSED</code> – The most recent assessment hasn't finished, ended in an error, or found no outcome for any applicable requirement.</p> </li> </ul>"""
    outcome_percentage: NotRequired["float"]
    """<p>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 <code>status</code> is <code>NOT_ASSESSED</code> or <code>NOT_APPLICABLE</code>.</p>"""
    applicable_requirement_count: "int"
    """<p>The number of the control's requirements that apply to the project.</p>"""
    excluded_requirement_count: "int"
    """<p>The number of the control's requirements whose status is <code>not_applicable</code>. 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.</p>"""
    status_override: NotRequired["capo_assurance.types.status_override.StatusOverride"]
    """<p>The decision declared on the control itself. Absent when no decision is declared on the control. Decisions on individual requirements are returned in <code>requirementStatuses</code>.</p>"""
    last_assessment_id: NotRequired["capo_assurance.types.assessment_id.AssessmentId"]
    """<p>The identifier of the most recent assessment of the control in the project. Absent if no assessment has run for the control.</p>"""
    last_assessed_at: NotRequired["datetime.datetime"]
    """<p>The time when the most recent assessment of the control was last updated.</p>"""
    last_assessment_status: NotRequired[
        "capo_assurance.types.assessment_status.AssessmentStatus"
    ]
    """<p>The state of the most recent assessment of the control.</p>"""
    requirement_statuses: (
        "capo_assurance.types.requirement_status_list.RequirementStatusList"
    )
    """<p>The effective status of each of the control's requirements, including requirements that are not applicable.</p>"""

applicable_requirement_count instance-attribute

applicable_requirement_count: int

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

control_group_id instance-attribute

control_group_id: NotRequired[ControlID]

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

control_id instance-attribute

control_id: ControlID

The identifier of the control.

excluded_requirement_count instance-attribute

excluded_requirement_count: int

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.

last_assessed_at instance-attribute

last_assessed_at: NotRequired[datetime]

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

last_assessment_id instance-attribute

last_assessment_id: NotRequired[AssessmentId]

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

last_assessment_status instance-attribute

last_assessment_status: NotRequired[AssessmentStatus]

The state of the most recent assessment of the control.

outcome_percentage instance-attribute

outcome_percentage: NotRequired[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.

requirement_statuses instance-attribute

requirement_statuses: RequirementStatusList

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

status instance-attribute

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.

status_override instance-attribute

status_override: NotRequired[StatusOverride]

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