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 [`EnableFramework`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_arn(impl Into<String>)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of this governance environment.</p><br>
    ///   - [`framework(impl Into<String>)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::framework) / [`set_framework(Option<String>)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::set_framework):<br>required: **true**<br><p>The name of the compliance framework.</p><br>
    ///   - [`project(impl Into<String>)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::set_project):<br>required: **true**<br><p>The name of the project.</p><br>
    ///   - [`framework_version(impl Into<String>)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::framework_version) / [`set_framework_version(Option<String>)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::set_framework_version):<br>required: **false**<br><p>The version of the compliance framework.</p><br>
    ///   - [`assessment_mode(AssessmentMode)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::assessment_mode) / [`set_assessment_mode(Option<AssessmentMode>)`](crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::set_assessment_mode):<br>required: **false**<br><p>The way that assessments run for the framework. The default is <code>SCHEDULED</code>.</p> <ul>  <li>   <p><code>CONTINUOUS</code> – Runs assessments when a relevant change occurs.</p></li>  <li>   <p><code>SCHEDULED</code> – Runs assessments on a recurring schedule.</p></li> </ul><br>
    /// - On success, responds with [`EnableFrameworkOutput`](crate::operation::enable_framework::EnableFrameworkOutput) with field(s):
    ///   - [`environment(String)`](crate::operation::enable_framework::EnableFrameworkOutput::environment): <p>The name of the governance environment the framework belongs to.</p>
    ///   - [`framework(String)`](crate::operation::enable_framework::EnableFrameworkOutput::framework): <p>The name of the compliance framework.</p>
    ///   - [`framework_version(Option<String>)`](crate::operation::enable_framework::EnableFrameworkOutput::framework_version): <p>The version of the compliance framework.</p>
    ///   - [`project(String)`](crate::operation::enable_framework::EnableFrameworkOutput::project): <p>The name of the project.</p>
    ///   - [`r#type(FrameworkType)`](crate::operation::enable_framework::EnableFrameworkOutput::type): <p>The type of the compliance framework.</p>
    ///   - [`assessment_mode(Option<AssessmentMode>)`](crate::operation::enable_framework::EnableFrameworkOutput::assessment_mode): <p>The way that assessments run for the framework. This field is empty if assessment modes aren't available for your account.</p>
    /// - On failure, responds with [`SdkError<EnableFrameworkError>`](crate::operation::enable_framework::EnableFrameworkError)
    pub fn enable_framework(&self) -> crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder {
        crate::operation::enable_framework::builders::EnableFrameworkFluentBuilder::new(self.handle.clone())
    }
}