aws_sdk_controltower/client/
disable_control.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DisableControl`](crate::operation::disable_control::builders::DisableControlFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`control_identifier(impl Into<String>)`](crate::operation::disable_control::builders::DisableControlFluentBuilder::control_identifier) / [`set_control_identifier(Option<String>)`](crate::operation::disable_control::builders::DisableControlFluentBuilder::set_control_identifier):<br>required: **true**<br><p>The ARN of the control. Only <b>Strongly recommended</b> and <b>Elective</b> controls are permitted, with the exception of the <b>Region deny</b> control. For information on how to find the <code>controlIdentifier</code>, see <a href="https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html">the overview page</a>.</p><br>
    ///   - [`target_identifier(impl Into<String>)`](crate::operation::disable_control::builders::DisableControlFluentBuilder::target_identifier) / [`set_target_identifier(Option<String>)`](crate::operation::disable_control::builders::DisableControlFluentBuilder::set_target_identifier):<br>required: **true**<br><p>The ARN of the organizational unit. For information on how to find the <code>targetIdentifier</code>, see <a href="https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html">the overview page</a>.</p><br>
    /// - On success, responds with [`DisableControlOutput`](crate::operation::disable_control::DisableControlOutput) with field(s):
    ///   - [`operation_identifier(String)`](crate::operation::disable_control::DisableControlOutput::operation_identifier): <p>The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.</p>
    /// - On failure, responds with [`SdkError<DisableControlError>`](crate::operation::disable_control::DisableControlError)
    pub fn disable_control(&self) -> crate::operation::disable_control::builders::DisableControlFluentBuilder {
        crate::operation::disable_control::builders::DisableControlFluentBuilder::new(self.handle.clone())
    }
}