aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetControlStatus`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_arn(impl Into<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of this governance environment.</p><br>
    ///   - [`project(impl Into<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::set_project):<br>required: **true**<br><p>The name of the project.</p><br>
    ///   - [`framework(impl Into<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::framework) / [`set_framework(Option<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::set_framework):<br>required: **true**<br><p>The name of the compliance framework.</p><br>
    ///   - [`framework_version(impl Into<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::framework_version) / [`set_framework_version(Option<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::set_framework_version):<br>required: **true**<br><p>The version of the compliance framework.</p><br>
    ///   - [`control_id(impl Into<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::control_id) / [`set_control_id(Option<String>)`](crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::set_control_id):<br>required: **true**<br><p>The identifier of the control. The control must exist in the framework version.</p><br>
    /// - On success, responds with [`GetControlStatusOutput`](crate::operation::get_control_status::GetControlStatusOutput) with field(s):
    ///   - [`control_id(String)`](crate::operation::get_control_status::GetControlStatusOutput::control_id): <p>The identifier of the control.</p>
    ///   - [`control_group_id(Option<String>)`](crate::operation::get_control_status::GetControlStatusOutput::control_group_id): <p>The identifier of the control group that contains the control. Absent when the control isn't in a control group.</p>
    ///   - [`status(ComplianceStatus)`](crate::operation::get_control_status::GetControlStatusOutput::status): <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(Option<f64>)`](crate::operation::get_control_status::GetControlStatusOutput::outcome_percentage): <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(i32)`](crate::operation::get_control_status::GetControlStatusOutput::applicable_requirement_count): <p>The number of the control's requirements that apply to the project.</p>
    ///   - [`excluded_requirement_count(i32)`](crate::operation::get_control_status::GetControlStatusOutput::excluded_requirement_count): <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(Option<StatusOverride>)`](crate::operation::get_control_status::GetControlStatusOutput::status_override): <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(Option<String>)`](crate::operation::get_control_status::GetControlStatusOutput::last_assessment_id): <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(Option<DateTime>)`](crate::operation::get_control_status::GetControlStatusOutput::last_assessed_at): <p>The time when the most recent assessment of the control was last updated.</p>
    ///   - [`last_assessment_status(Option<AssessmentStatus>)`](crate::operation::get_control_status::GetControlStatusOutput::last_assessment_status): <p>The state of the most recent assessment of the control.</p>
    ///   - [`requirement_statuses(Vec::<RequirementStatus>)`](crate::operation::get_control_status::GetControlStatusOutput::requirement_statuses): <p>The effective status of each of the control's requirements, including requirements that are not applicable.</p>
    /// - On failure, responds with [`SdkError<GetControlStatusError>`](crate::operation::get_control_status::GetControlStatusError)
    pub fn get_control_status(&self) -> crate::operation::get_control_status::builders::GetControlStatusFluentBuilder {
        crate::operation::get_control_status::builders::GetControlStatusFluentBuilder::new(self.handle.clone())
    }
}