aws_sdk_auditmanager/client/
update_control.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateControl`](crate::operation::update_control::builders::UpdateControlFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`control_id(impl Into<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::control_id) / [`set_control_id(Option<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::set_control_id):<br>required: **true**<br><p>The identifier for the control.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::set_name):<br>required: **true**<br><p>The name of the updated control.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::set_description):<br>required: **false**<br><p>The optional description of the control.</p><br>
9    ///   - [`testing_information(impl Into<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::testing_information) / [`set_testing_information(Option<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::set_testing_information):<br>required: **false**<br><p>The steps that you should follow to determine if the control is met.</p><br>
10    ///   - [`action_plan_title(impl Into<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::action_plan_title) / [`set_action_plan_title(Option<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::set_action_plan_title):<br>required: **false**<br><p>The title of the action plan for remediating the control.</p><br>
11    ///   - [`action_plan_instructions(impl Into<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::action_plan_instructions) / [`set_action_plan_instructions(Option<String>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::set_action_plan_instructions):<br>required: **false**<br><p>The recommended actions to carry out if the control isn't fulfilled.</p><br>
12    ///   - [`control_mapping_sources(ControlMappingSource)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::control_mapping_sources) / [`set_control_mapping_sources(Option<Vec::<ControlMappingSource>>)`](crate::operation::update_control::builders::UpdateControlFluentBuilder::set_control_mapping_sources):<br>required: **true**<br><p>The data mapping sources for the control.</p><br>
13    /// - On success, responds with [`UpdateControlOutput`](crate::operation::update_control::UpdateControlOutput) with field(s):
14    ///   - [`control(Option<Control>)`](crate::operation::update_control::UpdateControlOutput::control): <p>The name of the updated control set that the <code>UpdateControl</code> API returned.</p>
15    /// - On failure, responds with [`SdkError<UpdateControlError>`](crate::operation::update_control::UpdateControlError)
16    pub fn update_control(&self) -> crate::operation::update_control::builders::UpdateControlFluentBuilder {
17        crate::operation::update_control::builders::UpdateControlFluentBuilder::new(self.handle.clone())
18    }
19}